| /arkcompiler/ets_runtime/test/moduletest/stringfromcharcode/ |
| H A D | stringfromcharcode.js | 40 print(str4.charAt(4)); 41 print(str5.charAt(4)); 42 obj[str5.charAt(4)] = 'jjj4';
|
| /base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/ |
| H A D | Utils.java | 130 if ((int) lan.charAt(i) > 255) { in checkLanguage() 145 if (!Character.isUpperCase(script.charAt(0))) { in checkScript() 149 char cur = script.charAt(i); in checkScript() 164 char cur = region.charAt(i); in checkRegion()
|
| H A D | Fetcher.java | 464 sb.append(String.valueOf(description.charAt(i))); in getNumberDigits() 557 String temp = formatValue.substring(0, formatValue.indexOf(description.charAt(1))); in getMinusSign()
|
| /test/xts/acts/storage/storagefilejstest/entry/src/ohosTest/js/test/ |
| H A D | Common.js | 86 pwd += $chars.charAt(Math.floor(Math.random() * maxPos));
|
| /test/xts/acts/storage/storagefileiojstest/entry/src/ohosTest/js/test/ |
| H A D | Common.js | 98 pwd += $chars.charAt(Math.floor(Math.random() * maxPos));
|
| /test/xts/acts/storage/storagefileiov9jstest/entry/src/ohosTest/js/test/ |
| H A D | Common.js | 82 pwd += $chars.charAt(Math.floor(Math.random() * maxPos));
|
| /arkcompiler/ets_frontend/legacy_bin/api8/src/ |
| H A D | index.js | 2 (()=>{var __webpack_modules__={"./node_modules/buffer-from/index.js":e=>{var t=Object.prototype.toString,r="undefined"!=typeof Buffer&&"function"==typeof Buffer.alloc&&"function"==typeof Buffer.allocUnsafe&&"function"==typeof Buffer.from;e.exports=function(e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return a=e,"ArrayBuffer"===t.call(a).slice(8,-1)?function(e,t,n){t>>>=0;var i=e.byteLength-t;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===n)n=i;else if((n>>>=0)>i)throw new RangeError("'length' is out of bounds");return r?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}(e,n,i):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return r?Buffer.from(e,t):new Buffer(e,t)}(e,n):r?Buffer.from(e):new Buffer(e);var a}},"./node_modules/source-map-support/node_modules/source-map/lib/array-set.js":(e,t,r)=>{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/util.js"),i=Object.prototype.hasOwnProperty,a="undefined"!=typeof Map;function o(){this._array=[],this._set=a?new Map:Object.create(null)}o.fromArray=function(e,t){for(var r=new o,n=0,i=e.length;n<i;n++)r.add(e[n],t);return r},o.prototype.size=function(){return a?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(e,t){var r=a?e:n.toSetString(e),o=a?this.has(e):i.call(this._set,r),s=this._array.length;o&&!t||this._array.push(e),o||(a?this._set.set(e,s):this._set[r]=s)},o.prototype.has=function(e){if(a)return this._set.has(e);var t=n.toSetString(e);return i.call(this._set,t)},o.prototype.indexOf=function(e){if(a){var t=this._set.get(e);if(t>=0)return t}else{var r=n.toSetString(e);if(i.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},o.prototype.toArray=function(){return this._array.slice()},t.ArraySet=o},"./node_modules/source-map-support/node_modules/source-map/lib/base64-vlq.js":(e,t,r)=>{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/base64.js");t.encode=function(e){var t,r="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),r+=n.encode(t)}while(i>0);return r},t.decode=function(e,t,r){var i,a,o,s,c=e.length,l=0,u=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=n.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&a),l+=(a&=31)<<u,u+=5}while(i);r.value=(s=(o=l)>>1,1==(1&o)?-s:s),r.rest=t}},"./node_modules/source-map-support/node_modules/source-map/lib/base64.js":(e,t)=>{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<r.length)return r[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},"./node_modules/source-map-support/node_modules/source-map/lib/binary-search.js":(e,t)=>{function r(e,n,i,a,o,s){var c=Math.floor((n-e)/2)+e,l=o(i,a[c],!0);return 0===l?c:l>0?n-c>1?r(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n<a.length?n:-1:c:c-e>1?r(e,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,i,a){if(0===n.length)return-1;var o=r(-1,n.length,e,n,i,a||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(n[o],n[o-1],!0);)--o;return o}},"./node_modules/source-map-support/node_modules/source-map/lib/mapping-list.js":(e,t,r)=>{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/util.js");function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,r,i,a,o,s;r=e,i=(t=this._last).generatedLine,a=r.generatedLine,o=t.generatedColumn,s=r.generatedColumn,a>i||a==i&&s>=o||n.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i},"./node_modules/source-map-support/node_modules/source-map/lib/quick-sort.js":(e,t)=>{function r(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function n(e,t,i,a){if(i<a){var o=i-1;r(e,(u=i,_=a,Math.round(u+Math.random()*(_-u))),a);for(var s=e[a],c=i;c<a;c++)t(e[c],s)<=0&&r(e,o+=1,c);r(e,o+1,c);var l=o+1;n(e,t,i,l-1),n(e,t,l+1,a)}var u,_}t.quickSort=function(e,t){n(e,t,0,e.length-1)}},"./node_modules/source-map-support/node_modules/source-map/lib/source-map-consumer.js":(e,t,r)=>{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/util.js"),i=r("./node_modules/source-map-support/node_modules/source-map/lib/binary-search.js"),a=r("./node_modules/source-map-support/node_modules/source-map/lib/array-set.js").ArraySet,o=r("./node_modules/source-map-support/node_modules/source-map/lib/base64-vlq.js"),s=r("./node_modules/source-map-support/node_modules/source-map/lib/quick-sort.js").quickSort;function c(e,t){var r=e;return"string"==typeof e&&(r=n.parseSourceMapInput(e)),null!=r.sections?new _(r,t):new l(r,t)}function l(e,t){var r=e;"string"==typeof e&&(r=n.parseSourceMapInput(e));var i=n.getArg(r,"version"),o=n.getArg(r,"sources"),s=n.getArg(r,"names",[]),c=n.getArg(r,"sourceRoot",null),l=n.getArg(r,"sourcesContent",null),u=n.getArg(r,"mappings"),_=n.getArg(r,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);c&&(c=n.normalize(c)),o=o.map(String).map(n.normalize).map((function(e){return c&&n.isAbsolute(c)&&n.isAbsolute(e)?n.relative(c,e):e})),this._names=a.fromArray(s.map(String),!0),this._sources=a.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map((function(e){return n.computeSourceURL(c,e,t)})),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=t,this.file=_}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function _(e,t){var r=e;"string"==typeof e&&(r=n.parseSourceMapInput(e));var i=n.getArg(r,"version"),o=n.getArg(r,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new a,this._names=new a;var s={line:-1,column:0};this._sections=o.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var r=n.getArg(e,"offset"),i=n.getArg(r,"line"),a=n.getArg(r,"column");if(i<s.line||i===s.line&&a<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=r,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new c(n.getArg(e,"map"),t)}}))}c.fromSourceMap=function(e,t){return l.fromSourceMap(e,t)},c.prototype._version=3,c.prototype.__generatedMappings=null,Object.defineProperty(c.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),c.prototype.__originalMappings=null,Object.defineProperty(c.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),c.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},c.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},c.GENERATED_ORDER=1,c.ORIGINAL_ORDER=2,c.GREATEST_LOWER_BOUND=1,c.LEAST_UPPER_BOUND=2,c.prototype.eachMapping=function(e,t,r){var i,a=t||null;switch(r||c.GENERATED_ORDER){case c.GENERATED_ORDER:i=this._generatedMappings;break;case c.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var o=this.sourceRoot;i.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=n.computeSourceURL(o,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,a)},c.prototype.allGeneratedPositionsFor=function(e){var t=n.getArg(e,"line"),r={source:n.getArg(e,"source"),originalLine:t,originalColumn:n.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var a=[],o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(void 0===e.column)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:n.getArg(s,"generatedLine",null),column:n.getArg(s,"generatedColumn",null),lastColumn:n.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==l;)a.push({line:n.getArg(s,"generatedLine",null),column:n.getArg(s,"generatedColumn",null),lastColumn:n.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return a},t.SourceMapConsumer=c,l.prototype=Object.create(c.prototype),l.prototype.consumer=c,l.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=n.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},l.fromSourceMap=function(e,t){var r=Object.create(l.prototype),i=r._names=a.fromArray(e._names.toArray(),!0),o=r._sources=a.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=t,r._absoluteSources=r._sources.toArray().map((function(e){return n.computeSourceURL(r.sourceRoot,e,t)}));for(var c=e._mappings.toArray().slice(),_=r.__generatedMappings=[],d=r.__originalMappings=[],p=0,f=c.length;p<f;p++){var g=c[p],m=new u;m.generatedLine=g.generatedLine,m.generatedColumn=g.generatedColumn,g.source&&(m.source=o.indexOf(g.source),m.originalLine=g.originalLine,m.originalColumn=g.originalColumn,g.name&&(m.name=i.indexOf(g.name)),d.push(m)),_.push(m)}return s(r.__originalMappings,n.compareByOriginalPositions),r},l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),l.prototype._parseMappings=function(e,t){for(var r,i,a,c,l,_=1,d=0,p=0,f=0,g=0,m=0,y=e.length,h=0,v={},b={},x=[],D=[];h<y;)if(";"===e.charAt(h))_++,h++,d=0;else if(","===e.charAt(h))h++;else{for((r=new u).generatedLine=_,c=h;c<y&&!this._charIsMappingSeparator(e,c);c++);if(a=v[i=e.slice(h,c)])h+=i.length;else{for(a=[];h<c;)o.decode(e,h,b),l=b.value,h=b.rest,a.push(l);if(2===a.length)throw new Error("Found a source, but no line and column");if(3===a.length)throw new Error("Found a source and line, but no column");v[i]=a}r.generatedColumn=d+a[0],d=r.generatedColumn,a.length>1&&(r.source=g+a[1],g+=a[1],r.originalLine=p+a[2],p=r.originalLine,r.originalLine+=1,r.originalColumn=f+a[3],f=r.originalColumn,a.length>4&&(r.name=m+a[4],m+=a[4])),D.push(r),"number"==typeof r.originalLine&&x.push(r)}s(D,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=D,s(x,n.compareByOriginalPositions),this.__originalMappings=x},l.prototype._findMapping=function(e,t,r,n,a,o){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return i.search(e,t,a,o)},l.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},l.prototype.originalPositionFor=function(e){var t={generatedLine:n.getArg(e,"line"),generatedColumn:n.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",n.compareByGeneratedPositionsDeflated,n.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var a=n.getArg(i,"source",null);null!==a&&(a=this._sources.at(a),a=n.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var o=n.getArg(i,"name",null);return null!==o&&(o=this._names.at(o)),{source:a,line:n.getArg(i,"originalLine",null),column:n.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},l.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i,a=e;if(null!=this.sourceRoot&&(a=n.relative(this.sourceRoot,a)),null!=this.sourceRoot&&(i=n.urlParse(this.sourceRoot))){var o=a.replace(/^file:\/\//,"");if("file"==i.scheme&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!i.path||"/"==i.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(t)return null;throw new Error('"'+a+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(e){var t=n.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:n.getArg(e,"line"),originalColumn:n.getArg(e,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=l,_.prototype=Object.create(c.prototype),_.prototype.constructor=c,_.prototype._version=3,Object.defineProperty(_.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),_.prototype.originalPositionFor=function(e){var t={generatedLine:n.getArg(e,"line"),generatedColumn:n.getArg(e,"column")},r=i.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),a=this._sections[r];return a?a.consumer.originalPositionFor({line:t.generatedLine-(a.generatedOffset.generatedLine-1),column:t.generatedColumn-(a.generatedOffset.generatedLine===t.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},_.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},_.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},_.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer._findSourceIndex(n.getArg(e,"source"))){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},_.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],a=i.consumer._generatedMappings,o=0;o<a.length;o++){var c=a[o],l=i.consumer._sources.at(c.source);l=n.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var _={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(_),"number"==typeof _.originalLine&&this.__originalMappings.push(_)}s(this.__generatedMappings,n.compareByGeneratedPositionsDeflated),s(this.__originalMappings,n.compareByOriginalPositions)},t.IndexedSourceMapConsumer=_},"./node_modules/source-map-support/node_modules/source-map/lib/source-map-generator.js":(e,t,r)=>{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/base64-vlq.js"),i=r("./node_modules/source-map-support/node_modules/source-map/lib/util.js"),a=r("./node_modules/source-map-support/node_modules/source-map/lib/array-set.js").ArraySet,o=r("./node_modules/source-map-support/node_modules/source-map/lib/mapping-list.js").MappingList;function s(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new o,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,r=new s({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=i.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(n){var a=n;null!==t&&(a=i.relative(t,n)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(n);null!=o&&r.setSourceContent(n,o)})),r},s.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),r=i.getArg(e,"original",null),n=i.getArg(e,"source",null),a=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,a),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:a})},s.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=i.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var o=this._sourceRoot;null!=o&&(n=i.relative(o,n));var s=new a,c=new a;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=r&&(t.source=i.join(r,t.source)),null!=o&&(t.source=i.relative(o,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var l=t.source;null==l||s.has(l)||s.add(l);var u=t.name;null==u||c.has(u)||c.add(u)}),this),this._sources=s,this._names=c,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=i.join(r,t)),null!=o&&(t=i.relative(o,t)),this.setSourceContent(t,n))}),this)},s.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},s.prototype._serializeMappings=function(){for(var e,t,r,a,o=0,s=1,c=0,l=0,u=0,_=0,d="",p=this._mappings.toArray(),f=0,g=p.length;f<g;f++){if(e="",(t=p[f]).generatedLine!==s)for(o=0;t.generatedLine!==s;)e+=";",s++;else if(f>0){if(!i.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=","}e+=n.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=n.encode(a-_),_=a,e+=n.encode(t.originalLine-1-l),l=t.originalLine-1,e+=n.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=n.encode(r-u),u=r)),d+=e}return d},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},"./node_modules/source-map-support/node_modules/source-map/lib/source-node.js":(e,t,r)=>{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator,i=r("./node_modules/source-map-support/node_modules/source-map/lib/util.js"),a=/(\r?\n)/,o="$$$isSourceNode$$$";function s(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[o]=!0,null!=n&&this.add(n)}s.fromStringWithSourceMap=function(e,t,r){var n=new s,o=e.split(a),c=0,l=function(){return e()+(e()||"");function e(){return c<o.length?o[c++]:void 0}},u=1,_=0,d=null;return t.eachMapping((function(e){if(null!==d){if(!(u<e.generatedLine)){var t=(r=o[c]||"").substr(0,e.generatedColumn-_);return o[c]=r.substr(e.generatedColumn-_),_=e.generatedColumn,p(d,t),void(d=e)}p(d,l()),u++,_=0}for(;u<e.generatedLine;)n.add(l()),u++;if(_<e.generatedColumn){var r=o[c]||"";n.add(r.substr(0,e.generatedColumn)),o[c]=r.substr(e.generatedColumn),_=e.generatedColumn}d=e}),this),c<o.length&&(d&&p(d,l()),n.add(o.splice(c).join(""))),t.sources.forEach((function(e){var a=t.sourceContentFor(e);null!=a&&(null!=r&&(e=i.join(r,e)),n.setSourceContent(e,a))})),n;function p(e,t){if(null===e||void 0===e.source)n.add(t);else{var a=r?i.join(r,e.source):e.source;n.add(new s(e.originalLine,e.originalColumn,a,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)(t=this.children[r])[o]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},s.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[o]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},s.prototype.setSourceContent=function(e,t){this.sourceContents[i.toSetString(e)]=t},s.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][o]&&this.children[t].walkSourceContents(e);var n=Object.keys(this.sourceContents);for(t=0,r=n.length;t<r;t++)e(i.fromSetString(n[t]),this.sourceContents[n[t]])},s.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},s.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new n(e),i=!1,a=null,o=null,s=null,c=null;return this.walk((function(e,n){t.code+=e,null!==n.source&&null!==n.line&&null!==n.column?(a===n.source&&o===n.line&&s===n.column&&c===n.name||r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name}),a=n.source,o=n.line,s=n.column,c=n.name,i=!0):i&&(r.addMapping({generated:{line:t.line,column:t.column}}),a=null,i=!1);for(var l=0,u=e.length;l<u;l++)10===e.charCodeAt(l)?(t.line++,t.column=0,l+1===u?(a=null,i=!1):i&&r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name})):t.column++})),this.walkSourceContents((function(e,t){r.setSourceContent(e,t)})),{code:t.code,map:r}},t.SourceNode=s},"./node_modules/source-map-support/node_modules/source-map/lib/util.js":(e,t)=>{t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var o,s=t.isAbsolute(r),c=r.split(/\/+/),l=0,u=c.length-1;u>=0;u--)"."===(o=c[u])?c.splice(u,1):".."===o?l++:l>0&&(""===o?(c.splice(u+1,l),l=0):(c.splice(u,2),l--));return""===(r=c.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,a(s)):c}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function l(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function _(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?l:function(e){return u(e)?"$"+e:e},t.fromSetString=c?l:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=_(e.source,t.source);return 0!==n||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)||r||0!=(n=e.generatedColumn-t.generatedColumn)||0!=(n=e.generatedLine-t.generatedLine)?n:_(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=_(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:_(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=_(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:_(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=i(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var c=n.path.lastIndexOf("/");c>=0&&(n.path=n.path.substring(0,c+1))}t=s(a(n),t)}return o(t)}},"./node_modules/source-map-support/node_modules/source-map/source-map.js":(e,t,r)=>{t.SourceMapGenerator=r("./node_modules/source-map-support/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator,t.SourceMapConsumer=r("./node_modules/source-map-support/node_modules/source-map/lib/source-map-consumer.js").SourceMapConsumer,t.SourceNode=r("./node_modules/source-map-support/node_modules/source-map/lib/source-node.js").SourceNode},"./node_modules/source-map-support/source-map-support.js":(e,t,r)=>{e=r.nmd(e);var n,i=r("./node_modules/source-map-support/node_modules/source-map/source-map.js").SourceMapConsumer,a=r("path");try{(n=r("fs")).existsSync&&n.readFileSync||(n=null)}catch(e){}var o=r("./node_modules/buffer-from/index.js");function s(e,t){return e.require(t)}var c=!1,l=!1,u=!1,_="auto",d={},p={},f=/^data:application\/json[^,]+base64,/,g=[],m=[];function y(){return"browser"===_||"node"!==_&&"undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type)}function h(e){return function(t){for(var r=0;r<e.length;r++){var n=e[r](t);if(n)return n}return null}}var v=h(g);function b(e,t){if(!e)return t;var r=a.dirname(e),n=/^\w+:\/\/[^\/]*/.exec(r),i=n?n[0]:"",o=r.slice(i.length);return i&&/^\/\w\:/.test(o)?(i+="/")+a.resolve(r.slice(i.length),t).replace(/\\/g,"/"):i+a.resolve(r.slice(i.length),t)}g.push((function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,(function(e,t){return t?"":"/"}))),e in d)return d[e];var t="";try{if(n)n.existsSync(e)&&(t=n.readFileSync(e,"utf8"));else{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),4===r.readyState&&200===r.status&&(t=r.responseText)}}catch(e){}return d[e]=t}));var x=h(m);function D(e){var t=p[e.source];if(!t){var r=x(e.source);r?(t=p[e.source]={url:r.url,map:new i(r.map)}).map.sourcesContent&&t.map.sources.forEach((function(e,r){var n=t.map.sourcesContent[r];if(n){var i=b(t.url,e);d[i]=n}})):t=p[e.source]={url:null,map:null}}if(t&&t.map&&"function"==typeof t.map.originalPositionFor){var n=t.map.originalPositionFor(e);if(null!==n.source)return n.source=b(t.url,n.source),n}return e}function S(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var r=D({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+r.source+":"+r.line+":"+(r.column+1)+")"}return(t=/^eval at ([^(]+) \((.+)\)$/.exec(e))?"eval at "+t[1]+" ("+S(t[2])+")":e}function E(){var e,t="";if(this.isNative())t="native";else{!(e=this.getScriptNameOrSourceURL())&&this.isEval()&&(t=this.getEvalOrigin(),t+=", "),t+=e||"<anonymous>";var r=this.getLineNumber();if(null!=r){t+=":"+r;var n=this.getColumnNumber();n&&(t+=":"+n)}}var i="",a=this.getFunctionName(),o=!0,s=this.isConstructor();if(this.isToplevel()||s)s?i+="new "+(a||"<anonymous>"):a?i+=a:(i+=t,o=!1);else{var c=this.getTypeName();"[object Object]"===c&&(c="null");var l=this.getMethodName();a?(c&&0!=a.indexOf(c)&&(i+=c+"."),i+=a,l&&a.indexOf("."+l)!=a.length-l.length-1&&(i+=" [as "+l+"]")):i+=c+"."+(l||"<anonymous>")}return o&&(i+=" ("+t+")"),i}function T(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(r){t[r]=/^(?:is|get)/.test(r)?function(){return e[r].call(e)}:e[r]})),t.toString=E,t}function C(e,t){if(void 0===t&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var r=e.getFileName()||e.getScriptNameOrSourceURL();if(r){var n=e.getLineNumber(),i=e.getColumnNumber()-1,a=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/.test("object"==typeof process&&null!==process?process.version:"")?0:62;1===n&&i>a&&!y()&&!e.isEval()&&(i-=a);var o=D({source:r,line:n,column:i});t.curPosition=o;var s=(e=T(e)).getFunctionName;return e.getFunctionName=function(){return null==t.nextPosition?s():t.nextPosition.name||s()},e.getFileName=function(){return o.source},e.getLineNumber=function(){return o.line},e.getColumnNumber=function(){return o.column+1},e.getScriptNameOrSourceURL=function(){return o.source},e}var c=e.isEval()&&e.getEvalOrigin();return c?(c=S(c),(e=T(e)).getEvalOrigin=function(){return c},e):e}function k(e,t){u&&(d={},p={});for(var r=(e.name||"Error")+": "+(e.message||""),n={nextPosition:null,curPosition:null},i=[],a=t.length-1;a>=0;a--)i.push("\n at "+C(t[a],n)),n.nextPosition=n.curPosition;return n.curPosition=n.nextPosition=null,r+i.reverse().join("")}function A(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],i=+t[2],a=+t[3],o=d[r];if(!o&&n&&n.existsSync(r))try{o=n.readFileSync(r,"utf8")}catch(e){o=""}if(o){var s=o.split(/(?:\r\n|\r|\n)/)[i-1];if(s)return r+":"+i+"\n"+s+"\n"+new Array(a).join(" ")+"^"}}return null}function N(e){var t=A(e),r=function(){if("object"==typeof process&&null!==process)return process.stderr}();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),"object"==typeof process&&null!==process&&"function"==typeof process.exit&&process.exit(1)}m.push((function(e){var t,r=function(e){var t;if(y())try{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),t=4===r.readyState?r.responseText:null;var n=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(n)return n}catch(e){}t=v(e);for(var i,a,o=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;a=o.exec(t);)i=a;return i?i[1]:null}(e);if(!r)return null;if(f.test(r)){var n=r.slice(r.indexOf(",")+1);t=o(n,"base64").toString(),r=e}else r=b(e,r),t=v(r);return t?{url:r,map:t}:null}));var F=g.slice(0),w=m.slice(0);t.wrapCallSite=C,t.getErrorSource=A,t.mapSourcePosition=D,t.retrieveSourceMap=x,t.install=function(t){if((t=t||{}).environment&&(_=t.environment,-1===["node","browser","auto"].indexOf(_)))throw new Error("environment "+_+" was unknown. Available options are {auto, browser, node}");if(t.retrieveFile&&(t.overrideRetrieveFile&&(g.length=0),g.unshift(t.retrieveFile)),t.retrieveSourceMap&&(t.overrideRetrieveSourceMap&&(m.length=0),m.unshift(t.retrieveSourceMap)),t.hookRequire&&!y()){var r=s(e,"module"),n=r.prototype._compile;n.__sourceMapSupport||(r.prototype._compile=function(e,t){return d[t]=e,p[t]=void 0,n.call(this,e,t)},r.prototype._compile.__sourceMapSupport=!0)}if(u||(u="emptyCacheBetweenOperations"in t&&t.emptyCacheBetweenOperations),c||(c=!0,Error.prepareStackTrace=k),!l){var i=!("handleUncaughtExceptions"in t)||t.handleUncaughtExceptions;try{!1===s(e,"worker_threads").isMainThread&&(i=!1)}catch(e){}i&&"object"==typeof process&&null!==process&&"function"==typeof process.on&&(l=!0,a=process.emit,process.emit=function(e){if("uncaughtException"===e){var t=arguments[1]&&arguments[1].stack,r=this.listeners(e).length>0;if(t&&!r)return N(arguments[1])}return a.apply(this,arguments)})}var a},t.resetRetrieveHandlers=function(){g.length=0,m.length=0,g=F.slice(0),m=w.slice(0),x=h(m),v=h(g)}},"./src/addVariable2Scope.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.addVariableToScope=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/util.ts"),c=r("./src/cmdOptions.ts"),l=a(r("./src/jshelpers.js")),u=r("./src/scope.ts"),_=r("./src/syntaxCheckHelper.ts"),d=r("./src/typeRecorder.ts"),p=r("./src/variable.ts");function f(e,t,r){r?function(e,t){if(t){let r=d.TypeRecorder.getInstance().tryGetTypeIndex(o.getOriginalNode(e));t.setTypeIndex(r)}}(e,t):function(e,t){if(t){let r=d.TypeRecorder.getInstance().tryGetVariable2Type(o.getOriginalNode(e));t.setTypeIndex(r)}}(e,t)}function g(e,t){let r="";e.elements.forEach((e=>{o.isOmittedExpression(e)||(o.isIdentifier(e.name)?(r=l.getTextOfIdentifierOrLiteral(e.name),t.add(r,p.VarDeclarationKind.VAR)):(0,s.isBindingPattern)(e.name)&&g(e.name,t))}))}t.addVariableToScope=function(e,t){let r=e.getScopeMap(),n=e.getHoistMap();r.forEach(((r,i)=>{let a=[];r instanceof u.VariableScope&&(function(e,t,r){if(t.addParameter("4funcObj",p.VarDeclarationKind.CONST,-1),e.kind==o.SyntaxKind.ArrowFunction?(t.addParameter("0newTarget",p.VarDeclarationKind.CONST,-1),t.addParameter("0this",p.VarDeclarationKind.CONST,0)):(t.addParameter("4newTarget",p.VarDeclarationKind.CONST,-1),t.addParameter("this",p.VarDeclarationKind.CONST,0)),e.kind!=o.SyntaxKind.SourceFile&&function(e,t,r){let n=new Array;for(let i=0;i<e.parameters.length;++i){let a=e.parameters[i],c="";(0,s.isBindingPattern)(a.name)?(n.push(a.name),c=i.toString()+"pattern"):o.isIdentifier(a.name)&&(c=l.getTextOfIdentifierOrLiteral(a.name));let u=t.addParameter(c,p.VarDeclarationKind.VAR,i+1);r&&f(a.name,u,!1)}for(let e=0;e<n.length;e++)g(n[e],t)}(e,t,r),t.getUseArgs()||c.CmdOptions.isDebugMode())if(o.isArrowFunction(e)){let e=t.getParentVariableScope();e.add("arguments",p.VarDeclarationKind.CONST,u.InitStatus.INITIALIZED),e.setUseArgs(!0),t.setUseArgs(!1)}else t.getUseArgs()&&(t.findLocal("arguments")||t.add("arguments",p.VarDeclarationKind.CONST,u.InitStatus.INITIALIZED))}(i,r,t),a=n.get(r),a&&a.forEach((e=>{let n;if(e instanceof u.VarDecl)n=r.add(e.name,p.VarDeclarationKind.VAR);else{if(!(e instanceof u.FuncDecl))throw new Error("Wrong type of declaration to be hoisted");n=r.add(e.name,p.VarDeclarationKind.FUNCTION)}t&&f(e.node,n,e instanceof u.FuncDecl)})));let d=r.getDecls(),m=r.getNearestVariableScope();a=n.get(m);for(let n=0;n<d.length;n++){let i,s=d[n];if(!a||!a.includes(s)){if(s instanceof u.LetDecl)i=r.add(s.name,p.VarDeclarationKind.LET,u.InitStatus.UNINITIALIZED);else if(s instanceof u.ConstDecl)i=r.add(s.name,p.VarDeclarationKind.CONST,u.InitStatus.UNINITIALIZED);else if(s instanceof u.FuncDecl){let t=s.node;o.isFunctionDeclaration(t)?i=r.add(s.name,p.VarDeclarationKind.FUNCTION):o.isFunctionExpression(t)&&(i=e.getScopeOfNode(t).add(s.name,p.VarDeclarationKind.FUNCTION))}else if(s instanceof u.CatchParameter)i=r.add(s.name,p.VarDeclarationKind.LET);else if(s instanceof u.ClassDecl){let t=s.node;i=o.isClassDeclaration(t)?r.add(s.name,p.VarDeclarationKind.CLASS,u.InitStatus.UNINITIALIZED):e.getScopeOfNode(t).add(s.name,p.VarDeclarationKind.CLASS,u.InitStatus.UNINITIALIZED)}else(0,_.isGlobalIdentifier)(d[n].name)&&(i=r.add(d[n].name,p.VarDeclarationKind.VAR));t&&f(s.node,i,s instanceof u.ClassDecl||s instanceof u.FuncDecl)}}}))}},"./src/assemblyDumper.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssemblyDumper=t.IntrinsicInfo=void 0;const n=r("./src/irnodes.ts"),i=r("./src/statement/tryStatement.ts"),a=r("./src/base/util.ts");t.IntrinsicInfo=class{constructor(e,t,r){this.intrinsicName=e,this.argsNum=t,this.returnType=r}};class o{constructor(e){this.labelPrefix="LABEL_",this.pg=e,this.labels=new Map,this.labelId=0,this.output=""}static writeLanguageTag(e){e.str+=".language ECMAScript\n",e.str+="\n"}writeFunctionHeader(){let e=this.pg.getParametersCount();this.output+=".function any "+this.pg.internalName+"(";for(let t=0;t<e;++t)this.output+="any a"+t.toString(),t!==e-1&&(this.output+=", ");this.output+=") {\n"}writeFunctionBody(){let e=this.pg.getInsns(),t=this.pg.getParametersCount();for(let r=0;r<t;++r){let t=e[r];this.output+="\t",this.output+=t.getMnemonic()+" v"+t.operands[0].num+", a"+t.operands[0].num+"\n"}for(let i=t;i<e.length;++i){let t=e[i];if(t.kind===n.IRNodeKind.VREG||t.kind===n.IRNodeKind.IMM)continue;if(t.kind===n.IRNodeKind.LABEL){this.writeLabel(t);continue}this.output+="\t",this.output+=t.getMnemonic()+" ";let o=t.operands,s=t.getFormats();var r=(0,a.getRangeExplicitVregNums)(t);for(let e=0;e<o.length&&0!=r;++e){let i=s[0][e][0],c=o[e];if(i==n.OperandKind.Imm){let e=c;this.output+=e.value.toString()}else if(i==n.OperandKind.Id)this.output+=c;else if(i==n.OperandKind.StringId){let e=c.toString().replace(/\\/g,"\\\\").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\"/g,'\\"');this.output+='"'+e+'"'}else if(i==n.OperandKind.DstVReg||i==n.OperandKind.SrcDstVReg||i==n.OperandKind.SrcVReg){let e=c;if(e.num<0)throw Error("invalid register, please check your insn!\n");if(this.output+="v"+e.num.toString(),(0,a.isRangeInst)(t)){r--;continue}}else{if(i!=n.OperandKind.Label)throw new Error("Unexpected OperandKind");this.output+=this.getLabelName(c)}e<o.length-1&&(this.output+=", ")}this.output+="\n"}}writeFunctionTail(){this.output+="}\n"}writeFunctionCatchTable(){let e=(0,i.generateCatchTables)(this.pg.getCatchMap());0!=e.length&&(this.output+="\n",e.forEach((e=>{let t=e.getCatchBeginLabel();e.getLabelPairs().forEach((e=>{this.output+=".catchall "+this.getLabelName(e.getBeginLabel())+", "+this.getLabelName(e.getEndLabel())+", "+this.getLabelName(t)+"\n"}))})))}getLabelName(e){let t;return this.labels.has(e.id)?t=this.labels.get(e.id):(t=this.labelPrefix+this.labelId++,this.labels.set(e.id,t)),t}writeLabel(e){let t=this.getLabelName(e);this.output+=t+":\n"}dump(){this.writeFunctionHeader(),this.writeFunctionBody(),this.writeFunctionCatchTable(),this.writeFunctionTail(),console.log(this.output)}static dumpHeader(){let e={str:""};o.writeLanguageTag(e),console.log(e.str)}}t.AssemblyDumper=o,o.intrinsicRec=new Map},"./src/astutils.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getVarDeclarationKind=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/variable.ts");t.getVarDeclarationKind=function(e){if(e.parent.kind==o.SyntaxKind.VariableDeclarationList){let t=e.parent;return 0!=(t.flags&o.NodeFlags.Let)?s.VarDeclarationKind.LET:0!=(t.flags&o.NodeFlags.Const)?s.VarDeclarationKind.CONST:s.VarDeclarationKind.VAR}if(e.parent.kind==o.SyntaxKind.CatchClause)return s.VarDeclarationKind.LET;throw new Error("VariableDeclaration inside "+o.SyntaxKind[e.parent]+" is not implemented")}},"./src/base/bcGenUtil.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwObjectNonCoercible=t.createObjectWithExcludedKeys=t.defineClassWithBuffer=t.storeArraySpread=t.createArrayWithBuffer=t.createEmptyArray=t.defineGetterSetterByValue=t.copyDataProperties=t.setObjectWithProto=t.createObjectWithBuffer=t.createObjectHavingMethod=t.createEmptyObject=t.returnUndefined=t.getNextPropName=t.getPropIterator=t.newObject=t.call=t.throwIfSuperNotCorrectCall=t.storeOwnByValue=t.storeOwnByIndex=t.storeOwnByName=t.storeObjByValue=t.loadObjByValue=t.storeObjByIndex=t.loadObjByIndex=t.storeObjByName=t.loadObjByName=t.storeGlobalVar=t.loadGlobalVar=t.tryStoreGlobalByName=t.tryLoadGlobalByName=t.storeLexicalVar=t.loadLexicalVar=t.popLexicalEnv=t.loadLexicalEnv=t.newLexicalEnv=t.throwDeleteSuperProperty=t.throwThrowNotExists=t.throwUndefinedIfHole=t.throwConstAssignment=t.throwException=t.creatDebugger=t.jumpTarget=t.moveVreg=t.deleteObjProperty=t.storeAccumulator=t.loadAccumulator=t.loadAccumulatorString=t.loadAccumulatorFloat=t.loadAccumulatorInt=void 0,t.loadAccumulatorBigInt=t.stClassToGlobalRecord=t.stConstToGlobalRecord=t.stLetToGlobalRecord=t.createRegExpWithLiteral=t.isFalse=t.isTrue=t.defineMethod=t.defineNCFunc=t.defineGeneratorFunc=t.defineAsyncFunc=t.defineFunc=t.loadHomeObject=t.copyModuleIntoCurrentModule=t.storeModuleVariable=t.loadModuleVarByName=t.importModule=t.ldSuperByValue=t.stSuperByValue=t.stSuperByName=t.ldSuperByName=t.superCallSpread=t.superCall=t.closeIterator=t.getIteratorNext=t.getIterator=t.throwIfNotObject=void 0;const n=r("./src/irnodes.ts");t.loadAccumulatorInt=function(e){return new n.LdaiDyn(new n.Imm(e))},t.loadAccumulatorFloat=function(e){return new n.FldaiDyn(new n.Imm(e))},t.loadAccumulatorString=function(e){return new n.LdaStr(e)},t.loadAccumulator=function(e){return new n.LdaDyn(e)},t.storeAccumulator=function(e){return new n.StaDyn(e)},t.deleteObjProperty=function(e,t){return new n.EcmaDelobjprop(e,t)},t.moveVreg=function(e,t){return new n.MovDyn(e,t)},t.jumpTarget=function(e){return new n.Jmp(e)},t.creatDebugger=function(){return new n.EcmaDebugger},t.throwException=function(){return new n.EcmaThrowdyn},t.throwConstAssignment=function(e){return new n.EcmaThrowconstassignment(e)},t.throwUndefinedIfHole=function(e,t){return new n.EcmaThrowundefinedifhole(e,t)},t.throwThrowNotExists=function(){return new n.EcmaThrowthrownotexists},t.throwDeleteSuperProperty=function(){return new n.EcmaThrowdeletesuperproperty},t.newLexicalEnv=function(e,t){return null==t?new n.EcmaNewlexenvdyn(new n.Imm(e)):new n.EcmaNewlexenvwithnamedyn(new n.Imm(e),new n.Imm(t))},t.loadLexicalEnv=function(){return new n.EcmaLdlexenvdyn},t.popLexicalEnv=function(){return new n.EcmaPoplexenvdyn},t.loadLexicalVar=function(e,t){return new n.EcmaLdlexvardyn(new n.Imm(e),new n.Imm(t))},t.storeLexicalVar=function(e,t,r){return new n.EcmaStlexvardyn(new n.Imm(e),new n.Imm(t),r)},t.tryLoadGlobalByName=function(e){return new n.EcmaTryldglobalbyname(e)},t.tryStoreGlobalByName=function(e){return new n.EcmaTrystglobalbyname(e)},t.loadGlobalVar=function(e){return new n.EcmaLdglobalvar(e)},t.storeGlobalVar=function(e){return new n.EcmaStglobalvar(e)},t.loadObjByName=function(e,t){return new n.EcmaLdobjbyname(t,e)},t.storeObjByName=function(e,t){return new n.EcmaStobjbyname(t,e)},t.loadObjByIndex=function(e,t){return new n.EcmaLdobjbyindex(e,new n.Imm(t))},t.storeObjByIndex=function(e,t){return new n.EcmaStobjbyindex(e,new n.Imm(t))},t.loadObjByValue=function(e,t){return new n.EcmaLdobjbyvalue(e,t)},t.storeObjByValue=function(e,t){return new n.EcmaStobjbyvalue(e,t)},t.storeOwnByName=function(e,t,r){return r?new n.EcmaStownbynamewithnameset(t,e):new n.EcmaStownbyname(t,e)},t.storeOwnByIndex=function(e,t){return new n.EcmaStownbyindex(e,new n.Imm(t))},t.storeOwnByValue=function(e,t,r){return r?new n.EcmaStownbyvaluewithnameset(e,t):new n.EcmaStownbyvalue(e,t)},t.throwIfSuperNotCorrectCall=function(e){return new n.EcmaThrowifsupernotcorrectcall(new n.Imm(e))},t.call=function(e,t){let r,i=e.length;if(t)r=new n.EcmaCallithisrangedyn(new n.Imm(i-1),e);else switch(i){case 1:r=new n.EcmaCallarg0dyn(e[0]);break;case 2:r=new n.EcmaCallarg1dyn(e[0],e[1]);break;case 3:r=new n.EcmaCallargs2dyn(e[0],e[1],e[2]);break;case 4:r=new n.EcmaCallargs3dyn(e[0],e[1],e[2],e[3]);break;default:r=new n.EcmaCallirangedyn(new n.Imm(i-1),e)}return r},t.newObject=function(e){return new n.EcmaNewobjdynrange(new n.Imm(e.length),e)},t.getPropIterator=function(){return new n.EcmaGetpropiterator},t.getNextPropName=function(e){return new n.EcmaGetnextpropname(e)},t.returnUndefined=function(){return new n.EcmaReturnundefined},t.createEmptyObject=function(){return new n.EcmaCreateemptyobject},t.createObjectHavingMethod=function(e){return new n.EcmaCreateobjecthavingmethod(new n.Imm(e))},t.createObjectWithBuffer=function(e){return new n.EcmaCreateobjectwithbuffer(new n.Imm(e))},t.setObjectWithProto=function(e,t){return new n.EcmaSetobjectwithproto(e,t)},t.copyDataProperties=function(e,t){return new n.EcmaCopydataproperties(e,t)},t.defineGetterSetterByValue=function(e,t,r,i){return new n.EcmaDefinegettersetterbyvalue(e,t,r,i)},t.createEmptyArray=function(){return new n.EcmaCreateemptyarray},t.createArrayWithBuffer=function(e){return new n.EcmaCreatearraywithbuffer(new n.Imm(e))},t.storeArraySpread=function(e,t){return new n.EcmaStarrayspread(e,t)},t.defineClassWithBuffer=function(e,t,r,i,a){return new n.EcmaDefineclasswithbuffer(e,new n.Imm(t),new n.Imm(r),i,a)},t.createObjectWithExcludedKeys=function(e,t){return new n.EcmaCreateobjectwithexcludedkeys(new n.Imm(t.length-1),e,t)},t.throwObjectNonCoercible=function(){return new n.EcmaThrowpatternnoncoercible},t.throwIfNotObject=function(e){return new n.EcmaThrowifnotobject(e)},t.getIterator=function(){return new n.EcmaGetiterator},t.getIteratorNext=function(e,t){return new n.EcmaGetiteratornext(e,t)},t.closeIterator=function(e){return new n.EcmaCloseiterator(e)},t.superCall=function(e,t){return new n.EcmaSupercall(new n.Imm(e),t)},t.superCallSpread=function(e){return new n.EcmaSupercallspread(e)},t.ldSuperByName=function(e,t){return new n.EcmaLdsuperbyname(t,e)},t.stSuperByName=function(e,t){return new n.EcmaStsuperbyname(t,e)},t.stSuperByValue=function(e,t){return new n.EcmaStsuperbyvalue(e,t)},t.ldSuperByValue=function(e,t){return new n.EcmaLdsuperbyvalue(e,t)},t.importModule=function(e){return new n.EcmaImportmodule(e)},t.loadModuleVarByName=function(e,t){return new n.EcmaLdmodvarbyname(e,t)},t.storeModuleVariable=function(e){return new n.EcmaStmodulevar(e)},t.copyModuleIntoCurrentModule=function(e){return new n.EcmaCopymodule(e)},t.loadHomeObject=function(){return new n.EcmaLdhomeobject},t.defineFunc=function(e,t,r){return new n.EcmaDefinefuncdyn(e,new n.Imm(r),t)},t.defineAsyncFunc=function(e,t,r){return new n.EcmaDefineasyncfunc(e,new n.Imm(r),t)},t.defineGeneratorFunc=function(e,t,r){return new n.EcmaDefinegeneratorfunc(e,new n.Imm(r),t)},t.defineNCFunc=function(e,t,r){return new n.EcmaDefinencfuncdyn(e,new n.Imm(r),t)},t.defineMethod=function(e,t,r){return new n.EcmaDefinemethod(e,new n.Imm(r),t)},t.isTrue=function(){return new n.EcmaIstrue},t.isFalse=function(){return new n.EcmaIsfalse},t.createRegExpWithLiteral=function(e,t){return new n.EcmaCreateregexpwithliteral(e,new n.Imm(t))},t.stLetToGlobalRecord=function(e){return new n.EcmaStlettoglobalrecord(e)},t.stConstToGlobalRecord=function(e){return new n.EcmaStconsttoglobalrecord(e)},t.stClassToGlobalRecord=function(e){return new n.EcmaStclasstoglobalrecord(e)},t.loadAccumulatorBigInt=function(e){return new n.EcmaLdbigint(e)}},"./src/base/builtIn.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expandFunc=t.expandFalse=t.expandTrue=t.expandNull=t.expandSymbol=t.expandUndefined=t.expandGlobal=t.expandInfinity=t.expandNaN=t.expandHole=void 0;const n=r("./src/irnodes.ts"),i=r("./src/base/vregisterCache.ts");t.expandHole=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.HOLE);return[new n.EcmaLdhole,new n.StaDyn(t)]},t.expandNaN=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.NaN);return[new n.EcmaLdnan,new n.StaDyn(t)]},t.expandInfinity=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.Infinity);return[new n.EcmaLdinfinity,new n.StaDyn(t)]},t.expandGlobal=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.Global);return[new n.EcmaLdglobal,new n.StaDyn(t)]},t.expandUndefined=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.undefined);return[new n.EcmaLdundefined,new n.StaDyn(t)]},t.expandSymbol=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.Symbol);return[new n.EcmaLdsymbol,new n.StaDyn(t)]},t.expandNull=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.Null);return[new n.EcmaLdnull,new n.StaDyn(t)]},t.expandTrue=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.True);return[new n.EcmaLdtrue,new n.StaDyn(t)]},t.expandFalse=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.False);return[new n.EcmaLdfalse,new n.StaDyn(t)]},t.expandFunc=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.FUNC);return[new n.EcmaLdfunction,new n.StaDyn(t)]}},"./src/base/iterator.ts":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Iterator=void 0,t.Iterator=class{constructor(e,t,r,n,i){this.iterRecord=e,this.iterDone=t,this.iterValue=r,this.pandaGen=n,this.node=i}getIterator(){let e=this.pandaGen,t=this.iterRecord.iterator;e.getIterator(this.node),e.storeAccumulator(this.node,t),e.loadObjProperty(this.node,t,"next"),e.storeAccumulator(this.node,this.iterRecord.nextMethod)}callNext(e){this.pandaGen.getIteratorNext(this.node,this.iterRecord.iterator,this.iterRecord.nextMethod),this.pandaGen.storeAccumulator(this.node,e)}iteratorComplete(e){this.pandaGen.loadObjProperty(this.node,e,"done"),this.pandaGen.storeAccumulator(this.node,this.iterDone)}iteratorValue(e){this.pandaGen.loadObjProperty(this.node,e,"value"),this.pandaGen.storeAccumulator(this.node,this.iterValue)}close(){this.pandaGen.closeIterator(this.node,this.iterRecord.iterator)}getCurrentValue(){return this.iterValue}getCurrrentDone(){return this.iterDone}}},"./src/base/lexEnv.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expandLexEnv=void 0;const n=r("./src/cmdOptions.ts"),i=r("./src/base/bcGenUtil.ts"),a=r("./src/base/vregisterCache.ts");t.expandLexEnv=function(e){let t,r=e.getScope().getNearestVariableScope();if(!r)throw new Error("pandagen must have one variable scope");return t=r.need2CreateLexEnv()?function(e,t){let r,o=t.getNumLexEnv(),s=[],c=t.getLexVarInfo();return n.CmdOptions.isDebugMode()&&(r=e.appendScopeInfo(c)),s.push((0,i.newLexicalEnv)(o,r),(0,i.storeAccumulator)((0,a.getVregisterCache)(e,a.CacheList.LexEnv))),s}(e,r):function(e){let t=[];return t.push((0,i.loadLexicalEnv)(),(0,i.storeAccumulator)((0,a.getVregisterCache)(e,a.CacheList.LexEnv))),t}(e),t}},"./src/base/literal.ts":(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LiteralBuffer=t.Literal=t.LiteralTag=void 0,(r=t.LiteralTag||(t.LiteralTag={}))[r.BOOLEAN=1]="BOOLEAN",r[r.INTEGER=2]="INTEGER",r[r.DOUBLE=4]="DOUBLE",r[r.STRING=5]="STRING",r[r.METHOD=6]="METHOD",r[r.GENERATOR=7]="GENERATOR",r[r.ACCESSOR=8]="ACCESSOR",r[r.METHODAFFILIATE=9]="METHODAFFILIATE",r[r.NULLVALUE=255]="NULLVALUE",t.Literal=class{constructor(e,t){this.t=e,this.v=t}getTag(){return this.t}getValue(){return this.v}},t.LiteralBuffer=class{constructor(){this.lb=[]}addLiterals(...e){this.lb.push(...e)}getLiterals(){return this.lb}isEmpty(){return 0==this.lb.length}getLiteral(e){if(!(e>=this.lb.length||this.lb.length<=0))return this.lb[e]}}},"./src/base/lreference.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.LReference=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/compilerUtils.ts"),c=r("./src/diagnostic.ts"),l=r("./src/expression/memberAccessExpression.ts"),u=r("./src/expression/parenthesizedExpression.ts"),_=r("./src/irnodes.ts"),d=a(r("./src/jshelpers.js")),p=r("./src/variable.ts"),f=r("./src/base/util.ts");var g;!function(e){e[e.MemberAccess=0]="MemberAccess",e[e.LocalOrGlobal=1]="LocalOrGlobal",e[e.Destructuring=2]="Destructuring"}(g||(g={}));class m{constructor(e,t,r,n,i){this.obj=void 0,this.prop=void 0,this.propLiteral=void 0,this.node=e,this.compiler=t,this.isDeclaration=r,this.refKind=n,n==g.Destructuring?this.destructuringTarget=e:n==g.LocalOrGlobal?this.variable=i:n==g.MemberAccess&&(this.obj=t.getPandaGen().getTemp(),this.prop=t.getPandaGen().getTemp())}getValue(){let e=this.compiler.getPandaGen();switch(this.refKind){case g.MemberAccess:let t;return t=void 0===this.propLiteral?this.prop:this.propLiteral,void e.loadObjProperty(this.node,this.obj,t);case g.LocalOrGlobal:return void this.compiler.loadTarget(this.node,this.variable);case g.Destructuring:throw new Error("Destructuring target can't be loaded");default:throw new Error("Invalid LReference kind to GetValue")}}setValue(){let e=this.compiler.getPandaGen();switch(this.refKind){case g.MemberAccess:{let t;if(t=void 0===this.propLiteral?this.prop:this.propLiteral,d.isSuperProperty(this.node)){let r=e.getTemp();this.compiler.getThis(this.node,r),e.storeSuperProperty(this.node,r,t),e.freeTemps(r)}else e.storeObjProperty(this.node,this.obj,t);return void e.freeTemps(this.obj,this.prop)}case g.LocalOrGlobal:return void this.compiler.storeTarget(this.node,this.variable,this.isDeclaration);case g.Destructuring:return void(0,s.compileDestructuring)(this.destructuringTarget,e,this.compiler);default:throw new Error("Invalid LReference kind to SetValue")}}setObjectAndProperty(e,t,r){d.isSuperProperty(this.node)||e.moveVreg(this.node,this.obj,t),r instanceof _.VReg?e.moveVreg(this.node,this.prop,r):this.propLiteral=r}static generateLReference(e,t,r){let n=e.getPandaGen(),i=t;if(o.isParenthesizedExpression(t)&&(i=(0,u.findInnerExprOfParenthesis)(t)),o.isIdentifier(i)){let t=d.getTextOfIdentifierOrLiteral(i),n=e.getCurrentScope().find(t);return n.v||(n.v=e.getCurrentScope().add(t,p.VarDeclarationKind.NONE)),new m(i,e,r,g.LocalOrGlobal,n)}if(o.isPropertyAccessExpression(i)||o.isElementAccessExpression(i)){let t=new m(i,e,!1,g.MemberAccess,void 0),r=n.getTemp(),a=n.getTemp(),{obj:o,prop:s}=(0,l.getObjAndProp)(i,r,a,e);return t.setObjectAndProperty(n,o,s),n.freeTemps(r,a),t}if(o.isVariableDeclarationList(i)){let t=i.declarations;if(1!=t.length)throw new Error("Malformed variable declaration");return m.generateLReference(e,t[0].name,!0)}if((0,f.isBindingOrAssignmentPattern)(i))return new m(i,e,r,g.Destructuring,void 0);throw new c.DiagnosticError(t,c.DiagnosticCode.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)}}t.LReference=m},"./src/base/properties.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getPropName=t.propertyKeyAsString=t.isConstantExpr=t.generatePropertyFromExpr=t.Property=t.PropertyKind=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/expression/memberAccessExpression.ts"),c=a(r("./src/jshelpers.js"));var l;!function(e){e[e.Variable=0]="Variable",e[e.Constant=1]="Constant",e[e.Computed=2]="Computed",e[e.Prototype=3]="Prototype",e[e.Accessor=4]="Accessor",e[e.Spread=5]="Spread"}(l=t.PropertyKind||(t.PropertyKind={}));class u{constructor(e,t){this.compiled=!1,this.redeclared=!1,this.propKind=e,void 0!==t&&(this.name=t)}setCompiled(){this.compiled=!0}setRedeclared(){this.redeclared=!0}isCompiled(){return this.compiled}isRedeclared(){return this.redeclared}getName(){if(void 0===this.name)throw new Error("this property doesn't have a name");return this.name}getKind(){return this.propKind}getValue(){if(this.propKind==l.Accessor)throw new Error("Accessor doesn't have valueNode");return this.valueNode}getGetter(){return this.getterNode}getSetter(){return this.setterNode}setValue(e){this.valueNode=e,this.getterNode=void 0,this.setterNode=void 0}setGetter(e){this.propKind!=l.Accessor&&(this.valueNode=void 0,this.setterNode=void 0,this.propKind=l.Accessor),this.getterNode=e}setSetter(e){this.propKind!=l.Accessor&&(this.valueNode=void 0,this.getterNode=void 0,this.propKind=l.Accessor),this.setterNode=e}setKind(e){this.propKind=e}}function _(e,t,r,n,i){if(r==l.Computed||r==l.Spread){let i=new u(r,e);i.setValue(t),n.push(i)}else{let a=new u(r,e),s=p(e);if(i.has(s)){let e=n[i.get(s)];if(!(e.getKind()!=l.Accessor&&e.getKind()!=l.Constant||r!=l.Accessor&&r!=l.Constant))return void(r==l.Accessor?o.isGetAccessorDeclaration(t)?e.setGetter(t):o.isSetAccessorDeclaration(t)&&e.setSetter(t):(e.setValue(t),e.setKind(l.Constant)));a.setRedeclared()}i.set(s,n.length),r==l.Accessor?o.isGetAccessorDeclaration(t)?a.setGetter(t):o.isSetAccessorDeclaration(t)&&a.setSetter(t):a.setValue(t),n.push(a)}}function d(e){switch(e.kind){case o.SyntaxKind.StringLiteral:case o.SyntaxKind.NumericLiteral:case o.SyntaxKind.NullKeyword:case o.SyntaxKind.TrueKeyword:case o.SyntaxKind.FalseKeyword:return!0;default:return!1}}function p(e){return"number"==typeof e?e.toString():e}function f(e){if(o.isComputedPropertyName(e))return e;let t=c.getTextOfIdentifierOrLiteral(e);if(e.kind==o.SyntaxKind.NumericLiteral)t=Number.parseFloat(t),(0,s.isValidIndex)(t)||(t=t.toString());else if(e.kind==o.SyntaxKind.StringLiteral){let e=Number(t);isNaN(Number.parseFloat(t))||isNaN(e)||!(0,s.isValidIndex)(e)||String(e)!=t||(t=e)}return t}t.Property=u,t.generatePropertyFromExpr=function(e){let t=!1,r=[],n=new Map;return e.properties.forEach((e=>{switch(e.kind){case o.SyntaxKind.PropertyAssignment:{if(e.name.kind==o.SyntaxKind.ComputedPropertyName){_(e.name,e,l.Computed,r,n);break}let i=f(e.name);if("__proto__"==i){if(t)throw new Error("__proto__ was set multiple times in the object definition.");_(i,e.initializer,l.Prototype,r,n),t=!0;break}d(e.initializer)?_(i,e.initializer,l.Constant,r,n):_(i,e.initializer,l.Variable,r,n);break}case o.SyntaxKind.ShorthandPropertyAssignment:_(c.getTextOfIdentifierOrLiteral(e.name),e.name,l.Variable,r,n);break;case o.SyntaxKind.SpreadAssignment:_(void 0,e.expression,l.Spread,r,n);break;case o.SyntaxKind.MethodDeclaration:{let t=f(e.name);_(t,e,"string"==typeof t||"number"==typeof t?l.Variable:l.Computed,r,n);break}case o.SyntaxKind.GetAccessor:case o.SyntaxKind.SetAccessor:{let t=f(e.name);_(t,e,"string"==typeof t||"number"==typeof t?l.Accessor:l.Computed,r,n);break}default:throw new Error("Unreachable Kind")}})),r},t.isConstantExpr=d,t.propertyKeyAsString=p,t.getPropName=f},"./src/base/typeSystem.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.InterfaceType=t.ObjectType=t.ArrayType=t.UnionType=t.ExternalType=t.FunctionType=t.ClassInstType=t.ClassType=t.TypeSummary=t.PlaceHolderType=t.BaseType=t.AccessFlag=t.ModifierReadonly=t.ModifierStatic=t.ModifierAbstract=t.L2Type=t.PrimitiveType=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/pandagen.ts"),l=r("./src/typeChecker.ts"),u=r("./src/typeRecorder.ts"),_=r("./src/base/literal.ts");var d,p,f,g,m,y;!function(e){e[e.ANY=0]="ANY",e[e.NUMBER=1]="NUMBER",e[e.BOOLEAN=2]="BOOLEAN",e[e.VOID=3]="VOID",e[e.STRING=4]="STRING",e[e.SYMBOL=5]="SYMBOL",e[e.NULL=6]="NULL",e[e.UNDEFINED=7]="UNDEFINED",e[e.INT=8]="INT",e[e._LENGTH=50]="_LENGTH"}(d=t.PrimitiveType||(t.PrimitiveType={})),function(e){e[e._COUNTER=0]="_COUNTER",e[e.CLASS=1]="CLASS",e[e.CLASSINST=2]="CLASSINST",e[e.FUNCTION=3]="FUNCTION",e[e.UNION=4]="UNION",e[e.ARRAY=5]="ARRAY",e[e.OBJECT=6]="OBJECT",e[e.EXTERNAL=7]="EXTERNAL",e[e.INTERFACE=8]="INTERFACE"}(p=t.L2Type||(t.L2Type={})),function(e){e[e.NONABSTRACT=0]="NONABSTRACT",e[e.ABSTRACT=1]="ABSTRACT"}(f=t.ModifierAbstract||(t.ModifierAbstract={})),function(e){e[e.NONSTATIC=0]="NONSTATIC",e[e.STATIC=1]="STATIC"}(g=t.ModifierStatic||(t.ModifierStatic={})),function(e){e[e.NONREADONLY=0]="NONREADONLY",e[e.READONLY=1]="READONLY"}(m=t.ModifierReadonly||(t.ModifierReadonly={})),function(e){e[e.PUBLIC=0]="PUBLIC",e[e.PRIVATE=1]="PRIVATE",e[e.PROTECTED=2]="PROTECTED"}(y=t.AccessFlag||(t.AccessFlag={}));class h{constructor(){this.typeChecker=l.TypeChecker.getInstance(),this.typeRecorder=u.TypeRecorder.getInstance()}addCurrentType(e,t){this.typeRecorder.addType2Index(e,t)}setVariable2Type(e,t){this.typeRecorder.setVariable2Type(e,t)}tryGetTypeIndex(e){return this.typeRecorder.tryGetTypeIndex(e)}getOrCreateRecordForDeclNode(e,t){return this.typeChecker.getOrCreateRecordForDeclNode(e,t)}getOrCreateRecordForTypeNode(e,t){return this.typeChecker.getOrCreateRecordForTypeNode(e,t)}getIndexFromTypeArrayBuffer(e){return c.PandaGen.appendTypeArrayBuffer(e)}setTypeArrayBuffer(e,t){c.PandaGen.setTypeArrayBuffer(e,t)}}t.BaseType=h;class v extends h{transfer2LiteralBuffer(){return new _.LiteralBuffer}}t.PlaceHolderType=v,t.TypeSummary=class extends h{constructor(){super(),this.preservedIndex=0,this.userDefinedClassNum=0,this.anonymousRedirect=new Array,this.preservedIndex=this.getIndexFromTypeArrayBuffer(new v)}setInfo(e,t){this.userDefinedClassNum=e,this.anonymousRedirect=t,this.setTypeArrayBuffer(this,this.preservedIndex)}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;t.push(new _.Literal(_.LiteralTag.INTEGER,p._COUNTER)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.userDefinedClassNum)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.anonymousRedirect.length));for(let e of this.anonymousRedirect)t.push(new _.Literal(_.LiteralTag.STRING,e));return e.addLiterals(...t),e}},t.ClassType=class extends h{constructor(e){super(),this.modifier=f.NONABSTRACT,this.extendsHeritage=d.ANY,this.implementsHeritages=new Array,this.staticFields=new Map,this.staticMethods=new Map,this.fields=new Map,this.methods=new Map,this.typeIndex=this.getIndexFromTypeArrayBuffer(new v),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.addCurrentType(e,this.shiftedTypeIndex),this.fillInModifiers(e),this.fillInHeritages(e),this.fillInFieldsAndMethods(e),this.setTypeArrayBuffer(this,this.typeIndex)}fillInModifiers(e){if(e.modifiers)for(let t of e.modifiers)t.kind===o.SyntaxKind.AbstractKeyword&&(this.modifier=f.ABSTRACT)}fillInHeritages(e){if(e.heritageClauses)for(let t of e.heritageClauses){let e=t.getText();for(let r of t.types){let t=r.expression,n=this.getOrCreateRecordForDeclNode(t,t);e.startsWith("extends ")?this.extendsHeritage=n:e.startsWith("implements ")&&this.implementsHeritages.push(n)}}}fillInFields(e){let t=s.getTextOfIdentifierOrLiteral(e.name),r=Array(d.ANY,y.PUBLIC,m.NONREADONLY),n=!1;if(e.modifiers)for(let t of e.modifiers)switch(t.kind){case o.SyntaxKind.StaticKeyword:n=!0;break;case o.SyntaxKind.PrivateKeyword:r[1]=y.PRIVATE;break;case o.SyntaxKind.ProtectedKeyword:r[1]=y.PROTECTED;break;case o.SyntaxKind.ReadonlyKeyword:r[2]=m.READONLY}let i=e.type,a=e.name;r[0]=this.getOrCreateRecordForTypeNode(i,a),n?this.staticFields.set(t,r):this.fields.set(t,r)}fillInMethods(e){let t=e.name?e.name:void 0,r=new b(e);t&&this.setVariable2Type(t,r.shiftedTypeIndex);let n=this.tryGetTypeIndex(e);r.getModifier()?this.staticMethods.set(r.getFunctionName(),n):this.methods.set(r.getFunctionName(),n)}fillInFieldsAndMethods(e){if(e.members)for(let t of e.members)switch(t.kind){case o.SyntaxKind.MethodDeclaration:case o.SyntaxKind.Constructor:case o.SyntaxKind.GetAccessor:case o.SyntaxKind.SetAccessor:this.fillInMethods(t);break;case o.SyntaxKind.PropertyDeclaration:this.fillInFields(t)}}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.CLASS)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.modifier)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.extendsHeritage)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.implementsHeritages.length)),this.implementsHeritages.forEach((e=>{t.push(new _.Literal(_.LiteralTag.INTEGER,e))})),this.transferFields2Literal(t,!1),this.transferMethods2Literal(t,!1),this.transferFields2Literal(t,!0),this.transferMethods2Literal(t,!0),e.addLiterals(...t),e}transferFields2Literal(e,t){let r=t?this.staticFields:this.fields;e.push(new _.Literal(_.LiteralTag.INTEGER,r.size)),r.forEach(((t,r)=>{e.push(new _.Literal(_.LiteralTag.STRING,r)),e.push(new _.Literal(_.LiteralTag.INTEGER,t[0])),e.push(new _.Literal(_.LiteralTag.INTEGER,t[1])),e.push(new _.Literal(_.LiteralTag.INTEGER,t[2]))}))}transferMethods2Literal(e,t){let r=t?this.staticMethods:this.methods;e.push(new _.Literal(_.LiteralTag.INTEGER,r.size)),r.forEach(((t,r)=>{e.push(new _.Literal(_.LiteralTag.STRING,r)),e.push(new _.Literal(_.LiteralTag.INTEGER,t))}))}},t.ClassInstType=class extends h{constructor(e){super(),this.shiftedReferredClassIndex=e,this.typeIndex=this.getIndexFromTypeArrayBuffer(this),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.typeRecorder.setClass2InstanceMap(this.shiftedReferredClassIndex,this.shiftedTypeIndex)}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.CLASSINST)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.shiftedReferredClassIndex)),e.addLiterals(...t),e}};class b extends h{constructor(e){super(),this.name="",this.accessFlag=y.PUBLIC,this.modifierStatic=g.NONSTATIC,this.parameters=new Array,this.returnType=d.ANY,this.typeIndex=this.getIndexFromTypeArrayBuffer(new v),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.addCurrentType(e,this.shiftedTypeIndex),e.name?this.name=s.getTextOfIdentifierOrLiteral(e.name):this.name="constructor",this.fillInModifiers(e),this.fillInParameters(e),this.fillInReturn(e),this.setTypeArrayBuffer(this,this.typeIndex)}getFunctionName(){return this.name}fillInModifiers(e){if(e.modifiers)for(let t of e.modifiers)switch(t.kind){case o.SyntaxKind.PrivateKeyword:this.accessFlag=y.PRIVATE;break;case o.SyntaxKind.ProtectedKeyword:this.accessFlag=y.PROTECTED;break;case o.SyntaxKind.StaticKeyword:this.modifierStatic=g.STATIC}}fillInParameters(e){if(e.parameters)for(let t of e.parameters){let e=t.type,r=t.name,n=this.getOrCreateRecordForTypeNode(e,r);this.parameters.push(n)}}fillInReturn(e){let t=e.type,r=this.getOrCreateRecordForTypeNode(t,t);this.returnType=r}getModifier(){return this.modifierStatic}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.FUNCTION)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.accessFlag)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.modifierStatic)),t.push(new _.Literal(_.LiteralTag.STRING,this.name)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.parameters.length)),this.parameters.forEach((e=>{t.push(new _.Literal(_.LiteralTag.INTEGER,e))})),t.push(new _.Literal(_.LiteralTag.INTEGER,this.returnType)),e.addLiterals(...t),e}}t.FunctionType=b,t.ExternalType=class extends h{constructor(e,t){super(),this.fullRedirectNath=`#${e}#${t}`,this.typeIndex=this.getIndexFromTypeArrayBuffer(this),this.shiftedTypeIndex=this.typeIndex+d._LENGTH}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.EXTERNAL)),t.push(new _.Literal(_.LiteralTag.STRING,this.fullRedirectNath)),e.addLiterals(...t),e}},t.UnionType=class extends h{constructor(e){super(),this.unionedTypeArray=[],this.typeIndex=d.ANY,this.shiftedTypeIndex=d.ANY,this.setOrReadFromArrayRecord(e)}setOrReadFromArrayRecord(e){let t=e.getText();this.hasUnionTypeMapping(t)?this.shiftedTypeIndex=this.getFromUnionTypeMap(t):(this.typeIndex=this.getIndexFromTypeArrayBuffer(new v),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.fillInUnionArray(e,this.unionedTypeArray),this.setUnionTypeMap(t,this.shiftedTypeIndex),this.setTypeArrayBuffer(this,this.typeIndex))}hasUnionTypeMapping(e){return this.typeRecorder.hasUnionTypeMapping(e)}getFromUnionTypeMap(e){return this.typeRecorder.getFromUnionTypeMap(e)}setUnionTypeMap(e,t){return this.typeRecorder.setUnionTypeMap(e,t)}fillInUnionArray(e,t){for(let r of e.types){let e=r,n=this.getOrCreateRecordForTypeNode(e,e);t.push(n)}}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;t.push(new _.Literal(_.LiteralTag.INTEGER,p.UNION)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.unionedTypeArray.length));for(let e of this.unionedTypeArray)t.push(new _.Literal(_.LiteralTag.INTEGER,e));return e.addLiterals(...t),e}},t.ArrayType=class extends h{constructor(e){super(),this.referedTypeIndex=d.ANY,this.typeIndex=d.ANY,this.shiftedTypeIndex=d.ANY;let t=e.elementType;this.referedTypeIndex=this.getOrCreateRecordForTypeNode(t,t),this.setOrReadFromArrayRecord()}setOrReadFromArrayRecord(){this.hasArrayTypeMapping(this.referedTypeIndex)?this.shiftedTypeIndex=this.getFromArrayTypeMap(this.referedTypeIndex):(this.typeIndex=this.getIndexFromTypeArrayBuffer(this),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.setTypeArrayBuffer(this,this.typeIndex),this.setArrayTypeMap(this.referedTypeIndex,this.shiftedTypeIndex))}hasArrayTypeMapping(e){return this.typeRecorder.hasArrayTypeMapping(e)}getFromArrayTypeMap(e){return this.typeRecorder.getFromArrayTypeMap(e)}setArrayTypeMap(e,t){return this.typeRecorder.setArrayTypeMap(e,t)}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.ARRAY)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.referedTypeIndex)),e.addLiterals(...t),e}},t.ObjectType=class extends h{constructor(e){super(),this.properties=new Map,this.typeIndex=d.ANY,this.shiftedTypeIndex=d.ANY,this.typeIndex=this.getIndexFromTypeArrayBuffer(new v),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.fillInMembers(e),this.setTypeArrayBuffer(this,this.typeIndex)}fillInMembers(e){for(let t of e.members){let e=t,r=t.name?t.name.getText():"#undefined",n=this.getOrCreateRecordForTypeNode(e.type,t.name);this.properties.set(r,n)}}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.OBJECT)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.properties.size)),this.properties.forEach(((e,r)=>{t.push(new _.Literal(_.LiteralTag.STRING,r)),t.push(new _.Literal(_.LiteralTag.INTEGER,e))})),e.addLiterals(...t),e}},t.InterfaceType=class extends h{constructor(e){super(),this.heritages=new Array,this.fields=new Map,this.methods=new Array,this.typeIndex=this.getIndexFromTypeArrayBuffer(new v),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.addCurrentType(e,this.shiftedTypeIndex),this.fillInHeritages(e),this.fillInFieldsAndMethods(e),this.setTypeArrayBuffer(this,this.typeIndex)}fillInHeritages(e){if(e.heritageClauses)for(let t of e.heritageClauses)for(let e of t.types){let t=e.expression,r=this.getOrCreateRecordForDeclNode(t,t);this.heritages.push(r)}}fillInFields(e){let t=s.getTextOfIdentifierOrLiteral(e.name),r=Array(d.ANY,y.PUBLIC,m.NONREADONLY);if(e.modifiers)for(let t of e.modifiers)switch(t.kind){case o.SyntaxKind.PrivateKeyword:r[1]=y.PRIVATE;break;case o.SyntaxKind.ProtectedKeyword:r[1]=y.PROTECTED;break;case o.SyntaxKind.ReadonlyKeyword:r[2]=m.READONLY}let n=e.type,i=e.name;r[0]=this.getOrCreateRecordForTypeNode(n,i),this.fields.set(t,r)}fillInMethods(e){let t=e.name?e.name:void 0,r=new b(e);t&&this.setVariable2Type(t,r.shiftedTypeIndex);let n=this.tryGetTypeIndex(e);this.methods.push(n)}fillInFieldsAndMethods(e){if(e.members)for(let t of e.members)switch(t.kind){case o.SyntaxKind.MethodSignature:this.fillInMethods(t);break;case o.SyntaxKind.PropertySignature:this.fillInFields(t)}}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.INTERFACE)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.heritages.length)),this.heritages.forEach((e=>{t.push(new _.Literal(_.LiteralTag.INTEGER,e))})),this.transferFields2Literal(t),this.transferMethods2Literal(t),e.addLiterals(...t),e}transferFields2Literal(e){let t=this.fields;e.push(new _.Literal(_.LiteralTag.INTEGER,t.size)),t.forEach(((t,r)=>{e.push(new _.Literal(_.LiteralTag.STRING,r)),e.push(new _.Literal(_.LiteralTag.INTEGER,t[0])),e.push(new _.Literal(_.LiteralTag.INTEGER,t[1])),e.push(new _.Literal(_.LiteralTag.INTEGER,t[2]))}))}transferMethods2Literal(e){let t=this.methods;e.push(new _.Literal(_.LiteralTag.INTEGER,t.length)),t.forEach((t=>{e.push(new _.Literal(_.LiteralTag.INTEGER,t))}))}}},"./src/base/util.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getDtsFiles=t.isBase64Str=t.setPos=t.getRangeStartVregPos=t.getParameterLength4Ctor=t.getParamLengthOfFunc=t.isRestParameter=t.getRangeExplicitVregNums=t.isRangeInst=t.listenErrorEvent=t.listenChildExit=t.terminateWritePipe=t.initiateTs2abc=t.escapeUnicode=t.isAnonymousFunctionDefinition=t.isUndefinedIdentifier=t.isMemberExpression=t.isBindingOrAssignmentPattern=t.isArrayBindingOrAssignmentPattern=t.isObjectBindingOrAssignmentPattern=t.isBindingPattern=t.addUnicodeEscape=t.execute=t.setVariableExported=t.hasDefaultKeywordModifier=t.hasExportKeywordModifier=t.containSpreadElement=void 0;const o=a(r("fs")),s=a(r("path")),c=a(r("./node_modules/typescript/lib/typescript.js")),l=r("./src/statement/classStatement.ts"),u=r("./src/irnodes.ts"),_=a(r("./src/jshelpers.js")),d=r("./src/log.ts"),p=r("./src/scope.ts"),f=r("./src/syntaxCheckHelper.ts");function g(e){let t=0,r=0,n=e.length,i="";for(;r!=n;)"\\"==e[r]&&r+1!=n&&"u"==e[r+1]?(0!=r&&"\\"==e[r-1]?i+=e.substr(t,r-t)+"\\\\\\u":i+=e.substr(t,r-t)+"\\\\u",r+=2,t=r):r++;return r==n&&t!=r&&(i+=e.substr(t)),i}function m(e){return c.isObjectLiteralExpression(e)||c.isObjectBindingPattern(e)}function y(e){return c.isArrayLiteralExpression(e)||c.isArrayBindingPattern(e)}function h(e){return e instanceof u.EcmaCallithisrangedyn||e instanceof u.EcmaCallirangedyn||e instanceof u.EcmaNewobjdynrange||e instanceof u.EcmaCreateobjectwithexcludedkeys}function v(e){return!!e.dotDotDotToken}function b(e){let t=0,r=!0,n=e.parameters;return n&&n.forEach((e=>{(e.initializer||v(e))&&(r=!1),r&&t++})),t}t.containSpreadElement=function(e){if(!e)return!1;for(let t=0;t<e.length;t++)if(e[t].kind===c.SyntaxKind.SpreadElement)return!0;return!1},t.hasExportKeywordModifier=function(e){let t=!1;return e.modifiers&&e.modifiers.forEach((e=>{e.kind==c.SyntaxKind.ExportKeyword&&(t=!0)})),t},t.hasDefaultKeywordModifier=function(e){let t=!1;return e.modifiers&&e.modifiers.forEach((e=>{e.kind==c.SyntaxKind.DefaultKeyword&&(t=!0)})),t},t.setVariableExported=function(e,t){if(!(t instanceof p.ModuleScope))throw new Error("variable can't be exported out of module scope");let r=t.find(e);r.v.setExport(),r.v.setExportedName(e)},t.execute=function(e,t){return(0,r("child_process").spawn)(e,[...t],{stdio:["pipe","inherit","inherit"]}).on("exit",(t=>1===t?((0,d.LOGD)("fail to execute cmd: ",e),0):((0,d.LOGD)("execute cmd successfully: ",e),1))),1},t.addUnicodeEscape=g,t.isBindingPattern=function(e){return c.isArrayBindingPattern(e)||c.isObjectBindingPattern(e)},t.isObjectBindingOrAssignmentPattern=m,t.isArrayBindingOrAssignmentPattern=y,t.isBindingOrAssignmentPattern=function(e){return y(e)||m(e)},t.isMemberExpression=function(e){return!(!c.isPropertyAccessExpression(e)&&!c.isElementAccessExpression(e))},t.isUndefinedIdentifier=function(e){return!!c.isIdentifier(e)&&"undefined"==_.getTextOfIdentifierOrLiteral(e)},t.isAnonymousFunctionDefinition=function(e){return!!(0,f.isFunctionLikeDeclaration)(e)&&!e.name},t.escapeUnicode=function(e){let t=0,r=0,n="";for(;-1!==(r=e.indexOf("\n",t));){let i=e.substring(t,r);-1!=i.indexOf("\\u")&&(i=g(i)),n=n.concat(i,"\n"),t=r+1}return n=n.concat("}\n"),n},t.initiateTs2abc=function(e){let t=s.join(s.resolve(__dirname,"../bin"),"js2abc");return e.unshift("--compile-by-pipe"),(0,r("child_process").spawn)(t,[...e],{stdio:["pipe","inherit","inherit","pipe"]})},t.terminateWritePipe=function(e){e||(0,d.LOGD)("ts2abc is not a valid object"),e.stdio[3].end()},t.listenChildExit=function(e){e||(0,d.LOGD)("child is not a valid object"),e.on("exit",(e=>{1===e&&(0,d.LOGD)("fail to generate panda binary file"),(0,d.LOGD)("success to generate panda binary file")}))},t.listenErrorEvent=function(e){e||(0,d.LOGD)("child is not a valid object"),e.on("error",(e=>{(0,d.LOGD)(e.toString())}))},t.isRangeInst=h,t.getRangeExplicitVregNums=function(e){return h(e)?e instanceof u.EcmaCreateobjectwithexcludedkeys?2:1:-1},t.isRestParameter=v,t.getParamLengthOfFunc=b,t.getParameterLength4Ctor=function(e){if(!(0,l.extractCtorOfClass)(e))return 0;let t,r=e.members;for(let e=0;e<r.length;e++){let n=r[e];c.isConstructorDeclaration(n)&&(t=n)}return b(t)},t.getRangeStartVregPos=function(e){return h(e)?e instanceof u.EcmaCreateobjectwithexcludedkeys?2:1:-1},t.setPos=function e(t){return c.setTextRange(t,{pos:-1,end:-1}),t.forEachChild((t=>{e(t)})),t},t.isBase64Str=function(e){return""!=e&&""!=e.trim()&&Buffer.from(Buffer.from(e,"base64").toString()).toString("base64")==e},t.getDtsFiles=function(e){let t=[];return function e(r){o.readdirSync(r).forEach((function(n,i){let a=s.join(r,n),c=o.statSync(a);!0===c.isDirectory()&&e(a),!0===c.isFile()&&!0===n.endsWith(".d.ts")&&t.push(a)}))}(e),t}},"./src/base/vregisterCache.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVregisterCache=t.VregisterCache=t.CacheList=void 0;const n=r("./src/irnodes.ts"),i=r("./src/base/builtIn.ts"),a=r("./src/base/lexEnv.ts");var o;!function(e){e[e.MIN=0]="MIN",e[e.NaN=0]="NaN",e[e.HOLE=1]="HOLE",e[e.FUNC=2]="FUNC",e[e[1/0]=3]="Infinity",e[e[void 0]=4]="undefined",e[e.Symbol=5]="Symbol",e[e.Null=6]="Null",e[e.Global=7]="Global",e[e.LexEnv=8]="LexEnv",e[e.True=9]="True",e[e.False=10]="False",e[e.MAX=11]="MAX"}(o=t.CacheList||(t.CacheList={}));let s=new Map([[o.HOLE,i.expandHole],[o.NaN,i.expandNaN],[o.Infinity,i.expandInfinity],[o.undefined,i.expandUndefined],[o.Symbol,i.expandSymbol],[o.Null,i.expandNull],[o.Global,i.expandGlobal],[o.LexEnv,a.expandLexEnv],[o.True,i.expandTrue],[o.False,i.expandFalse],[o.FUNC,i.expandFunc]]);class c{constructor(e){this.flag=!1,this.vreg=void 0,this.expander=e}isNeeded(){return this.flag}getCache(){return this.flag&&this.vreg||(this.flag=!0,this.vreg=new n.VReg),this.vreg}getExpander(){return this.expander}}t.VregisterCache=class{constructor(){this.cache=[];for(let e=o.MIN;e<o.MAX;++e){let t=s.get(e);if(!t)throw new Error("invalid expand handler");this.cache[e]=new c(t)}}getCache(e){if(e<o.MIN||e>o.MAX)throw new Error("invalid builtin index");return this.cache[e]}},t.getVregisterCache=function(e,t){return e.getVregisterCache().getCache(t).getCache()}},"./src/cmdOptions.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CmdOptions=void 0;const o=r("./node_modules/commander/index.js"),s=a(r("path")),c=a(r("./node_modules/typescript/lib/typescript.js")),l=r("./src/log.ts"),u=r("./src/base/util.ts");class _{static initOptions(){this.cmd.option("-m, --modules","compile as module.",!1).option("-l, --debug-log","show info debug log and generate the json file.",!1).option("-a, --dump-assembly","dump assembly to file.",!1).option("-d, --debug","compile with debug info.",!1).option("-w, --debug-add-watch <args...>","watch expression and abc file path in debug mode.",[]).option("-k, --keep-persistent-watch <watchArgs...>","keep persistent watch on js file with watched expression.",[]).option("-s, --show-statistics <items...>","show compile statistics(ast, histogram, hoisting, all).",[""]).option("-o, --output <outputFile>","set output file.","").option("-t, --timeout <time>","js to abc timeout threshold(unit: seconds).","0").option("--opt-log-level <level>","specifie optimizer log level. Possible values: [debug, info, error, fatal]","error").option("--opt-level <level>","Optimization level. Possible values: [0, 1, 2]. Default: 0\n 0: no optimizations\n 1: basic bytecode optimizations, including valueNumber, lowering, constantResolver, regAccAllocator\n 2: other bytecode optimizations, unimplemented yet","1").option("-h, --help","Show usage guide.",!1).option("-v, --bc-version","Print ark bytecode version",!1).option("--bc-min-version","Print ark bytecode minimum supported version",!1).option("-i, --included-files <files...>","The list of dependent files.",[]).option("-p, --record-type","Record type info. Default: true",!1).option("-q, --dts-type-record","Record type info for .d.ts files. Default: false",!1).option("-g, --debug-type","Print type-related log. Default: false",!1).option("--output-type","set output type.",!1).option("--source-file <file>","specify the file path info recorded in generated abc","").option("--generate-tmp-file","whether to generate intermediate temporary files",!1)}static parseUserCmd(e){this.initOptions();let t=this.cmd.parseOptions(process.argv);if(this.options=this.cmd.opts(),this.options.help)return void this.showHelp();if(this.isBcVersion()||this.isBcMinVersion())return void this.getVersion(this.isBcVersion());if(t.operands=t.operands.slice(2),0===t.operands.length&&0===this.getDeamonModeArgs().length&&!this.isWatchEvaluateExpressionMode())return(0,l.LOGE)("options at least one file is needed"),void this.showHelp();let r=(0,u.getDtsFiles)(s.join(__dirname,"../node_modules/typescript/lib"));return this.unknownOpts=c.parseCommandLine(t.operands),this.unknownOpts.fileNames.push(...r),this.unknownOpts}static showHelp(){this.cmd.outputHelp()}static isBcVersion(){return!!this.options&&this.options.bcVersion}static isBcMinVersion(){return!!this.options&&this.options.bcMinVersion}static getVersion(e=!0){let t=s.join(s.resolve(__dirname,"../bin"),"js2abc"),r=e?"--bc-version":"--bc-min-version";(0,u.execute)(`${t}`,[r])}static setWatchEvaluateExpressionArgs(e){this.options.debugAddWatch=e}static getDeamonModeArgs(){return this.options?this.options.keepPersistentWatch:[]}static isWatchEvaluateDeamonMode(){return"start"==_.getDeamonModeArgs()[0]}static isStopEvaluateDeamonMode(){return"stop"==_.getDeamonModeArgs()[0]}static getEvaluateDeamonPath(){return _.getDeamonModeArgs()[1]}static isWatchEvaluateExpressionMode(){return!!this.options&&0!=this.options.debugAddWatch.length}static getEvaluateExpression(){return this.options.debugAddWatch[0]}static getWatchJsPath(){return this.options.debugAddWatch[1]}static getWatchTimeOutValue(){return 2==this.options.debugAddWatch.length?0:this.options.debugAddWatch[2]}static getIncludedFiles(){return this.options?this.options.includedFiles:[]}static getInputFileName(){let e=this.unknownOpts.fileNames[0];return e.substring(0,e.lastIndexOf("."))}static getOutputBinName(){let e=this.options.output;return""==e&&(e=_.getInputFileName()+".abc"),e}static needRecordType(){return!!this.options&&!this.options.recordType}static needRecordDtsType(){return!!this.options&&this.options.dtsTypeRecord}static isAssemblyMode(){return!!this.options&&this.options.dumpAssembly}static isEnableDebugLog(){return!!this.options&&this.options.debugLog}static isDebugMode(){return!!this.options&&this.options.debug}static isModules(){return!!this.options&&this.options.modules}static getOptLevel(){return this.options?Number.parseFloat(this.options.optLevel):0}static getOptLogLevel(){return this.options?this.options.optLogLevel:""}static showASTStatistics(){return!!this.options&&(this.options.showStatistics.includes("ast")||this.options.showStatistics.includes("all"))}static showHistogramStatistics(){return!!this.options&&(this.options.showStatistics.includes("histogram")||this.options.showStatistics.includes("all"))}static showHoistingStatistics(){return!!this.options&&(this.options.showStatistics.includes("hoisting")||this.options.showStatistics.includes("all"))}static getTimeOut(){return this.options?Number.parseFloat(this.options.timeout):0}static isOutputType(){return!!this.options&&this.options.outputType}static enableTypeLog(){return!!this.options&&this.options.debugType}static getSourceFile(){return this.options?this.options.sourceFile:""}static needGenerateTmpFile(){return!!this.options&&this.options.generateTmpFile}}t.CmdOptions=_,_.cmd=new o.Command,_.options=void 0},"./src/compiler.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Compiler=t.ControlFlowChange=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/astutils.ts")),c=r("./src/base/lreference.ts"),l=r("./src/base/util.ts"),u=r("./src/base/vregisterCache.ts"),_=r("./src/cmdOptions.ts"),d=r("./src/debuginfo.ts"),p=r("./src/diagnostic.ts"),f=r("./src/expression/arrayLiteralExpression.ts"),g=r("./src/expression/bigIntLiteral.ts"),m=r("./src/expression/callExpression.ts"),y=r("./src/expression/memberAccessExpression.ts"),h=r("./src/expression/metaProperty.ts"),v=r("./src/expression/newExpression.ts"),b=r("./src/expression/numericLiteral.ts"),x=r("./src/expression/objectLiteralExpression.ts"),D=r("./src/expression/parenthesizedExpression.ts"),S=r("./src/expression/regularExpression.ts"),E=r("./src/expression/stringLiteral.ts"),T=r("./src/expression/templateExpression.ts"),C=r("./src/expression/yieldExpression.ts"),k=r("./src/function/asyncFunctionBuilder.ts"),A=r("./src/function/functionBuilder.ts"),N=r("./src/function/generatorFunctionBuilder.ts"),F=r("./src/hoisting.ts"),w=r("./src/irnodes.ts"),P=a(r("./src/jshelpers.js")),I=r("./src/log.ts"),O=r("./src/scope.ts"),L=r("./src/statement/classStatement.ts"),M=r("./src/statement/forOfStatement.ts"),R=r("./src/statement/labelTarget.ts"),B=r("./src/statement/loopStatement.ts"),j=r("./src/statement/returnStatement.ts"),J=r("./src/statement/switchStatement.ts"),V=r("./src/statement/tryStatement.ts"),U=r("./src/strictMode.ts"),K=r("./src/syntaxCheckHelper.ts"),z=r("./src/variable.ts"),G=r("./src/expression/compileCommaListExpression.ts");var W;!function(e){e[e.Continue=0]="Continue",e[e.Break=1]="Break"}(W=t.ControlFlowChange||(t.ControlFlowChange={})),t.Compiler=class{constructor(e,t,r,n){this.debugTag="compiler",this.envUnion=new Array,this.rootNode=e,this.pandaGen=t,this.compilerDriver=r,this.recorder=n,this.funcBuilder=new A.FunctionBuilder,this.scope=this.pandaGen.getScope();let i=this.scope.getParameters();for(let e=0;e<i.length;++e)this.pandaGen.getVregForVariable(i[e]);(0,u.getVregisterCache)(this.pandaGen,u.CacheList.LexEnv),this.envUnion.push((0,u.getVregisterCache)(this.pandaGen,u.CacheList.LexEnv)),this.pandaGen.loadAccFromArgs(this.rootNode)}compile(){this.storeFuncObj2LexEnvIfNeeded(),this.compileLexicalBindingForArrowFunction(),this.rootNode.kind==o.SyntaxKind.SourceFile?this.compileSourceFileOrBlock(this.rootNode):(this.compileFunctionLikeDeclaration(this.rootNode),this.callOpt())}pushEnv(e){this.envUnion.push(e)}popEnv(){this.envUnion.pop()}getCurrentEnv(){return this.envUnion[this.envUnion.length-1]}callOpt(){var e,t;if(_.CmdOptions.isDebugMode())return;let r=new Map([["this",1],["4newTarget",2],["0newTarget",2],["argumentsOrRestargs",4],["4funcObj",8]]),n=0,i=this.pandaGen.getScope();if(i instanceof O.FunctionScope){let a=[],o=new Set,s=0;for(let t=0;t<3;t++)i.getCallOpt().has(i.getParameters()[t].getName())?(a.push(this.pandaGen.getLocals()[t]),n+=null!==(e=r.get(i.getParameters()[t].getName()))&&void 0!==e?e:0):(o.add(i.getParameters()[t].getName()),s++);for(let e=3;e<this.pandaGen.getLocals().length;e++)a.push(this.pandaGen.getLocals()[e]);let c=i.getName2variable();c.forEach(((e,t)=>{o.has(t)&&c.delete(t)})),this.pandaGen.setLocals(a),this.pandaGen.setParametersCount(this.pandaGen.getParametersCount()-s),i.getArgumentsOrRestargs()&&(n+=null!==(t=r.get("argumentsOrRestargs"))&&void 0!==t?t:0),this.pandaGen.setCallType(n)}}storeFuncObj2LexEnvIfNeeded(){let e=this.rootNode;if(!o.isFunctionExpression(e)&&!o.isMethodDeclaration(e))return;let t=this.recorder.getScopeOfNode(e);if(e.name){let r=P.getTextOfIdentifierOrLiteral(e.name),n=t.find(r);n.scope==t&&(this.pandaGen.loadAccumulator(d.NodeKind.FirstNodeOfFunction,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.FUNC)),this.pandaGen.storeAccToLexEnv(d.NodeKind.FirstNodeOfFunction,n.scope,n.level,n.v,!0))}}compileLexicalBindingForArrowFunction(){let e=this.rootNode;if(!o.isArrowFunction(e)){let t=this.scope.getChildVariableScope(),r=!1;if(t.forEach((e=>{let t=e.getBindingNode();o.isArrowFunction(t)&&(r=!0)})),r){if(this.storeSpecialArg2LexEnv("4newTarget"),this.storeSpecialArg2LexEnv("arguments"),o.isConstructorDeclaration(e)&&e.parent.heritageClauses)return void this.storeSpecialArg2LexEnv("4funcObj");this.storeSpecialArg2LexEnv("this")}}}storeSpecialArg2LexEnv(e){let t=this.scope.find(e),r=t.v,n=this.pandaGen;if(_.CmdOptions.isDebugMode())t.scope.setLexVar(r,this.scope),n.storeLexicalVar(this.rootNode,t.level,t.v.idxLex,n.getVregForVariable(t.v));else if(r&&r.isLexVar){("this"===e||"4newTarget"===e)&&t.scope instanceof O.FunctionScope&&t.scope.setCallOpt(e),"arguments"===e&&t.scope instanceof O.FunctionScope&&t.scope.setArgumentsOrRestargs();let i="4funcObj"===e?(0,u.getVregisterCache)(n,u.CacheList.FUNC):n.getVregForVariable(t.v);n.storeLexicalVar(this.rootNode,t.level,r.idxLex,i)}}compileSourceFileOrBlock(e){let t=this.pandaGen,r=e.statements,n=!1;e.parent&&o.isConstructorDeclaration(e.parent)&&(0,L.compileDefaultInitClassMembers)(this,e.parent),r.forEach((e=>{this.compileStatement(e),e.kind==o.SyntaxKind.ReturnStatement&&(n=!0)})),e.parent&&o.isConstructorDeclaration(e.parent)?(0,L.compileReturnThis4Ctor)(this,e.parent,n):n||(this.funcBuilder instanceof k.AsyncFunctionBuilder?(this.funcBuilder.resolve(d.NodeKind.Invalid,(0,u.getVregisterCache)(t,u.CacheList.undefined)),t.return(d.NodeKind.Invalid)):_.CmdOptions.isWatchEvaluateExpressionMode()?t.return(d.NodeKind.Invalid):t.returnUndefined(d.NodeKind.Invalid))}compileFunctionBody(e,t){let r=this.pandaGen;if(t.kind==o.SyntaxKind.Block)this.pushScope(t),this.compileSourceFileOrBlock(t),this.popScope();else{if(e!=o.SyntaxKind.ArrowFunction)throw new Error("Node "+this.getNodeName(t)+" is unimplemented as a function body");{this.compileExpression(t);let e=r.getTemp();r.storeAccumulator(t,e),this.funcBuilder instanceof k.AsyncFunctionBuilder?(this.funcBuilder.resolve(t,e),r.return(d.NodeKind.Invalid)):r.loadAccumulator(t,e),r.freeTemps(e),r.return(d.NodeKind.Invalid)}}}compileFunctionParameterDeclaration(e){let t=this.pandaGen;for(let r=0;r<e.parameters.length;++r){let n,i=e.parameters[r],a=i.name,s=c.LReference.generateLReference(this,a,!0);if(o.isIdentifier(a))n=s.variable.v;else if((0,l.isBindingPattern)(a)){let e=r.toString()+"pattern";n=this.scope.find(e).v}let _=t.getVregForVariable(n);if(i.dotDotDotToken){let e=this.pandaGen.getScope();e instanceof O.FunctionScope&&e.setArgumentsOrRestargs(),t.copyRestArgs(i,r),t.storeAccumulator(i,_)}if(i.initializer){let r=new w.Label;t.loadAccumulator(e,_),t.condition(e,o.SyntaxKind.EqualsEqualsEqualsToken,(0,u.getVregisterCache)(t,u.CacheList.undefined),r),this.compileExpression(i.initializer),t.storeAccumulator(i,_),t.label(e,r)}((0,l.isBindingPattern)(a)||o.isIdentifier(a)&&n.isLexVar)&&(t.loadAccumulator(i,_),s.setValue())}}createFuncBuilder(e){let t=this.pandaGen;if(e.modifiers)for(let r=0;r<e.modifiers.length;r++)if(e.modifiers[r].kind==o.SyntaxKind.AsyncKeyword){if(e.asteriskToken)throw new Error("Async generator is not supported");return new k.AsyncFunctionBuilder(t)}return e.asteriskToken?new N.GeneratorFunctionBuilder(t,this):new A.FunctionBuilder}compileFunctionLikeDeclaration(e){let t=this.pandaGen;if(this.compileFunctionParameterDeclaration(e),o.isConstructorDeclaration(e)){let t=e.parent;if(P.getClassExtendsHeritageElement(t)&&!(0,L.extractCtorOfClass)(t))return void(0,L.compileDefaultConstructor)(this,e)}if(e.kind==o.SyntaxKind.FunctionExpression&&e.name){let r=P.getTextOfIdentifierOrLiteral(e.name);t.getScope().addFuncName(r)}this.funcBuilder=this.createFuncBuilder(e),this.funcBuilder.prepare(e,this.recorder),e.body&&this.compileFunctionBody(e.kind,e.body),this.funcBuilder.cleanUp(e)}compileStatement(e){switch(this.pandaGen.setFirstStmt(e),(0,I.LOGD)(this.debugTag,"compile statement: "+this.getNodeName(e)),e.kind){case o.SyntaxKind.Block:this.compileBlock(e);break;case o.SyntaxKind.EmptyStatement:break;case o.SyntaxKind.VariableStatement:this.compileVariableStatement(e);break;case o.SyntaxKind.ExpressionStatement:this.compileExpression(e.expression);break;case o.SyntaxKind.IfStatement:this.compileIfStatement(e);break;case o.SyntaxKind.DoStatement:(0,B.compileDoStatement)(e,this);break;case o.SyntaxKind.WhileStatement:(0,B.compileWhileStatement)(e,this);break;case o.SyntaxKind.ForStatement:(0,B.compileForStatement)(e,this);break;case o.SyntaxKind.ForInStatement:(0,B.compileForInStatement)(e,this);break;case o.SyntaxKind.ForOfStatement:(0,M.compileForOfStatement)(e,this);break;case o.SyntaxKind.ContinueStatement:this.compileContinueStatement(e);break;case o.SyntaxKind.BreakStatement:this.compileBreakStatement(e);break;case o.SyntaxKind.ReturnStatement:(0,j.compileReturnStatement)(e,this);break;case o.SyntaxKind.SwitchStatement:(0,J.compileSwitchStatement)(e,this);break;case o.SyntaxKind.LabeledStatement:this.compileLabeledStatement(e);break;case o.SyntaxKind.ThrowStatement:this.compileThrowStatement(e);break;case o.SyntaxKind.TryStatement:this.compileTryStatement(e);break;case o.SyntaxKind.DebuggerStatement:this.pandaGen.debugger(e);break;case o.SyntaxKind.FunctionDeclaration:this.compileFunctionDeclaration(e);break;case o.SyntaxKind.ClassDeclaration:(0,L.compileClassDeclaration)(this,e);case o.SyntaxKind.ImportDeclaration:break;case o.SyntaxKind.ExportAssignment:this.compileExportAssignment(e);break;case o.SyntaxKind.ExportDeclaration:case o.SyntaxKind.NotEmittedStatement:case o.SyntaxKind.InterfaceDeclaration:break;default:throw new Error("Statement "+this.getNodeName(e)+" is unimplemented")}}compileBlock(e){this.pushScope(e),(0,F.hoistFunctionInBlock)(this.scope,this.pandaGen,(0,U.isStrictMode)(e),this),e.statements.forEach((e=>this.compileStatement(e))),this.popScope()}compileVariableStatement(e){let t=e.declarationList,r=(0,l.hasExportKeywordModifier)(e);t.declarations.forEach((e=>{this.compileVariableDeclaration(e,r)}))}compileVariableDeclaration(e,t=!1){if(t){let t=P.getTextOfIdentifierOrLiteral(e.name);(0,l.setVariableExported)(t,this.getCurrentScope())}let r=c.LReference.generateLReference(this,e.name,!0);if(e.initializer)this.compileExpression(e.initializer);else{if(s.getVarDeclarationKind(e)==z.VarDeclarationKind.VAR)return;s.getVarDeclarationKind(e)==z.VarDeclarationKind.LET&&e.parent.kind!=o.SyntaxKind.CatchClause&&this.pandaGen.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.undefined))}r.setValue()}compileIfStatement(e){this.pushScope(e);let t=new w.Label,r=new w.Label;this.compileCondition(e.expression,e.elseStatement?t:r),this.compileStatement(e.thenStatement),e.elseStatement&&(this.pandaGen.branch(d.DebugInfo.getLastNode(),r),this.pandaGen.label(e,t),this.compileStatement(e.elseStatement)),this.pandaGen.label(e,r),this.popScope()}popLoopEnv(e,t){for(;t--;)this.pandaGen.popLexicalEnv(e)}popLoopEnvWhenContinueOrBreak(e,t){let r=e.getCorrespondingNode(),n=e.getLoopEnvLevel();switch(r.kind){case o.SyntaxKind.DoStatement:case o.SyntaxKind.ForStatement:this.popLoopEnv(r,n-1);break;case o.SyntaxKind.WhileStatement:case o.SyntaxKind.ForInStatement:case o.SyntaxKind.ForOfStatement:{let e=t?n:n-1;this.popLoopEnv(r,e);break}default:this.popLoopEnv(r,n)}}compileContinueStatement(e){let t=R.LabelTarget.getLabelTarget(e);this.compileFinallyBeforeCFC(t.getTryStatement(),W.Continue,t.getContinueTargetLabel()),t.getLoopEnvLevel()&&this.popLoopEnvWhenContinueOrBreak(t,!0),this.pandaGen.branch(e,t.getContinueTargetLabel())}compileBreakStatement(e){let t=R.LabelTarget.getLabelTarget(e);this.compileFinallyBeforeCFC(t.getTryStatement(),W.Break,void 0),t.getLoopEnvLevel()&&this.popLoopEnvWhenContinueOrBreak(t,!1),this.pandaGen.branch(e,t.getBreakTargetLabel())}compileLabeledStatement(e){this.pushScope(e);let t,r=P.getTextOfIdentifierOrLiteral(e.label);if(e.statement.kind==o.SyntaxKind.Block||e.statement.kind==o.SyntaxKind.IfStatement){t=new w.Label;let r=new R.LabelTarget(e,t,void 0);R.LabelTarget.updateName2LabelTarget(e,r)}this.compileStatement(e.statement),t&&this.pandaGen.label(e,t),R.LabelTarget.deleteName2LabelTarget(r),this.popScope()}compileThrowStatement(e){let t=this.pandaGen;if(!e.expression)throw new p.DiagnosticError(e,p.DiagnosticCode.Line_break_not_permitted_here);this.compileExpression(e.expression);let r=V.TryStatement.getCurrentTryStatement()?V.TryStatement.getCurrentTryStatement().getLoopEnvLevel():0;this.popLoopEnv(e,r),t.throw(e)}compileFinallyBeforeCFC(e,t,r){let n=V.TryStatement.getCurrentTryStatement(),i=n,a=this.scope;for(;n!=e;n=null==n?void 0:n.getOuterTryStatement())if(n&&n.trybuilder){let e=new w.Label,a=new w.Label,o=new V.LabelPair(e,a),s=V.TryStatement.getCurrentTryStatement();V.TryStatement.setCurrentTryStatement(n.getOuterTryStatement()),this.pandaGen.label(n.getStatement(),e),n.trybuilder.compileFinalizer(t,r),this.pandaGen.label(n.getStatement(),a),V.TryStatement.setCurrentTryStatement(s),(0,V.updateCatchTables)(i,n,o)}this.scope=a}constructTry(e,t,r){let n=this.pandaGen,i=new w.Label,a=new w.Label,s=new w.Label,c=r||new w.Label,l=new V.CatchTable(n,s,new V.LabelPair(i,a));n.label(e,i),t.compileTryBlock(l),n.label(e,a),t.compileFinallyBlockIfExisted(),o.isForOfStatement(e)&&this.getRecorder().getScopeOfNode(e).need2CreateLexEnv()&&n.popLexicalEnv(e),n.branch(e,c),n.label(e,s),t.compileExceptionHandler(),r||n.label(e,c)}compileTryStatement(e){this.pushScope(e),e.catchClause&&e.finallyBlock&&(e=(0,V.transformTryCatchFinally)(e,this.recorder));let t=new V.TryBuilder(this,this.pandaGen,e);this.constructTry(e,t),this.popScope()}compileFunctionDeclaration(e){if(!e.name){let t=(0,l.hasExportKeywordModifier)(e),r=(0,l.hasDefaultKeywordModifier)(e);if(!t||!r)throw new Error("Function declaration without name is unimplemented");if(!(this.scope instanceof O.ModuleScope))throw new Error("SyntaxError: export function declaration cannot in other scope except ModuleScope");{let t=this.compilerDriver.getFuncInternalName(e,this.recorder),r=this.getCurrentEnv();this.pandaGen.defineFunction(d.NodeKind.FirstNodeOfFunction,e,t,r),this.pandaGen.storeModuleVar(e,"default")}}}compileExportAssignment(e){this.compileExpression(e.expression),this.pandaGen.storeModuleVar(e,"default")}compileCondition(e,t){let r=this.pandaGen;if(e.kind==o.SyntaxKind.BinaryExpression){let n=e;switch(n.operatorToken.kind){case o.SyntaxKind.LessThanToken:case o.SyntaxKind.GreaterThanToken:case o.SyntaxKind.LessThanEqualsToken:case o.SyntaxKind.GreaterThanEqualsToken:case o.SyntaxKind.EqualsEqualsToken:case o.SyntaxKind.ExclamationEqualsToken:case o.SyntaxKind.EqualsEqualsEqualsToken:case o.SyntaxKind.ExclamationEqualsEqualsToken:{let e=r.getTemp();return this.compileExpression(n.left),r.storeAccumulator(n,e),this.compileExpression(n.right),r.condition(n,n.operatorToken.kind,e,t),void r.freeTemps(e)}case o.SyntaxKind.AmpersandAmpersandToken:return this.compileExpression(n.left),r.jumpIfFalse(n,t),this.compileExpression(n.right),void r.jumpIfFalse(n,t);case o.SyntaxKind.BarBarToken:{let e=new w.Label;return this.compileExpression(n.left),r.jumpIfTrue(n,e),this.compileExpression(n.right),r.jumpIfFalse(n,t),void r.label(n,e)}}}this.compileExpression(e),r.jumpIfFalse(e,t)}compileExpression(e){switch((0,I.LOGD)(this.debugTag,"compile expr:"+e.kind),e.kind){case o.SyntaxKind.NumericLiteral:(0,b.compileNumericLiteral)(this.pandaGen,e);break;case o.SyntaxKind.BigIntLiteral:(0,g.compileBigIntLiteral)(this.pandaGen,e);break;case o.SyntaxKind.StringLiteral:(0,E.compileStringLiteral)(this.pandaGen,e);break;case o.SyntaxKind.RegularExpressionLiteral:(0,S.compileRegularExpressionLiteral)(this,e);break;case o.SyntaxKind.Identifier:this.compileIdentifier(e);break;case o.SyntaxKind.TrueKeyword:case o.SyntaxKind.FalseKeyword:this.compileBooleanLiteral(e);break;case o.SyntaxKind.CallExpression:(0,m.compileCallExpression)(e,this);break;case o.SyntaxKind.NullKeyword:this.pandaGen.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.Null));break;case o.SyntaxKind.ThisKeyword:this.compileThisKeyword(e);break;case o.SyntaxKind.MetaProperty:(0,h.compileMetaProperty)(e,this);break;case o.SyntaxKind.ArrayLiteralExpression:(0,f.compileArrayLiteralExpression)(this,e);break;case o.SyntaxKind.ObjectLiteralExpression:(0,x.compileObjectLiteralExpression)(this,e);break;case o.SyntaxKind.PropertyAccessExpression:case o.SyntaxKind.ElementAccessExpression:(0,y.compileMemberAccessExpression)(e,this);break;case o.SyntaxKind.NewExpression:(0,v.compileNewExpression)(e,this);break;case o.SyntaxKind.ParenthesizedExpression:this.compileExpression((0,D.findInnerExprOfParenthesis)(e));break;case o.SyntaxKind.FunctionExpression:this.compileFunctionExpression(e);break;case o.SyntaxKind.DeleteExpression:this.compileDeleteExpression(e);break;case o.SyntaxKind.TypeOfExpression:this.compileTypeOfExpression(e);break;case o.SyntaxKind.VoidExpression:this.compileVoidExpression(e);break;case o.SyntaxKind.AwaitExpression:this.compileAwaitExpression(e);break;case o.SyntaxKind.PrefixUnaryExpression:this.compilePrefixUnaryExpression(e);break;case o.SyntaxKind.PostfixUnaryExpression:this.compilePostfixUnaryExpression(e);break;case o.SyntaxKind.BinaryExpression:this.compileBinaryExpression(e);break;case o.SyntaxKind.ConditionalExpression:this.compileConditionalExpression(e);break;case o.SyntaxKind.YieldExpression:(0,C.compileYieldExpression)(this,e);break;case o.SyntaxKind.ArrowFunction:this.compileArrowFunction(e);break;case o.SyntaxKind.TemplateExpression:this.compileTemplateExpression(e);break;case o.SyntaxKind.NoSubstitutionTemplateLiteral:case o.SyntaxKind.FirstTemplateToken:case o.SyntaxKind.LastLiteralToken:this.compileNoSubstitutionTemplateLiteral(e);break;case o.SyntaxKind.TaggedTemplateExpression:this.compileTaggedTemplateExpression(e);break;case o.SyntaxKind.Constructor:case o.SyntaxKind.PropertyDeclaration:break;case o.SyntaxKind.ClassExpression:(0,L.compileClassDeclaration)(this,e);break;case o.SyntaxKind.PartiallyEmittedExpression:break;case o.SyntaxKind.CommaListExpression:(0,G.compileCommaListExpression)(this,e);break;default:throw new Error("Expression of type "+this.getNodeName(e)+" is unimplemented")}}compileIdentifier(e){let t=P.getTextOfIdentifierOrLiteral(e),{scope:r,level:n,v:i}=this.scope.find(t);i?this.loadTarget(e,{scope:r,level:n,v:i}):this.compileUnscopedIdentifier(e)}compileUnscopedIdentifier(e){let t=P.getTextOfIdentifierOrLiteral(e),r=this.pandaGen;switch(t){case"NaN":return void r.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.NaN));case"Infinity":return void r.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.Infinity));case"globalThis":return void r.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.Global));case"undefined":return void r.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.undefined));default:(0,D.findOuterNodeOfParenthesis)(e).kind==o.SyntaxKind.TypeOfExpression?_.CmdOptions.isWatchEvaluateExpressionMode()?r.loadByNameViaDebugger(e,t,u.CacheList.False):r.loadObjProperty(e,(0,u.getVregisterCache)(r,u.CacheList.Global),t):r.tryLoadGlobalByName(e,t)}}compileBooleanLiteral(e){e.kind==o.SyntaxKind.TrueKeyword?this.pandaGen.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.True)):this.pandaGen.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.False))}compileFunctionReturnThis(e){if(e.expression.kind==o.SyntaxKind.Identifier){let t=e.expression,r=e.arguments;if("Function"==t.escapedText&&r&&r.length>0)return!!o.isStringLiteral(r[r.length-1])&&(null!=r[r.length-1].text.match(/ *return +this[;]? *$/)&&(this.pandaGen.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.Global)),!0))}return!1}compileThisKeyword(e){let t=this.pandaGen;(0,L.checkValidUseSuperBeforeSuper)(this,e);let{scope:r,level:n,v:i}=this.scope.find("this");if(this.setCallOpt(r,"this"),!i)throw new Error('"this" not found');if(!(i instanceof z.LocalVariable))throw new Error('"this" must be a local variable');if(r&&n>=0){let e=this.scope,t=!1;for(;e!=r;){if(e instanceof O.VariableScope){t=!0;break}e=e.getParent()}t&&r.setLexVar(i,this.scope)}_.CmdOptions.isWatchEvaluateExpressionMode()?t.loadByNameViaDebugger(e,"this",u.CacheList.True):t.loadAccFromLexEnv(e,r,n,i)}compileFunctionExpression(e){let t=this.compilerDriver.getFuncInternalName(e,this.recorder),r=this.getCurrentEnv();this.pandaGen.defineFunction(e,e,t,r)}compileDeleteExpression(e){let t,r,n=this.pandaGen,i=e.expression;switch(i.kind){case o.SyntaxKind.Identifier:{let r=P.getTextOfIdentifierOrLiteral(i),{scope:a,v:o}=this.scope.find(r);if(!o||a instanceof O.GlobalScope&&o instanceof z.GlobalVariable){let a=n.getTemp();t=(0,u.getVregisterCache)(n,u.CacheList.Global),n.loadAccumulatorString(i,r),n.storeAccumulator(i,a),n.deleteObjProperty(e,t,a),n.freeTemps(a)}else n.loadAccumulator(i,(0,u.getVregisterCache)(n,u.CacheList.False));break}case o.SyntaxKind.PropertyAccessExpression:case o.SyntaxKind.ElementAccessExpression:{if(t=n.getTemp(),r=n.getTemp(),P.isSuperProperty(i))return n.throwDeleteSuperProperty(i),void n.freeTemps(t,r);let{prop:a}=(0,y.getObjAndProp)(i,t,r,this);switch(typeof a){case"string":n.loadAccumulatorString(e,a),n.storeAccumulator(e,r);break;case"number":n.loadAccumulatorInt(e,a),n.storeAccumulator(e,r)}n.deleteObjProperty(e,t,r),n.freeTemps(t,r);break}default:this.compileExpression(i),n.loadAccumulator(e,(0,u.getVregisterCache)(n,u.CacheList.True))}}compileTypeOfExpression(e){this.compileExpression(e.expression),this.pandaGen.typeOf(e)}compileVoidExpression(e){let t=this.pandaGen;this.compileExpression(e.expression),t.loadAccumulator(e,(0,u.getVregisterCache)(t,u.CacheList.undefined))}compileAwaitExpression(e){let t=this.pandaGen;if(!(this.funcBuilder instanceof k.AsyncFunctionBuilder))throw new p.DiagnosticError(e.parent,p.DiagnosticCode.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(e.expression){let r=t.getTemp();this.compileExpression(e.expression),t.storeAccumulator(e,r),this.funcBuilder.await(e,r),t.freeTemps(r)}else this.funcBuilder.await(e,(0,u.getVregisterCache)(t,u.CacheList.undefined))}compilePrefixUnaryExpression(e){let t=this.pandaGen,r=t.getTemp();switch(e.operator){case o.SyntaxKind.PlusPlusToken:case o.SyntaxKind.MinusMinusToken:{let n=c.LReference.generateLReference(this,e.operand,!1);n.getValue(),t.storeAccumulator(e,r),t.unary(e,e.operator,r),n.setValue();break}case o.SyntaxKind.PlusToken:case o.SyntaxKind.MinusToken:case o.SyntaxKind.ExclamationToken:case o.SyntaxKind.TildeToken:this.compileExpression(e.operand),t.storeAccumulator(e,r),t.unary(e,e.operator,r)}t.freeTemps(r)}compilePostfixUnaryExpression(e){let t=this.pandaGen,r=t.getTemp(),n=c.LReference.generateLReference(this,e.operand,!1);switch(n.getValue(),t.storeAccumulator(e,r),e.operator){case o.SyntaxKind.PlusPlusToken:case o.SyntaxKind.MinusMinusToken:t.unary(e,e.operator,r)}n.setValue(),t.toNumber(e,r),t.freeTemps(r)}compileLogicalExpression(e){let t=this.pandaGen,r=t.getTemp();switch(e.operatorToken.kind){case o.SyntaxKind.AmpersandAmpersandToken:{let n=new w.Label,i=new w.Label;this.compileExpression(e.left),t.storeAccumulator(e,r),t.jumpIfFalse(e,n),this.compileExpression(e.right),t.branch(e,i),t.label(e,n),t.loadAccumulator(e,r),t.label(e,i);break}case o.SyntaxKind.BarBarToken:{let n=new w.Label,i=new w.Label;this.compileExpression(e.left),t.storeAccumulator(e,r),t.jumpIfTrue(e,n),this.compileExpression(e.right),t.branch(e,i),t.label(e,n),t.loadAccumulator(e,r),t.label(e,i);break}case o.SyntaxKind.QuestionQuestionToken:{let n=new w.Label,i=new w.Label;this.compileExpression(e.left),t.storeAccumulator(e,r),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,u.getVregisterCache)(t,u.CacheList.Null),n),t.loadAccumulator(e.left,r),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,u.getVregisterCache)(t,u.CacheList.undefined),n),t.loadAccumulator(e,r),t.branch(e,i),t.label(e,n),this.compileExpression(e.right),t.label(e,i);break}default:throw new Error("BinaryExpression with operatorToken "+this.getNodeName(e.operatorToken)+" is not Logical Operator")}t.freeTemps(r)}compileBinaryExpression(e){if((0,K.isAssignmentOperator)(e.operatorToken.kind))return void this.compileAssignmentExpression(e.left,e.right,e.operatorToken.kind);if(e.operatorToken.kind==o.SyntaxKind.AmpersandAmpersandToken||e.operatorToken.kind==o.SyntaxKind.BarBarToken||e.operatorToken.kind==o.SyntaxKind.QuestionQuestionToken)return void this.compileLogicalExpression(e);let t=this.pandaGen,r=t.getTemp();this.compileExpression(e.left),t.storeAccumulator(e,r),this.compileExpression(e.right),e.operatorToken.kind!=o.SyntaxKind.CommaToken&&t.binary(e,e.operatorToken.kind,r),t.freeTemps(r)}compileConditionalExpression(e){let t=new w.Label,r=new w.Label;this.compileCondition(e.condition,t),this.compileExpression(e.whenTrue),this.pandaGen.branch(e,r),this.pandaGen.label(e,t),this.compileExpression(e.whenFalse),this.pandaGen.label(e,r)}compileArrowFunction(e){let t=this.compilerDriver.getFuncInternalName(e,this.recorder),r=this.getCurrentEnv();this.pandaGen.defineFunction(e,e,t,r)}compileTemplateSpan(e){let t=e.expression;this.compileExpression(t);let r=e.literal,n=this.pandaGen.getTemp(),i=r.text;0!=i.length&&(this.pandaGen.storeAccumulator(e,n),this.pandaGen.loadAccumulatorString(e,i),this.pandaGen.binary(e,o.SyntaxKind.PlusToken,n)),this.pandaGen.freeTemps(n)}compileTemplateExpression(e){let t=this.pandaGen,r=e.head,n=e.templateSpans,i=t.getTemp();t.loadAccumulatorString(e,r.text),n&&n.length>0&&n.forEach((r=>{t.storeAccumulator(e,i),this.compileTemplateSpan(r),t.binary(e,o.SyntaxKind.PlusToken,i)})),t.freeTemps(i)}compileNoSubstitutionTemplateLiteral(e){let t=e.text;this.pandaGen.loadAccumulatorString(e,t)}compileTaggedTemplateExpression(e){let t,r=this.pandaGen;o.isTemplateExpression(e.template)&&(t=e.template.templateSpans);let{arguments:n,passThis:i}=(0,m.getHiddenParameters)(e.tag,this);(0,T.getTemplateObject)(r,e);let a=r.getTemp();r.storeAccumulator(e,a),n.push(a),t&&t.length&&t.forEach((e=>{let t=r.getTemp();this.compileExpression(e.expression),r.storeAccumulator(e,t),n.push(t)})),r.call(e,n,i),r.freeTemps(...n)}compileAssignmentExpression(e,t,r){let n=c.LReference.generateLReference(this,e,!1);if(r!=o.SyntaxKind.EqualsToken){let i=this.pandaGen.getTemp();n.getValue(),this.pandaGen.storeAccumulator(e,i),this.compileExpression(t),this.pandaGen.binary(e.parent,r,i),this.pandaGen.freeTemps(i)}else this.compileExpression(t);n.setValue()}pushScope(e){let t=this.recorder.getScopeOfNode(e);this.scope=t,d.DebugInfo.addDebugIns(t,this.pandaGen,!0)}popScope(){d.DebugInfo.addDebugIns(this.scope,this.pandaGen,!1),this.scope=this.scope.getParent()}getNodeName(e){return o.SyntaxKind[e.kind]}getThis(e,t){let r=this.pandaGen,n=this.getCurrentScope(),i=this.getCurrentScope().find("this"),a=i.scope,o=i.level,s=i.v;if(this.setCallOpt(a,"this"),a&&o>=0){let e=!1;for(;n!=a;){if(n instanceof O.VariableScope){e=!0;break}n=n.getParent()}e&&a.setLexVar(s,n)}if(s.isLexVar){let n=s.idxLex;r.loadLexicalVar(e,o,n),r.storeAccumulator(e,t)}else r.moveVreg(e,t,r.getVregForVariable(s))}setThis(e){let t=this.pandaGen,r=this.getCurrentScope().find("this");if(this.setCallOpt(r.scope,"this"),r.v.isLexVar){let n=r.v.idxLex,i=t.getTemp();t.storeAccumulator(e,i),t.storeLexicalVar(e,r.level,n,i),t.freeTemps(i)}else t.storeAccumulator(e,t.getVregForVariable(r.v))}setCallOpt(e,t){e instanceof O.FunctionScope&&e.setCallOpt(t)}getPandaGen(){return this.pandaGen}getCurrentScope(){return this.scope}getCompilerDriver(){return this.compilerDriver}getRecorder(){return this.recorder}getFuncBuilder(){return this.funcBuilder}storeTarget(e,t,r){if(t.v instanceof z.LocalVariable){if(r&&t.v.isLetOrConst()&&(t.v.initialize(),t.scope instanceof O.GlobalScope))return void(t.v.isLet()?this.pandaGen.stLetToGlobalRecord(e,t.v.getName()):this.pandaGen.stConstToGlobalRecord(e,t.v.getName()));if(t.v.isLetOrConst()&&t.scope instanceof O.GlobalScope)return void this.pandaGen.tryStoreGlobalByName(e,t.v.getName());if(t.scope&&t.level>=0){let e=this.scope,r=!1;for(;e!=t.scope;){if(e instanceof O.VariableScope){r=!0;break}e=e.getParent()}r&&t.scope.setLexVar(t.v,this.scope)}this.pandaGen.storeAccToLexEnv(e,t.scope,t.level,t.v,r)}else{if(!(t.v instanceof z.GlobalVariable))throw new Error("invalid lhsRef to store");t.v.isNone()&&(0,U.isStrictMode)(e)?this.pandaGen.tryStoreGlobalByName(e,t.v.getName()):this.pandaGen.storeGlobalVar(e,t.v.getName())}}loadTarget(e,t){if(t.v instanceof z.LocalVariable){if((t.v.isLetOrConst()||t.v.isClass())&&t.scope instanceof O.GlobalScope)return void this.pandaGen.tryLoadGlobalByName(e,t.v.getName());if(t.scope&&t.level>=0){let e=this.scope,r=!1;for(;e!=t.scope;){if(e instanceof O.VariableScope){r=!0;break}e=e.getParent()}r&&t.scope.setLexVar(t.v,this.scope)}this.pandaGen.loadAccFromLexEnv(e,t.scope,t.level,t.v)}else{if(!(t.v instanceof z.GlobalVariable))throw new Error("Only local and global variables are implemented");t.v.isNone()?(0,D.findOuterNodeOfParenthesis)(e).kind==o.SyntaxKind.TypeOfExpression?_.CmdOptions.isWatchEvaluateExpressionMode()?this.pandaGen.loadByNameViaDebugger(e,t.v.getName(),u.CacheList.False):this.pandaGen.loadObjProperty(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.Global),t.v.getName()):this.pandaGen.tryLoadGlobalByName(e,t.v.getName()):this.pandaGen.loadGlobalVar(e,t.v.getName())}}}},"./src/compilerDriver.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CompilerDriver=t.PendingCompilationUnit=void 0;const o=r("fs"),s=a(r("./node_modules/typescript/lib/typescript.js")),c=r("./src/addVariable2Scope.ts"),l=r("./src/assemblyDumper.ts"),u=r("./src/base/util.ts"),_=r("./src/cmdOptions.ts"),d=r("./src/compiler.ts"),p=r("./src/compilerStatistics.ts"),f=r("./src/debuginfo.ts"),g=r("./src/hoisting.ts"),m=r("./src/log.ts"),y=r("./src/modules.ts"),h=r("./src/pandagen.ts"),v=r("./src/pass/cacheExpander.ts"),b=r("./src/recorder.ts"),x=r("./src/regAllocator.ts"),D=r("./src/scope.ts"),S=r("./src/statement/classStatement.ts"),E=r("./src/syntaxChecker.ts"),T=r("./src/ts2panda.ts"),C=r("./src/typeRecorder.ts");class k{constructor(e,t,r){this.decl=e,this.scope=t,this.internalName=r}}t.PendingCompilationUnit=k;class A{constructor(e){this.passes=[],this.functionId=1,this.funcIdMap=new Map,this.needDumpHeader=!0,this.ts2abcProcess=void 0,this.fileName=e,this.passes=[new v.CacheExpander,new x.RegAlloc],this.compilationUnits=[],this.pendingCompilationUnits=[],(_.CmdOptions.showHistogramStatistics()||_.CmdOptions.showHoistingStatistics())&&(this.statistics=new p.CompilerStatistics)}initiateTs2abcChildProcess(){this.ts2abcProcess=(0,u.initiateTs2abc)([this.fileName])}getTs2abcProcess(){if(void 0===this.ts2abcProcess)throw new Error("ts2abc hasn't been initiated");return this.ts2abcProcess}getStatistics(){return this.statistics}setCustomPasses(e){this.passes=e}addCompilationUnit(e,t,r){let n=this.getFuncInternalName(e,r);return this.pendingCompilationUnits.push(new k(e,t,n)),n}getCompilationUnits(){return this.compilationUnits}kind2String(e){return s.SyntaxKind[e]}getASTStatistics(e,t){e.forEachChild((e=>{t[e.kind]=t[e.kind]+1,this.getASTStatistics(e,t)}))}postOrderAnalysis(e){let t=[],r=[];for(r.push(e);r.length>0;){let e=r.pop();if(null==e)break;t.push(e);for(let t of e.getChildVariableScope())r.push(t)}return t.reverse()}compileForSyntaxCheck(e){let t=this.compilePrologue(e,!1,!0);(0,E.checkDuplicateDeclaration)(t),(0,E.checkExportEntries)(t)}compile(e){if(A.isTsFile=A.isTypeScriptSourceFile(e),_.CmdOptions.showASTStatistics()){let t=new Array(s.SyntaxKind.Count).fill(0);this.getASTStatistics(e,t),t.forEach(((e,t)=>{e>0&&(0,m.LOGD)(this.kind2String(t)+" = "+e)}))}let t=this.compilePrologue(e,!0,!1);if(_.CmdOptions.isAssemblyMode())for(let e=0;e<this.pendingCompilationUnits.length;e++){let r=this.pendingCompilationUnits[e];this.compileImpl(r.decl,r.scope,r.internalName,t)}else{this.initiateTs2abcChildProcess();let e=this.getTs2abcProcess();(0,u.listenChildExit)(e),(0,u.listenErrorEvent)(e);try{T.Ts2Panda.dumpCmdOptions(e);for(let e=0;e<this.pendingCompilationUnits.length;e++){let r=this.pendingCompilationUnits[e];this.compileImpl(r.decl,r.scope,r.internalName,t)}if(T.Ts2Panda.dumpStringsArray(e),T.Ts2Panda.dumpConstantPool(e),(0,u.terminateWritePipe)(e),_.CmdOptions.isEnableDebugLog()){let e=this.fileName.substring(0,this.fileName.lastIndexOf(".")).concat(".json");(0,o.writeFileSync)(e,T.Ts2Panda.jsonString),(0,m.LOGD)("Successfully generate ",`${e}`)}if(_.CmdOptions.isOutputType()){let e=this.fileName.substring(0,this.fileName.lastIndexOf(".")).concat(".txt");(0,o.writeFileSync)(e,T.Ts2Panda.dumpTypeLiteralArrayBuffer())}T.Ts2Panda.clearDumpData()}catch(t){throw(0,u.terminateWritePipe)(e),t}}h.PandaGen.clearLiteralArrayBuffer()}compileImpl(e,t,r,n){let i=new h.PandaGen(r,this.getParametersCount(e),t);f.DebugInfo.addDebugIns(t,i,!0);let a=new d.Compiler(e,i,this,n);_.CmdOptions.isModules()&&s.isSourceFile(e)&&t instanceof D.ModuleScope&&((0,y.setImport)(n.getImportStmts(),t,i),(0,y.setExportBinding)(n.getExportStmts(),t,i)),(0,g.hoisting)(e,i,n,a),a.compile(),this.passes.forEach((e=>e.run(i))),f.DebugInfo.addDebugIns(t,i,!1),f.DebugInfo.setDebugInfo(i),f.DebugInfo.setSourceFileDebugInfo(i,e),_.CmdOptions.isAssemblyMode()?this.writeBinaryFile(i):T.Ts2Panda.dumpPandaGen(i,this.getTs2abcProcess(),n.recordType),_.CmdOptions.showHistogramStatistics()&&this.statistics.getInsHistogramStatistics(i)}compileUnitTest(e,t){A.isTsFile=A.isTypeScriptSourceFile(e);let r=this.compilePrologue(e,!0,!0);for(let e=0;e<this.pendingCompilationUnits.length;e++){let t=this.pendingCompilationUnits[e];this.compileUnitTestImpl(t.decl,t.scope,t.internalName,r)}t&&h.PandaGen.getLiteralArrayBuffer().forEach((e=>t.push(e))),h.PandaGen.clearLiteralArrayBuffer()}compileUnitTestImpl(e,t,r,n){let i=new h.PandaGen(r,this.getParametersCount(e),t),a=new d.Compiler(e,i,this,n);_.CmdOptions.isModules()&&s.isSourceFile(e)&&t instanceof D.ModuleScope&&((0,y.setImport)(n.getImportStmts(),t,i),(0,y.setExportBinding)(n.getExportStmts(),t,i)),(0,g.hoisting)(e,i,n,a),a.compile(),this.passes.forEach((e=>e.run(i))),this.compilationUnits.push(i)}static isTypeScriptSourceFile(e){let t=e.fileName;return!(!t||!t.endsWith(".ts"))}compilePrologue(e,t,r){let n;n=_.CmdOptions.isModules()?new D.ModuleScope(e):new D.GlobalScope(e);let i=t&&_.CmdOptions.needRecordType()&&A.isTsFile;i&&C.TypeRecorder.createInstance();let a=new b.Recorder(e,n,this,i,A.isTsFile,r);a.record(),(0,c.addVariableToScope)(a,i);let o=this.postOrderAnalysis(n);for(let e of o)this.addCompilationUnit(e.getBindingNode(),e,a);return a}showStatistics(){_.CmdOptions.showHistogramStatistics()&&this.statistics.printHistogram(!1),_.CmdOptions.showHoistingStatistics()&&this.statistics.printHoistStatistics()}getFuncId(e){if(this.funcIdMap.has(e))return this.funcIdMap.get(e);if(s.isSourceFile(e))return this.funcIdMap.set(e,0),0;let t=this.functionId++;return this.funcIdMap.set(e,t),t}getFuncInternalName(e,t){let r;if(s.isSourceFile(e))r="func_main_0";else if(s.isConstructorDeclaration(e)){let t=e.parent;r=this.getInternalNameForCtor(t,e)}else{let n=e;if(r=t.getScopeOfNode(n).getFuncName(),""==r)return`#${this.getFuncId(n)}#`;if("func_main_0"==r)return`#${this.getFuncId(n)}#${r}`;let i=t.getFuncNameMap();if(!i.has(r))throw new Error("the function name is missing from the name map");i.get(r)>1&&(r=`#${this.getFuncId(n)}#${r}`),-1==r.lastIndexOf(".")&&-1==r.lastIndexOf("\\")||(r=`#${this.getFuncId(n)}#`)}return r}getInternalNameForCtor(e,t){let r=(0,S.getClassNameForConstructor)(e);return r=`#${this.getFuncId(t)}#${r}`,-1!=r.lastIndexOf(".")&&(r=`#${this.getFuncId(t)}#`),r}writeBinaryFile(e){this.needDumpHeader&&(l.AssemblyDumper.dumpHeader(),this.needDumpHeader=!1),new l.AssemblyDumper(e).dump()}getParametersCount(e){let t=3;return e.kind==s.SyntaxKind.SourceFile||(t+=e.parameters.length),t}}t.CompilerDriver=A,A.isTsFile=!1},"./src/compilerStatistics.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompilerStatistics=t.HoistingType=void 0;const n=r("./src/irnodes.ts"),i=r("./src/log.ts");var a;(a=t.HoistingType||(t.HoistingType={}))[a.GLOBAL_VAR=0]="GLOBAL_VAR",a[a.LOCAL_VAR=1]="LOCAL_VAR",a[a.GLOBAL_FUNCTION=2]="GLOBAL_FUNCTION",a[a.LOCAL_FUNCTION=3]="LOCAL_FUNCTION";class o{constructor(e,t){this.count=1,this.relatedInsns=[],this.nodeMap=new Map,this.instSize=e,t&&this.relatedInsns.push(t)}add(e){this.count+=e,this.relatedInsns.forEach((t=>{t.num+=e}))}set(e){this.count=e,this.relatedInsns.forEach((t=>{t.num=e}))}getCount(){return this.count}getInstSize(){return this.instSize}getTotalSize(){return this.count*this.instSize}getRelatedInsns(){return this.relatedInsns}getNodeMap(){return this.nodeMap}updateNodeMap(e){if(this.nodeMap.has(e)){let t=this.nodeMap.get(e);this.nodeMap.set(e,t+1)}else this.nodeMap.set(e,1)}unionNodeMap(e){e.forEach(((e,t)=>{if(this.nodeMap.has(t)){let r=this.nodeMap.get(t);r+=e,this.nodeMap.set(t,r)}else this.nodeMap.set(t,e)}))}getSavedSizeIfRemoved(e){let t=this.getTotalSize();return this.relatedInsns.forEach((r=>{let n=e.getStatistics().get(r.name);n&&(t+=r.num*n.getInstSize())})),t}static createItemValue(e,t){let r;return"lda.str"==e&&(r={name:"sta.dyn",num:1}),new o(t,r)}}class s{constructor(e){this.insHistogram=new Map,this.funcName=e}getInsName(e){return e.kind==n.IRNodeKind.LABEL?"Label":e.kind==n.IRNodeKind.CALL||e.kind==n.IRNodeKind.CALL_SHORT||e.kind==n.IRNodeKind.CALL_RANGE?e.operands[0].split(".")[2]:e.getMnemonic()}unionStatistics(e){e.getStatistics().forEach(((e,t)=>{if(this.insHistogram.has(t)){let r=this.insHistogram.get(t);r.add(e.getCount()),r.unionNodeMap(e.getNodeMap()),this.insHistogram.set(t,r)}else this.insHistogram.set(t,e)}))}catchStatistics(e){e.getInsns().forEach((e=>{let t=this.getInsName(e),r=(0,n.getInstructionSize)(e.kind),a=e.getNodeName();if(t.length<=1&&(0,i.LOGD)("this IRNode had no key: "+e.toString()),this.insHistogram.has(t)){let e=this.insHistogram.get(t);e.updateNodeMap(a),e.add(1),this.insHistogram.set(t,e)}else{let e=o.createItemValue(t,r);e.updateNodeMap(a),this.insHistogram.set(t,e)}}))}getStatistics(){return this.insHistogram}getTotal(){let e=0,t=0;return this.insHistogram.forEach(((r,n)=>{e+=r.getCount(),t+=r.getTotalSize()})),[e,t]}print(){let e=this.getTotal()[0],t=this.getTotal()[1];(0,i.LOGD)("\n"),(0,i.LOGD)("Histogram:","====== ("+this.funcName+") ======"),(0,i.LOGD)("op code\t\t\tinsns number\tins size\ttotal size\tsize percentage"),this.insHistogram.forEach(((e,r)=>{r.length<8?(0,i.LOGD)(r+"\t\t\t"+e.getCount()+"\t\t"+e.getInstSize()+"\t\t"+e.getTotalSize()+"\t\t"+e.getSavedSizeIfRemoved(this)+"\t"+Math.round(e.getSavedSizeIfRemoved(this)/t*100)+"%"):r.length<16?(0,i.LOGD)(r+"\t\t"+e.getCount()+"\t\t"+e.getInstSize()+"\t\t"+e.getTotalSize()+"\t\t"+e.getSavedSizeIfRemoved(this)+"\t"+Math.round(e.getSavedSizeIfRemoved(this)/t*100)+"%"):(0,i.LOGD)(r+"\t"+e.getCount()+"\t\t"+e.getInstSize()+"\t\t"+e.getTotalSize()+"\t\t"+e.getSavedSizeIfRemoved(this)+"\t"+Math.round(e.getSavedSizeIfRemoved(this)/t*100)+"%")})),(0,i.LOGD)("total insns number : \t"+e+"\t\ttotal Size : \t"+t),(0,i.LOGD)("\n"),this.insHistogram.forEach(((e,t)=>{e.getNodeMap().size>1&&((0,i.LOGD)("op code: "+t),e.getNodeMap().forEach(((t,r)=>{r.length<8?(0,i.LOGD)("Node: \t"+r+"\t\t\t\t\t\tnum: \t"+t+"\t\t"+Math.round(t/e.getCount()*100)+"%"):r.length<16?(0,i.LOGD)("Node: \t"+r+"\t\t\t\t\tnum: \t"+t+"\t\t"+Math.round(t/e.getCount()*100)+"%"):r.length<24?(0,i.LOGD)("Node: \t"+r+"\t\t\t\tnum: \t"+t+"\t\t"+Math.round(t/e.getCount()*100)+"%"):(0,i.LOGD)("Node: \t"+r+"\t\t\tnum: \t"+t+"\t\t"+Math.round(t/e.getCount()*100)+"%")})),(0,i.LOGD)("\n"))}))}}t.CompilerStatistics=class{constructor(){this.histogramMap=new Map,this.numOfHoistingCases=[0,0,0,0],this.hoistingRelatedInsnNum=0}addHoistingRelatedInsnNum(e){this.hoistingRelatedInsnNum+=e}addNumOfHoistCases(e){this.numOfHoistingCases[e]++}getInsHistogramStatistics(e){let t=new s(e.internalName);t.catchStatistics(e),this.histogramMap.set(e.internalName,t)}printHistogram(e){let t=new s("Total");this.histogramMap.forEach(((r,n)=>{t.unionStatistics(r),e&&r.print()})),t.print()}printHoistStatistics(){(0,i.LOGD)("\n"),(0,i.LOGD)("HoistingRelated Histogram:","======whole file======="),(0,i.LOGD)("global var\tlocal var\tglobal function\tlocal function"),(0,i.LOGD)(this.numOfHoistingCases[0]+"\t\t"+this.numOfHoistingCases[1]+"\t\t"+this.numOfHoistingCases[2]+"\t\t"+this.numOfHoistingCases[3]),(0,i.LOGD)("\n"),(0,i.LOGD)("Approximately hoisting related insns nums"),(0,i.LOGD)(this.hoistingRelatedInsnNum)}}},"./src/compilerUtils.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileDestructuring=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/lreference.ts"),c=r("./src/base/util.ts"),l=r("./src/base/vregisterCache.ts"),u=r("./src/irnodes.ts"),_=a(r("./src/jshelpers.js")),d=r("./src/statement/tryStatement.ts"),p=r("./src/base/iterator.ts");function f(e,t,r,n,i,a){let c=n.getTemp(),_=n.getTemp(),d=new u.Label,p=new u.Label,f=e,g=s.LReference.generateLReference(i,f,a);n.createEmptyArray(e),n.storeAccumulator(e,c),n.loadAccumulatorInt(e,0),n.storeAccumulator(e,_),n.label(e,d),t.iteratorComplete(r),n.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,l.getVregisterCache)(n,l.CacheList.True),p),t.iteratorValue(r),n.storeObjProperty(e,c,_),n.loadAccumulatorInt(e,1),n.binary(e,o.SyntaxKind.PlusToken,_),n.storeAccumulator(e,_),t.callNext(r),n.branch(e,d),n.label(e,p),n.loadAccumulator(e,c),g.setValue(),n.freeTemps(c,_)}function g(e,t,r,n,i){let a=o.isBindingElement(e)?e.name:e.expression,c=s.LReference.generateLReference(i,a,!0),u=n.getTemp();0==t.length&&(n.loadAccumulator(e,(0,l.getVregisterCache)(n,l.CacheList.undefined)),n.storeAccumulator(e,u),t.push(u)),n.createObjectWithExcludedKeys(e,r,t),c.setValue(),n.freeTemps(u)}function m(e){return!!e.dotDotDotToken}t.compileDestructuring=function(e,t,r){let n=t.getTemp();t.storeAccumulator(e,n),(0,c.isArrayBindingOrAssignmentPattern)(e)&&function(e,t,r){let n=t.getTemp(),i=t.getTemp(),a=t.getTemp(),c=t.getTemp(),_=t.getTemp(),g=t.getTemp(),m=!!o.isArrayBindingPattern(e),y=new p.Iterator({iterator:n,nextMethod:i},a,c,t,e);y.getIterator();let h=new u.Label,v=new u.Label,b=new u.Label,x=new u.Label,D=new u.Label,S=new u.Label;new d.CatchTable(t,b,new d.LabelPair(h,v)),t.label(e,h);for(let n=0;n<e.elements.length;n++){let i=e.elements[n];if(y.callNext(_),o.isOmittedExpression(i))continue;if(!m&&o.isSpreadElement(i)||m&&i.dotDotDotToken){f(m?i.name:i.expression,y,_,t,r,m),t.branch(i,S);break}let a,c=!1,d=m?i.name:i;if(!m&&o.isBinaryExpression(i)){if(i.operatorToken.kind!=o.SyntaxKind.EqualsToken)throw new Error("Invalid destructuring assignment target");d=i.left,a=i.right,c=!0}else m&&i.initializer&&(a=i.initializer,c=!0);let p=s.LReference.generateLReference(r,d,!!m),g=new u.Label,h=new u.Label,v=new u.Label;y.iteratorComplete(_),t.condition(i,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,l.getVregisterCache)(t,l.CacheList.True),c?g:h),y.iteratorValue(_),c?(t.condition(i,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,l.getVregisterCache)(t,l.CacheList.undefined),g),t.loadAccumulator(i,y.getCurrentValue()),t.branch(i,v),t.label(i,g),r.compileExpression(a),t.branch(i,v)):t.branch(i,v),t.label(i,h),t.loadAccumulator(i,(0,l.getVregisterCache)(t,l.CacheList.undefined)),t.label(i,v),p.setValue()}t.label(e,v),t.loadAccumulator(e,y.getCurrrentDone()),t.condition(e,o.SyntaxKind.EqualsEqualsEqualsToken,(0,l.getVregisterCache)(t,l.CacheList.True),D),t.branch(e,S),t.label(e,b),t.storeAccumulator(e,g),y.close(),t.loadAccumulator(e,g),t.throw(e),t.label(e,x),t.label(e,D),y.close(),t.label(e,S),t.freeTemps(n,i,a,c,_,g)}(e,t,r),(0,c.isObjectBindingOrAssignmentPattern)(e)&&function(e,t,r){let n=t.getTemp();t.storeAccumulator(e,n);let i=!o.isObjectLiteralExpression(e),a=i?e.elements:e.properties,c=a.length;if(0==c||i&&m(a[0])||!i&&o.isSpreadAssignment(a[0])){let r=new u.Label,i=new u.Label;t.loadAccumulator(e,n),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,l.getVregisterCache)(t,l.CacheList.Null),i),t.loadAccumulator(e,n),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,l.getVregisterCache)(t,l.CacheList.undefined),i),t.branch(e,r),t.label(e,i),t.throwObjectNonCoercible(e),t.label(e,r)}let d=new Array,p=new Array;for(let e=0;e<c;e++){let e=t.getTemp();d.push(e)}for(let e=0;e<c;e++){let c=a[e];if(i&&m(c)||!i&&o.isSpreadAssignment(c)){g(c,p,n,t,r);break}p.push(d[e]);let f,y,h=t.getTemp(),v=c,b=!1;if(i){let e=c;v=e.name,f=e.propertyName?e.propertyName:e.name,e.initializer&&(b=!0,y=e.initializer)}else if(o.isPropertyAssignment(c)){f=c.name;let e=c.initializer;if(o.isBinaryExpression(e)){if(e.operatorToken.kind!=o.SyntaxKind.EqualsToken)throw new Error("Invalid destructuring target");v=e.left,y=e.right}else v=e}else{if(!o.isShorthandPropertyAssignment(c))throw new Error("Invalid destructuring target");f=c.name,v=c.name,y=c.objectAssignmentInitializer?c.objectAssignmentInitializer:void 0}if(o.isComputedPropertyName(f))r.compileExpression(f.expression);else if(o.isIdentifier(f)){let e=_.getTextOfIdentifierOrLiteral(f);t.loadAccumulatorString(f,e)}else r.compileExpression(f);t.storeAccumulator(f,d[e]);let x=s.LReference.generateLReference(r,v,i);t.loadObjProperty(c,n,d[e]),t.storeAccumulator(c,h);let D=new u.Label,S=new u.Label;b&&(t.condition(c,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,l.getVregisterCache)(t,l.CacheList.undefined),D),t.loadAccumulator(c,h),t.branch(c,S),t.label(c,D),r.compileExpression(y),t.label(c,S)),x.setValue(),t.freeTemps(h)}t.freeTemps(n,...d)}(e,t,r),t.loadAccumulator(e,n),t.freeTemps(n)}},"./src/debuginfo.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugInfo=t.NodeKind=t.VariableDebugInfo=t.DebugPosInfo=void 0;const o=r("./src/cmdOptions.ts"),s=r("./src/irnodes.ts"),c=a(r("./src/jshelpers.js"));t.DebugPosInfo=class{constructor(){this.l=-1,this.c=-1,this.nodeKind=u.FirstNodeOfFunction}setDebugPosInfoNodeState(e){_.isNode(e)?this.nodeKind=u.Normal:this.nodeKind=e}getDebugPosInfoNodeState(){return this.nodeKind}setBoundLeft(e){this.bl=e}getBoundLeft(){return this.bl}setBoundRight(e){this.br=e}getBoundRight(){return this.br}setSourecLineNum(e){this.l=e}getSourceLineNum(){return this.l}setSourecColumnNum(e){this.c=e}getSourceColumnNum(){return this.c}ClearNodeKind(){this.nodeKind=void 0}};class l{constructor(e,t,r,n,i=0,a=0){this.n="",this.s="",this.st="",this.r=-1,this.start=-1,this.len=-1,this.n=e,this.s=t,this.st=r,this.r=n,this.start=i,this.len=a}setStart(e){this.start=e}getStart(){return this.start}setLength(e){this.len=e}}var u;t.VariableDebugInfo=l,function(e){e[e.Normal=0]="Normal",e[e.Invalid=1]="Invalid",e[e.FirstNodeOfFunction=2]="FirstNodeOfFunction"}(u=t.NodeKind||(t.NodeKind={}));class _{constructor(){}static isNode(e){return e!=u.Invalid&&e!=u.FirstNodeOfFunction&&e!=u.Normal}static updateLastNode(e){_.isNode(e)&&(_.lastNode=e)}static getLastNode(){return _.lastNode}static searchForPos(e){let t=c.getSourceFileOfNode(e);if(!t)return;let r=0;return-1===e.pos||-1===e.end?{loc:{line:-1,character:-1}}:(r=e.getStart(),{loc:t.getLineAndCharacterOfPosition(r)})}static setPosInfoForUninitializeIns(e,t){let r=t.getFirstStmt();if(r){let t=this.searchForPos(r);if(!t)return;e.setSourecLineNum(t.loc.line),e.setSourecColumnNum(t.loc.character)}}static setInvalidPosInfoForUninitializeIns(e,t){e.setSourecLineNum(-1),e.setSourecColumnNum(-1)}static addScope(e){_.scopeArray.push(e)}static getScopeArray(){return _.scopeArray}static clearScopeArray(){_.scopeArray=[]}static setDebuginfoForIns(e,...t){_.updateLastNode(e);let r=-1,n=-1;if(_.isNode(e)){let t=e,i=this.searchForPos(t);if(!i)return;r=i.loc.line,n=i.loc.character}t.forEach((t=>{t.debugPosInfo.setSourecLineNum(r),t.debugPosInfo.setSourecColumnNum(n),t.debugPosInfo.setDebugPosInfoNodeState(e)}))}static matchFormat(e){let t=0,r=e.getFormats();for(let n=0;n<r[0].length;n++)if(e.operands[n]instanceof s.VReg)for(let i=0;i<r.length;i++)e.operands[n].num<1<<r[i][n][1]&&(t=i>t?i:t);return t}static getIRNodeWholeLength(e){if(e instanceof s.Label||e instanceof s.DebugInsStartPlaceHolder||e instanceof s.DebugInsEndPlaceHolder)return 0;let t=1;if(!e.getFormats()[0])return 0;let r=this.matchFormat(e),n=e.getFormats()[r];for(let r=0;r<n.length;r++){if(e instanceof s.CalliDynRange||e instanceof s.CallRange){t+=n[0][1]/8,t+=n[1][1]/8;break}t+=n[r][1]/8}return t}static setPosDebugInfo(e){let t=e.getInsns(),r=0;for(let n=0;n<t.length;n++){t[n].debugPosInfo.getDebugPosInfoNodeState()==u.FirstNodeOfFunction&&_.setInvalidPosInfoForUninitializeIns(t[n].debugPosInfo,e);let i=_.getIRNodeWholeLength(t[n]),a=t[n].debugPosInfo;a&&o.CmdOptions.isDebugMode()&&(a.setBoundLeft(r),a.setBoundRight(r+i)),r+=i,n>0&&t[n-1]instanceof s.Label&&(t[n-1].debugPosInfo=t[n].debugPosInfo)}}static setVariablesDebugInfo(e){let t=e.getInsns();for(let e=0;e<t.length;e++)t[e]instanceof s.DebugInsStartPlaceHolder&&(t[e].getScope().setScopeStartInsIdx(e),t.splice(e,1),e--),t[e]instanceof s.DebugInsEndPlaceHolder&&(t[e].getScope().setScopeEndInsIdx(e),t.splice(e,1),e--);_.getScopeArray().forEach((t=>{t.getName2variable().forEach(((r,n)=>{if(!r.hasAlreadyBinded())return;if("0this"==r.getName()||"0newTarget"==r.getName())return;let i=new l(n,"any","any",r.getVreg().num);i.setStart(t.getScopeStartInsIdx()),i.setLength(t.getScopeEndInsIdx()-t.getScopeStartInsIdx()),e.addDebugVariableInfo(i)}))}))}static setDebugInfo(e){if(_.setPosDebugInfo(e),o.CmdOptions.isDebugMode())return _.setVariablesDebugInfo(e),void _.clearScopeArray()}static setSourceFileDebugInfo(e,t){let r=c.getSourceFileOfNode(t);o.CmdOptions.getSourceFile().length>0?e.setSourceFileDebugInfo(o.CmdOptions.getSourceFile()):e.setSourceFileDebugInfo(r.fileName)}static copyDebugInfo(e,t){t.forEach((t=>t.debugPosInfo=e.debugPosInfo))}static addDebugIns(e,t,r){if(!o.CmdOptions.isDebugMode())return;let n,i=t.getInsns();r?(n=new s.DebugInsStartPlaceHolder(e),_.addScope(e)):n=new s.DebugInsEndPlaceHolder(e),i.push(n)}}t.DebugInfo=_,_.scopeArray=[]},"./src/diagnostic.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getDiagnostic=t.DiagnosticCode=t.createDiagnostic=t.createFileDiagnostic=t.createDiagnosticOnFirstToken=t.printDiagnostic=t.DiagnosticError=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/log.ts");function l(e,t,r,...n){let i=s.getSpanOfTokenAtPosition(e,t.pos);return s.createFileDiagnostic(e,i.start,i.length,r,...n)}function u(e,t,r,...n){let i,a=s.getErrorSpanForNode(e,t);switch(t.kind){case o.SyntaxKind.Identifier:case o.SyntaxKind.PrivateIdentifier:i=s.createFileDiagnostic(e,a.start,a.length,r,o.idText(t));break;case o.SyntaxKind.ReturnStatement:i=l(e,t,r,...n);break;default:i=s.createFileDiagnostic(e,a.start,a.length,r,...n)}return i}function _(e,t,r,n,i,a){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i}}var d;t.DiagnosticError=class{constructor(e,t,r,n){this.code=t,this.irnode=e,this.file=r||void 0,this.args=n||[]}},t.printDiagnostic=function(e){let t=o.flattenDiagnosticMessageText(e.messageText,"\n");if(e.file&&null!=e.start){let{line:r,character:n}=e.file.getLineAndCharacterOfPosition(e.start);(0,c.LOGE)(`${e.file.fileName} (${r+1},${n+1})`,`${t}`)}else(0,c.LOGE)("Error",t)},t.createDiagnosticOnFirstToken=l,t.createFileDiagnostic=u,t.createDiagnostic=function(e,t,r,...n){return t?e?u(e,t,r,...n):s.createDiagnosticForNode(t,r,...n):s.createCompilerDiagnostic(r,...n)},(d=t.DiagnosticCode||(t.DiagnosticCode={}))[d.Identifier_expected=1003]="Identifier_expected",d[d.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma=1013]="A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma",d[d.A_rest_parameter_must_be_last_in_a_parameter_list=1014]="A_rest_parameter_must_be_last_in_a_parameter_list",d[d.Parameter_cannot_have_question_mark_and_initializer=1015]="Parameter_cannot_have_question_mark_and_initializer",d[d.A_required_parameter_cannot_follow_an_optional_parameter=1016]="A_required_parameter_cannot_follow_an_optional_parameter",d[d.The_readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature=1024]="The_readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature",d[d.Accessibility_modifier_already_seen=1028]="Accessibility_modifier_already_seen",d[d._0_modifier_must_precede_1_modifier=1029]="_0_modifier_must_precede_1_modifier",d[d._0_modifier_already_seen=1030]="_0_modifier_already_seen",d[d._0_modifier_cannot_appear_on_class_elements_of_this_kind=1031]="_0_modifier_cannot_appear_on_class_elements_of_this_kind",d[d.A_declare_modifier_cannot_be_used_in_an_already_ambient_context=1038]="A_declare_modifier_cannot_be_used_in_an_already_ambient_context",d[d._0_modifier_cannot_be_used_in_an_ambient_context=1040]="_0_modifier_cannot_be_used_in_an_ambient_context",d[d._0_modifier_cannot_be_used_here=1042]="_0_modifier_cannot_be_used_here",d[d._0_modifier_cannot_appear_on_a_module_or_namespace_element=1044]="_0_modifier_cannot_appear_on_a_module_or_namespace_element",d[d.A_rest_parameter_cannot_be_optional=1047]="A_rest_parameter_cannot_be_optional",d[d.A_rest_parameter_cannot_have_an_initializer=1048]="A_rest_parameter_cannot_have_an_initializer",d[d._0_modifier_cannot_appear_on_a_type_member=1070]="_0_modifier_cannot_appear_on_a_type_member",d[d._0_modifier_cannot_appear_on_an_index_signature=1071]="_0_modifier_cannot_appear_on_an_index_signature",d[d.A_0_modifier_cannot_be_used_with_an_import_declaration=1079]="A_0_modifier_cannot_be_used_with_an_import_declaration",d[d._0_modifier_cannot_appear_on_a_constructor_declaration=1089]="_0_modifier_cannot_appear_on_a_constructor_declaration",d[d._0_modifier_cannot_appear_on_a_parameter=1090]="_0_modifier_cannot_appear_on_a_parameter",d[d.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement=1091]="Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement",d[d.Invalid_use_of_0_in_strict_mode=1100]="Invalid_use_of_0_in_strict_mode",d[d.A_with_statements_are_not_allowed_in_strict_mode=1101]="A_with_statements_are_not_allowed_in_strict_mode",d[d.A_delete_cannot_be_called_on_an_identifier_in_strict_mode=1102]="A_delete_cannot_be_called_on_an_identifier_in_strict_mode",d[d.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement=1104]="A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement",d[d.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement=1105]="A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement",d[d.Jump_target_cannot_cross_function_boundary=1107]="Jump_target_cannot_cross_function_boundary",d[d.A_return_statement_can_only_be_used_within_a_function_body=1108]="A_return_statement_can_only_be_used_within_a_function_body",d[d.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement=1113]="A_default_clause_cannot_appear_more_than_once_in_a_switch_statement",d[d.Duplicate_label_0=1114]="Duplicate_label_0",d[d.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement=1115]="A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement",d[d.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement=1116]="A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement",d[d.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode=1117]="An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode",d[d.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name=1118]="An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name",d[d.An_object_literal_cannot_have_property_and_accessor_with_the_same_name=1119]="An_object_literal_cannot_have_property_and_accessor_with_the_same_name",d[d.Octal_literals_are_not_allowed_in_strict_mode=1121]="Octal_literals_are_not_allowed_in_strict_mode",d[d.Octal_escape_sequences_are_not_allowed_in_strict_mode=1122]="Octal_escape_sequences_are_not_allowed_in_strict_mode",d[d.Variable_declaration_list_cannot_be_empty=1123]="Variable_declaration_list_cannot_be_empty",d[d.Line_break_not_permitted_here=1142]="Line_break_not_permitted_here",d[d.The_const_declarations_can_only_be_declared_inside_a_block=1156]="The_const_declarations_can_only_be_declared_inside_a_block",d[d.The_const_declarations_must_be_initialized=1155]="The_const_declarations_must_be_initialized",d[d.The_let_declarations_can_only_be_declared_inside_a_block=1157]="The_let_declarations_can_only_be_declared_inside_a_block",d[d.Unterminated_regular_expression_literal=1161]="Unterminated_regular_expression_literal",d[d.An_object_member_cannot_be_declared_optional=1162]="An_object_member_cannot_be_declared_optional",d[d.A_yield_expression_is_only_allowed_in_a_generator_body=1163]="A_yield_expression_is_only_allowed_in_a_generator_body",d[d.A_comma_expression_is_not_allowed_in_a_computed_property_name=1171]="A_comma_expression_is_not_allowed_in_a_computed_property_name",d[d.The_extends_clause_already_seen=1172]="The_extends_clause_already_seen",d[d.Classes_can_only_extend_a_single_class=1174]="Classes_can_only_extend_a_single_class",d[d.The_implements_clause_already_seen=1175]="The_implements_clause_already_seen",d[d.Property_destructuring_pattern_expected=1180]="Property_destructuring_pattern_expected",d[d.A_destructuring_declaration_must_have_an_initializer=1182]="A_destructuring_declaration_must_have_an_initializer",d[d.A_rest_element_cannot_have_an_initializer=1186]="A_rest_element_cannot_have_an_initializer",d[d.A_parameter_property_may_not_be_declared_using_a_binding_pattern=1187]="A_parameter_property_may_not_be_declared_using_a_binding_pattern",d[d.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement=1188]="Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement",d[d.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer=1189]="The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer",d[d.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer=1190]="The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer",d[d.Line_terminator_not_permitted_before_arrow=1200]="Line_terminator_not_permitted_before_arrow",d[d.Decorators_are_not_valid_here=1206]="Decorators_are_not_valid_here",d[d.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name=1207]="Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name",d[d.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode=1210]="Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode",d[d.Identifier_expected_0_is_a_reserved_word_in_strict_mode=1212]="Identifier_expected_0_is_a_reserved_word_in_strict_mode",d[d.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode=1213]="Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode",d[d.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode=1214]="Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode",d[d.An_import_declaration_can_only_be_used_in_a_namespace_or_module=1232]="An_import_declaration_can_only_be_used_in_a_namespace_or_module",d[d.An_export_declaration_can_only_be_used_in_a_module=1233]="An_export_declaration_can_only_be_used_in_a_module",d[d.The_abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration=1242]="The_abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration",d[d._0_modifier_cannot_be_used_with_1_modifier=1243]="_0_modifier_cannot_be_used_with_1_modifier",d[d.Abstract_methods_can_only_appear_within_an_abstract_class=1244]="Abstract_methods_can_only_appear_within_an_abstract_class",d[d.A_class_member_cannot_have_the_0_keyword=1248]="A_class_member_cannot_have_the_0_keyword",d[d.A_decorator_can_only_decorate_a_method_implementation_not_an_overload=1249]="A_decorator_can_only_decorate_a_method_implementation_not_an_overload",d[d.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5=1250]="Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5",d[d.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode=1251]="Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode",d[d.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode=1252]="Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode",d[d.A_definite_assignment_assertion_is_not_permitted_in_this_context=1255]="A_definite_assignment_assertion_is_not_permitted_in_this_context",d[d.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module=1262]="Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module",d[d.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions=1263]="Declarations_with_initializers_cannot_also_have_definite_assignment_assertions",d[d.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations=1264]="Declarations_with_definite_assignment_assertions_must_also_have_type_annotations",d[d.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules=1308]="await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules",d[d.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern=1312]="Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern",d[d.A_parameter_property_cannot_be_declared_using_a_rest_parameter=1317]="A_parameter_property_cannot_be_declared_using_a_rest_parameter",d[d.A_default_export_can_only_be_used_in_an_ECMAScript_style_module=1319]="A_default_export_can_only_be_used_in_an_ECMAScript_style_module",d[d.use_strict_directive_cannot_be_used_with_non_simple_parameter_list=1347]="use_strict_directive_cannot_be_used_with_non_simple_parameter_list",d[d.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here=1359]="Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here",d[d.Duplicate_identifier_0=2300]="Duplicate_identifier_0",d[d.The_super_can_only_be_referenced_in_a_derived_class=2335]="The_super_can_only_be_referenced_in_a_derived_class",d[d.The_super_cannot_be_referenced_in_constructor_arguments=2336]="The_super_cannot_be_referenced_in_constructor_arguments",d[d.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors=2337]="Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors",d[d.The_super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class=2338]="The_super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class",d[d.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter=2358]="The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter",d[d.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type=2359]="The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type",d[d.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol=2360]="The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol",d[d.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter=2361]="The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter",d[d.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type=2362]="The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type",d[d.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type=2363]="The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type",d[d.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access=2364]="The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access",d[d.Multiple_constructor_implementations_are_not_allowed=2392]="Multiple_constructor_implementations_are_not_allowed",d[d.Declaration_name_conflicts_with_built_in_global_identifier_0=2397]="Declaration_name_conflicts_with_built_in_global_identifier_0",d[d.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation=2404]="The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation",d[d.The_super_cannot_be_referenced_in_a_computed_property_name=2466]="The_super_cannot_be_referenced_in_a_computed_property_name",d[d.A_rest_element_must_be_last_in_a_destructuring_pattern=2462]="A_rest_element_must_be_last_in_a_destructuring_pattern",d[d.The_let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations=2480]="The_let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations",d[d.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation=2483]="The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation",d[d.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access=2487]="The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access",d[d.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern=2491]="The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern",d[d.A_rest_element_cannot_contain_a_binding_pattern=2501]="A_rest_element_cannot_contain_a_binding_pattern",d[d.The_super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions=2660]="The_super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions",d[d.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module=2661]="Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module",d[d.Left_side_of_comma_operator_is_unused_and_has_no_side_effects=2695]="Left_side_of_comma_operator_is_unused_and_has_no_side_effects",d[d.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access=2701]="The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access",d[d.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access=2778]="The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access",d[d.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access=2779]="The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access",d[d.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access=2781]="The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access",d[d._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2=17012]="_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2",d[d.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor=17013]="Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor",d[d.An_accessibility_modifier_cannot_be_used_with_a_private_identifier=18010]="An_accessibility_modifier_cannot_be_used_with_a_private_identifier",d[d.Private_identifiers_are_not_allowed_outside_class_bodies=18016]="Private_identifiers_are_not_allowed_outside_class_bodies",d[d._0_modifier_cannot_be_used_with_a_private_identifier=18019]="_0_modifier_cannot_be_used_with_a_private_identifier",d[d.In_strict_mode_code_functions_can_only_be_declared_at_top_level_or_inside_a_block=19e3]="In_strict_mode_code_functions_can_only_be_declared_at_top_level_or_inside_a_block",d[d.Class_Declaration_can_only_be_declared_at_top_level_or_inside_a_block=19001]="Class_Declaration_can_only_be_declared_at_top_level_or_inside_a_block",d[d.Incorrect_regular_expression=19002]="Incorrect_regular_expression",d[d.Invalid_regular_expression_Colon_0_Colon_Invalid_escape=19003]="Invalid_regular_expression_Colon_0_Colon_Invalid_escape",d[d._8_and_9_are_not_allowed_in_strict_mode=19004]="_8_and_9_are_not_allowed_in_strict_mode",d[d.const_and_let_declarations_not_allowed_in_statement_positions=19005]="const_and_let_declarations_not_allowed_in_statement_positions",d[d.Getter_must_not_have_any_formal_parameters=19006]="Getter_must_not_have_any_formal_parameters",d[d.Class_declaration_not_allowed_in_statement_position=19007]="Class_declaration_not_allowed_in_statement_position",d[d.Lexical_declaration_let_not_allowed_in_statement_position=19008]="Lexical_declaration_let_not_allowed_in_statement_position",d[d.Lexical_declaration_const_not_allowed_in_statement_position=19009]="Lexical_declaration_const_not_allowed_in_statement_position",d[d.Invalid_regular_expression_flag_0=19010]="Invalid_regular_expression_flag_0",t.getDiagnostic=function(e){switch(e){case 1003:return _(1003,o.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected.");case 1013:return _(1013,o.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma.");case 1014:return _(1014,o.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list.");case 1015:return _(1015,o.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer.");case 1016:return _(1016,o.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter.");case 1024:return _(1024,o.DiagnosticCategory.Error,"The_readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","The 'readonly' modifier can only appear on a property declaration or index signature.");case 1028:return _(1028,o.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen.");case 1029:return _(1029,o.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier.");case 1030:return _(1030,o.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen.");case 1031:return _(1031,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind.");case 1038:return _(1038,o.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context.");case 1040:return _(1040,o.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context.");case 1042:return _(1042,o.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here.");case 1044:return _(1044,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element.");case 1047:return _(1047,o.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional.");case 1048:return _(1048,o.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer.");case 1070:return _(1070,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member.");case 1071:return _(1071,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature.");case 1079:return _(1079,o.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration.");case 1089:return _(1089,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration.");case 1090:return _(1090,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter.");case 1091:return _(1091,o.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement.");case 1100:return _(1100,o.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode.");case 1101:return _(1101,o.DiagnosticCategory.Error,"A_with_statements_are_not_allowed_in_strict_mode_1101","A 'with' statements are not allowed in strict mode.");case 1102:return _(1102,o.DiagnosticCategory.Error,"A_delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","A 'delete' cannot be called on an identifier in strict mode.");case 1104:return _(1104,o.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement.");case 1105:return _(1105,o.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement.");case 1107:return _(1107,o.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary.");case 1108:return _(1108,o.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body.");case 1113:return _(1113,o.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement.");case 1114:return _(1114,o.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'.");case 1115:return _(1115,o.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement.");case 1116:return _(1116,o.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement.");case 1117:return _(1117,o.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode.");case 1118:return _(1118,o.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name.");case 1119:return _(1119,o.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name.");case 1121:return _(1121,o.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode.");case 1122:return _(1122,o.DiagnosticCategory.Error,"Octal_escape_sequences_are_not_allowed_in_strict_mode_1122","Octal escape sequences are not allowed in strict mode.");case 1123:return _(1123,o.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty.");case 1142:return _(1142,o.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here.");case 1156:return _(1156,o.DiagnosticCategory.Error,"The_const_declarations_can_only_be_declared_inside_a_block_1156","The 'const' declarations can only be declared inside a block.");case 1155:return _(1155,o.DiagnosticCategory.Error,"The_const_declarations_must_be_initialized_1155","The 'const' declarations must be initialized.");case 1157:return _(1157,o.DiagnosticCategory.Error,"The_let_declarations_can_only_be_declared_inside_a_block_1157","The 'let' declarations can only be declared inside a block.");case 1161:return _(1161,o.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal.");case 1162:return _(1162,o.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional.");case 1163:return _(1163,o.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body.");case 1171:return _(1171,o.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name.");case 1172:return _(1172,o.DiagnosticCategory.Error,"The_extends_clause_already_seen_1172","The 'extends' clause already seen.");case 1174:return _(1174,o.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class.");case 1175:return _(1175,o.DiagnosticCategory.Error,"The_implements_clause_already_seen_1175","The 'implements' clause already seen.");case 1180:return _(1180,o.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected.");case 1182:return _(1182,o.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer.");case 1186:return _(1186,o.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A_rest_element_cannot_have_an_initializer.");case 1187:return _(1187,o.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern.");case 1188:return _(1188,o.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement.");case 1189:return _(1189,o.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer.");case 1190:return _(1190,o.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer.");case 1200:return _(1200,o.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow.");case 1206:return _(1206,o.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here.");case 1207:return _(1207,o.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name.");case 1210:return _(1210,o.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode.");case 1212:return _(1212,o.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode.");case 1213:return _(1213,o.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode.");case 1214:return _(1214,o.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode.");case 1232:return _(1232,o.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module.");case 1233:return _(1233,o.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module.");case 1242:return _(1242,o.DiagnosticCategory.Error,"The_abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","The 'abstract' modifier can only appear on a class, method, or property declaration.");case 1243:return _(1243,o.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier.");case 1244:return _(1244,o.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class.");case 1248:return _(1248,o.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword.");case 1249:return _(1249,o.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload.");case 1250:return _(1250,o.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'.");case 1251:return _(1251,o.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode.");case 1252:return _(1252,o.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode.");case 1255:return _(1255,o.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context.");case 1262:return _(1262,o.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module.");case 1263:return _(1263,o.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions.");case 1264:return _(1264,o.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations.");case 1308:return _(1308,o.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","await expressions are only allowed within async functions and at the top levels of modules.");case 1312:return _(1312,o.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern.");case 1317:return _(1317,o.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter.");case 1319:return _(1319,o.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module.");case 1347:return _(1347,o.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","use strict directive cannot be used with non-simple parameter list.");case 1359:return _(1359,o.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here.");case 2300:return _(2300,o.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'.");case 2335:return _(2335,o.DiagnosticCategory.Error,"The_super_can_only_be_referenced_in_a_derived_class_2335","The 'super' can only be referenced in a derived class.");case 2336:return _(2336,o.DiagnosticCategory.Error,"The_super_cannot_be_referenced_in_constructor_arguments_2336","The 'super' cannot be referenced in constructor arguments.");case 2337:return _(2337,o.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors.");case 2338:return _(2338,o.DiagnosticCategory.Error,"The_super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_2338","The 'super' property access is permitted only in a constructor, member function, or member accessor of a derived class.");case 2358:return _(2358,o.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter.");case 2359:return _(2359,o.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type.");case 2360:return _(2360,o.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'.");case 2361:return _(2361,o.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter.");case 2362:return _(2362,o.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.");case 2363:return _(2363,o.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.");case 2364:return _(2364,o.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access.");case 2392:return _(2392,o.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed.");case 2397:return _(2397,o.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'.");case 2404:return _(2404,o.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation.");case 2466:return _(2466,o.DiagnosticCategory.Error,"The_super_cannot_be_referenced_in_a_computed_property_name_2466","The 'super' cannot be referenced in a computed property name.");case 2462:return _(2462,o.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern.");case 2480:return _(2480,o.DiagnosticCategory.Error,"The_let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","The 'let' is not allowed to be used as a name in 'let' or 'const' declarations.");case 2483:return _(2483,o.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation.");case 2487:return _(2487,o.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access.");case 2491:return _(2491,o.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern.");case 2501:return _(2501,o.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern.");case 2660:return _(2660,o.DiagnosticCategory.Error,"The_super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","The 'super' can only be referenced in members of derived classes or object literal expressions.");case 2661:return _(2661,o.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module.");case 2695:return _(2695,o.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0);case 2701:return _(2701,o.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access.");case 2778:return _(2778,o.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access.");case 2779:return _(2779,o.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access.");case 2781:return _(2781,o.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access.");case 17012:return _(17012,o.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?");case 17013:return _(17013,o.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor.");case 18010:return _(18010,o.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier.");case 18016:return _(18016,o.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies.");case 18019:return _(18019,o.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier.");case 19e3:return _(19e3,o.DiagnosticCategory.Error,"In_strict_mode_code_functions_can_only_be_declared_at_top_level_or_inside_a_block_19000","In strict mode code, functions can only be declared at top level or inside a block.");case 19001:return _(19001,o.DiagnosticCategory.Error,"Class_Declaration_can_only_be_declared_at_top_level_or_inside_a_block_19001","Class Declaration can only be declared at top level or inside a block.");case 19002:return _(19002,o.DiagnosticCategory.Error,"Incorrect_regular_expression_19002","Incorrect regular expression");case 19003:return _(19003,o.DiagnosticCategory.Error,"Invalid_regular_expression_Colon_0_Colon_Invalid_escape_19003","Invalid regular expression: '{0}': Invalid escape");case 19004:return _(19004,o.DiagnosticCategory.Error,"_8_and_9_are_not_allowed_in_strict_mode_19004","\\8 and \\9 are not allowed in strict mode");case 19005:return _(19005,o.DiagnosticCategory.Error,"const_and_let_declarations_not_allowed_in_statement_positions_19005","const and let declarations not allowed in statement positions");case 19006:return _(19006,o.DiagnosticCategory.Error,"Getter_must_not_have_any_formal_parameters_19006","Getter must not have any formal parameters");case 19007:return _(19007,o.DiagnosticCategory.Error,"Class_declaration_not_allowed_in_statement_position_19007","Class declaration not allowed in statement position");case 19008:return _(19008,o.DiagnosticCategory.Error,"Lexical_declaration_let_not_allowed_in_statement_position_19008","Lexical declaration 'let' not allowed in statement position");case 19009:return _(19009,o.DiagnosticCategory.Error,"Lexical_declaration_const_not_allowed_in_statement_position_19009","Lexical declaration 'const' not allowed in statement position");case 19010:return _(19010,o.DiagnosticCategory.Error,"Invalid_regular_expression_flag_0_19010","Invalid regular expression flag '{0}'");default:return void console.log("The syntax error code is not supported.")}}},"./src/expression/arrayLiteralExpression.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.createArrayFromElements=t.compileArrayLiteralExpression=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/base/literal.ts"),l=r("./src/base/properties.ts"),u=r("./src/pandagen.ts"),_=r("./src/expression/numericLiteral.ts");function d(e,t,r,n){let i=t.getPandaGen();if(0==r.length)return i.createEmptyArray(e),void i.storeAccumulator(e,n);let a=new c.LiteralBuffer,s=i.getTemp(),u=!1,_=!1;for(let e=0;e<r.length;e++){let c=r[e];if((0,l.isConstantExpr)(c)){let o=p(c);if(!u){a.addLiterals(o),e==r.length-1&&(f(i,a,c),i.storeAccumulator(c,n),u=!0);continue}t.compileExpression(c),_?g(i,c,n,s):i.storeOwnProperty(c,n,e)}else o.isSpreadElement(c)?(u||(f(i,a,c),i.storeAccumulator(c,n),u=!0),_||(_=!0,i.loadAccumulatorInt(c,e),i.storeAccumulator(c,s)),m(t,i,c,n,s)):o.isOmittedExpression(c)?(u||(f(i,a,c),i.storeAccumulator(c,n),u=!0),e==r.length-1&&(_?(i.loadAccumulator(c,s),i.storeObjProperty(c,n,"length")):(i.loadAccumulatorInt(c,r.length),i.storeObjProperty(c,n,"length")))):(u||(f(i,a,c),i.storeAccumulator(c,n),u=!0),t.compileExpression(c),_?g(i,c,n,s):i.storeOwnProperty(c,n,e))}i.loadAccumulator(e,n),i.freeTemps(s)}function p(e){let t;switch(e.kind){case o.SyntaxKind.FalseKeyword:t=new c.Literal(c.LiteralTag.BOOLEAN,!1);break;case o.SyntaxKind.TrueKeyword:t=new c.Literal(c.LiteralTag.BOOLEAN,!0);break;case o.SyntaxKind.StringLiteral:t=new c.Literal(c.LiteralTag.STRING,s.getTextOfIdentifierOrLiteral(e));break;case o.SyntaxKind.NumericLiteral:{let r=Number.parseFloat(s.getTextOfIdentifierOrLiteral(e));t=(0,_.isInteger)(r)?new c.Literal(c.LiteralTag.INTEGER,r):new c.Literal(c.LiteralTag.DOUBLE,r);break}case o.SyntaxKind.NullKeyword:t=new c.Literal(c.LiteralTag.NULLVALUE,null);break;default:throw new Error("invalid constant expression")}return t}function f(e,t,r){if(t.isEmpty())e.createEmptyArray(r);else{let n=u.PandaGen.getLiteralArrayBuffer(),i=n.length;n.push(t),e.createArrayWithBuffer(r,i)}}function g(e,t,r,n){e.storeOwnProperty(t,r,n),e.unary(t,o.SyntaxKind.PlusPlusToken,n),e.storeAccumulator(t,n)}function m(e,t,r,n,i){e.compileExpression(r.expression),t.storeArraySpreadElement(r,n,i),t.storeAccumulator(r,i)}t.compileArrayLiteralExpression=function(e,t){let r=e.getPandaGen(),n=r.getTemp();d(t,e,t.elements,n),r.freeTemps(n)},t.createArrayFromElements=d},"./src/expression/bigIntLiteral.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileBigIntLiteral=void 0;const o=a(r("./src/jshelpers.js"));t.compileBigIntLiteral=function(e,t){let r=o.getTextOfIdentifierOrLiteral(t);r=r.substring(0,r.length-1),e.loadAccumulatorBigInt(t,r)}},"./src/expression/callExpression.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.emitCall=t.getHiddenParameters=t.compileCallExpression=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/util.ts"),c=r("./src/base/vregisterCache.ts"),l=r("./src/statement/classStatement.ts"),u=r("./src/expression/arrayLiteralExpression.ts"),_=r("./src/expression/memberAccessExpression.ts");function d(e,t){let r=t.getPandaGen(),n=!1,i=[],a=r.getTemp();if((0,s.isMemberExpression)(e)){n=!0;let s=r.getTemp(),c=r.getTemp(),{obj:u,prop:d}=(0,_.getObjAndProp)(e,s,c,t);e.expression.kind==o.SyntaxKind.SuperKeyword?(0,l.compileSuperProperty)(t,e,s,d):r.loadObjProperty(o.isPropertyAccessExpression(e)?e.name:e.argumentExpression,s,d),r.storeAccumulator(e,a),i.push(a,s),r.freeTemps(c)}else t.compileExpression(e),r.storeAccumulator(e,a),i.push(a);return{arguments:i,passThis:n}}function p(e,t,r){let n=e.getPandaGen(),i=!1;for(let e=0;e<t.arguments.length;e++){let r=t.arguments[e];if(i=!!o.isSpreadElement(r),i)break}return i||t.arguments.forEach((t=>{let i=n.getTemp();e.compileExpression(t),n.storeAccumulator(t,i),r.push(i)})),i}function f(e,t,r,n){let i,a=n.getPandaGen(),s=p(n,e,t),l=e.expression;switch(l.kind){case o.SyntaxKind.ElementAccessExpression:i=l.argumentExpression;break;case o.SyntaxKind.PropertyAccessExpression:i=l.name;break;default:i=e}if(!s)return void a.call(i,[...t],r);let _=t[0],d=r?t[1]:(0,c.getVregisterCache)(a,c.CacheList.undefined),f=a.getTemp();(0,u.createArrayFromElements)(e,n,e.arguments,f),a.callSpread(i,_,d,f),a.freeTemps(f)}t.compileCallExpression=function(e,t,r){let n=t.getPandaGen();if((e.expression.kind==o.SyntaxKind.CallExpression||e.expression.kind==o.SyntaxKind.NewExpression)&&t.compileFunctionReturnThis(e.expression))return;if(e.expression.kind==o.SyntaxKind.SuperKeyword){let r=[],i=p(t,e,r);return(0,l.compileSuperCall)(t,e,r,i),void n.freeTemps(...r)}let{arguments:i,passThis:a}=d(e.expression,t);f(e,i,a,t),n.freeTemps(...i)},t.getHiddenParameters=d,t.emitCall=f},"./src/expression/compileCommaListExpression.ts":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileCommaListExpression=void 0,t.compileCommaListExpression=function(e,t){t.elements.forEach((t=>{e.compileExpression(t)}))}},"./src/expression/memberAccessExpression.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.isValidIndex=t.getObjAndProp=t.compileMemberAccessExpression=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/statement/classStatement.ts"),l=Math.pow(2,32)-1;function u(e,t,r,n){let i=n.getPandaGen(),a=t,c=r;if(s.isSuperProperty(e)||(n.compileExpression(e.expression),i.storeAccumulator(e.expression,t)),o.isPropertyAccessExpression(e)){if(e.name.kind!=o.SyntaxKind.Identifier)throw new Error("Property name of type private Identifier is unimplemented");c=s.getTextOfIdentifierOrLiteral(e.name)}else if(o.isStringLiteral(e.argumentExpression)){c=s.getTextOfIdentifierOrLiteral(e.argumentExpression);let t=Number(c);isNaN(Number.parseFloat(c))||isNaN(t)||!_(t)||String(t)!=c||(c=t)}else if(o.isNumericLiteral(e.argumentExpression))c=parseFloat(s.getTextOfIdentifierOrLiteral(e.argumentExpression)),_(c)||(c=c.toString());else if(o.isPrefixUnaryExpression(e.argumentExpression)&&o.isNumericLiteral(e.argumentExpression.operand)&&(e.argumentExpression.operator==o.SyntaxKind.MinusToken||e.argumentExpression.operator==o.SyntaxKind.PlusToken)){let t=e.argumentExpression,r=parseFloat(s.getTextOfIdentifierOrLiteral(t.operand));c=t.operator==o.SyntaxKind.MinusToken?0===r?r:"-"+r.toString():_(r)?r:"+"+r.toString()}else n.compileExpression(e.argumentExpression),i.storeAccumulator(e.argumentExpression,r),c=r;return{obj:a,prop:c}}function _(e){return!!(e>=0&&e<l&&Number.isInteger(e))}t.compileMemberAccessExpression=function(e,t){let r=t.getPandaGen(),n=r.getTemp(),i=r.getTemp(),{obj:a,prop:l}=u(e,n,i,t);if(s.isSuperProperty(e)){let n=r.getTemp();(0,c.compileSuperProperty)(t,e,n,l),r.freeTemps(n)}else r.loadObjProperty(o.isPropertyAccessExpression(e)?e.name:e.argumentExpression,a,l);r.freeTemps(n,i)},t.getObjAndProp=u,t.isValidIndex=_},"./src/expression/metaProperty.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileMetaProperty=void 0;const o=a(r("./src/jshelpers.js"));t.compileMetaProperty=function(e,t){let r=t.getCurrentScope();if("target"!=o.getTextOfIdentifierOrLiteral(e.name));else{let{scope:n,level:i,v:a}=r.find("4newTarget");if(t.setCallOpt(n,"4newTarget"),!a)throw new Error("fail to access new.target");t.loadTarget(e,{scope:n,level:i,v:a})}}},"./src/expression/newExpression.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileNewExpression=void 0;const n=r("./src/base/util.ts"),i=r("./src/expression/arrayLiteralExpression.ts");t.compileNewExpression=function(e,t){let r=t.getPandaGen(),a=r.getTemp(),o=r.getTemp();if(t.compileExpression(e.expression),r.storeAccumulator(e,a),r.moveVreg(e,o,a),(0,n.containSpreadElement)(e.arguments)){let n=r.getTemp();return(0,i.createArrayFromElements)(e,t,e.arguments,n),r.newObjSpread(e,a,o),void r.freeTemps(a,o,n)}let s=2;e.arguments&&(s+=e.arguments.length);let c=new Array(s);c[0]=a,c[1]=o;let l=2;e.arguments&&e.arguments.forEach((n=>{let i=r.getTemp();t.compileExpression(n),r.storeAccumulator(e,i),c[l++]=i})),r.newObject(e,c),r.freeTemps(...c)}},"./src/expression/numericLiteral.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileNumericLiteral=t.isInteger=void 0;const o=r("./src/base/vregisterCache.ts"),s=a(r("./src/jshelpers.js")),c=Math.pow(2,31)-1;function l(e){return!(!Number.isSafeInteger(e)||e>c)}t.isInteger=l,t.compileNumericLiteral=function(e,t){let r=s.getTextOfIdentifierOrLiteral(t),n=Number.parseFloat(r);Number.isNaN(n)?e.loadAccumulator(t,(0,o.getVregisterCache)(e,o.CacheList.NaN)):Number.isFinite(n)?l(n)?e.loadAccumulatorInt(t,n):e.loadAccumulatorFloat(t,n):e.loadAccumulator(t,(0,o.getVregisterCache)(e,o.CacheList.Infinity))}},"./src/expression/objectLiteralExpression.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.createMethodOrAccessor=t.compileObjectLiteralExpression=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/base/util.ts"),l=r("./src/base/vregisterCache.ts"),u=r("./src/expression/numericLiteral.ts"),_=r("./src/expression/parenthesizedExpression.ts"),d=r("./src/pandagen.ts"),p=r("./src/base/properties.ts"),f=r("./src/base/literal.ts");function g(e){let t;if(e.getValue().kind==o.SyntaxKind.StringLiteral)t=new f.Literal(f.LiteralTag.STRING,s.getTextOfIdentifierOrLiteral(e.getValue()));else if(e.getValue().kind==o.SyntaxKind.NumericLiteral){let r=Number.parseFloat(s.getTextOfIdentifierOrLiteral(e.getValue()));t=(0,u.isInteger)(r)?new f.Literal(f.LiteralTag.INTEGER,r):new f.Literal(f.LiteralTag.DOUBLE,r)}else if(e.getValue().kind==o.SyntaxKind.TrueKeyword||e.getValue().kind==o.SyntaxKind.FalseKeyword)t=e.getValue().kind==o.SyntaxKind.TrueKeyword?new f.Literal(f.LiteralTag.BOOLEAN,!0):new f.Literal(f.LiteralTag.BOOLEAN,!1);else{if(e.getValue().kind!=o.SyntaxKind.NullKeyword)throw new Error("Unreachable Kind of Literal");t=new f.Literal(f.LiteralTag.NULLVALUE,null)}return t}function m(e,t,r,n){let i,a=e.getTemp(),s=e.getTemp(),c=e.getTemp(),u=String(n.getName());if(void 0!==n.getGetter()){let o=n.getGetter();b(e,t,r,o),e.storeAccumulator(o,a),i=o}if(void 0!==n.getSetter()){let a=n.getSetter();b(e,t,r,a),e.storeAccumulator(a,s),i=a}e.loadAccumulatorString(i,u),e.storeAccumulator(i,c),void 0!==n.getGetter()&&void 0!==n.getSetter()?e.defineGetterSetterByValue(i,r,c,a,s,!1):o.isGetAccessorDeclaration(i)?e.defineGetterSetterByValue(i,r,c,a,(0,l.getVregisterCache)(e,l.CacheList.undefined),!1):e.defineGetterSetterByValue(i,r,c,(0,l.getVregisterCache)(e,l.CacheList.undefined),s,!1),e.freeTemps(a,s,c)}function y(e,t,r){let n=e.getPandaGen(),i=n.getTemp();e.compileExpression(t.getValue()),n.storeAccumulator(t.getValue(),i),n.copyDataProperties(t.getValue().parent,r,i),n.freeTemps(i)}function h(e,t,r){let n=e.getPandaGen(),i=n.getTemp();switch(e.compileExpression(t.getName().expression),n.storeAccumulator(t.getValue(),i),t.getValue().kind){case o.SyntaxKind.PropertyAssignment:{e.compileExpression(t.getValue().initializer);let a=x(t.getValue().initializer);n.storeOwnProperty(t.getValue(),r,i,a);break}case o.SyntaxKind.MethodDeclaration:b(n,e,r,t.getValue()),n.storeOwnProperty(t.getValue(),r,i,!0);break;case o.SyntaxKind.GetAccessor:{let a=n.getTemp(),o=t.getValue();b(n,e,r,o),n.storeAccumulator(o,a),n.defineGetterSetterByValue(o,r,i,a,(0,l.getVregisterCache)(n,l.CacheList.undefined),!0),n.freeTemps(a);break}case o.SyntaxKind.SetAccessor:{let a=n.getTemp(),o=t.getValue();b(n,e,r,o),n.storeAccumulator(o,a),n.defineGetterSetterByValue(o,r,i,(0,l.getVregisterCache)(n,l.CacheList.undefined),a,!0),n.freeTemps(a);break}}n.freeTemps(i)}function v(e,t,r){let n=e.getPandaGen(),i=n.getTemp();e.compileExpression(t.getValue()),n.storeAccumulator(t.getValue().parent,i),n.setObjectWithProto(t.getValue().parent,i,r),n.freeTemps(i)}function b(e,t,r,n){let i=t.getCompilerDriver().getFuncInternalName(n,t.getRecorder()),a=t.getCurrentEnv();o.isMethodDeclaration(n)&&n.asteriskToken?e.defineFunction(n,n,i,a):e.defineMethod(n,i,r,a)}function x(e){let t=e;return o.isParenthesizedExpression(e)&&(t=(0,_.findInnerExprOfParenthesis)(e)),!(!o.isFunctionLike(t)&&!o.isClassLike(t)||t.name)}t.compileObjectLiteralExpression=function(e,t){let r=e.getPandaGen(),n=(0,p.generatePropertyFromExpr)(t),i=r.getTemp(),a=!1;if(0==n.length)return r.createEmptyObject(t),r.storeAccumulator(t,i),void r.freeTemps(i);let s=new f.LiteralBuffer;a=function(e,t,r){let n=!1;for(let i of t){if(i.getKind()==p.PropertyKind.Spread||i.getKind()==p.PropertyKind.Computed)break;if(i.getKind()==p.PropertyKind.Prototype||i.isRedeclared())continue;let t=new f.Literal(f.LiteralTag.STRING,String(i.getName()));if(i.getKind()==p.PropertyKind.Constant){let e=g(i);r.addLiterals(t,e),i.setCompiled()}if(i.getKind()==p.PropertyKind.Variable){let a,s=e.getCompilerDriver(),l=i.getValue();if(o.isMethodDeclaration(l)){a=l.asteriskToken?new f.Literal(f.LiteralTag.GENERATOR,s.getFuncInternalName(l,e.getRecorder())):new f.Literal(f.LiteralTag.METHOD,s.getFuncInternalName(l,e.getRecorder()));let o=new f.Literal(f.LiteralTag.METHODAFFILIATE,(0,c.getParamLengthOfFunc)(l));r.addLiterals(t,a,o),i.setCompiled(),n=!0}else a=new f.Literal(f.LiteralTag.NULLVALUE,null),r.addLiterals(t,a)}if(i.getKind()==p.PropertyKind.Accessor){let e=new f.Literal(f.LiteralTag.ACCESSOR,null);r.addLiterals(t,e)}}return n}(e,n,s),function(e,t,r,n,i,a){if(n.isEmpty())t.createEmptyObject(e);else{let r=d.PandaGen.getLiteralArrayBuffer(),o=r.length;if(r.push(n),i){let r=a.getCurrentEnv();t.createObjectHavingMethod(e,o,r)}else t.createObjectWithBuffer(e,o)}t.storeAccumulator(e,r)}(t,r,i,s,a,e),function(e,t,r,n){for(let i of r)if(!i.isCompiled())switch(i.getKind()){case p.PropertyKind.Accessor:m(t,e,n,i);break;case p.PropertyKind.Spread:y(e,i,n);break;case p.PropertyKind.Computed:h(e,i,n);break;case p.PropertyKind.Constant:case p.PropertyKind.Variable:{let r=!1;o.isMethodDeclaration(i.getValue())?b(t,e,n,i.getValue()):(e.compileExpression(i.getValue()),r=x(i.getValue())&&-1!=i.getName().toString().lastIndexOf(".")),t.storeOwnProperty(i.getValue().parent,n,i.getName(),r);break}case p.PropertyKind.Prototype:v(e,i,n);break;default:throw new Error("Unreachable PropertyKind for NullValue setting")}}(e,r,n,i),r.loadAccumulator(t,i),r.freeTemps(i)},t.createMethodOrAccessor=b},"./src/expression/parenthesizedExpression.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.findOuterNodeOfParenthesis=t.findInnerExprOfParenthesis=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js"));t.findInnerExprOfParenthesis=function(e){for(;e.expression.kind==o.SyntaxKind.ParenthesizedExpression;)e=e.expression;return e.expression},t.findOuterNodeOfParenthesis=function(e){let t=e.parent;for(;t.kind==o.SyntaxKind.ParenthesizedExpression;)t=t.parent;return t}},"./src/expression/regularExpression.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileRegularExpressionLiteral=t.RegExpFlags=void 0;const o=a(r("./src/jshelpers.js")),s=r("./src/diagnostic.ts");var c;!function(e){e[e.FLAG_GLOBAL=1]="FLAG_GLOBAL",e[e.FLAG_IGNORECASE=2]="FLAG_IGNORECASE",e[e.FLAG_MULTILINE=4]="FLAG_MULTILINE",e[e.FLAG_DOTALL=8]="FLAG_DOTALL",e[e.FLAG_UTF16=16]="FLAG_UTF16",e[e.FLAG_STICKY=32]="FLAG_STICKY"}(c=t.RegExpFlags||(t.RegExpFlags={})),t.compileRegularExpressionLiteral=function(e,t){let r=e.getPandaGen(),n=t.text,i=n,a="",l=n.indexOf("/"),u=n.lastIndexOf("/");if(-1==l||-1==u||l==u)throw new s.DiagnosticError(t,s.DiagnosticCode.Incorrect_regular_expression);i=n.substring(l+1,u),a=n.substring(u+1);let _=function(e,t){let r=0,n=0;for(let i=0;i<e.length;i++){switch(e[i]){case"g":n=c.FLAG_GLOBAL;break;case"i":n=c.FLAG_IGNORECASE;break;case"m":n=c.FLAG_MULTILINE;break;case"s":n=c.FLAG_DOTALL;break;case"u":n=c.FLAG_UTF16;break;case"y":n=c.FLAG_STICKY;break;default:let r=o.getSourceFileOfNode(t);throw new s.DiagnosticError(t,s.DiagnosticCode.Invalid_regular_expression_flag_0,r,[e[i]])}if(0!=(r&n)){let r=o.getSourceFileOfNode(t);throw new s.DiagnosticError(t,s.DiagnosticCode.Invalid_regular_expression_flag_0,r,[e[i]])}r|=n}return r}(a,t);r.createRegExpWithLiteral(t,i,_)}},"./src/expression/stringLiteral.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileStringLiteral=void 0;const o=a(r("./src/jshelpers.js"));t.compileStringLiteral=function(e,t){let r=o.getTextOfIdentifierOrLiteral(t);e.loadAccumulatorString(t,r)}},"./src/expression/templateExpression.ts":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding(t,e,r);return __setModuleDefault(t,e),t};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getTemplateObject=void 0;const ts=__importStar(__webpack_require__("./node_modules/typescript/lib/typescript.js"));function genRawString(e,t){let r="";r=ts.isTemplateExpression(t)?t.head.rawText:t.rawText,r=r.replace(/(\r?\n|\r)/gm,"\n"),e.loadAccumulatorString(t,r)}function genCookedString(pandaGen,expr){let text="";text=ts.isTemplateExpression(expr)?expr.head.text:expr.text,-1!=text.indexOf("\\u{")&&(text=eval("'"+text+"'"),text=unescape(text.replace(/\u/g,"%u"))),pandaGen.loadAccumulatorString(expr,text)}function genTemplateArrayArg(e,t,r,n){let i;ts.isTemplateExpression(t)&&(i=t.templateSpans);let a=0,o=e.getTemp(),s=e.getTemp(),c=e.getTemp();e.createEmptyArray(t),e.storeAccumulator(t,s),e.createEmptyArray(t),e.storeAccumulator(t,c),e.loadAccumulatorInt(t,a),e.storeAccumulator(t,o),genRawString(e,t),e.storeObjProperty(t,s,o),genCookedString(e,t),e.storeObjProperty(t,c,o),++a,i&&i.length&&i.forEach((t=>{e.loadAccumulatorInt(t,a),e.storeAccumulator(t,o),e.loadAccumulatorString(t,void 0===t.literal.rawText?t.literal.text:t.literal.rawText),e.storeObjProperty(t,s,o),e.loadAccumulatorString(t,t.literal.text),e.storeObjProperty(t,c,o),++a})),e.moveVreg(t,r,s),e.moveVreg(t,n,c),e.freeTemps(o,s,c)}function getTemplateObject(e,t){let r=e.getTemp(),n=e.getTemp(),i=e.getTemp(),a=e.getTemp();genTemplateArrayArg(e,t.template,i,a),e.createEmptyArray(t),e.storeAccumulator(t,r);let o=0;e.loadAccumulatorInt(t,o),e.storeAccumulator(t,n),e.loadAccumulator(t,i),e.storeObjProperty(t,r,n),++o,e.loadAccumulatorInt(t,o),e.storeAccumulator(t,n),e.loadAccumulator(t,a),e.storeObjProperty(t,r,n),e.getTemplateObject(t,r),e.freeTemps(r,n,i,a)}exports.getTemplateObject=getTemplateObject},"./src/expression/yieldExpression.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileYieldExpression=void 0;const n=r("./src/function/generatorFunctionBuilder.ts"),i=r("./src/diagnostic.ts"),a=r("./src/base/vregisterCache.ts");t.compileYieldExpression=function(e,t){if(!(e.getFuncBuilder()instanceof n.GeneratorFunctionBuilder))throw new i.DiagnosticError(t.parent,i.DiagnosticCode.A_yield_expression_is_only_allowed_in_a_generator_body);t.asteriskToken?function(e,t){let r=e.getFuncBuilder();if(!t.expression)throw new Error("yield* must have an expression!");e.compileExpression(t.expression),r.yieldStar(t)}(e,t):function(e,t){let r=e.getPandaGen(),n=e.getFuncBuilder();if(t.expression){let i=r.getTemp();e.compileExpression(t.expression),r.storeAccumulator(t,i),n.yield(t,i),r.freeTemps(i)}else n.yield(t,(0,a.getVregisterCache)(r,a.CacheList.undefined))}(e,t)}},"./src/function/asyncFunctionBuilder.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncFunctionBuilder=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/vregisterCache.ts"),c=r("./src/debuginfo.ts"),l=r("./src/irnodes.ts"),u=r("./src/statement/tryStatement.ts");var _;!function(e){e[e.Return=0]="Return",e[e.Throw=1]="Throw",e[e.Next=2]="Next"}(_||(_={})),t.AsyncFunctionBuilder=class{constructor(e){this.pandaGen=e,this.beginLabel=new l.Label,this.endLabel=new l.Label,this.asyncObj=e.getTemp(),this.retVal=e.getTemp()}prepare(e){let t=this.pandaGen;t.asyncFunctionEnter(c.NodeKind.Invalid),t.storeAccumulator(c.NodeKind.Invalid,this.asyncObj),t.label(e,this.beginLabel)}await(e,t){let r=this.pandaGen,n=this.pandaGen.getTemp();r.asyncFunctionAwaitUncaught(e,this.asyncObj,t),r.storeAccumulator(e,n),r.suspendGenerator(e,this.asyncObj,n),r.freeTemps(n),r.resumeGenerator(e,this.asyncObj),r.storeAccumulator(e,this.retVal),this.handleMode(e)}handleMode(e){let t=this.pandaGen,r=t.getTemp();t.getResumeMode(e,this.asyncObj),t.storeAccumulator(e,r),t.loadAccumulatorInt(e,_.Throw);let n=new l.Label;t.condition(e,o.SyntaxKind.EqualsEqualsToken,r,n),t.loadAccumulator(e,this.retVal),t.throw(e),t.freeTemps(r),t.label(e,n),t.loadAccumulator(e,this.retVal)}resolve(e,t){let r=this.pandaGen;r.asyncFunctionResolve(e,this.asyncObj,(0,s.getVregisterCache)(r,s.CacheList.True),t)}cleanUp(e){let t=this.pandaGen;t.label(e,this.endLabel);let r=t.getTemp();t.storeAccumulator(c.NodeKind.Invalid,r),t.asyncFunctionReject(c.NodeKind.Invalid,this.asyncObj,(0,s.getVregisterCache)(t,s.CacheList.True),r),t.return(c.NodeKind.Invalid),t.freeTemps(r),t.freeTemps(this.asyncObj,this.retVal),new u.CatchTable(t,this.endLabel,new u.LabelPair(this.beginLabel,this.endLabel))}}},"./src/function/functionBuilder.ts":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionBuilder=void 0,t.FunctionBuilder=class{prepare(e){}cleanUp(e){}}},"./src/function/generatorFunctionBuilder.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GeneratorFunctionBuilder=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/vregisterCache.ts"),c=r("./src/compiler.ts"),l=r("./src/irnodes.ts"),u=r("./src/statement/forOfStatement.ts");var _;!function(e){e[e.Return=0]="Return",e[e.Throw=1]="Throw",e[e.Next=2]="Next"}(_||(_={})),t.GeneratorFunctionBuilder=class{constructor(e,t){this.pandaGen=e,this.compiler=t,this.genObj=e.getTemp(),this.retVal=e.getTemp()}prepare(e,t){let r=this.pandaGen;t.getScopeOfNode(e),r.createGeneratorObj(e,(0,s.getVregisterCache)(r,s.CacheList.FUNC)),r.storeAccumulator(e,this.genObj),r.suspendGenerator(e,this.genObj,(0,s.getVregisterCache)(r,s.CacheList.undefined)),r.resumeGenerator(e,this.genObj),r.storeAccumulator(e,this.retVal),this.handleMode(e)}yield(e,t){let r=this.pandaGen,n=r.getTemp();r.EcmaCreateiterresultobj(e,t,(0,s.getVregisterCache)(r,s.CacheList.False)),r.storeAccumulator(e,n),r.suspendGenerator(e,this.genObj,n),r.freeTemps(n),r.resumeGenerator(e,this.genObj),r.storeAccumulator(e,this.retVal),this.handleMode(e)}yieldStar(e){let t=this.pandaGen,r=t.getTemp(),n=t.getTemp(),i=t.getTemp(),a=t.getTemp(),d=new l.Label,p=new l.Label,f=new l.Label,g=new l.Label,m=new l.Label,y=new l.Label,h=new l.Label,v=new l.Label,b=u.IteratorType.Normal,x=(0,u.getIteratorRecord)(t,e,r,n,b);t.moveVreg(e,i,(0,s.getVregisterCache)(t,s.CacheList.undefined)),t.loadAccumulatorInt(e,_.Next),t.storeAccumulator(e,a),t.label(e,d),t.loadAccumulatorInt(e,_.Next),t.condition(e,o.SyntaxKind.EqualsEqualsToken,a,p),t.call(e,[x.getNextMethod(),x.getObject(),i],!0),t.branch(e,g),t.label(e,p),t.loadAccumulatorInt(e,_.Return),t.condition(e,o.SyntaxKind.EqualsEqualsToken,a,f),t.loadObjProperty(e,x.getObject(),"return"),t.storeAccumulator(e,r),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,s.getVregisterCache)(t,s.CacheList.undefined),m),t.call(e,[r,x.getObject(),i],!0),t.branch(e,g),t.label(e,m),this.compiler.compileFinallyBeforeCFC(void 0,c.ControlFlowChange.Break,void 0),t.loadAccumulator(e,i),t.return(e),t.label(e,f),t.loadObjProperty(e,x.getObject(),"throw"),t.storeAccumulator(e,r),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,s.getVregisterCache)(t,s.CacheList.undefined),y),t.call(e,[r,x.getObject(),i],!0),t.branch(e,g),t.label(e,y),t.loadObjProperty(e,x.getObject(),"return"),t.storeAccumulator(e,r),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,s.getVregisterCache)(t,s.CacheList.undefined),v),t.call(e,[r,x.getObject()],!0);let D=t.getTemp();t.storeAccumulator(e,D),t.throwIfNotObject(e,D),t.freeTemps(D),t.label(e,v),t.throwThrowNotExist(e),t.label(e,g),t.storeAccumulator(e,this.retVal),t.throwIfNotObject(e,this.retVal),t.loadObjProperty(e,this.retVal,"done"),t.jumpIfTrue(e,h),t.suspendGenerator(e,this.genObj,this.retVal),t.resumeGenerator(e,this.genObj),t.storeAccumulator(e,i),t.getResumeMode(e,this.genObj),t.storeAccumulator(e,a),t.branch(e,d);let S=new l.Label;t.label(e,h),t.loadObjProperty(e,this.retVal,"value");let E=t.getTemp();t.storeAccumulator(e,E),t.loadAccumulatorInt(e,_.Return),t.condition(e,o.SyntaxKind.EqualsEqualsToken,a,S),this.compiler.compileFinallyBeforeCFC(void 0,c.ControlFlowChange.Break,void 0),t.loadAccumulator(e,E),t.return(e),t.label(e,S),t.loadAccumulator(e,E),t.freeTemps(r,n,i,a,E)}handleMode(e){let t=this.pandaGen,r=t.getTemp();t.getResumeMode(e,this.genObj),t.storeAccumulator(e,r),t.loadAccumulatorInt(e,_.Return);let n=new l.Label;t.condition(e,o.SyntaxKind.EqualsEqualsToken,r,n),this.compiler.compileFinallyBeforeCFC(void 0,c.ControlFlowChange.Break,void 0),t.loadAccumulator(e,this.retVal),t.return(e),t.label(e,n),t.loadAccumulatorInt(e,_.Throw);let i=new l.Label;t.condition(e,o.SyntaxKind.EqualsEqualsToken,r,i),t.loadAccumulator(e,this.retVal),t.throw(e),t.freeTemps(r),t.label(e,i),t.loadAccumulator(e,this.retVal)}cleanUp(){this.pandaGen.freeTemps(this.genObj,this.retVal)}}},"./src/hoisting.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hoistFunctionInBlock=t.hoistFunction=t.hoistVar=t.hoisting=void 0;const n=r("./src/base/util.ts"),i=r("./src/base/vregisterCache.ts"),a=r("./src/debuginfo.ts"),o=r("./src/scope.ts");function s(e,t,r){let n=e.name;if(t instanceof o.GlobalScope)r.loadAccumulator(e.node,(0,i.getVregisterCache)(r,i.CacheList.undefined)),r.storeGlobalVar(e.node,n);else{if(!(t instanceof o.FunctionScope||t instanceof o.ModuleScope))throw new Error("Wrong scope to hoist");{let e=t.findLocal(n);r.loadAccumulator(a.NodeKind.FirstNodeOfFunction,(0,i.getVregisterCache)(r,i.CacheList.undefined)),r.storeAccToLexEnv(a.NodeKind.FirstNodeOfFunction,t,0,e,!0)}}}function c(e,t,r,i,s){let c=e.name,l=s.getFuncInternalName(e.node,i.getRecorder()),u=i.getCurrentEnv();if(t instanceof o.GlobalScope)r.defineFunction(a.NodeKind.FirstNodeOfFunction,e.node,l,u),r.storeGlobalVar(a.NodeKind.FirstNodeOfFunction,c);else{if(!(t instanceof o.FunctionScope||t instanceof o.LocalScope||t instanceof o.ModuleScope))throw new Error("Wrong scope to hoist");{let i=(0,n.hasExportKeywordModifier)(e.node),s=(0,n.hasDefaultKeywordModifier)(e.node),_=t.findLocal(c);i&&t instanceof o.ModuleScope&&(_.setExport(),s?_.setExportedName("default"):_.setExportedName(_.getName())),r.defineFunction(a.NodeKind.FirstNodeOfFunction,e.node,l,u),r.storeAccToLexEnv(a.NodeKind.FirstNodeOfFunction,t,0,_,!0)}}}t.hoisting=function(e,t,r,n){let i=r.getScopeOfNode(e),a=r.getHoistDeclsOfScope(i);null==a||a.forEach((e=>{if(e instanceof o.VarDecl)s(e,i,t);else{if(!(e instanceof o.FuncDecl))throw new Error("Wrong declaration type to be hoisted");{let r=n.getCompilerDriver();c(e,i,t,n,r)}}}))},t.hoistVar=s,t.hoistFunction=c,t.hoistFunctionInBlock=function(e,t,r,n){let i=e.getDecls(),a=new Array;for(let e=0;e<i.length;e++)i[e]instanceof o.FuncDecl&&a.push(i[e]);r&&a.forEach((r=>{let i=n.getCompilerDriver();c(r,e,t,n,i)}))}},"./src/index.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const o=a(r("path")),s=a(r("./node_modules/typescript/lib/typescript.js")),c=a(r("fs")),l=r("./src/cmdOptions.ts"),u=r("./src/compilerDriver.ts"),_=a(r("./src/diagnostic.ts")),d=a(r("./src/jshelpers.js")),p=r("./src/log.ts"),f=r("./src/strictMode.ts"),g=r("./src/typeChecker.ts"),m=r("./src/base/util.ts");function y(e){for(let t of e.statements)if(t.modifiers){for(let e of t.modifiers)if(e.kind===s.SyntaxKind.ExportKeyword)return!1}else{if(t.kind===s.SyntaxKind.ExportAssignment)return!1;if(t.kind===s.SyntaxKind.ImportKeyword||t.kind===s.SyntaxKind.ImportDeclaration)return!1}return!0}function h(e,t){let r=v(e),n=new u.CompilerDriver(r);(0,f.setGlobalStrict)(d.isEffectiveStrictModeSourceFile(e,t)),n.compile(e),n.showStatistics()}function v(e){let t=l.CmdOptions.getOutputBinName(),n=e.fileName.substring(0,e.fileName.lastIndexOf(".")),i=l.CmdOptions.getInputFileName();if(/^win/.test(r("os").platform())){var a=i.split(o.sep);i=o.posix.join(...a)}return n!=i&&(t=n+".abc"),t}const b="####",x="watch_expressions";function D(e,t,r,n){l.CmdOptions.setWatchEvaluateExpressionArgs(["",""]);let i=x+".js",a=!1,p=s.createSourceFile(i,c.readFileSync(e).toString(),s.ScriptTarget.ES2017);n.getSyntacticDiagnostics(p).forEach((e=>{a||(c.writeFileSync(t,"There are syntax errors in input expression.\n"),a=!0),_.printDiagnostic(e)})),a||n.emit(void 0,void 0,void 0,void 0,{before:[e=>e=>{o.basename(e.fileName)==i&&(e=p);let t=v(e);return new u.CompilerDriver(t).compileForSyntaxCheck(e),e}],after:[e=>e=>{var t;if(s.getEmitHelpers(e)){let n=[];null===(t=s.getEmitHelpers(e))||void 0===t||t.forEach((t=>{s.createSourceFile(e.fileName,t.text,r.target,!0,s.ScriptKind.JS).statements.forEach((e=>{let t=(0,m.setPos)(e);n.push(t)}))})),n.push(...e.statements),e=s.factory.updateSourceFile(e,n)}let n=v(e),i=new u.CompilerDriver(n);return(0,f.setGlobalStrict)(d.isEffectiveStrictModeSourceFile(e,r)),i.compile(e),e}]})}var S;!function(e){let t;!function(e){e.Default={outDir:"../tmp/build",allowJs:!0,noEmitOnError:!0,noImplicitAny:!0,target:s.ScriptTarget.ES2017,module:s.ModuleKind.ES2015,strictNullChecks:!0,skipLibCheck:!0,alwaysStrict:!0}}(t=e.Options||(e.Options={}))}(S||(S={})),function(e,t){let r=l.CmdOptions.parseUserCmd(e);if(r){t&&(r.options.project||r.options.build||(r.options=t));try{if(l.CmdOptions.isWatchEvaluateDeamonMode())return void function(e){let t=l.CmdOptions.getEvaluateDeamonPath()+o.sep+x,r=t+".js",n=t+".abc",i=t+".err";if(c.existsSync(r))return void console.log("watchFileServer has been initialized supportTimeout");let a=e.fileNames;c.writeFileSync(r,"initJsFile\n"),c.writeFileSync(i,"initErrMsgFile\n"),a.unshift(r);let u=s.createProgram(a,e.options);D(r,i,e.options,u),c.watchFile(r,{persistent:!0,interval:50},((t,n)=>{if(+t.mtime<=+n.mtime)throw new Error("watched js file has not been initialized");if(c.readFileSync(r).toString()==b)return c.unwatchFile(r),void console.log("stopWatchingSuccess");D(r,i,e.options,u)})),console.log("startWatchingSuccess supportTimeout"),process.on("exit",(()=>{c.unlinkSync(r),c.unlinkSync(n),c.unlinkSync(i)}))}(r);if(l.CmdOptions.isStopEvaluateDeamonMode())return void c.writeFileSync(l.CmdOptions.getEvaluateDeamonPath()+o.sep+x+".js",b);if(l.CmdOptions.isWatchEvaluateExpressionMode())return void function(){let e=l.CmdOptions.getEvaluateExpression();if(!(0,m.isBase64Str)(e))throw new Error("Passed expression string for evaluating is not base64 style.");let t=10;0!=l.CmdOptions.getWatchTimeOutValue()&&(t=l.CmdOptions.getWatchTimeOutValue());let r=l.CmdOptions.getWatchJsPath()+o.sep+x,n=Buffer.from(e,"base64").toString(),i=r+".js",a=r+".abc",s=r+".err";c.watchFile(s,{persistent:!0,interval:50},((e,t)=>{if(+e.mtime<=+t.mtime)throw c.unwatchFile(i),c.unwatchFile(a),new Error("watched errMsg file has not been initialized");console.log("error in genarate abc file for this expression."),c.unwatchFile(a),c.unwatchFile(s),process.exit()})),c.watchFile(a,{persistent:!0,interval:50},((e,t)=>{if(+e.mtime<=+t.mtime)throw c.unwatchFile(i),c.unwatchFile(s),new Error("watched abc file has not been initialized");let r=c.readFileSync(a),n=Buffer.from(r).toString("base64");console.log(n),c.unwatchFile(a),c.unwatchFile(s),process.exit()})),c.writeFileSync(i,n),setTimeout((()=>{throw c.unwatchFile(i),c.unwatchFile(a),c.unwatchFile(s),c.unlinkSync(i),c.unlinkSync(a),c.unlinkSync(s),new Error("watchFileServer has not been initialized")}),1e3*t)}();!function(e,t){const r=s.createCompilerHost(t);l.CmdOptions.needGenerateTmpFile()||(r.writeFile=()=>{});let n=s.createProgram(e,t,r);if(g.TypeChecker.getInstance().setTypeChecker(n.getTypeChecker()),l.CmdOptions.needRecordDtsType())for(let e of n.getSourceFiles())e.isDeclarationFile&&!n.isSourceFileDefaultLibrary(e)&&((0,f.setGlobalDeclare)(y(e)),h(e,t));let i=n.emit(void 0,void 0,void 0,void 0,{before:[e=>e=>{let t=v(e);return new u.CompilerDriver(t).compileForSyntaxCheck(e),e}],after:[e=>e=>{var r;if(s.getEmitHelpers(e)){let n=[];null===(r=s.getEmitHelpers(e))||void 0===r||r.forEach((r=>{s.createSourceFile(e.fileName,r.text,t.target,!0,s.ScriptKind.JS).statements.forEach((e=>{let t=(0,m.setPos)(e);n.push(t)}))})),n.push(...e.statements),e=s.factory.updateSourceFile(e,n)}let n=v(e),i=new u.CompilerDriver(n);return(0,f.setGlobalStrict)(d.isEffectiveStrictModeSourceFile(e,t)),i.compile(e),i.showStatistics(),e}]});s.getPreEmitDiagnostics(n).concat(i.diagnostics).forEach((e=>{_.printDiagnostic(e)}))}(r.fileNames.concat(l.CmdOptions.getIncludedFiles()),r.options)}catch(e){if(e instanceof _.DiagnosticError){let t=_.getDiagnostic(e.code);if(null!=t){let r=_.createDiagnostic(e.file,e.irnode,t,...e.args);_.printDiagnostic(r)}}else{if(!(e instanceof SyntaxError))throw e;(0,p.LOGE)(e.name,e.message)}}}}(process.argv.slice(2),S.Options.Default),global.gc()},"./src/irnodes.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Jgez=t.Jlez=t.Jgtz=t.Jltz=t.Jnez=t.Jeqz=t.JnezObj=t.JeqzObj=t.JneObj=t.JeqObj=t.Jmp=t.FcmpgWide=t.FcmplWide=t.CmpWide=t.StaObj=t.StaWide=t.Sta=t.LdaNull=t.LdaType=t.LdaConst=t.LdaStr=t.FldaiWide=t.LdaiWide=t.Ldai=t.LdaObj=t.LdaWide=t.Lda=t.MovNull=t.FmoviWide=t.MoviWide=t.Movi=t.MovObj=t.MovWide=t.Mov=t.Nop=t.DebugInsEndPlaceHolder=t.DebugInsStartPlaceHolder=t.Label=t.Imm=t.VReg=t.Intrinsic=t.IRNode=t.getInsnFormats=t.getInsnMnemonic=t.OperandKind=t.BuiltIns=t.ResultDst=t.ResultType=t.getInstructionSize=t.IRNodeKind=void 0,t.Starr8=t.LdarrObj=t.FldarrWide=t.Fldarr32=t.LdarrWide=t.Ldarr=t.Ldarru16=t.Ldarr16=t.Ldarru8=t.Ldarr8=t.Inci=t.Mod=t.Div=t.Mul=t.Sub=t.Add=t.Modi=t.Divi=t.Ashri=t.Shri=t.Shli=t.Ori=t.Andi=t.Muli=t.Subi=t.Addi=t.Mod2Wide=t.Mod2=t.Div2Wide=t.Div2=t.Fmod2Wide=t.Fdiv2Wide=t.Fmul2Wide=t.Fsub2Wide=t.Fadd2Wide=t.Mul2Wide=t.Mul2=t.Sub2Wide=t.Sub2=t.Add2Wide=t.Add2=t.NegWide=t.Neg=t.FnegWide=t.Jge=t.Jle=t.Jgt=t.Jlt=t.Jne=t.Jeq=void 0,t.StaDyn=t.LdaDyn=t.MovDyn=t.CallVirtAcc=t.CallVirtAccShort=t.CallVirtRange=t.CallVirt=t.CallVirtShort=t.CallAcc=t.CallAccShort=t.CallRange=t.Call=t.CallShort=t.Isinstance=t.Checkcast=t.Throw=t.ReturnVoid=t.ReturnObj=t.ReturnWide=t.Return=t.StstaticObj=t.StstaticWide=t.Ststatic=t.LdstaticObj=t.LdstaticWide=t.Ldstatic=t.StobjVObj=t.StobjVWide=t.StobjV=t.LdobjVObj=t.LdobjVWide=t.LdobjV=t.StobjObj=t.StobjWide=t.Stobj=t.LdobjObj=t.LdobjWide=t.Ldobj=t.InitobjRange=t.Initobj=t.InitobjShort=t.Newobj=t.Newarr=t.Lenarr=t.StarrObj=t.FstarrWide=t.Fstarr32=t.StarrWide=t.Starr=t.Starr16=void 0,t.I64tou1=t.Fmod2=t.EcmaLdfalse=t.Shl2=t.I32tou1=t.Fdiv2=t.EcmaLdtrue=t.Xor2Wide=t.F64tou64=t.Fmul2=t.EcmaLdglobal=t.Xor2=t.F64tou32=t.Fsub2=t.EcmaLdsymbol=t.Or2Wide=t.Modu2Wide=t.F64toi64=t.Fadd2=t.EcmaLdnull=t.Or2=t.Modu2=t.F64toi32=t.Fneg=t.EcmaLdundefined=t.And2Wide=t.Divu2Wide=t.U64tof64=t.Fcmpg=t.EcmaLdglobalthis=t.And2=t.Divu2=t.I64tof64=t.Fcmpl=t.EcmaLdinfinity=t.NotWide=t.UcmpWide=t.U32tof64=t.Fldai=t.EcmaLdnan=t.Not=t.Ucmp=t.I32tof64=t.Fmovi=t.CalliDynRange=t.CalliDyn=t.CalliDynShort=t.ReturnDyn=t.FldaiDyn=t.LdaiDyn=void 0,t.U64toi32=t.EcmaThrowpatternnoncoercible=t.U32tou8=t.EcmaThrowthrownotexists=t.U32toi8=t.EcmaGetiterator=t.Ashr=t.U32tou16=t.EcmaCreateemptyarray=t.Shr=t.U32toi16=t.F64tof32=t.EcmaCreateemptyobject=t.Shl=t.U32toi64=t.F32tou64=t.EcmaReturnundefined=t.Xor=t.I64toi32=t.F32tou32=t.EcmaLdhole=t.Or=t.I32tou8=t.F32toi64=t.EcmaAsyncfunctionenter=t.And=t.I32toi8=t.F32toi32=t.EcmaGetpropiterator=t.Xori=t.I32tou16=t.F32tof64=t.EcmaGetunmappedargs=t.Ashr2Wide=t.I32toi16=t.U64tof32=t.EcmaPoplexenvdyn=t.Ashr2=t.I32toi64=t.I64tof32=t.EcmaLdlexenvdyn=t.Shr2Wide=t.U64tou1=t.U32tof32=t.EcmaTypeofdyn=t.Shr2=t.U32tou1=t.I32tof32=t.EcmaThrowdyn=t.Shl2Wide=void 0,t.EcmaCallarg1dyn=t.EcmaThrowundefinedifhole=t.EcmaAsyncfunctionawaituncaught=t.EcmaSuspendgenerator=t.EcmaCreateiterresultobj=t.EcmaNewobjspreaddyn=t.EcmaDelobjprop=t.EcmaSupercallspread=t.EcmaCopymodule=t.EcmaCloseiterator=t.EcmaIternext=t.EcmaThrowifnotobject=t.EcmaCallarg0dyn=t.EcmaGetnextpropname=t.EcmaGettemplateobject=t.EcmaThrowconstassignment=t.EcmaCreategeneratorobj=t.EcmaGetresumemode=t.EcmaResumegenerator=t.EcmaStricteqdyn=t.EcmaStrictnoteqdyn=t.EcmaInstanceofdyn=t.EcmaIsindyn=t.EcmaExpdyn=t.EcmaDecdyn=t.EcmaIncdyn=t.EcmaNotdyn=t.EcmaNegdyn=t.EcmaTonumber=t.EcmaXor2dyn=t.EcmaOr2dyn=t.EcmaAnd2dyn=t.EcmaAshr2dyn=t.EcmaShr2dyn=t.EcmaShl2dyn=t.EcmaGreatereqdyn=t.EcmaGreaterdyn=t.EcmaLesseqdyn=t.EcmaLessdyn=t.EcmaNoteqdyn=t.EcmaEqdyn=t.EcmaMod2dyn=t.EcmaDiv2dyn=t.EcmaMul2dyn=t.EcmaSub2dyn=t.EcmaAdd2dyn=t.EcmaDebugger=t.EcmaThrowdeletesuperproperty=t.U64tou32=t.EcmaLdhomeobject=void 0,t.EcmaCreateregexpwithliteral=t.EcmaLdmodvarbyname=t.EcmaStsuperbyname=t.EcmaLdsuperbyname=t.EcmaStownbyname=t.EcmaStobjbyname=t.EcmaLdobjbyname=t.EcmaStglobalvar=t.EcmaLdglobalvar=t.EcmaTrystglobalbyname=t.EcmaTryldglobalbyname=t.EcmaStmodulevar=t.EcmaImportmodule=t.EcmaDefineclasswithbuffer=t.EcmaStlexvardyn=t.EcmaLdlexvardyn=t.EcmaCreateobjectwithbuffer=t.EcmaThrowifsupernotcorrectcall=t.EcmaCreateobjecthavingmethod=t.EcmaCreatearraywithbuffer=t.EcmaCopyrestargs=t.EcmaNewlexenvdyn=t.EcmaDefinemethod=t.EcmaDefineasyncfunc=t.EcmaDefinegeneratorfunc=t.EcmaDefinencfuncdyn=t.EcmaDefinefuncdyn=t.EcmaCreateobjectwithexcludedkeys=t.EcmaSupercall=t.EcmaCallithisrangedyn=t.EcmaCallirangedyn=t.EcmaNewobjdynrange=t.EcmaDefinegettersetterbyvalue=t.EcmaCallargs3dyn=t.EcmaCallargs2dyn=t.EcmaAsyncfunctionreject=t.EcmaAsyncfunctionresolve=t.EcmaCallspreaddyn=t.EcmaStownbyindex=t.EcmaStobjbyindex=t.EcmaLdobjbyindex=t.EcmaStsuperbyvalue=t.EcmaLdsuperbyvalue=t.EcmaStownbyvalue=t.EcmaStobjbyvalue=t.EcmaLdobjbyvalue=t.EcmaSetobjectwithproto=t.EcmaGetiteratornext=t.EcmaStarrayspread=t.EcmaCopydataproperties=void 0,t.EcmaLdbigint=t.EcmaNewlexenvwithnamedyn=t.EcmaLdfunction=t.EcmaStownbynamewithnameset=t.EcmaStownbyvaluewithnameset=t.EcmaStclasstoglobalrecord=t.EcmaStlettoglobalrecord=t.EcmaStconsttoglobalrecord=t.EcmaIsfalse=t.EcmaIstrue=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/debuginfo.ts");var c,l,u,_,d;function p(e){switch(e){case c.NOP:return"nop";case c.MOV:return"mov";case c.MOV_64:return"mov.64";case c.MOV_OBJ:return"mov.obj";case c.MOVI:return"movi";case c.MOVI_64:return"movi.64";case c.FMOVI_64:return"fmovi.64";case c.MOV_NULL:return"mov.null";case c.LDA:return"lda";case c.LDA_64:return"lda.64";case c.LDA_OBJ:return"lda.obj";case c.LDAI:return"ldai";case c.LDAI_64:return"ldai.64";case c.FLDAI_64:return"fldai.64";case c.LDA_STR:return"lda.str";case c.LDA_CONST:return"lda.const";case c.LDA_TYPE:return"lda.type";case c.LDA_NULL:return"lda.null";case c.STA:return"sta";case c.STA_64:return"sta.64";case c.STA_OBJ:return"sta.obj";case c.CMP_64:return"cmp.64";case c.FCMPL_64:return"fcmpl.64";case c.FCMPG_64:return"fcmpg.64";case c.JMP:return"jmp";case c.JEQ_OBJ:return"jeq.obj";case c.JNE_OBJ:return"jne.obj";case c.JEQZ_OBJ:return"jeqz.obj";case c.JNEZ_OBJ:return"jnez.obj";case c.JEQZ:return"jeqz";case c.JNEZ:return"jnez";case c.JLTZ:return"jltz";case c.JGTZ:return"jgtz";case c.JLEZ:return"jlez";case c.JGEZ:return"jgez";case c.JEQ:return"jeq";case c.JNE:return"jne";case c.JLT:return"jlt";case c.JGT:return"jgt";case c.JLE:return"jle";case c.JGE:return"jge";case c.FNEG_64:return"fneg.64";case c.NEG:return"neg";case c.NEG_64:return"neg.64";case c.ADD2:return"add2";case c.ADD2_64:return"add2.64";case c.SUB2:return"sub2";case c.SUB2_64:return"sub2.64";case c.MUL2:return"mul2";case c.MUL2_64:return"mul2.64";case c.FADD2_64:return"fadd2.64";case c.FSUB2_64:return"fsub2.64";case c.FMUL2_64:return"fmul2.64";case c.FDIV2_64:return"fdiv2.64";case c.FMOD2_64:return"fmod2.64";case c.DIV2:return"div2";case c.DIV2_64:return"div2.64";case c.MOD2:return"mod2";case c.MOD2_64:return"mod2.64";case c.ADDI:return"addi";case c.SUBI:return"subi";case c.MULI:return"muli";case c.ANDI:return"andi";case c.ORI:return"ori";case c.SHLI:return"shli";case c.SHRI:return"shri";case c.ASHRI:return"ashri";case c.DIVI:return"divi";case c.MODI:return"modi";case c.ADD:return"add";case c.SUB:return"sub";case c.MUL:return"mul";case c.DIV:return"div";case c.MOD:return"mod";case c.INCI:return"inci";case c.LDARR_8:return"ldarr.8";case c.LDARRU_8:return"ldarru.8";case c.LDARR_16:return"ldarr.16";case c.LDARRU_16:return"ldarru.16";case c.LDARR:return"ldarr";case c.LDARR_64:return"ldarr.64";case c.FLDARR_32:return"fldarr.32";case c.FLDARR_64:return"fldarr.64";case c.LDARR_OBJ:return"ldarr.obj";case c.STARR_8:return"starr.8";case c.STARR_16:return"starr.16";case c.STARR:return"starr";case c.STARR_64:return"starr.64";case c.FSTARR_32:return"fstarr.32";case c.FSTARR_64:return"fstarr.64";case c.STARR_OBJ:return"starr.obj";case c.LENARR:return"lenarr";case c.NEWARR:return"newarr";case c.NEWOBJ:return"newobj";case c.INITOBJ_SHORT:return"initobj.short";case c.INITOBJ:return"initobj";case c.INITOBJ_RANGE:return"initobj.range";case c.LDOBJ:return"ldobj";case c.LDOBJ_64:return"ldobj.64";case c.LDOBJ_OBJ:return"ldobj.obj";case c.STOBJ:return"stobj";case c.STOBJ_64:return"stobj.64";case c.STOBJ_OBJ:return"stobj.obj";case c.LDOBJ_V:return"ldobj.v";case c.LDOBJ_V_64:return"ldobj.v.64";case c.LDOBJ_V_OBJ:return"ldobj.v.obj";case c.STOBJ_V:return"stobj.v";case c.STOBJ_V_64:return"stobj.v.64";case c.STOBJ_V_OBJ:return"stobj.v.obj";case c.LDSTATIC:return"ldstatic";case c.LDSTATIC_64:return"ldstatic.64";case c.LDSTATIC_OBJ:return"ldstatic.obj";case c.STSTATIC:return"ststatic";case c.STSTATIC_64:return"ststatic.64";case c.STSTATIC_OBJ:return"ststatic.obj";case c.RETURN:return"return";case c.RETURN_64:return"return.64";case c.RETURN_OBJ:return"return.obj";case c.RETURN_VOID:return"return.void";case c.THROW:return"throw";case c.CHECKCAST:return"checkcast";case c.ISINSTANCE:return"isinstance";case c.CALL_SHORT:return"call.short";case c.CALL:return"call";case c.CALL_RANGE:return"call.range";case c.CALL_ACC_SHORT:return"call.acc.short";case c.CALL_ACC:return"call.acc";case c.CALL_VIRT_SHORT:return"call.virt.short";case c.CALL_VIRT:return"call.virt";case c.CALL_VIRT_RANGE:return"call.virt.range";case c.CALL_VIRT_ACC_SHORT:return"call.virt.acc.short";case c.CALL_VIRT_ACC:return"call.virt.acc";case c.MOV_DYN:return"mov.dyn";case c.LDA_DYN:return"lda.dyn";case c.STA_DYN:return"sta.dyn";case c.LDAI_DYN:return"ldai.dyn";case c.FLDAI_DYN:return"fldai.dyn";case c.RETURN_DYN:return"return.dyn";case c.CALLI_DYN_SHORT:return"calli.dyn.short";case c.CALLI_DYN:return"calli.dyn";case c.CALLI_DYN_RANGE:return"calli.dyn.range";case c.FMOVI:return"fmovi";case c.I32TOF64:return"i32tof64";case c.UCMP:return"ucmp";case c.NOT:return"not";case c.ECMA_LDNAN:return"ecma.ldnan";case c.FLDAI:return"fldai";case c.U32TOF64:return"u32tof64";case c.UCMP_64:return"ucmp.64";case c.NOT_64:return"not.64";case c.ECMA_LDINFINITY:return"ecma.ldinfinity";case c.FCMPL:return"fcmpl";case c.I64TOF64:return"i64tof64";case c.DIVU2:return"divu2";case c.AND2:return"and2";case c.ECMA_LDGLOBALTHIS:return"ecma.ldglobalthis";case c.FCMPG:return"fcmpg";case c.U64TOF64:return"u64tof64";case c.DIVU2_64:return"divu2.64";case c.AND2_64:return"and2.64";case c.ECMA_LDUNDEFINED:return"ecma.ldundefined";case c.FNEG:return"fneg";case c.F64TOI32:return"f64toi32";case c.MODU2:return"modu2";case c.OR2:return"or2";case c.ECMA_LDNULL:return"ecma.ldnull";case c.FADD2:return"fadd2";case c.F64TOI64:return"f64toi64";case c.MODU2_64:return"modu2.64";case c.OR2_64:return"or2.64";case c.ECMA_LDSYMBOL:return"ecma.ldsymbol";case c.FSUB2:return"fsub2";case c.F64TOU32:return"f64tou32";case c.XOR2:return"xor2";case c.ECMA_LDGLOBAL:return"ecma.ldglobal";case c.FMUL2:return"fmul2";case c.F64TOU64:return"f64tou64";case c.XOR2_64:return"xor2.64";case c.ECMA_LDTRUE:return"ecma.ldtrue";case c.FDIV2:return"fdiv2";case c.I32TOU1:return"i32tou1";case c.SHL2:return"shl2";case c.ECMA_LDFALSE:return"ecma.ldfalse";case c.FMOD2:return"fmod2";case c.I64TOU1:return"i64tou1";case c.SHL2_64:return"shl2.64";case c.ECMA_THROWDYN:return"ecma.throwdyn";case c.I32TOF32:return"i32tof32";case c.U32TOU1:return"u32tou1";case c.SHR2:return"shr2";case c.ECMA_TYPEOFDYN:return"ecma.typeofdyn";case c.U32TOF32:return"u32tof32";case c.U64TOU1:return"u64tou1";case c.SHR2_64:return"shr2.64";case c.ECMA_LDLEXENVDYN:return"ecma.ldlexenvdyn";case c.I64TOF32:return"i64tof32";case c.I32TOI64:return"i32toi64";case c.ASHR2:return"ashr2";case c.ECMA_POPLEXENVDYN:return"ecma.poplexenvdyn";case c.U64TOF32:return"u64tof32";case c.I32TOI16:return"i32toi16";case c.ASHR2_64:return"ashr2.64";case c.ECMA_GETUNMAPPEDARGS:return"ecma.getunmappedargs";case c.F32TOF64:return"f32tof64";case c.I32TOU16:return"i32tou16";case c.XORI:return"xori";case c.ECMA_GETPROPITERATOR:return"ecma.getpropiterator";case c.F32TOI32:return"f32toi32";case c.I32TOI8:return"i32toi8";case c.AND:return"and";case c.ECMA_ASYNCFUNCTIONENTER:return"ecma.asyncfunctionenter";case c.F32TOI64:return"f32toi64";case c.I32TOU8:return"i32tou8";case c.OR:return"or";case c.ECMA_LDHOLE:return"ecma.ldhole";case c.F32TOU32:return"f32tou32";case c.I64TOI32:return"i64toi32";case c.XOR:return"xor";case c.ECMA_RETURNUNDEFINED:return"ecma.returnundefined";case c.F32TOU64:return"f32tou64";case c.U32TOI64:return"u32toi64";case c.SHL:return"shl";case c.ECMA_CREATEEMPTYOBJECT:return"ecma.createemptyobject";case c.F64TOF32:return"f64tof32";case c.U32TOI16:return"u32toi16";case c.SHR:return"shr";case c.ECMA_CREATEEMPTYARRAY:return"ecma.createemptyarray";case c.U32TOU16:return"u32tou16";case c.ASHR:return"ashr";case c.ECMA_GETITERATOR:return"ecma.getiterator";case c.U32TOI8:return"u32toi8";case c.ECMA_THROWTHROWNOTEXISTS:return"ecma.throwthrownotexists";case c.U32TOU8:return"u32tou8";case c.ECMA_THROWPATTERNNONCOERCIBLE:return"ecma.throwpatternnoncoercible";case c.U64TOI32:return"u64toi32";case c.ECMA_LDHOMEOBJECT:return"ecma.ldhomeobject";case c.U64TOU32:return"u64tou32";case c.ECMA_THROWDELETESUPERPROPERTY:return"ecma.throwdeletesuperproperty";case c.ECMA_DEBUGGER:return"ecma.debugger";case c.ECMA_ADD2DYN:return"ecma.add2dyn";case c.ECMA_SUB2DYN:return"ecma.sub2dyn";case c.ECMA_MUL2DYN:return"ecma.mul2dyn";case c.ECMA_DIV2DYN:return"ecma.div2dyn";case c.ECMA_MOD2DYN:return"ecma.mod2dyn";case c.ECMA_EQDYN:return"ecma.eqdyn";case c.ECMA_NOTEQDYN:return"ecma.noteqdyn";case c.ECMA_LESSDYN:return"ecma.lessdyn";case c.ECMA_LESSEQDYN:return"ecma.lesseqdyn";case c.ECMA_GREATERDYN:return"ecma.greaterdyn";case c.ECMA_GREATEREQDYN:return"ecma.greatereqdyn";case c.ECMA_SHL2DYN:return"ecma.shl2dyn";case c.ECMA_SHR2DYN:return"ecma.shr2dyn";case c.ECMA_ASHR2DYN:return"ecma.ashr2dyn";case c.ECMA_AND2DYN:return"ecma.and2dyn";case c.ECMA_OR2DYN:return"ecma.or2dyn";case c.ECMA_XOR2DYN:return"ecma.xor2dyn";case c.ECMA_TONUMBER:return"ecma.tonumber";case c.ECMA_NEGDYN:return"ecma.negdyn";case c.ECMA_NOTDYN:return"ecma.notdyn";case c.ECMA_INCDYN:return"ecma.incdyn";case c.ECMA_DECDYN:return"ecma.decdyn";case c.ECMA_EXPDYN:return"ecma.expdyn";case c.ECMA_ISINDYN:return"ecma.isindyn";case c.ECMA_INSTANCEOFDYN:return"ecma.instanceofdyn";case c.ECMA_STRICTNOTEQDYN:return"ecma.strictnoteqdyn";case c.ECMA_STRICTEQDYN:return"ecma.stricteqdyn";case c.ECMA_RESUMEGENERATOR:return"ecma.resumegenerator";case c.ECMA_GETRESUMEMODE:return"ecma.getresumemode";case c.ECMA_CREATEGENERATOROBJ:return"ecma.creategeneratorobj";case c.ECMA_THROWCONSTASSIGNMENT:return"ecma.throwconstassignment";case c.ECMA_GETTEMPLATEOBJECT:return"ecma.gettemplateobject";case c.ECMA_GETNEXTPROPNAME:return"ecma.getnextpropname";case c.ECMA_CALLARG0DYN:return"ecma.callarg0dyn";case c.ECMA_THROWIFNOTOBJECT:return"ecma.throwifnotobject";case c.ECMA_ITERNEXT:return"ecma.iternext";case c.ECMA_CLOSEITERATOR:return"ecma.closeiterator";case c.ECMA_COPYMODULE:return"ecma.copymodule";case c.ECMA_SUPERCALLSPREAD:return"ecma.supercallspread";case c.ECMA_DELOBJPROP:return"ecma.delobjprop";case c.ECMA_NEWOBJSPREADDYN:return"ecma.newobjspreaddyn";case c.ECMA_CREATEITERRESULTOBJ:return"ecma.createiterresultobj";case c.ECMA_SUSPENDGENERATOR:return"ecma.suspendgenerator";case c.ECMA_ASYNCFUNCTIONAWAITUNCAUGHT:return"ecma.asyncfunctionawaituncaught";case c.ECMA_THROWUNDEFINEDIFHOLE:return"ecma.throwundefinedifhole";case c.ECMA_CALLARG1DYN:return"ecma.callarg1dyn";case c.ECMA_COPYDATAPROPERTIES:return"ecma.copydataproperties";case c.ECMA_STARRAYSPREAD:return"ecma.starrayspread";case c.ECMA_GETITERATORNEXT:return"ecma.getiteratornext";case c.ECMA_SETOBJECTWITHPROTO:return"ecma.setobjectwithproto";case c.ECMA_LDOBJBYVALUE:return"ecma.ldobjbyvalue";case c.ECMA_STOBJBYVALUE:return"ecma.stobjbyvalue";case c.ECMA_STOWNBYVALUE:return"ecma.stownbyvalue";case c.ECMA_LDSUPERBYVALUE:return"ecma.ldsuperbyvalue";case c.ECMA_STSUPERBYVALUE:return"ecma.stsuperbyvalue";case c.ECMA_LDOBJBYINDEX:return"ecma.ldobjbyindex";case c.ECMA_STOBJBYINDEX:return"ecma.stobjbyindex";case c.ECMA_STOWNBYINDEX:return"ecma.stownbyindex";case c.ECMA_CALLSPREADDYN:return"ecma.callspreaddyn";case c.ECMA_ASYNCFUNCTIONRESOLVE:return"ecma.asyncfunctionresolve";case c.ECMA_ASYNCFUNCTIONREJECT:return"ecma.asyncfunctionreject";case c.ECMA_CALLARGS2DYN:return"ecma.callargs2dyn";case c.ECMA_CALLARGS3DYN:return"ecma.callargs3dyn";case c.ECMA_DEFINEGETTERSETTERBYVALUE:return"ecma.definegettersetterbyvalue";case c.ECMA_NEWOBJDYNRANGE:return"ecma.newobjdynrange";case c.ECMA_CALLIRANGEDYN:return"ecma.callirangedyn";case c.ECMA_CALLITHISRANGEDYN:return"ecma.callithisrangedyn";case c.ECMA_SUPERCALL:return"ecma.supercall";case c.ECMA_CREATEOBJECTWITHEXCLUDEDKEYS:return"ecma.createobjectwithexcludedkeys";case c.ECMA_DEFINEFUNCDYN:return"ecma.definefuncdyn";case c.ECMA_DEFINENCFUNCDYN:return"ecma.definencfuncdyn";case c.ECMA_DEFINEGENERATORFUNC:return"ecma.definegeneratorfunc";case c.ECMA_DEFINEASYNCFUNC:return"ecma.defineasyncfunc";case c.ECMA_DEFINEMETHOD:return"ecma.definemethod";case c.ECMA_NEWLEXENVDYN:return"ecma.newlexenvdyn";case c.ECMA_COPYRESTARGS:return"ecma.copyrestargs";case c.ECMA_CREATEARRAYWITHBUFFER:return"ecma.createarraywithbuffer";case c.ECMA_CREATEOBJECTHAVINGMETHOD:return"ecma.createobjecthavingmethod";case c.ECMA_THROWIFSUPERNOTCORRECTCALL:return"ecma.throwifsupernotcorrectcall";case c.ECMA_CREATEOBJECTWITHBUFFER:return"ecma.createobjectwithbuffer";case c.ECMA_LDLEXVARDYN:return"ecma.ldlexvardyn";case c.ECMA_STLEXVARDYN:return"ecma.stlexvardyn";case c.ECMA_DEFINECLASSWITHBUFFER:return"ecma.defineclasswithbuffer";case c.ECMA_IMPORTMODULE:return"ecma.importmodule";case c.ECMA_STMODULEVAR:return"ecma.stmodulevar";case c.ECMA_TRYLDGLOBALBYNAME:return"ecma.tryldglobalbyname";case c.ECMA_TRYSTGLOBALBYNAME:return"ecma.trystglobalbyname";case c.ECMA_LDGLOBALVAR:return"ecma.ldglobalvar";case c.ECMA_STGLOBALVAR:return"ecma.stglobalvar";case c.ECMA_LDOBJBYNAME:return"ecma.ldobjbyname";case c.ECMA_STOBJBYNAME:return"ecma.stobjbyname";case c.ECMA_STOWNBYNAME:return"ecma.stownbyname";case c.ECMA_LDSUPERBYNAME:return"ecma.ldsuperbyname";case c.ECMA_STSUPERBYNAME:return"ecma.stsuperbyname";case c.ECMA_LDMODVARBYNAME:return"ecma.ldmodvarbyname";case c.ECMA_CREATEREGEXPWITHLITERAL:return"ecma.createregexpwithliteral";case c.ECMA_ISTRUE:return"ecma.istrue";case c.ECMA_ISFALSE:return"ecma.isfalse";case c.ECMA_STCONSTTOGLOBALRECORD:return"ecma.stconsttoglobalrecord";case c.ECMA_STLETTOGLOBALRECORD:return"ecma.stlettoglobalrecord";case c.ECMA_STCLASSTOGLOBALRECORD:return"ecma.stclasstoglobalrecord";case c.ECMA_STOWNBYVALUEWITHNAMESET:return"ecma.stownbyvaluewithnameset";case c.ECMA_STOWNBYNAMEWITHNAMESET:return"ecma.stownbynamewithnameset";case c.ECMA_LDFUNCTION:return"ecma.ldfunction";case c.ECMA_NEWLEXENVWITHNAMEDYN:return"ecma.newlexenvwithnamedyn";case c.ECMA_LDBIGINT:return"ecma.ldbigint";default:return""}}function f(e){switch(e){case c.NOP:return[[]];case c.MOV:return[[[1,4],[0,4]],[[1,8],[0,8]],[[1,16],[0,16]]];case c.MOV_64:return[[[1,4],[0,4]],[[1,16],[0,16]]];case c.MOV_OBJ:return[[[1,4],[0,4]],[[1,8],[0,8]],[[1,16],[0,16]]];case c.MOVI:return[[[1,4],[3,4]],[[1,8],[3,8]],[[1,8],[3,16]],[[1,8],[3,32]]];case c.MOVI_64:case c.FMOVI_64:return[[[1,8],[3,64]]];case c.MOV_NULL:return[[[1,8]]];case c.LDA:case c.LDA_64:case c.LDA_OBJ:return[[[0,8]]];case c.LDAI:return[[[3,8]],[[3,16]],[[3,32]]];case c.LDAI_64:case c.FLDAI_64:return[[[3,64]]];case c.LDA_STR:return[[[5,32]]];case c.LDA_CONST:return[[[1,8],[4,32]]];case c.LDA_TYPE:return[[[4,16]]];case c.LDA_NULL:return[[]];case c.STA:case c.STA_64:case c.STA_OBJ:return[[[1,8]]];case c.CMP_64:case c.FCMPL_64:case c.FCMPG_64:return[[[0,8]]];case c.JMP:return[[[6,8]],[[6,16]],[[6,32]]];case c.JEQ_OBJ:case c.JNE_OBJ:return[[[0,8],[6,8]],[[0,8],[6,16]]];case c.JEQZ_OBJ:case c.JNEZ_OBJ:case c.JEQZ:case c.JNEZ:case c.JLTZ:case c.JGTZ:case c.JLEZ:case c.JGEZ:return[[[6,8]],[[6,16]]];case c.JEQ:case c.JNE:case c.JLT:case c.JGT:case c.JLE:case c.JGE:return[[[0,8],[6,8]],[[0,8],[6,16]]];case c.FNEG_64:case c.NEG:case c.NEG_64:return[[]];case c.ADD2:case c.ADD2_64:case c.SUB2:case c.SUB2_64:case c.MUL2:case c.MUL2_64:case c.FADD2_64:case c.FSUB2_64:case c.FMUL2_64:case c.FDIV2_64:case c.FMOD2_64:case c.DIV2:case c.DIV2_64:case c.MOD2:case c.MOD2_64:return[[[0,8]]];case c.ADDI:case c.SUBI:case c.MULI:return[[[3,8]]];case c.ANDI:case c.ORI:return[[[3,32]]];case c.SHLI:case c.SHRI:case c.ASHRI:case c.DIVI:case c.MODI:return[[[3,8]]];case c.ADD:case c.SUB:case c.MUL:case c.DIV:case c.MOD:return[[[0,4],[0,4]]];case c.INCI:return[[[2,4],[3,4]]];case c.LDARR_8:case c.LDARRU_8:case c.LDARR_16:case c.LDARRU_16:case c.LDARR:case c.LDARR_64:case c.FLDARR_32:case c.FLDARR_64:case c.LDARR_OBJ:return[[[0,8]]];case c.STARR_8:case c.STARR_16:case c.STARR:case c.STARR_64:case c.FSTARR_32:case c.FSTARR_64:case c.STARR_OBJ:return[[[0,4],[0,4]]];case c.LENARR:return[[[0,8]]];case c.NEWARR:return[[[1,4],[0,4],[4,16]]];case c.NEWOBJ:return[[[1,8],[4,16]]];case c.INITOBJ_SHORT:return[[[4,16],[0,4],[0,4]]];case c.INITOBJ:return[[[4,16],[0,4],[0,4],[0,4],[0,4]]];case c.INITOBJ_RANGE:return[[[4,16],[0,8]]];case c.LDOBJ:case c.LDOBJ_64:case c.LDOBJ_OBJ:case c.STOBJ:case c.STOBJ_64:case c.STOBJ_OBJ:return[[[0,8],[4,16]]];case c.LDOBJ_V:case c.LDOBJ_V_64:case c.LDOBJ_V_OBJ:return[[[1,4],[0,4],[4,16]]];case c.STOBJ_V:case c.STOBJ_V_64:case c.STOBJ_V_OBJ:return[[[0,4],[0,4],[4,16]]];case c.LDSTATIC:case c.LDSTATIC_64:case c.LDSTATIC_OBJ:case c.STSTATIC:case c.STSTATIC_64:case c.STSTATIC_OBJ:return[[[4,16]]];case c.RETURN:case c.RETURN_64:case c.RETURN_OBJ:case c.RETURN_VOID:return[[]];case c.THROW:return[[[0,8]]];case c.CHECKCAST:case c.ISINSTANCE:return[[[4,16]]];case c.CALL_SHORT:return[[[4,16],[0,4],[0,4]]];case c.CALL:return[[[4,16],[0,4],[0,4],[0,4],[0,4]]];case c.CALL_RANGE:return[[[4,16],[0,8]]];case c.CALL_ACC_SHORT:return[[[4,16],[0,4],[3,4]]];case c.CALL_ACC:return[[[4,16],[0,4],[0,4],[0,4],[3,4]]];case c.CALL_VIRT_SHORT:return[[[4,16],[0,4],[0,4]]];case c.CALL_VIRT:return[[[4,16],[0,4],[0,4],[0,4],[0,4]]];case c.CALL_VIRT_RANGE:return[[[4,16],[0,8]]];case c.CALL_VIRT_ACC_SHORT:return[[[4,16],[0,4],[3,4]]];case c.CALL_VIRT_ACC:return[[[4,16],[0,4],[0,4],[0,4],[3,4]]];case c.MOV_DYN:return[[[1,8],[0,8]],[[1,16],[0,16]]];case c.LDA_DYN:return[[[0,8]]];case c.STA_DYN:return[[[1,8]]];case c.LDAI_DYN:return[[[3,32]]];case c.FLDAI_DYN:return[[[3,64]]];case c.RETURN_DYN:return[[]];case c.CALLI_DYN_SHORT:return[[[3,4],[0,4],[0,4],[0,4]]];case c.CALLI_DYN:return[[[3,4],[0,4],[0,4],[0,4],[0,4],[0,4]]];case c.CALLI_DYN_RANGE:return[[[3,16],[0,16]]];case c.FMOVI:return[[[1,8],[3,32]]];case c.I32TOF64:return[[]];case c.UCMP:return[[[0,8]]];case c.NOT:case c.ECMA_LDNAN:return[[]];case c.FLDAI:return[[[3,32]]];case c.U32TOF64:return[[]];case c.UCMP_64:return[[[0,8]]];case c.NOT_64:case c.ECMA_LDINFINITY:return[[]];case c.FCMPL:return[[[0,8]]];case c.I64TOF64:return[[]];case c.DIVU2:case c.AND2:return[[[0,8]]];case c.ECMA_LDGLOBALTHIS:return[[]];case c.FCMPG:return[[[0,8]]];case c.U64TOF64:return[[]];case c.DIVU2_64:case c.AND2_64:return[[[0,8]]];case c.ECMA_LDUNDEFINED:case c.FNEG:case c.F64TOI32:return[[]];case c.MODU2:case c.OR2:return[[[0,8]]];case c.ECMA_LDNULL:return[[]];case c.FADD2:return[[[0,8]]];case c.F64TOI64:return[[]];case c.MODU2_64:case c.OR2_64:return[[[0,8]]];case c.ECMA_LDSYMBOL:return[[]];case c.FSUB2:return[[[0,8]]];case c.F64TOU32:return[[]];case c.XOR2:return[[[0,8]]];case c.ECMA_LDGLOBAL:return[[]];case c.FMUL2:return[[[0,8]]];case c.F64TOU64:return[[]];case c.XOR2_64:return[[[0,8]]];case c.ECMA_LDTRUE:return[[]];case c.FDIV2:return[[[0,8]]];case c.I32TOU1:return[[]];case c.SHL2:return[[[0,8]]];case c.ECMA_LDFALSE:return[[]];case c.FMOD2:return[[[0,8]]];case c.I64TOU1:return[[]];case c.SHL2_64:return[[[0,8]]];case c.ECMA_THROWDYN:case c.I32TOF32:case c.U32TOU1:return[[]];case c.SHR2:return[[[0,8]]];case c.ECMA_TYPEOFDYN:case c.U32TOF32:case c.U64TOU1:return[[]];case c.SHR2_64:return[[[0,8]]];case c.ECMA_LDLEXENVDYN:case c.I64TOF32:case c.I32TOI64:return[[]];case c.ASHR2:return[[[0,8]]];case c.ECMA_POPLEXENVDYN:case c.U64TOF32:case c.I32TOI16:return[[]];case c.ASHR2_64:return[[[0,8]]];case c.ECMA_GETUNMAPPEDARGS:case c.F32TOF64:case c.I32TOU16:return[[]];case c.XORI:return[[[3,32]]];case c.ECMA_GETPROPITERATOR:case c.F32TOI32:case c.I32TOI8:return[[]];case c.AND:return[[[0,4],[0,4]]];case c.ECMA_ASYNCFUNCTIONENTER:case c.F32TOI64:case c.I32TOU8:return[[]];case c.OR:return[[[0,4],[0,4]]];case c.ECMA_LDHOLE:case c.F32TOU32:case c.I64TOI32:return[[]];case c.XOR:return[[[0,4],[0,4]]];case c.ECMA_RETURNUNDEFINED:case c.F32TOU64:case c.U32TOI64:return[[]];case c.SHL:return[[[0,4],[0,4]]];case c.ECMA_CREATEEMPTYOBJECT:case c.F64TOF32:case c.U32TOI16:return[[]];case c.SHR:return[[[0,4],[0,4]]];case c.ECMA_CREATEEMPTYARRAY:case c.U32TOU16:return[[]];case c.ASHR:return[[[0,4],[0,4]]];case c.ECMA_GETITERATOR:case c.U32TOI8:case c.ECMA_THROWTHROWNOTEXISTS:case c.U32TOU8:case c.ECMA_THROWPATTERNNONCOERCIBLE:case c.U64TOI32:case c.ECMA_LDHOMEOBJECT:case c.U64TOU32:case c.ECMA_THROWDELETESUPERPROPERTY:case c.ECMA_DEBUGGER:return[[]];case c.ECMA_ADD2DYN:case c.ECMA_SUB2DYN:case c.ECMA_MUL2DYN:case c.ECMA_DIV2DYN:case c.ECMA_MOD2DYN:case c.ECMA_EQDYN:case c.ECMA_NOTEQDYN:case c.ECMA_LESSDYN:case c.ECMA_LESSEQDYN:case c.ECMA_GREATERDYN:case c.ECMA_GREATEREQDYN:case c.ECMA_SHL2DYN:case c.ECMA_SHR2DYN:case c.ECMA_ASHR2DYN:case c.ECMA_AND2DYN:case c.ECMA_OR2DYN:case c.ECMA_XOR2DYN:case c.ECMA_TONUMBER:case c.ECMA_NEGDYN:case c.ECMA_NOTDYN:case c.ECMA_INCDYN:case c.ECMA_DECDYN:case c.ECMA_EXPDYN:case c.ECMA_ISINDYN:case c.ECMA_INSTANCEOFDYN:case c.ECMA_STRICTNOTEQDYN:case c.ECMA_STRICTEQDYN:case c.ECMA_RESUMEGENERATOR:case c.ECMA_GETRESUMEMODE:case c.ECMA_CREATEGENERATOROBJ:case c.ECMA_THROWCONSTASSIGNMENT:case c.ECMA_GETTEMPLATEOBJECT:case c.ECMA_GETNEXTPROPNAME:case c.ECMA_CALLARG0DYN:case c.ECMA_THROWIFNOTOBJECT:case c.ECMA_ITERNEXT:case c.ECMA_CLOSEITERATOR:case c.ECMA_COPYMODULE:case c.ECMA_SUPERCALLSPREAD:return[[[0,8]]];case c.ECMA_DELOBJPROP:case c.ECMA_NEWOBJSPREADDYN:case c.ECMA_CREATEITERRESULTOBJ:case c.ECMA_SUSPENDGENERATOR:case c.ECMA_ASYNCFUNCTIONAWAITUNCAUGHT:case c.ECMA_THROWUNDEFINEDIFHOLE:case c.ECMA_CALLARG1DYN:case c.ECMA_COPYDATAPROPERTIES:case c.ECMA_STARRAYSPREAD:case c.ECMA_GETITERATORNEXT:case c.ECMA_SETOBJECTWITHPROTO:case c.ECMA_LDOBJBYVALUE:case c.ECMA_STOBJBYVALUE:case c.ECMA_STOWNBYVALUE:case c.ECMA_LDSUPERBYVALUE:case c.ECMA_STSUPERBYVALUE:return[[[0,8],[0,8]]];case c.ECMA_LDOBJBYINDEX:case c.ECMA_STOBJBYINDEX:case c.ECMA_STOWNBYINDEX:return[[[0,8],[3,32]]];case c.ECMA_CALLSPREADDYN:case c.ECMA_ASYNCFUNCTIONRESOLVE:case c.ECMA_ASYNCFUNCTIONREJECT:case c.ECMA_CALLARGS2DYN:return[[[0,8],[0,8],[0,8]]];case c.ECMA_CALLARGS3DYN:case c.ECMA_DEFINEGETTERSETTERBYVALUE:return[[[0,8],[0,8],[0,8],[0,8]]];case c.ECMA_NEWOBJDYNRANGE:case c.ECMA_CALLIRANGEDYN:case c.ECMA_CALLITHISRANGEDYN:case c.ECMA_SUPERCALL:return[[[3,16],[0,8]]];case c.ECMA_CREATEOBJECTWITHEXCLUDEDKEYS:return[[[3,16],[0,8],[0,8]]];case c.ECMA_DEFINEFUNCDYN:case c.ECMA_DEFINENCFUNCDYN:case c.ECMA_DEFINEGENERATORFUNC:case c.ECMA_DEFINEASYNCFUNC:case c.ECMA_DEFINEMETHOD:return[[[4,16],[3,16],[0,8]]];case c.ECMA_NEWLEXENVDYN:case c.ECMA_COPYRESTARGS:case c.ECMA_CREATEARRAYWITHBUFFER:case c.ECMA_CREATEOBJECTHAVINGMETHOD:case c.ECMA_THROWIFSUPERNOTCORRECTCALL:case c.ECMA_CREATEOBJECTWITHBUFFER:return[[[3,16]]];case c.ECMA_LDLEXVARDYN:return[[[3,4],[3,4]],[[3,8],[3,8]],[[3,16],[3,16]]];case c.ECMA_STLEXVARDYN:return[[[3,4],[3,4],[0,8]],[[3,8],[3,8],[0,8]],[[3,16],[3,16],[0,8]]];case c.ECMA_DEFINECLASSWITHBUFFER:return[[[4,16],[3,16],[3,16],[0,8],[0,8]]];case c.ECMA_IMPORTMODULE:case c.ECMA_STMODULEVAR:case c.ECMA_TRYLDGLOBALBYNAME:case c.ECMA_TRYSTGLOBALBYNAME:case c.ECMA_LDGLOBALVAR:case c.ECMA_STGLOBALVAR:return[[[5,32]]];case c.ECMA_LDOBJBYNAME:case c.ECMA_STOBJBYNAME:case c.ECMA_STOWNBYNAME:case c.ECMA_LDSUPERBYNAME:case c.ECMA_STSUPERBYNAME:case c.ECMA_LDMODVARBYNAME:return[[[5,32],[0,8]]];case c.ECMA_CREATEREGEXPWITHLITERAL:return[[[5,32],[3,8]]];case c.ECMA_ISTRUE:case c.ECMA_ISFALSE:return[[]];case c.ECMA_STCONSTTOGLOBALRECORD:case c.ECMA_STLETTOGLOBALRECORD:case c.ECMA_STCLASSTOGLOBALRECORD:return[[[5,32]]];case c.ECMA_STOWNBYVALUEWITHNAMESET:return[[[0,8],[0,8]]];case c.ECMA_STOWNBYNAMEWITHNAMESET:return[[[5,32],[0,8]]];case c.ECMA_LDFUNCTION:return[[]];case c.ECMA_NEWLEXENVWITHNAMEDYN:return[[[3,16],[3,16]]];case c.ECMA_LDBIGINT:return[[[5,32]]];default:return[]}}!function(e){e[e.NOP=0]="NOP",e[e.MOV=1]="MOV",e[e.MOV_64=2]="MOV_64",e[e.MOV_OBJ=3]="MOV_OBJ",e[e.MOVI=4]="MOVI",e[e.MOVI_64=5]="MOVI_64",e[e.FMOVI_64=6]="FMOVI_64",e[e.MOV_NULL=7]="MOV_NULL",e[e.LDA=8]="LDA",e[e.LDA_64=9]="LDA_64",e[e.LDA_OBJ=10]="LDA_OBJ",e[e.LDAI=11]="LDAI",e[e.LDAI_64=12]="LDAI_64",e[e.FLDAI_64=13]="FLDAI_64",e[e.LDA_STR=14]="LDA_STR",e[e.LDA_CONST=15]="LDA_CONST",e[e.LDA_TYPE=16]="LDA_TYPE",e[e.LDA_NULL=17]="LDA_NULL",e[e.STA=18]="STA",e[e.STA_64=19]="STA_64",e[e.STA_OBJ=20]="STA_OBJ",e[e.CMP_64=21]="CMP_64",e[e.FCMPL_64=22]="FCMPL_64",e[e.FCMPG_64=23]="FCMPG_64",e[e.JMP=24]="JMP",e[e.JEQ_OBJ=25]="JEQ_OBJ",e[e.JNE_OBJ=26]="JNE_OBJ",e[e.JEQZ_OBJ=27]="JEQZ_OBJ",e[e.JNEZ_OBJ=28]="JNEZ_OBJ",e[e.JEQZ=29]="JEQZ",e[e.JNEZ=30]="JNEZ",e[e.JLTZ=31]="JLTZ",e[e.JGTZ=32]="JGTZ",e[e.JLEZ=33]="JLEZ",e[e.JGEZ=34]="JGEZ",e[e.JEQ=35]="JEQ",e[e.JNE=36]="JNE",e[e.JLT=37]="JLT",e[e.JGT=38]="JGT",e[e.JLE=39]="JLE",e[e.JGE=40]="JGE",e[e.FNEG_64=41]="FNEG_64",e[e.NEG=42]="NEG",e[e.NEG_64=43]="NEG_64",e[e.ADD2=44]="ADD2",e[e.ADD2_64=45]="ADD2_64",e[e.SUB2=46]="SUB2",e[e.SUB2_64=47]="SUB2_64",e[e.MUL2=48]="MUL2",e[e.MUL2_64=49]="MUL2_64",e[e.FADD2_64=50]="FADD2_64",e[e.FSUB2_64=51]="FSUB2_64",e[e.FMUL2_64=52]="FMUL2_64",e[e.FDIV2_64=53]="FDIV2_64",e[e.FMOD2_64=54]="FMOD2_64",e[e.DIV2=55]="DIV2",e[e.DIV2_64=56]="DIV2_64",e[e.MOD2=57]="MOD2",e[e.MOD2_64=58]="MOD2_64",e[e.ADDI=59]="ADDI",e[e.SUBI=60]="SUBI",e[e.MULI=61]="MULI",e[e.ANDI=62]="ANDI",e[e.ORI=63]="ORI",e[e.SHLI=64]="SHLI",e[e.SHRI=65]="SHRI",e[e.ASHRI=66]="ASHRI",e[e.DIVI=67]="DIVI",e[e.MODI=68]="MODI",e[e.ADD=69]="ADD",e[e.SUB=70]="SUB",e[e.MUL=71]="MUL",e[e.DIV=72]="DIV",e[e.MOD=73]="MOD",e[e.INCI=74]="INCI",e[e.LDARR_8=75]="LDARR_8",e[e.LDARRU_8=76]="LDARRU_8",e[e.LDARR_16=77]="LDARR_16",e[e.LDARRU_16=78]="LDARRU_16",e[e.LDARR=79]="LDARR",e[e.LDARR_64=80]="LDARR_64",e[e.FLDARR_32=81]="FLDARR_32",e[e.FLDARR_64=82]="FLDARR_64",e[e.LDARR_OBJ=83]="LDARR_OBJ",e[e.STARR_8=84]="STARR_8",e[e.STARR_16=85]="STARR_16",e[e.STARR=86]="STARR",e[e.STARR_64=87]="STARR_64",e[e.FSTARR_32=88]="FSTARR_32",e[e.FSTARR_64=89]="FSTARR_64",e[e.STARR_OBJ=90]="STARR_OBJ",e[e.LENARR=91]="LENARR",e[e.NEWARR=92]="NEWARR",e[e.NEWOBJ=93]="NEWOBJ",e[e.INITOBJ_SHORT=94]="INITOBJ_SHORT",e[e.INITOBJ=95]="INITOBJ",e[e.INITOBJ_RANGE=96]="INITOBJ_RANGE",e[e.LDOBJ=97]="LDOBJ",e[e.LDOBJ_64=98]="LDOBJ_64",e[e.LDOBJ_OBJ=99]="LDOBJ_OBJ",e[e.STOBJ=100]="STOBJ",e[e.STOBJ_64=101]="STOBJ_64",e[e.STOBJ_OBJ=102]="STOBJ_OBJ",e[e.LDOBJ_V=103]="LDOBJ_V",e[e.LDOBJ_V_64=104]="LDOBJ_V_64",e[e.LDOBJ_V_OBJ=105]="LDOBJ_V_OBJ",e[e.STOBJ_V=106]="STOBJ_V",e[e.STOBJ_V_64=107]="STOBJ_V_64",e[e.STOBJ_V_OBJ=108]="STOBJ_V_OBJ",e[e.LDSTATIC=109]="LDSTATIC",e[e.LDSTATIC_64=110]="LDSTATIC_64",e[e.LDSTATIC_OBJ=111]="LDSTATIC_OBJ",e[e.STSTATIC=112]="STSTATIC",e[e.STSTATIC_64=113]="STSTATIC_64",e[e.STSTATIC_OBJ=114]="STSTATIC_OBJ",e[e.RETURN=115]="RETURN",e[e.RETURN_64=116]="RETURN_64",e[e.RETURN_OBJ=117]="RETURN_OBJ",e[e.RETURN_VOID=118]="RETURN_VOID",e[e.THROW=119]="THROW",e[e.CHECKCAST=120]="CHECKCAST",e[e.ISINSTANCE=121]="ISINSTANCE",e[e.CALL_SHORT=122]="CALL_SHORT",e[e.CALL=123]="CALL",e[e.CALL_RANGE=124]="CALL_RANGE",e[e.CALL_ACC_SHORT=125]="CALL_ACC_SHORT",e[e.CALL_ACC=126]="CALL_ACC",e[e.CALL_VIRT_SHORT=127]="CALL_VIRT_SHORT",e[e.CALL_VIRT=128]="CALL_VIRT",e[e.CALL_VIRT_RANGE=129]="CALL_VIRT_RANGE",e[e.CALL_VIRT_ACC_SHORT=130]="CALL_VIRT_ACC_SHORT",e[e.CALL_VIRT_ACC=131]="CALL_VIRT_ACC",e[e.MOV_DYN=132]="MOV_DYN",e[e.LDA_DYN=133]="LDA_DYN",e[e.STA_DYN=134]="STA_DYN",e[e.LDAI_DYN=135]="LDAI_DYN",e[e.FLDAI_DYN=136]="FLDAI_DYN",e[e.RETURN_DYN=137]="RETURN_DYN",e[e.CALLI_DYN_SHORT=138]="CALLI_DYN_SHORT",e[e.CALLI_DYN=139]="CALLI_DYN",e[e.CALLI_DYN_RANGE=140]="CALLI_DYN_RANGE",e[e.FMOVI=141]="FMOVI",e[e.I32TOF64=142]="I32TOF64",e[e.UCMP=143]="UCMP",e[e.NOT=144]="NOT",e[e.ECMA_LDNAN=145]="ECMA_LDNAN",e[e.FLDAI=146]="FLDAI",e[e.U32TOF64=147]="U32TOF64",e[e.UCMP_64=148]="UCMP_64",e[e.NOT_64=149]="NOT_64",e[e.ECMA_LDINFINITY=150]="ECMA_LDINFINITY",e[e.FCMPL=151]="FCMPL",e[e.I64TOF64=152]="I64TOF64",e[e.DIVU2=153]="DIVU2",e[e.AND2=154]="AND2",e[e.ECMA_LDGLOBALTHIS=155]="ECMA_LDGLOBALTHIS",e[e.FCMPG=156]="FCMPG",e[e.U64TOF64=157]="U64TOF64",e[e.DIVU2_64=158]="DIVU2_64",e[e.AND2_64=159]="AND2_64",e[e.ECMA_LDUNDEFINED=160]="ECMA_LDUNDEFINED",e[e.FNEG=161]="FNEG",e[e.F64TOI32=162]="F64TOI32",e[e.MODU2=163]="MODU2",e[e.OR2=164]="OR2",e[e.ECMA_LDNULL=165]="ECMA_LDNULL",e[e.FADD2=166]="FADD2",e[e.F64TOI64=167]="F64TOI64",e[e.MODU2_64=168]="MODU2_64",e[e.OR2_64=169]="OR2_64",e[e.ECMA_LDSYMBOL=170]="ECMA_LDSYMBOL",e[e.FSUB2=171]="FSUB2",e[e.F64TOU32=172]="F64TOU32",e[e.XOR2=173]="XOR2",e[e.ECMA_LDGLOBAL=174]="ECMA_LDGLOBAL",e[e.FMUL2=175]="FMUL2",e[e.F64TOU64=176]="F64TOU64",e[e.XOR2_64=177]="XOR2_64",e[e.ECMA_LDTRUE=178]="ECMA_LDTRUE",e[e.FDIV2=179]="FDIV2",e[e.I32TOU1=180]="I32TOU1",e[e.SHL2=181]="SHL2",e[e.ECMA_LDFALSE=182]="ECMA_LDFALSE",e[e.FMOD2=183]="FMOD2",e[e.I64TOU1=184]="I64TOU1",e[e.SHL2_64=185]="SHL2_64",e[e.ECMA_THROWDYN=186]="ECMA_THROWDYN",e[e.I32TOF32=187]="I32TOF32",e[e.U32TOU1=188]="U32TOU1",e[e.SHR2=189]="SHR2",e[e.ECMA_TYPEOFDYN=190]="ECMA_TYPEOFDYN",e[e.U32TOF32=191]="U32TOF32",e[e.U64TOU1=192]="U64TOU1",e[e.SHR2_64=193]="SHR2_64",e[e.ECMA_LDLEXENVDYN=194]="ECMA_LDLEXENVDYN",e[e.I64TOF32=195]="I64TOF32",e[e.I32TOI64=196]="I32TOI64",e[e.ASHR2=197]="ASHR2",e[e.ECMA_POPLEXENVDYN=198]="ECMA_POPLEXENVDYN",e[e.U64TOF32=199]="U64TOF32",e[e.I32TOI16=200]="I32TOI16",e[e.ASHR2_64=201]="ASHR2_64",e[e.ECMA_GETUNMAPPEDARGS=202]="ECMA_GETUNMAPPEDARGS",e[e.F32TOF64=203]="F32TOF64",e[e.I32TOU16=204]="I32TOU16",e[e.XORI=205]="XORI",e[e.ECMA_GETPROPITERATOR=206]="ECMA_GETPROPITERATOR",e[e.F32TOI32=207]="F32TOI32",e[e.I32TOI8=208]="I32TOI8",e[e.AND=209]="AND",e[e.ECMA_ASYNCFUNCTIONENTER=210]="ECMA_ASYNCFUNCTIONENTER",e[e.F32TOI64=211]="F32TOI64",e[e.I32TOU8=212]="I32TOU8",e[e.OR=213]="OR",e[e.ECMA_LDHOLE=214]="ECMA_LDHOLE",e[e.F32TOU32=215]="F32TOU32",e[e.I64TOI32=216]="I64TOI32",e[e.XOR=217]="XOR",e[e.ECMA_RETURNUNDEFINED=218]="ECMA_RETURNUNDEFINED",e[e.F32TOU64=219]="F32TOU64",e[e.U32TOI64=220]="U32TOI64",e[e.SHL=221]="SHL",e[e.ECMA_CREATEEMPTYOBJECT=222]="ECMA_CREATEEMPTYOBJECT",e[e.F64TOF32=223]="F64TOF32",e[e.U32TOI16=224]="U32TOI16",e[e.SHR=225]="SHR",e[e.ECMA_CREATEEMPTYARRAY=226]="ECMA_CREATEEMPTYARRAY",e[e.U32TOU16=227]="U32TOU16",e[e.ASHR=228]="ASHR",e[e.ECMA_GETITERATOR=229]="ECMA_GETITERATOR",e[e.U32TOI8=230]="U32TOI8",e[e.ECMA_THROWTHROWNOTEXISTS=231]="ECMA_THROWTHROWNOTEXISTS",e[e.U32TOU8=232]="U32TOU8",e[e.ECMA_THROWPATTERNNONCOERCIBLE=233]="ECMA_THROWPATTERNNONCOERCIBLE",e[e.U64TOI32=234]="U64TOI32",e[e.ECMA_LDHOMEOBJECT=235]="ECMA_LDHOMEOBJECT",e[e.U64TOU32=236]="U64TOU32",e[e.ECMA_THROWDELETESUPERPROPERTY=237]="ECMA_THROWDELETESUPERPROPERTY",e[e.ECMA_DEBUGGER=238]="ECMA_DEBUGGER",e[e.ECMA_ADD2DYN=239]="ECMA_ADD2DYN",e[e.ECMA_SUB2DYN=240]="ECMA_SUB2DYN",e[e.ECMA_MUL2DYN=241]="ECMA_MUL2DYN",e[e.ECMA_DIV2DYN=242]="ECMA_DIV2DYN",e[e.ECMA_MOD2DYN=243]="ECMA_MOD2DYN",e[e.ECMA_EQDYN=244]="ECMA_EQDYN",e[e.ECMA_NOTEQDYN=245]="ECMA_NOTEQDYN",e[e.ECMA_LESSDYN=246]="ECMA_LESSDYN",e[e.ECMA_LESSEQDYN=247]="ECMA_LESSEQDYN",e[e.ECMA_GREATERDYN=248]="ECMA_GREATERDYN",e[e.ECMA_GREATEREQDYN=249]="ECMA_GREATEREQDYN",e[e.ECMA_SHL2DYN=250]="ECMA_SHL2DYN",e[e.ECMA_SHR2DYN=251]="ECMA_SHR2DYN",e[e.ECMA_ASHR2DYN=252]="ECMA_ASHR2DYN",e[e.ECMA_AND2DYN=253]="ECMA_AND2DYN",e[e.ECMA_OR2DYN=254]="ECMA_OR2DYN",e[e.ECMA_XOR2DYN=255]="ECMA_XOR2DYN",e[e.ECMA_TONUMBER=256]="ECMA_TONUMBER",e[e.ECMA_NEGDYN=257]="ECMA_NEGDYN",e[e.ECMA_NOTDYN=258]="ECMA_NOTDYN",e[e.ECMA_INCDYN=259]="ECMA_INCDYN",e[e.ECMA_DECDYN=260]="ECMA_DECDYN",e[e.ECMA_EXPDYN=261]="ECMA_EXPDYN",e[e.ECMA_ISINDYN=262]="ECMA_ISINDYN",e[e.ECMA_INSTANCEOFDYN=263]="ECMA_INSTANCEOFDYN",e[e.ECMA_STRICTNOTEQDYN=264]="ECMA_STRICTNOTEQDYN",e[e.ECMA_STRICTEQDYN=265]="ECMA_STRICTEQDYN",e[e.ECMA_RESUMEGENERATOR=266]="ECMA_RESUMEGENERATOR",e[e.ECMA_GETRESUMEMODE=267]="ECMA_GETRESUMEMODE",e[e.ECMA_CREATEGENERATOROBJ=268]="ECMA_CREATEGENERATOROBJ",e[e.ECMA_THROWCONSTASSIGNMENT=269]="ECMA_THROWCONSTASSIGNMENT",e[e.ECMA_GETTEMPLATEOBJECT=270]="ECMA_GETTEMPLATEOBJECT",e[e.ECMA_GETNEXTPROPNAME=271]="ECMA_GETNEXTPROPNAME",e[e.ECMA_CALLARG0DYN=272]="ECMA_CALLARG0DYN",e[e.ECMA_THROWIFNOTOBJECT=273]="ECMA_THROWIFNOTOBJECT",e[e.ECMA_ITERNEXT=274]="ECMA_ITERNEXT",e[e.ECMA_CLOSEITERATOR=275]="ECMA_CLOSEITERATOR",e[e.ECMA_COPYMODULE=276]="ECMA_COPYMODULE",e[e.ECMA_SUPERCALLSPREAD=277]="ECMA_SUPERCALLSPREAD",e[e.ECMA_DELOBJPROP=278]="ECMA_DELOBJPROP",e[e.ECMA_NEWOBJSPREADDYN=279]="ECMA_NEWOBJSPREADDYN",e[e.ECMA_CREATEITERRESULTOBJ=280]="ECMA_CREATEITERRESULTOBJ",e[e.ECMA_SUSPENDGENERATOR=281]="ECMA_SUSPENDGENERATOR",e[e.ECMA_ASYNCFUNCTIONAWAITUNCAUGHT=282]="ECMA_ASYNCFUNCTIONAWAITUNCAUGHT",e[e.ECMA_THROWUNDEFINEDIFHOLE=283]="ECMA_THROWUNDEFINEDIFHOLE",e[e.ECMA_CALLARG1DYN=284]="ECMA_CALLARG1DYN",e[e.ECMA_COPYDATAPROPERTIES=285]="ECMA_COPYDATAPROPERTIES",e[e.ECMA_STARRAYSPREAD=286]="ECMA_STARRAYSPREAD",e[e.ECMA_GETITERATORNEXT=287]="ECMA_GETITERATORNEXT",e[e.ECMA_SETOBJECTWITHPROTO=288]="ECMA_SETOBJECTWITHPROTO",e[e.ECMA_LDOBJBYVALUE=289]="ECMA_LDOBJBYVALUE",e[e.ECMA_STOBJBYVALUE=290]="ECMA_STOBJBYVALUE",e[e.ECMA_STOWNBYVALUE=291]="ECMA_STOWNBYVALUE",e[e.ECMA_LDSUPERBYVALUE=292]="ECMA_LDSUPERBYVALUE",e[e.ECMA_STSUPERBYVALUE=293]="ECMA_STSUPERBYVALUE",e[e.ECMA_LDOBJBYINDEX=294]="ECMA_LDOBJBYINDEX",e[e.ECMA_STOBJBYINDEX=295]="ECMA_STOBJBYINDEX",e[e.ECMA_STOWNBYINDEX=296]="ECMA_STOWNBYINDEX",e[e.ECMA_CALLSPREADDYN=297]="ECMA_CALLSPREADDYN",e[e.ECMA_ASYNCFUNCTIONRESOLVE=298]="ECMA_ASYNCFUNCTIONRESOLVE",e[e.ECMA_ASYNCFUNCTIONREJECT=299]="ECMA_ASYNCFUNCTIONREJECT",e[e.ECMA_CALLARGS2DYN=300]="ECMA_CALLARGS2DYN",e[e.ECMA_CALLARGS3DYN=301]="ECMA_CALLARGS3DYN",e[e.ECMA_DEFINEGETTERSETTERBYVALUE=302]="ECMA_DEFINEGETTERSETTERBYVALUE",e[e.ECMA_NEWOBJDYNRANGE=303]="ECMA_NEWOBJDYNRANGE",e[e.ECMA_CALLIRANGEDYN=304]="ECMA_CALLIRANGEDYN",e[e.ECMA_CALLITHISRANGEDYN=305]="ECMA_CALLITHISRANGEDYN",e[e.ECMA_SUPERCALL=306]="ECMA_SUPERCALL",e[e.ECMA_CREATEOBJECTWITHEXCLUDEDKEYS=307]="ECMA_CREATEOBJECTWITHEXCLUDEDKEYS",e[e.ECMA_DEFINEFUNCDYN=308]="ECMA_DEFINEFUNCDYN",e[e.ECMA_DEFINENCFUNCDYN=309]="ECMA_DEFINENCFUNCDYN",e[e.ECMA_DEFINEGENERATORFUNC=310]="ECMA_DEFINEGENERATORFUNC",e[e.ECMA_DEFINEASYNCFUNC=311]="ECMA_DEFINEASYNCFUNC",e[e.ECMA_DEFINEMETHOD=312]="ECMA_DEFINEMETHOD",e[e.ECMA_NEWLEXENVDYN=313]="ECMA_NEWLEXENVDYN",e[e.ECMA_COPYRESTARGS=314]="ECMA_COPYRESTARGS",e[e.ECMA_CREATEARRAYWITHBUFFER=315]="ECMA_CREATEARRAYWITHBUFFER",e[e.ECMA_CREATEOBJECTHAVINGMETHOD=316]="ECMA_CREATEOBJECTHAVINGMETHOD",e[e.ECMA_THROWIFSUPERNOTCORRECTCALL=317]="ECMA_THROWIFSUPERNOTCORRECTCALL",e[e.ECMA_CREATEOBJECTWITHBUFFER=318]="ECMA_CREATEOBJECTWITHBUFFER",e[e.ECMA_LDLEXVARDYN=319]="ECMA_LDLEXVARDYN",e[e.ECMA_STLEXVARDYN=320]="ECMA_STLEXVARDYN",e[e.ECMA_DEFINECLASSWITHBUFFER=321]="ECMA_DEFINECLASSWITHBUFFER",e[e.ECMA_IMPORTMODULE=322]="ECMA_IMPORTMODULE",e[e.ECMA_STMODULEVAR=323]="ECMA_STMODULEVAR",e[e.ECMA_TRYLDGLOBALBYNAME=324]="ECMA_TRYLDGLOBALBYNAME",e[e.ECMA_TRYSTGLOBALBYNAME=325]="ECMA_TRYSTGLOBALBYNAME",e[e.ECMA_LDGLOBALVAR=326]="ECMA_LDGLOBALVAR",e[e.ECMA_STGLOBALVAR=327]="ECMA_STGLOBALVAR",e[e.ECMA_LDOBJBYNAME=328]="ECMA_LDOBJBYNAME",e[e.ECMA_STOBJBYNAME=329]="ECMA_STOBJBYNAME",e[e.ECMA_STOWNBYNAME=330]="ECMA_STOWNBYNAME",e[e.ECMA_LDSUPERBYNAME=331]="ECMA_LDSUPERBYNAME",e[e.ECMA_STSUPERBYNAME=332]="ECMA_STSUPERBYNAME",e[e.ECMA_LDMODVARBYNAME=333]="ECMA_LDMODVARBYNAME",e[e.ECMA_CREATEREGEXPWITHLITERAL=334]="ECMA_CREATEREGEXPWITHLITERAL",e[e.ECMA_ISTRUE=335]="ECMA_ISTRUE",e[e.ECMA_ISFALSE=336]="ECMA_ISFALSE",e[e.ECMA_STCONSTTOGLOBALRECORD=337]="ECMA_STCONSTTOGLOBALRECORD",e[e.ECMA_STLETTOGLOBALRECORD=338]="ECMA_STLETTOGLOBALRECORD",e[e.ECMA_STCLASSTOGLOBALRECORD=339]="ECMA_STCLASSTOGLOBALRECORD",e[e.ECMA_STOWNBYVALUEWITHNAMESET=340]="ECMA_STOWNBYVALUEWITHNAMESET",e[e.ECMA_STOWNBYNAMEWITHNAMESET=341]="ECMA_STOWNBYNAMEWITHNAMESET",e[e.ECMA_LDFUNCTION=342]="ECMA_LDFUNCTION",e[e.ECMA_NEWLEXENVWITHNAMEDYN=343]="ECMA_NEWLEXENVWITHNAMEDYN",e[e.ECMA_LDBIGINT=344]="ECMA_LDBIGINT",e[e.VREG=345]="VREG",e[e.IMM=346]="IMM",e[e.LABEL=347]="LABEL",e[e.VIRTUALSTARTINS_DYN=348]="VIRTUALSTARTINS_DYN",e[e.VIRTUALENDINS_DYN=349]="VIRTUALENDINS_DYN",e[e.DEFINE_GLOBAL_VAR=350]="DEFINE_GLOBAL_VAR"}(c=t.IRNodeKind||(t.IRNodeKind={})),t.getInstructionSize=function(e){switch(e){case c.NOP:return 1;case c.MOV:return 2;case c.MOV:return 3;case c.MOV:return 5;case c.MOV_64:return 2;case c.MOV_64:return 5;case c.MOV_OBJ:return 2;case c.MOV_OBJ:return 3;case c.MOV_OBJ:return 5;case c.MOVI:return 2;case c.MOVI:return 3;case c.MOVI:return 4;case c.MOVI:return 6;case c.MOVI_64:case c.FMOVI_64:return 10;case c.MOV_NULL:case c.LDA:case c.LDA_64:case c.LDA_OBJ:case c.LDAI:return 2;case c.LDAI:return 3;case c.LDAI:return 5;case c.LDAI_64:case c.FLDAI_64:return 9;case c.LDA_STR:return 5;case c.LDA_CONST:return 6;case c.LDA_TYPE:return 3;case c.LDA_NULL:return 1;case c.STA:case c.STA_64:case c.STA_OBJ:case c.CMP_64:case c.FCMPL_64:case c.FCMPG_64:case c.JMP:return 2;case c.JMP:return 3;case c.JMP:return 5;case c.JEQ_OBJ:return 3;case c.JEQ_OBJ:return 4;case c.JNE_OBJ:return 3;case c.JNE_OBJ:return 4;case c.JEQZ_OBJ:return 2;case c.JEQZ_OBJ:return 3;case c.JNEZ_OBJ:return 2;case c.JNEZ_OBJ:return 3;case c.JEQZ:return 2;case c.JEQZ:return 3;case c.JNEZ:return 2;case c.JNEZ:return 3;case c.JLTZ:return 2;case c.JLTZ:return 3;case c.JGTZ:return 2;case c.JGTZ:return 3;case c.JLEZ:return 2;case c.JLEZ:return 3;case c.JGEZ:return 2;case c.JGEZ:case c.JEQ:return 3;case c.JEQ:return 4;case c.JNE:return 3;case c.JNE:return 4;case c.JLT:return 3;case c.JLT:return 4;case c.JGT:return 3;case c.JGT:return 4;case c.JLE:return 3;case c.JLE:return 4;case c.JGE:return 3;case c.JGE:return 4;case c.FNEG_64:case c.NEG:case c.NEG_64:return 1;case c.ADD2:case c.ADD2_64:case c.SUB2:case c.SUB2_64:case c.MUL2:case c.MUL2_64:case c.FADD2_64:case c.FSUB2_64:case c.FMUL2_64:case c.FDIV2_64:case c.FMOD2_64:case c.DIV2:case c.DIV2_64:case c.MOD2:case c.MOD2_64:case c.ADDI:case c.SUBI:case c.MULI:return 2;case c.ANDI:case c.ORI:return 5;case c.SHLI:case c.SHRI:case c.ASHRI:case c.DIVI:case c.MODI:case c.ADD:case c.SUB:case c.MUL:case c.DIV:case c.MOD:case c.INCI:case c.LDARR_8:case c.LDARRU_8:case c.LDARR_16:case c.LDARRU_16:case c.LDARR:case c.LDARR_64:case c.FLDARR_32:case c.FLDARR_64:case c.LDARR_OBJ:case c.STARR_8:case c.STARR_16:case c.STARR:case c.STARR_64:case c.FSTARR_32:case c.FSTARR_64:case c.STARR_OBJ:case c.LENARR:return 2;case c.NEWARR:case c.NEWOBJ:case c.INITOBJ_SHORT:return 4;case c.INITOBJ:return 5;case c.INITOBJ_RANGE:case c.LDOBJ:case c.LDOBJ_64:case c.LDOBJ_OBJ:case c.STOBJ:case c.STOBJ_64:case c.STOBJ_OBJ:case c.LDOBJ_V:case c.LDOBJ_V_64:case c.LDOBJ_V_OBJ:case c.STOBJ_V:case c.STOBJ_V_64:case c.STOBJ_V_OBJ:return 4;case c.LDSTATIC:case c.LDSTATIC_64:case c.LDSTATIC_OBJ:case c.STSTATIC:case c.STSTATIC_64:case c.STSTATIC_OBJ:return 3;case c.RETURN:case c.RETURN_64:case c.RETURN_OBJ:case c.RETURN_VOID:return 1;case c.THROW:return 2;case c.CHECKCAST:case c.ISINSTANCE:return 3;case c.CALL_SHORT:return 4;case c.CALL:return 5;case c.CALL_RANGE:case c.CALL_ACC_SHORT:return 4;case c.CALL_ACC:return 5;case c.CALL_VIRT_SHORT:return 4;case c.CALL_VIRT:return 5;case c.CALL_VIRT_RANGE:case c.CALL_VIRT_ACC_SHORT:return 4;case c.CALL_VIRT_ACC:return 5;case c.MOV_DYN:return 3;case c.MOV_DYN:return 5;case c.LDA_DYN:case c.STA_DYN:return 2;case c.LDAI_DYN:return 5;case c.FLDAI_DYN:return 9;case c.RETURN_DYN:return 1;case c.CALLI_DYN_SHORT:return 3;case c.CALLI_DYN:return 4;case c.CALLI_DYN_RANGE:return 5;case c.FMOVI:return 7;case c.I32TOF64:return 2;case c.UCMP:return 3;case c.NOT:case c.ECMA_LDNAN:return 2;case c.FLDAI:return 6;case c.U32TOF64:return 2;case c.UCMP_64:return 3;case c.NOT_64:case c.ECMA_LDINFINITY:return 2;case c.FCMPL:return 3;case c.I64TOF64:return 2;case c.DIVU2:case c.AND2:return 3;case c.ECMA_LDGLOBALTHIS:return 2;case c.FCMPG:return 3;case c.U64TOF64:return 2;case c.DIVU2_64:case c.AND2_64:return 3;case c.ECMA_LDUNDEFINED:case c.FNEG:case c.F64TOI32:return 2;case c.MODU2:case c.OR2:return 3;case c.ECMA_LDNULL:return 2;case c.FADD2:return 3;case c.F64TOI64:return 2;case c.MODU2_64:case c.OR2_64:return 3;case c.ECMA_LDSYMBOL:return 2;case c.FSUB2:return 3;case c.F64TOU32:return 2;case c.XOR2:return 3;case c.ECMA_LDGLOBAL:return 2;case c.FMUL2:return 3;case c.F64TOU64:return 2;case c.XOR2_64:return 3;case c.ECMA_LDTRUE:return 2;case c.FDIV2:return 3;case c.I32TOU1:return 2;case c.SHL2:return 3;case c.ECMA_LDFALSE:return 2;case c.FMOD2:return 3;case c.I64TOU1:return 2;case c.SHL2_64:return 3;case c.ECMA_THROWDYN:case c.I32TOF32:case c.U32TOU1:return 2;case c.SHR2:return 3;case c.ECMA_TYPEOFDYN:case c.U32TOF32:case c.U64TOU1:return 2;case c.SHR2_64:return 3;case c.ECMA_LDLEXENVDYN:case c.I64TOF32:case c.I32TOI64:return 2;case c.ASHR2:return 3;case c.ECMA_POPLEXENVDYN:case c.U64TOF32:case c.I32TOI16:return 2;case c.ASHR2_64:return 3;case c.ECMA_GETUNMAPPEDARGS:case c.F32TOF64:case c.I32TOU16:return 2;case c.XORI:return 6;case c.ECMA_GETPROPITERATOR:case c.F32TOI32:case c.I32TOI8:return 2;case c.AND:return 3;case c.ECMA_ASYNCFUNCTIONENTER:case c.F32TOI64:case c.I32TOU8:return 2;case c.OR:return 3;case c.ECMA_LDHOLE:case c.F32TOU32:case c.I64TOI32:return 2;case c.XOR:return 3;case c.ECMA_RETURNUNDEFINED:case c.F32TOU64:case c.U32TOI64:return 2;case c.SHL:return 3;case c.ECMA_CREATEEMPTYOBJECT:case c.F64TOF32:case c.U32TOI16:return 2;case c.SHR:return 3;case c.ECMA_CREATEEMPTYARRAY:case c.U32TOU16:return 2;case c.ASHR:return 3;case c.ECMA_GETITERATOR:case c.U32TOI8:case c.ECMA_THROWTHROWNOTEXISTS:case c.U32TOU8:case c.ECMA_THROWPATTERNNONCOERCIBLE:case c.U64TOI32:case c.ECMA_LDHOMEOBJECT:case c.U64TOU32:case c.ECMA_THROWDELETESUPERPROPERTY:case c.ECMA_DEBUGGER:return 2;case c.ECMA_ADD2DYN:case c.ECMA_SUB2DYN:case c.ECMA_MUL2DYN:case c.ECMA_DIV2DYN:case c.ECMA_MOD2DYN:case c.ECMA_EQDYN:case c.ECMA_NOTEQDYN:case c.ECMA_LESSDYN:case c.ECMA_LESSEQDYN:case c.ECMA_GREATERDYN:case c.ECMA_GREATEREQDYN:case c.ECMA_SHL2DYN:case c.ECMA_SHR2DYN:case c.ECMA_ASHR2DYN:case c.ECMA_AND2DYN:case c.ECMA_OR2DYN:case c.ECMA_XOR2DYN:case c.ECMA_TONUMBER:case c.ECMA_NEGDYN:case c.ECMA_NOTDYN:case c.ECMA_INCDYN:case c.ECMA_DECDYN:case c.ECMA_EXPDYN:case c.ECMA_ISINDYN:case c.ECMA_INSTANCEOFDYN:case c.ECMA_STRICTNOTEQDYN:case c.ECMA_STRICTEQDYN:case c.ECMA_RESUMEGENERATOR:case c.ECMA_GETRESUMEMODE:case c.ECMA_CREATEGENERATOROBJ:case c.ECMA_THROWCONSTASSIGNMENT:case c.ECMA_GETTEMPLATEOBJECT:case c.ECMA_GETNEXTPROPNAME:case c.ECMA_CALLARG0DYN:case c.ECMA_THROWIFNOTOBJECT:case c.ECMA_ITERNEXT:case c.ECMA_CLOSEITERATOR:case c.ECMA_COPYMODULE:case c.ECMA_SUPERCALLSPREAD:return 3;case c.ECMA_DELOBJPROP:case c.ECMA_NEWOBJSPREADDYN:case c.ECMA_CREATEITERRESULTOBJ:case c.ECMA_SUSPENDGENERATOR:case c.ECMA_ASYNCFUNCTIONAWAITUNCAUGHT:case c.ECMA_THROWUNDEFINEDIFHOLE:case c.ECMA_CALLARG1DYN:case c.ECMA_COPYDATAPROPERTIES:case c.ECMA_STARRAYSPREAD:case c.ECMA_GETITERATORNEXT:case c.ECMA_SETOBJECTWITHPROTO:case c.ECMA_LDOBJBYVALUE:case c.ECMA_STOBJBYVALUE:case c.ECMA_STOWNBYVALUE:case c.ECMA_LDSUPERBYVALUE:case c.ECMA_STSUPERBYVALUE:return 4;case c.ECMA_LDOBJBYINDEX:case c.ECMA_STOBJBYINDEX:case c.ECMA_STOWNBYINDEX:return 7;case c.ECMA_CALLSPREADDYN:case c.ECMA_ASYNCFUNCTIONRESOLVE:case c.ECMA_ASYNCFUNCTIONREJECT:case c.ECMA_CALLARGS2DYN:return 5;case c.ECMA_CALLARGS3DYN:case c.ECMA_DEFINEGETTERSETTERBYVALUE:return 6;case c.ECMA_NEWOBJDYNRANGE:case c.ECMA_CALLIRANGEDYN:case c.ECMA_CALLITHISRANGEDYN:case c.ECMA_SUPERCALL:return 5;case c.ECMA_CREATEOBJECTWITHEXCLUDEDKEYS:return 6;case c.ECMA_DEFINEFUNCDYN:case c.ECMA_DEFINENCFUNCDYN:case c.ECMA_DEFINEGENERATORFUNC:case c.ECMA_DEFINEASYNCFUNC:case c.ECMA_DEFINEMETHOD:return 7;case c.ECMA_NEWLEXENVDYN:case c.ECMA_COPYRESTARGS:case c.ECMA_CREATEARRAYWITHBUFFER:case c.ECMA_CREATEOBJECTHAVINGMETHOD:case c.ECMA_THROWIFSUPERNOTCORRECTCALL:case c.ECMA_CREATEOBJECTWITHBUFFER:return 4;case c.ECMA_LDLEXVARDYN:return 3;case c.ECMA_LDLEXVARDYN:return 4;case c.ECMA_LDLEXVARDYN:return 6;case c.ECMA_STLEXVARDYN:return 4;case c.ECMA_STLEXVARDYN:return 5;case c.ECMA_STLEXVARDYN:return 7;case c.ECMA_DEFINECLASSWITHBUFFER:return 10;case c.ECMA_IMPORTMODULE:case c.ECMA_STMODULEVAR:case c.ECMA_TRYLDGLOBALBYNAME:case c.ECMA_TRYSTGLOBALBYNAME:case c.ECMA_LDGLOBALVAR:case c.ECMA_STGLOBALVAR:return 6;case c.ECMA_LDOBJBYNAME:case c.ECMA_STOBJBYNAME:case c.ECMA_STOWNBYNAME:case c.ECMA_LDSUPERBYNAME:case c.ECMA_STSUPERBYNAME:case c.ECMA_LDMODVARBYNAME:case c.ECMA_CREATEREGEXPWITHLITERAL:return 7;case c.ECMA_ISTRUE:case c.ECMA_ISFALSE:return 2;case c.ECMA_STCONSTTOGLOBALRECORD:case c.ECMA_STLETTOGLOBALRECORD:case c.ECMA_STCLASSTOGLOBALRECORD:return 6;case c.ECMA_STOWNBYVALUEWITHNAMESET:return 4;case c.ECMA_STOWNBYNAMEWITHNAMESET:return 7;case c.ECMA_LDFUNCTION:return 2;case c.ECMA_NEWLEXENVWITHNAMEDYN:case c.ECMA_LDBIGINT:return 6;default:return 0}},(d=t.ResultType||(t.ResultType={}))[d.None=0]="None",d[d.Unknown=1]="Unknown",d[d.Int=2]="Int",d[d.Long=3]="Long",d[d.Float=4]="Float",d[d.Obj=5]="Obj",d[d.Boolean=6]="Boolean",(_=t.ResultDst||(t.ResultDst={}))[_.None=0]="None",_[_.Acc=1]="Acc",_[_.VReg=2]="VReg",(u=t.BuiltIns||(t.BuiltIns={}))[u.NaN=0]="NaN",u[u[1/0]=1]="Infinity",u[u.globalThis=2]="globalThis",u[u[void 0]=3]="undefined",u[u.Boolean=4]="Boolean",u[u.Number=5]="Number",u[u.String=6]="String",u[u.BigInt=7]="BigInt",u[u.Symbol=8]="Symbol",u[u.Null=9]="Null",u[u.Object=10]="Object",u[u.Function=11]="Function",u[u.Global=12]="Global",u[u.True=13]="True",u[u.False=14]="False",u[u.LexEnv=15]="LexEnv",u[u.MAX_BUILTIN=16]="MAX_BUILTIN",(l=t.OperandKind||(t.OperandKind={}))[l.SrcVReg=0]="SrcVReg",l[l.DstVReg=1]="DstVReg",l[l.SrcDstVReg=2]="SrcDstVReg",l[l.Imm=3]="Imm",l[l.Id=4]="Id",l[l.StringId=5]="StringId",l[l.Label=6]="Label",t.OperandKind||(t.OperandKind={}),t.getInsnMnemonic=p,t.getInsnFormats=f;class g{constructor(e,t){this.kind=e,this.operands=t,this.node=s.NodeKind.Normal,this.debugPosInfo=new s.DebugPosInfo}toString(){let e=this.getMnemonic(),t=e+"\t";return e.length<8&&(t+="\t"),this.operands.forEach((e=>{t=t+e.toString()+", "})),t}setNode(e){this.node=e}getNodeName(){return this.node!=s.NodeKind.Invalid&&this.node!=s.NodeKind.FirstNodeOfFunction&&this.node!=s.NodeKind.Normal?o.SyntaxKind[this.node.kind]:"undefined"}getMnemonic(){return p(this.kind)}getFormats(){return f(this.kind)}}t.IRNode=g;class m extends g{constructor(e,t){super(e,t),this.kind=e,this.operands=t}toString(){return super.toString()+" [i]"}}t.Intrinsic=m,t.VReg=class{constructor(){this.num=-1}toString(){return"V"+this.num}getTypeIndex(){return this.typeIndex}setTypeIndex(e){this.typeIndex=e}getVariableName(){return this.variableName}setVariableName(e){this.variableName=e}},t.Imm=class extends g{constructor(e){super(c.IMM,[]),this.value=e}toString(){return"#"+this.value}};class y extends g{constructor(){super(c.LABEL,[]),this.id=y.global_id++}toString(){return"LABEL_"+this.id}}t.Label=y,y.global_id=0,t.DebugInsStartPlaceHolder=class extends g{constructor(e){super(c.VIRTUALSTARTINS_DYN,[]),this.scope=e}getScope(){return this.scope}},t.DebugInsEndPlaceHolder=class extends g{constructor(e){super(c.VIRTUALENDINS_DYN,[]),this.scope=e}getScope(){return this.scope}},t.Nop=class extends g{constructor(){super(c.NOP,[])}},t.Mov=class extends g{constructor(e,t){super(c.MOV,[e,t])}},t.MovWide=class extends g{constructor(e,t){super(c.MOV_64,[e,t])}},t.MovObj=class extends g{constructor(e,t){super(c.MOV_OBJ,[e,t])}},t.Movi=class extends g{constructor(e,t){super(c.MOVI,[e,t])}},t.MoviWide=class extends g{constructor(e,t){super(c.MOVI_64,[e,t])}},t.FmoviWide=class extends g{constructor(e,t){super(c.FMOVI_64,[e,t])}},t.MovNull=class extends g{constructor(e){super(c.MOV_NULL,[e])}},t.Lda=class extends g{constructor(e){super(c.LDA,[e])}},t.LdaWide=class extends g{constructor(e){super(c.LDA_64,[e])}},t.LdaObj=class extends g{constructor(e){super(c.LDA_OBJ,[e])}},t.Ldai=class extends g{constructor(e){super(c.LDAI,[e])}},t.LdaiWide=class extends g{constructor(e){super(c.LDAI_64,[e])}},t.FldaiWide=class extends g{constructor(e){super(c.FLDAI_64,[e])}},t.LdaStr=class extends g{constructor(e){super(c.LDA_STR,[e])}},t.LdaConst=class extends g{constructor(e,t){super(c.LDA_CONST,[e,t])}},t.LdaType=class extends g{constructor(e){super(c.LDA_TYPE,[e])}},t.LdaNull=class extends g{constructor(){super(c.LDA_NULL,[])}},t.Sta=class extends g{constructor(e){super(c.STA,[e])}},t.StaWide=class extends g{constructor(e){super(c.STA_64,[e])}},t.StaObj=class extends g{constructor(e){super(c.STA_OBJ,[e])}},t.CmpWide=class extends g{constructor(e){super(c.CMP_64,[e])}},t.FcmplWide=class extends g{constructor(e){super(c.FCMPL_64,[e])}},t.FcmpgWide=class extends g{constructor(e){super(c.FCMPG_64,[e])}},t.Jmp=class extends g{constructor(e){super(c.JMP,[e])}getTarget(){return this.operands[0]}},t.JeqObj=class extends g{constructor(e,t){super(c.JEQ_OBJ,[e,t])}getTarget(){return this.operands[1]}},t.JneObj=class extends g{constructor(e,t){super(c.JNE_OBJ,[e,t])}getTarget(){return this.operands[1]}},t.JeqzObj=class extends g{constructor(e){super(c.JEQZ_OBJ,[e])}getTarget(){return this.operands[0]}},t.JnezObj=class extends g{constructor(e){super(c.JNEZ_OBJ,[e])}getTarget(){return this.operands[0]}},t.Jeqz=class extends g{constructor(e){super(c.JEQZ,[e])}getTarget(){return this.operands[0]}},t.Jnez=class extends g{constructor(e){super(c.JNEZ,[e])}getTarget(){return this.operands[0]}},t.Jltz=class extends g{constructor(e){super(c.JLTZ,[e])}getTarget(){return this.operands[0]}},t.Jgtz=class extends g{constructor(e){super(c.JGTZ,[e])}getTarget(){return this.operands[0]}},t.Jlez=class extends g{constructor(e){super(c.JLEZ,[e])}getTarget(){return this.operands[0]}},t.Jgez=class extends g{constructor(e){super(c.JGEZ,[e])}getTarget(){return this.operands[0]}},t.Jeq=class extends g{constructor(e,t){super(c.JEQ,[e,t])}getTarget(){return this.operands[1]}},t.Jne=class extends g{constructor(e,t){super(c.JNE,[e,t])}getTarget(){return this.operands[1]}},t.Jlt=class extends g{constructor(e,t){super(c.JLT,[e,t])}getTarget(){return this.operands[1]}},t.Jgt=class extends g{constructor(e,t){super(c.JGT,[e,t])}getTarget(){return this.operands[1]}},t.Jle=class extends g{constructor(e,t){super(c.JLE,[e,t])}getTarget(){return this.operands[1]}},t.Jge=class extends g{constructor(e,t){super(c.JGE,[e,t])}getTarget(){return this.operands[1]}},t.FnegWide=class extends g{constructor(){super(c.FNEG_64,[])}},t.Neg=class extends g{constructor(){super(c.NEG,[])}},t.NegWide=class extends g{constructor(){super(c.NEG_64,[])}},t.Add2=class extends g{constructor(e){super(c.ADD2,[e])}},t.Add2Wide=class extends g{constructor(e){super(c.ADD2_64,[e])}},t.Sub2=class extends g{constructor(e){super(c.SUB2,[e])}},t.Sub2Wide=class extends g{constructor(e){super(c.SUB2_64,[e])}},t.Mul2=class extends g{constructor(e){super(c.MUL2,[e])}},t.Mul2Wide=class extends g{constructor(e){super(c.MUL2_64,[e])}},t.Fadd2Wide=class extends g{constructor(e){super(c.FADD2_64,[e])}},t.Fsub2Wide=class extends g{constructor(e){super(c.FSUB2_64,[e])}},t.Fmul2Wide=class extends g{constructor(e){super(c.FMUL2_64,[e])}},t.Fdiv2Wide=class extends g{constructor(e){super(c.FDIV2_64,[e])}},t.Fmod2Wide=class extends g{constructor(e){super(c.FMOD2_64,[e])}},t.Div2=class extends g{constructor(e){super(c.DIV2,[e])}},t.Div2Wide=class extends g{constructor(e){super(c.DIV2_64,[e])}},t.Mod2=class extends g{constructor(e){super(c.MOD2,[e])}},t.Mod2Wide=class extends g{constructor(e){super(c.MOD2_64,[e])}},t.Addi=class extends g{constructor(e){super(c.ADDI,[e])}},t.Subi=class extends g{constructor(e){super(c.SUBI,[e])}},t.Muli=class extends g{constructor(e){super(c.MULI,[e])}},t.Andi=class extends g{constructor(e){super(c.ANDI,[e])}},t.Ori=class extends g{constructor(e){super(c.ORI,[e])}},t.Shli=class extends g{constructor(e){super(c.SHLI,[e])}},t.Shri=class extends g{constructor(e){super(c.SHRI,[e])}},t.Ashri=class extends g{constructor(e){super(c.ASHRI,[e])}},t.Divi=class extends g{constructor(e){super(c.DIVI,[e])}},t.Modi=class extends g{constructor(e){super(c.MODI,[e])}},t.Add=class extends g{constructor(e,t){super(c.ADD,[e,t])}},t.Sub=class extends g{constructor(e,t){super(c.SUB,[e,t])}},t.Mul=class extends g{constructor(e,t){super(c.MUL,[e,t])}},t.Div=class extends g{constructor(e,t){super(c.DIV,[e,t])}},t.Mod=class extends g{constructor(e,t){super(c.MOD,[e,t])}},t.Inci=class extends g{constructor(e,t){super(c.INCI,[e,t])}},t.Ldarr8=class extends g{constructor(e){super(c.LDARR_8,[e])}},t.Ldarru8=class extends g{constructor(e){super(c.LDARRU_8,[e])}},t.Ldarr16=class extends g{constructor(e){super(c.LDARR_16,[e])}},t.Ldarru16=class extends g{constructor(e){super(c.LDARRU_16,[e])}},t.Ldarr=class extends g{constructor(e){super(c.LDARR,[e])}},t.LdarrWide=class extends g{constructor(e){super(c.LDARR_64,[e])}},t.Fldarr32=class extends g{constructor(e){super(c.FLDARR_32,[e])}},t.FldarrWide=class extends g{constructor(e){super(c.FLDARR_64,[e])}},t.LdarrObj=class extends g{constructor(e){super(c.LDARR_OBJ,[e])}},t.Starr8=class extends g{constructor(e,t){super(c.STARR_8,[e,t])}},t.Starr16=class extends g{constructor(e,t){super(c.STARR_16,[e,t])}},t.Starr=class extends g{constructor(e,t){super(c.STARR,[e,t])}},t.StarrWide=class extends g{constructor(e,t){super(c.STARR_64,[e,t])}},t.Fstarr32=class extends g{constructor(e,t){super(c.FSTARR_32,[e,t])}},t.FstarrWide=class extends g{constructor(e,t){super(c.FSTARR_64,[e,t])}},t.StarrObj=class extends g{constructor(e,t){super(c.STARR_OBJ,[e,t])}},t.Lenarr=class extends g{constructor(e){super(c.LENARR,[e])}},t.Newarr=class extends g{constructor(e,t,r){super(c.NEWARR,[e,t,r])}},t.Newobj=class extends g{constructor(e,t){super(c.NEWOBJ,[e,t])}},t.InitobjShort=class extends g{constructor(e,t,r){super(c.INITOBJ_SHORT,[e,t,r])}},t.Initobj=class extends g{constructor(e,t,r,n,i){super(c.INITOBJ,[e,t,r,n,i])}},t.InitobjRange=class extends g{constructor(e,t){super(c.INITOBJ_RANGE,[e,t])}},t.Ldobj=class extends g{constructor(e,t){super(c.LDOBJ,[e,t])}},t.LdobjWide=class extends g{constructor(e,t){super(c.LDOBJ_64,[e,t])}},t.LdobjObj=class extends g{constructor(e,t){super(c.LDOBJ_OBJ,[e,t])}},t.Stobj=class extends g{constructor(e,t){super(c.STOBJ,[e,t])}},t.StobjWide=class extends g{constructor(e,t){super(c.STOBJ_64,[e,t])}},t.StobjObj=class extends g{constructor(e,t){super(c.STOBJ_OBJ,[e,t])}},t.LdobjV=class extends g{constructor(e,t,r){super(c.LDOBJ_V,[e,t,r])}},t.LdobjVWide=class extends g{constructor(e,t,r){super(c.LDOBJ_V_64,[e,t,r])}},t.LdobjVObj=class extends g{constructor(e,t,r){super(c.LDOBJ_V_OBJ,[e,t,r])}},t.StobjV=class extends g{constructor(e,t,r){super(c.STOBJ_V,[e,t,r])}},t.StobjVWide=class extends g{constructor(e,t,r){super(c.STOBJ_V_64,[e,t,r])}},t.StobjVObj=class extends g{constructor(e,t,r){super(c.STOBJ_V_OBJ,[e,t,r])}},t.Ldstatic=class extends g{constructor(e){super(c.LDSTATIC,[e])}},t.LdstaticWide=class extends g{constructor(e){super(c.LDSTATIC_64,[e])}},t.LdstaticObj=class extends g{constructor(e){super(c.LDSTATIC_OBJ,[e])}},t.Ststatic=class extends g{constructor(e){super(c.STSTATIC,[e])}},t.StstaticWide=class extends g{constructor(e){super(c.STSTATIC_64,[e])}},t.StstaticObj=class extends g{constructor(e){super(c.STSTATIC_OBJ,[e])}},t.Return=class extends g{constructor(){super(c.RETURN,[])}},t.ReturnWide=class extends g{constructor(){super(c.RETURN_64,[])}},t.ReturnObj=class extends g{constructor(){super(c.RETURN_OBJ,[])}},t.ReturnVoid=class extends g{constructor(){super(c.RETURN_VOID,[])}},t.Throw=class extends g{constructor(e){super(c.THROW,[e])}},t.Checkcast=class extends g{constructor(e){super(c.CHECKCAST,[e])}},t.Isinstance=class extends g{constructor(e){super(c.ISINSTANCE,[e])}},t.CallShort=class extends g{constructor(e,t,r){var n=[e,t,r],i=[e];for(n.shift();n&&n.length;){let e=n.shift();null!=e&&i.push(e)}super(c.CALL_SHORT,i)}},t.Call=class extends g{constructor(e,t,r,n,i){var a=[e,t,r,n,i],o=[e];for(a.shift();a&&a.length;){let e=a.shift();null!=e&&o.push(e)}super(c.CALL,o)}},t.CallRange=class extends g{constructor(e,t){var r=[e,...t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.CALL_RANGE,n)}},t.CallAccShort=class extends g{constructor(e,t,r){var n=[e,t,r],i=[e];for(n.shift();n&&n.length;){let e=n.shift();null!=e&&i.push(e)}super(c.CALL_ACC_SHORT,i)}},t.CallAcc=class extends g{constructor(e,t,r,n,i){var a=[e,t,r,n,i],o=[e];for(a.shift();a&&a.length;){let e=a.shift();null!=e&&o.push(e)}super(c.CALL_ACC,o)}},t.CallVirtShort=class extends g{constructor(e,t,r){var n=[e,t,r],i=[e];for(n.shift();n&&n.length;){let e=n.shift();null!=e&&i.push(e)}super(c.CALL_VIRT_SHORT,i)}},t.CallVirt=class extends g{constructor(e,t,r,n,i){var a=[e,t,r,n,i],o=[e];for(a.shift();a&&a.length;){let e=a.shift();null!=e&&o.push(e)}super(c.CALL_VIRT,o)}},t.CallVirtRange=class extends g{constructor(e,t){var r=[e,t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.CALL_VIRT_RANGE,n)}},t.CallVirtAccShort=class extends g{constructor(e,t,r){var n=[e,t,r],i=[e];for(n.shift();n&&n.length;){let e=n.shift();null!=e&&i.push(e)}super(c.CALL_VIRT_ACC_SHORT,i)}},t.CallVirtAcc=class extends g{constructor(e,t,r,n,i){var a=[e,t,r,n,i],o=[e];for(a.shift();a&&a.length;){let e=a.shift();null!=e&&o.push(e)}super(c.CALL_VIRT_ACC,o)}},t.MovDyn=class extends g{constructor(e,t){super(c.MOV_DYN,[e,t])}},t.LdaDyn=class extends g{constructor(e){super(c.LDA_DYN,[e])}},t.StaDyn=class extends g{constructor(e){super(c.STA_DYN,[e])}},t.LdaiDyn=class extends g{constructor(e){super(c.LDAI_DYN,[e])}},t.FldaiDyn=class extends g{constructor(e){super(c.FLDAI_DYN,[e])}},t.ReturnDyn=class extends g{constructor(){super(c.RETURN_DYN,[])}},t.CalliDynShort=class extends g{constructor(e,t,r,n){var i=[e,t,r,n],a=[e];for(i.shift();i&&i.length;){let e=i.shift();null!=e&&a.push(e)}super(c.CALLI_DYN_SHORT,a)}},t.CalliDyn=class extends g{constructor(e,t,r,n,i,a){var o=[e,t,r,n,i,a],s=[e];for(o.shift();o&&o.length;){let e=o.shift();null!=e&&s.push(e)}super(c.CALLI_DYN,s)}},t.CalliDynRange=class extends g{constructor(e,t){var r=[e,...t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.CALLI_DYN_RANGE,n)}},t.Fmovi=class extends g{constructor(e,t){super(c.FMOVI,[e,t])}},t.I32tof64=class extends g{constructor(){super(c.I32TOF64,[])}},t.Ucmp=class extends g{constructor(e){super(c.UCMP,[e])}},t.Not=class extends g{constructor(){super(c.NOT,[])}},t.EcmaLdnan=class extends m{constructor(){super(c.ECMA_LDNAN,[])}},t.Fldai=class extends g{constructor(e){super(c.FLDAI,[e])}},t.U32tof64=class extends g{constructor(){super(c.U32TOF64,[])}},t.UcmpWide=class extends g{constructor(e){super(c.UCMP_64,[e])}},t.NotWide=class extends g{constructor(){super(c.NOT_64,[])}},t.EcmaLdinfinity=class extends m{constructor(){super(c.ECMA_LDINFINITY,[])}},t.Fcmpl=class extends g{constructor(e){super(c.FCMPL,[e])}},t.I64tof64=class extends g{constructor(){super(c.I64TOF64,[])}},t.Divu2=class extends g{constructor(e){super(c.DIVU2,[e])}},t.And2=class extends g{constructor(e){super(c.AND2,[e])}},t.EcmaLdglobalthis=class extends m{constructor(){super(c.ECMA_LDGLOBALTHIS,[])}},t.Fcmpg=class extends g{constructor(e){super(c.FCMPG,[e])}},t.U64tof64=class extends g{constructor(){super(c.U64TOF64,[])}},t.Divu2Wide=class extends g{constructor(e){super(c.DIVU2_64,[e])}},t.And2Wide=class extends g{constructor(e){super(c.AND2_64,[e])}},t.EcmaLdundefined=class extends m{constructor(){super(c.ECMA_LDUNDEFINED,[])}},t.Fneg=class extends g{constructor(){super(c.FNEG,[])}},t.F64toi32=class extends g{constructor(){super(c.F64TOI32,[])}},t.Modu2=class extends g{constructor(e){super(c.MODU2,[e])}},t.Or2=class extends g{constructor(e){super(c.OR2,[e])}},t.EcmaLdnull=class extends m{constructor(){super(c.ECMA_LDNULL,[])}},t.Fadd2=class extends g{constructor(e){super(c.FADD2,[e])}},t.F64toi64=class extends g{constructor(){super(c.F64TOI64,[])}},t.Modu2Wide=class extends g{constructor(e){super(c.MODU2_64,[e])}},t.Or2Wide=class extends g{constructor(e){super(c.OR2_64,[e])}},t.EcmaLdsymbol=class extends m{constructor(){super(c.ECMA_LDSYMBOL,[])}},t.Fsub2=class extends g{constructor(e){super(c.FSUB2,[e])}},t.F64tou32=class extends g{constructor(){super(c.F64TOU32,[])}},t.Xor2=class extends g{constructor(e){super(c.XOR2,[e])}},t.EcmaLdglobal=class extends m{constructor(){super(c.ECMA_LDGLOBAL,[])}},t.Fmul2=class extends g{constructor(e){super(c.FMUL2,[e])}},t.F64tou64=class extends g{constructor(){super(c.F64TOU64,[])}},t.Xor2Wide=class extends g{constructor(e){super(c.XOR2_64,[e])}},t.EcmaLdtrue=class extends m{constructor(){super(c.ECMA_LDTRUE,[])}},t.Fdiv2=class extends g{constructor(e){super(c.FDIV2,[e])}},t.I32tou1=class extends g{constructor(){super(c.I32TOU1,[])}},t.Shl2=class extends g{constructor(e){super(c.SHL2,[e])}},t.EcmaLdfalse=class extends m{constructor(){super(c.ECMA_LDFALSE,[])}},t.Fmod2=class extends g{constructor(e){super(c.FMOD2,[e])}},t.I64tou1=class extends g{constructor(){super(c.I64TOU1,[])}},t.Shl2Wide=class extends g{constructor(e){super(c.SHL2_64,[e])}},t.EcmaThrowdyn=class extends m{constructor(){super(c.ECMA_THROWDYN,[])}},t.I32tof32=class extends g{constructor(){super(c.I32TOF32,[])}},t.U32tou1=class extends g{constructor(){super(c.U32TOU1,[])}},t.Shr2=class extends g{constructor(e){super(c.SHR2,[e])}},t.EcmaTypeofdyn=class extends m{constructor(){super(c.ECMA_TYPEOFDYN,[])}},t.U32tof32=class extends g{constructor(){super(c.U32TOF32,[])}},t.U64tou1=class extends g{constructor(){super(c.U64TOU1,[])}},t.Shr2Wide=class extends g{constructor(e){super(c.SHR2_64,[e])}},t.EcmaLdlexenvdyn=class extends m{constructor(){super(c.ECMA_LDLEXENVDYN,[])}},t.I64tof32=class extends g{constructor(){super(c.I64TOF32,[])}},t.I32toi64=class extends g{constructor(){super(c.I32TOI64,[])}},t.Ashr2=class extends g{constructor(e){super(c.ASHR2,[e])}},t.EcmaPoplexenvdyn=class extends m{constructor(){super(c.ECMA_POPLEXENVDYN,[])}},t.U64tof32=class extends g{constructor(){super(c.U64TOF32,[])}},t.I32toi16=class extends g{constructor(){super(c.I32TOI16,[])}},t.Ashr2Wide=class extends g{constructor(e){super(c.ASHR2_64,[e])}},t.EcmaGetunmappedargs=class extends m{constructor(){super(c.ECMA_GETUNMAPPEDARGS,[])}},t.F32tof64=class extends g{constructor(){super(c.F32TOF64,[])}},t.I32tou16=class extends g{constructor(){super(c.I32TOU16,[])}},t.Xori=class extends g{constructor(e){super(c.XORI,[e])}},t.EcmaGetpropiterator=class extends m{constructor(){super(c.ECMA_GETPROPITERATOR,[])}},t.F32toi32=class extends g{constructor(){super(c.F32TOI32,[])}},t.I32toi8=class extends g{constructor(){super(c.I32TOI8,[])}},t.And=class extends g{constructor(e,t){super(c.AND,[e,t])}},t.EcmaAsyncfunctionenter=class extends m{constructor(){super(c.ECMA_ASYNCFUNCTIONENTER,[])}},t.F32toi64=class extends g{constructor(){super(c.F32TOI64,[])}},t.I32tou8=class extends g{constructor(){super(c.I32TOU8,[])}},t.Or=class extends g{constructor(e,t){super(c.OR,[e,t])}},t.EcmaLdhole=class extends m{constructor(){super(c.ECMA_LDHOLE,[])}},t.F32tou32=class extends g{constructor(){super(c.F32TOU32,[])}},t.I64toi32=class extends g{constructor(){super(c.I64TOI32,[])}},t.Xor=class extends g{constructor(e,t){super(c.XOR,[e,t])}},t.EcmaReturnundefined=class extends m{constructor(){super(c.ECMA_RETURNUNDEFINED,[])}},t.F32tou64=class extends g{constructor(){super(c.F32TOU64,[])}},t.U32toi64=class extends g{constructor(){super(c.U32TOI64,[])}},t.Shl=class extends g{constructor(e,t){super(c.SHL,[e,t])}},t.EcmaCreateemptyobject=class extends m{constructor(){super(c.ECMA_CREATEEMPTYOBJECT,[])}},t.F64tof32=class extends g{constructor(){super(c.F64TOF32,[])}},t.U32toi16=class extends g{constructor(){super(c.U32TOI16,[])}},t.Shr=class extends g{constructor(e,t){super(c.SHR,[e,t])}},t.EcmaCreateemptyarray=class extends m{constructor(){super(c.ECMA_CREATEEMPTYARRAY,[])}},t.U32tou16=class extends g{constructor(){super(c.U32TOU16,[])}},t.Ashr=class extends g{constructor(e,t){super(c.ASHR,[e,t])}},t.EcmaGetiterator=class extends m{constructor(){super(c.ECMA_GETITERATOR,[])}},t.U32toi8=class extends g{constructor(){super(c.U32TOI8,[])}},t.EcmaThrowthrownotexists=class extends m{constructor(){super(c.ECMA_THROWTHROWNOTEXISTS,[])}},t.U32tou8=class extends g{constructor(){super(c.U32TOU8,[])}},t.EcmaThrowpatternnoncoercible=class extends m{constructor(){super(c.ECMA_THROWPATTERNNONCOERCIBLE,[])}},t.U64toi32=class extends g{constructor(){super(c.U64TOI32,[])}},t.EcmaLdhomeobject=class extends m{constructor(){super(c.ECMA_LDHOMEOBJECT,[])}},t.U64tou32=class extends g{constructor(){super(c.U64TOU32,[])}},t.EcmaThrowdeletesuperproperty=class extends m{constructor(){super(c.ECMA_THROWDELETESUPERPROPERTY,[])}},t.EcmaDebugger=class extends m{constructor(){super(c.ECMA_DEBUGGER,[])}},t.EcmaAdd2dyn=class extends m{constructor(e){super(c.ECMA_ADD2DYN,[e])}},t.EcmaSub2dyn=class extends m{constructor(e){super(c.ECMA_SUB2DYN,[e])}},t.EcmaMul2dyn=class extends m{constructor(e){super(c.ECMA_MUL2DYN,[e])}},t.EcmaDiv2dyn=class extends m{constructor(e){super(c.ECMA_DIV2DYN,[e])}},t.EcmaMod2dyn=class extends m{constructor(e){super(c.ECMA_MOD2DYN,[e])}},t.EcmaEqdyn=class extends m{constructor(e){super(c.ECMA_EQDYN,[e])}},t.EcmaNoteqdyn=class extends m{constructor(e){super(c.ECMA_NOTEQDYN,[e])}},t.EcmaLessdyn=class extends m{constructor(e){super(c.ECMA_LESSDYN,[e])}},t.EcmaLesseqdyn=class extends m{constructor(e){super(c.ECMA_LESSEQDYN,[e])}},t.EcmaGreaterdyn=class extends m{constructor(e){super(c.ECMA_GREATERDYN,[e])}},t.EcmaGreatereqdyn=class extends m{constructor(e){super(c.ECMA_GREATEREQDYN,[e])}},t.EcmaShl2dyn=class extends m{constructor(e){super(c.ECMA_SHL2DYN,[e])}},t.EcmaShr2dyn=class extends m{constructor(e){super(c.ECMA_SHR2DYN,[e])}},t.EcmaAshr2dyn=class extends m{constructor(e){super(c.ECMA_ASHR2DYN,[e])}},t.EcmaAnd2dyn=class extends m{constructor(e){super(c.ECMA_AND2DYN,[e])}},t.EcmaOr2dyn=class extends m{constructor(e){super(c.ECMA_OR2DYN,[e])}},t.EcmaXor2dyn=class extends m{constructor(e){super(c.ECMA_XOR2DYN,[e])}},t.EcmaTonumber=class extends m{constructor(e){super(c.ECMA_TONUMBER,[e])}},t.EcmaNegdyn=class extends m{constructor(e){super(c.ECMA_NEGDYN,[e])}},t.EcmaNotdyn=class extends m{constructor(e){super(c.ECMA_NOTDYN,[e])}},t.EcmaIncdyn=class extends m{constructor(e){super(c.ECMA_INCDYN,[e])}},t.EcmaDecdyn=class extends m{constructor(e){super(c.ECMA_DECDYN,[e])}},t.EcmaExpdyn=class extends m{constructor(e){super(c.ECMA_EXPDYN,[e])}},t.EcmaIsindyn=class extends m{constructor(e){super(c.ECMA_ISINDYN,[e])}},t.EcmaInstanceofdyn=class extends m{constructor(e){super(c.ECMA_INSTANCEOFDYN,[e])}},t.EcmaStrictnoteqdyn=class extends m{constructor(e){super(c.ECMA_STRICTNOTEQDYN,[e])}},t.EcmaStricteqdyn=class extends m{constructor(e){super(c.ECMA_STRICTEQDYN,[e])}},t.EcmaResumegenerator=class extends m{constructor(e){super(c.ECMA_RESUMEGENERATOR,[e])}},t.EcmaGetresumemode=class extends m{constructor(e){super(c.ECMA_GETRESUMEMODE,[e])}},t.EcmaCreategeneratorobj=class extends m{constructor(e){super(c.ECMA_CREATEGENERATOROBJ,[e])}},t.EcmaThrowconstassignment=class extends m{constructor(e){super(c.ECMA_THROWCONSTASSIGNMENT,[e])}},t.EcmaGettemplateobject=class extends m{constructor(e){super(c.ECMA_GETTEMPLATEOBJECT,[e])}},t.EcmaGetnextpropname=class extends m{constructor(e){super(c.ECMA_GETNEXTPROPNAME,[e])}},t.EcmaCallarg0dyn=class extends m{constructor(e){super(c.ECMA_CALLARG0DYN,[e])}},t.EcmaThrowifnotobject=class extends m{constructor(e){super(c.ECMA_THROWIFNOTOBJECT,[e])}},t.EcmaIternext=class extends m{constructor(e){super(c.ECMA_ITERNEXT,[e])}},t.EcmaCloseiterator=class extends m{constructor(e){super(c.ECMA_CLOSEITERATOR,[e])}},t.EcmaCopymodule=class extends m{constructor(e){super(c.ECMA_COPYMODULE,[e])}},t.EcmaSupercallspread=class extends m{constructor(e){super(c.ECMA_SUPERCALLSPREAD,[e])}},t.EcmaDelobjprop=class extends m{constructor(e,t){super(c.ECMA_DELOBJPROP,[e,t])}},t.EcmaNewobjspreaddyn=class extends m{constructor(e,t){super(c.ECMA_NEWOBJSPREADDYN,[e,t])}},t.EcmaCreateiterresultobj=class extends m{constructor(e,t){super(c.ECMA_CREATEITERRESULTOBJ,[e,t])}},t.EcmaSuspendgenerator=class extends m{constructor(e,t){super(c.ECMA_SUSPENDGENERATOR,[e,t])}},t.EcmaAsyncfunctionawaituncaught=class extends m{constructor(e,t){super(c.ECMA_ASYNCFUNCTIONAWAITUNCAUGHT,[e,t])}},t.EcmaThrowundefinedifhole=class extends m{constructor(e,t){super(c.ECMA_THROWUNDEFINEDIFHOLE,[e,t])}},t.EcmaCallarg1dyn=class extends m{constructor(e,t){super(c.ECMA_CALLARG1DYN,[e,t])}},t.EcmaCopydataproperties=class extends m{constructor(e,t){super(c.ECMA_COPYDATAPROPERTIES,[e,t])}},t.EcmaStarrayspread=class extends m{constructor(e,t){super(c.ECMA_STARRAYSPREAD,[e,t])}},t.EcmaGetiteratornext=class extends m{constructor(e,t){super(c.ECMA_GETITERATORNEXT,[e,t])}},t.EcmaSetobjectwithproto=class extends m{constructor(e,t){super(c.ECMA_SETOBJECTWITHPROTO,[e,t])}},t.EcmaLdobjbyvalue=class extends m{constructor(e,t){super(c.ECMA_LDOBJBYVALUE,[e,t])}},t.EcmaStobjbyvalue=class extends m{constructor(e,t){super(c.ECMA_STOBJBYVALUE,[e,t])}},t.EcmaStownbyvalue=class extends m{constructor(e,t){super(c.ECMA_STOWNBYVALUE,[e,t])}},t.EcmaLdsuperbyvalue=class extends m{constructor(e,t){super(c.ECMA_LDSUPERBYVALUE,[e,t])}},t.EcmaStsuperbyvalue=class extends m{constructor(e,t){super(c.ECMA_STSUPERBYVALUE,[e,t])}},t.EcmaLdobjbyindex=class extends m{constructor(e,t){super(c.ECMA_LDOBJBYINDEX,[e,t])}},t.EcmaStobjbyindex=class extends m{constructor(e,t){super(c.ECMA_STOBJBYINDEX,[e,t])}},t.EcmaStownbyindex=class extends m{constructor(e,t){super(c.ECMA_STOWNBYINDEX,[e,t])}},t.EcmaCallspreaddyn=class extends m{constructor(e,t,r){super(c.ECMA_CALLSPREADDYN,[e,t,r])}},t.EcmaAsyncfunctionresolve=class extends m{constructor(e,t,r){super(c.ECMA_ASYNCFUNCTIONRESOLVE,[e,t,r])}},t.EcmaAsyncfunctionreject=class extends m{constructor(e,t,r){super(c.ECMA_ASYNCFUNCTIONREJECT,[e,t,r])}},t.EcmaCallargs2dyn=class extends m{constructor(e,t,r){super(c.ECMA_CALLARGS2DYN,[e,t,r])}},t.EcmaCallargs3dyn=class extends m{constructor(e,t,r,n){super(c.ECMA_CALLARGS3DYN,[e,t,r,n])}},t.EcmaDefinegettersetterbyvalue=class extends m{constructor(e,t,r,n){super(c.ECMA_DEFINEGETTERSETTERBYVALUE,[e,t,r,n])}},t.EcmaNewobjdynrange=class extends m{constructor(e,t){var r=[e,...t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.ECMA_NEWOBJDYNRANGE,n)}},t.EcmaCallirangedyn=class extends m{constructor(e,t){var r=[e,...t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.ECMA_CALLIRANGEDYN,n)}},t.EcmaCallithisrangedyn=class extends m{constructor(e,t){var r=[e,...t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.ECMA_CALLITHISRANGEDYN,n)}},t.EcmaSupercall=class extends m{constructor(e,t){super(c.ECMA_SUPERCALL,[e,t])}},t.EcmaCreateobjectwithexcludedkeys=class extends m{constructor(e,t,r){var n=[e,t,...r],i=[e,t];for(n.shift(),n.shift();n&&n.length;){let e=n.shift();null!=e&&i.push(e)}super(c.ECMA_CREATEOBJECTWITHEXCLUDEDKEYS,i)}},t.EcmaDefinefuncdyn=class extends m{constructor(e,t,r){super(c.ECMA_DEFINEFUNCDYN,[e,t,r])}},t.EcmaDefinencfuncdyn=class extends m{constructor(e,t,r){super(c.ECMA_DEFINENCFUNCDYN,[e,t,r])}},t.EcmaDefinegeneratorfunc=class extends m{constructor(e,t,r){super(c.ECMA_DEFINEGENERATORFUNC,[e,t,r])}},t.EcmaDefineasyncfunc=class extends m{constructor(e,t,r){super(c.ECMA_DEFINEASYNCFUNC,[e,t,r])}},t.EcmaDefinemethod=class extends m{constructor(e,t,r){super(c.ECMA_DEFINEMETHOD,[e,t,r])}},t.EcmaNewlexenvdyn=class extends m{constructor(e){super(c.ECMA_NEWLEXENVDYN,[e])}},t.EcmaCopyrestargs=class extends m{constructor(e){super(c.ECMA_COPYRESTARGS,[e])}},t.EcmaCreatearraywithbuffer=class extends m{constructor(e){super(c.ECMA_CREATEARRAYWITHBUFFER,[e])}},t.EcmaCreateobjecthavingmethod=class extends m{constructor(e){super(c.ECMA_CREATEOBJECTHAVINGMETHOD,[e])}},t.EcmaThrowifsupernotcorrectcall=class extends m{constructor(e){super(c.ECMA_THROWIFSUPERNOTCORRECTCALL,[e])}},t.EcmaCreateobjectwithbuffer=class extends m{constructor(e){super(c.ECMA_CREATEOBJECTWITHBUFFER,[e])}},t.EcmaLdlexvardyn=class extends m{constructor(e,t){super(c.ECMA_LDLEXVARDYN,[e,t])}},t.EcmaStlexvardyn=class extends m{constructor(e,t,r){super(c.ECMA_STLEXVARDYN,[e,t,r])}},t.EcmaDefineclasswithbuffer=class extends m{constructor(e,t,r,n,i){super(c.ECMA_DEFINECLASSWITHBUFFER,[e,t,r,n,i])}},t.EcmaImportmodule=class extends m{constructor(e){super(c.ECMA_IMPORTMODULE,[e])}},t.EcmaStmodulevar=class extends m{constructor(e){super(c.ECMA_STMODULEVAR,[e])}},t.EcmaTryldglobalbyname=class extends m{constructor(e){super(c.ECMA_TRYLDGLOBALBYNAME,[e])}},t.EcmaTrystglobalbyname=class extends m{constructor(e){super(c.ECMA_TRYSTGLOBALBYNAME,[e])}},t.EcmaLdglobalvar=class extends m{constructor(e){super(c.ECMA_LDGLOBALVAR,[e])}},t.EcmaStglobalvar=class extends m{constructor(e){super(c.ECMA_STGLOBALVAR,[e])}},t.EcmaLdobjbyname=class extends m{constructor(e,t){super(c.ECMA_LDOBJBYNAME,[e,t])}},t.EcmaStobjbyname=class extends m{constructor(e,t){super(c.ECMA_STOBJBYNAME,[e,t])}},t.EcmaStownbyname=class extends m{constructor(e,t){super(c.ECMA_STOWNBYNAME,[e,t])}},t.EcmaLdsuperbyname=class extends m{constructor(e,t){super(c.ECMA_LDSUPERBYNAME,[e,t])}},t.EcmaStsuperbyname=class extends m{constructor(e,t){super(c.ECMA_STSUPERBYNAME,[e,t])}},t.EcmaLdmodvarbyname=class extends m{constructor(e,t){super(c.ECMA_LDMODVARBYNAME,[e,t])}},t.EcmaCreateregexpwithliteral=class extends m{constructor(e,t){super(c.ECMA_CREATEREGEXPWITHLITERAL,[e,t])}},t.EcmaIstrue=class extends m{constructor(){super(c.ECMA_ISTRUE,[])}},t.EcmaIsfalse=class extends m{constructor(){super(c.ECMA_ISFALSE,[])}},t.EcmaStconsttoglobalrecord=class extends m{constructor(e){super(c.ECMA_STCONSTTOGLOBALRECORD,[e])}},t.EcmaStlettoglobalrecord=class extends m{constructor(e){super(c.ECMA_STLETTOGLOBALRECORD,[e])}},t.EcmaStclasstoglobalrecord=class extends m{constructor(e){super(c.ECMA_STCLASSTOGLOBALRECORD,[e])}},t.EcmaStownbyvaluewithnameset=class extends m{constructor(e,t){super(c.ECMA_STOWNBYVALUEWITHNAMESET,[e,t])}},t.EcmaStownbynamewithnameset=class extends m{constructor(e,t){super(c.ECMA_STOWNBYNAMEWITHNAMESET,[e,t])}},t.EcmaLdfunction=class extends m{constructor(){super(c.ECMA_LDFUNCTION,[])}},t.EcmaNewlexenvwithnamedyn=class extends m{constructor(e,t){super(c.ECMA_NEWLEXENVWITHNAMEDYN,[e,t])}},t.EcmaLdbigint=class extends m{constructor(e){super(c.ECMA_LDBIGINT,[e])}}},"./src/lexenv.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.VariableAcessStore=t.VariableAccessLoad=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/bcGenUtil.ts"),c=r("./src/base/vregisterCache.ts"),l=r("./src/debuginfo.ts"),u=a(r("./src/jshelpers.js"));class _{constructor(e,t,r){this.variable=r,this.scope=e,this.level=t}isLexVar(){return this.variable.isLexVar}getEnvSlotOfVar(){if(this.isLexVar())return this.variable.idxLex}}function d(e,t,r,n){let i=e.getTemp();n.push((0,s.loadAccumulatorString)(r)),n.push((0,s.storeAccumulator)(i)),n.push((0,s.throwUndefinedIfHole)(t,i)),e.freeTemps(i)}function p(e,t,r,n){let i=e.getTemp();if(t.isConst()&&(r.push((0,s.loadAccumulatorString)(t.getName())),r.push((0,s.storeAccumulator)(i)),r.push((0,s.throwConstAssignment)(i))),t.isClass()&&n!=l.NodeKind.FirstNodeOfFunction&&n!=l.NodeKind.Invalid&&n!=l.NodeKind.Normal){let e=t.getName();for(;n&&(!o.isClassLike(n)||!n.name||u.getTextOfIdentifierOrLiteral(n.name)!=e);)n=n.parent;n&&(r.push((0,s.loadAccumulatorString)(e)),r.push((0,s.storeAccumulator)(i)),r.push((0,s.throwConstAssignment)(i)))}e.freeTemps(i)}t.VariableAccessLoad=class extends _{constructor(e,t,r){super(e,t,r)}expand(e){return this.isLexVar()?this.loadLexEnvVar(e):this.loadLocalVar(e)}loadLocalVar(e){let t=new Array,r=this.variable,n=e.getVregForVariable(r);if(!r.isInitialized()){let n=e.getTemp();return t.push((0,s.loadAccumulator)((0,c.getVregisterCache)(e,c.CacheList.HOLE))),t.push((0,s.storeAccumulator)(n)),d(e,n,r.getName(),t),e.freeTemps(n),t}return"4funcObj"===r.getName()&&this.scope.setCallOpt("4funcObj"),t.push((0,s.loadAccumulator)(n)),t}loadLexEnvVar(e){let t=new Array,r=this.variable,n=r.idxLex;if(t.push((0,s.loadLexicalVar)(this.level,n)),r.isLetOrConst()){let n=e.getTemp();t.push((0,s.storeAccumulator)(n)),d(e,n,r.getName(),t),t.push((0,s.loadAccumulator)(n)),e.freeTemps(n)}return t}},t.VariableAcessStore=class extends _{constructor(e,t,r,n,i){super(e,t,r),this.isDeclaration=n,this.node=i}expand(e){return this.isLexVar()?this.storeLexEnvVar(e):this.storeLocalVar(e)}storeLocalVar(e){let t=new Array,r=this.variable,n=e.getVregForVariable(r);if(!this.isDeclaration){if(!r.isInitialized()){let n=e.getTemp(),i=e.getTemp(),a=e.getTemp();t.push((0,s.storeAccumulator)(i)),t.push((0,s.loadAccumulator)((0,c.getVregisterCache)(e,c.CacheList.HOLE))),t.push((0,s.storeAccumulator)(a)),d(e,a,r.getName(),t),t.push((0,s.loadAccumulator)(i)),e.freeTemps(n,i,a)}p(e,r,t,this.node)}return"4funcObj"===r.getName()&&this.scope.setCallOpt("4funcObj"),t.push((0,s.storeAccumulator)(n)),r.isExportVar()&&t.push((0,s.storeModuleVariable)(r.getExportedName())),t}storeLexEnvVar(e){let t=new Array,r=this.variable,n=e.getTemp();t.push((0,s.storeAccumulator)(n));let i=r.idxLex;if((r.isLetOrConst()||r.isClass())&&!this.isDeclaration){let n=e.getTemp();t.push((0,s.loadLexicalVar)(this.level,i)),t.push((0,s.storeAccumulator)(n)),d(e,n,r.getName(),t),p(e,r,t,this.node),e.freeTemps(n)}return t.push((0,s.storeLexicalVar)(this.level,i,n)),t.push((0,s.loadAccumulator)(n)),r.isExportVar()&&t.push((0,s.storeModuleVariable)(r.getExportedName())),e.freeTemps(n),t}}},"./src/log.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOGE=t.LOGD=void 0;const n=r("./src/cmdOptions.ts");t.LOGD=function(e,...t){n.CmdOptions.isEnableDebugLog()&&(e?console.log(e+": "+t):console.log(t))},t.LOGE=function(e,...t){e?console.error(e+": "+t):console.error(t)}},"./src/modules.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.setExportBinding=t.setImport=t.ModuleStmt=void 0;const o=a(r("./src/jshelpers.js")),s=r("./src/diagnostic.ts");t.ModuleStmt=class{constructor(e,t=""){this.namespace="",this.bingdingNameMap=new Map,this.bingdingNodeMap=new Map,this.isCopy=!0,this.node=e,this.moduleRequest=t}getNode(){return this.node}getModuleRequest(){return this.moduleRequest}addLocalName(e,t){if(this.bingdingNameMap.has(e))throw new s.DiagnosticError(this.node,s.DiagnosticCode.Duplicate_identifier_0,o.getSourceFileOfNode(this.node),[e]);this.bingdingNameMap.set(e,t)}getBindingNameMap(){return this.bingdingNameMap}addNodeMap(e,t){this.bingdingNodeMap.set(e,t)}getBindingNodeMap(){return this.bingdingNodeMap}setNameSpace(e){this.namespace=e}getNameSpace(){return this.namespace}setCopyFlag(e){this.isCopy=e}getCopyFlag(){return this.isCopy}},t.setImport=function(e,t,r){e.forEach((e=>{if(r.importModule(e.getNode(),e.getModuleRequest()),e.getNameSpace()){let n=t.findLocal(e.getNameSpace());r.storeAccToLexEnv(e.getNode(),t,0,n,!0),n.initialize()}let n=r.allocLocalVreg();r.storeAccumulator(e.getNode(),n),e.getBindingNameMap().forEach(((i,a)=>{let o=t.findLocal(a);r.loadModuleVariable(e.getNode(),n,i),r.storeAccToLexEnv(e.getNode(),t,0,o,!0),o.initialize()}))}))},t.setExportBinding=function(e,t,r){e.forEach((e=>{if(e.getModuleRequest()){r.importModule(e.getNode(),e.getModuleRequest());let t=r.allocLocalVreg();r.storeAccumulator(e.getNode(),t),e.getCopyFlag()?r.copyModule(e.getNode(),t):(e.getNameSpace()&&r.storeModuleVar(e.getNode(),e.getNameSpace()),e.getBindingNameMap().forEach(((n,i)=>{r.loadModuleVariable(e.getNode(),t,n),r.storeModuleVar(e.getNode(),i)})))}else e.getBindingNameMap().forEach(((r,n)=>{let i=t.findLocal(r);if(void 0===i)throw new s.DiagnosticError(e.getNode(),s.DiagnosticCode.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,o.getSourceFileOfNode(e.getNode()),[r]);i.setExport(),i.setExportedName(n)}))}))}},"./src/pandagen.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PandaGen=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./node_modules/typescript/lib/typescript.js"),c=r("./src/base/bcGenUtil.ts"),l=r("./src/base/literal.ts"),u=r("./src/base/util.ts"),_=r("./src/base/vregisterCache.ts"),d=r("./src/cmdOptions.ts"),p=r("./src/debuginfo.ts"),f=r("./src/expression/numericLiteral.ts"),g=r("./src/irnodes.ts"),m=r("./src/lexenv.ts"),y=r("./src/log.ts"),h=r("./src/scope.ts"),v=r("./src/typeRecorder.ts");class b{constructor(e,t,r){this.debugTag="PandaGen",this.locals=[],this.temps=[],this.insns=[],this.catchMap=new Map,this.totalRegsNum=0,this.variableDebugInfoArray=[],this.sourceFileDebugInfo="",this.callType=0,this.internalName=e,this.parametersCount=t,this.scope=r,this.vregisterCache=new _.VregisterCache}appendScopeInfo(e){if(0==e.size)return;let t;t=b.getLiteralArrayBuffer().length;let r=new l.LiteralBuffer,n=new Array;return n.push(new l.Literal(l.LiteralTag.INTEGER,e.size)),e.forEach(((e,t)=>{n.push(new l.Literal(l.LiteralTag.STRING,t)),n.push(new l.Literal(l.LiteralTag.INTEGER,e))})),r.addLiterals(...n),b.getLiteralArrayBuffer().push(r),t}setCallType(e){this.callType=e}getCallType(){return this.callType}static getExportedTypes(){return v.TypeRecorder.getInstance()?v.TypeRecorder.getInstance().getExportedType():new Map}static getDeclaredTypes(){return v.TypeRecorder.getInstance()?v.TypeRecorder.getInstance().getDeclaredType():new Map}getSourceCodeDebugInfo(){return this.sourceCodeDebugInfo}setSourceCodeDebugInfo(e){this.sourceCodeDebugInfo=e}getSourceFileDebugInfo(){return this.sourceFileDebugInfo}setSourceFileDebugInfo(e){this.sourceFileDebugInfo=e}static getLiteralArrayBuffer(){return b.literalArrayBuffer}static clearLiteralArrayBuffer(){b.literalArrayBuffer=[]}getParameterLength(){if(this.scope instanceof h.FunctionScope)return this.scope.getParameterLength()}getFuncName(){return this.scope instanceof h.FunctionScope?this.scope.getFuncName():"main"}static appendTypeArrayBuffer(e){let t=b.literalArrayBuffer.length;return b.literalArrayBuffer.push(e.transfer2LiteralBuffer()),t}static setTypeArrayBuffer(e,t){b.literalArrayBuffer[t]=e.transfer2LiteralBuffer()}getFirstStmt(){return this.firstStmt}setFirstStmt(e){this.firstStmt||(this.firstStmt=e)}getVregisterCache(){return this.vregisterCache}getCatchMap(){return this.catchMap}getScope(){return this.scope}getVariableDebugInfoArray(){return this.variableDebugInfoArray}addDebugVariableInfo(e){this.variableDebugInfoArray.push(e)}allocLocalVreg(){let e=new g.VReg;return this.locals.push(e),e}getVregForVariable(e){if(e.hasAlreadyBinded())return e.getVreg();let t=this.allocLocalVreg();return e.bindVreg(t),t}getTemp(){let e;return e=this.temps.length>0?this.temps.shift():new g.VReg,e}freeTemps(...e){this.temps.unshift(...e)}getInsns(){return this.insns}setInsns(e){this.insns=e}printInsns(){(0,y.LOGE)("function "+this.internalName+"() {"),this.getInsns().forEach((e=>{(0,y.LOGE)(e.toString())})),(0,y.LOGE)("}")}setTotalRegsNum(e){this.totalRegsNum=e}getTotalRegsNum(){return this.totalRegsNum}setParametersCount(e){this.parametersCount=e}getParametersCount(){return this.parametersCount}setLocals(e){this.locals=e}getLocals(){return this.locals}getTemps(){return this.temps}storeAccumulator(e,t){this.add(e,(0,c.storeAccumulator)(t))}loadAccFromArgs(e){if(this.scope.getUseArgs()){let t=this.scope.findLocal("arguments");if(this.scope instanceof h.FunctionScope&&this.scope.setArgumentsOrRestargs(),!t)throw new Error("fail to get arguments");{let r=this.getVregForVariable(t);this.getUnmappedArgs(e),this.add(e,(0,c.storeAccumulator)(r))}}}deleteObjProperty(e,t,r){this.add(e,(0,c.deleteObjProperty)(t,r))}loadAccumulator(e,t){this.add(e,(0,c.loadAccumulator)(t))}createLexEnv(e,t,r){let n,i=r.getNumLexEnv(),a=r.getLexVarInfo();d.CmdOptions.isDebugMode()&&(n=this.appendScopeInfo(a)),this.add(e,(0,c.newLexicalEnv)(i,n),(0,c.storeAccumulator)(t))}popLexicalEnv(e){this.add(e,(0,c.popLexicalEnv)())}loadAccFromLexEnv(e,t,r,n){let i=new m.VariableAccessLoad(t,r,n).expand(this);this.add(e,...i)}storeAccToLexEnv(e,t,r,n,i){let a=new m.VariableAcessStore(t,r,n,i,e).expand(this);this.add(e,...a)}loadObjProperty(e,t,r){switch(typeof r){case"number":if((0,f.isInteger)(r))this.loadObjByIndex(e,t,r);else{let n=this.getTemp();this.add(e,(0,c.loadAccumulatorFloat)(r),(0,c.storeAccumulator)(n)),this.loadObjByValue(e,t,n),this.freeTemps(n)}break;case"string":this.loadObjByName(e,t,r);break;default:this.loadObjByValue(e,t,r)}}storeObjProperty(e,t,r){switch(typeof r){case"number":if((0,f.isInteger)(r))this.storeObjByIndex(e,t,r);else{let n=this.getTemp(),i=this.getTemp();this.storeAccumulator(e,n),this.add(e,(0,c.loadAccumulatorFloat)(r),(0,c.storeAccumulator)(i),(0,c.loadAccumulator)(n)),this.storeObjByValue(e,t,i),this.freeTemps(n,i)}break;case"string":this.storeObjByName(e,t,r);break;default:this.storeObjByValue(e,t,r)}}storeOwnProperty(e,t,r,n=!1){switch(typeof r){case"number":if((0,f.isInteger)(r))this.stOwnByIndex(e,t,r);else{let i=this.getTemp(),a=this.getTemp();this.storeAccumulator(e,i),this.add(e,(0,c.loadAccumulatorFloat)(r),(0,c.storeAccumulator)(a),(0,c.loadAccumulator)(i)),this.stOwnByValue(e,t,a,n),this.freeTemps(i,a)}break;case"string":this.stOwnByName(e,t,r,n);break;default:this.stOwnByValue(e,t,r,n)}}loadObjByName(e,t,r){this.add(e,(0,c.loadObjByName)(t,r))}storeObjByName(e,t,r){this.add(e,(0,c.storeObjByName)(t,r))}loadObjByIndex(e,t,r){this.add(e,(0,c.loadObjByIndex)(t,r))}storeObjByIndex(e,t,r){this.add(e,(0,c.storeObjByIndex)(t,r))}loadObjByValue(e,t,r){this.add(e,(0,c.loadObjByValue)(t,r))}storeObjByValue(e,t,r){this.add(e,(0,c.storeObjByValue)(t,r))}stOwnByName(e,t,r,n){this.add(e,(0,c.storeOwnByName)(t,r,n))}stOwnByIndex(e,t,r){this.add(e,(0,c.storeOwnByIndex)(t,r))}stOwnByValue(e,t,r,n){this.add(e,(0,c.storeOwnByValue)(t,r,n))}loadByNameViaDebugger(e,t,r){this.loadObjProperty(e,(0,_.getVregisterCache)(this,_.CacheList.Global),"debuggerGetValue");let n=this.getTemp();this.storeAccumulator(e,n);let i=this.getTemp();this.loadAccumulatorString(e,t),this.storeAccumulator(e,i);let a=this.getTemp();this.moveVreg(e,a,(0,_.getVregisterCache)(this,r)),this.call(e,[n,i,a],!1),this.freeTemps(n,i,a)}tryLoadGlobalByName(e,t){d.CmdOptions.isWatchEvaluateExpressionMode()?this.loadByNameViaDebugger(e,t,_.CacheList.True):this.add(e,(0,c.tryLoadGlobalByName)(t))}storeByNameViaDebugger(e,t){let r=this.getTemp();this.storeAccumulator(e,r),this.loadObjProperty(e,(0,_.getVregisterCache)(this,_.CacheList.Global),"debuggerSetValue");let n=this.getTemp();this.storeAccumulator(e,n);let i=this.getTemp();this.loadAccumulatorString(e,t),this.storeAccumulator(e,i),this.call(e,[n,i,r],!1),this.freeTemps(r,n,i)}tryStoreGlobalByName(e,t){d.CmdOptions.isWatchEvaluateExpressionMode()?this.storeByNameViaDebugger(e,t):this.add(e,(0,c.tryStoreGlobalByName)(t))}loadGlobalVar(e,t){this.add(e,(0,c.loadGlobalVar)(t))}storeGlobalVar(e,t){this.add(e,(0,c.storeGlobalVar)(t))}loadAccumulatorString(e,t){this.add(e,(0,c.loadAccumulatorString)(t))}loadAccumulatorFloat(e,t){this.add(e,(0,c.loadAccumulatorFloat)(t))}loadAccumulatorInt(e,t){this.add(e,(0,c.loadAccumulatorInt)(t))}moveVreg(e,t,r){this.add(e,(0,c.moveVreg)(t,r))}label(e,t){this.add(p.NodeKind.Invalid,t)}branch(e,t){this.add(e,(0,c.jumpTarget)(t))}isTrue(e){this.add(e,(0,c.isTrue)())}jumpIfTrue(e,t){this.isFalse(e),this.add(e,new g.Jeqz(t))}isFalse(e){this.add(e,(0,c.isFalse)())}jumpIfFalse(e,t){this.isTrue(e),this.add(e,new g.Jeqz(t))}debugger(e){this.add(e,(0,c.creatDebugger)())}throwUndefinedIfHole(e,t,r){this.add(e,(0,c.throwUndefinedIfHole)(t,r))}condition(e,t,r,n){switch(t){case s.SyntaxKind.LessThanToken:this.add(e,new g.EcmaLessdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.GreaterThanToken:this.add(e,new g.EcmaGreaterdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.LessThanEqualsToken:this.add(e,new g.EcmaLesseqdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.GreaterThanEqualsToken:this.add(e,new g.EcmaGreatereqdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.EqualsEqualsToken:this.add(e,new g.EcmaEqdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.ExclamationEqualsToken:this.add(e,new g.EcmaNoteqdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.EqualsEqualsEqualsToken:this.add(e,new g.EcmaStricteqdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.ExclamationEqualsEqualsToken:this.add(e,new g.EcmaStrictnoteqdyn(r)),this.add(e,new g.Jeqz(n))}}unary(e,t,r){switch(t){case s.SyntaxKind.PlusToken:this.add(e,new g.EcmaTonumber(r));break;case s.SyntaxKind.MinusToken:this.add(e,new g.EcmaNegdyn(r));break;case s.SyntaxKind.PlusPlusToken:this.add(e,new g.EcmaIncdyn(r));break;case s.SyntaxKind.MinusMinusToken:this.add(e,new g.EcmaDecdyn(r));break;case s.SyntaxKind.ExclamationToken:let t=new g.Label,n=new g.Label;this.jumpIfFalse(e,t),this.add(e,(0,c.loadAccumulator)((0,_.getVregisterCache)(this,_.CacheList.False))),this.branch(e,n),this.label(e,t),this.add(e,(0,c.loadAccumulator)((0,_.getVregisterCache)(this,_.CacheList.True))),this.label(e,n);break;case s.SyntaxKind.TildeToken:this.add(e,new g.EcmaNotdyn(r));break;default:throw new Error("Unimplemented")}}binary(e,t,r){switch(t){case s.SyntaxKind.LessThanToken:case s.SyntaxKind.GreaterThanToken:case s.SyntaxKind.LessThanEqualsToken:case s.SyntaxKind.GreaterThanEqualsToken:case s.SyntaxKind.EqualsEqualsToken:case s.SyntaxKind.ExclamationEqualsToken:case s.SyntaxKind.EqualsEqualsEqualsToken:case s.SyntaxKind.ExclamationEqualsEqualsToken:this.binaryRelation(e,t,r);break;case s.SyntaxKind.PlusToken:case s.SyntaxKind.PlusEqualsToken:this.add(e,new g.EcmaAdd2dyn(r));break;case s.SyntaxKind.MinusToken:case s.SyntaxKind.MinusEqualsToken:this.add(e,new g.EcmaSub2dyn(r));break;case s.SyntaxKind.AsteriskToken:case s.SyntaxKind.AsteriskEqualsToken:this.add(e,new g.EcmaMul2dyn(r));break;case s.SyntaxKind.AsteriskAsteriskToken:case s.SyntaxKind.AsteriskAsteriskEqualsToken:this.add(e,new g.EcmaExpdyn(r));break;case s.SyntaxKind.SlashToken:case s.SyntaxKind.SlashEqualsToken:this.add(e,new g.EcmaDiv2dyn(r));break;case s.SyntaxKind.PercentToken:case s.SyntaxKind.PercentEqualsToken:this.add(e,new g.EcmaMod2dyn(r));break;case s.SyntaxKind.LessThanLessThanToken:case s.SyntaxKind.LessThanLessThanEqualsToken:this.add(e,new g.EcmaShl2dyn(r));break;case s.SyntaxKind.GreaterThanGreaterThanToken:case s.SyntaxKind.GreaterThanGreaterThanEqualsToken:this.add(e,new g.EcmaShr2dyn(r));break;case s.SyntaxKind.GreaterThanGreaterThanGreaterThanToken:case s.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:this.add(e,new g.EcmaAshr2dyn(r));break;case s.SyntaxKind.AmpersandToken:case s.SyntaxKind.AmpersandEqualsToken:this.add(e,new g.EcmaAnd2dyn(r));break;case s.SyntaxKind.BarToken:case s.SyntaxKind.BarEqualsToken:this.add(e,new g.EcmaOr2dyn(r));break;case s.SyntaxKind.CaretToken:case s.SyntaxKind.CaretEqualsToken:this.add(e,new g.EcmaXor2dyn(r));break;case s.SyntaxKind.InKeyword:this.add(e,new g.EcmaIsindyn(r));break;case s.SyntaxKind.InstanceOfKeyword:this.add(e,new g.EcmaInstanceofdyn(r));break;default:throw new Error("Unimplemented")}}throw(e){this.add(e,(0,c.throwException)())}throwThrowNotExist(e){this.add(e,(0,c.throwThrowNotExists)())}throwDeleteSuperProperty(e){this.add(e,(0,c.throwDeleteSuperProperty)())}return(e){this.add(e,new g.ReturnDyn)}call(e,t,r){this.add(e,(0,c.call)(t,r))}returnUndefined(e){this.add(e,(0,c.returnUndefined)())}newObject(e,t){this.add(e,(0,c.newObject)(t))}defineMethod(e,t,r,n){let i=(0,u.getParamLengthOfFunc)(e);this.add(e,(0,c.loadAccumulator)(r),(0,c.defineMethod)(t,n,i))}defineFunction(e,t,r,n){let i=(0,u.getParamLengthOfFunc)(t);if(t.modifiers)for(let a=0;a<t.modifiers.length;a++)if(t.modifiers[a].kind==o.SyntaxKind.AsyncKeyword&&!t.asteriskToken)return void this.add(e,(0,c.defineAsyncFunc)(r,n,i));t.asteriskToken?this.add(e,(0,c.defineGeneratorFunc)(r,n,i)):o.isArrowFunction(t)||o.isMethodDeclaration(t)?this.add(e,(0,c.loadHomeObject)(),(0,c.defineNCFunc)(r,n,i)):this.add(e,(0,c.defineFunc)(r,n,i))}typeOf(e){this.add(e,new g.EcmaTypeofdyn)}callSpread(e,t,r,n){this.add(e,new g.EcmaCallspreaddyn(t,r,n))}newObjSpread(e,t,r){this.add(e,new g.EcmaNewobjspreaddyn(t,r))}getUnmappedArgs(e){this.add(e,new g.EcmaGetunmappedargs)}toNumber(e,t){this.add(e,new g.EcmaTonumber(t))}createGeneratorObj(e,t){this.add(e,new g.EcmaCreategeneratorobj(t))}EcmaCreateiterresultobj(e,t,r){this.add(e,new g.EcmaCreateiterresultobj(t,r))}suspendGenerator(e,t,r){this.add(e,new g.EcmaSuspendgenerator(t,r))}resumeGenerator(e,t){this.add(e,new g.EcmaResumegenerator(t))}getResumeMode(e,t){this.add(e,new g.EcmaGetresumemode(t))}asyncFunctionEnter(e){this.add(e,new g.EcmaAsyncfunctionenter)}asyncFunctionAwaitUncaught(e,t,r){this.add(e,new g.EcmaAsyncfunctionawaituncaught(t,r))}asyncFunctionResolve(e,t,r,n){this.add(e,new g.EcmaAsyncfunctionresolve(t,r,n))}asyncFunctionReject(e,t,r,n){this.add(e,new g.EcmaAsyncfunctionreject(t,r,n))}getTemplateObject(e,t){this.add(e,new g.EcmaGettemplateobject(t))}copyRestArgs(e,t){this.add(e,new g.EcmaCopyrestargs(new g.Imm(t)))}getPropIterator(e){this.add(e,(0,c.getPropIterator)())}getNextPropName(e,t){this.add(e,(0,c.getNextPropName)(t))}createEmptyObject(e){this.add(e,(0,c.createEmptyObject)())}createObjectHavingMethod(e,t,r){this.add(e,(0,c.loadAccumulator)(r),(0,c.createObjectHavingMethod)(t))}createObjectWithBuffer(e,t){this.add(e,(0,c.createObjectWithBuffer)(t))}setObjectWithProto(e,t,r){this.add(e,(0,c.setObjectWithProto)(t,r))}copyDataProperties(e,t,r){this.add(e,(0,c.copyDataProperties)(t,r))}defineGetterSetterByValue(e,t,r,n,i,a){a?this.add(e,(0,c.loadAccumulator)((0,_.getVregisterCache)(this,_.CacheList.True))):this.add(e,(0,c.loadAccumulator)((0,_.getVregisterCache)(this,_.CacheList.False))),this.add(e,(0,c.defineGetterSetterByValue)(t,r,n,i))}createEmptyArray(e){this.add(e,(0,c.createEmptyArray)())}createArrayWithBuffer(e,t){this.add(e,(0,c.createArrayWithBuffer)(t))}storeArraySpreadElement(e,t,r){this.add(e,(0,c.storeArraySpread)(t,r))}storeLexicalVar(e,t,r,n){this.add(e,(0,c.storeLexicalVar)(t,r,n))}loadLexicalVar(e,t,r){this.add(e,(0,c.loadLexicalVar)(t,r))}importModule(e,t){this.add(e,(0,c.importModule)(t))}loadModuleVariable(e,t,r){this.add(e,(0,c.loadModuleVarByName)(r,t))}storeModuleVar(e,t){this.add(e,(0,c.storeModuleVariable)(t))}copyModule(e,t){this.add(e,(0,c.copyModuleIntoCurrentModule)(t))}defineClassWithBuffer(e,t,r,n,i){this.add(e,(0,c.defineClassWithBuffer)(t,r,n,(0,_.getVregisterCache)(this,_.CacheList.LexEnv),i))}createObjectWithExcludedKeys(e,t,r){this.add(e,(0,c.createObjectWithExcludedKeys)(t,r))}throwObjectNonCoercible(e){this.add(e,(0,c.throwObjectNonCoercible)())}getIterator(e){this.add(e,(0,c.getIterator)())}getIteratorNext(e,t,r){this.add(e,(0,c.getIteratorNext)(t,r))}closeIterator(e,t){this.add(e,(0,c.closeIterator)(t))}throwIfNotObject(e,t){this.add(e,(0,c.throwIfNotObject)(t))}superCall(e,t,r){this.add(e,(0,c.superCall)(t,r))}superCallSpread(e,t){this.add(e,(0,c.superCallSpread)(t))}ldSuperByName(e,t,r){this.add(e,(0,c.ldSuperByName)(t,r))}stSuperByName(e,t,r){this.add(e,(0,c.stSuperByName)(t,r))}ldSuperByValue(e,t,r){this.add(e,(0,c.ldSuperByValue)(t,r))}stSuperByValue(e,t,r){this.add(e,(0,c.stSuperByValue)(t,r))}loadSuperProperty(e,t,r){switch(typeof r){case"string":this.ldSuperByName(e,t,r);break;case"number":let n=this.getTemp();this.loadAccumulatorInt(e,r),this.storeAccumulator(e,n),this.ldSuperByValue(e,t,n),this.freeTemps(n);break;default:this.ldSuperByValue(e,t,r)}}throwIfSuperNotCorrectCall(e,t){this.add(e,(0,c.throwIfSuperNotCorrectCall)(t))}storeSuperProperty(e,t,r){switch(typeof r){case"string":this.stSuperByName(e,t,r);break;case"number":let n=this.getTemp();this.loadAccumulatorInt(e,r),this.storeAccumulator(e,n),this.stSuperByValue(e,t,n),this.freeTemps(n);break;default:this.stSuperByValue(e,t,r)}}loadHomeObject(e){this.add(e,(0,c.loadHomeObject)())}createRegExpWithLiteral(e,t,r){this.add(e,(0,c.createRegExpWithLiteral)(t,r))}stLetToGlobalRecord(e,t){this.add(e,(0,c.stLetToGlobalRecord)(t))}stConstToGlobalRecord(e,t){this.add(e,(0,c.stConstToGlobalRecord)(t))}stClassToGlobalRecord(e,t){this.add(e,(0,c.stClassToGlobalRecord)(t))}loadAccumulatorBigInt(e,t){this.add(e,(0,c.loadAccumulatorBigInt)(t))}binaryRelation(e,t,r){let n=new g.Label,i=new g.Label;switch(t){case s.SyntaxKind.LessThanToken:this.add(e,new g.EcmaLessdyn(r));break;case s.SyntaxKind.GreaterThanToken:this.add(e,new g.EcmaGreaterdyn(r));break;case s.SyntaxKind.LessThanEqualsToken:this.add(e,new g.EcmaLesseqdyn(r));break;case s.SyntaxKind.GreaterThanEqualsToken:this.add(e,new g.EcmaGreatereqdyn(r));break;case s.SyntaxKind.EqualsEqualsToken:this.add(e,new g.EcmaEqdyn(r));break;case s.SyntaxKind.ExclamationEqualsToken:this.add(e,new g.EcmaNoteqdyn(r));break;case s.SyntaxKind.EqualsEqualsEqualsToken:this.add(e,new g.EcmaStricteqdyn(r));break;case s.SyntaxKind.ExclamationEqualsEqualsToken:this.add(e,new g.EcmaStrictnoteqdyn(r))}this.add(e,new g.Jeqz(n)),this.add(e,(0,c.loadAccumulator)((0,_.getVregisterCache)(this,_.CacheList.True))),this.branch(e,i),this.label(e,n),this.add(e,(0,c.loadAccumulator)((0,_.getVregisterCache)(this,_.CacheList.False))),this.label(e,i)}add(e,...t){p.DebugInfo.setDebuginfoForIns(e,...t),this.insns.push(...t)}}t.PandaGen=b,b.literalArrayBuffer=new Array},"./src/pandasm.ts":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeclaredSymbol2Type=t.ExportedSymbol2Type=t.TypeOfVreg=t.CatchTable=t.Program=t.Record=t.Function=t.Ins=t.Signature=t.Metadata=void 0;class r{constructor(e=""){this.attribute=e}}t.Metadata=r,t.Signature=class{constructor(e=0,t){this.p=e,this.rt=t}},t.Ins=class{constructor(e,t,r,n,i,a){this.o=e,this.r=t,this.id=r,this.im=n,this.l=i,this.d=a}},t.Function=class{constructor(e,t,r=0,n=[],i,a,o,s="",c,l,u,_,d){this.n=e,this.s=t,this.i=n,this.l=i,this.r=r,this.ca_tab=o,this.v=a,this.sf=s,this.sc=c,this.ct=l,this.ti=u,this.es2t=_,this.ds2t=d}},t.Record=class{constructor(e,t,n,i,a){this.name=e,this.whole_line=t,this.bound_left=n,this.bound_right=i,this.line_number=a,this.metadata=new r}},t.Program=class{constructor(){this.functions=[],this.records=[],this.strings=new Set,this.strings_arr=[],this.literalArrays=[],this.module_mode=!1,this.debug_mode=!1,this.log_enabled=!1,this.opt_level=1,this.opt_log_level="error"}finalize(){this.strings_arr=Array.from(this.strings)}},t.CatchTable=class{constructor(e,t,r){this.tb_lab=e,this.te_lab=t,this.cb_lab=r}},t.TypeOfVreg=class{constructor(e,t){this.vregNum=e,this.typeIndex=t}},t.ExportedSymbol2Type=class{constructor(e,t){this.symbol=e,this.type=t}},t.DeclaredSymbol2Type=class{constructor(e,t){this.symbol=e,this.type=t}}},"./src/pass/cacheExpander.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CacheExpander=void 0;const n=r("./src/base/vregisterCache.ts");t.CacheExpander=class{run(e){let t=e.getInsns(),r=e.getVregisterCache();for(let i=n.CacheList.MIN;i<n.CacheList.MAX;i++){let n=r.getCache(i);if(n.isNeeded()){let r=n.getExpander()(e);t.unshift(...r)}}}}},"./src/recorder.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Recorder=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/astutils.ts")),c=r("./src/base/util.ts"),l=r("./src/cmdOptions.ts"),u=r("./src/diagnostic.ts"),_=r("./src/expression/parenthesizedExpression.ts"),d=a(r("./src/jshelpers.js")),p=r("./src/log.ts"),f=r("./src/modules.ts"),g=r("./src/scope.ts"),m=r("./src/statement/classStatement.ts"),y=r("./src/syntaxChecker.ts"),h=r("./src/syntaxCheckHelper.ts"),v=r("./src/typeChecker.ts"),b=r("./src/variable.ts"),x=r("./src/typeRecorder.ts"),D=r("./src/pandagen.ts");t.Recorder=class{constructor(e,t,r,n,i,a){this.scopeMap=new Map,this.hoistMap=new Map,this.parametersMap=new Map,this.class2Ctor=new Map,this.importStmts=[],this.exportStmts=[],this.defaultUsed=!1,this.node=e,this.scope=t,this.compilerDriver=r,this.recordType=n,this.funcNameMap=new Map,this.funcNameMap.set("main",1),this.isTsFile=i,this.syntaxCheckStatus=a}record(){return this.setParent(this.node),this.setScopeMap(this.node,this.scope),this.recordInfo(this.node,this.scope),this.recordType?(x.TypeRecorder.getInstance().setTypeSummary(),l.CmdOptions.enableTypeLog()&&x.TypeRecorder.getInstance().getLog()):D.PandaGen.clearLiteralArrayBuffer(),this.node}getCtorOfClass(e){return this.class2Ctor.get(e)}setCtorOfClass(e,t){this.class2Ctor.has(e)||this.class2Ctor.set(e,t)}setParent(e){e.forEachChild((t=>{if(!this.isTsFile||null==t.parent||t.parent.kind!=e.kind){t=d.setParent(t,e);let r=o.getOriginalNode(t);t=o.setTextRange(t,r)}this.setParent(t)}))}recordInfo(e,t){e.forEachChild((e=>{switch(this.syntaxCheckStatus&&(0,y.checkSyntaxError)(e),e.kind){case o.SyntaxKind.FunctionExpression:case o.SyntaxKind.MethodDeclaration:case o.SyntaxKind.Constructor:case o.SyntaxKind.GetAccessor:case o.SyntaxKind.SetAccessor:case o.SyntaxKind.ArrowFunction:{let r=this.buildVariableScope(t,e);this.recordOtherFunc(e,r),this.recordInfo(e,r);break}case o.SyntaxKind.FunctionDeclaration:{let r=this.buildVariableScope(t,e);this.recordFuncDecl(e,t),this.recordType&&v.TypeChecker.getInstance().formatNodeType(e),this.recordInfo(e,r);break}case o.SyntaxKind.Block:case o.SyntaxKind.IfStatement:case o.SyntaxKind.SwitchStatement:case o.SyntaxKind.LabeledStatement:case o.SyntaxKind.ThrowStatement:case o.SyntaxKind.TryStatement:case o.SyntaxKind.CatchClause:{let r=new g.LocalScope(t);this.setScopeMap(e,r),this.recordInfo(e,r);break}case o.SyntaxKind.DoStatement:case o.SyntaxKind.WhileStatement:case o.SyntaxKind.ForStatement:case o.SyntaxKind.ForInStatement:case o.SyntaxKind.ForOfStatement:{let r=new g.LoopScope(t);this.setScopeMap(e,r),this.recordInfo(e,r);break}case o.SyntaxKind.ClassDeclaration:case o.SyntaxKind.ClassExpression:this.recordClassInfo(e,t),this.recordType&&v.TypeChecker.getInstance().formatNodeType(e);break;case o.SyntaxKind.InterfaceDeclaration:this.recordType&&v.TypeChecker.getInstance().formatNodeType(e);break;case o.SyntaxKind.Identifier:this.recordVariableDecl(e,t);break;case o.SyntaxKind.ImportDeclaration:{if(!l.CmdOptions.isModules())throw new u.DiagnosticError(e,u.DiagnosticCode.An_import_declaration_can_only_be_used_in_a_namespace_or_module,d.getSourceFileOfNode(e));if(!(t instanceof g.ModuleScope))throw new Error("SyntaxError: import statement cannot in other scope except ModuleScope");let r=this.recordImportInfo(e,t);this.recordType&&v.TypeChecker.getInstance().formatNodeType(e,r);break}case o.SyntaxKind.ExportDeclaration:{if(!l.CmdOptions.isModules())throw new u.DiagnosticError(e,u.DiagnosticCode.An_export_declaration_can_only_be_used_in_a_module,d.getSourceFileOfNode(e));if(!(t instanceof g.ModuleScope))throw new Error("SyntaxError: export statement cannot in other scope except ModuleScope");let r=this.recordExportInfo(e);this.recordType&&v.TypeChecker.getInstance().formatNodeType(e,r);break}case o.SyntaxKind.ExportAssignment:if(this.defaultUsed)throw new u.DiagnosticError(e,u.DiagnosticCode.Duplicate_identifier_0,d.getSourceFileOfNode(e),["default"]);this.defaultUsed=!0,this.recordInfo(e,t),this.recordType&&v.TypeChecker.getInstance().formatNodeType(e);break;case o.SyntaxKind.VariableStatement:this.recordType&&v.TypeChecker.getInstance().formatNodeType(e),this.recordInfo(e,t);break;default:this.recordInfo(e,t)}}))}recordClassInfo(e,t){let r=new g.LocalScope(t);this.setScopeMap(e,r);let n=(0,m.extractCtorOfClass)(e);if(n?this.setCtorOfClass(e,n):(0,m.AddCtor2Class)(this,e,r),e.name){let r=d.getTextOfIdentifierOrLiteral(e.name),n=new g.ClassDecl(r,e);t.setDecls(n)}this.recordInfo(e,r)}buildVariableScope(e,t){let r=new g.FunctionScope(e,t),n=e.getNearestVariableScope();return r.setParentVariableScope(n),n.addChildVariableScope(r),this.setScopeMap(t,r),r}recordVariableDecl(e,t){let r=d.getTextOfIdentifierOrLiteral(e),n=this.getDeclarationNodeOfId(e);if(n){let i=s.getVarDeclarationKind(n),a=this.addVariableDeclToScope(t,e,n,r,i);if(i==b.VarDeclarationKind.VAR){let r=t.getNearestVariableScope();this.collectHoistDecls(e,r,a)}}else{let e=t.findDeclPos(r);if(e){let n=e.getDecl(r);if(n instanceof g.LetDecl||n instanceof g.ConstDecl){let r=t.getNearestVariableScope(),n=e.getNearestLexicalScope(),i=r.getNearestLexicalScope(),a=!1;if(n instanceof g.LoopScope){for(;i;){if(i==n){a=!0;break}i=i.getParent()}a&&n.pendingCreateEnv()}}}}if("arguments"==r){let e=t.getNearestVariableScope();null==e||e.setUseArgs(!0)}}addVariableDeclToScope(e,t,r,n,i){let a=new g.VarDecl(n,t);switch(i){case b.VarDeclarationKind.VAR:break;case b.VarDeclarationKind.LET:a=r.parent.kind==o.SyntaxKind.CatchClause?new g.CatchParameter(n,t):new g.LetDecl(n,t);break;case b.VarDeclarationKind.CONST:a=new g.ConstDecl(n,t);break;default:throw new Error("Wrong type of declaration")}return e.setDecls(a),a}getDeclarationNodeOfId(e){let t=e.parent;if(o.isVariableDeclaration(t)&&t.name==e)return t;if(o.isBindingElement(t)&&t.name==e){for(;t&&!o.isVariableDeclaration(t);)t=t.parent;return t||void 0}}recordImportInfo(e,t){if(!o.isStringLiteral(e.moduleSpecifier))throw new Error("moduleSpecifier must be a stringLiteral");let r;if(e.moduleSpecifier){let t=d.getTextOfIdentifierOrLiteral(e.moduleSpecifier);r=new f.ModuleStmt(e,t)}else r=new f.ModuleStmt(e);if(e.importClause){let n=e.importClause;if(n.name){let e=d.getTextOfIdentifierOrLiteral(n.name);t.setDecls(new g.ConstDecl(e,n.name)),r.addLocalName(e,"default"),r.addNodeMap(n.name,n.name)}if(n.namedBindings){let e=n.namedBindings;if(o.isNamespaceImport(e)){let n=d.getTextOfIdentifierOrLiteral(e.name);t.setDecls(new g.ConstDecl(n,e)),r.setNameSpace(n)}o.isNamedImports(e)&&e.elements.forEach((e=>{let n=d.getTextOfIdentifierOrLiteral(e.name),i=e.propertyName?d.getTextOfIdentifierOrLiteral(e.propertyName):n;t.setDecls(new g.ConstDecl(n,e)),r.addLocalName(n,i),r.addNodeMap(e.name,e.propertyName?e.propertyName:e.name)}))}}return this.importStmts.push(r),r}recordExportInfo(e){let t,r=o.getOriginalNode(e);if(r.moduleSpecifier){if(!o.isStringLiteral(r.moduleSpecifier))throw new Error("moduleSpecifier must be a stringLiteral");t=new f.ModuleStmt(r,d.getTextOfIdentifierOrLiteral(r.moduleSpecifier))}else t=new f.ModuleStmt(r);if(r.exportClause){t.setCopyFlag(!1);let e=r.exportClause;o.isNamespaceExport(e)&&t.setNameSpace(d.getTextOfIdentifierOrLiteral(e.name)),o.isNamedExports(e)&&e.elements.forEach((e=>{let n=d.getTextOfIdentifierOrLiteral(e.name);if("default"==n){if(this.defaultUsed)throw new u.DiagnosticError(r,u.DiagnosticCode.Duplicate_identifier_0,d.getSourceFileOfNode(r),[n]);this.defaultUsed=!0}let i=e.propertyName?d.getTextOfIdentifierOrLiteral(e.propertyName):n;t.addLocalName(n,i),t.addNodeMap(e.name,e.propertyName?e.propertyName:e.name)}))}return this.exportStmts.push(t),t}recordFuncDecl(e,t){this.recordFuncInfo(e);let r=e.name;if(!r)return;let n=d.getTextOfIdentifierOrLiteral(r),i=new g.FuncDecl(n,e),a=t,o=!0;t instanceof g.GlobalScope||t instanceof g.ModuleScope?this.collectHoistDecls(e,a,i):t instanceof g.LocalScope?(a=t.getNearestVariableScope(),a==this.getScopeOfNode(e.parent.parent)&&a instanceof g.FunctionScope&&(o=this.collectHoistDecls(e,a,i))):(0,p.LOGD)("Function declaration"," in function is collected in its body block"),o&&t.setDecls(i)}recordOtherFunc(e,t){if(this.recordFuncInfo(e),(o.isFunctionExpression(e)||o.isMethodDeclaration(e))&&e.name&&o.isIdentifier(e.name)){let r=d.getTextOfIdentifierOrLiteral(e.name),n=new g.FuncDecl(r,e);t.setDecls(n)}}recordFuncInfo(e){this.recordFunctionParameters(e),this.recordFuncName(e)}recordFuncName(e){let t="";if(o.isConstructorDeclaration(e)){let r=e.parent;t=(0,m.getClassNameForConstructor)(r)}else if((0,c.isAnonymousFunctionDefinition)(e)){let r=(0,_.findOuterNodeOfParenthesis)(e);if(o.isVariableDeclaration(r)){let e=r.name;o.isIdentifier(e)&&(t=d.getTextOfIdentifierOrLiteral(e))}else if(o.isBinaryExpression(r))r.operatorToken.kind==o.SyntaxKind.EqualsToken&&o.isIdentifier(r.left)&&(t=d.getTextOfIdentifierOrLiteral(r.left));else if(o.isPropertyAssignment(r)){let e=r.name;(o.isIdentifier(e)||o.isStringLiteral(e)||o.isNumericLiteral(e))&&(t=d.getTextOfIdentifierOrLiteral(e),"__proto__"==t&&(t=""))}}else o.isIdentifier(e.name)&&(t=d.getTextOfIdentifierOrLiteral(e.name));if(this.getScopeOfNode(e).setFuncName(t),""!=t){let e=this.funcNameMap;if(e.has(t)){let r=e.get(t);e.set(t,++r)}else e.set(t,1)}}recordFunctionParameters(e){let t=e.parameters,r=[],n=0,i=!0;t&&t.forEach((e=>{if((e.initializer||this.isRestParameter(e))&&(i=!1),i&&n++,o.isIdentifier(e.name)){let t=d.getTextOfIdentifierOrLiteral(e.name);r.push(new g.FunctionParameter(t,e.name))}else this.recordPatternParameter(e.name,r)})),this.getScopeOfNode(e).setParameterLength(n),this.setParametersMap(e,r)}recordPatternParameter(e,t){let r="";e.elements.forEach((e=>{if(!o.isOmittedExpression(e))if(o.isIdentifier(e.name))r=d.getTextOfIdentifierOrLiteral(e.name),t.push(new g.FunctionParameter(r,e.name));else{let r=e.name;this.recordPatternParameter(r,t)}}))}isRestParameter(e){return!!e.dotDotDotToken}collectHoistDecls(e,t,r){let n=r.name;if(t instanceof g.FunctionScope){let t=d.getContainingFunctionDeclaration(e),r=this.getParametersOfFunction(t);if(r)for(let e=0;e<r.length;e++)if(r[e].name==n)return!1}return!!((0,h.isGlobalIdentifier)(n)&&t instanceof g.GlobalScope)||(this.setHoistMap(t,r),!1)}setScopeMap(e,t){this.scopeMap.set(e,t)}getScopeMap(){return this.scopeMap}getScopeOfNode(e){return this.scopeMap.get(e)}getImportStmts(){return this.importStmts}getExportStmts(){return this.exportStmts}setHoistMap(e,t){if(!this.hoistMap.has(e))return void this.hoistMap.set(e,[t]);let r=this.hoistMap.get(e);for(let e=0;e<r.length;e++)if(t.name==r[e].name)return void(t instanceof g.FuncDecl&&(r[e]=t));r.push(t)}getHoistMap(){return this.hoistMap}getHoistDeclsOfScope(e){return this.hoistMap.get(e)}setParametersMap(e,t){this.parametersMap.set(e,t)}getParametersOfFunction(e){return this.parametersMap.get(e)}getFuncNameMap(){return this.funcNameMap}}},"./src/regAllocator.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegAlloc=void 0;const n=r("./src/base/util.ts"),i=r("./src/base/vregisterCache.ts"),a=r("./src/debuginfo.ts"),o=r("./src/irnodes.ts");class s{constructor(){this.newInsns=[],this.spills=[],this.vRegsId=0,this.usedVreg=[],this.tmpVreg=[],this.vRegsId=0}allocIndexForVreg(e){let t=this.getFreeVreg();e.num=t,this.usedVreg[t]={vreg:e,flag:!1}}findTmpVreg(e){let t=Math.min(256,this.usedVreg.length);for(let r=0;r<t;++r){let t=this.usedVreg[r];if(void 0!==t&&!t.flag){if(16===e&&t.vreg.num>=16)throw new Error("no available tmp vReg from A");return t.flag=!0,this.tmpVreg.push(t),t.vreg}}throw new Error("no available tmp vReg from B")}clearVregFlags(){for(let e of this.tmpVreg)e.flag=!1;this.tmpVreg=[]}allocSpill(){if(this.spills.length>0)return this.spills.pop();let e=new o.VReg;return this.allocIndexForVreg(e),e}freeSpill(e){this.spills.push(e)}getFreeVreg(){if(this.vRegsId>=65536)throw new Error("vreg has been running out");return this.vRegsId++}getNumOfInvalidVregs(e,t){let r=0;for(let n=0;n<e.length;++n)e[n]instanceof o.VReg&&e[n].num>=1<<t[n][1]&&r++;return r}markVregNotAvailableAsTmp(e){let t=e.num;this.usedVreg[t].flag=!0,this.tmpVreg.push(this.usedVreg[t])}doRealAdjustment(e,t,r,n){let i=[],s=[],c=[];for(let t=0;t<e.length;++t)e[t]instanceof o.VReg&&this.markVregNotAvailableAsTmp(e[t]);for(let r=0;r<e.length;++r)if(e[r]instanceof o.VReg){let n=e[r];if(n.num>=1<<t[r][1]){let a,l=this.allocSpill();c.push(l);try{a=this.findTmpVreg(1<<t[r][1])}catch(e){throw Error("no available tmp vReg")}i.push(new o.MovDyn(l,a)),e[r]=a,t[r][0]==o.OperandKind.SrcVReg?i.push(new o.MovDyn(a,n)):t[r][0]==o.OperandKind.DstVReg?s.push(new o.MovDyn(n,a)):t[r][0]==o.OperandKind.SrcDstVReg&&(i.push(new o.MovDyn(a,n)),s.push(new o.MovDyn(n,a))),s.push(new o.MovDyn(a,l))}}a.DebugInfo.copyDebugInfo(n[r],i),a.DebugInfo.copyDebugInfo(n[r],s),this.newInsns.push(...i,n[r],...s);for(let e=c.length-1;e>=0;--e)this.freeSpill(c[e]);this.clearVregFlags()}checkDynRangeInstruction(e,t){let r=e[t].operands,i=(0,n.getRangeStartVregPos)(e[t]),a=1<<e[t].getFormats()[0][i][1];if(r[1].num>=a)return!1;let o=r[i].num,s=i+1;for(;s<e[t].operands.length;++s){if(o+1!=r[s].num)throw Error("Warning: VReg sequence of DynRange is not continuous. Please adjust it now.");o++}return s==e[t].operands.length}adjustDynRangeInstruction(e,t){let r=[],i=[],s=[],c=e[t].operands,l=(0,n.getRangeStartVregPos)(e[t]),u=c.length-(0,n.getRangeStartVregPos)(e[t]),_=1<<e[t].getFormats()[0][l][1],d=this.findTmpVreg(_);for(let e=0;e<u;e++){let t=this.allocSpill();s.push(t),r.push(new o.MovDyn(t,this.usedVreg[d.num+e].vreg)),r.push(new o.MovDyn(this.usedVreg[d.num+e].vreg,c[e+l])),c[e+l]=this.usedVreg[d.num+e].vreg,i.push(new o.MovDyn(this.usedVreg[d.num+e].vreg,t))}a.DebugInfo.copyDebugInfo(e[t],r),a.DebugInfo.copyDebugInfo(e[t],i),this.newInsns.push(...r,e[t],...i);for(let e=s.length-1;e>=0;--e)this.freeSpill(s[e]);this.clearVregFlags()}adjustInstructionsIfNeeded(e){for(let t=0;t<e.length;++t){let r=e[t].operands,i=e[t].getFormats();if((0,n.isRangeInst)(e[t])){if(this.checkDynRangeInstruction(e,t)){this.newInsns.push(e[t]);continue}this.adjustDynRangeInstruction(e,t);continue}let a=r.length,o=i[0];for(let e=0;e<i.length;++e){let t=this.getNumOfInvalidVregs(r,i[e]);t<a&&(o=i[e],a=t)}a>0?this.doRealAdjustment(r,o,t,e):this.newInsns.push(e[t])}}getTotalRegsNum(){return this.vRegsId}run(e){let t=e.getInsns(),r=e.getLocals(),n=e.getTemps(),a=e.getVregisterCache(),s=e.getParametersCount();for(let e=0;e<r.length;++e)this.allocIndexForVreg(r[e]);for(let e=0;e<n.length;++e)this.allocIndexForVreg(n[e]);for(let e=i.CacheList.MIN;e<i.CacheList.MAX;++e){let t=a.getCache(e);t.isNeeded()&&this.allocIndexForVreg(t.getCache())}this.adjustInstructionsIfNeeded(t);for(let e=0;e<s;++e){let t=new o.VReg;this.allocIndexForVreg(t),this.newInsns.unshift(new o.MovDyn(r[e],t))}e.setInsns(this.newInsns)}}t.RegAlloc=class{run(e){let t=new s;t.run(e),e.setTotalRegsNum(t.getTotalRegsNum())}}},"./src/scope.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoopScope=t.LocalScope=t.FunctionScope=t.ModuleScope=t.GlobalScope=t.VariableScope=t.Scope=t.FunctionParameter=t.CatchParameter=t.ClassDecl=t.FuncDecl=t.ConstDecl=t.LetDecl=t.VarDecl=t.Decl=t.InitStatus=void 0;const n=r("./src/log.ts"),i=r("./src/variable.ts");var a;!function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.UNINITIALIZED=1]="UNINITIALIZED"}(a=t.InitStatus||(t.InitStatus={}));class o{constructor(e,t){this.name=e,this.node=t}}t.Decl=o,t.VarDecl=class extends o{constructor(e,t){super(e,t)}},t.LetDecl=class extends o{constructor(e,t){super(e,t)}},t.ConstDecl=class extends o{constructor(e,t){super(e,t)}},t.FuncDecl=class extends o{constructor(e,t){super(e,t)}},t.ClassDecl=class extends o{constructor(e,t){super(e,t)}},t.CatchParameter=class extends o{constructor(e,t){super(e,t)}},t.FunctionParameter=class extends o{constructor(e,t){super(e,t)}};class s{constructor(){this.debugTag="scope",this.globals=[],this.locals=[],this.name2variable=new Map,this.decls=[],this.parent=void 0,this.callOpt=new Set,this.isArgumentsOrRestargs=!1}getName2variable(){return this.name2variable}getScopeStartInsIdx(){return this.startInsIdx}setScopeStartInsIdx(e){this.startInsIdx=e}setScopeEndInsIdx(e){this.endInsIdx=e}getScopeEndInsIdx(){return this.endInsIdx}setParent(e){this.parent=e}getParent(){return this.parent}getRootScope(){let e=this,t=this.getParent();for(;null!=t;)e=t,t=t.getParent();return e}getNearestVariableScope(){let e=this;for(;e;){if(e instanceof c)return e;e=e.parent}}getNearestLexicalScope(){let e=this;for(;e;){if(e instanceof c||e instanceof p)return e;e=e.parent}}getNthVariableScope(e){let t=this,r=e;for(;t;){if(t instanceof c){if(0==r)return t;r--}t=t.parent}}findLocal(e){return this.name2variable.get(e)}find(e){let t=0,r=this;for(;r;){let i=null,a=t;if((r instanceof c||r instanceof p&&r.need2CreateLexEnv())&&t++,i=r.findLocal(e),i)return(0,n.LOGD)(this.debugTag,"scope.find ("+e+") :"),(0,n.LOGD)(void 0,i),{scope:r,level:a,v:i};r=r.getParent()}return(0,n.LOGD)(this.debugTag,"scope.find ("+e+") : undefined"),{scope:void 0,level:0,v:void 0}}findDeclPos(e){let t,r=this;for(;r;){if(r.hasDecl(e)){t=r;break}r=r.getParent()}return t}setDecls(e){this.decls.push(e)}hasDecl(e){let t=this.decls;for(let r=0;r<t.length;r++)if(t[r].name==e)return!0;return!1}getDecl(e){let t=this.decls;for(let r=0;r<t.length;r++)if(t[r].name==e)return t[r]}getDecls(){return this.decls}getCallOpt(){return this.callOpt}setCallOpt(e){if(this instanceof _)this.callOpt.add(e);else{let t=this.parent;for(;null!=t;){if(t instanceof _){t.callOpt.add(e);break}t=t.parent}}}setArgumentsOrRestargs(){this.isArgumentsOrRestargs=!0}getArgumentsOrRestargs(){return this.isArgumentsOrRestargs}}t.Scope=s;class c extends s{constructor(){super(...arguments),this.startLexIdx=0,this.needCreateLexEnv=!1,this.parameters=[],this.useArgs=!1,this.node=void 0,this.parentVariableScope=null,this.childVariableScope=[],this.lexVarInfo=new Map}getLexVarInfo(){return this.lexVarInfo}getBindingNode(){return this.node}setParentVariableScope(e){this.parentVariableScope=e}getParentVariableScope(){return this.parentVariableScope}getChildVariableScope(){return this.childVariableScope}addChildVariableScope(e){this.childVariableScope.push(e)}addParameter(e,t,r){(0,n.LOGD)(this.debugTag,"VariableScope.addArg("+e+"), kind("+t+")","argIdx("+r+")");let o=this.add(e,t,a.INITIALIZED);if(!(o instanceof i.LocalVariable))throw new Error("Error: argument must be local variable!");return this.parameters.push(o),o}addFuncName(e){let t=this.name2variable.get("4funcObj");this.name2variable.set(e,t)}need2CreateLexEnv(){return this.needCreateLexEnv}pendingCreateEnv(){this.needCreateLexEnv=!0}getNumLexEnv(){return this.startLexIdx}getParametersCount(){return this.parameters.length}getParameters(){return this.parameters}getLexVarIdx(){return this.needCreateLexEnv=!0,this.startLexIdx++}setLexVar(e,t){if(!e.isLexVar){let t=e.setLexVar(this);this.lexVarInfo.set(e.getName(),t)}(0,n.LOGD)(this.debugTag,"VariableScope.setLexVar("+e.idxLex+")");let r=t;for(;r&&r!=this;)(r instanceof c||r instanceof p&&r.need2CreateLexEnv())&&r.pendingCreateEnv(),r=r.getParent()}setUseArgs(e){this.useArgs=e}getUseArgs(){return this.useArgs}}t.VariableScope=c;class l extends c{constructor(e){super(),this.node=e||void 0}add(e,t,r){let a;return(0,n.LOGD)(this.debugTag,"globalscope.add ("+e+"), kind:"+t),t==i.VarDeclarationKind.NONE||t==i.VarDeclarationKind.VAR||t==i.VarDeclarationKind.FUNCTION?(a=new i.GlobalVariable(t,e),this.globals.push(a)):(a=new i.LocalVariable(t,e,r),this.locals.push(a)),this.name2variable.set(e,a),a}}t.GlobalScope=l;class u extends c{constructor(e){super(),this.node=e||void 0}add(e,t,r){let a;return(0,n.LOGD)(this.debugTag,"modulescope.add ("+e+"), kind:"+t),t==i.VarDeclarationKind.NONE?(a=new i.GlobalVariable(t,e),this.globals.push(a)):t==i.VarDeclarationKind.VAR||t==i.VarDeclarationKind.FUNCTION?(a=new i.LocalVariable(t,e),this.locals.push(a)):(a=new i.LocalVariable(t,e,r),this.locals.push(a)),this.name2variable.set(e,a),a}}t.ModuleScope=u;class _ extends c{constructor(e,t){super(),this.parameterLength=0,this.funcName="",this.parent=e||void 0,this.node=t||void 0}setParameterLength(e){this.parameterLength=e}getParameterLength(){return this.parameterLength}setFuncName(e){this.funcName=e}getFuncName(){return this.funcName}getParent(){return this.parent}add(e,t,r){let a;if((0,n.LOGD)(this.debugTag,"functionscope.add ("+e+"), kind:"+t),t==i.VarDeclarationKind.NONE){let r=this.getRootScope();if(!(r instanceof l||r instanceof u))throw a=void 0,new Error("Error: global variable must be defined in global scope");a=r.add(e,t)}else t==i.VarDeclarationKind.VAR||t==i.VarDeclarationKind.FUNCTION?(a=new i.LocalVariable(t,e),this.locals.push(a),this.name2variable.set(e,a)):(a=new i.LocalVariable(t,e,r),this.locals.push(a),this.name2variable.set(e,a));return a}}t.FunctionScope=_;class d extends s{constructor(e){super(),this.parent=e}setLexVar(e,t){this.getNearestLexicalScope().setLexVar(e,t)}add(e,t,r){let a;if((0,n.LOGD)(this.debugTag,"localscope.add ("+e+"), kind:"+t),t==i.VarDeclarationKind.NONE){let i=this.getRootScope();return i instanceof l||i instanceof u?i.add(e,t,r):void(0,n.LOGE)(void 0,"Error: the root of this scope is not global scope, it is wrong")}return t==i.VarDeclarationKind.VAR?a=this.getNearestVariableScope().add(e,t):(a=new i.LocalVariable(t,e,r),this.locals.push(a),this.name2variable.set(e,a)),a}}t.LocalScope=d;class p extends d{constructor(e){super(e),this.startLexIdx=0,this.needCreateLexEnv=!1,this.lexVarInfo=new Map}setLexVar(e,t){if(!e.isLexVar){let t=e.setLexVar(this);this.lexVarInfo.set(e.getName(),t)}(0,n.LOGD)(this.debugTag,"LoopScope.setLexVar("+e.idxLex+")");let r=t;for(;r&&r!=this;)(r instanceof c||r instanceof p&&r.need2CreateLexEnv())&&r.pendingCreateEnv(),r=r.getParent()}getLexVarInfo(){return this.lexVarInfo}need2CreateLexEnv(){return this.needCreateLexEnv}pendingCreateEnv(){this.needCreateLexEnv=!0}getLexVarIdx(){return this.needCreateLexEnv=!0,this.startLexIdx++}getNumLexEnv(){return this.startLexIdx}}t.LoopScope=p},"./src/statement/classStatement.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.checkValidUseSuperBeforeSuper=t.compileSuperProperty=t.shouldReturnThisForConstruct=t.setPrototypeAttributes=t.getClassNameForConstructor=t.defineClassMember=t.extractCtorOfClass=t.compileSuperCall=t.compileConstructor=t.compileReturnThis4Ctor=t.compileDefaultInitClassMembers=t.compileDefaultConstructor=t.AddCtor2Class=t.compileClassDeclaration=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/literal.ts"),c=r("./src/base/lreference.ts"),l=r("./src/base/properties.ts"),u=r("./src/base/util.ts"),_=r("./src/base/vregisterCache.ts"),d=r("./src/expression/arrayLiteralExpression.ts"),p=r("./src/expression/objectLiteralExpression.ts"),f=r("./src/expression/parenthesizedExpression.ts"),g=a(r("./src/jshelpers.js")),m=r("./src/pandagen.ts"),y=r("./src/scope.ts");function h(e,t,r){let n=e.getPandaGen(),i=n.getTemp(),a=n.getTemp(),s=!1;o.isMethodDeclaration(t.getValue())?s=C(e,r,i,a,t.getValue()):(e.compileExpression(t.getValue()),s=A(e,t.getValue().parent,r,i,a)),n.storeOwnProperty(t.getValue().parent,s?i:r,t.getName()),n.freeTemps(i,a),t.setCompiled()}function v(e,t,r){let n=e.getPandaGen(),i=t.parent.members;for(let t=0;t<i.length;t++){let r=i[t];if(o.isPropertyDeclaration(r)&&!g.hasStaticModifier(r)){let t=c.LReference.generateLReference(e,r.name,!0);r.initializer&&e.compileExpression(r.initializer),t.setValue()}}if(r)return;let a=n.getTemp();e.getThis(t,a),n.loadAccumulator(t,a),N(e,t),n.return(t),n.freeTemps(a)}function b(e,t,r,n){let i=e.getPandaGen(),a=e.getCurrentScope(),{scope:o,level:s,v:c}=a.find("this");if(e.setCallOpt(o,"this"),e.setCallOpt(o,"4newTarget"),o&&s>=0){let e=a,t=!1;for(;e!=o;)e instanceof y.VariableScope&&(t=!0),e=e.getParent();t&&o.setLexVar(c,a),t&&a instanceof y.FunctionScope&&a.setCallOpt("0newTarget")}if(n){let r=i.getTemp();(0,d.createArrayFromElements)(t,e,t.arguments,r),x(t,e),i.superCallSpread(t,r),i.freeTemps(r)}else{let n=r.length,a=n?r[0]:(0,_.getVregisterCache)(i,_.CacheList.undefined);x(t,e),i.superCall(t,n,a)}let l=i.getTemp();i.storeAccumulator(t,l),N(e,t),i.loadAccumulator(t,l),i.freeTemps(l),e.setThis(t)}function x(e,t){let r=t.getRecorder(),n=t.getPandaGen(),i=g.getContainingFunctionDeclaration(e);if(i&&r.getScopeOfNode(i))if(o.isConstructorDeclaration(i))n.loadAccumulator(e,(0,_.getVregisterCache)(n,_.CacheList.FUNC));else{let t=g.getContainingFunctionDeclaration(i),a=r.getScopeOfNode(t);a.pendingCreateEnv();let s=1;for(;!o.isConstructorDeclaration(t);)t=g.getContainingFunctionDeclaration(t),a.pendingCreateEnv(),s++;let c=a.findLocal("4funcObj");a.setLexVar(c,a);let l=c.idxLex;n.loadLexicalVar(e,s,l)}}function D(e){let t=e.members;for(let e=0;e<t.length;e++){let r=t[e];if(o.isConstructorDeclaration(r))return r}}function S(e,t,r,n,i){let a=!1;if(r==l.PropertyKind.Computed||r==l.PropertyKind.Spread){let i=new l.Property(r,e);i.setValue(t),g.hasStaticModifier(t)?(a=!0,n.push(i)):n.unshift(i)}else{let s=(0,l.propertyKeyAsString)(e);if(!function(e,t,r,n){if(e.has(t)){let i=e.get(t);if(r==l.PropertyKind.Accessor){if(o.isGetAccessorDeclaration(n)){if(!k(i.getGetter(),n))return!1;i.setGetter(n)}else if(o.isSetAccessorDeclaration(n)){if(!k(i.getSetter(),n))return!1;i.setSetter(n)}}else{if(!k(i.getValue(),n))return!1;i.setValue(n),i.setKind(r)}return!0}return!1}(i,s,r,t)){let c=new l.Property(r,e);r==l.PropertyKind.Accessor?o.isGetAccessorDeclaration(t)?c.setGetter(t):o.isSetAccessorDeclaration(t)&&c.setSetter(t):c.setValue(t),g.hasStaticModifier(t)?(a=!0,n.push(c)):n.unshift(c),i.set(s,c)}}return a}function E(e,t,r,n){let i=e.getPandaGen();switch(t.getValue().kind){case o.SyntaxKind.PropertyDeclaration:{let a=t.getValue().initializer;a&&(e.compileExpression(a),i.storeOwnProperty(t.getValue(),r,n));break}case o.SyntaxKind.MethodDeclaration:{let a=i.getTemp(),o=i.getTemp(),s=C(e,r,a,o,t.getValue());i.storeOwnProperty(t.getValue(),s?a:r,n,!0),i.freeTemps(a,o);break}case o.SyntaxKind.GetAccessor:{let a=i.getTemp(),o=i.getTemp(),s=t.getValue(),c=C(e,r,o,a,s);i.defineGetterSetterByValue(s,c?o:r,n,a,(0,_.getVregisterCache)(i,_.CacheList.undefined),!0),i.freeTemps(a,o);break}case o.SyntaxKind.SetAccessor:{let a=i.getTemp(),o=t.getValue(),s=i.getTemp(),c=C(e,r,s,a,o);i.defineGetterSetterByValue(o,c?s:r,n,(0,_.getVregisterCache)(i,_.CacheList.undefined),a,!0),i.freeTemps(a,s);break}}i.freeTemps(n)}function T(e,t,r,n){let i,a=e.getTemp(),s=e.getTemp(),c=e.getTemp(),l=e.getTemp(),u=!1;if(void 0!==n.getGetter()){let e=n.getGetter();i=e,u=C(t,r,l,a,e)}if(void 0!==n.getSetter()){let e=n.getSetter();i=e,u=C(t,r,l,s,e)}e.loadAccumulatorString(i,String(n.getName())),e.storeAccumulator(i,c),void 0!==n.getGetter()&&void 0!==n.getSetter()?e.defineGetterSetterByValue(i,u?l:r,c,a,s,!1):o.isGetAccessorDeclaration(i)?e.defineGetterSetterByValue(i,u?l:r,c,a,(0,_.getVregisterCache)(e,_.CacheList.undefined),!1):e.defineGetterSetterByValue(i,u?l:r,c,(0,_.getVregisterCache)(e,_.CacheList.undefined),s,!1),e.freeTemps(a,s,c,l)}function C(e,t,r,n,i){let a=e.getPandaGen();return g.hasStaticModifier(i)?((0,p.createMethodOrAccessor)(a,e,t,i),a.storeAccumulator(i,n),!1):(a.storeAccumulator(i,n),a.loadObjProperty(i,t,"prototype"),a.storeAccumulator(i,r),a.loadAccumulator(i,n),(0,p.createMethodOrAccessor)(a,e,r,i),a.storeAccumulator(i,n),!0)}function k(e,t){if(e&&t){let r=e.modifiers,n=t.modifiers;if(r&&n)return r.length==n.length&&r.every((function(e,t){return e===n[t]}));if(!r&&!n)return!0}else if(!e&&!t)return!0;return!1}function A(e,t,r,n,i){let a=e.getPandaGen();return a.storeAccumulator(t,i),!g.hasStaticModifier(t)&&(a.loadObjProperty(t,r,"prototype"),a.storeAccumulator(t,n),a.loadAccumulator(t,i),!0)}function N(e,t){let r=e.getPandaGen(),n=g.findAncestor(t,o.isConstructorDeclaration);if(!n||!o.isClassLike(n.parent)||!g.getClassExtendsHeritageElement(n.parent))return;let i=r.getTemp();e.getThis(t,i),r.loadAccumulator(t,i),r.freeTemps(i),(g.isSuperProperty(t)||o.isConstructorDeclaration(t)||t.kind==o.SyntaxKind.ThisKeyword||t.kind==o.SyntaxKind.ReturnStatement)&&r.throwIfSuperNotCorrectCall(n,0),g.isSuperCall(t)&&r.throwIfSuperNotCorrectCall(n,1)}t.compileClassDeclaration=function(e,t){e.pushScope(t);let r=e.getPandaGen(),n=[];n=function(e,t,r){let n,i=[],a=0;e.members.forEach((e=>{switch(e.kind){case o.SyntaxKind.Constructor:n=e;break;case o.SyntaxKind.PropertyDeclaration:if(!g.hasStaticModifier(e)){t.push(e);break}if(o.isComputedPropertyName(e.name))S(e.name,e,l.PropertyKind.Computed,i,r)&&a++;else{let t=(0,l.getPropName)(e.name),n=e.initializer;n?(0,l.isConstantExpr)(n)?S(t,n,l.PropertyKind.Constant,i,r)&&a++:S(t,n,l.PropertyKind.Variable,i,r)&&a++:(n=o.createIdentifier("undefined"),S(t,n,l.PropertyKind.Constant,i,r)&&a++)}break;case o.SyntaxKind.MethodDeclaration:{let t=(0,l.getPropName)(e.name);"string"==typeof t||"number"==typeof t?S(t,e,l.PropertyKind.Variable,i,r)&&a++:S(t,e,l.PropertyKind.Computed,i,r)&&a++;break}case o.SyntaxKind.GetAccessor:case o.SyntaxKind.SetAccessor:{let t=(0,l.getPropName)(e.name);"string"==typeof t||"number"==typeof t?S(t,e,l.PropertyKind.Accessor,i,r)&&a++:S(t,e,l.PropertyKind.Computed,i,r)&&a++;break}case o.SyntaxKind.SemicolonClassElement:break;default:throw new Error("Unreachable Kind")}}));let s=i.slice(i.length-a);return i=i.slice(0,i.length-a),i=i.reverse(),i.push(...s),n&&S("constructor",n,l.PropertyKind.Variable,i,r),i}(t,[],new Map);let i=r.getTemp(),a=function(e,t){let r=e.getPandaGen(),n=r.getTemp();if(t.heritageClauses&&t.heritageClauses.length){let i=t.heritageClauses[0];if(i.types.length){let t=i.types[0];return e.compileExpression(t.expression),r.storeAccumulator(t.expression,n),n}}return r.moveVreg(t,n,(0,_.getVregisterCache)(r,_.CacheList.HOLE)),n}(e,t),c=new s.LiteralBuffer,d=0,p=0,f=null!=D(t);for(;d<n.length;d++){let t=n[d],i=r.getTemp();if(t.getKind()==l.PropertyKind.Constant){p++;let n=new s.Literal(s.LiteralTag.STRING,String(t.getName()));c.addLiterals(n),e.compileExpression(t.getValue()),r.storeAccumulator(t.getValue(),i),t.setCompiled()}if(t.getKind()==l.PropertyKind.Variable){if(t.getValue().kind!=o.SyntaxKind.Constructor){g.hasStaticModifier(t.getValue())&&p++;let e=new s.Literal(s.LiteralTag.STRING,String(t.getName()));c.addLiterals(e)}if(o.isMethodDeclaration(t.getValue())){let r=new s.Literal(s.LiteralTag.METHOD,e.getCompilerDriver().getFuncInternalName(t.getValue(),e.getRecorder())),n=new s.Literal(s.LiteralTag.METHODAFFILIATE,(0,u.getParamLengthOfFunc)(t.getValue()));c.addLiterals(r,n)}else if(!o.isConstructorDeclaration(t.getValue())){let n=new s.Literal(s.LiteralTag.NULLVALUE,null);c.addLiterals(n),e.compileExpression(t.getValue()),r.storeAccumulator(t.getValue(),i)}t.setCompiled()}if(r.freeTemps(i),t.getKind()==l.PropertyKind.Computed||t.getKind()==l.PropertyKind.Accessor)break}let v=d-p,b=new s.Literal(s.LiteralTag.INTEGER,f?v-1:v);if(c.addLiterals(b),function(e,t,r,n){let i=m.PandaGen.getLiteralArrayBuffer();i.push(t);let a=e.getRecorder().getCtorOfClass(r),o=e.getCompilerDriver().getInternalNameForCtor(r,a),s=e.getPandaGen(),c=(0,u.getParameterLength4Ctor)(r),l=i.length-1;s.defineClassWithBuffer(r,o,l,c,n[0]),s.storeAccumulator(r,n[1])}(e,c,t,[a,i]),function(e,t,r){let n=e.getPandaGen();for(let i=0;i<t.length;i++){let a=t[i];if(!a.isCompiled())switch(a.getKind()){case l.PropertyKind.Constant:e.compileExpression(a.getValue()),n.storeOwnProperty(a.getValue().parent,r,a.getName());break;case l.PropertyKind.Variable:h(e,a,r);break;case l.PropertyKind.Computed:let t=n.getTemp();e.compileExpression(a.getName().expression),n.storeAccumulator(a.getValue(),t),E(e,a,r,t);break;case l.PropertyKind.Accessor:T(n,e,r,a);break;default:throw new Error("Unreachable PropertyKind for NullValue setting")}}}(e,n,i),r.loadAccumulator(t,i),t.name){let n=g.getTextOfIdentifierOrLiteral(t.name),i=e.getRecorder().getScopeOfNode(t);if(!o.isClassExpression(t)&&i.getParent()instanceof y.GlobalScope)r.stClassToGlobalRecord(t,n);else{let e=i.find(n);e.v.initialize(),r.storeAccToLexEnv(t,e.scope,e.level,e.v,!0)}}r.freeTemps(i,a),e.popScope()},t.AddCtor2Class=function(e,t,r){let n;if(g.getClassExtendsHeritageElement(t)){let e=o.factory.createParameterDeclaration(void 0,void 0,o.factory.createToken(o.SyntaxKind.DotDotDotToken),"args");n=o.factory.createConstructorDeclaration(void 0,void 0,[e],void 0)}else n=o.factory.createConstructorDeclaration(void 0,void 0,[],void 0);n=g.setParent(n,t),n=o.setTextRange(n,t);let i=o.factory.createBlock([]);i=g.setParent(i,n),i=o.setTextRange(i,t),n=o.factory.updateConstructorDeclaration(n,void 0,void 0,n.parameters,i),n=g.setParent(n,t),n=o.setTextRange(n,t);let a=e.getScopeOfNode(t),s=e.buildVariableScope(r,n);s.setParent(a);let c=new y.LocalScope(s);c.setParent(s),e.setScopeMap(n,s),e.setScopeMap(n.body,c),e.recordFuncName(n),e.recordFunctionParameters(n),e.setCtorOfClass(t,n)},t.compileDefaultConstructor=function(e,t){let r=o.factory.createCallExpression(o.factory.createSuper(),void 0,[o.factory.createSpreadElement(o.factory.createIdentifier("args"))]);r=g.setParent(r,t),r=o.setTextRange(r,t),b(e,r,[],!0),v(e,t,!1)},t.compileDefaultInitClassMembers=function(e,t){let r=e.getPandaGen(),n=t.parent.members;for(let i=0;i<n.length;i++){let a=n[i];if(o.isPropertyDeclaration(a)&&!g.hasStaticModifier(a)){if(!a.initializer)continue;let n="",i=r.getTemp();switch(e.getThis(t,i),e.compileExpression(a.initializer),a.name.kind){case o.SyntaxKind.Identifier:case o.SyntaxKind.StringLiteral:case o.SyntaxKind.NumericLiteral:n=g.getTextOfIdentifierOrLiteral(a.name),r.storeObjProperty(t,i,n);break;case o.SyntaxKind.ComputedPropertyName:{let o=r.getTemp();r.storeAccumulator(t,o),n=r.getTemp(),e.compileExpression(a.name.expression),r.storeAccumulator(t,n),r.loadAccumulator(t,o),r.storeObjProperty(t,i,n),r.freeTemps(o,n);break}default:throw new Error("Private Identifier has not been supported")}r.freeTemps(i)}}},t.compileReturnThis4Ctor=function(e,t,r){let n=e.getPandaGen();if(r)return;let i=n.getTemp();e.getThis(t,i),n.loadAccumulator(t,i),N(e,t),n.return(t),n.freeTemps(i)},t.compileConstructor=v,t.compileSuperCall=b,t.extractCtorOfClass=D,t.defineClassMember=S,t.getClassNameForConstructor=function(e){let t="";if(e.name)t=g.getTextOfIdentifierOrLiteral(e.name);else{let r=(0,f.findOuterNodeOfParenthesis)(e);if(o.isVariableDeclaration(r)){let e=r.name;o.isIdentifier(e)&&(t=g.getTextOfIdentifierOrLiteral(e))}else if(o.isBinaryExpression(r)){let e=r.left;r.operatorToken.kind==o.SyntaxKind.EqualsToken&&o.isIdentifier(e)&&(t=g.getTextOfIdentifierOrLiteral(e))}else if(o.isPropertyAssignment(r)){let e=r.name;(o.isIdentifier(e)||o.isStringLiteral(e)||o.isNumericLiteral(e))&&(t=g.getTextOfIdentifierOrLiteral(e))}}return t},t.setPrototypeAttributes=A,t.shouldReturnThisForConstruct=function(e){let t=g.getContainingFunction(e),r=e.expression;return!(!t||!o.isConstructorDeclaration(t)||r&&!(0,u.isUndefinedIdentifier)(r)&&r.kind!=o.SyntaxKind.ThisKeyword)},t.compileSuperProperty=function(e,t,r,n){N(e,t);let i=e.getPandaGen();e.getThis(t,r),i.loadSuperProperty(t,r,n)},t.checkValidUseSuperBeforeSuper=N},"./src/statement/forOfStatement.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIteratorRecord=t.compileForOfStatement=t.IteratorRecord=t.IteratorType=void 0;const n=r("./src/base/vregisterCache.ts"),i=r("./src/statement/labelTarget.ts"),a=r("./src/irnodes.ts"),o=r("./src/statement/tryStatement.ts");var s;!function(e){e[e.Normal=0]="Normal",e[e.Async=1]="Async"}(s=t.IteratorType||(t.IteratorType={}));class c{constructor(e,t,r=s.Normal){this.type=r,this.object=e,this.nextMethod=t}getType(){return this.type}getObject(){return this.object}getNextMethod(){return this.nextMethod}}function l(e,t,r,n,i){return function(e,t,r){if(r==s.Async)throw new Error("Async Iterator haven't been supported");e.getIterator(t)}(e,t,i),e.storeAccumulator(t,n),e.loadObjProperty(t,n,"next"),e.storeAccumulator(t,r),new c(n,r,i)}t.IteratorRecord=c,t.compileForOfStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),c=new a.Label,u=new a.Label,_=r.getTemp(),d=r.getTemp(),p=r.getTemp(),f=t.getRecorder().getScopeOfNode(e).need2CreateLexEnv(),g=r.getTemp(),m=s.Normal;t.compileExpression(e.expression);let y=l(r,e,d,p,m);r.loadAccumulator(e,(0,n.getVregisterCache)(r,n.CacheList.False)),r.storeAccumulator(e,_);let h=new i.LabelTarget(e,u,c,f);i.LabelTarget.pushLabelTarget(h),i.LabelTarget.updateName2LabelTarget(e.parent,h);let v=new o.TryBuilderWithForOf(t,r,e,_,y,h,f,f?g:void 0);t.constructTry(e,v,c),r.label(e,u),i.LabelTarget.popLabelTarget(),f&&(r.popLexicalEnv(e),t.popEnv()),r.freeTemps(_,d,p,g),t.popScope()},t.getIteratorRecord=l},"./src/statement/labelTarget.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.LabelTarget=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/diagnostic.ts"),l=r("./src/statement/tryStatement.ts");class u{constructor(e,t,r,n=!1){this.node=e,this.breakTargetLabel=t,this.continueTargetLabel=r,this.hasLoopEnv=n,this.loopEnvLevel=n?1:0,this.tryStatement=l.TryStatement.getCurrentTryStatement()}getBreakTargetLabel(){return this.breakTargetLabel}getContinueTargetLabel(){return this.continueTargetLabel}getLoopEnvLevel(){return this.loopEnvLevel}getTryStatement(){return this.tryStatement}getCorrespondingNode(){return this.node}increaseLoopEnvLevel(){this.loopEnvLevel+=1}decreaseLoopEnvLevel(){this.loopEnvLevel-=1}static isLabelTargetsEmpty(){return 0==u.labelTargetStack.length}static getCloseLabelTarget(){if(!u.isLabelTargetsEmpty())return u.labelTargetStack[u.labelTargetStack.length-1]}static getCloseContinueTarget(){let e=u.getCloseLabelTarget();if(e)return e.continueTargetLabel}static pushLabelTarget(e){e.hasLoopEnv&&(l.TryStatement.getCurrentTryStatement()&&l.TryStatement.getCurrentTryStatement().increaseLoopEnvLevel(),u.labelTargetStack.forEach((e=>e.increaseLoopEnvLevel()))),u.labelTargetStack.push(e)}static popLabelTarget(){!u.isLabelTargetsEmpty()&&u.labelTargetStack.pop().hasLoopEnv&&(l.TryStatement.getCurrentTryStatement()&&l.TryStatement.getCurrentTryStatement().decreaseLoopEnvLevel(),u.labelTargetStack.forEach((e=>e.decreaseLoopEnvLevel())))}static updateName2LabelTarget(e,t){for(;e.kind==o.SyntaxKind.LabeledStatement;){let r=e,n=s.getTextOfIdentifierOrLiteral(r.label);if(u.name2LabelTarget.has(n))throw new c.DiagnosticError(e,c.DiagnosticCode.Duplicate_label_0);u.name2LabelTarget.set(n,t),e=e.parent}}static deleteName2LabelTarget(e){u.name2LabelTarget.delete(e)}static getLabelTarget(e){let t;if(e.label){let r=s.getTextOfIdentifierOrLiteral(e.label);t=u.name2LabelTarget.get(r)}else t=u.getCloseLabelTarget();return t}}t.LabelTarget=u,u.name2LabelTarget=new Map,u.labelTargetStack=[]},"./src/statement/loopStatement.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileForInStatement=t.compileForStatement=t.compileWhileStatement=t.compileDoStatement=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/lreference.ts"),c=r("./src/base/vregisterCache.ts"),l=r("./src/irnodes.ts"),u=r("./src/statement/labelTarget.ts");t.compileDoStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),n=t.getRecorder().getScopeOfNode(e),i=!!n.need2CreateLexEnv(),a=new l.Label,o=new l.Label,s=new l.Label,c=new u.LabelTarget(e,o,s,i);u.LabelTarget.pushLabelTarget(c),u.LabelTarget.updateName2LabelTarget(e.parent,c);let _=r.getTemp();r.label(e,a),i&&(r.createLexEnv(e,_,n),t.pushEnv(_)),t.compileStatement(e.statement),r.label(e,s),t.compileCondition(e.expression,o),i&&r.popLexicalEnv(e),r.branch(e,a),r.label(e,o),i&&(r.popLexicalEnv(e),t.popEnv()),u.LabelTarget.popLabelTarget(),r.freeTemps(_),t.popScope()},t.compileWhileStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),n=t.getRecorder().getScopeOfNode(e),i=!!n.need2CreateLexEnv(),a=new l.Label,o=new l.Label,s=new u.LabelTarget(e,o,a,i);u.LabelTarget.pushLabelTarget(s),u.LabelTarget.updateName2LabelTarget(e.parent,s);let c=r.getTemp();r.label(e,a),i&&(r.createLexEnv(e,c,n),t.pushEnv(c)),t.compileCondition(e.expression,o),t.compileStatement(e.statement),i&&r.popLexicalEnv(e),r.branch(e,a),r.label(e,o),i&&(r.popLexicalEnv(e),t.popEnv()),u.LabelTarget.popLabelTarget(),r.freeTemps(c),t.popScope()},t.compileForStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),n=t.getRecorder().getScopeOfNode(e),i=n.need2CreateLexEnv(),a=r.getTemp(),s=!1;i&&e.initializer&&o.isVariableDeclarationList(e.initializer)&&n.getName2variable().forEach((e=>{e.isLetOrConst()&&e.isLexVar&&(s=!0)}));let c=new l.Label,_=new l.Label,d=new l.Label,p=new u.LabelTarget(e,_,d,i);if(u.LabelTarget.pushLabelTarget(p),u.LabelTarget.updateName2LabelTarget(e.parent,p),e.initializer&&o.isVariableDeclarationList(e.initializer)&&s&&i){r.createLexEnv(e,a,n),t.pushEnv(a),e.initializer.declarations.forEach((e=>t.compileVariableDeclaration(e))),r.label(e,c),e.condition&&t.compileCondition(e.condition,_),t.compileStatement(e.statement),r.label(e,d);let i=new Map,o=new Array;n.getName2variable().forEach(((a,s)=>{if(a.isLexVar&&a.isLetOrConst()){let a=r.getTemp();o.push(a);let c=n.find(s);i.set(c,a),t.loadTarget(e,c),r.storeAccumulator(e,a)}})),r.popLexicalEnv(e),r.createLexEnv(e,a,n),i.forEach(((t,n)=>{let i=n.v.idxLex;r.storeLexicalVar(e,n.level,i,t)})),e.incrementor&&t.compileExpression(e.incrementor),r.branch(e,c),r.label(e,_),r.popLexicalEnv(e),t.popEnv(),r.freeTemps(...o)}else e.initializer&&(o.isVariableDeclarationList(e.initializer)?e.initializer.declarations.forEach((e=>t.compileVariableDeclaration(e))):t.compileExpression(e.initializer)),r.label(e,c),i&&(r.createLexEnv(e,a,n),t.pushEnv(a)),e.condition&&t.compileCondition(e.condition,_),t.compileStatement(e.statement),r.label(e,d),e.incrementor&&t.compileExpression(e.incrementor),i&&r.popLexicalEnv(e),r.branch(e,c),r.label(e,_),i&&(r.popLexicalEnv(e),t.popEnv());u.LabelTarget.popLabelTarget(),r.freeTemps(a),t.popScope()},t.compileForInStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),n=t.getRecorder().getScopeOfNode(e),i=!!n.need2CreateLexEnv(),a=r.getTemp(),_=new l.Label,d=new l.Label,p=new u.LabelTarget(e,d,_,i);u.LabelTarget.pushLabelTarget(p),u.LabelTarget.updateName2LabelTarget(e.parent,p);let f=r.getTemp(),g=r.getTemp();t.compileExpression(e.expression),r.getPropIterator(e),r.storeAccumulator(e,f),r.label(e,_),i&&(r.createLexEnv(e,a,n),t.pushEnv(a)),r.getNextPropName(e,f),r.storeAccumulator(e,g),r.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,c.getVregisterCache)(r,c.CacheList.undefined),d);let m=s.LReference.generateLReference(t,e.initializer,!1);r.loadAccumulator(e,g),m.setValue(),t.compileStatement(e.statement),i&&r.popLexicalEnv(e),r.branch(e,_),r.label(e,d),i&&(r.popLexicalEnv(e),t.popEnv()),r.freeTemps(a,f,g),u.LabelTarget.popLabelTarget(),t.popScope()}},"./src/statement/returnStatement.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileReturnStatement=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/vregisterCache.ts"),c=r("./src/compiler.ts"),l=r("./src/function/asyncFunctionBuilder.ts"),u=r("./src/irnodes.ts"),_=a(r("./src/jshelpers.js")),d=r("./src/statement/classStatement.ts");function p(e,t,r){let n=e.expression,i=r.getPandaGen();n?r.compileExpression(n):i.loadAccumulator(e,(0,s.getVregisterCache)(i,s.CacheList.undefined)),i.storeAccumulator(e,t),r.compileFinallyBeforeCFC(void 0,c.ControlFlowChange.Break,void 0),i.loadAccumulator(e,t);let a=r.getFuncBuilder();if(a instanceof l.AsyncFunctionBuilder){let t=i.getTemp();i.storeAccumulator(e,t),a.resolve(e,t),i.freeTemps(t)}i.return(e)}t.compileReturnStatement=function(e,t){let r=t.getPandaGen(),n=r.getTemp();!function(e){let t=_.getContainingFunctionDeclaration(e);return!(!t||!o.isConstructorDeclaration(t))&&!!(t&&t.parent&&t.parent.heritageClauses)}(e)?p(e,n,t):function(e,t,r){let n=r.getPandaGen(),i=e.expression,a=n.getTemp();if(i){if(o.isCallExpression(i)&&i.expression.kind==o.SyntaxKind.SuperKeyword)return p(e,t,r),void n.freeTemps(a);i.kind==o.SyntaxKind.ThisKeyword?n.moveVreg(e,a,(0,s.getVregisterCache)(n,s.CacheList.True)):(r.compileExpression(i),n.binary(e,o.SyntaxKind.EqualsEqualsEqualsToken,(0,s.getVregisterCache)(n,s.CacheList.undefined)),n.storeAccumulator(e,a))}else n.moveVreg(e,a,(0,s.getVregisterCache)(n,s.CacheList.True));let l=new u.Label,_=new u.Label;n.loadAccumulator(e,a),n.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,s.getVregisterCache)(n,s.CacheList.False),l);let f=n.getTemp();r.getThis(e,f),n.loadAccumulator(e,f),n.branch(e,_),n.label(e,l),i?r.compileExpression(i):n.loadAccumulator(e,(0,s.getVregisterCache)(n,s.CacheList.undefined)),n.label(e,_),n.storeAccumulator(e,t),r.compileFinallyBeforeCFC(void 0,c.ControlFlowChange.Break,void 0);let g=new u.Label,m=new u.Label;n.loadAccumulator(e,a),n.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,s.getVregisterCache)(n,s.CacheList.False),m),(0,d.checkValidUseSuperBeforeSuper)(r,e),n.branch(e,g),n.label(e,m),n.loadAccumulator(e,t),n.label(e,g),n.return(e),n.freeTemps(a,f)}(e,n,t),r.freeTemps(n)}},"./src/statement/switchStatement.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileSwitchStatement=t.SwitchBase=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/irnodes.ts"),c=r("./src/diagnostic.ts"),l=r("./src/statement/labelTarget.ts");class u{constructor(e,t,r,n){this.caseLabels=[],this.stmt=e,this.compiler=t,this.pandaGen=t.getPandaGen(),this.switchEndLabel=n;for(let e=0;e<r;e++){let e=new s.Label;this.caseLabels.push(e)}let i=new l.LabelTarget(e,n,l.LabelTarget.getCloseContinueTarget());l.LabelTarget.pushLabelTarget(i),l.LabelTarget.updateName2LabelTarget(e.parent,i)}setCasePosition(e){let t=this.stmt.caseBlock.clauses[e];this.pandaGen.label(t,this.caseLabels[e])}compileTagOfSwitch(e){this.compiler.compileExpression(this.stmt.expression),this.pandaGen.storeAccumulator(this.stmt.expression,e)}compileCaseStatements(e){this.stmt.caseBlock.clauses[e].statements.forEach((e=>{this.compiler.compileStatement(e)}))}JumpIfCase(e,t){let r=this.stmt,n=this.pandaGen,i=r.caseBlock.clauses[t];this.compiler.compileExpression(i.expression),n.condition(i,o.SyntaxKind.ExclamationEqualsEqualsToken,e,this.caseLabels[t])}JumpToDefault(e){let t=this.stmt.caseBlock.clauses[e];this.pandaGen.branch(t,this.caseLabels[e])}checkDefaultNum(e){if(e>1)throw new c.DiagnosticError(this.stmt,c.DiagnosticCode.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement)}break(){this.pandaGen.branch(this.stmt,this.switchEndLabel)}end(){this.pandaGen.label(this.stmt,this.switchEndLabel)}}t.SwitchBase=u,t.compileSwitchStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),n=e.caseBlock.clauses.length,i=new s.Label,a=new u(e,t,n,i),c=r.getTemp();a.compileTagOfSwitch(c);let _=e.caseBlock.clauses,d=0,p=0;for(let e=0;e<_.length;e++){let t=_[e];o.isDefaultClause(t)?(d=e,p++):a.JumpIfCase(c,e)}a.checkDefaultNum(p),d>0?a.JumpToDefault(d):a.break();for(let e=0;e<_.length;e++)a.setCasePosition(e),a.compileCaseStatements(e);a.end(),r.freeTemps(c),l.LabelTarget.popLabelTarget(),t.popScope()}},"./src/statement/tryStatement.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.generateCatchTables=t.updateCatchTables=t.TryBuilderWithForOf=t.TryBuilder=t.TryBuilderBase=t.TryStatement=t.CatchTable=t.LabelPair=t.transformTryCatchFinally=void 0;const o=r("./src/compiler.ts"),s=r("./src/irnodes.ts"),c=a(r("./node_modules/typescript/lib/typescript.js")),l=r("./src/scope.ts"),u=r("./src/base/lreference.ts"),_=r("./src/base/vregisterCache.ts"),d=a(r("./src/jshelpers.js"));t.transformTryCatchFinally=function(e,t){let r=t.getScopeOfNode(e),n=new l.LocalScope(r),i=new l.LocalScope(n);t.getScopeOfNode(e.tryBlock).setParent(i),t.getScopeOfNode(e.catchClause).setParent(i);const a=c.factory.createTryStatement(e.tryBlock,e.catchClause,void 0);t.setScopeMap(a,i);const o=[a];o[0]=d.setParent(o[0],e),o[0]=c.setTextRange(o[0],e.tryBlock);let s=c.factory.updateBlock(e.tryBlock,o);return e=c.factory.updateTryStatement(e,s,void 0,e.finallyBlock),t.setScopeMap(e.tryBlock,n),e};class p{constructor(e,t){this.beginLabel=e,this.endLabel=t}getBeginLabel(){return this.beginLabel}getEndLabel(){return this.endLabel}}t.LabelPair=p,t.CatchTable=class{constructor(e,t,r){this.labelPairs=[],this.catchBeginLabel=t,this.labelPairs.push(r),this.depth=f.getcurrentTryStatementDepth(),e.getCatchMap().set(t,this)}getLabelPairs(){return this.labelPairs}getCatchBeginLabel(){return this.catchBeginLabel}getDepth(){return this.depth}splitLabelPair(e){let t=this.labelPairs.pop();t&&(this.labelPairs.push(new p(t.getBeginLabel(),e.getBeginLabel())),this.labelPairs.push(new p(e.getEndLabel(),t.getEndLabel())))}};class f{constructor(e,t,r){this.loopEnvLevel=0,f.currentTryStatementDepth++,this.outer=f.currentTryStatement,this.stmt=e,this.catchTable=t,r&&(this.trybuilder=r),f.currentTryStatement=this}destroy(){f.currentTryStatementDepth--,f.currentTryStatement=this.outer}static setCurrentTryStatement(e){f.currentTryStatement=e}static getCurrentTryStatement(){return f.currentTryStatement}static getcurrentTryStatementDepth(){return f.currentTryStatementDepth}getOuterTryStatement(){return this.outer}getStatement(){return this.stmt}getCatchTable(){return this.catchTable}getLoopEnvLevel(){return this.loopEnvLevel}increaseLoopEnvLevel(){this.loopEnvLevel+=1}decreaseLoopEnvLevel(){this.loopEnvLevel-=1}}t.TryStatement=f,f.currentTryStatementDepth=0;class g{constructor(e,t,r){this.compiler=e,this.pandaGen=t,this.stmt=r}}t.TryBuilderBase=g,t.TryBuilder=class extends g{constructor(e,t,r){super(e,t,r)}compileTryBlock(e){this.stmt.finallyBlock?this.tryStatement=new f(this.stmt,e,this):this.tryStatement=new f(this.stmt,e),this.compiler.compileStatement(this.stmt.tryBlock),this.tryStatement.destroy()}compileFinallyBlockIfExisted(){this.stmt.finallyBlock&&this.compiler.compileStatement(this.stmt.finallyBlock)}compileExceptionHandler(){let e=this.stmt.catchClause;if(e){this.compiler.pushScope(e),t=this.compiler,(r=e.variableDeclaration)&&t.compileVariableDeclaration(r);let n=e.block;this.compiler.pushScope(n),n.statements.forEach((e=>this.compiler.compileStatement(e))),this.compiler.popScope(),this.compiler.popScope()}else{let e=this.pandaGen.getTemp();this.pandaGen.storeAccumulator(this.stmt,e),this.compiler.compileStatement(this.stmt.finallyBlock),this.pandaGen.loadAccumulator(this.stmt,e),this.pandaGen.throw(this.stmt),this.pandaGen.freeTemps(e)}var t,r}compileFinalizer(e,t){this.compiler.compileStatement(this.stmt.finallyBlock)}},t.TryBuilderWithForOf=class extends g{constructor(e,t,r,n,i,a,o,s){super(e,t,r),this.labelTarget=a,this.doneReg=n,this.iterator=i,this.hasLoopEnv=o,this.loopEnv=s||void 0}compileTryBlock(e){let t=this.stmt,r=this.compiler,n=this.pandaGen;this.tryStatement=new f(t,e,this);let i=this.pandaGen.getTemp(),a=r.getRecorder().getScopeOfNode(t);n.loadAccumulator(t,(0,_.getVregisterCache)(n,_.CacheList.True)),n.storeAccumulator(t,this.doneReg),n.label(t,this.labelTarget.getContinueTargetLabel()),this.hasLoopEnv&&(n.createLexEnv(t,this.loopEnv,a),r.pushEnv(this.loopEnv)),this.compileIteratorNext(t,n,this.iterator,i),n.loadObjProperty(t,i,"done"),n.jumpIfTrue(t,this.labelTarget.getBreakTargetLabel()),n.loadObjProperty(t,i,"value"),n.storeAccumulator(t,i),n.loadAccumulator(t,(0,_.getVregisterCache)(n,_.CacheList.False)),n.storeAccumulator(t,this.doneReg);let o=u.LReference.generateLReference(this.compiler,t.initializer,!1);n.loadAccumulator(t,i),o.setValue(),this.compiler.compileStatement(t.statement),this.tryStatement.destroy(),n.freeTemps(i)}compileFinallyBlockIfExisted(){}compileExceptionHandler(){let e=this.pandaGen,t=new s.Label,r=e.getTemp();e.storeAccumulator(this.stmt,r),e.loadAccumulator(this.stmt,this.doneReg),e.condition(this.stmt.expression,c.SyntaxKind.ExclamationEqualsEqualsToken,(0,_.getVregisterCache)(e,_.CacheList.True),t),e.loadObjProperty(this.stmt,this.iterator.getObject(),"return"),e.storeAccumulator(this.stmt,this.iterator.getNextMethod()),e.condition(this.stmt,c.SyntaxKind.ExclamationEqualsEqualsToken,(0,_.getVregisterCache)(e,_.CacheList.undefined),t),e.call(this.stmt,[this.iterator.getNextMethod(),this.iterator.getObject()],!0),e.label(this.stmt,t),e.loadAccumulator(this.stmt,r),e.throw(this.stmt),e.freeTemps(r)}compileFinalizer(e,t){if(e==o.ControlFlowChange.Break||t!=this.labelTarget.getContinueTargetLabel()){let e=new s.Label,t=this.pandaGen.getTemp();this.pandaGen.loadObjProperty(this.stmt,this.iterator.getObject(),"return"),this.pandaGen.storeAccumulator(this.stmt,this.iterator.getNextMethod()),this.pandaGen.condition(this.stmt,c.SyntaxKind.ExclamationEqualsEqualsToken,(0,_.getVregisterCache)(this.pandaGen,_.CacheList.undefined),e),this.pandaGen.call(this.stmt,[this.iterator.getNextMethod(),this.iterator.getObject()],!0),this.pandaGen.storeAccumulator(this.stmt,t),this.pandaGen.throwIfNotObject(this.stmt,t),this.pandaGen.label(this.stmt,e),this.pandaGen.freeTemps(t)}}compileIteratorNext(e,t,r,n){t.call(e,[r.getNextMethod(),r.getObject()],!0),t.storeAccumulator(e,n),t.throwIfNotObject(e,n)}},t.updateCatchTables=function(e,t,r){for(;e!=t;e=null==e?void 0:e.getOuterTryStatement())e.getCatchTable().splitLabelPair(r);t.getCatchTable().splitLabelPair(r)},t.generateCatchTables=function(e){let t=[];return e.forEach((e=>{t.push(e)})),t.sort(((e,t)=>t.getDepth()-e.getDepth())),t}},"./src/strictMode.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.isGlobalDeclare=t.setGlobalDeclare=t.isStrictMode=t.setGlobalStrict=t.checkStrictModeStatementList=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js"));let c=!0,l=!1;function u(e){let t;if(e.kind==o.SyntaxKind.SourceFile)t=e.statements;else{let r=e;if(!r||!r.body)return!1;r.body.kind==o.SyntaxKind.Block&&(t=r.body.statements)}if(null==t)return!1;for(const e of t){if(!s.isPrologueDirective(e))return!1;if(_(e))return!0}return!1}function _(e){let t=s.getSourceFileOfNode(e);const r=s.getSourceTextOfNodeFromSourceFile(t,e.expression);return'"use strict"'===r||"'use strict'"===r}t.checkStrictModeStatementList=u,t.setGlobalStrict=function(e){c=e},t.isStrictMode=function(e){return!!c||function(e){for(;e&&e.parent&&e.parent.kind!=o.SyntaxKind.SourceFile;){let t=s.getContainingFunctionDeclaration(e);if(!t)return!1;if(u(t))return!0;e=t}return!1}(e)},t.setGlobalDeclare=function(e){l=e},t.isGlobalDeclare=function(){return l}},"./src/syntaxCheckHelper.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.isStatement=t.isOptionalParameter=t.isIncludeBackslash8Or9InString=t.isInBlockScope=t.isDeclInGlobal=t.visibilityToString=t.isBindingPattern=t.isGlobalIdentifier=t.allowLetAndConstDeclarations=t.isFunctionLikeDeclaration=t.isOriginalKeyword=t.isAssignmentOperator=t.isLeftHandSideExpression=t.isLeftHandSideExpressionKind=t.isEvalOrArgumentsIdentifier=t.isIncludeOctalEscapeSequence=t.stringLiteralIsInRegExp=t.isNewOrCallExpression=t.isOctalNumber=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js"));function c(e){return e.kind===o.SyntaxKind.NewExpression||e.kind===o.SyntaxKind.CallExpression}function l(e){switch(e){case o.SyntaxKind.NumericLiteral:case o.SyntaxKind.BigIntLiteral:case o.SyntaxKind.StringLiteral:case o.SyntaxKind.RegularExpressionLiteral:case o.SyntaxKind.NoSubstitutionTemplateLiteral:case o.SyntaxKind.Identifier:case o.SyntaxKind.FalseKeyword:case o.SyntaxKind.ImportKeyword:case o.SyntaxKind.NullKeyword:case o.SyntaxKind.SuperKeyword:case o.SyntaxKind.ThisKeyword:case o.SyntaxKind.TrueKeyword:case o.SyntaxKind.ArrayLiteralExpression:case o.SyntaxKind.ObjectLiteralExpression:case o.SyntaxKind.PropertyAccessExpression:case o.SyntaxKind.ElementAccessExpression:case o.SyntaxKind.CallExpression:case o.SyntaxKind.NewExpression:case o.SyntaxKind.TaggedTemplateExpression:case o.SyntaxKind.ParenthesizedExpression:case o.SyntaxKind.FunctionExpression:case o.SyntaxKind.TemplateExpression:case o.SyntaxKind.ClassExpression:case o.SyntaxKind.NonNullExpression:case o.SyntaxKind.MetaProperty:case o.SyntaxKind.JsxElement:case o.SyntaxKind.JsxSelfClosingElement:case o.SyntaxKind.JsxFragment:return!0;default:return!1}}t.isOctalNumber=function(e){return!(!e||e.length<2||!/^0[0-7]+$/.test(e))},t.isNewOrCallExpression=c,t.stringLiteralIsInRegExp=function(e){let t=e.parent;if(t&&c(t)){let e=t.expression;if(o.isIdentifier(e)&&"RegExp"===e.escapedText)return!0}return!1},t.isIncludeOctalEscapeSequence=function(e){if(!e.match(/\\(?:[1-7][0-7]{0,2}|[0-7]{2,3})/g))return!1;let t=0;for(;t<e.length;){if("\\"==e[t]&&t!=e.length-1)if("\\"==e[t+1])t++;else if(e[t+1]>="0"&&e[t+1]<="7")return!0;t++}return!1},t.isEvalOrArgumentsIdentifier=function(e){return o.isIdentifier(e)&&("eval"===e.escapedText||"arguments"===e.escapedText)},t.isLeftHandSideExpressionKind=l,t.isLeftHandSideExpression=function(e){return l(o.skipPartiallyEmittedExpressions(e).kind)},t.isAssignmentOperator=function(e){return e>=o.SyntaxKind.FirstAssignment&&e<=o.SyntaxKind.LastAssignment},t.isOriginalKeyword=function(e){return e.originalKeywordKind>=o.SyntaxKind.FirstFutureReservedWord&&e.originalKeywordKind<=o.SyntaxKind.LastFutureReservedWord},t.isFunctionLikeDeclaration=function(e){if(!e)return!1;switch(e.kind){case o.SyntaxKind.ArrowFunction:case o.SyntaxKind.Constructor:case o.SyntaxKind.FunctionExpression:case o.SyntaxKind.FunctionDeclaration:case o.SyntaxKind.GetAccessor:case o.SyntaxKind.MethodDeclaration:case o.SyntaxKind.SetAccessor:return!0;default:return!1}},t.allowLetAndConstDeclarations=function e(t){if(!t)return!1;switch(t.kind){case o.SyntaxKind.DoStatement:case o.SyntaxKind.IfStatement:case o.SyntaxKind.ForStatement:case o.SyntaxKind.ForInStatement:case o.SyntaxKind.ForOfStatement:case o.SyntaxKind.WhileStatement:case o.SyntaxKind.WithStatement:return!1;case o.SyntaxKind.LabeledStatement:return e(t.parent)}return!0},t.isGlobalIdentifier=function(e){switch(e){case"NaN":case"undefined":case"Infinity":return!0;default:return!1}},t.isBindingPattern=function(e){if(!e)return!1;switch(e.kind){case o.SyntaxKind.ArrayBindingPattern:case o.SyntaxKind.ObjectBindingPattern:return!0;default:return!1}},t.visibilityToString=function(e){switch(e){case o.ModifierFlags.Private:return"private";case o.ModifierFlags.Protected:return"protected";default:return"public"}},t.isDeclInGlobal=function(e){let t=e.parent;for(;t&&t.kind!=o.SyntaxKind.Block;)t=t.parent;return!t},t.isInBlockScope=function(e){switch(e.kind){case o.SyntaxKind.SourceFile:case o.SyntaxKind.CaseBlock:case o.SyntaxKind.DefaultClause:case o.SyntaxKind.CaseClause:case o.SyntaxKind.Block:case o.SyntaxKind.Constructor:case o.SyntaxKind.MethodDeclaration:return!0}return!1},t.isIncludeBackslash8Or9InString=function(e){let t=0;for(;t<e.length;){if("\\"==e[t]&&t!=e.length-1)if("\\"==e[t+1])t++;else if("8"==e[t+1]||"9"==e[t+1])return!0;t++}return!1},t.isOptionalParameter=function(e){if(s.hasQuestionToken(e))return!0;if(!e.parent||!e.parent.parent)return!1;let t=s.getImmediatelyInvokedFunctionExpression(e.parent);return!!t&&!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=t.arguments.length},t.isStatement=function(e){return e>=o.SyntaxKind.FirstStatement&&e<=o.SyntaxKind.LastStatement}},"./src/syntaxChecker.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.checkExportEntries=t.checkSyntaxError=t.checkDuplicateDeclaration=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/cmdOptions.ts"),c=r("./src/diagnostic.ts"),l=r("./src/base/util.ts"),u=r("./src/expression/parenthesizedExpression.ts"),_=a(r("./src/jshelpers.js")),d=r("./src/jshelpers.js"),p=r("./src/log.ts"),f=r("./src/scope.ts"),g=r("./src/strictMode.ts"),m=r("./src/syntaxCheckerForStrcitMode.ts"),y=r("./src/syntaxCheckHelper.ts");function h(e,t){let r=e.getDecls(),n=e;if(r[t]instanceof f.VarDecl)for(;!(n instanceof f.FunctionScope);){if(n=n.getParent(),!n)return;n.getDecls().forEach((e=>{x(r[t],e)&&E(r[t])}))}}function v(e,t){let r=e.getDecls();for(let n=t+1;n<r.length;n++)D(r[t],r[n],e)&&E(r[n])}function b(e,t){if(t.has(e.name)){if(1==t.get(e.name)||(0,l.hasExportKeywordModifier)(e.node))throw new c.DiagnosticError(e.node,c.DiagnosticCode.Duplicate_identifier_0,_.getSourceFileOfNode(e.node),[e.name])}else t.set(e.name,(0,l.hasExportKeywordModifier)(e.node))}function x(e,t){if(t instanceof f.LetDecl||t instanceof f.ConstDecl)return e.name==t.name}function D(e,t,r){return!(e instanceof f.LetDecl||e instanceof f.ConstDecl||e instanceof f.ClassDecl&&o.isClassDeclaration(e.node)||t instanceof f.LetDecl||t instanceof f.ConstDecl||t instanceof f.ClassDecl&&o.isClassDeclaration(e.node))||o.isClassExpression(e.node)||o.isClassExpression(t.node)?!!(r instanceof f.LocalScope&&(0,g.isStrictMode)(e.node)&&(e instanceof f.FuncDecl||t instanceof f.FuncDecl))&&!(0,y.isFunctionLikeDeclaration)(e.node.parent.parent)&&!(0,y.isFunctionLikeDeclaration)(t.node.parent.parent)&&e.name==t.name:e.name==t.name}function S(e,t){if(t instanceof f.GlobalScope&&!(e instanceof f.VarDecl||e instanceof f.CatchParameter)&&(0,y.isGlobalIdentifier)(e.name)&&(0,y.isDeclInGlobal)(e.node)){let t=_.getSourceFileOfNode(e.node);throw new c.DiagnosticError(e.node,c.DiagnosticCode.Declaration_name_conflicts_with_built_in_global_identifier_0,t,[e.name])}}function E(e){let t=_.getSourceFileOfNode(e.node);throw e.node.kind==o.SyntaxKind.FunctionDeclaration&&(e.node=e.node.name),new c.DiagnosticError(e.node,c.DiagnosticCode.Duplicate_identifier_0,t,[e.name])}function T(e){if(e.kind===o.SyntaxKind.Identifier){if(e.originalKeywordKind===o.SyntaxKind.LetKeyword){let t=_.getSourceFileOfNode(e);throw new c.DiagnosticError(e,c.DiagnosticCode.The_let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations,t)}}else{let t=e.elements;for(let e of t)o.isOmittedExpression(e)||T(e.name)}}function C(e){let t=_.getSourceFileOfNode(e);if(!(o.isForInStatement(e.parent.parent)||o.isForOfStatement(e.parent.parent)||o.isCatchClause(e.parent)||e.initializer)){if((0,y.isBindingPattern)(e.name)&&!(0,y.isBindingPattern)(e.parent))throw new c.DiagnosticError(e,c.DiagnosticCode.A_destructuring_declaration_must_have_an_initializer,t);if(_.isVarConst(e))throw new c.DiagnosticError(e,c.DiagnosticCode.The_const_declarations_must_be_initialized,t)}if(e.exclamationToken&&(e.parent.parent.kind!==o.SyntaxKind.VariableStatement||!e.type||e.initializer))throw e.initializer?new c.DiagnosticError(e.exclamationToken,c.DiagnosticCode.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions,t):new c.DiagnosticError(e.exclamationToken,c.DiagnosticCode.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations,t);if((_.isLet(e)||_.isVarConst(e))&&(T(e.name),!((0,y.isInBlockScope)(e.parent.parent.parent)||o.isForInStatement(e.parent.parent)||o.isForOfStatement(e.parent.parent)||o.isForStatement(e.parent.parent))))throw new c.DiagnosticError(e,c.DiagnosticCode.const_and_let_declarations_not_allowed_in_statement_positions,t)}function k(e){if(!e.decorators)return;let t=_.getSourceFileOfNode(e);if(!_.nodeCanBeDecorated(e,e.parent,e.parent.parent))throw o.isMethodDeclaration(e)&&!_.nodeIsPresent(e.body)?new c.DiagnosticError(e,c.DiagnosticCode.A_decorator_can_only_decorate_a_method_implementation_not_an_overload,t):new c.DiagnosticError(e,c.DiagnosticCode.Decorators_are_not_valid_here,t);if(o.isGetAccessorDeclaration(e)||o.isSetAccessorDeclaration(e)){let r=_.getAllAccessorDeclarations(e.parent.members,e);if(r.firstAccessor.decorators&&e===r.secondAccessor)throw new c.DiagnosticError(e,c.DiagnosticCode.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name,t)}}function A(e){if(!e.modifiers)return;let t,r,n,i,a=o.ModifierFlags.None,s=_.getSourceFileOfNode(e);for(let l of e.modifiers){if(l.kind!==o.SyntaxKind.ReadonlyKeyword){if(o.isPropertySignature(e)||o.isMethodSignature(e))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_a_type_member,s,[_.tokenToString(l.kind)]);if(o.isIndexSignatureDeclaration(e))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_an_index_signature,s,[_.tokenToString(l.kind)])}switch(l.kind){case o.SyntaxKind.ConstKeyword:if(o.isEnumDeclaration(e))throw new c.DiagnosticError(e,c.DiagnosticCode.A_class_member_cannot_have_the_0_keyword,s,[_.tokenToString(o.SyntaxKind.ConstKeyword)]);break;case o.SyntaxKind.PublicKeyword:case o.SyntaxKind.ProtectedKeyword:case o.SyntaxKind.PrivateKeyword:{const t=(0,y.visibilityToString)(_.modifierToFlag(l.kind));if(a&o.ModifierFlags.AccessibilityModifier)throw new c.DiagnosticError(l,c.DiagnosticCode.Accessibility_modifier_already_seen,s);if(a&o.ModifierFlags.Static)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,[t,"static"]);if(a&o.ModifierFlags.Readonly)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,[t,"readonly"]);if(a&o.ModifierFlags.Async)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,[t,"async"]);if(o.isModuleBlock(e.parent)||o.isSourceFile(e.parent))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_a_module_or_namespace_element,s,[t]);if(a&o.ModifierFlags.Abstract)throw l.kind===o.SyntaxKind.PrivateKeyword?new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier,s,[t,"abstract"]):new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,[t,"abstract"]);if(o.isPropertyDeclaration(e)&&o.isPrivateIdentifier(e.name))throw new c.DiagnosticError(l,c.DiagnosticCode.An_accessibility_modifier_cannot_be_used_with_a_private_identifier,s);a|=_.modifierToFlag(l.kind);break}case o.SyntaxKind.StaticKeyword:if(a&o.ModifierFlags.Static)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_already_seen,s,["static"]);if(a&o.ModifierFlags.Readonly)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,["static","readonly"]);if(a&o.ModifierFlags.Async)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,["static","async"]);if(o.isModuleBlock(e.parent)||o.isSourceFile(e.parent))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_a_module_or_namespace_element,s,["static"]);if(o.isParameter(e))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_a_parameter,s,["static"]);if(a&o.ModifierFlags.Abstract)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier,s,["static","abstract"]);if(o.isPropertyDeclaration(e)&&o.isPrivateIdentifier(e.name))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_with_a_private_identifier,s,["static"]);a|=o.ModifierFlags.Static,t=l;break;case o.SyntaxKind.ReadonlyKeyword:if(a&o.ModifierFlags.Readonly)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_already_seen,s,["readonly"]);if(!(o.isPropertyDeclaration(e)||o.isPropertySignature(e)||o.isIndexSignatureDeclaration(e)||o.isParameter(e)))throw new c.DiagnosticError(l,c.DiagnosticCode.The_readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature,s);a|=o.ModifierFlags.Readonly,i=l;break;case o.SyntaxKind.ExportKeyword:if(a&o.ModifierFlags.Export)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_already_seen,s,["export"]);if(a&o.ModifierFlags.Ambient)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,["export","declare"]);if(a&o.ModifierFlags.Abstract)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,["export","abstract"]);if(a&o.ModifierFlags.Async)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_must_precede_1_modifier,s,["export","async"]);if(o.isClassLike(e.parent))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_class_elements_of_this_kind,s,["export"]);if(o.isParameter(e))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_a_parameter,s,["export"]);a|=o.ModifierFlags.Export;break;case o.SyntaxKind.DefaultKeyword:{let t=o.isSourceFile(e.parent)?e.parent:e.parent.parent;if(o.isModuleDeclaration(t)&&!_.isAmbientModule(t))throw new c.DiagnosticError(l,c.DiagnosticCode.A_default_export_can_only_be_used_in_an_ECMAScript_style_module,s);a|=o.ModifierFlags.Default;break}case o.SyntaxKind.DeclareKeyword:if(a&o.ModifierFlags.Ambient)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_already_seen,s,["declare"]);if(a&o.ModifierFlags.Async)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_in_an_ambient_context,s,["async"]);if(o.isClassLike(e.parent)&&!o.isPropertyDeclaration(e))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_class_elements_of_this_kind,s,["declare"]);if(o.isParameter(e))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_a_parameter,s,["declare"]);if(o.isPropertyDeclaration(e)&&o.isPrivateIdentifier(e.name))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_with_a_private_identifier,s,["declare"]);a|=o.ModifierFlags.Ambient,r=l;break;case o.SyntaxKind.AbstractKeyword:{if(a&o.ModifierFlags.Abstract)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_already_seen,s,["abstract"]);if(o.isClassDeclaration(e)&&o.isConstructorTypeNode(e)){if(!(o.isMethodDeclaration(e)||o.isPropertyDeclaration(e)||o.isGetAccessorDeclaration(e)||o.isSetAccessorDeclaration(e)))throw new c.DiagnosticError(l,c.DiagnosticCode.The_abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration,s);if(a&o.ModifierFlags.Static)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier,s,["static","abstract"]);if(a&o.ModifierFlags.Private)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier,s,["private","abstract"]);if(a&o.ModifierFlags.Async&&n)throw new c.DiagnosticError(n,c.DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier,s,["async","abstract"])}let t=e.name;if(t&&o.isPrivateIdentifier(t))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_with_a_private_identifier,s,["abstract"]);a|=o.ModifierFlags.Abstract;break}case o.SyntaxKind.AsyncKeyword:if(a&o.ModifierFlags.Async)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_already_seen,s,["async"]);if(a&o.ModifierFlags.Ambient)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_in_an_ambient_context,s,["async"]);if(o.isParameter(e))throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_appear_on_a_parameter,s,["async"]);if(a&o.ModifierFlags.Abstract)throw new c.DiagnosticError(l,c.DiagnosticCode._0_modifier_cannot_be_used_with_1_modifier,s,["async","abstract"]);a|=o.ModifierFlags.Async,n=l}}if(o.isConstructorDeclaration(e)){if(a&o.ModifierFlags.Static)throw new c.DiagnosticError(t,c.DiagnosticCode._0_modifier_cannot_appear_on_a_constructor_declaration,s,["static"]);if(a&o.ModifierFlags.Abstract)throw new c.DiagnosticError(t,c.DiagnosticCode._0_modifier_cannot_appear_on_a_constructor_declaration,s,["abstract"]);if(a&o.ModifierFlags.Async)throw new c.DiagnosticError(n,c.DiagnosticCode._0_modifier_cannot_appear_on_a_constructor_declaration,s,["async"]);if(a&o.ModifierFlags.Readonly)throw new c.DiagnosticError(i,c.DiagnosticCode._0_modifier_cannot_appear_on_a_constructor_declaration,s,["readonly"])}else{if((o.isImportDeclaration(e)||o.isImportEqualsDeclaration(e))&&a&o.ModifierFlags.Ambient)throw new c.DiagnosticError(r,c.DiagnosticCode.A_0_modifier_cannot_be_used_with_an_import_declaration,s,["declare"]);if(o.isParameter(e)&&a&o.ModifierFlags.ParameterPropertyModifier&&(0,y.isBindingPattern)(e.name))throw new c.DiagnosticError(e,c.DiagnosticCode.A_parameter_property_may_not_be_declared_using_a_binding_pattern,s);if(o.isParameter(e)&&a&o.ModifierFlags.ParameterPropertyModifier&&e.dotDotDotToken)throw new c.DiagnosticError(e,c.DiagnosticCode.A_parameter_property_cannot_be_declared_using_a_rest_parameter,s)}a&o.ModifierFlags.Async&&function(e,t){switch(e.kind){case o.SyntaxKind.ArrowFunction:case o.SyntaxKind.FunctionDeclaration:case o.SyntaxKind.FunctionExpression:case o.SyntaxKind.MethodDeclaration:return}let r=_.getSourceFileOfNode(e);throw new c.DiagnosticError(t,c.DiagnosticCode._0_modifier_cannot_be_used_here,r,["async"])}(e,n)}function N(e){let t=e.declarations;if(!t.length)throw new c.DiagnosticError(e,c.DiagnosticCode.Identifier_expected);let r=t[0].name;(0,y.isBindingPattern)(r)&&U(r)}function F(e){let t=_.getSourceFileOfNode(e),r=e.initializer;if(o.isParenthesizedExpression(r)&&(r=(0,u.findInnerExprOfParenthesis)(r)),o.isVariableDeclarationList(r)){let n=r;N(n);let i=n.declarations;if(i.length>1)throw o.isForInStatement(e)?new c.DiagnosticError(n.declarations[1],c.DiagnosticCode.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement,t):new c.DiagnosticError(n.declarations[1],c.DiagnosticCode.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement,t);if(i[0].initializer)throw o.isForInStatement(e)?new c.DiagnosticError(i[0].name,c.DiagnosticCode.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer,t):new c.DiagnosticError(i[0].name,c.DiagnosticCode.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer,t);if(i[0].type)throw o.isForInStatement(e)?new c.DiagnosticError(i[0],c.DiagnosticCode.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation,t):new c.DiagnosticError(i[0],c.DiagnosticCode.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation,t)}else O(r),(o.isArrayLiteralExpression(r)||o.isObjectLiteralExpression(r))&&V(r)}function w(e){let t=e.initializer;t.declarations.length>=1&&C(t.declarations[0])}function P(e,t,r){let n=_.skipOuterExpressions(e,7);if(n.kind!==o.SyntaxKind.Identifier&&n.kind!==o.SyntaxKind.PropertyAccessExpression&&n.kind!==o.SyntaxKind.ElementAccessExpression)throw new c.DiagnosticError(e,t);if(n.flags&o.NodeFlags.OptionalChain)throw new c.DiagnosticError(e,r)}function I(e){if((0,y.isAssignmentOperator)(e.operatorToken.kind)){let t=e.left;o.isParenthesizedExpression(t)&&(t=(0,u.findInnerExprOfParenthesis)(t)),e.operatorToken.kind==o.SyntaxKind.EqualsToken&&(o.isArrayLiteralExpression(t)||o.isObjectLiteralExpression(t))&&V(t),O(t)}}function O(e){if(_.isKeyword(e.kind)||e.kind==o.SyntaxKind.NumericLiteral||e.kind==o.SyntaxKind.StringLiteral)throw new c.DiagnosticError(e,c.DiagnosticCode.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)}function L(e){if(!o.isComputedPropertyName(e))return;let t=e.expression;if(o.isBinaryExpression(t)&&t.operatorToken.kind===o.SyntaxKind.CommaToken){let r=_.getSourceFileOfNode(e);throw new c.DiagnosticError(t,c.DiagnosticCode.A_comma_expression_is_not_allowed_in_a_computed_property_name,r)}}function M(e){let t=_.isAssignmentTarget(e),r=_.getSourceFileOfNode(e),n=new Map;for(let i of e.properties){if(o.isSpreadAssignment(i)){if(t){let e=_.skipParentheses(i.expression);if(o.isArrayLiteralExpression(e)||o.isObjectLiteralExpression(e))throw new c.DiagnosticError(i.expression,c.DiagnosticCode.A_rest_element_cannot_contain_a_binding_pattern,r)}continue}let e=i.name;if(o.isComputedPropertyName(e)&&L(e),o.isShorthandPropertyAssignment(i)&&!t&&i.objectAssignmentInitializer)throw new c.DiagnosticError(i.equalsToken,c.DiagnosticCode.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern,r);if(o.isPrivateIdentifier(e))throw new c.DiagnosticError(e,c.DiagnosticCode.Private_identifiers_are_not_allowed_outside_class_bodies,r);if(i.modifiers)for(let e of i.modifiers)if(!o.isMethodDeclaration(i)||e.kind!=o.SyntaxKind.AsyncKeyword)throw new c.DiagnosticError(e,c.DiagnosticCode._0_modifier_cannot_be_used_here,r,[_.getTextOfNode(e)]);let a=R(i);if(a&&!t){let t=_.getPropertyNameForPropertyNameNode(e);if(!t||o.isComputedPropertyName(e))continue;let i=n.get(t);if(i){if(12&a&&12&i&&"___proto__"===t)throw new c.DiagnosticError(e,c.DiagnosticCode.Duplicate_identifier_0,r,[_.getTextOfNode(e)])}else n.set(t,a)}}}function R(e,t){let r;return o.isShorthandPropertyAssignment(e)?function(e){if(e){let t=_.getSourceFileOfNode(e);throw new c.DiagnosticError(e,c.DiagnosticCode.A_definite_assignment_assertion_is_not_permitted_in_this_context,t)}}(e.exclamationToken):o.isPropertyAssignment(e)?(function(e){if(e){let t=_.getSourceFileOfNode(e);throw new c.DiagnosticError(e,c.DiagnosticCode.An_object_member_cannot_be_declared_optional,t)}}(e.questionToken),r=4):o.isMethodDeclaration(e)?r=8:o.isGetAccessor(e)?(J(e),r=1):o.isSetAccessor(e)?r=2:(0,p.LOGE)("Unexpected syntax kind:"+e.kind),r}function B(e){if(e&&e.hasTrailingComma){let t=_.getSourceFileOfNode(e[0]);throw new c.DiagnosticError(e[0],c.DiagnosticCode.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma,t)}}function j(e){k(e),A(e),function(e){let t=e.length,r=!1;for(let n=0;n<t;n++){let i=e[n],a=_.getSourceFileOfNode(i);if(i.dotDotDotToken){if(n!=t-1)throw new c.DiagnosticError(i.dotDotDotToken,c.DiagnosticCode.A_rest_parameter_must_be_last_in_a_parameter_list,a);if(B(e),i.initializer)throw new c.DiagnosticError(i.name,c.DiagnosticCode.A_rest_parameter_cannot_have_an_initializer,a);if(i.questionToken)throw new c.DiagnosticError(i.questionToken,c.DiagnosticCode.A_rest_parameter_cannot_be_optional,a)}else if((0,y.isOptionalParameter)(i)){if(r=!0,i.questionToken&&i.initializer)throw new c.DiagnosticError(i.name,c.DiagnosticCode.Parameter_cannot_have_question_mark_and_initializer,a)}else if(r&&!i.initializer)throw new c.DiagnosticError(i.name,c.DiagnosticCode.A_required_parameter_cannot_follow_an_optional_parameter,a)}}(e.parameters),function(e){if(!o.isArrowFunction(e))return;const{equalsGreaterThanToken:t}=e;let r=_.getSourceFileOfNode(e);if(r.getLineAndCharacterOfPosition(t.pos).line!==r.getLineAndCharacterOfPosition(t.end).line)throw new c.DiagnosticError(t,c.DiagnosticCode.Line_terminator_not_permitted_before_arrow,r)}(e)}function J(e){if(j(e),0!=e.parameters.length)throw new c.DiagnosticError(e,c.DiagnosticCode.Getter_must_not_have_any_formal_parameters)}function V(e){let t=(0,d.getSourceFileOfNode)(e);if(o.isArrayLiteralExpression(e)){let r=e.elements;for(let e=0;e<r.length;e++){let n=r[e];if(o.isSpreadElement(n)){if(e!=r.length-1)throw new c.DiagnosticError(n,c.DiagnosticCode.A_rest_element_must_be_last_in_a_destructuring_pattern,t);if(r.hasTrailingComma)throw new c.DiagnosticError(n,c.DiagnosticCode.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma,t);(o.isArrayLiteralExpression(n.expression)||o.isObjectLiteralExpression(n.expression))&&V(n.expression)}else if(n=o.isBinaryExpression(n)?n.left:n,!o.isOmittedExpression(n)&&!o.isElementAccessExpression(n))if(o.isIdentifier(n)){let e=_.getTextOfIdentifierOrLiteral(n);if("arguments"==e||"eval"==e)throw new c.DiagnosticError(n,c.DiagnosticCode.Property_destructuring_pattern_expected,t)}else if(o.isPropertyAccessExpression(n)){if(n.questionDotToken)throw new c.DiagnosticError(n,c.DiagnosticCode.Property_destructuring_pattern_expected,t)}else{if(!o.isArrayLiteralExpression(n)&&!o.isObjectLiteralExpression(n))throw new c.DiagnosticError(n,c.DiagnosticCode.Property_destructuring_pattern_expected,t);V(n)}}}if(o.isObjectLiteralExpression(e)){let r=e.properties;for(let n=0;n<r.length;n++){let i=r[n];if(o.isSpreadAssignment(i)){if(n!=r.length-1){let t=(0,d.getSourceFileOfNode)(e);throw new c.DiagnosticError(i,c.DiagnosticCode.A_rest_element_must_be_last_in_a_destructuring_pattern,t)}}else{if(o.isPropertyAssignment(i)){let e=o.isBinaryExpression(i.initializer)?i.initializer.left:i.initializer;if(o.isIdentifier(e)||o.isElementAccessExpression(e))continue;if(o.isPropertyAccessExpression(e)){if(e.questionDotToken)throw new c.DiagnosticError(i,c.DiagnosticCode.Property_destructuring_pattern_expected,t);continue}if(o.isObjectLiteralExpression(e)||o.isArrayLiteralExpression(e)){V(e);continue}throw new c.DiagnosticError(i,c.DiagnosticCode.Property_destructuring_pattern_expected,t)}if(o.isShorthandPropertyAssignment(i)){let e=_.getTextOfIdentifierOrLiteral(i.name);if("arguments"==e||"eval"==e)throw new c.DiagnosticError(i,c.DiagnosticCode.Property_destructuring_pattern_expected,t)}else if(o.isMethodDeclaration(i)||o.isGetAccessorDeclaration(i)||o.isSetAccessorDeclaration(i))throw new c.DiagnosticError(i,c.DiagnosticCode.Property_destructuring_pattern_expected,t)}}}}function U(e){let t=e.elements;for(let r=0;r<t.length;r++){let n=t[r];if(!o.isOmittedExpression(n)&&n.dotDotDotToken){let i=(0,d.getSourceFileOfNode)(e);if(r!=t.length-1)throw new c.DiagnosticError(n,c.DiagnosticCode.A_rest_element_must_be_last_in_a_destructuring_pattern,i);if(n.initializer)throw new c.DiagnosticError(n,c.DiagnosticCode.A_rest_parameter_cannot_have_an_initializer)}}}t.checkDuplicateDeclaration=function(e){let t=e.getScopeMap();t.forEach(((r,n)=>{if((0,y.isFunctionLikeDeclaration)(n)&&((0,g.isStrictMode)(n)&&function(e,t){let r=t.getParametersOfFunction(e),n=[];r&&r.forEach((e=>{n.includes(e.name)?E(e):n.push(e.name)}))}(n,e),n.body)){let r=t.get(n.body),i=function(e,t){let r=t.getParametersOfFunction(e),n=[];if(r)return r.forEach((e=>{n.push(e.name)})),n}(n,e);r&&function(e,t){if(!e)return;let r=t.getDecls();for(let t=0;t<r.length;t++){if(r[t]instanceof f.VarDecl||r[t]instanceof f.FuncDecl)continue;let n=r[t].name;e.includes(n)&&E(r[t])}}(i,r)}n.kind==o.SyntaxKind.Block&&null!=n.parent&&n.parent.kind==o.SyntaxKind.CatchClause&&function(e,t){let r=e.getDecls(),n=t.getDecls();for(let e=0;e<n.length;e++){for(let t=e+1;t<n.length;t++)n[e].name==n[t].name&&E(n[t]);for(let t=0;t<r.length;t++)r[t]instanceof f.VarDecl||n[e].name==r[t].name&&E(r[t])}}(r,t.get(n.parent));let i=r.getDecls(),a=new Map;for(let e=0;e<i.length;e++)S(i[e],r),v(r,e),h(r,e),o.isFunctionDeclaration(i[e].node)&&r instanceof f.ModuleScope&&b(i[e],a)}))},t.checkSyntaxError=function(e){!function(e){switch(e.kind){case o.SyntaxKind.BreakStatement:case o.SyntaxKind.ContinueStatement:!function(e){let t,r=e;for(;r;){if(o.isFunctionLike(r))throw new c.DiagnosticError(e,c.DiagnosticCode.Jump_target_cannot_cross_function_boundary,_.getSourceFileOfNode(r));switch(r.kind){case o.SyntaxKind.SwitchStatement:if(e.kind===o.SyntaxKind.BreakStatement&&!e.label)return;break;case o.SyntaxKind.LabeledStatement:if(e.label&&r.label.escapedText===e.label.escapedText){let t=!1;if(e.kind!==o.SyntaxKind.ContinueStatement||_.isIterationStatement(r.statement,!0)||(t=!0),t)throw new c.DiagnosticError(e,c.DiagnosticCode.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement,_.getSourceFileOfNode(r));return}break;default:if(_.isIterationStatement(r,!1)&&!e.label)return!1}r=r.parent}throw t=e.label?e.kind==o.SyntaxKind.BreakStatement?c.DiagnosticCode.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:c.DiagnosticCode.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:e.kind==o.SyntaxKind.BreakStatement?c.DiagnosticCode.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:c.DiagnosticCode.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement,new c.DiagnosticError(e,t,_.getSourceFileOfNode(e))}(e);break;case o.SyntaxKind.ReturnStatement:!function(e){if(!_.getContainingFunction(e)){let t=_.getSourceFileOfNode(e);throw new c.DiagnosticError(e,c.DiagnosticCode.A_return_statement_can_only_be_used_within_a_function_body,t)}}(e);break;case o.SyntaxKind.ComputedPropertyName:L(e);break;case o.SyntaxKind.ObjectBindingPattern:case o.SyntaxKind.ArrayBindingPattern:U(e);break;case o.SyntaxKind.MetaProperty:!function(e){let t=_.getTextOfIdentifierOrLiteral(e.name),r=_.getSourceFileOfNode(e);switch(e.keywordToken){case o.SyntaxKind.NewKeyword:{let n=[t,_.tokenToString(e.keywordToken),"target"];if("target"!=t)throw new c.DiagnosticError(e,c.DiagnosticCode._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r,n);let i=(0,d.getContainingFunctionDeclaration)(e);if(!i)throw new c.DiagnosticError(e,c.DiagnosticCode.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,r,n);if(o.isMethodDeclaration(i))throw new c.DiagnosticError(e,c.DiagnosticCode.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,r,n);if(o.isArrowFunction(i)&&!_.getNewTargetContainer(e))throw new c.DiagnosticError(e,c.DiagnosticCode.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,r,n);break}case o.SyntaxKind.ImportKeyword:if("meta"!=t){let n=[t,_.tokenToString(e.keywordToken),"meta"];throw new c.DiagnosticError(e,c.DiagnosticCode._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r,n)}}}(e);break;case o.SyntaxKind.VariableDeclaration:C(e);break;case o.SyntaxKind.VariableStatement:!function(e){k(e),A(e),N(e.declarationList),function(e){if(!(0,y.allowLetAndConstDeclarations)(e.parent)){if(_.isLet(e.declarationList))throw new c.DiagnosticError(e,c.DiagnosticCode.The_let_declarations_can_only_be_declared_inside_a_block);if(_.isVarConst(e.declarationList))throw new c.DiagnosticError(e,c.DiagnosticCode.The_const_declarations_can_only_be_declared_inside_a_block)}}(e)}(e);break;case o.SyntaxKind.ForInStatement:!function(e){F(e);let t=_.getSourceFileOfNode(e);if(o.isVariableDeclarationList(e.initializer))w(e);else{let r=e.initializer;if(o.isArrayLiteralExpression(r)||o.isObjectLiteralExpression(r))throw new c.DiagnosticError(r,c.DiagnosticCode.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern,t)}}(e);break;case o.SyntaxKind.ForOfStatement:!function(e){if(F(e),o.isVariableDeclarationList(e.initializer))w(e);else{let t=e.initializer;o.isArrayLiteralExpression(t)||o.isObjectLiteralExpression(t)?function(e){let t;t=o.isShorthandPropertyAssignment(e)?e.name:e,o.isBinaryExpression(t)&&t.operatorToken.kind===o.SyntaxKind.EqualsToken&&(I(t),t=t.left),o.isObjectLiteralExpression(t)&&M(t),function(e){let t,r;o.isSpreadAssignment(e.parent)?(t=c.DiagnosticCode.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access,r=c.DiagnosticCode.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access):(t=c.DiagnosticCode.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,r=c.DiagnosticCode.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access),P(e,t,r)}(t)}(t):P(t,c.DiagnosticCode.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,c.DiagnosticCode.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access)}}(e);break;case o.SyntaxKind.ClassDeclaration:case o.SyntaxKind.ClassExpression:!function(e){!function(e){let t=!1;if(k(e),A(e),null==e.heritageClauses)return;let r=_.getSourceFileOfNode(e);for(let n of e.heritageClauses)if(n.token==o.SyntaxKind.ExtendsKeyword){if(t)throw new c.DiagnosticError(n,c.DiagnosticCode.The_extends_clause_already_seen,r);if(n.types.length>1)throw new c.DiagnosticError(n,c.DiagnosticCode.Classes_can_only_extend_a_single_class);t=!0}}(e);let t=!1,r=_.getSourceFileOfNode(e);if(e.members.forEach((n=>{switch(n.kind){case o.SyntaxKind.Constructor:if(t)throw new c.DiagnosticError(e,c.DiagnosticCode.Multiple_constructor_implementations_are_not_allowed,r);t=!0;break;case o.SyntaxKind.MethodDeclaration:case o.SyntaxKind.SetAccessor:j(n);break;case o.SyntaxKind.GetAccessor:J(n)}})),(0,y.isStatement)(e.parent.kind))throw new c.DiagnosticError(e,c.DiagnosticCode.Class_declaration_not_allowed_in_statement_position,r)}(e);break;case o.SyntaxKind.SuperKeyword:!function(e){let t=_.getSourceFileOfNode(e),r=!1;o.isCallExpression(e.parent)&&e.parent.expression===e&&(r=!0);let n=_.getSuperContainer(e,!0);if(!r)for(;n&&o.isArrowFunction(n);)n=_.getSuperContainer(n,!0);if(!function(e,t){return!!e&&(t?o.isConstructorDeclaration(e):!(!o.isClassLike(e.parent)&&!o.isObjectLiteralExpression(e.parent))&&(o.isMethodDeclaration(e)||o.isMethodSignature(e)||o.isGetAccessor(e)||o.isSetAccessor(e)||o.isPropertyDeclaration(e)||o.isPropertySignature(e)||o.isConstructorDeclaration(e)))}(n,r)){let i=_.findAncestor(e,(e=>e===n?"quit":o.isComputedPropertyName(e)));if(i&&o.isComputedPropertyName(i))throw new c.DiagnosticError(e,c.DiagnosticCode.The_super_cannot_be_referenced_in_a_computed_property_name,t);if(_.findAncestor(e,o.isConstructorDeclaration))return;if(r)throw new c.DiagnosticError(e,c.DiagnosticCode.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors,t);if(!n||!n.parent||!o.isClassLike(n.parent)||o.isObjectLiteralExpression(n.parent))throw new c.DiagnosticError(e,c.DiagnosticCode.The_super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions,t);throw new c.DiagnosticError(e,c.DiagnosticCode.The_super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class,t)}}(e);break;case o.SyntaxKind.BinaryExpression:I(e);break;case o.SyntaxKind.Identifier:!function(e){if(_.isIdentifierName(e))return;let t=_.getSourceFileOfNode(e);if(e.originalKeywordKind===o.SyntaxKind.AwaitKeyword){if(_.isExternalOrCommonJsModule(t)&&_.isInTopLevelContext(e))throw new c.DiagnosticError(e,c.DiagnosticCode.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,t,_.declarationNameToString(e));if(e.flags&o.NodeFlags.AwaitContext)throw new c.DiagnosticError(e,c.DiagnosticCode.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,t,_.declarationNameToString(e))}else if(e.originalKeywordKind===o.SyntaxKind.YieldKeyword&&e.flags&o.NodeFlags.YieldContext)throw new c.DiagnosticError(e,c.DiagnosticCode.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,t,_.declarationNameToString(e))}(e);break;case o.SyntaxKind.ObjectLiteralExpression:M(e);break;case o.SyntaxKind.FunctionDeclaration:case o.SyntaxKind.MethodSignature:case o.SyntaxKind.MethodDeclaration:case o.SyntaxKind.SetAccessor:case o.SyntaxKind.Constructor:case o.SyntaxKind.FunctionExpression:case o.SyntaxKind.ArrowFunction:j(e);break;case o.SyntaxKind.GetAccessor:J(e);break;case o.SyntaxKind.LabeledStatement:!function(e){let t=_.getSourceFileOfNode(e);_.findAncestor(e.parent,(r=>{if(_.isFunctionLike(r))return"quit";if(o.isLabeledStatement(r)&&r.label.escapedText===e.label.escapedText)throw new c.DiagnosticError(e.label,c.DiagnosticCode.Duplicate_label_0,t,[_.getTextOfNode(e.label)]);return!1}));let r=e.statement;if(o.isVariableStatement(r)){let t=r;if(_.isLet(t.declarationList))throw new c.DiagnosticError(e,c.DiagnosticCode.Lexical_declaration_let_not_allowed_in_statement_position);if(_.isVarConst(t.declarationList))throw new c.DiagnosticError(e,c.DiagnosticCode.Lexical_declaration_const_not_allowed_in_statement_position)}}(e);break;case o.SyntaxKind.ThrowStatement:!function(e){if(o.isIdentifier(e.expression)&&""===e.expression.text)throw new c.DiagnosticError(e,c.DiagnosticCode.Line_break_not_permitted_here,_.getSourceFileOfNode(e))}(e)}}(e),((0,g.isStrictMode)(e)||s.CmdOptions.isModules())&&(0,m.checkSyntaxErrorForStrictMode)(e)},t.checkExportEntries=function(e){let t=e.getExportStmts(),r=new Set;t.forEach((e=>{e.getBindingNameMap().forEach(((t,n)=>{if(r.has(n))throw new c.DiagnosticError(e.getNode(),c.DiagnosticCode.Duplicate_identifier_0,_.getSourceFileOfNode(e.getNode()),[n]);r.add(n)}))}))}},"./src/syntaxCheckerForStrcitMode.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.checkSyntaxErrorForStrictMode=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/cmdOptions.ts"),c=r("./src/diagnostic.ts"),l=r("./src/expression/parenthesizedExpression.ts"),u=a(r("./src/jshelpers.js")),_=r("./src/strictMode.ts"),d=r("./src/syntaxCheckHelper.ts");function p(e,t){if((0,d.isIncludeOctalEscapeSequence)(t))throw new c.DiagnosticError(e,c.DiagnosticCode.Octal_escape_sequences_are_not_allowed_in_strict_mode);if((0,d.isIncludeOctalEscapeSequence)(t))throw new c.DiagnosticError(e,c.DiagnosticCode._8_and_9_are_not_allowed_in_strict_mode)}function f(e,t){if(!t||!o.isIdentifier(t))return;let r=t;if(!(0,d.isEvalOrArgumentsIdentifier)(r)&&!(0,d.isOriginalKeyword)(r))return;let n=u.getSourceFileOfNode(t),i=[o.idText(r)];throw new c.DiagnosticError(t,(a=e,u.getContainingClass(a)?c.DiagnosticCode.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:c.DiagnosticCode.Invalid_use_of_0_in_strict_mode),n,i);var a}function g(e){let t=e.parameters,r=new Map;for(let n=0;n<t.length;n++){let i=t[n];f(i,i.name);let a=u.getTextOfIdentifierOrLiteral(i.name);if(r.has(a)){let e=[u.declarationNameToString(i.name)];throw new c.DiagnosticError(i.name,c.DiagnosticCode.Duplicate_identifier_0,void 0,e)}if(a&&r.set(a,!0),(i.initializer||i.dotDotDotToken)&&(0,_.checkStrictModeStatementList)(e))throw new c.DiagnosticError(i,c.DiagnosticCode.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)}}t.checkSyntaxErrorForStrictMode=function(e){switch(e.kind){case o.SyntaxKind.NumericLiteral:!function(e){let t=u.getTextOfNode(e);if((0,d.isOctalNumber)(t))throw new c.DiagnosticError(e,c.DiagnosticCode.Octal_literals_are_not_allowed_in_strict_mode)}(e);break;case o.SyntaxKind.StringLiteral:!function(e){(0,d.stringLiteralIsInRegExp)(e)||p(e,u.getTextOfNode(e))}(e);break;case o.SyntaxKind.FunctionDeclaration:!function(e){if(f(e,e.name),g(e),!(0,d.isInBlockScope)(e.parent))throw new c.DiagnosticError(e,c.DiagnosticCode.In_strict_mode_code_functions_can_only_be_declared_at_top_level_or_inside_a_block)}(e);break;case o.SyntaxKind.FunctionExpression:let t=e;f(t,t.name),g(t);break;case o.SyntaxKind.SetAccessor:case o.SyntaxKind.ArrowFunction:g(e);break;case o.SyntaxKind.VariableDeclaration:case o.SyntaxKind.BindingElement:f(e,e.name);break;case o.SyntaxKind.BinaryExpression:!function(e){if(!(0,d.isLeftHandSideExpression)(e.left)||!(0,d.isAssignmentOperator)(e.operatorToken.kind))return;let t=e,r=e.left;switch(e.left.kind){case o.SyntaxKind.ParenthesizedExpression:{let n=(0,l.findInnerExprOfParenthesis)(e.left);t=n,r=n;break}}f(t,r)}(e);break;case o.SyntaxKind.PrefixUnaryExpression:case o.SyntaxKind.PostfixUnaryExpression:f(e,e.operand);break;case o.SyntaxKind.DeleteExpression:!function(e){let t=e.expression;if(o.isIdentifier(t))throw new c.DiagnosticError(t,c.DiagnosticCode.A_delete_cannot_be_called_on_an_identifier_in_strict_mode)}(e);break;case o.SyntaxKind.WithStatement:!function(e){let t=u.getSourceFileOfNode(e);throw new c.DiagnosticError(e,c.DiagnosticCode.A_with_statements_are_not_allowed_in_strict_mode,t)}(e);break;case o.SyntaxKind.Identifier:!function(e){let t=u.getSourceFileOfNode(e);if("await"==u.getTextOfIdentifierOrLiteral(e)&&s.CmdOptions.isModules())throw new c.DiagnosticError(e,c.DiagnosticCode.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,t,["await"]);if(!u.isIdentifierName(e)&&(0,d.isOriginalKeyword)(e))throw new c.DiagnosticError(e,function(e){return u.getContainingClass(e)?c.DiagnosticCode.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:c.DiagnosticCode.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(e),t,u.declarationNameToString(e))}(e);break;case o.SyntaxKind.NoSubstitutionTemplateLiteral:case o.SyntaxKind.FirstTemplateToken:case o.SyntaxKind.LastLiteralToken:!function(e){let t=u.getTextOfNode(e);p(e,t.substring(1,t.length-1))}(e)}}},"./src/ts2panda.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ts2Panda=void 0;const n=r("./src/cmdOptions.ts"),i=r("./src/irnodes.ts"),a=r("./src/log.ts"),o=r("./src/pandagen.ts"),s=r("./src/pandasm.ts"),c=r("./src/statement/tryStatement.ts"),l=r("./src/base/util.ts"),u=r("./src/compilerDriver.ts"),_=/\$/g;class d{constructor(){}static getFuncSignature(e){return new s.Signature(e.getParametersCount())}static getFuncInsnsAndRegsNum(e){let t=[],r=[];return e.getInsns().forEach((e=>{let n=e.kind>=i.IRNodeKind.VREG?void 0:e.kind,a=[],o=[],c=[],u="";if(e instanceof i.Label)u=d.labelPrefix+e.id,r.push(u);else if((0,l.isRangeInst)(e)){let t=e.operands;c.push(t[0].value),a.push(t[1].num),2==(0,l.getRangeStartVregPos)(e)&&a.push(t[2].num)}else e.operands.forEach((e=>{if(e instanceof i.VReg){let t=e;a.push(t.num)}else if(e instanceof i.Imm){let t=e;c.push(t.value)}else if("string"==typeof e)o.push(e),d.strings.add(e);else if(e instanceof i.Label){let t=d.labelPrefix+e.id;o.push(t)}}));e.debugPosInfo.ClearNodeKind(),t.push(new s.Ins(n,0==a.length?void 0:a,0==o.length?void 0:o,0==c.length?void 0:c,""===u?void 0:u,e.debugPosInfo))})),{insns:t,regsNum:e.getTotalRegsNum()-e.getParametersCount(),labels:0==r.length?void 0:r}}static dumpStringsArray(e){let t={t:2,s:Array.from(d.strings)},r=(0,l.escapeUnicode)(JSON.stringify(t,null,2));r="$"+r.replace(_,"#$")+"$",n.CmdOptions.isEnableDebugLog()&&(d.jsonString+=r),e.stdio[3].write(r+"\n")}static dumpTypeLiteralArrayBuffer(){var e;let t=o.PandaGen.getLiteralArrayBuffer(),r="",n=null===(e=t[0].getLiteral(1))||void 0===e?void 0:e.getValue();if(n)for(let e=0;e<n;e++)r+=(0,l.escapeUnicode)(JSON.stringify(t[1+e],null,2));return r}static dumpConstantPool(e){let t=o.PandaGen.getLiteralArrayBuffer();if(n.CmdOptions.enableTypeLog()){console.log("-------- LiteralArrayBuffer --------");for(let e of o.PandaGen.getLiteralArrayBuffer())console.log(JSON.parse(JSON.stringify(e)))}t.forEach((function(t){let r={t:3,lit_arr:t},i=(0,l.escapeUnicode)(JSON.stringify(r,null,2));i="$"+i.replace(_,"#$")+"$",n.CmdOptions.isEnableDebugLog()&&(d.jsonString+=i),e.stdio[3].write(i+"\n")}))}static dumpCmdOptions(e){let t={t:4,module_mode:n.CmdOptions.isModules(),debug_mode:n.CmdOptions.isDebugMode(),log_enabled:n.CmdOptions.isEnableDebugLog(),opt_level:n.CmdOptions.getOptLevel(),opt_log_level:n.CmdOptions.getOptLogLevel()},r=JSON.stringify(t,null,2);r="$"+r.replace(_,"#$")+"$",n.CmdOptions.isEnableDebugLog()&&(d.jsonString+=r),e.stdio[3].write(r+"\n")}static dumpPandaGen(e,t,r){let i,p,f,g,m,y,h=e.internalName,v=d.getFuncSignature(e),b=d.getFuncInsnsAndRegsNum(e),x=e.getSourceFileDebugInfo(),D=e.getCallType(),S=e.getLocals();if(n.CmdOptions.needRecordType()&&u.CompilerDriver.isTsFile&&(i=new Array,S.forEach((e=>{i.push(e.getTypeIndex()),n.CmdOptions.enableTypeLog()&&(console.log("---------------------------------------"),console.log("- vreg name:",e.getVariableName()),console.log("- vreg local num:",e.num),console.log("- vreg type:",e.getTypeIndex()))})),"func_main_0"==h)){let e=o.PandaGen.getExportedTypes(),t=o.PandaGen.getDeclaredTypes();0!=e.size&&(p=new Array,e.forEach(((e,t)=>{let r=new s.ExportedSymbol2Type(t,e);p.push(r)}))),0!=t.size&&(f=new Array,t.forEach(((e,t)=>{let r=new s.DeclaredSymbol2Type(t,e);f.push(r)})))}n.CmdOptions.isDebugMode()?(g=e.getVariableDebugInfoArray(),m=e.getSourceCodeDebugInfo()):(g=void 0,m=void 0);let E=(0,c.generateCatchTables)(e.getCatchMap());E?(y=[],E.forEach((e=>{let t=e.getCatchBeginLabel();e.getLabelPairs().forEach((e=>{y.push(new s.CatchTable(d.labelPrefix+e.getBeginLabel().id,d.labelPrefix+e.getEndLabel().id,d.labelPrefix+t.id))}))}))):y=void 0;let T=new s.Function(h,v,b.regsNum,b.insns,b.labels,g,y,x,m,D,i,p,f);(0,a.LOGD)(T);let C={t:0,fb:T},k=(0,l.escapeUnicode)(JSON.stringify(C,null,2));k="$"+k.replace(_,"#$")+"$",n.CmdOptions.isEnableDebugLog()&&(d.jsonString+=k),t.stdio[3].write(k+"\n")}static clearDumpData(){d.strings.clear(),d.jsonString=""}}t.Ts2Panda=d,d.strings=new Set,d.labelPrefix="L_",d.jsonString=""},"./src/typeChecker.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeChecker=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/typeSystem.ts"),c=a(r("./src/jshelpers.js")),l=r("./src/log.ts"),u=r("./src/strictMode.ts"),_=r("./src/typeRecorder.ts");class d{constructor(){this.compiledTypeChecker=null}static getInstance(){return d.instance||(d.instance=new d),d.instance}setTypeChecker(e){this.compiledTypeChecker=e}getTypeChecker(){return this.compiledTypeChecker}getTypeAtLocation(e){if(e)try{return this.compiledTypeChecker.getTypeAtLocation(e)}catch(t){return void(0,l.LOGD)("Get getTypeAtLocation filed for : "+e.getFullText())}}getTypeDeclForIdentifier(e){if(!e)return;let t;try{t=this.compiledTypeChecker.getSymbolAtLocation(e)}catch(t){return void(0,l.LOGD)("Get getSymbolAtLocation filed for : "+e.getFullText())}return t&&t.declarations?t.declarations[0]:void 0}hasExportKeyword(e){if(e.modifiers)for(let t of e.modifiers)if(t.kind===o.SyntaxKind.ExportKeyword)return!0;return!1}hasDeclareKeyword(e){if(e.modifiers)for(let t of e.modifiers)if(t.kind===o.SyntaxKind.DeclareKeyword)return!0;return!1}getDeclNodeForInitializer(e){switch(e.kind){case o.SyntaxKind.Identifier:return this.getTypeDeclForIdentifier(e);case o.SyntaxKind.NewExpression:let t=e.expression;return t.kind==o.SyntaxKind.ClassExpression?t:this.getTypeDeclForIdentifier(t);case o.SyntaxKind.ClassExpression:case o.SyntaxKind.PropertyAccessExpression:return e;default:return}}getTypeForClassDeclOrExp(e,t){let r=_.TypeRecorder.getInstance().tryGetTypeIndex(e);return r==s.PrimitiveType.ANY&&(r=new s.ClassType(e).shiftedTypeIndex),t&&(_.TypeRecorder.getInstance().hasClass2InstanceMap(r)||new s.ClassInstType(r),r=_.TypeRecorder.getInstance().getClass2InstanceMap(r)),r}getTypeForPropertyAccessExpression(e){let t=e,r=c.getTextOfIdentifierOrLiteral(t.expression),n=c.getTextOfIdentifierOrLiteral(t.name);if(_.TypeRecorder.getInstance().inNampespaceMap(r)){let e=_.TypeRecorder.getInstance().getPathForNamespace(r);return new s.ExternalType(n,e).shiftedTypeIndex}return s.PrimitiveType.ANY}getInterfaceDeclaration(e){let t=_.TypeRecorder.getInstance().tryGetTypeIndex(e);return t==s.PrimitiveType.ANY&&(t=new s.InterfaceType(e).shiftedTypeIndex),t}getTypeFromDecl(e,t){if(!e)return s.PrimitiveType.ANY;switch(e.kind){case o.SyntaxKind.ClassDeclaration:case o.SyntaxKind.ClassExpression:return this.getTypeForClassDeclOrExp(e,t);case o.SyntaxKind.ImportSpecifier:case o.SyntaxKind.ImportClause:let r=_.TypeRecorder.getInstance().tryGetTypeIndex(e);return r!=s.PrimitiveType.ANY?r:s.PrimitiveType.ANY;case o.SyntaxKind.PropertyAccessExpression:return this.getTypeForPropertyAccessExpression(e);case o.SyntaxKind.InterfaceDeclaration:return this.getInterfaceDeclaration(e);default:return s.PrimitiveType.ANY}}getTypeFromAnotation(e){if(!e)return s.PrimitiveType.ANY;switch(e.kind){case o.SyntaxKind.StringKeyword:case o.SyntaxKind.NumberKeyword:case o.SyntaxKind.BooleanKeyword:case o.SyntaxKind.SymbolKeyword:case o.SyntaxKind.UndefinedKeyword:case o.SyntaxKind.VoidKeyword:case o.SyntaxKind.LiteralType:let t=e.getText().toUpperCase(),r=s.PrimitiveType.ANY;return t&&t in s.PrimitiveType&&(r=s.PrimitiveType[t]),r;case o.SyntaxKind.UnionType:return new s.UnionType(e).shiftedTypeIndex;case o.SyntaxKind.ArrayType:return new s.ArrayType(e).shiftedTypeIndex;case o.SyntaxKind.ParenthesizedType:let n=e.type;return n.kind==o.SyntaxKind.UnionType?new s.UnionType(n).shiftedTypeIndex:s.PrimitiveType.ANY;case o.SyntaxKind.TypeLiteral:return new s.ObjectType(e).shiftedTypeIndex;default:return s.PrimitiveType.ANY}}getOrCreateRecordForDeclNode(e,t){if(!e)return s.PrimitiveType.ANY;let r=s.PrimitiveType.ANY,n=this.getDeclNodeForInitializer(e);return r=this.getTypeFromDecl(n,e.kind==o.SyntaxKind.NewExpression),t&&_.TypeRecorder.getInstance().setVariable2Type(t,r),r}getOrCreateRecordForTypeNode(e,t){if(!e)return s.PrimitiveType.ANY;let r=s.PrimitiveType.ANY;if(r=this.getTypeFromAnotation(e),r==s.PrimitiveType.ANY&&e.kind==o.SyntaxKind.TypeReference){let t=e.getChildAt(0),n=this.getDeclNodeForInitializer(t);r=this.getTypeFromDecl(n,!0)}return t&&_.TypeRecorder.getInstance().setVariable2Type(t,r),r}formatVariableStatement(e){e.declarationList.declarations.forEach((t=>{let r=t.name,n=t.type,i=t.initializer,a=this.getOrCreateRecordForTypeNode(n,r);if(a==s.PrimitiveType.ANY&&(a=this.getOrCreateRecordForDeclNode(i,r)),this.hasExportKeyword(e)&&a!=s.PrimitiveType.ANY){let e=c.getTextOfIdentifierOrLiteral(r);_.TypeRecorder.getInstance().setExportedType(e,a)}}))}formatClassDeclaration(e){let t=new s.ClassType(e).shiftedTypeIndex,r=e.name,n="default";r&&(n=c.getTextOfIdentifierOrLiteral(r)),this.hasExportKeyword(e)?_.TypeRecorder.getInstance().setExportedType(n,t):this.hasDeclareKeyword(e)&&(0,u.isGlobalDeclare)()&&_.TypeRecorder.getInstance().setDeclaredType(n,t)}formatNodeType(e,t){if(null!==this.compiledTypeChecker)switch(e.kind){case o.SyntaxKind.VariableStatement:let r=o.getOriginalNode(e);this.formatVariableStatement(r);break;case o.SyntaxKind.FunctionDeclaration:let n=o.getOriginalNode(e),i=n.name?n.name:void 0,a=new s.FunctionType(n);i&&_.TypeRecorder.getInstance().setVariable2Type(i,a.shiftedTypeIndex);break;case o.SyntaxKind.ClassDeclaration:let l=o.getOriginalNode(e);(this.hasExportKeyword(e)||this.hasDeclareKeyword(e))&&this.formatClassDeclaration(l);break;case o.SyntaxKind.InterfaceDeclaration:if((0,u.isGlobalDeclare)()){let t=o.getOriginalNode(e),r=new s.InterfaceType(t),n=t.name;if(n){let e=c.getTextOfIdentifierOrLiteral(n);_.TypeRecorder.getInstance().setDeclaredType(e,r.shiftedTypeIndex)}}break;case o.SyntaxKind.ExportDeclaration:t&&_.TypeRecorder.getInstance().addExportedType(t);break;case o.SyntaxKind.ImportDeclaration:t&&_.TypeRecorder.getInstance().addImportedType(t);break;case o.SyntaxKind.ExportAssignment:let d=e.expression,p="default",f=this.getTypeAtLocation(d);if(f){let e=f.getSymbol().valueDeclaration;_.TypeRecorder.getInstance().addNonReExportedType(p,e,d)}}}}t.TypeChecker=d},"./src/typeRecorder.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeRecorder=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/typeSystem.ts"),c=a(r("./src/jshelpers.js")),l=r("./src/typeChecker.ts");class u{constructor(){this.type2Index=new Map,this.variable2Type=new Map,this.userDefinedTypeSet=new Set,this.typeSummary=new s.TypeSummary,this.class2InstanceMap=new Map,this.arrayTypeMap=new Map,this.unionTypeMap=new Map,this.exportedType=new Map,this.declaredType=new Map,this.namespaceMap=new Map,this.anonymousReExport=new Array}static getInstance(){return u.instance}static createInstance(){return u.instance=new u,u.instance}setTypeSummary(){this.typeSummary.setInfo(this.countUserDefinedTypeSet(),this.anonymousReExport)}addUserDefinedTypeSet(e){this.userDefinedTypeSet.add(e)}countUserDefinedTypeSet(){return this.userDefinedTypeSet.size}addType2Index(e,t){this.type2Index.set(e,t),this.addUserDefinedTypeSet(t)}setVariable2Type(e,t){this.variable2Type.set(e,t),t>s.PrimitiveType._LENGTH&&this.addUserDefinedTypeSet(t)}hasType(e){return this.type2Index.has(e)}tryGetTypeIndex(e){return this.type2Index.has(e)?this.type2Index.get(e):s.PrimitiveType.ANY}tryGetVariable2Type(e){return this.variable2Type.has(e)?this.variable2Type.get(e):s.PrimitiveType.ANY}setArrayTypeMap(e,t){this.arrayTypeMap.set(e,t)}hasArrayTypeMapping(e){return this.arrayTypeMap.has(e)}getFromArrayTypeMap(e){return this.arrayTypeMap.get(e)}setUnionTypeMap(e,t){this.unionTypeMap.set(e,t)}hasUnionTypeMapping(e){return this.unionTypeMap.has(e)}getFromUnionTypeMap(e){return this.unionTypeMap.get(e)}setClass2InstanceMap(e,t){this.class2InstanceMap.set(e,t)}hasClass2InstanceMap(e){return this.class2InstanceMap.has(e)}getClass2InstanceMap(e){return this.class2InstanceMap.get(e)}addImportedType(e){if(e.getBindingNodeMap().forEach(((t,r)=>{let n=c.getTextOfIdentifierOrLiteral(t),i=l.TypeChecker.getInstance().getTypeDeclForIdentifier(r),a=new s.ExternalType(n,e.getModuleRequest());this.addType2Index(i,a.shiftedTypeIndex),this.setVariable2Type(r,a.shiftedTypeIndex)})),""!=e.getNameSpace()){this.setNamespaceMap(e.getNameSpace(),e.getModuleRequest());let t=new s.ExternalType("*",e.getNameSpace()).shiftedTypeIndex;this.addUserDefinedTypeSet(t)}}addExportedType(e){if(""!=e.getModuleRequest())if(""!=e.getNameSpace()){let t=new s.ExternalType("*",e.getModuleRequest()).shiftedTypeIndex;this.setExportedType(e.getNameSpace(),t),this.addUserDefinedTypeSet(t)}else 0!=e.getBindingNameMap().size?e.getBindingNameMap().forEach(((t,r)=>{let n=new s.ExternalType(t,e.getModuleRequest()).shiftedTypeIndex;this.setExportedType(r,n),this.addUserDefinedTypeSet(n)})):this.addAnonymousReExport(e.getModuleRequest());else e.getBindingNodeMap().forEach(((e,t)=>{var r;let n=c.getTextOfIdentifierOrLiteral(t),i=null===(r=l.TypeChecker.getInstance().getTypeAtLocation(e).getSymbol())||void 0===r?void 0:r.valueDeclaration;i&&this.addNonReExportedType(n,i,e)}))}addNonReExportedType(e,t,r){let n=this.tryGetTypeIndex(t),i=this.tryGetVariable2Type(t);if(n!=s.PrimitiveType.ANY)this.setExportedType(e,n);else if(i!=s.PrimitiveType.ANY)this.setExportedType(e,i);else{let n=l.TypeChecker.getInstance().getTypeFromDecl(t,r.kind==o.SyntaxKind.NewExpression);this.setExportedType(e,n)}}setExportedType(e,t){this.exportedType.set(e,t)}setDeclaredType(e,t){this.declaredType.set(e,t)}addAnonymousReExport(e){this.anonymousReExport.push(e)}setNamespaceMap(e,t){this.namespaceMap.set(e,t)}inNampespaceMap(e){return this.namespaceMap.has(e)}getPathForNamespace(e){return this.namespaceMap.get(e)}getType2Index(){return this.type2Index}getVariable2Type(){return this.variable2Type}getTypeSet(){return this.userDefinedTypeSet}getExportedType(){return this.exportedType}getDeclaredType(){return this.declaredType}getAnonymousReExport(){return this.anonymousReExport}getNamespaceMap(){return this.namespaceMap}printNodeMap(e){e.forEach(((e,t)=>{console.log(c.getTextOfNode(t)+": "+e)}))}printExportMap(e){e.forEach(((e,t)=>{console.log(t+" : "+e)}))}printReExportMap(e){e.forEach(((e,t)=>{console.log(t+" : "+e)}))}getLog(){console.log("type2Index: "),console.log(this.printNodeMap(this.getType2Index())),console.log("variable2Type: "),console.log(this.printNodeMap(this.getVariable2Type())),console.log("getTypeSet: "),console.log(this.getTypeSet()),console.log("class instance Map:"),console.log(this.class2InstanceMap),console.log("exportedType:"),console.log(this.printExportMap(this.getExportedType())),console.log("AnoymousRedirect:"),console.log(this.getAnonymousReExport()),console.log("namespace Map:"),console.log(this.getNamespaceMap())}}t.TypeRecorder=u},"./src/variable.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariable=t.LocalVariable=t.Variable=t.VarDeclarationKind=void 0;const n=r("./src/scope.ts");var i;!function(e){e[e.NONE=0]="NONE",e[e.LET=1]="LET",e[e.CONST=2]="CONST",e[e.VAR=3]="VAR",e[e.FUNCTION=4]="FUNCTION",e[e.MODULE=5]="MODULE",e[e.CLASS=6]="CLASS"}(i=t.VarDeclarationKind||(t.VarDeclarationKind={}));class a{constructor(e,t){this.declKind=e,this.isLexVar=!1,this.idxLex=0,this.name=t,this.vreg=void 0,this.typeIndex=0}bindVreg(e){this.vreg=e,this.vreg.setTypeIndex(this.typeIndex),this.vreg.setVariableName(this.name)}hasAlreadyBinded(){return void 0!==this.vreg}getVreg(){if(!this.vreg)throw new Error("variable has not been binded");return this.vreg}getName(){return this.name}getTypeIndex(){return this.typeIndex}setTypeIndex(e){return this.typeIndex=e}setLexVar(e){return this.idxLex=e.getLexVarIdx(),e.pendingCreateEnv(),this.isLexVar=!0,this.idxLex}clearLexVar(){this.isLexVar=!1,this.idxLex=0}isLet(){return this.declKind==i.LET}isConst(){return this.declKind==i.CONST}isLetOrConst(){return this.declKind==i.LET||this.declKind==i.CONST}isVar(){return this.declKind==i.VAR}isNone(){return this.declKind==i.NONE}isClass(){return this.declKind==i.CLASS}}t.Variable=a,t.LocalVariable=class extends a{constructor(e,t,r){super(e,t),this.isExport=!1,this.exportedName="",this.status=r||null}initialize(){this.status=n.InitStatus.INITIALIZED}isInitialized(){return null==this.status||this.status==n.InitStatus.INITIALIZED}setExport(){this.isExport=!0}isExportVar(){return this.isExport}setExportedName(e){this.exportedName=e}getExportedName(){if(!this.exportedName)throw new Error("Exported Variable "+this.getName()+" doesn't have exported name");return this.exportedName}},t.GlobalVariable=class extends a{constructor(e,t){super(e,t)}}},"./node_modules/typescript/lib/typescript.js":function(e,t,r){"use strict";var n,i=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)},o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},s=this&&this.__generator||function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},c=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},l=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});!function(e){function t(){var e={};return e.prev=e,{head:e,tail:e,size:0}}function r(e,t){return e===t||e!=e&&t!=t}function n(e){var t=e.prev;if(!t||t===e)throw new Error("Illegal state");return t}function i(e){for(;e;){var t=!e.prev;if(e=e.next,!t)return e}}function a(e,t){for(var i=e.tail;i!==e.head;i=n(i))if(r(i.key,t))return i}function o(e,t,r){var n=a(e,t);if(!n){var i=function(e,t){return{key:e,value:t,next:void 0,prev:void 0}}(t,r);return i.prev=e.tail,e.tail.next=i,e.tail=i,e.size++,i}n.value=r}function s(e,t){for(var i=e.tail;i!==e.head;i=n(i)){if(void 0===i.prev)throw new Error("Illegal state");if(r(i.key,t)){if(i.next)i.next.prev=i.prev;else{if(e.tail!==i)throw new Error("Illegal state");e.tail=i.prev}return i.prev.next=i.next,i.next=i.prev,i.prev=void 0,e.size--,i}}}function c(e){for(var t=e.tail;t!==e.head;){var r=n(t);t.next=e.head,t.prev=void 0,t=r}e.head.next=void 0,e.tail=e.head,e.size=0}function l(e,t){for(var r=e.head;r;)(r=i(r))&&t(r.value,r.key)}function u(e,t){if(e)for(var r=e.next();!r.done;r=e.next())t(r.value)}function _(e,t){return{current:e.head,selector:t}}function d(e){return e.current=i(e.current),e.current?{value:e.selector(e.current.key,e.current.value),done:!1}:{value:void 0,done:!0}}var p;(p=e.ShimCollections||(e.ShimCollections={})).createMapShim=function(e){var r=function(){function e(e,t){this._data=_(e,t)}return e.prototype.next=function(){return d(this._data)},e}();return function(){function n(r){var n=this;this._mapData=t(),u(e(r),(function(e){var t=e[0],r=e[1];return n.set(t,r)}))}return Object.defineProperty(n.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.get=function(e){var t;return null===(t=a(this._mapData,e))||void 0===t?void 0:t.value},n.prototype.set=function(e,t){return o(this._mapData,e,t),this},n.prototype.has=function(e){return!!a(this._mapData,e)},n.prototype.delete=function(e){return!!s(this._mapData,e)},n.prototype.clear=function(){c(this._mapData)},n.prototype.keys=function(){return new r(this._mapData,(function(e,t){return e}))},n.prototype.values=function(){return new r(this._mapData,(function(e,t){return t}))},n.prototype.entries=function(){return new r(this._mapData,(function(e,t){return[e,t]}))},n.prototype.forEach=function(e){l(this._mapData,e)},n}()},p.createSetShim=function(e){var r=function(){function e(e,t){this._data=_(e,t)}return e.prototype.next=function(){return d(this._data)},e}();return function(){function n(r){var n=this;this._mapData=t(),u(e(r),(function(e){return n.add(e)}))}return Object.defineProperty(n.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.add=function(e){return o(this._mapData,e,e),this},n.prototype.has=function(e){return!!a(this._mapData,e)},n.prototype.delete=function(e){return!!s(this._mapData,e)},n.prototype.clear=function(){c(this._mapData)},n.prototype.keys=function(){return new r(this._mapData,(function(e,t){return e}))},n.prototype.values=function(){return new r(this._mapData,(function(e,t){return t}))},n.prototype.entries=function(){return new r(this._mapData,(function(e,t){return[e,t]}))},n.prototype.forEach=function(e){l(this._mapData,e)},n}()}}(u||(u={})),function(e){var t,r;e.versionMajorMinor="4.4",e.version="4.4.3",(r=e.Comparison||(e.Comparison={}))[r.LessThan=-1]="LessThan",r[r.EqualTo=0]="EqualTo",r[r.GreaterThan=1]="GreaterThan",(t=e.NativeCollections||(e.NativeCollections={})).tryGetNativeMap=function(){return"undefined"!=typeof Map&&"entries"in Map.prototype&&1===new Map([[0,0]]).size?Map:void 0},t.tryGetNativeSet=function(){return"undefined"!=typeof Set&&"entries"in Set.prototype&&1===new Set([0]).size?Set:void 0}}(u||(u={})),function(e){function t(t,n,i){var a,o=null!==(a=e.NativeCollections[n]())&&void 0!==a?a:null===e.ShimCollections||void 0===e.ShimCollections?void 0:e.ShimCollections[i](r);if(o)return o;throw new Error("TypeScript requires an environment that provides a compatible native "+t+" implementation.")}function r(t){if(t){if(A(t))return g(t);if(t instanceof e.Map)return t.entries();if(t instanceof e.Set)return t.values();throw new Error("Iteration not supported.")}}function n(e,t,r){if(void 0===r&&(r=L),e)for(var n=0,i=e;n<i.length;n++)if(r(i[n],t))return!0;return!1}function a(e,t){if(e){if(!t)return e.length>0;for(var r=0,n=e;r<n.length;r++)if(t(n[r]))return!0}return!1}function o(e,t){return a(t)?a(e)?i(i([],e,!0),t,!0):t:e}function s(e,t){return t}function c(e){return e.map(s)}function l(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function u(e,t){return t<0?e.length+t:t}function _(e,t,r,n){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(r,n);r=void 0===r?0:u(t,r),n=void 0===n?t.length:u(t,n);for(var i=r;i<n&&i<t.length;i++)void 0!==t[i]&&e.push(t[i]);return e}function d(e,t,r){return!n(e,t,r)&&(e.push(t),!0)}function p(e,t,r){t.sort((function(t,n){return r(e[t],e[n])||R(t,n)}))}function f(e,t){return 0===e.length?e:e.slice().sort(t)}function g(e){var t=0;return{next:function(){return t===e.length?{value:void 0,done:!0}:(t++,{value:e[t-1],done:!1})}}}function m(e,t,r,n,i){return y(e,r(t),r,n,i)}function y(e,t,r,n,i){if(!a(e))return-1;for(var o=i||0,s=e.length-1;o<=s;){var c=o+(s-o>>1);switch(n(r(e[c],c),t)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function h(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===n||n<0?0:n,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}e.Map=t("Map","tryGetNativeMap","createMapShim"),e.Set=t("Set","tryGetNativeSet","createSetShim"),e.getIterator=r,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.createMap=function(){return new e.Map},e.createMapFromTemplate=function(t){var r=new e.Map;for(var n in t)v.call(t,n)&&r.set(n,t[n]);return r},e.length=function(e){return e?e.length:0},e.forEach=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}},e.forEachRight=function(e,t){if(e)for(var r=e.length-1;r>=0;r--){var n=t(e[r],r);if(n)return n}},e.firstDefined=function(e,t){if(void 0!==e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(void 0!==n)return n}},e.firstDefinedIterator=function(e,t){for(;;){var r=e.next();if(r.done)return;var n=t(r.value);if(void 0!==n)return n}},e.reduceLeftIterator=function(e,t,r){var n=r;if(e)for(var i=e.next(),a=0;!i.done;i=e.next(),a++)n=t(n,i.value,a);return n},e.zipWith=function(t,r,n){var i=[];e.Debug.assertEqual(t.length,r.length);for(var a=0;a<t.length;a++)i.push(n(t[a],r[a],a));return i},e.zipToIterator=function(t,r){e.Debug.assertEqual(t.length,r.length);var n=0;return{next:function(){return n===t.length?{value:void 0,done:!0}:(n++,{value:[t[n-1],r[n-1]],done:!1})}}},e.zipToMap=function(t,r){e.Debug.assert(t.length===r.length);for(var n=new e.Map,i=0;i<t.length;++i)n.set(t[i],r[i]);return n},e.intersperse=function(e,t){if(e.length<=1)return e;for(var r=[],n=0,i=e.length;n<i;n++)n&&r.push(t),r.push(e[n]);return r},e.every=function(e,t){if(e)for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0},e.find=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n,r))return n}},e.findLast=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(t(n,r))return n}},e.findIndex=function(e,t,r){for(var n=r||0;n<e.length;n++)if(t(e[n],n))return n;return-1},e.findLastIndex=function(e,t,r){for(var n=void 0===r?e.length-1:r;n>=0;n--)if(t(e[n],n))return n;return-1},e.findMap=function(t,r){for(var n=0;n<t.length;n++){var i=r(t[n],n);if(i)return i}return e.Debug.fail()},e.contains=n,e.arraysEqual=function(e,t,r){return void 0===r&&(r=L),e.length===t.length&&e.every((function(e,n){return r(e,t[n])}))},e.indexOfAnyCharCode=function(e,t,r){for(var i=r||0;i<e.length;i++)if(n(t,e.charCodeAt(i)))return i;return-1},e.countWhere=function(e,t){var r=0;if(e)for(var n=0;n<e.length;n++)t(e[n],n)&&r++;return r},e.filter=function(e,t){if(e){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;if(n<r){var i=e.slice(0,n);for(n++;n<r;){var a=e[n];t(a)&&i.push(a),n++}return i}}return e},e.filterMutate=function(e,t){for(var r=0,n=0;n<e.length;n++)t(e[n],n,e)&&(e[r]=e[n],r++);e.length=r},e.clear=function(e){e.length=0},e.map=function(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++)r.push(t(e[n],n))}return r},e.mapIterator=function(e,t){return{next:function(){var r=e.next();return r.done?r:{value:t(r.value),done:!1}}}},e.sameMap=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=e[r],i=t(n,r);if(n!==i){var a=e.slice(0,r);for(a.push(i),r++;r<e.length;r++)a.push(t(e[r],r));return a}}return e},e.flatten=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];i&&(A(i)?_(t,i):t.push(i))}return t},e.flatMap=function(t,r){var n;if(t)for(var i=0;i<t.length;i++){var a=r(t[i],i);a&&(n=A(a)?_(n,a):l(n,a))}return n||e.emptyArray},e.flatMapToMutable=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);i&&(A(i)?_(r,i):r.push(i))}return r},e.flatMapIterator=function(t,r){var n=t.next();if(n.done)return e.emptyIterator;var i=a(n.value);return{next:function(){for(;;){var e=i.next();if(!e.done)return e;var r=t.next();if(r.done)return r;i=a(r.value)}}};function a(t){var n=r(t);return void 0===n?e.emptyIterator:A(n)?g(n):n}},e.sameFlatMap=function(e,t){var r;if(e)for(var n=0;n<e.length;n++){var i=e[n],a=t(i,n);(r||i!==a||A(a))&&(r||(r=e.slice(0,n)),A(a)?_(r,a):r.push(a))}return r||e},e.mapAllOrFail=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);if(void 0===i)return;r.push(i)}return r},e.mapDefined=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);void 0!==i&&r.push(i)}return r},e.mapDefinedIterator=function(e,t){return{next:function(){for(;;){var r=e.next();if(r.done)return r;var n=t(r.value);if(void 0!==n)return{value:n,done:!1}}}}},e.mapDefinedEntries=function(t,r){if(t){var n=new e.Map;return t.forEach((function(e,t){var i=r(t,e);if(void 0!==i){var a=i[0],o=i[1];void 0!==a&&void 0!==o&&n.set(a,o)}})),n}},e.mapDefinedValues=function(t,r){if(t){var n=new e.Set;return t.forEach((function(e){var t=r(e);void 0!==t&&n.add(t)})),n}},e.getOrUpdate=function(e,t,r){if(e.has(t))return e.get(t);var n=r();return e.set(t,n),n},e.tryAddToSet=function(e,t){return!e.has(t)&&(e.add(t),!0)},e.emptyIterator={next:function(){return{value:void 0,done:!0}}},e.singleIterator=function(e){var t=!1;return{next:function(){var r=t;return t=!0,r?{value:void 0,done:!0}:{value:e,done:!1}}}},e.spanMap=function(e,t,r){var n;if(e){n=[];for(var i=e.length,a=void 0,o=void 0,s=0,c=0;s<i;){for(;c<i;){if(o=t(e[c],c),0===c)a=o;else if(o!==a)break;c++}if(s<c){var l=r(e.slice(s,c),a,s,c);l&&n.push(l),s=c}a=o,c++}}return n},e.mapEntries=function(t,r){if(t){var n=new e.Map;return t.forEach((function(e,t){var i=r(t,e),a=i[0],o=i[1];n.set(a,o)})),n}},e.some=a,e.getRangesWhere=function(e,t,r){for(var n,i=0;i<e.length;i++)t(e[i])?n=void 0===n?i:n:void 0!==n&&(r(n,i),n=void 0);void 0!==n&&r(n,e.length)},e.concatenate=o,e.indicesOf=c,e.deduplicate=function(e,t,r){return 0===e.length?[]:1===e.length?e.slice():r?function(e,t,r){var n=c(e);p(e,n,r);for(var i=e[n[0]],a=[n[0]],o=1;o<n.length;o++){var s=n[o],l=e[s];t(i,l)||(a.push(s),i=l)}return a.sort(),a.map((function(t){return e[t]}))}(e,t,r):function(e,t){for(var r=[],n=0,i=e;n<i.length;n++)d(r,i[n],t);return r}(e,t)},e.insertSorted=function(e,t,r){if(0!==e.length){var n=m(e,t,F,r);n<0&&e.splice(~n,0,t)}else e.push(t)},e.sortAndDeduplicate=function(t,r,n){return function(t,r){if(0===t.length)return e.emptyArray;for(var n=t[0],i=[n],a=1;a<t.length;a++){var o=t[a];switch(r(o,n)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}i.push(n=o)}return i}(f(t,r),n||r||j)},e.arrayIsSorted=function(e,t){if(e.length<2)return!0;for(var r=e[0],n=0,i=e.slice(1);n<i.length;n++){var a=i[n];if(1===t(r,a))return!1;r=a}return!0},e.arrayIsEqualTo=function(e,t,r){if(void 0===r&&(r=L),!e||!t)return e===t;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!r(e[n],t[n],n))return!1;return!0},e.compact=function(e){var t;if(e)for(var r=0;r<e.length;r++){var n=e[r];!t&&n||(t||(t=e.slice(0,r)),n&&t.push(n))}return t||e},e.relativeComplement=function(t,r,n){if(!r||!t||0===r.length||0===t.length)return r;var i=[];e:for(var a=0,o=0;o<r.length;o++){o>0&&e.Debug.assertGreaterThanOrEqual(n(r[o],r[o-1]),0);t:for(var s=a;a<t.length;a++)switch(a>s&&e.Debug.assertGreaterThanOrEqual(n(t[a],t[a-1]),0),n(r[o],t[a])){case-1:i.push(r[o]);continue e;case 0:continue e;case 1:continue t}}return i},e.sum=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++)r+=i[n][t];return r},e.append=l,e.combine=function(e,t){return void 0===e?t:void 0===t?e:A(e)?A(t)?o(e,t):l(e,t):A(t)?l(t,e):[e,t]},e.addRange=_,e.pushIfUnique=d,e.appendIfUnique=function(e,t,r){return e?(d(e,t,r),e):[t]},e.sort=f,e.arrayIterator=g,e.arrayReverseIterator=function(e){var t=e.length;return{next:function(){return 0===t?{value:void 0,done:!0}:(t--,{value:e[t],done:!1})}}},e.stableSort=function(e,t){var r=c(e);return p(e,r,t),r.map((function(t){return e[t]}))},e.rangeEquals=function(e,t,r,n){for(;r<n;){if(e[r]!==t[r])return!1;r++}return!0},e.elementAt=function(e,t){if(e&&(t=u(e,t))<e.length)return e[t]},e.firstOrUndefined=function(e){return 0===e.length?void 0:e[0]},e.first=function(t){return e.Debug.assert(0!==t.length),t[0]},e.lastOrUndefined=function(e){return 0===e.length?void 0:e[e.length-1]},e.last=function(t){return e.Debug.assert(0!==t.length),t[t.length-1]},e.singleOrUndefined=function(e){return e&&1===e.length?e[0]:void 0},e.singleOrMany=function(e){return e&&1===e.length?e[0]:e},e.replaceElement=function(e,t,r){var n=e.slice(0);return n[t]=r,n},e.binarySearch=m,e.binarySearchKey=y,e.reduceLeft=h;var v=Object.prototype.hasOwnProperty;function b(e,t){return v.call(e,t)}function x(e){var t=[];for(var r in e)v.call(e,r)&&t.push(r);return t}e.hasProperty=b,e.getProperty=function(e,t){return v.call(e,t)?e[t]:void 0},e.getOwnKeys=x,e.getAllKeys=function(e){var t=[];do{for(var r=0,n=Object.getOwnPropertyNames(e);r<n.length;r++)d(t,n[r])}while(e=Object.getPrototypeOf(e));return t},e.getOwnValues=function(e){var t=[];for(var r in e)v.call(e,r)&&t.push(e[r]);return t};var D=Object.entries||function(e){for(var t=x(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=[t[n],e[t[n]]];return r};function S(e,t){for(var r=[],n=e.next();!n.done;n=e.next())r.push(t?t(n.value):n.value);return r}function E(e,t,r){void 0===r&&(r=F);for(var n=T(),i=0,a=e;i<a.length;i++){var o=a[i];n.add(t(o),r(o))}return n}function T(){var t=new e.Map;return t.add=C,t.remove=k,t}function C(e,t){var r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function k(e,t){var r=this.get(e);r&&(q(r,t),r.length||this.delete(e))}function A(e){return Array.isArray?Array.isArray(e):e instanceof Array}function N(e){}function F(e){return e}function w(e){return e.toLowerCase()}e.getEntries=function(e){return e?D(e):[]},e.arrayOf=function(e,t){for(var r=new Array(e),n=0;n<e;n++)r[n]=t(n);return r},e.arrayFrom=S,e.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++){var a=i[n];if(void 0!==a)for(var o in a)b(a,o)&&(e[o]=a[o])}return e},e.equalOwnProperties=function(e,t,r){if(void 0===r&&(r=L),e===t)return!0;if(!e||!t)return!1;for(var n in e)if(v.call(e,n)){if(!v.call(t,n))return!1;if(!r(e[n],t[n]))return!1}for(var n in t)if(v.call(t,n)&&!v.call(e,n))return!1;return!0},e.arrayToMap=function(t,r,n){void 0===n&&(n=F);for(var i=new e.Map,a=0,o=t;a<o.length;a++){var s=o[a],c=r(s);void 0!==c&&i.set(c,n(s))}return i},e.arrayToNumericMap=function(e,t,r){void 0===r&&(r=F);for(var n=[],i=0,a=e;i<a.length;i++){var o=a[i];n[t(o)]=r(o)}return n},e.arrayToMultiMap=E,e.group=function(e,t,r){return void 0===r&&(r=F),S(E(e,t).values(),r)},e.clone=function(e){var t={};for(var r in e)v.call(e,r)&&(t[r]=e[r]);return t},e.extend=function(e,t){var r={};for(var n in t)v.call(t,n)&&(r[n]=t[n]);for(var n in e)v.call(e,n)&&(r[n]=e[n]);return r},e.copyProperties=function(e,t){for(var r in t)v.call(t,r)&&(e[r]=t[r])},e.maybeBind=function(e,t){return t?t.bind(e):void 0},e.createMultiMap=T,e.createUnderscoreEscapedMultiMap=function(){return T()},e.isArray=A,e.toArray=function(e){return A(e)?e:[e]},e.isString=function(e){return"string"==typeof e},e.isNumber=function(e){return"number"==typeof e},e.tryCast=function(e,t){return void 0!==e&&t(e)?e:void 0},e.cast=function(t,r){return void 0!==t&&r(t)?t:e.Debug.fail("Invalid cast. The supplied value "+t+" did not pass the test '"+e.Debug.getFunctionName(r)+"'.")},e.noop=N,e.returnFalse=function(){return!1},e.returnTrue=function(){return!0},e.returnUndefined=function(){},e.identity=F,e.toLowerCase=w;var P,I=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function O(e){return I.test(e)?e.replace(I,w):e}function L(e,t){return e===t}function M(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function R(e,t){return M(e,t)}function B(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function j(e,t){return M(e,t)}e.toFileNameLowerCase=O,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},e.memoizeOne=function(t){var r=new e.Map;return function(e){var n=typeof e+":"+e,i=r.get(n);return void 0!==i||r.has(n)||(i=t(e),r.set(n,i)),i}},e.compose=function(e,t,r,n,i){if(i){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return function(e){return h(a,(function(e,t){return t(e)}),e)}}return n?function(i){return n(r(t(e(i))))}:r?function(n){return r(t(e(n)))}:t?function(r){return t(e(r))}:e?function(t){return e(t)}:function(e){return e}},(P=e.AssertionLevel||(e.AssertionLevel={}))[P.None=0]="None",P[P.Normal=1]="Normal",P[P.Aggressive=2]="Aggressive",P[P.VeryAggressive=3]="VeryAggressive",e.equateValues=L,e.equateStringsCaseInsensitive=function(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()},e.equateStringsCaseSensitive=function(e,t){return L(e,t)},e.compareValues=R,e.compareTextSpans=function(e,t){return R(null==e?void 0:e.start,null==t?void 0:t.start)||R(null==e?void 0:e.length,null==t?void 0:t.length)},e.min=function(e,t,r){return-1===r(e,t)?e:t},e.compareStringsCaseInsensitive=B,e.compareStringsCaseSensitive=j,e.getStringComparer=function(e){return e?B:j};var J,V,U=function(){var e,t,r="object"==typeof Intl&&"function"==typeof Intl.Collator?i:"function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0?a:o;return function(n){return void 0===n?e||(e=r(n)):"en-US"===n?t||(t=r(n)):r(n)};function n(e,t,r){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;var n=r(e,t);return n<0?-1:n>0?1:0}function i(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,r){return n(e,r,t)}}function a(e){return void 0!==e?o():function(e,r){return n(e,r,t)};function t(e,t){return e.localeCompare(t)}}function o(){return function(t,r){return n(t,r,e)};function e(e,r){return t(e.toUpperCase(),r.toUpperCase())||t(e,r)}function t(e,t){return e<t?-1:e>t?1:0}}}();function K(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+.01,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=Math.ceil(o>r?o-r:1),l=Math.floor(t.length>r+o?r+o:t.length);i[0]=o;for(var u=o,_=1;_<c;_++)i[_]=a;for(_=c;_<=l;_++){var d=e[o-1].toLowerCase()===t[_-1].toLowerCase()?n[_-1]+.1:n[_-1]+2,p=s===t.charCodeAt(_-1)?n[_-1]:Math.min(n[_]+1,i[_-1]+1,d);i[_]=p,u=Math.min(u,p)}for(_=l+1;_<=t.length;_++)i[_]=a;if(u>r)return;var f=n;n=i,i=f}var g=n[t.length];return g>r?void 0:g}function z(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function G(e,t){for(var r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function W(e,t){e[t]=e[e.length-1],e.pop()}function q(e,t){return function(e,r){for(var n=0;n<e.length;n++)if(e[n]===t)return W(e,n),!0;return!1}(e)}function H(e,t){return 0===e.lastIndexOf(t,0)}function Y(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&H(t,r)&&z(t,n)}function X(e,t,r,n){for(var i=0,a=e[n];i<a.length;i++){var o=a[i],s=void 0;r?(s=r.slice()).push(o):s=[o],n===e.length-1?t.push(s):X(e,t,s,n+1)}}e.getUILocale=function(){return V},e.setUILocale=function(e){V!==e&&(V=e,J=void 0)},e.compareStringsCaseSensitiveUI=function(e,t){return(J||(J=U(V)))(e,t)},e.compareProperties=function(e,t,r,n){return e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r])},e.compareBooleans=function(e,t){return R(e?1:0,t?1:0)},e.getSpellingSuggestion=function(t,r,n){for(var i,a=Math.min(2,Math.floor(.34*t.length)),o=Math.floor(.4*t.length)+1,s=0,c=r;s<c.length;s++){var l=c[s],u=n(l);if(void 0!==u&&Math.abs(u.length-t.length)<=a){if(u===t)continue;if(u.length<3&&u.toLowerCase()!==t.toLowerCase())continue;var _=K(t,u,o-.1);if(void 0===_)continue;e.Debug.assert(_<o),o=_,i=l}}return i},e.endsWith=z,e.removeSuffix=function(e,t){return z(e,t)?e.slice(0,e.length-t.length):e},e.tryRemoveSuffix=function(e,t){return z(e,t)?e.slice(0,e.length-t.length):void 0},e.stringContains=function(e,t){return-1!==e.indexOf(t)},e.removeMinAndVersionNumbers=function(e){for(var t=e.length,r=t-1;r>0;r--){var n=e.charCodeAt(r);if(n>=48&&n<=57)do{--r,n=e.charCodeAt(r)}while(r>0&&n>=48&&n<=57);else{if(!(r>4)||110!==n&&78!==n)break;if(--r,105!==(n=e.charCodeAt(r))&&73!==n)break;if(--r,109!==(n=e.charCodeAt(r))&&77!==n)break;--r,n=e.charCodeAt(r)}if(45!==n&&46!==n)break;t=r}return t===e.length?e:e.slice(0,t)},e.orderedRemoveItem=function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return G(e,r),!0;return!1},e.orderedRemoveItemAt=G,e.unorderedRemoveItemAt=W,e.unorderedRemoveItem=q,e.createGetCanonicalFileName=function(e){return e?F:O},e.patternText=function(e){return e.prefix+"*"+e.suffix},e.matchedText=function(t,r){return e.Debug.assert(Y(t,r)),r.substring(t.prefix.length,r.length-t.suffix.length)},e.findBestPatternMatch=function(e,t,r){for(var n,i=-1,a=0,o=e;a<o.length;a++){var s=o[a],c=t(s);Y(c,r)&&c.prefix.length>i&&(i=c.prefix.length,n=s)}return n},e.startsWith=H,e.removePrefix=function(e,t){return H(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=F),H(r(e),r(t))?e.substring(t.length):void 0},e.and=function(e,t){return function(r){return e(r)&&t(r)}},e.or=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0,i=e;n<i.length;n++){var a=i[n];if(a.apply(void 0,t))return!0}return!1}},e.not=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!e.apply(void 0,t)}},e.assertType=function(e){},e.singleElementArray=function(e){return void 0===e?void 0:[e]},e.enumerateInsertsAndDeletes=function(e,t,r,n,i,a){a=a||N;for(var o=0,s=0,c=e.length,l=t.length,u=!1;o<c&&s<l;){var _=e[o],d=t[s],p=r(_,d);-1===p?(n(_),o++,u=!0):1===p?(i(d),s++,u=!0):(a(d,_),o++,s++)}for(;o<c;)n(e[o++]),u=!0;for(;s<l;)i(t[s++]),u=!0;return u},e.fill=function(e,t){for(var r=Array(e),n=0;n<e;n++)r[n]=t(n);return r},e.cartesianProduct=function(e){var t=[];return X(e,t,void 0,0),t},e.padLeft=function(e,t,r){return void 0===r&&(r=" "),t<=e.length?e:r.repeat(t-e.length)+e},e.padRight=function(e,t,r){return void 0===r&&(r=" "),t<=e.length?e:e+r.repeat(t-e.length)},e.takeWhile=function(e,t){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;return e.slice(0,n)},e.trimString=String.prototype.trim?function(e){return e.trim()}:function(t){return e.trimStringEnd(e.trimStringStart(t))},e.trimStringEnd=String.prototype.trimEnd?function(e){return e.trimEnd()}:function(t){for(var r=t.length-1;r>=0&&e.isWhiteSpaceLike(t.charCodeAt(r));)r--;return t.slice(0,r+1)},e.trimStringStart=String.prototype.trimStart?function(e){return e.trimStart()}:function(e){return e.replace(/^\s+/g,"")}}(u||(u={})),function(e){var t;!function(e){e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose"}(t=e.LogLevel||(e.LogLevel={})),function(r){var n,i,a=0;function o(){return null!=n?n:n=new e.Version(e.version)}function s(e){return r.currentLogLevel<=e}function c(e,t){r.loggingHost&&s(e)&&r.loggingHost.log(e,t)}function l(e){c(t.Info,e)}r.currentLogLevel=t.Warning,r.isDebugging=!1,r.getTypeScriptVersion=o,r.shouldLog=s,r.log=l,(i=l=r.log||(r.log={})).error=function(e){c(t.Error,e)},i.warn=function(e){c(t.Warning,e)},i.log=function(e){c(t.Info,e)},i.trace=function(e){c(t.Verbose,e)};var u={};function _(e){return a>=e}function d(t,n){return!!_(t)||(u[n]={level:t,assertion:r[n]},r[n]=e.noop,!1)}function p(e,t){var r=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||p),r}function f(e,t,r,n){e||(t=t?"False expression: "+t:"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),p(t,n||f))}function g(e,t,r){null==e&&p(t,r||g)}function m(e,t,r){return g(e,t,r||m),e}function y(e,t,r){for(var n=0,i=e;n<i.length;n++)g(i[n],t,r||y)}function h(e,t,r){return y(e,t,r||h),e}function v(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),r=/^function\s+([\w\$]+)\s*\(/.exec(t);return r?r[1]:""}function b(t,r,n){void 0===t&&(t=0);var i=function(t){var r=[];for(var n in t){var i=t[n];"number"==typeof i&&r.push([i,n])}return e.stableSort(r,(function(t,r){return e.compareValues(t[0],r[0])}))}(r);if(0===t)return i.length>0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a="",o=t,s=0,c=i;s<c.length;s++){var l=c[s],u=l[0],_=l[1];if(u>t)break;0!==u&&u&t&&(a=a+(a?"|":"")+_,o&=~u)}if(0===o)return a}else for(var d=0,p=i;d<p.length;d++){var f=p[d];if(u=f[0],_=f[1],u===t)return _}return t.toString()}function x(t){return b(t,e.SyntaxKind,!1)}function D(t){return b(t,e.NodeFlags,!0)}function S(t){return b(t,e.ModifierFlags,!0)}function E(t){return b(t,e.TransformFlags,!0)}function T(t){return b(t,e.EmitFlags,!0)}function C(t){return b(t,e.SymbolFlags,!0)}function k(t){return b(t,e.TypeFlags,!0)}function A(t){return b(t,e.SignatureFlags,!0)}function N(t){return b(t,e.ObjectFlags,!0)}function F(t){return b(t,e.FlowFlags,!0)}r.getAssertionLevel=function(){return a},r.setAssertionLevel=function(t){var n=a;if(a=t,t>n)for(var i=0,o=e.getOwnKeys(u);i<o.length;i++){var s=o[i],c=u[s];void 0!==c&&r[s]!==c.assertion&&t>=c.level&&(r[s]=c,u[s]=void 0)}},r.shouldAssert=_,r.fail=p,r.failBadSyntaxKind=function e(t,r,n){return p((r||"Unexpected node.")+"\r\nNode "+x(t.kind)+" was unexpected.",n||e)},r.assert=f,r.assertEqual=function e(t,r,n,i,a){t!==r&&p("Expected "+t+" === "+r+". "+(n?i?n+" "+i:n:""),a||e)},r.assertLessThan=function e(t,r,n,i){t>=r&&p("Expected "+t+" < "+r+". "+(n||""),i||e)},r.assertLessThanOrEqual=function e(t,r,n){t>r&&p("Expected "+t+" <= "+r,n||e)},r.assertGreaterThanOrEqual=function e(t,r,n){t<r&&p("Expected "+t+" >= "+r,n||e)},r.assertIsDefined=g,r.checkDefined=m,r.assertDefined=m,r.assertEachIsDefined=y,r.checkEachDefined=h,r.assertEachDefined=h,r.assertNever=function t(r,n,i){return void 0===n&&(n="Illegal value:"),p(n+" "+("object"==typeof r&&e.hasProperty(r,"kind")&&e.hasProperty(r,"pos")&&x?"SyntaxKind: "+x(r.kind):JSON.stringify(r)),i||t)},r.assertEachNode=function t(r,n,i,a){d(1,"assertEachNode")&&f(void 0===n||e.every(r,n),i||"Unexpected node.",(function(){return"Node array did not pass test '"+v(n)+"'."}),a||t)},r.assertNode=function e(t,r,n,i){d(1,"assertNode")&&f(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",(function(){return"Node "+x(null==t?void 0:t.kind)+" did not pass test '"+v(r)+"'."}),i||e)},r.assertNotNode=function e(t,r,n,i){d(1,"assertNotNode")&&f(void 0===t||void 0===r||!r(t),n||"Unexpected node.",(function(){return"Node "+x(t.kind)+" should not have passed test '"+v(r)+"'."}),i||e)},r.assertOptionalNode=function e(t,r,n,i){d(1,"assertOptionalNode")&&f(void 0===r||void 0===t||r(t),n||"Unexpected node.",(function(){return"Node "+x(null==t?void 0:t.kind)+" did not pass test '"+v(r)+"'."}),i||e)},r.assertOptionalToken=function e(t,r,n,i){d(1,"assertOptionalToken")&&f(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",(function(){return"Node "+x(null==t?void 0:t.kind)+" was not a '"+x(r)+"' token."}),i||e)},r.assertMissingNode=function e(t,r,n){d(1,"assertMissingNode")&&f(void 0===t,r||"Unexpected node.",(function(){return"Node "+x(t.kind)+" was unexpected'."}),n||e)},r.type=function(e){},r.getFunctionName=v,r.formatSymbol=function(t){return"{ name: "+e.unescapeLeadingUnderscores(t.escapedName)+"; flags: "+C(t.flags)+"; declarations: "+e.map(t.declarations,(function(e){return x(e.kind)}))+" }"},r.formatEnum=b,r.formatSyntaxKind=x,r.formatNodeFlags=D,r.formatModifierFlags=S,r.formatTransformFlags=E,r.formatEmitFlags=T,r.formatSymbolFlags=C,r.formatTypeFlags=k,r.formatSignatureFlags=A,r.formatObjectFlags=N,r.formatFlowFlags=F;var w,P,I,O=!1;function L(e){return function(){if(B(),!w)throw new Error("Debugging helpers could not be loaded.");return w}().formatControlFlowGraph(e)}function M(t){"__debugFlowFlags"in t||Object.defineProperties(t,{__tsDebuggerDisplay:{value:function(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return e+(t?" ("+F(t)+")":"")}},__debugFlowFlags:{get:function(){return b(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return L(this)}}})}function R(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return"NodeArray "+String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]")}}})}function B(){if(!O){var t,r;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=33554432&this.flags?"TransientSymbol":"Symbol",r=-33554433&this.flags;return t+" '"+e.symbolName(this)+"'"+(r?" ("+C(r)+")":"")}},__debugFlags:{get:function(){return C(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=98304&this.flags?"NullableType":384&this.flags?"LiteralType "+JSON.stringify(this.value):2048&this.flags?"LiteralType "+(this.value.negative?"-":"")+this.value.base10Value+"n":8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType "+this.intrinsicName:1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",r=524288&this.flags?-1344&this.objectFlags:0;return t+(this.symbol?" '"+e.symbolName(this.symbol)+"'":"")+(r?" ("+N(r)+")":"")}},__debugFlags:{get:function(){return k(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?N(this.objectFlags):""}},__debugTypeToString:{value:function(){var e=(void 0===t&&"function"==typeof WeakMap&&(t=new WeakMap),t),r=null==e?void 0:e.get(this);return void 0===r&&(r=this.checker.typeToString(this),null==e||e.set(this,r)),r}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return A(this.flags)}},__debugSignatureToString:{value:function(){var e;return null===(e=this.checker)||void 0===e?void 0:e.signatureToString(this)}}});for(var n=0,i=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];n<i.length;n++){var a=i[n];a.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(a.prototype,{__tsDebuggerDisplay:{value:function(){return(e.isGeneratedIdentifier(this)?"GeneratedIdentifier":e.isIdentifier(this)?"Identifier '"+e.idText(this)+"'":e.isPrivateIdentifier(this)?"PrivateIdentifier '"+e.idText(this)+"'":e.isStringLiteral(this)?"StringLiteral "+JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"..."):e.isNumericLiteral(this)?"NumericLiteral "+this.text:e.isBigIntLiteral(this)?"BigIntLiteral "+this.text+"n":e.isTypeParameterDeclaration(this)?"TypeParameterDeclaration":e.isParameter(this)?"ParameterDeclaration":e.isConstructorDeclaration(this)?"ConstructorDeclaration":e.isGetAccessorDeclaration(this)?"GetAccessorDeclaration":e.isSetAccessorDeclaration(this)?"SetAccessorDeclaration":e.isCallSignatureDeclaration(this)?"CallSignatureDeclaration":e.isConstructSignatureDeclaration(this)?"ConstructSignatureDeclaration":e.isIndexSignatureDeclaration(this)?"IndexSignatureDeclaration":e.isTypePredicateNode(this)?"TypePredicateNode":e.isTypeReferenceNode(this)?"TypeReferenceNode":e.isFunctionTypeNode(this)?"FunctionTypeNode":e.isConstructorTypeNode(this)?"ConstructorTypeNode":e.isTypeQueryNode(this)?"TypeQueryNode":e.isTypeLiteralNode(this)?"TypeLiteralNode":e.isArrayTypeNode(this)?"ArrayTypeNode":e.isTupleTypeNode(this)?"TupleTypeNode":e.isOptionalTypeNode(this)?"OptionalTypeNode":e.isRestTypeNode(this)?"RestTypeNode":e.isUnionTypeNode(this)?"UnionTypeNode":e.isIntersectionTypeNode(this)?"IntersectionTypeNode":e.isConditionalTypeNode(this)?"ConditionalTypeNode":e.isInferTypeNode(this)?"InferTypeNode":e.isParenthesizedTypeNode(this)?"ParenthesizedTypeNode":e.isThisTypeNode(this)?"ThisTypeNode":e.isTypeOperatorNode(this)?"TypeOperatorNode":e.isIndexedAccessTypeNode(this)?"IndexedAccessTypeNode":e.isMappedTypeNode(this)?"MappedTypeNode":e.isLiteralTypeNode(this)?"LiteralTypeNode":e.isNamedTupleMember(this)?"NamedTupleMember":e.isImportTypeNode(this)?"ImportTypeNode":x(this.kind))+(this.flags?" ("+D(this.flags)+")":"")}},__debugKind:{get:function(){return x(this.kind)}},__debugNodeFlags:{get:function(){return D(this.flags)}},__debugModifierFlags:{get:function(){return S(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return E(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return T(e.getEmitFlags(this))}},__debugGetText:{value:function(t){if(e.nodeIsSynthesized(this))return"";var n=(void 0===r&&"function"==typeof WeakMap&&(r=new WeakMap),r),i=null==n?void 0:n.get(this);if(void 0===i){var a=e.getParseTreeNode(this),o=a&&e.getSourceFileOfNode(a);i=o?e.getSourceTextOfNodeFromSourceFile(o,a,t):"",null==n||n.set(this,i)}return i}}})}try{if(e.sys&&e.sys.require){var o=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),s=e.sys.require(o,"./compiler-debug");s.error||(s.module.init(e),w=s.module)}}catch(e){}O=!0}}function j(t,r,n,i,a){var o=r?"DeprecationError: ":"DeprecationWarning: ";return o+="'"+t+"' ",o+=i?"has been deprecated since v"+i:"is deprecated",(o+=r?" and can no longer be used.":n?" and will no longer be usable after v"+n+".":".")+(a?" "+e.formatStringFromArgs(a,[t],0):"")}r.printControlFlowGraph=function(e){return console.log(L(e))},r.formatControlFlowGraph=L,r.attachFlowNodeDebugInfo=function(e){O&&("function"==typeof Object.setPrototypeOf?(P||M(P=Object.create(Object.prototype)),Object.setPrototypeOf(e,P)):M(e))},r.attachNodeArrayDebugInfo=function(e){O&&("function"==typeof Object.setPrototypeOf?(I||R(I=Object.create(Array.prototype)),Object.setPrototypeOf(e,I)):R(e))},r.enableDebugInfo=B,r.deprecate=function(t,r){return function(e,t){return function(){return e(),t.apply(this,arguments)}}(function(t,r){var n,i;void 0===r&&(r={});var a="string"==typeof r.typeScriptVersion?new e.Version(r.typeScriptVersion):null!==(n=r.typeScriptVersion)&&void 0!==n?n:o(),s="string"==typeof r.errorAfter?new e.Version(r.errorAfter):r.errorAfter,c="string"==typeof r.warnAfter?new e.Version(r.warnAfter):r.warnAfter,u="string"==typeof r.since?new e.Version(r.since):null!==(i=r.since)&&void 0!==i?i:c,_=r.error||s&&a.compareTo(s)<=0,d=!c||a.compareTo(c)>=0;return _?function(e,t,r,n){var i=j(e,!0,t,r,n);return function(){throw new TypeError(i)}}(t,s,u,r.message):d?function(e,t,r,n){var i=!1;return function(){i||(l.warn(j(e,!1,t,r,n)),i=!0)}}(t,s,u,r.message):e.noop}(v(t),r),t)}}(e.Debug||(e.Debug={}))}(u||(u={})),function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,r=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,n=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,i=/^(0|[1-9]\d*)$/,a=function(){function t(t,i,a,s,c){if(void 0===i&&(i=0),void 0===a&&(a=0),void 0===s&&(s=""),void 0===c&&(c=""),"string"==typeof t){var l=e.Debug.checkDefined(o(t),"Invalid version");t=l.major,i=l.minor,a=l.patch,s=l.prerelease,c=l.build}e.Debug.assert(t>=0,"Invalid argument: major"),e.Debug.assert(i>=0,"Invalid argument: minor"),e.Debug.assert(a>=0,"Invalid argument: patch"),e.Debug.assert(!s||r.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||n.test(c),"Invalid argument: build"),this.major=t,this.minor=i,this.patch=a,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return t.tryParse=function(e){var r=o(e);if(r)return new t(r.major,r.minor,r.patch,r.prerelease,r.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||function(t,r){if(t===r)return 0;if(0===t.length)return 0===r.length?0:1;if(0===r.length)return-1;for(var n=Math.min(t.length,r.length),a=0;a<n;a++){var o=t[a],s=r[a];if(o!==s){var c=i.test(o),l=i.test(s);if(c||l){if(c!==l)return c?-1:1;if(u=e.compareValues(+o,+s))return u}else{var u;if(u=e.compareStringsCaseSensitive(o,s))return u}}}return e.compareValues(t.length,r.length)}(this.prerelease,t.prerelease)},t.prototype.increment=function(r){switch(r){case"major":return new t(this.major+1,0,0);case"minor":return new t(this.major,this.minor+1,0);case"patch":return new t(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(r)}},t.prototype.toString=function(){var t=this.major+"."+this.minor+"."+this.patch;return e.some(this.prerelease)&&(t+="-"+this.prerelease.join(".")),e.some(this.build)&&(t+="+"+this.build.join(".")),t},t.zero=new t(0,0,0),t}();function o(e){var i=t.exec(e);if(i){var a=i[1],o=i[2],s=void 0===o?"0":o,c=i[3],l=void 0===c?"0":c,u=i[4],_=void 0===u?"":u,d=i[5],p=void 0===d?"":d;if((!_||r.test(_))&&(!p||n.test(p)))return{major:parseInt(a,10),minor:parseInt(s,10),patch:parseInt(l,10),prerelease:_,build:p}}}e.Version=a;var s=function(){function t(t){this._alternatives=t?e.Debug.checkDefined(p(t),"Invalid range spec."):e.emptyArray}return t.tryParse=function(e){var r=p(e);if(r){var n=new t("");return n._alternatives=r,n}},t.prototype.test=function(e){return"string"==typeof e&&(e=new a(e)),function(e,t){if(0===t.length)return!0;for(var r=0,n=t;r<n.length;r++)if(v(e,n[r]))return!0;return!1}(e,this._alternatives)},t.prototype.toString=function(){return t=this._alternatives,e.map(t,x).join(" || ")||"*";var t},t}();e.VersionRange=s;var c=/\|\|/g,l=/\s+/g,u=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,_=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,d=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function p(t){for(var r=[],n=0,i=e.trimString(t).split(c);n<i.length;n++){var a=i[n];if(a){var o=[];a=e.trimString(a);var s=_.exec(a);if(s){if(!g(s[1],s[2],o))return}else for(var u=0,p=a.split(l);u<p.length;u++){var f=p[u],y=d.exec(e.trimString(f));if(!y||!m(y[1],y[2],o))return}r.push(o)}}return r}function f(e){var t=u.exec(e);if(t){var r=t[1],n=t[2],i=void 0===n?"*":n,o=t[3],s=void 0===o?"*":o,c=t[4],l=t[5];return{version:new a(y(r)?0:parseInt(r,10),y(r)||y(i)?0:parseInt(i,10),y(r)||y(i)||y(s)?0:parseInt(s,10),c,l),major:r,minor:i,patch:s}}}function g(e,t,r){var n=f(e);if(!n)return!1;var i=f(t);return!!i&&(y(n.major)||r.push(h(">=",n.version)),y(i.major)||r.push(y(i.minor)?h("<",i.version.increment("major")):y(i.patch)?h("<",i.version.increment("minor")):h("<=",i.version)),!0)}function m(e,t,r){var n=f(t);if(!n)return!1;var i=n.version,o=n.major,s=n.minor,c=n.patch;if(y(o))"<"!==e&&">"!==e||r.push(h("<",a.zero));else switch(e){case"~":r.push(h(">=",i)),r.push(h("<",i.increment(y(s)?"major":"minor")));break;case"^":r.push(h(">=",i)),r.push(h("<",i.increment(i.major>0||y(s)?"major":i.minor>0||y(c)?"minor":"patch")));break;case"<":case">=":r.push(h(e,i));break;case"<=":case">":r.push(y(s)?h("<="===e?"<":">=",i.increment("major")):y(c)?h("<="===e?"<":">=",i.increment("minor")):h(e,i));break;case"=":case void 0:y(s)||y(c)?(r.push(h(">=",i)),r.push(h("<",i.increment(y(s)?"major":"minor")))):r.push(h("=",i));break;default:return!1}return!0}function y(e){return"*"===e||"x"===e||"X"===e}function h(e,t){return{operator:e,operand:t}}function v(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!b(e,i.operator,i.operand))return!1}return!0}function b(t,r,n){var i=t.compareTo(n);switch(r){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(r)}}function x(t){return e.map(t,D).join(" ")}function D(e){return""+e.operator+e.operand}}(u||(u={})),function(e){function t(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof t}var n=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&t(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}()||function(){if("undefined"!=typeof process&&process.nextTick&&!process.browser)try{var n,i=r("perf_hooks"),a=i.performance,o=i.PerformanceObserver;if(t(a,o)){n=a;var s=new e.Version(process.versions.node);return new e.VersionRange("<12.16.3 || 13 <13.13").test(s)&&(n={get timeOrigin(){return a.timeOrigin},now:function(){return a.now()},mark:function(e){return a.mark(e)},measure:function(e,t,r){void 0===t&&(t="nodeStart"),void 0===r&&(r="__performance.measure-fix__",a.mark(r)),a.measure(e,t,r),"__performance.measure-fix__"===r&&a.clearMarks("__performance.measure-fix__")}}),{shouldWriteNativeEvents:!1,performance:n,PerformanceObserver:o}}}catch(e){}}(),i=null==n?void 0:n.performance;e.tryGetNativePerformanceHooks=function(){return n},e.timestamp=i?function(){return i.now()}:Date.now?Date.now:function(){return+new Date}}(u||(u={})),function(e){!function(t){var r,n;function i(t,r,n){var i=0;return{enter:function(){1==++i&&u(r)},exit:function(){0==--i?(u(n),_(t,r,n)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}t.createTimerIf=function(e,r,n,a){return e?i(r,n,a):t.nullTimer},t.createTimer=i,t.nullTimer={enter:e.noop,exit:e.noop};var a=!1,o=e.timestamp(),s=new e.Map,c=new e.Map,l=new e.Map;function u(t){var r;if(a){var i=null!==(r=c.get(t))&&void 0!==r?r:0;c.set(t,i+1),s.set(t,e.timestamp()),null==n||n.mark(t)}}function _(t,r,i){var c,u;if(a){var _=null!==(c=void 0!==i?s.get(i):void 0)&&void 0!==c?c:e.timestamp(),d=null!==(u=void 0!==r?s.get(r):void 0)&&void 0!==u?u:o,p=l.get(t)||0;l.set(t,p+(_-d)),null==n||n.measure(t,r,i)}}t.mark=u,t.measure=_,t.getCount=function(e){return c.get(e)||0},t.getDuration=function(e){return l.get(e)||0},t.forEachMeasure=function(e){l.forEach((function(t,r){return e(r,t)}))},t.isEnabled=function(){return a},t.enable=function(t){var i;return void 0===t&&(t=e.sys),a||(a=!0,r||(r=e.tryGetNativePerformanceHooks()),r&&(o=r.performance.timeOrigin,(r.shouldWriteNativeEvents||(null===(i=null==t?void 0:t.cpuProfilingEnabled)||void 0===i?void 0:i.call(t))||(null==t?void 0:t.debugMode))&&(n=r.performance))),!0},t.disable=function(){a&&(s.clear(),c.clear(),l.clear(),n=void 0,a=!1)}}(e.performance||(e.performance={}))}(u||(u={})),function(e){var t,n,i={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{var a=null!==(t=process.env.TS_ETW_MODULE_PATH)&&void 0!==t?t:"./node_modules/@microsoft/typescript-etw";n=r("./node_modules/typescript/lib sync recursive")(a)}catch(e){n=void 0}e.perfLogger=n&&n.logEvent?n:i}(u||(u={})),function(e){var t;!function(t){var n,i,o,s,c=0,l=0,u=[],_=[];t.startTracing=function(s,d,p){if(e.Debug.assert(!e.tracing,"Tracing already started"),void 0===n)try{n=r("fs")}catch(e){throw new Error("tracing requires having fs\n(original error: "+(e.message||e)+")")}i=s,u.length=0,void 0===o&&(o=e.combinePaths(d,"legend.json")),n.existsSync(d)||n.mkdirSync(d,{recursive:!0});var f="build"===i?"."+process.pid+"-"+ ++c:"server"===i?"."+process.pid:"",g=e.combinePaths(d,"trace"+f+".json"),m=e.combinePaths(d,"types"+f+".json");_.push({configFilePath:p,tracePath:g,typesPath:m}),l=n.openSync(g,"w"),e.tracing=t;var y={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};n.writeSync(l,"[\n"+[a({name:"process_name",args:{name:"tsc"}},y),a({name:"thread_name",args:{name:"Main"}},y),a(a({name:"TracingStartedInBrowser"},y),{cat:"disabled-by-default-devtools.timeline"})].map((function(e){return JSON.stringify(e)})).join(",\n"))},t.stopTracing=function(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!u.length==("server"!==i)),n.writeSync(l,"\n]\n"),n.closeSync(l),e.tracing=void 0,u.length?function(t){var r,i,o,s,c,l,u,d,p,f,m,y,h,v,b,x,D,S,E,T,C,k;e.performance.mark("beginDumpTypes");var A=_[_.length-1].typesPath,N=n.openSync(A,"w"),F=new e.Map;n.writeSync(N,"[");for(var w=t.length,P=0;P<w;P++){var I=t[P],O=I.objectFlags,L=null!==(r=I.aliasSymbol)&&void 0!==r?r:I.symbol,M=void 0;if(16&O|2944&I.flags)try{M=null===(i=I.checker)||void 0===i?void 0:i.typeToString(I)}catch(e){M=void 0}var R={};if(8388608&I.flags){var B=I;R={indexedAccessObjectType:null===(o=B.objectType)||void 0===o?void 0:o.id,indexedAccessIndexType:null===(s=B.indexType)||void 0===s?void 0:s.id}}var j={};if(4&O){var J=I;j={instantiatedType:null===(c=J.target)||void 0===c?void 0:c.id,typeArguments:null===(l=J.resolvedTypeArguments)||void 0===l?void 0:l.map((function(e){return e.id})),referenceLocation:g(J.node)}}var V={};if(16777216&I.flags){var U=I;V={conditionalCheckType:null===(u=U.checkType)||void 0===u?void 0:u.id,conditionalExtendsType:null===(d=U.extendsType)||void 0===d?void 0:d.id,conditionalTrueType:null!==(f=null===(p=U.resolvedTrueType)||void 0===p?void 0:p.id)&&void 0!==f?f:-1,conditionalFalseType:null!==(y=null===(m=U.resolvedFalseType)||void 0===m?void 0:m.id)&&void 0!==y?y:-1}}var K={};if(33554432&I.flags){var z=I;K={substitutionBaseType:null===(h=z.baseType)||void 0===h?void 0:h.id,substituteType:null===(v=z.substitute)||void 0===v?void 0:v.id}}var G={};if(1024&O){var W=I;G={reverseMappedSourceType:null===(b=W.source)||void 0===b?void 0:b.id,reverseMappedMappedType:null===(x=W.mappedType)||void 0===x?void 0:x.id,reverseMappedConstraintType:null===(D=W.constraintType)||void 0===D?void 0:D.id}}var q={};if(256&O){var H=I;q={evolvingArrayElementType:H.elementType.id,evolvingArrayFinalType:null===(S=H.finalArrayType)||void 0===S?void 0:S.id}}var Y=void 0,X=I.checker.getRecursionIdentity(I);X&&((Y=F.get(X))||(Y=F.size,F.set(X,Y)));var Q=a(a(a(a(a(a(a({id:I.id,intrinsicName:I.intrinsicName,symbolName:(null==L?void 0:L.escapedName)&&e.unescapeLeadingUnderscores(L.escapedName),recursionId:Y,isTuple:!!(8&O)||void 0,unionTypes:1048576&I.flags?null===(E=I.types)||void 0===E?void 0:E.map((function(e){return e.id})):void 0,intersectionTypes:2097152&I.flags?I.types.map((function(e){return e.id})):void 0,aliasTypeArguments:null===(T=I.aliasTypeArguments)||void 0===T?void 0:T.map((function(e){return e.id})),keyofType:4194304&I.flags?null===(C=I.type)||void 0===C?void 0:C.id:void 0},R),j),V),K),G),q),{destructuringPattern:g(I.pattern),firstDeclaration:g(null===(k=null==L?void 0:L.declarations)||void 0===k?void 0:k[0]),flags:e.Debug.formatTypeFlags(I.flags).split("|"),display:M});n.writeSync(N,JSON.stringify(Q)),P<w-1&&n.writeSync(N,",\n")}n.writeSync(N,"]\n"),n.closeSync(N),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")}(u):_[_.length-1].typesPath=void 0},t.recordType=function(e){"server"!==i&&u.push(e)},(s=t.Phase||(t.Phase={})).Parse="parse",s.Program="program",s.Bind="bind",s.Check="check",s.CheckTypes="checkTypes",s.Emit="emit",s.Session="session",t.instant=function(e,t,r){f("I",e,t,r,'"s":"g"')};var d=[];function p(e,t){var r=d[e],n=r.phase,i=r.name,a=r.args,o=r.time;r.separateBeginAndEnd?f("E",n,i,a,void 0,t):1e4-o%1e4<=t-o&&f("X",n,i,a,'"dur":'+(t-o),o)}function f(t,r,a,o,s,c){void 0===c&&(c=1e3*e.timestamp()),"server"===i&&"checkTypes"===r||(e.performance.mark("beginTracing"),n.writeSync(l,',\n{"pid":1,"tid":1,"ph":"'+t+'","cat":"'+r+'","ts":'+c+',"name":"'+a+'"'),s&&n.writeSync(l,","+s),o&&n.writeSync(l,',"args":'+JSON.stringify(o)),n.writeSync(l,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function g(t){var r=e.getSourceFileOfNode(t);return r?{path:r.path,start:n(e.getLineAndCharacterOfPosition(r,t.pos)),end:n(e.getLineAndCharacterOfPosition(r,t.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}t.push=function(t,r,n,i){void 0===i&&(i=!1),i&&f("B",t,r,n),d.push({phase:t,name:r,args:n,time:1e3*e.timestamp(),separateBeginAndEnd:i})},t.pop=function(){e.Debug.assert(d.length>0),p(d.length-1,1e3*e.timestamp()),d.length--},t.popAll=function(){for(var t=1e3*e.timestamp(),r=d.length-1;r>=0;r--)p(r,t);d.length=0},t.dumpLegend=function(){o&&n.writeFileSync(o,JSON.stringify(_))}}(t||(t={})),e.startTracing=t.startTracing,e.dumpTracingLegend=t.dumpLegend}(u||(u={})),function(e){var t,r,n,i,a,o,s,c,l;(l=e.SyntaxKind||(e.SyntaxKind={}))[l.Unknown=0]="Unknown",l[l.EndOfFileToken=1]="EndOfFileToken",l[l.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",l[l.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",l[l.NewLineTrivia=4]="NewLineTrivia",l[l.WhitespaceTrivia=5]="WhitespaceTrivia",l[l.ShebangTrivia=6]="ShebangTrivia",l[l.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",l[l.NumericLiteral=8]="NumericLiteral",l[l.BigIntLiteral=9]="BigIntLiteral",l[l.StringLiteral=10]="StringLiteral",l[l.JsxText=11]="JsxText",l[l.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",l[l.RegularExpressionLiteral=13]="RegularExpressionLiteral",l[l.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",l[l.TemplateHead=15]="TemplateHead",l[l.TemplateMiddle=16]="TemplateMiddle",l[l.TemplateTail=17]="TemplateTail",l[l.OpenBraceToken=18]="OpenBraceToken",l[l.CloseBraceToken=19]="CloseBraceToken",l[l.OpenParenToken=20]="OpenParenToken",l[l.CloseParenToken=21]="CloseParenToken",l[l.OpenBracketToken=22]="OpenBracketToken",l[l.CloseBracketToken=23]="CloseBracketToken",l[l.DotToken=24]="DotToken",l[l.DotDotDotToken=25]="DotDotDotToken",l[l.SemicolonToken=26]="SemicolonToken",l[l.CommaToken=27]="CommaToken",l[l.QuestionDotToken=28]="QuestionDotToken",l[l.LessThanToken=29]="LessThanToken",l[l.LessThanSlashToken=30]="LessThanSlashToken",l[l.GreaterThanToken=31]="GreaterThanToken",l[l.LessThanEqualsToken=32]="LessThanEqualsToken",l[l.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",l[l.EqualsEqualsToken=34]="EqualsEqualsToken",l[l.ExclamationEqualsToken=35]="ExclamationEqualsToken",l[l.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",l[l.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",l[l.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",l[l.PlusToken=39]="PlusToken",l[l.MinusToken=40]="MinusToken",l[l.AsteriskToken=41]="AsteriskToken",l[l.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",l[l.SlashToken=43]="SlashToken",l[l.PercentToken=44]="PercentToken",l[l.PlusPlusToken=45]="PlusPlusToken",l[l.MinusMinusToken=46]="MinusMinusToken",l[l.LessThanLessThanToken=47]="LessThanLessThanToken",l[l.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",l[l.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",l[l.AmpersandToken=50]="AmpersandToken",l[l.BarToken=51]="BarToken",l[l.CaretToken=52]="CaretToken",l[l.ExclamationToken=53]="ExclamationToken",l[l.TildeToken=54]="TildeToken",l[l.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",l[l.BarBarToken=56]="BarBarToken",l[l.QuestionToken=57]="QuestionToken",l[l.ColonToken=58]="ColonToken",l[l.AtToken=59]="AtToken",l[l.QuestionQuestionToken=60]="QuestionQuestionToken",l[l.BacktickToken=61]="BacktickToken",l[l.HashToken=62]="HashToken",l[l.EqualsToken=63]="EqualsToken",l[l.PlusEqualsToken=64]="PlusEqualsToken",l[l.MinusEqualsToken=65]="MinusEqualsToken",l[l.AsteriskEqualsToken=66]="AsteriskEqualsToken",l[l.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",l[l.SlashEqualsToken=68]="SlashEqualsToken",l[l.PercentEqualsToken=69]="PercentEqualsToken",l[l.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",l[l.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",l[l.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",l[l.AmpersandEqualsToken=73]="AmpersandEqualsToken",l[l.BarEqualsToken=74]="BarEqualsToken",l[l.BarBarEqualsToken=75]="BarBarEqualsToken",l[l.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",l[l.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",l[l.CaretEqualsToken=78]="CaretEqualsToken",l[l.Identifier=79]="Identifier",l[l.PrivateIdentifier=80]="PrivateIdentifier",l[l.BreakKeyword=81]="BreakKeyword",l[l.CaseKeyword=82]="CaseKeyword",l[l.CatchKeyword=83]="CatchKeyword",l[l.ClassKeyword=84]="ClassKeyword",l[l.ConstKeyword=85]="ConstKeyword",l[l.ContinueKeyword=86]="ContinueKeyword",l[l.DebuggerKeyword=87]="DebuggerKeyword",l[l.DefaultKeyword=88]="DefaultKeyword",l[l.DeleteKeyword=89]="DeleteKeyword",l[l.DoKeyword=90]="DoKeyword",l[l.ElseKeyword=91]="ElseKeyword",l[l.EnumKeyword=92]="EnumKeyword",l[l.ExportKeyword=93]="ExportKeyword",l[l.ExtendsKeyword=94]="ExtendsKeyword",l[l.FalseKeyword=95]="FalseKeyword",l[l.FinallyKeyword=96]="FinallyKeyword",l[l.ForKeyword=97]="ForKeyword",l[l.FunctionKeyword=98]="FunctionKeyword",l[l.IfKeyword=99]="IfKeyword",l[l.ImportKeyword=100]="ImportKeyword",l[l.InKeyword=101]="InKeyword",l[l.InstanceOfKeyword=102]="InstanceOfKeyword",l[l.NewKeyword=103]="NewKeyword",l[l.NullKeyword=104]="NullKeyword",l[l.ReturnKeyword=105]="ReturnKeyword",l[l.SuperKeyword=106]="SuperKeyword",l[l.SwitchKeyword=107]="SwitchKeyword",l[l.ThisKeyword=108]="ThisKeyword",l[l.ThrowKeyword=109]="ThrowKeyword",l[l.TrueKeyword=110]="TrueKeyword",l[l.TryKeyword=111]="TryKeyword",l[l.TypeOfKeyword=112]="TypeOfKeyword",l[l.VarKeyword=113]="VarKeyword",l[l.VoidKeyword=114]="VoidKeyword",l[l.WhileKeyword=115]="WhileKeyword",l[l.WithKeyword=116]="WithKeyword",l[l.ImplementsKeyword=117]="ImplementsKeyword",l[l.InterfaceKeyword=118]="InterfaceKeyword",l[l.LetKeyword=119]="LetKeyword",l[l.PackageKeyword=120]="PackageKeyword",l[l.PrivateKeyword=121]="PrivateKeyword",l[l.ProtectedKeyword=122]="ProtectedKeyword",l[l.PublicKeyword=123]="PublicKeyword",l[l.StaticKeyword=124]="StaticKeyword",l[l.YieldKeyword=125]="YieldKeyword",l[l.AbstractKeyword=126]="AbstractKeyword",l[l.AsKeyword=127]="AsKeyword",l[l.AssertsKeyword=128]="AssertsKeyword",l[l.AnyKeyword=129]="AnyKeyword",l[l.AsyncKeyword=130]="AsyncKeyword",l[l.AwaitKeyword=131]="AwaitKeyword",l[l.BooleanKeyword=132]="BooleanKeyword",l[l.ConstructorKeyword=133]="ConstructorKeyword",l[l.DeclareKeyword=134]="DeclareKeyword",l[l.GetKeyword=135]="GetKeyword",l[l.InferKeyword=136]="InferKeyword",l[l.IntrinsicKeyword=137]="IntrinsicKeyword",l[l.IsKeyword=138]="IsKeyword",l[l.KeyOfKeyword=139]="KeyOfKeyword",l[l.ModuleKeyword=140]="ModuleKeyword",l[l.NamespaceKeyword=141]="NamespaceKeyword",l[l.NeverKeyword=142]="NeverKeyword",l[l.ReadonlyKeyword=143]="ReadonlyKeyword",l[l.RequireKeyword=144]="RequireKeyword",l[l.NumberKeyword=145]="NumberKeyword",l[l.ObjectKeyword=146]="ObjectKeyword",l[l.SetKeyword=147]="SetKeyword",l[l.StringKeyword=148]="StringKeyword",l[l.SymbolKeyword=149]="SymbolKeyword",l[l.TypeKeyword=150]="TypeKeyword",l[l.UndefinedKeyword=151]="UndefinedKeyword",l[l.UniqueKeyword=152]="UniqueKeyword",l[l.UnknownKeyword=153]="UnknownKeyword",l[l.FromKeyword=154]="FromKeyword",l[l.GlobalKeyword=155]="GlobalKeyword",l[l.BigIntKeyword=156]="BigIntKeyword",l[l.OverrideKeyword=157]="OverrideKeyword",l[l.OfKeyword=158]="OfKeyword",l[l.QualifiedName=159]="QualifiedName",l[l.ComputedPropertyName=160]="ComputedPropertyName",l[l.TypeParameter=161]="TypeParameter",l[l.Parameter=162]="Parameter",l[l.Decorator=163]="Decorator",l[l.PropertySignature=164]="PropertySignature",l[l.PropertyDeclaration=165]="PropertyDeclaration",l[l.MethodSignature=166]="MethodSignature",l[l.MethodDeclaration=167]="MethodDeclaration",l[l.ClassStaticBlockDeclaration=168]="ClassStaticBlockDeclaration",l[l.Constructor=169]="Constructor",l[l.GetAccessor=170]="GetAccessor",l[l.SetAccessor=171]="SetAccessor",l[l.CallSignature=172]="CallSignature",l[l.ConstructSignature=173]="ConstructSignature",l[l.IndexSignature=174]="IndexSignature",l[l.TypePredicate=175]="TypePredicate",l[l.TypeReference=176]="TypeReference",l[l.FunctionType=177]="FunctionType",l[l.ConstructorType=178]="ConstructorType",l[l.TypeQuery=179]="TypeQuery",l[l.TypeLiteral=180]="TypeLiteral",l[l.ArrayType=181]="ArrayType",l[l.TupleType=182]="TupleType",l[l.OptionalType=183]="OptionalType",l[l.RestType=184]="RestType",l[l.UnionType=185]="UnionType",l[l.IntersectionType=186]="IntersectionType",l[l.ConditionalType=187]="ConditionalType",l[l.InferType=188]="InferType",l[l.ParenthesizedType=189]="ParenthesizedType",l[l.ThisType=190]="ThisType",l[l.TypeOperator=191]="TypeOperator",l[l.IndexedAccessType=192]="IndexedAccessType",l[l.MappedType=193]="MappedType",l[l.LiteralType=194]="LiteralType",l[l.NamedTupleMember=195]="NamedTupleMember",l[l.TemplateLiteralType=196]="TemplateLiteralType",l[l.TemplateLiteralTypeSpan=197]="TemplateLiteralTypeSpan",l[l.ImportType=198]="ImportType",l[l.ObjectBindingPattern=199]="ObjectBindingPattern",l[l.ArrayBindingPattern=200]="ArrayBindingPattern",l[l.BindingElement=201]="BindingElement",l[l.ArrayLiteralExpression=202]="ArrayLiteralExpression",l[l.ObjectLiteralExpression=203]="ObjectLiteralExpression",l[l.PropertyAccessExpression=204]="PropertyAccessExpression",l[l.ElementAccessExpression=205]="ElementAccessExpression",l[l.CallExpression=206]="CallExpression",l[l.NewExpression=207]="NewExpression",l[l.TaggedTemplateExpression=208]="TaggedTemplateExpression",l[l.TypeAssertionExpression=209]="TypeAssertionExpression",l[l.ParenthesizedExpression=210]="ParenthesizedExpression",l[l.FunctionExpression=211]="FunctionExpression",l[l.ArrowFunction=212]="ArrowFunction",l[l.DeleteExpression=213]="DeleteExpression",l[l.TypeOfExpression=214]="TypeOfExpression",l[l.VoidExpression=215]="VoidExpression",l[l.AwaitExpression=216]="AwaitExpression",l[l.PrefixUnaryExpression=217]="PrefixUnaryExpression",l[l.PostfixUnaryExpression=218]="PostfixUnaryExpression",l[l.BinaryExpression=219]="BinaryExpression",l[l.ConditionalExpression=220]="ConditionalExpression",l[l.TemplateExpression=221]="TemplateExpression",l[l.YieldExpression=222]="YieldExpression",l[l.SpreadElement=223]="SpreadElement",l[l.ClassExpression=224]="ClassExpression",l[l.OmittedExpression=225]="OmittedExpression",l[l.ExpressionWithTypeArguments=226]="ExpressionWithTypeArguments",l[l.AsExpression=227]="AsExpression",l[l.NonNullExpression=228]="NonNullExpression",l[l.MetaProperty=229]="MetaProperty",l[l.SyntheticExpression=230]="SyntheticExpression",l[l.TemplateSpan=231]="TemplateSpan",l[l.SemicolonClassElement=232]="SemicolonClassElement",l[l.Block=233]="Block",l[l.EmptyStatement=234]="EmptyStatement",l[l.VariableStatement=235]="VariableStatement",l[l.ExpressionStatement=236]="ExpressionStatement",l[l.IfStatement=237]="IfStatement",l[l.DoStatement=238]="DoStatement",l[l.WhileStatement=239]="WhileStatement",l[l.ForStatement=240]="ForStatement",l[l.ForInStatement=241]="ForInStatement",l[l.ForOfStatement=242]="ForOfStatement",l[l.ContinueStatement=243]="ContinueStatement",l[l.BreakStatement=244]="BreakStatement",l[l.ReturnStatement=245]="ReturnStatement",l[l.WithStatement=246]="WithStatement",l[l.SwitchStatement=247]="SwitchStatement",l[l.LabeledStatement=248]="LabeledStatement",l[l.ThrowStatement=249]="ThrowStatement",l[l.TryStatement=250]="TryStatement",l[l.DebuggerStatement=251]="DebuggerStatement",l[l.VariableDeclaration=252]="VariableDeclaration",l[l.VariableDeclarationList=253]="VariableDeclarationList",l[l.FunctionDeclaration=254]="FunctionDeclaration",l[l.ClassDeclaration=255]="ClassDeclaration",l[l.InterfaceDeclaration=256]="InterfaceDeclaration",l[l.TypeAliasDeclaration=257]="TypeAliasDeclaration",l[l.EnumDeclaration=258]="EnumDeclaration",l[l.ModuleDeclaration=259]="ModuleDeclaration",l[l.ModuleBlock=260]="ModuleBlock",l[l.CaseBlock=261]="CaseBlock",l[l.NamespaceExportDeclaration=262]="NamespaceExportDeclaration",l[l.ImportEqualsDeclaration=263]="ImportEqualsDeclaration",l[l.ImportDeclaration=264]="ImportDeclaration",l[l.ImportClause=265]="ImportClause",l[l.NamespaceImport=266]="NamespaceImport",l[l.NamedImports=267]="NamedImports",l[l.ImportSpecifier=268]="ImportSpecifier",l[l.ExportAssignment=269]="ExportAssignment",l[l.ExportDeclaration=270]="ExportDeclaration",l[l.NamedExports=271]="NamedExports",l[l.NamespaceExport=272]="NamespaceExport",l[l.ExportSpecifier=273]="ExportSpecifier",l[l.MissingDeclaration=274]="MissingDeclaration",l[l.ExternalModuleReference=275]="ExternalModuleReference",l[l.JsxElement=276]="JsxElement",l[l.JsxSelfClosingElement=277]="JsxSelfClosingElement",l[l.JsxOpeningElement=278]="JsxOpeningElement",l[l.JsxClosingElement=279]="JsxClosingElement",l[l.JsxFragment=280]="JsxFragment",l[l.JsxOpeningFragment=281]="JsxOpeningFragment",l[l.JsxClosingFragment=282]="JsxClosingFragment",l[l.JsxAttribute=283]="JsxAttribute",l[l.JsxAttributes=284]="JsxAttributes",l[l.JsxSpreadAttribute=285]="JsxSpreadAttribute",l[l.JsxExpression=286]="JsxExpression",l[l.CaseClause=287]="CaseClause",l[l.DefaultClause=288]="DefaultClause",l[l.HeritageClause=289]="HeritageClause",l[l.CatchClause=290]="CatchClause",l[l.PropertyAssignment=291]="PropertyAssignment",l[l.ShorthandPropertyAssignment=292]="ShorthandPropertyAssignment",l[l.SpreadAssignment=293]="SpreadAssignment",l[l.EnumMember=294]="EnumMember",l[l.UnparsedPrologue=295]="UnparsedPrologue",l[l.UnparsedPrepend=296]="UnparsedPrepend",l[l.UnparsedText=297]="UnparsedText",l[l.UnparsedInternalText=298]="UnparsedInternalText",l[l.UnparsedSyntheticReference=299]="UnparsedSyntheticReference",l[l.SourceFile=300]="SourceFile",l[l.Bundle=301]="Bundle",l[l.UnparsedSource=302]="UnparsedSource",l[l.InputFiles=303]="InputFiles",l[l.JSDocTypeExpression=304]="JSDocTypeExpression",l[l.JSDocNameReference=305]="JSDocNameReference",l[l.JSDocMemberName=306]="JSDocMemberName",l[l.JSDocAllType=307]="JSDocAllType",l[l.JSDocUnknownType=308]="JSDocUnknownType",l[l.JSDocNullableType=309]="JSDocNullableType",l[l.JSDocNonNullableType=310]="JSDocNonNullableType",l[l.JSDocOptionalType=311]="JSDocOptionalType",l[l.JSDocFunctionType=312]="JSDocFunctionType",l[l.JSDocVariadicType=313]="JSDocVariadicType",l[l.JSDocNamepathType=314]="JSDocNamepathType",l[l.JSDocComment=315]="JSDocComment",l[l.JSDocText=316]="JSDocText",l[l.JSDocTypeLiteral=317]="JSDocTypeLiteral",l[l.JSDocSignature=318]="JSDocSignature",l[l.JSDocLink=319]="JSDocLink",l[l.JSDocLinkCode=320]="JSDocLinkCode",l[l.JSDocLinkPlain=321]="JSDocLinkPlain",l[l.JSDocTag=322]="JSDocTag",l[l.JSDocAugmentsTag=323]="JSDocAugmentsTag",l[l.JSDocImplementsTag=324]="JSDocImplementsTag",l[l.JSDocAuthorTag=325]="JSDocAuthorTag",l[l.JSDocDeprecatedTag=326]="JSDocDeprecatedTag",l[l.JSDocClassTag=327]="JSDocClassTag",l[l.JSDocPublicTag=328]="JSDocPublicTag",l[l.JSDocPrivateTag=329]="JSDocPrivateTag",l[l.JSDocProtectedTag=330]="JSDocProtectedTag",l[l.JSDocReadonlyTag=331]="JSDocReadonlyTag",l[l.JSDocOverrideTag=332]="JSDocOverrideTag",l[l.JSDocCallbackTag=333]="JSDocCallbackTag",l[l.JSDocEnumTag=334]="JSDocEnumTag",l[l.JSDocParameterTag=335]="JSDocParameterTag",l[l.JSDocReturnTag=336]="JSDocReturnTag",l[l.JSDocThisTag=337]="JSDocThisTag",l[l.JSDocTypeTag=338]="JSDocTypeTag",l[l.JSDocTemplateTag=339]="JSDocTemplateTag",l[l.JSDocTypedefTag=340]="JSDocTypedefTag",l[l.JSDocSeeTag=341]="JSDocSeeTag",l[l.JSDocPropertyTag=342]="JSDocPropertyTag",l[l.SyntaxList=343]="SyntaxList",l[l.NotEmittedStatement=344]="NotEmittedStatement",l[l.PartiallyEmittedExpression=345]="PartiallyEmittedExpression",l[l.CommaListExpression=346]="CommaListExpression",l[l.MergeDeclarationMarker=347]="MergeDeclarationMarker",l[l.EndOfDeclarationMarker=348]="EndOfDeclarationMarker",l[l.SyntheticReferenceExpression=349]="SyntheticReferenceExpression",l[l.Count=350]="Count",l[l.FirstAssignment=63]="FirstAssignment",l[l.LastAssignment=78]="LastAssignment",l[l.FirstCompoundAssignment=64]="FirstCompoundAssignment",l[l.LastCompoundAssignment=78]="LastCompoundAssignment",l[l.FirstReservedWord=81]="FirstReservedWord",l[l.LastReservedWord=116]="LastReservedWord",l[l.FirstKeyword=81]="FirstKeyword",l[l.LastKeyword=158]="LastKeyword",l[l.FirstFutureReservedWord=117]="FirstFutureReservedWord",l[l.LastFutureReservedWord=125]="LastFutureReservedWord",l[l.FirstTypeNode=175]="FirstTypeNode",l[l.LastTypeNode=198]="LastTypeNode",l[l.FirstPunctuation=18]="FirstPunctuation",l[l.LastPunctuation=78]="LastPunctuation",l[l.FirstToken=0]="FirstToken",l[l.LastToken=158]="LastToken",l[l.FirstTriviaToken=2]="FirstTriviaToken",l[l.LastTriviaToken=7]="LastTriviaToken",l[l.FirstLiteralToken=8]="FirstLiteralToken",l[l.LastLiteralToken=14]="LastLiteralToken",l[l.FirstTemplateToken=14]="FirstTemplateToken",l[l.LastTemplateToken=17]="LastTemplateToken",l[l.FirstBinaryOperator=29]="FirstBinaryOperator",l[l.LastBinaryOperator=78]="LastBinaryOperator",l[l.FirstStatement=235]="FirstStatement",l[l.LastStatement=251]="LastStatement",l[l.FirstNode=159]="FirstNode",l[l.FirstJSDocNode=304]="FirstJSDocNode",l[l.LastJSDocNode=342]="LastJSDocNode",l[l.FirstJSDocTagNode=322]="FirstJSDocTagNode",l[l.LastJSDocTagNode=342]="LastJSDocTagNode",l[l.FirstContextualKeyword=126]="FirstContextualKeyword",l[l.LastContextualKeyword=158]="LastContextualKeyword",(c=e.NodeFlags||(e.NodeFlags={}))[c.None=0]="None",c[c.Let=1]="Let",c[c.Const=2]="Const",c[c.NestedNamespace=4]="NestedNamespace",c[c.Synthesized=8]="Synthesized",c[c.Namespace=16]="Namespace",c[c.OptionalChain=32]="OptionalChain",c[c.ExportContext=64]="ExportContext",c[c.ContainsThis=128]="ContainsThis",c[c.HasImplicitReturn=256]="HasImplicitReturn",c[c.HasExplicitReturn=512]="HasExplicitReturn",c[c.GlobalAugmentation=1024]="GlobalAugmentation",c[c.HasAsyncFunctions=2048]="HasAsyncFunctions",c[c.DisallowInContext=4096]="DisallowInContext",c[c.YieldContext=8192]="YieldContext",c[c.DecoratorContext=16384]="DecoratorContext",c[c.AwaitContext=32768]="AwaitContext",c[c.ThisNodeHasError=65536]="ThisNodeHasError",c[c.JavaScriptFile=131072]="JavaScriptFile",c[c.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",c[c.HasAggregatedChildData=524288]="HasAggregatedChildData",c[c.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",c[c.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",c[c.JSDoc=4194304]="JSDoc",c[c.Ambient=8388608]="Ambient",c[c.InWithStatement=16777216]="InWithStatement",c[c.JsonFile=33554432]="JsonFile",c[c.TypeCached=67108864]="TypeCached",c[c.Deprecated=134217728]="Deprecated",c[c.BlockScoped=3]="BlockScoped",c[c.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",c[c.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",c[c.ContextFlags=25358336]="ContextFlags",c[c.TypeExcludesFlags=40960]="TypeExcludesFlags",c[c.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags",(s=e.ModifierFlags||(e.ModifierFlags={}))[s.None=0]="None",s[s.Export=1]="Export",s[s.Ambient=2]="Ambient",s[s.Public=4]="Public",s[s.Private=8]="Private",s[s.Protected=16]="Protected",s[s.Static=32]="Static",s[s.Readonly=64]="Readonly",s[s.Abstract=128]="Abstract",s[s.Async=256]="Async",s[s.Default=512]="Default",s[s.Const=2048]="Const",s[s.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",s[s.Deprecated=8192]="Deprecated",s[s.Override=16384]="Override",s[s.HasComputedFlags=536870912]="HasComputedFlags",s[s.AccessibilityModifier=28]="AccessibilityModifier",s[s.ParameterPropertyModifier=16476]="ParameterPropertyModifier",s[s.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",s[s.TypeScriptModifier=18654]="TypeScriptModifier",s[s.ExportDefault=513]="ExportDefault",s[s.All=27647]="All",(o=e.JsxFlags||(e.JsxFlags={}))[o.None=0]="None",o[o.IntrinsicNamedElement=1]="IntrinsicNamedElement",o[o.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",o[o.IntrinsicElement=3]="IntrinsicElement",(a=e.RelationComparisonResult||(e.RelationComparisonResult={}))[a.Succeeded=1]="Succeeded",a[a.Failed=2]="Failed",a[a.Reported=4]="Reported",a[a.ReportsUnmeasurable=8]="ReportsUnmeasurable",a[a.ReportsUnreliable=16]="ReportsUnreliable",a[a.ReportsMask=24]="ReportsMask",(i=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[i.None=0]="None",i[i.Auto=1]="Auto",i[i.Loop=2]="Loop",i[i.Unique=3]="Unique",i[i.Node=4]="Node",i[i.KindMask=7]="KindMask",i[i.ReservedInNestedScopes=8]="ReservedInNestedScopes",i[i.Optimistic=16]="Optimistic",i[i.FileLevel=32]="FileLevel",i[i.AllowNameSubstitution=64]="AllowNameSubstitution",(n=e.TokenFlags||(e.TokenFlags={}))[n.None=0]="None",n[n.PrecedingLineBreak=1]="PrecedingLineBreak",n[n.PrecedingJSDocComment=2]="PrecedingJSDocComment",n[n.Unterminated=4]="Unterminated",n[n.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",n[n.Scientific=16]="Scientific",n[n.Octal=32]="Octal",n[n.HexSpecifier=64]="HexSpecifier",n[n.BinarySpecifier=128]="BinarySpecifier",n[n.OctalSpecifier=256]="OctalSpecifier",n[n.ContainsSeparator=512]="ContainsSeparator",n[n.UnicodeEscape=1024]="UnicodeEscape",n[n.ContainsInvalidEscape=2048]="ContainsInvalidEscape",n[n.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",n[n.NumericLiteralFlags=1008]="NumericLiteralFlags",n[n.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",(r=e.FlowFlags||(e.FlowFlags={}))[r.Unreachable=1]="Unreachable",r[r.Start=2]="Start",r[r.BranchLabel=4]="BranchLabel",r[r.LoopLabel=8]="LoopLabel",r[r.Assignment=16]="Assignment",r[r.TrueCondition=32]="TrueCondition",r[r.FalseCondition=64]="FalseCondition",r[r.SwitchClause=128]="SwitchClause",r[r.ArrayMutation=256]="ArrayMutation",r[r.Call=512]="Call",r[r.ReduceLabel=1024]="ReduceLabel",r[r.Referenced=2048]="Referenced",r[r.Shared=4096]="Shared",r[r.Label=12]="Label",r[r.Condition=96]="Condition",(t=e.CommentDirectiveType||(e.CommentDirectiveType={}))[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore";var u,_,d,p,f,g,m,y,h,v,b,x,D,S,E,T,C,k,A,N,F,w,P,I,O,L,M,R,B,j,J,V,U,K,z,G,W,q,H,Y,X,Q,$,Z,ee,te,re,ne,ie,ae,oe,se,ce,le,ue,_e;e.OperationCanceledException=function(){},(_e=e.FileIncludeKind||(e.FileIncludeKind={}))[_e.RootFile=0]="RootFile",_e[_e.SourceFromProjectReference=1]="SourceFromProjectReference",_e[_e.OutputFromProjectReference=2]="OutputFromProjectReference",_e[_e.Import=3]="Import",_e[_e.ReferenceFile=4]="ReferenceFile",_e[_e.TypeReferenceDirective=5]="TypeReferenceDirective",_e[_e.LibFile=6]="LibFile",_e[_e.LibReferenceDirective=7]="LibReferenceDirective",_e[_e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",(ue=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}))[ue.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",ue[ue.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",(le=e.StructureIsReused||(e.StructureIsReused={}))[le.Not=0]="Not",le[le.SafeModules=1]="SafeModules",le[le.Completely=2]="Completely",(ce=e.ExitStatus||(e.ExitStatus={}))[ce.Success=0]="Success",ce[ce.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",ce[ce.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",ce[ce.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",ce[ce.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",ce[ce.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped",(se=e.UnionReduction||(e.UnionReduction={}))[se.None=0]="None",se[se.Literal=1]="Literal",se[se.Subtype=2]="Subtype",(oe=e.ContextFlags||(e.ContextFlags={}))[oe.None=0]="None",oe[oe.Signature=1]="Signature",oe[oe.NoConstraints=2]="NoConstraints",oe[oe.Completions=4]="Completions",oe[oe.SkipBindingPatterns=8]="SkipBindingPatterns",(ae=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[ae.None=0]="None",ae[ae.NoTruncation=1]="NoTruncation",ae[ae.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",ae[ae.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",ae[ae.UseStructuralFallback=8]="UseStructuralFallback",ae[ae.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",ae[ae.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",ae[ae.UseFullyQualifiedType=64]="UseFullyQualifiedType",ae[ae.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",ae[ae.SuppressAnyReturnType=256]="SuppressAnyReturnType",ae[ae.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",ae[ae.MultilineObjectLiterals=1024]="MultilineObjectLiterals",ae[ae.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",ae[ae.UseTypeOfFunction=4096]="UseTypeOfFunction",ae[ae.OmitParameterModifiers=8192]="OmitParameterModifiers",ae[ae.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",ae[ae.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",ae[ae.NoTypeReduction=536870912]="NoTypeReduction",ae[ae.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",ae[ae.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",ae[ae.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",ae[ae.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",ae[ae.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",ae[ae.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",ae[ae.AllowEmptyTuple=524288]="AllowEmptyTuple",ae[ae.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",ae[ae.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",ae[ae.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",ae[ae.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",ae[ae.IgnoreErrors=70221824]="IgnoreErrors",ae[ae.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",ae[ae.InTypeAlias=8388608]="InTypeAlias",ae[ae.InInitialEntityName=16777216]="InInitialEntityName",(ie=e.TypeFormatFlags||(e.TypeFormatFlags={}))[ie.None=0]="None",ie[ie.NoTruncation=1]="NoTruncation",ie[ie.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",ie[ie.UseStructuralFallback=8]="UseStructuralFallback",ie[ie.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",ie[ie.UseFullyQualifiedType=64]="UseFullyQualifiedType",ie[ie.SuppressAnyReturnType=256]="SuppressAnyReturnType",ie[ie.MultilineObjectLiterals=1024]="MultilineObjectLiterals",ie[ie.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",ie[ie.UseTypeOfFunction=4096]="UseTypeOfFunction",ie[ie.OmitParameterModifiers=8192]="OmitParameterModifiers",ie[ie.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",ie[ie.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",ie[ie.NoTypeReduction=536870912]="NoTypeReduction",ie[ie.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",ie[ie.AddUndefined=131072]="AddUndefined",ie[ie.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",ie[ie.InArrayType=524288]="InArrayType",ie[ie.InElementType=2097152]="InElementType",ie[ie.InFirstTypeArgument=4194304]="InFirstTypeArgument",ie[ie.InTypeAlias=8388608]="InTypeAlias",ie[ie.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",ie[ie.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask",(ne=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[ne.None=0]="None",ne[ne.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",ne[ne.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",ne[ne.AllowAnyNodeKind=4]="AllowAnyNodeKind",ne[ne.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",ne[ne.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain",(re=e.SymbolAccessibility||(e.SymbolAccessibility={}))[re.Accessible=0]="Accessible",re[re.NotAccessible=1]="NotAccessible",re[re.CannotBeNamed=2]="CannotBeNamed",(te=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[te.UnionOrIntersection=0]="UnionOrIntersection",te[te.Spread=1]="Spread",(ee=e.TypePredicateKind||(e.TypePredicateKind={}))[ee.This=0]="This",ee[ee.Identifier=1]="Identifier",ee[ee.AssertsThis=2]="AssertsThis",ee[ee.AssertsIdentifier=3]="AssertsIdentifier",(Z=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[Z.Unknown=0]="Unknown",Z[Z.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",Z[Z.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",Z[Z.NumberLikeType=3]="NumberLikeType",Z[Z.BigIntLikeType=4]="BigIntLikeType",Z[Z.StringLikeType=5]="StringLikeType",Z[Z.BooleanType=6]="BooleanType",Z[Z.ArrayLikeType=7]="ArrayLikeType",Z[Z.ESSymbolType=8]="ESSymbolType",Z[Z.Promise=9]="Promise",Z[Z.TypeWithCallSignature=10]="TypeWithCallSignature",Z[Z.ObjectType=11]="ObjectType",($=e.SymbolFlags||(e.SymbolFlags={}))[$.None=0]="None",$[$.FunctionScopedVariable=1]="FunctionScopedVariable",$[$.BlockScopedVariable=2]="BlockScopedVariable",$[$.Property=4]="Property",$[$.EnumMember=8]="EnumMember",$[$.Function=16]="Function",$[$.Class=32]="Class",$[$.Interface=64]="Interface",$[$.ConstEnum=128]="ConstEnum",$[$.RegularEnum=256]="RegularEnum",$[$.ValueModule=512]="ValueModule",$[$.NamespaceModule=1024]="NamespaceModule",$[$.TypeLiteral=2048]="TypeLiteral",$[$.ObjectLiteral=4096]="ObjectLiteral",$[$.Method=8192]="Method",$[$.Constructor=16384]="Constructor",$[$.GetAccessor=32768]="GetAccessor",$[$.SetAccessor=65536]="SetAccessor",$[$.Signature=131072]="Signature",$[$.TypeParameter=262144]="TypeParameter",$[$.TypeAlias=524288]="TypeAlias",$[$.ExportValue=1048576]="ExportValue",$[$.Alias=2097152]="Alias",$[$.Prototype=4194304]="Prototype",$[$.ExportStar=8388608]="ExportStar",$[$.Optional=16777216]="Optional",$[$.Transient=33554432]="Transient",$[$.Assignment=67108864]="Assignment",$[$.ModuleExports=134217728]="ModuleExports",$[$.All=67108863]="All",$[$.Enum=384]="Enum",$[$.Variable=3]="Variable",$[$.Value=111551]="Value",$[$.Type=788968]="Type",$[$.Namespace=1920]="Namespace",$[$.Module=1536]="Module",$[$.Accessor=98304]="Accessor",$[$.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",$[$.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",$[$.ParameterExcludes=111551]="ParameterExcludes",$[$.PropertyExcludes=0]="PropertyExcludes",$[$.EnumMemberExcludes=900095]="EnumMemberExcludes",$[$.FunctionExcludes=110991]="FunctionExcludes",$[$.ClassExcludes=899503]="ClassExcludes",$[$.InterfaceExcludes=788872]="InterfaceExcludes",$[$.RegularEnumExcludes=899327]="RegularEnumExcludes",$[$.ConstEnumExcludes=899967]="ConstEnumExcludes",$[$.ValueModuleExcludes=110735]="ValueModuleExcludes",$[$.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",$[$.MethodExcludes=103359]="MethodExcludes",$[$.GetAccessorExcludes=46015]="GetAccessorExcludes",$[$.SetAccessorExcludes=78783]="SetAccessorExcludes",$[$.TypeParameterExcludes=526824]="TypeParameterExcludes",$[$.TypeAliasExcludes=788968]="TypeAliasExcludes",$[$.AliasExcludes=2097152]="AliasExcludes",$[$.ModuleMember=2623475]="ModuleMember",$[$.ExportHasLocal=944]="ExportHasLocal",$[$.BlockScoped=418]="BlockScoped",$[$.PropertyOrAccessor=98308]="PropertyOrAccessor",$[$.ClassMember=106500]="ClassMember",$[$.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",$[$.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",$[$.Classifiable=2885600]="Classifiable",$[$.LateBindingContainer=6256]="LateBindingContainer",(Q=e.EnumKind||(e.EnumKind={}))[Q.Numeric=0]="Numeric",Q[Q.Literal=1]="Literal",(X=e.CheckFlags||(e.CheckFlags={}))[X.Instantiated=1]="Instantiated",X[X.SyntheticProperty=2]="SyntheticProperty",X[X.SyntheticMethod=4]="SyntheticMethod",X[X.Readonly=8]="Readonly",X[X.ReadPartial=16]="ReadPartial",X[X.WritePartial=32]="WritePartial",X[X.HasNonUniformType=64]="HasNonUniformType",X[X.HasLiteralType=128]="HasLiteralType",X[X.ContainsPublic=256]="ContainsPublic",X[X.ContainsProtected=512]="ContainsProtected",X[X.ContainsPrivate=1024]="ContainsPrivate",X[X.ContainsStatic=2048]="ContainsStatic",X[X.Late=4096]="Late",X[X.ReverseMapped=8192]="ReverseMapped",X[X.OptionalParameter=16384]="OptionalParameter",X[X.RestParameter=32768]="RestParameter",X[X.DeferredType=65536]="DeferredType",X[X.HasNeverType=131072]="HasNeverType",X[X.Mapped=262144]="Mapped",X[X.StripOptional=524288]="StripOptional",X[X.Synthetic=6]="Synthetic",X[X.Discriminant=192]="Discriminant",X[X.Partial=48]="Partial",(Y=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",Y.Constructor="__constructor",Y.New="__new",Y.Index="__index",Y.ExportStar="__export",Y.Global="__global",Y.Missing="__missing",Y.Type="__type",Y.Object="__object",Y.JSXAttributes="__jsxAttributes",Y.Class="__class",Y.Function="__function",Y.Computed="__computed",Y.Resolving="__resolving__",Y.ExportEquals="export=",Y.Default="default",Y.This="this",(H=e.NodeCheckFlags||(e.NodeCheckFlags={}))[H.TypeChecked=1]="TypeChecked",H[H.LexicalThis=2]="LexicalThis",H[H.CaptureThis=4]="CaptureThis",H[H.CaptureNewTarget=8]="CaptureNewTarget",H[H.SuperInstance=256]="SuperInstance",H[H.SuperStatic=512]="SuperStatic",H[H.ContextChecked=1024]="ContextChecked",H[H.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",H[H.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",H[H.CaptureArguments=8192]="CaptureArguments",H[H.EnumValuesComputed=16384]="EnumValuesComputed",H[H.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",H[H.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",H[H.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",H[H.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",H[H.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",H[H.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",H[H.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",H[H.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",H[H.AssignmentsMarked=8388608]="AssignmentsMarked",H[H.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",H[H.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",H[H.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",H[H.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",(q=e.TypeFlags||(e.TypeFlags={}))[q.Any=1]="Any",q[q.Unknown=2]="Unknown",q[q.String=4]="String",q[q.Number=8]="Number",q[q.Boolean=16]="Boolean",q[q.Enum=32]="Enum",q[q.BigInt=64]="BigInt",q[q.StringLiteral=128]="StringLiteral",q[q.NumberLiteral=256]="NumberLiteral",q[q.BooleanLiteral=512]="BooleanLiteral",q[q.EnumLiteral=1024]="EnumLiteral",q[q.BigIntLiteral=2048]="BigIntLiteral",q[q.ESSymbol=4096]="ESSymbol",q[q.UniqueESSymbol=8192]="UniqueESSymbol",q[q.Void=16384]="Void",q[q.Undefined=32768]="Undefined",q[q.Null=65536]="Null",q[q.Never=131072]="Never",q[q.TypeParameter=262144]="TypeParameter",q[q.Object=524288]="Object",q[q.Union=1048576]="Union",q[q.Intersection=2097152]="Intersection",q[q.Index=4194304]="Index",q[q.IndexedAccess=8388608]="IndexedAccess",q[q.Conditional=16777216]="Conditional",q[q.Substitution=33554432]="Substitution",q[q.NonPrimitive=67108864]="NonPrimitive",q[q.TemplateLiteral=134217728]="TemplateLiteral",q[q.StringMapping=268435456]="StringMapping",q[q.AnyOrUnknown=3]="AnyOrUnknown",q[q.Nullable=98304]="Nullable",q[q.Literal=2944]="Literal",q[q.Unit=109440]="Unit",q[q.StringOrNumberLiteral=384]="StringOrNumberLiteral",q[q.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",q[q.DefinitelyFalsy=117632]="DefinitelyFalsy",q[q.PossiblyFalsy=117724]="PossiblyFalsy",q[q.Intrinsic=67359327]="Intrinsic",q[q.Primitive=131068]="Primitive",q[q.StringLike=402653316]="StringLike",q[q.NumberLike=296]="NumberLike",q[q.BigIntLike=2112]="BigIntLike",q[q.BooleanLike=528]="BooleanLike",q[q.EnumLike=1056]="EnumLike",q[q.ESSymbolLike=12288]="ESSymbolLike",q[q.VoidLike=49152]="VoidLike",q[q.DisjointDomains=469892092]="DisjointDomains",q[q.UnionOrIntersection=3145728]="UnionOrIntersection",q[q.StructuredType=3670016]="StructuredType",q[q.TypeVariable=8650752]="TypeVariable",q[q.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",q[q.InstantiablePrimitive=406847488]="InstantiablePrimitive",q[q.Instantiable=465829888]="Instantiable",q[q.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",q[q.ObjectFlagsType=3899393]="ObjectFlagsType",q[q.Simplifiable=25165824]="Simplifiable",q[q.Singleton=67358815]="Singleton",q[q.Narrowable=536624127]="Narrowable",q[q.NotPrimitiveUnion=468598819]="NotPrimitiveUnion",q[q.IncludesMask=205258751]="IncludesMask",q[q.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",q[q.IncludesNonWideningType=4194304]="IncludesNonWideningType",q[q.IncludesWildcard=8388608]="IncludesWildcard",q[q.IncludesEmptyObject=16777216]="IncludesEmptyObject",(W=e.ObjectFlags||(e.ObjectFlags={}))[W.Class=1]="Class",W[W.Interface=2]="Interface",W[W.Reference=4]="Reference",W[W.Tuple=8]="Tuple",W[W.Anonymous=16]="Anonymous",W[W.Mapped=32]="Mapped",W[W.Instantiated=64]="Instantiated",W[W.ObjectLiteral=128]="ObjectLiteral",W[W.EvolvingArray=256]="EvolvingArray",W[W.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",W[W.ReverseMapped=1024]="ReverseMapped",W[W.JsxAttributes=2048]="JsxAttributes",W[W.MarkerType=4096]="MarkerType",W[W.JSLiteral=8192]="JSLiteral",W[W.FreshLiteral=16384]="FreshLiteral",W[W.ArrayLiteral=32768]="ArrayLiteral",W[W.PrimitiveUnion=65536]="PrimitiveUnion",W[W.ContainsWideningType=131072]="ContainsWideningType",W[W.ContainsObjectOrArrayLiteral=262144]="ContainsObjectOrArrayLiteral",W[W.NonInferrableType=524288]="NonInferrableType",W[W.CouldContainTypeVariablesComputed=1048576]="CouldContainTypeVariablesComputed",W[W.CouldContainTypeVariables=2097152]="CouldContainTypeVariables",W[W.ClassOrInterface=3]="ClassOrInterface",W[W.RequiresWidening=393216]="RequiresWidening",W[W.PropagatingFlags=917504]="PropagatingFlags",W[W.ObjectTypeKindMask=1343]="ObjectTypeKindMask",W[W.ContainsSpread=4194304]="ContainsSpread",W[W.ObjectRestType=8388608]="ObjectRestType",W[W.IsClassInstanceClone=16777216]="IsClassInstanceClone",W[W.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",W[W.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",W[W.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",W[W.IsGenericObjectType=8388608]="IsGenericObjectType",W[W.IsGenericIndexType=16777216]="IsGenericIndexType",W[W.IsGenericType=25165824]="IsGenericType",W[W.ContainsIntersections=33554432]="ContainsIntersections",W[W.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",W[W.IsNeverIntersection=67108864]="IsNeverIntersection",(G=e.VarianceFlags||(e.VarianceFlags={}))[G.Invariant=0]="Invariant",G[G.Covariant=1]="Covariant",G[G.Contravariant=2]="Contravariant",G[G.Bivariant=3]="Bivariant",G[G.Independent=4]="Independent",G[G.VarianceMask=7]="VarianceMask",G[G.Unmeasurable=8]="Unmeasurable",G[G.Unreliable=16]="Unreliable",G[G.AllowsStructuralFallback=24]="AllowsStructuralFallback",(z=e.ElementFlags||(e.ElementFlags={}))[z.Required=1]="Required",z[z.Optional=2]="Optional",z[z.Rest=4]="Rest",z[z.Variadic=8]="Variadic",z[z.Fixed=3]="Fixed",z[z.Variable=12]="Variable",z[z.NonRequired=14]="NonRequired",z[z.NonRest=11]="NonRest",(K=e.AccessFlags||(e.AccessFlags={}))[K.None=0]="None",K[K.IncludeUndefined=1]="IncludeUndefined",K[K.NoIndexSignatures=2]="NoIndexSignatures",K[K.Writing=4]="Writing",K[K.CacheSymbol=8]="CacheSymbol",K[K.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",K[K.ExpressionPosition=32]="ExpressionPosition",K[K.ReportDeprecated=64]="ReportDeprecated",K[K.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",K[K.Contextual=256]="Contextual",K[K.Persistent=1]="Persistent",(U=e.JsxReferenceKind||(e.JsxReferenceKind={}))[U.Component=0]="Component",U[U.Function=1]="Function",U[U.Mixed=2]="Mixed",(V=e.SignatureKind||(e.SignatureKind={}))[V.Call=0]="Call",V[V.Construct=1]="Construct",(J=e.SignatureFlags||(e.SignatureFlags={}))[J.None=0]="None",J[J.HasRestParameter=1]="HasRestParameter",J[J.HasLiteralTypes=2]="HasLiteralTypes",J[J.Abstract=4]="Abstract",J[J.IsInnerCallChain=8]="IsInnerCallChain",J[J.IsOuterCallChain=16]="IsOuterCallChain",J[J.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",J[J.PropagatingFlags=39]="PropagatingFlags",J[J.CallChainFlags=24]="CallChainFlags",(j=e.IndexKind||(e.IndexKind={}))[j.String=0]="String",j[j.Number=1]="Number",(B=e.TypeMapKind||(e.TypeMapKind={}))[B.Simple=0]="Simple",B[B.Array=1]="Array",B[B.Function=2]="Function",B[B.Composite=3]="Composite",B[B.Merged=4]="Merged",(R=e.InferencePriority||(e.InferencePriority={}))[R.NakedTypeVariable=1]="NakedTypeVariable",R[R.SpeculativeTuple=2]="SpeculativeTuple",R[R.SubstituteSource=4]="SubstituteSource",R[R.HomomorphicMappedType=8]="HomomorphicMappedType",R[R.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",R[R.MappedTypeConstraint=32]="MappedTypeConstraint",R[R.ContravariantConditional=64]="ContravariantConditional",R[R.ReturnType=128]="ReturnType",R[R.LiteralKeyof=256]="LiteralKeyof",R[R.NoConstraints=512]="NoConstraints",R[R.AlwaysStrict=1024]="AlwaysStrict",R[R.MaxValue=2048]="MaxValue",R[R.PriorityImpliesCombination=416]="PriorityImpliesCombination",R[R.Circularity=-1]="Circularity",(M=e.InferenceFlags||(e.InferenceFlags={}))[M.None=0]="None",M[M.NoDefault=1]="NoDefault",M[M.AnyDefault=2]="AnyDefault",M[M.SkippedGenericFunction=4]="SkippedGenericFunction",(L=e.Ternary||(e.Ternary={}))[L.False=0]="False",L[L.Unknown=1]="Unknown",L[L.Maybe=3]="Maybe",L[L.True=-1]="True",(O=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[O.None=0]="None",O[O.ExportsProperty=1]="ExportsProperty",O[O.ModuleExports=2]="ModuleExports",O[O.PrototypeProperty=3]="PrototypeProperty",O[O.ThisProperty=4]="ThisProperty",O[O.Property=5]="Property",O[O.Prototype=6]="Prototype",O[O.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",O[O.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",O[O.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(u=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,t){void 0===t&&(t=!0);var r=u[e.category];return t?r.toLowerCase():r},(I=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[I.Classic=1]="Classic",I[I.NodeJs=2]="NodeJs",(P=e.WatchFileKind||(e.WatchFileKind={}))[P.FixedPollingInterval=0]="FixedPollingInterval",P[P.PriorityPollingInterval=1]="PriorityPollingInterval",P[P.DynamicPriorityPolling=2]="DynamicPriorityPolling",P[P.FixedChunkSizePolling=3]="FixedChunkSizePolling",P[P.UseFsEvents=4]="UseFsEvents",P[P.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",(w=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[w.UseFsEvents=0]="UseFsEvents",w[w.FixedPollingInterval=1]="FixedPollingInterval",w[w.DynamicPriorityPolling=2]="DynamicPriorityPolling",w[w.FixedChunkSizePolling=3]="FixedChunkSizePolling",(F=e.PollingWatchKind||(e.PollingWatchKind={}))[F.FixedInterval=0]="FixedInterval",F[F.PriorityInterval=1]="PriorityInterval",F[F.DynamicPriority=2]="DynamicPriority",F[F.FixedChunkSize=3]="FixedChunkSize",(N=e.ModuleKind||(e.ModuleKind={}))[N.None=0]="None",N[N.CommonJS=1]="CommonJS",N[N.AMD=2]="AMD",N[N.UMD=3]="UMD",N[N.System=4]="System",N[N.ES2015=5]="ES2015",N[N.ES2020=6]="ES2020",N[N.ESNext=99]="ESNext",(A=e.JsxEmit||(e.JsxEmit={}))[A.None=0]="None",A[A.Preserve=1]="Preserve",A[A.React=2]="React",A[A.ReactNative=3]="ReactNative",A[A.ReactJSX=4]="ReactJSX",A[A.ReactJSXDev=5]="ReactJSXDev",(k=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}))[k.Remove=0]="Remove",k[k.Preserve=1]="Preserve",k[k.Error=2]="Error",(C=e.NewLineKind||(e.NewLineKind={}))[C.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",C[C.LineFeed=1]="LineFeed",(T=e.ScriptKind||(e.ScriptKind={}))[T.Unknown=0]="Unknown",T[T.JS=1]="JS",T[T.JSX=2]="JSX",T[T.TS=3]="TS",T[T.TSX=4]="TSX",T[T.External=5]="External",T[T.JSON=6]="JSON",T[T.Deferred=7]="Deferred",(E=e.ScriptTarget||(e.ScriptTarget={}))[E.ES3=0]="ES3",E[E.ES5=1]="ES5",E[E.ES2015=2]="ES2015",E[E.ES2016=3]="ES2016",E[E.ES2017=4]="ES2017",E[E.ES2018=5]="ES2018",E[E.ES2019=6]="ES2019",E[E.ES2020=7]="ES2020",E[E.ES2021=8]="ES2021",E[E.ESNext=99]="ESNext",E[E.JSON=100]="JSON",E[E.Latest=99]="Latest",(S=e.LanguageVariant||(e.LanguageVariant={}))[S.Standard=0]="Standard",S[S.JSX=1]="JSX",(D=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[D.None=0]="None",D[D.Recursive=1]="Recursive",(x=e.CharacterCodes||(e.CharacterCodes={}))[x.nullCharacter=0]="nullCharacter",x[x.maxAsciiCharacter=127]="maxAsciiCharacter",x[x.lineFeed=10]="lineFeed",x[x.carriageReturn=13]="carriageReturn",x[x.lineSeparator=8232]="lineSeparator",x[x.paragraphSeparator=8233]="paragraphSeparator",x[x.nextLine=133]="nextLine",x[x.space=32]="space",x[x.nonBreakingSpace=160]="nonBreakingSpace",x[x.enQuad=8192]="enQuad",x[x.emQuad=8193]="emQuad",x[x.enSpace=8194]="enSpace",x[x.emSpace=8195]="emSpace",x[x.threePerEmSpace=8196]="threePerEmSpace",x[x.fourPerEmSpace=8197]="fourPerEmSpace",x[x.sixPerEmSpace=8198]="sixPerEmSpace",x[x.figureSpace=8199]="figureSpace",x[x.punctuationSpace=8200]="punctuationSpace",x[x.thinSpace=8201]="thinSpace",x[x.hairSpace=8202]="hairSpace",x[x.zeroWidthSpace=8203]="zeroWidthSpace",x[x.narrowNoBreakSpace=8239]="narrowNoBreakSpace",x[x.ideographicSpace=12288]="ideographicSpace",x[x.mathematicalSpace=8287]="mathematicalSpace",x[x.ogham=5760]="ogham",x[x._=95]="_",x[x.$=36]="$",x[x._0=48]="_0",x[x._1=49]="_1",x[x._2=50]="_2",x[x._3=51]="_3",x[x._4=52]="_4",x[x._5=53]="_5",x[x._6=54]="_6",x[x._7=55]="_7",x[x._8=56]="_8",x[x._9=57]="_9",x[x.a=97]="a",x[x.b=98]="b",x[x.c=99]="c",x[x.d=100]="d",x[x.e=101]="e",x[x.f=102]="f",x[x.g=103]="g",x[x.h=104]="h",x[x.i=105]="i",x[x.j=106]="j",x[x.k=107]="k",x[x.l=108]="l",x[x.m=109]="m",x[x.n=110]="n",x[x.o=111]="o",x[x.p=112]="p",x[x.q=113]="q",x[x.r=114]="r",x[x.s=115]="s",x[x.t=116]="t",x[x.u=117]="u",x[x.v=118]="v",x[x.w=119]="w",x[x.x=120]="x",x[x.y=121]="y",x[x.z=122]="z",x[x.A=65]="A",x[x.B=66]="B",x[x.C=67]="C",x[x.D=68]="D",x[x.E=69]="E",x[x.F=70]="F",x[x.G=71]="G",x[x.H=72]="H",x[x.I=73]="I",x[x.J=74]="J",x[x.K=75]="K",x[x.L=76]="L",x[x.M=77]="M",x[x.N=78]="N",x[x.O=79]="O",x[x.P=80]="P",x[x.Q=81]="Q",x[x.R=82]="R",x[x.S=83]="S",x[x.T=84]="T",x[x.U=85]="U",x[x.V=86]="V",x[x.W=87]="W",x[x.X=88]="X",x[x.Y=89]="Y",x[x.Z=90]="Z",x[x.ampersand=38]="ampersand",x[x.asterisk=42]="asterisk",x[x.at=64]="at",x[x.backslash=92]="backslash",x[x.backtick=96]="backtick",x[x.bar=124]="bar",x[x.caret=94]="caret",x[x.closeBrace=125]="closeBrace",x[x.closeBracket=93]="closeBracket",x[x.closeParen=41]="closeParen",x[x.colon=58]="colon",x[x.comma=44]="comma",x[x.dot=46]="dot",x[x.doubleQuote=34]="doubleQuote",x[x.equals=61]="equals",x[x.exclamation=33]="exclamation",x[x.greaterThan=62]="greaterThan",x[x.hash=35]="hash",x[x.lessThan=60]="lessThan",x[x.minus=45]="minus",x[x.openBrace=123]="openBrace",x[x.openBracket=91]="openBracket",x[x.openParen=40]="openParen",x[x.percent=37]="percent",x[x.plus=43]="plus",x[x.question=63]="question",x[x.semicolon=59]="semicolon",x[x.singleQuote=39]="singleQuote",x[x.slash=47]="slash",x[x.tilde=126]="tilde",x[x.backspace=8]="backspace",x[x.formFeed=12]="formFeed",x[x.byteOrderMark=65279]="byteOrderMark",x[x.tab=9]="tab",x[x.verticalTab=11]="verticalTab",(b=e.Extension||(e.Extension={})).Ts=".ts",b.Tsx=".tsx",b.Dts=".d.ts",b.Js=".js",b.Jsx=".jsx",b.Json=".json",b.TsBuildInfo=".tsbuildinfo",(v=e.TransformFlags||(e.TransformFlags={}))[v.None=0]="None",v[v.ContainsTypeScript=1]="ContainsTypeScript",v[v.ContainsJsx=2]="ContainsJsx",v[v.ContainsESNext=4]="ContainsESNext",v[v.ContainsES2021=8]="ContainsES2021",v[v.ContainsES2020=16]="ContainsES2020",v[v.ContainsES2019=32]="ContainsES2019",v[v.ContainsES2018=64]="ContainsES2018",v[v.ContainsES2017=128]="ContainsES2017",v[v.ContainsES2016=256]="ContainsES2016",v[v.ContainsES2015=512]="ContainsES2015",v[v.ContainsGenerator=1024]="ContainsGenerator",v[v.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",v[v.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",v[v.ContainsLexicalThis=8192]="ContainsLexicalThis",v[v.ContainsRestOrSpread=16384]="ContainsRestOrSpread",v[v.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",v[v.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",v[v.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",v[v.ContainsBindingPattern=262144]="ContainsBindingPattern",v[v.ContainsYield=524288]="ContainsYield",v[v.ContainsAwait=1048576]="ContainsAwait",v[v.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",v[v.ContainsDynamicImport=4194304]="ContainsDynamicImport",v[v.ContainsClassFields=8388608]="ContainsClassFields",v[v.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",v[v.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",v[v.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",v[v.HasComputedFlags=536870912]="HasComputedFlags",v[v.AssertTypeScript=1]="AssertTypeScript",v[v.AssertJsx=2]="AssertJsx",v[v.AssertESNext=4]="AssertESNext",v[v.AssertES2021=8]="AssertES2021",v[v.AssertES2020=16]="AssertES2020",v[v.AssertES2019=32]="AssertES2019",v[v.AssertES2018=64]="AssertES2018",v[v.AssertES2017=128]="AssertES2017",v[v.AssertES2016=256]="AssertES2016",v[v.AssertES2015=512]="AssertES2015",v[v.AssertGenerator=1024]="AssertGenerator",v[v.AssertDestructuringAssignment=2048]="AssertDestructuringAssignment",v[v.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",v[v.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",v[v.NodeExcludes=536870912]="NodeExcludes",v[v.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",v[v.FunctionExcludes=591310848]="FunctionExcludes",v[v.ConstructorExcludes=591306752]="ConstructorExcludes",v[v.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",v[v.PropertyExcludes=570433536]="PropertyExcludes",v[v.ClassExcludes=536940544]="ClassExcludes",v[v.ModuleExcludes=589443072]="ModuleExcludes",v[v.TypeExcludes=-2]="TypeExcludes",v[v.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",v[v.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",v[v.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",v[v.ParameterExcludes=536870912]="ParameterExcludes",v[v.CatchClauseExcludes=536903680]="CatchClauseExcludes",v[v.BindingPatternExcludes=536887296]="BindingPatternExcludes",v[v.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",v[v.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags",(h=e.EmitFlags||(e.EmitFlags={}))[h.None=0]="None",h[h.SingleLine=1]="SingleLine",h[h.AdviseOnEmitNode=2]="AdviseOnEmitNode",h[h.NoSubstitution=4]="NoSubstitution",h[h.CapturesThis=8]="CapturesThis",h[h.NoLeadingSourceMap=16]="NoLeadingSourceMap",h[h.NoTrailingSourceMap=32]="NoTrailingSourceMap",h[h.NoSourceMap=48]="NoSourceMap",h[h.NoNestedSourceMaps=64]="NoNestedSourceMaps",h[h.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",h[h.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",h[h.NoTokenSourceMaps=384]="NoTokenSourceMaps",h[h.NoLeadingComments=512]="NoLeadingComments",h[h.NoTrailingComments=1024]="NoTrailingComments",h[h.NoComments=1536]="NoComments",h[h.NoNestedComments=2048]="NoNestedComments",h[h.HelperName=4096]="HelperName",h[h.ExportName=8192]="ExportName",h[h.LocalName=16384]="LocalName",h[h.InternalName=32768]="InternalName",h[h.Indented=65536]="Indented",h[h.NoIndentation=131072]="NoIndentation",h[h.AsyncFunctionBody=262144]="AsyncFunctionBody",h[h.ReuseTempVariableScope=524288]="ReuseTempVariableScope",h[h.CustomPrologue=1048576]="CustomPrologue",h[h.NoHoisting=2097152]="NoHoisting",h[h.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",h[h.Iterator=8388608]="Iterator",h[h.NoAsciiEscaping=16777216]="NoAsciiEscaping",h[h.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",h[h.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",h[h.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",h[h.Immutable=268435456]="Immutable",h[h.IndirectCall=536870912]="IndirectCall",(y=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[y.Extends=1]="Extends",y[y.Assign=2]="Assign",y[y.Rest=4]="Rest",y[y.Decorate=8]="Decorate",y[y.Metadata=16]="Metadata",y[y.Param=32]="Param",y[y.Awaiter=64]="Awaiter",y[y.Generator=128]="Generator",y[y.Values=256]="Values",y[y.Read=512]="Read",y[y.SpreadArray=1024]="SpreadArray",y[y.Await=2048]="Await",y[y.AsyncGenerator=4096]="AsyncGenerator",y[y.AsyncDelegator=8192]="AsyncDelegator",y[y.AsyncValues=16384]="AsyncValues",y[y.ExportStar=32768]="ExportStar",y[y.ImportStar=65536]="ImportStar",y[y.ImportDefault=131072]="ImportDefault",y[y.MakeTemplateObject=262144]="MakeTemplateObject",y[y.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",y[y.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",y[y.CreateBinding=2097152]="CreateBinding",y[y.FirstEmitHelper=1]="FirstEmitHelper",y[y.LastEmitHelper=2097152]="LastEmitHelper",y[y.ForOfIncludes=256]="ForOfIncludes",y[y.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",y[y.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",y[y.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",y[y.SpreadIncludes=1536]="SpreadIncludes",(m=e.EmitHint||(e.EmitHint={}))[m.SourceFile=0]="SourceFile",m[m.Expression=1]="Expression",m[m.IdentifierName=2]="IdentifierName",m[m.MappedTypeParameter=3]="MappedTypeParameter",m[m.Unspecified=4]="Unspecified",m[m.EmbeddedStatement=5]="EmbeddedStatement",m[m.JsxAttributeValue=6]="JsxAttributeValue",(g=e.OuterExpressionKinds||(e.OuterExpressionKinds={}))[g.Parentheses=1]="Parentheses",g[g.TypeAssertions=2]="TypeAssertions",g[g.NonNullAssertions=4]="NonNullAssertions",g[g.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",g[g.Assertions=6]="Assertions",g[g.All=15]="All",(f=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}))[f.None=0]="None",f[f.InParameters=1]="InParameters",f[f.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",(p=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",p.EmitHelpers="emitHelpers",p.NoDefaultLib="no-default-lib",p.Reference="reference",p.Type="type",p.Lib="lib",p.Prepend="prepend",p.Text="text",p.Internal="internal",(d=e.ListFormat||(e.ListFormat={}))[d.None=0]="None",d[d.SingleLine=0]="SingleLine",d[d.MultiLine=1]="MultiLine",d[d.PreserveLines=2]="PreserveLines",d[d.LinesMask=3]="LinesMask",d[d.NotDelimited=0]="NotDelimited",d[d.BarDelimited=4]="BarDelimited",d[d.AmpersandDelimited=8]="AmpersandDelimited",d[d.CommaDelimited=16]="CommaDelimited",d[d.AsteriskDelimited=32]="AsteriskDelimited",d[d.DelimitersMask=60]="DelimitersMask",d[d.AllowTrailingComma=64]="AllowTrailingComma",d[d.Indented=128]="Indented",d[d.SpaceBetweenBraces=256]="SpaceBetweenBraces",d[d.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",d[d.Braces=1024]="Braces",d[d.Parenthesis=2048]="Parenthesis",d[d.AngleBrackets=4096]="AngleBrackets",d[d.SquareBrackets=8192]="SquareBrackets",d[d.BracketsMask=15360]="BracketsMask",d[d.OptionalIfUndefined=16384]="OptionalIfUndefined",d[d.OptionalIfEmpty=32768]="OptionalIfEmpty",d[d.Optional=49152]="Optional",d[d.PreferNewLine=65536]="PreferNewLine",d[d.NoTrailingNewLine=131072]="NoTrailingNewLine",d[d.NoInterveningComments=262144]="NoInterveningComments",d[d.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",d[d.SingleElement=1048576]="SingleElement",d[d.SpaceAfterList=2097152]="SpaceAfterList",d[d.Modifiers=262656]="Modifiers",d[d.HeritageClauses=512]="HeritageClauses",d[d.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",d[d.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",d[d.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",d[d.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",d[d.UnionTypeConstituents=516]="UnionTypeConstituents",d[d.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",d[d.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",d[d.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",d[d.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",d[d.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",d[d.CommaListElements=528]="CommaListElements",d[d.CallExpressionArguments=2576]="CallExpressionArguments",d[d.NewExpressionArguments=18960]="NewExpressionArguments",d[d.TemplateExpressionSpans=262144]="TemplateExpressionSpans",d[d.SingleLineBlockStatements=768]="SingleLineBlockStatements",d[d.MultiLineBlockStatements=129]="MultiLineBlockStatements",d[d.VariableDeclarationList=528]="VariableDeclarationList",d[d.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",d[d.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",d[d.ClassHeritageClauses=0]="ClassHeritageClauses",d[d.ClassMembers=129]="ClassMembers",d[d.InterfaceMembers=129]="InterfaceMembers",d[d.EnumMembers=145]="EnumMembers",d[d.CaseBlockClauses=129]="CaseBlockClauses",d[d.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",d[d.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",d[d.JsxElementAttributes=262656]="JsxElementAttributes",d[d.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",d[d.HeritageClauseTypes=528]="HeritageClauseTypes",d[d.SourceFileStatements=131073]="SourceFileStatements",d[d.Decorators=2146305]="Decorators",d[d.TypeArguments=53776]="TypeArguments",d[d.TypeParameters=53776]="TypeParameters",d[d.Parameters=2576]="Parameters",d[d.IndexSignatureParameters=8848]="IndexSignatureParameters",d[d.JSDocComment=33]="JSDocComment",(_=e.PragmaKindFlags||(e.PragmaKindFlags={}))[_.None=0]="None",_[_.TripleSlashXML=1]="TripleSlashXML",_[_.SingleLine=2]="SingleLine",_[_.MultiLine=4]="MultiLine",_[_.All=7]="All",_[_.Default=7]="Default",e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}(u||(u={})),function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var t=/\\/g;function r(e){return 47===e||92===e}function n(e){return u(e)>0}function a(e){return 0!==u(e)}function o(e){return/^\.\.?($|[\\/])/.test(e)}function s(t,r){return t.length>r.length&&e.endsWith(t,r)}function c(e){return e.length>0&&r(e.charCodeAt(e.length-1))}function l(e){return e>=97&&e<=122||e>=65&&e<=90}function u(t){if(!t)return 0;var r=t.charCodeAt(0);if(47===r||92===r){if(t.charCodeAt(1)!==r)return 1;var n=t.indexOf(47===r?e.directorySeparator:e.altDirectorySeparator,2);return n<0?t.length:n+1}if(l(r)&&58===t.charCodeAt(1)){var i=t.charCodeAt(2);if(47===i||92===i)return 3;if(2===t.length)return 2}var a=t.indexOf("://");if(-1!==a){var o=a+"://".length,s=t.indexOf(e.directorySeparator,o);if(-1!==s){var c=t.slice(0,a),u=t.slice(o,s);if("file"===c&&(""===u||"localhost"===u)&&l(t.charCodeAt(s+1))){var _=function(e,t){var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){var n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(t,s+2);if(-1!==_){if(47===t.charCodeAt(_))return~(_+1);if(_===t.length)return~_}}return~(s+1)}return~t.length}return 0}function _(e){var t=u(e);return t<0?~t:t}function d(t){var r=_(t=h(t));return r===t.length?t:(t=T(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function p(t,r,n){if(_(t=h(t))===t.length)return"";var i=(t=T(t)).slice(Math.max(_(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?g(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function f(t,r,n){if(e.startsWith(r,".")||(r="."+r),t.length>=r.length&&46===t.charCodeAt(t.length-r.length)){var i=t.slice(t.length-r.length);if(n(i,r))return i}}function g(t,r,n){if(r)return function(e,t,r){if("string"==typeof t)return f(e,t,r)||"";for(var n=0,i=t;n<i.length;n++){var a=f(e,i[n],r);if(a)return a}return""}(T(t),r,n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var i=p(t),a=i.lastIndexOf(".");return a>=0?i.substring(a):""}function m(t,r){return void 0===r&&(r=""),function(t,r){var n=t.substring(0,r),a=t.substring(r).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),i([n],a,!0)}(t=b(r,t),_(t))}function y(t){return 0===t.length?"":(t[0]&&C(t[0]))+t.slice(1).join(e.directorySeparator)}function h(r){var n=r.indexOf("\\");return-1===n?r:(t.lastIndex=n,r.replace(t,e.directorySeparator))}function v(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n<t.length;n++){var i=t[n];if(i&&"."!==i){if(".."===i)if(r.length>1){if(".."!==r[r.length-1]){r.pop();continue}}else if(r[0])continue;r.push(i)}}return r}function b(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&(e=h(e));for(var n=0,i=t;n<i.length;n++){var a=i[n];a&&(a=h(a),e=e&&0===_(a)?C(e)+a:a)}return e}function x(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return E(e.some(r)?b.apply(void 0,i([t],r,!1)):h(t))}function D(e,t){return v(m(e,t))}function S(e,t){return y(D(e,t))}function E(e){if(e=h(e),!A.test(e))return e;var t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!A.test(e)))return e;var r=y(v(m(e)));return r&&c(e)?C(r):r}function T(e){return c(e)?e.substr(0,e.length-1):e}function C(t){return c(t)?t:t+e.directorySeparator}function k(e){return a(e)||o(e)?e:"./"+e}e.isAnyDirectorySeparator=r,e.isUrl=function(e){return u(e)<0},e.isRootedDiskPath=n,e.isDiskPathRoot=function(e){var t=u(e);return t>0&&t===e.length},e.pathIsAbsolute=a,e.pathIsRelative=o,e.pathIsBareSpecifier=function(e){return!a(e)&&!o(e)},e.hasExtension=function(t){return e.stringContains(p(t),".")},e.fileExtensionIs=s,e.fileExtensionIsOneOf=function(e,t){for(var r=0,n=t;r<n.length;r++)if(s(e,n[r]))return!0;return!1},e.hasTrailingDirectorySeparator=c,e.getRootLength=_,e.getDirectoryPath=d,e.getBaseFileName=p,e.getAnyExtensionFromPath=g,e.getPathComponents=m,e.getPathFromPathComponents=y,e.normalizeSlashes=h,e.reducePathComponents=v,e.combinePaths=b,e.resolvePath=x,e.getNormalizedPathComponents=D,e.getNormalizedAbsolutePath=S,e.normalizePath=E,e.getNormalizedAbsolutePathWithoutRoot=function(t,r){return 0===(n=D(t,r)).length?"":n.slice(1).join(e.directorySeparator);var n},e.toPath=function(e,t,r){return r(n(e)?E(e):S(e,t))},e.normalizePathAndParts=function(t){var r=v(m(t=h(t))),n=r[0],i=r.slice(1);if(i.length){var a=n+i.join(e.directorySeparator);return{path:c(t)?C(a):a,parts:i}}return{path:n,parts:i}},e.removeTrailingDirectorySeparator=T,e.ensureTrailingDirectorySeparator=C,e.ensurePathIsNonModuleName=k,e.changeAnyExtension=function(t,r,n,i){var a=void 0!==n&&void 0!==i?g(t,n,i):g(t);return a?t.slice(0,t.length-a.length)+(e.startsWith(r,".")?r:"."+r):t};var A=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function N(t,r,n){if(t===r)return 0;if(void 0===t)return-1;if(void 0===r)return 1;var i=t.substring(0,_(t)),a=r.substring(0,_(r)),o=e.compareStringsCaseInsensitive(i,a);if(0!==o)return o;var s=t.substring(i.length),c=r.substring(a.length);if(!A.test(s)&&!A.test(c))return n(s,c);for(var l=v(m(t)),u=v(m(r)),d=Math.min(l.length,u.length),p=1;p<d;p++){var f=n(l[p],u[p]);if(0!==f)return f}return e.compareValues(l.length,u.length)}function F(t,r,n,a){var o,s=v(m(t)),c=v(m(r));for(o=0;o<s.length&&o<c.length;o++){var l=a(s[o]),u=a(c[o]);if(!(0===o?e.equateStringsCaseInsensitive:n)(l,u))break}if(0===o)return c;for(var _=c.slice(o),d=[];o<s.length;o++)d.push("..");return i(i([""],d,!0),_,!0)}function w(t,r,n){e.Debug.assert(_(t)>0==_(r)>0,"Paths must either both be absolute or both be relative");var i="function"==typeof n?n:e.identity;return y(F(t,r,"boolean"==typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function P(t,r,i,a,o){var s=F(x(i,t),x(i,r),e.equateStringsCaseSensitive,a),c=s[0];if(o&&n(c)){var l=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=l+c}return y(s)}e.comparePathsCaseSensitive=fu (…) [all...] |
| /test/xts/acts/security/cryptoFramework/js_api_test_one/entry/src/ohosTest/js/test/utils/asymmetric/ |
| H A D | publicAsymmetricCallback.js | 426 globalText += t.charAt(Math.floor(Math.random() * n));
503 globalText += t.charAt(Math.floor(Math.random() * n));
|
| /arkcompiler/ets_runtime/test/aottest/exception_case14/ |
| H A D | exception_case14.js | 106 if (alphabet.indexOf(cc = str.charAt(i)) < 0) {
|
| /test/xts/acts/security/cryptoFramework/js_api_test_one/entry/src/ohosTest/js/test/utils/digestalgorithm/ |
| H A D | publicDigestCallback.js | 155 globalText += t.charAt(Math.floor(Math.random() * t.length));
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
| H A D | std_core_String.cpp | 431 uint32_t ret = bit_cast<uint16_t>(uniStr.charAt(0)); in StdCoreStringCodePointToChar() 436 ret |= static_cast<uint32_t>(bit_cast<uint16_t>(uniStr.charAt(1))) << BITS_IN_CHAR; in StdCoreStringCodePointToChar()
|
| /arkcompiler/toolchain/tooling/test/testcases/js/ |
| H A D | watch_variable.js | 119 var string5 = string4.charAt(1);
|
| H A D | variable_first.js | 116 var string5 = string4.charAt(1);
|
| /arkcompiler/ets_runtime/test/moduletest/string/ |
| H A D | string.js | 55 print(str1.charAt());
|
| /arkcompiler/ets_runtime/test/moduletest/stubbuilder/ |
| H A D | stubbuilder.js | 938 var chars = str.charAt(i);
|
| /test/xts/acts/security/cryptoFramework/js_api_test_one/entry/src/ohosTest/js/test/utils/symmetric/ |
| H A D | publicSymmetricPromise.js | 561 globalText += t.charAt(Math.floor(Math.random() * n));
|
| /arkcompiler/runtime_core/static_core/libllvmbackend/lowering/ |
| H A D | llvm_ir_constructor.cpp | 3333 auto charAt = ctor->builder_.CreateInBoundsGEP(ctor->builder_.getInt8Ty(), chars, index); in VisitLoadCompressedStringChar() local 3334 auto character = ctor->builder_.CreateLoad(ctor->builder_.getInt8Ty(), charAt); in VisitLoadCompressedStringChar() 3348 auto charAt = ctor->builder_.CreatePHI(ctor->builder_.getInt16Ty(), 2U); in VisitLoadCompressedStringChar() local 3349 charAt->addIncoming(compressedChar, compressedBb); in VisitLoadCompressedStringChar() 3350 charAt->addIncoming(uncompressedChar, uncompressedBb); in VisitLoadCompressedStringChar() 3351 ctor->ValueMapAdd(inst, charAt); in VisitLoadCompressedStringChar()
|
| /arkcompiler/ets_runtime/ecmascript/regexp/ |
| H A D | regexp_parser.cpp | 393 int32_t uc = set.charAt(idx); in ParseAlternative()
|
| /arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/ |
| H A D | regexp_parser.cpp | 362 int32_t uc = set.charAt(idx); in ParseAlternative()
|
| /base/powermgr/power_manager/power_dialog/hvigor/ |
| H A D | hvigor-wrapper.js | 15 "use strict";var e=require("path"),t=require("os"),n=require("fs"),r=require("child_process"),u=require("process"),o=require("tty"),i=require("util"),s=require("url"),c=require("constants"),a=require("stream"),l=require("assert"),f=require("zlib"),d=require("net"),D=require("crypto"),p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h={},E={},m=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(E,"__esModule",{value:!0}),E.maxPathLength=E.isMac=E.isLinux=E.isWindows=void 0;const y=m(t),C="Windows_NT",F="Darwin";function g(){return y.default.type()===C}function A(){return y.default.type()===F}E.isWindows=g,E.isLinux=function(){return"Linux"===y.default.type()},E.isMac=A,E.maxPathLength=function(){return A()?1016:g()?259:4095},Object.defineProperty(h,"__esModule",{value:!0}),h.LOG_LEVEL=h.ANALYZE=h.PARALLEL=h.INCREMENTAL=h.DAEMON=h.DOT=h.PROPERTIES=h.HVIGOR_ARK_COMPILE_MAX_SIZE=h.HVIGOR_POOL_CACHE_TTL=h.HVIGOR_POOL_CACHE_CAPACITY=h.HVIGOR_POOL_MAX_CORE_SIZE=h.HVIGOR_POOL_MAX_SIZE=h.ENABLE_SIGN_TASK_KEY=h.HVIGOR_CACHE_DIR_KEY=h.WORK_SPACE=h.PROJECT_CACHES=h.HVIGOR_USER_HOME_DIR_NAME=h.DEFAULT_PACKAGE_JSON=h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME=h.PNPM=h.HVIGOR=h.NPM_TOOL=h.PNPM_TOOL=h.HVIGOR_ENGINE_PACKAGE_NAME=void 0;const v=E;h.HVIGOR_ENGINE_PACKAGE_NAME="@ohos/hvigor",h.PNPM_TOOL=(0,v.isWindows)()?"pnpm.cmd":"pnpm",h.NPM_TOOL=(0,v.isWindows)()?"npm.cmd":"npm",h.HVIGOR="hvigor",h.PNPM="pnpm",h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME="hvigor-config.json5",h.DEFAULT_PACKAGE_JSON="package.json",h.HVIGOR_USER_HOME_DIR_NAME=".hvigor",h.PROJECT_CACHES="project_caches";var S=h.WORK_SPACE="workspace";h.HVIGOR_CACHE_DIR_KEY="hvigor.cacheDir",h.ENABLE_SIGN_TASK_KEY="enableSignTask",h.HVIGOR_POOL_MAX_SIZE="hvigor.pool.maxSize",h.HVIGOR_POOL_MAX_CORE_SIZE="hvigor.pool.maxCoreSize",h.HVIGOR_POOL_CACHE_CAPACITY="hvigor.pool.cache.capacity",h.HVIGOR_POOL_CACHE_TTL="hvigor.pool.cache.ttl",h.HVIGOR_ARK_COMPILE_MAX_SIZE="hvigor.arkCompile.maxSize",h.PROPERTIES="properties",h.DOT=".",h.DAEMON="daemon",h.INCREMENTAL="incremental",h.PARALLEL="typeCheck",h.ANALYZE="analyze",h.LOG_LEVEL="logLevel";var w={},O={};Object.defineProperty(O,"__esModule",{value:!0}),O.logError=O.logInfo=O.logErrorAndExit=void 0,O.logErrorAndExit=function(e){e instanceof Error?console.error(e.message):console.error(e),process.exit(-1)},O.logInfo=function(e){console.log(e)},O.logError=function(e){console.error(e)};var _=p&&p.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var u=Object.getOwnPropertyDescriptor(t,n);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),b=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),B=p&&p.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&_(t,e,n);return b(t,e),t};Object.defineProperty(w,"__esModule",{value:!0});var P=w.executeBuild=void 0;const k=B(n),I=B(e),x=O,N=r;P=w.executeBuild=function(e){const t=I.resolve(e,"node_modules","@ohos","hvigor","bin","hvigor.js");try{const e=k.realpathSync(t),n=process.argv.slice(2),r=(0,N.spawn)("node",[e,...n],{env:process.env});r.stdout.on("data",(e=>{(0,x.logInfo)(`${e.toString().trim()}`)})),r.stderr.on("data",(e=>{(0,x.logError)(`${e.toString().trim()}`)})),r.on("exit",((e,t)=>{process.exit(null!=e?e:-1)}))}catch(n){(0,x.logErrorAndExit)(`Error: ENOENT: no such file ${t},delete ${e} and retry.`)}};var R,T,M,L,j,$={},H={},G={exports:{}},V={exports:{}};function U(){if(T)return R;T=1;var e=1e3,t=60*e,n=60*t,r=24*n,u=7*r,o=365.25*r;function i(e,t,n,r){var u=t>=1.5*n;return Math.round(e/n)+" "+r+(u?"s":"")}return R=function(s,c){c=c||{};var a=typeof s;if("string"===a&&s.length>0)return function(i){if((i=String(i)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*u;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(s);if("number"===a&&isFinite(s))return c.long?function(u){var o=Math.abs(u);if(o>=r)return i(u,o,r,"day");if(o>=n)return i(u,o,n,"hour");if(o>=t)return i(u,o,t,"minute");if(o>=e)return i(u,o,e,"second");return u+" ms"}(s):function(u){var o=Math.abs(u);if(o>=r)return Math.round(u/r)+"d";if(o>=n)return Math.round(u/n)+"h";if(o>=t)return Math.round(u/t)+"m";if(o>=e)return Math.round(u/e)+"s";return u+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))}}function J(){if(L)return M;return L=1,M=function(e){function t(e){let r,u,o,i=null;function s(...e){if(!s.enabled)return;const n=s,u=Number(new Date),o=u-(r||u);n.diff=o,n.prev=r,n.curr=u,r=u,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,u)=>{if("%%"===r)return"%";i++;const o=t.formatters[u];if("function"==typeof o){const t=e[i];r=o.call(n,t),e.splice(i,1),i--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(u!==t.namespaces&&(u=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),u=r.length;for(n=0;n<u;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=U(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},M}var W,z,K,q,Y,Z,X={exports:{}};function Q(){return z||(z=1,W=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),u=t.indexOf("--");return-1!==r&&(-1===u||r<u)}),W}function ee(){if(q)return K;q=1;const e=t,n=Q(),r=process.env;let u;function o(t){const o=function(t){if(!1===u)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(t&&!t.isTTY&&!0!==u)return 0;const o=u?1:0;if("win32"===process.platform){const t=e.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in r))||"codeship"===r.CI_NAME?1:o;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("truecolor"===r.COLORTERM)return 3;if("TERM_PROGRAM"in r){const e=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:(r.TERM,o)}(t);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(o)}return n("no-color")||n("no-colors")||n("color=false")?u=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(u=!0),"FORCE_COLOR"in r&&(u=0===r.FORCE_COLOR.length||0!==parseInt(r.FORCE_COLOR,10)),K={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}}function te(){return Y||(Y=1,function(e,t){const n=o,r=i;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(...e){return process.stderr.write(r.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:r,useColors:u}=this;if(u){const t=this.color,u="[3"+(t<8?t:"8;5;"+t),o=` ${u};1m${r} [0m`;n[0]=o+n[0].split("\n").join("\n"+o),n.push(u+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+r+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=r.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=ee();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),e.exports=J()(t);const{formatters:u}=e.exports;u.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},u.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}}(X,X.exports)),X.exports}Z=G,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?Z.exports=(j||(j=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,u=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(u=r))})),t.splice(u,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=J()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(V,V.exports)),V.exports):Z.exports=te();var ne=function(e){return(e=e||{}).circles?function(e){var t=[],n=[];return e.proto?function e(u){if("object"!=typeof u||null===u)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return r(u,e);if(u instanceof Map)return new Map(r(Array.from(u),e));if(u instanceof Set)return new Set(r(Array.from(u),e));var o={};for(var i in t.push(u),n.push(o),u){var s=u[i];if("object"!=typeof s||null===s)o[i]=s;else if(s instanceof Date)o[i]=new Date(s);else if(s instanceof Map)o[i]=new Map(r(Array.from(s),e));else if(s instanceof Set)o[i]=new Set(r(Array.from(s),e));else if(ArrayBuffer.isView(s))o[i]=re(s);else{var c=t.indexOf(s);o[i]=-1!==c?n[c]:e(s)}}return t.pop(),n.pop(),o}:function e(u){if("object"!=typeof u||null===u)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return r(u,e);if(u instanceof Map)return new Map(r(Array.from(u),e));if(u instanceof Set)return new Set(r(Array.from(u),e));var o={};for(var i in t.push(u),n.push(o),u)if(!1!==Object.hasOwnProperty.call(u,i)){var s=u[i];if("object"!=typeof s||null===s)o[i]=s;else if(s instanceof Date)o[i]=new Date(s);else if(s instanceof Map)o[i]=new Map(r(Array.from(s),e));else if(s instanceof Set)o[i]=new Set(r(Array.from(s),e));else if(ArrayBuffer.isView(s))o[i]=re(s);else{var c=t.indexOf(s);o[i]=-1!==c?n[c]:e(s)}}return t.pop(),n.pop(),o};function r(e,r){for(var u=Object.keys(e),o=new Array(u.length),i=0;i<u.length;i++){var s=u[i],c=e[s];if("object"!=typeof c||null===c)o[s]=c;else if(c instanceof Date)o[s]=new Date(c);else if(ArrayBuffer.isView(c))o[s]=re(c);else{var a=t.indexOf(c);o[s]=-1!==a?n[a]:r(c)}}return o}}(e):e.proto?function e(n){if("object"!=typeof n||null===n)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return t(n,e);if(n instanceof Map)return new Map(t(Array.from(n),e));if(n instanceof Set)return new Set(t(Array.from(n),e));var r={};for(var u in n){var o=n[u];"object"!=typeof o||null===o?r[u]=o:o instanceof Date?r[u]=new Date(o):o instanceof Map?r[u]=new Map(t(Array.from(o),e)):o instanceof Set?r[u]=new Set(t(Array.from(o),e)):ArrayBuffer.isView(o)?r[u]=re(o):r[u]=e(o)}return r}:n;function t(e,t){for(var n=Object.keys(e),r=new Array(n.length),u=0;u<n.length;u++){var o=n[u],i=e[o];"object"!=typeof i||null===i?r[o]=i:i instanceof Date?r[o]=new Date(i):ArrayBuffer.isView(i)?r[o]=re(i):r[o]=t(i)}return r}function n(e){if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return t(e,n);if(e instanceof Map)return new Map(t(Array.from(e),n));if(e instanceof Set)return new Set(t(Array.from(e),n));var r={};for(var u in e)if(!1!==Object.hasOwnProperty.call(e,u)){var o=e[u];"object"!=typeof o||null===o?r[u]=o:o instanceof Date?r[u]=new Date(o):o instanceof Map?r[u]=new Map(t(Array.from(o),n)):o instanceof Set?r[u]=new Set(t(Array.from(o),n)):ArrayBuffer.isView(o)?r[u]=re(o):r[u]=n(o)}return r}};function re(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}const ue=i,oe=G.exports("log4js:configuration"),ie=[],se=[],ce=e=>!e,ae=e=>e&&"object"==typeof e&&!Array.isArray(e),le=(e,t,n)=>{(Array.isArray(t)?t:[t]).forEach((t=>{if(t)throw new Error(`Problem with log4js configuration: (${ue.inspect(e,{depth:5})}) - ${n}`)}))};var fe={configure:e=>{oe("New configuration to be validated: ",e),le(e,ce(ae(e)),"must be an object."),oe(`Calling pre-processing listeners (${ie.length})`),ie.forEach((t=>t(e))),oe("Configuration pre-processing finished."),oe(`Calling configuration listeners (${se.length})`),se.forEach((t=>t(e))),oe("Configuration finished.")},addListener:e=>{se.push(e),oe(`Added listener, now ${se.length} listeners`)},addPreProcessingListener:e=>{ie.push(e),oe(`Added pre-processing listener, now ${ie.length} listeners`)},throwExceptionIf:le,anObject:ae,anInteger:e=>e&&"number"==typeof e&&Number.isInteger(e),validIdentifier:e=>/^[A-Za-z][A-Za-z0-9_]*$/g.test(e),not:ce},de={exports:{}};!function(e){function t(e,t){for(var n=e.toString();n.length<t;)n="0"+n;return n}function n(e){return t(e,2)}function r(r,u){"string"!=typeof r&&(u=r,r=e.exports.ISO8601_FORMAT),u||(u=e.exports.now());var o=n(u.getDate()),i=n(u.getMonth()+1),s=n(u.getFullYear()),c=n(s.substring(2,4)),a=r.indexOf("yyyy")>-1?s:c,l=n(u.getHours()),f=n(u.getMinutes()),d=n(u.getSeconds()),D=t(u.getMilliseconds(),3),p=function(e){var t=Math.abs(e),n=String(Math.floor(t/60)),r=String(t%60);return n=("0"+n).slice(-2),r=("0"+r).slice(-2),0===e?"Z":(e<0?"+":"-")+n+":"+r}(u.getTimezoneOffset());return r.replace(/dd/g,o).replace(/MM/g,i).replace(/y{1,4}/g,a).replace(/hh/g,l).replace(/mm/g,f).replace(/ss/g,d).replace(/SSS/g,D).replace(/O/g,p)}function u(e,t,n,r){e["set"+(r?"":"UTC")+t](n)}e.exports=r,e.exports.asString=r,e.exports.parse=function(t,n,r){if(!t)throw new Error("pattern must be supplied");return function(t,n,r){var o=t.indexOf("O")<0,i=!1,s=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(e,t){u(e,"FullYear",t,o)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(e,t){u(e,"Month",t-1,o),e.getMonth()!==t-1&&(i=!0)}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(e,t){i&&u(e,"Month",e.getMonth()-1,o),u(e,"Date",t,o)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(e,t){u(e,"Hours",t,o)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(e,t){u(e,"Minutes",t,o)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(e,t){u(e,"Seconds",t,o)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(e,t){u(e,"Milliseconds",t,o)}},{pattern:/O/,regexp:"[+-]\\d{1,2}:?\\d{2}?|Z",fn:function(e,t){t="Z"===t?0:t.replace(":","");var n=Math.abs(t),r=(t>0?-1:1)*(n%100+60*Math.floor(n/100));e.setUTCMinutes(e.getUTCMinutes()+r)}}],c=s.reduce((function(e,t){return t.pattern.test(e.regexp)?(t.index=e.regexp.match(t.pattern).index,e.regexp=e.regexp.replace(t.pattern,"("+t.regexp+")")):t.index=-1,e}),{regexp:t,index:[]}),a=s.filter((function(e){return e.index>-1}));a.sort((function(e,t){return e.index-t.index}));var l=new RegExp(c.regexp).exec(n);if(l){var f=r||e.exports.now();return a.forEach((function(e,t){e.fn(f,l[t+1])})),f}throw new Error("String '"+n+"' could not be parsed as '"+t+"'")}(t,n,r)},e.exports.now=function(){return new Date},e.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS",e.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO",e.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS",e.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"}(de);const De=de.exports,pe=t,he=i,Ee=e,me=s,ye=G.exports("log4js:layouts"),Ce={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[90,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[91,39],yellow:[33,39]};function Fe(e){return e?`[${Ce[e][0]}m`:""}function ge(e){return e?`[${Ce[e][1]}m`:""}function Ae(e,t){return n=he.format("[%s] [%s] %s - ",De.asString(e.startTime),e.level.toString(),e.categoryName),Fe(r=t)+n+ge(r);var n,r}function ve(e){return Ae(e)+he.format(...e.data)}function Se(e){return Ae(e,e.level.colour)+he.format(...e.data)}function we(e){return he.format(...e.data)}function Oe(e){return e.data[0]}function _e(e,t){const n=/%(-?[0-9]+)?(\.?-?[0-9]+)?([[\]cdhmnprzxXyflosCMAF%])(\{([^}]+)\})?|([^%]+)/;function r(e){return e&&e.pid?e.pid.toString():process.pid.toString()}e=e||"%r %p %c - %m%n";const u={c:function(e,t){let n=e.categoryName;if(t){const e=parseInt(t,10),r=n.split(".");e<r.length&&(n=r.slice(r.length-e).join("."))}return n},d:function(e,t){let n=De.ISO8601_FORMAT;if(t)switch(n=t,n){case"ISO8601":case"ISO8601_FORMAT":n=De.ISO8601_FORMAT;break;case"ISO8601_WITH_TZ_OFFSET":case"ISO8601_WITH_TZ_OFFSET_FORMAT":n=De.ISO8601_WITH_TZ_OFFSET_FORMAT;break;case"ABSOLUTE":process.emitWarning("Pattern %d{ABSOLUTE} is deprecated in favor of %d{ABSOLUTETIME}. Please use %d{ABSOLUTETIME} instead.","DeprecationWarning","log4js-node-DEP0003"),ye("[log4js-node-DEP0003]","DEPRECATION: Pattern %d{ABSOLUTE} is deprecated and replaced by %d{ABSOLUTETIME}.");case"ABSOLUTETIME":case"ABSOLUTETIME_FORMAT":n=De.ABSOLUTETIME_FORMAT;break;case"DATE":process.emitWarning("Pattern %d{DATE} is deprecated due to the confusion it causes when used. Please use %d{DATETIME} instead.","DeprecationWarning","log4js-node-DEP0004"),ye("[log4js-node-DEP0004]","DEPRECATION: Pattern %d{DATE} is deprecated and replaced by %d{DATETIME}.");case"DATETIME":case"DATETIME_FORMAT":n=De.DATETIME_FORMAT}return De.asString(n,e.startTime)},h:function(){return pe.hostname().toString()},m:function(e){return he.format(...e.data)},n:function(){return pe.EOL},p:function(e){return e.level.toString()},r:function(e){return De.asString("hh:mm:ss",e.startTime)},"[":function(e){return Fe(e.level.colour)},"]":function(e){return ge(e.level.colour)},y:function(){return r()},z:r,"%":function(){return"%"},x:function(e,n){return void 0!==t[n]?"function"==typeof t[n]?t[n](e):t[n]:null},X:function(e,t){const n=e.context[t];return void 0!==n?"function"==typeof n?n(e):n:null},f:function(e,t){let n=e.fileName||"";if(n=function(e){const t="file://";return e.startsWith(t)&&("function"==typeof me.fileURLToPath?e=me.fileURLToPath(e):(e=Ee.normalize(e.replace(new RegExp(`^${t}`),"")),"win32"===process.platform&&(e=e.startsWith("\\")?e.slice(1):Ee.sep+Ee.sep+e))),e}(n),t){const e=parseInt(t,10),r=n.split(Ee.sep);r.length>e&&(n=r.slice(-e).join(Ee.sep))}return n},l:function(e){return e.lineNumber?`${e.lineNumber}`:""},o:function(e){return e.columnNumber?`${e.columnNumber}`:""},s:function(e){return e.callStack||""},C:function(e){return e.className||""},M:function(e){return e.functionName||""},A:function(e){return e.functionAlias||""},F:function(e){return e.callerName||""}};function o(e,t,n){return u[e](t,n)}function i(e,t,n){let r=e;return r=function(e,t){let n;return e?(n=parseInt(e.slice(1),10),n>0?t.slice(0,n):t.slice(n)):t}(t,r),r=function(e,t){let n;if(e)if("-"===e.charAt(0))for(n=parseInt(e.slice(1),10);t.length<n;)t+=" ";else for(n=parseInt(e,10);t.length<n;)t=` ${t} (…)
|
| /base/useriam/face_auth/ui/Settings_FaceAuth/hvigor/ |
| H A D | hvigor-wrapper.js | 16 "use strict";var e=require("path"),t=require("os"),n=require("fs"),r=require("child_process"),u=require("process"),o=require("tty"),i=require("util"),s=require("url"),c=require("constants"),a=require("stream"),l=require("assert"),f=require("zlib"),d=require("net"),D=require("crypto"),p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h={},E={},m=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(E,"__esModule",{value:!0}),E.maxPathLength=E.isMac=E.isLinux=E.isWindows=void 0;const y=m(t),C="Windows_NT",F="Darwin";function g(){return y.default.type()===C}function A(){return y.default.type()===F}E.isWindows=g,E.isLinux=function(){return"Linux"===y.default.type()},E.isMac=A,E.maxPathLength=function(){return A()?1016:g()?259:4095},Object.defineProperty(h,"__esModule",{value:!0}),h.LOG_LEVEL=h.ANALYZE=h.PARALLEL=h.INCREMENTAL=h.DAEMON=h.DOT=h.PROPERTIES=h.HVIGOR_ARK_COMPILE_MAX_SIZE=h.HVIGOR_POOL_CACHE_TTL=h.HVIGOR_POOL_CACHE_CAPACITY=h.HVIGOR_POOL_MAX_CORE_SIZE=h.HVIGOR_POOL_MAX_SIZE=h.ENABLE_SIGN_TASK_KEY=h.HVIGOR_CACHE_DIR_KEY=h.WORK_SPACE=h.PROJECT_CACHES=h.HVIGOR_USER_HOME_DIR_NAME=h.DEFAULT_PACKAGE_JSON=h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME=h.PNPM=h.HVIGOR=h.NPM_TOOL=h.PNPM_TOOL=h.HVIGOR_ENGINE_PACKAGE_NAME=void 0;const v=E;h.HVIGOR_ENGINE_PACKAGE_NAME="@ohos/hvigor",h.PNPM_TOOL=(0,v.isWindows)()?"pnpm.cmd":"pnpm",h.NPM_TOOL=(0,v.isWindows)()?"npm.cmd":"npm",h.HVIGOR="hvigor",h.PNPM="pnpm",h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME="hvigor-config.json5",h.DEFAULT_PACKAGE_JSON="package.json",h.HVIGOR_USER_HOME_DIR_NAME=".hvigor",h.PROJECT_CACHES="project_caches";var S=h.WORK_SPACE="workspace";h.HVIGOR_CACHE_DIR_KEY="hvigor.cacheDir",h.ENABLE_SIGN_TASK_KEY="enableSignTask",h.HVIGOR_POOL_MAX_SIZE="hvigor.pool.maxSize",h.HVIGOR_POOL_MAX_CORE_SIZE="hvigor.pool.maxCoreSize",h.HVIGOR_POOL_CACHE_CAPACITY="hvigor.pool.cache.capacity",h.HVIGOR_POOL_CACHE_TTL="hvigor.pool.cache.ttl",h.HVIGOR_ARK_COMPILE_MAX_SIZE="hvigor.arkCompile.maxSize",h.PROPERTIES="properties",h.DOT=".",h.DAEMON="daemon",h.INCREMENTAL="incremental",h.PARALLEL="typeCheck",h.ANALYZE="analyze",h.LOG_LEVEL="logLevel";var w={},O={};Object.defineProperty(O,"__esModule",{value:!0}),O.logError=O.logInfo=O.logErrorAndExit=void 0,O.logErrorAndExit=function(e){e instanceof Error?console.error(e.message):console.error(e),process.exit(-1)},O.logInfo=function(e){console.log(e)},O.logError=function(e){console.error(e)};var _=p&&p.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var u=Object.getOwnPropertyDescriptor(t,n);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),b=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),B=p&&p.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&_(t,e,n);return b(t,e),t};Object.defineProperty(w,"__esModule",{value:!0});var P=w.executeBuild=void 0;const k=B(n),I=B(e),x=O,N=r;P=w.executeBuild=function(e){const t=I.resolve(e,"node_modules","@ohos","hvigor","bin","hvigor.js");try{const e=k.realpathSync(t),n=process.argv.slice(2),r=(0,N.spawn)("node",[e,...n],{env:process.env});r.stdout.on("data",(e=>{(0,x.logInfo)(`${e.toString().trim()}`)})),r.stderr.on("data",(e=>{(0,x.logError)(`${e.toString().trim()}`)})),r.on("exit",((e,t)=>{process.exit(null!=e?e:-1)}))}catch(n){(0,x.logErrorAndExit)(`Error: ENOENT: no such file ${t},delete ${e} and retry.`)}};var R,T,M,L,j,$={},H={},G={exports:{}},V={exports:{}};function U(){if(T)return R;T=1;var e=1e3,t=60*e,n=60*t,r=24*n,u=7*r,o=365.25*r;function i(e,t,n,r){var u=t>=1.5*n;return Math.round(e/n)+" "+r+(u?"s":"")}return R=function(s,c){c=c||{};var a=typeof s;if("string"===a&&s.length>0)return function(i){if((i=String(i)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*u;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(s);if("number"===a&&isFinite(s))return c.long?function(u){var o=Math.abs(u);if(o>=r)return i(u,o,r,"day");if(o>=n)return i(u,o,n,"hour");if(o>=t)return i(u,o,t,"minute");if(o>=e)return i(u,o,e,"second");return u+" ms"}(s):function(u){var o=Math.abs(u);if(o>=r)return Math.round(u/r)+"d";if(o>=n)return Math.round(u/n)+"h";if(o>=t)return Math.round(u/t)+"m";if(o>=e)return Math.round(u/e)+"s";return u+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))}}function J(){if(L)return M;return L=1,M=function(e){function t(e){let r,u,o,i=null;function s(...e){if(!s.enabled)return;const n=s,u=Number(new Date),o=u-(r||u);n.diff=o,n.prev=r,n.curr=u,r=u,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,u)=>{if("%%"===r)return"%";i++;const o=t.formatters[u];if("function"==typeof o){const t=e[i];r=o.call(n,t),e.splice(i,1),i--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(u!==t.namespaces&&(u=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),u=r.length;for(n=0;n<u;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=U(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},M}var W,z,K,q,Y,Z,X={exports:{}};function Q(){return z||(z=1,W=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),u=t.indexOf("--");return-1!==r&&(-1===u||r<u)}),W}function ee(){if(q)return K;q=1;const e=t,n=Q(),r=process.env;let u;function o(t){const o=function(t){if(!1===u)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(t&&!t.isTTY&&!0!==u)return 0;const o=u?1:0;if("win32"===process.platform){const t=e.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in r))||"codeship"===r.CI_NAME?1:o;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("truecolor"===r.COLORTERM)return 3;if("TERM_PROGRAM"in r){const e=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:(r.TERM,o)}(t);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(o)}return n("no-color")||n("no-colors")||n("color=false")?u=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(u=!0),"FORCE_COLOR"in r&&(u=0===r.FORCE_COLOR.length||0!==parseInt(r.FORCE_COLOR,10)),K={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}}function te(){return Y||(Y=1,function(e,t){const n=o,r=i;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(...e){return process.stderr.write(r.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:r,useColors:u}=this;if(u){const t=this.color,u="[3"+(t<8?t:"8;5;"+t),o=` ${u};1m${r} [0m`;n[0]=o+n[0].split("\n").join("\n"+o),n.push(u+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+r+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=r.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=ee();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),e.exports=J()(t);const{formatters:u}=e.exports;u.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},u.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}}(X,X.exports)),X.exports}Z=G,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?Z.exports=(j||(j=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,u=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(u=r))})),t.splice(u,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=J()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(V,V.exports)),V.exports):Z.exports=te();var ne=function(e){return(e=e||{}).circles?function(e){var t=[],n=[];return e.proto?function e(u){if("object"!=typeof u||null===u)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return r(u,e);if(u instanceof Map)return new Map(r(Array.from(u),e));if(u instanceof Set)return new Set(r(Array.from(u),e));var o={};for(var i in t.push(u),n.push(o),u){var s=u[i];if("object"!=typeof s||null===s)o[i]=s;else if(s instanceof Date)o[i]=new Date(s);else if(s instanceof Map)o[i]=new Map(r(Array.from(s),e));else if(s instanceof Set)o[i]=new Set(r(Array.from(s),e));else if(ArrayBuffer.isView(s))o[i]=re(s);else{var c=t.indexOf(s);o[i]=-1!==c?n[c]:e(s)}}return t.pop(),n.pop(),o}:function e(u){if("object"!=typeof u||null===u)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return r(u,e);if(u instanceof Map)return new Map(r(Array.from(u),e));if(u instanceof Set)return new Set(r(Array.from(u),e));var o={};for(var i in t.push(u),n.push(o),u)if(!1!==Object.hasOwnProperty.call(u,i)){var s=u[i];if("object"!=typeof s||null===s)o[i]=s;else if(s instanceof Date)o[i]=new Date(s);else if(s instanceof Map)o[i]=new Map(r(Array.from(s),e));else if(s instanceof Set)o[i]=new Set(r(Array.from(s),e));else if(ArrayBuffer.isView(s))o[i]=re(s);else{var c=t.indexOf(s);o[i]=-1!==c?n[c]:e(s)}}return t.pop(),n.pop(),o};function r(e,r){for(var u=Object.keys(e),o=new Array(u.length),i=0;i<u.length;i++){var s=u[i],c=e[s];if("object"!=typeof c||null===c)o[s]=c;else if(c instanceof Date)o[s]=new Date(c);else if(ArrayBuffer.isView(c))o[s]=re(c);else{var a=t.indexOf(c);o[s]=-1!==a?n[a]:r(c)}}return o}}(e):e.proto?function e(n){if("object"!=typeof n||null===n)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return t(n,e);if(n instanceof Map)return new Map(t(Array.from(n),e));if(n instanceof Set)return new Set(t(Array.from(n),e));var r={};for(var u in n){var o=n[u];"object"!=typeof o||null===o?r[u]=o:o instanceof Date?r[u]=new Date(o):o instanceof Map?r[u]=new Map(t(Array.from(o),e)):o instanceof Set?r[u]=new Set(t(Array.from(o),e)):ArrayBuffer.isView(o)?r[u]=re(o):r[u]=e(o)}return r}:n;function t(e,t){for(var n=Object.keys(e),r=new Array(n.length),u=0;u<n.length;u++){var o=n[u],i=e[o];"object"!=typeof i||null===i?r[o]=i:i instanceof Date?r[o]=new Date(i):ArrayBuffer.isView(i)?r[o]=re(i):r[o]=t(i)}return r}function n(e){if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return t(e,n);if(e instanceof Map)return new Map(t(Array.from(e),n));if(e instanceof Set)return new Set(t(Array.from(e),n));var r={};for(var u in e)if(!1!==Object.hasOwnProperty.call(e,u)){var o=e[u];"object"!=typeof o||null===o?r[u]=o:o instanceof Date?r[u]=new Date(o):o instanceof Map?r[u]=new Map(t(Array.from(o),n)):o instanceof Set?r[u]=new Set(t(Array.from(o),n)):ArrayBuffer.isView(o)?r[u]=re(o):r[u]=n(o)}return r}};function re(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}const ue=i,oe=G.exports("log4js:configuration"),ie=[],se=[],ce=e=>!e,ae=e=>e&&"object"==typeof e&&!Array.isArray(e),le=(e,t,n)=>{(Array.isArray(t)?t:[t]).forEach((t=>{if(t)throw new Error(`Problem with log4js configuration: (${ue.inspect(e,{depth:5})}) - ${n}`)}))};var fe={configure:e=>{oe("New configuration to be validated: ",e),le(e,ce(ae(e)),"must be an object."),oe(`Calling pre-processing listeners (${ie.length})`),ie.forEach((t=>t(e))),oe("Configuration pre-processing finished."),oe(`Calling configuration listeners (${se.length})`),se.forEach((t=>t(e))),oe("Configuration finished.")},addListener:e=>{se.push(e),oe(`Added listener, now ${se.length} listeners`)},addPreProcessingListener:e=>{ie.push(e),oe(`Added pre-processing listener, now ${ie.length} listeners`)},throwExceptionIf:le,anObject:ae,anInteger:e=>e&&"number"==typeof e&&Number.isInteger(e),validIdentifier:e=>/^[A-Za-z][A-Za-z0-9_]*$/g.test(e),not:ce},de={exports:{}};!function(e){function t(e,t){for(var n=e.toString();n.length<t;)n="0"+n;return n}function n(e){return t(e,2)}function r(r,u){"string"!=typeof r&&(u=r,r=e.exports.ISO8601_FORMAT),u||(u=e.exports.now());var o=n(u.getDate()),i=n(u.getMonth()+1),s=n(u.getFullYear()),c=n(s.substring(2,4)),a=r.indexOf("yyyy")>-1?s:c,l=n(u.getHours()),f=n(u.getMinutes()),d=n(u.getSeconds()),D=t(u.getMilliseconds(),3),p=function(e){var t=Math.abs(e),n=String(Math.floor(t/60)),r=String(t%60);return n=("0"+n).slice(-2),r=("0"+r).slice(-2),0===e?"Z":(e<0?"+":"-")+n+":"+r}(u.getTimezoneOffset());return r.replace(/dd/g,o).replace(/MM/g,i).replace(/y{1,4}/g,a).replace(/hh/g,l).replace(/mm/g,f).replace(/ss/g,d).replace(/SSS/g,D).replace(/O/g,p)}function u(e,t,n,r){e["set"+(r?"":"UTC")+t](n)}e.exports=r,e.exports.asString=r,e.exports.parse=function(t,n,r){if(!t)throw new Error("pattern must be supplied");return function(t,n,r){var o=t.indexOf("O")<0,i=!1,s=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(e,t){u(e,"FullYear",t,o)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(e,t){u(e,"Month",t-1,o),e.getMonth()!==t-1&&(i=!0)}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(e,t){i&&u(e,"Month",e.getMonth()-1,o),u(e,"Date",t,o)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(e,t){u(e,"Hours",t,o)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(e,t){u(e,"Minutes",t,o)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(e,t){u(e,"Seconds",t,o)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(e,t){u(e,"Milliseconds",t,o)}},{pattern:/O/,regexp:"[+-]\\d{1,2}:?\\d{2}?|Z",fn:function(e,t){t="Z"===t?0:t.replace(":","");var n=Math.abs(t),r=(t>0?-1:1)*(n%100+60*Math.floor(n/100));e.setUTCMinutes(e.getUTCMinutes()+r)}}],c=s.reduce((function(e,t){return t.pattern.test(e.regexp)?(t.index=e.regexp.match(t.pattern).index,e.regexp=e.regexp.replace(t.pattern,"("+t.regexp+")")):t.index=-1,e}),{regexp:t,index:[]}),a=s.filter((function(e){return e.index>-1}));a.sort((function(e,t){return e.index-t.index}));var l=new RegExp(c.regexp).exec(n);if(l){var f=r||e.exports.now();return a.forEach((function(e,t){e.fn(f,l[t+1])})),f}throw new Error("String '"+n+"' could not be parsed as '"+t+"'")}(t,n,r)},e.exports.now=function(){return new Date},e.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS",e.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO",e.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS",e.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"}(de);const De=de.exports,pe=t,he=i,Ee=e,me=s,ye=G.exports("log4js:layouts"),Ce={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[90,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[91,39],yellow:[33,39]};function Fe(e){return e?`[${Ce[e][0]}m`:""}function ge(e){return e?`[${Ce[e][1]}m`:""}function Ae(e,t){return n=he.format("[%s] [%s] %s - ",De.asString(e.startTime),e.level.toString(),e.categoryName),Fe(r=t)+n+ge(r);var n,r}function ve(e){return Ae(e)+he.format(...e.data)}function Se(e){return Ae(e,e.level.colour)+he.format(...e.data)}function we(e){return he.format(...e.data)}function Oe(e){return e.data[0]}function _e(e,t){const n=/%(-?[0-9]+)?(\.?-?[0-9]+)?([[\]cdhmnprzxXyflosCMAF%])(\{([^}]+)\})?|([^%]+)/;function r(e){return e&&e.pid?e.pid.toString():process.pid.toString()}e=e||"%r %p %c - %m%n";const u={c:function(e,t){let n=e.categoryName;if(t){const e=parseInt(t,10),r=n.split(".");e<r.length&&(n=r.slice(r.length-e).join("."))}return n},d:function(e,t){let n=De.ISO8601_FORMAT;if(t)switch(n=t,n){case"ISO8601":case"ISO8601_FORMAT":n=De.ISO8601_FORMAT;break;case"ISO8601_WITH_TZ_OFFSET":case"ISO8601_WITH_TZ_OFFSET_FORMAT":n=De.ISO8601_WITH_TZ_OFFSET_FORMAT;break;case"ABSOLUTE":process.emitWarning("Pattern %d{ABSOLUTE} is deprecated in favor of %d{ABSOLUTETIME}. Please use %d{ABSOLUTETIME} instead.","DeprecationWarning","log4js-node-DEP0003"),ye("[log4js-node-DEP0003]","DEPRECATION: Pattern %d{ABSOLUTE} is deprecated and replaced by %d{ABSOLUTETIME}.");case"ABSOLUTETIME":case"ABSOLUTETIME_FORMAT":n=De.ABSOLUTETIME_FORMAT;break;case"DATE":process.emitWarning("Pattern %d{DATE} is deprecated due to the confusion it causes when used. Please use %d{DATETIME} instead.","DeprecationWarning","log4js-node-DEP0004"),ye("[log4js-node-DEP0004]","DEPRECATION: Pattern %d{DATE} is deprecated and replaced by %d{DATETIME}.");case"DATETIME":case"DATETIME_FORMAT":n=De.DATETIME_FORMAT}return De.asString(n,e.startTime)},h:function(){return pe.hostname().toString()},m:function(e){return he.format(...e.data)},n:function(){return pe.EOL},p:function(e){return e.level.toString()},r:function(e){return De.asString("hh:mm:ss",e.startTime)},"[":function(e){return Fe(e.level.colour)},"]":function(e){return ge(e.level.colour)},y:function(){return r()},z:r,"%":function(){return"%"},x:function(e,n){return void 0!==t[n]?"function"==typeof t[n]?t[n](e):t[n]:null},X:function(e,t){const n=e.context[t];return void 0!==n?"function"==typeof n?n(e):n:null},f:function(e,t){let n=e.fileName||"";if(n=function(e){const t="file://";return e.startsWith(t)&&("function"==typeof me.fileURLToPath?e=me.fileURLToPath(e):(e=Ee.normalize(e.replace(new RegExp(`^${t}`),"")),"win32"===process.platform&&(e=e.startsWith("\\")?e.slice(1):Ee.sep+Ee.sep+e))),e}(n),t){const e=parseInt(t,10),r=n.split(Ee.sep);r.length>e&&(n=r.slice(-e).join(Ee.sep))}return n},l:function(e){return e.lineNumber?`${e.lineNumber}`:""},o:function(e){return e.columnNumber?`${e.columnNumber}`:""},s:function(e){return e.callStack||""},C:function(e){return e.className||""},M:function(e){return e.functionName||""},A:function(e){return e.functionAlias||""},F:function(e){return e.callerName||""}};function o(e,t,n){return u[e](t,n)}function i(e,t,n){let r=e;return r=function(e,t){let n;return e?(n=parseInt(e.slice(1),10),n>0?t.slice(0,n):t.slice(n)):t}(t,r),r=function(e,t){let n;if(e)if("-"===e.charAt(0))for(n=parseInt(e.slice(1),10);t.length<n;)t+=" ";else for(n=parseInt(e,10);t.length<n;)t=` ${t}`;return t}(n,r),r}return function(t){let r,u="",s=e;for(;null!==(r=n.exec(s));){const e=r[1],n=r[2],c=r[3],a=r[5],l=r[6];if(l)u+=l.toString();else{u+=i(o(c,t,a),n,e)}s=s.slice(r.index+r[0].length)}return u}}const be={messagePassThrough:()=>we,basic:()=>ve,colored:()=>Se,coloured:()=>Se,pattern:e=>_e(e&&e.pattern,e&&e.tokens),dummy:()=>Oe};var Be={basicLayout:ve,messagePassThroughLayout:we,patternLayout:_e,colouredLayout:Se,coloredLayout:Se,dummyLayout:Oe,addLayout(e,t){be[e]=t},layout:(e,t)=>be[e]&&be[e](t)};const Pe=fe,ke=["white","grey","black","blue","cyan","green","magenta","red","yellow"];class Ie{constructor(e,t,n){this.level=e,this.levelStr=t,this.colour=n}toString(){return this.levelStr}static getLevel(e,t){return e?e instanceof Ie?e:(e instanceof Object&&e.levelStr&&(e=e.levelStr),Ie[e.toString().toUpperCase()]||t):t}static addLevels(e){if(e){Object.keys(e).forEach((t=>{const n=t.toUpperCase();Ie[n]=new Ie(e[t].value,n,e[t].colour);const r=Ie.levels.findIndex((e=>e.levelStr===n));r>-1?Ie.levels[r]=Ie[n]:Ie.levels.push(Ie[n])})),Ie.levels.sort(((e,t)=>e.level-t.level))}}isLessThanOrEqualTo(e){return"string"==typeof e&&(e=Ie.getLevel(e)),this.level<=e.level}isGreaterThanOrEqualTo(e){return"string"==typeof e&&(e=Ie.getLevel(e)),this.level>=e.level}isEqualTo(e){return"string"==typeof e&&(e=Ie.getLevel(e)),this.level===e.level}}Ie.levels=[],Ie.addLevels({ALL:{value:Number.MIN_VALUE,colour:"grey"},TRACE:{value:5e3,colour:"blue"},DEBUG:{value:1e4,colour:"cyan"},INFO:{value:2e4,colour:"green"},WARN:{value:3e4,colour:"yellow"},ERROR:{value:4e4,colour:"red"},FATAL:{value:5e4,colour:"magenta"},MARK:{value:9007199254740992,colour:"grey"},OFF:{value:Number.MAX_VALUE,colour:"grey"}}),Pe.addListener((e=>{const t=e.levels;if(t){Pe.throwExceptionIf(e,Pe.not(Pe.anObject(t)),"levels must be an object");Object.keys(t).forEach((n=>{Pe.throwExceptionIf(e,Pe.not(Pe.validIdentifier(n)),`level name "${n}" is not a valid identifier (must start with a letter, only contain A-Z,a-z,0-9,_)`),Pe.throwExceptionIf(e,Pe.not(Pe.anObject(t[n])),`level "${n}" must be an object`),Pe.throwExceptionIf(e,Pe.not(t[n].value),`level "${n}" must have a 'value' property`),Pe.throwExceptionIf(e,Pe.not(Pe.anInteger(t[n].value)),`level "${n}".value must have an integer value`),Pe.throwExceptionIf(e,Pe.not(t[n].colour),`level "${n}" must have a 'colour' property`),Pe.throwExceptionIf(e,Pe.not(ke.indexOf(t[n].colour)>-1),`level "${n}".colour must be one of ${ke.join(", ")}`)}))}})),Pe.addListener((e=>{Ie.addLevels(e.levels)}));var xe=Ie,Ne={exports:{}},Re={};const{parse:Te,stringify:Me}=JSON,{keys:Le}=Object,je=String,$e="string",He={},Ge="object",Ve=(e,t)=>t,Ue=e=>e instanceof je?je(e):e,Je=(e,t)=>typeof t===$e?new je(t):t,We=(e,t,n,r)=>{const u=[];for(let o=Le(n),{length:i}=o,s=0;s<i;s++){const i=o[s],c=n[i];if(c instanceof je){const o=e[c];typeof o!==Ge||t.has(o)?n[i]=r.call(n,i,o):(t.add(o),n[i]=He,u.push({k:i,a:[e,t,o,r]}))}else n[i]!==He&&(n[i]=r.call(n,i,c))}for(let{length:e}=u,t=0;t<e;t++){const{k:e,a:o}=u[t];n[e]=r.call(n,e,We.apply(null,o))}return n},ze=(e,t,n)=>{const r=je(t.push(n)-1);return e.set(n,r),r},Ke=(e,t)=>{const n=Te(e,Je).map(Ue),r=n[0],u=t||Ve,o=typeof r===Ge&&r?We(n,new Set,r,u):r;return u.call({"":o},"",o)};Re.parse=Ke;const qe=(e,t,n)=>{const r=t&&typeof t===Ge?(e,n)=>""===e||-1<t.indexOf(e)?n:void 0:t||Ve,u=new Map,o=[],i=[];let s=+ze(u,o,r.call({"":e},"",e)),c=!s;for(;s<o.length;)c=!0,i[s]=Me(o[s++],a,n);return"["+i.join(",")+"]";function a(e,t){if(c)return c=!c,t;const n=r.call(this,e,t);switch(typeof n){case Ge:if(null===n)return n;case $e:return u.get(n)||ze(u,o,n)}return n}};Re.stringify=qe;Re.toJSON=e=>Te(qe(e));Re.fromJSON=e=>Ke(Me(e));const Ye=Re,Ze=xe;const Xe=new class{constructor(){const e={__LOG4JS_undefined__:void 0,__LOG4JS_NaN__:Number("abc"),__LOG4JS_Infinity__:1/0,"__LOG4JS_-Infinity__":-1/0};this.deMap=e,this.serMap={},Object.keys(this.deMap).forEach((e=>{const t=this.deMap[e];this.serMap[t]=e}))}canSerialise(e){return"string"!=typeof e&&e in this.serMap}serialise(e){return this.canSerialise(e)?this.serMap[e]:e}canDeserialise(e){return e in this.deMap}deserialise(e){return this.canDeserialise(e)?this.deMap[e]:e}};let Qe=class{constructor(e,t,n,r,u,o){if(this.startTime=new Date,this.categoryName=e,this.data=n,this.level=t,this.context=Object.assign({},r),this.pid=process.pid,this.error=o,void 0!==u){if(!u||"object"!=typeof u||Array.isArray(u))throw new TypeError("Invalid location type passed to LoggingEvent constructor");this.constructor._getLocationKeys().forEach((e=>{void 0!==u[e]&&(this[e]=u[e])}))}}static _getLocationKeys(){return["fileName","lineNumber","columnNumber","callStack","className","functionName","functionAlias","callerName"]}serialise(){return Ye.stringify(this,((e,t)=>(t instanceof Error&&(t=Object.assign({message:t.message,stack:t.stack},t)),Xe.serialise(t))))}static deserialise(e){let t;try{const n=Ye.parse(e,((e,t)=>{if(t&&t.message&&t.stack){const e=new Error(t);Object.keys(t).forEach((n=>{e[n]=t[n]})),t=e}return Xe.deserialise(t)}));this._getLocationKeys().forEach((e=>{void 0!==n[e]&&(n.location||(n.location={}),n.location[e]=n[e])})),t=new Qe(n.categoryName,Ze.getLevel(n.level.levelStr),n.data,n.context,n.location,n.error),t.startTime=new Date(n.startTime),t.pid=n.pid,n.cluster&&(t.cluster=n.cluster)}catch(n){t=new Qe("log4js",Ze.ERROR,["Unable to parse log:",e,"because: ",n])}return t}};var et=Qe;const tt=G.exports("log4js:clustering"),nt=et,rt=fe;let ut=!1,ot=null;try{ot=require("cluster")}catch(e){tt("cluster module not present"),ut=!0}const it=[];let st=!1,ct="NODE_APP_INSTANCE";const at=()=>st&&"0"===process.env[ct],lt=()=>ut||ot&&ot.isMaster||at(),ft=e=>{it.forEach((t=>t(e)))},dt=(e,t)=>{if(tt("cluster message received from worker ",e,": ",t),e.topic&&e.data&&(t=e,e=void 0),t&&t.topic&&"log4js:message"===t.topic){tt("received message: ",t.data);const e=nt.deserialise(t.data);ft(e)}};ut||rt.addListener((e=>{it.length=0,({pm2:st,disableClustering:ut,pm2InstanceVar:ct="NODE_APP_INSTANCE"}=e),tt(`clustering disabled ? ${ut}`),tt(`cluster.isMaster ? ${ot&&ot.isMaster}`),tt(`pm2 enabled ? ${st}`),tt(`pm2InstanceVar = ${ct}`),tt(`process.env[${ct}] = ${process.env[ct]}`),st&&process.removeListener("message",dt),ot&&ot.removeListener&&ot.removeListener("message",dt),ut||e.disableClustering?tt("Not listening for cluster messages, because clustering disabled."):at()?(tt("listening for PM2 broadcast messages"),process.on("message",dt)):ot&&ot.isMaster?(tt("listening for cluster messages"),ot.on("message",dt)):tt("not listening for messages, because we are not a master process")}));var Dt={onlyOnMaster:(e,t)=>lt()?e():t,isMaster:lt,send:e=>{lt()?ft(e):(st||(e.cluster={workerId:ot.worker.id,worker:process.pid}),process.send({topic:"log4js:message",data:e.serialise()}))},onMessage:e=>{it.push(e)}},pt={};function ht(e){if("number"==typeof e&&Number.isInteger(e))return e;const t={K:1024,M:1048576,G:1073741824},n=Object.keys(t),r=e.slice(-1).toLocaleUpperCase(),u=e.slice(0,-1).trim();if(n.indexOf(r)<0||!Number.isInteger(Number(u)))throw Error(`maxLogSize: "${e}" is invalid`);return u*t[r]}function Et(e){return function(e,t){const n=Object.assign({},t);return Object.keys(e).forEach((r=>{n[r]&&(n[r]=e[r](t[r]))})),n}({maxLogSize:ht},e)}const mt={dateFile:Et,file:Et,fileSync:Et};pt.modifyConfig=e=>mt[e.type]?mt[e.type](e):e;var yt={};const Ct=console.log.bind(console);yt.configure=function(e,t){let n=t.colouredLayout;return e.layout&&(n=t.layout(e.layout.type,e.layout)),function(e,t){return n=>{Ct(e(n,t))}}(n,e.timezoneOffset)};var Ft={};Ft.configure=function(e,t){let n=t.colouredLayout;return e.layout&&(n=t.layout(e.layout.type,e.layout)),function(e,t){return n=>{process.stdout.write(`${e(n,t)}\n`)}}(n,e.timezoneOffset)};var gt={};gt.configure=function(e,t){let n=t.colouredLayout;return e.layout&&(n=t.layout(e.layout.type,e.layout)),function(e,t){return n=>{process.stderr.write(`${e(n,t)}\n`)}}(n,e.timezoneOffset)};var At={};At.configure=function(e,t,n,r){const u=n(e.appender);return function(e,t,n,r){const u=r.getLevel(e),o=r.getLevel(t,r.FATAL);return e=>{const t=e.level;u.isLessThanOrEqualTo(t)&&o.isGreaterThanOrEqualTo(t)&&n(e)}}(e.level,e.maxLevel,u,r)};var vt={};const St=G.exports("log4js:categoryFilter");vt.configure=function(e,t,n){const r=n(e.appender);return function(e,t){return"string"==typeof e&&(e=[e]),n=>{St(`Checking ${n.categoryName} against ${e}`),-1===e.indexOf(n.categoryName)&&(St("Not excluded, sending to appender"),t(n))}}(e.exclude,r)};var wt={};const Ot=G.exports("log4js:noLogFilter");wt.configure=function(e,t,n){const r=n(e.appender);return function(e,t){return n=>{Ot(`Checking data: ${n.data} against filters: ${e}`),"string"==typeof e&&(e=[e]),e=e.filter((e=>null!=e&&""!==e));const r=new RegExp(e.join("|"),"i");(0===e.length||n.data.findIndex((e=>r.test(e)))<0)&&(Ot("Not excluded, sending to appender"),t(n))}}(e.exclude,r)};var _t={},bt={exports:{}},Bt={},Pt={fromCallback:function(e){return Object.defineProperty((function(){if("function"!=typeof arguments[arguments.length-1])return new Promise(((t,n)=>{arguments[arguments.length]=(e,r)=>{if(e)return n(e);t(r)},arguments.length++,e.apply(this,arguments)}));e.apply(this,arguments)}),"name",{value:e.name})},fromPromise:function(e){return Object.defineProperty((function(){const t=arguments[arguments.length-1];if("function"!=typeof t)return e.apply(this,arguments);e.apply(this,arguments).then((e=>t(null,e)),t)}),"name",{value:e.name})}},kt=c,It=process.cwd,xt=null,Nt=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return xt||(xt=It.call(process)),xt};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var Rt=process.chdir;process.chdir=function(e){xt=null,Rt.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Rt)}var Tt=function(e){kt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,n,r){e.open(t,kt.O_WRONLY|kt.O_SYMLINK,n,(function(t,u){t?r&&r(t):e.fchmod(u,n,(function(t){e.close(u,(function(e){r&&r(t||e)}))}))}))},e.lchmodSync=function(t,n){var r,u=e.openSync(t,kt.O_WRONLY|kt.O_SYMLINK,n),o=!0;try{r=e.fchmodSync(u,n),o=!1}finally{if(o)try{e.closeSync(u)}catch(e){}else e.closeSync(u)}return r}}(e);e.lutimes||function(e){kt.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,n,r,u){e.open(t,kt.O_SYMLINK,(function(t,o){t?u&&u(t):e.futimes(o,n,r,(function(t){e.close(o,(function(e){u&&u(t||e)}))}))}))},e.lutimesSync=function(t,n,r){var u,o=e.openSync(t,kt.O_SYMLINK),i=!0;try{u=e.futimesSync(o,n,r),i=!1}finally{if(i)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return u}):e.futimes&&(e.lutimes=function(e,t,n,r){r&&process.nextTick(r)},e.lutimesSync=function(){})}(e);e.chown=r(e.chown),e.fchown=r(e.fchown),e.lchown=r(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=u(e.chownSync),e.fchownSync=u(e.fchownSync),e.lchownSync=u(e.lchownSync),e.chmodSync=n(e.chmodSync),e.fchmodSync=n(e.fchmodSync),e.lchmodSync=n(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=i(e.statSync),e.fstatSync=i(e.fstatSync),e.lstatSync=i(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){});e.chown&&!e.lchown&&(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){});"win32"===Nt&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function n(n,r,u){var o=Date.now(),i=0;t(n,r,(function s(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&Date.now()-o<6e4)return setTimeout((function(){e.stat(r,(function(e,o){e&&"ENOENT"===e.code?t(n,r,s):u(c)}))}),i),void(i<100&&(i+=10));u&&u(c)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.rename));function t(t){return t?function(n,r,u){return t.call(e,n,r,(function(e){s(e)&&(e=null),u&&u.apply(this,arguments)}))}:t}function n(t){return t?function(n,r){try{return t.call(e,n,r)}catch(e){if(!s(e))throw e}}:t}function r(t){return t?function(n,r,u,o){return t.call(e,n,r,u,(function(e){s(e)&&(e=null),o&&o.apply(this,arguments)}))}:t}function u(t){return t?function(n,r,u){try{return t.call(e,n,r,u)}catch(e){if(!s(e))throw e}}:t}function o(t){return t?function(n,r,u){function o(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),u&&u.apply(this,arguments)}return"function"==typeof r&&(u=r,r=null),r?t.call(e,n,r,o):t.call(e,n,o)}:t}function i(t){return t?function(n,r){var u=r?t.call(e,n,r):t.call(e,n);return u&&(u.uid<0&&(u.uid+=4294967296),u.gid<0&&(u.gid+=4294967296)),u}:t}function s(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read="function"!=typeof e.read?e.read:function(t){function n(n,r,u,o,i,s){var c;if(s&&"function"==typeof s){var a=0;c=function(l,f,d){if(l&&"EAGAIN"===l.code&&a<10)return a++,t.call(e,n,r,u,o,i,c);s.apply(this,arguments)}}return t.call(e,n,r,u,o,i,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(c=e.readSync,function(t,n,r,u,o){for(var i=0;;)try{return c.call(e,t,n,r,u,o)}catch(e){if("EAGAIN"===e.code&&i<10){i++;continue}throw e}});var c};var Mt=a.Stream,Lt=function(e){return{ReadStream:function t(n,r){if(!(this instanceof t))return new t(n,r);Mt.call(this);var u=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,r=r||{};for(var o=Object.keys(r),i=0,s=o.length;i<s;i++){var c=o[i];this[c]=r[c]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){u._read()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return u.emit("error",e),void(u.readable=!1);u.fd=t,u.emit("open",t),u._read()}))},WriteStream:function t(n,r){if(!(this instanceof t))return new t(n,r);Mt.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,r=r||{};for(var u=Object.keys(r),o=0,i=u.length;o<i;o++){var s=u[o];this[s]=r[s]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}};var jt=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:$t(e)};else t=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t},$t=Object.getPrototypeOf||function(e){return e.__proto__};var Ht,Gt,Vt=n,Ut=Tt,Jt=Lt,Wt=jt,zt=i;function Kt(e,t){Object.defineProperty(e,Ht,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(Ht=Symbol.for("graceful-fs.queue"),Gt=Symbol.for("graceful-fs.previous")):(Ht="___graceful-fs.queue",Gt="___graceful-fs.previous");var qt=function(){};if(zt.debuglog?qt=zt.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(qt=function(){var e=zt.format.apply(zt,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!Vt[Ht]){var Yt=p[Ht]||[];Kt(Vt,Yt),Vt.close=function(e){function t(t,n){return e.call(Vt,t,(function(e){e||tn(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(t,Gt,{value:e}),t}(Vt.close),Vt.closeSync=function(e){function t(t){e.apply(Vt,arguments),tn()}return Object.defineProperty(t,Gt,{value:e}),t}(Vt.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){qt(Vt[Ht]),l.equal(Vt[Ht].length,0)}))}p[Ht]||Kt(p,Vt[Ht]);var Zt,Xt=Qt(Wt(Vt));function Qt(e){Ut(e),e.gracefulify=Qt,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var t=e.readFile;e.readFile=function(e,n,r){"function"==typeof n&&(r=n,n=null);return function e(n,r,u,o){return t(n,r,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof u&&u.apply(this,arguments):en([e,[n,r,u],t,o||Date.now(),Date.now()])}))}(e,n,r)};var n=e.writeFile;e.writeFile=function(e,t,r,u){"function"==typeof r&&(u=r,r=null);return function e(t,r,u,o,i){return n(t,r,u,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof o&&o.apply(this,arguments):en([e,[t,r,u,o],n,i||Date.now(),Date.now()])}))}(e,t,r,u)};var r=e.appendFile;r&&(e.appendFile=function(e,t,n,u){"function"==typeof n&&(u=n,n=null);return function e(t,n,u,o,i){return r(t,n,u,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof o&&o.apply(this,arguments):en([e,[t,n,u,o],r,i||Date.now(),Date.now()])}))}(e,t,n,u)});var u=e.copyFile;u&&(e.copyFile=function(e,t,n,r){"function"==typeof n&&(r=n,n=0);return function e(t,n,r,o,i){return u(t,n,r,(function(u){!u||"EMFILE"!==u.code&&"ENFILE"!==u.code?"function"==typeof o&&o.apply(this,arguments):en([e,[t,n,r,o],u,i||Date.now(),Date.now()])}))}(e,t,n,r)});var o=e.readdir;e.readdir=function(e,t,n){"function"==typeof t&&(n=t,t=null);var r=i.test(process.version)?function(e,t,n,r){return o(e,u(e,t,n,r))}:function(e,t,n,r){return o(e,t,u(e,t,n,r))};return r(e,t,n);function u(e,t,n,u){return function(o,i){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(i&&i.sort&&i.sort(),"function"==typeof n&&n.call(this,o,i)):en([r,[e,t,n],o,u||Date.now(),Date.now()])}}};var i=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var s=Jt(e);d=s.ReadStream,D=s.WriteStream}var c=e.ReadStream;c&&(d.prototype=Object.create(c.prototype),d.prototype.open=function(){var e=this;h(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var a=e.WriteStream;a&&(D.prototype=Object.create(a.prototype),D.prototype.open=function(){var e=this;h(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return D},set:function(e){D=e},enumerable:!0,configurable:!0});var l=d;Object.defineProperty(e,"FileReadStream",{get:function(){return l},set:function(e){l=e},enumerable:!0,configurable:!0});var f=D;function d(e,t){return this instanceof d?(c.apply(this,arguments),this):d.apply(Object.create(d.prototype),arguments)}function D(e,t){return this instanceof D?(a.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0});var p=e.open;function h(e,t,n,r){return"function"==typeof n&&(r=n,n=null),function e(t,n,r,u,o){return p(t,n,r,(function(i,s){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof u&&u.apply(this,arguments):en([e,[t,n,r,u],i,o||Date.now(),Date.now()])}))}(e,t,n,r)}return e.open=h,e}function en(e){qt("ENQUEUE",e[0].name,e[1]),Vt[Ht].push(e),nn()}function tn(){for(var e=Date.now(),t=0;t<Vt[Ht].length;++t)Vt[Ht][t].length>2&&(Vt[Ht][t][3]=e,Vt[Ht][t][4]=e);nn()}function nn(){if(clearTimeout(Zt),Zt=void 0,0!==Vt[Ht].length){var e=Vt[Ht].shift(),t=e[0],n=e[1],r=e[2],u=e[3],o=e[4];if(void 0===u)qt("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-u>=6e4){qt("TIMEOUT",t.name,n);var i=n.pop();"function"==typeof i&&i.call(null,r)}else{var s=Date.now()-o,c=Math.max(o-u,1);s>=Math.min(1.2*c,100)?(qt("RETRY",t.name,n),t.apply(null,n.concat([u]))):Vt[Ht].push(e)}void 0===Zt&&(Zt=setTimeout(nn,0))}}process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Vt.__patched&&(Xt=Qt(Vt),Vt.__patched=!0),function(e){const t=Pt.fromCallback,n=Xt,r=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof n[e]));Object.keys(n).forEach((t=>{"promises"!==t&&(e[t]=n[t])})),r.forEach((r=>{e[r]=t(n[r])})),e.exists=function(e,t){return"function"==typeof t?n.exists(e,t):new Promise((t=>n.exists(e,t)))},e.read=function(e,t,r,u,o,i){return"function"==typeof i?n.read(e,t,r,u,o,i):new Promise(((i,s)=>{n.read(e,t,r,u,o,((e,t,n)=>{if(e)return s(e);i({bytesRead:t,buffer:n})}))}))},e.write=function(e,t,...r){return"function"==typeof r[r.length-1]?n.write(e,t,...r):new Promise(((u,o)=>{n.write(e,t,...r,((e,t,n)=>{if(e)return o(e);u({bytesWritten:t,buffer:n})}))}))},"function"==typeof n.realpath.native&&(e.realpath.native=t(n.realpath.native))}(Bt);const rn=e;function un(e){return(e=rn.normalize(rn.resolve(e)).split(rn.sep)).length>0?e[0]:null}const on=/[<>:"|?*]/;var sn=function(e){const t=un(e);return e=e.replace(t,""),on.test(e)};const cn=Xt,an=e,ln=sn,fn=parseInt("0777",8);var dn=function e(t,n,r,u){if("function"==typeof n?(r=n,n={}):n&&"object"==typeof n||(n={mode:n}),"win32"===process.platform&&ln(t)){const e=new Error(t+" contains invalid WIN32 path characters.");return e.code="EINVAL",r(e)}let o=n.mode;const i=n.fs||cn;void 0===o&&(o=fn&~process.umask()),u||(u=null),r=r||function(){},t=an.resolve(t),i.mkdir(t,o,(o=>{if(!o)return r(null,u=u||t);if("ENOENT"===o.code){if(an.dirname(t)===t)return r(o);e(an.dirname(t),n,((u,o)=>{u?r(u,o):e(t,n,r,o)}))}else i.stat(t,((e,t)=>{e||!t.isDirectory()?r(o,u):r(null,u)}))}))};const Dn=Xt,pn=e,hn=sn,En=parseInt("0777",8);var mn=function e(t,n,r){n&&"object"==typeof n||(n={mode:n});let u=n.mode;const o=n.fs||Dn;if("win32"===process.platform&&hn(t)){const e=new Error(t+" contains invalid WIN32 path characters.");throw e.code="EINVAL",e}void 0===u&&(u=En&~process.umask()),r||(r=null),t=pn.resolve(t);try{o.mkdirSync(t,u),r=r||t}catch(u){if("ENOENT"===u.code){if(pn.dirname(t)===t)throw u;r=e(pn.dirname(t),n,r),e(t,n,r)}else{let e;try{e=o.statSync(t)}catch(e){throw u}if(!e.isDirectory())throw u}}return r};const yn=(0,Pt.fromCallback)(dn);var Cn={mkdirs:yn,mkdirsSync:mn,mkdirp:yn,mkdirpSync:mn,ensureDir:yn,ensureDirSync:mn};const Fn=Xt;var gn=function(e,t,n,r){Fn.open(e,"r+",((e,u)=>{if(e)return r(e);Fn.futimes(u,t,n,(e=>{Fn.close(u,(t=>{r&&r(e||t)}))}))}))},An=function(e,t,n){const r=Fn.openSync(e,"r+");return Fn.futimesSync(r,t,n),Fn.closeSync(r)};const vn=Xt,Sn=e,wn=10,On=5,_n=0,bn=process.versions.node.split("."),Bn=Number.parseInt(bn[0],10),Pn=Number.parseInt(bn[1],10),kn=Number.parseInt(bn[2],10);function In(){if(Bn>wn)return!0;if(Bn===wn){if(Pn>On)return!0;if(Pn===On&&kn>=_n)return!0}return!1}function xn(e,t){const n=Sn.resolve(e).split(Sn.sep).filter((e=>e)),r=Sn.resolve(t).split(Sn.sep).filter((e=>e));return n.reduce(((e,t,n)=>e&&r[n]===t),!0)}function Nn(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}var Rn,Tn,Mn={checkPaths:function(e,t,n,r){!function(e,t,n){In()?vn.stat(e,{bigint:!0},((e,r)=>{if(e)return n(e);vn.stat(t,{bigint:!0},((e,t)=>e?"ENOENT"===e.code?n(null,{srcStat:r,destStat:null}):n(e):n(null,{srcStat:r,destStat:t})))})):vn.stat(e,((e,r)=>{if(e)return n(e);vn.stat(t,((e,t)=>e?"ENOENT"===e.code?n(null,{srcStat:r,destStat:null}):n(e):n(null,{srcStat:r,destStat:t})))}))}(e,t,((u,o)=>{if(u)return r(u);const{srcStat:i,destStat:s}=o;return s&&s.ino&&s.dev&&s.ino===i.ino&&s.dev===i.dev?r(new Error("Source and destination must not be the same.")):i.isDirectory()&&xn(e,t)?r(new Error(Nn(e,t,n))):r(null,{srcStat:i,destStat:s})}))},checkPathsSync:function(e,t,n){const{srcStat:r,destStat:u}=function(e,t){let n,r;n=In()?vn.statSync(e,{bigint:!0}):vn.statSync(e);try{r=In()?vn.statSync(t,{bigint:!0}):vn.statSync(t)}catch(e){if("ENOENT"===e.code)return{srcStat:n,destStat:null};throw e}return{srcStat:n,destStat:r}}(e,t);if(u&&u.ino&&u.dev&&u.ino===r.ino&&u.dev===r.dev)throw new Error("Source and destination must not be the same.");if(r.isDirectory()&&xn(e,t))throw new Error(Nn(e,t,n));return{srcStat:r,destStat:u}},checkParentPaths:function e(t,n,r,u,o){const i=Sn.resolve(Sn.dirname(t)),s=Sn.resolve(Sn.dirname(r));if(s===i||s===Sn.parse(s).root)return o();In()?vn.stat(s,{bigint:!0},((i,c)=>i?"ENOENT"===i.code?o():o(i):c.ino&&c.dev&&c.ino===n.ino&&c.dev===n.dev?o(new Error(Nn(t,r,u))):e(t,n,s,u,o))):vn.stat(s,((i,c)=>i?"ENOENT"===i.code?o():o(i):c.ino&&c.dev&&c.ino===n.ino&&c.dev===n.dev?o(new Error(Nn(t,r,u))):e(t,n,s,u,o)))},checkParentPathsSync:function e(t,n,r,u){const o=Sn.resolve(Sn.dirname(t)),i=Sn.resolve(Sn.dirname(r));if(i===o||i===Sn.parse(i).root)return;let s;try{s=In()?vn.statSync(i,{bigint:!0}):vn.statSync(i)}catch(e){if("ENOENT"===e.code)return;throw e}if(s.ino&&s.dev&&s.ino===n.ino&&s.dev===n.dev)throw new Error(Nn(t,r,u));return e(t,n,i,u)},isSrcSubdir:xn};const Ln=Xt,jn=e,$n=Cn.mkdirsSync,Hn=An,Gn=Mn;function Vn(e,t,n,r){if(!r.filter||r.filter(t,n))return function(e,t,n,r){const u=r.dereference?Ln.statSync:Ln.lstatSync,o=u(t);if(o.isDirectory())return function(e,t,n,r,u){if(!t)return function(e,t,n,r){return Ln.mkdirSync(n),Jn(t,n,r),Ln.chmodSync(n,e.mode)}(e,n,r,u);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`);return Jn(n,r,u)}(o,e,t,n,r);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return function(e,t,n,r,u){return t?function(e,t,n,r){if(r.overwrite)return Ln.unlinkSync(n),Un(e,t,n,r);if(r.errorOnExist)throw new Error(`'${n}' already exists`)}(e,n,r,u):Un(e,n,r,u)}(o,e,t,n,r);if(o.isSymbolicLink())return function(e,t,n,r){let u=Ln.readlinkSync(t);r.dereference&&(u=jn.resolve(process.cwd(),u));if(e){let e;try{e=Ln.readlinkSync(n)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return Ln.symlinkSync(u,n);throw e}if(r.dereference&&(e=jn.resolve(process.cwd(),e)),Gn.isSrcSubdir(u,e))throw new Error(`Cannot copy '${u}' to a subdirectory of itself, '${e}'.`);if(Ln.statSync(n).isDirectory()&&Gn.isSrcSubdir(e,u))throw new Error(`Cannot overwrite '${e}' with '${u}'.`);return function(e,t){return Ln.unlinkSync(t),Ln.symlinkSync(e,t)}(u,n)}return Ln.symlinkSync(u,n)}(e,t,n,r)}(e,t,n,r)}function Un(e,t,n,r){return"function"==typeof Ln.copyFileSync?(Ln.copyFileSync(t,n),Ln.chmodSync(n,e.mode),r.preserveTimestamps?Hn(n,e.atime,e.mtime):void 0):function(e,t,n,r){const u=65536,o=(Tn?Rn:(Tn=1,Rn=function(e){if("function"==typeof Buffer.allocUnsafe)try{return Buffer.allocUnsafe(e)}catch(t){return new Buffer(e)}return new Buffer(e)}))(u),i=Ln.openSync(t,"r"),s=Ln.openSync(n,"w",e.mode);let c=0;for(;c<e.size;){const e=Ln.readSync(i,o,0,u,c);Ln.writeSync(s,o,0,e),c+=e}r.preserveTimestamps&&Ln.futimesSync(s,e.atime,e.mtime);Ln.closeSync(i),Ln.closeSync(s)}(e,t,n,r)}function Jn(e,t,n){Ln.readdirSync(e).forEach((r=>function(e,t,n,r){const u=jn.join(t,e),o=jn.join(n,e),{destStat:i}=Gn.checkPathsSync(u,o,"copy");return Vn(i,u,o,r)}(r,e,t,n)))}var Wn=function(e,t,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269");const{srcStat:r,destStat:u}=Gn.checkPathsSync(e,t,"copy");return Gn.checkParentPathsSync(e,r,t,"copy"),function(e,t,n,r){if(r.filter&&!r.filter(t,n))return;const u=jn.dirname(n);Ln.existsSync(u)||$n(u);return Vn(e,t,n,r)}(u,e,t,n)},zn={copySync:Wn};const Kn=Pt.fromPromise,qn=Bt;var Yn={pathExists:Kn((function(e){return qn.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:qn.existsSync};const Zn=Xt,Xn=e,Qn=Cn.mkdirs,er=Yn.pathExists,tr=gn,nr=Mn;function rr(e,t,n,r,u){const o=Xn.dirname(n);er(o,((i,s)=>i?u(i):s?or(e,t,n,r,u):void Qn(o,(o=>o?u(o):or(e,t,n,r,u)))))}function ur(e,t,n,r,u,o){Promise.resolve(u.filter(n,r)).then((i=>i?e(t,n,r,u,o):o()),(e=>o(e)))}function or(e,t,n,r,u){return r.filter?ur(ir,e,t,n,r,u):ir(e,t,n,r,u)}function ir(e,t,n,r,u){(r.dereference?Zn.stat:Zn.lstat)(t,((o,i)=>o?u(o):i.isDirectory()?function(e,t,n,r,u,o){if(!t)return function(e,t,n,r,u){Zn.mkdir(n,(o=>{if(o)return u(o);ar(t,n,r,(t=>t?u(t):Zn.chmod(n,e.mode,u)))}))}(e,n,r,u,o);if(t&&!t.isDirectory())return o(new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`));return ar(n,r,u,o)}(i,e,t,n,r,u):i.isFile()||i.isCharacterDevice()||i.isBlockDevice()?function(e,t,n,r,u,o){return t?function(e,t,n,r,u){if(!r.overwrite)return r.errorOnExist?u(new Error(`'${n}' already exists`)):u();Zn.unlink(n,(o=>o?u(o):sr(e,t,n,r,u)))}(e,n,r,u,o):sr(e,n,r,u,o)}(i,e,t,n,r,u):i.isSymbolicLink()?function(e,t,n,r,u){Zn.readlink(t,((t,o)=>t?u(t):(r.dereference&&(o=Xn.resolve(process.cwd(),o)),e?void Zn.readlink(n,((t,i)=>t?"EINVAL"===t.code||"UNKNOWN"===t.code?Zn.symlink(o,n,u):u(t):(r.dereference&&(i=Xn.resolve(process.cwd(),i)),nr.isSrcSubdir(o,i)?u(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${i}'.`)):e.isDirectory()&&nr.isSrcSubdir(i,o)?u(new Error(`Cannot overwrite '${i}' with '${o}'.`)):function(e,t,n){Zn.unlink(t,(r=>r?n(r):Zn.symlink(e,t,n)))}(o,n,u)))):Zn.symlink(o,n,u))))}(e,t,n,r,u):void 0))}function sr(e,t,n,r,u){return"function"==typeof Zn.copyFile?Zn.copyFile(t,n,(t=>t?u(t):cr(e,n,r,u))):function(e,t,n,r,u){const o=Zn.createReadStream(t);o.on("error",(e=>u(e))).once("open",(()=>{const t=Zn.createWriteStream(n,{mode:e.mode});t.on("error",(e=>u(e))).on("open",(()=>o.pipe(t))).once("close",(()=>cr(e,n,r,u)))}))}(e,t,n,r,u)}function cr(e,t,n,r){Zn.chmod(t,e.mode,(u=>u?r(u):n.preserveTimestamps?tr(t,e.atime,e.mtime,r):r()))}function ar(e,t,n,r){Zn.readdir(e,((u,o)=>u?r(u):lr(o,e,t,n,r)))}function lr(e,t,n,r,u){const o=e.pop();return o?function(e,t,n,r,u,o){const i=Xn.join(n,t),s=Xn.join(r,t);nr.checkPaths(i,s,"copy",((t,c)=>{if(t)return o(t);const{destStat:a}=c;or(a,i,s,u,(t=>t?o(t):lr(e,n,r,u,o)))}))}(e,o,t,n,r,u):u()}var fr=function(e,t,n,r){"function"!=typeof n||r?"function"==typeof n&&(n={filter:n}):(r=n,n={}),r=r||function(){},(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&console.warn("fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269"),nr.checkPaths(e,t,"copy",((u,o)=>{if(u)return r(u);const{srcStat:i,destStat:s}=o;nr.checkParentPaths(e,i,t,"copy",(u=>u?r(u):n.filter?ur(rr,s,e,t,n,r):rr(s,e,t,n,r)))}))};var dr={copy:(0,Pt.fromCallback)(fr)};const Dr=Xt,pr=e,hr=l,Er="win32"===process.platform;function mr(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((t=>{e[t]=e[t]||Dr[t],e[t+="Sync"]=e[t]||Dr[t]})),e.maxBusyTries=e.maxBusyTries||3}function yr(e,t,n){let r=0;"function"==typeof t&&(n=t,t={}),hr(e,"rimraf: missing path"),hr.strictEqual(typeof e,"string","rimraf: path should be a string"),hr.strictEqual(typeof n,"function","rimraf: callback function required"),hr(t,"rimraf: invalid options argument provided"),hr.strictEqual(typeof t,"object","rimraf: options should be object"),mr(t),Cr(e,t,(function u(o){if(o){if(("EBUSY"===o.code||"ENOTEMPTY"===o.code||"EPERM"===o.code)&&r<t.maxBusyTries){r++;return setTimeout((()=>Cr(e,t,u)),100*r)}"ENOENT"===o.code&&(o=null)}n(o)}))}function Cr(e,t,n){hr(e),hr(t),hr("function"==typeof n),t.lstat(e,((r,u)=>r&&"ENOENT"===r.code?n(null):r&&"EPERM"===r.code&&Er?Fr(e,t,r,n):u&&u.isDirectory()?Ar(e,t,r,n):void t.unlink(e,(r=>{if(r){if("ENOENT"===r.code)return n(null);if("EPERM"===r.code)return Er?Fr(e,t,r,n):Ar(e,t,r,n);if("EISDIR"===r.code)return Ar(e,t,r,n)}return n(r)}))))}function Fr(e,t,n,r){hr(e),hr(t),hr("function"==typeof r),n&&hr(n instanceof Error),t.chmod(e,438,(u=>{u?r("ENOENT"===u.code?null:n):t.stat(e,((u,o)=>{u?r("ENOENT"===u.code?null:n):o.isDirectory()?Ar(e,t,n,r):t.unlink(e,r)}))}))}function gr(e,t,n){let r;hr(e),hr(t),n&&hr(n instanceof Error);try{t.chmodSync(e,438)}catch(e){if("ENOENT"===e.code)return;throw n}try{r=t.statSync(e)}catch(e){if("ENOENT"===e.code)return;throw n}r.isDirectory()?Sr(e,t,n):t.unlinkSync(e)}function Ar(e,t,n,r){hr(e),hr(t),n&&hr(n instanceof Error),hr("function"==typeof r),t.rmdir(e,(u=>{!u||"ENOTEMPTY"!==u.code&&"EEXIST"!==u.code&&"EPERM"!==u.code?u&&"ENOTDIR"===u.code?r(n):r(u):function(e,t,n){hr(e),hr(t),hr("function"==typeof n),t.readdir(e,((r,u)=>{if(r)return n(r);let o,i=u.length;if(0===i)return t.rmdir(e,n);u.forEach((r=>{yr(pr.join(e,r),t,(r=>{if(!o)return r?n(o=r):void(0==--i&&t.rmdir(e,n))}))}))}))}(e,t,r)}))}function vr(e,t){let n;mr(t=t||{}),hr(e,"rimraf: missing path"),hr.strictEqual(typeof e,"string","rimraf: path should be a string"),hr(t,"rimraf: missing options"),hr.strictEqual(typeof t,"object","rimraf: options should be object");try{n=t.lstatSync(e)}catch(n){if("ENOENT"===n.code)return;"EPERM"===n.code&&Er&&gr(e,t,n)}try{n&&n.isDirectory()?Sr(e,t,null):t.unlinkSync(e)}catch(n){if("ENOENT"===n.code)return;if("EPERM"===n.code)return Er?gr(e,t,n):Sr(e,t,n);if("EISDIR"!==n.code)throw n;Sr(e,t,n)}}function Sr(e,t,n){hr(e),hr(t),n&&hr(n instanceof Error);try{t.rmdirSync(e)}catch(r){if("ENOTDIR"===r.code)throw n;if("ENOTEMPTY"===r.code||"EEXIST"===r.code||"EPERM"===r.code)!function(e,t){if(hr(e),hr(t),t.readdirSync(e).forEach((n=>vr(pr.join(e,n),t))),!Er){return t.rmdirSync(e,t)}{const n=Date.now();do{try{return t.rmdirSync(e,t)}catch(e){}}while(Date.now()-n<500)}}(e,t);else if("ENOENT"!==r.code)throw r}}var wr=yr;yr.sync=vr;const Or=wr;var _r={remove:(0,Pt.fromCallback)(Or),removeSync:Or.sync};const br=Pt.fromCallback,Br=Xt,Pr=e,kr=Cn,Ir=_r,xr=br((function(e,t){t=t||function(){},Br.readdir(e,((n,r)=>{if(n)return kr.mkdirs(e,t);r=r.map((t=>Pr.join(e,t))),function e(){const n=r.pop();if(!n)return t();Ir.remove(n,(n=>{if(n)return t(n);e()}))}()}))}));function Nr(e){let t;try{t=Br.readdirSync(e)}catch(t){return kr.mkdirsSync(e)}t.forEach((t=>{t=Pr.join(e,t),Ir.removeSync(t)}))}var Rr={emptyDirSync:Nr,emptydirSync:Nr,emptyDir:xr,emptydir:xr};const Tr=Pt.fromCallback,Mr=e,Lr=Xt,jr=Cn,$r=Yn.pathExists;var Hr={createFile:Tr((function(e,t){function n(){Lr.writeFile(e,"",(e=>{if(e)return t(e);t()}))}Lr.stat(e,((r,u)=>{if(!r&&u.isFile())return t();const o=Mr.dirname(e);$r(o,((e,r)=>e?t(e):r?n():void jr.mkdirs(o,(e=>{if(e)return t(e);n()}))))}))})),createFileSync:function(e){let t;try{t=Lr.statSync(e)}catch(e){}if(t&&t.isFile())return;const n=Mr.dirname(e);Lr.existsSync(n)||jr.mkdirsSync(n),Lr.writeFileSync(e,"")}};const Gr=Pt.fromCallback,Vr=e,Ur=Xt,Jr=Cn,Wr=Yn.pathExists;var zr={createLink:Gr((function(e,t,n){function r(e,t){Ur.link(e,t,(e=>{if(e)return n(e);n(null)}))}Wr(t,((u,o)=>u?n(u):o?n(null):void Ur.lstat(e,(u=>{if(u)return u.message=u.message.replace("lstat","ensureLink"),n(u);const o=Vr.dirname(t);Wr(o,((u,i)=>u?n(u):i?r(e,t):void Jr.mkdirs(o,(u=>{if(u)return n(u);r(e,t)}))))}))))})),createLinkSync:function(e,t){if(Ur.existsSync(t))return;try{Ur.lstatSync(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const n=Vr.dirname(t);return Ur.existsSync(n)||Jr.mkdirsSync(n),Ur.linkSync(e,t)}};const Kr=e,qr=Xt,Yr=Yn.pathExists;var Zr={symlinkPaths:function(e,t,n){if(Kr.isAbsolute(e))return qr.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:e})));{const r=Kr.dirname(t),u=Kr.join(r,e);return Yr(u,((t,o)=>t?n(t):o?n(null,{toCwd:u,toDst:e}):qr.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:Kr.relative(r,e)})))))}},symlinkPathsSync:function(e,t){let n;if(Kr.isAbsolute(e)){if(n=qr.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{const r=Kr.dirname(t),u=Kr.join(r,e);if(n=qr.existsSync(u),n)return{toCwd:u,toDst:e};if(n=qr.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Kr.relative(r,e)}}}};const Xr=Xt;var Qr={symlinkType:function(e,t,n){if(n="function"==typeof t?t:n,t="function"!=typeof t&&t)return n(null,t);Xr.lstat(e,((e,r)=>{if(e)return n(null,"file");t=r&&r.isDirectory()?"dir":"file",n(null,t)}))},symlinkTypeSync:function(e,t){let n;if(t)return t;try{n=Xr.lstatSync(e)}catch(e){return"file"}return n&&n.isDirectory()?"dir":"file"}};const eu=Pt.fromCallback,tu=e,nu=Xt,ru=Cn.mkdirs,uu=Cn.mkdirsSync,ou=Zr.symlinkPaths,iu=Zr.symlinkPathsSync,su=Qr.symlinkType,cu=Qr.symlinkTypeSync,au=Yn.pathExists;var lu={createSymlink:eu((function(e,t,n,r){r="function"==typeof n?n:r,n="function"!=typeof n&&n,au(t,((u,o)=>u?r(u):o?r(null):void ou(e,t,((u,o)=>{if(u)return r(u);e=o.toDst,su(o.toCwd,n,((n,u)=>{if(n)return r(n);const o=tu.dirname(t);au(o,((n,i)=>n?r(n):i?nu.symlink(e,t,u,r):void ru(o,(n=>{if(n)return r(n);nu.symlink(e,t,u,r)}))))}))}))))})),createSymlinkSync:function(e,t,n){if(nu.existsSync(t))return;const r=iu(e,t);e=r.toDst,n=cu(r.toCwd,n);const u=tu.dirname(t);return nu.existsSync(u)||uu(u),nu.symlinkSync(e,t,n)}};var fu,du={createFile:Hr.createFile,createFileSync:Hr.createFileSync,ensureFile:Hr.createFile,ensureFileSync:Hr.createFileSync,createLink:zr.createLink,createLinkSync:zr.createLinkSync,ensureLink:zr.createLink,ensureLinkSync:zr.createLinkSync,createSymlink:lu.createSymlink,createSymlinkSync:lu.createSymlinkSync,ensureSymlink:lu.createSymlink,ensureSymlinkSync:lu.createSymlinkSync};try{fu=Xt}catch(e){fu=n}function Du(e,t){var n,r="\n";return"object"==typeof t&&null!==t&&(t.spaces&&(n=t.spaces),t.EOL&&(r=t.EOL)),JSON.stringify(e,t?t.replacer:null,n).replace(/\n/g,r)+r}function pu(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e=e.replace(/^\uFEFF/,"")}var hu={readFile:function(e,t,n){null==n&&(n=t,t={}),"string"==typeof t&&(t={encoding:t});var r=(t=t||{}).fs||fu,u=!0;"throws"in t&&(u=t.throws),r.readFile(e,t,(function(r,o){if(r)return n(r);var i;o=pu(o);try{i=JSON.parse(o,t?t.reviver:null)}catch(t){return u?(t.message=e+": "+t.message,n(t)):n(null,null)}n(null,i)}))},readFileSync:function(e,t){"string"==typeof(t=t||{})&&(t={encoding:t});var n=t.fs||fu,r=!0;"throws"in t&&(r=t.throws);try{var u=n.readFileSync(e,t);return u=pu(u),JSON.parse(u,t.reviver)}catch(t){if(r)throw t.message=e+": "+t.message,t;return null}},writeFile:function(e,t,n,r){null==r&&(r=n,n={});var u=(n=n||{}).fs||fu,o="";try{o=Du(t,n)}catch(e){return void(r&&r(e,null))}u.writeFile(e,o,n,r)},writeFileSync:function(e,t,n){var r=(n=n||{}).fs||fu,u=Du(t,n);return r.writeFileSync(e,u,n)}},Eu=hu;const mu=Pt.fromCallback,yu=Eu;var Cu={readJson:mu(yu.readFile),readJsonSync:yu.readFileSync,writeJson:mu(yu.writeFile),writeJsonSync:yu.writeFileSync};const Fu=e,gu=Cn,Au=Yn.pathExists,vu=Cu;var Su=function(e,t,n,r){"function"==typeof n&&(r=n,n={});const u=Fu.dirname(e);Au(u,((o,i)=>o?r(o):i?vu.writeJson(e,t,n,r):void gu.mkdirs(u,(u=>{if(u)return r(u);vu.writeJson(e,t,n,r)}))))};const wu=Xt,Ou=e,_u=Cn,bu=Cu;var Bu=function(e,t,n){const r=Ou.dirname(e);wu.existsSync(r)||_u.mkdirsSync(r),bu.writeJsonSync(e,t,n)};const Pu=Pt.fromCallback,ku=Cu;ku.outputJson=Pu(Su),ku.outputJsonSync=Bu,ku.outputJSON=ku.outputJson,ku.outputJSONSync=ku.outputJsonSync,ku.writeJSON=ku.writeJson,ku.writeJSONSync=ku.writeJsonSync,ku.readJSON=ku.readJson,ku.readJSONSync=ku.readJsonSync;var Iu=ku;const xu=Xt,Nu=e,Ru=zn.copySync,Tu=_r.removeSync,Mu=Cn.mkdirpSync,Lu=Mn;function ju(e,t,n){try{xu.renameSync(e,t)}catch(r){if("EXDEV"!==r.code)throw r;return function(e,t,n){const r={overwrite:n,errorOnExist:!0};return Ru(e,t,r),Tu(e)}(e,t,n)}}var $u=function(e,t,n){const r=(n=n||{}).overwrite||n.clobber||!1,{srcStat:u}=Lu.checkPathsSync(e,t,"move");return Lu.checkParentPathsSync(e,u,t,"move"),Mu(Nu.dirname(t)),function(e,t,n){if(n)return Tu(t),ju(e,t,n);if(xu.existsSync(t))throw new Error("dest already exists.");return ju(e,t,n)}(e,t,r)},Hu={moveSync:$u};const Gu=Xt,Vu=e,Uu=dr.copy,Ju=_r.remove,Wu=Cn.mkdirp,zu=Yn.pathExists,Ku=Mn;function qu(e,t,n,r){Gu.rename(e,t,(u=>u?"EXDEV"!==u.code?r(u):function(e,t,n,r){const u={overwrite:n,errorOnExist:!0};Uu(e,t,u,(t=>t?r(t):Ju(e,r)))}(e,t,n,r):r()))}var Yu=function(e,t,n,r){"function"==typeof n&&(r=n,n={});const u=n.overwrite||n.clobber||!1;Ku.checkPaths(e,t,"move",((n,o)=>{if(n)return r(n);const{srcStat:i}=o;Ku.checkParentPaths(e,i,t,"move",(n=>{if(n)return r(n);Wu(Vu.dirname(t),(n=>n?r(n):function(e,t,n,r){if(n)return Ju(t,(u=>u?r(u):qu(e,t,n,r)));zu(t,((u,o)=>u?r(u):o?r(new Error("dest already exists.")):qu(e,t,n,r)))}(e,t,u,r)))}))}))};var Zu={move:(0,Pt.fromCallback)(Yu)};const Xu=Pt.fromCallback,Qu=Xt,eo=e,to=Cn,no=Yn.pathExists;var ro={outputFile:Xu((function(e,t,n,r){"function"==typeof n&&(r=n,n="utf8");const u=eo.dirname(e);no(u,((o,i)=>o?r(o):i?Qu.writeFile(e,t,n,r):void to.mkdirs(u,(u=>{if(u)return r(u);Qu.writeFile(e,t,n,r)}))))})),outputFileSync:function(e,...t){const n=eo.dirname(e);if(Qu.existsSync(n))return Qu.writeFileSync(e,...t);to.mkdirsSync(n),Qu.writeFileSync(e,...t)}};!function(e){e.exports=Object.assign({},Bt,zn,dr,Rr,du,Iu,Cn,Hu,Zu,ro,Yn,_r);const t=n;Object.getOwnPropertyDescriptor(t,"promises")&&Object.defineProperty(e.exports,"promises",{get:()=>t.promises})}(bt);const uo=G.exports("streamroller:fileNameFormatter"),oo=e;const io=G.exports("streamroller:fileNameParser"),so=de.exports;const co=G.exports("streamroller:moveAndMaybeCompressFile"),ao=bt.exports,lo=f;var fo=async(e,t,n)=>{if(n=function(e){const t={mode:parseInt("0600",8),compress:!1},n=Object.assign({},t,e);return co(`_parseOption: moveAndMaybeCompressFile called with option=${JSON.stringify(n)}`),n}(n),e!==t){if(await ao.pathExists(e))if(co(`moveAndMaybeCompressFile: moving file from ${e} to ${t} ${n.compress?"with":"without"} compress`),n.compress)await new Promise(((r,u)=>{let o=!1;const i=ao.createWriteStream(t,{mode:n.mode,flags:"wx"}).on("open",(()=>{o=!0;const t=ao.createReadStream(e).on("open",(()=>{t.pipe(lo.createGzip()).pipe(i)})).on("error",(t=>{co(`moveAndMaybeCompressFile: error reading ${e}`,t),i.destroy(t)}))})).on("finish",(()=>{co(`moveAndMaybeCompressFile: finished compressing ${t}, deleting ${e}`),ao.unlink(e).then(r).catch((t=>{co(`moveAndMaybeCompressFile: error deleting ${e}, truncating instead`,t),ao.truncate(e).then(r).catch((t=>{co(`moveAndMaybeCompressFile: error truncating ${e}`,t),u(t)}))}))})).on("error",(e=>{o?(co(`moveAndMaybeCompressFile: error writing ${t}, deleting`,e),ao.unlink(t).then((()=>{u(e)})).catch((e=>{co(`moveAndMaybeCompressFile: error deleting ${t}`,e),u(e)}))):(co(`moveAndMaybeCompressFile: error creating ${t}`,e),u(e))}))})).catch((()=>{}));else{co(`moveAndMaybeCompressFile: renaming ${e} to ${t}`);try{await ao.move(e,t,{overwrite:!0})}catch(n){if(co(`moveAndMaybeCompressFile: error renaming ${e} to ${t}`,n),"ENOENT"!==n.code){co("moveAndMaybeCompressFile: trying copy+truncate instead");try{await ao.copy(e,t,{overwrite:!0}),await ao.truncate(e)}catch(e){co("moveAndMaybeCompressFile: error copy+truncate",e)}}}}}else co("moveAndMaybeCompressFile: source and target are the same, not doing anything")};const Do=G.exports("streamroller:RollingFileWriteStream"),po=bt.exports,ho=e,Eo=t,mo=()=>new Date,yo=de.exports,{Writable:Co}=a,Fo=({file:e,keepFileExt:t,needsIndex:n,alwaysIncludeDate:r,compress:u,fileNameSep:o})=>{let i=o||".";const s=oo.join(e.dir,e.name),c=t=>t+e.ext,a=(e,t,r)=>!n&&r||!t?e:e+i+t,l=(e,t,n)=>(t>0||r)&&n?e+i+n:e,f=(e,t)=>t&&u?e+".gz":e,d=t?[l,a,c,f]:[c,l,a,f];return({date:e,index:t})=>(uo(`_formatFileName: date=${e}, index=${t}`),d.reduce(((n,r)=>r(n,t,e)),s))},go=({file:e,keepFileExt:t,pattern:n,fileNameSep:r})=>{let u=r||".";const o="__NOT_MATCHING__";let i=[(e,t)=>e.endsWith(".gz")?(io("it is gzipped"),t.isCompressed=!0,e.slice(0,-3)):e,t?t=>t.startsWith(e.name)&&t.endsWith(e.ext)?(io("it starts and ends with the right things"),t.slice(e.name.length+1,-1*e.ext.length)):o:t=>t.startsWith(e.base)?(io("it starts with the right things"),t.slice(e.base.length+1)):o,n?(e,t)=>{const r=e.split(u);let o=r[r.length-1];io("items: ",r,", indexStr: ",o);let i=e;void 0!==o&&o.match(/^\d+$/)?(i=e.slice(0,-1*(o.length+1)),io(`dateStr is ${i}`),n&&!i&&(i=o,o="0")):o="0";try{const r=so.parse(n,i,new Date(0,0));return so.asString(n,r)!==i?e:(t.index=parseInt(o,10),t.date=i,t.timestamp=r.getTime(),"")}catch(t){return io(`Problem parsing ${i} as ${n}, error was: `,t),e}}:(e,t)=>e.match(/^\d+$/)?(io("it has an index"),t.index=parseInt(e,10),""):e];return e=>{let t={filename:e,index:0,isCompressed:!1};return i.reduce(((e,n)=>n(e,t)),e)?null:t}},Ao=fo;var vo=class extends Co{constructor(e,t){if(Do(`constructor: creating RollingFileWriteStream. path=${e}`),"string"!=typeof e||0===e.length)throw new Error(`Invalid filename: ${e}`);if(e.endsWith(ho.sep))throw new Error(`Filename is a directory: ${e}`);0===e.indexOf(`~${ho.sep}`)&&(e=e.replace("~",Eo.homedir())),super(t),this.options=this._parseOption(t),this.fileObject=ho.parse(e),""===this.fileObject.dir&&(this.fileObject=ho.parse(ho.join(process.cwd(),e))),this.fileFormatter=Fo({file:this.fileObject,alwaysIncludeDate:this.options.alwaysIncludePattern,needsIndex:this.options.maxSize<Number.MAX_SAFE_INTEGER,compress:this.options.compress,keepFileExt:this.options.keepFileExt,fileNameSep:this.options.fileNameSep}),this.fileNameParser=go({file:this.fileObject,keepFileExt:this.options.keepFileExt,pattern:this.options.pattern,fileNameSep:this.options.fileNameSep}),this.state={currentSize:0},this.options.pattern&&(this.state.currentDate=yo(this.options.pattern,mo())),this.filename=this.fileFormatter({index:0,date:this.state.currentDate}),["a","a+","as","as+"].includes(this.options.flags)&&this._setExistingSizeAndDate(),Do(`constructor: create new file ${this.filename}, state=${JSON.stringify(this.state)}`),this._renewWriteStream()}_setExistingSizeAndDate(){try{const e=po.statSync(this.filename);this.state.currentSize=e.size,this.options.pattern&&(this.state.currentDate=yo(this.options.pattern,e.mtime))}catch(e){return}}_parseOption(e){const t={maxSize:0,numToKeep:Number.MAX_SAFE_INTEGER,encoding:"utf8",mode:parseInt("0600",8),flags:"a",compress:!1,keepFileExt:!1,alwaysIncludePattern:!1},n=Object.assign({},t,e);if(n.maxSize){if(n.maxSize<=0)throw new Error(`options.maxSize (${n.maxSize}) should be > 0`)}else delete n.maxSize;if(n.numBackups||0===n.numBackups){if(n.numBackups<0)throw new Error(`options.numBackups (${n.numBackups}) should be >= 0`);if(n.numBackups>=Number.MAX_SAFE_INTEGER)throw new Error(`options.numBackups (${n.numBackups}) should be < Number.MAX_SAFE_INTEGER`);n.numToKeep=n.numBackups+1}else if(n.numToKeep<=0)throw new Error(`options.numToKeep (${n.numToKeep}) should be > 0`);return Do(`_parseOption: creating stream with option=${JSON.stringify(n)}`),n}_final(e){this.currentFileStream.end("",this.options.encoding,e)}_write(e,t,n){this._shouldRoll().then((()=>{Do(`_write: writing chunk. file=${this.currentFileStream.path} state=${JSON.stringify(this.state)} chunk=${e}`),this.currentFileStream.write(e,t,(t=>{this.state.currentSize+=e.length,n(t)}))}))}async _shouldRoll(){(this._dateChanged()||this._tooBig())&&(Do(`_shouldRoll: rolling because dateChanged? ${this._dateChanged()} or tooBig? ${this._tooBig()}`),await this._roll())}_dateChanged(){return this.state.currentDate&&this.state.currentDate!==yo(this.options.pattern,mo())}_tooBig(){return this.state.currentSize>=this.options.maxSize}_roll(){return Do("_roll: closing the current stream"),new Promise(((e,t)=>{this.currentFileStream.end("",this.options.encoding,(()=>{this._moveOldFiles().then(e).catch(t)}))}))}async _moveOldFiles(){const e=await this._getExistingFiles();for(let t=(this.state.currentDate?e.filter((e=>e.date===this.state.currentDate)):e).length;t>=0;t--){Do(`_moveOldFiles: i = ${t}`);const e=this.fileFormatter({date:this.state.currentDate,index:t}),n=this.fileFormatter({date:this.state.currentDate,index:t+1}),r={compress:this.options.compress&&0===t,mode:this.options.mode};await Ao(e,n,r)}this.state.currentSize=0,this.state.currentDate=this.state.currentDate?yo(this.options.pattern,mo()):null,Do(`_moveOldFiles: finished rolling files. state=${JSON.stringify(this.state)}`),this._renewWriteStream(),await new Promise(((e,t)=>{this.currentFileStream.write("","utf8",(()=>{this._clean().then(e).catch(t)}))}))}async _getExistingFiles(){const e=await po.readdir(this.fileObject.dir).catch((()=>[]));Do(`_getExistingFiles: files=${e}`);const t=e.map((e=>this.fileNameParser(e))).filter((e=>e)),n=e=>(e.timestamp?e.timestamp:mo().getTime())-e.index;return t.sort(((e,t)=>n(e)-n(t))),t}_renewWriteStream(){const e=this.fileFormatter({date:this.state.currentDate,index:0}),t=e=>{try{return po.mkdirSync(e,{recursive:!0})}catch(n){if("ENOENT"===n.code)return t(ho.dirname(e)),t(e);if("EEXIST"!==n.code&&"EROFS"!==n.code)throw n;try{if(po.statSync(e).isDirectory())return e;throw n}catch(e){throw n}}};t(this.fileObject.dir);const n={flags:this.options.flags,encoding:this.options.encoding,mode:this.options.mode};var r,u;po.appendFileSync(e,"",(r={...n},u="flags",r["flag"]=r[u],delete r[u],r)),this.currentFileStream=po.createWriteStream(e,n),this.currentFileStream.on("error",(e=>{this.emit("error",e)}))}async _clean(){const e=await this._getExistingFiles();if(Do(`_clean: numToKeep = ${this.options.numToKeep}, existingFiles = ${e.length}`),Do("_clean: existing files are: ",e),this._tooManyFiles(e.length)){const n=e.slice(0,e.length-this.options.numToKeep).map((e=>ho.format({dir:this.fileObject.dir,base:e.filename})));await(t=n,Do(`deleteFiles: files to delete: ${t}`),Promise.all(t.map((e=>po.unlink(e).catch((t=>{Do(`deleteFiles: error when unlinking ${e}, ignoring. Error was ${t}`)}))))))}var t}_tooManyFiles(e){return this.options.numToKeep>0&&e>this.options.numToKeep}};const So=vo;var wo=class extends So{constructor(e,t,n,r){r||(r={}),t&&(r.maxSize=t),r.numBackups||0===r.numBackups||(n||0===n||(n=1),r.numBackups=n),super(e,r),this.backups=r.numBackups,this.size=this.options.maxSize}get theStream(){return this.currentFileStream}};const Oo=vo;var _o={RollingFileWriteStream:vo,RollingFileStream:wo,DateRollingFileStream:class extends Oo{constructor(e,t,n){t&&"object"==typeof t&&(n=t,t=null),n||(n={}),t||(t="yyyy-MM-dd"),n.pattern=t,n.numBackups||0===n.numBackups?n.daysToKeep=n.numBackups:(n.daysToKeep||0===n.daysToKeep?process.emitWarning("options.daysToKeep is deprecated due to the confusion it causes when used together with file size rolling. Please use options.numBackups instead.","DeprecationWarning","streamroller-DEP0001"):n.daysToKeep=1,n.numBackups=n.daysToKeep),super(e,n),this.mode=this.options.mode}get theStream(){return this.currentFileStream}}};const bo=G.exports("log4js:file"),Bo=e,Po=_o,ko=t,Io=ko.EOL;let xo=!1;const No=new Set;function Ro(){No.forEach((e=>{e.sighupHandler()}))}_t.configure=function(e,t){let n=t.basicLayout;return e.layout&&(n=t.layout(e.layout.type,e.layout)),e.mode=e.mode||384,function(e,t,n,r,u,o){if("string"!=typeof e||0===e.length)throw new Error(`Invalid filename: ${e}`);if(e.endsWith(Bo.sep))throw new Error(`Filename is a directory: ${e}`);function i(e,t,n,r){const u=new Po.RollingFileStream(e,t,n,r);return u.on("error",(t=>{console.error("log4js.fileAppender - Writing to file %s, error happened ",e,t)})),u.on("drain",(()=>{process.emit("log4js:pause",!1)})),u}e=e.replace(new RegExp(`^~(?=${Bo.sep}.+)`),ko.homedir()),e=Bo.normalize(e),bo("Creating file appender (",e,", ",n,", ",r=r||0===r?r:5,", ",u,", ",o,")");let s=i(e,n,r,u);const c=function(e){if(s.writable){if(!0===u.removeColor){const t=/\x1b[[0-9;]*m/g;e.data=e.data.map((e=>"string"==typeof e?e.replace(t,""):e))}s.write(t(e,o)+Io,"utf8")||process.emit("log4js:pause",!0)}};return c.reopen=function(){s.end((()=>{s=i(e,n,r,u)}))},c.sighupHandler=function(){bo("SIGHUP handler called."),c.reopen()},c.shutdown=function(e){No.delete(c),0===No.size&&xo&&(process.removeListener("SIGHUP",Ro),xo=!1),s.end("","utf-8",e)},No.add(c),xo||(process.on("SIGHUP",Ro),xo=!0),c}(e.filename,n,e.maxLogSize,e.backups,e,e.timezoneOffset)};var To={};const Mo=_o,Lo=t.EOL;function jo(e,t,n,r,u){r.maxSize=r.maxLogSize;const o=function(e,t,n){const r=new Mo.DateRollingFileStream(e,t,n);return r.on("error",(t=>{console.error("log4js.dateFileAppender - Writing to file %s, error happened ",e,t)})),r.on("drain",(()=>{process.emit("log4js:pause",!1)})),r}(e,t,r),i=function(e){o.writable&&(o.write(n(e,u)+Lo,"utf8")||process.emit("log4js:pause",!0))};return i.shutdown=function(e){o.end("","utf-8",e)},i}To.configure=function(e,t){let n=t.basicLayout;return e.layout&&(n=t.layout(e.layout.type,e.layout)),e.alwaysIncludePattern||(e.alwaysIncludePattern=!1),e.mode=e.mode||384,jo(e.filename,e.pattern,n,e,e.timezoneOffset)};var $o={};const Ho=G.exports("log4js:fileSync"),Go=e,Vo=n,Uo=t,Jo=Uo.EOL;function Wo(e,t){const n=e=>{try{return Vo.mkdirSync(e,{recursive:!0})}catch(t){if("ENOENT"===t.code)return n(Go.dirname(e)),n(e);if("EEXIST"!==t.code&&"EROFS"!==t.code)throw t;try{if(Vo.statSync(e).isDirectory())return e;throw t}catch(e){throw t}}};n(Go.dirname(e)),Vo.appendFileSync(e,"",{mode:t.mode,flag:t.flags})}class zo{constructor(e,t,n,r){if(Ho("In RollingFileStream"),t<0)throw new Error(`maxLogSize (${t}) should be > 0`);this.filename=e,this.size=t,this.backups=n,this.options=r,this.currentSize=0,this.currentSize=function(e){let t=0;try{t=Vo.statSync(e).size}catch(t){Wo(e,r)}return t}(this.filename)}shouldRoll(){return Ho("should roll with current size %d, and max size %d",this.currentSize,this.size),this.currentSize>=this.size}roll(e){const t=this,n=new RegExp(`^${Go.basename(e)}`);function r(e){return n.test(e)}function u(t){return parseInt(t.slice(`${Go.basename(e)}.`.length),10)||0}function o(e,t){return u(e)-u(t)}function i(n){const r=u(n);if(Ho(`Index of ${n} is ${r}`),0===t.backups)Vo.truncateSync(e,0);else if(r<t.backups){try{Vo.unlinkSync(`${e}.${r+1}`)}catch(e){}Ho(`Renaming ${n} -> ${e}.${r+1}`),Vo.renameSync(Go.join(Go.dirname(e),n),`${e}.${r+1}`)}}Ho("Rolling, rolling, rolling"),Ho("Renaming the old files"),Vo.readdirSync(Go.dirname(e)).filter(r).sort(o).reverse().forEach(i)}write(e,t){const n=this;Ho("in write"),this.shouldRoll()&&(this.currentSize=0,this.roll(this.filename)),Ho("writing the chunk to the file"),n.currentSize+=e.length,Vo.appendFileSync(n.filename,e)}}$o.configure=function(e,t){let n=t.basicLayout;e.layout&&(n=t.layout(e.layout.type,e.layout));const r={flags:e.flags||"a",encoding:e.encoding||"utf8",mode:e.mode||384};return function(e,t,n,r,u,o){if("string"!=typeof e||0===e.length)throw new Error(`Invalid filename: ${e}`);if(e.endsWith(Go.sep))throw new Error(`Filename is a directory: ${e}`);e=e.replace(new RegExp(`^~(?=${Go.sep}.+)`),Uo.homedir()),e=Go.normalize(e),Ho("Creating fileSync appender (",e,", ",n,", ",r=r||0===r?r:5,", ",u,", ",o,")");const i=function(e,t,n){let r;var o;return t?r=new zo(e,t,n,u):(Wo(o=e,u),r={write(e){Vo.appendFileSync(o,e)}}),r}(e,n,r);return e=>{i.write(t(e,o)+Jo)}}(e.filename,n,e.maxLogSize,e.backups,r,e.timezoneOffset)};var Ko={};const qo=G.exports("log4js:tcp"),Yo=d;Ko.configure=function(e,t){qo(`configure with config = ${e}`);let n=function(e){return e.serialise()};return e.layout&&(n=t.layout(e.layout.type,e.layout)),function(e,t){let n=!1;const r=[];let u,o=3,i="__LOG4JS__";function s(e){qo("Writing log event to socket"),n=u.write(`${t(e)}${i}`,"utf8")}function c(){let e;for(qo("emptying buffer");e=r.shift();)s(e)}function a(e){n?s(e):(qo("buffering log event because it cannot write at the moment"),r.push(e))}return function t(){qo(`appender creating socket to ${e.host||"localhost"}:${e.port||5e3}`),i=`${e.endMsg||"__LOG4JS__"}`,u=Yo.createConnection(e.port||5e3,e.host||"localhost"),u.on("connect",(()=>{qo("socket connected"),c(),n=!0})),u.on("drain",(()=>{qo("drain event received, emptying buffer"),n=!0,c()})),u.on("timeout",u.end.bind(u)),u.on("error",(e=>{qo("connection error",e),n=!1,c()})),u.on("close",t)}(),a.shutdown=function(e){qo("shutdown called"),r.length&&o?(qo("buffer has items, waiting 100ms to empty"),o-=1,setTimeout((()=>{a.shutdown(e)}),100)):(u.removeAllListeners("close"),u.end(e))},a}(e,n)};const Zo=e,Xo=G.exports("log4js:appenders"),Qo=fe,ei=Dt,ti=xe,ni=Be,ri=pt,ui=new Map;ui.set("console",yt),ui.set("stdout",Ft),ui.set("stderr",gt),ui.set("logLevelFilter",At),ui.set("categoryFilter",vt),ui.set("noLogFilter",wt),ui.set("file",_t),ui.set("dateFile",To),ui.set("fileSync",$o),ui.set("tcp",Ko);const oi=new Map,ii=(e,t)=>{let n;try{const t=`${e}.cjs`;n=require.resolve(t),Xo("Loading module from ",t)}catch(t){n=e,Xo("Loading module from ",e)}try{return require(n)}catch(n){return void Qo.throwExceptionIf(t,"MODULE_NOT_FOUND"!==n.code,`appender "${e}" could not be loaded (error was: ${n})`)}},si=new Set,ci=(e,t)=>{if(oi.has(e))return oi.get(e);if(!t.appenders[e])return!1;if(si.has(e))throw new Error(`Dependency loop detected for appender ${e}.`);si.add(e),Xo(`Creating appender ${e}`);const n=ai(e,t);return si.delete(e),oi.set(e,n),n},ai=(e,t)=>{const n=t.appenders[e],r=n.type.configure?n.type:((e,t)=>ui.get(e)||ii(`./${e}`,t)||ii(e,t)||require.main&&require.main.filename&&ii(Zo.join(Zo.dirname(require.main.filename),e),t)||ii(Zo.join(process.cwd(),e),t))(n.type,t);return Qo.throwExceptionIf(t,Qo.not(r),`appender "${e}" is not valid (type "${n.type}" could not be found)`),r.appender&&(process.emitWarning(`Appender ${n.type} exports an appender function.`,"DeprecationWarning","log4js-node-DEP0001"),Xo("[log4js-node-DEP0001]",`DEPRECATION: Appender ${n.type} exports an appender function.`)),r.shutdown&&(process.emitWarning(`Appender ${n.type} exports a shutdown function.`,"DeprecationWarning","log4js-node-DEP0002"),Xo("[log4js-node-DEP0002]",`DEPRECATION: Appender ${n.type} exports a shutdown function.`)),Xo(`${e}: clustering.isMaster ? ${ei.isMaster()}`),Xo(`${e}: appenderModule is ${i.inspect(r)}`),ei.onlyOnMaster((()=>(Xo(`calling appenderModule.configure for ${e} / ${n.type}`),r.configure(ri.modifyConfig(n),ni,(e=>ci(e,t)),ti))),(()=>{}))},li=e=>{if(oi.clear(),si.clear(),!e)return;const t=[];Object.values(e.categories).forEach((e=>{t.push(...e.appenders)})),Object.keys(e.appenders).forEach((n=>{(t.includes(n)||"tcp-server"===e.appenders[n].type||"multiprocess"===e.appenders[n].type)&&ci(n,e)}))},fi=()=>{li()};fi(),Qo.addListener((e=>{Qo.throwExceptionIf(e,Qo.not(Qo.anObject(e.appenders)),'must have a property "appenders" of type object.');const t=Object.keys(e.appenders);Qo.throwExceptionIf(e,Qo.not(t.length),"must define at least one appender."),t.forEach((t=>{Qo.throwExceptionIf(e,Qo.not(e.appenders[t].type),`appender "${t}" is not valid (must be an object with property "type")`)}))})),Qo.addListener(li),Ne.exports=oi,Ne.exports.init=fi;var di={exports:{}};!function(e){const t=G.exports("log4js:categories"),n=fe,r=xe,u=Ne.exports,o=new Map;function i(e,t,n){if(!1===t.inherit)return;const r=n.lastIndexOf(".");if(r<0)return;const u=n.slice(0,r);let o=e.categories[u];o||(o={inherit:!0,appenders:[]}),i(e,o,u),!e.categories[u]&&o.appenders&&o.appenders.length&&o.level&&(e.categories[u]=o),t.appenders=t.appenders||[],t.level=t.level||o.level,o.appenders.forEach((e=>{t.appenders.includes(e)||t.appenders.push(e)})),t.parent=o}function s(e){if(!e.categories)return;Object.keys(e.categories).forEach((t=>{const n=e.categories[t];i(e,n,t)}))}n.addPreProcessingListener((e=>s(e))),n.addListener((e=>{n.throwExceptionIf(e,n.not(n.anObject(e.categories)),'must have a property "categories" of type object.');const t=Object.keys(e.categories);n.throwExceptionIf(e,n.not(t.length),"must define at least one category."),t.forEach((t=>{const o=e.categories[t];n.throwExceptionIf(e,[n.not(o.appenders),n.not(o.level)],`category "${t}" is not valid (must be an object with properties "appenders" and "level")`),n.throwExceptionIf(e,n.not(Array.isArray(o.appenders)),`category "${t}" is not valid (appenders must be an array of appender names)`),n.throwExceptionIf(e,n.not(o.appenders.length),`category "${t}" is not valid (appenders must contain at least one appender name)`),Object.prototype.hasOwnProperty.call(o,"enableCallStack")&&n.throwExceptionIf(e,"boolean"!=typeof o.enableCallStack,`category "${t}" is not valid (enableCallStack must be boolean type)`),o.appenders.forEach((r=>{n.throwExceptionIf(e,n.not(u.get(r)),`category "${t}" is not valid (appender "${r}" is not defined)`)})),n.throwExceptionIf(e,n.not(r.getLevel(o.level)),`category "${t}" is not valid (level "${o.level}" not recognised; valid levels are ${r.levels.join(", ")})`)})),n.throwExceptionIf(e,n.not(e.categories.default),'must define a "default" category.')}));const c=e=>{if(o.clear(),!e)return;Object.keys(e.categories).forEach((n=>{const i=e.categories[n],s=[];i.appenders.forEach((e=>{s.push(u.get(e)),t(`Creating category ${n}`),o.set(n,{appenders:s,level:r.getLevel(i.level),enableCallStack:i.enableCallStack||!1})}))}))},a=()=>{c()};a(),n.addListener(c);const l=e=>{if(t(`configForCategory: searching for config for ${e}`),o.has(e))return t(`configForCategory: ${e} exists in config, returning it`),o.get(e);let n;return e.indexOf(".")>0?(t(`configForCategory: ${e} has hierarchy, cloning from parents`),n={...l(e.slice(0,e.lastIndexOf(".")))}):(o.has("default")||c({categories:{default:{appenders:["out"],level:"OFF"}}}),t("configForCategory: cloning default category"),n={...o.get("default")}),o.set(e,n),n};e.exports=o,e.exports=Object.assign(e.exports,{appendersForCategory:e=>l(e).appenders,getLevelForCategory:e=>l(e).level,setLevelForCategory:(e,t)=>{l(e).level=t},getEnableCallStackForCategory:e=>!0===l(e).enableCallStack,setEnableCallStackForCategory:(e,t)=>{l(e).enableCallStack=t},init:a})}(di);const Di=G.exports("log4js:logger"),pi=et,hi=xe,Ei=Dt,mi=di.exports,yi=fe,Ci=/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/;function Fi(e,t=4){try{const n=e.stack.split("\n").slice(t);if(!n.length)return null;const r=Ci.exec(n[0]);if(r&&6===r.length){let e="",t="",u="";return r[1]&&""!==r[1]&&([t,u]=r[1].replace(/[[\]]/g,"").split(" as "),u=u||"",t.includes(".")&&([e,t]=t.split("."))),{fileName:r[2],lineNumber:parseInt(r[3],10),columnNumber:parseInt(r[4],10),callStack:n.join("\n"),className:e,functionName:t,functionAlias:u,callerName:r[1]||""}}console.error("log4js.logger - defaultParseCallStack error")}catch(e){console.error("log4js.logger - defaultParseCallStack error",e)}return null}let gi=class{constructor(e){if(!e)throw new Error("No category provided.");this.category=e,this.context={},this.callStackSkipIndex=0,this.parseCallStack=Fi,Di(`Logger created (${this.category}, ${this.level})`)}get level(){return hi.getLevel(mi.getLevelForCategory(this.category),hi.OFF)}set level(e){mi.setLevelForCategory(this.category,hi.getLevel(e,this.level))}get useCallStack(){return mi.getEnableCallStackForCategory(this.category)}set useCallStack(e){mi.setEnableCallStackForCategory(this.category,!0===e)}get callStackLinesToSkip(){return this.callStackSkipIndex}set callStackLinesToSkip(e){if("number"!=typeof e)throw new TypeError("Must be a number");if(e<0)throw new RangeError("Must be >= 0");this.callStackSkipIndex=e}log(e,...t){const n=hi.getLevel(e);n?this.isLevelEnabled(n)&&this._log(n,t):yi.validIdentifier(e)&&t.length>0?(this.log(hi.WARN,"log4js:logger.log: valid log-level not found as first parameter given:",e),this.log(hi.INFO,`[${e}]`,...t)):this.log(hi.INFO,e,...t)}isLevelEnabled(e){return this.level.isLessThanOrEqualTo(e)}_log(e,t){Di(`sending log data (${e}) to appenders`);const n=t.find((e=>e instanceof Error));let r;if(this.useCallStack){try{n&&(r=this.parseCallStack(n,this.callStackSkipIndex+1))}catch(e){}r=r||this.parseCallStack(new Error,this.callStackSkipIndex+3+1)}const u=new pi(this.category,e,t,this.context,r,n);Ei.send(u)}addContext(e,t){this.context[e]=t}removeContext(e){delete this.context[e]}clearContext(){this.context={}}setParseCallStackFunction(e){if("function"==typeof e)this.parseCallStack=e;else{if(void 0!==e)throw new TypeError("Invalid type passed to setParseCallStackFunction");this.parseCallStack=Fi}}};function Ai(e){const t=hi.getLevel(e),n=t.toString().toLowerCase().replace(/_([a-z])/g,(e=>e[1].toUpperCase())),r=n[0].toUpperCase()+n.slice(1);gi.prototype[`is${r}Enabled`]=function(){return this.isLevelEnabled(t)},gi.prototype[n]=function(...e){this.log(t,...e)}}hi.levels.forEach(Ai),yi.addListener((()=>{hi.levels.forEach(Ai)}));var vi=gi;const Si=xe;function wi(e){return e.originalUrl||e.url}function Oi(e,t){for(let n=0;n<t.length;n++)e=e.replace(t[n].token,t[n].replacement);return e}const _i=G.exports("log4js:recording"),bi=[];function Bi(){return bi.slice()}function Pi(){bi.length=0}var ki={configure:function(){return function(e){_i(`received logEvent, number of events now ${bi.length+1}`),_i("log event was ",e),bi.push(e)}},replay:Bi,playback:Bi,reset:Pi,erase:Pi};const Ii=G.exports("log4js:main"),xi=n,Ni=ne({proto:!0}),Ri=fe,Ti=Be,Mi=xe,Li=Ne.exports,ji=di.exports,$i=vi,Hi=Dt,Gi=function(e,t){t="string"==typeof t||"function"==typeof t?{format:t}:t||{};const n=e;let r=Si.getLevel(t.level,Si.INFO);const u=t.format||':remote-addr - - ":method :url HTTP/:http-version" :status :content-length ":referrer" ":user-agent"';return(e,o,i)=>{if(void 0!==e._logging)return i();if("function"!=typeof t.nolog){const n=function(e){let t=null;if(e instanceof RegExp&&(t=e),"string"==typeof e&&(t=new RegExp(e)),Array.isArray(e)){const n=e.map((e=>e.source?e.source:e));t=new RegExp(n.join("|"))}return t}(t.nolog);if(n&&n.test(e.originalUrl))return i()}if(n.isLevelEnabled(r)||"auto"===t.level){const i=new Date,{writeHead:s}=o;e._logging=!0,o.writeHead=(e,t)=>{o.writeHead=s,o.writeHead(e,t),o.__statusCode=e,o.__headers=t||{}};let c=!1;const a=()=>{if(c)return;if(c=!0,"function"==typeof t.nolog&&!0===t.nolog(e,o))return void(e._logging=!1);o.responseTime=new Date-i,o.statusCode&&"auto"===t.level&&(r=Si.INFO,o.statusCode>=300&&(r=Si.WARN),o.statusCode>=400&&(r=Si.ERROR)),r=function(e,t,n){let r=t;if(n){const t=n.find((t=>{let n=!1;return n=t.from&&t.to?e>=t.from&&e<=t.to:-1!==t.codes.indexOf(e),n}));t&&(r=Si.getLevel(t.level,r))}return r}(o.statusCode,r,t.statusRules);const s=function(e,t,n){const r=[];return r.push({token:":url",replacement:wi(e)}),r.push({token:":protocol",replacement:e.protocol}),r.push({token:":hostname",replacement:e.hostname}),r.push({token:":method",replacement:e.method}),r.push({token:":status",replacement:t.__statusCode||t.statusCode}),r.push({token:":response-time",replacement:t.responseTime}),r.push({token:":date",replacement:(new Date).toUTCString()}),r.push({token:":referrer",replacement:e.headers.referer||e.headers.referrer||""}),r.push({token:":http-version",replacement:`${e.httpVersionMajor}.${e.httpVersionMinor}`}),r.push({token:":remote-addr",replacement:e.headers["x-forwarded-for"]||e.ip||e._remoteAddress||e.socket&&(e.socket.remoteAddress||e.socket.socket&&e.socket.socket.remoteAddress)}),r.push({token:":user-agent",replacement:e.headers["user-agent"]}),r.push({token:":content-length",replacement:t.getHeader("content-length")||t.__headers&&t.__headers["Content-Length"]||"-"}),r.push({token:/:req\[([^\]]+)]/g,replacement:(t,n)=>e.headers[n.toLowerCase()]}),r.push({token:/:res\[([^\]]+)]/g,replacement:(e,n)=>t.getHeader(n.toLowerCase())||t.__headers&&t.__headers[n]}),(e=>{const t=e.concat();for(let e=0;e<t.length;++e)for(let n=e+1;n<t.length;++n)t[e].token==t[n].token&&t.splice(n--,1);return t})(n.concat(r))}(e,o,t.tokens||[]);if(t.context&&n.addContext("res",o),"function"==typeof u){const t=u(e,o,(e=>Oi(e,s)));t&&n.log(r,t)}else n.log(r,Oi(u,s));t.context&&n.removeContext("res")};o.on("end",a),o.on("finish",a),o.on("error",a),o.on("close",a)}return i()}},Vi=ki;let Ui=!1;function Ji(e){if(!Ui)return;Ii("Received log event ",e);ji.appendersForCategory(e.categoryName).forEach((t=>{t(e)}))}function Wi(e){Ui&&zi();let t=e;return"string"==typeof t&&(t=function(e){Ii(`Loading configuration from ${e}`);try{return JSON.parse(xi.readFileSync(e,"utf8"))}catch(t){throw new Error(`Problem reading config from file "${e}". Error was ${t.message}`,t)}}(e)),Ii(`Configuration is ${t}`),Ri.configure(Ni(t)),Hi.onMessage(Ji),Ui=!0,Ki}function zi(e=(()=>{})){if("function"!=typeof e)throw new TypeError("Invalid callback passed to shutdown");Ii("Shutdown called. Disabling all log writing."),Ui=!1;const t=Array.from(Li.values());Li.init(),ji.init();const n=t.reduce(((e,t)=>t.shutdown?e+1:e),0);0===n&&(Ii("No appenders with shutdown functions found."),e());let r,u=0;function o(t){r=r||t,u+=1,Ii(`Appender shutdowns complete: ${u} / ${n}`),u>=n&&(Ii("All shutdown functions completed."),e(r))}Ii(`Found ${n} appenders with shutdown functions.`),t.filter((e=>e.shutdown)).forEach((e=>e.shutdown(o)))}const Ki={getLogger:function(e){return Ui||Wi(process.env.LOG4JS_CONFIG||{appenders:{out:{type:"stdout"}},categories:{default:{appenders:["out"],level:"OFF"}}}),new $i(e||"default")},configure:Wi,shutdown:zi,connectLogger:Gi,levels:Mi,addLayout:Ti.addLayout,recording:function(){return Vi}};var qi=Ki;!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.addCustomPlugin=e.addCustomTask=e.hvigorTrace=void 0;const t=qi;e.hvigorTrace={totalTime:0,moduleNum:0,taskTime:{},isIncremental:!0,hasIncremental:!1,isParallel:!0,IS_DAEMON:!0,LOG_LEVEL:t.levels.INFO.levelStr,IS_HVIGORFILE_TYPE_CHECK:!1},e.addCustomTask=function(t){let n=e.hvigorTrace.CUSTOM_TASKS??[];n.length>0&&(n=n.filter((e=>e.NAME!==t.NAME))),n.push(t),e.hvigorTrace.CUSTOM_TASKS=n},e.addCustomPlugin=function(t){let n=e.hvigorTrace.CUSTOM_PLUGINS??[];n.length>0&&(n=n.filter((e=>e.PLUGIN_ID!==t.PLUGIN_ID))),n.push({PLUGIN_ID:t.PLUGIN_ID}),e.hvigorTrace.CUSTOM_PLUGINS=n}}(H);var Yi,Zi={};Yi=Zi,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.isCI=void 0,Yi.isCI=function(){return!("false"===process.env.CI||!(process.env.BUILD_ID||process.env.BUILD_NUMBER||process.env.CI||process.env.CI_APP_ID||process.env.CI_BUILD_ID||process.env.CI_BUILD_NUMBER||process.env.CI_NAME||process.env.CONTINUOUS_INTEGRATION||process.env.RUN_ID||Yi.name))};var Xi={};!function(e){var t=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.hashFile=e.hash=e.createHash=void 0;const r=t(D),u=t(n);e.createHash=(e="MD5")=>r.default.createHash(e);e.hash=(t,n)=>(0,e.createHash)(n).update(t).digest("hex");e.hashFile=(t,n)=>{if(u.default.existsSync(t))return(0,e.hash)(u.default.readFileSync(t,"utf-8"),n)}}(Xi);var Qi={},es={},ts={};Object.defineProperty(ts,"__esModule",{value:!0}),ts.Unicode=void 0;class ns{}ts.Unicode=ns,ns.SPACE_SEPARATOR=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ns.ID_START=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ns.ID_CONTINUE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Object.defineProperty(es,"__esModule",{value:!0}),es.JudgeUtil=void 0;const rs=ts;es.JudgeUtil=class{static isIgnoreChar(e){return"string"==typeof e&&("\t"===e||"\v"===e||"\f"===e||" "===e||" "===e||"\ufeff"===e||"\n"===e||"\r"===e||"\u2028"===e||"\u2029"===e)}static isSpaceSeparator(e){return"string"==typeof e&&rs.Unicode.SPACE_SEPARATOR.test(e)}static isIdStartChar(e){return"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||"$"===e||"_"===e||rs.Unicode.ID_START.test(e))}static isIdContinueChar(e){return"string"==typeof e&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"$"===e||"_"===e||""===e||""===e||rs.Unicode.ID_CONTINUE.test(e))}static isDigitWithoutZero(e){return/[1-9]/.test(e)}static isDigit(e){return"string"==typeof e&&/[0-9]/.test(e)}static isHexDigit(e){return"string"==typeof e&&/[0-9A-Fa-f]/.test(e)}};var us=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.parseJsonText=Qi.parseJsonFile=void 0;const os=us(n),is=us(t),ss=us(e),cs=es;var as;!function(e){e[e.Char=0]="Char",e[e.EOF=1]="EOF",e[e.Identifier=2]="Identifier"}(as||(as={}));let ls,fs,ds,Ds,ps,hs,Es="start",ms=[],ys=0,Cs=1,Fs=0,gs=!1,As="default",vs="'",Ss=1;function ws(e,t=!1){fs=String(e),Es="start",ms=[],ys=0,Cs=1,Fs=0,Ds=void 0,gs=t;do{ls=Os(),xs[Es]()}while("eof"!==ls.type);return Ds}function Os(){for(As="default",ps="",vs="'",Ss=1;;){hs=_s();const e=Bs[As]();if(e)return e}}function _s(){if(fs[ys])return String.fromCodePoint(fs.codePointAt(ys))}function bs(){const e=_s();return"\n"===e?(Cs++,Fs=0):e?Fs+=e.length:Fs++,e&&(ys+=e.length),e}Qi.parseJsonFile=function(e,t=!1,n="utf-8"){const r=os.default.readFileSync(ss.default.resolve(e),{encoding:n});try{return ws(r,t)}catch(t){if(t instanceof SyntaxError){const n=t.message.split("at");if(2===n.length)throw new Error(`${n[0].trim()}${is.default.EOL}\t at ${e}:${n[1].trim()}`)}throw new Error(`${e} is not in valid JSON/JSON5 format.`)}},Qi.parseJsonText=ws;const Bs={default(){switch(hs){case"/":return bs(),void(As="comment");case void 0:return bs(),Ps("eof")}if(!cs.JudgeUtil.isIgnoreChar(hs)&&!cs.JudgeUtil.isSpaceSeparator(hs))return Bs[Es]();bs()},start(){As="value"},beforePropertyName(){switch(hs){case"$":case"_":return ps=bs(),void(As="identifierName");case"\\":return bs(),void(As="identifierNameStartEscape");case"}":return Ps("punctuator",bs());case'"':case"'":return vs=hs,bs(),void(As="string")}if(cs.JudgeUtil.isIdStartChar(hs))return ps+=bs(),void(As="identifierName");throw Ms(as.Char,bs())},afterPropertyName(){if(":"===hs)return Ps("punctuator",bs());throw Ms(as.Char,bs())},beforePropertyValue(){As="value"},afterPropertyValue(){switch(hs){case",":case"}":return Ps("punctuator",bs())}throw Ms(as.Char,bs())},beforeArrayValue(){if("]"===hs)return Ps("punctuator",bs());As="value"},afterArrayValue(){switch(hs){case",":case"]":return Ps("punctuator",bs())}throw Ms(as.Char,bs())},end(){throw Ms(as.Char,bs())},comment(){switch(hs){case"*":return bs(),void(As="multiLineComment");case"/":return bs(),void(As="singleLineComment")}throw Ms(as.Char,bs())},multiLineComment(){switch(hs){case"*":return bs(),void(As="multiLineCommentAsterisk");case void 0:throw Ms(as.Char,bs())}bs()},multiLineCommentAsterisk(){switch(hs){case"*":return void bs();case"/":return bs(),void(As="default");case void 0:throw Ms(as.Char,bs())}bs(),As="multiLineComment"},singleLineComment(){switch(hs){case"\n":case"\r":case"\u2028":case"\u2029":return bs(),void(As="default");case void 0:return bs(),Ps("eof")}bs()},value(){switch(hs){case"{":case"[":return Ps("punctuator",bs());case"n":return bs(),ks("ull"),Ps("null",null);case"t":return bs(),ks("rue"),Ps("boolean",!0);case"f":return bs(),ks("alse"),Ps("boolean",!1);case"-":case"+":return"-"===bs()&&(Ss=-1),void(As="numerical");case".":case"0":case"I":case"N":return void(As="numerical");case'"':case"'":return vs=hs,bs(),ps="",void(As="string")}if(void 0===hs||!cs.JudgeUtil.isDigitWithoutZero(hs))throw Ms(as.Char,bs());As="numerical"},numerical(){switch(hs){case".":return ps=bs(),void(As="decimalPointLeading");case"0":return ps=bs(),void(As="zero");case"I":return bs(),ks("nfinity"),Ps("numeric",Ss*(1/0));case"N":return bs(),ks("aN"),Ps("numeric",NaN)}if(void 0!==hs&&cs.JudgeUtil.isDigitWithoutZero(hs))return ps=bs(),void(As="decimalInteger");throw Ms(as.Char,bs())},zero(){switch(hs){case".":case"e":case"E":return void(As="decimal");case"x":case"X":return ps+=bs(),void(As="hexadecimal")}return Ps("numeric",0)},decimalInteger(){switch(hs){case".":case"e":case"E":return void(As="decimal")}if(!cs.JudgeUtil.isDigit(hs))return Ps("numeric",Ss*Number(ps));ps+=bs()},decimal(){switch(hs){case".":ps+=bs(),As="decimalFraction";break;case"e":case"E":ps+=bs(),As="decimalExponent"}},decimalPointLeading(){if(cs.JudgeUtil.isDigit(hs))return ps+=bs(),void(As="decimalFraction");throw Ms(as.Char,bs())},decimalFraction(){switch(hs){case"e":case"E":return ps+=bs(),void(As="decimalExponent")}if(!cs.JudgeUtil.isDigit(hs))return Ps("numeric",Ss*Number(ps));ps+=bs()},decimalExponent(){switch(hs){case"+":case"-":return ps+=bs(),void(As="decimalExponentSign")}if(cs.JudgeUtil.isDigit(hs))return ps+=bs(),void(As="decimalExponentInteger");throw Ms(as.Char,bs())},decimalExponentSign(){if(cs.JudgeUtil.isDigit(hs))return ps+=bs(),void(As="decimalExponentInteger");throw Ms(as.Char,bs())},decimalExponentInteger(){if(!cs.JudgeUtil.isDigit(hs))return Ps("numeric",Ss*Number(ps));ps+=bs()},hexadecimal(){if(cs.JudgeUtil.isHexDigit(hs))return ps+=bs(),void(As="hexadecimalInteger");throw Ms(as.Char,bs())},hexadecimalInteger(){if(!cs.JudgeUtil.isHexDigit(hs))return Ps("numeric",Ss*Number(ps));ps+=bs()},identifierNameStartEscape(){if("u"!==hs)throw Ms(as.Char,bs());bs();const e=Is();switch(e){case"$":case"_":break;default:if(!cs.JudgeUtil.isIdStartChar(e))throw Ms(as.Identifier)}ps+=e,As="identifierName"},identifierName(){switch(hs){case"$":case"_":case"":case"":return void(ps+=bs());case"\\":return bs(),void(As="identifierNameEscape")}if(!cs.JudgeUtil.isIdContinueChar(hs))return Ps("identifier",ps);ps+=bs()},identifierNameEscape(){if("u"!==hs)throw Ms(as.Char,bs());bs();const e=Is();switch(e){case"$":case"_":case"":case"":break;default:if(!cs.JudgeUtil.isIdContinueChar(e))throw Ms(as.Identifier)}ps+=e,As="identifierName"},string(){switch(hs){case"\\":return bs(),void(ps+=function(){const e=_s(),t=function(){switch(_s()){case"b":return bs(),"\b";case"f":return bs(),"\f";case"n":return bs(),"\n";case"r":return bs(),"\r";case"t":return bs(),"\t";case"v":return bs(),"\v"}return}();if(t)return t;switch(e){case"0":if(bs(),cs.JudgeUtil.isDigit(_s()))throw Ms(as.Char,bs());return"\0";case"x":return bs(),function(){let e="",t=_s();if(!cs.JudgeUtil.isHexDigit(t))throw Ms(as.Char,bs());if(e+=bs(),t=_s(),!cs.JudgeUtil.isHexDigit(t))throw Ms(as.Char,bs());return e+=bs(),String.fromCodePoint(parseInt(e,16))}();case"u":return bs(),Is();case"\n":case"\u2028":case"\u2029":return bs(),"";case"\r":return bs(),"\n"===_s()&&bs(),""}if(void 0===e||cs.JudgeUtil.isDigitWithoutZero(e))throw Ms(as.Char,bs());return bs()}());case'"':case"'":if(hs===vs){const e=Ps("string",ps);return bs(),e}return void(ps+=bs());case"\n":case"\r":case void 0:throw Ms(as.Char,bs());case"\u2028":case"\u2029":!function(e){console.warn(`JSON5: '${Ts(e)}' in strings is not valid ECMAScript; consider escaping.`)}(hs)}ps+=bs()}};function Ps(e,t){return{type:e,value:t,line:Cs,column:Fs}}function ks(e){for(const t of e){if(_s()!==t)throw Ms(as.Char,bs());bs()}}function Is(){let e="",t=4;for(;t-- >0;){const t=_s();if(!cs.JudgeUtil.isHexDigit(t))throw Ms(as.Char,bs());e+=bs()}return String.fromCodePoint(parseInt(e,16))}const xs={start(){if("eof"===ls.type)throw Ms(as.EOF);Ns()},beforePropertyName(){switch(ls.type){case"identifier":case"string":return ds=ls.value,void(Es="afterPropertyName");case"punctuator":return void Rs();case"eof":throw Ms(as.EOF)}},afterPropertyName(){if("eof"===ls.type)throw Ms(as.EOF);Es="beforePropertyValue"},beforePropertyValue(){if("eof"===ls.type)throw Ms(as.EOF);Ns()},afterPropertyValue(){if("eof"===ls.type)throw Ms(as.EOF);switch(ls.value){case",":return void(Es="beforePropertyName");case"}":Rs()}},beforeArrayValue(){if("eof"===ls.type)throw Ms(as.EOF);"punctuator"!==ls.type||"]"!==ls.value?Ns():Rs()},afterArrayValue(){if("eof"===ls.type)throw Ms(as.EOF);switch(ls.value){case",":return void(Es="beforeArrayValue");case"]":Rs()}},end(){}};function Ns(){const e=function(){let e;switch(ls.type){case"punctuator":switch(ls.value){case"{":e={};break;case"[":e=[]}break;case"null":case"boolean":case"numeric":case"string":e=ls.value}return e}();if(gs&&"object"==typeof e&&(e._line=Cs,e._column=Fs),void 0===Ds)Ds=e;else{const t=ms[ms.length-1];Array.isArray(t)?gs&&"object"!=typeof e?t.push({value:e,_line:Cs,_column:Fs}):t.push(e):t[ds]=gs&&"object"!=typeof e?{value:e,_line:Cs,_column:Fs}:e}!function(e){if(e&&"object"==typeof e)ms.push(e),Es=Array.isArray(e)?"beforeArrayValue":"beforePropertyName";else{const e=ms[ms.length-1];Es=e?Array.isArray(e)?"afterArrayValue":"afterPropertyValue":"end"}}(e)}function Rs(){ms.pop();const e=ms[ms.length-1];Es=e?Array.isArray(e)?"afterArrayValue":"afterPropertyValue":"end"}function Ts(e){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){const t=e.charCodeAt(0).toString(16);return`\\x${`00${t}`.substring(t.length)}`}return e}function Ms(e,t){let n="";switch(e){case as.Char:n=void 0===t?`JSON5: invalid end of input at ${Cs}:${Fs}`:`JSON5: invalid character '${Ts(t)}' at ${Cs}:${Fs}`;break;case as.EOF:n=`JSON5: invalid end of input at ${Cs}:${Fs}`;break;case as.Identifier:Fs-=5,n=`JSON5: invalid identifier character at ${Cs}:${Fs}`}const r=new Ls(n);return r.lineNumber=Cs,r.columnNumber=Fs,r}class Ls extends SyntaxError{}var js={},$s={},Hs={},Gs={},Vs={fromCallback:function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((n,r)=>{t.push(((e,t)=>null!=e?r(e):n(t))),e.apply(this,t)}));e.apply(this,t)}),"name",{value:e.name})},fromPromise:function(e){return Object.defineProperty((function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);t.pop(),e.apply(this,t).then((e=>n(null,e)),n)}),"name",{value:e.name})}};!function(e){const t=Vs.fromCallback,n=Xt,r=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>"function"==typeof n[e]));Object.assign(e,n),r.forEach((r=>{e[r]=t(n[r])})),e.exists=function(e,t){return"function"==typeof t?n.exists(e,t):new Promise((t=>n.exists(e,t)))},e.read=function(e,t,r,u,o,i){return"function"==typeof i?n.read(e,t,r,u,o,i):new Promise(((i,s)=>{n.read(e,t,r,u,o,((e,t,n)=>{if(e)return s(e);i({bytesRead:t,buffer:n})}))}))},e.write=function(e,t,...r){return"function"==typeof r[r.length-1]?n.write(e,t,...r):new Promise(((u,o)=>{n.write(e,t,...r,((e,t,n)=>{if(e)return o(e);u({bytesWritten:t,buffer:n})}))}))},e.readv=function(e,t,...r){return"function"==typeof r[r.length-1]?n.readv(e,t,...r):new Promise(((u,o)=>{n.readv(e,t,...r,((e,t,n)=>{if(e)return o(e);u({bytesRead:t,buffers:n})}))}))},e.writev=function(e,t,...r){return"function"==typeof r[r.length-1]?n.writev(e,t,...r):new Promise(((u,o)=>{n.writev(e,t,...r,((e,t,n)=>{if(e)return o(e);u({bytesWritten:t,buffers:n})}))}))},"function"==typeof n.realpath.native?e.realpath.native=t(n.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}(Gs);var Us={},Js={};const Ws=e;Js.checkPath=function(e){if("win32"===process.platform){if(/[<>:"|?*]/.test(e.replace(Ws.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}}};const zs=Gs,{checkPath:Ks}=Js,qs=e=>"number"==typeof e?e:{mode:511,...e}.mode;Us.makeDir=async(e,t)=>(Ks(e),zs.mkdir(e,{mode:qs(t),recursive:!0})),Us.makeDirSync=(e,t)=>(Ks(e),zs.mkdirSync(e,{mode:qs(t),recursive:!0}));const Ys=Vs.fromPromise,{makeDir:Zs,makeDirSync:Xs}=Us,Qs=Ys(Zs);var ec={mkdirs:Qs,mkdirsSync:Xs,mkdirp:Qs,mkdirpSync:Xs,ensureDir:Qs,ensureDirSync:Xs};const tc=Vs.fromPromise,nc=Gs;var rc={pathExists:tc((function(e){return nc.access(e).then((()=>!0)).catch((()=>!1))})),pathExistsSync:nc.existsSync};const uc=Xt;var oc=function(e,t,n,r){uc.open(e,"r+",((e,u)=>{if(e)return r(e);uc.futimes(u,t,n,(e=>{uc.close(u,(t=>{r&&r(e||t)}))}))}))},ic=function(e,t,n){const r=uc.openSync(e,"r+");return uc.futimesSync(r,t,n),uc.closeSync(r)};const sc=Gs,cc=e,ac=i;function lc(e,t,n){const r=n.dereference?e=>sc.stat(e,{bigint:!0}):e=>sc.lstat(e,{bigint:!0});return Promise.all([r(e),r(t).catch((e=>{if("ENOENT"===e.code)return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}function fc(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function dc(e,t){const n=cc.resolve(e).split(cc.sep).filter((e=>e)),r=cc.resolve(t).split(cc.sep).filter((e=>e));return n.reduce(((e,t,n)=>e&&r[n]===t),!0)}function Dc(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}var pc={checkPaths:function(e,t,n,r,u){ac.callbackify(lc)(e,t,r,((r,o)=>{if(r)return u(r);const{srcStat:i,destStat:s}=o;if(s){if(fc(i,s)){const r=cc.basename(e),o=cc.basename(t);return"move"===n&&r!==o&&r.toLowerCase()===o.toLowerCase()?u(null,{srcStat:i,destStat:s,isChangingCase:!0}):u(new Error("Source and destination must not be the same."))}if(i.isDirectory()&&!s.isDirectory())return u(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!i.isDirectory()&&s.isDirectory())return u(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return i.isDirectory()&&dc(e,t)?u(new Error(Dc(e,t,n))):u(null,{srcStat:i,destStat:s})}))},checkPathsSync:function(e,t,n,r){const{srcStat:u,destStat:o}=function(e,t,n){let r;const u=n.dereference?e=>sc.statSync(e,{bigint:!0}):e=>sc.lstatSync(e,{bigint:!0}),o=u(e);try{r=u(t)}catch(e){if("ENOENT"===e.code)return{srcStat:o,destStat:null};throw e}return{srcStat:o,destStat:r}}(e,t,r);if(o){if(fc(u,o)){const r=cc.basename(e),i=cc.basename(t);if("move"===n&&r!==i&&r.toLowerCase()===i.toLowerCase())return{srcStat:u,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(u.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!u.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(u.isDirectory()&&dc(e,t))throw new Error(Dc(e,t,n));return{srcStat:u,destStat:o}},checkParentPaths:function e(t,n,r,u,o){const i=cc.resolve(cc.dirname(t)),s=cc.resolve(cc.dirname(r));if(s===i||s===cc.parse(s).root)return o();sc.stat(s,{bigint:!0},((i,c)=>i?"ENOENT"===i.code?o():o(i):fc(n,c)?o(new Error(Dc(t,r,u))):e(t,n,s,u,o)))},checkParentPathsSync:function e(t,n,r,u){const o=cc.resolve(cc.dirname(t)),i=cc.resolve(cc.dirname(r));if(i===o||i===cc.parse(i).root)return;let s;try{s=sc.statSync(i,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(fc(n,s))throw new Error(Dc(t,r,u));return e(t,n,i,u)},isSrcSubdir:dc,areIdentical:fc};const hc=Xt,Ec=e,mc=ec.mkdirs,yc=rc.pathExists,Cc=oc,Fc=pc;function gc(e,t,n,r){if(!n.filter)return r(null,!0);Promise.resolve(n.filter(e,t)).then((e=>r(null,e)),(e=>r(e)))}function Ac(e,t,n,r,u){(r.dereference?hc.stat:hc.lstat)(t,((o,i)=>o?u(o):i.isDirectory()?function(e,t,n,r,u,o){return t?Oc(n,r,u,o):function(e,t,n,r,u){hc.mkdir(n,(o=>{if(o)return u(o);Oc(t,n,r,(t=>t?u(t):wc(n,e,u)))}))}(e.mode,n,r,u,o)}(i,e,t,n,r,u):i.isFile()||i.isCharacterDevice()||i.isBlockDevice()?function(e,t,n,r,u,o){return t?function(e,t,n,r,u){if(!r.overwrite)return r.errorOnExist?u(new Error(`'${n}' already exists`)):u();hc.unlink(n,(o=>o?u(o):vc(e,t,n,r,u)))}(e,n,r,u,o):vc(e,n,r,u,o)}(i,e,t,n,r,u):i.isSymbolicLink()?function(e,t,n,r,u){hc.readlink(t,((t,o)=>t?u(t):(r.dereference&&(o=Ec.resolve(process.cwd(),o)),e?void hc.readlink(n,((e,t)=>e?"EINVAL"===e.code||"UNKNOWN"===e.code?hc.symlink(o,n,u):u(e):(r.dereference&&(t=Ec.resolve(process.cwd(),t)),Fc.isSrcSubdir(o,t)?u(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${t}'.`)):Fc.isSrcSubdir(t,o)?u(new Error(`Cannot overwrite '${t}' with '${o}'.`)):function(e,t,n){hc.unlink(t,(r=>r?n(r):hc.symlink(e,t,n)))}(o,n,u)))):hc.symlink(o,n,u))))}(e,t,n,r,u):i.isSocket()?u(new Error(`Cannot copy a socket file: ${t}`)):i.isFIFO()?u(new Error(`Cannot copy a FIFO pipe: ${t}`)):u(new Error(`Unknown file: ${t}`))))}function vc(e,t,n,r,u){hc.copyFile(t,n,(o=>o?u(o):r.preserveTimestamps?function(e,t,n,r){if(function(e){return 0==(128&e)}(e))return function(e,t,n){return wc(e,128|t,n)}(n,e,(u=>u?r(u):Sc(e,t,n,r)));return Sc(e,t,n,r)}(e.mode,t,n,u):wc(n,e.mode,u)))}function Sc(e,t,n,r){!function(e,t,n){hc.stat(e,((e,r)=>e?n(e):Cc(t,r.atime,r.mtime,n)))}(t,n,(t=>t?r(t):wc(n,e,r)))}function wc(e,t,n){return hc.chmod(e,t,n)}function Oc(e,t,n,r){hc.readdir(e,((u,o)=>u?r(u):_c(o,e,t,n,r)))}function _c(e,t,n,r,u){const o=e.pop();return o?function(e,t,n,r,u,o){const i=Ec.join(n,t),s=Ec.join(r,t);gc(i,s,u,((t,c)=>t?o(t):c?void Fc.checkPaths(i,s,"copy",u,((t,c)=>{if(t)return o(t);const{destStat:a}=c;Ac(a,i,s,u,(t=>t?o(t):_c(e,n,r,u,o)))})):_c(e,n,r,u,o)))}(e,o,t,n,r,u):u()}var bc=function(e,t,n,r){"function"!=typeof n||r?"function"==typeof n&&(n={filter:n}):(r=n,n={}),r=r||function(){},(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001"),Fc.checkPaths(e,t,"copy",n,((u,o)=>{if(u)return r(u);const{srcStat:i,destStat:s}=o;Fc.checkParentPaths(e,i,t,"copy",(u=>{if(u)return r(u);gc(e,t,n,((u,o)=>u?r(u):o?void function(e,t,n,r,u){const o=Ec.dirname(n);yc(o,((i,s)=>i?u(i):s?Ac(e,t,n,r,u):void mc(o,(o=>o?u(o):Ac(e,t,n,r,u)))))}(s,e,t,n,r):r()))}))}))};const Bc=Xt,Pc=e,kc=ec.mkdirsSync,Ic=ic,xc=pc;function Nc(e,t,n,r){const u=(r.dereference?Bc.statSync:Bc.lstatSync)(t);if(u.isDirectory())return function(e,t,n,r,u){return t?Mc(n,r,u):function(e,t,n,r){return Bc.mkdirSync(n),Mc(t,n,r),Tc(n,e)}(e.mode,n,r,u)}(u,e,t,n,r);if(u.isFile()||u.isCharacterDevice()||u.isBlockDevice())return function(e,t,n,r,u){return t?function(e,t,n,r){if(r.overwrite)return Bc.unlinkSync(n),Rc(e,t,n,r);if(r.errorOnExist)throw new Error(`'${n}' already exists`)}(e,n,r,u):Rc(e,n,r,u)}(u,e,t,n,r);if(u.isSymbolicLink())return function(e,t,n,r){let u=Bc.readlinkSync(t);r.dereference&&(u=Pc.resolve(process.cwd(),u));if(e){let e;try{e=Bc.readlinkSync(n)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return Bc.symlinkSync(u,n);throw e}if(r.dereference&&(e=Pc.resolve(process.cwd(),e)),xc.isSrcSubdir(u,e))throw new Error(`Cannot copy '${u}' to a subdirectory of itself, '${e}'.`);if(xc.isSrcSubdir(e,u))throw new Error(`Cannot overwrite '${e}' with '${u}'.`);return function(e,t){return Bc.unlinkSync(t),Bc.symlinkSync(e,t)}(u,n)}return Bc.symlinkSync(u,n)}(e,t,n,r);if(u.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(u.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function Rc(e,t,n,r){return Bc.copyFileSync(t,n),r.preserveTimestamps&&function(e,t,n){(function(e){return 0==(128&e)})(e)&&function(e,t){Tc(e,128|t)}(n,e);(function(e,t){const n=Bc.statSync(e);Ic(t,n.atime,n.mtime)})(t,n)}(e.mode,t,n),Tc(n,e.mode)}function Tc(e,t){return Bc.chmodSync(e,t)}function Mc(e,t,n){Bc.readdirSync(e).forEach((r=>function(e,t,n,r){const u=Pc.join(t,e),o=Pc.join(n,e);if(r.filter&&!r.filter(u,o))return;const{destStat:i}=xc.checkPathsSync(u,o,"copy",r);return Nc(i,u,o,r)}(r,e,t,n)))}var Lc=function(e,t,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:r,destStat:u}=xc.checkPathsSync(e,t,"copy",n);if(xc.checkParentPathsSync(e,r,t,"copy"),n.filter&&!n.filter(e,t))return;const o=Pc.dirname(t);return Bc.existsSync(o)||kc(o),Nc(u,e,t,n)};var jc={copy:(0,Vs.fromCallback)(bc),copySync:Lc};const $c=Xt;var Hc={remove:(0,Vs.fromCallback)((function(e,t){$c.rm(e,{recursive:!0,force:!0},t)})),removeSync:function(e){$c.rmSync(e,{recursive:!0,force:!0})}};const Gc=Vs.fromPromise,Vc=Gs,Uc=e,Jc=ec,Wc=Hc,zc=Gc((async function(e){let t;try{t=await Vc.readdir(e)}catch{return Jc.mkdirs(e)}return Promise.all(t.map((t=>Wc.remove(Uc.join(e,t)))))}));function Kc(e){let t;try{t=Vc.readdirSync(e)}catch{return Jc.mkdirsSync(e)}t.forEach((t=>{t=Uc.join(e,t),Wc.removeSync(t)}))}var qc={emptyDirSync:Kc,emptydirSync:Kc,emptyDir:zc,emptydir:zc};const Yc=Vs.fromCallback,Zc=e,Xc=Xt,Qc=ec;var ea={createFile:Yc((function(e,t){function n(){Xc.writeFile(e,"",(e=>{if(e)return t(e);t()}))}Xc.stat(e,((r,u)=>{if(!r&&u.isFile())return t();const o=Zc.dirname(e);Xc.stat(o,((e,r)=>{if(e)return"ENOENT"===e.code?Qc.mkdirs(o,(e=>{if(e)return t(e);n()})):t(e);r.isDirectory()?n():Xc.readdir(o,(e=>{if(e)return t(e)}))}))}))})),createFileSync:function(e){let t;try{t=Xc.statSync(e)}catch{}if(t&&t.isFile())return;const n=Zc.dirname(e);try{Xc.statSync(n).isDirectory()||Xc.readdirSync(n)}catch(e){if(!e||"ENOENT"!==e.code)throw e;Qc.mkdirsSync(n)}Xc.writeFileSync(e,"")}};const ta=Vs.fromCallback,na=e,ra=Xt,ua=ec,oa=rc.pathExists,{areIdentical:ia}=pc;var sa={createLink:ta((function(e,t,n){function r(e,t){ra.link(e,t,(e=>{if(e)return n(e);n(null)}))}ra.lstat(t,((u,o)=>{ra.lstat(e,((u,i)=>{if(u)return u.message=u.message.replace("lstat","ensureLink"),n(u);if(o&&ia(i,o))return n(null);const s=na.dirname(t);oa(s,((u,o)=>u?n(u):o?r(e,t):void ua.mkdirs(s,(u=>{if(u)return n(u);r(e,t)}))))}))}))})),createLinkSync:function(e,t){let n;try{n=ra.lstatSync(t)}catch{}try{const t=ra.lstatSync(e);if(n&&ia(t,n))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const r=na.dirname(t);return ra.existsSync(r)||ua.mkdirsSync(r),ra.linkSync(e,t)}};const ca=e,aa=Xt,la=rc.pathExists;var fa={symlinkPaths:function(e,t,n){if(ca.isAbsolute(e))return aa.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:e})));{const r=ca.dirname(t),u=ca.join(r,e);return la(u,((t,o)=>t?n(t):o?n(null,{toCwd:u,toDst:e}):aa.lstat(e,(t=>t?(t.message=t.message.replace("lstat","ensureSymlink"),n(t)):n(null,{toCwd:e,toDst:ca.relative(r,e)})))))}},symlinkPathsSync:function(e,t){let n;if(ca.isAbsolute(e)){if(n=aa.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}{const r=ca.dirname(t),u=ca.join(r,e);if(n=aa.existsSync(u),n)return{toCwd:u,toDst:e};if(n=aa.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:ca.relative(r,e)}}}};const da=Xt;var Da={symlinkType:function(e,t,n){if(n="function"==typeof t?t:n,t="function"!=typeof t&&t)return n(null,t);da.lstat(e,((e,r)=>{if(e)return n(null,"file");t=r&&r.isDirectory()?"dir":"file",n(null,t)}))},symlinkTypeSync:function(e,t){let n;if(t)return t;try{n=da.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}};const pa=Vs.fromCallback,ha=e,Ea=Gs,ma=ec.mkdirs,ya=ec.mkdirsSync,Ca=fa.symlinkPaths,Fa=fa.symlinkPathsSync,ga=Da.symlinkType,Aa=Da.symlinkTypeSync,va=rc.pathExists,{areIdentical:Sa}=pc;function wa(e,t,n,r){Ca(e,t,((u,o)=>{if(u)return r(u);e=o.toDst,ga(o.toCwd,n,((n,u)=>{if(n)return r(n);const o=ha.dirname(t);va(o,((n,i)=>n?r(n):i?Ea.symlink(e,t,u,r):void ma(o,(n=>{if(n)return r(n);Ea.symlink(e,t,u,r)}))))}))}))}var Oa={createSymlink:pa((function(e,t,n,r){r="function"==typeof n?n:r,n="function"!=typeof n&&n,Ea.lstat(t,((u,o)=>{!u&&o.isSymbolicLink()?Promise.all([Ea.stat(e),Ea.stat(t)]).then((([u,o])=>{if(Sa(u,o))return r(null);wa(e,t,n,r)})):wa(e,t,n,r)}))})),createSymlinkSync:function(e,t,n){let r;try{r=Ea.lstatSync(t)}catch{}if(r&&r.isSymbolicLink()){const n=Ea.statSync(e),r=Ea.statSync(t);if(Sa(n,r))return}const u=Fa(e,t);e=u.toDst,n=Aa(u.toCwd,n);const o=ha.dirname(t);return Ea.existsSync(o)||ya(o),Ea.symlinkSync(e,t,n)}};const{createFile:_a,createFileSync:ba}=ea,{createLink:Ba,createLinkSync:Pa}=sa,{createSymlink:ka,createSymlinkSync:Ia}=Oa;var xa={createFile:_a,createFileSync:ba,ensureFile:_a,ensureFileSync:ba,createLink:Ba,createLinkSync:Pa,ensureLink:Ba,ensureLinkSync:Pa,createSymlink:ka,createSymlinkSync:Ia,ensureSymlink:ka,ensureSymlinkSync:Ia};var Na={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:r=null,spaces:u}={}){const o=n?t:"";return JSON.stringify(e,r,u).replace(/\n/g,t)+o},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}};let Ra;try{Ra=Xt}catch(e){Ra=n}const Ta=Vs,{stringify:Ma,stripBom:La}=Na;const ja=Ta.fromPromise((async function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||Ra,r=!("throws"in t)||t.throws;let u,o=await Ta.fromCallback(n.readFile)(e,t);o=La(o);try{u=JSON.parse(o,t?t.reviver:null)}catch(t){if(r)throw t.message=`${e}: ${t.message}`,t;return null}return u}));const $a=Ta.fromPromise((async function(e,t,n={}){const r=n.fs||Ra,u=Ma(t,n);await Ta.fromCallback(r.writeFile)(e,u,n)}));const Ha={readFile:ja,readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||Ra,r=!("throws"in t)||t.throws;try{let r=n.readFileSync(e,t);return r=La(r),JSON.parse(r,t.reviver)}catch(t){if(r)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:$a,writeFileSync:function(e,t,n={}){const r=n.fs||Ra,u=Ma(t,n);return r.writeFileSync(e,u,n)}};var Ga={readJson:Ha.readFile,readJsonSync:Ha.readFileSync,writeJson:Ha.writeFile,writeJsonSync:Ha.writeFileSync};const Va=Vs.fromCallback,Ua=Xt,Ja=e,Wa=ec,za=rc.pathExists;var Ka={outputFile:Va((function(e,t,n,r){"function"==typeof n&&(r=n,n="utf8");const u=Ja.dirname(e);za(u,((o,i)=>o?r(o):i?Ua.writeFile(e,t,n,r):void Wa.mkdirs(u,(u=>{if(u)return r(u);Ua.writeFile(e,t,n,r)}))))})),outputFileSync:function(e,...t){const n=Ja.dirname(e);if(Ua.existsSync(n))return Ua.writeFileSync(e,...t);Wa.mkdirsSync(n),Ua.writeFileSync(e,...t)}};const{stringify:qa}=Na,{outputFile:Ya}=Ka;var Za=async function(e,t,n={}){const r=qa(t,n);await Ya(e,r,n)};const{stringify:Xa}=Na,{outputFileSync:Qa}=Ka;var el=function(e,t,n){const r=Xa(t,n);Qa(e,r,n)};const tl=Vs.fromPromise,nl=Ga;nl.outputJson=tl(Za),nl.outputJsonSync=el,nl.outputJSON=nl.outputJson,nl.outputJSONSync=nl.outputJsonSync,nl.writeJSON=nl.writeJson,nl.writeJSONSync=nl.writeJsonSync,nl.readJSON=nl.readJson,nl.readJSONSync=nl.readJsonSync;var rl=nl;const ul=Xt,ol=e,il=jc.copy,sl=Hc.remove,cl=ec.mkdirp,al=rc.pathExists,ll=pc;function fl(e,t,n,r,u){return r?dl(e,t,n,u):n?sl(t,(r=>r?u(r):dl(e,t,n,u))):void al(t,((r,o)=>r?u(r):o?u(new Error("dest already exists.")):dl(e,t,n,u)))}function dl(e,t,n,r){ul.rename(e,t,(u=>u?"EXDEV"!==u.code?r(u):function(e,t,n,r){const u={overwrite:n,errorOnExist:!0};il(e,t,u,(t=>t?r(t):sl(e,r)))}(e,t,n,r):r()))}var Dl=function(e,t,n,r){"function"==typeof n&&(r=n,n={});const u=(n=n||{}).overwrite||n.clobber||!1;ll.checkPaths(e,t,"move",n,((n,o)=>{if(n)return r(n);const{srcStat:i,isChangingCase:s=!1}=o;ll.checkParentPaths(e,i,t,"move",(n=>n?r(n):function(e){const t=ol.dirname(e);return ol.parse(t).root===t}(t)?fl(e,t,u,s,r):void cl(ol.dirname(t),(n=>n?r(n):fl(e,t,u,s,r)))))}))};const pl=Xt,hl=e,El=jc.copySync,ml=Hc.removeSync,yl=ec.mkdirpSync,Cl=pc;function Fl(e,t,n){try{pl.renameSync(e,t)}catch(r){if("EXDEV"!==r.code)throw r;return function(e,t,n){const r={overwrite:n,errorOnExist:!0};return El(e,t,r),ml(e)}(e,t,n)}}var gl=function(e,t,n){const r=(n=n||{}).overwrite||n.clobber||!1,{srcStat:u,isChangingCase:o=!1}=Cl.checkPathsSync(e,t,"move",n);return Cl.checkParentPathsSync(e,u,t,"move"),function(e){const t=hl.dirname(e);return hl.parse(t).root===t}(t)||yl(hl.dirname(t)),function(e,t,n,r){if(r)return Fl(e,t,n);if(n)return ml(t),Fl(e,t,n);if(pl.existsSync(t))throw new Error("dest already exists.");return Fl(e,t,n)}(e,t,r,o)};var Al={move:(0,Vs.fromCallback)(Dl),moveSync:gl},vl={...Gs,...jc,...qc,...xa,...rl,...ec,...Al,...Ka,...rc,...Hc},Sl=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.getHvigorUserHomeCacheDir=void 0;const wl=Sl(vl),Ol=Sl(t),_l=Sl(e),bl=h;Hs.getHvigorUserHomeCacheDir=function(){const e=_l.default.resolve(Ol.default.homedir(),bl.HVIGOR_USER_HOME_DIR_NAME),t=process.env.HVIGOR_USER_HOME;return void 0!==t&&_l.default.isAbsolute(t)?(wl.default.ensureDirSync(t),t):e},function(t){var n=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HVIGOR_PROJECT_WRAPPER_HOME=t.HVIGOR_PROJECT_ROOT_DIR=t.HVIGOR_PROJECT_CACHES_HOME=t.HVIGOR_PNPM_STORE_PATH=t.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH=t.HVIGOR_WRAPPER_TOOLS_HOME=t.HVIGOR_USER_HOME=void 0;const r=n(e),u=Hs,o=h;t.HVIGOR_USER_HOME=(0,u.getHvigorUserHomeCacheDir)(),t.HVIGOR_WRAPPER_TOOLS_HOME=r.default.resolve(t.HVIGOR_USER_HOME,"wrapper","tools"),t.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH=r.default.resolve(t.HVIGOR_WRAPPER_TOOLS_HOME,"node_modules",".bin",o.PNPM_TOOL),t.HVIGOR_PNPM_STORE_PATH=r.default.resolve(t.HVIGOR_USER_HOME,"caches"),t.HVIGOR_PROJECT_CACHES_HOME=r.default.resolve(t.HVIGOR_USER_HOME,o.PROJECT_CACHES),t.HVIGOR_PROJECT_ROOT_DIR=process.cwd(),t.HVIGOR_PROJECT_WRAPPER_HOME=r.default.resolve(t.HVIGOR_PROJECT_ROOT_DIR,o.HVIGOR)}($s);var Bl={},Pl=p&&p.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var u=Object.getOwnPropertyDescriptor(t,n);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),kl=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Il=p&&p.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&Pl(t,e,n);return kl(t,e),t},xl=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bl,"__esModule",{value:!0}),Bl.isFileExists=Bl.offlinePluginConversion=Bl.executeCommand=Bl.getNpmPath=Bl.hasNpmPackInPaths=void 0;const Nl=r,Rl=xl(n),Tl=Il(e),Ml=h,Ll=O;Bl.hasNpmPackInPaths=function(e,t){try{return require.resolve(e,{paths:[...t]}),!0}catch(e){return!1}},Bl.getNpmPath=function(){const e=process.execPath;return Tl.join(Tl.dirname(e),Ml.NPM_TOOL)},Bl.executeCommand=function(e,t,n){0!==(0,Nl.spawnSync)(e,t,n).status&&(0,Ll.logErrorAndExit)(`Error: ${e} ${t} execute failed.See above for details.`)},Bl.offlinePluginConversion=function(e,t){return t.startsWith("file:")||t.endsWith(".tgz")?Tl.resolve(e,Ml.HVIGOR,t.replace("file:","")):t},Bl.isFileExists=function(e){return Rl.default.existsSync(e)&&Rl.default.statSync(e).isFile()},function(u){var o=p&&p.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var u=Object.getOwnPropertyDescriptor(t,n);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=p&&p.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},c=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(u,"__esModule",{value:!0}),u.executeInstallPnpm=u.isPnpmInstalled=u.environmentHandler=u.checkNpmConifg=u.PNPM_VERSION=void 0;const a=r,l=s(n),f=c(t),d=s(e),D=h,E=$s,m=$s,y=O,C=Bl;u.PNPM_VERSION="7.30.0",u.checkNpmConifg=function(){const e=d.resolve(E.HVIGOR_PROJECT_ROOT_DIR,".npmrc"),t=d.resolve(f.default.homedir(),".npmrc");if((0,C.isFileExists)(e)||(0,C.isFileExists)(t))return;const n=(0,C.getNpmPath)(),r=(0,a.spawnSync)(n,["config","get","prefix"],{cwd:E.HVIGOR_PROJECT_ROOT_DIR});if(0!==r.status||!r.stdout)return void(0,y.logErrorAndExit)("Error: The hvigor depends on the npmrc file. Configure the npmrc file first.");const u=d.resolve(`${r.stdout}`.replace(/[\r\n]/gi,""),".npmrc");(0,C.isFileExists)(u)||(0,y.logErrorAndExit)("Error: The hvigor depends on the npmrc file. Configure the npmrc file first.")},u.environmentHandler=function(){process.env["npm_config_update-notifier"]="false"},u.isPnpmInstalled=function(){return!!l.existsSync(m.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH)&&(0,C.hasNpmPackInPaths)("pnpm",[m.HVIGOR_WRAPPER_TOOLS_HOME])},u.executeInstallPnpm=function(){(0,y.logInfo)(`Installing pnpm@${u.PNPM_VERSION}...`);const e=(0,C.getNpmPath)();!function(){const e=d.resolve(m.HVIGOR_WRAPPER_TOOLS_HOME,D.DEFAULT_PACKAGE_JSON);try{l.existsSync(m.HVIGOR_WRAPPER_TOOLS_HOME)||l.mkdirSync(m.HVIGOR_WRAPPER_TOOLS_HOME,{recursive:!0});const t={dependencies:{}};t.dependencies[D.PNPM]=u.PNPM_VERSION,l.writeFileSync(e,JSON.stringify(t))}catch(t){(0,y.logErrorAndExit)(`Error: EPERM: operation not permitted,create ${e} failed.`)}}(),(0,C.executeCommand)(e,["install","pnpm"],{cwd:m.HVIGOR_WRAPPER_TOOLS_HOME,stdio:["inherit","inherit","inherit"],env:process.env}),(0,y.logInfo)("Pnpm install success.")}}(js);var jl={},$l={},Hl=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($l,"__esModule",{value:!0}),$l.getHvigorUserHomeCacheDir=void 0;const Gl=Hl(vl),Vl=Hl(t),Ul=Hl(e),Jl=h,Wl=O;let zl=!1;$l.getHvigorUserHomeCacheDir=function(){const e=Ul.default.resolve(Vl.default.homedir(),Jl.HVIGOR_USER_HOME_DIR_NAME),t=process.env.HVIGOR_USER_HOME;return void 0===t?e:Ul.default.isAbsolute(t)?Gl.default.existsSync(t)&&Gl.default.statSync(t).isFile()?((0,Wl.logInfo)(`File already exists: ${t}`),e):(Gl.default.ensureDirSync(t),t):(zl||((0,Wl.logInfo)(`Invalid custom userhome hvigor data dir:${t}`),zl=!0),e)},function(t){var n=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HVIGOR_PROJECT_WRAPPER_HOME=t.HVIGOR_PROJECT_ROOT_DIR=t.HVIGOR_PNPM_STORE_PATH=t.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH=t.HVIGOR_WRAPPER_TOOLS_HOME=t.HVIGOR_USER_HOME=void 0;const r=n(e),u=h,o=$l;t.HVIGOR_USER_HOME=(0,o.getHvigorUserHomeCacheDir)(),t.HVIGOR_WRAPPER_TOOLS_HOME=r.default.resolve(t.HVIGOR_USER_HOME,"wrapper","tools"),t.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH=r.default.resolve(t.HVIGOR_WRAPPER_TOOLS_HOME,"node_modules",".bin",u.PNPM_TOOL),t.HVIGOR_PNPM_STORE_PATH=r.default.resolve(t.HVIGOR_USER_HOME,"caches"),t.HVIGOR_PROJECT_ROOT_DIR=process.cwd(),t.HVIGOR_PROJECT_WRAPPER_HOME=r.default.resolve(t.HVIGOR_PROJECT_ROOT_DIR,u.HVIGOR)}(jl);var Kl=p&&p.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var u=Object.getOwnPropertyDescriptor(t,n);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),ql=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Yl=p&&p.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&Kl(t,e,n);return ql(t,e),t},Zl=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($,"__esModule",{value:!0});var Xl=$.initProjectWorkSpace=void 0;const Ql=Yl(n),ef=Yl(e),tf=Zl(u),nf=H,rf=h,uf=Zi,of=Xi,sf=Qi,cf=O,af=js,lf=Bl,ff=jl;let df,Df,pf;function hf(e,t,n){return void 0!==n.dependencies&&(0,lf.offlinePluginConversion)(ff.HVIGOR_PROJECT_ROOT_DIR,t.dependencies[e])===ef.normalize(n.dependencies[e])}Xl=$.initProjectWorkSpace=function(){if(df=function(){const e=ef.resolve(ff.HVIGOR_PROJECT_WRAPPER_HOME,rf.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME);Ql.existsSync(e)||(0,cf.logErrorAndExit)(`Error: Hvigor config file ${e} does not exist.`);return(0,sf.parseJsonFile)(e)}(),pf=function(e){let t;t=function(e){const t=e.hvigorVersion;if(t.startsWith("file:")||t.endsWith(".tgz"))return!1;const n=function(){const e=tf.default.argv.slice(2),t=/^(--config|-c).*/,n=/^(--config|-c)$/,r={};for(const[u,o]of e.entries())if(n.test(o)){const t=e[u+1].split("=");2===t.length&&(r[t[0]]=t[t.length-1])}else if(t.test(o)){const e=o.match(t);if(e&&e[0].length<o.length){const t=o.substring(e[0].length).split("=");2===t.length&&(r[t[0]]=t[t.length-1])}}return r}();if((0,uf.isCI)()||"false"===n.hvigorWorkSingleton)return!1;const r=e.dependencies,u=Object.getOwnPropertyNames(r);for(const e of u){const t=r[e];if(t.startsWith("file:")||t.endsWith(".tgz"))return!1}if(1===u.length&&"@ohos/hvigor-ohos-plugin"===u[0])return t>"2.5.0";return!1}(e)?function(e){let t=`${rf.HVIGOR_ENGINE_PACKAGE_NAME}@${e.hvigorVersion}`;const n=e.dependencies;if(n){Object.getOwnPropertyNames(n).sort().forEach((e=>{t+=`,${e}@${n[e]}`}))}return(0,of.hash)(t)}(e):(0,of.hash)(tf.default.cwd());return ef.resolve(ff.HVIGOR_USER_HOME,"project_caches",t)}(df),Df=function(){const e=ef.resolve(pf,rf.WORK_SPACE,rf.DEFAULT_PACKAGE_JSON);return Ql.existsSync(e)?(0,sf.parseJsonFile)(e):{dependencies:{}}}(),function(){const e=ef.resolve(ff.HVIGOR_USER_HOME,rf.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME);if(Ql.existsSync(e))(0,sf.parseJsonFile)(e)}(),!(0,lf.hasNpmPackInPaths)(rf.HVIGOR_ENGINE_PACKAGE_NAME,[ef.join(pf,rf.WORK_SPACE)])||(0,lf.offlinePluginConversion)(ff.HVIGOR_PROJECT_ROOT_DIR,df.hvigorVersion)!==Df.dependencies[rf.HVIGOR_ENGINE_PACKAGE_NAME]||!function(){function e(e){const t=null==e?void 0:e.dependencies;return void 0===t?0:Object.getOwnPropertyNames(t).length}const t=e(df),n=e(Df);if(t+1!==n)return!1;for(const e in null==df?void 0:df.dependencies)if(!(0,lf.hasNpmPackInPaths)(e,[ef.join(pf,rf.WORK_SPACE)])||!hf(e,df,Df))return!1;return!0}())try{const e=tf.default.hrtime();(0,af.checkNpmConifg)(),function(){(0,cf.logInfo)("Hvigor installing...");for(const e in df.dependencies)df.dependencies[e]&&(df.dependencies[e]=(0,lf.offlinePluginConversion)(ff.HVIGOR_PROJECT_ROOT_DIR,df.dependencies[e]));const e={dependencies:{...df.dependencies}};e.dependencies[rf.HVIGOR_ENGINE_PACKAGE_NAME]=(0,lf.offlinePluginConversion)(ff.HVIGOR_PROJECT_ROOT_DIR,df.hvigorVersion);const t=ef.join(pf,rf.WORK_SPACE);try{Ql.mkdirSync(t,{recursive:!0});const n=ef.resolve(t,rf.DEFAULT_PACKAGE_JSON);Ql.writeFileSync(n,JSON.stringify(e))}catch(e){(0,cf.logErrorAndExit)(e)}(function(){const e=["config","set","store-dir",ff.HVIGOR_PNPM_STORE_PATH],t={cwd:ef.join(pf,rf.WORK_SPACE),stdio:["inherit","inherit","inherit"]};(0,lf.executeCommand)(ff.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH,e,t)})(),function(){const e=["install"];(0,uf.isCI)()&&e.push("--no-frozen-lockfile");const t={cwd:ef.join(pf,rf.WORK_SPACE),stdio:["inherit","inherit","inherit"]};(0,lf.executeCommand)(ff.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH,e,t)}(),(0,cf.logInfo)("Hvigor install success.")}();const t=tf.default.hrtime(e);nf.hvigorTrace.HVIGOR_INSTALL_TIME=1e9*t[0]+t[1]}catch(e){!function(){const e=ef.join(pf,rf.WORK_SPACE);if((0,cf.logInfo)("Hvigor cleaning..."),!Ql.existsSync(e))return;const t=Ql.readdirSync(e);if(!t||0===t.length)return;const n=ef.resolve(pf,"node_modules","@ohos","hvigor","bin","hvigor.js");Ql.existsSync(n)&&(0,lf.executeCommand)(tf.default.argv[0],[n,"--stop-daemon"],{});try{t.forEach((t=>{Ql.rmSync(ef.resolve(e,t),{recursive:!0})}))}catch(t){(0,cf.logErrorAndExit)(`The hvigor build tool cannot be installed. Please manually clear the workspace directory and synchronize the project again.\n\n Workspace Path: ${e}.`)}}()}return pf},function(){js.environmentHandler(),js.isPnpmInstalled()||(js.checkNpmConifg(),js.executeInstallPnpm());const t=Xl();P(e.join(t,S))}();
|
| /test/xts/acts/ability/ability_runtime/aacommand/AACommandPrintOneTest/hvigor/ |
| H A D | hvigor-wrapper.js | 15 "use strict";var e=require("path"),t=require("os"),n=require("fs"),r=require("child_process"),u=require("process"),o=require("tty"),i=require("util"),s=require("url"),c=require("constants"),a=require("stream"),l=require("assert"),f=require("zlib"),d=require("net"),D=require("crypto"),p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h={},E={},m=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(E,"__esModule",{value:!0}),E.maxPathLength=E.isMac=E.isLinux=E.isWindows=void 0;const y=m(t),C="Windows_NT",F="Darwin";function g(){return y.default.type()===C}function A(){return y.default.type()===F}E.isWindows=g,E.isLinux=function(){return"Linux"===y.default.type()},E.isMac=A,E.maxPathLength=function(){return A()?1016:g()?259:4095},Object.defineProperty(h,"__esModule",{value:!0}),h.LOG_LEVEL=h.ANALYZE=h.PARALLEL=h.INCREMENTAL=h.DAEMON=h.DOT=h.PROPERTIES=h.HVIGOR_ARK_COMPILE_MAX_SIZE=h.HVIGOR_POOL_CACHE_TTL=h.HVIGOR_POOL_CACHE_CAPACITY=h.HVIGOR_POOL_MAX_CORE_SIZE=h.HVIGOR_POOL_MAX_SIZE=h.ENABLE_SIGN_TASK_KEY=h.HVIGOR_CACHE_DIR_KEY=h.WORK_SPACE=h.PROJECT_CACHES=h.HVIGOR_USER_HOME_DIR_NAME=h.DEFAULT_PACKAGE_JSON=h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME=h.PNPM=h.HVIGOR=h.NPM_TOOL=h.PNPM_TOOL=h.HVIGOR_ENGINE_PACKAGE_NAME=void 0;const v=E;h.HVIGOR_ENGINE_PACKAGE_NAME="@ohos/hvigor",h.PNPM_TOOL=(0,v.isWindows)()?"pnpm.cmd":"pnpm",h.NPM_TOOL=(0,v.isWindows)()?"npm.cmd":"npm",h.HVIGOR="hvigor",h.PNPM="pnpm",h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME="hvigor-config.json5",h.DEFAULT_PACKAGE_JSON="package.json",h.HVIGOR_USER_HOME_DIR_NAME=".hvigor",h.PROJECT_CACHES="project_caches";var S=h.WORK_SPACE="workspace";h.HVIGOR_CACHE_DIR_KEY="hvigor.cacheDir",h.ENABLE_SIGN_TASK_KEY="enableSignTask",h.HVIGOR_POOL_MAX_SIZE="hvigor.pool.maxSize",h.HVIGOR_POOL_MAX_CORE_SIZE="hvigor.pool.maxCoreSize",h.HVIGOR_POOL_CACHE_CAPACITY="hvigor.pool.cache.capacity",h.HVIGOR_POOL_CACHE_TTL="hvigor.pool.cache.ttl",h.HVIGOR_ARK_COMPILE_MAX_SIZE="hvigor.arkCompile.maxSize",h.PROPERTIES="properties",h.DOT=".",h.DAEMON="daemon",h.INCREMENTAL="incremental",h.PARALLEL="typeCheck",h.ANALYZE="analyze",h.LOG_LEVEL="logLevel";var w={},O={};Object.defineProperty(O,"__esModule",{value:!0}),O.logError=O.logInfo=O.logErrorAndExit=void 0,O.logErrorAndExit=function(e){e instanceof Error?console.error(e.message):console.error(e),process.exit(-1)},O.logInfo=function(e){console.log(e)},O.logError=function(e){console.error(e)};var _=p&&p.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var u=Object.getOwnPropertyDescriptor(t,n);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),b=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),B=p&&p.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&_(t,e,n);return b(t,e),t};Object.defineProperty(w,"__esModule",{value:!0});var P=w.executeBuild=void 0;const k=B(n),I=B(e),x=O,N=r;P=w.executeBuild=function(e){const t=I.resolve(e,"node_modules","@ohos","hvigor","bin","hvigor.js");try{const e=k.realpathSync(t),n=process.argv.slice(2),r=(0,N.spawn)("node",[e,...n],{env:process.env});r.stdout.on("data",(e=>{(0,x.logInfo)(`${e.toString().trim()}`)})),r.stderr.on("data",(e=>{(0,x.logError)(`${e.toString().trim()}`)})),r.on("exit",((e,t)=>{process.exit(null!=e?e:-1)}))}catch(n){(0,x.logErrorAndExit)(`Error: ENOENT: no such file ${t},delete ${e} and retry.`)}};var R,T,M,L,j,$={},H={},G={exports:{}},V={exports:{}};function U(){if(T)return R;T=1;var e=1e3,t=60*e,n=60*t,r=24*n,u=7*r,o=365.25*r;function i(e,t,n,r){var u=t>=1.5*n;return Math.round(e/n)+" "+r+(u?"s":"")}return R=function(s,c){c=c||{};var a=typeof s;if("string"===a&&s.length>0)return function(i){if((i=String(i)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*u;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(s);if("number"===a&&isFinite(s))return c.long?function(u){var o=Math.abs(u);if(o>=r)return i(u,o,r,"day");if(o>=n)return i(u,o,n,"hour");if(o>=t)return i(u,o,t,"minute");if(o>=e)return i(u,o,e,"second");return u+" ms"}(s):function(u){var o=Math.abs(u);if(o>=r)return Math.round(u/r)+"d";if(o>=n)return Math.round(u/n)+"h";if(o>=t)return Math.round(u/t)+"m";if(o>=e)return Math.round(u/e)+"s";return u+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))}}function J(){if(L)return M;return L=1,M=function(e){function t(e){let r,u,o,i=null;function s(...e){if(!s.enabled)return;const n=s,u=Number(new Date),o=u-(r||u);n.diff=o,n.prev=r,n.curr=u,r=u,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,u)=>{if("%%"===r)return"%";i++;const o=t.formatters[u];if("function"==typeof o){const t=e[i];r=o.call(n,t),e.splice(i,1),i--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(u!==t.namespaces&&(u=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),u=r.length;for(n=0;n<u;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=U(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},M}var W,z,K,q,Y,Z,X={exports:{}};function Q(){return z||(z=1,W=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),u=t.indexOf("--");return-1!==r&&(-1===u||r<u)}),W}function ee(){if(q)return K;q=1;const e=t,n=Q(),r=process.env;let u;function o(t){const o=function(t){if(!1===u)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(t&&!t.isTTY&&!0!==u)return 0;const o=u?1:0;if("win32"===process.platform){const t=e.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in r))||"codeship"===r.CI_NAME?1:o;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("truecolor"===r.COLORTERM)return 3;if("TERM_PROGRAM"in r){const e=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:(r.TERM,o)}(t);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(o)}return n("no-color")||n("no-colors")||n("color=false")?u=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(u=!0),"FORCE_COLOR"in r&&(u=0===r.FORCE_COLOR.length||0!==parseInt(r.FORCE_COLOR,10)),K={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}}function te(){return Y||(Y=1,function(e,t){const n=o,r=i;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(...e){return process.stderr.write(r.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:r,useColors:u}=this;if(u){const t=this.color,u="[3"+(t<8?t:"8;5;"+t),o=` ${u};1m${r} [0m`;n[0]=o+n[0].split("\n").join("\n"+o),n.push(u+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+r+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=r.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=ee();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),e.exports=J()(t);const{formatters:u}=e.exports;u.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},u.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}}(X,X.exports)),X.exports}Z=G,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?Z.exports=(j||(j=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,u=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(u=r))})),t.splice(u,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=J()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(V,V.exports)),V.exports):Z.exports=te();var ne=function(e){return(e=e||{}).circles?function(e){var t=[],n=[];return e.proto?function e(u){if("object"!=typeof u||null===u)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return r(u,e);if(u instanceof Map)return new Map(r(Array.from(u),e));if(u instanceof Set)return new Set(r(Array.from(u),e));var o={};for(var i in t.push(u),n.push(o),u){var s=u[i];if("object"!=typeof s||null===s)o[i]=s;else if(s instanceof Date)o[i]=new Date(s);else if(s instanceof Map)o[i]=new Map(r(Array.from(s),e));else if(s instanceof Set)o[i]=new Set(r(Array.from(s),e));else if(ArrayBuffer.isView(s))o[i]=re(s);else{var c=t.indexOf(s);o[i]=-1!==c?n[c]:e(s)}}return t.pop(),n.pop(),o}:function e(u){if("object"!=typeof u||null===u)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return r(u,e);if(u instanceof Map)return new Map(r(Array.from(u),e));if(u instanceof Set)return new Set(r(Array.from(u),e));var o={};for(var i in t.push(u),n.push(o),u)if(!1!==Object.hasOwnProperty.call(u,i)){var s=u[i];if("object"!=typeof s||null===s)o[i]=s;else if(s instanceof Date)o[i]=new Date(s);else if(s instanceof Map)o[i]=new Map(r(Array.from(s),e));else if(s instanceof Set)o[i]=new Set(r(Array.from(s),e));else if(ArrayBuffer.isView(s))o[i]=re(s);else{var c=t.indexOf(s);o[i]=-1!==c?n[c]:e(s)}}return t.pop(),n.pop(),o};function r(e,r){for(var u=Object.keys(e),o=new Array(u.length),i=0;i<u.length;i++){var s=u[i],c=e[s];if("object"!=typeof c||null===c)o[s]=c;else if(c instanceof Date)o[s]=new Date(c);else if(ArrayBuffer.isView(c))o[s]=re(c);else{var a=t.indexOf(c);o[s]=-1!==a?n[a]:r(c)}}return o}}(e):e.proto?function e(n){if("object"!=typeof n||null===n)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return t(n,e);if(n instanceof Map)return new Map(t(Array.from(n),e));if(n instanceof Set)return new Set(t(Array.from(n),e));var r={};for(var u in n){var o=n[u];"object"!=typeof o||null===o?r[u]=o:o instanceof Date?r[u]=new Date(o):o instanceof Map?r[u]=new Map(t(Array.from(o),e)):o instanceof Set?r[u]=new Set(t(Array.from(o),e)):ArrayBuffer.isView(o)?r[u]=re(o):r[u]=e(o)}return r}:n;function t(e,t){for(var n=Object.keys(e),r=new Array(n.length),u=0;u<n.length;u++){var o=n[u],i=e[o];"object"!=typeof i||null===i?r[o]=i:i instanceof Date?r[o]=new Date(i):ArrayBuffer.isView(i)?r[o]=re(i):r[o]=t(i)}return r}function n(e){if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return t(e,n);if(e instanceof Map)return new Map(t(Array.from(e),n));if(e instanceof Set)return new Set(t(Array.from(e),n));var r={};for(var u in e)if(!1!==Object.hasOwnProperty.call(e,u)){var o=e[u];"object"!=typeof o||null===o?r[u]=o:o instanceof Date?r[u]=new Date(o):o instanceof Map?r[u]=new Map(t(Array.from(o),n)):o instanceof Set?r[u]=new Set(t(Array.from(o),n)):ArrayBuffer.isView(o)?r[u]=re(o):r[u]=n(o)}return r}};function re(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}const ue=i,oe=G.exports("log4js:configuration"),ie=[],se=[],ce=e=>!e,ae=e=>e&&"object"==typeof e&&!Array.isArray(e),le=(e,t,n)=>{(Array.isArray(t)?t:[t]).forEach((t=>{if(t)throw new Error(`Problem with log4js configuration: (${ue.inspect(e,{depth:5})}) - ${n}`)}))};var fe={configure:e=>{oe("New configuration to be validated: ",e),le(e,ce(ae(e)),"must be an object."),oe(`Calling pre-processing listeners (${ie.length})`),ie.forEach((t=>t(e))),oe("Configuration pre-processing finished."),oe(`Calling configuration listeners (${se.length})`),se.forEach((t=>t(e))),oe("Configuration finished.")},addListener:e=>{se.push(e),oe(`Added listener, now ${se.length} listeners`)},addPreProcessingListener:e=>{ie.push(e),oe(`Added pre-processing listener, now ${ie.length} listeners`)},throwExceptionIf:le,anObject:ae,anInteger:e=>e&&"number"==typeof e&&Number.isInteger(e),validIdentifier:e=>/^[A-Za-z][A-Za-z0-9_]*$/g.test(e),not:ce},de={exports:{}};!function(e){function t(e,t){for(var n=e.toString();n.length<t;)n="0"+n;return n}function n(e){return t(e,2)}function r(r,u){"string"!=typeof r&&(u=r,r=e.exports.ISO8601_FORMAT),u||(u=e.exports.now());var o=n(u.getDate()),i=n(u.getMonth()+1),s=n(u.getFullYear()),c=n(s.substring(2,4)),a=r.indexOf("yyyy")>-1?s:c,l=n(u.getHours()),f=n(u.getMinutes()),d=n(u.getSeconds()),D=t(u.getMilliseconds(),3),p=function(e){var t=Math.abs(e),n=String(Math.floor(t/60)),r=String(t%60);return n=("0"+n).slice(-2),r=("0"+r).slice(-2),0===e?"Z":(e<0?"+":"-")+n+":"+r}(u.getTimezoneOffset());return r.replace(/dd/g,o).replace(/MM/g,i).replace(/y{1,4}/g,a).replace(/hh/g,l).replace(/mm/g,f).replace(/ss/g,d).replace(/SSS/g,D).replace(/O/g,p)}function u(e,t,n,r){e["set"+(r?"":"UTC")+t](n)}e.exports=r,e.exports.asString=r,e.exports.parse=function(t,n,r){if(!t)throw new Error("pattern must be supplied");return function(t,n,r){var o=t.indexOf("O")<0,i=!1,s=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(e,t){u(e,"FullYear",t,o)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(e,t){u(e,"Month",t-1,o),e.getMonth()!==t-1&&(i=!0)}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(e,t){i&&u(e,"Month",e.getMonth()-1,o),u(e,"Date",t,o)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(e,t){u(e,"Hours",t,o)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(e,t){u(e,"Minutes",t,o)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(e,t){u(e,"Seconds",t,o)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(e,t){u(e,"Milliseconds",t,o)}},{pattern:/O/,regexp:"[+-]\\d{1,2}:?\\d{2}?|Z",fn:function(e,t){t="Z"===t?0:t.replace(":","");var n=Math.abs(t),r=(t>0?-1:1)*(n%100+60*Math.floor(n/100));e.setUTCMinutes(e.getUTCMinutes()+r)}}],c=s.reduce((function(e,t){return t.pattern.test(e.regexp)?(t.index=e.regexp.match(t.pattern).index,e.regexp=e.regexp.replace(t.pattern,"("+t.regexp+")")):t.index=-1,e}),{regexp:t,index:[]}),a=s.filter((function(e){return e.index>-1}));a.sort((function(e,t){return e.index-t.index}));var l=new RegExp(c.regexp).exec(n);if(l){var f=r||e.exports.now();return a.forEach((function(e,t){e.fn(f,l[t+1])})),f}throw new Error("String '"+n+"' could not be parsed as '"+t+"'")}(t,n,r)},e.exports.now=function(){return new Date},e.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS",e.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO",e.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS",e.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"}(de);const De=de.exports,pe=t,he=i,Ee=e,me=s,ye=G.exports("log4js:layouts"),Ce={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[90,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[91,39],yellow:[33,39]};function Fe(e){return e?`[${Ce[e][0]}m`:""}function ge(e){return e?`[${Ce[e][1]}m`:""}function Ae(e,t){return n=he.format("[%s] [%s] %s - ",De.asString(e.startTime),e.level.toString(),e.categoryName),Fe(r=t)+n+ge(r);var n,r}function ve(e){return Ae(e)+he.format(...e.data)}function Se(e){return Ae(e,e.level.colour)+he.format(...e.data)}function we(e){return he.format(...e.data)}function Oe(e){return e.data[0]}function _e(e,t){const n=/%(-?[0-9]+)?(\.?-?[0-9]+)?([[\]cdhmnprzxXyflosCMAF%])(\{([^}]+)\})?|([^%]+)/;function r(e){return e&&e.pid?e.pid.toString():process.pid.toString()}e=e||"%r %p %c - %m%n";const u={c:function(e,t){let n=e.categoryName;if(t){const e=parseInt(t,10),r=n.split(".");e<r.length&&(n=r.slice(r.length-e).join("."))}return n},d:function(e,t){let n=De.ISO8601_FORMAT;if(t)switch(n=t,n){case"ISO8601":case"ISO8601_FORMAT":n=De.ISO8601_FORMAT;break;case"ISO8601_WITH_TZ_OFFSET":case"ISO8601_WITH_TZ_OFFSET_FORMAT":n=De.ISO8601_WITH_TZ_OFFSET_FORMAT;break;case"ABSOLUTE":process.emitWarning("Pattern %d{ABSOLUTE} is deprecated in favor of %d{ABSOLUTETIME}. Please use %d{ABSOLUTETIME} instead.","DeprecationWarning","log4js-node-DEP0003"),ye("[log4js-node-DEP0003]","DEPRECATION: Pattern %d{ABSOLUTE} is deprecated and replaced by %d{ABSOLUTETIME}.");case"ABSOLUTETIME":case"ABSOLUTETIME_FORMAT":n=De.ABSOLUTETIME_FORMAT;break;case"DATE":process.emitWarning("Pattern %d{DATE} is deprecated due to the confusion it causes when used. Please use %d{DATETIME} instead.","DeprecationWarning","log4js-node-DEP0004"),ye("[log4js-node-DEP0004]","DEPRECATION: Pattern %d{DATE} is deprecated and replaced by %d{DATETIME}.");case"DATETIME":case"DATETIME_FORMAT":n=De.DATETIME_FORMAT}return De.asString(n,e.startTime)},h:function(){return pe.hostname().toString()},m:function(e){return he.format(...e.data)},n:function(){return pe.EOL},p:function(e){return e.level.toString()},r:function(e){return De.asString("hh:mm:ss",e.startTime)},"[":function(e){return Fe(e.level.colour)},"]":function(e){return ge(e.level.colour)},y:function(){return r()},z:r,"%":function(){return"%"},x:function(e,n){return void 0!==t[n]?"function"==typeof t[n]?t[n](e):t[n]:null},X:function(e,t){const n=e.context[t];return void 0!==n?"function"==typeof n?n(e):n:null},f:function(e,t){let n=e.fileName||"";if(n=function(e){const t="file://";return e.startsWith(t)&&("function"==typeof me.fileURLToPath?e=me.fileURLToPath(e):(e=Ee.normalize(e.replace(new RegExp(`^${t}`),"")),"win32"===process.platform&&(e=e.startsWith("\\")?e.slice(1):Ee.sep+Ee.sep+e))),e}(n),t){const e=parseInt(t,10),r=n.split(Ee.sep);r.length>e&&(n=r.slice(-e).join(Ee.sep))}return n},l:function(e){return e.lineNumber?`${e.lineNumber}`:""},o:function(e){return e.columnNumber?`${e.columnNumber}`:""},s:function(e){return e.callStack||""},C:function(e){return e.className||""},M:function(e){return e.functionName||""},A:function(e){return e.functionAlias||""},F:function(e){return e.callerName||""}};function o(e,t,n){return u[e](t,n)}function i(e,t,n){let r=e;return r=function(e,t){let n;return e?(n=parseInt(e.slice(1),10),n>0?t.slice(0,n):t.slice(n)):t}(t,r),r=function(e,t){let n;if(e)if("-"===e.charAt(0))for(n=parseInt(e.slice(1),10);t.length<n;)t+=" ";else for(n=parseInt(e,10);t.length<n;)t=` ${t} (…)
|
| /test/xts/acts/ability/ability_runtime/abilitygetstartparameterstest/getstartparameterhelper3/hvigor/ |
| H A D | hvigor-wrapper.js | 15 "use strict";var e=require("path"),t=require("os"),n=require("fs"),r=require("child_process"),u=require("process"),o=require("tty"),i=require("util"),s=require("url"),c=require("constants"),a=require("stream"),l=require("assert"),f=require("zlib"),d=require("net"),D=require("crypto"),p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h={},E={},m=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(E,"__esModule",{value:!0}),E.maxPathLength=E.isMac=E.isLinux=E.isWindows=void 0;const y=m(t),C="Windows_NT",F="Darwin";function g(){return y.default.type()===C}function A(){return y.default.type()===F}E.isWindows=g,E.isLinux=function(){return"Linux"===y.default.type()},E.isMac=A,E.maxPathLength=function(){return A()?1016:g()?259:4095},Object.defineProperty(h,"__esModule",{value:!0}),h.LOG_LEVEL=h.ANALYZE=h.PARALLEL=h.INCREMENTAL=h.DAEMON=h.DOT=h.PROPERTIES=h.HVIGOR_ARK_COMPILE_MAX_SIZE=h.HVIGOR_POOL_CACHE_TTL=h.HVIGOR_POOL_CACHE_CAPACITY=h.HVIGOR_POOL_MAX_CORE_SIZE=h.HVIGOR_POOL_MAX_SIZE=h.ENABLE_SIGN_TASK_KEY=h.HVIGOR_CACHE_DIR_KEY=h.WORK_SPACE=h.PROJECT_CACHES=h.HVIGOR_USER_HOME_DIR_NAME=h.DEFAULT_PACKAGE_JSON=h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME=h.PNPM=h.HVIGOR=h.NPM_TOOL=h.PNPM_TOOL=h.HVIGOR_ENGINE_PACKAGE_NAME=void 0;const v=E;h.HVIGOR_ENGINE_PACKAGE_NAME="@ohos/hvigor",h.PNPM_TOOL=(0,v.isWindows)()?"pnpm.cmd":"pnpm",h.NPM_TOOL=(0,v.isWindows)()?"npm.cmd":"npm",h.HVIGOR="hvigor",h.PNPM="pnpm",h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME="hvigor-config.json5",h.DEFAULT_PACKAGE_JSON="package.json",h.HVIGOR_USER_HOME_DIR_NAME=".hvigor",h.PROJECT_CACHES="project_caches";var S=h.WORK_SPACE="workspace";h.HVIGOR_CACHE_DIR_KEY="hvigor.cacheDir",h.ENABLE_SIGN_TASK_KEY="enableSignTask",h.HVIGOR_POOL_MAX_SIZE="hvigor.pool.maxSize",h.HVIGOR_POOL_MAX_CORE_SIZE="hvigor.pool.maxCoreSize",h.HVIGOR_POOL_CACHE_CAPACITY="hvigor.pool.cache.capacity",h.HVIGOR_POOL_CACHE_TTL="hvigor.pool.cache.ttl",h.HVIGOR_ARK_COMPILE_MAX_SIZE="hvigor.arkCompile.maxSize",h.PROPERTIES="properties",h.DOT=".",h.DAEMON="daemon",h.INCREMENTAL="incremental",h.PARALLEL="typeCheck",h.ANALYZE="analyze",h.LOG_LEVEL="logLevel";var w={},O={};Object.defineProperty(O,"__esModule",{value:!0}),O.logError=O.logInfo=O.logErrorAndExit=void 0,O.logErrorAndExit=function(e){e instanceof Error?console.error(e.message):console.error(e),process.exit(-1)},O.logInfo=function(e){console.log(e)},O.logError=function(e){console.error(e)};var _=p&&p.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var u=Object.getOwnPropertyDescriptor(t,n);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),b=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),B=p&&p.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&_(t,e,n);return b(t,e),t};Object.defineProperty(w,"__esModule",{value:!0});var P=w.executeBuild=void 0;const k=B(n),I=B(e),x=O,N=r;P=w.executeBuild=function(e){const t=I.resolve(e,"node_modules","@ohos","hvigor","bin","hvigor.js");try{const e=k.realpathSync(t),n=process.argv.slice(2),r=(0,N.spawn)("node",[e,...n],{env:process.env});r.stdout.on("data",(e=>{(0,x.logInfo)(`${e.toString().trim()}`)})),r.stderr.on("data",(e=>{(0,x.logError)(`${e.toString().trim()}`)})),r.on("exit",((e,t)=>{process.exit(null!=e?e:-1)}))}catch(n){(0,x.logErrorAndExit)(`Error: ENOENT: no such file ${t},delete ${e} and retry.`)}};var R,T,M,L,j,$={},H={},G={exports:{}},V={exports:{}};function U(){if(T)return R;T=1;var e=1e3,t=60*e,n=60*t,r=24*n,u=7*r,o=365.25*r;function i(e,t,n,r){var u=t>=1.5*n;return Math.round(e/n)+" "+r+(u?"s":"")}return R=function(s,c){c=c||{};var a=typeof s;if("string"===a&&s.length>0)return function(i){if((i=String(i)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*u;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(s);if("number"===a&&isFinite(s))return c.long?function(u){var o=Math.abs(u);if(o>=r)return i(u,o,r,"day");if(o>=n)return i(u,o,n,"hour");if(o>=t)return i(u,o,t,"minute");if(o>=e)return i(u,o,e,"second");return u+" ms"}(s):function(u){var o=Math.abs(u);if(o>=r)return Math.round(u/r)+"d";if(o>=n)return Math.round(u/n)+"h";if(o>=t)return Math.round(u/t)+"m";if(o>=e)return Math.round(u/e)+"s";return u+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))}}function J(){if(L)return M;return L=1,M=function(e){function t(e){let r,u,o,i=null;function s(...e){if(!s.enabled)return;const n=s,u=Number(new Date),o=u-(r||u);n.diff=o,n.prev=r,n.curr=u,r=u,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,u)=>{if("%%"===r)return"%";i++;const o=t.formatters[u];if("function"==typeof o){const t=e[i];r=o.call(n,t),e.splice(i,1),i--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(u!==t.namespaces&&(u=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),u=r.length;for(n=0;n<u;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=U(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},M}var W,z,K,q,Y,Z,X={exports:{}};function Q(){return z||(z=1,W=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),u=t.indexOf("--");return-1!==r&&(-1===u||r<u)}),W}function ee(){if(q)return K;q=1;const e=t,n=Q(),r=process.env;let u;function o(t){const o=function(t){if(!1===u)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(t&&!t.isTTY&&!0!==u)return 0;const o=u?1:0;if("win32"===process.platform){const t=e.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in r))||"codeship"===r.CI_NAME?1:o;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("truecolor"===r.COLORTERM)return 3;if("TERM_PROGRAM"in r){const e=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:(r.TERM,o)}(t);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(o)}return n("no-color")||n("no-colors")||n("color=false")?u=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(u=!0),"FORCE_COLOR"in r&&(u=0===r.FORCE_COLOR.length||0!==parseInt(r.FORCE_COLOR,10)),K={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}}function te(){return Y||(Y=1,function(e,t){const n=o,r=i;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(...e){return process.stderr.write(r.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:r,useColors:u}=this;if(u){const t=this.color,u="[3"+(t<8?t:"8;5;"+t),o=` ${u};1m${r} [0m`;n[0]=o+n[0].split("\n").join("\n"+o),n.push(u+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+r+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=r.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=ee();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),e.exports=J()(t);const{formatters:u}=e.exports;u.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},u.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}}(X,X.exports)),X.exports}Z=G,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?Z.exports=(j||(j=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,u=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(u=r))})),t.splice(u,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=J()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(V,V.exports)),V.exports):Z.exports=te();var ne=function(e){return(e=e||{}).circles?function(e){var t=[],n=[];return e.proto?function e(u){if("object"!=typeof u||null===u)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return r(u,e);if(u instanceof Map)return new Map(r(Array.from(u),e));if(u instanceof Set)return new Set(r(Array.from(u),e));var o={};for(var i in t.push(u),n.push(o),u){var s=u[i];if("object"!=typeof s||null===s)o[i]=s;else if(s instanceof Date)o[i]=new Date(s);else if(s instanceof Map)o[i]=new Map(r(Array.from(s),e));else if(s instanceof Set)o[i]=new Set(r(Array.from(s),e));else if(ArrayBuffer.isView(s))o[i]=re(s);else{var c=t.indexOf(s);o[i]=-1!==c?n[c]:e(s)}}return t.pop(),n.pop(),o}:function e(u){if("object"!=typeof u||null===u)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return r(u,e);if(u instanceof Map)return new Map(r(Array.from(u),e));if(u instanceof Set)return new Set(r(Array.from(u),e));var o={};for(var i in t.push(u),n.push(o),u)if(!1!==Object.hasOwnProperty.call(u,i)){var s=u[i];if("object"!=typeof s||null===s)o[i]=s;else if(s instanceof Date)o[i]=new Date(s);else if(s instanceof Map)o[i]=new Map(r(Array.from(s),e));else if(s instanceof Set)o[i]=new Set(r(Array.from(s),e));else if(ArrayBuffer.isView(s))o[i]=re(s);else{var c=t.indexOf(s);o[i]=-1!==c?n[c]:e(s)}}return t.pop(),n.pop(),o};function r(e,r){for(var u=Object.keys(e),o=new Array(u.length),i=0;i<u.length;i++){var s=u[i],c=e[s];if("object"!=typeof c||null===c)o[s]=c;else if(c instanceof Date)o[s]=new Date(c);else if(ArrayBuffer.isView(c))o[s]=re(c);else{var a=t.indexOf(c);o[s]=-1!==a?n[a]:r(c)}}return o}}(e):e.proto?function e(n){if("object"!=typeof n||null===n)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return t(n,e);if(n instanceof Map)return new Map(t(Array.from(n),e));if(n instanceof Set)return new Set(t(Array.from(n),e));var r={};for(var u in n){var o=n[u];"object"!=typeof o||null===o?r[u]=o:o instanceof Date?r[u]=new Date(o):o instanceof Map?r[u]=new Map(t(Array.from(o),e)):o instanceof Set?r[u]=new Set(t(Array.from(o),e)):ArrayBuffer.isView(o)?r[u]=re(o):r[u]=e(o)}return r}:n;function t(e,t){for(var n=Object.keys(e),r=new Array(n.length),u=0;u<n.length;u++){var o=n[u],i=e[o];"object"!=typeof i||null===i?r[o]=i:i instanceof Date?r[o]=new Date(i):ArrayBuffer.isView(i)?r[o]=re(i):r[o]=t(i)}return r}function n(e){if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return t(e,n);if(e instanceof Map)return new Map(t(Array.from(e),n));if(e instanceof Set)return new Set(t(Array.from(e),n));var r={};for(var u in e)if(!1!==Object.hasOwnProperty.call(e,u)){var o=e[u];"object"!=typeof o||null===o?r[u]=o:o instanceof Date?r[u]=new Date(o):o instanceof Map?r[u]=new Map(t(Array.from(o),n)):o instanceof Set?r[u]=new Set(t(Array.from(o),n)):ArrayBuffer.isView(o)?r[u]=re(o):r[u]=n(o)}return r}};function re(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}const ue=i,oe=G.exports("log4js:configuration"),ie=[],se=[],ce=e=>!e,ae=e=>e&&"object"==typeof e&&!Array.isArray(e),le=(e,t,n)=>{(Array.isArray(t)?t:[t]).forEach((t=>{if(t)throw new Error(`Problem with log4js configuration: (${ue.inspect(e,{depth:5})}) - ${n}`)}))};var fe={configure:e=>{oe("New configuration to be validated: ",e),le(e,ce(ae(e)),"must be an object."),oe(`Calling pre-processing listeners (${ie.length})`),ie.forEach((t=>t(e))),oe("Configuration pre-processing finished."),oe(`Calling configuration listeners (${se.length})`),se.forEach((t=>t(e))),oe("Configuration finished.")},addListener:e=>{se.push(e),oe(`Added listener, now ${se.length} listeners`)},addPreProcessingListener:e=>{ie.push(e),oe(`Added pre-processing listener, now ${ie.length} listeners`)},throwExceptionIf:le,anObject:ae,anInteger:e=>e&&"number"==typeof e&&Number.isInteger(e),validIdentifier:e=>/^[A-Za-z][A-Za-z0-9_]*$/g.test(e),not:ce},de={exports:{}};!function(e){function t(e,t){for(var n=e.toString();n.length<t;)n="0"+n;return n}function n(e){return t(e,2)}function r(r,u){"string"!=typeof r&&(u=r,r=e.exports.ISO8601_FORMAT),u||(u=e.exports.now());var o=n(u.getDate()),i=n(u.getMonth()+1),s=n(u.getFullYear()),c=n(s.substring(2,4)),a=r.indexOf("yyyy")>-1?s:c,l=n(u.getHours()),f=n(u.getMinutes()),d=n(u.getSeconds()),D=t(u.getMilliseconds(),3),p=function(e){var t=Math.abs(e),n=String(Math.floor(t/60)),r=String(t%60);return n=("0"+n).slice(-2),r=("0"+r).slice(-2),0===e?"Z":(e<0?"+":"-")+n+":"+r}(u.getTimezoneOffset());return r.replace(/dd/g,o).replace(/MM/g,i).replace(/y{1,4}/g,a).replace(/hh/g,l).replace(/mm/g,f).replace(/ss/g,d).replace(/SSS/g,D).replace(/O/g,p)}function u(e,t,n,r){e["set"+(r?"":"UTC")+t](n)}e.exports=r,e.exports.asString=r,e.exports.parse=function(t,n,r){if(!t)throw new Error("pattern must be supplied");return function(t,n,r){var o=t.indexOf("O")<0,i=!1,s=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(e,t){u(e,"FullYear",t,o)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(e,t){u(e,"Month",t-1,o),e.getMonth()!==t-1&&(i=!0)}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(e,t){i&&u(e,"Month",e.getMonth()-1,o),u(e,"Date",t,o)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(e,t){u(e,"Hours",t,o)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(e,t){u(e,"Minutes",t,o)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(e,t){u(e,"Seconds",t,o)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(e,t){u(e,"Milliseconds",t,o)}},{pattern:/O/,regexp:"[+-]\\d{1,2}:?\\d{2}?|Z",fn:function(e,t){t="Z"===t?0:t.replace(":","");var n=Math.abs(t),r=(t>0?-1:1)*(n%100+60*Math.floor(n/100));e.setUTCMinutes(e.getUTCMinutes()+r)}}],c=s.reduce((function(e,t){return t.pattern.test(e.regexp)?(t.index=e.regexp.match(t.pattern).index,e.regexp=e.regexp.replace(t.pattern,"("+t.regexp+")")):t.index=-1,e}),{regexp:t,index:[]}),a=s.filter((function(e){return e.index>-1}));a.sort((function(e,t){return e.index-t.index}));var l=new RegExp(c.regexp).exec(n);if(l){var f=r||e.exports.now();return a.forEach((function(e,t){e.fn(f,l[t+1])})),f}throw new Error("String '"+n+"' could not be parsed as '"+t+"'")}(t,n,r)},e.exports.now=function(){return new Date},e.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS",e.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO",e.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS",e.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"}(de);const De=de.exports,pe=t,he=i,Ee=e,me=s,ye=G.exports("log4js:layouts"),Ce={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[90,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[91,39],yellow:[33,39]};function Fe(e){return e?`[${Ce[e][0]}m`:""}function ge(e){return e?`[${Ce[e][1]}m`:""}function Ae(e,t){return n=he.format("[%s] [%s] %s - ",De.asString(e.startTime),e.level.toString(),e.categoryName),Fe(r=t)+n+ge(r);var n,r}function ve(e){return Ae(e)+he.format(...e.data)}function Se(e){return Ae(e,e.level.colour)+he.format(...e.data)}function we(e){return he.format(...e.data)}function Oe(e){return e.data[0]}function _e(e,t){const n=/%(-?[0-9]+)?(\.?-?[0-9]+)?([[\]cdhmnprzxXyflosCMAF%])(\{([^}]+)\})?|([^%]+)/;function r(e){return e&&e.pid?e.pid.toString():process.pid.toString()}e=e||"%r %p %c - %m%n";const u={c:function(e,t){let n=e.categoryName;if(t){const e=parseInt(t,10),r=n.split(".");e<r.length&&(n=r.slice(r.length-e).join("."))}return n},d:function(e,t){let n=De.ISO8601_FORMAT;if(t)switch(n=t,n){case"ISO8601":case"ISO8601_FORMAT":n=De.ISO8601_FORMAT;break;case"ISO8601_WITH_TZ_OFFSET":case"ISO8601_WITH_TZ_OFFSET_FORMAT":n=De.ISO8601_WITH_TZ_OFFSET_FORMAT;break;case"ABSOLUTE":process.emitWarning("Pattern %d{ABSOLUTE} is deprecated in favor of %d{ABSOLUTETIME}. Please use %d{ABSOLUTETIME} instead.","DeprecationWarning","log4js-node-DEP0003"),ye("[log4js-node-DEP0003]","DEPRECATION: Pattern %d{ABSOLUTE} is deprecated and replaced by %d{ABSOLUTETIME}.");case"ABSOLUTETIME":case"ABSOLUTETIME_FORMAT":n=De.ABSOLUTETIME_FORMAT;break;case"DATE":process.emitWarning("Pattern %d{DATE} is deprecated due to the confusion it causes when used. Please use %d{DATETIME} instead.","DeprecationWarning","log4js-node-DEP0004"),ye("[log4js-node-DEP0004]","DEPRECATION: Pattern %d{DATE} is deprecated and replaced by %d{DATETIME}.");case"DATETIME":case"DATETIME_FORMAT":n=De.DATETIME_FORMAT}return De.asString(n,e.startTime)},h:function(){return pe.hostname().toString()},m:function(e){return he.format(...e.data)},n:function(){return pe.EOL},p:function(e){return e.level.toString()},r:function(e){return De.asString("hh:mm:ss",e.startTime)},"[":function(e){return Fe(e.level.colour)},"]":function(e){return ge(e.level.colour)},y:function(){return r()},z:r,"%":function(){return"%"},x:function(e,n){return void 0!==t[n]?"function"==typeof t[n]?t[n](e):t[n]:null},X:function(e,t){const n=e.context[t];return void 0!==n?"function"==typeof n?n(e):n:null},f:function(e,t){let n=e.fileName||"";if(n=function(e){const t="file://";return e.startsWith(t)&&("function"==typeof me.fileURLToPath?e=me.fileURLToPath(e):(e=Ee.normalize(e.replace(new RegExp(`^${t}`),"")),"win32"===process.platform&&(e=e.startsWith("\\")?e.slice(1):Ee.sep+Ee.sep+e))),e}(n),t){const e=parseInt(t,10),r=n.split(Ee.sep);r.length>e&&(n=r.slice(-e).join(Ee.sep))}return n},l:function(e){return e.lineNumber?`${e.lineNumber}`:""},o:function(e){return e.columnNumber?`${e.columnNumber}`:""},s:function(e){return e.callStack||""},C:function(e){return e.className||""},M:function(e){return e.functionName||""},A:function(e){return e.functionAlias||""},F:function(e){return e.callerName||""}};function o(e,t,n){return u[e](t,n)}function i(e,t,n){let r=e;return r=function(e,t){let n;return e?(n=parseInt(e.slice(1),10),n>0?t.slice(0,n):t.slice(n)):t}(t,r),r=function(e,t){let n;if(e)if("-"===e.charAt(0))for(n=parseInt(e.slice(1),10);t.length<n;)t+=" ";else for(n=parseInt(e,10);t.length<n;)t=` ${t} (…)
|
| /test/xts/acts/ability/ability_runtime/abilitymanager/actsamstestfifthscene/hvigor/ |
| H A D | hvigor-wrapper.js | 15 "use strict";var e=require("path"),t=require("os"),n=require("fs"),r=require("child_process"),u=require("process"),o=require("tty"),i=require("util"),s=require("url"),c=require("constants"),a=require("stream"),l=require("assert"),f=require("zlib"),d=require("net"),D=require("crypto"),p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h={},E={},m=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(E,"__esModule",{value:!0}),E.maxPathLength=E.isMac=E.isLinux=E.isWindows=void 0;const y=m(t),C="Windows_NT",F="Darwin";function g(){return y.default.type()===C}function A(){return y.default.type()===F}E.isWindows=g,E.isLinux=function(){return"Linux"===y.default.type()},E.isMac=A,E.maxPathLength=function(){return A()?1016:g()?259:4095},Object.defineProperty(h,"__esModule",{value:!0}),h.LOG_LEVEL=h.ANALYZE=h.PARALLEL=h.INCREMENTAL=h.DAEMON=h.DOT=h.PROPERTIES=h.HVIGOR_ARK_COMPILE_MAX_SIZE=h.HVIGOR_POOL_CACHE_TTL=h.HVIGOR_POOL_CACHE_CAPACITY=h.HVIGOR_POOL_MAX_CORE_SIZE=h.HVIGOR_POOL_MAX_SIZE=h.ENABLE_SIGN_TASK_KEY=h.HVIGOR_CACHE_DIR_KEY=h.WORK_SPACE=h.PROJECT_CACHES=h.HVIGOR_USER_HOME_DIR_NAME=h.DEFAULT_PACKAGE_JSON=h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME=h.PNPM=h.HVIGOR=h.NPM_TOOL=h.PNPM_TOOL=h.HVIGOR_ENGINE_PACKAGE_NAME=void 0;const v=E;h.HVIGOR_ENGINE_PACKAGE_NAME="@ohos/hvigor",h.PNPM_TOOL=(0,v.isWindows)()?"pnpm.cmd":"pnpm",h.NPM_TOOL=(0,v.isWindows)()?"npm.cmd":"npm",h.HVIGOR="hvigor",h.PNPM="pnpm",h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME="hvigor-config.json5",h.DEFAULT_PACKAGE_JSON="package.json",h.HVIGOR_USER_HOME_DIR_NAME=".hvigor",h.PROJECT_CACHES="project_caches";var S=h.WORK_SPACE="workspace";h.HVIGOR_CACHE_DIR_KEY="hvigor.cacheDir",h.ENABLE_SIGN_TASK_KEY="enableSignTask",h.HVIGOR_POOL_MAX_SIZE="hvigor.pool.maxSize",h.HVIGOR_POOL_MAX_CORE_SIZE="hvigor.pool.maxCoreSize",h.HVIGOR_POOL_CACHE_CAPACITY="hvigor.pool.cache.capacity",h.HVIGOR_POOL_CACHE_TTL="hvigor.pool.cache.ttl",h.HVIGOR_ARK_COMPILE_MAX_SIZE="hvigor.arkCompile.maxSize",h.PROPERTIES="properties",h.DOT=".",h.DAEMON="daemon",h.INCREMENTAL="incremental",h.PARALLEL="typeCheck",h.ANALYZE="analyze",h.LOG_LEVEL="logLevel";var w={},O={};Object.defineProperty(O,"__esModule",{value:!0}),O.logError=O.logInfo=O.logErrorAndExit=void 0,O.logErrorAndExit=function(e){e instanceof Error?console.error(e.message):console.error(e),process.exit(-1)},O.logInfo=function(e){console.log(e)},O.logError=function(e){console.error(e)};var _=p&&p.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var u=Object.getOwnPropertyDescriptor(t,n);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),b=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),B=p&&p.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&_(t,e,n);return b(t,e),t};Object.defineProperty(w,"__esModule",{value:!0});var P=w.executeBuild=void 0;const k=B(n),I=B(e),x=O,N=r;P=w.executeBuild=function(e){const t=I.resolve(e,"node_modules","@ohos","hvigor","bin","hvigor.js");try{const e=k.realpathSync(t),n=process.argv.slice(2),r=(0,N.spawn)("node",[e,...n],{env:process.env});r.stdout.on("data",(e=>{(0,x.logInfo)(`${e.toString().trim()}`)})),r.stderr.on("data",(e=>{(0,x.logError)(`${e.toString().trim()}`)})),r.on("exit",((e,t)=>{process.exit(null!=e?e:-1)}))}catch(n){(0,x.logErrorAndExit)(`Error: ENOENT: no such file ${t},delete ${e} and retry.`)}};var R,T,M,L,j,$={},H={},G={exports:{}},V={exports:{}};function U(){if(T)return R;T=1;var e=1e3,t=60*e,n=60*t,r=24*n,u=7*r,o=365.25*r;function i(e,t,n,r){var u=t>=1.5*n;return Math.round(e/n)+" "+r+(u?"s":"")}return R=function(s,c){c=c||{};var a=typeof s;if("string"===a&&s.length>0)return function(i){if((i=String(i)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*u;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(s);if("number"===a&&isFinite(s))return c.long?function(u){var o=Math.abs(u);if(o>=r)return i(u,o,r,"day");if(o>=n)return i(u,o,n,"hour");if(o>=t)return i(u,o,t,"minute");if(o>=e)return i(u,o,e,"second");return u+" ms"}(s):function(u){var o=Math.abs(u);if(o>=r)return Math.round(u/r)+"d";if(o>=n)return Math.round(u/n)+"h";if(o>=t)return Math.round(u/t)+"m";if(o>=e)return Math.round(u/e)+"s";return u+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))}}function J(){if(L)return M;return L=1,M=function(e){function t(e){let r,u,o,i=null;function s(...e){if(!s.enabled)return;const n=s,u=Number(new Date),o=u-(r||u);n.diff=o,n.prev=r,n.curr=u,r=u,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,u)=>{if("%%"===r)return"%";i++;const o=t.formatters[u];if("function"==typeof o){const t=e[i];r=o.call(n,t),e.splice(i,1),i--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(u!==t.namespaces&&(u=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),u=r.length;for(n=0;n<u;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=U(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},M}var W,z,K,q,Y,Z,X={exports:{}};function Q(){return z||(z=1,W=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),u=t.indexOf("--");return-1!==r&&(-1===u||r<u)}),W}function ee(){if(q)return K;q=1;const e=t,n=Q(),r=process.env;let u;function o(t){const o=function(t){if(!1===u)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(t&&!t.isTTY&&!0!==u)return 0;const o=u?1:0;if("win32"===process.platform){const t=e.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in r))||"codeship"===r.CI_NAME?1:o;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("truecolor"===r.COLORTERM)return 3;if("TERM_PROGRAM"in r){const e=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:(r.TERM,o)}(t);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(o)}return n("no-color")||n("no-colors")||n("color=false")?u=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(u=!0),"FORCE_COLOR"in r&&(u=0===r.FORCE_COLOR.length||0!==parseInt(r.FORCE_COLOR,10)),K={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}}function te(){return Y||(Y=1,function(e,t){const n=o,r=i;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(...e){return process.stderr.write(r.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:r,useColors:u}=this;if(u){const t=this.color,u="[3"+(t<8?t:"8;5;"+t),o=` ${u};1m${r} [0m`;n[0]=o+n[0].split("\n").join("\n"+o),n.push(u+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+r+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=r.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=ee();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),e.exports=J()(t);const{formatters:u}=e.exports;u.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},u.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}}(X,X.exports)),X.exports}Z=G,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?Z.exports=(j||(j=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,u=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(u=r))})),t.splice(u,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=J()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(V,V.exports)),V.exports):Z.exports=te();var ne=function(e){return(e=e||{}).circles?function(e){var t=[],n=[];return e.proto?function e(u){if("object"!=typeof u||null===u)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return r(u,e);if(u instanceof Map)return new Map(r(Array.from(u),e));if(u instanceof Set)return new Set(r(Array.from(u),e));var o={};for(var i in t.push(u),n.push(o),u){var s=u[i];if("object"!=typeof s||null===s)o[i]=s;else if(s instanceof Date)o[i]=new Date(s);else if(s instanceof Map)o[i]=new Map(r(Array.from(s),e));else if(s instanceof Set)o[i]=new Set(r(Array.from(s),e));else if(ArrayBuffer.isView(s))o[i]=re(s);else{var c=t.indexOf(s);o[i]=-1!==c?n[c]:e(s)}}return t.pop(),n.pop(),o}:function e(u){if("object"!=typeof u||null===u)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return r(u,e);if(u instanceof Map)return new Map(r(Array.from(u),e));if(u instanceof Set)return new Set(r(Array.from(u),e));var o={};for(var i in t.push(u),n.push(o),u)if(!1!==Object.hasOwnProperty.call(u,i)){var s=u[i];if("object"!=typeof s||null===s)o[i]=s;else if(s instanceof Date)o[i]=new Date(s);else if(s instanceof Map)o[i]=new Map(r(Array.from(s),e));else if(s instanceof Set)o[i]=new Set(r(Array.from(s),e));else if(ArrayBuffer.isView(s))o[i]=re(s);else{var c=t.indexOf(s);o[i]=-1!==c?n[c]:e(s)}}return t.pop(),n.pop(),o};function r(e,r){for(var u=Object.keys(e),o=new Array(u.length),i=0;i<u.length;i++){var s=u[i],c=e[s];if("object"!=typeof c||null===c)o[s]=c;else if(c instanceof Date)o[s]=new Date(c);else if(ArrayBuffer.isView(c))o[s]=re(c);else{var a=t.indexOf(c);o[s]=-1!==a?n[a]:r(c)}}return o}}(e):e.proto?function e(n){if("object"!=typeof n||null===n)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return t(n,e);if(n instanceof Map)return new Map(t(Array.from(n),e));if(n instanceof Set)return new Set(t(Array.from(n),e));var r={};for(var u in n){var o=n[u];"object"!=typeof o||null===o?r[u]=o:o instanceof Date?r[u]=new Date(o):o instanceof Map?r[u]=new Map(t(Array.from(o),e)):o instanceof Set?r[u]=new Set(t(Array.from(o),e)):ArrayBuffer.isView(o)?r[u]=re(o):r[u]=e(o)}return r}:n;function t(e,t){for(var n=Object.keys(e),r=new Array(n.length),u=0;u<n.length;u++){var o=n[u],i=e[o];"object"!=typeof i||null===i?r[o]=i:i instanceof Date?r[o]=new Date(i):ArrayBuffer.isView(i)?r[o]=re(i):r[o]=t(i)}return r}function n(e){if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return t(e,n);if(e instanceof Map)return new Map(t(Array.from(e),n));if(e instanceof Set)return new Set(t(Array.from(e),n));var r={};for(var u in e)if(!1!==Object.hasOwnProperty.call(e,u)){var o=e[u];"object"!=typeof o||null===o?r[u]=o:o instanceof Date?r[u]=new Date(o):o instanceof Map?r[u]=new Map(t(Array.from(o),n)):o instanceof Set?r[u]=new Set(t(Array.from(o),n)):ArrayBuffer.isView(o)?r[u]=re(o):r[u]=n(o)}return r}};function re(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}const ue=i,oe=G.exports("log4js:configuration"),ie=[],se=[],ce=e=>!e,ae=e=>e&&"object"==typeof e&&!Array.isArray(e),le=(e,t,n)=>{(Array.isArray(t)?t:[t]).forEach((t=>{if(t)throw new Error(`Problem with log4js configuration: (${ue.inspect(e,{depth:5})}) - ${n}`)}))};var fe={configure:e=>{oe("New configuration to be validated: ",e),le(e,ce(ae(e)),"must be an object."),oe(`Calling pre-processing listeners (${ie.length})`),ie.forEach((t=>t(e))),oe("Configuration pre-processing finished."),oe(`Calling configuration listeners (${se.length})`),se.forEach((t=>t(e))),oe("Configuration finished.")},addListener:e=>{se.push(e),oe(`Added listener, now ${se.length} listeners`)},addPreProcessingListener:e=>{ie.push(e),oe(`Added pre-processing listener, now ${ie.length} listeners`)},throwExceptionIf:le,anObject:ae,anInteger:e=>e&&"number"==typeof e&&Number.isInteger(e),validIdentifier:e=>/^[A-Za-z][A-Za-z0-9_]*$/g.test(e),not:ce},de={exports:{}};!function(e){function t(e,t){for(var n=e.toString();n.length<t;)n="0"+n;return n}function n(e){return t(e,2)}function r(r,u){"string"!=typeof r&&(u=r,r=e.exports.ISO8601_FORMAT),u||(u=e.exports.now());var o=n(u.getDate()),i=n(u.getMonth()+1),s=n(u.getFullYear()),c=n(s.substring(2,4)),a=r.indexOf("yyyy")>-1?s:c,l=n(u.getHours()),f=n(u.getMinutes()),d=n(u.getSeconds()),D=t(u.getMilliseconds(),3),p=function(e){var t=Math.abs(e),n=String(Math.floor(t/60)),r=String(t%60);return n=("0"+n).slice(-2),r=("0"+r).slice(-2),0===e?"Z":(e<0?"+":"-")+n+":"+r}(u.getTimezoneOffset());return r.replace(/dd/g,o).replace(/MM/g,i).replace(/y{1,4}/g,a).replace(/hh/g,l).replace(/mm/g,f).replace(/ss/g,d).replace(/SSS/g,D).replace(/O/g,p)}function u(e,t,n,r){e["set"+(r?"":"UTC")+t](n)}e.exports=r,e.exports.asString=r,e.exports.parse=function(t,n,r){if(!t)throw new Error("pattern must be supplied");return function(t,n,r){var o=t.indexOf("O")<0,i=!1,s=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(e,t){u(e,"FullYear",t,o)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(e,t){u(e,"Month",t-1,o),e.getMonth()!==t-1&&(i=!0)}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(e,t){i&&u(e,"Month",e.getMonth()-1,o),u(e,"Date",t,o)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(e,t){u(e,"Hours",t,o)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(e,t){u(e,"Minutes",t,o)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(e,t){u(e,"Seconds",t,o)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(e,t){u(e,"Milliseconds",t,o)}},{pattern:/O/,regexp:"[+-]\\d{1,2}:?\\d{2}?|Z",fn:function(e,t){t="Z"===t?0:t.replace(":","");var n=Math.abs(t),r=(t>0?-1:1)*(n%100+60*Math.floor(n/100));e.setUTCMinutes(e.getUTCMinutes()+r)}}],c=s.reduce((function(e,t){return t.pattern.test(e.regexp)?(t.index=e.regexp.match(t.pattern).index,e.regexp=e.regexp.replace(t.pattern,"("+t.regexp+")")):t.index=-1,e}),{regexp:t,index:[]}),a=s.filter((function(e){return e.index>-1}));a.sort((function(e,t){return e.index-t.index}));var l=new RegExp(c.regexp).exec(n);if(l){var f=r||e.exports.now();return a.forEach((function(e,t){e.fn(f,l[t+1])})),f}throw new Error("String '"+n+"' could not be parsed as '"+t+"'")}(t,n,r)},e.exports.now=function(){return new Date},e.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS",e.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO",e.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS",e.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"}(de);const De=de.exports,pe=t,he=i,Ee=e,me=s,ye=G.exports("log4js:layouts"),Ce={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[90,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[91,39],yellow:[33,39]};function Fe(e){return e?`[${Ce[e][0]}m`:""}function ge(e){return e?`[${Ce[e][1]}m`:""}function Ae(e,t){return n=he.format("[%s] [%s] %s - ",De.asString(e.startTime),e.level.toString(),e.categoryName),Fe(r=t)+n+ge(r);var n,r}function ve(e){return Ae(e)+he.format(...e.data)}function Se(e){return Ae(e,e.level.colour)+he.format(...e.data)}function we(e){return he.format(...e.data)}function Oe(e){return e.data[0]}function _e(e,t){const n=/%(-?[0-9]+)?(\.?-?[0-9]+)?([[\]cdhmnprzxXyflosCMAF%])(\{([^}]+)\})?|([^%]+)/;function r(e){return e&&e.pid?e.pid.toString():process.pid.toString()}e=e||"%r %p %c - %m%n";const u={c:function(e,t){let n=e.categoryName;if(t){const e=parseInt(t,10),r=n.split(".");e<r.length&&(n=r.slice(r.length-e).join("."))}return n},d:function(e,t){let n=De.ISO8601_FORMAT;if(t)switch(n=t,n){case"ISO8601":case"ISO8601_FORMAT":n=De.ISO8601_FORMAT;break;case"ISO8601_WITH_TZ_OFFSET":case"ISO8601_WITH_TZ_OFFSET_FORMAT":n=De.ISO8601_WITH_TZ_OFFSET_FORMAT;break;case"ABSOLUTE":process.emitWarning("Pattern %d{ABSOLUTE} is deprecated in favor of %d{ABSOLUTETIME}. Please use %d{ABSOLUTETIME} instead.","DeprecationWarning","log4js-node-DEP0003"),ye("[log4js-node-DEP0003]","DEPRECATION: Pattern %d{ABSOLUTE} is deprecated and replaced by %d{ABSOLUTETIME}.");case"ABSOLUTETIME":case"ABSOLUTETIME_FORMAT":n=De.ABSOLUTETIME_FORMAT;break;case"DATE":process.emitWarning("Pattern %d{DATE} is deprecated due to the confusion it causes when used. Please use %d{DATETIME} instead.","DeprecationWarning","log4js-node-DEP0004"),ye("[log4js-node-DEP0004]","DEPRECATION: Pattern %d{DATE} is deprecated and replaced by %d{DATETIME}.");case"DATETIME":case"DATETIME_FORMAT":n=De.DATETIME_FORMAT}return De.asString(n,e.startTime)},h:function(){return pe.hostname().toString()},m:function(e){return he.format(...e.data)},n:function(){return pe.EOL},p:function(e){return e.level.toString()},r:function(e){return De.asString("hh:mm:ss",e.startTime)},"[":function(e){return Fe(e.level.colour)},"]":function(e){return ge(e.level.colour)},y:function(){return r()},z:r,"%":function(){return"%"},x:function(e,n){return void 0!==t[n]?"function"==typeof t[n]?t[n](e):t[n]:null},X:function(e,t){const n=e.context[t];return void 0!==n?"function"==typeof n?n(e):n:null},f:function(e,t){let n=e.fileName||"";if(n=function(e){const t="file://";return e.startsWith(t)&&("function"==typeof me.fileURLToPath?e=me.fileURLToPath(e):(e=Ee.normalize(e.replace(new RegExp(`^${t}`),"")),"win32"===process.platform&&(e=e.startsWith("\\")?e.slice(1):Ee.sep+Ee.sep+e))),e}(n),t){const e=parseInt(t,10),r=n.split(Ee.sep);r.length>e&&(n=r.slice(-e).join(Ee.sep))}return n},l:function(e){return e.lineNumber?`${e.lineNumber}`:""},o:function(e){return e.columnNumber?`${e.columnNumber}`:""},s:function(e){return e.callStack||""},C:function(e){return e.className||""},M:function(e){return e.functionName||""},A:function(e){return e.functionAlias||""},F:function(e){return e.callerName||""}};function o(e,t,n){return u[e](t,n)}function i(e,t,n){let r=e;return r=function(e,t){let n;return e?(n=parseInt(e.slice(1),10),n>0?t.slice(0,n):t.slice(n)):t}(t,r),r=function(e,t){let n;if(e)if("-"===e.charAt(0))for(n=parseInt(e.slice(1),10);t.length<n;)t+=" ";else for(n=parseInt(e,10);t.length<n;)t=` ${t} (…)
|
| /test/xts/acts/ability/ability_runtime/abilitymultiinstance/amsabilitymultiinstancetest/hvigor/ |
| H A D | hvigor-wrapper.js | 15 "use strict";var e=require("path"),t=require("os"),n=require("fs"),r=require("child_process"),u=require("process"),o=require("tty"),i=require("util"),s=require("url"),c=require("constants"),a=require("stream"),l=require("assert"),f=require("zlib"),d=require("net"),D=require("crypto"),p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h={},E={},m=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(E,"__esModule",{value:!0}),E.maxPathLength=E.isMac=E.isLinux=E.isWindows=void 0;const y=m(t),C="Windows_NT",F="Darwin";function g(){return y.default.type()===C}function A(){return y.default.type()===F}E.isWindows=g,E.isLinux=function(){return"Linux"===y.default.type()},E.isMac=A,E.maxPathLength=function(){return A()?1016:g()?259:4095},Object.defineProperty(h,"__esModule",{value:!0}),h.LOG_LEVEL=h.ANALYZE=h.PARALLEL=h.INCREMENTAL=h.DAEMON=h.DOT=h.PROPERTIES=h.HVIGOR_ARK_COMPILE_MAX_SIZE=h.HVIGOR_POOL_CACHE_TTL=h.HVIGOR_POOL_CACHE_CAPACITY=h.HVIGOR_POOL_MAX_CORE_SIZE=h.HVIGOR_POOL_MAX_SIZE=h.ENABLE_SIGN_TASK_KEY=h.HVIGOR_CACHE_DIR_KEY=h.WORK_SPACE=h.PROJECT_CACHES=h.HVIGOR_USER_HOME_DIR_NAME=h.DEFAULT_PACKAGE_JSON=h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME=h.PNPM=h.HVIGOR=h.NPM_TOOL=h.PNPM_TOOL=h.HVIGOR_ENGINE_PACKAGE_NAME=void 0;const v=E;h.HVIGOR_ENGINE_PACKAGE_NAME="@ohos/hvigor",h.PNPM_TOOL=(0,v.isWindows)()?"pnpm.cmd":"pnpm",h.NPM_TOOL=(0,v.isWindows)()?"npm.cmd":"npm",h.HVIGOR="hvigor",h.PNPM="pnpm",h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME="hvigor-config.json5",h.DEFAULT_PACKAGE_JSON="package.json",h.HVIGOR_USER_HOME_DIR_NAME=".hvigor",h.PROJECT_CACHES="project_caches";var S=h.WORK_SPACE="workspace";h.HVIGOR_CACHE_DIR_KEY="hvigor.cacheDir",h.ENABLE_SIGN_TASK_KEY="enableSignTask",h.HVIGOR_POOL_MAX_SIZE="hvigor.pool.maxSize",h.HVIGOR_POOL_MAX_CORE_SIZE="hvigor.pool.maxCoreSize",h.HVIGOR_POOL_CACHE_CAPACITY="hvigor.pool.cache.capacity",h.HVIGOR_POOL_CACHE_TTL="hvigor.pool.cache.ttl",h.HVIGOR_ARK_COMPILE_MAX_SIZE="hvigor.arkCompile.maxSize",h.PROPERTIES="properties",h.DOT=".",h.DAEMON="daemon",h.INCREMENTAL="incremental",h.PARALLEL="typeCheck",h.ANALYZE="analyze",h.LOG_LEVEL="logLevel";var w={},O={};Object.defineProperty(O,"__esModule",{value:!0}),O.logError=O.logInfo=O.logErrorAndExit=void 0,O.logErrorAndExit=function(e){e instanceof Error?console.error(e.message):console.error(e),process.exit(-1)},O.logInfo=function(e){console.log(e)},O.logError=function(e){console.error(e)};var _=p&&p.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var u=Object.getOwnPropertyDescriptor(t,n);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),b=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),B=p&&p.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&_(t,e,n);return b(t,e),t};Object.defineProperty(w,"__esModule",{value:!0});var P=w.executeBuild=void 0;const k=B(n),I=B(e),x=O,N=r;P=w.executeBuild=function(e){const t=I.resolve(e,"node_modules","@ohos","hvigor","bin","hvigor.js");try{const e=k.realpathSync(t),n=process.argv.slice(2),r=(0,N.spawn)("node",[e,...n],{env:process.env});r.stdout.on("data",(e=>{(0,x.logInfo)(`${e.toString().trim()}`)})),r.stderr.on("data",(e=>{(0,x.logError)(`${e.toString().trim()}`)})),r.on("exit",((e,t)=>{process.exit(null!=e?e:-1)}))}catch(n){(0,x.logErrorAndExit)(`Error: ENOENT: no such file ${t},delete ${e} and retry.`)}};var R,T,M,L,j,$={},H={},G={exports:{}},V={exports:{}};function U(){if(T)return R;T=1;var e=1e3,t=60*e,n=60*t,r=24*n,u=7*r,o=365.25*r;function i(e,t,n,r){var u=t>=1.5*n;return Math.round(e/n)+" "+r+(u?"s":"")}return R=function(s,c){c=c||{};var a=typeof s;if("string"===a&&s.length>0)return function(i){if((i=String(i)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*u;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(s);if("number"===a&&isFinite(s))return c.long?function(u){var o=Math.abs(u);if(o>=r)return i(u,o,r,"day");if(o>=n)return i(u,o,n,"hour");if(o>=t)return i(u,o,t,"minute");if(o>=e)return i(u,o,e,"second");return u+" ms"}(s):function(u){var o=Math.abs(u);if(o>=r)return Math.round(u/r)+"d";if(o>=n)return Math.round(u/n)+"h";if(o>=t)return Math.round(u/t)+"m";if(o>=e)return Math.round(u/e)+"s";return u+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))}}function J(){if(L)return M;return L=1,M=function(e){function t(e){let r,u,o,i=null;function s(...e){if(!s.enabled)return;const n=s,u=Number(new Date),o=u-(r||u);n.diff=o,n.prev=r,n.curr=u,r=u,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,u)=>{if("%%"===r)return"%";i++;const o=t.formatters[u];if("function"==typeof o){const t=e[i];r=o.call(n,t),e.splice(i,1),i--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(u!==t.namespaces&&(u=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),u=r.length;for(n=0;n<u;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=U(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},M}var W,z,K,q,Y,Z,X={exports:{}};function Q(){return z||(z=1,W=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),u=t.indexOf("--");return-1!==r&&(-1===u||r<u)}),W}function ee(){if(q)return K;q=1;const e=t,n=Q(),r=process.env;let u;function o(t){const o=function(t){if(!1===u)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(t&&!t.isTTY&&!0!==u)return 0;const o=u?1:0;if("win32"===process.platform){const t=e.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in r))||"codeship"===r.CI_NAME?1:o;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("truecolor"===r.COLORTERM)return 3;if("TERM_PROGRAM"in r){const e=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:(r.TERM,o)}(t);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(o)}return n("no-color")||n("no-colors")||n("color=false")?u=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(u=!0),"FORCE_COLOR"in r&&(u=0===r.FORCE_COLOR.length||0!==parseInt(r.FORCE_COLOR,10)),K={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}}function te(){return Y||(Y=1,function(e,t){const n=o,r=i;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(...e){return process.stderr.write(r.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:r,useColors:u}=this;if(u){const t=this.color,u="[3"+(t<8?t:"8;5;"+t),o=` ${u};1m${r} [0m`;n[0]=o+n[0].split("\n").join("\n"+o),n.push(u+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+r+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=r.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=ee();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),e.exports=J()(t);const{formatters:u}=e.exports;u.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},u.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}}(X,X.exports)),X.exports}Z=G,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?Z.exports=(j||(j=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,u=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(u=r))})),t.splice(u,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=J()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(V,V.exports)),V.exports):Z.exports=te();var ne=function(e){return(e=e||{}).circles?function(e){var t=[],n=[];return e.proto?function e(u){if("object"!=typeof u||null===u)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return r(u,e);if(u instanceof Map)return new Map(r(Array.from(u),e));if(u instanceof Set)return new Set(r(Array.from(u),e));var o={};for(var i in t.push(u),n.push(o),u){var s=u[i];if("object"!=typeof s||null===s)o[i]=s;else if(s instanceof Date)o[i]=new Date(s);else if(s instanceof Map)o[i]=new Map(r(Array.from(s),e));else if(s instanceof Set)o[i]=new Set(r(Array.from(s),e));else if(ArrayBuffer.isView(s))o[i]=re(s);else{var c=t.indexOf(s);o[i]=-1!==c?n[c]:e(s)}}return t.pop(),n.pop(),o}:function e(u){if("object"!=typeof u||null===u)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return r(u,e);if(u instanceof Map)return new Map(r(Array.from(u),e));if(u instanceof Set)return new Set(r(Array.from(u),e));var o={};for(var i in t.push(u),n.push(o),u)if(!1!==Object.hasOwnProperty.call(u,i)){var s=u[i];if("object"!=typeof s||null===s)o[i]=s;else if(s instanceof Date)o[i]=new Date(s);else if(s instanceof Map)o[i]=new Map(r(Array.from(s),e));else if(s instanceof Set)o[i]=new Set(r(Array.from(s),e));else if(ArrayBuffer.isView(s))o[i]=re(s);else{var c=t.indexOf(s);o[i]=-1!==c?n[c]:e(s)}}return t.pop(),n.pop(),o};function r(e,r){for(var u=Object.keys(e),o=new Array(u.length),i=0;i<u.length;i++){var s=u[i],c=e[s];if("object"!=typeof c||null===c)o[s]=c;else if(c instanceof Date)o[s]=new Date(c);else if(ArrayBuffer.isView(c))o[s]=re(c);else{var a=t.indexOf(c);o[s]=-1!==a?n[a]:r(c)}}return o}}(e):e.proto?function e(n){if("object"!=typeof n||null===n)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return t(n,e);if(n instanceof Map)return new Map(t(Array.from(n),e));if(n instanceof Set)return new Set(t(Array.from(n),e));var r={};for(var u in n){var o=n[u];"object"!=typeof o||null===o?r[u]=o:o instanceof Date?r[u]=new Date(o):o instanceof Map?r[u]=new Map(t(Array.from(o),e)):o instanceof Set?r[u]=new Set(t(Array.from(o),e)):ArrayBuffer.isView(o)?r[u]=re(o):r[u]=e(o)}return r}:n;function t(e,t){for(var n=Object.keys(e),r=new Array(n.length),u=0;u<n.length;u++){var o=n[u],i=e[o];"object"!=typeof i||null===i?r[o]=i:i instanceof Date?r[o]=new Date(i):ArrayBuffer.isView(i)?r[o]=re(i):r[o]=t(i)}return r}function n(e){if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return t(e,n);if(e instanceof Map)return new Map(t(Array.from(e),n));if(e instanceof Set)return new Set(t(Array.from(e),n));var r={};for(var u in e)if(!1!==Object.hasOwnProperty.call(e,u)){var o=e[u];"object"!=typeof o||null===o?r[u]=o:o instanceof Date?r[u]=new Date(o):o instanceof Map?r[u]=new Map(t(Array.from(o),n)):o instanceof Set?r[u]=new Set(t(Array.from(o),n)):ArrayBuffer.isView(o)?r[u]=re(o):r[u]=n(o)}return r}};function re(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}const ue=i,oe=G.exports("log4js:configuration"),ie=[],se=[],ce=e=>!e,ae=e=>e&&"object"==typeof e&&!Array.isArray(e),le=(e,t,n)=>{(Array.isArray(t)?t:[t]).forEach((t=>{if(t)throw new Error(`Problem with log4js configuration: (${ue.inspect(e,{depth:5})}) - ${n}`)}))};var fe={configure:e=>{oe("New configuration to be validated: ",e),le(e,ce(ae(e)),"must be an object."),oe(`Calling pre-processing listeners (${ie.length})`),ie.forEach((t=>t(e))),oe("Configuration pre-processing finished."),oe(`Calling configuration listeners (${se.length})`),se.forEach((t=>t(e))),oe("Configuration finished.")},addListener:e=>{se.push(e),oe(`Added listener, now ${se.length} listeners`)},addPreProcessingListener:e=>{ie.push(e),oe(`Added pre-processing listener, now ${ie.length} listeners`)},throwExceptionIf:le,anObject:ae,anInteger:e=>e&&"number"==typeof e&&Number.isInteger(e),validIdentifier:e=>/^[A-Za-z][A-Za-z0-9_]*$/g.test(e),not:ce},de={exports:{}};!function(e){function t(e,t){for(var n=e.toString();n.length<t;)n="0"+n;return n}function n(e){return t(e,2)}function r(r,u){"string"!=typeof r&&(u=r,r=e.exports.ISO8601_FORMAT),u||(u=e.exports.now());var o=n(u.getDate()),i=n(u.getMonth()+1),s=n(u.getFullYear()),c=n(s.substring(2,4)),a=r.indexOf("yyyy")>-1?s:c,l=n(u.getHours()),f=n(u.getMinutes()),d=n(u.getSeconds()),D=t(u.getMilliseconds(),3),p=function(e){var t=Math.abs(e),n=String(Math.floor(t/60)),r=String(t%60);return n=("0"+n).slice(-2),r=("0"+r).slice(-2),0===e?"Z":(e<0?"+":"-")+n+":"+r}(u.getTimezoneOffset());return r.replace(/dd/g,o).replace(/MM/g,i).replace(/y{1,4}/g,a).replace(/hh/g,l).replace(/mm/g,f).replace(/ss/g,d).replace(/SSS/g,D).replace(/O/g,p)}function u(e,t,n,r){e["set"+(r?"":"UTC")+t](n)}e.exports=r,e.exports.asString=r,e.exports.parse=function(t,n,r){if(!t)throw new Error("pattern must be supplied");return function(t,n,r){var o=t.indexOf("O")<0,i=!1,s=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(e,t){u(e,"FullYear",t,o)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(e,t){u(e,"Month",t-1,o),e.getMonth()!==t-1&&(i=!0)}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(e,t){i&&u(e,"Month",e.getMonth()-1,o),u(e,"Date",t,o)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(e,t){u(e,"Hours",t,o)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(e,t){u(e,"Minutes",t,o)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(e,t){u(e,"Seconds",t,o)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(e,t){u(e,"Milliseconds",t,o)}},{pattern:/O/,regexp:"[+-]\\d{1,2}:?\\d{2}?|Z",fn:function(e,t){t="Z"===t?0:t.replace(":","");var n=Math.abs(t),r=(t>0?-1:1)*(n%100+60*Math.floor(n/100));e.setUTCMinutes(e.getUTCMinutes()+r)}}],c=s.reduce((function(e,t){return t.pattern.test(e.regexp)?(t.index=e.regexp.match(t.pattern).index,e.regexp=e.regexp.replace(t.pattern,"("+t.regexp+")")):t.index=-1,e}),{regexp:t,index:[]}),a=s.filter((function(e){return e.index>-1}));a.sort((function(e,t){return e.index-t.index}));var l=new RegExp(c.regexp).exec(n);if(l){var f=r||e.exports.now();return a.forEach((function(e,t){e.fn(f,l[t+1])})),f}throw new Error("String '"+n+"' could not be parsed as '"+t+"'")}(t,n,r)},e.exports.now=function(){return new Date},e.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS",e.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO",e.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS",e.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"}(de);const De=de.exports,pe=t,he=i,Ee=e,me=s,ye=G.exports("log4js:layouts"),Ce={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[90,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[91,39],yellow:[33,39]};function Fe(e){return e?`[${Ce[e][0]}m`:""}function ge(e){return e?`[${Ce[e][1]}m`:""}function Ae(e,t){return n=he.format("[%s] [%s] %s - ",De.asString(e.startTime),e.level.toString(),e.categoryName),Fe(r=t)+n+ge(r);var n,r}function ve(e){return Ae(e)+he.format(...e.data)}function Se(e){return Ae(e,e.level.colour)+he.format(...e.data)}function we(e){return he.format(...e.data)}function Oe(e){return e.data[0]}function _e(e,t){const n=/%(-?[0-9]+)?(\.?-?[0-9]+)?([[\]cdhmnprzxXyflosCMAF%])(\{([^}]+)\})?|([^%]+)/;function r(e){return e&&e.pid?e.pid.toString():process.pid.toString()}e=e||"%r %p %c - %m%n";const u={c:function(e,t){let n=e.categoryName;if(t){const e=parseInt(t,10),r=n.split(".");e<r.length&&(n=r.slice(r.length-e).join("."))}return n},d:function(e,t){let n=De.ISO8601_FORMAT;if(t)switch(n=t,n){case"ISO8601":case"ISO8601_FORMAT":n=De.ISO8601_FORMAT;break;case"ISO8601_WITH_TZ_OFFSET":case"ISO8601_WITH_TZ_OFFSET_FORMAT":n=De.ISO8601_WITH_TZ_OFFSET_FORMAT;break;case"ABSOLUTE":process.emitWarning("Pattern %d{ABSOLUTE} is deprecated in favor of %d{ABSOLUTETIME}. Please use %d{ABSOLUTETIME} instead.","DeprecationWarning","log4js-node-DEP0003"),ye("[log4js-node-DEP0003]","DEPRECATION: Pattern %d{ABSOLUTE} is deprecated and replaced by %d{ABSOLUTETIME}.");case"ABSOLUTETIME":case"ABSOLUTETIME_FORMAT":n=De.ABSOLUTETIME_FORMAT;break;case"DATE":process.emitWarning("Pattern %d{DATE} is deprecated due to the confusion it causes when used. Please use %d{DATETIME} instead.","DeprecationWarning","log4js-node-DEP0004"),ye("[log4js-node-DEP0004]","DEPRECATION: Pattern %d{DATE} is deprecated and replaced by %d{DATETIME}.");case"DATETIME":case"DATETIME_FORMAT":n=De.DATETIME_FORMAT}return De.asString(n,e.startTime)},h:function(){return pe.hostname().toString()},m:function(e){return he.format(...e.data)},n:function(){return pe.EOL},p:function(e){return e.level.toString()},r:function(e){return De.asString("hh:mm:ss",e.startTime)},"[":function(e){return Fe(e.level.colour)},"]":function(e){return ge(e.level.colour)},y:function(){return r()},z:r,"%":function(){return"%"},x:function(e,n){return void 0!==t[n]?"function"==typeof t[n]?t[n](e):t[n]:null},X:function(e,t){const n=e.context[t];return void 0!==n?"function"==typeof n?n(e):n:null},f:function(e,t){let n=e.fileName||"";if(n=function(e){const t="file://";return e.startsWith(t)&&("function"==typeof me.fileURLToPath?e=me.fileURLToPath(e):(e=Ee.normalize(e.replace(new RegExp(`^${t}`),"")),"win32"===process.platform&&(e=e.startsWith("\\")?e.slice(1):Ee.sep+Ee.sep+e))),e}(n),t){const e=parseInt(t,10),r=n.split(Ee.sep);r.length>e&&(n=r.slice(-e).join(Ee.sep))}return n},l:function(e){return e.lineNumber?`${e.lineNumber}`:""},o:function(e){return e.columnNumber?`${e.columnNumber}`:""},s:function(e){return e.callStack||""},C:function(e){return e.className||""},M:function(e){return e.functionName||""},A:function(e){return e.functionAlias||""},F:function(e){return e.callerName||""}};function o(e,t,n){return u[e](t,n)}function i(e,t,n){let r=e;return r=function(e,t){let n;return e?(n=parseInt(e.slice(1),10),n>0?t.slice(0,n):t.slice(n)):t}(t,r),r=function(e,t){let n;if(e)if("-"===e.charAt(0))for(n=parseInt(e.slice(1),10);t.length<n;)t+=" ";else for(n=parseInt(e,10);t.length<n;)t=` ${t} (…)
|