diff --git a/lerna.json b/lerna.json index 341623b669ff964..44f233a7f43cc6b 100644 --- a/lerna.json +++ b/lerna.json @@ -17,5 +17,5 @@ "registry": "https://registry.npmjs.org/" } }, - "version": "9.5.6-canary.9" + "version": "9.5.6-canary.10" } diff --git a/packages/create-next-app/package.json b/packages/create-next-app/package.json index 4927eaced467326..4c44b4eb3c9bc5a 100644 --- a/packages/create-next-app/package.json +++ b/packages/create-next-app/package.json @@ -1,6 +1,6 @@ { "name": "create-next-app", - "version": "9.5.6-canary.9", + "version": "9.5.6-canary.10", "keywords": [ "react", "next", diff --git a/packages/eslint-plugin-next/package.json b/packages/eslint-plugin-next/package.json index 7f8c04845574828..f9ef4790b8c098a 100644 --- a/packages/eslint-plugin-next/package.json +++ b/packages/eslint-plugin-next/package.json @@ -1,6 +1,6 @@ { "name": "@next/eslint-plugin-next", - "version": "9.5.6-canary.9", + "version": "9.5.6-canary.10", "description": "ESLint plugin for NextJS.", "main": "lib/index.js", "license": "MIT", diff --git a/packages/next-bundle-analyzer/package.json b/packages/next-bundle-analyzer/package.json index a5d217658fba96e..df70447fd39c2e0 100644 --- a/packages/next-bundle-analyzer/package.json +++ b/packages/next-bundle-analyzer/package.json @@ -1,6 +1,6 @@ { "name": "@next/bundle-analyzer", - "version": "9.5.6-canary.9", + "version": "9.5.6-canary.10", "main": "index.js", "license": "MIT", "repository": { diff --git a/packages/next-codemod/package.json b/packages/next-codemod/package.json index cebbb4d3d98ff55..1d8d6557a100116 100644 --- a/packages/next-codemod/package.json +++ b/packages/next-codemod/package.json @@ -1,6 +1,6 @@ { "name": "@next/codemod", - "version": "9.5.6-canary.9", + "version": "9.5.6-canary.10", "license": "MIT", "dependencies": { "chalk": "4.1.0", diff --git a/packages/next-env/package.json b/packages/next-env/package.json index 20c8cae5688dae8..5bf5816ad676ea2 100644 --- a/packages/next-env/package.json +++ b/packages/next-env/package.json @@ -1,6 +1,6 @@ { "name": "@next/env", - "version": "9.5.6-canary.9", + "version": "9.5.6-canary.10", "keywords": [ "react", "next", diff --git a/packages/next-mdx/package.json b/packages/next-mdx/package.json index c015c938bfcf1ef..097e1d3c1b4f00a 100644 --- a/packages/next-mdx/package.json +++ b/packages/next-mdx/package.json @@ -1,6 +1,6 @@ { "name": "@next/mdx", - "version": "9.5.6-canary.9", + "version": "9.5.6-canary.10", "main": "index.js", "license": "MIT", "repository": { diff --git a/packages/next-plugin-google-analytics/package.json b/packages/next-plugin-google-analytics/package.json index 462718188949b2f..9874f5aba65f3c2 100644 --- a/packages/next-plugin-google-analytics/package.json +++ b/packages/next-plugin-google-analytics/package.json @@ -1,6 +1,6 @@ { "name": "@next/plugin-google-analytics", - "version": "9.5.6-canary.9", + "version": "9.5.6-canary.10", "repository": { "url": "vercel/next.js", "directory": "packages/next-plugin-google-analytics" diff --git a/packages/next-plugin-sentry/package.json b/packages/next-plugin-sentry/package.json index 8cd297cc8c69e60..57be831ad63879e 100644 --- a/packages/next-plugin-sentry/package.json +++ b/packages/next-plugin-sentry/package.json @@ -1,6 +1,6 @@ { "name": "@next/plugin-sentry", - "version": "9.5.6-canary.9", + "version": "9.5.6-canary.10", "repository": { "url": "vercel/next.js", "directory": "packages/next-plugin-sentry" diff --git a/packages/next-plugin-storybook/package.json b/packages/next-plugin-storybook/package.json index 5dce747a5cf2733..5e709d97d0da552 100644 --- a/packages/next-plugin-storybook/package.json +++ b/packages/next-plugin-storybook/package.json @@ -1,6 +1,6 @@ { "name": "@next/plugin-storybook", - "version": "9.5.6-canary.9", + "version": "9.5.6-canary.10", "repository": { "url": "vercel/next.js", "directory": "packages/next-plugin-storybook" diff --git a/packages/next-polyfill-module/package.json b/packages/next-polyfill-module/package.json index 58661190a575b70..e853fbde7a50e92 100644 --- a/packages/next-polyfill-module/package.json +++ b/packages/next-polyfill-module/package.json @@ -1,6 +1,6 @@ { "name": "@next/polyfill-module", - "version": "9.5.6-canary.9", + "version": "9.5.6-canary.10", "description": "A standard library polyfill for ES Modules supporting browsers (Edge 16+, Firefox 60+, Chrome 61+, Safari 10.1+)", "main": "dist/polyfill-module.js", "license": "MIT", diff --git a/packages/next-polyfill-nomodule/package.json b/packages/next-polyfill-nomodule/package.json index 1bbe465ab224bd4..bdae87df2aefb21 100644 --- a/packages/next-polyfill-nomodule/package.json +++ b/packages/next-polyfill-nomodule/package.json @@ -1,6 +1,6 @@ { "name": "@next/polyfill-nomodule", - "version": "9.5.6-canary.9", + "version": "9.5.6-canary.10", "description": "A polyfill for non-dead, nomodule browsers.", "main": "dist/polyfill-nomodule.js", "license": "MIT", diff --git a/packages/next/compiled/postcss-loader/cjs.js b/packages/next/compiled/postcss-loader/cjs.js index 53fffab01614359..afc25930cb02015 100644 --- a/packages/next/compiled/postcss-loader/cjs.js +++ b/packages/next/compiled/postcss-loader/cjs.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var u={};function __webpack_require__(t){if(u[t]){return u[t].exports}var n=u[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(986)}t(__webpack_require__);return startup()}({0:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.codeFrameColumns=codeFrameColumns;t.default=_default;var n=_interopRequireWildcard(u(592));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var u={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var s=n?Object.getOwnPropertyDescriptor(e,r):null;if(s&&(s.get||s.set)){Object.defineProperty(u,r,s)}else{u[r]=e[r]}}}u.default=e;if(t){t.set(e,u)}return u}let r=false;function getDefs(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}const s=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(e,t,u){const n=Object.assign({column:0,line:-1},e.start);const r=Object.assign({},n,{},e.end);const{linesAbove:s=2,linesBelow:i=3}=u||{};const o=n.line;const a=n.column;const c=r.line;const f=r.column;let l=Math.max(o-(s+1),0);let h=Math.min(t.length,c+i);if(o===-1){l=0}if(c===-1){h=t.length}const D=c-o;const d={};if(D){for(let e=0;e<=D;e++){const u=e+o;if(!a){d[u]=true}else if(e===0){const e=t[u-1].length;d[u]=[a,e-a+1]}else if(e===D){d[u]=[0,f]}else{const n=t[u-e].length;d[u]=[0,n]}}}else{if(a===f){if(a){d[o]=[a,0]}else{d[o]=true}}else{d[o]=[a,f-a]}}return{start:l,end:h,markerLines:d}}function codeFrameColumns(e,t,u={}){const r=(u.highlightCode||u.forceColor)&&(0,n.shouldHighlight)(u);const i=(0,n.getChalk)(u);const o=getDefs(i);const a=(e,t)=>{return r?e(t):t};const c=e.split(s);const{start:f,end:l,markerLines:h}=getMarkerLines(t,c,u);const D=t.start&&typeof t.start.column==="number";const d=String(l).length;const p=r?(0,n.default)(e,u):e;let A=p.split(s).slice(f,l).map((e,t)=>{const n=f+1+t;const r=` ${n}`.slice(-d);const s=` ${r} | `;const i=h[n];const c=!h[n+1];if(i){let t="";if(Array.isArray(i)){const n=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," ");const r=i[1]||1;t=["\n ",a(o.gutter,s.replace(/\d/g," ")),n,a(o.marker,"^").repeat(r)].join("");if(c&&u.message){t+=" "+a(o.message,u.message)}}return[a(o.marker,">"),a(o.gutter,s),e,t].join("")}else{return` ${a(o.gutter,s)}${e}`}}).join("\n");if(u.message&&!D){A=`${" ".repeat(d+1)}${u.message}\n${A}`}if(r){return i.reset(A)}else{return A}}function _default(e,t,u,n={}){if(!r){r=true;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(e,"DeprecationWarning")}else{const t=new Error(e);t.name="DeprecationWarning";console.warn(new Error(e))}}u=Math.max(u,0);const s={start:{column:u,line:t}};return codeFrameColumns(e,s,n)}},7:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(233));var r=_interopRequireDefault(u(798));var s=_interopRequireDefault(u(880));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function cloneNode(e,t){var u=new e.constructor;for(var n in e){if(!e.hasOwnProperty(n))continue;var r=e[n];var s=typeof r;if(n==="parent"&&s==="object"){if(t)u[n]=t}else if(n==="source"){u[n]=r}else if(r instanceof Array){u[n]=r.map(function(e){return cloneNode(e,u)})}else{if(s==="object"&&r!==null)r=cloneNode(r);u[n]=r}}return u}var i=function(){function Node(e){if(e===void 0){e={}}this.raws={};if(process.env.NODE_ENV!=="production"){if(typeof e!=="object"&&typeof e!=="undefined"){throw new Error("PostCSS nodes constructor accepts object, not "+JSON.stringify(e))}}for(var t in e){this[t]=e[t]}}var e=Node.prototype;e.error=function error(e,t){if(t===void 0){t={}}if(this.source){var u=this.positionBy(t);return this.source.input.error(e,u.line,u.column,t)}return new n.default(e)};e.warn=function warn(e,t,u){var n={node:this};for(var r in u){n[r]=u[r]}return e.warn(t,n)};e.remove=function remove(){if(this.parent){this.parent.removeChild(this)}this.parent=undefined;return this};e.toString=function toString(e){if(e===void 0){e=s.default}if(e.stringify)e=e.stringify;var t="";e(this,function(e){t+=e});return t};e.clone=function clone(e){if(e===void 0){e={}}var t=cloneNode(this);for(var u in e){t[u]=e[u]}return t};e.cloneBefore=function cloneBefore(e){if(e===void 0){e={}}var t=this.clone(e);this.parent.insertBefore(this,t);return t};e.cloneAfter=function cloneAfter(e){if(e===void 0){e={}}var t=this.clone(e);this.parent.insertAfter(this,t);return t};e.replaceWith=function replaceWith(){if(this.parent){for(var e=arguments.length,t=new Array(e),u=0;u{t=t||process.argv;const u=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(u+e);const r=t.indexOf("--");return n!==-1&&(r===-1?true:n=0&&e.splice instanceof Function}},32:function(e,t,u){"use strict";const n=u(24);const r=u(900);const{default:s}=u(254);const{codeFrameColumns:i}=u(0);const o=n("JSONError",{fileName:n.append("in %s"),codeFrame:n.append("\n\n%s\n")});e.exports=((e,t,u)=>{if(typeof t==="string"){u=t;t=null}try{try{return JSON.parse(e,t)}catch(u){r(e,t);throw u}}catch(t){t.message=t.message.replace(/\n/g,"");const n=t.message.match(/in JSON at position (\d+) while parsing near/);const r=new o(t);if(u){r.fileName=u}if(n&&n.length>0){const t=new s(e);const u=Number(n[1]);const o=t.locationForIndex(u);const a=i(e,{start:{line:o.line+1,column:o.column+1}},{highlightCode:true});r.codeFrame=a}throw r}})},38:function(e){"use strict";const t=()=>{const e=Error.prepareStackTrace;Error.prepareStackTrace=((e,t)=>t);const t=(new Error).stack.slice(1);Error.prepareStackTrace=e;return t};e.exports=t;e.exports.default=t},40:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExplorerSync=void 0;var n=_interopRequireDefault(u(277));var r=u(594);var s=u(780);var i=u(270);var o=u(898);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class ExplorerSync extends r.ExplorerBase{constructor(e){super(e)}searchSync(e=process.cwd()){const t=(0,o.getDirectorySync)(e);const u=this.searchFromDirectorySync(t);return u}searchFromDirectorySync(e){const t=n.default.resolve(process.cwd(),e);const u=()=>{const e=this.searchDirectorySync(t);const u=this.nextDirectoryToSearch(t,e);if(u){return this.searchFromDirectorySync(u)}const n=this.config.transform(e);return n};if(this.searchCache){return(0,i.cacheWrapperSync)(this.searchCache,t,u)}return u()}searchDirectorySync(e){for(const t of this.config.searchPlaces){const u=this.loadSearchPlaceSync(e,t);if(this.shouldSearchStopWithResult(u)===true){return u}}return null}loadSearchPlaceSync(e,t){const u=n.default.join(e,t);const r=(0,s.readFileSync)(u);const i=this.createCosmiconfigResultSync(u,r);return i}loadFileContentSync(e,t){if(t===null){return null}if(t.trim()===""){return undefined}const u=this.getLoaderEntryForFile(e);const n=u(e,t);return n}createCosmiconfigResultSync(e,t){const u=this.loadFileContentSync(e,t);const n=this.loadedContentToCosmiconfigResult(e,u);return n}loadSync(e){this.validateFilePath(e);const t=n.default.resolve(process.cwd(),e);const u=()=>{const e=(0,s.readFileSync)(t,{throwNotFound:true});const u=this.createCosmiconfigResultSync(t,e);const n=this.config.transform(u);return n};if(this.loadCache){return(0,i.cacheWrapperSync)(this.loadCache,t,u)}return u()}}t.ExplorerSync=ExplorerSync},52:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(241));var r=_interopRequireDefault(u(277));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var s=function(){function MapGenerator(e,t,u){this.stringify=e;this.mapOpts=u.map||{};this.root=t;this.opts=u}var e=MapGenerator.prototype;e.isMap=function isMap(){if(typeof this.opts.map!=="undefined"){return!!this.opts.map}return this.previous().length>0};e.previous=function previous(){var e=this;if(!this.previousMaps){this.previousMaps=[];this.root.walk(function(t){if(t.source&&t.source.input.map){var u=t.source.input.map;if(e.previousMaps.indexOf(u)===-1){e.previousMaps.push(u)}}})}return this.previousMaps};e.isInline=function isInline(){if(typeof this.mapOpts.inline!=="undefined"){return this.mapOpts.inline}var e=this.mapOpts.annotation;if(typeof e!=="undefined"&&e!==true){return false}if(this.previous().length){return this.previous().some(function(e){return e.inline})}return true};e.isSourcesContent=function isSourcesContent(){if(typeof this.mapOpts.sourcesContent!=="undefined"){return this.mapOpts.sourcesContent}if(this.previous().length){return this.previous().some(function(e){return e.withContent()})}return true};e.clearAnnotation=function clearAnnotation(){if(this.mapOpts.annotation===false)return;var e;for(var t=this.root.nodes.length-1;t>=0;t--){e=this.root.nodes[t];if(e.type!=="comment")continue;if(e.text.indexOf("# sourceMappingURL=")===0){this.root.removeChild(t)}}};e.setSourcesContent=function setSourcesContent(){var e=this;var t={};this.root.walk(function(u){if(u.source){var n=u.source.input.from;if(n&&!t[n]){t[n]=true;var r=e.relative(n);e.map.setSourceContent(r,u.source.input.css)}}})};e.applyPrevMaps=function applyPrevMaps(){for(var e=this.previous(),t=Array.isArray(e),u=0,e=t?e:e[Symbol.iterator]();;){var s;if(t){if(u>=e.length)break;s=e[u++]}else{u=e.next();if(u.done)break;s=u.value}var i=s;var o=this.relative(i.file);var a=i.root||r.default.dirname(i.file);var c=void 0;if(this.mapOpts.sourcesContent===false){c=new n.default.SourceMapConsumer(i.text);if(c.sourcesContent){c.sourcesContent=c.sourcesContent.map(function(){return null})}}else{c=i.consumer()}this.map.applySourceMap(c,o,this.relative(a))}};e.isAnnotation=function isAnnotation(){if(this.isInline()){return true}if(typeof this.mapOpts.annotation!=="undefined"){return this.mapOpts.annotation}if(this.previous().length){return this.previous().some(function(e){return e.annotation})}return true};e.toBase64=function toBase64(e){if(Buffer){return Buffer.from(e).toString("base64")}return window.btoa(unescape(encodeURIComponent(e)))};e.addAnnotation=function addAnnotation(){var e;if(this.isInline()){e="data:application/json;base64,"+this.toBase64(this.map.toString())}else if(typeof this.mapOpts.annotation==="string"){e=this.mapOpts.annotation}else{e=this.outputFile()+".map"}var t="\n";if(this.css.indexOf("\r\n")!==-1)t="\r\n";this.css+=t+"/*# sourceMappingURL="+e+" */"};e.outputFile=function outputFile(){if(this.opts.to){return this.relative(this.opts.to)}if(this.opts.from){return this.relative(this.opts.from)}return"to.css"};e.generateMap=function generateMap(){this.generateString();if(this.isSourcesContent())this.setSourcesContent();if(this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline()){return[this.css]}return[this.css,this.map]};e.relative=function relative(e){if(e.indexOf("<")===0)return e;if(/^\w+:\/\//.test(e))return e;var t=this.opts.to?r.default.dirname(this.opts.to):".";if(typeof this.mapOpts.annotation==="string"){t=r.default.dirname(r.default.resolve(t,this.mapOpts.annotation))}e=r.default.relative(t,e);if(r.default.sep==="\\"){return e.replace(/\\/g,"/")}return e};e.sourcePath=function sourcePath(e){if(this.mapOpts.from){return this.mapOpts.from}return this.relative(e.source.input.from)};e.generateString=function generateString(){var e=this;this.css="";this.map=new n.default.SourceMapGenerator({file:this.outputFile()});var t=1;var u=1;var r,s;this.stringify(this.root,function(n,i,o){e.css+=n;if(i&&o!=="end"){if(i.source&&i.source.start){e.map.addMapping({source:e.sourcePath(i),generated:{line:t,column:u-1},original:{line:i.source.start.line,column:i.source.start.column-1}})}else{e.map.addMapping({source:"",original:{line:1,column:0},generated:{line:t,column:u-1}})}}r=n.match(/\n/g);if(r){t+=r.length;s=n.lastIndexOf("\n");u=n.length-s}else{u+=n.length}if(i&&o!=="start"){var a=i.parent||{raws:{}};if(i.type!=="decl"||i!==a.last||a.raws.semicolon){if(i.source&&i.source.end){e.map.addMapping({source:e.sourcePath(i),generated:{line:t,column:u-2},original:{line:i.source.end.line,column:i.source.end.column-1}})}else{e.map.addMapping({source:"",original:{line:1,column:0},generated:{line:t,column:u-1}})}}}})};e.generate=function generate(){this.clearAnnotation();if(this.isMap()){return this.generateMap()}var e="";this.stringify(this.root,function(t){e+=t});return[e]};return MapGenerator}();var i=s;t.default=i;e.exports=t.default},54:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(277));var r=_interopRequireDefault(u(233));var s=_interopRequireDefault(u(560));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var u=0;u"}if(this.map)this.map.file=this.from}var e=Input.prototype;e.error=function error(e,t,u,n){if(n===void 0){n={}}var s;var i=this.origin(t,u);if(i){s=new r.default(e,i.line,i.column,i.source,i.file,n.plugin)}else{s=new r.default(e,t,u,this.css,this.file,n.plugin)}s.input={line:t,column:u,source:this.css};if(this.file)s.input.file=this.file;return s};e.origin=function origin(e,t){if(!this.map)return false;var u=this.map.consumer();var n=u.originalPositionFor({line:e,column:t});if(!n.source)return false;var r={file:this.mapResolve(n.source),line:n.line,column:n.column};var s=u.sourceContentFor(n.source);if(s)r.source=s;return r};e.mapResolve=function mapResolve(e){if(/^\w+:\/\//.test(e)){return e}return n.default.resolve(this.map.consumer().sourceRoot||".",e)};_createClass(Input,[{key:"from",get:function get(){return this.file||this.id}}]);return Input}();var a=o;t.default=a;e.exports=t.default},63:function(e,t,u){"use strict";var n=u(513);class BlankLine extends n.Node{constructor(){super(n.Type.BLANK_LINE)}get includesTrailingLines(){return true}parse(e,t){this.context=e;this.range=new n.Range(t,t+1);return t+1}}class CollectionItem extends n.Node{constructor(e,t){super(e,t);this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:u,src:r}=e;let{atLineStart:s,lineStart:i}=e;if(!s&&this.type===n.Type.SEQ_ITEM)this.error=new n.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line");const o=s?t-i:e.indent;let a=n.Node.endOfWhiteSpace(r,t+1);let c=r[a];const f=c==="#";const l=[];let h=null;while(c==="\n"||c==="#"){if(c==="#"){const e=n.Node.endOfLine(r,a+1);l.push(new n.Range(a,e));a=e}else{s=true;i=a+1;const e=n.Node.endOfWhiteSpace(r,i);if(r[e]==="\n"&&l.length===0){h=new BlankLine;i=h.parse({src:r},i)}a=n.Node.endOfIndent(r,i)}c=r[a]}if(n.Node.nextNodeIsIndented(c,a-(i+o),this.type!==n.Type.SEQ_ITEM)){this.node=u({atLineStart:s,inCollection:false,indent:o,lineStart:i,parent:this},a)}else if(c&&i>t+1){a=i-1}if(this.node){if(h){const t=e.parent.items||e.parent.contents;if(t)t.push(h)}if(l.length)Array.prototype.push.apply(this.props,l);a=this.node.range.end}else{if(f){const e=l[0];this.props.push(e);a=e.end}else{a=n.Node.endOfLine(r,t+1)}}const D=this.node?this.node.valueRange.end:a;this.valueRange=new n.Range(t,D);return a}setOrigRanges(e,t){t=super.setOrigRanges(e,t);return this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:u,value:r}=this;if(r!=null)return r;const s=t?e.slice(u.start,t.range.start)+String(t):e.slice(u.start,u.end);return n.Node.addStringTerminator(e,u.end,s)}}class Comment extends n.Node{constructor(){super(n.Type.COMMENT)}parse(e,t){this.context=e;const u=this.parseComment(t);this.range=new n.Range(t,u);return u}}function grabCollectionEndComments(e){let t=e;while(t instanceof CollectionItem)t=t.node;if(!(t instanceof Collection))return null;const u=t.items.length;let r=-1;for(let e=u-1;e>=0;--e){const u=t.items[e];if(u.type===n.Type.COMMENT){const{indent:t,lineStart:n}=u.context;if(t>0&&u.range.start>=n+t)break;r=e}else if(u.type===n.Type.BLANK_LINE)r=e;else break}if(r===-1)return null;const s=t.items.splice(r,u-r);const i=s[0].range.start;while(true){t.range.end=i;if(t.valueRange&&t.valueRange.end>i)t.valueRange.end=i;if(t===e)break;t=t.context.parent}return s}class Collection extends n.Node{static nextContentHasIndent(e,t,u){const r=n.Node.endOfLine(e,t)+1;t=n.Node.endOfWhiteSpace(e,r);const s=e[t];if(!s)return false;if(t>=r+u)return true;if(s!=="#"&&s!=="\n")return false;return Collection.nextContentHasIndent(e,t,u)}constructor(e){super(e.type===n.Type.SEQ_ITEM?n.Type.SEQ:n.Type.MAP);for(let t=e.props.length-1;t>=0;--t){if(e.props[t].start0}parse(e,t){this.context=e;const{parseNode:u,src:r}=e;let s=n.Node.startOfLine(r,t);const i=this.items[0];i.context.parent=this;this.valueRange=n.Range.copy(i.valueRange);const o=i.range.start-i.context.lineStart;let a=t;a=n.Node.normalizeOffset(r,a);let c=r[a];let f=n.Node.endOfWhiteSpace(r,s)===a;let l=false;while(c){while(c==="\n"||c==="#"){if(f&&c==="\n"&&!l){const e=new BlankLine;a=e.parse({src:r},a);this.valueRange.end=a;if(a>=r.length){c=null;break}this.items.push(e);a-=1}else if(c==="#"){if(a=r.length){c=null;break}}s=a+1;a=n.Node.endOfIndent(r,s);if(n.Node.atBlank(r,a)){const e=n.Node.endOfWhiteSpace(r,a);const t=r[e];if(!t||t==="\n"||t==="#"){a=e}}c=r[a];f=true}if(!c){break}if(a!==s+o&&(f||c!==":")){if(at)a=s;break}else if(!this.error){const e="All collection items must start at the same column";this.error=new n.YAMLSyntaxError(this,e)}}if(i.type===n.Type.SEQ_ITEM){if(c!=="-"){if(s>t)a=s;break}}else if(c==="-"&&!this.error){const e=r[a+1];if(!e||e==="\n"||e==="\t"||e===" "){const e="A collection cannot be both a mapping and a sequence";this.error=new n.YAMLSyntaxError(this,e)}}const e=u({atLineStart:f,inCollection:true,indent:o,lineStart:s,parent:this},a);if(!e)return a;this.items.push(e);this.valueRange.end=e.valueRange.end;a=n.Node.normalizeOffset(r,e.range.end);c=r[a];f=false;l=e.includesTrailingLines;if(c){let e=a-1;let t=r[e];while(t===" "||t==="\t")t=r[--e];if(t==="\n"){s=e+1;f=true}}const h=grabCollectionEndComments(e);if(h)Array.prototype.push.apply(this.items,h)}return a}setOrigRanges(e,t){t=super.setOrigRanges(e,t);this.items.forEach(u=>{t=u.setOrigRanges(e,t)});return t}toString(){const{context:{src:e},items:t,range:u,value:r}=this;if(r!=null)return r;let s=e.slice(u.start,t[0].range.start)+String(t[0]);for(let e=1;e0){this.contents=this.directives;this.directives=[]}return s}}if(t[s]){this.directivesEndMarker=new n.Range(s,s+3);return s+3}if(r){this.error=new n.YAMLSemanticError(this,"Missing directives-end indicator line")}else if(this.directives.length>0){this.contents=this.directives;this.directives=[]}return s}parseContents(e){const{parseNode:t,src:u}=this.context;if(!this.contents)this.contents=[];let r=e;while(u[r-1]==="-")r-=1;let s=n.Node.endOfWhiteSpace(u,e);let i=r===e;this.valueRange=new n.Range(s);while(!n.Node.atDocumentBoundary(u,s,n.Char.DOCUMENT_END)){switch(u[s]){case"\n":if(i){const e=new BlankLine;s=e.parse({src:u},s);if(s{t=u.setOrigRanges(e,t)});if(this.directivesEndMarker)t=this.directivesEndMarker.setOrigRange(e,t);this.contents.forEach(u=>{t=u.setOrigRanges(e,t)});if(this.documentEndMarker)t=this.documentEndMarker.setOrigRange(e,t);return t}toString(){const{contents:e,directives:t,value:u}=this;if(u!=null)return u;let r=t.join("");if(e.length>0){if(t.length>0||e[0].type===n.Type.COMMENT)r+="---\n";r+=e.join("")}if(r[r.length-1]!=="\n")r+="\n";return r}}class Alias extends n.Node{parse(e,t){this.context=e;const{src:u}=e;let r=n.Node.endOfIdentifier(u,t+1);this.valueRange=new n.Range(t+1,r);r=n.Node.endOfWhiteSpace(u,r);r=this.parseComment(r);return r}}const r={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};class BlockValue extends n.Node{constructor(e,t){super(e,t);this.blockIndent=null;this.chomping=r.CLIP;this.header=null}get includesTrailingLines(){return this.chomping===r.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:u,src:s}=this.context;if(this.valueRange.isEmpty())return"";let i=null;let o=s[t-1];while(o==="\n"||o==="\t"||o===" "){t-=1;if(t<=e){if(this.chomping===r.KEEP)break;else return""}if(o==="\n")i=t;o=s[t-1]}let a=t+1;if(i){if(this.chomping===r.KEEP){a=i;t=this.valueRange.end}else{t=i}}const c=u+this.blockIndent;const f=this.type===n.Type.BLOCK_FOLDED;let l=true;let h="";let D="";let d=false;for(let u=e;ua){a=c}}else if(r&&r!=="\n"&&c{if(u instanceof n.Node){t=u.setOrigRanges(e,t)}else if(e.length===0){u.origOffset=u.offset}else{let n=t;while(nu.offset)break;else++n}u.origOffset=u.offset+n;t=n}});return t}toString(){const{context:{src:e},items:t,range:u,value:r}=this;if(r!=null)return r;const s=t.filter(e=>e instanceof n.Node);let i="";let o=u.start;s.forEach(t=>{const u=e.slice(o,t.range.start);o=t.range.end;i+=u+String(t);if(i[i.length-1]==="\n"&&e[o-1]!=="\n"&&e[o]==="\n"){o+=1}});i+=e.slice(o,u.end);return n.Node.addStringTerminator(e,u.end,i)}}class QuoteDouble extends n.Node{static endOfQuote(e,t){let u=e[t];while(u&&u!=='"'){t+=u==="\\"?2:1;u=e[t]}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:u}=this.valueRange;const{indent:r,src:s}=this.context;if(s[u-1]!=='"')e.push(new n.YAMLSyntaxError(this,'Missing closing "quote'));let i="";for(let o=t+1;oe?s.slice(e,o+1):t}else{i+=t}}return e.length>0?{errors:e,str:i}:i}parseCharCode(e,t,u){const{src:r}=this.context;const s=r.substr(e,t);const i=s.length===t&&/^[0-9a-fA-F]+$/.test(s);const o=i?parseInt(s,16):NaN;if(isNaN(o)){u.push(new n.YAMLSyntaxError(this,`Invalid escape sequence ${r.substr(e-2,t+2)}`));return r.substr(e-2,t+2)}return String.fromCodePoint(o)}parse(e,t){this.context=e;const{src:u}=e;let r=QuoteDouble.endOfQuote(u,t+1);this.valueRange=new n.Range(t,r);r=n.Node.endOfWhiteSpace(u,r);r=this.parseComment(r);return r}}class QuoteSingle extends n.Node{static endOfQuote(e,t){let u=e[t];while(u){if(u==="'"){if(e[t+1]!=="'")break;u=e[t+=2]}else{u=e[t+=1]}}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:u}=this.valueRange;const{indent:r,src:s}=this.context;if(s[u-1]!=="'")e.push(new n.YAMLSyntaxError(this,"Missing closing 'quote"));let i="";for(let o=t+1;oe?s.slice(e,o+1):t}else{i+=t}}return e.length>0?{errors:e,str:i}:i}parse(e,t){this.context=e;const{src:u}=e;let r=QuoteSingle.endOfQuote(u,t+1);this.valueRange=new n.Range(t,r);r=n.Node.endOfWhiteSpace(u,r);r=this.parseComment(r);return r}}function createNewNode(e,t){switch(e){case n.Type.ALIAS:return new Alias(e,t);case n.Type.BLOCK_FOLDED:case n.Type.BLOCK_LITERAL:return new BlockValue(e,t);case n.Type.FLOW_MAP:case n.Type.FLOW_SEQ:return new FlowCollection(e,t);case n.Type.MAP_KEY:case n.Type.MAP_VALUE:case n.Type.SEQ_ITEM:return new CollectionItem(e,t);case n.Type.COMMENT:case n.Type.PLAIN:return new n.PlainValue(e,t);case n.Type.QUOTE_DOUBLE:return new QuoteDouble(e,t);case n.Type.QUOTE_SINGLE:return new QuoteSingle(e,t);default:return null}}class ParseContext{static parseType(e,t,u){switch(e[t]){case"*":return n.Type.ALIAS;case">":return n.Type.BLOCK_FOLDED;case"|":return n.Type.BLOCK_LITERAL;case"{":return n.Type.FLOW_MAP;case"[":return n.Type.FLOW_SEQ;case"?":return!u&&n.Node.atBlank(e,t+1,true)?n.Type.MAP_KEY:n.Type.PLAIN;case":":return!u&&n.Node.atBlank(e,t+1,true)?n.Type.MAP_VALUE:n.Type.PLAIN;case"-":return!u&&n.Node.atBlank(e,t+1,true)?n.Type.SEQ_ITEM:n.Type.PLAIN;case'"':return n.Type.QUOTE_DOUBLE;case"'":return n.Type.QUOTE_SINGLE;default:return n.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:u,inFlow:r,indent:s,lineStart:i,parent:o}={}){n._defineProperty(this,"parseNode",(e,t)=>{if(n.Node.atDocumentBoundary(this.src,t))return null;const u=new ParseContext(this,e);const{props:r,type:s,valueStart:i}=u.parseProps(t);const o=createNewNode(s,r);let a=o.parse(u,i);o.range=new n.Range(t,a);if(a<=t){o.error=new Error(`Node#parse consumed no characters`);o.error.parseEnd=a;o.error.source=o;o.range.end=t+1}if(u.nodeStartsCollection(o)){if(!o.error&&!u.atLineStart&&u.parent.type===n.Type.DOCUMENT){o.error=new n.YAMLSyntaxError(o,"Block collection must not have preceding content here (e.g. directives-end indicator)")}const e=new Collection(o);a=e.parse(new ParseContext(u),a);e.range=new n.Range(t,a);return e}return o});this.atLineStart=t!=null?t:e.atLineStart||false;this.inCollection=u!=null?u:e.inCollection||false;this.inFlow=r!=null?r:e.inFlow||false;this.indent=s!=null?s:e.indent;this.lineStart=i!=null?i:e.lineStart;this.parent=o!=null?o:e.parent||{};this.root=e.root;this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:u,src:r}=this;if(t||u)return false;if(e instanceof CollectionItem)return true;let s=e.range.end;if(r[s]==="\n"||r[s-1]==="\n")return false;s=n.Node.endOfWhiteSpace(r,s);return r[s]===":"}parseProps(e){const{inFlow:t,parent:u,src:r}=this;const s=[];let i=false;e=this.atLineStart?n.Node.endOfIndent(r,e):n.Node.endOfWhiteSpace(r,e);let o=r[e];while(o===n.Char.ANCHOR||o===n.Char.COMMENT||o===n.Char.TAG||o==="\n"){if(o==="\n"){const t=e+1;const s=n.Node.endOfIndent(r,t);const o=s-(t+this.indent);const a=u.type===n.Type.SEQ_ITEM&&u.context.atLineStart;if(!n.Node.nextNodeIsIndented(r[s],o,!a))break;this.atLineStart=true;this.lineStart=t;i=false;e=s}else if(o===n.Char.COMMENT){const t=n.Node.endOfLine(r,e+1);s.push(new n.Range(e,t));e=t}else{let t=n.Node.endOfIdentifier(r,e+1);if(o===n.Char.TAG&&r[t]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(r.slice(e+1,t+13))){t=n.Node.endOfIdentifier(r,t+5)}s.push(new n.Range(e,t));i=true;e=n.Node.endOfWhiteSpace(r,t)}o=r[e]}if(i&&o===":"&&n.Node.atBlank(r,e+1,true))e-=1;const a=ParseContext.parseType(r,e,t);return{props:s,type:a,valueStart:e}}}function parse(e){const t=[];if(e.indexOf("\r")!==-1){e=e.replace(/\r\n?/g,(e,u)=>{if(e.length>1)t.push(u);return"\n"})}const u=[];let n=0;do{const t=new Document;const r=new ParseContext({src:e});n=t.parse(r,n);u.push(t)}while(n{if(t.length===0)return false;for(let e=1;eu.join("...\n"));return u}t.parse=parse},87:function(e){e.exports=require("os")},112:function(e,t){"use strict";t.__esModule=true;t.default=warnOnce;var u={};function warnOnce(e){if(u[e])return;u[e]=true;if(typeof console!=="undefined"&&console.warn){console.warn(e)}}e.exports=t.default},134:function(e){e.exports=require("schema-utils")},149:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(990));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var r=function(e){_inheritsLoose(AtRule,e);function AtRule(t){var u;u=e.call(this,t)||this;u.type="atrule";return u}var t=AtRule.prototype;t.append=function append(){var t;if(!this.nodes)this.nodes=[];for(var u=arguments.length,n=new Array(u),r=0;r=u.length)break;s=u[r++]}else{r=u.next();if(r.done)break;s=r.value}var i=s;if(i.postcss)i=i.postcss;if(typeof i==="object"&&Array.isArray(i.plugins)){t=t.concat(i.plugins)}else if(typeof i==="function"){t.push(i)}else if(typeof i==="object"&&(i.parse||i.stringify)){if(process.env.NODE_ENV!=="production"){throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use "+"one of the syntax/parser/stringifier options as outlined "+"in your PostCSS runner documentation.")}}else{throw new Error(i+" is not a PostCSS plugin")}}return t};return Processor}();var s=r;t.default=s;e.exports=t.default},191:function(e){"use strict";class Warning extends Error{constructor(e){super(e);const{text:t,line:u,column:n,plugin:r}=e;this.name="Warning";this.message=`${this.name}\n\n`;if(typeof u!=="undefined"){this.message+=`(${u}:${n}) `}this.message+=r?`${r}: `:"";this.message+=`${t}`;this.stack=false}}e.exports=Warning},192:function(e,t,u){"use strict";var n=u(513);var r=u(310);var s=u(525);const i={anchorPrefix:"a",customTags:null,indent:2,indentSeq:true,keepCstNodes:false,keepNodeTypes:true,keepBlobsInJSON:true,mapAsMap:false,maxAliasCount:100,prettyErrors:false,simpleKeys:false,version:"1.2"};const o={get binary(){return r.binaryOptions},set binary(e){Object.assign(r.binaryOptions,e)},get bool(){return r.boolOptions},set bool(e){Object.assign(r.boolOptions,e)},get int(){return r.intOptions},set int(e){Object.assign(r.intOptions,e)},get null(){return r.nullOptions},set null(e){Object.assign(r.nullOptions,e)},get str(){return r.strOptions},set str(e){Object.assign(r.strOptions,e)}};const a={"1.0":{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:n.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:n.defaultTagPrefix}]},1.2:{schema:"core",merge:false,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:n.defaultTagPrefix}]}};function stringifyTag(e,t){if((e.version||e.options.version)==="1.0"){const e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const u=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return u?`!${u[1]}/${u[2]}`:`!${t.replace(/^tag:/,"")}`}let u=e.tagPrefixes.find(e=>t.indexOf(e.prefix)===0);if(!u){const n=e.getDefaults().tagPrefixes;u=n&&n.find(e=>t.indexOf(e.prefix)===0)}if(!u)return t[0]==="!"?t:`!<${t}>`;const n=t.substr(u.prefix.length).replace(/[!,[\]{}]/g,e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[e]);return u.handle+n}function getTagObject(e,t){if(t instanceof r.Alias)return r.Alias;if(t.tag){const u=e.filter(e=>e.tag===t.tag);if(u.length>0)return u.find(e=>e.format===t.format)||u[0]}let u,n;if(t instanceof r.Scalar){n=t.value;const r=e.filter(e=>e.identify&&e.identify(n)||e.class&&n instanceof e.class);u=r.find(e=>e.format===t.format)||r.find(e=>!e.format)}else{n=t;u=e.find(e=>e.nodeClass&&n instanceof e.nodeClass)}if(!u){const e=n&&n.constructor?n.constructor.name:typeof n;throw new Error(`Tag not resolved for ${e} value`)}return u}function stringifyProps(e,t,{anchors:u,doc:n}){const r=[];const s=n.anchors.getName(e);if(s){u[s]=e;r.push(`&${s}`)}if(e.tag){r.push(stringifyTag(n,e.tag))}else if(!t.default){r.push(stringifyTag(n,t.tag))}return r.join(" ")}function stringify(e,t,u,n){const{anchors:s,schema:i}=t.doc;let o;if(!(e instanceof r.Node)){const t={aliasNodes:[],onTagObj:e=>o=e,prevObjects:new Map};e=i.createNode(e,true,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=s.getName(e.source);if(!t){t=s.newName();s.map[t]=e.source}}}if(e instanceof r.Pair)return e.toString(t,u,n);if(!o)o=getTagObject(i.tags,e);const a=stringifyProps(e,o,t);if(a.length>0)t.indentAtStart=(t.indentAtStart||0)+a.length+1;const c=typeof o.stringify==="function"?o.stringify(e,t,u,n):e instanceof r.Scalar?r.stringifyString(e,t,u,n):e.toString(t,u,n);if(!a)return c;return e instanceof r.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a}\n${t.indent}${c}`}class Anchors{static validAnchorNode(e){return e instanceof r.Scalar||e instanceof r.YAMLSeq||e instanceof r.YAMLMap}constructor(e){n._defineProperty(this,"map",{});this.prefix=e}createAlias(e,t){this.setAnchor(e,t);return new r.Alias(e)}createMergePair(...e){const t=new r.Merge;t.value.items=e.map(e=>{if(e instanceof r.Alias){if(e.source instanceof r.YAMLMap)return e}else if(e instanceof r.YAMLMap){return this.createAlias(e)}throw new Error("Merge sources must be Map nodes or their Aliases")});return t}getName(e){const{map:t}=this;return Object.keys(t).find(u=>t[u]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){if(!e)e=this.prefix;const t=Object.keys(this.map);for(let u=1;true;++u){const n=`${e}${u}`;if(!t.includes(n))return n}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach(t=>{e[t]=e[t].resolved});t.forEach(e=>{e.source=e.source.resolved});delete this._cstAliases}setAnchor(e,t){if(e!=null&&!Anchors.validAnchorNode(e)){throw new Error("Anchors may only be set for Scalar, Seq and Map nodes")}if(t&&/[\x00-\x19\s,[\]{}]/.test(t)){throw new Error("Anchor names must not contain whitespace or control characters")}const{map:u}=this;const n=e&&Object.keys(u).find(t=>u[t]===e);if(n){if(!t){return n}else if(n!==t){delete u[n];u[t]=e}}else{if(!t){if(!e)return null;t=this.newName()}u[t]=e}return t}}const c=(e,t)=>{if(e&&typeof e==="object"){const{tag:u}=e;if(e instanceof r.Collection){if(u)t[u]=true;e.items.forEach(e=>c(e,t))}else if(e instanceof r.Pair){c(e.key,t);c(e.value,t)}else if(e instanceof r.Scalar){if(u)t[u]=true}}return t};const f=e=>Object.keys(c(e,{}));function parseContents(e,t){const u={before:[],after:[]};let s=undefined;let i=false;for(const o of t){if(o.valueRange){if(s!==undefined){const t="Document contains trailing content not separated by a ... or --- line";e.errors.push(new n.YAMLSyntaxError(o,t));break}const t=r.resolveNode(e,o);if(i){t.spaceBefore=true;i=false}s=t}else if(o.comment!==null){const e=s===undefined?u.before:u.after;e.push(o.comment)}else if(o.type===n.Type.BLANK_LINE){i=true;if(s===undefined&&u.before.length>0&&!e.commentBefore){e.commentBefore=u.before.join("\n");u.before=[]}}}e.contents=s||null;if(!s){e.comment=u.before.concat(u.after).join("\n")||null}else{const t=u.before.join("\n");if(t){const e=s instanceof r.Collection&&s.items[0]?s.items[0]:s;e.commentBefore=e.commentBefore?`${t}\n${e.commentBefore}`:t}e.comment=u.after.join("\n")||null}}function resolveTagDirective({tagPrefixes:e},t){const[u,r]=t.parameters;if(!u||!r){const e="Insufficient parameters given for %TAG directive";throw new n.YAMLSemanticError(t,e)}if(e.some(e=>e.handle===u)){const e="The %TAG directive must only be given at most once per handle in the same document.";throw new n.YAMLSemanticError(t,e)}return{handle:u,prefix:r}}function resolveYamlDirective(e,t){let[u]=t.parameters;if(t.name==="YAML:1.0")u="1.0";if(!u){const e="Insufficient parameters given for %YAML directive";throw new n.YAMLSemanticError(t,e)}if(!a[u]){const r=e.version||e.options.version;const s=`Document will be parsed as YAML ${r} rather than YAML ${u}`;e.warnings.push(new n.YAMLWarning(t,s))}return u}function parseDirectives(e,t,u){const r=[];let s=false;for(const u of t){const{comment:t,name:i}=u;switch(i){case"TAG":try{e.tagPrefixes.push(resolveTagDirective(e,u))}catch(t){e.errors.push(t)}s=true;break;case"YAML":case"YAML:1.0":if(e.version){const t="The %YAML directive must only be given at most once per document.";e.errors.push(new n.YAMLSemanticError(u,t))}try{e.version=resolveYamlDirective(e,u)}catch(t){e.errors.push(t)}s=true;break;default:if(i){const t=`YAML only supports %TAG and %YAML directives, and not %${i}`;e.warnings.push(new n.YAMLWarning(u,t))}}if(t)r.push(t)}if(u&&!s&&"1.1"===(e.version||u.version||e.options.version)){const t=({handle:e,prefix:t})=>({handle:e,prefix:t});e.tagPrefixes=u.tagPrefixes.map(t);e.version=u.version}e.commentBefore=r.join("\n")||null}function assertCollection(e){if(e instanceof r.Collection)return true;throw new Error("Expected a YAML collection as document contents")}class Document{constructor(e){this.anchors=new Anchors(e.anchorPrefix);this.commentBefore=null;this.comment=null;this.contents=null;this.directivesEndMarker=null;this.errors=[];this.options=e;this.schema=null;this.tagPrefixes=[];this.version=null;this.warnings=[]}add(e){assertCollection(this.contents);return this.contents.add(e)}addIn(e,t){assertCollection(this.contents);this.contents.addIn(e,t)}delete(e){assertCollection(this.contents);return this.contents.delete(e)}deleteIn(e){if(r.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}assertCollection(this.contents);return this.contents.deleteIn(e)}getDefaults(){return Document.defaults[this.version]||Document.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof r.Collection?this.contents.get(e,t):undefined}getIn(e,t){if(r.isEmptyPath(e))return!t&&this.contents instanceof r.Scalar?this.contents.value:this.contents;return this.contents instanceof r.Collection?this.contents.getIn(e,t):undefined}has(e){return this.contents instanceof r.Collection?this.contents.has(e):false}hasIn(e){if(r.isEmptyPath(e))return this.contents!==undefined;return this.contents instanceof r.Collection?this.contents.hasIn(e):false}set(e,t){assertCollection(this.contents);this.contents.set(e,t)}setIn(e,t){if(r.isEmptyPath(e))this.contents=t;else{assertCollection(this.contents);this.contents.setIn(e,t)}}setSchema(e,t){if(!e&&!t&&this.schema)return;if(typeof e==="number")e=e.toFixed(1);if(e==="1.0"||e==="1.1"||e==="1.2"){if(this.version)this.version=e;else this.options.version=e;delete this.options.schema}else if(e&&typeof e==="string"){this.options.schema=e}if(Array.isArray(t))this.options.customTags=t;const u=Object.assign({},this.getDefaults(),this.options);this.schema=new s.Schema(u)}parse(e,t){if(this.options.keepCstNodes)this.cstNode=e;if(this.options.keepNodeTypes)this.type="DOCUMENT";const{directives:u=[],contents:r=[],directivesEndMarker:s,error:i,valueRange:o}=e;if(i){if(!i.source)i.source=this;this.errors.push(i)}parseDirectives(this,u,t);if(s)this.directivesEndMarker=true;this.range=o?[o.start,o.end]:null;this.setSchema();this.anchors._cstAliases=[];parseContents(this,r);this.anchors.resolveNodes();if(this.options.prettyErrors){for(const e of this.errors)if(e instanceof n.YAMLError)e.makePretty();for(const e of this.warnings)if(e instanceof n.YAMLError)e.makePretty()}return this}listNonDefaultTags(){return f(this.contents).filter(e=>e.indexOf(s.Schema.defaultPrefix)!==0)}setTagPrefix(e,t){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(t){const u=this.tagPrefixes.find(t=>t.handle===e);if(u)u.prefix=t;else this.tagPrefixes.push({handle:e,prefix:t})}else{this.tagPrefixes=this.tagPrefixes.filter(t=>t.handle!==e)}}toJSON(e,t){const{keepBlobsInJSON:u,mapAsMap:n,maxAliasCount:s}=this.options;const i=u&&(typeof e!=="string"||!(this.contents instanceof r.Scalar));const o={doc:this,indentStep:" ",keep:i,mapAsMap:i&&!!n,maxAliasCount:s,stringify:stringify};const a=Object.keys(this.anchors.map);if(a.length>0)o.anchors=new Map(a.map(e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]));const c=r.toJSON(this.contents,e,o);if(typeof t==="function"&&o.anchors)for(const{count:e,res:u}of o.anchors.values())t(u,e);return c}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();const t=[];let u=false;if(this.version){let e="%YAML 1.2";if(this.schema.name==="yaml-1.1"){if(this.version==="1.0")e="%YAML:1.0";else if(this.version==="1.1")e="%YAML 1.1"}t.push(e);u=true}const n=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:e,prefix:r})=>{if(n.some(e=>e.indexOf(r)===0)){t.push(`%TAG ${e} ${r}`);u=true}});if(u||this.directivesEndMarker)t.push("---");if(this.commentBefore){if(u||!this.directivesEndMarker)t.unshift("");t.unshift(this.commentBefore.replace(/^/gm,"#"))}const s={anchors:{},doc:this,indent:"",indentStep:" ".repeat(e),stringify:stringify};let i=false;let o=null;if(this.contents){if(this.contents instanceof r.Node){if(this.contents.spaceBefore&&(u||this.directivesEndMarker))t.push("");if(this.contents.commentBefore)t.push(this.contents.commentBefore.replace(/^/gm,"#"));s.forceBlockIndent=!!this.comment;o=this.contents.comment}const e=o?null:()=>i=true;const n=stringify(this.contents,s,()=>o=null,e);t.push(r.addComment(n,"",o))}else if(this.contents!==undefined){t.push(stringify(this.contents,s))}if(this.comment){if((!i||o)&&t[t.length-1]!=="")t.push("");t.push(this.comment.replace(/^/gm,"#"))}return t.join("\n")+"\n"}}n._defineProperty(Document,"defaults",a);t.Document=Document;t.defaultOptions=i;t.scalarOptions=o},208:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getPropertyByPath=getPropertyByPath;function getPropertyByPath(e,t){if(typeof t==="string"&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}const u=typeof t==="string"?t.split("."):t;return u.reduce((e,t)=>{if(e===undefined){return e}return e[t]},e)}},233:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(573));var r=_interopRequireDefault(u(736));var s=_interopRequireDefault(u(958));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _assertThisInitialized(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}function _wrapNativeSuper(e){var t=typeof Map==="function"?new Map:undefined;_wrapNativeSuper=function _wrapNativeSuper(e){if(e===null||!_isNativeFunction(e))return e;if(typeof e!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof t!=="undefined"){if(t.has(e))return t.get(e);t.set(e,Wrapper)}function Wrapper(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}Wrapper.prototype=Object.create(e.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,e)};return _wrapNativeSuper(e)}function isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(e){return false}}function _construct(e,t,u){if(isNativeReflectConstruct()){_construct=Reflect.construct}else{_construct=function _construct(e,t,u){var n=[null];n.push.apply(n,t);var r=Function.bind.apply(e,n);var s=new r;if(u)_setPrototypeOf(s,u.prototype);return s}}return _construct.apply(null,arguments)}function _isNativeFunction(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}function _getPrototypeOf(e){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)};return _getPrototypeOf(e)}var i=function(e){_inheritsLoose(CssSyntaxError,e);function CssSyntaxError(t,u,n,r,s,i){var o;o=e.call(this,t)||this;o.name="CssSyntaxError";o.reason=t;if(s){o.file=s}if(r){o.source=r}if(i){o.plugin=i}if(typeof u!=="undefined"&&typeof n!=="undefined"){o.line=u;o.column=n}o.setMessage();if(Error.captureStackTrace){Error.captureStackTrace(_assertThisInitialized(o),CssSyntaxError)}return o}var t=CssSyntaxError.prototype;t.setMessage=function setMessage(){this.message=this.plugin?this.plugin+": ":"";this.message+=this.file?this.file:"";if(typeof this.line!=="undefined"){this.message+=":"+this.line+":"+this.column}this.message+=": "+this.reason};t.showSourceCode=function showSourceCode(e){var t=this;if(!this.source)return"";var u=this.source;if(s.default){if(typeof e==="undefined")e=n.default.stdout;if(e)u=(0,s.default)(u)}var i=u.split(/\r?\n/);var o=Math.max(this.line-3,0);var a=Math.min(this.line+2,i.length);var c=String(a).length;function mark(t){if(e&&r.default.red){return r.default.red.bold(t)}return t}function aside(t){if(e&&r.default.gray){return r.default.gray(t)}return t}return i.slice(o,a).map(function(e,u){var n=o+1+u;var r=" "+(" "+n).slice(-c)+" | ";if(n===t.line){var s=aside(r.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return mark(">")+aside(r)+e+"\n "+s+mark("^")}return" "+aside(r)+e}).join("\n")};t.toString=function toString(){var e=this.showSourceCode();if(e){e="\n\n"+e+"\n"}return this.name+": "+this.message+e};return CssSyntaxError}(_wrapNativeSuper(Error));var o=i;t.default=o;e.exports=t.default},241:function(e){e.exports=require("next/dist/compiled/source-map")},249:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(7));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var r=function(e){_inheritsLoose(Declaration,e);function Declaration(t){var u;u=e.call(this,t)||this;u.type="decl";return u}return Declaration}(n.default);var s=r;t.default=s;e.exports=t.default},254:function(e,t){"use strict";var u="\n";var n="\r";var r=function(){function LinesAndColumns(e){this.string=e;var t=[0];for(var r=0;rthis.string.length){return null}var t=0;var u=this.offsets;while(u[t+1]<=e){t++}var n=e-u[t];return{line:t,column:n}};LinesAndColumns.prototype.indexForLocation=function(e){var t=e.line,u=e.column;if(t<0||t>=this.offsets.length){return null}if(u<0||u>this.lengthOfLine(t)){return null}return this.offsets[t]+u};LinesAndColumns.prototype.lengthOfLine=function(e){var t=this.offsets[e];var u=e===this.offsets.length-1?this.string.length:this.offsets[e+1];return u-t};return LinesAndColumns}();t.__esModule=true;t["default"]=r},270:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cacheWrapper=cacheWrapper;t.cacheWrapperSync=cacheWrapperSync;async function cacheWrapper(e,t,u){const n=e.get(t);if(n!==undefined){return n}const r=await u();e.set(t,r);return r}function cacheWrapperSync(e,t,u){const n=e.get(t);if(n!==undefined){return n}const r=u();e.set(t,r);return r}},277:function(e){e.exports=require("path")},282:function(e){e.exports=require("module")},294:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(249));var r=_interopRequireDefault(u(622));var s=_interopRequireDefault(u(374));var i=_interopRequireDefault(u(149));var o=_interopRequireDefault(u(847));var a=_interopRequireDefault(u(301));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var c=function(){function Parser(e){this.input=e;this.root=new o.default;this.current=this.root;this.spaces="";this.semicolon=false;this.createTokenizer();this.root.source={input:e,start:{line:1,column:1}}}var e=Parser.prototype;e.createTokenizer=function createTokenizer(){this.tokenizer=(0,r.default)(this.input)};e.parse=function parse(){var e;while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();switch(e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}}this.endFile()};e.comment=function comment(e){var t=new s.default;this.init(t,e[2],e[3]);t.source.end={line:e[4],column:e[5]};var u=e[1].slice(2,-2);if(/^\s*$/.test(u)){t.text="";t.raws.left=u;t.raws.right=""}else{var n=u.match(/^(\s*)([^]*[^\s])(\s*)$/);t.text=n[2];t.raws.left=n[1];t.raws.right=n[3]}};e.emptyRule=function emptyRule(e){var t=new a.default;this.init(t,e[2],e[3]);t.selector="";t.raws.between="";this.current=t};e.other=function other(e){var t=false;var u=null;var n=false;var r=null;var s=[];var i=[];var o=e;while(o){u=o[0];i.push(o);if(u==="("||u==="["){if(!r)r=o;s.push(u==="("?")":"]")}else if(s.length===0){if(u===";"){if(n){this.decl(i);return}else{break}}else if(u==="{"){this.rule(i);return}else if(u==="}"){this.tokenizer.back(i.pop());t=true;break}else if(u===":"){n=true}}else if(u===s[s.length-1]){s.pop();if(s.length===0)r=null}o=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())t=true;if(s.length>0)this.unclosedBracket(r);if(t&&n){while(i.length){o=i[i.length-1][0];if(o!=="space"&&o!=="comment")break;this.tokenizer.back(i.pop())}this.decl(i)}else{this.unknownWord(i)}};e.rule=function rule(e){e.pop();var t=new a.default;this.init(t,e[0][2],e[0][3]);t.raws.between=this.spacesAndCommentsFromEnd(e);this.raw(t,"selector",e);this.current=t};e.decl=function decl(e){var t=new n.default;this.init(t);var u=e[e.length-1];if(u[0]===";"){this.semicolon=true;e.pop()}if(u[4]){t.source.end={line:u[4],column:u[5]}}else{t.source.end={line:u[2],column:u[3]}}while(e[0][0]!=="word"){if(e.length===1)this.unknownWord(e);t.raws.before+=e.shift()[1]}t.source.start={line:e[0][2],column:e[0][3]};t.prop="";while(e.length){var r=e[0][0];if(r===":"||r==="space"||r==="comment"){break}t.prop+=e.shift()[1]}t.raws.between="";var s;while(e.length){s=e.shift();if(s[0]===":"){t.raws.between+=s[1];break}else{if(s[0]==="word"&&/\w/.test(s[1])){this.unknownWord([s])}t.raws.between+=s[1]}}if(t.prop[0]==="_"||t.prop[0]==="*"){t.raws.before+=t.prop[0];t.prop=t.prop.slice(1)}t.raws.between+=this.spacesAndCommentsFromStart(e);this.precheckMissedSemicolon(e);for(var i=e.length-1;i>0;i--){s=e[i];if(s[1].toLowerCase()==="!important"){t.important=true;var o=this.stringFrom(e,i);o=this.spacesFromEnd(e)+o;if(o!==" !important")t.raws.important=o;break}else if(s[1].toLowerCase()==="important"){var a=e.slice(0);var c="";for(var f=i;f>0;f--){var l=a[f][0];if(c.trim().indexOf("!")===0&&l!=="space"){break}c=a.pop()[1]+c}if(c.trim().indexOf("!")===0){t.important=true;t.raws.important=c;e=a}}if(s[0]!=="space"&&s[0]!=="comment"){break}}this.raw(t,"value",e);if(t.value.indexOf(":")!==-1)this.checkMissedSemicolon(e)};e.atrule=function atrule(e){var t=new i.default;t.name=e[1].slice(1);if(t.name===""){this.unnamedAtrule(t,e)}this.init(t,e[2],e[3]);var u;var n;var r=false;var s=false;var o=[];while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();if(e[0]===";"){t.source.end={line:e[2],column:e[3]};this.semicolon=true;break}else if(e[0]==="{"){s=true;break}else if(e[0]==="}"){if(o.length>0){n=o.length-1;u=o[n];while(u&&u[0]==="space"){u=o[--n]}if(u){t.source.end={line:u[4],column:u[5]}}}this.end(e);break}else{o.push(e)}if(this.tokenizer.endOfFile()){r=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(o);if(o.length){t.raws.afterName=this.spacesAndCommentsFromStart(o);this.raw(t,"params",o);if(r){e=o[o.length-1];t.source.end={line:e[4],column:e[5]};this.spaces=t.raws.between;t.raws.between=""}}else{t.raws.afterName="";t.params=""}if(s){t.nodes=[];this.current=t}};e.end=function end(e){if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.semicolon=false;this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.spaces="";if(this.current.parent){this.current.source.end={line:e[2],column:e[3]};this.current=this.current.parent}else{this.unexpectedClose(e)}};e.endFile=function endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.current.raws.after=(this.current.raws.after||"")+this.spaces};e.freeSemicolon=function freeSemicolon(e){this.spaces+=e[1];if(this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];if(t&&t.type==="rule"&&!t.raws.ownSemicolon){t.raws.ownSemicolon=this.spaces;this.spaces=""}}};e.init=function init(e,t,u){this.current.push(e);e.source={start:{line:t,column:u},input:this.input};e.raws.before=this.spaces;this.spaces="";if(e.type!=="comment")this.semicolon=false};e.raw=function raw(e,t,u){var n,r;var s=u.length;var i="";var o=true;var a,c;var f=/^([.|#])?([\w])+/i;for(var l=0;l=0;r--){n=e[r];if(n[0]!=="space"){u+=1;if(u===2)break}}throw this.input.error("Missed semicolon",n[2],n[3])};return Parser}();t.default=c;e.exports=t.default},301:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(990));var r=_interopRequireDefault(u(430));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var u=0;utoJSON(e,String(t),u));if(e&&typeof e.toJSON==="function"){const n=u&&u.anchors&&u.anchors.get(e);if(n)u.onCreate=(e=>{n.res=e;delete u.onCreate});const r=e.toJSON(t,u);if(n&&u.onCreate)u.onCreate(r);return r}if((!u||!u.keep)&&typeof e==="bigint")return Number(e);return e}class Scalar extends Node{constructor(e){super();this.value=e}toJSON(e,t){return t&&t.keep?this.value:toJSON(this.value,e,t)}toString(){return String(this.value)}}function collectionFromPath(e,t,u){let n=u;for(let e=t.length-1;e>=0;--e){const u=t[e];const r=Number.isInteger(u)&&u>=0?[]:{};r[u]=n;n=r}return e.createNode(n,false)}const r=e=>e==null||typeof e==="object"&&e[Symbol.iterator]().next().done;class Collection extends Node{constructor(e){super();n._defineProperty(this,"items",[]);this.schema=e}addIn(e,t){if(r(e))this.add(t);else{const[u,...n]=e;const r=this.get(u,true);if(r instanceof Collection)r.addIn(n,t);else if(r===undefined&&this.schema)this.set(u,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${u}. Remaining path: ${n}`)}}deleteIn([e,...t]){if(t.length===0)return this.delete(e);const u=this.get(e,true);if(u instanceof Collection)return u.deleteIn(t);else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],u){const n=this.get(e,true);if(t.length===0)return!u&&n instanceof Scalar?n.value:n;else return n instanceof Collection?n.getIn(t,u):undefined}hasAllNullValues(){return this.items.every(e=>{if(!e||e.type!=="PAIR")return false;const t=e.value;return t==null||t instanceof Scalar&&t.value==null&&!t.commentBefore&&!t.comment&&!t.tag})}hasIn([e,...t]){if(t.length===0)return this.has(e);const u=this.get(e,true);return u instanceof Collection?u.hasIn(t):false}setIn([e,...t],u){if(t.length===0){this.set(e,u)}else{const n=this.get(e,true);if(n instanceof Collection)n.setIn(t,u);else if(n===undefined&&this.schema)this.set(e,collectionFromPath(this.schema,t,u));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}}toJSON(){return null}toString(e,{blockItem:t,flowChars:u,isMap:r,itemIndent:s},i,o){const{indent:a,indentStep:c,stringify:f}=e;const l=this.type===n.Type.FLOW_MAP||this.type===n.Type.FLOW_SEQ||e.inFlow;if(l)s+=c;const h=r&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:h,indent:s,inFlow:l,type:null});let D=false;let d=false;const p=this.items.reduce((t,u,n)=>{let r;if(u){if(!D&&u.spaceBefore)t.push({type:"comment",str:""});if(u.commentBefore)u.commentBefore.match(/^.*$/gm).forEach(e=>{t.push({type:"comment",str:`#${e}`})});if(u.comment)r=u.comment;if(l&&(!D&&u.spaceBefore||u.commentBefore||u.comment||u.key&&(u.key.commentBefore||u.key.comment)||u.value&&(u.value.commentBefore||u.value.comment)))d=true}D=false;let i=f(u,e,()=>r=null,()=>D=true);if(l&&!d&&i.includes("\n"))d=true;if(l&&ne.str);if(d||n.reduce((e,t)=>e+t.length+2,2)>Collection.maxFlowStringSingleLineLength){A=e;for(const e of n){A+=e?`\n${c}${a}${e}`:"\n"}A+=`\n${a}${t}`}else{A=`${e} ${n.join(" ")} ${t}`}}else{const e=p.map(t);A=e.shift();for(const t of e)A+=t?`\n${a}${t}`:"\n"}if(this.comment){A+="\n"+this.comment.replace(/^/gm,`${a}#`);if(i)i()}else if(D&&o)o();return A}}n._defineProperty(Collection,"maxFlowStringSingleLineLength",60);function asItemIndex(e){let t=e instanceof Scalar?e.value:e;if(t&&typeof t==="string")t=Number(t);return Number.isInteger(t)&&t>=0?t:null}class YAMLSeq extends Collection{add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const u=this.items.splice(t,1);return u.length>0}get(e,t){const u=asItemIndex(e);if(typeof u!=="number")return undefined;const n=this.items[u];return!t&&n instanceof Scalar?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&te.type==="comment"?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:false,itemIndent:(e.indent||"")+" "},t,u)}}const s=(e,t,u)=>{if(t===null)return"";if(typeof t!=="object")return String(t);if(e instanceof Node&&u&&u.doc)return e.toString({anchors:{},doc:u.doc,indent:"",indentStep:u.indentStep,inFlow:true,inStringifyKey:true,stringify:u.stringify});return JSON.stringify(t)};class Pair extends Node{constructor(e,t=null){super();this.key=e;this.value=t;this.type=Pair.Type.PAIR}get commentBefore(){return this.key instanceof Node?this.key.commentBefore:undefined}set commentBefore(e){if(this.key==null)this.key=new Scalar(null);if(this.key instanceof Node)this.key.commentBefore=e;else{const e="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(e)}}addToJSMap(e,t){const u=toJSON(this.key,"",e);if(t instanceof Map){const n=toJSON(this.value,u,e);t.set(u,n)}else if(t instanceof Set){t.add(u)}else{const n=s(this.key,u,e);t[n]=toJSON(this.value,n,e)}return t}toJSON(e,t){const u=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,u)}toString(e,t,u){if(!e||!e.doc)return JSON.stringify(this);const{indent:r,indentSeq:s,simpleKeys:i}=e.doc.options;let{key:o,value:a}=this;let c=o instanceof Node&&o.comment;if(i){if(c){throw new Error("With simple keys, key nodes cannot have comments")}if(o instanceof Collection){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}const f=!i&&(!o||c||o instanceof Collection||o.type===n.Type.BLOCK_FOLDED||o.type===n.Type.BLOCK_LITERAL);const{doc:l,indent:h,indentStep:D,stringify:d}=e;e=Object.assign({},e,{implicitKey:!f,indent:h+D});let p=false;let A=d(o,e,()=>c=null,()=>p=true);A=addComment(A,e.indent,c);if(e.allNullValues&&!i){if(this.comment){A=addComment(A,e.indent,this.comment);if(t)t()}else if(p&&!c&&u)u();return e.inFlow?A:`? ${A}`}A=f?`? ${A}\n${h}:`:`${A}:`;if(this.comment){A=addComment(A,e.indent,this.comment);if(t)t()}let C="";let g=null;if(a instanceof Node){if(a.spaceBefore)C="\n";if(a.commentBefore){const t=a.commentBefore.replace(/^/gm,`${e.indent}#`);C+=`\n${t}`}g=a.comment}else if(a&&typeof a==="object"){a=l.schema.createNode(a,true)}e.implicitKey=false;if(!f&&!this.comment&&a instanceof Scalar)e.indentAtStart=A.length+1;p=false;if(!s&&r>=2&&!e.inFlow&&!f&&a instanceof YAMLSeq&&a.type!==n.Type.FLOW_SEQ&&!a.tag&&!l.anchors.getName(a)){e.indent=e.indent.substr(2)}const F=d(a,e,()=>g=null,()=>p=true);let E=" ";if(C||this.comment){E=`${C}\n${e.indent}`}else if(!f&&a instanceof Collection){const t=F[0]==="["||F[0]==="{";if(!t||F.includes("\n"))E=`\n${e.indent}`}if(p&&!g&&u)u();return addComment(A+E+F,e.indent,g)}}n._defineProperty(Pair,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});const i=(e,t)=>{if(e instanceof Alias){const u=t.get(e.source);return u.count*u.aliasCount}else if(e instanceof Collection){let u=0;for(const n of e.items){const e=i(n,t);if(e>u)u=e}return u}else if(e instanceof Pair){const u=i(e.key,t);const n=i(e.value,t);return Math.max(u,n)}return 1};class Alias extends Node{static stringify({range:e,source:t},{anchors:u,doc:n,implicitKey:r,inStringifyKey:s}){let i=Object.keys(u).find(e=>u[e]===t);if(!i&&s)i=n.anchors.getName(t)||n.anchors.newName();if(i)return`*${i}${r?" ":""}`;const o=n.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${o} [${e}]`)}constructor(e){super();this.source=e;this.type=n.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return toJSON(this.source,e,t);const{anchors:u,maxAliasCount:r}=t;const s=u.get(this.source);if(!s||s.res===undefined){const e="This should not happen: Alias anchor was not resolved?";if(this.cstNode)throw new n.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}if(r>=0){s.count+=1;if(s.aliasCount===0)s.aliasCount=i(this.source,u);if(s.count*s.aliasCount>r){const e="Excessive alias count indicates a resource exhaustion attack";if(this.cstNode)throw new n.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}}return s.res}toString(e){return Alias.stringify(this,e)}}n._defineProperty(Alias,"default",true);function findPair(e,t){const u=t instanceof Scalar?t.value:t;for(const n of e){if(n instanceof Pair){if(n.key===t||n.key===u)return n;if(n.key&&n.key.value===u)return n}}return undefined}class YAMLMap extends Collection{add(e,t){if(!e)e=new Pair(e);else if(!(e instanceof Pair))e=new Pair(e.key||e,e.value);const u=findPair(this.items,e.key);const n=this.schema&&this.schema.sortMapEntries;if(u){if(t)u.value=e.value;else throw new Error(`Key ${e.key} already set`)}else if(n){const t=this.items.findIndex(t=>n(e,t)<0);if(t===-1)this.items.push(e);else this.items.splice(t,0,e)}else{this.items.push(e)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const u=this.items.splice(this.items.indexOf(t),1);return u.length>0}get(e,t){const u=findPair(this.items,e);const n=u&&u.value;return!t&&n instanceof Scalar?n.value:n}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new Pair(e,t),true)}toJSON(e,t,u){const n=u?new u:t&&t.mapAsMap?new Map:{};if(t&&t.onCreate)t.onCreate(n);for(const e of this.items)e.addToJSMap(t,n);return n}toString(e,t,u){if(!e)return JSON.stringify(this);for(const e of this.items){if(!(e instanceof Pair))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:true,itemIndent:e.indent||""},t,u)}}const o="<<";class Merge extends Pair{constructor(e){if(e instanceof Pair){let t=e.value;if(!(t instanceof YAMLSeq)){t=new YAMLSeq;t.items.push(e.value);t.range=e.value.range}super(e.key,t);this.range=e.range}else{super(new Scalar(o),new YAMLSeq)}this.type=Pair.Type.MERGE_PAIR}addToJSMap(e,t){for(const{source:u}of this.value.items){if(!(u instanceof YAMLMap))throw new Error("Merge sources must be maps");const n=u.toJSON(null,e,Map);for(const[e,u]of n){if(t instanceof Map){if(!t.has(e))t.set(e,u)}else if(t instanceof Set){t.add(e)}else{if(!Object.prototype.hasOwnProperty.call(t,e))t[e]=u}}}return t}toString(e,t){const u=this.value;if(u.items.length>1)return super.toString(e,t);this.value=u.items[0];const n=super.toString(e,t);this.value=u;return n}}const a={defaultType:n.Type.BLOCK_LITERAL,lineWidth:76};const c={trueStr:"true",falseStr:"false"};const f={asBigInt:false};const l={nullStr:"null"};const h={defaultType:n.Type.PLAIN,doubleQuoted:{jsonEncoding:false,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function resolveScalar(e,t,u){for(const{format:u,test:n,resolve:r}of t){if(n){const t=e.match(n);if(t){let e=r.apply(null,t);if(!(e instanceof Scalar))e=new Scalar(e);if(u)e.format=u;return e}}}if(u)e=u(e);return new Scalar(e)}const D="flow";const d="block";const p="quoted";const A=(e,t)=>{let u=e[t+1];while(u===" "||u==="\t"){do{u=e[t+=1]}while(u&&u!=="\n");u=e[t+1]}return t};function foldFlowLines(e,t,u,{indentAtStart:n,lineWidth:r=80,minContentWidth:s=20,onFold:i,onOverflow:o}){if(!r||r<0)return e;const a=Math.max(1+s,1+r-t.length);if(e.length<=a)return e;const c=[];const f={};let l=r-(typeof n==="number"?n:t.length);let h=undefined;let D=undefined;let C=false;let g=-1;if(u===d){g=A(e,g);if(g!==-1)l=g+a}for(let t;t=e[g+=1];){if(u===p&&t==="\\"){switch(e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}}if(t==="\n"){if(u===d)g=A(e,g);l=g+a;h=undefined}else{if(t===" "&&D&&D!==" "&&D!=="\n"&&D!=="\t"){const t=e[g+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")h=g}if(g>=l){if(h){c.push(h);l=h+a;h=undefined}else if(u===p){while(D===" "||D==="\t"){D=t;t=e[g+=1];C=true}c.push(g-2);f[g-2]=true;l=g-2+a;h=undefined}else{C=true}}}D=t}if(C&&o)o();if(c.length===0)return e;if(i)i();let F=e.slice(0,c[0]);for(let n=0;ne?Object.assign({indentAtStart:e},h.fold):h.fold;const g=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t){const u=e.length;if(u<=t)return false;for(let n=0,r=0;nt)return true;r=n+1;if(u-r<=t)return false}}return true}function doubleQuotedString(e,t){const{implicitKey:u}=t;const{jsonEncoding:n,minMultiLineLength:r}=h.doubleQuoted;const s=JSON.stringify(e);if(n)return s;const i=t.indent||(g(e)?" ":"");let o="";let a=0;for(let e=0,t=s[e];t;t=s[++e]){if(t===" "&&s[e+1]==="\\"&&s[e+2]==="n"){o+=s.slice(a,e)+"\\ ";e+=1;a=e;t="\\"}if(t==="\\")switch(s[e+1]){case"u":{o+=s.slice(a,e);const t=s.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:if(t.substr(0,2)==="00")o+="\\x"+t.substr(2);else o+=s.substr(e,6)}e+=5;a=e+1}break;case"n":if(u||s[e+2]==='"'||s.length";if(!u)return f+"\n";let l="";let D="";u=u.replace(/[\n\t ]*$/,e=>{const t=e.indexOf("\n");if(t===-1){f+="-"}else if(u===e||t!==e.length-1){f+="+";if(i)i()}D=e.replace(/\n$/,"");return""}).replace(/^[\n ]*/,e=>{if(e.indexOf(" ")!==-1)f+=a;const t=e.match(/ +$/);if(t){l=e.slice(0,-t[0].length);return t[0]}else{l=e;return""}});if(D)D=D.replace(/\n+(?!\n|$)/g,`$&${o}`);if(l)l=l.replace(/\n+/g,`$&${o}`);if(e){f+=" #"+e.replace(/ ?[\r\n]+/g," ");if(s)s()}if(!u)return`${f}${a}\n${o}${D}`;if(c){u=u.replace(/\n+/g,`$&${o}`);return`${f}\n${o}${l}${u}${D}`}u=u.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${o}`);const p=foldFlowLines(`${l}${u}${D}`,o,d,h.fold);return`${f}\n${o}${p}`}function plainString(e,t,u,r){const{comment:s,type:i,value:o}=e;const{actualString:a,implicitKey:c,indent:f,inFlow:l}=t;if(c&&/[\n[\]{},]/.test(o)||l&&/[[\]{},]/.test(o)){return doubleQuotedString(o,t)}if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o)){return c||l||o.indexOf("\n")===-1?o.indexOf('"')!==-1&&o.indexOf("'")===-1?singleQuotedString(o,t):doubleQuotedString(o,t):blockString(e,t,u,r)}if(!c&&!l&&i!==n.Type.PLAIN&&o.indexOf("\n")!==-1){return blockString(e,t,u,r)}if(f===""&&g(o)){t.forceBlockIndent=true;return blockString(e,t,u,r)}const h=o.replace(/\n+/g,`$&\n${f}`);if(a){const{tags:e}=t.doc.schema;const u=resolveScalar(h,e,e.scalarFallback).value;if(typeof u!=="string")return doubleQuotedString(o,t)}const d=c?h:foldFlowLines(h,f,D,C(t));if(s&&!l&&(d.indexOf("\n")!==-1||s.indexOf("\n")!==-1)){if(u)u();return addCommentBefore(d,f,s)}return d}function stringifyString(e,t,u,r){const{defaultType:s}=h;const{implicitKey:i,inFlow:o}=t;let{type:a,value:c}=e;if(typeof c!=="string"){c=String(c);e=Object.assign({},e,{value:c})}const f=s=>{switch(s){case n.Type.BLOCK_FOLDED:case n.Type.BLOCK_LITERAL:return blockString(e,t,u,r);case n.Type.QUOTE_DOUBLE:return doubleQuotedString(c,t);case n.Type.QUOTE_SINGLE:return singleQuotedString(c,t);case n.Type.PLAIN:return plainString(e,t,u,r);default:return null}};if(a!==n.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)){a=n.Type.QUOTE_DOUBLE}else if((i||o)&&(a===n.Type.BLOCK_FOLDED||a===n.Type.BLOCK_LITERAL)){a=n.Type.QUOTE_DOUBLE}let l=f(a);if(l===null){l=f(s);if(l===null)throw new Error(`Unsupported default string type ${s}`)}return l}function stringifyNumber({format:e,minFractionDigits:t,tag:u,value:n}){if(typeof n==="bigint")return String(n);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let r=JSON.stringify(n);if(!e&&t&&(!u||u==="tag:yaml.org,2002:float")&&/^\d/.test(r)){let e=r.indexOf(".");if(e<0){e=r.length;r+="."}let u=t-(r.length-e-1);while(u-- >0)r+="0"}return r}function checkFlowCollectionEnd(e,t){let u,r;switch(t.type){case n.Type.FLOW_MAP:u="}";r="flow map";break;case n.Type.FLOW_SEQ:u="]";r="flow sequence";break;default:e.push(new n.YAMLSemanticError(t,"Not a flow collection!?"));return}let s;for(let e=t.items.length-1;e>=0;--e){const u=t.items[e];if(!u||u.type!==n.Type.COMMENT){s=u;break}}if(s&&s.char!==u){const i=`Expected ${r} to end with ${u}`;let o;if(typeof s.offset==="number"){o=new n.YAMLSemanticError(t,i);o.offset=s.offset+1}else{o=new n.YAMLSemanticError(s,i);if(s.range&&s.range.end)o.offset=s.range.end-s.range.start}e.push(o)}}function checkFlowCommentSpace(e,t){const u=t.context.src[t.range.start-1];if(u!=="\n"&&u!=="\t"&&u!==" "){const u="Comments must be separated from other tokens by white space characters";e.push(new n.YAMLSemanticError(t,u))}}function getLongKeyError(e,t){const u=String(t);const r=u.substr(0,8)+"..."+u.substr(-8);return new n.YAMLSemanticError(e,`The "${r}" key is too long`)}function resolveComments(e,t){for(const{afterKey:u,before:n,comment:r}of t){let t=e.items[n];if(!t){if(r!==undefined){if(e.comment)e.comment+="\n"+r;else e.comment=r}}else{if(u&&t.value)t=t.value;if(r===undefined){if(u||!t.commentBefore)t.spaceBefore=true}else{if(t.commentBefore)t.commentBefore+="\n"+r;else t.commentBefore=r}}}}function resolveString(e,t){const u=t.strValue;if(!u)return"";if(typeof u==="string")return u;u.errors.forEach(u=>{if(!u.source)u.source=t;e.errors.push(u)});return u.str}function resolveTagHandle(e,t){const{handle:u,suffix:r}=t.tag;let s=e.tagPrefixes.find(e=>e.handle===u);if(!s){const r=e.getDefaults().tagPrefixes;if(r)s=r.find(e=>e.handle===u);if(!s)throw new n.YAMLSemanticError(t,`The ${u} tag handle is non-default and was not declared.`)}if(!r)throw new n.YAMLSemanticError(t,`The ${u} tag has no suffix.`);if(u==="!"&&(e.version||e.options.version)==="1.0"){if(r[0]==="^"){e.warnings.push(new n.YAMLWarning(t,"YAML 1.0 ^ tag expansion is not supported"));return r}if(/[:/]/.test(r)){const e=r.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function resolveTagName(e,t){const{tag:u,type:r}=t;let s=false;if(u){const{handle:r,suffix:i,verbatim:o}=u;if(o){if(o!=="!"&&o!=="!!")return o;const u=`Verbatim tags aren't resolved, so ${o} is invalid.`;e.errors.push(new n.YAMLSemanticError(t,u))}else if(r==="!"&&!i){s=true}else{try{return resolveTagHandle(e,t)}catch(t){e.errors.push(t)}}}switch(r){case n.Type.BLOCK_FOLDED:case n.Type.BLOCK_LITERAL:case n.Type.QUOTE_DOUBLE:case n.Type.QUOTE_SINGLE:return n.defaultTags.STR;case n.Type.FLOW_MAP:case n.Type.MAP:return n.defaultTags.MAP;case n.Type.FLOW_SEQ:case n.Type.SEQ:return n.defaultTags.SEQ;case n.Type.PLAIN:return s?n.defaultTags.STR:null;default:return null}}function resolveByTagName(e,t,u){const{tags:n}=e.schema;const r=[];for(const s of n){if(s.tag===u){if(s.test)r.push(s);else{const u=s.resolve(e,t);return u instanceof Collection?u:new Scalar(u)}}}const s=resolveString(e,t);if(typeof s==="string"&&r.length>0)return resolveScalar(s,r,n.scalarFallback);return null}function getFallbackTagName({type:e}){switch(e){case n.Type.FLOW_MAP:case n.Type.MAP:return n.defaultTags.MAP;case n.Type.FLOW_SEQ:case n.Type.SEQ:return n.defaultTags.SEQ;default:return n.defaultTags.STR}}function resolveTag(e,t,u){try{const n=resolveByTagName(e,t,u);if(n){if(u&&t.tag)n.tag=u;return n}}catch(u){if(!u.source)u.source=t;e.errors.push(u);return null}try{const r=getFallbackTagName(t);if(!r)throw new Error(`The tag ${u} is unavailable`);const s=`The tag ${u} is unavailable, falling back to ${r}`;e.warnings.push(new n.YAMLWarning(t,s));const i=resolveByTagName(e,t,r);i.tag=u;return i}catch(u){const r=new n.YAMLReferenceError(t,u.message);r.stack=u.stack;e.errors.push(r);return null}}const F=e=>{if(!e)return false;const{type:t}=e;return t===n.Type.MAP_KEY||t===n.Type.MAP_VALUE||t===n.Type.SEQ_ITEM};function resolveNodeProps(e,t){const u={before:[],after:[]};let r=false;let s=false;const i=F(t.context.parent)?t.context.parent.props.concat(t.props):t.props;for(const{start:o,end:a}of i){switch(t.context.src[o]){case n.Char.COMMENT:{if(!t.commentHasRequiredWhitespace(o)){const u="Comments must be separated from other tokens by white space characters";e.push(new n.YAMLSemanticError(t,u))}const{header:r,valueRange:s}=t;const i=s&&(o>s.start||r&&o>r.start)?u.after:u.before;i.push(t.context.src.slice(o+1,a));break}case n.Char.ANCHOR:if(r){const u="A node can have at most one anchor";e.push(new n.YAMLSemanticError(t,u))}r=true;break;case n.Char.TAG:if(s){const u="A node can have at most one tag";e.push(new n.YAMLSemanticError(t,u))}s=true;break}}return{comments:u,hasAnchor:r,hasTag:s}}function resolveNodeValue(e,t){const{anchors:u,errors:r,schema:s}=e;if(t.type===n.Type.ALIAS){const e=t.rawValue;const s=u.getNode(e);if(!s){const u=`Aliased anchor not found: ${e}`;r.push(new n.YAMLReferenceError(t,u));return null}const i=new Alias(s);u._cstAliases.push(i);return i}const i=resolveTagName(e,t);if(i)return resolveTag(e,t,i);if(t.type!==n.Type.PLAIN){const e=`Failed to resolve ${t.type} node here`;r.push(new n.YAMLSyntaxError(t,e));return null}try{const u=resolveString(e,t);return resolveScalar(u,s.tags,s.tags.scalarFallback)}catch(e){if(!e.source)e.source=t;r.push(e);return null}}function resolveNode(e,t){if(!t)return null;if(t.error)e.errors.push(t.error);const{comments:u,hasAnchor:r,hasTag:s}=resolveNodeProps(e.errors,t);if(r){const{anchors:u}=e;const n=t.anchor;const r=u.getNode(n);if(r)u.map[u.newName(n)]=r;u.map[n]=t}if(t.type===n.Type.ALIAS&&(r||s)){const u="An alias node must not specify any properties";e.errors.push(new n.YAMLSemanticError(t,u))}const i=resolveNodeValue(e,t);if(i){i.range=[t.range.start,t.range.end];if(e.options.keepCstNodes)i.cstNode=t;if(e.options.keepNodeTypes)i.type=t.type;const n=u.before.join("\n");if(n){i.commentBefore=i.commentBefore?`${i.commentBefore}\n${n}`:n}const r=u.after.join("\n");if(r)i.comment=i.comment?`${i.comment}\n${r}`:r}return t.resolved=i}function resolveMap(e,t){if(t.type!==n.Type.MAP&&t.type!==n.Type.FLOW_MAP){const u=`A ${t.type} node cannot be resolved as a mapping`;e.errors.push(new n.YAMLSyntaxError(t,u));return null}const{comments:u,items:r}=t.type===n.Type.FLOW_MAP?resolveFlowMapItems(e,t):resolveBlockMapItems(e,t);const s=new YAMLMap;s.items=r;resolveComments(s,u);let i=false;for(let u=0;u{if(e instanceof Alias){const{type:t}=e.source;if(t===n.Type.MAP||t===n.Type.FLOW_MAP)return false;return i="Merge nodes aliases can only point to maps"}return i="Merge nodes can only have Alias nodes as values"});if(i)e.errors.push(new n.YAMLSemanticError(t,i))}else{for(let i=u+1;i{if(r.length===0)return false;const{start:s}=r[0];if(t&&s>t.valueRange.start)return false;if(u[s]!==n.Char.COMMENT)return false;for(let t=e;t0){u=new n.PlainValue(n.Type.PLAIN,[]);u.context={parent:a,src:a.context.src};const e=a.range.start+1;u.range={start:e,end:e};u.valueRange={start:e,end:e};if(typeof a.range.origStart==="number"){const e=a.range.origStart+1;u.range.origStart=u.range.origEnd=e;u.valueRange.origStart=u.valueRange.origEnd=e}}const o=new Pair(s,resolveNode(e,u));resolvePairComment(a,o);r.push(o);if(s&&typeof i==="number"){if(a.range.start>i+1024)e.errors.push(getLongKeyError(t,s))}s=undefined;i=null}break;default:if(s!==undefined)r.push(new Pair(s));s=resolveNode(e,a);i=a.range.start;if(a.error)e.errors.push(a.error);e:for(let u=o+1;;++u){const r=t.items[u];switch(r&&r.type){case n.Type.BLANK_LINE:case n.Type.COMMENT:continue e;case n.Type.MAP_VALUE:break e;default:{const t="Implicit map keys need to be followed by map values";e.errors.push(new n.YAMLSemanticError(a,t));break e}}}if(a.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new n.YAMLSemanticError(a,t))}}}if(s!==undefined)r.push(new Pair(s));return{comments:u,items:r}}function resolveFlowMapItems(e,t){const u=[];const r=[];let s=undefined;let i=false;let o="{";for(let a=0;ae instanceof Pair&&e.key instanceof Collection)){const u="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new n.YAMLWarning(t,u))}t.resolved=s;return s}function resolveBlockSeqItems(e,t){const u=[];const r=[];for(let s=0;so+1024)e.errors.push(getLongKeyError(t,i));const{src:r}=c.context;for(let t=o;t{const e=await this.searchDirectory(t);const u=this.nextDirectoryToSearch(t,e);if(u){return this.searchFromDirectory(u)}const n=await this.config.transform(e);return n};if(this.searchCache){return(0,i.cacheWrapper)(this.searchCache,t,u)}return u()}async searchDirectory(e){for await(const t of this.config.searchPlaces){const u=await this.loadSearchPlace(e,t);if(this.shouldSearchStopWithResult(u)===true){return u}}return null}async loadSearchPlace(e,t){const u=n.default.join(e,t);const r=await(0,s.readFile)(u);const i=await this.createCosmiconfigResult(u,r);return i}async loadFileContent(e,t){if(t===null){return null}if(t.trim()===""){return undefined}const u=this.getLoaderEntryForFile(e);const n=await u(e,t);return n}async createCosmiconfigResult(e,t){const u=await this.loadFileContent(e,t);const n=this.loadedContentToCosmiconfigResult(e,u);return n}async load(e){this.validateFilePath(e);const t=n.default.resolve(process.cwd(),e);const u=async()=>{const e=await(0,s.readFile)(t,{throwNotFound:true});const u=await this.createCosmiconfigResult(t,e);const n=await this.config.transform(u);return n};if(this.loadCache){return(0,i.cacheWrapper)(this.loadCache,t,u)}return u()}}t.Explorer=Explorer},374:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(7));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var r=function(e){_inheritsLoose(Comment,e);function Comment(t){var u;u=e.call(this,t)||this;u.type="comment";return u}return Comment}(n.default);var s=r;t.default=s;e.exports=t.default},402:function(e,t,u){"use strict";const n=u(277);const r=u(526);const s=u(964);e.exports=(e=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}const t=s(__filename);const u=r(n.dirname(t),e);const i=require.cache[u];if(i&&i.parent){let e=i.parent.children.length;while(e--){if(i.parent.children[e].id===u){i.parent.children.splice(e,1)}}}delete require.cache[u];const o=require.cache[t];return o===undefined?require(u):o.require(u)})},425:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=loader;var n=u(710);var r=_interopRequireDefault(u(134));var s=_interopRequireDefault(u(587));var i=u(519);var o=_interopRequireDefault(u(444));var a=_interopRequireDefault(u(191));var c=_interopRequireDefault(u(934));var f=_interopRequireDefault(u(851));var l=u(693);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function loader(e,t,u){const h=(0,n.getOptions)(this);(0,r.default)(f.default,h,{name:"PostCSS Loader",baseDataPath:"options"});const D=this.async();const d=typeof h.postcssOptions==="undefined"||typeof h.postcssOptions.config==="undefined"?true:h.postcssOptions.config;let p;if(d){try{p=await(0,l.loadConfig)(this,d)}catch(e){D(e);return}}const A=typeof h.sourceMap!=="undefined"?h.sourceMap:this.sourceMap;const{plugins:C,processOptions:g}=(0,l.getPostcssOptions)(this,p,h.postcssOptions);if(A){g.map={inline:false,annotation:false,...g.map}}if(t&&g.map){g.map.prev=(0,l.normalizeSourceMap)(t,this.context)}let F;if(u&&u.ast&&u.ast.type==="postcss"&&(0,i.satisfies)(u.ast.version,`^${o.default.version}`)){({root:F}=u.ast)}if(!F&&h.execute){e=(0,l.exec)(e,this)}let E;try{E=await(0,s.default)(C).process(F||e,g)}catch(e){if(e.file){this.addDependency(e.file)}if(e.name==="CssSyntaxError"){D(new c.default(e))}else{D(e)}return}for(const e of E.warnings()){this.emitWarning(new a.default(e))}for(const e of E.messages){if(e.type==="dependency"){this.addDependency(e.file)}if(e.type==="asset"&&e.content&&e.file){this.emitFile(e.file,e.content,e.sourceMap,e.info)}}let w=E.map?E.map.toJSON():undefined;if(w&&A){w=(0,l.normalizeSourceMapAfterPostcss)(w,this.context)}const B={type:"postcss",version:E.processor.version,root:E.root};D(null,E.css,w,{ast:B})}},430:function(e,t){"use strict";t.__esModule=true;t.default=void 0;var u={split:function split(e,t,u){var n=[];var r="";var split=false;var s=0;var i=false;var o=false;for(var a=0;a0)s-=1}else if(s===0){if(t.indexOf(c)!==-1)split=true}if(split){if(r!=="")n.push(r.trim());r="";split=false}else{r+=c}}if(u||r!=="")n.push(r.trim());return n},space:function space(e){var t=[" ","\n","\t"];return u.split(e,t)},comma:function comma(e){return u.split(e,[","],true)}};var n=u;t.default=n;e.exports=t.default},439:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(294));var r=_interopRequireDefault(u(54));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e,t){var u=new r.default(e,t);var s=new n.default(u);try{s.parse()}catch(e){if(process.env.NODE_ENV!=="production"){if(e.name==="CssSyntaxError"&&t&&t.from){if(/\.scss$/i.test(t.from)){e.message+="\nYou tried to parse SCSS with "+"the standard CSS parser; "+"try again with the postcss-scss parser"}else if(/\.sass/i.test(t.from)){e.message+="\nYou tried to parse Sass with "+"the standard CSS parser; "+"try again with the postcss-sass parser"}else if(/\.less$/i.test(t.from)){e.message+="\nYou tried to parse Less with "+"the standard CSS parser; "+"try again with the postcss-less parser"}}}throw e}return s.root}var s=parse;t.default=s;e.exports=t.default},444:function(e){e.exports={name:"postcss",version:"7.0.32",description:"Tool for transforming styles with JS plugins",engines:{node:">=6.0.0"},keywords:["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],funding:{type:"tidelift",url:"https://tidelift.com/funding/github/npm/postcss"},author:"Andrey Sitnik ",license:"MIT",homepage:"https://postcss.org/",repository:"postcss/postcss",dependencies:{chalk:"^2.4.2","source-map":"^0.6.1","supports-color":"^6.1.0"},main:"lib/postcss",types:"lib/postcss.d.ts",husky:{hooks:{"pre-commit":"lint-staged"}},browser:{"./lib/terminal-highlight":false,"supports-color":false,chalk:false,fs:false},browserslist:["last 2 version","not dead","not Explorer 11","not ExplorerMobile 11","node 6"]}},471:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cosmiconfig=cosmiconfig;t.cosmiconfigSync=cosmiconfigSync;t.defaultLoaders=void 0;var n=_interopRequireDefault(u(87));var r=u(341);var s=u(40);var i=u(690);var o=u(490);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function cosmiconfig(e,t={}){const u=normalizeOptions(e,t);const n=new r.Explorer(u);return{search:n.search.bind(n),load:n.load.bind(n),clearLoadCache:n.clearLoadCache.bind(n),clearSearchCache:n.clearSearchCache.bind(n),clearCaches:n.clearCaches.bind(n)}}function cosmiconfigSync(e,t={}){const u=normalizeOptions(e,t);const n=new s.ExplorerSync(u);return{search:n.searchSync.bind(n),load:n.loadSync.bind(n),clearLoadCache:n.clearLoadCache.bind(n),clearSearchCache:n.clearSearchCache.bind(n),clearCaches:n.clearCaches.bind(n)}}const a=Object.freeze({".cjs":i.loaders.loadJs,".js":i.loaders.loadJs,".json":i.loaders.loadJson,".yaml":i.loaders.loadYaml,".yml":i.loaders.loadYaml,noExt:i.loaders.loadYaml});t.defaultLoaders=a;const c=function identity(e){return e};function normalizeOptions(e,t){const u={packageProp:e,searchPlaces:["package.json",`.${e}rc`,`.${e}rc.json`,`.${e}rc.yaml`,`.${e}rc.yml`,`.${e}rc.js`,`.${e}rc.cjs`,`${e}.config.js`,`${e}.config.cjs`],ignoreEmptySearchPlaces:true,stopDir:n.default.homedir(),cache:true,transform:c,loaders:a};const r={...u,...t,loaders:{...u.loaders,...t.loaders}};return r}},490:function(){"use strict"},501:function(e,t,u){"use strict";const{promisify:n}=u(669);const r=u(747);async function isType(e,t,u){if(typeof u!=="string"){throw new TypeError(`Expected a string, got ${typeof u}`)}try{const s=await n(r[e])(u);return s[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}function isTypeSync(e,t,u){if(typeof u!=="string"){throw new TypeError(`Expected a string, got ${typeof u}`)}try{return r[e](u)[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}t.isFile=isType.bind(null,"stat","isFile");t.isDirectory=isType.bind(null,"stat","isDirectory");t.isSymlink=isType.bind(null,"lstat","isSymbolicLink");t.isFileSync=isTypeSync.bind(null,"statSync","isFile");t.isDirectorySync=isTypeSync.bind(null,"statSync","isDirectory");t.isSymlinkSync=isTypeSync.bind(null,"lstatSync","isSymbolicLink")},513:function(e,t){"use strict";const u={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."};const n={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};const r="tag:yaml.org,2002:";const s={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function findLineStarts(e){const t=[0];let u=e.indexOf("\n");while(u!==-1){u+=1;t.push(u);u=e.indexOf("\n",u)}return t}function getSrcInfo(e){let t,u;if(typeof e==="string"){t=findLineStarts(e);u=e}else{if(Array.isArray(e))e=e[0];if(e&&e.context){if(!e.lineStarts)e.lineStarts=findLineStarts(e.context.src);t=e.lineStarts;u=e.context.src}}return{lineStarts:t,src:u}}function getLinePos(e,t){if(typeof e!=="number"||e<0)return null;const{lineStarts:u,src:n}=getSrcInfo(t);if(!u||!n||e>n.length)return null;for(let t=0;t=1)||e>u.length)return null;const r=u[e-1];let s=u[e];while(s&&s>r&&n[s-1]==="\n")--s;return n.slice(r,s)}function getPrettyContext({start:e,end:t},u,n=80){let r=getLine(e.line,u);if(!r)return null;let{col:s}=e;if(r.length>n){if(s<=n-10){r=r.substr(0,n-1)+"…"}else{const e=Math.round(n/2);if(r.length>s+e)r=r.substr(0,s+e-1)+"…";s-=r.length-n;r="…"+r.substr(1-n)}}let i=1;let o="";if(t){if(t.line===e.line&&s+(t.col-e.col)<=n+1){i=t.col-e.col}else{i=Math.min(r.length+1,n)-s;o="…"}}const a=s>1?" ".repeat(s-1):"";const c="^".repeat(i);return`${r}\n${a}${c}${o}`}class Range{static copy(e){return new Range(e.start,e.end)}constructor(e,t){this.start=e;this.end=t||e}isEmpty(){return typeof this.start!=="number"||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:u,end:n}=this;if(e.length===0||n<=e[0]){this.origStart=u;this.origEnd=n;return t}let r=t;while(ru)break;else++r}this.origStart=u+r;const s=r;while(r=n)break;else++r}this.origEnd=n+r;return s}}class Node{static addStringTerminator(e,t,u){if(u[u.length-1]==="\n")return u;const n=Node.endOfWhiteSpace(e,t);return n>=e.length||e[n]==="\n"?u+"\n":u}static atDocumentBoundary(e,t,n){const r=e[t];if(!r)return true;const s=e[t-1];if(s&&s!=="\n")return false;if(n){if(r!==n)return false}else{if(r!==u.DIRECTIVES_END&&r!==u.DOCUMENT_END)return false}const i=e[t+1];const o=e[t+2];if(i!==r||o!==r)return false;const a=e[t+3];return!a||a==="\n"||a==="\t"||a===" "}static endOfIdentifier(e,t){let u=e[t];const n=u==="<";const r=n?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];while(u&&r.indexOf(u)===-1)u=e[t+=1];if(n&&u===">")t+=1;return t}static endOfIndent(e,t){let u=e[t];while(u===" ")u=e[t+=1];return t}static endOfLine(e,t){let u=e[t];while(u&&u!=="\n")u=e[t+=1];return t}static endOfWhiteSpace(e,t){let u=e[t];while(u==="\t"||u===" ")u=e[t+=1];return t}static startOfLine(e,t){let u=e[t-1];if(u==="\n")return t;while(u&&u!=="\n")u=e[t-=1];return t+1}static endOfBlockIndent(e,t,u){const n=Node.endOfIndent(e,u);if(n>u+t){return n}else{const t=Node.endOfWhiteSpace(e,n);const u=e[t];if(!u||u==="\n")return t}return null}static atBlank(e,t,u){const n=e[t];return n==="\n"||n==="\t"||n===" "||u&&!n}static nextNodeIsIndented(e,t,u){if(!e||t<0)return false;if(t>0)return true;return u&&e==="-"}static normalizeOffset(e,t){const u=e[t];return!u?t:u!=="\n"&&e[t-1]==="\n"?t-1:Node.endOfWhiteSpace(e,t)}static foldNewline(e,t,u){let n=0;let r=false;let s="";let i=e[t+1];while(i===" "||i==="\t"||i==="\n"){switch(i){case"\n":n=0;t+=1;s+="\n";break;case"\t":if(n<=u)r=true;t=Node.endOfWhiteSpace(e,t+2)-1;break;case" ":n+=1;t+=1;break}i=e[t+1]}if(!s)s=" ";if(i&&n<=u)r=true;return{fold:s,offset:t,error:r}}constructor(e,t,u){Object.defineProperty(this,"context",{value:u||null,writable:true});this.error=null;this.range=null;this.valueRange=null;this.props=t||[];this.type=e;this.value=null}getPropValue(e,t,u){if(!this.context)return null;const{src:n}=this.context;const r=this.props[e];return r&&n[r.start]===t?n.slice(r.start+(u?1:0),r.end):null}get anchor(){for(let e=0;e0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return false;if(!this.valueRange)return false;const{end:u}=this.valueRange;return e!==u||Node.atBlank(t,u-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;tu.setOrigRange(e,t));return t}toString(){const{context:{src:e},range:t,value:u}=this;if(u!=null)return u;const n=e.slice(t.start,t.end);return Node.addStringTerminator(e,t.end,n)}}class YAMLError extends Error{constructor(e,t,u){if(!u||!(t instanceof Node))throw new Error(`Invalid arguments for new ${e}`);super();this.name=e;this.message=u;this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if(typeof this.offset==="number"){this.range=new Range(this.offset,this.offset+1);const t=e&&getLinePos(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else{this.range=this.source.range;this.linePos=this.source.rangeAsLinePos}if(this.linePos){const{line:t,col:u}=this.linePos.start;this.message+=` at line ${t}, column ${u}`;const n=e&&getPrettyContext(this.linePos,e);if(n)this.message+=`:\n\n${n}\n`}delete this.source}}class YAMLReferenceError extends YAMLError{constructor(e,t){super("YAMLReferenceError",e,t)}}class YAMLSemanticError extends YAMLError{constructor(e,t){super("YAMLSemanticError",e,t)}}class YAMLSyntaxError extends YAMLError{constructor(e,t){super("YAMLSyntaxError",e,t)}}class YAMLWarning extends YAMLError{constructor(e,t){super("YAMLWarning",e,t)}}function _defineProperty(e,t,u){if(t in e){Object.defineProperty(e,t,{value:u,enumerable:true,configurable:true,writable:true})}else{e[t]=u}return e}class PlainValue extends Node{static endOfLine(e,t,u){let n=e[t];let r=t;while(n&&n!=="\n"){if(u&&(n==="["||n==="]"||n==="{"||n==="}"||n===","))break;const t=e[r+1];if(n===":"&&(!t||t==="\n"||t==="\t"||t===" "||u&&t===","))break;if((n===" "||n==="\t")&&t==="#")break;r+=1;n=t}return r}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:u}=this.context;let n=u[t-1];while(es?u.slice(s,n+1):e}else{r+=e}}const s=u[e];switch(s){case"\t":{const e="Plain value cannot start with a tab character";const t=[new YAMLSemanticError(this,e)];return{errors:t,str:r}}case"@":case"`":{const e=`Plain value cannot start with reserved character ${s}`;const t=[new YAMLSemanticError(this,e)];return{errors:t,str:r}}default:return r}}parseBlockValue(e){const{indent:t,inFlow:u,src:n}=this.context;let r=e;let s=e;for(let e=n[r];e==="\n";e=n[r]){if(Node.atDocumentBoundary(n,r+1))break;const e=Node.endOfBlockIndent(n,t,r+1);if(e===null||n[e]==="#")break;if(n[e]==="\n"){r=e}else{s=PlainValue.endOfLine(n,e,u);r=s}}if(this.valueRange.isEmpty())this.valueRange.start=e;this.valueRange.end=s;return s}parse(e,t){this.context=e;const{inFlow:u,src:n}=e;let r=t;const s=n[r];if(s&&s!=="#"&&s!=="\n"){r=PlainValue.endOfLine(n,t,u)}this.valueRange=new Range(t,r);r=Node.endOfWhiteSpace(n,r);r=this.parseComment(r);if(!this.hasComment||this.valueRange.isEmpty()){r=this.parseBlockValue(r)}return r}}t.Char=u;t.Node=Node;t.PlainValue=PlainValue;t.Range=Range;t.Type=n;t.YAMLError=YAMLError;t.YAMLReferenceError=YAMLReferenceError;t.YAMLSemanticError=YAMLSemanticError;t.YAMLSyntaxError=YAMLSyntaxError;t.YAMLWarning=YAMLWarning;t._defineProperty=_defineProperty;t.defaultTagPrefix=r;t.defaultTags=s},519:function(e){e.exports=require("next/dist/compiled/semver")},521:function(e,t,u){e.exports=u(792).YAML},525:function(e,t,u){"use strict";var n=u(513);var r=u(310);var s=u(626);function createMap(e,t,u){const n=new r.YAMLMap(e);if(t instanceof Map){for(const[r,s]of t)n.items.push(e.createPair(r,s,u))}else if(t&&typeof t==="object"){for(const r of Object.keys(t))n.items.push(e.createPair(r,t[r],u))}if(typeof e.sortMapEntries==="function"){n.items.sort(e.sortMapEntries)}return n}const i={createNode:createMap,default:true,nodeClass:r.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:r.resolveMap};function createSeq(e,t,u){const n=new r.YAMLSeq(e);if(t&&t[Symbol.iterator]){for(const r of t){const t=e.createNode(r,u.wrapScalars,null,u);n.items.push(t)}}return n}const o={createNode:createSeq,default:true,nodeClass:r.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:r.resolveSeq};const a={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:r.resolveString,stringify(e,t,u,n){t=Object.assign({actualString:true},t);return r.stringifyString(e,t,u,n)},options:r.strOptions};const c=[i,o,a];const f=e=>typeof e==="bigint"||Number.isInteger(e);const l=(e,t,u)=>r.intOptions.asBigInt?BigInt(e):parseInt(t,u);function intStringify(e,t,u){const{value:n}=e;if(f(n)&&n>=0)return u+n.toString(t);return r.stringifyNumber(e)}const h={identify:e=>e==null,createNode:(e,t,u)=>u.wrapScalars?new r.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:r.nullOptions,stringify:()=>r.nullOptions.nullStr};const D={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>e[0]==="t"||e[0]==="T",options:r.boolOptions,stringify:({value:e})=>e?r.boolOptions.trueStr:r.boolOptions.falseStr};const d={identify:e=>f(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>l(e,t,8),options:r.intOptions,stringify:e=>intStringify(e,8,"0o")};const p={identify:f,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>l(e,e,10),options:r.intOptions,stringify:r.stringifyNumber};const A={identify:e=>f(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>l(e,t,16),options:r.intOptions,stringify:e=>intStringify(e,16,"0x")};const C={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber};const g={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()};const F={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,u){const n=t||u;const s=new r.Scalar(parseFloat(e));if(n&&n[n.length-1]==="0")s.minFractionDigits=n.length;return s},stringify:r.stringifyNumber};const E=c.concat([h,D,d,p,A,C,g,F]);const w=e=>typeof e==="bigint"||Number.isInteger(e);const B=({value:e})=>JSON.stringify(e);const y=[i,o,{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:r.resolveString,stringify:B},{identify:e=>e==null,createNode:(e,t,u)=>u.wrapScalars?new r.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:B},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:B},{identify:w,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>r.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>w(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:B}];y.scalarFallback=(e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)});const m=({value:e})=>e?r.boolOptions.trueStr:r.boolOptions.falseStr;const v=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve$1(e,t,u){let n=t.replace(/_/g,"");if(r.intOptions.asBigInt){switch(u){case 2:n=`0b${n}`;break;case 8:n=`0o${n}`;break;case 16:n=`0x${n}`;break}const t=BigInt(n);return e==="-"?BigInt(-1)*t:t}const s=parseInt(n,u);return e==="-"?-1*s:s}function intStringify$1(e,t,u){const{value:n}=e;if(v(n)){const e=n.toString(t);return n<0?"-"+u+e.substr(1):u+e}return r.stringifyNumber(e)}const S=c.concat([{identify:e=>e==null,createNode:(e,t,u)=>u.wrapScalars?new r.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:r.nullOptions,stringify:()=>r.nullOptions.nullStr},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>true,options:r.boolOptions,stringify:m},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>false,options:r.boolOptions,stringify:m},{identify:v,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,u)=>intResolve$1(t,u,2),stringify:e=>intStringify$1(e,2,"0b")},{identify:v,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,u)=>intResolve$1(t,u,8),stringify:e=>intStringify$1(e,8,"0")},{identify:v,default:true,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,u)=>intResolve$1(t,u,10),stringify:r.stringifyNumber},{identify:v,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,u)=>intResolve$1(t,u,16),stringify:e=>intStringify$1(e,16,"0x")},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const u=new r.Scalar(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");if(e[e.length-1]==="0")u.minFractionDigits=e.length}return u},stringify:r.stringifyNumber}],s.binary,s.omap,s.pairs,s.set,s.intTime,s.floatTime,s.timestamp);const b={core:E,failsafe:c,json:y,yaml11:S};const O={binary:s.binary,bool:D,float:F,floatExp:g,floatNaN:C,floatTime:s.floatTime,int:p,intHex:A,intOct:d,intTime:s.intTime,map:i,null:h,omap:s.omap,pairs:s.pairs,seq:o,set:s.set,timestamp:s.timestamp};function findTagObject(e,t,u){if(t){const e=u.filter(e=>e.tag===t);const n=e.find(e=>!e.format)||e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return u.find(t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format)}function createNode(e,t,u){if(e instanceof r.Node)return e;const{defaultPrefix:n,onTagObj:s,prevObjects:a,schema:c,wrapScalars:f}=u;if(t&&t.startsWith("!!"))t=n+t.slice(2);let l=findTagObject(e,t,c.tags);if(!l){if(typeof e.toJSON==="function")e=e.toJSON();if(typeof e!=="object")return f?new r.Scalar(e):e;l=e instanceof Map?i:e[Symbol.iterator]?o:i}if(s){s(l);delete u.onTagObj}const h={};if(e&&typeof e==="object"&&a){const t=a.get(e);if(t){const e=new r.Alias(t);u.aliasNodes.push(e);return e}h.value=e;a.set(e,h)}h.node=l.createNode?l.createNode(u.schema,e,u):f?new r.Scalar(e):e;if(t&&h.node instanceof r.Node)h.node.tag=t;return h.node}function getSchemaTags(e,t,u,n){let r=e[n.replace(/\W/g,"")];if(!r){const t=Object.keys(e).map(e=>JSON.stringify(e)).join(", ");throw new Error(`Unknown schema "${n}"; use one of ${t}`)}if(Array.isArray(u)){for(const e of u)r=r.concat(e)}else if(typeof u==="function"){r=u(r.slice())}for(let e=0;eJSON.stringify(e)).join(", ");throw new Error(`Unknown custom tag "${u}"; use one of ${e}`)}r[e]=n}}return r}const M=(e,t)=>e.keyt.key?1:0;class Schema{constructor({customTags:e,merge:t,schema:u,sortMapEntries:n,tags:r}){this.merge=!!t;this.name=u;this.sortMapEntries=n===true?M:n||null;if(!e&&r)s.warnOptionDeprecation("tags","customTags");this.tags=getSchemaTags(b,O,e||r,u)}createNode(e,t,u,n){const r={defaultPrefix:Schema.defaultPrefix,schema:this,wrapScalars:t};const s=n?Object.assign(n,r):r;return createNode(e,u,s)}createPair(e,t,u){if(!u)u={wrapScalars:true};const n=this.createNode(e,u.wrapScalars,null,u);const s=this.createNode(t,u.wrapScalars,null,u);return new r.Pair(n,s)}}n._defineProperty(Schema,"defaultPrefix",n.defaultTagPrefix);n._defineProperty(Schema,"defaultTags",n.defaultTags);t.Schema=Schema},526:function(e,t,u){"use strict";const n=u(277);const r=u(282);const s=u(747);const i=(e,t,u)=>{if(typeof e!=="string"){throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof e}\``)}if(typeof t!=="string"){throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof t}\``)}try{e=s.realpathSync(e)}catch(t){if(t.code==="ENOENT"){e=n.resolve(e)}else if(u){return null}else{throw t}}const i=n.join(e,"noop.js");const o=()=>r._resolveFilename(t,{id:i,filename:i,paths:r._nodeModulePaths(e)});if(u){try{return o()}catch(e){return null}}return o()};e.exports=((e,t)=>i(e,t));e.exports.silent=((e,t)=>i(e,t,true))},560:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(241));var r=_interopRequireDefault(u(277));var s=_interopRequireDefault(u(747));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function fromBase64(e){if(Buffer){return Buffer.from(e,"base64").toString()}else{return window.atob(e)}}var i=function(){function PreviousMap(e,t){this.loadAnnotation(e);this.inline=this.startWith(this.annotation,"data:");var u=t.map?t.map.prev:undefined;var n=this.loadMap(t.from,u);if(n)this.text=n}var e=PreviousMap.prototype;e.consumer=function consumer(){if(!this.consumerCache){this.consumerCache=new n.default.SourceMapConsumer(this.text)}return this.consumerCache};e.withContent=function withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)};e.startWith=function startWith(e,t){if(!e)return false;return e.substr(0,t.length)===t};e.getAnnotationURL=function getAnnotationURL(e){return e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1].trim()};e.loadAnnotation=function loadAnnotation(e){var t=e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//gm);if(t&&t.length>0){var u=t[t.length-1];if(u){this.annotation=this.getAnnotationURL(u)}}};e.decodeInline=function decodeInline(e){var t=/^data:application\/json;charset=utf-?8;base64,/;var u=/^data:application\/json;base64,/;var n="data:application/json,";if(this.startWith(e,n)){return decodeURIComponent(e.substr(n.length))}if(t.test(e)||u.test(e)){return fromBase64(e.substr(RegExp.lastMatch.length))}var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)};e.loadMap=function loadMap(e,t){if(t===false)return false;if(t){if(typeof t==="string"){return t}else if(typeof t==="function"){var u=t(e);if(u&&s.default.existsSync&&s.default.existsSync(u)){return s.default.readFileSync(u,"utf-8").toString().trim()}else{throw new Error("Unable to load previous source map: "+u.toString())}}else if(t instanceof n.default.SourceMapConsumer){return n.default.SourceMapGenerator.fromSourceMap(t).toString()}else if(t instanceof n.default.SourceMapGenerator){return t.toString()}else if(this.isMap(t)){return JSON.stringify(t)}else{throw new Error("Unsupported previous source map format: "+t.toString())}}else if(this.inline){return this.decodeInline(this.annotation)}else if(this.annotation){var i=this.annotation;if(e)i=r.default.join(r.default.dirname(e),i);this.root=r.default.dirname(i);if(s.default.existsSync&&s.default.existsSync(i)){return s.default.readFileSync(i,"utf-8").toString().trim()}else{return false}}};e.isMap=function isMap(e){if(typeof e!=="object")return false;return typeof e.mappings==="string"||typeof e._mappings==="string"};return PreviousMap}();var o=i;t.default=o;e.exports=t.default},573:function(e,t,u){"use strict";const n=u(87);const r=u(21);const{env:s}=process;let i;if(r("no-color")||r("no-colors")||r("color=false")||r("color=never")){i=0}else if(r("color")||r("colors")||r("color=true")||r("color=always")){i=1}if("FORCE_COLOR"in s){if(s.FORCE_COLOR===true||s.FORCE_COLOR==="true"){i=1}else if(s.FORCE_COLOR===false||s.FORCE_COLOR==="false"){i=0}else{i=s.FORCE_COLOR.length===0?1:Math.min(parseInt(s.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(i===0){return 0}if(r("color=16m")||r("color=full")||r("color=truecolor")){return 3}if(r("color=256")){return 2}if(e&&!e.isTTY&&i===undefined){return 0}const t=i||0;if(s.TERM==="dumb"){return t}if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in s)||s.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},585:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(893));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var u=0;un(e)).join("\n")}else{return t[0]}})}function shouldHighlight(e){return s.default.supportsColor||e.forceColor}function getChalk(e){let t=s.default;if(e.forceColor){t=new s.default.constructor({enabled:true,level:1})}return t}function highlight(e,t={}){if(shouldHighlight(t)){const u=getChalk(t);const n=getDefs(u);return highlightTokens(n,e)}else{return e}}},594:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getExtensionDescription=getExtensionDescription;t.ExplorerBase=void 0;var n=_interopRequireDefault(u(277));var r=u(690);var s=u(208);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class ExplorerBase{constructor(e){if(e.cache===true){this.loadCache=new Map;this.searchCache=new Map}this.config=e;this.validateConfig()}clearLoadCache(){if(this.loadCache){this.loadCache.clear()}}clearSearchCache(){if(this.searchCache){this.searchCache.clear()}}clearCaches(){this.clearLoadCache();this.clearSearchCache()}validateConfig(){const e=this.config;e.searchPlaces.forEach(t=>{const u=n.default.extname(t)||"noExt";const r=e.loaders[u];if(!r){throw new Error(`No loader specified for ${getExtensionDescription(t)}, so searchPlaces item "${t}" is invalid`)}if(typeof r!=="function"){throw new Error(`loader for ${getExtensionDescription(t)} is not a function (type provided: "${typeof r}"), so searchPlaces item "${t}" is invalid`)}})}shouldSearchStopWithResult(e){if(e===null)return false;if(e.isEmpty&&this.config.ignoreEmptySearchPlaces)return false;return true}nextDirectoryToSearch(e,t){if(this.shouldSearchStopWithResult(t)){return null}const u=nextDirUp(e);if(u===e||e===this.config.stopDir){return null}return u}loadPackageProp(e,t){const u=r.loaders.loadJson(e,t);const n=(0,s.getPropertyByPath)(u,this.config.packageProp);return n||null}getLoaderEntryForFile(e){if(n.default.basename(e)==="package.json"){const e=this.loadPackageProp.bind(this);return e}const t=n.default.extname(e)||"noExt";const u=this.config.loaders[t];if(!u){throw new Error(`No loader specified for ${getExtensionDescription(e)}`)}return u}loadedContentToCosmiconfigResult(e,t){if(t===null){return null}if(t===undefined){return{filepath:e,config:undefined,isEmpty:true}}return{config:t,filepath:e}}validateFilePath(e){if(!e){throw new Error("load must pass a non-empty string")}}}t.ExplorerBase=ExplorerBase;function nextDirUp(e){return n.default.dirname(e)}function getExtensionDescription(e){const t=n.default.extname(e);return t?`extension "${t}"`:"files without extensions"}},622:function(e,t){"use strict";t.__esModule=true;t.default=tokenizer;var u="'".charCodeAt(0);var n='"'.charCodeAt(0);var r="\\".charCodeAt(0);var s="/".charCodeAt(0);var i="\n".charCodeAt(0);var o=" ".charCodeAt(0);var a="\f".charCodeAt(0);var c="\t".charCodeAt(0);var f="\r".charCodeAt(0);var l="[".charCodeAt(0);var h="]".charCodeAt(0);var D="(".charCodeAt(0);var d=")".charCodeAt(0);var p="{".charCodeAt(0);var A="}".charCodeAt(0);var C=";".charCodeAt(0);var g="*".charCodeAt(0);var F=":".charCodeAt(0);var E="@".charCodeAt(0);var w=/[ \n\t\r\f{}()'"\\;/[\]#]/g;var B=/[ \n\t\r\f(){}:;@!'"\\\][#]|\/(?=\*)/g;var y=/.[\\/("'\n]/;var m=/[a-f0-9]/i;function tokenizer(e,t){if(t===void 0){t={}}var v=e.css.valueOf();var S=t.ignoreErrors;var b,O,M,N,R,T,L;var $,x,I,P,_,Y,j;var W=v.length;var q=-1;var U=1;var J=0;var Q=[];var z=[];function position(){return J}function unclosed(t){throw e.error("Unclosed "+t,U,J-q)}function endOfFile(){return z.length===0&&J>=W}function nextToken(e){if(z.length)return z.pop();if(J>=W)return;var t=e?e.ignoreUnclosed:false;b=v.charCodeAt(J);if(b===i||b===a||b===f&&v.charCodeAt(J+1)!==i){q=J;U+=1}switch(b){case i:case o:case c:case f:case a:O=J;do{O+=1;b=v.charCodeAt(O);if(b===i){q=O;U+=1}}while(b===o||b===i||b===c||b===f||b===a);j=["space",v.slice(J,O)];J=O-1;break;case l:case h:case p:case A:case F:case C:case d:var G=String.fromCharCode(b);j=[G,G,U,J-q];break;case D:_=Q.length?Q.pop()[1]:"";Y=v.charCodeAt(J+1);if(_==="url"&&Y!==u&&Y!==n&&Y!==o&&Y!==i&&Y!==c&&Y!==a&&Y!==f){O=J;do{I=false;O=v.indexOf(")",O+1);if(O===-1){if(S||t){O=J;break}else{unclosed("bracket")}}P=O;while(v.charCodeAt(P-1)===r){P-=1;I=!I}}while(I);j=["brackets",v.slice(J,O+1),U,J-q,U,O-q];J=O}else{O=v.indexOf(")",J+1);T=v.slice(J,O+1);if(O===-1||y.test(T)){j=["(","(",U,J-q]}else{j=["brackets",T,U,J-q,U,O-q];J=O}}break;case u:case n:M=b===u?"'":'"';O=J;do{I=false;O=v.indexOf(M,O+1);if(O===-1){if(S||t){O=J+1;break}else{unclosed("string")}}P=O;while(v.charCodeAt(P-1)===r){P-=1;I=!I}}while(I);T=v.slice(J,O+1);N=T.split("\n");R=N.length-1;if(R>0){$=U+R;x=O-N[R].length}else{$=U;x=q}j=["string",v.slice(J,O+1),U,J-q,$,O-x];q=x;U=$;J=O;break;case E:w.lastIndex=J+1;w.test(v);if(w.lastIndex===0){O=v.length-1}else{O=w.lastIndex-2}j=["at-word",v.slice(J,O+1),U,J-q,U,O-q];J=O;break;case r:O=J;L=true;while(v.charCodeAt(O+1)===r){O+=1;L=!L}b=v.charCodeAt(O+1);if(L&&b!==s&&b!==o&&b!==i&&b!==c&&b!==f&&b!==a){O+=1;if(m.test(v.charAt(O))){while(m.test(v.charAt(O+1))){O+=1}if(v.charCodeAt(O+1)===o){O+=1}}}j=["word",v.slice(J,O+1),U,J-q,U,O-q];J=O;break;default:if(b===s&&v.charCodeAt(J+1)===g){O=v.indexOf("*/",J+2)+1;if(O===0){if(S||t){O=v.length}else{unclosed("comment")}}T=v.slice(J,O+1);N=T.split("\n");R=N.length-1;if(R>0){$=U+R;x=O-N[R].length}else{$=U;x=q}j=["comment",T,U,J-q,$,O-x];q=x;U=$;J=O}else{B.lastIndex=J+1;B.test(v);if(B.lastIndex===0){O=v.length-1}else{O=B.lastIndex-2}j=["word",v.slice(J,O+1),U,J-q,U,O-q];Q.push(j);J=O}break}J++;return j}function back(e){z.push(e)}return{back:back,nextToken:nextToken,endOfFile:endOfFile,position:position}}e.exports=t.default},626:function(e,t,u){"use strict";var n=u(513);var r=u(310);const s={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{const u=r.resolveString(e,t);if(typeof Buffer==="function"){return Buffer.from(u,"base64")}else if(typeof atob==="function"){const e=atob(u.replace(/[\n\r]/g,""));const t=new Uint8Array(e.length);for(let u=0;u{let a;if(typeof Buffer==="function"){a=u instanceof Buffer?u.toString("base64"):Buffer.from(u.buffer).toString("base64")}else if(typeof btoa==="function"){let e="";for(let t=0;t1){const e="Each pair must have its own sequence indicator";throw new n.YAMLSemanticError(t,e)}const e=s.items[0]||new r.Pair;if(s.commentBefore)e.commentBefore=e.commentBefore?`${s.commentBefore}\n${e.commentBefore}`:s.commentBefore;if(s.comment)e.comment=e.comment?`${s.comment}\n${e.comment}`:s.comment;s=e}u.items[e]=s instanceof r.Pair?s:new r.Pair(s)}return u}function createPairs(e,t,u){const n=new r.YAMLSeq(e);n.tag="tag:yaml.org,2002:pairs";for(const r of t){let t,s;if(Array.isArray(r)){if(r.length===2){t=r[0];s=r[1]}else throw new TypeError(`Expected [key, value] tuple: ${r}`)}else if(r&&r instanceof Object){const e=Object.keys(r);if(e.length===1){t=e[0];s=r[t]}else throw new TypeError(`Expected { key: value } tuple: ${r}`)}else{t=r}const i=e.createPair(t,s,u);n.items.push(i)}return n}const i={default:false,tag:"tag:yaml.org,2002:pairs",resolve:parsePairs,createNode:createPairs};class YAMLOMap extends r.YAMLSeq{constructor(){super();n._defineProperty(this,"add",r.YAMLMap.prototype.add.bind(this));n._defineProperty(this,"delete",r.YAMLMap.prototype.delete.bind(this));n._defineProperty(this,"get",r.YAMLMap.prototype.get.bind(this));n._defineProperty(this,"has",r.YAMLMap.prototype.has.bind(this));n._defineProperty(this,"set",r.YAMLMap.prototype.set.bind(this));this.tag=YAMLOMap.tag}toJSON(e,t){const u=new Map;if(t&&t.onCreate)t.onCreate(u);for(const e of this.items){let n,s;if(e instanceof r.Pair){n=r.toJSON(e.key,"",t);s=r.toJSON(e.value,n,t)}else{n=r.toJSON(e,"",t)}if(u.has(n))throw new Error("Ordered maps must not include duplicate keys");u.set(n,s)}return u}}n._defineProperty(YAMLOMap,"tag","tag:yaml.org,2002:omap");function parseOMap(e,t){const u=parsePairs(e,t);const s=[];for(const{key:e}of u.items){if(e instanceof r.Scalar){if(s.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new n.YAMLSemanticError(t,e)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,u)}function createOMap(e,t,u){const n=createPairs(e,t,u);const r=new YAMLOMap;r.items=n.items;return r}const o={identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve:parseOMap,createNode:createOMap};class YAMLSet extends r.YAMLMap{constructor(){super();this.tag=YAMLSet.tag}add(e){const t=e instanceof r.Pair?e:new r.Pair(e);const u=r.findPair(this.items,t.key);if(!u)this.items.push(t)}get(e,t){const u=r.findPair(this.items,e);return!t&&u instanceof r.Pair?u.key instanceof r.Scalar?u.key.value:u.key:u}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const u=r.findPair(this.items,e);if(u&&!t){this.items.splice(this.items.indexOf(u),1)}else if(!u&&t){this.items.push(new r.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,u){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,u);else throw new Error("Set items must all have null values")}}n._defineProperty(YAMLSet,"tag","tag:yaml.org,2002:set");function parseSet(e,t){const u=r.resolveMap(e,t);if(!u.hasAllNullValues())throw new n.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new YAMLSet,u)}function createSet(e,t,u){const n=new YAMLSet;for(const r of t)n.items.push(e.createPair(r,null,u));return n}const a={identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",resolve:parseSet,createNode:createSet};const c=(e,t)=>{const u=t.split(":").reduce((e,t)=>e*60+Number(t),0);return e==="-"?-u:u};const f=({value:e})=>{if(isNaN(e)||!isFinite(e))return r.stringifyNumber(e);let t="";if(e<0){t="-";e=Math.abs(e)}const u=[e%60];if(e<60){u.unshift(0)}else{e=Math.round((e-u[0])/60);u.unshift(e%60);if(e>=60){e=Math.round((e-u[0])/60);u.unshift(e)}}return t+u.map(e=>e<10?"0"+String(e):String(e)).join(":").replace(/000000\d*$/,"")};const l={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,u)=>c(t,u.replace(/_/g,"")),stringify:f};const h={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,u)=>c(t,u.replace(/_/g,"")),stringify:f};const D={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:"+"([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?"+")$"),resolve:(e,t,u,n,r,s,i,o,a)=>{if(o)o=(o+"00").substr(1,3);let f=Date.UTC(t,u-1,n,r||0,s||0,i||0,o||0);if(a&&a!=="Z"){let e=c(a[0],a.slice(1));if(Math.abs(e)<30)e*=60;f-=6e4*e}return new Date(f)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function shouldWarn(e){const t=typeof process!=="undefined"&&process.env||{};if(e){if(typeof YAML_SILENCE_DEPRECATION_WARNINGS!=="undefined")return!YAML_SILENCE_DEPRECATION_WARNINGS;return!t.YAML_SILENCE_DEPRECATION_WARNINGS}if(typeof YAML_SILENCE_WARNINGS!=="undefined")return!YAML_SILENCE_WARNINGS;return!t.YAML_SILENCE_WARNINGS}function warn(e,t){if(shouldWarn(false)){const u=typeof process!=="undefined"&&process.emitWarning;if(u)u(e,t);else{console.warn(t?`${t}: ${e}`:e)}}}function warnFileDeprecation(e){if(shouldWarn(true)){const t=e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");warn(`The endpoint 'yaml/${t}' will be removed in a future release.`,"DeprecationWarning")}}const d={};function warnOptionDeprecation(e,t){if(!d[e]&&shouldWarn(true)){d[e]=true;let u=`The option '${e}' will be removed in a future release`;u+=t?`, use '${t}' instead.`:".";warn(u,"DeprecationWarning")}}t.binary=s;t.floatTime=h;t.intTime=l;t.omap=o;t.pairs=i;t.set=a;t.timestamp=D;t.warn=warn;t.warnFileDeprecation=warnFileDeprecation;t.warnOptionDeprecation=warnOptionDeprecation},669:function(e){e.exports=require("util")},690:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loaders=void 0;let n;const r=function loadJs(e){if(n===undefined){n=u(402)}const t=n(e);return t};let s;const i=function loadJson(e,t){if(s===undefined){s=u(32)}try{const u=s(t);return u}catch(t){t.message=`JSON Error in ${e}:\n${t.message}`;throw t}};let o;const a=function loadYaml(e,t){if(o===undefined){o=u(521)}try{const u=o.parse(t,{prettyErrors:true});return u}catch(t){t.message=`YAML Error in ${e}:\n${t.message}`;throw t}};const c={loadJs:r,loadJson:i,loadYaml:a};t.loaders=c},693:function(e,t,u){"use strict";e=u.nmd(e);Object.defineProperty(t,"__esModule",{value:true});t.loadConfig=loadConfig;t.getPostcssOptions=getPostcssOptions;t.exec=exec;t.normalizeSourceMap=normalizeSourceMap;t.normalizeSourceMapAfterPostcss=normalizeSourceMapAfterPostcss;var n=_interopRequireDefault(u(277));var r=_interopRequireDefault(u(282));var s=u(150);var i=u(471);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=e;const a=(e,t)=>new Promise((u,n)=>{e.stat(t,(e,t)=>{if(e){n(e)}u(t)})});function exec(e,t){const{resource:u,context:n}=t;const s=new r.default(u,o);s.paths=r.default._nodeModulePaths(n);s.filename=u;s._compile(e,u);return s.exports}async function loadConfig(e,t){const u=typeof t==="string"?n.default.resolve(t):n.default.dirname(e.resourcePath);let r;try{r=await a(e.fs,u)}catch(e){throw new Error(`No PostCSS config found in: ${u}`)}const o=(0,i.cosmiconfig)("postcss");let c;try{if(r.isFile()){c=await o.load(u)}else{c=await o.search(u)}}catch(e){throw e}if(!c){return{}}e.addDependency(c.filepath);if(c.isEmpty){return c}if(typeof c.config==="function"){const t={mode:e.mode,file:e.resourcePath,webpackLoaderContext:e};c.config=c.config(t)}c=(0,s.klona)(c);return c}function loadPlugin(e,t,u){try{if(!t||Object.keys(t).length===0){const t=require(e);if(t.default){return t.default}return t}const n=require(e);if(n.default){return n.default(t)}return n(t)}catch(t){throw new Error(`Loading PostCSS "${e}" plugin failed: ${t.message}\n\n(@${u})`)}}function pluginFactory(){const e=new Map;return t=>{if(typeof t==="undefined"){return e}if(Array.isArray(t)){for(const u of t){if(Array.isArray(u)){const[t,n]=u;e.set(t,n)}else if(u&&typeof u==="function"){e.set(u)}else if(u&&Object.keys(u).length===1&&(typeof u[Object.keys(u)[0]]==="object"||typeof u[Object.keys(u)[0]]==="boolean")&&u[Object.keys(u)[0]]!==null){const[t]=Object.keys(u);const n=u[t];if(n===false){e.delete(t)}else{e.set(t,n)}}else if(u){e.set(u)}}}else{const u=Object.entries(t);for(const[t,n]of u){if(n===false){e.delete(t)}else{e.set(t,n)}}}return e}}function getPostcssOptions(e,t={},u={}){const r=e.resourcePath;let i=u;if(typeof i==="function"){i=i(e)}let o=[];try{const u=pluginFactory();if(t.config&&t.config.plugins){u(t.config.plugins)}u(i.plugins);o=[...u()].map(e=>{const[t,u]=e;if(typeof t==="string"){return loadPlugin(t,u,r)}return t})}catch(t){e.emitError(t)}const a=t.config||{};if(a.from){a.from=n.default.resolve(n.default.dirname(t.filepath),a.from)}if(a.to){a.to=n.default.resolve(n.default.dirname(t.filepath),a.to)}delete a.plugins;const c=(0,s.klona)(i);if(c.from){c.from=n.default.resolve(e.rootContext,c.from)}if(c.to){c.to=n.default.resolve(e.rootContext,c.to)}delete c.config;delete c.plugins;const f={from:r,to:r,map:false,...a,...c};if(typeof f.parser==="string"){try{f.parser=require(f.parser)}catch(t){e.emitError(new Error(`Loading PostCSS "${f.parser}" parser failed: ${t.message}\n\n(@${r})`))}}if(typeof f.stringifier==="string"){try{f.stringifier=require(f.stringifier)}catch(t){e.emitError(new Error(`Loading PostCSS "${f.stringifier}" stringifier failed: ${t.message}\n\n(@${r})`))}}if(typeof f.syntax==="string"){try{f.syntax=require(f.syntax)}catch(t){e.emitError(new Error(`Loading PostCSS "${f.syntax}" syntax failed: ${t.message}\n\n(@${r})`))}}if(f.map===true){f.map={inline:true}}return{plugins:o,processOptions:f}}const c=/^[a-z]:[/\\]|^\\\\/i;const f=/^[a-z0-9+\-.]+:/i;function getURLType(e){if(e[0]==="/"){if(e[1]==="/"){return"scheme-relative"}return"path-absolute"}if(c.test(e)){return"path-absolute"}return f.test(e)?"absolute":"path-relative"}function normalizeSourceMap(e,t){let u=e;if(typeof u==="string"){u=JSON.parse(u)}delete u.file;const{sourceRoot:r}=u;delete u.sourceRoot;if(u.sources){u.sources=u.sources.map(e=>{const u=getURLType(e);if(u==="path-relative"||u==="path-absolute"){const s=u==="path-relative"&&r?n.default.resolve(r,n.default.normalize(e)):n.default.normalize(e);return n.default.relative(t,s)}return e})}return u}function normalizeSourceMapAfterPostcss(e,t){const u=e;delete u.file;u.sourceRoot="";u.sources=u.sources.map(e=>{if(e.indexOf("<")===0){return e}const u=getURLType(e);if(u==="path-relative"){return n.default.resolve(t,e)}return e});return u}},698:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(52));var r=_interopRequireDefault(u(880));var s=_interopRequireDefault(u(112));var i=_interopRequireDefault(u(585));var o=_interopRequireDefault(u(439));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var u=0;uparseInt(i[1])){console.error("Unknown error from PostCSS plugin. Your current PostCSS "+"version is "+r+", but "+u+" uses "+n+". Perhaps this is the source of the error below.")}}}}catch(e){if(console&&console.error)console.error(e)}};e.asyncTick=function asyncTick(e,t){var u=this;if(this.plugin>=this.processor.plugins.length){this.processed=true;return e()}try{var n=this.processor.plugins[this.plugin];var r=this.run(n);this.plugin+=1;if(isPromise(r)){r.then(function(){u.asyncTick(e,t)}).catch(function(e){u.handleError(e,n);u.processed=true;t(e)})}else{this.asyncTick(e,t)}}catch(e){this.processed=true;t(e)}};e.async=function async(){var e=this;if(this.processed){return new Promise(function(t,u){if(e.error){u(e.error)}else{t(e.stringify())}})}if(this.processing){return this.processing}this.processing=new Promise(function(t,u){if(e.error)return u(e.error);e.plugin=0;e.asyncTick(t,u)}).then(function(){e.processed=true;return e.stringify()});return this.processing};e.sync=function sync(){if(this.processed)return this.result;this.processed=true;if(this.processing){throw new Error("Use process(css).then(cb) to work with async plugins")}if(this.error)throw this.error;for(var e=this.result.processor.plugins,t=Array.isArray(e),u=0,e=t?e:e[Symbol.iterator]();;){var n;if(t){if(u>=e.length)break;n=e[u++]}else{u=e.next();if(u.done)break;n=u.value}var r=n;var s=this.run(r);if(isPromise(s)){throw new Error("Use process(css).then(cb) to work with async plugins")}}return this.result};e.run=function run(e){this.result.lastPlugin=e;try{return e(this.result.root,this.result)}catch(t){this.handleError(t,e);throw t}};e.stringify=function stringify(){if(this.stringified)return this.result;this.stringified=true;this.sync();var e=this.result.opts;var t=r.default;if(e.syntax)t=e.syntax.stringify;if(e.stringifier)t=e.stringifier;if(t.stringify)t=t.stringify;var u=new n.default(t,this.result.root,this.result.opts);var s=u.generate();this.result.css=s[0];this.result.map=s[1];return this.result};_createClass(LazyResult,[{key:"processor",get:function get(){return this.result.processor}},{key:"opts",get:function get(){return this.result.opts}},{key:"css",get:function get(){return this.stringify().css}},{key:"content",get:function get(){return this.stringify().content}},{key:"map",get:function get(){return this.stringify().map}},{key:"root",get:function get(){return this.sync().root}},{key:"messages",get:function get(){return this.sync().messages}}]);return LazyResult}();var c=a;t.default=c;e.exports=t.default},710:function(e){e.exports=require("loader-utils")},736:function(e){e.exports=require("next/dist/compiled/chalk")},745:function(e,t,u){(function(){"use strict";t.ast=u(928);t.code=u(818);t.keyword=u(864)})()},747:function(e){e.exports=require("fs")},780:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readFile=readFile;t.readFileSync=readFileSync;var n=_interopRequireDefault(u(747));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function fsReadFileAsync(e,t){return new Promise((u,r)=>{n.default.readFile(e,t,(e,t)=>{if(e){r(e);return}u(t)})})}async function readFile(e,t={}){const u=t.throwNotFound===true;try{const t=await fsReadFileAsync(e,"utf8");return t}catch(e){if(u===false&&e.code==="ENOENT"){return null}throw e}}function readFileSync(e,t={}){const u=t.throwNotFound===true;try{const t=n.default.readFileSync(e,"utf8");return t}catch(e){if(u===false&&e.code==="ENOENT"){return null}throw e}}},792:function(e,t,u){"use strict";var n=u(513);var r=u(63);u(310);var s=u(192);var i=u(525);var o=u(626);function createNode(e,t=true,u){if(u===undefined&&typeof t==="string"){u=t;t=true}const n=Object.assign({},s.Document.defaults[s.defaultOptions.version],s.defaultOptions);const r=new i.Schema(n);return r.createNode(e,t,u)}class Document extends s.Document{constructor(e){super(Object.assign({},s.defaultOptions,e))}}function parseAllDocuments(e,t){const u=[];let n;for(const s of r.parse(e)){const e=new Document(t);e.parse(s,n);u.push(e);n=e}return u}function parseDocument(e,t){const u=r.parse(e);const s=new Document(t).parse(u[0]);if(u.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";s.errors.unshift(new n.YAMLSemanticError(u[1],e))}return s}function parse(e,t){const u=parseDocument(e,t);u.warnings.forEach(e=>o.warn(e));if(u.errors.length>0)throw u.errors[0];return u.toJSON()}function stringify(e,t){const u=new Document(t);u.contents=e;return String(u)}const a={createNode:createNode,defaultOptions:s.defaultOptions,Document:Document,parse:parse,parseAllDocuments:parseAllDocuments,parseCST:r.parse,parseDocument:parseDocument,scalarOptions:s.scalarOptions,stringify:stringify};t.YAML=a},798:function(e,t){"use strict";t.__esModule=true;t.default=void 0;var u={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:false};function capitalize(e){return e[0].toUpperCase()+e.slice(1)}var n=function(){function Stringifier(e){this.builder=e}var e=Stringifier.prototype;e.stringify=function stringify(e,t){this[e.type](e,t)};e.root=function root(e){this.body(e);if(e.raws.after)this.builder(e.raws.after)};e.comment=function comment(e){var t=this.raw(e,"left","commentLeft");var u=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+u+"*/",e)};e.decl=function decl(e,t){var u=this.raw(e,"between","colon");var n=e.prop+u+this.rawValue(e,"value");if(e.important){n+=e.raws.important||" !important"}if(t)n+=";";this.builder(n,e)};e.rule=function rule(e){this.block(e,this.rawValue(e,"selector"));if(e.raws.ownSemicolon){this.builder(e.raws.ownSemicolon,e,"end")}};e.atrule=function atrule(e,t){var u="@"+e.name;var n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!=="undefined"){u+=e.raws.afterName}else if(n){u+=" "}if(e.nodes){this.block(e,u+n)}else{var r=(e.raws.between||"")+(t?";":"");this.builder(u+n+r,e)}};e.body=function body(e){var t=e.nodes.length-1;while(t>0){if(e.nodes[t].type!=="comment")break;t-=1}var u=this.raw(e,"semicolon");for(var n=0;n0){if(typeof e.raws.after!=="undefined"){t=e.raws.after;if(t.indexOf("\n")!==-1){t=t.replace(/[^\n]+$/,"")}return false}}});if(t)t=t.replace(/[^\s]/g,"");return t};e.rawBeforeOpen=function rawBeforeOpen(e){var t;e.walk(function(e){if(e.type!=="decl"){t=e.raws.between;if(typeof t!=="undefined")return false}});return t};e.rawColon=function rawColon(e){var t;e.walkDecls(function(e){if(typeof e.raws.between!=="undefined"){t=e.raws.between.replace(/[^\s:]/g,"");return false}});return t};e.beforeAfter=function beforeAfter(e,t){var u;if(e.type==="decl"){u=this.raw(e,null,"beforeDecl")}else if(e.type==="comment"){u=this.raw(e,null,"beforeComment")}else if(t==="before"){u=this.raw(e,null,"beforeRule")}else{u=this.raw(e,null,"beforeClose")}var n=e.parent;var r=0;while(n&&n.type!=="root"){r+=1;n=n.parent}if(u.indexOf("\n")!==-1){var s=this.raw(e,null,"indent");if(s.length){for(var i=0;i=48&&e<=55}n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isWhiteSpace(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&n.indexOf(e)>=0}function isLineTerminator(e){return e===10||e===13||e===8232||e===8233}function fromCodePoint(e){if(e<=65535){return String.fromCharCode(e)}var t=String.fromCharCode(Math.floor((e-65536)/1024)+55296);var u=String.fromCharCode((e-65536)%1024+56320);return t+u}r=new Array(128);for(i=0;i<128;++i){r[i]=i>=97&&i<=122||i>=65&&i<=90||i===36||i===95}s=new Array(128);for(i=0;i<128;++i){s[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||i===36||i===95}function isIdentifierStartES5(e){return e<128?r[e]:u.NonAsciiIdentifierStart.test(fromCodePoint(e))}function isIdentifierPartES5(e){return e<128?s[e]:u.NonAsciiIdentifierPart.test(fromCodePoint(e))}function isIdentifierStartES6(e){return e<128?r[e]:t.NonAsciiIdentifierStart.test(fromCodePoint(e))}function isIdentifierPartES6(e){return e<128?s[e]:t.NonAsciiIdentifierPart.test(fromCodePoint(e))}e.exports={isDecimalDigit:isDecimalDigit,isHexDigit:isHexDigit,isOctalDigit:isOctalDigit,isWhiteSpace:isWhiteSpace,isLineTerminator:isLineTerminator,isIdentifierStartES5:isIdentifierStartES5,isIdentifierPartES5:isIdentifierPartES5,isIdentifierStartES6:isIdentifierStartES6,isIdentifierPartES6:isIdentifierPartES6}})()},847:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(990));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;e.__proto__=t}var r=function(e){_inheritsLoose(Root,e);function Root(t){var u;u=e.call(this,t)||this;u.type="root";if(!u.nodes)u.nodes=[];return u}var t=Root.prototype;t.removeChild=function removeChild(t,u){var n=this.index(t);if(!u&&n===0&&this.nodes.length>1){this.nodes[1].raws.before=this.nodes[n].raws.before}return e.prototype.removeChild.call(this,t)};t.normalize=function normalize(t,u,n){var r=e.prototype.normalize.call(this,t);if(u){if(n==="prepend"){if(this.nodes.length>1){u.raws.before=this.nodes[1].raws.before}else{delete u.raws.before}}else if(this.first!==u){for(var s=r,i=Array.isArray(s),o=0,s=i?s:s[Symbol.iterator]();;){var a;if(i){if(o>=s.length)break;a=s[o++]}else{o=s.next();if(o.done)break;a=o.value}var c=a;c.raws.before=u.raws.before}}}return r};t.toResult=function toResult(e){if(e===void 0){e={}}var t=u(698);var n=u(184);var r=new t(new n,this,e);return r.stringify()};return Root}(n.default);var s=r;t.default=s;e.exports=t.default},851:function(e){e.exports={type:"object",properties:{postcssOptions:{description:"Options to pass through to `Postcss`.",anyOf:[{type:"object",additionalProperties:true,properties:{config:{description:"Allows to specify PostCSS Config Path (https://github.com/postcss/postcss-loader#config)",anyOf:[{description:"Allows to specify the path to the configuration file",type:"string"},{description:"Enables/Disables autoloading config",type:"boolean"}]}}},{instanceof:"Function"}]},execute:{description:"Enables/Disables PostCSS parser support in 'CSS-in-JS' (https://github.com/postcss/postcss-loader#execute)",type:"boolean"},sourceMap:{description:"Enables/Disables generation of source maps (https://github.com/postcss/postcss-loader#sourcemap)",type:"boolean"}},additionalProperties:false}},864:function(e,t,u){(function(){"use strict";var t=u(818);function isStrictModeReservedWordES6(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return true;default:return false}}function isKeywordES5(e,t){if(!t&&e==="yield"){return false}return isKeywordES6(e,t)}function isKeywordES6(e,t){if(t&&isStrictModeReservedWordES6(e)){return true}switch(e.length){case 2:return e==="if"||e==="in"||e==="do";case 3:return e==="var"||e==="for"||e==="new"||e==="try";case 4:return e==="this"||e==="else"||e==="case"||e==="void"||e==="with"||e==="enum";case 5:return e==="while"||e==="break"||e==="catch"||e==="throw"||e==="const"||e==="yield"||e==="class"||e==="super";case 6:return e==="return"||e==="typeof"||e==="delete"||e==="switch"||e==="export"||e==="import";case 7:return e==="default"||e==="finally"||e==="extends";case 8:return e==="function"||e==="continue"||e==="debugger";case 10:return e==="instanceof";default:return false}}function isReservedWordES5(e,t){return e==="null"||e==="true"||e==="false"||isKeywordES5(e,t)}function isReservedWordES6(e,t){return e==="null"||e==="true"||e==="false"||isKeywordES6(e,t)}function isRestrictedWord(e){return e==="eval"||e==="arguments"}function isIdentifierNameES5(e){var u,n,r;if(e.length===0){return false}r=e.charCodeAt(0);if(!t.isIdentifierStartES5(r)){return false}for(u=1,n=e.length;u=n){return false}s=e.charCodeAt(u);if(!(56320<=s&&s<=57343)){return false}r=decodeUtf16(r,s)}if(!i(r)){return false}i=t.isIdentifierPartES6}return true}function isIdentifierES5(e,t){return isIdentifierNameES5(e)&&!isReservedWordES5(e,t)}function isIdentifierES6(e,t){return isIdentifierNameES6(e)&&!isReservedWordES6(e,t)}e.exports={isKeywordES5:isKeywordES5,isKeywordES6:isKeywordES6,isReservedWordES5:isReservedWordES5,isReservedWordES6:isReservedWordES6,isRestrictedWord:isRestrictedWord,isIdentifierNameES5:isIdentifierNameES5,isIdentifierNameES6:isIdentifierNameES6,isIdentifierES5:isIdentifierES5,isIdentifierES6:isIdentifierES6}})()},880:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(798));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringify(e,t){var u=new n.default(t);u.stringify(e)}var r=stringify;t.default=r;e.exports=t.default},893:function(e,t){"use strict";t.__esModule=true;t.default=void 0;var u=function(){function Warning(e,t){if(t===void 0){t={}}this.type="warning";this.text=e;if(t.node&&t.node.source){var u=t.node.positionBy(t);this.line=u.line;this.column=u.column}for(var n in t){this[n]=t[n]}}var e=Warning.prototype;e.toString=function toString(){if(this.node){return this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message}if(this.plugin){return this.plugin+": "+this.text}return this.text};return Warning}();var n=u;t.default=n;e.exports=t.default},898:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDirectory=getDirectory;t.getDirectorySync=getDirectorySync;var n=_interopRequireDefault(u(277));var r=u(501);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function getDirectory(e){const t=await(0,r.isDirectory)(e);if(t===true){return e}const u=n.default.dirname(e);return u}function getDirectorySync(e){const t=(0,r.isDirectorySync)(e);if(t===true){return e}const u=n.default.dirname(e);return u}},900:function(e){"use strict";e.exports=parseJson;function parseJson(e,t,u){u=u||20;try{return JSON.parse(e,t)}catch(t){if(typeof e!=="string"){const t=Array.isArray(e)&&e.length===0;const u="Cannot parse "+(t?"an empty array":String(e));throw new TypeError(u)}const n=t.message.match(/^Unexpected token.*position\s+(\d+)/i);const r=n?+n[1]:t.message.match(/^Unexpected end of JSON.*/i)?e.length-1:null;if(r!=null){const n=r<=u?0:r-u;const s=r+u>=e.length?e.length:r+u;t.message+=` while parsing near '${n===0?"":"..."}${e.slice(n,s)}${s===e.length?"":"..."}'`}else{t.message+=` while parsing '${e.slice(0,u*2)}'`}throw t}}},918:function(e,t){"use strict";t.__esModule=true;t.default=void 0;var u={prefix:function prefix(e){var t=e.match(/^(-\w+-)/);if(t){return t[0]}return""},unprefixed:function unprefixed(e){return e.replace(/^-\w+-/,"")}};var n=u;t.default=n;e.exports=t.default},928:function(e){(function(){"use strict";function isExpression(e){if(e==null){return false}switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return true}return false}function isIterationStatement(e){if(e==null){return false}switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return true}return false}function isStatement(e){if(e==null){return false}switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return true}return false}function isSourceElement(e){return isStatement(e)||e!=null&&e.type==="FunctionDeclaration"}function trailingStatement(e){switch(e.type){case"IfStatement":if(e.alternate!=null){return e.alternate}return e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}function isProblematicIfStatement(e){var t;if(e.type!=="IfStatement"){return false}if(e.alternate==null){return false}t=e.consequent;do{if(t.type==="IfStatement"){if(t.alternate==null){return true}}t=trailingStatement(t)}while(t);return false}e.exports={isExpression:isExpression,isStatement:isStatement,isIterationStatement:isIterationStatement,isSourceElement:isSourceElement,isProblematicIfStatement:isProblematicIfStatement,trailingStatement:trailingStatement}})()},934:function(e){"use strict";class SyntaxError extends Error{constructor(e){super(e);const{line:t,column:u,reason:n,plugin:r,file:s}=e;this.name="SyntaxError";this.message=`${this.name}\n\n`;if(typeof t!=="undefined"){this.message+=`(${t}:${u}) `}this.message+=r?`${r}: `:"";this.message+=s?`${s} `:" ";this.message+=`${n}`;const i=e.showSourceCode();if(i){this.message+=`\n\n${i}\n`}this.stack=false}}e.exports=SyntaxError},958:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(736));var r=_interopRequireDefault(u(622));var s=_interopRequireDefault(u(54));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var i={brackets:n.default.cyan,"at-word":n.default.cyan,comment:n.default.gray,string:n.default.green,class:n.default.yellow,call:n.default.cyan,hash:n.default.magenta,"(":n.default.cyan,")":n.default.cyan,"{":n.default.yellow,"}":n.default.yellow,"[":n.default.yellow,"]":n.default.yellow,":":n.default.yellow,";":n.default.yellow};function getTokenType(e,t){var u=e[0],n=e[1];if(u==="word"){if(n[0]==="."){return"class"}if(n[0]==="#"){return"hash"}}if(!t.endOfFile()){var r=t.nextToken();t.back(r);if(r[0]==="brackets"||r[0]==="(")return"call"}return u}function terminalHighlight(e){var t=(0,r.default)(new s.default(e),{ignoreErrors:true});var u="";var n=function _loop(){var e=t.nextToken();var n=i[getTokenType(e,t)];if(n){u+=e[1].split(/\r?\n/).map(function(e){return n(e)}).join("\n")}else{u+=e[1]}};while(!t.endOfFile()){n()}return u}var o=terminalHighlight;t.default=o;e.exports=t.default},964:function(e,t,u){"use strict";const n=u(38);e.exports=(e=>{const t=n();if(!e){return t[2].getFileName()}let u=false;t.shift();for(const n of t){const t=n.getFileName();if(typeof t!=="string"){continue}if(t===e){u=true;continue}if(t==="module.js"){continue}if(u&&t!==e){return t}}})},968:function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:undefined};if(e[1])t.type="string",t.closed=!!(e[3]||e[4]);else if(e[5])t.type="comment";else if(e[6])t.type="comment",t.closed=!!e[7];else if(e[8])t.type="regex";else if(e[9])t.type="number";else if(e[10])t.type="name";else if(e[11])t.type="punctuator";else if(e[12])t.type="whitespace";return t}},986:function(e,t,u){"use strict";e.exports=u(425).default},990:function(e,t,u){"use strict";t.__esModule=true;t.default=void 0;var n=_interopRequireDefault(u(249));var r=_interopRequireDefault(u(374));var s=_interopRequireDefault(u(7));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperties(e,t){for(var u=0;u=o.length)break;f=o[c++]}else{c=o.next();if(c.done)break;f=c.value}var l=f;this.nodes.push(l)}}return this};t.prepend=function prepend(){for(var e=arguments.length,t=new Array(e),u=0;u=n.length)break;i=n[s++]}else{s=n.next();if(s.done)break;i=s.value}var o=i;var a=this.normalize(o,this.first,"prepend").reverse();for(var c=a,f=Array.isArray(c),l=0,c=f?c:c[Symbol.iterator]();;){var h;if(f){if(l>=c.length)break;h=c[l++]}else{l=c.next();if(l.done)break;h=l.value}var D=h;this.nodes.unshift(D)}for(var d in this.indexes){this.indexes[d]=this.indexes[d]+a.length}}return this};t.cleanRaws=function cleanRaws(t){e.prototype.cleanRaws.call(this,t);if(this.nodes){for(var u=this.nodes,n=Array.isArray(u),r=0,u=n?u:u[Symbol.iterator]();;){var s;if(n){if(r>=u.length)break;s=u[r++]}else{r=u.next();if(r.done)break;s=r.value}var i=s;i.cleanRaws(t)}}};t.insertBefore=function insertBefore(e,t){e=this.index(e);var u=e===0?"prepend":false;var n=this.normalize(t,this.nodes[e],u).reverse();for(var r=n,s=Array.isArray(r),i=0,r=s?r:r[Symbol.iterator]();;){var o;if(s){if(i>=r.length)break;o=r[i++]}else{i=r.next();if(i.done)break;o=i.value}var a=o;this.nodes.splice(e,0,a)}var c;for(var f in this.indexes){c=this.indexes[f];if(e<=c){this.indexes[f]=c+n.length}}return this};t.insertAfter=function insertAfter(e,t){e=this.index(e);var u=this.normalize(t,this.nodes[e]).reverse();for(var n=u,r=Array.isArray(n),s=0,n=r?n:n[Symbol.iterator]();;){var i;if(r){if(s>=n.length)break;i=n[s++]}else{s=n.next();if(s.done)break;i=s.value}var o=i;this.nodes.splice(e+1,0,o)}var a;for(var c in this.indexes){a=this.indexes[c];if(e=e){this.indexes[u]=t-1}}return this};t.removeAll=function removeAll(){for(var e=this.nodes,t=Array.isArray(e),u=0,e=t?e:e[Symbol.iterator]();;){var n;if(t){if(u>=e.length)break;n=e[u++]}else{u=e.next();if(u.done)break;n=u.value}var r=n;r.parent=undefined}this.nodes=[];return this};t.replaceValues=function replaceValues(e,t,u){if(!u){u=t;t={}}this.walkDecls(function(n){if(t.props&&t.props.indexOf(n.prop)===-1)return;if(t.fast&&n.value.indexOf(t.fast)===-1)return;n.value=n.value.replace(e,u)});return this};t.every=function every(e){return this.nodes.every(e)};t.some=function some(e){return this.nodes.some(e)};t.index=function index(e){if(typeof e==="number"){return e}return this.nodes.indexOf(e)};t.normalize=function normalize(e,t){var s=this;if(typeof e==="string"){var i=u(439);e=cleanSource(i(e).nodes)}else if(Array.isArray(e)){e=e.slice(0);for(var o=e,a=Array.isArray(o),c=0,o=a?o:o[Symbol.iterator]();;){var f;if(a){if(c>=o.length)break;f=o[c++]}else{c=o.next();if(c.done)break;f=c.value}var l=f;if(l.parent)l.parent.removeChild(l,"ignore")}}else if(e.type==="root"){e=e.nodes.slice(0);for(var h=e,D=Array.isArray(h),d=0,h=D?h:h[Symbol.iterator]();;){var p;if(D){if(d>=h.length)break;p=h[d++]}else{d=h.next();if(d.done)break;p=d.value}var A=p;if(A.parent)A.parent.removeChild(A,"ignore")}}else if(e.type){e=[e]}else if(e.prop){if(typeof e.value==="undefined"){throw new Error("Value field is missed in node creation")}else if(typeof e.value!=="string"){e.value=String(e.value)}e=[new n.default(e)]}else if(e.selector){var C=u(301);e=[new C(e)]}else if(e.name){var g=u(149);e=[new g(e)]}else if(e.text){e=[new r.default(e)]}else{throw new Error("Unknown node type in node creation")}var F=e.map(function(e){if(e.parent)e.parent.removeChild(e);if(typeof e.raws.before==="undefined"){if(t&&typeof t.raws.before!=="undefined"){e.raws.before=t.raws.before.replace(/[^\s]/g,"")}}e.parent=s;return e});return F};_createClass(Container,[{key:"first",get:function get(){if(!this.nodes)return undefined;return this.nodes[0]}},{key:"last",get:function get(){if(!this.nodes)return undefined;return this.nodes[this.nodes.length-1]}}]);return Container}(s.default);var o=i;t.default=o;e.exports=t.default}},function(e){"use strict";!function(){e.nmd=function(e){e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});return e}}()}); \ No newline at end of file +module.exports=function(e,t){"use strict";var u={};function __webpack_require__(t){if(u[t]){return u[t].exports}var n=u[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(986)}t(__webpack_require__);return startup()}({0:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.codeFrameColumns=codeFrameColumns;t.default=_default;var n=_interopRequireWildcard(u(592));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var u={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var s=n?Object.getOwnPropertyDescriptor(e,r):null;if(s&&(s.get||s.set)){Object.defineProperty(u,r,s)}else{u[r]=e[r]}}}u.default=e;if(t){t.set(e,u)}return u}let r=false;function getDefs(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}const s=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(e,t,u){const n=Object.assign({column:0,line:-1},e.start);const r=Object.assign({},n,{},e.end);const{linesAbove:s=2,linesBelow:i=3}=u||{};const o=n.line;const a=n.column;const c=r.line;const l=r.column;let f=Math.max(o-(s+1),0);let h=Math.min(t.length,c+i);if(o===-1){f=0}if(c===-1){h=t.length}const D=c-o;const p={};if(D){for(let e=0;e<=D;e++){const u=e+o;if(!a){p[u]=true}else if(e===0){const e=t[u-1].length;p[u]=[a,e-a+1]}else if(e===D){p[u]=[0,l]}else{const n=t[u-e].length;p[u]=[0,n]}}}else{if(a===l){if(a){p[o]=[a,0]}else{p[o]=true}}else{p[o]=[a,l-a]}}return{start:f,end:h,markerLines:p}}function codeFrameColumns(e,t,u={}){const r=(u.highlightCode||u.forceColor)&&(0,n.shouldHighlight)(u);const i=(0,n.getChalk)(u);const o=getDefs(i);const a=(e,t)=>{return r?e(t):t};const c=e.split(s);const{start:l,end:f,markerLines:h}=getMarkerLines(t,c,u);const D=t.start&&typeof t.start.column==="number";const p=String(f).length;const A=r?(0,n.default)(e,u):e;let d=A.split(s).slice(l,f).map((e,t)=>{const n=l+1+t;const r=` ${n}`.slice(-p);const s=` ${r} | `;const i=h[n];const c=!h[n+1];if(i){let t="";if(Array.isArray(i)){const n=e.slice(0,Math.max(i[0]-1,0)).replace(/[^\t]/g," ");const r=i[1]||1;t=["\n ",a(o.gutter,s.replace(/\d/g," ")),n,a(o.marker,"^").repeat(r)].join("");if(c&&u.message){t+=" "+a(o.message,u.message)}}return[a(o.marker,">"),a(o.gutter,s),e,t].join("")}else{return` ${a(o.gutter,s)}${e}`}}).join("\n");if(u.message&&!D){d=`${" ".repeat(p+1)}${u.message}\n${d}`}if(r){return i.reset(d)}else{return d}}function _default(e,t,u,n={}){if(!r){r=true;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(e,"DeprecationWarning")}else{const t=new Error(e);t.name="DeprecationWarning";console.warn(new Error(e))}}u=Math.max(u,0);const s={start:{column:u,line:t}};return codeFrameColumns(e,s,n)}},7:function(e,t,u){"use strict";let n=u(233);let r=u(798);let{isClean:s}=u(448);let i=u(880);function cloneNode(e,t){let u=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)){continue}if(n==="proxyCache")continue;let r=e[n];let s=typeof r;if(n==="parent"&&s==="object"){if(t)u[n]=t}else if(n==="source"){u[n]=r}else if(Array.isArray(r)){u[n]=r.map(e=>cloneNode(e,u))}else{if(s==="object"&&r!==null)r=cloneNode(r);u[n]=r}}return u}class Node{constructor(e={}){this.raws={};this[s]=false;for(let t in e){if(t==="nodes"){this.nodes=[];for(let u of e[t]){if(typeof u.clone==="function"){this.append(u.clone())}else{this.append(u)}}}else{this[t]=e[t]}}}error(e,t={}){if(this.source){let u=this.positionBy(t);return this.source.input.error(e,u.line,u.column,t)}return new n(e)}warn(e,t,u){let n={node:this};for(let e in u)n[e]=u[e];return e.warn(t,n)}remove(){if(this.parent){this.parent.removeChild(this)}this.parent=undefined;return this}toString(e=i){if(e.stringify)e=e.stringify;let t="";e(this,e=>{t+=e});return t}clone(e={}){let t=cloneNode(this);for(let u in e){t[u]=e[u]}return t}cloneBefore(e={}){let t=this.clone(e);this.parent.insertBefore(this,t);return t}cloneAfter(e={}){let t=this.clone(e);this.parent.insertAfter(this,t);return t}replaceWith(...e){if(this.parent){let t=this;let u=false;for(let n of e){if(n===this){u=true}else if(u){this.parent.insertAfter(t,n);t=n}else{this.parent.insertBefore(t,n)}}if(!u){this.remove()}}return this}next(){if(!this.parent)return undefined;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return undefined;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){this.parent.insertBefore(this,e);return this}after(e){this.parent.insertAfter(this,e);return this}root(){let e=this;while(e.parent)e=e.parent;return e}raw(e,t){let u=new r;return u.raw(this,e,t)}cleanRaws(e){delete this.raws.before;delete this.raws.after;if(!e)delete this.raws.between}toJSON(){let e={};for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t)){continue}if(t==="parent")continue;let u=this[t];if(Array.isArray(u)){e[t]=u.map(e=>{if(typeof e==="object"&&e.toJSON){return e.toJSON()}else{return e}})}else if(typeof u==="object"&&u.toJSON){e[t]=u.toJSON()}else{e[t]=u}}return e}positionInside(e){let t=this.toString();let u=this.source.start.column;let n=this.source.start.line;for(let r=0;re.root().toProxy()}else{return e[t]}}}}toProxy(){if(!this.proxyCache){this.proxyCache=new Proxy(this,this.getProxyProcessor())}return this.proxyCache}addToError(e){e.postcssNode=this;if(e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[s]){this[s]=false;let e=this;while(e=e.parent){e[s]=false}}}get proxyOf(){return this}}e.exports=Node},24:function(e,t,u){"use strict";var n=u(669);var r=u(28);var s=function errorEx(e,t){if(!e||e.constructor!==String){t=e||{};e=Error.name}var u=function ErrorEXError(n){if(!this){return new ErrorEXError(n)}n=n instanceof Error?n.message:n||this.message;Error.call(this,n);Error.captureStackTrace(this,u);this.name=e;Object.defineProperty(this,"message",{configurable:true,enumerable:false,get:function(){var e=n.split(/\r?\n/g);for(var u in t){if(!t.hasOwnProperty(u)){continue}var s=t[u];if("message"in s){e=s.message(this[u],e)||e;if(!r(e)){e=[e]}}}return e.join("\n")},set:function(e){n=e}});var s=null;var i=Object.getOwnPropertyDescriptor(this,"stack");var o=i.get;var a=i.value;delete i.value;delete i.writable;i.set=function(e){s=e};i.get=function(){var e=(s||(o?o.call(this):a)).split(/\r?\n+/g);if(!s){e[0]=this.name+": "+this.message}var u=1;for(var n in t){if(!t.hasOwnProperty(n)){continue}var r=t[n];if("line"in r){var i=r.line(this[n]);if(i){e.splice(u++,0," "+i)}}if("stack"in r){r.stack(this[n],e)}}return e.join("\n")};Object.defineProperty(this,"stack",i)};if(Object.setPrototypeOf){Object.setPrototypeOf(u.prototype,Error.prototype);Object.setPrototypeOf(u,Error)}else{n.inherits(u,Error)}return u};s.append=function(e,t){return{message:function(u,n){u=u||t;if(u){n[0]+=" "+e.replace("%s",u.toString())}return n}}};s.line=function(e,t){return{line:function(u){u=u||t;if(u){return e.replace("%s",u.toString())}return null}}};e.exports=s},28:function(e){"use strict";e.exports=function isArrayish(e){if(!e){return false}return e instanceof Array||Array.isArray(e)||e.length>=0&&e.splice instanceof Function}},32:function(e,t,u){"use strict";const n=u(24);const r=u(900);const{default:s}=u(254);const{codeFrameColumns:i}=u(0);const o=n("JSONError",{fileName:n.append("in %s"),codeFrame:n.append("\n\n%s\n")});e.exports=((e,t,u)=>{if(typeof t==="string"){u=t;t=null}try{try{return JSON.parse(e,t)}catch(u){r(e,t);throw u}}catch(t){t.message=t.message.replace(/\n/g,"");const n=t.message.match(/in JSON at position (\d+) while parsing near/);const r=new o(t);if(u){r.fileName=u}if(n&&n.length>0){const t=new s(e);const u=Number(n[1]);const o=t.locationForIndex(u);const a=i(e,{start:{line:o.line+1,column:o.column+1}},{highlightCode:true});r.codeFrame=a}throw r}})},38:function(e){"use strict";const t=()=>{const e=Error.prepareStackTrace;Error.prepareStackTrace=((e,t)=>t);const t=(new Error).stack.slice(1);Error.prepareStackTrace=e;return t};e.exports=t;e.exports.default=t},40:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExplorerSync=void 0;var n=_interopRequireDefault(u(277));var r=u(594);var s=u(780);var i=u(270);var o=u(898);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class ExplorerSync extends r.ExplorerBase{constructor(e){super(e)}searchSync(e=process.cwd()){const t=(0,o.getDirectorySync)(e);const u=this.searchFromDirectorySync(t);return u}searchFromDirectorySync(e){const t=n.default.resolve(process.cwd(),e);const u=()=>{const e=this.searchDirectorySync(t);const u=this.nextDirectoryToSearch(t,e);if(u){return this.searchFromDirectorySync(u)}const n=this.config.transform(e);return n};if(this.searchCache){return(0,i.cacheWrapperSync)(this.searchCache,t,u)}return u()}searchDirectorySync(e){for(const t of this.config.searchPlaces){const u=this.loadSearchPlaceSync(e,t);if(this.shouldSearchStopWithResult(u)===true){return u}}return null}loadSearchPlaceSync(e,t){const u=n.default.join(e,t);const r=(0,s.readFileSync)(u);const i=this.createCosmiconfigResultSync(u,r);return i}loadFileContentSync(e,t){if(t===null){return null}if(t.trim()===""){return undefined}const u=this.getLoaderEntryForFile(e);const n=u(e,t);return n}createCosmiconfigResultSync(e,t){const u=this.loadFileContentSync(e,t);const n=this.loadedContentToCosmiconfigResult(e,u);return n}loadSync(e){this.validateFilePath(e);const t=n.default.resolve(process.cwd(),e);const u=()=>{const e=(0,s.readFileSync)(t,{throwNotFound:true});const u=this.createCosmiconfigResultSync(t,e);const n=this.config.transform(u);return n};if(this.loadCache){return(0,i.cacheWrapperSync)(this.loadCache,t,u)}return u()}}t.ExplorerSync=ExplorerSync},52:function(e,t,u){"use strict";let{dirname:n,resolve:r,relative:s,sep:i}=u(277);let{pathToFileURL:o}=u(835);let a=u(241);class MapGenerator{constructor(e,t,u){this.stringify=e;this.mapOpts=u.map||{};this.root=t;this.opts=u}isMap(){if(typeof this.opts.map!=="undefined"){return!!this.opts.map}return this.previous().length>0}previous(){if(!this.previousMaps){this.previousMaps=[];this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;if(!this.previousMaps.includes(t)){this.previousMaps.push(t)}}})}return this.previousMaps}isInline(){if(typeof this.mapOpts.inline!=="undefined"){return this.mapOpts.inline}let e=this.mapOpts.annotation;if(typeof e!=="undefined"&&e!==true){return false}if(this.previous().length){return this.previous().some(e=>e.inline)}return true}isSourcesContent(){if(typeof this.mapOpts.sourcesContent!=="undefined"){return this.mapOpts.sourcesContent}if(this.previous().length){return this.previous().some(e=>e.withContent())}return true}clearAnnotation(){if(this.mapOpts.annotation===false)return;let e;for(let t=this.root.nodes.length-1;t>=0;t--){e=this.root.nodes[t];if(e.type!=="comment")continue;if(e.text.indexOf("# sourceMappingURL=")===0){this.root.removeChild(t)}}}setSourcesContent(){let e={};this.root.walk(t=>{if(t.source){let u=t.source.input.from;if(u&&!e[u]){e[u]=true;this.map.setSourceContent(this.toUrl(this.path(u)),t.source.input.css)}}})}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file));let u=e.root||n(e.file);let r;if(this.mapOpts.sourcesContent===false){r=new a.SourceMapConsumer(e.text);if(r.sourcesContent){r.sourcesContent=r.sourcesContent.map(()=>null)}}else{r=e.consumer()}this.map.applySourceMap(r,t,this.toUrl(this.path(u)))}}isAnnotation(){if(this.isInline()){return true}if(typeof this.mapOpts.annotation!=="undefined"){return this.mapOpts.annotation}if(this.previous().length){return this.previous().some(e=>e.annotation)}return true}toBase64(e){if(Buffer){return Buffer.from(e).toString("base64")}else{return window.btoa(unescape(encodeURIComponent(e)))}}addAnnotation(){let e;if(this.isInline()){e="data:application/json;base64,"+this.toBase64(this.map.toString())}else if(typeof this.mapOpts.annotation==="string"){e=this.mapOpts.annotation}else if(typeof this.mapOpts.annotation==="function"){e=this.mapOpts.annotation(this.opts.to,this.root)}else{e=this.outputFile()+".map"}let t="\n";if(this.css.includes("\r\n"))t="\r\n";this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){if(this.opts.to){return this.path(this.opts.to)}if(this.opts.from){return this.path(this.opts.from)}return"to.css"}generateMap(){this.generateString();if(this.isSourcesContent())this.setSourcesContent();if(this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline()){return[this.css]}return[this.css,this.map]}path(e){if(e.indexOf("<")===0)return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?n(this.opts.to):".";if(typeof this.mapOpts.annotation==="string"){t=n(r(t,this.mapOpts.annotation))}e=s(t,e);return e}toUrl(e){if(i==="\\"){e=e.replace(/\\/g,"/")}return encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){if(this.mapOpts.from){return this.toUrl(this.mapOpts.from)}else if(this.mapOpts.absolute){return o(e.source.input.from).toString()}else{return this.toUrl(this.path(e.source.input.from))}}generateString(){this.css="";this.map=new a.SourceMapGenerator({file:this.outputFile()});let e=1;let t=1;let u,n;this.stringify(this.root,(r,s,i)=>{this.css+=r;if(s&&i!=="end"){if(s.source&&s.source.start){this.map.addMapping({source:this.sourcePath(s),generated:{line:e,column:t-1},original:{line:s.source.start.line,column:s.source.start.column-1}})}else{this.map.addMapping({source:"",original:{line:1,column:0},generated:{line:e,column:t-1}})}}u=r.match(/\n/g);if(u){e+=u.length;n=r.lastIndexOf("\n");t=r.length-n}else{t+=r.length}if(s&&i!=="start"){let u=s.parent||{raws:{}};if(s.type!=="decl"||s!==u.last||u.raws.semicolon){if(s.source&&s.source.end){this.map.addMapping({source:this.sourcePath(s),generated:{line:e,column:t-2},original:{line:s.source.end.line,column:s.source.end.column-1}})}else{this.map.addMapping({source:"",original:{line:1,column:0},generated:{line:e,column:t-1}})}}}})}generate(){this.clearAnnotation();if(this.isMap()){return this.generateMap()}let e="";this.stringify(this.root,t=>{e+=t});return[e]}}e.exports=MapGenerator},54:function(e,t,u){"use strict";let{fileURLToPath:n,pathToFileURL:r}=u(835);let{resolve:s,isAbsolute:i}=u(277);let{nanoid:o}=u(148);let a=u(548);let c=u(958);let l=u(233);let f=u(560);class Input{constructor(e,t={}){if(e===null||typeof e==="undefined"||typeof e==="object"&&!e.toString){throw new Error(`PostCSS received ${e} instead of CSS string`)}this.css=e.toString();if(this.css[0]==="\ufeff"||this.css[0]==="￾"){this.hasBOM=true;this.css=this.css.slice(1)}else{this.hasBOM=false}if(t.from){if(/^\w+:\/\//.test(t.from)||i(t.from)){this.file=t.from}else{this.file=s(t.from)}}let u=new f(this.css,t);if(u.text){this.map=u;let e=u.consumer().file;if(!this.file&&e)this.file=this.mapResolve(e)}if(!this.file){this.id=""}if(this.map)this.map.file=this.from}fromOffset(e){let t=a(this.css);this.fromOffset=(e=>t.fromIndex(e));return this.fromOffset(e)}error(e,t,u,n={}){let s;if(!u){let e=this.fromOffset(t);t=e.line;u=e.col}let i=this.origin(t,u);if(i){s=new l(e,i.line,i.column,i.source,i.file,n.plugin)}else{s=new l(e,t,u,this.css,this.file,n.plugin)}s.input={line:t,column:u,source:this.css};if(this.file){s.input.url=r(this.file).toString();s.input.file=this.file}return s}origin(e,t){if(!this.map)return false;let u=this.map.consumer();let s=u.originalPositionFor({line:e,column:t});if(!s.source)return false;let o;if(i(s.source)){o=r(s.source)}else{o=new URL(s.source,this.map.consumer().sourceRoot||r(this.map.mapFile))}let a={url:o.toString(),line:s.line,column:s.column};if(o.protocol==="file:"){a.file=n(o)}let c=u.sourceContentFor(s.source);if(c)a.source=c;return a}mapResolve(e){if(/^\w+:\/\//.test(e)){return e}return s(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}}e.exports=Input;if(c&&c.registerInput){c.registerInput(Input)}},63:function(e,t,u){"use strict";var n=u(513);class BlankLine extends n.Node{constructor(){super(n.Type.BLANK_LINE)}get includesTrailingLines(){return true}parse(e,t){this.context=e;this.range=new n.Range(t,t+1);return t+1}}class CollectionItem extends n.Node{constructor(e,t){super(e,t);this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:u,src:r}=e;let{atLineStart:s,lineStart:i}=e;if(!s&&this.type===n.Type.SEQ_ITEM)this.error=new n.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line");const o=s?t-i:e.indent;let a=n.Node.endOfWhiteSpace(r,t+1);let c=r[a];const l=c==="#";const f=[];let h=null;while(c==="\n"||c==="#"){if(c==="#"){const e=n.Node.endOfLine(r,a+1);f.push(new n.Range(a,e));a=e}else{s=true;i=a+1;const e=n.Node.endOfWhiteSpace(r,i);if(r[e]==="\n"&&f.length===0){h=new BlankLine;i=h.parse({src:r},i)}a=n.Node.endOfIndent(r,i)}c=r[a]}if(n.Node.nextNodeIsIndented(c,a-(i+o),this.type!==n.Type.SEQ_ITEM)){this.node=u({atLineStart:s,inCollection:false,indent:o,lineStart:i,parent:this},a)}else if(c&&i>t+1){a=i-1}if(this.node){if(h){const t=e.parent.items||e.parent.contents;if(t)t.push(h)}if(f.length)Array.prototype.push.apply(this.props,f);a=this.node.range.end}else{if(l){const e=f[0];this.props.push(e);a=e.end}else{a=n.Node.endOfLine(r,t+1)}}const D=this.node?this.node.valueRange.end:a;this.valueRange=new n.Range(t,D);return a}setOrigRanges(e,t){t=super.setOrigRanges(e,t);return this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:u,value:r}=this;if(r!=null)return r;const s=t?e.slice(u.start,t.range.start)+String(t):e.slice(u.start,u.end);return n.Node.addStringTerminator(e,u.end,s)}}class Comment extends n.Node{constructor(){super(n.Type.COMMENT)}parse(e,t){this.context=e;const u=this.parseComment(t);this.range=new n.Range(t,u);return u}}function grabCollectionEndComments(e){let t=e;while(t instanceof CollectionItem)t=t.node;if(!(t instanceof Collection))return null;const u=t.items.length;let r=-1;for(let e=u-1;e>=0;--e){const u=t.items[e];if(u.type===n.Type.COMMENT){const{indent:t,lineStart:n}=u.context;if(t>0&&u.range.start>=n+t)break;r=e}else if(u.type===n.Type.BLANK_LINE)r=e;else break}if(r===-1)return null;const s=t.items.splice(r,u-r);const i=s[0].range.start;while(true){t.range.end=i;if(t.valueRange&&t.valueRange.end>i)t.valueRange.end=i;if(t===e)break;t=t.context.parent}return s}class Collection extends n.Node{static nextContentHasIndent(e,t,u){const r=n.Node.endOfLine(e,t)+1;t=n.Node.endOfWhiteSpace(e,r);const s=e[t];if(!s)return false;if(t>=r+u)return true;if(s!=="#"&&s!=="\n")return false;return Collection.nextContentHasIndent(e,t,u)}constructor(e){super(e.type===n.Type.SEQ_ITEM?n.Type.SEQ:n.Type.MAP);for(let t=e.props.length-1;t>=0;--t){if(e.props[t].start0}parse(e,t){this.context=e;const{parseNode:u,src:r}=e;let s=n.Node.startOfLine(r,t);const i=this.items[0];i.context.parent=this;this.valueRange=n.Range.copy(i.valueRange);const o=i.range.start-i.context.lineStart;let a=t;a=n.Node.normalizeOffset(r,a);let c=r[a];let l=n.Node.endOfWhiteSpace(r,s)===a;let f=false;while(c){while(c==="\n"||c==="#"){if(l&&c==="\n"&&!f){const e=new BlankLine;a=e.parse({src:r},a);this.valueRange.end=a;if(a>=r.length){c=null;break}this.items.push(e);a-=1}else if(c==="#"){if(a=r.length){c=null;break}}s=a+1;a=n.Node.endOfIndent(r,s);if(n.Node.atBlank(r,a)){const e=n.Node.endOfWhiteSpace(r,a);const t=r[e];if(!t||t==="\n"||t==="#"){a=e}}c=r[a];l=true}if(!c){break}if(a!==s+o&&(l||c!==":")){if(at)a=s;break}else if(!this.error){const e="All collection items must start at the same column";this.error=new n.YAMLSyntaxError(this,e)}}if(i.type===n.Type.SEQ_ITEM){if(c!=="-"){if(s>t)a=s;break}}else if(c==="-"&&!this.error){const e=r[a+1];if(!e||e==="\n"||e==="\t"||e===" "){const e="A collection cannot be both a mapping and a sequence";this.error=new n.YAMLSyntaxError(this,e)}}const e=u({atLineStart:l,inCollection:true,indent:o,lineStart:s,parent:this},a);if(!e)return a;this.items.push(e);this.valueRange.end=e.valueRange.end;a=n.Node.normalizeOffset(r,e.range.end);c=r[a];l=false;f=e.includesTrailingLines;if(c){let e=a-1;let t=r[e];while(t===" "||t==="\t")t=r[--e];if(t==="\n"){s=e+1;l=true}}const h=grabCollectionEndComments(e);if(h)Array.prototype.push.apply(this.items,h)}return a}setOrigRanges(e,t){t=super.setOrigRanges(e,t);this.items.forEach(u=>{t=u.setOrigRanges(e,t)});return t}toString(){const{context:{src:e},items:t,range:u,value:r}=this;if(r!=null)return r;let s=e.slice(u.start,t[0].range.start)+String(t[0]);for(let e=1;e0){this.contents=this.directives;this.directives=[]}return s}}if(t[s]){this.directivesEndMarker=new n.Range(s,s+3);return s+3}if(r){this.error=new n.YAMLSemanticError(this,"Missing directives-end indicator line")}else if(this.directives.length>0){this.contents=this.directives;this.directives=[]}return s}parseContents(e){const{parseNode:t,src:u}=this.context;if(!this.contents)this.contents=[];let r=e;while(u[r-1]==="-")r-=1;let s=n.Node.endOfWhiteSpace(u,e);let i=r===e;this.valueRange=new n.Range(s);while(!n.Node.atDocumentBoundary(u,s,n.Char.DOCUMENT_END)){switch(u[s]){case"\n":if(i){const e=new BlankLine;s=e.parse({src:u},s);if(s{t=u.setOrigRanges(e,t)});if(this.directivesEndMarker)t=this.directivesEndMarker.setOrigRange(e,t);this.contents.forEach(u=>{t=u.setOrigRanges(e,t)});if(this.documentEndMarker)t=this.documentEndMarker.setOrigRange(e,t);return t}toString(){const{contents:e,directives:t,value:u}=this;if(u!=null)return u;let r=t.join("");if(e.length>0){if(t.length>0||e[0].type===n.Type.COMMENT)r+="---\n";r+=e.join("")}if(r[r.length-1]!=="\n")r+="\n";return r}}class Alias extends n.Node{parse(e,t){this.context=e;const{src:u}=e;let r=n.Node.endOfIdentifier(u,t+1);this.valueRange=new n.Range(t+1,r);r=n.Node.endOfWhiteSpace(u,r);r=this.parseComment(r);return r}}const r={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};class BlockValue extends n.Node{constructor(e,t){super(e,t);this.blockIndent=null;this.chomping=r.CLIP;this.header=null}get includesTrailingLines(){return this.chomping===r.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:u,src:s}=this.context;if(this.valueRange.isEmpty())return"";let i=null;let o=s[t-1];while(o==="\n"||o==="\t"||o===" "){t-=1;if(t<=e){if(this.chomping===r.KEEP)break;else return""}if(o==="\n")i=t;o=s[t-1]}let a=t+1;if(i){if(this.chomping===r.KEEP){a=i;t=this.valueRange.end}else{t=i}}const c=u+this.blockIndent;const l=this.type===n.Type.BLOCK_FOLDED;let f=true;let h="";let D="";let p=false;for(let u=e;ua){a=c}}else if(r&&r!=="\n"&&c{if(u instanceof n.Node){t=u.setOrigRanges(e,t)}else if(e.length===0){u.origOffset=u.offset}else{let n=t;while(nu.offset)break;else++n}u.origOffset=u.offset+n;t=n}});return t}toString(){const{context:{src:e},items:t,range:u,value:r}=this;if(r!=null)return r;const s=t.filter(e=>e instanceof n.Node);let i="";let o=u.start;s.forEach(t=>{const u=e.slice(o,t.range.start);o=t.range.end;i+=u+String(t);if(i[i.length-1]==="\n"&&e[o-1]!=="\n"&&e[o]==="\n"){o+=1}});i+=e.slice(o,u.end);return n.Node.addStringTerminator(e,u.end,i)}}class QuoteDouble extends n.Node{static endOfQuote(e,t){let u=e[t];while(u&&u!=='"'){t+=u==="\\"?2:1;u=e[t]}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:u}=this.valueRange;const{indent:r,src:s}=this.context;if(s[u-1]!=='"')e.push(new n.YAMLSyntaxError(this,'Missing closing "quote'));let i="";for(let o=t+1;oe?s.slice(e,o+1):t}else{i+=t}}return e.length>0?{errors:e,str:i}:i}parseCharCode(e,t,u){const{src:r}=this.context;const s=r.substr(e,t);const i=s.length===t&&/^[0-9a-fA-F]+$/.test(s);const o=i?parseInt(s,16):NaN;if(isNaN(o)){u.push(new n.YAMLSyntaxError(this,`Invalid escape sequence ${r.substr(e-2,t+2)}`));return r.substr(e-2,t+2)}return String.fromCodePoint(o)}parse(e,t){this.context=e;const{src:u}=e;let r=QuoteDouble.endOfQuote(u,t+1);this.valueRange=new n.Range(t,r);r=n.Node.endOfWhiteSpace(u,r);r=this.parseComment(r);return r}}class QuoteSingle extends n.Node{static endOfQuote(e,t){let u=e[t];while(u){if(u==="'"){if(e[t+1]!=="'")break;u=e[t+=2]}else{u=e[t+=1]}}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:u}=this.valueRange;const{indent:r,src:s}=this.context;if(s[u-1]!=="'")e.push(new n.YAMLSyntaxError(this,"Missing closing 'quote"));let i="";for(let o=t+1;oe?s.slice(e,o+1):t}else{i+=t}}return e.length>0?{errors:e,str:i}:i}parse(e,t){this.context=e;const{src:u}=e;let r=QuoteSingle.endOfQuote(u,t+1);this.valueRange=new n.Range(t,r);r=n.Node.endOfWhiteSpace(u,r);r=this.parseComment(r);return r}}function createNewNode(e,t){switch(e){case n.Type.ALIAS:return new Alias(e,t);case n.Type.BLOCK_FOLDED:case n.Type.BLOCK_LITERAL:return new BlockValue(e,t);case n.Type.FLOW_MAP:case n.Type.FLOW_SEQ:return new FlowCollection(e,t);case n.Type.MAP_KEY:case n.Type.MAP_VALUE:case n.Type.SEQ_ITEM:return new CollectionItem(e,t);case n.Type.COMMENT:case n.Type.PLAIN:return new n.PlainValue(e,t);case n.Type.QUOTE_DOUBLE:return new QuoteDouble(e,t);case n.Type.QUOTE_SINGLE:return new QuoteSingle(e,t);default:return null}}class ParseContext{static parseType(e,t,u){switch(e[t]){case"*":return n.Type.ALIAS;case">":return n.Type.BLOCK_FOLDED;case"|":return n.Type.BLOCK_LITERAL;case"{":return n.Type.FLOW_MAP;case"[":return n.Type.FLOW_SEQ;case"?":return!u&&n.Node.atBlank(e,t+1,true)?n.Type.MAP_KEY:n.Type.PLAIN;case":":return!u&&n.Node.atBlank(e,t+1,true)?n.Type.MAP_VALUE:n.Type.PLAIN;case"-":return!u&&n.Node.atBlank(e,t+1,true)?n.Type.SEQ_ITEM:n.Type.PLAIN;case'"':return n.Type.QUOTE_DOUBLE;case"'":return n.Type.QUOTE_SINGLE;default:return n.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:u,inFlow:r,indent:s,lineStart:i,parent:o}={}){n._defineProperty(this,"parseNode",(e,t)=>{if(n.Node.atDocumentBoundary(this.src,t))return null;const u=new ParseContext(this,e);const{props:r,type:s,valueStart:i}=u.parseProps(t);const o=createNewNode(s,r);let a=o.parse(u,i);o.range=new n.Range(t,a);if(a<=t){o.error=new Error(`Node#parse consumed no characters`);o.error.parseEnd=a;o.error.source=o;o.range.end=t+1}if(u.nodeStartsCollection(o)){if(!o.error&&!u.atLineStart&&u.parent.type===n.Type.DOCUMENT){o.error=new n.YAMLSyntaxError(o,"Block collection must not have preceding content here (e.g. directives-end indicator)")}const e=new Collection(o);a=e.parse(new ParseContext(u),a);e.range=new n.Range(t,a);return e}return o});this.atLineStart=t!=null?t:e.atLineStart||false;this.inCollection=u!=null?u:e.inCollection||false;this.inFlow=r!=null?r:e.inFlow||false;this.indent=s!=null?s:e.indent;this.lineStart=i!=null?i:e.lineStart;this.parent=o!=null?o:e.parent||{};this.root=e.root;this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:u,src:r}=this;if(t||u)return false;if(e instanceof CollectionItem)return true;let s=e.range.end;if(r[s]==="\n"||r[s-1]==="\n")return false;s=n.Node.endOfWhiteSpace(r,s);return r[s]===":"}parseProps(e){const{inFlow:t,parent:u,src:r}=this;const s=[];let i=false;e=this.atLineStart?n.Node.endOfIndent(r,e):n.Node.endOfWhiteSpace(r,e);let o=r[e];while(o===n.Char.ANCHOR||o===n.Char.COMMENT||o===n.Char.TAG||o==="\n"){if(o==="\n"){const t=e+1;const s=n.Node.endOfIndent(r,t);const o=s-(t+this.indent);const a=u.type===n.Type.SEQ_ITEM&&u.context.atLineStart;if(!n.Node.nextNodeIsIndented(r[s],o,!a))break;this.atLineStart=true;this.lineStart=t;i=false;e=s}else if(o===n.Char.COMMENT){const t=n.Node.endOfLine(r,e+1);s.push(new n.Range(e,t));e=t}else{let t=n.Node.endOfIdentifier(r,e+1);if(o===n.Char.TAG&&r[t]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(r.slice(e+1,t+13))){t=n.Node.endOfIdentifier(r,t+5)}s.push(new n.Range(e,t));i=true;e=n.Node.endOfWhiteSpace(r,t)}o=r[e]}if(i&&o===":"&&n.Node.atBlank(r,e+1,true))e-=1;const a=ParseContext.parseType(r,e,t);return{props:s,type:a,valueStart:e}}}function parse(e){const t=[];if(e.indexOf("\r")!==-1){e=e.replace(/\r\n?/g,(e,u)=>{if(e.length>1)t.push(u);return"\n"})}const u=[];let n=0;do{const t=new Document;const r=new ParseContext({src:e});n=t.parse(r,n);u.push(t)}while(n{if(t.length===0)return false;for(let e=1;eu.join("...\n"));return u}t.parse=parse},87:function(e){e.exports=require("os")},112:function(e){"use strict";let t={};e.exports=function warnOnce(e){if(t[e])return;t[e]=true;if(typeof console!=="undefined"&&console.warn){console.warn(e)}}},134:function(e){e.exports=require("schema-utils")},148:function(e){let t="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";let u=(e,t)=>{return()=>{let u="";let n=t;while(n--){u+=e[Math.random()*e.length|0]}return u}};let n=(e=21)=>{let u="";let n=e;while(n--){u+=t[Math.random()*64|0]}return u};e.exports={nanoid:n,customAlphabet:u}},149:function(e,t,u){"use strict";let n=u(990);class AtRule extends n{constructor(e){super(e);this.type="atrule"}append(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...e)}prepend(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...e)}}e.exports=AtRule;n.registerAtRule(AtRule)},150:function(e,t){function set(e,t,u){if(typeof u.value==="object")u.value=klona(u.value);if(!u.enumerable||u.get||u.set||!u.configurable||!u.writable||t==="__proto__"){Object.defineProperty(e,t,u)}else e[t]=u.value}function klona(e){if(typeof e!=="object")return e;var t=0,u,n,r,s=Object.prototype.toString.call(e);if(s==="[object Object]"){r=Object.create(e.__proto__||null)}else if(s==="[object Array]"){r=Array(e.length)}else if(s==="[object Set]"){r=new Set;e.forEach(function(e){r.add(klona(e))})}else if(s==="[object Map]"){r=new Map;e.forEach(function(e,t){r.set(klona(t),klona(e))})}else if(s==="[object Date]"){r=new Date(+e)}else if(s==="[object RegExp]"){r=new RegExp(e.source,e.flags)}else if(s==="[object DataView]"){r=new e.constructor(klona(e.buffer))}else if(s==="[object ArrayBuffer]"){r=e.slice(0)}else if(s.slice(-6)==="Array]"){r=new e.constructor(e)}if(r){for(n=Object.getOwnPropertySymbols(e);ts=>u?e+(~(s+="").indexOf(t,4)?s.replace(n,r):s)+t:s;const r=(e,t)=>{return n(`[${e}m`,`[${t}m`,new RegExp(`\\x1b\\[${t}m`,"g"),`[${e}m`)};t.options=Object.defineProperty({},"enabled",{get:()=>u,set:e=>u=e});t.reset=r(0,0);t.bold=n("","",/\x1b\[22m/g,"");t.dim=n("","",/\x1b\[22m/g,"");t.italic=r(3,23);t.underline=r(4,24);t.inverse=r(7,27);t.hidden=r(8,28);t.strikethrough=r(9,29);t.black=r(30,39);t.red=r(31,39);t.green=r(32,39);t.yellow=r(33,39);t.blue=r(34,39);t.magenta=r(35,39);t.cyan=r(36,39);t.white=r(37,39);t.gray=r(90,39);t.bgBlack=r(40,49);t.bgRed=r(41,49);t.bgGreen=r(42,49);t.bgYellow=r(43,49);t.bgBlue=r(44,49);t.bgMagenta=r(45,49);t.bgCyan=r(46,49);t.bgWhite=r(47,49);t.blackBright=r(90,39);t.redBright=r(91,39);t.greenBright=r(92,39);t.yellowBright=r(93,39);t.blueBright=r(94,39);t.magentaBright=r(95,39);t.cyanBright=r(96,39);t.whiteBright=r(97,39);t.bgBlackBright=r(100,49);t.bgRedBright=r(101,49);t.bgGreenBright=r(102,49);t.bgYellowBright=r(103,49);t.bgBlueBright=r(104,49);t.bgMagentaBright=r(105,49);t.bgCyanBright=r(106,49);t.bgWhiteBright=r(107,49)},184:function(e,t,u){"use strict";let n=u(698);let r=u(847);class Processor{constructor(e=[]){this.version="8.1.1";this.plugins=this.normalize(e)}use(e){this.plugins=this.plugins.concat(this.normalize([e]));return this}process(e,t={}){if(this.plugins.length===0&&t.parser===t.stringifier&&!t.hideNothingWarning){if(process.env.NODE_ENV!=="production"){if(typeof console!=="undefined"&&console.warn){console.warn("You did not set any plugins, parser, or stringifier. "+"Right now, PostCSS does nothing. Pick plugins for your case "+"on https://www.postcss.parts/ and use them in postcss.config.js.")}}}return new n(this,e,t)}normalize(e){let t=[];for(let u of e){if(u.postcss===true){u=u()}else if(u.postcss){u=u.postcss}if(typeof u==="object"&&Array.isArray(u.plugins)){t=t.concat(u.plugins)}else if(typeof u==="object"&&u.postcssPlugin){t.push(u)}else if(typeof u==="function"){t.push(u)}else if(typeof u==="object"&&(u.parse||u.stringify)){if(process.env.NODE_ENV!=="production"){throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use "+"one of the syntax/parser/stringifier options as outlined "+"in your PostCSS runner documentation.")}}else{throw new Error(u+" is not a PostCSS plugin")}}return t}}e.exports=Processor;r.registerProcessor(Processor)},191:function(e){"use strict";class Warning extends Error{constructor(e){super(e);const{text:t,line:u,column:n,plugin:r}=e;this.name="Warning";this.message=`${this.name}\n\n`;if(typeof u!=="undefined"){this.message+=`(${u}:${n}) `}this.message+=r?`${r}: `:"";this.message+=`${t}`;this.stack=false}}e.exports=Warning},192:function(e,t,u){"use strict";var n=u(513);var r=u(310);var s=u(525);const i={anchorPrefix:"a",customTags:null,indent:2,indentSeq:true,keepCstNodes:false,keepNodeTypes:true,keepBlobsInJSON:true,mapAsMap:false,maxAliasCount:100,prettyErrors:false,simpleKeys:false,version:"1.2"};const o={get binary(){return r.binaryOptions},set binary(e){Object.assign(r.binaryOptions,e)},get bool(){return r.boolOptions},set bool(e){Object.assign(r.boolOptions,e)},get int(){return r.intOptions},set int(e){Object.assign(r.intOptions,e)},get null(){return r.nullOptions},set null(e){Object.assign(r.nullOptions,e)},get str(){return r.strOptions},set str(e){Object.assign(r.strOptions,e)}};const a={"1.0":{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:n.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:n.defaultTagPrefix}]},1.2:{schema:"core",merge:false,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:n.defaultTagPrefix}]}};function stringifyTag(e,t){if((e.version||e.options.version)==="1.0"){const e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const u=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return u?`!${u[1]}/${u[2]}`:`!${t.replace(/^tag:/,"")}`}let u=e.tagPrefixes.find(e=>t.indexOf(e.prefix)===0);if(!u){const n=e.getDefaults().tagPrefixes;u=n&&n.find(e=>t.indexOf(e.prefix)===0)}if(!u)return t[0]==="!"?t:`!<${t}>`;const n=t.substr(u.prefix.length).replace(/[!,[\]{}]/g,e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[e]);return u.handle+n}function getTagObject(e,t){if(t instanceof r.Alias)return r.Alias;if(t.tag){const u=e.filter(e=>e.tag===t.tag);if(u.length>0)return u.find(e=>e.format===t.format)||u[0]}let u,n;if(t instanceof r.Scalar){n=t.value;const r=e.filter(e=>e.identify&&e.identify(n)||e.class&&n instanceof e.class);u=r.find(e=>e.format===t.format)||r.find(e=>!e.format)}else{n=t;u=e.find(e=>e.nodeClass&&n instanceof e.nodeClass)}if(!u){const e=n&&n.constructor?n.constructor.name:typeof n;throw new Error(`Tag not resolved for ${e} value`)}return u}function stringifyProps(e,t,{anchors:u,doc:n}){const r=[];const s=n.anchors.getName(e);if(s){u[s]=e;r.push(`&${s}`)}if(e.tag){r.push(stringifyTag(n,e.tag))}else if(!t.default){r.push(stringifyTag(n,t.tag))}return r.join(" ")}function stringify(e,t,u,n){const{anchors:s,schema:i}=t.doc;let o;if(!(e instanceof r.Node)){const t={aliasNodes:[],onTagObj:e=>o=e,prevObjects:new Map};e=i.createNode(e,true,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=s.getName(e.source);if(!t){t=s.newName();s.map[t]=e.source}}}if(e instanceof r.Pair)return e.toString(t,u,n);if(!o)o=getTagObject(i.tags,e);const a=stringifyProps(e,o,t);if(a.length>0)t.indentAtStart=(t.indentAtStart||0)+a.length+1;const c=typeof o.stringify==="function"?o.stringify(e,t,u,n):e instanceof r.Scalar?r.stringifyString(e,t,u,n):e.toString(t,u,n);if(!a)return c;return e instanceof r.Scalar||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a}\n${t.indent}${c}`}class Anchors{static validAnchorNode(e){return e instanceof r.Scalar||e instanceof r.YAMLSeq||e instanceof r.YAMLMap}constructor(e){n._defineProperty(this,"map",{});this.prefix=e}createAlias(e,t){this.setAnchor(e,t);return new r.Alias(e)}createMergePair(...e){const t=new r.Merge;t.value.items=e.map(e=>{if(e instanceof r.Alias){if(e.source instanceof r.YAMLMap)return e}else if(e instanceof r.YAMLMap){return this.createAlias(e)}throw new Error("Merge sources must be Map nodes or their Aliases")});return t}getName(e){const{map:t}=this;return Object.keys(t).find(u=>t[u]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){if(!e)e=this.prefix;const t=Object.keys(this.map);for(let u=1;true;++u){const n=`${e}${u}`;if(!t.includes(n))return n}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach(t=>{e[t]=e[t].resolved});t.forEach(e=>{e.source=e.source.resolved});delete this._cstAliases}setAnchor(e,t){if(e!=null&&!Anchors.validAnchorNode(e)){throw new Error("Anchors may only be set for Scalar, Seq and Map nodes")}if(t&&/[\x00-\x19\s,[\]{}]/.test(t)){throw new Error("Anchor names must not contain whitespace or control characters")}const{map:u}=this;const n=e&&Object.keys(u).find(t=>u[t]===e);if(n){if(!t){return n}else if(n!==t){delete u[n];u[t]=e}}else{if(!t){if(!e)return null;t=this.newName()}u[t]=e}return t}}const c=(e,t)=>{if(e&&typeof e==="object"){const{tag:u}=e;if(e instanceof r.Collection){if(u)t[u]=true;e.items.forEach(e=>c(e,t))}else if(e instanceof r.Pair){c(e.key,t);c(e.value,t)}else if(e instanceof r.Scalar){if(u)t[u]=true}}return t};const l=e=>Object.keys(c(e,{}));function parseContents(e,t){const u={before:[],after:[]};let s=undefined;let i=false;for(const o of t){if(o.valueRange){if(s!==undefined){const t="Document contains trailing content not separated by a ... or --- line";e.errors.push(new n.YAMLSyntaxError(o,t));break}const t=r.resolveNode(e,o);if(i){t.spaceBefore=true;i=false}s=t}else if(o.comment!==null){const e=s===undefined?u.before:u.after;e.push(o.comment)}else if(o.type===n.Type.BLANK_LINE){i=true;if(s===undefined&&u.before.length>0&&!e.commentBefore){e.commentBefore=u.before.join("\n");u.before=[]}}}e.contents=s||null;if(!s){e.comment=u.before.concat(u.after).join("\n")||null}else{const t=u.before.join("\n");if(t){const e=s instanceof r.Collection&&s.items[0]?s.items[0]:s;e.commentBefore=e.commentBefore?`${t}\n${e.commentBefore}`:t}e.comment=u.after.join("\n")||null}}function resolveTagDirective({tagPrefixes:e},t){const[u,r]=t.parameters;if(!u||!r){const e="Insufficient parameters given for %TAG directive";throw new n.YAMLSemanticError(t,e)}if(e.some(e=>e.handle===u)){const e="The %TAG directive must only be given at most once per handle in the same document.";throw new n.YAMLSemanticError(t,e)}return{handle:u,prefix:r}}function resolveYamlDirective(e,t){let[u]=t.parameters;if(t.name==="YAML:1.0")u="1.0";if(!u){const e="Insufficient parameters given for %YAML directive";throw new n.YAMLSemanticError(t,e)}if(!a[u]){const r=e.version||e.options.version;const s=`Document will be parsed as YAML ${r} rather than YAML ${u}`;e.warnings.push(new n.YAMLWarning(t,s))}return u}function parseDirectives(e,t,u){const r=[];let s=false;for(const u of t){const{comment:t,name:i}=u;switch(i){case"TAG":try{e.tagPrefixes.push(resolveTagDirective(e,u))}catch(t){e.errors.push(t)}s=true;break;case"YAML":case"YAML:1.0":if(e.version){const t="The %YAML directive must only be given at most once per document.";e.errors.push(new n.YAMLSemanticError(u,t))}try{e.version=resolveYamlDirective(e,u)}catch(t){e.errors.push(t)}s=true;break;default:if(i){const t=`YAML only supports %TAG and %YAML directives, and not %${i}`;e.warnings.push(new n.YAMLWarning(u,t))}}if(t)r.push(t)}if(u&&!s&&"1.1"===(e.version||u.version||e.options.version)){const t=({handle:e,prefix:t})=>({handle:e,prefix:t});e.tagPrefixes=u.tagPrefixes.map(t);e.version=u.version}e.commentBefore=r.join("\n")||null}function assertCollection(e){if(e instanceof r.Collection)return true;throw new Error("Expected a YAML collection as document contents")}class Document{constructor(e){this.anchors=new Anchors(e.anchorPrefix);this.commentBefore=null;this.comment=null;this.contents=null;this.directivesEndMarker=null;this.errors=[];this.options=e;this.schema=null;this.tagPrefixes=[];this.version=null;this.warnings=[]}add(e){assertCollection(this.contents);return this.contents.add(e)}addIn(e,t){assertCollection(this.contents);this.contents.addIn(e,t)}delete(e){assertCollection(this.contents);return this.contents.delete(e)}deleteIn(e){if(r.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}assertCollection(this.contents);return this.contents.deleteIn(e)}getDefaults(){return Document.defaults[this.version]||Document.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof r.Collection?this.contents.get(e,t):undefined}getIn(e,t){if(r.isEmptyPath(e))return!t&&this.contents instanceof r.Scalar?this.contents.value:this.contents;return this.contents instanceof r.Collection?this.contents.getIn(e,t):undefined}has(e){return this.contents instanceof r.Collection?this.contents.has(e):false}hasIn(e){if(r.isEmptyPath(e))return this.contents!==undefined;return this.contents instanceof r.Collection?this.contents.hasIn(e):false}set(e,t){assertCollection(this.contents);this.contents.set(e,t)}setIn(e,t){if(r.isEmptyPath(e))this.contents=t;else{assertCollection(this.contents);this.contents.setIn(e,t)}}setSchema(e,t){if(!e&&!t&&this.schema)return;if(typeof e==="number")e=e.toFixed(1);if(e==="1.0"||e==="1.1"||e==="1.2"){if(this.version)this.version=e;else this.options.version=e;delete this.options.schema}else if(e&&typeof e==="string"){this.options.schema=e}if(Array.isArray(t))this.options.customTags=t;const u=Object.assign({},this.getDefaults(),this.options);this.schema=new s.Schema(u)}parse(e,t){if(this.options.keepCstNodes)this.cstNode=e;if(this.options.keepNodeTypes)this.type="DOCUMENT";const{directives:u=[],contents:r=[],directivesEndMarker:s,error:i,valueRange:o}=e;if(i){if(!i.source)i.source=this;this.errors.push(i)}parseDirectives(this,u,t);if(s)this.directivesEndMarker=true;this.range=o?[o.start,o.end]:null;this.setSchema();this.anchors._cstAliases=[];parseContents(this,r);this.anchors.resolveNodes();if(this.options.prettyErrors){for(const e of this.errors)if(e instanceof n.YAMLError)e.makePretty();for(const e of this.warnings)if(e instanceof n.YAMLError)e.makePretty()}return this}listNonDefaultTags(){return l(this.contents).filter(e=>e.indexOf(s.Schema.defaultPrefix)!==0)}setTagPrefix(e,t){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(t){const u=this.tagPrefixes.find(t=>t.handle===e);if(u)u.prefix=t;else this.tagPrefixes.push({handle:e,prefix:t})}else{this.tagPrefixes=this.tagPrefixes.filter(t=>t.handle!==e)}}toJSON(e,t){const{keepBlobsInJSON:u,mapAsMap:n,maxAliasCount:s}=this.options;const i=u&&(typeof e!=="string"||!(this.contents instanceof r.Scalar));const o={doc:this,indentStep:" ",keep:i,mapAsMap:i&&!!n,maxAliasCount:s,stringify:stringify};const a=Object.keys(this.anchors.map);if(a.length>0)o.anchors=new Map(a.map(e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]));const c=r.toJSON(this.contents,e,o);if(typeof t==="function"&&o.anchors)for(const{count:e,res:u}of o.anchors.values())t(u,e);return c}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();const t=[];let u=false;if(this.version){let e="%YAML 1.2";if(this.schema.name==="yaml-1.1"){if(this.version==="1.0")e="%YAML:1.0";else if(this.version==="1.1")e="%YAML 1.1"}t.push(e);u=true}const n=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:e,prefix:r})=>{if(n.some(e=>e.indexOf(r)===0)){t.push(`%TAG ${e} ${r}`);u=true}});if(u||this.directivesEndMarker)t.push("---");if(this.commentBefore){if(u||!this.directivesEndMarker)t.unshift("");t.unshift(this.commentBefore.replace(/^/gm,"#"))}const s={anchors:{},doc:this,indent:"",indentStep:" ".repeat(e),stringify:stringify};let i=false;let o=null;if(this.contents){if(this.contents instanceof r.Node){if(this.contents.spaceBefore&&(u||this.directivesEndMarker))t.push("");if(this.contents.commentBefore)t.push(this.contents.commentBefore.replace(/^/gm,"#"));s.forceBlockIndent=!!this.comment;o=this.contents.comment}const e=o?null:()=>i=true;const n=stringify(this.contents,s,()=>o=null,e);t.push(r.addComment(n,"",o))}else if(this.contents!==undefined){t.push(stringify(this.contents,s))}if(this.comment){if((!i||o)&&t[t.length-1]!=="")t.push("");t.push(this.comment.replace(/^/gm,"#"))}return t.join("\n")+"\n"}}n._defineProperty(Document,"defaults",a);t.Document=Document;t.defaultOptions=i;t.scalarOptions=o},208:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getPropertyByPath=getPropertyByPath;function getPropertyByPath(e,t){if(typeof t==="string"&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}const u=typeof t==="string"?t.split("."):t;return u.reduce((e,t)=>{if(e===undefined){return e}return e[t]},e)}},233:function(e,t,u){"use strict";let{red:n,bold:r,gray:s,options:i}=u(153);let o=u(958);class CssSyntaxError extends Error{constructor(e,t,u,n,r,s){super(e);this.name="CssSyntaxError";this.reason=e;if(r){this.file=r}if(n){this.source=n}if(s){this.plugin=s}if(typeof t!=="undefined"&&typeof u!=="undefined"){this.line=t;this.column=u}this.setMessage();if(Error.captureStackTrace){Error.captureStackTrace(this,CssSyntaxError)}}setMessage(){this.message=this.plugin?this.plugin+": ":"";this.message+=this.file?this.file:"";if(typeof this.line!=="undefined"){this.message+=":"+this.line+":"+this.column}this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;if(e==null)e=i.enabled;if(o){if(e)t=o(t)}let u=t.split(/\r?\n/);let a=Math.max(this.line-3,0);let c=Math.min(this.line+2,u.length);let l=String(c).length;let f,h;if(e){f=(e=>r(n(e)));h=(e=>s(e))}else{f=h=(e=>e)}return u.slice(a,c).map((e,t)=>{let u=a+1+t;let n=" "+(" "+u).slice(-l)+" | ";if(u===this.line){let t=h(n.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return f(">")+h(n)+e+"\n "+t+f("^")}return" "+h(n)+e}).join("\n")}toString(){let e=this.showSourceCode();if(e){e="\n\n"+e+"\n"}return this.name+": "+this.message+e}}e.exports=CssSyntaxError},241:function(e){e.exports=require("next/dist/compiled/source-map")},249:function(e,t,u){"use strict";let n=u(7);class Declaration extends n{constructor(e){if(e&&typeof e.value!=="undefined"&&typeof e.value!=="string"){e={...e,value:String(e.value)}}super(e);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}e.exports=Declaration},254:function(e,t){"use strict";var u="\n";var n="\r";var r=function(){function LinesAndColumns(e){this.string=e;var t=[0];for(var r=0;rthis.string.length){return null}var t=0;var u=this.offsets;while(u[t+1]<=e){t++}var n=e-u[t];return{line:t,column:n}};LinesAndColumns.prototype.indexForLocation=function(e){var t=e.line,u=e.column;if(t<0||t>=this.offsets.length){return null}if(u<0||u>this.lengthOfLine(t)){return null}return this.offsets[t]+u};LinesAndColumns.prototype.lengthOfLine=function(e){var t=this.offsets[e];var u=e===this.offsets.length-1?this.string.length:this.offsets[e+1];return u-t};return LinesAndColumns}();t.__esModule=true;t["default"]=r},270:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cacheWrapper=cacheWrapper;t.cacheWrapperSync=cacheWrapperSync;async function cacheWrapper(e,t,u){const n=e.get(t);if(n!==undefined){return n}const r=await u();e.set(t,r);return r}function cacheWrapperSync(e,t,u){const n=e.get(t);if(n!==undefined){return n}const r=u();e.set(t,r);return r}},277:function(e){e.exports=require("path")},282:function(e){e.exports=require("module")},294:function(e,t,u){"use strict";let n=u(249);let r=u(622);let s=u(374);let i=u(149);let o=u(847);let a=u(301);class Parser{constructor(e){this.input=e;this.root=new o;this.current=this.root;this.spaces="";this.semicolon=false;this.customProperty=false;this.createTokenizer();this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=r(this.input)}parse(){let e;while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();switch(e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}}this.endFile()}comment(e){let t=new s;this.init(t,e[2]);t.source.end=this.getPosition(e[3]||e[2]);let u=e[1].slice(2,-2);if(/^\s*$/.test(u)){t.text="";t.raws.left=u;t.raws.right=""}else{let e=u.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2];t.raws.left=e[1];t.raws.right=e[3]}}emptyRule(e){let t=new a;this.init(t,e[2]);t.selector="";t.raws.between="";this.current=t}other(e){let t=false;let u=null;let n=false;let r=null;let s=[];let i=e[1].startsWith("--");let o=[];let a=e;while(a){u=a[0];o.push(a);if(u==="("||u==="["){if(!r)r=a;s.push(u==="("?")":"]")}else if(i&&n&&u==="{"){if(!r)r=a;s.push("}")}else if(s.length===0){if(u===";"){if(n){this.decl(o,i);return}else{break}}else if(u==="{"){this.rule(o);return}else if(u==="}"){this.tokenizer.back(o.pop());t=true;break}else if(u===":"){n=true}}else if(u===s[s.length-1]){s.pop();if(s.length===0)r=null}a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())t=true;if(s.length>0)this.unclosedBracket(r);if(t&&n){while(o.length){a=o[o.length-1][0];if(a!=="space"&&a!=="comment")break;this.tokenizer.back(o.pop())}this.decl(o,i)}else{this.unknownWord(o)}}rule(e){e.pop();let t=new a;this.init(t,e[0][2]);t.raws.between=this.spacesAndCommentsFromEnd(e);this.raw(t,"selector",e);this.current=t}decl(e,t){let u=new n;this.init(u,e[0][2]);let r=e[e.length-1];if(r[0]===";"){this.semicolon=true;e.pop()}u.source.end=this.getPosition(r[3]||r[2]);while(e[0][0]!=="word"){if(e.length===1)this.unknownWord(e);u.raws.before+=e.shift()[1]}u.source.start=this.getPosition(e[0][2]);u.prop="";while(e.length){let t=e[0][0];if(t===":"||t==="space"||t==="comment"){break}u.prop+=e.shift()[1]}u.raws.between="";let s;while(e.length){s=e.shift();if(s[0]===":"){u.raws.between+=s[1];break}else{if(s[0]==="word"&&/\w/.test(s[1])){this.unknownWord([s])}u.raws.between+=s[1]}}if(u.prop[0]==="_"||u.prop[0]==="*"){u.raws.before+=u.prop[0];u.prop=u.prop.slice(1)}let i=this.spacesAndCommentsFromStart(e);this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){s=e[t];if(s[1].toLowerCase()==="!important"){u.important=true;let n=this.stringFrom(e,t);n=this.spacesFromEnd(e)+n;if(n!==" !important")u.raws.important=n;break}else if(s[1].toLowerCase()==="important"){let n=e.slice(0);let r="";for(let e=t;e>0;e--){let t=n[e][0];if(r.trim().indexOf("!")===0&&t!=="space"){break}r=n.pop()[1]+r}if(r.trim().indexOf("!")===0){u.important=true;u.raws.important=r;e=n}}if(s[0]!=="space"&&s[0]!=="comment"){break}}let o=e.some(e=>e[0]!=="space"&&e[0]!=="comment");this.raw(u,"value",e);if(o){u.raws.between+=i}else{u.value=i+u.value}if(u.value.includes(":")&&!t){this.checkMissedSemicolon(e)}}atrule(e){let t=new i;t.name=e[1].slice(1);if(t.name===""){this.unnamedAtrule(t,e)}this.init(t,e[2]);let u;let n;let r;let s=false;let o=false;let a=[];let c=[];while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();u=e[0];if(u==="("||u==="["){c.push(u==="("?")":"]")}else if(u==="{"&&c.length>0){c.push("}")}else if(u===c[c.length-1]){c.pop()}if(c.length===0){if(u===";"){t.source.end=this.getPosition(e[2]);this.semicolon=true;break}else if(u==="{"){o=true;break}else if(u==="}"){if(a.length>0){r=a.length-1;n=a[r];while(n&&n[0]==="space"){n=a[--r]}if(n){t.source.end=this.getPosition(n[3]||n[2])}}this.end(e);break}else{a.push(e)}}else{a.push(e)}if(this.tokenizer.endOfFile()){s=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(a);if(a.length){t.raws.afterName=this.spacesAndCommentsFromStart(a);this.raw(t,"params",a);if(s){e=a[a.length-1];t.source.end=this.getPosition(e[3]||e[2]);this.spaces=t.raws.between;t.raws.between=""}}else{t.raws.afterName="";t.params=""}if(o){t.nodes=[];this.current=t}}end(e){if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.semicolon=false;this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.spaces="";if(this.current.parent){this.current.source.end=this.getPosition(e[2]);this.current=this.current.parent}else{this.unexpectedClose(e)}}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){this.spaces+=e[1];if(this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];if(e&&e.type==="rule"&&!e.raws.ownSemicolon){e.raws.ownSemicolon=this.spaces;this.spaces=""}}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e);e.source={start:this.getPosition(t),input:this.input};e.raws.before=this.spaces;this.spaces="";if(e.type!=="comment")this.semicolon=false}raw(e,t,u){let n,r;let s=u.length;let i="";let o=true;let a,c;let l=/^([#.|])?(\w)+/i;for(let t=0;te+t[1],"");e.raws[t]={value:i,raw:n}}e[t]=i}spacesAndCommentsFromEnd(e){let t;let u="";while(e.length){t=e[e.length-1][0];if(t!=="space"&&t!=="comment")break;u=e.pop()[1]+u}return u}spacesAndCommentsFromStart(e){let t;let u="";while(e.length){t=e[0][0];if(t!=="space"&&t!=="comment")break;u+=e.shift()[1]}return u}spacesFromEnd(e){let t;let u="";while(e.length){t=e[e.length-1][0];if(t!=="space")break;u=e.pop()[1]+u}return u}stringFrom(e,t){let u="";for(let n=t;n=0;r--){n=e[r];if(n[0]!=="space"){u+=1;if(u===2)break}}throw this.input.error("Missed semicolon",n[2])}}e.exports=Parser},301:function(e,t,u){"use strict";let n=u(990);let r=u(430);class Rule extends n{constructor(e){super(e);this.type="rule";if(!this.nodes)this.nodes=[]}get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null;let u=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(u)}}e.exports=Rule;n.registerRule(Rule)},310:function(e,t,u){"use strict";var n=u(513);function addCommentBefore(e,t,u){if(!u)return e;const n=u.replace(/[\s\S]^/gm,`$&${t}#`);return`#${n}\n${t}${e}`}function addComment(e,t,u){return!u?e:u.indexOf("\n")===-1?`${e} #${u}`:`${e}\n`+u.replace(/^/gm,`${t||""}#`)}class Node{}function toJSON(e,t,u){if(Array.isArray(e))return e.map((e,t)=>toJSON(e,String(t),u));if(e&&typeof e.toJSON==="function"){const n=u&&u.anchors&&u.anchors.get(e);if(n)u.onCreate=(e=>{n.res=e;delete u.onCreate});const r=e.toJSON(t,u);if(n&&u.onCreate)u.onCreate(r);return r}if((!u||!u.keep)&&typeof e==="bigint")return Number(e);return e}class Scalar extends Node{constructor(e){super();this.value=e}toJSON(e,t){return t&&t.keep?this.value:toJSON(this.value,e,t)}toString(){return String(this.value)}}function collectionFromPath(e,t,u){let n=u;for(let e=t.length-1;e>=0;--e){const u=t[e];const r=Number.isInteger(u)&&u>=0?[]:{};r[u]=n;n=r}return e.createNode(n,false)}const r=e=>e==null||typeof e==="object"&&e[Symbol.iterator]().next().done;class Collection extends Node{constructor(e){super();n._defineProperty(this,"items",[]);this.schema=e}addIn(e,t){if(r(e))this.add(t);else{const[u,...n]=e;const r=this.get(u,true);if(r instanceof Collection)r.addIn(n,t);else if(r===undefined&&this.schema)this.set(u,collectionFromPath(this.schema,n,t));else throw new Error(`Expected YAML collection at ${u}. Remaining path: ${n}`)}}deleteIn([e,...t]){if(t.length===0)return this.delete(e);const u=this.get(e,true);if(u instanceof Collection)return u.deleteIn(t);else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],u){const n=this.get(e,true);if(t.length===0)return!u&&n instanceof Scalar?n.value:n;else return n instanceof Collection?n.getIn(t,u):undefined}hasAllNullValues(){return this.items.every(e=>{if(!e||e.type!=="PAIR")return false;const t=e.value;return t==null||t instanceof Scalar&&t.value==null&&!t.commentBefore&&!t.comment&&!t.tag})}hasIn([e,...t]){if(t.length===0)return this.has(e);const u=this.get(e,true);return u instanceof Collection?u.hasIn(t):false}setIn([e,...t],u){if(t.length===0){this.set(e,u)}else{const n=this.get(e,true);if(n instanceof Collection)n.setIn(t,u);else if(n===undefined&&this.schema)this.set(e,collectionFromPath(this.schema,t,u));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}}toJSON(){return null}toString(e,{blockItem:t,flowChars:u,isMap:r,itemIndent:s},i,o){const{indent:a,indentStep:c,stringify:l}=e;const f=this.type===n.Type.FLOW_MAP||this.type===n.Type.FLOW_SEQ||e.inFlow;if(f)s+=c;const h=r&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:h,indent:s,inFlow:f,type:null});let D=false;let p=false;const A=this.items.reduce((t,u,n)=>{let r;if(u){if(!D&&u.spaceBefore)t.push({type:"comment",str:""});if(u.commentBefore)u.commentBefore.match(/^.*$/gm).forEach(e=>{t.push({type:"comment",str:`#${e}`})});if(u.comment)r=u.comment;if(f&&(!D&&u.spaceBefore||u.commentBefore||u.comment||u.key&&(u.key.commentBefore||u.key.comment)||u.value&&(u.value.commentBefore||u.value.comment)))p=true}D=false;let i=l(u,e,()=>r=null,()=>D=true);if(f&&!p&&i.includes("\n"))p=true;if(f&&ne.str);if(p||n.reduce((e,t)=>e+t.length+2,2)>Collection.maxFlowStringSingleLineLength){d=e;for(const e of n){d+=e?`\n${c}${a}${e}`:"\n"}d+=`\n${a}${t}`}else{d=`${e} ${n.join(" ")} ${t}`}}else{const e=A.map(t);d=e.shift();for(const t of e)d+=t?`\n${a}${t}`:"\n"}if(this.comment){d+="\n"+this.comment.replace(/^/gm,`${a}#`);if(i)i()}else if(D&&o)o();return d}}n._defineProperty(Collection,"maxFlowStringSingleLineLength",60);function asItemIndex(e){let t=e instanceof Scalar?e.value:e;if(t&&typeof t==="string")t=Number(t);return Number.isInteger(t)&&t>=0?t:null}class YAMLSeq extends Collection{add(e){this.items.push(e)}delete(e){const t=asItemIndex(e);if(typeof t!=="number")return false;const u=this.items.splice(t,1);return u.length>0}get(e,t){const u=asItemIndex(e);if(typeof u!=="number")return undefined;const n=this.items[u];return!t&&n instanceof Scalar?n.value:n}has(e){const t=asItemIndex(e);return typeof t==="number"&&te.type==="comment"?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:false,itemIndent:(e.indent||"")+" "},t,u)}}const s=(e,t,u)=>{if(t===null)return"";if(typeof t!=="object")return String(t);if(e instanceof Node&&u&&u.doc)return e.toString({anchors:{},doc:u.doc,indent:"",indentStep:u.indentStep,inFlow:true,inStringifyKey:true,stringify:u.stringify});return JSON.stringify(t)};class Pair extends Node{constructor(e,t=null){super();this.key=e;this.value=t;this.type=Pair.Type.PAIR}get commentBefore(){return this.key instanceof Node?this.key.commentBefore:undefined}set commentBefore(e){if(this.key==null)this.key=new Scalar(null);if(this.key instanceof Node)this.key.commentBefore=e;else{const e="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(e)}}addToJSMap(e,t){const u=toJSON(this.key,"",e);if(t instanceof Map){const n=toJSON(this.value,u,e);t.set(u,n)}else if(t instanceof Set){t.add(u)}else{const n=s(this.key,u,e);t[n]=toJSON(this.value,n,e)}return t}toJSON(e,t){const u=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,u)}toString(e,t,u){if(!e||!e.doc)return JSON.stringify(this);const{indent:r,indentSeq:s,simpleKeys:i}=e.doc.options;let{key:o,value:a}=this;let c=o instanceof Node&&o.comment;if(i){if(c){throw new Error("With simple keys, key nodes cannot have comments")}if(o instanceof Collection){const e="With simple keys, collection cannot be used as a key value";throw new Error(e)}}const l=!i&&(!o||c||o instanceof Collection||o.type===n.Type.BLOCK_FOLDED||o.type===n.Type.BLOCK_LITERAL);const{doc:f,indent:h,indentStep:D,stringify:p}=e;e=Object.assign({},e,{implicitKey:!l,indent:h+D});let A=false;let d=p(o,e,()=>c=null,()=>A=true);d=addComment(d,e.indent,c);if(e.allNullValues&&!i){if(this.comment){d=addComment(d,e.indent,this.comment);if(t)t()}else if(A&&!c&&u)u();return e.inFlow?d:`? ${d}`}d=l?`? ${d}\n${h}:`:`${d}:`;if(this.comment){d=addComment(d,e.indent,this.comment);if(t)t()}let g="";let C=null;if(a instanceof Node){if(a.spaceBefore)g="\n";if(a.commentBefore){const t=a.commentBefore.replace(/^/gm,`${e.indent}#`);g+=`\n${t}`}C=a.comment}else if(a&&typeof a==="object"){a=f.schema.createNode(a,true)}e.implicitKey=false;if(!l&&!this.comment&&a instanceof Scalar)e.indentAtStart=d.length+1;A=false;if(!s&&r>=2&&!e.inFlow&&!l&&a instanceof YAMLSeq&&a.type!==n.Type.FLOW_SEQ&&!a.tag&&!f.anchors.getName(a)){e.indent=e.indent.substr(2)}const F=p(a,e,()=>C=null,()=>A=true);let E=" ";if(g||this.comment){E=`${g}\n${e.indent}`}else if(!l&&a instanceof Collection){const t=F[0]==="["||F[0]==="{";if(!t||F.includes("\n"))E=`\n${e.indent}`}if(A&&!C&&u)u();return addComment(d+E+F,e.indent,C)}}n._defineProperty(Pair,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});const i=(e,t)=>{if(e instanceof Alias){const u=t.get(e.source);return u.count*u.aliasCount}else if(e instanceof Collection){let u=0;for(const n of e.items){const e=i(n,t);if(e>u)u=e}return u}else if(e instanceof Pair){const u=i(e.key,t);const n=i(e.value,t);return Math.max(u,n)}return 1};class Alias extends Node{static stringify({range:e,source:t},{anchors:u,doc:n,implicitKey:r,inStringifyKey:s}){let i=Object.keys(u).find(e=>u[e]===t);if(!i&&s)i=n.anchors.getName(t)||n.anchors.newName();if(i)return`*${i}${r?" ":""}`;const o=n.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${o} [${e}]`)}constructor(e){super();this.source=e;this.type=n.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return toJSON(this.source,e,t);const{anchors:u,maxAliasCount:r}=t;const s=u.get(this.source);if(!s||s.res===undefined){const e="This should not happen: Alias anchor was not resolved?";if(this.cstNode)throw new n.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}if(r>=0){s.count+=1;if(s.aliasCount===0)s.aliasCount=i(this.source,u);if(s.count*s.aliasCount>r){const e="Excessive alias count indicates a resource exhaustion attack";if(this.cstNode)throw new n.YAMLReferenceError(this.cstNode,e);else throw new ReferenceError(e)}}return s.res}toString(e){return Alias.stringify(this,e)}}n._defineProperty(Alias,"default",true);function findPair(e,t){const u=t instanceof Scalar?t.value:t;for(const n of e){if(n instanceof Pair){if(n.key===t||n.key===u)return n;if(n.key&&n.key.value===u)return n}}return undefined}class YAMLMap extends Collection{add(e,t){if(!e)e=new Pair(e);else if(!(e instanceof Pair))e=new Pair(e.key||e,e.value);const u=findPair(this.items,e.key);const n=this.schema&&this.schema.sortMapEntries;if(u){if(t)u.value=e.value;else throw new Error(`Key ${e.key} already set`)}else if(n){const t=this.items.findIndex(t=>n(e,t)<0);if(t===-1)this.items.push(e);else this.items.splice(t,0,e)}else{this.items.push(e)}}delete(e){const t=findPair(this.items,e);if(!t)return false;const u=this.items.splice(this.items.indexOf(t),1);return u.length>0}get(e,t){const u=findPair(this.items,e);const n=u&&u.value;return!t&&n instanceof Scalar?n.value:n}has(e){return!!findPair(this.items,e)}set(e,t){this.add(new Pair(e,t),true)}toJSON(e,t,u){const n=u?new u:t&&t.mapAsMap?new Map:{};if(t&&t.onCreate)t.onCreate(n);for(const e of this.items)e.addToJSMap(t,n);return n}toString(e,t,u){if(!e)return JSON.stringify(this);for(const e of this.items){if(!(e instanceof Pair))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`)}return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:true,itemIndent:e.indent||""},t,u)}}const o="<<";class Merge extends Pair{constructor(e){if(e instanceof Pair){let t=e.value;if(!(t instanceof YAMLSeq)){t=new YAMLSeq;t.items.push(e.value);t.range=e.value.range}super(e.key,t);this.range=e.range}else{super(new Scalar(o),new YAMLSeq)}this.type=Pair.Type.MERGE_PAIR}addToJSMap(e,t){for(const{source:u}of this.value.items){if(!(u instanceof YAMLMap))throw new Error("Merge sources must be maps");const n=u.toJSON(null,e,Map);for(const[e,u]of n){if(t instanceof Map){if(!t.has(e))t.set(e,u)}else if(t instanceof Set){t.add(e)}else{if(!Object.prototype.hasOwnProperty.call(t,e))t[e]=u}}}return t}toString(e,t){const u=this.value;if(u.items.length>1)return super.toString(e,t);this.value=u.items[0];const n=super.toString(e,t);this.value=u;return n}}const a={defaultType:n.Type.BLOCK_LITERAL,lineWidth:76};const c={trueStr:"true",falseStr:"false"};const l={asBigInt:false};const f={nullStr:"null"};const h={defaultType:n.Type.PLAIN,doubleQuoted:{jsonEncoding:false,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function resolveScalar(e,t,u){for(const{format:u,test:n,resolve:r}of t){if(n){const t=e.match(n);if(t){let e=r.apply(null,t);if(!(e instanceof Scalar))e=new Scalar(e);if(u)e.format=u;return e}}}if(u)e=u(e);return new Scalar(e)}const D="flow";const p="block";const A="quoted";const d=(e,t)=>{let u=e[t+1];while(u===" "||u==="\t"){do{u=e[t+=1]}while(u&&u!=="\n");u=e[t+1]}return t};function foldFlowLines(e,t,u,{indentAtStart:n,lineWidth:r=80,minContentWidth:s=20,onFold:i,onOverflow:o}){if(!r||r<0)return e;const a=Math.max(1+s,1+r-t.length);if(e.length<=a)return e;const c=[];const l={};let f=r-(typeof n==="number"?n:t.length);let h=undefined;let D=undefined;let g=false;let C=-1;if(u===p){C=d(e,C);if(C!==-1)f=C+a}for(let t;t=e[C+=1];){if(u===A&&t==="\\"){switch(e[C+1]){case"x":C+=3;break;case"u":C+=5;break;case"U":C+=9;break;default:C+=1}}if(t==="\n"){if(u===p)C=d(e,C);f=C+a;h=undefined}else{if(t===" "&&D&&D!==" "&&D!=="\n"&&D!=="\t"){const t=e[C+1];if(t&&t!==" "&&t!=="\n"&&t!=="\t")h=C}if(C>=f){if(h){c.push(h);f=h+a;h=undefined}else if(u===A){while(D===" "||D==="\t"){D=t;t=e[C+=1];g=true}c.push(C-2);l[C-2]=true;f=C-2+a;h=undefined}else{g=true}}}D=t}if(g&&o)o();if(c.length===0)return e;if(i)i();let F=e.slice(0,c[0]);for(let n=0;ne?Object.assign({indentAtStart:e},h.fold):h.fold;const C=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t){const u=e.length;if(u<=t)return false;for(let n=0,r=0;nt)return true;r=n+1;if(u-r<=t)return false}}return true}function doubleQuotedString(e,t){const{implicitKey:u}=t;const{jsonEncoding:n,minMultiLineLength:r}=h.doubleQuoted;const s=JSON.stringify(e);if(n)return s;const i=t.indent||(C(e)?" ":"");let o="";let a=0;for(let e=0,t=s[e];t;t=s[++e]){if(t===" "&&s[e+1]==="\\"&&s[e+2]==="n"){o+=s.slice(a,e)+"\\ ";e+=1;a=e;t="\\"}if(t==="\\")switch(s[e+1]){case"u":{o+=s.slice(a,e);const t=s.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:if(t.substr(0,2)==="00")o+="\\x"+t.substr(2);else o+=s.substr(e,6)}e+=5;a=e+1}break;case"n":if(u||s[e+2]==='"'||s.length";if(!u)return l+"\n";let f="";let D="";u=u.replace(/[\n\t ]*$/,e=>{const t=e.indexOf("\n");if(t===-1){l+="-"}else if(u===e||t!==e.length-1){l+="+";if(i)i()}D=e.replace(/\n$/,"");return""}).replace(/^[\n ]*/,e=>{if(e.indexOf(" ")!==-1)l+=a;const t=e.match(/ +$/);if(t){f=e.slice(0,-t[0].length);return t[0]}else{f=e;return""}});if(D)D=D.replace(/\n+(?!\n|$)/g,`$&${o}`);if(f)f=f.replace(/\n+/g,`$&${o}`);if(e){l+=" #"+e.replace(/ ?[\r\n]+/g," ");if(s)s()}if(!u)return`${l}${a}\n${o}${D}`;if(c){u=u.replace(/\n+/g,`$&${o}`);return`${l}\n${o}${f}${u}${D}`}u=u.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${o}`);const A=foldFlowLines(`${f}${u}${D}`,o,p,h.fold);return`${l}\n${o}${A}`}function plainString(e,t,u,r){const{comment:s,type:i,value:o}=e;const{actualString:a,implicitKey:c,indent:l,inFlow:f}=t;if(c&&/[\n[\]{},]/.test(o)||f&&/[[\]{},]/.test(o)){return doubleQuotedString(o,t)}if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o)){return c||f||o.indexOf("\n")===-1?o.indexOf('"')!==-1&&o.indexOf("'")===-1?singleQuotedString(o,t):doubleQuotedString(o,t):blockString(e,t,u,r)}if(!c&&!f&&i!==n.Type.PLAIN&&o.indexOf("\n")!==-1){return blockString(e,t,u,r)}if(l===""&&C(o)){t.forceBlockIndent=true;return blockString(e,t,u,r)}const h=o.replace(/\n+/g,`$&\n${l}`);if(a){const{tags:e}=t.doc.schema;const u=resolveScalar(h,e,e.scalarFallback).value;if(typeof u!=="string")return doubleQuotedString(o,t)}const p=c?h:foldFlowLines(h,l,D,g(t));if(s&&!f&&(p.indexOf("\n")!==-1||s.indexOf("\n")!==-1)){if(u)u();return addCommentBefore(p,l,s)}return p}function stringifyString(e,t,u,r){const{defaultType:s}=h;const{implicitKey:i,inFlow:o}=t;let{type:a,value:c}=e;if(typeof c!=="string"){c=String(c);e=Object.assign({},e,{value:c})}const l=s=>{switch(s){case n.Type.BLOCK_FOLDED:case n.Type.BLOCK_LITERAL:return blockString(e,t,u,r);case n.Type.QUOTE_DOUBLE:return doubleQuotedString(c,t);case n.Type.QUOTE_SINGLE:return singleQuotedString(c,t);case n.Type.PLAIN:return plainString(e,t,u,r);default:return null}};if(a!==n.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)){a=n.Type.QUOTE_DOUBLE}else if((i||o)&&(a===n.Type.BLOCK_FOLDED||a===n.Type.BLOCK_LITERAL)){a=n.Type.QUOTE_DOUBLE}let f=l(a);if(f===null){f=l(s);if(f===null)throw new Error(`Unsupported default string type ${s}`)}return f}function stringifyNumber({format:e,minFractionDigits:t,tag:u,value:n}){if(typeof n==="bigint")return String(n);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let r=JSON.stringify(n);if(!e&&t&&(!u||u==="tag:yaml.org,2002:float")&&/^\d/.test(r)){let e=r.indexOf(".");if(e<0){e=r.length;r+="."}let u=t-(r.length-e-1);while(u-- >0)r+="0"}return r}function checkFlowCollectionEnd(e,t){let u,r;switch(t.type){case n.Type.FLOW_MAP:u="}";r="flow map";break;case n.Type.FLOW_SEQ:u="]";r="flow sequence";break;default:e.push(new n.YAMLSemanticError(t,"Not a flow collection!?"));return}let s;for(let e=t.items.length-1;e>=0;--e){const u=t.items[e];if(!u||u.type!==n.Type.COMMENT){s=u;break}}if(s&&s.char!==u){const i=`Expected ${r} to end with ${u}`;let o;if(typeof s.offset==="number"){o=new n.YAMLSemanticError(t,i);o.offset=s.offset+1}else{o=new n.YAMLSemanticError(s,i);if(s.range&&s.range.end)o.offset=s.range.end-s.range.start}e.push(o)}}function checkFlowCommentSpace(e,t){const u=t.context.src[t.range.start-1];if(u!=="\n"&&u!=="\t"&&u!==" "){const u="Comments must be separated from other tokens by white space characters";e.push(new n.YAMLSemanticError(t,u))}}function getLongKeyError(e,t){const u=String(t);const r=u.substr(0,8)+"..."+u.substr(-8);return new n.YAMLSemanticError(e,`The "${r}" key is too long`)}function resolveComments(e,t){for(const{afterKey:u,before:n,comment:r}of t){let t=e.items[n];if(!t){if(r!==undefined){if(e.comment)e.comment+="\n"+r;else e.comment=r}}else{if(u&&t.value)t=t.value;if(r===undefined){if(u||!t.commentBefore)t.spaceBefore=true}else{if(t.commentBefore)t.commentBefore+="\n"+r;else t.commentBefore=r}}}}function resolveString(e,t){const u=t.strValue;if(!u)return"";if(typeof u==="string")return u;u.errors.forEach(u=>{if(!u.source)u.source=t;e.errors.push(u)});return u.str}function resolveTagHandle(e,t){const{handle:u,suffix:r}=t.tag;let s=e.tagPrefixes.find(e=>e.handle===u);if(!s){const r=e.getDefaults().tagPrefixes;if(r)s=r.find(e=>e.handle===u);if(!s)throw new n.YAMLSemanticError(t,`The ${u} tag handle is non-default and was not declared.`)}if(!r)throw new n.YAMLSemanticError(t,`The ${u} tag has no suffix.`);if(u==="!"&&(e.version||e.options.version)==="1.0"){if(r[0]==="^"){e.warnings.push(new n.YAMLWarning(t,"YAML 1.0 ^ tag expansion is not supported"));return r}if(/[:/]/.test(r)){const e=r.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function resolveTagName(e,t){const{tag:u,type:r}=t;let s=false;if(u){const{handle:r,suffix:i,verbatim:o}=u;if(o){if(o!=="!"&&o!=="!!")return o;const u=`Verbatim tags aren't resolved, so ${o} is invalid.`;e.errors.push(new n.YAMLSemanticError(t,u))}else if(r==="!"&&!i){s=true}else{try{return resolveTagHandle(e,t)}catch(t){e.errors.push(t)}}}switch(r){case n.Type.BLOCK_FOLDED:case n.Type.BLOCK_LITERAL:case n.Type.QUOTE_DOUBLE:case n.Type.QUOTE_SINGLE:return n.defaultTags.STR;case n.Type.FLOW_MAP:case n.Type.MAP:return n.defaultTags.MAP;case n.Type.FLOW_SEQ:case n.Type.SEQ:return n.defaultTags.SEQ;case n.Type.PLAIN:return s?n.defaultTags.STR:null;default:return null}}function resolveByTagName(e,t,u){const{tags:n}=e.schema;const r=[];for(const s of n){if(s.tag===u){if(s.test)r.push(s);else{const u=s.resolve(e,t);return u instanceof Collection?u:new Scalar(u)}}}const s=resolveString(e,t);if(typeof s==="string"&&r.length>0)return resolveScalar(s,r,n.scalarFallback);return null}function getFallbackTagName({type:e}){switch(e){case n.Type.FLOW_MAP:case n.Type.MAP:return n.defaultTags.MAP;case n.Type.FLOW_SEQ:case n.Type.SEQ:return n.defaultTags.SEQ;default:return n.defaultTags.STR}}function resolveTag(e,t,u){try{const n=resolveByTagName(e,t,u);if(n){if(u&&t.tag)n.tag=u;return n}}catch(u){if(!u.source)u.source=t;e.errors.push(u);return null}try{const r=getFallbackTagName(t);if(!r)throw new Error(`The tag ${u} is unavailable`);const s=`The tag ${u} is unavailable, falling back to ${r}`;e.warnings.push(new n.YAMLWarning(t,s));const i=resolveByTagName(e,t,r);i.tag=u;return i}catch(u){const r=new n.YAMLReferenceError(t,u.message);r.stack=u.stack;e.errors.push(r);return null}}const F=e=>{if(!e)return false;const{type:t}=e;return t===n.Type.MAP_KEY||t===n.Type.MAP_VALUE||t===n.Type.SEQ_ITEM};function resolveNodeProps(e,t){const u={before:[],after:[]};let r=false;let s=false;const i=F(t.context.parent)?t.context.parent.props.concat(t.props):t.props;for(const{start:o,end:a}of i){switch(t.context.src[o]){case n.Char.COMMENT:{if(!t.commentHasRequiredWhitespace(o)){const u="Comments must be separated from other tokens by white space characters";e.push(new n.YAMLSemanticError(t,u))}const{header:r,valueRange:s}=t;const i=s&&(o>s.start||r&&o>r.start)?u.after:u.before;i.push(t.context.src.slice(o+1,a));break}case n.Char.ANCHOR:if(r){const u="A node can have at most one anchor";e.push(new n.YAMLSemanticError(t,u))}r=true;break;case n.Char.TAG:if(s){const u="A node can have at most one tag";e.push(new n.YAMLSemanticError(t,u))}s=true;break}}return{comments:u,hasAnchor:r,hasTag:s}}function resolveNodeValue(e,t){const{anchors:u,errors:r,schema:s}=e;if(t.type===n.Type.ALIAS){const e=t.rawValue;const s=u.getNode(e);if(!s){const u=`Aliased anchor not found: ${e}`;r.push(new n.YAMLReferenceError(t,u));return null}const i=new Alias(s);u._cstAliases.push(i);return i}const i=resolveTagName(e,t);if(i)return resolveTag(e,t,i);if(t.type!==n.Type.PLAIN){const e=`Failed to resolve ${t.type} node here`;r.push(new n.YAMLSyntaxError(t,e));return null}try{const u=resolveString(e,t);return resolveScalar(u,s.tags,s.tags.scalarFallback)}catch(e){if(!e.source)e.source=t;r.push(e);return null}}function resolveNode(e,t){if(!t)return null;if(t.error)e.errors.push(t.error);const{comments:u,hasAnchor:r,hasTag:s}=resolveNodeProps(e.errors,t);if(r){const{anchors:u}=e;const n=t.anchor;const r=u.getNode(n);if(r)u.map[u.newName(n)]=r;u.map[n]=t}if(t.type===n.Type.ALIAS&&(r||s)){const u="An alias node must not specify any properties";e.errors.push(new n.YAMLSemanticError(t,u))}const i=resolveNodeValue(e,t);if(i){i.range=[t.range.start,t.range.end];if(e.options.keepCstNodes)i.cstNode=t;if(e.options.keepNodeTypes)i.type=t.type;const n=u.before.join("\n");if(n){i.commentBefore=i.commentBefore?`${i.commentBefore}\n${n}`:n}const r=u.after.join("\n");if(r)i.comment=i.comment?`${i.comment}\n${r}`:r}return t.resolved=i}function resolveMap(e,t){if(t.type!==n.Type.MAP&&t.type!==n.Type.FLOW_MAP){const u=`A ${t.type} node cannot be resolved as a mapping`;e.errors.push(new n.YAMLSyntaxError(t,u));return null}const{comments:u,items:r}=t.type===n.Type.FLOW_MAP?resolveFlowMapItems(e,t):resolveBlockMapItems(e,t);const s=new YAMLMap;s.items=r;resolveComments(s,u);let i=false;for(let u=0;u{if(e instanceof Alias){const{type:t}=e.source;if(t===n.Type.MAP||t===n.Type.FLOW_MAP)return false;return i="Merge nodes aliases can only point to maps"}return i="Merge nodes can only have Alias nodes as values"});if(i)e.errors.push(new n.YAMLSemanticError(t,i))}else{for(let i=u+1;i{if(r.length===0)return false;const{start:s}=r[0];if(t&&s>t.valueRange.start)return false;if(u[s]!==n.Char.COMMENT)return false;for(let t=e;t0){u=new n.PlainValue(n.Type.PLAIN,[]);u.context={parent:a,src:a.context.src};const e=a.range.start+1;u.range={start:e,end:e};u.valueRange={start:e,end:e};if(typeof a.range.origStart==="number"){const e=a.range.origStart+1;u.range.origStart=u.range.origEnd=e;u.valueRange.origStart=u.valueRange.origEnd=e}}const o=new Pair(s,resolveNode(e,u));resolvePairComment(a,o);r.push(o);if(s&&typeof i==="number"){if(a.range.start>i+1024)e.errors.push(getLongKeyError(t,s))}s=undefined;i=null}break;default:if(s!==undefined)r.push(new Pair(s));s=resolveNode(e,a);i=a.range.start;if(a.error)e.errors.push(a.error);e:for(let u=o+1;;++u){const r=t.items[u];switch(r&&r.type){case n.Type.BLANK_LINE:case n.Type.COMMENT:continue e;case n.Type.MAP_VALUE:break e;default:{const t="Implicit map keys need to be followed by map values";e.errors.push(new n.YAMLSemanticError(a,t));break e}}}if(a.valueRangeContainsNewline){const t="Implicit map keys need to be on a single line";e.errors.push(new n.YAMLSemanticError(a,t))}}}if(s!==undefined)r.push(new Pair(s));return{comments:u,items:r}}function resolveFlowMapItems(e,t){const u=[];const r=[];let s=undefined;let i=false;let o="{";for(let a=0;ae instanceof Pair&&e.key instanceof Collection)){const u="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new n.YAMLWarning(t,u))}t.resolved=s;return s}function resolveBlockSeqItems(e,t){const u=[];const r=[];for(let s=0;so+1024)e.errors.push(getLongKeyError(t,i));const{src:r}=c.context;for(let t=o;t{const e=await this.searchDirectory(t);const u=this.nextDirectoryToSearch(t,e);if(u){return this.searchFromDirectory(u)}const n=await this.config.transform(e);return n};if(this.searchCache){return(0,i.cacheWrapper)(this.searchCache,t,u)}return u()}async searchDirectory(e){for await(const t of this.config.searchPlaces){const u=await this.loadSearchPlace(e,t);if(this.shouldSearchStopWithResult(u)===true){return u}}return null}async loadSearchPlace(e,t){const u=n.default.join(e,t);const r=await(0,s.readFile)(u);const i=await this.createCosmiconfigResult(u,r);return i}async loadFileContent(e,t){if(t===null){return null}if(t.trim()===""){return undefined}const u=this.getLoaderEntryForFile(e);const n=await u(e,t);return n}async createCosmiconfigResult(e,t){const u=await this.loadFileContent(e,t);const n=this.loadedContentToCosmiconfigResult(e,u);return n}async load(e){this.validateFilePath(e);const t=n.default.resolve(process.cwd(),e);const u=async()=>{const e=await(0,s.readFile)(t,{throwNotFound:true});const u=await this.createCosmiconfigResult(t,e);const n=await this.config.transform(u);return n};if(this.loadCache){return(0,i.cacheWrapper)(this.loadCache,t,u)}return u()}}t.Explorer=Explorer},370:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},374:function(e,t,u){"use strict";let n=u(7);class Comment extends n{constructor(e){super(e);this.type="comment"}}e.exports=Comment},402:function(e,t,u){"use strict";const n=u(277);const r=u(526);const s=u(964);e.exports=(e=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}const t=s(__filename);const u=r(n.dirname(t),e);const i=require.cache[u];if(i&&i.parent){let e=i.parent.children.length;while(e--){if(i.parent.children[e].id===u){i.parent.children.splice(e,1)}}}delete require.cache[u];const o=require.cache[t];return o===undefined?require(u):o.require(u)})},425:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=loader;var n=u(710);var r=_interopRequireDefault(u(134));var s=_interopRequireDefault(u(587));var i=u(519);var o=_interopRequireDefault(u(444));var a=_interopRequireDefault(u(191));var c=_interopRequireDefault(u(934));var l=_interopRequireDefault(u(851));var f=u(693);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function loader(e,t,u){const h=(0,n.getOptions)(this);(0,r.default)(l.default,h,{name:"PostCSS Loader",baseDataPath:"options"});const D=this.async();const p=typeof h.postcssOptions==="undefined"||typeof h.postcssOptions.config==="undefined"?true:h.postcssOptions.config;let A;if(p){try{A=await(0,f.loadConfig)(this,p)}catch(e){D(e);return}}const d=typeof h.sourceMap!=="undefined"?h.sourceMap:this.sourceMap;const{plugins:g,processOptions:C}=(0,f.getPostcssOptions)(this,A,h.postcssOptions);if(d){C.map={inline:false,annotation:false,...C.map}}if(t&&C.map){C.map.prev=(0,f.normalizeSourceMap)(t,this.context)}let F;if(u&&u.ast&&u.ast.type==="postcss"&&(0,i.satisfies)(u.ast.version,`^${o.default.version}`)){({root:F}=u.ast)}if(!F&&h.execute){e=(0,f.exec)(e,this)}let E;try{E=await(0,s.default)(g).process(F||e,C)}catch(e){if(e.file){this.addDependency(e.file)}if(e.name==="CssSyntaxError"){D(new c.default(e))}else{D(e)}return}for(const e of E.warnings()){this.emitWarning(new a.default(e))}for(const e of E.messages){if(e.type==="dependency"){this.addDependency(e.file)}if(e.type==="asset"&&e.content&&e.file){this.emitFile(e.file,e.content,e.sourceMap,e.info)}}let w=E.map?E.map.toJSON():undefined;if(w&&d){w=(0,f.normalizeSourceMapAfterPostcss)(w,this.context)}const B={type:"postcss",version:E.processor.version,root:E.root};D(null,E.css,w,{ast:B})}},430:function(e){"use strict";let t={split(e,t,u){let n=[];let r="";let s=false;let i=0;let o=false;let a=false;for(let u of e){if(o){if(a){a=false}else if(u==="\\"){a=true}else if(u===o){o=false}}else if(u==='"'||u==="'"){o=u}else if(u==="("){i+=1}else if(u===")"){if(i>0)i-=1}else if(i===0){if(t.includes(u))s=true}if(s){if(r!=="")n.push(r.trim());r="";s=false}else{r+=u}}if(u||r!=="")n.push(r.trim());return n},space(e){let u=[" ","\n","\t"];return t.split(e,u)},comma(e){return t.split(e,[","],true)}};e.exports=t},439:function(e,t,u){"use strict";let n=u(294);let r=u(54);let s=u(990);function parse(e,t){let u=new r(e,t);let s=new n(u);try{s.parse()}catch(e){if(process.env.NODE_ENV!=="production"){if(e.name==="CssSyntaxError"&&t&&t.from){if(/\.scss$/i.test(t.from)){e.message+="\nYou tried to parse SCSS with "+"the standard CSS parser; "+"try again with the postcss-scss parser"}else if(/\.sass/i.test(t.from)){e.message+="\nYou tried to parse Sass with "+"the standard CSS parser; "+"try again with the postcss-sass parser"}else if(/\.less$/i.test(t.from)){e.message+="\nYou tried to parse Less with "+"the standard CSS parser; "+"try again with the postcss-less parser"}}}throw e}return s.root}e.exports=parse;s.registerParse(parse)},444:function(e){e.exports={name:"postcss",version:"8.1.1",description:"Tool for transforming styles with JS plugins",engines:{node:"^10 || ^12 || >=14"},exports:{".":{require:"./lib/postcss.js",import:"./lib/postcss.mjs"},"./":"./"},main:"lib/postcss.js",keywords:["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],funding:{type:"opencollective",url:"https://opencollective.com/postcss/"},author:"Andrey Sitnik ",license:"MIT",homepage:"https://postcss.org/",repository:"postcss/postcss",dependencies:{colorette:"^1.2.1","line-column":"^1.0.2",nanoid:"^3.1.12","source-map":"^0.6.1"},browser:{"./lib/terminal-highlight":false,colorette:false,fs:false}}},448:function(e){"use strict";e.exports={isClean:Symbol("isClean")}},471:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cosmiconfig=cosmiconfig;t.cosmiconfigSync=cosmiconfigSync;t.defaultLoaders=void 0;var n=_interopRequireDefault(u(87));var r=u(341);var s=u(40);var i=u(690);var o=u(490);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function cosmiconfig(e,t={}){const u=normalizeOptions(e,t);const n=new r.Explorer(u);return{search:n.search.bind(n),load:n.load.bind(n),clearLoadCache:n.clearLoadCache.bind(n),clearSearchCache:n.clearSearchCache.bind(n),clearCaches:n.clearCaches.bind(n)}}function cosmiconfigSync(e,t={}){const u=normalizeOptions(e,t);const n=new s.ExplorerSync(u);return{search:n.searchSync.bind(n),load:n.loadSync.bind(n),clearLoadCache:n.clearLoadCache.bind(n),clearSearchCache:n.clearSearchCache.bind(n),clearCaches:n.clearCaches.bind(n)}}const a=Object.freeze({".cjs":i.loaders.loadJs,".js":i.loaders.loadJs,".json":i.loaders.loadJson,".yaml":i.loaders.loadYaml,".yml":i.loaders.loadYaml,noExt:i.loaders.loadYaml});t.defaultLoaders=a;const c=function identity(e){return e};function normalizeOptions(e,t){const u={packageProp:e,searchPlaces:["package.json",`.${e}rc`,`.${e}rc.json`,`.${e}rc.yaml`,`.${e}rc.yml`,`.${e}rc.js`,`.${e}rc.cjs`,`${e}.config.js`,`${e}.config.cjs`],ignoreEmptySearchPlaces:true,stopDir:n.default.homedir(),cache:true,transform:c,loaders:a};const r={...u,...t,loaders:{...u.loaders,...t.loaders}};return r}},490:function(){"use strict"},501:function(e,t,u){"use strict";const{promisify:n}=u(669);const r=u(747);async function isType(e,t,u){if(typeof u!=="string"){throw new TypeError(`Expected a string, got ${typeof u}`)}try{const s=await n(r[e])(u);return s[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}function isTypeSync(e,t,u){if(typeof u!=="string"){throw new TypeError(`Expected a string, got ${typeof u}`)}try{return r[e](u)[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}t.isFile=isType.bind(null,"stat","isFile");t.isDirectory=isType.bind(null,"stat","isDirectory");t.isSymlink=isType.bind(null,"lstat","isSymbolicLink");t.isFileSync=isTypeSync.bind(null,"statSync","isFile");t.isDirectorySync=isTypeSync.bind(null,"statSync","isDirectory");t.isSymlinkSync=isTypeSync.bind(null,"lstatSync","isSymbolicLink")},513:function(e,t){"use strict";const u={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."};const n={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};const r="tag:yaml.org,2002:";const s={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function findLineStarts(e){const t=[0];let u=e.indexOf("\n");while(u!==-1){u+=1;t.push(u);u=e.indexOf("\n",u)}return t}function getSrcInfo(e){let t,u;if(typeof e==="string"){t=findLineStarts(e);u=e}else{if(Array.isArray(e))e=e[0];if(e&&e.context){if(!e.lineStarts)e.lineStarts=findLineStarts(e.context.src);t=e.lineStarts;u=e.context.src}}return{lineStarts:t,src:u}}function getLinePos(e,t){if(typeof e!=="number"||e<0)return null;const{lineStarts:u,src:n}=getSrcInfo(t);if(!u||!n||e>n.length)return null;for(let t=0;t=1)||e>u.length)return null;const r=u[e-1];let s=u[e];while(s&&s>r&&n[s-1]==="\n")--s;return n.slice(r,s)}function getPrettyContext({start:e,end:t},u,n=80){let r=getLine(e.line,u);if(!r)return null;let{col:s}=e;if(r.length>n){if(s<=n-10){r=r.substr(0,n-1)+"…"}else{const e=Math.round(n/2);if(r.length>s+e)r=r.substr(0,s+e-1)+"…";s-=r.length-n;r="…"+r.substr(1-n)}}let i=1;let o="";if(t){if(t.line===e.line&&s+(t.col-e.col)<=n+1){i=t.col-e.col}else{i=Math.min(r.length+1,n)-s;o="…"}}const a=s>1?" ".repeat(s-1):"";const c="^".repeat(i);return`${r}\n${a}${c}${o}`}class Range{static copy(e){return new Range(e.start,e.end)}constructor(e,t){this.start=e;this.end=t||e}isEmpty(){return typeof this.start!=="number"||!this.end||this.end<=this.start}setOrigRange(e,t){const{start:u,end:n}=this;if(e.length===0||n<=e[0]){this.origStart=u;this.origEnd=n;return t}let r=t;while(ru)break;else++r}this.origStart=u+r;const s=r;while(r=n)break;else++r}this.origEnd=n+r;return s}}class Node{static addStringTerminator(e,t,u){if(u[u.length-1]==="\n")return u;const n=Node.endOfWhiteSpace(e,t);return n>=e.length||e[n]==="\n"?u+"\n":u}static atDocumentBoundary(e,t,n){const r=e[t];if(!r)return true;const s=e[t-1];if(s&&s!=="\n")return false;if(n){if(r!==n)return false}else{if(r!==u.DIRECTIVES_END&&r!==u.DOCUMENT_END)return false}const i=e[t+1];const o=e[t+2];if(i!==r||o!==r)return false;const a=e[t+3];return!a||a==="\n"||a==="\t"||a===" "}static endOfIdentifier(e,t){let u=e[t];const n=u==="<";const r=n?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];while(u&&r.indexOf(u)===-1)u=e[t+=1];if(n&&u===">")t+=1;return t}static endOfIndent(e,t){let u=e[t];while(u===" ")u=e[t+=1];return t}static endOfLine(e,t){let u=e[t];while(u&&u!=="\n")u=e[t+=1];return t}static endOfWhiteSpace(e,t){let u=e[t];while(u==="\t"||u===" ")u=e[t+=1];return t}static startOfLine(e,t){let u=e[t-1];if(u==="\n")return t;while(u&&u!=="\n")u=e[t-=1];return t+1}static endOfBlockIndent(e,t,u){const n=Node.endOfIndent(e,u);if(n>u+t){return n}else{const t=Node.endOfWhiteSpace(e,n);const u=e[t];if(!u||u==="\n")return t}return null}static atBlank(e,t,u){const n=e[t];return n==="\n"||n==="\t"||n===" "||u&&!n}static nextNodeIsIndented(e,t,u){if(!e||t<0)return false;if(t>0)return true;return u&&e==="-"}static normalizeOffset(e,t){const u=e[t];return!u?t:u!=="\n"&&e[t-1]==="\n"?t-1:Node.endOfWhiteSpace(e,t)}static foldNewline(e,t,u){let n=0;let r=false;let s="";let i=e[t+1];while(i===" "||i==="\t"||i==="\n"){switch(i){case"\n":n=0;t+=1;s+="\n";break;case"\t":if(n<=u)r=true;t=Node.endOfWhiteSpace(e,t+2)-1;break;case" ":n+=1;t+=1;break}i=e[t+1]}if(!s)s=" ";if(i&&n<=u)r=true;return{fold:s,offset:t,error:r}}constructor(e,t,u){Object.defineProperty(this,"context",{value:u||null,writable:true});this.error=null;this.range=null;this.valueRange=null;this.props=t||[];this.type=e;this.value=null}getPropValue(e,t,u){if(!this.context)return null;const{src:n}=this.context;const r=this.props[e];return r&&n[r.start]===t?n.slice(r.start+(u?1:0),r.end):null}get anchor(){for(let e=0;e0?e.join("\n"):null}commentHasRequiredWhitespace(e){const{src:t}=this.context;if(this.header&&e===this.header.end)return false;if(!this.valueRange)return false;const{end:u}=this.valueRange;return e!==u||Node.atBlank(t,u-1)}get hasComment(){if(this.context){const{src:e}=this.context;for(let t=0;tu.setOrigRange(e,t));return t}toString(){const{context:{src:e},range:t,value:u}=this;if(u!=null)return u;const n=e.slice(t.start,t.end);return Node.addStringTerminator(e,t.end,n)}}class YAMLError extends Error{constructor(e,t,u){if(!u||!(t instanceof Node))throw new Error(`Invalid arguments for new ${e}`);super();this.name=e;this.message=u;this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;const e=this.source.context&&this.source.context.root;if(typeof this.offset==="number"){this.range=new Range(this.offset,this.offset+1);const t=e&&getLinePos(this.offset,e);if(t){const e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else{this.range=this.source.range;this.linePos=this.source.rangeAsLinePos}if(this.linePos){const{line:t,col:u}=this.linePos.start;this.message+=` at line ${t}, column ${u}`;const n=e&&getPrettyContext(this.linePos,e);if(n)this.message+=`:\n\n${n}\n`}delete this.source}}class YAMLReferenceError extends YAMLError{constructor(e,t){super("YAMLReferenceError",e,t)}}class YAMLSemanticError extends YAMLError{constructor(e,t){super("YAMLSemanticError",e,t)}}class YAMLSyntaxError extends YAMLError{constructor(e,t){super("YAMLSyntaxError",e,t)}}class YAMLWarning extends YAMLError{constructor(e,t){super("YAMLWarning",e,t)}}function _defineProperty(e,t,u){if(t in e){Object.defineProperty(e,t,{value:u,enumerable:true,configurable:true,writable:true})}else{e[t]=u}return e}class PlainValue extends Node{static endOfLine(e,t,u){let n=e[t];let r=t;while(n&&n!=="\n"){if(u&&(n==="["||n==="]"||n==="{"||n==="}"||n===","))break;const t=e[r+1];if(n===":"&&(!t||t==="\n"||t==="\t"||t===" "||u&&t===","))break;if((n===" "||n==="\t")&&t==="#")break;r+=1;n=t}return r}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{src:u}=this.context;let n=u[t-1];while(es?u.slice(s,n+1):e}else{r+=e}}const s=u[e];switch(s){case"\t":{const e="Plain value cannot start with a tab character";const t=[new YAMLSemanticError(this,e)];return{errors:t,str:r}}case"@":case"`":{const e=`Plain value cannot start with reserved character ${s}`;const t=[new YAMLSemanticError(this,e)];return{errors:t,str:r}}default:return r}}parseBlockValue(e){const{indent:t,inFlow:u,src:n}=this.context;let r=e;let s=e;for(let e=n[r];e==="\n";e=n[r]){if(Node.atDocumentBoundary(n,r+1))break;const e=Node.endOfBlockIndent(n,t,r+1);if(e===null||n[e]==="#")break;if(n[e]==="\n"){r=e}else{s=PlainValue.endOfLine(n,e,u);r=s}}if(this.valueRange.isEmpty())this.valueRange.start=e;this.valueRange.end=s;return s}parse(e,t){this.context=e;const{inFlow:u,src:n}=e;let r=t;const s=n[r];if(s&&s!=="#"&&s!=="\n"){r=PlainValue.endOfLine(n,t,u)}this.valueRange=new Range(t,r);r=Node.endOfWhiteSpace(n,r);r=this.parseComment(r);if(!this.hasComment||this.valueRange.isEmpty()){r=this.parseBlockValue(r)}return r}}t.Char=u;t.Node=Node;t.PlainValue=PlainValue;t.Range=Range;t.Type=n;t.YAMLError=YAMLError;t.YAMLReferenceError=YAMLReferenceError;t.YAMLSemanticError=YAMLSemanticError;t.YAMLSyntaxError=YAMLSyntaxError;t.YAMLWarning=YAMLWarning;t._defineProperty=_defineProperty;t.defaultTagPrefix=r;t.defaultTags=s},519:function(e){e.exports=require("next/dist/compiled/semver")},521:function(e,t,u){e.exports=u(792).YAML},525:function(e,t,u){"use strict";var n=u(513);var r=u(310);var s=u(626);function createMap(e,t,u){const n=new r.YAMLMap(e);if(t instanceof Map){for(const[r,s]of t)n.items.push(e.createPair(r,s,u))}else if(t&&typeof t==="object"){for(const r of Object.keys(t))n.items.push(e.createPair(r,t[r],u))}if(typeof e.sortMapEntries==="function"){n.items.sort(e.sortMapEntries)}return n}const i={createNode:createMap,default:true,nodeClass:r.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:r.resolveMap};function createSeq(e,t,u){const n=new r.YAMLSeq(e);if(t&&t[Symbol.iterator]){for(const r of t){const t=e.createNode(r,u.wrapScalars,null,u);n.items.push(t)}}return n}const o={createNode:createSeq,default:true,nodeClass:r.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:r.resolveSeq};const a={identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:r.resolveString,stringify(e,t,u,n){t=Object.assign({actualString:true},t);return r.stringifyString(e,t,u,n)},options:r.strOptions};const c=[i,o,a];const l=e=>typeof e==="bigint"||Number.isInteger(e);const f=(e,t,u)=>r.intOptions.asBigInt?BigInt(e):parseInt(t,u);function intStringify(e,t,u){const{value:n}=e;if(l(n)&&n>=0)return u+n.toString(t);return r.stringifyNumber(e)}const h={identify:e=>e==null,createNode:(e,t,u)=>u.wrapScalars?new r.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:r.nullOptions,stringify:()=>r.nullOptions.nullStr};const D={identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>e[0]==="t"||e[0]==="T",options:r.boolOptions,stringify:({value:e})=>e?r.boolOptions.trueStr:r.boolOptions.falseStr};const p={identify:e=>l(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>f(e,t,8),options:r.intOptions,stringify:e=>intStringify(e,8,"0o")};const A={identify:l,default:true,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>f(e,e,10),options:r.intOptions,stringify:r.stringifyNumber};const d={identify:e=>l(e)&&e>=0,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>f(e,t,16),options:r.intOptions,stringify:e=>intStringify(e,16,"0x")};const g={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber};const C={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()};const F={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,u){const n=t||u;const s=new r.Scalar(parseFloat(e));if(n&&n[n.length-1]==="0")s.minFractionDigits=n.length;return s},stringify:r.stringifyNumber};const E=c.concat([h,D,p,A,d,g,C,F]);const w=e=>typeof e==="bigint"||Number.isInteger(e);const B=({value:e})=>JSON.stringify(e);const y=[i,o,{identify:e=>typeof e==="string",default:true,tag:"tag:yaml.org,2002:str",resolve:r.resolveString,stringify:B},{identify:e=>e==null,createNode:(e,t,u)=>u.wrapScalars?new r.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:B},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:B},{identify:w,default:true,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>r.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>w(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:B}];y.scalarFallback=(e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)});const m=({value:e})=>e?r.boolOptions.trueStr:r.boolOptions.falseStr;const S=e=>typeof e==="bigint"||Number.isInteger(e);function intResolve$1(e,t,u){let n=t.replace(/_/g,"");if(r.intOptions.asBigInt){switch(u){case 2:n=`0b${n}`;break;case 8:n=`0o${n}`;break;case 16:n=`0x${n}`;break}const t=BigInt(n);return e==="-"?BigInt(-1)*t:t}const s=parseInt(n,u);return e==="-"?-1*s:s}function intStringify$1(e,t,u){const{value:n}=e;if(S(n)){const e=n.toString(t);return n<0?"-"+u+e.substr(1):u+e}return r.stringifyNumber(e)}const b=c.concat([{identify:e=>e==null,createNode:(e,t,u)=>u.wrapScalars?new r.Scalar(null):null,default:true,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:r.nullOptions,stringify:()=>r.nullOptions.nullStr},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>true,options:r.boolOptions,stringify:m},{identify:e=>typeof e==="boolean",default:true,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>false,options:r.boolOptions,stringify:m},{identify:S,default:true,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,u)=>intResolve$1(t,u,2),stringify:e=>intStringify$1(e,2,"0b")},{identify:S,default:true,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,u)=>intResolve$1(t,u,8),stringify:e=>intStringify$1(e,8,"0")},{identify:S,default:true,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,u)=>intResolve$1(t,u,10),stringify:r.stringifyNumber},{identify:S,default:true,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,u)=>intResolve$1(t,u,16),stringify:e=>intStringify$1(e,16,"0x")},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:r.stringifyNumber},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const u=new r.Scalar(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");if(e[e.length-1]==="0")u.minFractionDigits=e.length}return u},stringify:r.stringifyNumber}],s.binary,s.omap,s.pairs,s.set,s.intTime,s.floatTime,s.timestamp);const O={core:E,failsafe:c,json:y,yaml11:b};const M={binary:s.binary,bool:D,float:F,floatExp:C,floatNaN:g,floatTime:s.floatTime,int:A,intHex:d,intOct:p,intTime:s.intTime,map:i,null:h,omap:s.omap,pairs:s.pairs,seq:o,set:s.set,timestamp:s.timestamp};function findTagObject(e,t,u){if(t){const e=u.filter(e=>e.tag===t);const n=e.find(e=>!e.format)||e[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return u.find(t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format)}function createNode(e,t,u){if(e instanceof r.Node)return e;const{defaultPrefix:n,onTagObj:s,prevObjects:a,schema:c,wrapScalars:l}=u;if(t&&t.startsWith("!!"))t=n+t.slice(2);let f=findTagObject(e,t,c.tags);if(!f){if(typeof e.toJSON==="function")e=e.toJSON();if(typeof e!=="object")return l?new r.Scalar(e):e;f=e instanceof Map?i:e[Symbol.iterator]?o:i}if(s){s(f);delete u.onTagObj}const h={};if(e&&typeof e==="object"&&a){const t=a.get(e);if(t){const e=new r.Alias(t);u.aliasNodes.push(e);return e}h.value=e;a.set(e,h)}h.node=f.createNode?f.createNode(u.schema,e,u):l?new r.Scalar(e):e;if(t&&h.node instanceof r.Node)h.node.tag=t;return h.node}function getSchemaTags(e,t,u,n){let r=e[n.replace(/\W/g,"")];if(!r){const t=Object.keys(e).map(e=>JSON.stringify(e)).join(", ");throw new Error(`Unknown schema "${n}"; use one of ${t}`)}if(Array.isArray(u)){for(const e of u)r=r.concat(e)}else if(typeof u==="function"){r=u(r.slice())}for(let e=0;eJSON.stringify(e)).join(", ");throw new Error(`Unknown custom tag "${u}"; use one of ${e}`)}r[e]=n}}return r}const N=(e,t)=>e.keyt.key?1:0;class Schema{constructor({customTags:e,merge:t,schema:u,sortMapEntries:n,tags:r}){this.merge=!!t;this.name=u;this.sortMapEntries=n===true?N:n||null;if(!e&&r)s.warnOptionDeprecation("tags","customTags");this.tags=getSchemaTags(O,M,e||r,u)}createNode(e,t,u,n){const r={defaultPrefix:Schema.defaultPrefix,schema:this,wrapScalars:t};const s=n?Object.assign(n,r):r;return createNode(e,u,s)}createPair(e,t,u){if(!u)u={wrapScalars:true};const n=this.createNode(e,u.wrapScalars,null,u);const s=this.createNode(t,u.wrapScalars,null,u);return new r.Pair(n,s)}}n._defineProperty(Schema,"defaultPrefix",n.defaultTagPrefix);n._defineProperty(Schema,"defaultTags",n.defaultTags);t.Schema=Schema},526:function(e,t,u){"use strict";const n=u(277);const r=u(282);const s=u(747);const i=(e,t,u)=>{if(typeof e!=="string"){throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof e}\``)}if(typeof t!=="string"){throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof t}\``)}try{e=s.realpathSync(e)}catch(t){if(t.code==="ENOENT"){e=n.resolve(e)}else if(u){return null}else{throw t}}const i=n.join(e,"noop.js");const o=()=>r._resolveFilename(t,{id:i,filename:i,paths:r._nodeModulePaths(e)});if(u){try{return o()}catch(e){return null}}return o()};e.exports=((e,t)=>i(e,t));e.exports.silent=((e,t)=>i(e,t,true))},548:function(e,t,u){"use strict";var n=u(370);var r=u(591);var s=Array.prototype.slice;e.exports=LineColumnFinder;function LineColumnFinder(e,t){if(!(this instanceof LineColumnFinder)){if(typeof t==="number"){return new LineColumnFinder(e).fromIndex(t)}return new LineColumnFinder(e,t)}this.str=e||"";this.lineToIndex=buildLineToIndex(this.str);t=t||{};this.origin=typeof t.origin==="undefined"?1:t.origin}LineColumnFinder.prototype.fromIndex=function(e){if(e<0||e>=this.str.length||isNaN(e)){return null}var t=findLowerIndexInRangeArray(e,this.lineToIndex);return{line:t+this.origin,col:e-this.lineToIndex[t]+this.origin}};LineColumnFinder.prototype.toIndex=function(e,t){if(typeof t==="undefined"){if(n(e)&&e.length>=2){return this.toIndex(e[0],e[1])}if(r(e)&&"line"in e&&("col"in e||"column"in e)){return this.toIndex(e.line,"col"in e?e.col:e.column)}return-1}if(isNaN(e)||isNaN(t)){return-1}e-=this.origin;t-=this.origin;if(e>=0&&t>=0&&e=t[t.length-1]){return t.length-1}var u=0,n=t.length-2,r;while(u>1);if(e=t[r+1]){u=r+1}else{u=r;break}}return u}},560:function(e,t,u){"use strict";let{dirname:n,join:r}=u(277);let s=u(241);let i=u(747);function fromBase64(e){if(Buffer){return Buffer.from(e,"base64").toString()}else{return window.atob(e)}}class PreviousMap{constructor(e,t){if(t.map===false)return;this.loadAnnotation(e);this.inline=this.startWith(this.annotation,"data:");let u=t.map?t.map.prev:undefined;let r=this.loadMap(t.from,u);if(!this.mapFile&&t.from){this.mapFile=t.from}if(this.mapFile)this.root=n(this.mapFile);if(r)this.text=r}consumer(){if(!this.consumerCache){this.consumerCache=new s.SourceMapConsumer(this.text)}return this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){if(!e)return false;return e.substr(0,t.length)===t}getAnnotationURL(e){return e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1].trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=.*\s*\*\//gm);if(t&&t.length>0){let e=t[t.length-1];if(e){this.annotation=this.getAnnotationURL(e)}}}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/;let u=/^data:application\/json;base64,/;let n=/^data:application\/json;charset=utf-?8,/;let r=/^data:application\/json,/;if(n.test(e)||r.test(e)){return decodeURIComponent(e.substr(RegExp.lastMatch.length))}if(t.test(e)||u.test(e)){return fromBase64(e.substr(RegExp.lastMatch.length))}let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}loadFile(e){this.root=n(e);if(i.existsSync&&i.existsSync(e)){this.mapFile=e;return i.readFileSync(e,"utf-8").toString().trim()}}loadMap(e,t){if(t===false)return false;if(t){if(typeof t==="string"){return t}else if(typeof t==="function"){let u=t(e);if(u){let e=this.loadFile(u);if(!e){throw new Error("Unable to load previous source map: "+u.toString())}return e}}else if(t instanceof s.SourceMapConsumer){return s.SourceMapGenerator.fromSourceMap(t).toString()}else if(t instanceof s.SourceMapGenerator){return t.toString()}else if(this.isMap(t)){return JSON.stringify(t)}else{throw new Error("Unsupported previous source map format: "+t.toString())}}else if(this.inline){return this.decodeInline(this.annotation)}else if(this.annotation){let t=this.annotation;if(e)t=r(n(e),t);return this.loadFile(t)}}isMap(e){if(typeof e!=="object")return false;return typeof e.mappings==="string"||typeof e._mappings==="string"||Array.isArray(e.sections)}}e.exports=PreviousMap},585:function(e,t,u){"use strict";let n=u(893);class Result{constructor(e,t,u){this.processor=e;this.messages=[];this.root=t;this.opts=u;this.css=undefined;this.map=undefined}toString(){return this.css}warn(e,t={}){if(!t.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin){t.plugin=this.lastPlugin.postcssPlugin}}let u=new n(e,t);this.messages.push(u);return u}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}}e.exports=Result},587:function(e,t,u){"use strict";let n=u(233);let r=u(249);let s=u(698);let i=u(990);let o=u(184);let a=u(880);let c=u(893);let l=u(374);let f=u(149);let h=u(585);let D=u(54);let p=u(439);let A=u(430);let d=u(301);let g=u(847);let C=u(7);function postcss(...e){if(e.length===1&&Array.isArray(e[0])){e=e[0]}return new o(e,postcss)}postcss.plugin=function plugin(e,t){if(console&&console.warn){console.warn("postcss.plugin was deprecated. Migration guide:\n"+"https://evilmartians.com/chronicles/postcss-8-plugin-migration");if(process.env.LANG&&process.env.LANG.startsWith("cn")){console.warn("postcss.plugin 被弃用. 迁移指南:\n"+"https://www.w3ctech.com/topic/2226")}}function creator(...u){let n=t(...u);n.postcssPlugin=e;n.postcssVersion=(new o).version;return n}let u;Object.defineProperty(creator,"postcss",{get(){if(!u)u=creator();return u}});creator.process=function(e,t,u){return postcss([creator(u)]).process(e,t)};return creator};postcss.stringify=a;postcss.parse=p;postcss.list=A;postcss.comment=(e=>new l(e));postcss.atRule=(e=>new f(e));postcss.decl=(e=>new r(e));postcss.rule=(e=>new d(e));postcss.root=(e=>new g(e));postcss.CssSyntaxError=n;postcss.Declaration=r;postcss.Container=i;postcss.Comment=l;postcss.Warning=c;postcss.AtRule=f;postcss.Result=h;postcss.Input=D;postcss.Rule=d;postcss.Root=g;postcss.Node=C;s.registerPostcss(postcss);e.exports=postcss},591:function(e,t,u){"use strict";var n=u(370);e.exports=function isObject(e){return e!=null&&typeof e==="object"&&n(e)===false}},592:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shouldHighlight=shouldHighlight;t.getChalk=getChalk;t.default=highlight;var n=_interopRequireWildcard(u(968));var r=_interopRequireDefault(u(745));var s=_interopRequireDefault(u(736));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var u={};var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){var s=n?Object.getOwnPropertyDescriptor(e,r):null;if(s&&(s.get||s.set)){Object.defineProperty(u,r,s)}else{u[r]=e[r]}}}u.default=e;if(t){t.set(e,u)}return u}function getDefs(e){return{keyword:e.cyan,capitalized:e.yellow,jsx_tag:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}const i=/\r\n|[\n\r\u2028\u2029]/;const o=/^[a-z][\w-]*$/i;const a=/^[()[\]{}]$/;function getTokenType(e){const[t,u]=e.slice(-2);const s=(0,n.matchToToken)(e);if(s.type==="name"){if(r.default.keyword.isReservedWordES6(s.value)){return"keyword"}if(o.test(s.value)&&(u[t-1]==="<"||u.substr(t-2,2)=="n(e)).join("\n")}else{return t[0]}})}function shouldHighlight(e){return s.default.supportsColor||e.forceColor}function getChalk(e){let t=s.default;if(e.forceColor){t=new s.default.constructor({enabled:true,level:1})}return t}function highlight(e,t={}){if(shouldHighlight(t)){const u=getChalk(t);const n=getDefs(u);return highlightTokens(n,e)}else{return e}}},594:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getExtensionDescription=getExtensionDescription;t.ExplorerBase=void 0;var n=_interopRequireDefault(u(277));var r=u(690);var s=u(208);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class ExplorerBase{constructor(e){if(e.cache===true){this.loadCache=new Map;this.searchCache=new Map}this.config=e;this.validateConfig()}clearLoadCache(){if(this.loadCache){this.loadCache.clear()}}clearSearchCache(){if(this.searchCache){this.searchCache.clear()}}clearCaches(){this.clearLoadCache();this.clearSearchCache()}validateConfig(){const e=this.config;e.searchPlaces.forEach(t=>{const u=n.default.extname(t)||"noExt";const r=e.loaders[u];if(!r){throw new Error(`No loader specified for ${getExtensionDescription(t)}, so searchPlaces item "${t}" is invalid`)}if(typeof r!=="function"){throw new Error(`loader for ${getExtensionDescription(t)} is not a function (type provided: "${typeof r}"), so searchPlaces item "${t}" is invalid`)}})}shouldSearchStopWithResult(e){if(e===null)return false;if(e.isEmpty&&this.config.ignoreEmptySearchPlaces)return false;return true}nextDirectoryToSearch(e,t){if(this.shouldSearchStopWithResult(t)){return null}const u=nextDirUp(e);if(u===e||e===this.config.stopDir){return null}return u}loadPackageProp(e,t){const u=r.loaders.loadJson(e,t);const n=(0,s.getPropertyByPath)(u,this.config.packageProp);return n||null}getLoaderEntryForFile(e){if(n.default.basename(e)==="package.json"){const e=this.loadPackageProp.bind(this);return e}const t=n.default.extname(e)||"noExt";const u=this.config.loaders[t];if(!u){throw new Error(`No loader specified for ${getExtensionDescription(e)}`)}return u}loadedContentToCosmiconfigResult(e,t){if(t===null){return null}if(t===undefined){return{filepath:e,config:undefined,isEmpty:true}}return{config:t,filepath:e}}validateFilePath(e){if(!e){throw new Error("load must pass a non-empty string")}}}t.ExplorerBase=ExplorerBase;function nextDirUp(e){return n.default.dirname(e)}function getExtensionDescription(e){const t=n.default.extname(e);return t?`extension "${t}"`:"files without extensions"}},622:function(e){"use strict";const t="'".charCodeAt(0);const u='"'.charCodeAt(0);const n="\\".charCodeAt(0);const r="/".charCodeAt(0);const s="\n".charCodeAt(0);const i=" ".charCodeAt(0);const o="\f".charCodeAt(0);const a="\t".charCodeAt(0);const c="\r".charCodeAt(0);const l="[".charCodeAt(0);const f="]".charCodeAt(0);const h="(".charCodeAt(0);const D=")".charCodeAt(0);const p="{".charCodeAt(0);const A="}".charCodeAt(0);const d=";".charCodeAt(0);const g="*".charCodeAt(0);const C=":".charCodeAt(0);const F="@".charCodeAt(0);const E=/[\t\n\f\r "#'()/;[\\\]{}]/g;const w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;const B=/.[\n"'(/\\]/;const y=/[\da-f]/i;e.exports=function tokenizer(e,m={}){let S=e.css.valueOf();let b=m.ignoreErrors;let O,M,N,T,L;let x,R,v,_,$;let I=S.length;let P=0;let Y=[];let j=[];function position(){return P}function unclosed(t){throw e.error("Unclosed "+t,P)}function endOfFile(){return j.length===0&&P>=I}function nextToken(e){if(j.length)return j.pop();if(P>=I)return;let m=e?e.ignoreUnclosed:false;O=S.charCodeAt(P);switch(O){case s:case i:case a:case c:case o:{M=P;do{M+=1;O=S.charCodeAt(M)}while(O===i||O===s||O===a||O===c||O===o);$=["space",S.slice(P,M)];P=M-1;break}case l:case f:case p:case A:case C:case d:case D:{let e=String.fromCharCode(O);$=[e,e,P];break}case h:{v=Y.length?Y.pop()[1]:"";_=S.charCodeAt(P+1);if(v==="url"&&_!==t&&_!==u&&_!==i&&_!==s&&_!==a&&_!==o&&_!==c){M=P;do{x=false;M=S.indexOf(")",M+1);if(M===-1){if(b||m){M=P;break}else{unclosed("bracket")}}R=M;while(S.charCodeAt(R-1)===n){R-=1;x=!x}}while(x);$=["brackets",S.slice(P,M+1),P,M];P=M}else{M=S.indexOf(")",P+1);T=S.slice(P,M+1);if(M===-1||B.test(T)){$=["(","(",P]}else{$=["brackets",T,P,M];P=M}}break}case t:case u:{N=O===t?"'":'"';M=P;do{x=false;M=S.indexOf(N,M+1);if(M===-1){if(b||m){M=P+1;break}else{unclosed("string")}}R=M;while(S.charCodeAt(R-1)===n){R-=1;x=!x}}while(x);$=["string",S.slice(P,M+1),P,M];P=M;break}case F:{E.lastIndex=P+1;E.test(S);if(E.lastIndex===0){M=S.length-1}else{M=E.lastIndex-2}$=["at-word",S.slice(P,M+1),P,M];P=M;break}case n:{M=P;L=true;while(S.charCodeAt(M+1)===n){M+=1;L=!L}O=S.charCodeAt(M+1);if(L&&O!==r&&O!==i&&O!==s&&O!==a&&O!==c&&O!==o){M+=1;if(y.test(S.charAt(M))){while(y.test(S.charAt(M+1))){M+=1}if(S.charCodeAt(M+1)===i){M+=1}}}$=["word",S.slice(P,M+1),P,M];P=M;break}default:{if(O===r&&S.charCodeAt(P+1)===g){M=S.indexOf("*/",P+2)+1;if(M===0){if(b||m){M=S.length}else{unclosed("comment")}}$=["comment",S.slice(P,M+1),P,M];P=M}else{w.lastIndex=P+1;w.test(S);if(w.lastIndex===0){M=S.length-1}else{M=w.lastIndex-2}$=["word",S.slice(P,M+1),P,M];Y.push($);P=M}break}}P++;return $}function back(e){j.push(e)}return{back:back,nextToken:nextToken,endOfFile:endOfFile,position:position}}},626:function(e,t,u){"use strict";var n=u(513);var r=u(310);const s={identify:e=>e instanceof Uint8Array,default:false,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{const u=r.resolveString(e,t);if(typeof Buffer==="function"){return Buffer.from(u,"base64")}else if(typeof atob==="function"){const e=atob(u.replace(/[\n\r]/g,""));const t=new Uint8Array(e.length);for(let u=0;u{let a;if(typeof Buffer==="function"){a=u instanceof Buffer?u.toString("base64"):Buffer.from(u.buffer).toString("base64")}else if(typeof btoa==="function"){let e="";for(let t=0;t1){const e="Each pair must have its own sequence indicator";throw new n.YAMLSemanticError(t,e)}const e=s.items[0]||new r.Pair;if(s.commentBefore)e.commentBefore=e.commentBefore?`${s.commentBefore}\n${e.commentBefore}`:s.commentBefore;if(s.comment)e.comment=e.comment?`${s.comment}\n${e.comment}`:s.comment;s=e}u.items[e]=s instanceof r.Pair?s:new r.Pair(s)}return u}function createPairs(e,t,u){const n=new r.YAMLSeq(e);n.tag="tag:yaml.org,2002:pairs";for(const r of t){let t,s;if(Array.isArray(r)){if(r.length===2){t=r[0];s=r[1]}else throw new TypeError(`Expected [key, value] tuple: ${r}`)}else if(r&&r instanceof Object){const e=Object.keys(r);if(e.length===1){t=e[0];s=r[t]}else throw new TypeError(`Expected { key: value } tuple: ${r}`)}else{t=r}const i=e.createPair(t,s,u);n.items.push(i)}return n}const i={default:false,tag:"tag:yaml.org,2002:pairs",resolve:parsePairs,createNode:createPairs};class YAMLOMap extends r.YAMLSeq{constructor(){super();n._defineProperty(this,"add",r.YAMLMap.prototype.add.bind(this));n._defineProperty(this,"delete",r.YAMLMap.prototype.delete.bind(this));n._defineProperty(this,"get",r.YAMLMap.prototype.get.bind(this));n._defineProperty(this,"has",r.YAMLMap.prototype.has.bind(this));n._defineProperty(this,"set",r.YAMLMap.prototype.set.bind(this));this.tag=YAMLOMap.tag}toJSON(e,t){const u=new Map;if(t&&t.onCreate)t.onCreate(u);for(const e of this.items){let n,s;if(e instanceof r.Pair){n=r.toJSON(e.key,"",t);s=r.toJSON(e.value,n,t)}else{n=r.toJSON(e,"",t)}if(u.has(n))throw new Error("Ordered maps must not include duplicate keys");u.set(n,s)}return u}}n._defineProperty(YAMLOMap,"tag","tag:yaml.org,2002:omap");function parseOMap(e,t){const u=parsePairs(e,t);const s=[];for(const{key:e}of u.items){if(e instanceof r.Scalar){if(s.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new n.YAMLSemanticError(t,e)}else{s.push(e.value)}}}return Object.assign(new YAMLOMap,u)}function createOMap(e,t,u){const n=createPairs(e,t,u);const r=new YAMLOMap;r.items=n.items;return r}const o={identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:false,tag:"tag:yaml.org,2002:omap",resolve:parseOMap,createNode:createOMap};class YAMLSet extends r.YAMLMap{constructor(){super();this.tag=YAMLSet.tag}add(e){const t=e instanceof r.Pair?e:new r.Pair(e);const u=r.findPair(this.items,t.key);if(!u)this.items.push(t)}get(e,t){const u=r.findPair(this.items,e);return!t&&u instanceof r.Pair?u.key instanceof r.Scalar?u.key.value:u.key:u}set(e,t){if(typeof t!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const u=r.findPair(this.items,e);if(u&&!t){this.items.splice(this.items.indexOf(u),1)}else if(!u&&t){this.items.push(new r.Pair(e))}}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,u){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,u);else throw new Error("Set items must all have null values")}}n._defineProperty(YAMLSet,"tag","tag:yaml.org,2002:set");function parseSet(e,t){const u=r.resolveMap(e,t);if(!u.hasAllNullValues())throw new n.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new YAMLSet,u)}function createSet(e,t,u){const n=new YAMLSet;for(const r of t)n.items.push(e.createPair(r,null,u));return n}const a={identify:e=>e instanceof Set,nodeClass:YAMLSet,default:false,tag:"tag:yaml.org,2002:set",resolve:parseSet,createNode:createSet};const c=(e,t)=>{const u=t.split(":").reduce((e,t)=>e*60+Number(t),0);return e==="-"?-u:u};const l=({value:e})=>{if(isNaN(e)||!isFinite(e))return r.stringifyNumber(e);let t="";if(e<0){t="-";e=Math.abs(e)}const u=[e%60];if(e<60){u.unshift(0)}else{e=Math.round((e-u[0])/60);u.unshift(e%60);if(e>=60){e=Math.round((e-u[0])/60);u.unshift(e)}}return t+u.map(e=>e<10?"0"+String(e):String(e)).join(":").replace(/000000\d*$/,"")};const f={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,u)=>c(t,u.replace(/_/g,"")),stringify:l};const h={identify:e=>typeof e==="number",default:true,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,u)=>c(t,u.replace(/_/g,"")),stringify:l};const D={identify:e=>e instanceof Date,default:true,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:"+"([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})"+"(?:(?:t|T|[ \\t]+)"+"([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)"+"(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?"+")?"+")$"),resolve:(e,t,u,n,r,s,i,o,a)=>{if(o)o=(o+"00").substr(1,3);let l=Date.UTC(t,u-1,n,r||0,s||0,i||0,o||0);if(a&&a!=="Z"){let e=c(a[0],a.slice(1));if(Math.abs(e)<30)e*=60;l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function shouldWarn(e){const t=typeof process!=="undefined"&&process.env||{};if(e){if(typeof YAML_SILENCE_DEPRECATION_WARNINGS!=="undefined")return!YAML_SILENCE_DEPRECATION_WARNINGS;return!t.YAML_SILENCE_DEPRECATION_WARNINGS}if(typeof YAML_SILENCE_WARNINGS!=="undefined")return!YAML_SILENCE_WARNINGS;return!t.YAML_SILENCE_WARNINGS}function warn(e,t){if(shouldWarn(false)){const u=typeof process!=="undefined"&&process.emitWarning;if(u)u(e,t);else{console.warn(t?`${t}: ${e}`:e)}}}function warnFileDeprecation(e){if(shouldWarn(true)){const t=e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");warn(`The endpoint 'yaml/${t}' will be removed in a future release.`,"DeprecationWarning")}}const p={};function warnOptionDeprecation(e,t){if(!p[e]&&shouldWarn(true)){p[e]=true;let u=`The option '${e}' will be removed in a future release`;u+=t?`, use '${t}' instead.`:".";warn(u,"DeprecationWarning")}}t.binary=s;t.floatTime=h;t.intTime=f;t.omap=o;t.pairs=i;t.set=a;t.timestamp=D;t.warn=warn;t.warnFileDeprecation=warnFileDeprecation;t.warnOptionDeprecation=warnOptionDeprecation},669:function(e){e.exports=require("util")},690:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loaders=void 0;let n;const r=function loadJs(e){if(n===undefined){n=u(402)}const t=n(e);return t};let s;const i=function loadJson(e,t){if(s===undefined){s=u(32)}try{const u=s(t);return u}catch(t){t.message=`JSON Error in ${e}:\n${t.message}`;throw t}};let o;const a=function loadYaml(e,t){if(o===undefined){o=u(521)}try{const u=o.parse(t,{prettyErrors:true});return u}catch(t){t.message=`YAML Error in ${e}:\n${t.message}`;throw t}};const c={loadJs:r,loadJson:i,loadYaml:a};t.loaders=c},693:function(e,t,u){"use strict";e=u.nmd(e);Object.defineProperty(t,"__esModule",{value:true});t.loadConfig=loadConfig;t.getPostcssOptions=getPostcssOptions;t.exec=exec;t.normalizeSourceMap=normalizeSourceMap;t.normalizeSourceMapAfterPostcss=normalizeSourceMapAfterPostcss;var n=_interopRequireDefault(u(277));var r=_interopRequireDefault(u(282));var s=u(150);var i=u(471);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=e;const a=(e,t)=>new Promise((u,n)=>{e.stat(t,(e,t)=>{if(e){n(e)}u(t)})});function exec(e,t){const{resource:u,context:n}=t;const s=new r.default(u,o);s.paths=r.default._nodeModulePaths(n);s.filename=u;s._compile(e,u);return s.exports}async function loadConfig(e,t){const u=typeof t==="string"?n.default.resolve(t):n.default.dirname(e.resourcePath);let r;try{r=await a(e.fs,u)}catch(e){throw new Error(`No PostCSS config found in: ${u}`)}const o=(0,i.cosmiconfig)("postcss");let c;try{if(r.isFile()){c=await o.load(u)}else{c=await o.search(u)}}catch(e){throw e}if(!c){return{}}e.addDependency(c.filepath);if(c.isEmpty){return c}if(typeof c.config==="function"){const t={mode:e.mode,file:e.resourcePath,webpackLoaderContext:e};c.config=c.config(t)}c=(0,s.klona)(c);return c}function loadPlugin(e,t,u){try{if(!t||Object.keys(t).length===0){const t=require(e);if(t.default){return t.default}return t}const n=require(e);if(n.default){return n.default(t)}return n(t)}catch(t){throw new Error(`Loading PostCSS "${e}" plugin failed: ${t.message}\n\n(@${u})`)}}function pluginFactory(){const e=new Map;return t=>{if(typeof t==="undefined"){return e}if(Array.isArray(t)){for(const u of t){if(Array.isArray(u)){const[t,n]=u;e.set(t,n)}else if(u&&typeof u==="function"){e.set(u)}else if(u&&Object.keys(u).length===1&&(typeof u[Object.keys(u)[0]]==="object"||typeof u[Object.keys(u)[0]]==="boolean")&&u[Object.keys(u)[0]]!==null){const[t]=Object.keys(u);const n=u[t];if(n===false){e.delete(t)}else{e.set(t,n)}}else if(u){e.set(u)}}}else{const u=Object.entries(t);for(const[t,n]of u){if(n===false){e.delete(t)}else{e.set(t,n)}}}return e}}function getPostcssOptions(e,t={},u={}){const r=e.resourcePath;let i=u;if(typeof i==="function"){i=i(e)}let o=[];try{const u=pluginFactory();if(t.config&&t.config.plugins){u(t.config.plugins)}u(i.plugins);o=[...u()].map(e=>{const[t,u]=e;if(typeof t==="string"){return loadPlugin(t,u,r)}return t})}catch(t){e.emitError(t)}const a=t.config||{};if(a.from){a.from=n.default.resolve(n.default.dirname(t.filepath),a.from)}if(a.to){a.to=n.default.resolve(n.default.dirname(t.filepath),a.to)}delete a.plugins;const c=(0,s.klona)(i);if(c.from){c.from=n.default.resolve(e.rootContext,c.from)}if(c.to){c.to=n.default.resolve(e.rootContext,c.to)}delete c.config;delete c.plugins;const l={from:r,to:r,map:false,...a,...c};if(typeof l.parser==="string"){try{l.parser=require(l.parser)}catch(t){e.emitError(new Error(`Loading PostCSS "${l.parser}" parser failed: ${t.message}\n\n(@${r})`))}}if(typeof l.stringifier==="string"){try{l.stringifier=require(l.stringifier)}catch(t){e.emitError(new Error(`Loading PostCSS "${l.stringifier}" stringifier failed: ${t.message}\n\n(@${r})`))}}if(typeof l.syntax==="string"){try{l.syntax=require(l.syntax)}catch(t){e.emitError(new Error(`Loading PostCSS "${l.syntax}" syntax failed: ${t.message}\n\n(@${r})`))}}if(l.map===true){l.map={inline:true}}return{plugins:o,processOptions:l}}const c=/^[a-z]:[/\\]|^\\\\/i;const l=/^[a-z0-9+\-.]+:/i;function getURLType(e){if(e[0]==="/"){if(e[1]==="/"){return"scheme-relative"}return"path-absolute"}if(c.test(e)){return"path-absolute"}return l.test(e)?"absolute":"path-relative"}function normalizeSourceMap(e,t){let u=e;if(typeof u==="string"){u=JSON.parse(u)}delete u.file;const{sourceRoot:r}=u;delete u.sourceRoot;if(u.sources){u.sources=u.sources.map(e=>{const u=getURLType(e);if(u==="path-relative"||u==="path-absolute"){const s=u==="path-relative"&&r?n.default.resolve(r,n.default.normalize(e)):n.default.normalize(e);return n.default.relative(t,s)}return e})}return u}function normalizeSourceMapAfterPostcss(e,t){const u=e;delete u.file;u.sourceRoot="";u.sources=u.sources.map(e=>{if(e.indexOf("<")===0){return e}const u=getURLType(e);if(u==="path-relative"){return n.default.resolve(t,e)}return e});return u}},698:function(e,t,u){"use strict";let{isClean:n}=u(448);let r=u(52);let s=u(880);let i=u(112);let o=u(585);let a=u(439);let c=u(847);const l={root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"};const f=0;function isPromise(e){return typeof e==="object"&&typeof e.then==="function"}function getEvents(e){let t=false;let u=l[e.type];if(e.type==="decl"){t=e.prop.toLowerCase()}else if(e.type==="atrule"){t=e.name.toLowerCase()}if(t&&e.append){return[u,u+"-"+t,f,u+"Exit",u+"Exit-"+t]}else if(t){return[u,u+"-"+t,u+"Exit",u+"Exit-"+t]}else if(e.append){return[u,f,u+"Exit"]}else{return[u,u+"Exit"]}}function toStack(e){let t;if(e.type==="root"){t=["Root",f,"RootExit"]}else{t=getEvents(e)}return{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function cleanMarks(e){e[n]=false;if(e.nodes)e.nodes.forEach(e=>cleanMarks(e));return e}let h={};class LazyResult{constructor(e,t,u){this.stringified=false;this.processed=false;let n;if(typeof t==="object"&&t!==null&&t.type==="root"){n=cleanMarks(t)}else if(t instanceof LazyResult||t instanceof o){n=cleanMarks(t.root);if(t.map){if(typeof u.map==="undefined")u.map={};if(!u.map.inline)u.map.inline=false;u.map.prev=t.map}}else{let e=a;if(u.syntax)e=u.syntax.parse;if(u.parser)e=u.parser;if(e.parse)e=e.parse;try{n=e(t,u)}catch(e){this.processed=true;this.error=e}}this.result=new o(e,n,u);this.helpers={...h,result:this.result,postcss:h};this.plugins=this.processor.plugins.map(e=>{if(typeof e==="object"&&e.prepare){return{...e,...e.prepare(this.result)}}else{return e}})}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){if(process.env.NODE_ENV!=="production"){if(!("from"in this.opts)){i("Without `from` option PostCSS could generate wrong source map "+"and will not find Browserslist config. Set it to CSS file path "+"or to `undefined` to prevent this warning.")}}return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing){this.processing=this.runAsync()}return this.processing}sync(){if(this.error)throw this.error;if(this.processed)return this.result;this.processed=true;if(this.processing){throw this.getAsyncError()}for(let e of this.plugins){let t=this.runOnRoot(e);if(isPromise(t)){throw this.getAsyncError()}}this.prepareVisitors();if(this.hasListener){let e=this.result.root;while(!e[n]){e[n]=true;this.walkSync(e)}if(this.listeners.OnceExit){this.visitSync(this.listeners.OnceExit,e)}}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=true;this.sync();let e=this.result.opts;let t=s;if(e.syntax)t=e.syntax.stringify;if(e.stringifier)t=e.stringifier;if(t.stringify)t=t.stringify;let u=new r(t,this.result.root,this.result.opts);let n=u.generate();this.result.css=n[0];this.result.map=n[1];return this.result}walkSync(e){e[n]=true;let t=getEvents(e);for(let u of t){if(u===f){if(e.nodes){e.each(e=>{if(!e[n])this.walkSync(e)})}}else{let t=this.listeners[u];if(t){if(this.visitSync(t,e.toProxy()))return}}}}visitSync(e,t){for(let[u,n]of e){this.result.lastPlugin=u;let e;try{e=n(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!=="root"&&!t.parent)return true;if(isPromise(e)){throw this.getAsyncError()}}}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==="object"&&e.Once){return e.Once(this.result.root,this.helpers)}else if(typeof e==="function"){return e(this.result.root,this.result)}}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let u=this.result.lastPlugin;try{if(t)t.addToError(e);this.error=e;if(e.name==="CssSyntaxError"&&!e.plugin){e.plugin=u.postcssPlugin;e.setMessage()}else if(u.postcssVersion){if(process.env.NODE_ENV!=="production"){let e=u.postcssPlugin;let t=u.postcssVersion;let n=this.result.processor.version;let r=t.split(".");let s=n.split(".");if(r[0]!==s[0]||parseInt(r[1])>parseInt(s[1])){console.error("Unknown error from PostCSS plugin. Your current PostCSS "+"version is "+n+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}}}catch(e){if(console&&console.error)console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e0){let e=this.visitTick(t);if(isPromise(e)){try{await e}catch(e){let u=t[t.length-1].node;throw this.handleError(e,u)}}}}if(this.listeners.OnceExit){for(let[t,u]of this.listeners.OnceExit){this.result.lastPlugin=t;try{await u(e,this.helpers)}catch(e){throw this.handleError(e)}}}}this.processed=true;return this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,u)=>{if(!this.listeners[t])this.listeners[t]=[];this.listeners[t].push([e,u])};for(let t of this.plugins){if(typeof t==="object"){for(let u of["Root","Declaration","Rule","AtRule","Comment","DeclarationExit","RuleExit","AtRuleExit","CommentExit","RootExit","OnceExit"]){if(typeof t[u]==="object"){for(let n in t[u]){if(n==="*"){e(t,u,t[u][n])}else{e(t,u+"-"+n.toLowerCase(),t[u][n])}}}else if(typeof t[u]==="function"){e(t,u,t[u])}}}}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1];let{node:u,visitors:r}=t;if(u.type!=="root"&&!u.parent){e.pop();return}if(r.length>0&&t.visitorIndex{h=e});e.exports=LazyResult;c.registerLazyResult(LazyResult)},710:function(e){e.exports=require("loader-utils")},736:function(e){e.exports=require("next/dist/compiled/chalk")},745:function(e,t,u){(function(){"use strict";t.ast=u(928);t.code=u(818);t.keyword=u(864)})()},747:function(e){e.exports=require("fs")},780:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readFile=readFile;t.readFileSync=readFileSync;var n=_interopRequireDefault(u(747));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function fsReadFileAsync(e,t){return new Promise((u,r)=>{n.default.readFile(e,t,(e,t)=>{if(e){r(e);return}u(t)})})}async function readFile(e,t={}){const u=t.throwNotFound===true;try{const t=await fsReadFileAsync(e,"utf8");return t}catch(e){if(u===false&&e.code==="ENOENT"){return null}throw e}}function readFileSync(e,t={}){const u=t.throwNotFound===true;try{const t=n.default.readFileSync(e,"utf8");return t}catch(e){if(u===false&&e.code==="ENOENT"){return null}throw e}}},792:function(e,t,u){"use strict";var n=u(513);var r=u(63);u(310);var s=u(192);var i=u(525);var o=u(626);function createNode(e,t=true,u){if(u===undefined&&typeof t==="string"){u=t;t=true}const n=Object.assign({},s.Document.defaults[s.defaultOptions.version],s.defaultOptions);const r=new i.Schema(n);return r.createNode(e,t,u)}class Document extends s.Document{constructor(e){super(Object.assign({},s.defaultOptions,e))}}function parseAllDocuments(e,t){const u=[];let n;for(const s of r.parse(e)){const e=new Document(t);e.parse(s,n);u.push(e);n=e}return u}function parseDocument(e,t){const u=r.parse(e);const s=new Document(t).parse(u[0]);if(u.length>1){const e="Source contains multiple documents; please use YAML.parseAllDocuments()";s.errors.unshift(new n.YAMLSemanticError(u[1],e))}return s}function parse(e,t){const u=parseDocument(e,t);u.warnings.forEach(e=>o.warn(e));if(u.errors.length>0)throw u.errors[0];return u.toJSON()}function stringify(e,t){const u=new Document(t);u.contents=e;return String(u)}const a={createNode:createNode,defaultOptions:s.defaultOptions,Document:Document,parse:parse,parseAllDocuments:parseAllDocuments,parseCST:r.parse,parseDocument:parseDocument,scalarOptions:s.scalarOptions,stringify:stringify};t.YAML=a},798:function(e){"use strict";const t={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:false};function capitalize(e){return e[0].toUpperCase()+e.slice(1)}class Stringifier{constructor(e){this.builder=e}stringify(e,t){this[e.type](e,t)}root(e){this.root=e;this.body(e);if(e.raws.after)this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft");let u=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+u+"*/",e)}decl(e,t){let u=this.raw(e,"between","colon");let n=e.prop+u+this.rawValue(e,"value");if(e.important){n+=e.raws.important||" !important"}if(t)n+=";";this.builder(n,e)}rule(e){this.block(e,this.rawValue(e,"selector"));if(e.raws.ownSemicolon){this.builder(e.raws.ownSemicolon,e,"end")}}atrule(e,t){let u="@"+e.name;let n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!=="undefined"){u+=e.raws.afterName}else if(n){u+=" "}if(e.nodes){this.block(e,u+n)}else{let r=(e.raws.between||"")+(t?";":"");this.builder(u+n+r,e)}}body(e){let t=e.nodes.length-1;while(t>0){if(e.nodes[t].type!=="comment")break;t-=1}let u=this.raw(e,"semicolon");for(let n=0;n{r=e.raws[u];if(typeof r!=="undefined")return false})}}if(typeof r==="undefined")r=t[n];i.rawCache[n]=r;return r}rawSemicolon(e){let t;e.walk(e=>{if(e.nodes&&e.nodes.length&&e.last.type==="decl"){t=e.raws.semicolon;if(typeof t!=="undefined")return false}});return t}rawEmptyBody(e){let t;e.walk(e=>{if(e.nodes&&e.nodes.length===0){t=e.raws.after;if(typeof t!=="undefined")return false}});return t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;e.walk(u=>{let n=u.parent;if(n&&n!==e&&n.parent&&n.parent===e){if(typeof u.raws.before!=="undefined"){let e=u.raws.before.split("\n");t=e[e.length-1];t=t.replace(/\S/g,"");return false}}});return t}rawBeforeComment(e,t){let u;e.walkComments(e=>{if(typeof e.raws.before!=="undefined"){u=e.raws.before;if(u.includes("\n")){u=u.replace(/[^\n]+$/,"")}return false}});if(typeof u==="undefined"){u=this.raw(t,null,"beforeDecl")}else if(u){u=u.replace(/\S/g,"")}return u}rawBeforeDecl(e,t){let u;e.walkDecls(e=>{if(typeof e.raws.before!=="undefined"){u=e.raws.before;if(u.includes("\n")){u=u.replace(/[^\n]+$/,"")}return false}});if(typeof u==="undefined"){u=this.raw(t,null,"beforeRule")}else if(u){u=u.replace(/\S/g,"")}return u}rawBeforeRule(e){let t;e.walk(u=>{if(u.nodes&&(u.parent!==e||e.first!==u)){if(typeof u.raws.before!=="undefined"){t=u.raws.before;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}});if(t)t=t.replace(/\S/g,"");return t}rawBeforeClose(e){let t;e.walk(e=>{if(e.nodes&&e.nodes.length>0){if(typeof e.raws.after!=="undefined"){t=e.raws.after;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}});if(t)t=t.replace(/\S/g,"");return t}rawBeforeOpen(e){let t;e.walk(e=>{if(e.type!=="decl"){t=e.raws.between;if(typeof t!=="undefined")return false}});return t}rawColon(e){let t;e.walkDecls(e=>{if(typeof e.raws.between!=="undefined"){t=e.raws.between.replace(/[^\s:]/g,"");return false}});return t}beforeAfter(e,t){let u;if(e.type==="decl"){u=this.raw(e,null,"beforeDecl")}else if(e.type==="comment"){u=this.raw(e,null,"beforeComment")}else if(t==="before"){u=this.raw(e,null,"beforeRule")}else{u=this.raw(e,null,"beforeClose")}let n=e.parent;let r=0;while(n&&n.type!=="root"){r+=1;n=n.parent}if(u.includes("\n")){let t=this.raw(e,null,"indent");if(t.length){for(let e=0;e=48&&e<=55}n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isWhiteSpace(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&n.indexOf(e)>=0}function isLineTerminator(e){return e===10||e===13||e===8232||e===8233}function fromCodePoint(e){if(e<=65535){return String.fromCharCode(e)}var t=String.fromCharCode(Math.floor((e-65536)/1024)+55296);var u=String.fromCharCode((e-65536)%1024+56320);return t+u}r=new Array(128);for(i=0;i<128;++i){r[i]=i>=97&&i<=122||i>=65&&i<=90||i===36||i===95}s=new Array(128);for(i=0;i<128;++i){s[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||i===36||i===95}function isIdentifierStartES5(e){return e<128?r[e]:u.NonAsciiIdentifierStart.test(fromCodePoint(e))}function isIdentifierPartES5(e){return e<128?s[e]:u.NonAsciiIdentifierPart.test(fromCodePoint(e))}function isIdentifierStartES6(e){return e<128?r[e]:t.NonAsciiIdentifierStart.test(fromCodePoint(e))}function isIdentifierPartES6(e){return e<128?s[e]:t.NonAsciiIdentifierPart.test(fromCodePoint(e))}e.exports={isDecimalDigit:isDecimalDigit,isHexDigit:isHexDigit,isOctalDigit:isOctalDigit,isWhiteSpace:isWhiteSpace,isLineTerminator:isLineTerminator,isIdentifierStartES5:isIdentifierStartES5,isIdentifierPartES5:isIdentifierPartES5,isIdentifierStartES6:isIdentifierStartES6,isIdentifierPartES6:isIdentifierPartES6}})()},835:function(e){e.exports=require("url")},847:function(e,t,u){"use strict";let n=u(990);let r,s;class Root extends n{constructor(e){super(e);this.type="root";if(!this.nodes)this.nodes=[]}removeChild(e,t){let u=this.index(e);if(!t&&u===0&&this.nodes.length>1){this.nodes[1].raws.before=this.nodes[u].raws.before}return super.removeChild(e)}normalize(e,t,u){let n=super.normalize(e);if(t){if(u==="prepend"){if(this.nodes.length>1){t.raws.before=this.nodes[1].raws.before}else{delete t.raws.before}}else if(this.first!==t){for(let e of n){e.raws.before=t.raws.before}}}return n}toResult(e={}){let t=new r(new s,this,e);return t.stringify()}}Root.registerLazyResult=(e=>{r=e});Root.registerProcessor=(e=>{s=e});e.exports=Root},851:function(e){e.exports={type:"object",properties:{postcssOptions:{description:"Options to pass through to `Postcss`.",anyOf:[{type:"object",additionalProperties:true,properties:{config:{description:"Allows to specify PostCSS Config Path (https://github.com/postcss/postcss-loader#config)",anyOf:[{description:"Allows to specify the path to the configuration file",type:"string"},{description:"Enables/Disables autoloading config",type:"boolean"}]}}},{instanceof:"Function"}]},execute:{description:"Enables/Disables PostCSS parser support in 'CSS-in-JS' (https://github.com/postcss/postcss-loader#execute)",type:"boolean"},sourceMap:{description:"Enables/Disables generation of source maps (https://github.com/postcss/postcss-loader#sourcemap)",type:"boolean"}},additionalProperties:false}},864:function(e,t,u){(function(){"use strict";var t=u(818);function isStrictModeReservedWordES6(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return true;default:return false}}function isKeywordES5(e,t){if(!t&&e==="yield"){return false}return isKeywordES6(e,t)}function isKeywordES6(e,t){if(t&&isStrictModeReservedWordES6(e)){return true}switch(e.length){case 2:return e==="if"||e==="in"||e==="do";case 3:return e==="var"||e==="for"||e==="new"||e==="try";case 4:return e==="this"||e==="else"||e==="case"||e==="void"||e==="with"||e==="enum";case 5:return e==="while"||e==="break"||e==="catch"||e==="throw"||e==="const"||e==="yield"||e==="class"||e==="super";case 6:return e==="return"||e==="typeof"||e==="delete"||e==="switch"||e==="export"||e==="import";case 7:return e==="default"||e==="finally"||e==="extends";case 8:return e==="function"||e==="continue"||e==="debugger";case 10:return e==="instanceof";default:return false}}function isReservedWordES5(e,t){return e==="null"||e==="true"||e==="false"||isKeywordES5(e,t)}function isReservedWordES6(e,t){return e==="null"||e==="true"||e==="false"||isKeywordES6(e,t)}function isRestrictedWord(e){return e==="eval"||e==="arguments"}function isIdentifierNameES5(e){var u,n,r;if(e.length===0){return false}r=e.charCodeAt(0);if(!t.isIdentifierStartES5(r)){return false}for(u=1,n=e.length;u=n){return false}s=e.charCodeAt(u);if(!(56320<=s&&s<=57343)){return false}r=decodeUtf16(r,s)}if(!i(r)){return false}i=t.isIdentifierPartES6}return true}function isIdentifierES5(e,t){return isIdentifierNameES5(e)&&!isReservedWordES5(e,t)}function isIdentifierES6(e,t){return isIdentifierNameES6(e)&&!isReservedWordES6(e,t)}e.exports={isKeywordES5:isKeywordES5,isKeywordES6:isKeywordES6,isReservedWordES5:isReservedWordES5,isReservedWordES6:isReservedWordES6,isRestrictedWord:isRestrictedWord,isIdentifierNameES5:isIdentifierNameES5,isIdentifierNameES6:isIdentifierNameES6,isIdentifierES5:isIdentifierES5,isIdentifierES6:isIdentifierES6}})()},880:function(e,t,u){"use strict";let n=u(798);e.exports=function stringify(e,t){let u=new n(t);u.stringify(e)}},893:function(e){"use strict";class Warning{constructor(e,t={}){this.type="warning";this.text=e;if(t.node&&t.node.source){let e=t.node.positionBy(t);this.line=e.line;this.column=e.column}for(let e in t)this[e]=t[e]}toString(){if(this.node){return this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message}if(this.plugin){return this.plugin+": "+this.text}return this.text}}e.exports=Warning},898:function(e,t,u){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getDirectory=getDirectory;t.getDirectorySync=getDirectorySync;var n=_interopRequireDefault(u(277));var r=u(501);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function getDirectory(e){const t=await(0,r.isDirectory)(e);if(t===true){return e}const u=n.default.dirname(e);return u}function getDirectorySync(e){const t=(0,r.isDirectorySync)(e);if(t===true){return e}const u=n.default.dirname(e);return u}},900:function(e){"use strict";e.exports=parseJson;function parseJson(e,t,u){u=u||20;try{return JSON.parse(e,t)}catch(t){if(typeof e!=="string"){const t=Array.isArray(e)&&e.length===0;const u="Cannot parse "+(t?"an empty array":String(e));throw new TypeError(u)}const n=t.message.match(/^Unexpected token.*position\s+(\d+)/i);const r=n?+n[1]:t.message.match(/^Unexpected end of JSON.*/i)?e.length-1:null;if(r!=null){const n=r<=u?0:r-u;const s=r+u>=e.length?e.length:r+u;t.message+=` while parsing near '${n===0?"":"..."}${e.slice(n,s)}${s===e.length?"":"..."}'`}else{t.message+=` while parsing '${e.slice(0,u*2)}'`}throw t}}},928:function(e){(function(){"use strict";function isExpression(e){if(e==null){return false}switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return true}return false}function isIterationStatement(e){if(e==null){return false}switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return true}return false}function isStatement(e){if(e==null){return false}switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return true}return false}function isSourceElement(e){return isStatement(e)||e!=null&&e.type==="FunctionDeclaration"}function trailingStatement(e){switch(e.type){case"IfStatement":if(e.alternate!=null){return e.alternate}return e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}function isProblematicIfStatement(e){var t;if(e.type!=="IfStatement"){return false}if(e.alternate==null){return false}t=e.consequent;do{if(t.type==="IfStatement"){if(t.alternate==null){return true}}t=trailingStatement(t)}while(t);return false}e.exports={isExpression:isExpression,isStatement:isStatement,isIterationStatement:isIterationStatement,isSourceElement:isSourceElement,isProblematicIfStatement:isProblematicIfStatement,trailingStatement:trailingStatement}})()},934:function(e){"use strict";class SyntaxError extends Error{constructor(e){super(e);const{line:t,column:u,reason:n,plugin:r,file:s}=e;this.name="SyntaxError";this.message=`${this.name}\n\n`;if(typeof t!=="undefined"){this.message+=`(${t}:${u}) `}this.message+=r?`${r}: `:"";this.message+=s?`${s} `:" ";this.message+=`${n}`;const i=e.showSourceCode();if(i){this.message+=`\n\n${i}\n`}this.stack=false}}e.exports=SyntaxError},958:function(e,t,u){"use strict";let{cyan:n,gray:r,green:s,yellow:i,magenta:o}=u(153);let a=u(622);let c;function registerInput(e){c=e}const l={brackets:n,"at-word":n,comment:r,string:s,class:i,hash:o,call:n,"(":n,")":n,"{":i,"}":i,"[":i,"]":i,":":i,";":i};function getTokenType([e,t],u){if(e==="word"){if(t[0]==="."){return"class"}if(t[0]==="#"){return"hash"}}if(!u.endOfFile()){let e=u.nextToken();u.back(e);if(e[0]==="brackets"||e[0]==="(")return"call"}return e}function terminalHighlight(e){let t=a(new c(e),{ignoreErrors:true});let u="";while(!t.endOfFile()){let e=t.nextToken();let n=l[getTokenType(e,t)];if(n){u+=e[1].split(/\r?\n/).map(e=>n(e)).join("\n")}else{u+=e[1]}}return u}terminalHighlight.registerInput=registerInput;e.exports=terminalHighlight},964:function(e,t,u){"use strict";const n=u(38);e.exports=(e=>{const t=n();if(!e){return t[2].getFileName()}let u=false;t.shift();for(const n of t){const t=n.getFileName();if(typeof t!=="string"){continue}if(t===e){u=true;continue}if(t==="module.js"){continue}if(u&&t!==e){return t}}})},968:function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:undefined};if(e[1])t.type="string",t.closed=!!(e[3]||e[4]);else if(e[5])t.type="comment";else if(e[6])t.type="comment",t.closed=!!e[7];else if(e[8])t.type="regex";else if(e[9])t.type="number";else if(e[10])t.type="name";else if(e[11])t.type="punctuator";else if(e[12])t.type="whitespace";return t}},986:function(e,t,u){"use strict";e.exports=u(425).default},990:function(e,t,u){"use strict";let{isClean:n}=u(448);let r=u(249);let s=u(374);let i=u(7);let o,a,c;function cleanSource(e){return e.map(e=>{if(e.nodes)e.nodes=cleanSource(e.nodes);delete e.source;return e})}function markDirtyUp(e){e[n]=false;if(e.proxyOf.nodes){for(let t of e.proxyOf.nodes){markDirtyUp(t)}}}function rebuild(e){if(e.type==="atrule"){Object.setPrototypeOf(e,c.prototype)}else if(e.type==="rule"){Object.setPrototypeOf(e,a.prototype)}else if(e.type==="decl"){Object.setPrototypeOf(e,r.prototype)}else if(e.type==="comment"){Object.setPrototypeOf(e,s.prototype)}if(e.nodes){e.nodes.forEach(e=>{rebuild(e)})}}class Container extends i{push(e){e.parent=this;this.proxyOf.nodes.push(e);return this}each(e){if(!this.proxyOf.nodes)return undefined;let t=this.getIterator();let u,n;while(this.indexes[t]{let n;try{n=e(t,u)}catch(e){throw t.addToError(e)}if(n!==false&&t.walk){n=t.walk(e)}return n})}walkDecls(e,t){if(!t){t=e;return this.walk((e,u)=>{if(e.type==="decl"){return t(e,u)}})}if(e instanceof RegExp){return this.walk((u,n)=>{if(u.type==="decl"&&e.test(u.prop)){return t(u,n)}})}return this.walk((u,n)=>{if(u.type==="decl"&&u.prop===e){return t(u,n)}})}walkRules(e,t){if(!t){t=e;return this.walk((e,u)=>{if(e.type==="rule"){return t(e,u)}})}if(e instanceof RegExp){return this.walk((u,n)=>{if(u.type==="rule"&&e.test(u.selector)){return t(u,n)}})}return this.walk((u,n)=>{if(u.type==="rule"&&u.selector===e){return t(u,n)}})}walkAtRules(e,t){if(!t){t=e;return this.walk((e,u)=>{if(e.type==="atrule"){return t(e,u)}})}if(e instanceof RegExp){return this.walk((u,n)=>{if(u.type==="atrule"&&e.test(u.name)){return t(u,n)}})}return this.walk((u,n)=>{if(u.type==="atrule"&&u.name===e){return t(u,n)}})}walkComments(e){return this.walk((t,u)=>{if(t.type==="comment"){return e(t,u)}})}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}this.markDirty();return this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes){this.indexes[t]=this.indexes[t]+e.length}}this.markDirty();return this}cleanRaws(e){super.cleanRaws(e);if(this.nodes){for(let t of this.nodes)t.cleanRaws(e)}}insertBefore(e,t){e=this.index(e);let u=e===0?"prepend":false;let n=this.normalize(t,this.proxyOf.nodes[e],u).reverse();for(let t of n)this.proxyOf.nodes.splice(e,0,t);let r;for(let t in this.indexes){r=this.indexes[t];if(e<=r){this.indexes[t]=r+n.length}}this.markDirty();return this}insertAfter(e,t){e=this.index(e);let u=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of u)this.proxyOf.nodes.splice(e+1,0,t);let n;for(let t in this.indexes){n=this.indexes[t];if(e=e){this.indexes[u]=t-1}}this.markDirty();return this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=undefined;this.proxyOf.nodes=[];this.markDirty();return this}replaceValues(e,t,u){if(!u){u=t;t={}}this.walkDecls(n=>{if(t.props&&!t.props.includes(n.prop))return;if(t.fast&&!n.value.includes(t.fast))return;n.value=n.value.replace(e,u)});this.markDirty();return this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){if(typeof e==="number")return e;if(e.proxyOf)e=e.proxyOf;return this.proxyOf.nodes.indexOf(e)}get first(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if(typeof e==="string"){e=cleanSource(o(e).nodes)}else if(Array.isArray(e)){e=e.slice(0);for(let t of e){if(t.parent)t.parent.removeChild(t,"ignore")}}else if(e.type==="root"){e=e.nodes.slice(0);for(let t of e){if(t.parent)t.parent.removeChild(t,"ignore")}}else if(e.type){e=[e]}else if(e.prop){if(typeof e.value==="undefined"){throw new Error("Value field is missed in node creation")}else if(typeof e.value!=="string"){e.value=String(e.value)}e=[new r(e)]}else if(e.selector){e=[new a(e)]}else if(e.name){e=[new c(e)]}else if(e.text){e=[new s(e)]}else{throw new Error("Unknown node type in node creation")}let u=e.map(e=>{if(typeof e.markDirty!=="function")rebuild(e);if(e.parent)e.parent.removeChild(e);if(e[n])markDirtyUp(e);if(typeof e.raws.before==="undefined"){if(t&&typeof t.raws.before!=="undefined"){e.raws.before=t.raws.before.replace(/\S/g,"")}}e.parent=this;return e});return u}getProxyProcessor(){return{set(e,t,u){if(e[t]===u)return true;e[t]=u;if(t==="name"||t==="params"||t==="selector"){e.markDirty()}return true},get(e,t){if(t==="proxyOf"){return e}else if(!e[t]){return e[t]}else if(t==="each"||typeof t==="string"&&t.startsWith("walk")){return(...u)=>{return e[t](...u.map(e=>{if(typeof e==="function"){return(t,u)=>e(t.toProxy(),u)}else{return e}}))}}else if(t==="every"||t==="some"){return u=>{return e[t]((e,...t)=>u(e.toProxy(),...t))}}else if(t==="root"){return()=>e.root().toProxy()}else if(t==="nodes"){return e.nodes.map(e=>e.toProxy())}else if(t==="first"||t==="last"){return e[t].toProxy()}else{return e[t]}}}}getIterator(){if(!this.lastEach)this.lastEach=0;if(!this.indexes)this.indexes={};this.lastEach+=1;let e=this.lastEach;this.indexes[e]=0;return e}}Container.registerParse=(e=>{o=e});Container.registerRule=(e=>{a=e});Container.registerAtRule=(e=>{c=e});e.exports=Container}},function(e){"use strict";!function(){e.nmd=function(e){e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});return e}}()}); \ No newline at end of file diff --git a/packages/next/compiled/terser-webpack-plugin/cjs.js b/packages/next/compiled/terser-webpack-plugin/cjs.js index 8cc02f668d7cb42..4fdac738d0648e2 100644 --- a/packages/next/compiled/terser-webpack-plugin/cjs.js +++ b/packages/next/compiled/terser-webpack-plugin/cjs.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var s={};function __webpack_require__(t){if(s[t]){return s[t].exports}var n=s[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(470)}t(__webpack_require__);return startup()}({43:function(e,t,s){"use strict";const n=s(446);class AsyncDependencyToInitialChunkError extends n{constructor(e,t,s){super(`It's not allowed to load an initial chunk on demand. The chunk name "${e}" is already used by an entrypoint.`);this.name="AsyncDependencyToInitialChunkError";this.module=t;this.loc=s;Error.captureStackTrace(this,this.constructor)}}e.exports=AsyncDependencyToInitialChunkError},46:function(e,t,s){e.exports=s(417).randomBytes},48:function(e,t,s){"use strict";const n=s(966);e.exports=class RuntimeTemplate{constructor(e,t){this.outputOptions=e||{};this.requestShortener=t}comment({request:e,chunkName:t,chunkReason:s,message:r,exportName:o}){let i;if(this.outputOptions.pathinfo){i=[r,e,t,s].filter(Boolean).map(e=>this.requestShortener.shorten(e)).join(" | ")}else{i=[r,t,s].filter(Boolean).map(e=>this.requestShortener.shorten(e)).join(" | ")}if(!i)return"";if(this.outputOptions.pathinfo){return n.toComment(i)+" "}else{return n.toNormalComment(i)+" "}}throwMissingModuleErrorFunction({request:e}){const t=`Cannot find module '${e}'`;return`function webpackMissingModule() { var e = new Error(${JSON.stringify(t)}); e.code = 'MODULE_NOT_FOUND'; throw e; }`}missingModule({request:e}){return`!(${this.throwMissingModuleErrorFunction({request:e})}())`}missingModuleStatement({request:e}){return`${this.missingModule({request:e})};\n`}missingModulePromise({request:e}){return`Promise.resolve().then(${this.throwMissingModuleErrorFunction({request:e})})`}moduleId({module:e,request:t}){if(!e){return this.missingModule({request:t})}if(e.id===null){throw new Error(`RuntimeTemplate.moduleId(): Module ${e.identifier()} has no id. This should not happen.`)}return`${this.comment({request:t})}${JSON.stringify(e.id)}`}moduleRaw({module:e,request:t}){if(!e){return this.missingModule({request:t})}return`__webpack_require__(${this.moduleId({module:e,request:t})})`}moduleExports({module:e,request:t}){return this.moduleRaw({module:e,request:t})}moduleNamespace({module:e,request:t,strict:s}){if(!e){return this.missingModule({request:t})}const n=this.moduleId({module:e,request:t});const r=e.buildMeta&&e.buildMeta.exportsType;if(r==="namespace"){const s=this.moduleRaw({module:e,request:t});return s}else if(r==="named"){return`__webpack_require__.t(${n}, 3)`}else if(s){return`__webpack_require__.t(${n}, 1)`}else{return`__webpack_require__.t(${n}, 7)`}}moduleNamespacePromise({block:e,module:t,request:s,message:n,strict:r,weak:o}){if(!t){return this.missingModulePromise({request:s})}if(t.id===null){throw new Error(`RuntimeTemplate.moduleNamespacePromise(): Module ${t.identifier()} has no id. This should not happen.`)}const i=this.blockPromise({block:e,message:n});let a;let l=JSON.stringify(t.id);const u=this.comment({request:s});let c="";if(o){if(l.length>8){c+=`var id = ${l}; `;l="id"}c+=`if(!__webpack_require__.m[${l}]) { var e = new Error("Module '" + ${l} + "' is not available (weak dependency)"); e.code = 'MODULE_NOT_FOUND'; throw e; } `}const d=this.moduleId({module:t,request:s});const h=t.buildMeta&&t.buildMeta.exportsType;if(h==="namespace"){if(c){const e=this.moduleRaw({module:t,request:s});a=`function() { ${c}return ${e}; }`}else{a=`__webpack_require__.bind(null, ${u}${l})`}}else if(h==="named"){if(c){a=`function() { ${c}return __webpack_require__.t(${d}, 3); }`}else{a=`__webpack_require__.t.bind(null, ${u}${l}, 3)`}}else if(r){if(c){a=`function() { ${c}return __webpack_require__.t(${d}, 1); }`}else{a=`__webpack_require__.t.bind(null, ${u}${l}, 1)`}}else{if(c){a=`function() { ${c}return __webpack_require__.t(${d}, 7); }`}else{a=`__webpack_require__.t.bind(null, ${u}${l}, 7)`}}return`${i||"Promise.resolve()"}.then(${a})`}importStatement({update:e,module:t,request:s,importVar:n,originModule:r}){if(!t){return this.missingModuleStatement({request:s})}const o=this.moduleId({module:t,request:s});const i=e?"":"var ";const a=t.buildMeta&&t.buildMeta.exportsType;let l=`/* harmony import */ ${i}${n} = __webpack_require__(${o});\n`;if(!a&&!r.buildMeta.strictHarmonyModule){l+=`/* harmony import */ ${i}${n}_default = /*#__PURE__*/__webpack_require__.n(${n});\n`}if(a==="named"){if(Array.isArray(t.buildMeta.providedExports)){l+=`${i}${n}_namespace = /*#__PURE__*/__webpack_require__.t(${o}, 1);\n`}else{l+=`${i}${n}_namespace = /*#__PURE__*/__webpack_require__.t(${o});\n`}}return l}exportFromImport({module:e,request:t,exportName:s,originModule:r,asiSafe:o,isCall:i,callContext:a,importVar:l}){if(!e){return this.missingModule({request:t})}const u=e.buildMeta&&e.buildMeta.exportsType;if(!u){if(s==="default"){if(!r.buildMeta.strictHarmonyModule){if(i){return`${l}_default()`}else if(o){return`(${l}_default())`}else{return`${l}_default.a`}}else{return l}}else if(r.buildMeta.strictHarmonyModule){if(s){return"/* non-default import from non-esm module */undefined"}else{return`/*#__PURE__*/__webpack_require__.t(${l})`}}}if(u==="named"){if(s==="default"){return l}else if(!s){return`${l}_namespace`}}if(s){const t=e.isUsed(s);if(!t){const e=n.toNormalComment(`unused export ${s}`);return`${e} undefined`}const r=t!==s?n.toNormalComment(s)+" ":"";const u=`${l}[${r}${JSON.stringify(t)}]`;if(i){if(a===false&&o){return`(0,${u})`}else if(a===false){return`Object(${u})`}}return u}else{return l}}blockPromise({block:e,message:t}){if(!e||!e.chunkGroup||e.chunkGroup.chunks.length===0){const e=this.comment({message:t});return`Promise.resolve(${e.trim()})`}const s=e.chunkGroup.chunks.filter(e=>!e.hasRuntime()&&e.id!==null);const n=this.comment({message:t,chunkName:e.chunkName,chunkReason:e.chunkReason});if(s.length===1){const e=JSON.stringify(s[0].id);return`__webpack_require__.e(${n}${e})`}else if(s.length>0){const e=e=>`__webpack_require__.e(${JSON.stringify(e.id)})`;return`Promise.all(${n.trim()}[${s.map(e).join(", ")}])`}else{return`Promise.resolve(${n.trim()})`}}onError(){return"__webpack_require__.oe"}defineEsModuleFlagStatement({exportsArgument:e}){return`__webpack_require__.r(${e});\n`}}},51:function(e,t,s){"use strict";const n=s(669);const r=s(554);function Tapable(){this._pluginCompat=new r(["options"]);this._pluginCompat.tap({name:"Tapable camelCase",stage:100},e=>{e.names.add(e.name.replace(/[- ]([a-z])/g,(e,t)=>t.toUpperCase()))});this._pluginCompat.tap({name:"Tapable this.hooks",stage:200},e=>{let t;for(const s of e.names){t=this.hooks[s];if(t!==undefined){break}}if(t!==undefined){const s={name:e.fn.name||"unnamed compat plugin",stage:e.stage||0};if(e.async)t.tapAsync(s,e.fn);else t.tap(s,e.fn);return true}})}e.exports=Tapable;Tapable.addCompatLayer=function addCompatLayer(e){Tapable.call(e);e.plugin=Tapable.prototype.plugin;e.apply=Tapable.prototype.apply};Tapable.prototype.plugin=n.deprecate(function plugin(e,t){if(Array.isArray(e)){e.forEach(function(e){this.plugin(e,t)},this);return}const s=this._pluginCompat.call({name:e,fn:t,names:new Set([e])});if(!s){throw new Error(`Plugin could not be registered at '${e}'. Hook was not found.\n`+"BREAKING CHANGE: There need to exist a hook at 'this.hooks'. "+"To create a compatibility layer for this hook, hook into 'this._pluginCompat'.")}},"Tapable.plugin is deprecated. Use new API on `.hooks` instead");Tapable.prototype.apply=n.deprecate(function apply(){for(var e=0;ee(s)+r(true),onDone:t})}}const o=new AsyncParallelHookCodeFactory;class AsyncParallelHook extends n{compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncParallelHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncParallelHook},102:function(e,t){"use strict";const s="LOADER_EXECUTION";const n="WEBPACK_OPTIONS";t.cutOffByFlag=((e,t)=>{e=e.split("\n");for(let s=0;st.cutOffByFlag(e,s));t.cutOffWebpackOptions=(e=>t.cutOffByFlag(e,n));t.cutOffMultilineMessage=((e,t)=>{e=e.split("\n");t=t.split("\n");return e.reduce((e,s,n)=>s.includes(t[n])?e:e.concat(s),[]).join("\n")});t.cutOffMessage=((e,t)=>{const s=e.indexOf("\n");if(s===-1){return e===t?"":e}else{const n=e.substr(0,s);return n===t?e.substr(s+1):e}});t.cleanUp=((e,s)=>{e=t.cutOffLoaderExecution(e);e=t.cutOffMessage(e,s);return e});t.cleanUpWebpackOptions=((e,s)=>{e=t.cutOffWebpackOptions(e);e=t.cutOffMultilineMessage(e,s);return e})},122:function(e,t){"use strict";const s=t;s.formatSize=(e=>{if(typeof e!=="number"||Number.isNaN(e)===true){return"unknown size"}if(e<=0){return"0 bytes"}const t=["bytes","KiB","MiB","GiB"];const s=Math.floor(Math.log(e)/Math.log(1024));return`${+(e/Math.pow(1024,s)).toPrecision(3)} ${t[s]}`})},134:function(e){e.exports=require("schema-utils")},140:function(e,t,s){"use strict";const n=s(622);const r=/\\/g;const o=/[-[\]{}()*+?.,\\^$|#\s]/g;const i=/[/\\]$/;const a=/^!|!$/g;const l=/\/index.js(!|\?|\(query\))/g;const u=/!=!/;const c=e=>{return e.replace(r,"/")};const d=e=>{const t=e.replace(o,"\\$&");return new RegExp(`(^|!)${t}`,"g")};class RequestShortener{constructor(e){e=c(e);if(i.test(e)){e=e.substr(0,e.length-1)}if(e){this.currentDirectoryRegExp=d(e)}const t=n.dirname(e);const s=i.test(t);const r=s?t.substr(0,t.length-1):t;if(r&&r!==e){this.parentDirectoryRegExp=d(`${r}/`)}if(__dirname.length>=2){const e=c(n.join(__dirname,".."));const t=this.currentDirectoryRegExp&&this.currentDirectoryRegExp.test(e);this.buildinsAsModule=t;this.buildinsRegExp=d(e)}this.cache=new Map}shorten(e){if(!e)return e;const t=this.cache.get(e);if(t!==undefined){return t}let s=c(e);if(this.buildinsAsModule&&this.buildinsRegExp){s=s.replace(this.buildinsRegExp,"!(webpack)")}if(this.currentDirectoryRegExp){s=s.replace(this.currentDirectoryRegExp,"!.")}if(this.parentDirectoryRegExp){s=s.replace(this.parentDirectoryRegExp,"!../")}if(!this.buildinsAsModule&&this.buildinsRegExp){s=s.replace(this.buildinsRegExp,"!(webpack)")}s=s.replace(l,"$1");s=s.replace(a,"");s=s.replace(u," = ");this.cache.set(e,s);return s}}e.exports=RequestShortener},155:function(e){e.exports={name:"webpack",version:"4.44.1",author:"Tobias Koppers @sokra",description:"Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",license:"MIT",dependencies:{"@webassemblyjs/ast":"1.9.0","@webassemblyjs/helper-module-context":"1.9.0","@webassemblyjs/wasm-edit":"1.9.0","@webassemblyjs/wasm-parser":"1.9.0",acorn:"^6.4.1",ajv:"^6.10.2","ajv-keywords":"^3.4.1","chrome-trace-event":"^1.0.2","enhanced-resolve":"^4.3.0","eslint-scope":"^4.0.3","json-parse-better-errors":"^1.0.2","loader-runner":"^2.4.0","loader-utils":"^1.2.3","memory-fs":"^0.4.1",micromatch:"^3.1.10",mkdirp:"^0.5.3","neo-async":"^2.6.1","node-libs-browser":"^2.2.1","schema-utils":"^1.0.0",tapable:"^1.1.3","terser-webpack-plugin":"^1.4.3",watchpack:"^1.7.4","webpack-sources":"^1.4.1"},peerDependenciesMeta:{"webpack-cli":{optional:true},"webpack-command":{optional:true}},devDependencies:{"@babel/core":"^7.7.2","@types/node":"^10.12.21","@types/tapable":"^1.0.1","@types/webpack-sources":"^0.1.4","@yarnpkg/lockfile":"^1.1.0","babel-loader":"^8.0.6",benchmark:"^2.1.1","bundle-loader":"~0.5.0","coffee-loader":"^0.9.0",coffeescript:"^2.3.2",coveralls:"^3.0.2","css-loader":"^2.1.0","es6-promise-polyfill":"^1.1.1",eslint:"^5.8.0","eslint-config-prettier":"^4.0.0","eslint-plugin-jest":"^22.2.2","eslint-plugin-jsdoc":"^15.3.2","eslint-plugin-node":"^8.0.0","eslint-plugin-prettier":"^3.0.0",express:"~4.16.4","file-loader":"^3.0.1",glob:"^7.1.3",husky:"^1.1.3","i18n-webpack-plugin":"^1.0.0",istanbul:"^0.4.5",jest:"^24.9.0","jest-junit":"^8.0.0","json-loader":"^0.5.7","json-schema-to-typescript":"^6.0.1",less:"^3.9.0","less-loader":"^4.0.3","lint-staged":"^8.0.4",lodash:"^4.17.4",prettier:"^1.14.3",pug:"^2.0.4","pug-loader":"^2.4.0","raw-loader":"^1.0.0",react:"^16.8.0","react-dom":"^16.8.0",rimraf:"^2.6.2","script-loader":"~0.7.0","simple-git":"^1.65.0","strip-ansi":"^5.2.0","style-loader":"^0.23.1",typescript:"^3.0.0-rc","url-loader":"^1.1.2","val-loader":"^1.0.2","vm-browserify":"~1.1.0","wast-loader":"^1.5.5","webpack-dev-middleware":"^3.5.1","webassembly-feature":"1.3.0","worker-loader":"^2.0.0",xxhashjs:"^0.2.1"},engines:{node:">=6.11.5"},repository:{type:"git",url:"https://github.com/webpack/webpack.git"},funding:{type:"opencollective",url:"https://opencollective.com/webpack"},homepage:"https://github.com/webpack/webpack",main:"lib/webpack.js",web:"lib/webpack.web.js",bin:"./bin/webpack.js",files:["lib/","bin/","buildin/","declarations/","hot/","web_modules/","schemas/","SECURITY.md"],scripts:{setup:"node ./setup/setup.js",test:"node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest","test:update-snapshots":"yarn jest -u","test:integration":'node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch "/test/*.test.js"',"test:basic":'node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch "/te{st/TestCasesNormal,st/StatsTestCases,st/ConfigTestCases}.test.js"',"test:unit":'node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch "/test/*.unittest.js"',"travis:integration":"yarn cover:integration --ci $JEST","travis:basic":"yarn cover:basic --ci $JEST","travis:lintunit":"yarn lint && yarn cover:unit --ci $JEST","travis:benchmark":"yarn benchmark --ci","appveyor:integration":"yarn cover:integration --ci %JEST%","appveyor:unit":"yarn cover:unit --ci %JEST%","appveyor:benchmark":"yarn benchmark --ci","build:examples":"cd examples && node buildAll.js",pretest:"yarn lint",prelint:"yarn setup",lint:"yarn code-lint && yarn jest-lint && yarn type-lint && yarn special-lint","code-lint":"eslint . --ext '.js' --cache","type-lint":"tsc --pretty","special-lint":"node tooling/inherit-types && node tooling/format-schemas && node tooling/compile-to-definitions","special-lint-fix":"node tooling/inherit-types --write --override && node tooling/format-schemas --write && node tooling/compile-to-definitions --write",fix:"yarn code-lint --fix && yarn special-lint-fix",pretty:'prettier --loglevel warn --write "*.{ts,js,json,yml,yaml}" "{setup,lib,bin,hot,buildin,benchmark,tooling,schemas}/**/*.{js,json}" "test/*.js" "test/helpers/*.js" "test/{configCases,watchCases,statsCases,hotCases}/**/webpack.config.js" "examples/**/webpack.config.js"',"jest-lint":'node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch "/test/*.lint.js" --no-verbose',benchmark:'node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch "/test/*.benchmark.js" --runInBand',cover:"yarn cover:all && yarn cover:report","cover:all":"node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --coverage","cover:basic":'node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch "/te{st/TestCasesNormal,st/StatsTestCases,st/ConfigTestCases}.test.js" --coverage',"cover:integration":'node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch "/test/*.test.js" --coverage',"cover:unit":'node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch "/test/*.unittest.js" --coverage',"cover:report":"istanbul report"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{"*.js|{lib,setup,bin,hot,buildin,tooling,schemas}/**/*.js|test/*.js|{test,examples}/**/webpack.config.js}":["eslint --cache"]},jest:{forceExit:true,setupFilesAfterEnv:["/test/setupTestFramework.js"],testMatch:["/test/*.test.js","/test/*.unittest.js"],watchPathIgnorePatterns:["/.git","/node_modules","/test/js","/test/browsertest/js","/test/fixtures/temp-cache-fixture","/test/fixtures/temp-","/benchmark","/examples/*/dist","/coverage","/.eslintcache"],modulePathIgnorePatterns:["/.git","/node_modules/webpack/node_modules","/test/js","/test/browsertest/js","/test/fixtures/temp-cache-fixture","/test/fixtures/temp-","/benchmark","/examples/*/dist","/coverage","/.eslintcache"],transformIgnorePatterns:[""],coverageDirectory:"/coverage",coveragePathIgnorePatterns:["\\.runtime\\.js$","/test","/schemas","/node_modules"],testEnvironment:"node",coverageReporters:["json"]}}},157:function(e,t,s){"use strict";const n=s(521);const r=s(533);class AsyncSeriesWaterfallHookCodeFactory extends r{content({onError:e,onResult:t,onDone:s}){return this.callTapsSeries({onError:(t,s,n,r)=>e(s)+r(true),onResult:(e,t,s)=>{let n="";n+=`if(${t} !== undefined) {\n`;n+=`${this._args[0]} = ${t};\n`;n+=`}\n`;n+=s();return n},onDone:()=>t(this._args[0])})}}const o=new AsyncSeriesWaterfallHookCodeFactory;class AsyncSeriesWaterfallHook extends n{constructor(e){super(e);if(e.length<1)throw new Error("Waterfall hooks must have at least one argument")}compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncSeriesWaterfallHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncSeriesWaterfallHook},174:function(e,t,s){"use strict";const n=s(773);class Entrypoint extends n{constructor(e){super(e);this.runtimeChunk=undefined}isInitial(){return true}setRuntimeChunk(e){this.runtimeChunk=e}getRuntimeChunk(){return this.runtimeChunk||this.chunks[0]}replaceChunk(e,t){if(this.runtimeChunk===e)this.runtimeChunk=t;return super.replaceChunk(e,t)}}e.exports=Entrypoint},207:function(e,t,s){"use strict";const n=s(446);class ChunkRenderError extends n{constructor(e,t,s){super();this.name="ChunkRenderError";this.error=s;this.message=s.message;this.details=s.stack;this.file=t;this.chunk=e;Error.captureStackTrace(this,this.constructor)}}e.exports=ChunkRenderError},216:function(e,t,s){"use strict";const{Tapable:n,SyncWaterfallHook:r,SyncHook:o}=s(75);e.exports=class ModuleTemplate extends n{constructor(e,t){super();this.runtimeTemplate=e;this.type=t;this.hooks={content:new r(["source","module","options","dependencyTemplates"]),module:new r(["source","module","options","dependencyTemplates"]),render:new r(["source","module","options","dependencyTemplates"]),package:new r(["source","module","options","dependencyTemplates"]),hash:new o(["hash"])}}render(e,t,s){try{const n=e.source(t,this.runtimeTemplate,this.type);const r=this.hooks.content.call(n,e,s,t);const o=this.hooks.module.call(r,e,s,t);const i=this.hooks.render.call(o,e,s,t);return this.hooks.package.call(i,e,s,t)}catch(t){t.message=`${e.identifier()}\n${t.message}`;throw t}}updateHash(e){e.update("1");this.hooks.hash.call(e)}}},225:function(e,t){"use strict";const s=Object.freeze({error:"error",warn:"warn",info:"info",log:"log",debug:"debug",trace:"trace",group:"group",groupCollapsed:"groupCollapsed",groupEnd:"groupEnd",profile:"profile",profileEnd:"profileEnd",time:"time",clear:"clear",status:"status"});t.LogType=s;const n=Symbol("webpack logger raw log method");const r=Symbol("webpack logger times");class WebpackLogger{constructor(e){this[n]=e}error(...e){this[n](s.error,e)}warn(...e){this[n](s.warn,e)}info(...e){this[n](s.info,e)}log(...e){this[n](s.log,e)}debug(...e){this[n](s.debug,e)}assert(e,...t){if(!e){this[n](s.error,t)}}trace(){this[n](s.trace,["Trace"])}clear(){this[n](s.clear)}status(...e){this[n](s.status,e)}group(...e){this[n](s.group,e)}groupCollapsed(...e){this[n](s.groupCollapsed,e)}groupEnd(...e){this[n](s.groupEnd,e)}profile(e){this[n](s.profile,[e])}profileEnd(e){this[n](s.profileEnd,[e])}time(e){this[r]=this[r]||new Map;this[r].set(e,process.hrtime())}timeLog(e){const t=this[r]&&this[r].get(e);if(!t){throw new Error(`No such label '${e}' for WebpackLogger.timeLog()`)}const o=process.hrtime(t);this[n](s.time,[e,...o])}timeEnd(e){const t=this[r]&&this[r].get(e);if(!t){throw new Error(`No such label '${e}' for WebpackLogger.timeEnd()`)}const o=process.hrtime(t);this[r].delete(e);this[n](s.time,[e,...o])}}t.Logger=WebpackLogger},230:function(e,t,s){"use strict";const n=s(521);const r=s(533);class AsyncParallelBailHookCodeFactory extends r{content({onError:e,onResult:t,onDone:s}){let n="";n+=`var _results = new Array(${this.options.taps.length});\n`;n+="var _checkDone = () => {\n";n+="for(var i = 0; i < _results.length; i++) {\n";n+="var item = _results[i];\n";n+="if(item === undefined) return false;\n";n+="if(item.result !== undefined) {\n";n+=t("item.result");n+="return true;\n";n+="}\n";n+="if(item.error) {\n";n+=e("item.error");n+="return true;\n";n+="}\n";n+="}\n";n+="return false;\n";n+="}\n";n+=this.callTapsParallel({onError:(e,t,s,n)=>{let r="";r+=`if(${e} < _results.length && ((_results.length = ${e+1}), (_results[${e}] = { error: ${t} }), _checkDone())) {\n`;r+=n(true);r+="} else {\n";r+=s();r+="}\n";return r},onResult:(e,t,s,n)=>{let r="";r+=`if(${e} < _results.length && (${t} !== undefined && (_results.length = ${e+1}), (_results[${e}] = { result: ${t} }), _checkDone())) {\n`;r+=n(true);r+="} else {\n";r+=s();r+="}\n";return r},onTap:(e,t,s,n)=>{let r="";if(e>0){r+=`if(${e} >= _results.length) {\n`;r+=s();r+="} else {\n"}r+=t();if(e>0)r+="}\n";return r},onDone:s});return n}}const o=new AsyncParallelBailHookCodeFactory;class AsyncParallelBailHook extends n{compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncParallelBailHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncParallelBailHook},240:function(e){e.exports=require("find-cache-dir")},241:function(e){e.exports=require("next/dist/compiled/source-map")},262:function(e){e.exports={name:"terser",description:"JavaScript parser, mangler/compressor and beautifier toolkit for ES6+",homepage:"https://terser.org",author:"Mihai Bazon (http://lisperator.net/)",license:"BSD-2-Clause",version:"5.1.0",engines:{node:">=6.0.0"},maintainers:["Fábio Santos "],repository:"https://github.com/terser/terser",main:"dist/bundle.min.js",type:"module",exports:{".":{import:"./main.js",require:"./dist/bundle.min.js"},"./package":{default:"./package.json"},"./package.json":{default:"./package.json"}},types:"tools/terser.d.ts",bin:{terser:"bin/terser"},files:["bin","dist","lib","tools","LICENSE","README.md","CHANGELOG.md","PATRONS.md","main.js"],dependencies:{commander:"^2.20.0","source-map":"~0.6.1","source-map-support":"~0.5.12"},devDependencies:{"@ls-lint/ls-lint":"^1.9.2",acorn:"^7.4.0",astring:"^1.4.1",eslint:"^7.0.0",eslump:"^2.0.0",esm:"^3.2.25",mocha:"^8.0.0","pre-commit":"^1.2.2",rimraf:"^3.0.0",rollup:"2.0.6",semver:"^7.1.3"},scripts:{test:"node test/compress.js && mocha test/mocha","test:compress":"node test/compress.js","test:mocha":"mocha test/mocha",lint:"eslint lib","lint-fix":"eslint --fix lib","ls-lint":"ls-lint",build:"rimraf dist/bundle* && rollup --config --silent",prepare:"npm run build",postversion:"echo 'Remember to update the changelog!'"},keywords:["uglify","terser","uglify-es","uglify-js","minify","minifier","javascript","ecmascript","es5","es6","es7","es8","es2015","es2016","es2017","async","await"],eslintConfig:{parserOptions:{sourceType:"module",ecmaVersion:"2020"},env:{node:true,browser:true,es2020:true},globals:{describe:false,it:false,require:false,global:false,process:false},rules:{"brace-style":["error","1tbs",{allowSingleLine:true}],quotes:["error","double","avoid-escape"],"no-debugger":"error","no-undef":"error","no-unused-vars":["error",{varsIgnorePattern:"^_$"}],"no-tabs":"error",semi:["error","always"],"no-extra-semi":"error","no-irregular-whitespace":"error","space-before-blocks":["error","always"]}},"pre-commit":["lint-fix","ls-lint","test"]}},335:function(e,t){const s=(e,t)=>{if(e.pushChunk(t)){t.addGroup(e)}};const n=(e,t)=>{if(e.addChild(t)){t.addParent(e)}};const r=(e,t)=>{if(t.addChunk(e)){e.addModule(t)}};const o=(e,t)=>{e.removeModule(t);t.removeChunk(e)};const i=(e,t)=>{if(t.addBlock(e)){e.chunkGroup=t}};t.connectChunkGroupAndChunk=s;t.connectChunkGroupParentAndChild=n;t.connectChunkAndModule=r;t.disconnectChunkAndModule=o;t.connectDependenciesBlockAndChunkGroup=i},343:function(e){e.exports=require("neo-async")},354:function(e,t,s){"use strict";const n=s(521);const r=s(533);class SyncLoopHookCodeFactory extends r{content({onError:e,onDone:t,rethrowIfPossible:s}){return this.callTapsLooping({onError:(t,s)=>e(s),onDone:t,rethrowIfPossible:s})}}const o=new SyncLoopHookCodeFactory;class SyncLoopHook extends n{tapAsync(){throw new Error("tapAsync is not supported on a SyncLoopHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncLoopHook")}compile(e){o.setup(this,e);return o.create(e)}}e.exports=SyncLoopHook},367:function(e){"use strict";const t=e=>{if(e===null)return"";if(typeof e==="string")return e;if(typeof e==="number")return`${e}`;if(typeof e==="object"){if("line"in e&&"column"in e){return`${e.line}:${e.column}`}else if("line"in e){return`${e.line}:?`}else if("index"in e){return`+${e.index}`}else{return""}}return""};const s=e=>{if(e===null)return"";if(typeof e==="string")return e;if(typeof e==="number")return`${e}`;if(typeof e==="object"){if("start"in e&&e.start&&"end"in e&&e.end){if(typeof e.start==="object"&&typeof e.start.line==="number"&&typeof e.end==="object"&&typeof e.end.line==="number"&&typeof e.end.column==="number"&&e.start.line===e.end.line){return`${t(e.start)}-${e.end.column}`}else{return`${t(e.start)}-${t(e.end)}`}}if("start"in e&&e.start){return t(e.start)}if("name"in e&&"index"in e){return`${e.name}[${e.index}]`}if("name"in e){return e.name}return t(e)}return""};e.exports=s},393:function(e){"use strict";class Semaphore{constructor(e){this.available=e;this.waiters=[];this._continue=this._continue.bind(this)}acquire(e){if(this.available>0){this.available--;e()}else{this.waiters.push(e)}}release(){this.available++;if(this.waiters.length>0){process.nextTick(this._continue)}}_continue(){if(this.available>0){if(this.waiters.length>0){this.available--;const e=this.waiters.pop();e()}}}}e.exports=Semaphore},408:function(e,t,s){"use strict";const n=s(966);const r=s(591);const{Tapable:o,SyncWaterfallHook:i,SyncHook:a}=s(75);e.exports=class HotUpdateChunkTemplate extends o{constructor(e){super();this.outputOptions=e||{};this.hooks={modules:new i(["source","modules","removedModules","moduleTemplate","dependencyTemplates"]),render:new i(["source","modules","removedModules","hash","id","moduleTemplate","dependencyTemplates"]),hash:new a(["hash"])}}render(e,t,s,o,i,a){const l=new r;l.id=e;l.setModules(t);l.removedModules=s;const u=n.renderChunkModules(l,e=>typeof e.source==="function",i,a);const c=this.hooks.modules.call(u,t,s,i,a);const d=this.hooks.render.call(c,t,s,o,e,i,a);return d}updateHash(e){e.update("HotUpdateChunkTemplate");e.update("1");this.hooks.hash.call(e)}}},417:function(e){e.exports=require("crypto")},432:function(e){e.exports=require("webpack/lib/RequestShortener")},442:function(e,t,s){"use strict";const n=s(521);const r=s(533);class SyncHookCodeFactory extends r{content({onError:e,onDone:t,rethrowIfPossible:s}){return this.callTapsSeries({onError:(t,s)=>e(s),onDone:t,rethrowIfPossible:s})}}const o=new SyncHookCodeFactory;class SyncHook extends n{tapAsync(){throw new Error("tapAsync is not supported on a SyncHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncHook")}compile(e){o.setup(this,e);return o.create(e)}}e.exports=SyncHook},446:function(e,t,s){"use strict";const n=s(669).inspect.custom;class WebpackError extends Error{constructor(e){super(e);this.details=undefined;this.missing=undefined;this.origin=undefined;this.dependencies=undefined;this.module=undefined;Error.captureStackTrace(this,this.constructor)}[n](){return this.stack+(this.details?`\n${this.details}`:"")}}e.exports=WebpackError},463:function(e){"use strict";e.exports=((e,t)=>{if(typeof e==="string"){if(typeof t==="string"){if(et)return 1;return 0}else if(typeof t==="object"){return 1}else{return 0}}else if(typeof e==="object"){if(typeof t==="string"){return-1}else if(typeof t==="object"){if("start"in e&&"start"in t){const s=e.start;const n=t.start;if(s.linen.line)return 1;if(s.columnn.column)return 1}if("name"in e&&"name"in t){if(e.namet.name)return 1}if("index"in e&&"index"in t){if(e.indext.index)return 1}return 0}else{return 0}}})},464:function(e,t,s){"use strict";const n=s(521);class MultiHook{constructor(e){this.hooks=e}tap(e,t){for(const s of this.hooks){s.tap(e,t)}}tapAsync(e,t){for(const s of this.hooks){s.tapAsync(e,t)}}tapPromise(e,t){for(const s of this.hooks){s.tapPromise(e,t)}}isUsed(){for(const e of this.hooks){if(e.isUsed())return true}return false}intercept(e){for(const t of this.hooks){t.intercept(e)}}withOptions(e){return new MultiHook(this.hooks.map(t=>t.withOptions(e)))}}e.exports=MultiHook},470:function(e,t,s){"use strict";const n=s(589);e.exports=n.default},475:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;class Cache{constructor(e,t){this.cache=e.getCache("TerserWebpackPlugin")}isEnabled(){return true}async get(e){e.cacheIdent=e.cacheIdent||`${e.name}`;e.cacheETag=e.cacheETag||this.cache.getLazyHashedEtag(e.assetSource);return this.cache.getPromise(e.cacheIdent,e.cacheETag)}async store(e,t){return this.cache.storePromise(e.cacheIdent,e.cacheETag,t)}}t.default=Cache},486:function(e,t,s){"use strict";const n=s(847);const r=1e3;class Hash{update(e,t){throw new n}digest(e){throw new n}}t.Hash=Hash;class BulkUpdateDecorator extends Hash{constructor(e){super();this.hash=e;this.buffer=""}update(e,t){if(t!==undefined||typeof e!=="string"||e.length>r){if(this.buffer.length>0){this.hash.update(this.buffer);this.buffer=""}this.hash.update(e,t)}else{this.buffer+=e;if(this.buffer.length>r){this.hash.update(this.buffer);this.buffer=""}}return this}digest(e){if(this.buffer.length>0){this.hash.update(this.buffer)}var t=this.hash.digest(e);return typeof t==="string"?t:t.toString()}}class DebugHash extends Hash{constructor(){super();this.string=""}update(e,t){if(typeof e!=="string")e=e.toString("utf-8");this.string+=e;return this}digest(e){return this.string.replace(/[^a-z0-9]+/gi,e=>Buffer.from(e).toString("hex"))}}e.exports=(e=>{if(typeof e==="function"){return new BulkUpdateDecorator(new e)}switch(e){case"debug":return new DebugHash;default:return new BulkUpdateDecorator(s(417).createHash(e))}})},496:function(e){"use strict";class DependencyReference{constructor(e,t,s=false,n=NaN){this.module=e;this.importedNames=t;this.weak=!!s;this.order=n}static sort(e){const t=new WeakMap;let s=0;for(const n of e){t.set(n,s++)}return e.sort((e,s)=>{const n=e.order;const r=s.order;if(isNaN(n)){if(!isNaN(r)){return 1}}else{if(isNaN(r)){return-1}if(n!==r){return n-r}}const o=t.get(e);const i=t.get(s);return o-i})}}e.exports=DependencyReference},499:function(e){"use strict";class HookMap{constructor(e){this._map=new Map;this._factory=e;this._interceptors=[]}get(e){return this._map.get(e)}for(e){const t=this.get(e);if(t!==undefined){return t}let s=this._factory(e);const n=this._interceptors;for(let t=0;tt},e))}tap(e,t,s){return this.for(e).tap(t,s)}tapAsync(e,t,s){return this.for(e).tapAsync(t,s)}tapPromise(e,t,s){return this.for(e).tapPromise(t,s)}}e.exports=HookMap},503:function(e,t,s){"use strict";const{ConcatSource:n,OriginalSource:r,PrefixSource:o,RawSource:i}=s(745);const{Tapable:a,SyncWaterfallHook:l,SyncHook:u,SyncBailHook:c}=s(75);const d=s(966);e.exports=class MainTemplate extends a{constructor(e){super();this.outputOptions=e||{};this.hooks={renderManifest:new l(["result","options"]),modules:new l(["modules","chunk","hash","moduleTemplate","dependencyTemplates"]),moduleObj:new l(["source","chunk","hash","moduleIdExpression"]),requireEnsure:new l(["source","chunk","hash","chunkIdExpression"]),bootstrap:new l(["source","chunk","hash","moduleTemplate","dependencyTemplates"]),localVars:new l(["source","chunk","hash"]),require:new l(["source","chunk","hash"]),requireExtensions:new l(["source","chunk","hash"]),beforeStartup:new l(["source","chunk","hash"]),startup:new l(["source","chunk","hash"]),afterStartup:new l(["source","chunk","hash"]),render:new l(["source","chunk","hash","moduleTemplate","dependencyTemplates"]),renderWithEntry:new l(["source","chunk","hash"]),moduleRequire:new l(["source","chunk","hash","moduleIdExpression"]),addModule:new l(["source","chunk","hash","moduleIdExpression","moduleExpression"]),currentHash:new l(["source","requestedLength"]),assetPath:new l(["path","options","assetInfo"]),hash:new u(["hash"]),hashForChunk:new u(["hash","chunk"]),globalHashPaths:new l(["paths"]),globalHash:new c(["chunk","paths"]),hotBootstrap:new l(["source","chunk","hash"])};this.hooks.startup.tap("MainTemplate",(e,t,s)=>{const n=[];if(t.entryModule){n.push("// Load entry module and return exports");n.push(`return ${this.renderRequireFunctionForModule(s,t,JSON.stringify(t.entryModule.id))}(${this.requireFn}.s = ${JSON.stringify(t.entryModule.id)});`)}return d.asString(n)});this.hooks.render.tap("MainTemplate",(e,t,s,r,a)=>{const l=new n;l.add("/******/ (function(modules) { // webpackBootstrap\n");l.add(new o("/******/",e));l.add("/******/ })\n");l.add("/************************************************************************/\n");l.add("/******/ (");l.add(this.hooks.modules.call(new i(""),t,s,r,a));l.add(")");return l});this.hooks.localVars.tap("MainTemplate",(e,t,s)=>{return d.asString([e,"// The module cache","var installedModules = {};"])});this.hooks.require.tap("MainTemplate",(t,s,n)=>{return d.asString([t,"// Check if module is in cache","if(installedModules[moduleId]) {",d.indent("return installedModules[moduleId].exports;"),"}","// Create a new module (and put it into the cache)","var module = installedModules[moduleId] = {",d.indent(this.hooks.moduleObj.call("",s,n,"moduleId")),"};","",d.asString(e.strictModuleExceptionHandling?["// Execute the module function","var threw = true;","try {",d.indent([`modules[moduleId].call(module.exports, module, module.exports, ${this.renderRequireFunctionForModule(n,s,"moduleId")});`,"threw = false;"]),"} finally {",d.indent(["if(threw) delete installedModules[moduleId];"]),"}"]:["// Execute the module function",`modules[moduleId].call(module.exports, module, module.exports, ${this.renderRequireFunctionForModule(n,s,"moduleId")});`]),"","// Flag the module as loaded","module.l = true;","","// Return the exports of the module","return module.exports;"])});this.hooks.moduleObj.tap("MainTemplate",(e,t,s,n)=>{return d.asString(["i: moduleId,","l: false,","exports: {}"])});this.hooks.requireExtensions.tap("MainTemplate",(e,t,s)=>{const n=[];const r=t.getChunkMaps();if(Object.keys(r.hash).length){n.push("// This file contains only the entry chunk.");n.push("// The chunk loading function for additional chunks");n.push(`${this.requireFn}.e = function requireEnsure(chunkId) {`);n.push(d.indent("var promises = [];"));n.push(d.indent(this.hooks.requireEnsure.call("",t,s,"chunkId")));n.push(d.indent("return Promise.all(promises);"));n.push("};")}else if(t.hasModuleInGraph(e=>e.blocks.some(e=>e.chunkGroup&&e.chunkGroup.chunks.length>0))){n.push("// The chunk loading function for additional chunks");n.push("// Since all referenced chunks are already included");n.push("// in this file, this function is empty here.");n.push(`${this.requireFn}.e = function requireEnsure() {`);n.push(d.indent("return Promise.resolve();"));n.push("};")}n.push("");n.push("// expose the modules object (__webpack_modules__)");n.push(`${this.requireFn}.m = modules;`);n.push("");n.push("// expose the module cache");n.push(`${this.requireFn}.c = installedModules;`);n.push("");n.push("// define getter function for harmony exports");n.push(`${this.requireFn}.d = function(exports, name, getter) {`);n.push(d.indent([`if(!${this.requireFn}.o(exports, name)) {`,d.indent(["Object.defineProperty(exports, name, { enumerable: true, get: getter });"]),"}"]));n.push("};");n.push("");n.push("// define __esModule on exports");n.push(`${this.requireFn}.r = function(exports) {`);n.push(d.indent(["if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {",d.indent(["Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });"]),"}","Object.defineProperty(exports, '__esModule', { value: true });"]));n.push("};");n.push("");n.push("// create a fake namespace object");n.push("// mode & 1: value is a module id, require it");n.push("// mode & 2: merge all properties of value into the ns");n.push("// mode & 4: return value when already ns object");n.push("// mode & 8|1: behave like require");n.push(`${this.requireFn}.t = function(value, mode) {`);n.push(d.indent([`if(mode & 1) value = ${this.requireFn}(value);`,`if(mode & 8) return value;`,"if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;","var ns = Object.create(null);",`${this.requireFn}.r(ns);`,"Object.defineProperty(ns, 'default', { enumerable: true, value: value });","if(mode & 2 && typeof value != 'string') for(var key in value) "+`${this.requireFn}.d(ns, key, function(key) { `+"return value[key]; "+"}.bind(null, key));","return ns;"]));n.push("};");n.push("");n.push("// getDefaultExport function for compatibility with non-harmony modules");n.push(this.requireFn+".n = function(module) {");n.push(d.indent(["var getter = module && module.__esModule ?",d.indent(["function getDefault() { return module['default']; } :","function getModuleExports() { return module; };"]),`${this.requireFn}.d(getter, 'a', getter);`,"return getter;"]));n.push("};");n.push("");n.push("// Object.prototype.hasOwnProperty.call");n.push(`${this.requireFn}.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };`);const o=this.getPublicPath({hash:s});n.push("");n.push("// __webpack_public_path__");n.push(`${this.requireFn}.p = ${JSON.stringify(o)};`);return d.asString(n)});this.requireFn="__webpack_require__"}getRenderManifest(e){const t=[];this.hooks.renderManifest.call(t,e);return t}renderBootstrap(e,t,s,n){const r=[];r.push(this.hooks.bootstrap.call("",t,e,s,n));r.push(this.hooks.localVars.call("",t,e));r.push("");r.push("// The require function");r.push(`function ${this.requireFn}(moduleId) {`);r.push(d.indent(this.hooks.require.call("",t,e)));r.push("}");r.push("");r.push(d.asString(this.hooks.requireExtensions.call("",t,e)));r.push("");r.push(d.asString(this.hooks.beforeStartup.call("",t,e)));const o=d.asString(this.hooks.afterStartup.call("",t,e));if(o){r.push("var startupResult = (function() {")}r.push(d.asString(this.hooks.startup.call("",t,e)));if(o){r.push("})();");r.push(o);r.push("return startupResult;")}return r}render(e,t,s,o){const i=this.renderBootstrap(e,t,s,o);let a=this.hooks.render.call(new r(d.prefix(i," \t")+"\n","webpack/bootstrap"),t,e,s,o);if(t.hasEntryModule()){a=this.hooks.renderWithEntry.call(a,t,e)}if(!a){throw new Error("Compiler error: MainTemplate plugin 'render' should return something")}t.rendered=true;return new n(a,";")}renderRequireFunctionForModule(e,t,s){return this.hooks.moduleRequire.call(this.requireFn,t,e,s)}renderAddModule(e,t,s,n){return this.hooks.addModule.call(`modules[${s}] = ${n};`,t,e,s,n)}renderCurrentHashCode(e,t){t=t||Infinity;return this.hooks.currentHash.call(JSON.stringify(e.substr(0,t)),t)}getPublicPath(e){return this.hooks.assetPath.call(this.outputOptions.publicPath||"",e)}getAssetPath(e,t){return this.hooks.assetPath.call(e,t)}getAssetPathWithInfo(e,t){const s={};const n=this.hooks.assetPath.call(e,t,s);return{path:n,info:s}}updateHash(e){e.update("maintemplate");e.update("3");this.hooks.hash.call(e)}updateHashForChunk(e,t,s,n){this.updateHash(e);this.hooks.hashForChunk.call(e,t);for(const r of this.renderBootstrap("0000",t,s,n)){e.update(r)}}useChunkHash(e){const t=this.hooks.globalHashPaths.call([]);return!this.hooks.globalHash.call(e,t)}}},510:function(e,t,s){"use strict";const n=s(43);const r=s(335);const o=(e,t)=>{return t.size-e.size};const i=e=>{const t=new Map;const s=t=>{const s=e.getDependencyReference(r,t);if(!s){return}const n=s.module;if(!n){return}if(s.weak){return}a.add(n)};const n=e=>{l.push(e);i.push(e)};let r;let o;let i;let a;let l;for(const u of e.modules){i=[u];r=u;while(i.length>0){o=i.pop();a=new Set;l=[];if(o.variables){for(const e of o.variables){for(const t of e.dependencies)s(t)}}if(o.dependencies){for(const e of o.dependencies)s(e)}if(o.blocks){for(const e of o.blocks)n(e)}const e={modules:a,blocks:l};t.set(o,e)}}return t};const a=(e,t,s,r,a,l)=>{const u=e.getLogger("webpack.buildChunkGraph.visitModules");const{namedChunkGroups:c}=e;u.time("prepare");const d=i(e);const h=new Map;for(const e of t){h.set(e,{index:0,index2:0})}let f=0;let p=0;const m=new Map;const g=0;const y=1;const k=2;const b=3;const w=(e,t)=>{for(const s of t.chunks){const n=s.entryModule;e.push({action:y,block:n,module:n,chunk:s,chunkGroup:t})}s.set(t,{chunkGroup:t,minAvailableModules:new Set,minAvailableModulesOwned:true,availableModulesToBeMerged:[],skippedItems:[],resultingAvailableModules:undefined,children:undefined});return e};let _=t.reduce(w,[]).reverse();const v=new Map;const x=new Set;let $=[];u.timeEnd("prepare");let E;let M;let O;let A;let S;let C;const j=t=>{let s=m.get(t);if(s===undefined){s=c.get(t.chunkName);if(s&&s.isInitial()){e.errors.push(new n(t.chunkName,E,t.loc));s=O}else{s=e.addChunkInGroup(t.groupOptions||t.chunkName,E,t.loc,t.request);h.set(s,{index:0,index2:0});m.set(t,s);l.add(s)}}else{if(s.addOptions)s.addOptions(t.groupOptions);s.addOrigin(E,t.loc,t.request)}let o=r.get(O);if(!o)r.set(O,o=[]);o.push({block:t,chunkGroup:s});let i=v.get(O);if(i===undefined){i=new Set;v.set(O,i)}i.add(s);$.push({action:k,block:t,module:E,chunk:s.chunks[0],chunkGroup:s})};while(_.length){u.time("visiting");while(_.length){const e=_.pop();E=e.module;A=e.block;M=e.chunk;if(O!==e.chunkGroup){O=e.chunkGroup;const t=s.get(O);S=t.minAvailableModules;C=t.skippedItems}switch(e.action){case g:{if(S.has(E)){C.push(e);break}if(M.addModule(E)){E.addChunk(M)}else{break}}case y:{if(O!==undefined){const e=O.getModuleIndex(E);if(e===undefined){O.setModuleIndex(E,h.get(O).index++)}}if(E.index===null){E.index=f++}_.push({action:b,block:A,module:E,chunk:M,chunkGroup:O})}case k:{const e=d.get(A);const t=[];const s=[];for(const n of e.modules){if(M.containsModule(n)){continue}if(S.has(n)){t.push({action:g,block:n,module:n,chunk:M,chunkGroup:O});continue}s.push({action:g,block:n,module:n,chunk:M,chunkGroup:O})}for(let e=t.length-1;e>=0;e--){C.push(t[e])}for(let e=s.length-1;e>=0;e--){_.push(s[e])}for(const t of e.blocks)j(t);if(e.blocks.length>0&&E!==A){a.add(A)}break}case b:{if(O!==undefined){const e=O.getModuleIndex2(E);if(e===undefined){O.setModuleIndex2(E,h.get(O).index2++)}}if(E.index2===null){E.index2=p++}break}}}u.timeEnd("visiting");while(v.size>0){u.time("calculating available modules");for(const[e,t]of v){const n=s.get(e);let r=n.minAvailableModules;const o=new Set(r);for(const t of e.chunks){for(const e of t.modulesIterable){o.add(e)}}n.resultingAvailableModules=o;if(n.children===undefined){n.children=t}else{for(const e of t){n.children.add(e)}}for(const e of t){let t=s.get(e);if(t===undefined){t={chunkGroup:e,minAvailableModules:undefined,minAvailableModulesOwned:undefined,availableModulesToBeMerged:[],skippedItems:[],resultingAvailableModules:undefined,children:undefined};s.set(e,t)}t.availableModulesToBeMerged.push(o);x.add(t)}}v.clear();u.timeEnd("calculating available modules");if(x.size>0){u.time("merging available modules");for(const e of x){const t=e.availableModulesToBeMerged;let s=e.minAvailableModules;if(t.length>1){t.sort(o)}let n=false;for(const r of t){if(s===undefined){s=r;e.minAvailableModules=s;e.minAvailableModulesOwned=false;n=true}else{if(e.minAvailableModulesOwned){for(const e of s){if(!r.has(e)){s.delete(e);n=true}}}else{for(const t of s){if(!r.has(t)){const o=new Set;const i=s[Symbol.iterator]();let a;while(!(a=i.next()).done){const e=a.value;if(e===t)break;o.add(e)}while(!(a=i.next()).done){const e=a.value;if(r.has(e)){o.add(e)}}s=o;e.minAvailableModulesOwned=true;e.minAvailableModules=o;if(O===e.chunkGroup){S=s}n=true;break}}}}}t.length=0;if(!n)continue;for(const t of e.skippedItems){_.push(t)}e.skippedItems.length=0;if(e.children!==undefined){const t=e.chunkGroup;for(const s of e.children){let e=v.get(t);if(e===undefined){e=new Set;v.set(t,e)}e.add(s)}}}x.clear();u.timeEnd("merging available modules")}}if(_.length===0){const e=_;_=$.reverse();$=e}}};const l=(e,t,s)=>{let n;const o=(e,t)=>{for(const s of e.chunks){for(const e of s.modulesIterable){if(!t.has(e))return false}}return true};const i=t=>{const s=t.chunkGroup;if(e.has(t.block))return true;if(o(s,n)){return false}return true};for(const[e,o]of t){if(o.length===0)continue;const t=s.get(e);n=t.resultingAvailableModules;for(let t=0;t{for(const s of t){if(s.getNumberOfParents()===0){for(const t of s.chunks){const s=e.chunks.indexOf(t);if(s>=0)e.chunks.splice(s,1);t.remove("unconnected")}s.remove("unconnected")}}};const c=(e,t)=>{const s=new Map;const n=new Set;const r=new Map;const o=new Set;a(e,t,r,s,o,n);l(o,s,r);u(e,n)};e.exports=c},521:function(e){"use strict";class Hook{constructor(e){if(!Array.isArray(e))e=[];this._args=e;this.taps=[];this.interceptors=[];this.call=this._call;this.promise=this._promise;this.callAsync=this._callAsync;this._x=undefined}compile(e){throw new Error("Abstract: should be overriden")}_createCall(e){return this.compile({taps:this.taps,interceptors:this.interceptors,args:this._args,type:e})}tap(e,t){if(typeof e==="string")e={name:e};if(typeof e!=="object"||e===null)throw new Error("Invalid arguments to tap(options: Object, fn: function)");e=Object.assign({type:"sync",fn:t},e);if(typeof e.name!=="string"||e.name==="")throw new Error("Missing name for tap");e=this._runRegisterInterceptors(e);this._insert(e)}tapAsync(e,t){if(typeof e==="string")e={name:e};if(typeof e!=="object"||e===null)throw new Error("Invalid arguments to tapAsync(options: Object, fn: function)");e=Object.assign({type:"async",fn:t},e);if(typeof e.name!=="string"||e.name==="")throw new Error("Missing name for tapAsync");e=this._runRegisterInterceptors(e);this._insert(e)}tapPromise(e,t){if(typeof e==="string")e={name:e};if(typeof e!=="object"||e===null)throw new Error("Invalid arguments to tapPromise(options: Object, fn: function)");e=Object.assign({type:"promise",fn:t},e);if(typeof e.name!=="string"||e.name==="")throw new Error("Missing name for tapPromise");e=this._runRegisterInterceptors(e);this._insert(e)}_runRegisterInterceptors(e){for(const t of this.interceptors){if(t.register){const s=t.register(e);if(s!==undefined)e=s}}return e}withOptions(e){const t=t=>Object.assign({},e,typeof t==="string"?{name:t}:t);e=Object.assign({},e,this._withOptions);const s=this._withOptionsBase||this;const n=Object.create(s);n.tapAsync=((e,n)=>s.tapAsync(t(e),n)),n.tap=((e,n)=>s.tap(t(e),n));n.tapPromise=((e,n)=>s.tapPromise(t(e),n));n._withOptions=e;n._withOptionsBase=s;return n}isUsed(){return this.taps.length>0||this.interceptors.length>0}intercept(e){this._resetCompilation();this.interceptors.push(Object.assign({},e));if(e.register){for(let t=0;t0){n--;const e=this.taps[n];this.taps[n+1]=e;const r=e.stage||0;if(t){if(t.has(e.name)){t.delete(e.name);continue}if(t.size>0){continue}}if(r>s){continue}n++;break}this.taps[n]=e}}function createCompileDelegate(e,t){return function lazyCompileHook(...s){this[e]=this._createCall(t);return this[e](...s)}}Object.defineProperties(Hook.prototype,{_call:{value:createCompileDelegate("call","sync"),configurable:true,writable:true},_promise:{value:createCompileDelegate("promise","promise"),configurable:true,writable:true},_callAsync:{value:createCompileDelegate("callAsync","async"),configurable:true,writable:true}});e.exports=Hook},533:function(e){"use strict";class HookCodeFactory{constructor(e){this.config=e;this.options=undefined;this._args=undefined}create(e){this.init(e);let t;switch(this.options.type){case"sync":t=new Function(this.args(),'"use strict";\n'+this.header()+this.content({onError:e=>`throw ${e};\n`,onResult:e=>`return ${e};\n`,resultReturns:true,onDone:()=>"",rethrowIfPossible:true}));break;case"async":t=new Function(this.args({after:"_callback"}),'"use strict";\n'+this.header()+this.content({onError:e=>`_callback(${e});\n`,onResult:e=>`_callback(null, ${e});\n`,onDone:()=>"_callback();\n"}));break;case"promise":let e=false;const s=this.content({onError:t=>{e=true;return`_error(${t});\n`},onResult:e=>`_resolve(${e});\n`,onDone:()=>"_resolve();\n"});let n="";n+='"use strict";\n';n+="return new Promise((_resolve, _reject) => {\n";if(e){n+="var _sync = true;\n";n+="function _error(_err) {\n";n+="if(_sync)\n";n+="_resolve(Promise.resolve().then(() => { throw _err; }));\n";n+="else\n";n+="_reject(_err);\n";n+="};\n"}n+=this.header();n+=s;if(e){n+="_sync = false;\n"}n+="});\n";t=new Function(this.args(),n);break}this.deinit();return t}setup(e,t){e._x=t.taps.map(e=>e.fn)}init(e){this.options=e;this._args=e.args.slice()}deinit(){this.options=undefined;this._args=undefined}header(){let e="";if(this.needContext()){e+="var _context = {};\n"}else{e+="var _context;\n"}e+="var _x = this._x;\n";if(this.options.interceptors.length>0){e+="var _taps = this.taps;\n";e+="var _interceptors = this.interceptors;\n"}for(let t=0;t {\n`;else i+=`_err${e} => {\n`;i+=`if(_err${e}) {\n`;i+=t(`_err${e}`);i+="} else {\n";if(s){i+=s(`_result${e}`)}if(n){i+=n()}i+="}\n";i+="}";o+=`_fn${e}(${this.args({before:a.context?"_context":undefined,after:i})});\n`;break;case"promise":o+=`var _hasResult${e} = false;\n`;o+=`var _promise${e} = _fn${e}(${this.args({before:a.context?"_context":undefined})});\n`;o+=`if (!_promise${e} || !_promise${e}.then)\n`;o+=` throw new Error('Tap function (tapPromise) did not return promise (returned ' + _promise${e} + ')');\n`;o+=`_promise${e}.then(_result${e} => {\n`;o+=`_hasResult${e} = true;\n`;if(s){o+=s(`_result${e}`)}if(n){o+=n()}o+=`}, _err${e} => {\n`;o+=`if(_hasResult${e}) throw _err${e};\n`;o+=t(`_err${e}`);o+="});\n";break}return o}callTapsSeries({onError:e,onResult:t,resultReturns:s,onDone:n,doneReturns:r,rethrowIfPossible:o}){if(this.options.taps.length===0)return n();const i=this.options.taps.findIndex(e=>e.type!=="sync");const a=s||r||false;let l="";let u=n;for(let s=this.options.taps.length-1;s>=0;s--){const r=s;const c=u!==n&&this.options.taps[r].type!=="sync";if(c){l+=`function _next${r}() {\n`;l+=u();l+=`}\n`;u=(()=>`${a?"return ":""}_next${r}();\n`)}const d=u;const h=e=>{if(e)return"";return n()};const f=this.callTap(r,{onError:t=>e(r,t,d,h),onResult:t&&(e=>{return t(r,e,d,h)}),onDone:!t&&d,rethrowIfPossible:o&&(i<0||rf)}l+=u();return l}callTapsLooping({onError:e,onDone:t,rethrowIfPossible:s}){if(this.options.taps.length===0)return t();const n=this.options.taps.every(e=>e.type==="sync");let r="";if(!n){r+="var _looper = () => {\n";r+="var _loopAsync = false;\n"}r+="var _loop;\n";r+="do {\n";r+="_loop = false;\n";for(let e=0;e{let o="";o+=`if(${t} !== undefined) {\n`;o+="_loop = true;\n";if(!n)o+="if(_loopAsync) _looper();\n";o+=r(true);o+=`} else {\n`;o+=s();o+=`}\n`;return o},onDone:t&&(()=>{let e="";e+="if(!_loop) {\n";e+=t();e+="}\n";return e}),rethrowIfPossible:s&&n});r+="} while(_loop);\n";if(!n){r+="_loopAsync = true;\n";r+="};\n";r+="_looper();\n"}return r}callTapsParallel({onError:e,onResult:t,onDone:s,rethrowIfPossible:n,onTap:r=((e,t)=>t())}){if(this.options.taps.length<=1){return this.callTapsSeries({onError:e,onResult:t,onDone:s,rethrowIfPossible:n})}let o="";o+="do {\n";o+=`var _counter = ${this.options.taps.length};\n`;if(s){o+="var _done = () => {\n";o+=s();o+="};\n"}for(let i=0;i{if(s)return"if(--_counter === 0) _done();\n";else return"--_counter;"};const l=e=>{if(e||!s)return"_counter = 0;\n";else return"_counter = 0;\n_done();\n"};o+="if(_counter <= 0) break;\n";o+=r(i,()=>this.callTap(i,{onError:t=>{let s="";s+="if(_counter > 0) {\n";s+=e(i,t,a,l);s+="}\n";return s},onResult:t&&(e=>{let s="";s+="if(_counter > 0) {\n";s+=t(i,e,a,l);s+="}\n";return s}),onDone:!t&&(()=>{return a()}),rethrowIfPossible:n}),a,l)}o+="} while(false);\n";return o}args({before:e,after:t}={}){let s=this._args;if(e)s=[e].concat(s);if(t)s=s.concat(t);if(s.length===0){return""}else{return s.join(", ")}}getTapFn(e){return`_x[${e}]`}getTap(e){return`_taps[${e}]`}getInterceptor(e){return`_interceptors[${e}]`}}e.exports=HookCodeFactory},542:function(e){"use strict";class SortableSet extends Set{constructor(e,t){super(e);this._sortFn=t;this._lastActiveSortFn=null;this._cache=undefined;this._cacheOrderIndependent=undefined}add(e){this._lastActiveSortFn=null;this._invalidateCache();this._invalidateOrderedCache();super.add(e);return this}delete(e){this._invalidateCache();this._invalidateOrderedCache();return super.delete(e)}clear(){this._invalidateCache();this._invalidateOrderedCache();return super.clear()}sortWith(e){if(this.size<=1||e===this._lastActiveSortFn){return}const t=Array.from(this).sort(e);super.clear();for(let e=0;ee(s),onResult:(e,s,n)=>`if(${s} !== undefined) {\n${t(s)};\n} else {\n${n()}}\n`,resultReturns:s,onDone:n,rethrowIfPossible:r})}}const o=new SyncBailHookCodeFactory;class SyncBailHook extends n{tapAsync(){throw new Error("tapAsync is not supported on a SyncBailHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncBailHook")}compile(e){o.setup(this,e);return o.create(e)}}e.exports=SyncBailHook},566:function(e,t,s){"use strict";const n=s(521);const r=s(533);class AsyncSeriesBailHookCodeFactory extends r{content({onError:e,onResult:t,resultReturns:s,onDone:n}){return this.callTapsSeries({onError:(t,s,n,r)=>e(s)+r(true),onResult:(e,s,n)=>`if(${s} !== undefined) {\n${t(s)};\n} else {\n${n()}}\n`,resultReturns:s,onDone:n})}}const o=new AsyncSeriesBailHookCodeFactory;class AsyncSeriesBailHook extends n{compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncSeriesBailHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncSeriesBailHook},589:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(s(622));var r=_interopRequireDefault(s(87));var o=s(241);var i=s(745);var a=_interopRequireDefault(s(432));var l=s(78);var u=_interopRequireDefault(s(134));var c=_interopRequireDefault(s(960));var d=_interopRequireDefault(s(262));var h=_interopRequireDefault(s(694));var f=_interopRequireDefault(s(733));var p=_interopRequireDefault(s(641));var m=s(812);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class TerserPlugin{constructor(e={}){(0,u.default)(p.default,e,{name:"Terser Plugin",baseDataPath:"options"});const{minify:t,terserOptions:s={},test:n=/\.m?js(\?.*)?$/i,extractComments:r=true,sourceMap:o,cache:i=true,cacheKeys:a=(e=>e),parallel:l=true,include:c,exclude:d}=e;this.options={test:n,extractComments:r,sourceMap:o,cache:i,cacheKeys:a,parallel:l,include:c,exclude:d,minify:t,terserOptions:s}}static isSourceMap(e){return Boolean(e&&e.version&&e.sources&&Array.isArray(e.sources)&&typeof e.mappings==="string")}static buildError(e,t,s,n){if(e.line){const r=s&&s.originalPositionFor({line:e.line,column:e.col});if(r&&r.source&&n){return new Error(`${t} from Terser\n${e.message} [${n.shorten(r.source)}:${r.line},${r.column}][${t}:${e.line},${e.col}]${e.stack?`\n${e.stack.split("\n").slice(1).join("\n")}`:""}`)}return new Error(`${t} from Terser\n${e.message} [${t}:${e.line},${e.col}]${e.stack?`\n${e.stack.split("\n").slice(1).join("\n")}`:""}`)}if(e.stack){return new Error(`${t} from Terser\n${e.stack}`)}return new Error(`${t} from Terser\n${e.message}`)}static isWebpack4(){return l.version[0]==="4"}static getAvailableNumberOfCores(e){const t=r.default.cpus()||{length:1};return e===true?t.length-1:Math.min(Number(e)||0,t.length-1)}static getAsset(e,t){if(e.getAsset){return e.getAsset(t)}if(e.assets[t]){return{name:t,source:e.assets[t],info:{}}}}static emitAsset(e,t,s,n){if(e.emitAsset){e.emitAsset(t,s,n)}e.assets[t]=s}static updateAsset(e,t,s,n){if(e.updateAsset){e.updateAsset(t,s,n)}e.assets[t]=s}*taskGenerator(e,t,r,u){const{info:c,source:h}=TerserPlugin.getAsset(t,u);if(c.minimized){yield false}let f;let p;if(this.options.sourceMap&&h.sourceAndMap){const{source:e,map:s}=h.sourceAndMap();f=e;if(s){if(TerserPlugin.isSourceMap(s)){p=s}else{p=s;t.warnings.push(new Error(`${u} contains invalid source map`))}}}else{f=h.source();p=null}if(Buffer.isBuffer(f)){f=f.toString()}let m=false;if(this.options.extractComments){m=this.options.extractComments.filename||"[file].LICENSE.txt[query]";let e="";let s=u;const n=s.indexOf("?");if(n>=0){e=s.substr(n);s=s.substr(0,n)}const r=s.lastIndexOf("/");const o=r===-1?s:s.substr(r+1);const i={filename:s,basename:o,query:e};m=t.getPath(m,i)}const g=s=>{let{code:l}=s;const{error:d,map:h}=s;const{extractedComments:g}=s;let y=null;if(d&&p&&TerserPlugin.isSourceMap(p)){y=new o.SourceMapConsumer(p)}if(d){t.errors.push(TerserPlugin.buildError(d,u,y,new a.default(e.context)));return}const k=m&&g&&g.length>0;const b=this.options.extractComments.banner!==false;let w;let _;if(k&&b&&l.startsWith("#!")){const e=l.indexOf("\n");_=l.substring(0,e);l=l.substring(e+1)}if(h){w=new i.SourceMapSource(l,u,h,f,p,true)}else{w=new i.RawSource(l)}const v={...c,minimized:true};if(k){let e;v.related={license:m};if(b){e=this.options.extractComments.banner||`For license information please see ${n.default.relative(n.default.dirname(u),m).replace(/\\/g,"/")}`;if(typeof e==="function"){e=e(m)}if(e){w=new i.ConcatSource(_?`${_}\n`:"",`/*! ${e} */\n`,w)}}if(!r[m]){r[m]=new Set}g.forEach(t=>{if(e&&t===`/*! ${e} */`){return}r[m].add(t)});const s=TerserPlugin.getAsset(t,m);if(s){const e=s.source.source();e.replace(/\n$/,"").split("\n\n").forEach(e=>{r[m].add(e)})}}TerserPlugin.updateAsset(t,u,w,v)};const y={name:u,input:f,inputSourceMap:p,commentsFilename:m,extractComments:this.options.extractComments,terserOptions:this.options.terserOptions,minify:this.options.minify,callback:g};if(TerserPlugin.isWebpack4()){const{outputOptions:{hashSalt:e,hashDigest:n,hashDigestLength:r,hashFunction:o}}=t;const i=l.util.createHash(o);if(e){i.update(e)}i.update(f);const a=i.digest(n);if(this.options.cache){const e={terser:d.default.version,"terser-webpack-plugin":s(721).version,"terser-webpack-plugin-options":this.options,nodeVersion:process.version,name:u,contentHash:a.substr(0,r)};y.cacheKeys=this.options.cacheKeys(e,u)}}else{y.assetSource=h}yield y}async runTasks(e,t,n){const r=TerserPlugin.getAvailableNumberOfCores(this.options.parallel);let o=Infinity;let i;if(r>0){const t=Math.min(e.length,r);o=t;i=new f.default(s.ab+"minify.js",{numWorkers:t});const n=i.getStdout();if(n){n.on("data",e=>{return process.stdout.write(e)})}const a=i.getStderr();if(a){a.on("data",e=>{return process.stderr.write(e)})}}const a=(0,h.default)(o);const l=[];for(const s of e){const e=async e=>{let t;try{t=await(i?i.transform((0,c.default)(e)):(0,m.minify)(e))}catch(e){t={error:e}}if(n.isEnabled()&&!t.error){await n.store(e,t)}e.callback(t);return t};l.push(a(async()=>{const r=t(s).next().value;if(!r){return Promise.resolve()}if(n.isEnabled()){let t;try{t=await n.get(r)}catch(t){return e(r)}if(!t){return e(r)}r.callback(t);return Promise.resolve()}return e(r)}))}await Promise.all(l);if(i){await i.end()}}apply(e){const{devtool:t,output:n,plugins:r}=e.options;this.options.sourceMap=typeof this.options.sourceMap==="undefined"?t&&!t.includes("eval")&&!t.includes("cheap")&&(t.includes("source-map")||t.includes("sourcemap"))||r&&r.some(e=>e instanceof l.SourceMapDevToolPlugin&&e.options&&e.options.columns):Boolean(this.options.sourceMap);if(typeof this.options.terserOptions.module==="undefined"&&typeof n.module!=="undefined"){this.options.terserOptions.module=n.module}if(typeof this.options.terserOptions.ecma==="undefined"&&typeof n.ecmaVersion!=="undefined"){this.options.terserOptions.ecma=n.ecmaVersion}const o=l.ModuleFilenameHelpers.matchObject.bind(undefined,this.options);const a=async(t,n)=>{let r;if(TerserPlugin.isWebpack4()){r=[].concat(Array.from(t.additionalChunkAssets||[])).concat(Array.from(n).reduce((e,t)=>e.concat(Array.from(t.files||[])),[])).concat(Object.keys(t.assets)).filter((e,t,s)=>s.indexOf(e)===t).filter(e=>o(e))}else{r=[].concat(Object.keys(n)).filter(e=>o(e))}if(r.length===0){return Promise.resolve()}const a={};const l=this.taskGenerator.bind(this,e,t,a);const u=TerserPlugin.isWebpack4()?s(722).default:s(475).default;const c=new u(t,{cache:this.options.cache});await this.runTasks(r,l,c);Object.keys(a).forEach(e=>{const s=Array.from(a[e]).sort().join("\n\n");TerserPlugin.emitAsset(t,e,new i.RawSource(`${s}\n`))});return Promise.resolve()};const u=this.constructor.name;e.hooks.compilation.tap(u,e=>{if(this.options.sourceMap){e.hooks.buildModule.tap(u,e=>{e.useSourceMap=true})}if(TerserPlugin.isWebpack4()){const{mainTemplate:t,chunkTemplate:s}=e;const n=(0,c.default)({terser:d.default.version,terserOptions:this.options.terserOptions});for(const e of[t,s]){e.hooks.hashForChunk.tap(u,e=>{e.update("TerserPlugin");e.update(n)})}e.hooks.optimizeChunkAssets.tapPromise(u,a.bind(this,e))}else{const t=s(980);const n=l.javascript.JavascriptModulesPlugin.getCompilationHooks(e);const r=(0,c.default)({terser:d.default.version,terserOptions:this.options.terserOptions});n.chunkHash.tap(u,(e,t)=>{t.update("TerserPlugin");t.update(r)});e.hooks.processAssets.tapPromise({name:u,stage:t.PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE},a.bind(this,e));e.hooks.statsPrinter.tap(u,e=>{e.hooks.print.for("asset.info.minimized").tap("terser-webpack-plugin",(e,{green:t,formatFlag:s})=>e?t(s("minimized")):undefined)})}})}}var g=TerserPlugin;t.default=g},591:function(e,t,s){"use strict";const n=s(886);class HotUpdateChunk extends n{constructor(){super();this.removedModules=undefined}}e.exports=HotUpdateChunk},622:function(e){e.exports=require("path")},635:function(e){e.exports=require("cacache")},638:function(e,t,s){"use strict";const n=s(446);class EntryModuleNotFoundError extends n{constructor(e){super("Entry module not found: "+e);this.name="EntryModuleNotFoundError";this.details=e.details;this.error=e;Error.captureStackTrace(this,this.constructor)}}e.exports=EntryModuleNotFoundError},641:function(e){e.exports={definitions:{Rule:{description:"Filtering rule as regex or string.",anyOf:[{instanceof:"RegExp",tsType:"RegExp"},{type:"string",minLength:1}]},Rules:{description:"Filtering rules.",anyOf:[{type:"array",items:{description:"A rule condition.",oneOf:[{$ref:"#/definitions/Rule"}]}},{$ref:"#/definitions/Rule"}]}},title:"TerserPluginOptions",type:"object",additionalProperties:false,properties:{test:{description:"Include all modules that pass test assertion.",oneOf:[{$ref:"#/definitions/Rules"}]},include:{description:"Include all modules matching any of these conditions.",oneOf:[{$ref:"#/definitions/Rules"}]},exclude:{description:"Exclude all modules matching any of these conditions.",oneOf:[{$ref:"#/definitions/Rules"}]},cache:{description:"Enable file caching. Ignored in webpack 5, for webpack 5 please use https://webpack.js.org/configuration/other-options/#cache.",anyOf:[{type:"boolean"},{type:"string"}]},cacheKeys:{description:"Allows you to override default cache keys. Ignored in webpack 5, for webpack 5 please use https://webpack.js.org/configuration/other-options/#cache.",instanceof:"Function"},parallel:{description:"Use multi-process parallel running to improve the build speed.",anyOf:[{type:"boolean"},{type:"integer"}]},sourceMap:{description:"Enables/Disables generation of source maps.",type:"boolean"},minify:{description:"Allows you to override default minify function.",instanceof:"Function"},terserOptions:{description:"Options for `terser`.",additionalProperties:true,type:"object"},extractComments:{description:"Whether comments shall be extracted to a separate file.",anyOf:[{type:"boolean"},{type:"string"},{instanceof:"RegExp"},{instanceof:"Function"},{additionalProperties:false,properties:{condition:{anyOf:[{type:"boolean"},{type:"string"},{instanceof:"RegExp"},{instanceof:"Function"}]},filename:{anyOf:[{type:"string"},{instanceof:"Function"}]},banner:{anyOf:[{type:"boolean"},{type:"string"},{instanceof:"Function"}]}},type:"object"}]}}}},645:function(e,t,s){"use strict";const n=s(446);class ModuleNotFoundError extends n{constructor(e,t){super("Module not found: "+t);this.name="ModuleNotFoundError";this.details=t.details;this.missing=t.missing;this.module=e;this.error=t;Error.captureStackTrace(this,this.constructor)}}e.exports=ModuleNotFoundError},647:function(e,t,s){"use strict";const n=s(446);e.exports=class ModuleDependencyWarning extends n{constructor(e,t,s){super(t.message);this.name="ModuleDependencyWarning";this.details=t.stack.split("\n").slice(1).join("\n");this.module=e;this.loc=s;this.error=t;this.origin=e.issuer;Error.captureStackTrace(this,this.constructor)}}},656:function(e,t){"use strict";const s=e=>{if(e.length===0)return new Set;if(e.length===1)return new Set(e[0]);let t=Infinity;let s=-1;for(let n=0;n{if(e.sizee(s),onResult:(e,t,s)=>{let n="";n+=`if(${t} !== undefined) {\n`;n+=`${this._args[0]} = ${t};\n`;n+=`}\n`;n+=s();return n},onDone:()=>t(this._args[0]),doneReturns:s,rethrowIfPossible:n})}}const o=new SyncWaterfallHookCodeFactory;class SyncWaterfallHook extends n{constructor(e){super(e);if(e.length<1)throw new Error("Waterfall hooks must have at least one argument")}tapAsync(){throw new Error("tapAsync is not supported on a SyncWaterfallHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncWaterfallHook")}compile(e){o.setup(this,e);return o.create(e)}}e.exports=SyncWaterfallHook},694:function(e,t,s){"use strict";const n=s(813);const r=e=>{if(!((Number.isInteger(e)||e===Infinity)&&e>0)){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const t=[];let s=0;const r=()=>{s--;if(t.length>0){t.shift()()}};const o=async(e,t,...o)=>{s++;const i=n(e,...o);t(i);try{await i}catch{}r()};const i=(n,r,...i)=>{t.push(o.bind(null,n,r,...i));(async()=>{await Promise.resolve();if(s0){t.shift()()}})()};const a=(e,...t)=>new Promise(s=>i(e,s,...t));Object.defineProperties(a,{activeCount:{get:()=>s},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}});return a};e.exports=r},696:function(e,t,s){"use strict";const n=s(669);const r=s(463);const o=s(496);class Dependency{constructor(){this.module=null;this.weak=false;this.optional=false;this.loc=undefined}getResourceIdentifier(){return null}getReference(){if(!this.module)return null;return new o(this.module,true,this.weak)}getExports(){return null}getWarnings(){return null}getErrors(){return null}updateHash(e){e.update((this.module&&this.module.id)+"")}disconnect(){this.module=null}}Dependency.compare=n.deprecate((e,t)=>r(e.loc,t.loc),"Dependency.compare is deprecated and will be removed in the next major version");e.exports=Dependency},721:function(e){e.exports={name:"terser-webpack-plugin",version:"4.1.0",description:"Terser plugin for webpack",license:"MIT",repository:"webpack-contrib/terser-webpack-plugin",author:"webpack Contrib Team",homepage:"https://github.com/webpack-contrib/terser-webpack-plugin",bugs:"https://github.com/webpack-contrib/terser-webpack-plugin/issues",funding:{type:"opencollective",url:"https://opencollective.com/webpack"},main:"dist/cjs.js",engines:{node:">= 10.13.0"},scripts:{start:"npm run build -- -w",clean:"del-cli dist",prebuild:"npm run clean",build:"cross-env NODE_ENV=production babel src -d dist --copy-files",commitlint:"commitlint --from=master",security:"npm audit","lint:prettier":"prettier --list-different .","lint:js":"eslint --cache .",lint:'npm-run-all -l -p "lint:**"',"test:only":"cross-env NODE_ENV=test jest","test:watch":"npm run test:only -- --watch","test:coverage":'npm run test:only -- --collectCoverageFrom="src/**/*.js" --coverage',pretest:"npm run lint",test:"npm run test:coverage",prepare:"npm run build",release:"standard-version",defaults:"webpack-defaults"},files:["dist"],peerDependencies:{webpack:"^4.0.0 || ^5.0.0"},dependencies:{cacache:"^15.0.5","find-cache-dir":"^3.3.1","jest-worker":"^26.3.0","p-limit":"^3.0.2","schema-utils":"^2.6.6","serialize-javascript":"^4.0.0","source-map":"^0.6.1",terser:"^5.0.0","webpack-sources":"^1.4.3"},devDependencies:{"@babel/cli":"^7.10.5","@babel/core":"^7.11.1","@babel/preset-env":"^7.11.0","@commitlint/cli":"^9.1.2","@commitlint/config-conventional":"^9.1.1","@webpack-contrib/defaults":"^6.3.0","@webpack-contrib/eslint-config-webpack":"^3.0.0","babel-jest":"^26.3.0","copy-webpack-plugin":"^6.0.3","cross-env":"^7.0.2",del:"^5.1.0","del-cli":"^3.0.1",eslint:"^7.5.0","eslint-config-prettier":"^6.11.0","eslint-plugin-import":"^2.21.2","file-loader":"^6.0.0",husky:"^4.2.5",jest:"^26.3.0","lint-staged":"^10.2.11",memfs:"^3.2.0","npm-run-all":"^4.1.5",prettier:"^2.0.5","standard-version":"^8.0.2","uglify-js":"^3.10.0",webpack:"^4.44.1","worker-loader":"^3.0.1"},keywords:["uglify","uglify-js","uglify-es","terser","webpack","webpack-plugin","minification","compress","compressor","min","minification","minifier","minify","optimize","optimizer"]}},722:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(s(87));var r=_interopRequireDefault(s(635));var o=_interopRequireDefault(s(240));var i=_interopRequireDefault(s(960));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Webpack4Cache{constructor(e,t){this.cacheDir=t.cache===true?Webpack4Cache.getCacheDirectory():t.cache}static getCacheDirectory(){return(0,o.default)({name:"terser-webpack-plugin"})||n.default.tmpdir()}isEnabled(){return Boolean(this.cacheDir)}async get(e){e.cacheIdent=e.cacheIdent||(0,i.default)(e.cacheKeys);const{data:t}=await r.default.get(this.cacheDir,e.cacheIdent);return JSON.parse(t)}async store(e,t){return r.default.put(this.cacheDir,e.cacheIdent,JSON.stringify(t))}}t.default=Webpack4Cache},733:function(e){e.exports=require("jest-worker")},742:function(e,t,s){"use strict";const n=s(696);class ModuleDependency extends n{constructor(e){super();this.request=e;this.userRequest=e}getResourceIdentifier(){return`module${this.request}`}}e.exports=ModuleDependency},743:function(e,t,s){"use strict";const n=s(521);const r=s(533);class AsyncSeriesHookCodeFactory extends r{content({onError:e,onDone:t}){return this.callTapsSeries({onError:(t,s,n,r)=>e(s)+r(true),onDone:t})}}const o=new AsyncSeriesHookCodeFactory;class AsyncSeriesHook extends n{compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncSeriesHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncSeriesHook},745:function(e){e.exports=require("webpack-sources")},773:function(e,t,s){"use strict";const n=s(542);const r=s(463);let o=5e3;const i=e=>Array.from(e);const a=(e,t)=>{if(e.id{const s=e.module?e.module.identifier():"";const n=t.module?t.module.identifier():"";if(sn)return 1;return r(e.loc,t.loc)};class ChunkGroup{constructor(e){if(typeof e==="string"){e={name:e}}else if(!e){e={name:undefined}}this.groupDebugId=o++;this.options=e;this._children=new n(undefined,a);this._parents=new n(undefined,a);this._blocks=new n;this.chunks=[];this.origins=[];this._moduleIndices=new Map;this._moduleIndices2=new Map}addOptions(e){for(const t of Object.keys(e)){if(this.options[t]===undefined){this.options[t]=e[t]}else if(this.options[t]!==e[t]){if(t.endsWith("Order")){this.options[t]=Math.max(this.options[t],e[t])}else{throw new Error(`ChunkGroup.addOptions: No option merge strategy for ${t}`)}}}}get name(){return this.options.name}set name(e){this.options.name=e}get debugId(){return Array.from(this.chunks,e=>e.debugId).join("+")}get id(){return Array.from(this.chunks,e=>e.id).join("+")}unshiftChunk(e){const t=this.chunks.indexOf(e);if(t>0){this.chunks.splice(t,1);this.chunks.unshift(e)}else if(t<0){this.chunks.unshift(e);return true}return false}insertChunk(e,t){const s=this.chunks.indexOf(e);const n=this.chunks.indexOf(t);if(n<0){throw new Error("before chunk not found")}if(s>=0&&s>n){this.chunks.splice(s,1);this.chunks.splice(n,0,e)}else if(s<0){this.chunks.splice(n,0,e);return true}return false}pushChunk(e){const t=this.chunks.indexOf(e);if(t>=0){return false}this.chunks.push(e);return true}replaceChunk(e,t){const s=this.chunks.indexOf(e);if(s<0)return false;const n=this.chunks.indexOf(t);if(n<0){this.chunks[s]=t;return true}if(n=0){this.chunks.splice(t,1);return true}return false}isInitial(){return false}addChild(e){if(this._children.has(e)){return false}this._children.add(e);return true}getChildren(){return this._children.getFromCache(i)}getNumberOfChildren(){return this._children.size}get childrenIterable(){return this._children}removeChild(e){if(!this._children.has(e)){return false}this._children.delete(e);e.removeParent(this);return true}addParent(e){if(!this._parents.has(e)){this._parents.add(e);return true}return false}getParents(){return this._parents.getFromCache(i)}setParents(e){this._parents.clear();for(const t of e){this._parents.add(t)}}getNumberOfParents(){return this._parents.size}hasParent(e){return this._parents.has(e)}get parentsIterable(){return this._parents}removeParent(e){if(this._parents.delete(e)){e.removeChunk(this);return true}return false}getBlocks(){return this._blocks.getFromCache(i)}getNumberOfBlocks(){return this._blocks.size}hasBlock(e){return this._blocks.has(e)}get blocksIterable(){return this._blocks}addBlock(e){if(!this._blocks.has(e)){this._blocks.add(e);return true}return false}addOrigin(e,t,s){this.origins.push({module:e,loc:t,request:s})}containsModule(e){for(const t of this.chunks){if(t.containsModule(e))return true}return false}getFiles(){const e=new Set;for(const t of this.chunks){for(const s of t.files){e.add(s)}}return Array.from(e)}remove(e){for(const e of this._parents){e._children.delete(this);for(const t of this._children){t.addParent(e);e.addChild(t)}}for(const e of this._children){e._parents.delete(this)}for(const e of this._blocks){e.chunkGroup=null}for(const e of this.chunks){e.removeGroup(this)}}sortItems(){this.origins.sort(l);this._parents.sort();this._children.sort()}compareTo(e){if(this.chunks.length>e.chunks.length)return-1;if(this.chunks.length{const s=t.order-e.order;if(s!==0)return s;if(e.group.compareTo){return e.group.compareTo(t.group)}return 0});t[s]=n.map(e=>e.group)}return t}setModuleIndex(e,t){this._moduleIndices.set(e,t)}getModuleIndex(e){return this._moduleIndices.get(e)}setModuleIndex2(e,t){this._moduleIndices2.set(e,t)}getModuleIndex2(e){return this._moduleIndices2.get(e)}checkConstraints(){const e=this;for(const t of e._children){if(!t._parents.has(e)){throw new Error(`checkConstraints: child missing parent ${e.debugId} -> ${t.debugId}`)}}for(const t of e._parents){if(!t._children.has(e)){throw new Error(`checkConstraints: parent missing child ${t.debugId} <- ${e.debugId}`)}}}}e.exports=ChunkGroup},775:function(e){e.exports=require("next/dist/compiled/terser")},788:function(e,t,s){"use strict";const n=s(140);const r=s(122);const o=s(367);const i=s(832);const a=s(463);const{LogType:l}=s(225);const u=(...e)=>{let t=[];t.push(...e);return t.find(e=>e!==undefined)};const c=(e,t)=>{if(typeof e!==typeof t){return typeof et)return 1;return 0};class Stats{constructor(e){this.compilation=e;this.hash=e.hash;this.startTime=undefined;this.endTime=undefined}static filterWarnings(e,t){if(!t){return e}const s=[].concat(t).map(e=>{if(typeof e==="string"){return t=>t.includes(e)}if(e instanceof RegExp){return t=>e.test(t)}if(typeof e==="function"){return e}throw new Error(`Can only filter warnings with Strings or RegExps. (Given: ${e})`)});return e.filter(e=>{return!s.some(t=>t(e))})}formatFilePath(e){const t=/^(\s|\S)*!/;return e.includes("!")?`${e.replace(t,"")} (${e})`:`${e}`}hasWarnings(){return this.compilation.warnings.length>0||this.compilation.children.some(e=>e.getStats().hasWarnings())}hasErrors(){return this.compilation.errors.length>0||this.compilation.children.some(e=>e.getStats().hasErrors())}normalizeFieldKey(e){if(e[0]==="!"){return e.substr(1)}return e}sortOrderRegular(e){if(e[0]==="!"){return false}return true}toJson(e,t){if(typeof e==="boolean"||typeof e==="string"){e=Stats.presetToOptions(e)}else if(!e){e={}}const r=(t,s)=>t!==undefined?t:e.all!==undefined?e.all:s;const d=e=>{if(typeof e==="string"){const t=new RegExp(`[\\\\/]${e.replace(/[-[\]{}()*+?.\\^$|]/g,"\\$&")}([\\\\/]|$|!|\\?)`);return e=>t.test(e)}if(e&&typeof e==="object"&&typeof e.test==="function"){return t=>e.test(t)}if(typeof e==="function"){return e}if(typeof e==="boolean"){return()=>e}};const h=this.compilation;const f=u(e.context,h.compiler.context);const p=h.compiler.context===f?h.requestShortener:new n(f);const m=r(e.performance,true);const g=r(e.hash,true);const y=r(e.env,false);const k=r(e.version,true);const b=r(e.timings,true);const w=r(e.builtAt,true);const _=r(e.assets,true);const v=r(e.entrypoints,true);const x=r(e.chunkGroups,!t);const $=r(e.chunks,!t);const E=r(e.chunkModules,true);const M=r(e.chunkOrigins,!t);const O=r(e.modules,true);const A=r(e.nestedModules,true);const S=r(e.moduleAssets,!t);const C=r(e.depth,!t);const j=r(e.cached,true);const T=r(e.cachedAssets,true);const I=r(e.reasons,!t);const D=r(e.usedExports,!t);const P=r(e.providedExports,!t);const R=r(e.optimizationBailout,!t);const H=r(e.children,true);const z=r(e.source,!t);const q=r(e.moduleTrace,true);const B=r(e.errors,true);const F=r(e.errorDetails,!t);const G=r(e.warnings,true);const N=u(e.warningsFilter,null);const W=r(e.publicPath,!t);const U=r(e.logging,t?"info":true);const L=r(e.loggingTrace,!t);const J=[].concat(u(e.loggingDebug,[])).map(d);const Z=[].concat(u(e.excludeModules,e.exclude,[])).map(d);const K=[].concat(u(e.excludeAssets,[])).map(d);const Q=u(e.maxModules,t?15:Infinity);const X=u(e.modulesSort,"id");const Y=u(e.chunksSort,"id");const V=u(e.assetsSort,"");const ee=r(e.outputPath,!t);if(!j){Z.push((e,t)=>!t.built)}const te=()=>{let e=0;return t=>{if(Z.length>0){const e=p.shorten(t.resource);const s=Z.some(s=>s(e,t));if(s)return false}const s=e{return e=>{if(K.length>0){const t=e.name;const s=K.some(s=>s(t,e));if(s)return false}return T||e.emitted}};const ne=(e,t,s)=>{if(t[e]===null&&s[e]===null)return 0;if(t[e]===null)return 1;if(s[e]===null)return-1;if(t[e]===s[e])return 0;if(typeof t[e]!==typeof s[e])return typeof t[e]{const s=t.reduce((e,t,s)=>{e.set(t,s);return e},new Map);return(t,n)=>{if(e){const s=this.normalizeFieldKey(e);const r=this.sortOrderRegular(e);const o=ne(s,r?t:n,r?n:t);if(o)return o}return s.get(t)-s.get(n)}};const oe=e=>{let t="";if(typeof e==="string"){e={message:e}}if(e.chunk){t+=`chunk ${e.chunk.name||e.chunk.id}${e.chunk.hasRuntime()?" [entry]":e.chunk.canBeInitial()?" [initial]":""}\n`}if(e.file){t+=`${e.file}\n`}if(e.module&&e.module.readableIdentifier&&typeof e.module.readableIdentifier==="function"){t+=this.formatFilePath(e.module.readableIdentifier(p));if(typeof e.loc==="object"){const s=o(e.loc);if(s)t+=` ${s}`}t+="\n"}t+=e.message;if(F&&e.details){t+=`\n${e.details}`}if(F&&e.missing){t+=e.missing.map(e=>`\n[${e}]`).join("")}if(q&&e.origin){t+=`\n @ ${this.formatFilePath(e.origin.readableIdentifier(p))}`;if(typeof e.originLoc==="object"){const s=o(e.originLoc);if(s)t+=` ${s}`}if(e.dependencies){for(const s of e.dependencies){if(!s.loc)continue;if(typeof s.loc==="string")continue;const e=o(s.loc);if(!e)continue;t+=` ${e}`}}let s=e.origin;while(s.issuer){s=s.issuer;t+=`\n @ ${s.readableIdentifier(p)}`}}return t};const ie={errors:h.errors.map(oe),warnings:Stats.filterWarnings(h.warnings.map(oe),N)};Object.defineProperty(ie,"_showWarnings",{value:G,enumerable:false});Object.defineProperty(ie,"_showErrors",{value:B,enumerable:false});if(k){ie.version=s(155).version}if(g)ie.hash=this.hash;if(b&&this.startTime&&this.endTime){ie.time=this.endTime-this.startTime}if(w&&this.endTime){ie.builtAt=this.endTime}if(y&&e._env){ie.env=e._env}if(h.needAdditionalPass){ie.needAdditionalPass=true}if(W){ie.publicPath=this.compilation.mainTemplate.getPublicPath({hash:this.compilation.hash})}if(ee){ie.outputPath=this.compilation.mainTemplate.outputOptions.path}if(_){const e={};const t=h.getAssets().sort((e,t)=>e.name{const r={name:t,size:s.size(),chunks:[],chunkNames:[],info:n,emitted:s.emitted||h.emittedAssets.has(t)};if(m){r.isOverSizeLimit=s.isOverSizeLimit}e[t]=r;return r}).filter(se());ie.filteredAssets=t.length-ie.assets.length;for(const t of h.chunks){for(const s of t.files){if(e[s]){for(const n of t.ids){e[s].chunks.push(n)}if(t.name){e[s].chunkNames.push(t.name);if(ie.assetsByChunkName[t.name]){ie.assetsByChunkName[t.name]=[].concat(ie.assetsByChunkName[t.name]).concat([s])}else{ie.assetsByChunkName[t.name]=s}}}}}ie.assets.sort(re(V,ie.assets))}const ae=e=>{const t={};for(const s of e){const e=s[0];const n=s[1];const r=n.getChildrenByOrders();t[e]={chunks:n.chunks.map(e=>e.id),assets:n.chunks.reduce((e,t)=>e.concat(t.files||[]),[]),children:Object.keys(r).reduce((e,t)=>{const s=r[t];e[t]=s.map(e=>({name:e.name,chunks:e.chunks.map(e=>e.id),assets:e.chunks.reduce((e,t)=>e.concat(t.files||[]),[])}));return e},Object.create(null)),childAssets:Object.keys(r).reduce((e,t)=>{const s=r[t];e[t]=Array.from(s.reduce((e,t)=>{for(const s of t.chunks){for(const t of s.files){e.add(t)}}return e},new Set));return e},Object.create(null))};if(m){t[e].isOverSizeLimit=n.isOverSizeLimit}}return t};if(v){ie.entrypoints=ae(h.entrypoints)}if(x){ie.namedChunkGroups=ae(h.namedChunkGroups)}const le=e=>{const t=[];let s=e;while(s.issuer){t.push(s=s.issuer)}t.reverse();const n={id:e.id,identifier:e.identifier(),name:e.readableIdentifier(p),index:e.index,index2:e.index2,size:e.size(),cacheable:e.buildInfo.cacheable,built:!!e.built,optional:e.optional,prefetched:e.prefetched,chunks:Array.from(e.chunksIterable,e=>e.id),issuer:e.issuer&&e.issuer.identifier(),issuerId:e.issuer&&e.issuer.id,issuerName:e.issuer&&e.issuer.readableIdentifier(p),issuerPath:e.issuer&&t.map(e=>({id:e.id,identifier:e.identifier(),name:e.readableIdentifier(p),profile:e.profile})),profile:e.profile,failed:!!e.error,errors:e.errors?e.errors.length:0,warnings:e.warnings?e.warnings.length:0};if(S){n.assets=Object.keys(e.buildInfo.assets||{})}if(I){n.reasons=e.reasons.sort((e,t)=>{if(e.module&&!t.module)return-1;if(!e.module&&t.module)return 1;if(e.module&&t.module){const s=c(e.module.id,t.module.id);if(s)return s}if(e.dependency&&!t.dependency)return-1;if(!e.dependency&&t.dependency)return 1;if(e.dependency&&t.dependency){const s=a(e.dependency.loc,t.dependency.loc);if(s)return s;if(e.dependency.typet.dependency.type)return 1}return 0}).map(e=>{const t={moduleId:e.module?e.module.id:null,moduleIdentifier:e.module?e.module.identifier():null,module:e.module?e.module.readableIdentifier(p):null,moduleName:e.module?e.module.readableIdentifier(p):null,type:e.dependency?e.dependency.type:null,explanation:e.explanation,userRequest:e.dependency?e.dependency.userRequest:null};if(e.dependency){const s=o(e.dependency.loc);if(s){t.loc=s}}return t})}if(D){if(e.used===true){n.usedExports=e.usedExports}else if(e.used===false){n.usedExports=false}}if(P){n.providedExports=Array.isArray(e.buildMeta.providedExports)?e.buildMeta.providedExports:null}if(R){n.optimizationBailout=e.optimizationBailout.map(e=>{if(typeof e==="function")return e(p);return e})}if(C){n.depth=e.depth}if(A){if(e.modules){const t=e.modules;n.modules=t.sort(re("depth",t)).filter(te()).map(le);n.filteredModules=t.length-n.modules.length;n.modules.sort(re(X,n.modules))}}if(z&&e._source){n.source=e._source.source()}return n};if($){ie.chunks=h.chunks.map(e=>{const t=new Set;const s=new Set;const n=new Set;const r=e.getChildIdsByOrders();for(const r of e.groupsIterable){for(const e of r.parentsIterable){for(const s of e.chunks){t.add(s.id)}}for(const e of r.childrenIterable){for(const t of e.chunks){s.add(t.id)}}for(const t of r.chunks){if(t!==e)n.add(t.id)}}const i={id:e.id,rendered:e.rendered,initial:e.canBeInitial(),entry:e.hasRuntime(),recorded:e.recorded,reason:e.chunkReason,size:e.modulesSize(),names:e.name?[e.name]:[],files:e.files.slice(),hash:e.renderedHash,siblings:Array.from(n).sort(c),parents:Array.from(t).sort(c),children:Array.from(s).sort(c),childrenByOrder:r};if(E){const t=e.getModules();i.modules=t.slice().sort(re("depth",t)).filter(te()).map(le);i.filteredModules=e.getNumberOfModules()-i.modules.length;i.modules.sort(re(X,i.modules))}if(M){i.origins=Array.from(e.groupsIterable,e=>e.origins).reduce((e,t)=>e.concat(t),[]).map(e=>({moduleId:e.module?e.module.id:undefined,module:e.module?e.module.identifier():"",moduleIdentifier:e.module?e.module.identifier():"",moduleName:e.module?e.module.readableIdentifier(p):"",loc:o(e.loc),request:e.request,reasons:e.reasons||[]})).sort((e,t)=>{const s=c(e.moduleId,t.moduleId);if(s)return s;const n=c(e.loc,t.loc);if(n)return n;const r=c(e.request,t.request);if(r)return r;return 0})}return i});ie.chunks.sort(re(Y,ie.chunks))}if(O){ie.modules=h.modules.slice().sort(re("depth",h.modules)).filter(te()).map(le);ie.filteredModules=h.modules.length-ie.modules.length;ie.modules.sort(re(X,ie.modules))}if(U){const e=s(669);ie.logging={};let t;let n=false;switch(U){case"none":t=new Set([]);break;case"error":t=new Set([l.error]);break;case"warn":t=new Set([l.error,l.warn]);break;case"info":t=new Set([l.error,l.warn,l.info]);break;case true:case"log":t=new Set([l.error,l.warn,l.info,l.log,l.group,l.groupEnd,l.groupCollapsed,l.clear]);break;case"verbose":t=new Set([l.error,l.warn,l.info,l.log,l.group,l.groupEnd,l.groupCollapsed,l.profile,l.profileEnd,l.time,l.status,l.clear]);n=true;break}for(const[s,r]of h.logging){const o=J.some(e=>e(s));let a=0;let u=r;if(!o){u=u.filter(e=>{if(!t.has(e.type))return false;if(!n){switch(e.type){case l.groupCollapsed:a++;return a===1;case l.group:if(a>0)a++;return a===0;case l.groupEnd:if(a>0){a--;return false}return true;default:return a===0}}return true})}u=u.map(t=>{let s=undefined;if(t.type===l.time){s=`${t.args[0]}: ${t.args[1]*1e3+t.args[2]/1e6}ms`}else if(t.args&&t.args.length>0){s=e.format(t.args[0],...t.args.slice(1))}return{type:(o||n)&&t.type===l.groupCollapsed?l.group:t.type,message:s,trace:L&&t.trace?t.trace:undefined}});let c=i.makePathsRelative(f,s,h.cache).replace(/\|/g," ");if(c in ie.logging){let e=1;while(`${c}#${e}`in ie.logging){e++}c=`${c}#${e}`}ie.logging[c]={entries:u,filteredEntries:r.length-u.length,debug:o}}}if(H){ie.children=h.children.map((s,n)=>{const r=Stats.getChildOptions(e,n);const o=new Stats(s).toJson(r,t);delete o.hash;delete o.version;if(s.name){o.name=i.makePathsRelative(f,s.name,h.cache)}return o})}return ie}toString(e){if(typeof e==="boolean"||typeof e==="string"){e=Stats.presetToOptions(e)}else if(!e){e={}}const t=u(e.colors,false);const s=this.toJson(e,true);return Stats.jsonToString(s,t)}static jsonToString(e,t){const s=[];const n={bold:"",yellow:"",red:"",green:"",cyan:"",magenta:""};const o=Object.keys(n).reduce((e,r)=>{e[r]=(e=>{if(t){s.push(t===true||t[r]===undefined?n[r]:t[r])}s.push(e);if(t){s.push("")}});return e},{normal:e=>s.push(e)});const i=t=>{let s=[800,400,200,100];if(e.time){s=[e.time/2,e.time/4,e.time/8,e.time/16]}if(ts.push("\n");const u=(e,t,s)=>{return e[t][s].value};const c=(e,t,s)=>{const n=e.length;const r=e[0].length;const i=new Array(r);for(let e=0;ei[s]){i[s]=n.length}}}for(let l=0;l{if(e.isOverSizeLimit){return o.yellow}return t};if(e.hash){o.normal("Hash: ");o.bold(e.hash);a()}if(e.version){o.normal("Version: webpack ");o.bold(e.version);a()}if(typeof e.time==="number"){o.normal("Time: ");o.bold(e.time);o.normal("ms");a()}if(typeof e.builtAt==="number"){const t=new Date(e.builtAt);let s=undefined;try{t.toLocaleTimeString()}catch(e){s="UTC"}o.normal("Built at: ");o.normal(t.toLocaleDateString(undefined,{day:"2-digit",month:"2-digit",year:"numeric",timeZone:s}));o.normal(" ");o.bold(t.toLocaleTimeString(undefined,{timeZone:s}));a()}if(e.env){o.normal("Environment (--env): ");o.bold(JSON.stringify(e.env,null,2));a()}if(e.publicPath){o.normal("PublicPath: ");o.bold(e.publicPath);a()}if(e.assets&&e.assets.length>0){const t=[[{value:"Asset",color:o.bold},{value:"Size",color:o.bold},{value:"Chunks",color:o.bold},{value:"",color:o.bold},{value:"",color:o.bold},{value:"Chunk Names",color:o.bold}]];for(const s of e.assets){t.push([{value:s.name,color:d(s,o.green)},{value:r.formatSize(s.size),color:d(s,o.normal)},{value:s.chunks.join(", "),color:o.bold},{value:[s.emitted&&"[emitted]",s.info.immutable&&"[immutable]",s.info.development&&"[dev]",s.info.hotModuleReplacement&&"[hmr]"].filter(Boolean).join(" "),color:o.green},{value:s.isOverSizeLimit?"[big]":"",color:d(s,o.normal)},{value:s.chunkNames.join(", "),color:o.normal}])}c(t,"rrrlll")}if(e.filteredAssets>0){o.normal(" ");if(e.assets.length>0)o.normal("+ ");o.normal(e.filteredAssets);if(e.assets.length>0)o.normal(" hidden");o.normal(e.filteredAssets!==1?" assets":" asset");a()}const h=(e,t)=>{for(const s of Object.keys(e)){const n=e[s];o.normal(`${t} `);o.bold(s);if(n.isOverSizeLimit){o.normal(" ");o.yellow("[big]")}o.normal(" =");for(const e of n.assets){o.normal(" ");o.green(e)}for(const e of Object.keys(n.childAssets)){const t=n.childAssets[e];if(t&&t.length>0){o.normal(" ");o.magenta(`(${e}:`);for(const e of t){o.normal(" ");o.green(e)}o.magenta(")")}}a()}};if(e.entrypoints){h(e.entrypoints,"Entrypoint")}if(e.namedChunkGroups){let t=e.namedChunkGroups;if(e.entrypoints){t=Object.keys(t).filter(t=>!e.entrypoints[t]).reduce((t,s)=>{t[s]=e.namedChunkGroups[s];return t},{})}h(t,"Chunk Group")}const f={};if(e.modules){for(const t of e.modules){f[`$${t.identifier}`]=t}}else if(e.chunks){for(const t of e.chunks){if(t.modules){for(const e of t.modules){f[`$${e.identifier}`]=e}}}}const p=e=>{o.normal(" ");o.normal(r.formatSize(e.size));if(e.chunks){for(const t of e.chunks){o.normal(" {");o.yellow(t);o.normal("}")}}if(typeof e.depth==="number"){o.normal(` [depth ${e.depth}]`)}if(e.cacheable===false){o.red(" [not cacheable]")}if(e.optional){o.yellow(" [optional]")}if(e.built){o.green(" [built]")}if(e.assets&&e.assets.length){o.magenta(` [${e.assets.length} asset${e.assets.length===1?"":"s"}]`)}if(e.prefetched){o.magenta(" [prefetched]")}if(e.failed)o.red(" [failed]");if(e.warnings){o.yellow(` [${e.warnings} warning${e.warnings===1?"":"s"}]`)}if(e.errors){o.red(` [${e.errors} error${e.errors===1?"":"s"}]`)}};const m=(e,t)=>{if(Array.isArray(e.providedExports)){o.normal(t);if(e.providedExports.length===0){o.cyan("[no exports]")}else{o.cyan(`[exports: ${e.providedExports.join(", ")}]`)}a()}if(e.usedExports!==undefined){if(e.usedExports!==true){o.normal(t);if(e.usedExports===null){o.cyan("[used exports unknown]")}else if(e.usedExports===false){o.cyan("[no exports used]")}else if(Array.isArray(e.usedExports)&&e.usedExports.length===0){o.cyan("[no exports used]")}else if(Array.isArray(e.usedExports)){const t=Array.isArray(e.providedExports)?e.providedExports.length:null;if(t!==null&&t===e.usedExports.length){o.cyan("[all exports used]")}else{o.cyan(`[only some exports used: ${e.usedExports.join(", ")}]`)}}a()}}if(Array.isArray(e.optimizationBailout)){for(const s of e.optimizationBailout){o.normal(t);o.yellow(s);a()}}if(e.reasons){for(const s of e.reasons){o.normal(t);if(s.type){o.normal(s.type);o.normal(" ")}if(s.userRequest){o.cyan(s.userRequest);o.normal(" ")}if(s.moduleId!==null){o.normal("[");o.normal(s.moduleId);o.normal("]")}if(s.module&&s.module!==s.moduleId){o.normal(" ");o.magenta(s.module)}if(s.loc){o.normal(" ");o.normal(s.loc)}if(s.explanation){o.normal(" ");o.cyan(s.explanation)}a()}}if(e.profile){o.normal(t);let s=0;if(e.issuerPath){for(const t of e.issuerPath){o.normal("[");o.normal(t.id);o.normal("] ");if(t.profile){const e=(t.profile.factory||0)+(t.profile.building||0);i(e);s+=e;o.normal(" ")}o.normal("-> ")}}for(const t of Object.keys(e.profile)){o.normal(`${t}:`);const n=e.profile[t];i(n);o.normal(" ");s+=n}o.normal("= ");i(s);a()}if(e.modules){g(e,t+"| ")}};const g=(e,t)=>{if(e.modules){let s=0;for(const t of e.modules){if(typeof t.id==="number"){if(s=10)n+=" ";if(s>=100)n+=" ";if(s>=1e3)n+=" ";for(const r of e.modules){o.normal(t);const e=r.name||r.identifier;if(typeof r.id==="string"||typeof r.id==="number"){if(typeof r.id==="number"){if(r.id<1e3&&s>=1e3)o.normal(" ");if(r.id<100&&s>=100)o.normal(" ");if(r.id<10&&s>=10)o.normal(" ")}else{if(s>=1e3)o.normal(" ");if(s>=100)o.normal(" ");if(s>=10)o.normal(" ")}if(e!==r.id){o.normal("[");o.normal(r.id);o.normal("]");o.normal(" ")}else{o.normal("[");o.bold(r.id);o.normal("]")}}if(e!==r.id){o.bold(e)}p(r);a();m(r,n)}if(e.filteredModules>0){o.normal(t);o.normal(" ");if(e.modules.length>0)o.normal(" + ");o.normal(e.filteredModules);if(e.modules.length>0)o.normal(" hidden");o.normal(e.filteredModules!==1?" modules":" module");a()}}};if(e.chunks){for(const t of e.chunks){o.normal("chunk ");if(t.id<1e3)o.normal(" ");if(t.id<100)o.normal(" ");if(t.id<10)o.normal(" ");o.normal("{");o.yellow(t.id);o.normal("} ");o.green(t.files.join(", "));if(t.names&&t.names.length>0){o.normal(" (");o.normal(t.names.join(", "));o.normal(")")}o.normal(" ");o.normal(r.formatSize(t.size));for(const e of t.parents){o.normal(" <{");o.yellow(e);o.normal("}>")}for(const e of t.siblings){o.normal(" ={");o.yellow(e);o.normal("}=")}for(const e of t.children){o.normal(" >{");o.yellow(e);o.normal("}<")}if(t.childrenByOrder){for(const e of Object.keys(t.childrenByOrder)){const s=t.childrenByOrder[e];o.normal(" ");o.magenta(`(${e}:`);for(const e of s){o.normal(" {");o.yellow(e);o.normal("}")}o.magenta(")")}}if(t.entry){o.yellow(" [entry]")}else if(t.initial){o.yellow(" [initial]")}if(t.rendered){o.green(" [rendered]")}if(t.recorded){o.green(" [recorded]")}if(t.reason){o.yellow(` ${t.reason}`)}a();if(t.origins){for(const e of t.origins){o.normal(" > ");if(e.reasons&&e.reasons.length){o.yellow(e.reasons.join(" "));o.normal(" ")}if(e.request){o.normal(e.request);o.normal(" ")}if(e.module){o.normal("[");o.normal(e.moduleId);o.normal("] ");const t=f[`$${e.module}`];if(t){o.bold(t.name);o.normal(" ")}}if(e.loc){o.normal(e.loc)}a()}}g(t," ")}}g(e,"");if(e.logging){for(const t of Object.keys(e.logging)){const s=e.logging[t];if(s.entries.length>0){a();if(s.debug){o.red("DEBUG ")}o.bold("LOG from "+t);a();let e="";for(const t of s.entries){let s=o.normal;let n=" ";switch(t.type){case l.clear:o.normal(`${e}-------`);a();continue;case l.error:s=o.red;n=" ";break;case l.warn:s=o.yellow;n=" ";break;case l.info:s=o.green;n=" ";break;case l.log:s=o.bold;break;case l.trace:case l.debug:s=o.normal;break;case l.status:s=o.magenta;n=" ";break;case l.profile:s=o.magenta;n="

";break;case l.profileEnd:s=o.magenta;n="

";break;case l.time:s=o.magenta;n=" ";break;case l.group:s=o.cyan;n="<-> ";break;case l.groupCollapsed:s=o.cyan;n="<+> ";break;case l.groupEnd:if(e.length>=2)e=e.slice(0,e.length-2);continue}if(t.message){for(const r of t.message.split("\n")){o.normal(`${e}${n}`);s(r);a()}}if(t.trace){for(const s of t.trace){o.normal(`${e}| ${s}`);a()}}switch(t.type){case l.group:e+=" ";break}}if(s.filteredEntries){o.normal(`+ ${s.filteredEntries} hidden lines`);a()}}}}if(e._showWarnings&&e.warnings){for(const t of e.warnings){a();o.yellow(`WARNING in ${t}`);a()}}if(e._showErrors&&e.errors){for(const t of e.errors){a();o.red(`ERROR in ${t}`);a()}}if(e.children){for(const n of e.children){const e=Stats.jsonToString(n,t);if(e){if(n.name){o.normal("Child ");o.bold(n.name);o.normal(":")}else{o.normal("Child")}a();s.push(" ");s.push(e.replace(/\n/g,"\n "));a()}}}if(e.needAdditionalPass){o.yellow("Compilation needs an additional pass and will compile again.")}while(s[s.length-1]==="\n"){s.pop()}return s.join("")}static presetToOptions(e){const t=typeof e==="string"&&e.toLowerCase()||e||"none";switch(t){case"none":return{all:false};case"verbose":return{entrypoints:true,chunkGroups:true,modules:false,chunks:true,chunkModules:true,chunkOrigins:true,depth:true,env:true,reasons:true,usedExports:true,providedExports:true,optimizationBailout:true,errorDetails:true,publicPath:true,logging:"verbose",exclude:false,maxModules:Infinity};case"detailed":return{entrypoints:true,chunkGroups:true,chunks:true,chunkModules:false,chunkOrigins:true,depth:true,usedExports:true,providedExports:true,optimizationBailout:true,errorDetails:true,publicPath:true,logging:true,exclude:false,maxModules:Infinity};case"minimal":return{all:false,modules:true,maxModules:0,errors:true,warnings:true,logging:"warn"};case"errors-only":return{all:false,errors:true,moduleTrace:true,logging:"error"};case"errors-warnings":return{all:false,errors:true,warnings:true,logging:"warn"};default:return{}}}static getChildOptions(e,t){let s;if(Array.isArray(e.children)){if(t({parse:{...t},compress:typeof s==="boolean"?s:{...s},mangle:n==null?true:typeof n==="boolean"?n:{...n},output:{beautify:false,...o},sourceMap:null,ecma:e,keep_classnames:u,keep_fnames:c,ie8:l,module:r,nameCache:a,safari10:d,toplevel:i});function isObject(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")}const o=(e,t,s)=>{const n={};const r=t.output.comments;const{extractComments:o}=e;n.preserve=typeof r!=="undefined"?r:false;if(typeof o==="boolean"&&o){n.extract="some"}else if(typeof o==="string"||o instanceof RegExp){n.extract=o}else if(typeof o==="function"){n.extract=o}else if(isObject(o)){n.extract=typeof o.condition==="boolean"&&o.condition?"some":typeof o.condition!=="undefined"?o.condition:"some"}else{n.preserve=typeof r!=="undefined"?r:"some";n.extract=false}["preserve","extract"].forEach(e=>{let t;let s;switch(typeof n[e]){case"boolean":n[e]=n[e]?()=>true:()=>false;break;case"function":break;case"string":if(n[e]==="all"){n[e]=(()=>true);break}if(n[e]==="some"){n[e]=((e,t)=>{return(t.type==="comment2"||t.type==="comment1")&&/@preserve|@lic|@cc_on|^\**!/i.test(t.value)});break}t=n[e];n[e]=((e,s)=>{return new RegExp(t).test(s.value)});break;default:s=n[e];n[e]=((e,t)=>s.test(t.value))}});return(e,t)=>{if(n.extract(e,t)){const e=t.type==="comment2"?`/*${t.value}*/`:`//${t.value}`;if(!s.includes(e)){s.push(e)}}return n.preserve(e,t)}};async function minify(e){const{name:t,input:s,inputSourceMap:i,minify:a}=e;if(a){return a({[t]:s},i)}const l=r(e.terserOptions);if(i){l.sourceMap={asObject:true}}const u=[];l.output.comments=o(e,l,u);const c=await n({[t]:s},l);return{...c,extractedComments:u}}function transform(s){s=new Function("exports","require","module","__filename","__dirname",`'use strict'\nreturn ${s}`)(t,require,e,__filename,__dirname);return minify(s)}e.exports.minify=minify;e.exports.transform=transform},813:function(e){"use strict";const t=(e,...t)=>new Promise(s=>{s(e(...t))});e.exports=t;e.exports.default=t},832:function(e,t,s){"use strict";const n=s(622);const r=(e,t)=>{if(t.startsWith("./")||t.startsWith("../"))return n.join(e,t);return t};const o=e=>{if(/^\/.*\/$/.test(e)){return false}return/^(?:[a-z]:\\|\/)/i.test(e)};const i=e=>e.replace(/\\/g,"/");const a=(e,t)=>{return t.split(/([|! ])/).map(t=>o(t)?i(n.relative(e,t)):t).join("")};t.makePathsRelative=((e,t,s)=>{if(!s)return a(e,t);const n=s.relativePaths||(s.relativePaths=new Map);let r;let o=n.get(e);if(o===undefined){n.set(e,o=new Map)}else{r=o.get(t)}if(r!==undefined){return r}else{const s=a(e,t);o.set(t,s);return s}});t.contextify=((e,t)=>{return t.split("!").map(t=>{const s=t.split("?",2);if(/^[a-zA-Z]:\\/.test(s[0])){s[0]=n.win32.relative(e,s[0]);if(!/^[a-zA-Z]:\\/.test(s[0])){s[0]=s[0].replace(/\\/g,"/")}}if(/^\//.test(s[0])){s[0]=n.posix.relative(e,s[0])}if(!/^(\.\.\/|\/|[a-zA-Z]:\\)/.test(s[0])){s[0]="./"+s[0]}return s.join("?")}).join("!")});const l=(e,t)=>{return t.split("!").map(t=>r(e,t)).join("!")};t.absolutify=l},847:function(e,t,s){"use strict";const n=s(446);const r=/at ([a-zA-Z0-9_.]*)/;function createMessage(e){return`Abstract method${e?" "+e:""}. Must be overridden.`}function Message(){this.stack=undefined;Error.captureStackTrace(this);const e=this.stack.split("\n")[3].match(r);this.message=e&&e[1]?createMessage(e[1]):createMessage()}class AbstractMethodError extends n{constructor(){super((new Message).message);this.name="AbstractMethodError"}}e.exports=AbstractMethodError},886:function(e,t,s){"use strict";const n=s(669);const r=s(542);const o=s(656).intersect;const i=s(335);const a=s(174);let l=1e3;const u="Chunk.entry was removed. Use hasRuntime()";const c="Chunk.initial was removed. Use canBeInitial/isOnlyInitial()";const d=(e,t)=>{if(e.id{if(e.id{if(e.identifier()>t.identifier())return 1;if(e.identifier(){e.sort();let t="";for(const s of e){t+=s.identifier()+"#"}return t};const m=e=>Array.from(e);const g=e=>{let t=0;for(const s of e){t+=s.size()}return t};class Chunk{constructor(e){this.id=null;this.ids=null;this.debugId=l++;this.name=e;this.preventIntegration=false;this.entryModule=undefined;this._modules=new r(undefined,f);this.filenameTemplate=undefined;this._groups=new r(undefined,h);this.files=[];this.rendered=false;this.hash=undefined;this.contentHash=Object.create(null);this.renderedHash=undefined;this.chunkReason=undefined;this.extraAsync=false;this.removedModules=undefined}get entry(){throw new Error(u)}set entry(e){throw new Error(u)}get initial(){throw new Error(c)}set initial(e){throw new Error(c)}hasRuntime(){for(const e of this._groups){if(e.isInitial()&&e instanceof a&&e.getRuntimeChunk()===this){return true}}return false}canBeInitial(){for(const e of this._groups){if(e.isInitial())return true}return false}isOnlyInitial(){if(this._groups.size<=0)return false;for(const e of this._groups){if(!e.isInitial())return false}return true}hasEntryModule(){return!!this.entryModule}addModule(e){if(!this._modules.has(e)){this._modules.add(e);return true}return false}removeModule(e){if(this._modules.delete(e)){e.removeChunk(this);return true}return false}setModules(e){this._modules=new r(e,f)}getNumberOfModules(){return this._modules.size}get modulesIterable(){return this._modules}addGroup(e){if(this._groups.has(e))return false;this._groups.add(e);return true}removeGroup(e){if(!this._groups.has(e))return false;this._groups.delete(e);return true}isInGroup(e){return this._groups.has(e)}getNumberOfGroups(){return this._groups.size}get groupsIterable(){return this._groups}compareTo(e){if(this.name&&!e.name)return-1;if(!this.name&&e.name)return 1;if(this.namee.name)return 1;if(this._modules.size>e._modules.size)return-1;if(this._modules.sizeo)return 1}}containsModule(e){return this._modules.has(e)}getModules(){return this._modules.getFromCache(m)}getModulesIdent(){return this._modules.getFromUnorderedCache(p)}remove(e){for(const e of Array.from(this._modules)){e.removeChunk(this)}for(const e of this._groups){e.removeChunk(this)}}moveModule(e,t){i.disconnectChunkAndModule(this,e);i.connectChunkAndModule(t,e);e.rewriteChunkInReasons(this,[t])}integrate(e,t){if(!this.canBeIntegrated(e)){return false}if(this.name&&e.name){if(this.hasEntryModule()===e.hasEntryModule()){if(this.name.length!==e.name.length){this.name=this.name.length{const s=new Set(t.groupsIterable);for(const t of s){if(e.isInGroup(t))continue;if(t.isInitial())return false;for(const e of t.parentsIterable){s.add(e)}}return true};const s=this.hasRuntime();const n=e.hasRuntime();if(s!==n){if(s){return t(this,e)}else if(n){return t(e,this)}else{return false}}if(this.hasEntryModule()||e.hasEntryModule()){return false}return true}addMultiplierAndOverhead(e,t){const s=typeof t.chunkOverhead==="number"?t.chunkOverhead:1e4;const n=this.canBeInitial()?t.entryChunkMultiplicator||10:1;return e*n+s}modulesSize(){return this._modules.getFromUnorderedCache(g)}size(e={}){return this.addMultiplierAndOverhead(this.modulesSize(),e)}integratedSize(e,t){if(!this.canBeIntegrated(e)){return false}let s=this.modulesSize();for(const t of e._modules){if(!this._modules.has(t)){s+=t.size()}}return this.addMultiplierAndOverhead(s,t)}sortModules(e){this._modules.sortWith(e||d)}sortItems(){this.sortModules()}getAllAsyncChunks(){const e=new Set;const t=new Set;const s=o(Array.from(this.groupsIterable,e=>new Set(e.chunks)));for(const t of this.groupsIterable){for(const s of t.childrenIterable){e.add(s)}}for(const n of e){for(const e of n.chunks){if(!s.has(e)){t.add(e)}}for(const t of n.childrenIterable){e.add(t)}}return t}getChunkMaps(e){const t=Object.create(null);const s=Object.create(null);const n=Object.create(null);for(const r of this.getAllAsyncChunks()){t[r.id]=e?r.hash:r.renderedHash;for(const e of Object.keys(r.contentHash)){if(!s[e]){s[e]=Object.create(null)}s[e][r.id]=r.contentHash[e]}if(r.name){n[r.id]=r.name}}return{hash:t,contentHash:s,name:n}}getChildIdsByOrders(){const e=new Map;for(const t of this.groupsIterable){if(t.chunks[t.chunks.length-1]===this){for(const s of t.childrenIterable){if(typeof s.options==="object"){for(const t of Object.keys(s.options)){if(t.endsWith("Order")){const n=t.substr(0,t.length-"Order".length);let r=e.get(n);if(r===undefined)e.set(n,r=[]);r.push({order:s.options[t],group:s})}}}}}}const t=Object.create(null);for(const[s,n]of e){n.sort((e,t)=>{const s=t.order-e.order;if(s!==0)return s;if(e.group.compareTo){return e.group.compareTo(t.group)}return 0});t[s]=Array.from(n.reduce((e,t)=>{for(const s of t.group.chunks){e.add(s.id)}return e},new Set))}return t}getChildIdsByOrdersMap(e){const t=Object.create(null);const s=e=>{const s=e.getChildIdsByOrders();for(const n of Object.keys(s)){let r=t[n];if(r===undefined){t[n]=r=Object.create(null)}r[e.id]=s[n]}};if(e){const e=new Set;for(const t of this.groupsIterable){for(const s of t.chunks){e.add(s)}}for(const t of e){s(t)}}for(const e of this.getAllAsyncChunks()){s(e)}return t}getChunkModuleMaps(e){const t=Object.create(null);const s=Object.create(null);for(const n of this.getAllAsyncChunks()){let r;for(const o of n.modulesIterable){if(e(o)){if(r===undefined){r=[];t[n.id]=r}r.push(o.id);s[o.id]=o.renderedHash}}if(r!==undefined){r.sort()}}return{id:t,hash:s}}hasModuleInGraph(e,t){const s=new Set(this.groupsIterable);const n=new Set;for(const r of s){for(const s of r.chunks){if(!n.has(s)){n.add(s);if(!t||t(s)){for(const t of s.modulesIterable){if(e(t)){return true}}}}}for(const e of r.childrenIterable){s.add(e)}}return false}toString(){return`Chunk[${Array.from(this._modules).join()}]`}}Object.defineProperty(Chunk.prototype,"forEachModule",{configurable:false,value:n.deprecate(function(e){this._modules.forEach(e)},"Chunk.forEachModule: Use for(const module of chunk.modulesIterable) instead")});Object.defineProperty(Chunk.prototype,"mapModules",{configurable:false,value:n.deprecate(function(e){return Array.from(this._modules,e)},"Chunk.mapModules: Use Array.from(chunk.modulesIterable, fn) instead")});Object.defineProperty(Chunk.prototype,"chunks",{configurable:false,get(){throw new Error("Chunk.chunks: Use ChunkGroup.getChildren() instead")},set(){throw new Error("Chunk.chunks: Use ChunkGroup.add/removeChild() instead")}});Object.defineProperty(Chunk.prototype,"parents",{configurable:false,get(){throw new Error("Chunk.parents: Use ChunkGroup.getParents() instead")},set(){throw new Error("Chunk.parents: Use ChunkGroup.add/removeParent() instead")}});Object.defineProperty(Chunk.prototype,"blocks",{configurable:false,get(){throw new Error("Chunk.blocks: Use ChunkGroup.getBlocks() instead")},set(){throw new Error("Chunk.blocks: Use ChunkGroup.add/removeBlock() instead")}});Object.defineProperty(Chunk.prototype,"entrypoints",{configurable:false,get(){throw new Error("Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead")},set(){throw new Error("Chunk.entrypoints: Use Chunks.addGroup instead")}});e.exports=Chunk},960:function(e,t,s){"use strict";var n=s(46);var r=16;var o=generateUID();var i=new RegExp('(\\\\)?"@__(F|R|D|M|S|U|I|B)-'+o+'-(\\d+)__@"',"g");var a=/\{\s*\[native code\]\s*\}/g;var l=/function.*?\(/;var u=/.*?=>.*?/;var c=/[<>\/\u2028\u2029]/g;var d=["*","async"];var h={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};function escapeUnsafeChars(e){return h[e]}function generateUID(){var e=n(r);var t="";for(var s=0;s0});var r=n.filter(function(e){return d.indexOf(e)===-1});if(r.length>0){return(n.indexOf("async")>-1?"async ":"")+"function"+(n.join("").indexOf("*")>-1?"*":"")+t.substr(s)}return t}if(t.ignoreFunction&&typeof e==="function"){e=undefined}if(e===undefined){return String(e)}var y;if(t.isJSON&&!t.space){y=JSON.stringify(e)}else{y=JSON.stringify(e,t.isJSON?null:replacer,t.space)}if(typeof y!=="string"){return String(y)}if(t.unsafe!==true){y=y.replace(c,escapeUnsafeChars)}if(s.length===0&&n.length===0&&r.length===0&&h.length===0&&f.length===0&&p.length===0&&m.length===0&&g.length===0){return y}return y.replace(i,function(e,o,i,a){if(o){return e}if(i==="D"){return'new Date("'+r[a].toISOString()+'")'}if(i==="R"){return"new RegExp("+serialize(n[a].source)+', "'+n[a].flags+'")'}if(i==="M"){return"new Map("+serialize(Array.from(h[a].entries()),t)+")"}if(i==="S"){return"new Set("+serialize(Array.from(f[a].values()),t)+")"}if(i==="U"){return"undefined"}if(i==="I"){return m[a]}if(i==="B"){return'BigInt("'+g[a]+'")'}var l=s[a];return serializeFunc(l)})}},966:function(e,t,s){const{ConcatSource:n}=s(745);const r=s(591);const o="a".charCodeAt(0);const i="A".charCodeAt(0);const a="z".charCodeAt(0)-o+1;const l=/^function\s?\(\)\s?\{\r?\n?|\r?\n?\}$/g;const u=/^\t/gm;const c=/\r?\n/g;const d=/^([^a-zA-Z$_])/;const h=/[^a-zA-Z0-9$]+/g;const f=/\*\//g;const p=/[^a-zA-Z0-9_!§$()=\-^°]+/g;const m=/^-|-$/g;const g=(e,t)=>{const s=e.id+"";const n=t.id+"";if(sn)return 1;return 0};class Template{static getFunctionContent(e){return e.toString().replace(l,"").replace(u,"").replace(c,"\n")}static toIdentifier(e){if(typeof e!=="string")return"";return e.replace(d,"_$1").replace(h,"_")}static toComment(e){if(!e)return"";return`/*! ${e.replace(f,"* /")} */`}static toNormalComment(e){if(!e)return"";return`/* ${e.replace(f,"* /")} */`}static toPath(e){if(typeof e!=="string")return"";return e.replace(p,"-").replace(m,"")}static numberToIdentifer(e){if(en.id)s=n.id}if(s<16+(""+s).length){s=0}const n=e.map(e=>(e.id+"").length+2).reduce((e,t)=>e+t,-1);const r=s===0?t:16+(""+s).length+t;return r{return{id:t.id,source:s.render(t,o,{chunk:e})}});if(u&&u.length>0){for(const e of u){c.push({id:e,source:"false"})}}const d=Template.getModulesArrayBounds(c);if(d){const e=d[0];const t=d[1];if(e!==0){a.add(`Array(${e}).concat(`)}a.add("[\n");const s=new Map;for(const e of c){s.set(e.id,e)}for(let n=e;n<=t;n++){const t=s.get(n);if(n!==e){a.add(",\n")}a.add(`/* ${n} */`);if(t){a.add("\n");a.add(t.source)}}a.add("\n"+i+"]");if(e!==0){a.add(")")}}else{a.add("{\n");c.sort(g).forEach((e,t)=>{if(t!==0){a.add(",\n")}a.add(`\n/***/ ${JSON.stringify(e.id)}:\n`);a.add(e.source)});a.add(`\n\n${i}}`)}return a}}e.exports=Template},980:function(e,t,s){"use strict";const n=s(343);const r=s(669);const{CachedSource:o}=s(745);const{Tapable:i,SyncHook:a,SyncBailHook:l,SyncWaterfallHook:u,AsyncSeriesHook:c}=s(75);const d=s(638);const h=s(645);const f=s(647);const p=s(59);const m=s(773);const g=s(886);const y=s(174);const k=s(503);const b=s(55);const w=s(408);const _=s(216);const v=s(48);const x=s(207);const $=s(788);const E=s(393);const M=s(486);const O=s(542);const A=s(335);const S=s(742);const C=s(463);const{Logger:j,LogType:T}=s(225);const I=s(102);const D=s(510);const P=s(446);const R=(e,t)=>{if(typeof e.id!==typeof t.id){return typeof e.idt.id)return 1;return 0};const H=(e,t)=>{if(typeof e.id!==typeof t.id){return typeof e.idt.id)return 1;const s=e.identifier();const n=t.identifier();if(sn)return 1;return 0};const z=(e,t)=>{if(e.indext.index)return 1;const s=e.identifier();const n=t.identifier();if(sn)return 1;return 0};const q=(e,t)=>{if(e.namet.name)return 1;if(e.fullHasht.fullHash)return 1;return 0};const B=(e,t)=>{for(let s=0;s{for(let s=0;s{for(const s of t){e.add(s)}};const N=(e,t)=>{if(e===t)return true;let s=e.source();let n=t.source();if(s===n)return true;if(typeof s==="string"&&typeof n==="string")return false;if(!Buffer.isBuffer(s))s=Buffer.from(s,"utf-8");if(!Buffer.isBuffer(n))n=Buffer.from(n,"utf-8");return s.equals(n)};class Compilation extends i{constructor(e){super();this.hooks={buildModule:new a(["module"]),rebuildModule:new a(["module"]),failedModule:new a(["module","error"]),succeedModule:new a(["module"]),addEntry:new a(["entry","name"]),failedEntry:new a(["entry","name","error"]),succeedEntry:new a(["entry","name","module"]),dependencyReference:new u(["dependencyReference","dependency","module"]),finishModules:new c(["modules"]),finishRebuildingModule:new a(["module"]),unseal:new a([]),seal:new a([]),beforeChunks:new a([]),afterChunks:new a(["chunks"]),optimizeDependenciesBasic:new l(["modules"]),optimizeDependencies:new l(["modules"]),optimizeDependenciesAdvanced:new l(["modules"]),afterOptimizeDependencies:new a(["modules"]),optimize:new a([]),optimizeModulesBasic:new l(["modules"]),optimizeModules:new l(["modules"]),optimizeModulesAdvanced:new l(["modules"]),afterOptimizeModules:new a(["modules"]),optimizeChunksBasic:new l(["chunks","chunkGroups"]),optimizeChunks:new l(["chunks","chunkGroups"]),optimizeChunksAdvanced:new l(["chunks","chunkGroups"]),afterOptimizeChunks:new a(["chunks","chunkGroups"]),optimizeTree:new c(["chunks","modules"]),afterOptimizeTree:new a(["chunks","modules"]),optimizeChunkModulesBasic:new l(["chunks","modules"]),optimizeChunkModules:new l(["chunks","modules"]),optimizeChunkModulesAdvanced:new l(["chunks","modules"]),afterOptimizeChunkModules:new a(["chunks","modules"]),shouldRecord:new l([]),reviveModules:new a(["modules","records"]),optimizeModuleOrder:new a(["modules"]),advancedOptimizeModuleOrder:new a(["modules"]),beforeModuleIds:new a(["modules"]),moduleIds:new a(["modules"]),optimizeModuleIds:new a(["modules"]),afterOptimizeModuleIds:new a(["modules"]),reviveChunks:new a(["chunks","records"]),optimizeChunkOrder:new a(["chunks"]),beforeChunkIds:new a(["chunks"]),optimizeChunkIds:new a(["chunks"]),afterOptimizeChunkIds:new a(["chunks"]),recordModules:new a(["modules","records"]),recordChunks:new a(["chunks","records"]),beforeHash:new a([]),contentHash:new a(["chunk"]),afterHash:new a([]),recordHash:new a(["records"]),record:new a(["compilation","records"]),beforeModuleAssets:new a([]),shouldGenerateChunkAssets:new l([]),beforeChunkAssets:new a([]),additionalChunkAssets:new a(["chunks"]),additionalAssets:new c([]),optimizeChunkAssets:new c(["chunks"]),afterOptimizeChunkAssets:new a(["chunks"]),optimizeAssets:new c(["assets"]),afterOptimizeAssets:new a(["assets"]),needAdditionalSeal:new l([]),afterSeal:new c([]),chunkHash:new a(["chunk","chunkHash"]),moduleAsset:new a(["module","filename"]),chunkAsset:new a(["chunk","filename"]),assetPath:new u(["filename","data"]),needAdditionalPass:new l([]),childCompiler:new a(["childCompiler","compilerName","compilerIndex"]),log:new l(["origin","logEntry"]),normalModuleLoader:new a(["loaderContext","module"]),optimizeExtractedChunksBasic:new l(["chunks"]),optimizeExtractedChunks:new l(["chunks"]),optimizeExtractedChunksAdvanced:new l(["chunks"]),afterOptimizeExtractedChunks:new a(["chunks"])};this._pluginCompat.tap("Compilation",e=>{switch(e.name){case"optimize-tree":case"additional-assets":case"optimize-chunk-assets":case"optimize-assets":case"after-seal":e.async=true;break}});this.name=undefined;this.compiler=e;this.resolverFactory=e.resolverFactory;this.inputFileSystem=e.inputFileSystem;this.requestShortener=e.requestShortener;const t=e.options;this.options=t;this.outputOptions=t&&t.output;this.bail=t&&t.bail;this.profile=t&&t.profile;this.performance=t&&t.performance;this.mainTemplate=new k(this.outputOptions);this.chunkTemplate=new b(this.outputOptions);this.hotUpdateChunkTemplate=new w(this.outputOptions);this.runtimeTemplate=new v(this.outputOptions,this.requestShortener);this.moduleTemplates={javascript:new _(this.runtimeTemplate,"javascript"),webassembly:new _(this.runtimeTemplate,"webassembly")};this.semaphore=new E(t.parallelism||100);this.entries=[];this._preparedEntrypoints=[];this.entrypoints=new Map;this.chunks=[];this.chunkGroups=[];this.namedChunkGroups=new Map;this.namedChunks=new Map;this.modules=[];this._modules=new Map;this.cache=null;this.records=null;this.additionalChunkAssets=[];this.assets={};this.assetsInfo=new Map;this.errors=[];this.warnings=[];this.children=[];this.logging=new Map;this.dependencyFactories=new Map;this.dependencyTemplates=new Map;this.dependencyTemplates.set("hash","");this.childrenCounters={};this.usedChunkIds=null;this.usedModuleIds=null;this.fileTimestamps=undefined;this.contextTimestamps=undefined;this.compilationDependencies=undefined;this._buildingModules=new Map;this._rebuildingModules=new Map;this.emittedAssets=new Set}getStats(){return new $(this)}getLogger(e){if(!e){throw new TypeError("Compilation.getLogger(name) called without a name")}let t;return new j((s,n)=>{if(typeof e==="function"){e=e();if(!e){throw new TypeError("Compilation.getLogger(name) called with a function not returning a name")}}let r;switch(s){case T.warn:case T.error:case T.trace:r=I.cutOffLoaderExecution(new Error("Trace").stack).split("\n").slice(3);break}const o={time:Date.now(),type:s,args:n,trace:r};if(this.hooks.log.call(e,o)===undefined){if(o.type===T.profileEnd){if(typeof console.profileEnd==="function"){console.profileEnd(`[${e}] ${o.args[0]}`)}}if(t===undefined){t=this.logging.get(e);if(t===undefined){t=[];this.logging.set(e,t)}}t.push(o);if(o.type===T.profile){if(typeof console.profile==="function"){console.profile(`[${e}] ${o.args[0]}`)}}}})}addModule(e,t){const s=e.identifier();const n=this._modules.get(s);if(n){return{module:n,issuer:false,build:false,dependencies:false}}const r=(t||"m")+s;if(this.cache&&this.cache[r]){const t=this.cache[r];if(typeof t.updateCacheModule==="function"){t.updateCacheModule(e)}let n=true;if(this.fileTimestamps&&this.contextTimestamps){n=t.needRebuild(this.fileTimestamps,this.contextTimestamps)}if(!n){t.disconnect();this._modules.set(s,t);this.modules.push(t);for(const e of t.errors){this.errors.push(e)}for(const e of t.warnings){this.warnings.push(e)}return{module:t,issuer:true,build:false,dependencies:true}}t.unbuild();e=t}this._modules.set(s,e);if(this.cache){this.cache[r]=e}this.modules.push(e);return{module:e,issuer:true,build:true,dependencies:true}}getModule(e){const t=e.identifier();return this._modules.get(t)}findModule(e){return this._modules.get(e)}waitForBuildingFinished(e,t){let s=this._buildingModules.get(e);if(s){s.push(()=>t())}else{process.nextTick(t)}}buildModule(e,t,s,n,r){let o=this._buildingModules.get(e);if(o){o.push(r);return}this._buildingModules.set(e,o=[r]);const i=t=>{this._buildingModules.delete(e);for(const e of o){e(t)}};this.hooks.buildModule.call(e);e.build(this.options,this,this.resolverFactory.get("normal",e.resolveOptions),this.inputFileSystem,r=>{const o=e.errors;for(let e=0;e{e.set(t,s);return e},new Map);e.dependencies.sort((e,t)=>{const s=C(e.loc,t.loc);if(s)return s;return l.get(e)-l.get(t)});if(r){this.hooks.failedModule.call(e,r);return i(r)}this.hooks.succeedModule.call(e);return i()})}processModuleDependencies(e,t){const s=new Map;const n=e=>{const t=e.getResourceIdentifier();if(t){const n=this.dependencyFactories.get(e.constructor);if(n===undefined){throw new Error(`No module factory available for dependency type: ${e.constructor.name}`)}let r=s.get(n);if(r===undefined){s.set(n,r=new Map)}let o=r.get(t);if(o===undefined)r.set(t,o=[]);o.push(e)}};const r=e=>{if(e.dependencies){F(e.dependencies,n)}if(e.blocks){F(e.blocks,r)}if(e.variables){B(e.variables,n)}};try{r(e)}catch(e){t(e)}const o=[];for(const e of s){for(const t of e[1]){o.push({factory:e[0],dependencies:t[1]})}}this.addModuleDependencies(e,o,this.bail,null,true,t)}addModuleDependencies(e,t,s,r,o,i){const a=this.profile&&Date.now();const l=this.profile&&{};n.forEach(t,(t,n)=>{const i=t.dependencies;const u=t=>{t.origin=e;t.dependencies=i;this.errors.push(t);if(s){n(t)}else{n()}};const c=t=>{t.origin=e;this.warnings.push(t);n()};const d=this.semaphore;d.acquire(()=>{const s=t.factory;s.create({contextInfo:{issuer:e.nameForCondition&&e.nameForCondition(),compiler:this.compiler.name},resolveOptions:e.resolveOptions,context:e.context,dependencies:i},(t,s)=>{let f;const p=()=>{return i.every(e=>e.optional)};const m=e=>{if(p()){return c(e)}else{return u(e)}};if(t){d.release();return m(new h(e,t))}if(!s){d.release();return process.nextTick(n)}if(l){f=Date.now();l.factory=f-a}const g=t=>{for(let n=0;n{if(o&&y.dependencies){this.processModuleDependencies(s,n)}else{return n()}};if(y.issuer){if(l){s.profile=l}s.issuer=e}else{if(this.profile){if(e.profile){const t=Date.now()-a;if(!e.profile.dependencies||t>e.profile.dependencies){e.profile.dependencies=t}}}}if(y.build){this.buildModule(s,p(),e,i,e=>{if(e){d.release();return m(e)}if(l){const e=Date.now();l.building=e-f}d.release();k()})}else{d.release();this.waitForBuildingFinished(s,k)}})})},e=>{if(e){e.stack=e.stack;return i(e)}return process.nextTick(i)})}_addModuleChain(e,t,s,n){const r=this.profile&&Date.now();const o=this.profile&&{};const i=this.bail?e=>{n(e)}:e=>{e.dependencies=[t];this.errors.push(e);n()};if(typeof t!=="object"||t===null||!t.constructor){throw new Error("Parameter 'dependency' must be a Dependency")}const a=t.constructor;const l=this.dependencyFactories.get(a);if(!l){throw new Error(`No dependency factory available for this dependency type: ${t.constructor.name}`)}this.semaphore.acquire(()=>{l.create({contextInfo:{issuer:"",compiler:this.compiler.name},context:e,dependencies:[t]},(e,a)=>{if(e){this.semaphore.release();return i(new d(e))}let l;if(o){l=Date.now();o.factory=l-r}const u=this.addModule(a);a=u.module;s(a);t.module=a;a.addReason(null,t);const c=()=>{if(u.dependencies){this.processModuleDependencies(a,e=>{if(e)return n(e);n(null,a)})}else{return n(null,a)}};if(u.issuer){if(o){a.profile=o}}if(u.build){this.buildModule(a,false,null,null,e=>{if(e){this.semaphore.release();return i(e)}if(o){const e=Date.now();o.building=e-l}this.semaphore.release();c()})}else{this.semaphore.release();this.waitForBuildingFinished(a,c)}})})}addEntry(e,t,s,n){this.hooks.addEntry.call(t,s);const r={name:s,request:null,module:null};if(t instanceof S){r.request=t.request}const o=this._preparedEntrypoints.findIndex(e=>e.name===s);if(o>=0){this._preparedEntrypoints[o]=r}else{this._preparedEntrypoints.push(r)}this._addModuleChain(e,t,e=>{this.entries.push(e)},(e,o)=>{if(e){this.hooks.failedEntry.call(t,s,e);return n(e)}if(o){r.module=o}else{const e=this._preparedEntrypoints.indexOf(r);if(e>=0){this._preparedEntrypoints.splice(e,1)}}this.hooks.succeedEntry.call(t,s,o);return n(null,o)})}prefetch(e,t,s){this._addModuleChain(e,t,e=>{e.prefetched=true},s)}rebuildModule(e,t){let s=this._rebuildingModules.get(e);if(s){s.push(t);return}this._rebuildingModules.set(e,s=[t]);const n=t=>{this._rebuildingModules.delete(e);for(const e of s){e(t)}};this.hooks.rebuildModule.call(e);const r=e.dependencies.slice();const o=e.variables.slice();const i=e.blocks.slice();e.unbuild();this.buildModule(e,false,e,null,t=>{if(t){this.hooks.finishRebuildingModule.call(e);return n(t)}this.processModuleDependencies(e,t=>{if(t)return n(t);this.removeReasonsOfDependencyBlock(e,{dependencies:r,variables:o,blocks:i});this.hooks.finishRebuildingModule.call(e);n()})})}finish(e){const t=this.modules;this.hooks.finishModules.callAsync(t,s=>{if(s)return e(s);for(let e=0;e{if(t){return e(t)}this.hooks.afterOptimizeTree.call(this.chunks,this.modules);while(this.hooks.optimizeChunkModulesBasic.call(this.chunks,this.modules)||this.hooks.optimizeChunkModules.call(this.chunks,this.modules)||this.hooks.optimizeChunkModulesAdvanced.call(this.chunks,this.modules)){}this.hooks.afterOptimizeChunkModules.call(this.chunks,this.modules);const s=this.hooks.shouldRecord.call()!==false;this.hooks.reviveModules.call(this.modules,this.records);this.hooks.optimizeModuleOrder.call(this.modules);this.hooks.advancedOptimizeModuleOrder.call(this.modules);this.hooks.beforeModuleIds.call(this.modules);this.hooks.moduleIds.call(this.modules);this.applyModuleIds();this.hooks.optimizeModuleIds.call(this.modules);this.hooks.afterOptimizeModuleIds.call(this.modules);this.sortItemsWithModuleIds();this.hooks.reviveChunks.call(this.chunks,this.records);this.hooks.optimizeChunkOrder.call(this.chunks);this.hooks.beforeChunkIds.call(this.chunks);this.applyChunkIds();this.hooks.optimizeChunkIds.call(this.chunks);this.hooks.afterOptimizeChunkIds.call(this.chunks);this.sortItemsWithChunkIds();if(s){this.hooks.recordModules.call(this.modules,this.records);this.hooks.recordChunks.call(this.chunks,this.records)}this.hooks.beforeHash.call();this.createHash();this.hooks.afterHash.call();if(s){this.hooks.recordHash.call(this.records)}this.hooks.beforeModuleAssets.call();this.createModuleAssets();if(this.hooks.shouldGenerateChunkAssets.call()!==false){this.hooks.beforeChunkAssets.call();this.createChunkAssets()}this.hooks.additionalChunkAssets.call(this.chunks);this.summarizeDependencies();if(s){this.hooks.record.call(this,this.records)}this.hooks.additionalAssets.callAsync(t=>{if(t){return e(t)}this.hooks.optimizeChunkAssets.callAsync(this.chunks,t=>{if(t){return e(t)}this.hooks.afterOptimizeChunkAssets.call(this.chunks);this.hooks.optimizeAssets.callAsync(this.assets,t=>{if(t){return e(t)}this.hooks.afterOptimizeAssets.call(this.assets);if(this.hooks.needAdditionalSeal.call()){this.unseal();return this.seal(e)}return this.hooks.afterSeal.callAsync(e)})})})})}sortModules(e){e.sort(z)}reportDependencyErrorsAndWarnings(e,t){for(let s=0;s{const n=e.depth;if(typeof n==="number"&&n<=s)return;t.add(e);e.depth=s};const r=e=>{if(e.module){n(e.module)}};const o=e=>{if(e.variables){B(e.variables,r)}if(e.dependencies){F(e.dependencies,r)}if(e.blocks){F(e.blocks,o)}};for(e of t){t.delete(e);s=e.depth;s++;o(e)}}getDependencyReference(e,t){if(typeof t.getReference!=="function")return null;const s=t.getReference();if(!s)return null;return this.hooks.dependencyReference.call(s,t,e)}removeReasonsOfDependencyBlock(e,t){const s=t=>{if(!t.module){return}if(t.module.removeReason(e,t)){for(const e of t.module.chunksIterable){this.patchChunksAfterReasonRemoval(t.module,e)}}};if(t.blocks){F(t.blocks,t=>this.removeReasonsOfDependencyBlock(e,t))}if(t.dependencies){F(t.dependencies,s)}if(t.variables){B(t.variables,s)}}patchChunksAfterReasonRemoval(e,t){if(!e.hasReasons()){this.removeReasonsOfDependencyBlock(e,e)}if(!e.hasReasonForChunk(t)){if(e.removeChunk(t)){this.removeChunkFromDependencies(e,t)}}}removeChunkFromDependencies(e,t){const s=e=>{if(!e.module){return}this.patchChunksAfterReasonRemoval(e.module,t)};const n=e.blocks;for(let t=0;t0){let n=-1;for(const e of s){if(typeof e!=="number"){continue}n=Math.max(n,e)}let r=t=n+1;while(r--){if(!s.has(r)){e.push(r)}}}const r=this.modules;for(let s=0;s0){n.id=e.pop()}else{n.id=t++}}}}applyChunkIds(){const e=new Set;if(this.usedChunkIds){for(const t of this.usedChunkIds){if(typeof t!=="number"){continue}e.add(t)}}const t=this.chunks;for(let s=0;s0){let t=s;while(t--){if(!e.has(t)){n.push(t)}}}for(let e=0;e0){r.id=n.pop()}else{r.id=s++}}if(!r.ids){r.ids=[r.id]}}}sortItemsWithModuleIds(){this.modules.sort(H);const e=this.modules;for(let t=0;te.compareTo(t))}sortItemsWithChunkIds(){for(const e of this.chunkGroups){e.sortItems()}this.chunks.sort(R);for(let e=0;e{const s=`${e.message}`;const n=`${t.message}`;if(s{const s=e.hasRuntime();const n=t.hasRuntime();if(s&&!n)return 1;if(!s&&n)return-1;return R(e,t)});for(let o=0;oe[1].toUpperCase())].call(...t)},"Compilation.applyPlugins is deprecated. Use new API on `.hooks` instead");Object.defineProperty(Compilation.prototype,"moduleTemplate",{configurable:false,get:r.deprecate(function(){return this.moduleTemplates.javascript},"Compilation.moduleTemplate: Use Compilation.moduleTemplates.javascript instead"),set:r.deprecate(function(e){this.moduleTemplates.javascript=e},"Compilation.moduleTemplate: Use Compilation.moduleTemplates.javascript instead.")});e.exports=Compilation}},function(e){"use strict";!function(){e.nmd=function(e){e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});return e}}()}); \ No newline at end of file +module.exports=function(e,t){"use strict";var s={};function __webpack_require__(t){if(s[t]){return s[t].exports}var n=s[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(470)}t(__webpack_require__);return startup()}({43:function(e,t,s){"use strict";const n=s(446);class AsyncDependencyToInitialChunkError extends n{constructor(e,t,s){super(`It's not allowed to load an initial chunk on demand. The chunk name "${e}" is already used by an entrypoint.`);this.name="AsyncDependencyToInitialChunkError";this.module=t;this.loc=s;Error.captureStackTrace(this,this.constructor)}}e.exports=AsyncDependencyToInitialChunkError},46:function(e,t,s){e.exports=s(417).randomBytes},48:function(e,t,s){"use strict";const n=s(966);e.exports=class RuntimeTemplate{constructor(e,t){this.outputOptions=e||{};this.requestShortener=t}comment({request:e,chunkName:t,chunkReason:s,message:r,exportName:o}){let i;if(this.outputOptions.pathinfo){i=[r,e,t,s].filter(Boolean).map(e=>this.requestShortener.shorten(e)).join(" | ")}else{i=[r,t,s].filter(Boolean).map(e=>this.requestShortener.shorten(e)).join(" | ")}if(!i)return"";if(this.outputOptions.pathinfo){return n.toComment(i)+" "}else{return n.toNormalComment(i)+" "}}throwMissingModuleErrorFunction({request:e}){const t=`Cannot find module '${e}'`;return`function webpackMissingModule() { var e = new Error(${JSON.stringify(t)}); e.code = 'MODULE_NOT_FOUND'; throw e; }`}missingModule({request:e}){return`!(${this.throwMissingModuleErrorFunction({request:e})}())`}missingModuleStatement({request:e}){return`${this.missingModule({request:e})};\n`}missingModulePromise({request:e}){return`Promise.resolve().then(${this.throwMissingModuleErrorFunction({request:e})})`}moduleId({module:e,request:t}){if(!e){return this.missingModule({request:t})}if(e.id===null){throw new Error(`RuntimeTemplate.moduleId(): Module ${e.identifier()} has no id. This should not happen.`)}return`${this.comment({request:t})}${JSON.stringify(e.id)}`}moduleRaw({module:e,request:t}){if(!e){return this.missingModule({request:t})}return`__webpack_require__(${this.moduleId({module:e,request:t})})`}moduleExports({module:e,request:t}){return this.moduleRaw({module:e,request:t})}moduleNamespace({module:e,request:t,strict:s}){if(!e){return this.missingModule({request:t})}const n=this.moduleId({module:e,request:t});const r=e.buildMeta&&e.buildMeta.exportsType;if(r==="namespace"){const s=this.moduleRaw({module:e,request:t});return s}else if(r==="named"){return`__webpack_require__.t(${n}, 3)`}else if(s){return`__webpack_require__.t(${n}, 1)`}else{return`__webpack_require__.t(${n}, 7)`}}moduleNamespacePromise({block:e,module:t,request:s,message:n,strict:r,weak:o}){if(!t){return this.missingModulePromise({request:s})}if(t.id===null){throw new Error(`RuntimeTemplate.moduleNamespacePromise(): Module ${t.identifier()} has no id. This should not happen.`)}const i=this.blockPromise({block:e,message:n});let a;let l=JSON.stringify(t.id);const u=this.comment({request:s});let c="";if(o){if(l.length>8){c+=`var id = ${l}; `;l="id"}c+=`if(!__webpack_require__.m[${l}]) { var e = new Error("Module '" + ${l} + "' is not available (weak dependency)"); e.code = 'MODULE_NOT_FOUND'; throw e; } `}const d=this.moduleId({module:t,request:s});const h=t.buildMeta&&t.buildMeta.exportsType;if(h==="namespace"){if(c){const e=this.moduleRaw({module:t,request:s});a=`function() { ${c}return ${e}; }`}else{a=`__webpack_require__.bind(null, ${u}${l})`}}else if(h==="named"){if(c){a=`function() { ${c}return __webpack_require__.t(${d}, 3); }`}else{a=`__webpack_require__.t.bind(null, ${u}${l}, 3)`}}else if(r){if(c){a=`function() { ${c}return __webpack_require__.t(${d}, 1); }`}else{a=`__webpack_require__.t.bind(null, ${u}${l}, 1)`}}else{if(c){a=`function() { ${c}return __webpack_require__.t(${d}, 7); }`}else{a=`__webpack_require__.t.bind(null, ${u}${l}, 7)`}}return`${i||"Promise.resolve()"}.then(${a})`}importStatement({update:e,module:t,request:s,importVar:n,originModule:r}){if(!t){return this.missingModuleStatement({request:s})}const o=this.moduleId({module:t,request:s});const i=e?"":"var ";const a=t.buildMeta&&t.buildMeta.exportsType;let l=`/* harmony import */ ${i}${n} = __webpack_require__(${o});\n`;if(!a&&!r.buildMeta.strictHarmonyModule){l+=`/* harmony import */ ${i}${n}_default = /*#__PURE__*/__webpack_require__.n(${n});\n`}if(a==="named"){if(Array.isArray(t.buildMeta.providedExports)){l+=`${i}${n}_namespace = /*#__PURE__*/__webpack_require__.t(${o}, 1);\n`}else{l+=`${i}${n}_namespace = /*#__PURE__*/__webpack_require__.t(${o});\n`}}return l}exportFromImport({module:e,request:t,exportName:s,originModule:r,asiSafe:o,isCall:i,callContext:a,importVar:l}){if(!e){return this.missingModule({request:t})}const u=e.buildMeta&&e.buildMeta.exportsType;if(!u){if(s==="default"){if(!r.buildMeta.strictHarmonyModule){if(i){return`${l}_default()`}else if(o){return`(${l}_default())`}else{return`${l}_default.a`}}else{return l}}else if(r.buildMeta.strictHarmonyModule){if(s){return"/* non-default import from non-esm module */undefined"}else{return`/*#__PURE__*/__webpack_require__.t(${l})`}}}if(u==="named"){if(s==="default"){return l}else if(!s){return`${l}_namespace`}}if(s){const t=e.isUsed(s);if(!t){const e=n.toNormalComment(`unused export ${s}`);return`${e} undefined`}const r=t!==s?n.toNormalComment(s)+" ":"";const u=`${l}[${r}${JSON.stringify(t)}]`;if(i){if(a===false&&o){return`(0,${u})`}else if(a===false){return`Object(${u})`}}return u}else{return l}}blockPromise({block:e,message:t}){if(!e||!e.chunkGroup||e.chunkGroup.chunks.length===0){const e=this.comment({message:t});return`Promise.resolve(${e.trim()})`}const s=e.chunkGroup.chunks.filter(e=>!e.hasRuntime()&&e.id!==null);const n=this.comment({message:t,chunkName:e.chunkName,chunkReason:e.chunkReason});if(s.length===1){const e=JSON.stringify(s[0].id);return`__webpack_require__.e(${n}${e})`}else if(s.length>0){const e=e=>`__webpack_require__.e(${JSON.stringify(e.id)})`;return`Promise.all(${n.trim()}[${s.map(e).join(", ")}])`}else{return`Promise.resolve(${n.trim()})`}}onError(){return"__webpack_require__.oe"}defineEsModuleFlagStatement({exportsArgument:e}){return`__webpack_require__.r(${e});\n`}}},51:function(e,t,s){"use strict";const n=s(669);const r=s(554);function Tapable(){this._pluginCompat=new r(["options"]);this._pluginCompat.tap({name:"Tapable camelCase",stage:100},e=>{e.names.add(e.name.replace(/[- ]([a-z])/g,(e,t)=>t.toUpperCase()))});this._pluginCompat.tap({name:"Tapable this.hooks",stage:200},e=>{let t;for(const s of e.names){t=this.hooks[s];if(t!==undefined){break}}if(t!==undefined){const s={name:e.fn.name||"unnamed compat plugin",stage:e.stage||0};if(e.async)t.tapAsync(s,e.fn);else t.tap(s,e.fn);return true}})}e.exports=Tapable;Tapable.addCompatLayer=function addCompatLayer(e){Tapable.call(e);e.plugin=Tapable.prototype.plugin;e.apply=Tapable.prototype.apply};Tapable.prototype.plugin=n.deprecate(function plugin(e,t){if(Array.isArray(e)){e.forEach(function(e){this.plugin(e,t)},this);return}const s=this._pluginCompat.call({name:e,fn:t,names:new Set([e])});if(!s){throw new Error(`Plugin could not be registered at '${e}'. Hook was not found.\n`+"BREAKING CHANGE: There need to exist a hook at 'this.hooks'. "+"To create a compatibility layer for this hook, hook into 'this._pluginCompat'.")}},"Tapable.plugin is deprecated. Use new API on `.hooks` instead");Tapable.prototype.apply=n.deprecate(function apply(){for(var e=0;ee(s)+r(true),onDone:t})}}const o=new AsyncParallelHookCodeFactory;class AsyncParallelHook extends n{compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncParallelHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncParallelHook},102:function(e,t){"use strict";const s="LOADER_EXECUTION";const n="WEBPACK_OPTIONS";t.cutOffByFlag=((e,t)=>{e=e.split("\n");for(let s=0;st.cutOffByFlag(e,s));t.cutOffWebpackOptions=(e=>t.cutOffByFlag(e,n));t.cutOffMultilineMessage=((e,t)=>{e=e.split("\n");t=t.split("\n");return e.reduce((e,s,n)=>s.includes(t[n])?e:e.concat(s),[]).join("\n")});t.cutOffMessage=((e,t)=>{const s=e.indexOf("\n");if(s===-1){return e===t?"":e}else{const n=e.substr(0,s);return n===t?e.substr(s+1):e}});t.cleanUp=((e,s)=>{e=t.cutOffLoaderExecution(e);e=t.cutOffMessage(e,s);return e});t.cleanUpWebpackOptions=((e,s)=>{e=t.cutOffWebpackOptions(e);e=t.cutOffMultilineMessage(e,s);return e})},122:function(e,t){"use strict";const s=t;s.formatSize=(e=>{if(typeof e!=="number"||Number.isNaN(e)===true){return"unknown size"}if(e<=0){return"0 bytes"}const t=["bytes","KiB","MiB","GiB"];const s=Math.floor(Math.log(e)/Math.log(1024));return`${+(e/Math.pow(1024,s)).toPrecision(3)} ${t[s]}`})},134:function(e){e.exports=require("schema-utils")},140:function(e,t,s){"use strict";const n=s(622);const r=/\\/g;const o=/[-[\]{}()*+?.,\\^$|#\s]/g;const i=/[/\\]$/;const a=/^!|!$/g;const l=/\/index.js(!|\?|\(query\))/g;const u=/!=!/;const c=e=>{return e.replace(r,"/")};const d=e=>{const t=e.replace(o,"\\$&");return new RegExp(`(^|!)${t}`,"g")};class RequestShortener{constructor(e){e=c(e);if(i.test(e)){e=e.substr(0,e.length-1)}if(e){this.currentDirectoryRegExp=d(e)}const t=n.dirname(e);const s=i.test(t);const r=s?t.substr(0,t.length-1):t;if(r&&r!==e){this.parentDirectoryRegExp=d(`${r}/`)}if(__dirname.length>=2){const e=c(n.join(__dirname,".."));const t=this.currentDirectoryRegExp&&this.currentDirectoryRegExp.test(e);this.buildinsAsModule=t;this.buildinsRegExp=d(e)}this.cache=new Map}shorten(e){if(!e)return e;const t=this.cache.get(e);if(t!==undefined){return t}let s=c(e);if(this.buildinsAsModule&&this.buildinsRegExp){s=s.replace(this.buildinsRegExp,"!(webpack)")}if(this.currentDirectoryRegExp){s=s.replace(this.currentDirectoryRegExp,"!.")}if(this.parentDirectoryRegExp){s=s.replace(this.parentDirectoryRegExp,"!../")}if(!this.buildinsAsModule&&this.buildinsRegExp){s=s.replace(this.buildinsRegExp,"!(webpack)")}s=s.replace(l,"$1");s=s.replace(a,"");s=s.replace(u," = ");this.cache.set(e,s);return s}}e.exports=RequestShortener},155:function(e){e.exports={name:"webpack",version:"4.44.1",author:"Tobias Koppers @sokra",description:"Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",license:"MIT",dependencies:{"@webassemblyjs/ast":"1.9.0","@webassemblyjs/helper-module-context":"1.9.0","@webassemblyjs/wasm-edit":"1.9.0","@webassemblyjs/wasm-parser":"1.9.0",acorn:"^6.4.1",ajv:"^6.10.2","ajv-keywords":"^3.4.1","chrome-trace-event":"^1.0.2","enhanced-resolve":"^4.3.0","eslint-scope":"^4.0.3","json-parse-better-errors":"^1.0.2","loader-runner":"^2.4.0","loader-utils":"^1.2.3","memory-fs":"^0.4.1",micromatch:"^3.1.10",mkdirp:"^0.5.3","neo-async":"^2.6.1","node-libs-browser":"^2.2.1","schema-utils":"^1.0.0",tapable:"^1.1.3","terser-webpack-plugin":"^1.4.3",watchpack:"^1.7.4","webpack-sources":"^1.4.1"},peerDependenciesMeta:{"webpack-cli":{optional:true},"webpack-command":{optional:true}},devDependencies:{"@babel/core":"^7.7.2","@types/node":"^10.12.21","@types/tapable":"^1.0.1","@types/webpack-sources":"^0.1.4","@yarnpkg/lockfile":"^1.1.0","babel-loader":"^8.0.6",benchmark:"^2.1.1","bundle-loader":"~0.5.0","coffee-loader":"^0.9.0",coffeescript:"^2.3.2",coveralls:"^3.0.2","css-loader":"^2.1.0","es6-promise-polyfill":"^1.1.1",eslint:"^5.8.0","eslint-config-prettier":"^4.0.0","eslint-plugin-jest":"^22.2.2","eslint-plugin-jsdoc":"^15.3.2","eslint-plugin-node":"^8.0.0","eslint-plugin-prettier":"^3.0.0",express:"~4.16.4","file-loader":"^3.0.1",glob:"^7.1.3",husky:"^1.1.3","i18n-webpack-plugin":"^1.0.0",istanbul:"^0.4.5",jest:"^24.9.0","jest-junit":"^8.0.0","json-loader":"^0.5.7","json-schema-to-typescript":"^6.0.1",less:"^3.9.0","less-loader":"^4.0.3","lint-staged":"^8.0.4",lodash:"^4.17.4",prettier:"^1.14.3",pug:"^2.0.4","pug-loader":"^2.4.0","raw-loader":"^1.0.0",react:"^16.8.0","react-dom":"^16.8.0",rimraf:"^2.6.2","script-loader":"~0.7.0","simple-git":"^1.65.0","strip-ansi":"^5.2.0","style-loader":"^0.23.1",typescript:"^3.0.0-rc","url-loader":"^1.1.2","val-loader":"^1.0.2","vm-browserify":"~1.1.0","wast-loader":"^1.5.5","webpack-dev-middleware":"^3.5.1","webassembly-feature":"1.3.0","worker-loader":"^2.0.0",xxhashjs:"^0.2.1"},engines:{node:">=6.11.5"},repository:{type:"git",url:"https://github.com/webpack/webpack.git"},funding:{type:"opencollective",url:"https://opencollective.com/webpack"},homepage:"https://github.com/webpack/webpack",main:"lib/webpack.js",web:"lib/webpack.web.js",bin:"./bin/webpack.js",files:["lib/","bin/","buildin/","declarations/","hot/","web_modules/","schemas/","SECURITY.md"],scripts:{setup:"node ./setup/setup.js",test:"node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest","test:update-snapshots":"yarn jest -u","test:integration":'node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch "/test/*.test.js"',"test:basic":'node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch "/te{st/TestCasesNormal,st/StatsTestCases,st/ConfigTestCases}.test.js"',"test:unit":'node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch "/test/*.unittest.js"',"travis:integration":"yarn cover:integration --ci $JEST","travis:basic":"yarn cover:basic --ci $JEST","travis:lintunit":"yarn lint && yarn cover:unit --ci $JEST","travis:benchmark":"yarn benchmark --ci","appveyor:integration":"yarn cover:integration --ci %JEST%","appveyor:unit":"yarn cover:unit --ci %JEST%","appveyor:benchmark":"yarn benchmark --ci","build:examples":"cd examples && node buildAll.js",pretest:"yarn lint",prelint:"yarn setup",lint:"yarn code-lint && yarn jest-lint && yarn type-lint && yarn special-lint","code-lint":"eslint . --ext '.js' --cache","type-lint":"tsc --pretty","special-lint":"node tooling/inherit-types && node tooling/format-schemas && node tooling/compile-to-definitions","special-lint-fix":"node tooling/inherit-types --write --override && node tooling/format-schemas --write && node tooling/compile-to-definitions --write",fix:"yarn code-lint --fix && yarn special-lint-fix",pretty:'prettier --loglevel warn --write "*.{ts,js,json,yml,yaml}" "{setup,lib,bin,hot,buildin,benchmark,tooling,schemas}/**/*.{js,json}" "test/*.js" "test/helpers/*.js" "test/{configCases,watchCases,statsCases,hotCases}/**/webpack.config.js" "examples/**/webpack.config.js"',"jest-lint":'node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch "/test/*.lint.js" --no-verbose',benchmark:'node --max-old-space-size=4096 --trace-deprecation node_modules/jest-cli/bin/jest --testMatch "/test/*.benchmark.js" --runInBand',cover:"yarn cover:all && yarn cover:report","cover:all":"node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --coverage","cover:basic":'node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch "/te{st/TestCasesNormal,st/StatsTestCases,st/ConfigTestCases}.test.js" --coverage',"cover:integration":'node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch "/test/*.test.js" --coverage',"cover:unit":'node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch "/test/*.unittest.js" --coverage',"cover:report":"istanbul report"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{"*.js|{lib,setup,bin,hot,buildin,tooling,schemas}/**/*.js|test/*.js|{test,examples}/**/webpack.config.js}":["eslint --cache"]},jest:{forceExit:true,setupFilesAfterEnv:["/test/setupTestFramework.js"],testMatch:["/test/*.test.js","/test/*.unittest.js"],watchPathIgnorePatterns:["/.git","/node_modules","/test/js","/test/browsertest/js","/test/fixtures/temp-cache-fixture","/test/fixtures/temp-","/benchmark","/examples/*/dist","/coverage","/.eslintcache"],modulePathIgnorePatterns:["/.git","/node_modules/webpack/node_modules","/test/js","/test/browsertest/js","/test/fixtures/temp-cache-fixture","/test/fixtures/temp-","/benchmark","/examples/*/dist","/coverage","/.eslintcache"],transformIgnorePatterns:[""],coverageDirectory:"/coverage",coveragePathIgnorePatterns:["\\.runtime\\.js$","/test","/schemas","/node_modules"],testEnvironment:"node",coverageReporters:["json"]}}},157:function(e,t,s){"use strict";const n=s(521);const r=s(533);class AsyncSeriesWaterfallHookCodeFactory extends r{content({onError:e,onResult:t,onDone:s}){return this.callTapsSeries({onError:(t,s,n,r)=>e(s)+r(true),onResult:(e,t,s)=>{let n="";n+=`if(${t} !== undefined) {\n`;n+=`${this._args[0]} = ${t};\n`;n+=`}\n`;n+=s();return n},onDone:()=>t(this._args[0])})}}const o=new AsyncSeriesWaterfallHookCodeFactory;class AsyncSeriesWaterfallHook extends n{constructor(e){super(e);if(e.length<1)throw new Error("Waterfall hooks must have at least one argument")}compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncSeriesWaterfallHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncSeriesWaterfallHook},174:function(e,t,s){"use strict";const n=s(773);class Entrypoint extends n{constructor(e){super(e);this.runtimeChunk=undefined}isInitial(){return true}setRuntimeChunk(e){this.runtimeChunk=e}getRuntimeChunk(){return this.runtimeChunk||this.chunks[0]}replaceChunk(e,t){if(this.runtimeChunk===e)this.runtimeChunk=t;return super.replaceChunk(e,t)}}e.exports=Entrypoint},207:function(e,t,s){"use strict";const n=s(446);class ChunkRenderError extends n{constructor(e,t,s){super();this.name="ChunkRenderError";this.error=s;this.message=s.message;this.details=s.stack;this.file=t;this.chunk=e;Error.captureStackTrace(this,this.constructor)}}e.exports=ChunkRenderError},216:function(e,t,s){"use strict";const{Tapable:n,SyncWaterfallHook:r,SyncHook:o}=s(75);e.exports=class ModuleTemplate extends n{constructor(e,t){super();this.runtimeTemplate=e;this.type=t;this.hooks={content:new r(["source","module","options","dependencyTemplates"]),module:new r(["source","module","options","dependencyTemplates"]),render:new r(["source","module","options","dependencyTemplates"]),package:new r(["source","module","options","dependencyTemplates"]),hash:new o(["hash"])}}render(e,t,s){try{const n=e.source(t,this.runtimeTemplate,this.type);const r=this.hooks.content.call(n,e,s,t);const o=this.hooks.module.call(r,e,s,t);const i=this.hooks.render.call(o,e,s,t);return this.hooks.package.call(i,e,s,t)}catch(t){t.message=`${e.identifier()}\n${t.message}`;throw t}}updateHash(e){e.update("1");this.hooks.hash.call(e)}}},225:function(e,t){"use strict";const s=Object.freeze({error:"error",warn:"warn",info:"info",log:"log",debug:"debug",trace:"trace",group:"group",groupCollapsed:"groupCollapsed",groupEnd:"groupEnd",profile:"profile",profileEnd:"profileEnd",time:"time",clear:"clear",status:"status"});t.LogType=s;const n=Symbol("webpack logger raw log method");const r=Symbol("webpack logger times");class WebpackLogger{constructor(e){this[n]=e}error(...e){this[n](s.error,e)}warn(...e){this[n](s.warn,e)}info(...e){this[n](s.info,e)}log(...e){this[n](s.log,e)}debug(...e){this[n](s.debug,e)}assert(e,...t){if(!e){this[n](s.error,t)}}trace(){this[n](s.trace,["Trace"])}clear(){this[n](s.clear)}status(...e){this[n](s.status,e)}group(...e){this[n](s.group,e)}groupCollapsed(...e){this[n](s.groupCollapsed,e)}groupEnd(...e){this[n](s.groupEnd,e)}profile(e){this[n](s.profile,[e])}profileEnd(e){this[n](s.profileEnd,[e])}time(e){this[r]=this[r]||new Map;this[r].set(e,process.hrtime())}timeLog(e){const t=this[r]&&this[r].get(e);if(!t){throw new Error(`No such label '${e}' for WebpackLogger.timeLog()`)}const o=process.hrtime(t);this[n](s.time,[e,...o])}timeEnd(e){const t=this[r]&&this[r].get(e);if(!t){throw new Error(`No such label '${e}' for WebpackLogger.timeEnd()`)}const o=process.hrtime(t);this[r].delete(e);this[n](s.time,[e,...o])}}t.Logger=WebpackLogger},230:function(e,t,s){"use strict";const n=s(521);const r=s(533);class AsyncParallelBailHookCodeFactory extends r{content({onError:e,onResult:t,onDone:s}){let n="";n+=`var _results = new Array(${this.options.taps.length});\n`;n+="var _checkDone = () => {\n";n+="for(var i = 0; i < _results.length; i++) {\n";n+="var item = _results[i];\n";n+="if(item === undefined) return false;\n";n+="if(item.result !== undefined) {\n";n+=t("item.result");n+="return true;\n";n+="}\n";n+="if(item.error) {\n";n+=e("item.error");n+="return true;\n";n+="}\n";n+="}\n";n+="return false;\n";n+="}\n";n+=this.callTapsParallel({onError:(e,t,s,n)=>{let r="";r+=`if(${e} < _results.length && ((_results.length = ${e+1}), (_results[${e}] = { error: ${t} }), _checkDone())) {\n`;r+=n(true);r+="} else {\n";r+=s();r+="}\n";return r},onResult:(e,t,s,n)=>{let r="";r+=`if(${e} < _results.length && (${t} !== undefined && (_results.length = ${e+1}), (_results[${e}] = { result: ${t} }), _checkDone())) {\n`;r+=n(true);r+="} else {\n";r+=s();r+="}\n";return r},onTap:(e,t,s,n)=>{let r="";if(e>0){r+=`if(${e} >= _results.length) {\n`;r+=s();r+="} else {\n"}r+=t();if(e>0)r+="}\n";return r},onDone:s});return n}}const o=new AsyncParallelBailHookCodeFactory;class AsyncParallelBailHook extends n{compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncParallelBailHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncParallelBailHook},240:function(e){e.exports=require("find-cache-dir")},241:function(e){e.exports=require("next/dist/compiled/source-map")},335:function(e,t){const s=(e,t)=>{if(e.pushChunk(t)){t.addGroup(e)}};const n=(e,t)=>{if(e.addChild(t)){t.addParent(e)}};const r=(e,t)=>{if(t.addChunk(e)){e.addModule(t)}};const o=(e,t)=>{e.removeModule(t);t.removeChunk(e)};const i=(e,t)=>{if(t.addBlock(e)){e.chunkGroup=t}};t.connectChunkGroupAndChunk=s;t.connectChunkGroupParentAndChild=n;t.connectChunkAndModule=r;t.disconnectChunkAndModule=o;t.connectDependenciesBlockAndChunkGroup=i},343:function(e){e.exports=require("neo-async")},354:function(e,t,s){"use strict";const n=s(521);const r=s(533);class SyncLoopHookCodeFactory extends r{content({onError:e,onDone:t,rethrowIfPossible:s}){return this.callTapsLooping({onError:(t,s)=>e(s),onDone:t,rethrowIfPossible:s})}}const o=new SyncLoopHookCodeFactory;class SyncLoopHook extends n{tapAsync(){throw new Error("tapAsync is not supported on a SyncLoopHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncLoopHook")}compile(e){o.setup(this,e);return o.create(e)}}e.exports=SyncLoopHook},367:function(e){"use strict";const t=e=>{if(e===null)return"";if(typeof e==="string")return e;if(typeof e==="number")return`${e}`;if(typeof e==="object"){if("line"in e&&"column"in e){return`${e.line}:${e.column}`}else if("line"in e){return`${e.line}:?`}else if("index"in e){return`+${e.index}`}else{return""}}return""};const s=e=>{if(e===null)return"";if(typeof e==="string")return e;if(typeof e==="number")return`${e}`;if(typeof e==="object"){if("start"in e&&e.start&&"end"in e&&e.end){if(typeof e.start==="object"&&typeof e.start.line==="number"&&typeof e.end==="object"&&typeof e.end.line==="number"&&typeof e.end.column==="number"&&e.start.line===e.end.line){return`${t(e.start)}-${e.end.column}`}else{return`${t(e.start)}-${t(e.end)}`}}if("start"in e&&e.start){return t(e.start)}if("name"in e&&"index"in e){return`${e.name}[${e.index}]`}if("name"in e){return e.name}return t(e)}return""};e.exports=s},393:function(e){"use strict";class Semaphore{constructor(e){this.available=e;this.waiters=[];this._continue=this._continue.bind(this)}acquire(e){if(this.available>0){this.available--;e()}else{this.waiters.push(e)}}release(){this.available++;if(this.waiters.length>0){process.nextTick(this._continue)}}_continue(){if(this.available>0){if(this.waiters.length>0){this.available--;const e=this.waiters.pop();e()}}}}e.exports=Semaphore},408:function(e,t,s){"use strict";const n=s(966);const r=s(591);const{Tapable:o,SyncWaterfallHook:i,SyncHook:a}=s(75);e.exports=class HotUpdateChunkTemplate extends o{constructor(e){super();this.outputOptions=e||{};this.hooks={modules:new i(["source","modules","removedModules","moduleTemplate","dependencyTemplates"]),render:new i(["source","modules","removedModules","hash","id","moduleTemplate","dependencyTemplates"]),hash:new a(["hash"])}}render(e,t,s,o,i,a){const l=new r;l.id=e;l.setModules(t);l.removedModules=s;const u=n.renderChunkModules(l,e=>typeof e.source==="function",i,a);const c=this.hooks.modules.call(u,t,s,i,a);const d=this.hooks.render.call(c,t,s,o,e,i,a);return d}updateHash(e){e.update("HotUpdateChunkTemplate");e.update("1");this.hooks.hash.call(e)}}},417:function(e){e.exports=require("crypto")},432:function(e){e.exports=require("webpack/lib/RequestShortener")},442:function(e,t,s){"use strict";const n=s(521);const r=s(533);class SyncHookCodeFactory extends r{content({onError:e,onDone:t,rethrowIfPossible:s}){return this.callTapsSeries({onError:(t,s)=>e(s),onDone:t,rethrowIfPossible:s})}}const o=new SyncHookCodeFactory;class SyncHook extends n{tapAsync(){throw new Error("tapAsync is not supported on a SyncHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncHook")}compile(e){o.setup(this,e);return o.create(e)}}e.exports=SyncHook},446:function(e,t,s){"use strict";const n=s(669).inspect.custom;class WebpackError extends Error{constructor(e){super(e);this.details=undefined;this.missing=undefined;this.origin=undefined;this.dependencies=undefined;this.module=undefined;Error.captureStackTrace(this,this.constructor)}[n](){return this.stack+(this.details?`\n${this.details}`:"")}}e.exports=WebpackError},463:function(e){"use strict";e.exports=((e,t)=>{if(typeof e==="string"){if(typeof t==="string"){if(et)return 1;return 0}else if(typeof t==="object"){return 1}else{return 0}}else if(typeof e==="object"){if(typeof t==="string"){return-1}else if(typeof t==="object"){if("start"in e&&"start"in t){const s=e.start;const n=t.start;if(s.linen.line)return 1;if(s.columnn.column)return 1}if("name"in e&&"name"in t){if(e.namet.name)return 1}if("index"in e&&"index"in t){if(e.indext.index)return 1}return 0}else{return 0}}})},464:function(e,t,s){"use strict";const n=s(521);class MultiHook{constructor(e){this.hooks=e}tap(e,t){for(const s of this.hooks){s.tap(e,t)}}tapAsync(e,t){for(const s of this.hooks){s.tapAsync(e,t)}}tapPromise(e,t){for(const s of this.hooks){s.tapPromise(e,t)}}isUsed(){for(const e of this.hooks){if(e.isUsed())return true}return false}intercept(e){for(const t of this.hooks){t.intercept(e)}}withOptions(e){return new MultiHook(this.hooks.map(t=>t.withOptions(e)))}}e.exports=MultiHook},470:function(e,t,s){"use strict";const n=s(589);e.exports=n.default},475:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;class Cache{constructor(e,t){this.cache=e.getCache("TerserWebpackPlugin")}isEnabled(){return true}async get(e){e.cacheIdent=e.cacheIdent||`${e.name}`;e.cacheETag=e.cacheETag||this.cache.getLazyHashedEtag(e.assetSource);return this.cache.getPromise(e.cacheIdent,e.cacheETag)}async store(e,t){return this.cache.storePromise(e.cacheIdent,e.cacheETag,t)}}t.default=Cache},486:function(e,t,s){"use strict";const n=s(847);const r=1e3;class Hash{update(e,t){throw new n}digest(e){throw new n}}t.Hash=Hash;class BulkUpdateDecorator extends Hash{constructor(e){super();this.hash=e;this.buffer=""}update(e,t){if(t!==undefined||typeof e!=="string"||e.length>r){if(this.buffer.length>0){this.hash.update(this.buffer);this.buffer=""}this.hash.update(e,t)}else{this.buffer+=e;if(this.buffer.length>r){this.hash.update(this.buffer);this.buffer=""}}return this}digest(e){if(this.buffer.length>0){this.hash.update(this.buffer)}var t=this.hash.digest(e);return typeof t==="string"?t:t.toString()}}class DebugHash extends Hash{constructor(){super();this.string=""}update(e,t){if(typeof e!=="string")e=e.toString("utf-8");this.string+=e;return this}digest(e){return this.string.replace(/[^a-z0-9]+/gi,e=>Buffer.from(e).toString("hex"))}}e.exports=(e=>{if(typeof e==="function"){return new BulkUpdateDecorator(new e)}switch(e){case"debug":return new DebugHash;default:return new BulkUpdateDecorator(s(417).createHash(e))}})},496:function(e){"use strict";class DependencyReference{constructor(e,t,s=false,n=NaN){this.module=e;this.importedNames=t;this.weak=!!s;this.order=n}static sort(e){const t=new WeakMap;let s=0;for(const n of e){t.set(n,s++)}return e.sort((e,s)=>{const n=e.order;const r=s.order;if(isNaN(n)){if(!isNaN(r)){return 1}}else{if(isNaN(r)){return-1}if(n!==r){return n-r}}const o=t.get(e);const i=t.get(s);return o-i})}}e.exports=DependencyReference},499:function(e){"use strict";class HookMap{constructor(e){this._map=new Map;this._factory=e;this._interceptors=[]}get(e){return this._map.get(e)}for(e){const t=this.get(e);if(t!==undefined){return t}let s=this._factory(e);const n=this._interceptors;for(let t=0;tt},e))}tap(e,t,s){return this.for(e).tap(t,s)}tapAsync(e,t,s){return this.for(e).tapAsync(t,s)}tapPromise(e,t,s){return this.for(e).tapPromise(t,s)}}e.exports=HookMap},503:function(e,t,s){"use strict";const{ConcatSource:n,OriginalSource:r,PrefixSource:o,RawSource:i}=s(745);const{Tapable:a,SyncWaterfallHook:l,SyncHook:u,SyncBailHook:c}=s(75);const d=s(966);e.exports=class MainTemplate extends a{constructor(e){super();this.outputOptions=e||{};this.hooks={renderManifest:new l(["result","options"]),modules:new l(["modules","chunk","hash","moduleTemplate","dependencyTemplates"]),moduleObj:new l(["source","chunk","hash","moduleIdExpression"]),requireEnsure:new l(["source","chunk","hash","chunkIdExpression"]),bootstrap:new l(["source","chunk","hash","moduleTemplate","dependencyTemplates"]),localVars:new l(["source","chunk","hash"]),require:new l(["source","chunk","hash"]),requireExtensions:new l(["source","chunk","hash"]),beforeStartup:new l(["source","chunk","hash"]),startup:new l(["source","chunk","hash"]),afterStartup:new l(["source","chunk","hash"]),render:new l(["source","chunk","hash","moduleTemplate","dependencyTemplates"]),renderWithEntry:new l(["source","chunk","hash"]),moduleRequire:new l(["source","chunk","hash","moduleIdExpression"]),addModule:new l(["source","chunk","hash","moduleIdExpression","moduleExpression"]),currentHash:new l(["source","requestedLength"]),assetPath:new l(["path","options","assetInfo"]),hash:new u(["hash"]),hashForChunk:new u(["hash","chunk"]),globalHashPaths:new l(["paths"]),globalHash:new c(["chunk","paths"]),hotBootstrap:new l(["source","chunk","hash"])};this.hooks.startup.tap("MainTemplate",(e,t,s)=>{const n=[];if(t.entryModule){n.push("// Load entry module and return exports");n.push(`return ${this.renderRequireFunctionForModule(s,t,JSON.stringify(t.entryModule.id))}(${this.requireFn}.s = ${JSON.stringify(t.entryModule.id)});`)}return d.asString(n)});this.hooks.render.tap("MainTemplate",(e,t,s,r,a)=>{const l=new n;l.add("/******/ (function(modules) { // webpackBootstrap\n");l.add(new o("/******/",e));l.add("/******/ })\n");l.add("/************************************************************************/\n");l.add("/******/ (");l.add(this.hooks.modules.call(new i(""),t,s,r,a));l.add(")");return l});this.hooks.localVars.tap("MainTemplate",(e,t,s)=>{return d.asString([e,"// The module cache","var installedModules = {};"])});this.hooks.require.tap("MainTemplate",(t,s,n)=>{return d.asString([t,"// Check if module is in cache","if(installedModules[moduleId]) {",d.indent("return installedModules[moduleId].exports;"),"}","// Create a new module (and put it into the cache)","var module = installedModules[moduleId] = {",d.indent(this.hooks.moduleObj.call("",s,n,"moduleId")),"};","",d.asString(e.strictModuleExceptionHandling?["// Execute the module function","var threw = true;","try {",d.indent([`modules[moduleId].call(module.exports, module, module.exports, ${this.renderRequireFunctionForModule(n,s,"moduleId")});`,"threw = false;"]),"} finally {",d.indent(["if(threw) delete installedModules[moduleId];"]),"}"]:["// Execute the module function",`modules[moduleId].call(module.exports, module, module.exports, ${this.renderRequireFunctionForModule(n,s,"moduleId")});`]),"","// Flag the module as loaded","module.l = true;","","// Return the exports of the module","return module.exports;"])});this.hooks.moduleObj.tap("MainTemplate",(e,t,s,n)=>{return d.asString(["i: moduleId,","l: false,","exports: {}"])});this.hooks.requireExtensions.tap("MainTemplate",(e,t,s)=>{const n=[];const r=t.getChunkMaps();if(Object.keys(r.hash).length){n.push("// This file contains only the entry chunk.");n.push("// The chunk loading function for additional chunks");n.push(`${this.requireFn}.e = function requireEnsure(chunkId) {`);n.push(d.indent("var promises = [];"));n.push(d.indent(this.hooks.requireEnsure.call("",t,s,"chunkId")));n.push(d.indent("return Promise.all(promises);"));n.push("};")}else if(t.hasModuleInGraph(e=>e.blocks.some(e=>e.chunkGroup&&e.chunkGroup.chunks.length>0))){n.push("// The chunk loading function for additional chunks");n.push("// Since all referenced chunks are already included");n.push("// in this file, this function is empty here.");n.push(`${this.requireFn}.e = function requireEnsure() {`);n.push(d.indent("return Promise.resolve();"));n.push("};")}n.push("");n.push("// expose the modules object (__webpack_modules__)");n.push(`${this.requireFn}.m = modules;`);n.push("");n.push("// expose the module cache");n.push(`${this.requireFn}.c = installedModules;`);n.push("");n.push("// define getter function for harmony exports");n.push(`${this.requireFn}.d = function(exports, name, getter) {`);n.push(d.indent([`if(!${this.requireFn}.o(exports, name)) {`,d.indent(["Object.defineProperty(exports, name, { enumerable: true, get: getter });"]),"}"]));n.push("};");n.push("");n.push("// define __esModule on exports");n.push(`${this.requireFn}.r = function(exports) {`);n.push(d.indent(["if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {",d.indent(["Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });"]),"}","Object.defineProperty(exports, '__esModule', { value: true });"]));n.push("};");n.push("");n.push("// create a fake namespace object");n.push("// mode & 1: value is a module id, require it");n.push("// mode & 2: merge all properties of value into the ns");n.push("// mode & 4: return value when already ns object");n.push("// mode & 8|1: behave like require");n.push(`${this.requireFn}.t = function(value, mode) {`);n.push(d.indent([`if(mode & 1) value = ${this.requireFn}(value);`,`if(mode & 8) return value;`,"if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;","var ns = Object.create(null);",`${this.requireFn}.r(ns);`,"Object.defineProperty(ns, 'default', { enumerable: true, value: value });","if(mode & 2 && typeof value != 'string') for(var key in value) "+`${this.requireFn}.d(ns, key, function(key) { `+"return value[key]; "+"}.bind(null, key));","return ns;"]));n.push("};");n.push("");n.push("// getDefaultExport function for compatibility with non-harmony modules");n.push(this.requireFn+".n = function(module) {");n.push(d.indent(["var getter = module && module.__esModule ?",d.indent(["function getDefault() { return module['default']; } :","function getModuleExports() { return module; };"]),`${this.requireFn}.d(getter, 'a', getter);`,"return getter;"]));n.push("};");n.push("");n.push("// Object.prototype.hasOwnProperty.call");n.push(`${this.requireFn}.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };`);const o=this.getPublicPath({hash:s});n.push("");n.push("// __webpack_public_path__");n.push(`${this.requireFn}.p = ${JSON.stringify(o)};`);return d.asString(n)});this.requireFn="__webpack_require__"}getRenderManifest(e){const t=[];this.hooks.renderManifest.call(t,e);return t}renderBootstrap(e,t,s,n){const r=[];r.push(this.hooks.bootstrap.call("",t,e,s,n));r.push(this.hooks.localVars.call("",t,e));r.push("");r.push("// The require function");r.push(`function ${this.requireFn}(moduleId) {`);r.push(d.indent(this.hooks.require.call("",t,e)));r.push("}");r.push("");r.push(d.asString(this.hooks.requireExtensions.call("",t,e)));r.push("");r.push(d.asString(this.hooks.beforeStartup.call("",t,e)));const o=d.asString(this.hooks.afterStartup.call("",t,e));if(o){r.push("var startupResult = (function() {")}r.push(d.asString(this.hooks.startup.call("",t,e)));if(o){r.push("})();");r.push(o);r.push("return startupResult;")}return r}render(e,t,s,o){const i=this.renderBootstrap(e,t,s,o);let a=this.hooks.render.call(new r(d.prefix(i," \t")+"\n","webpack/bootstrap"),t,e,s,o);if(t.hasEntryModule()){a=this.hooks.renderWithEntry.call(a,t,e)}if(!a){throw new Error("Compiler error: MainTemplate plugin 'render' should return something")}t.rendered=true;return new n(a,";")}renderRequireFunctionForModule(e,t,s){return this.hooks.moduleRequire.call(this.requireFn,t,e,s)}renderAddModule(e,t,s,n){return this.hooks.addModule.call(`modules[${s}] = ${n};`,t,e,s,n)}renderCurrentHashCode(e,t){t=t||Infinity;return this.hooks.currentHash.call(JSON.stringify(e.substr(0,t)),t)}getPublicPath(e){return this.hooks.assetPath.call(this.outputOptions.publicPath||"",e)}getAssetPath(e,t){return this.hooks.assetPath.call(e,t)}getAssetPathWithInfo(e,t){const s={};const n=this.hooks.assetPath.call(e,t,s);return{path:n,info:s}}updateHash(e){e.update("maintemplate");e.update("3");this.hooks.hash.call(e)}updateHashForChunk(e,t,s,n){this.updateHash(e);this.hooks.hashForChunk.call(e,t);for(const r of this.renderBootstrap("0000",t,s,n)){e.update(r)}}useChunkHash(e){const t=this.hooks.globalHashPaths.call([]);return!this.hooks.globalHash.call(e,t)}}},510:function(e,t,s){"use strict";const n=s(43);const r=s(335);const o=(e,t)=>{return t.size-e.size};const i=e=>{const t=new Map;const s=t=>{const s=e.getDependencyReference(r,t);if(!s){return}const n=s.module;if(!n){return}if(s.weak){return}a.add(n)};const n=e=>{l.push(e);i.push(e)};let r;let o;let i;let a;let l;for(const u of e.modules){i=[u];r=u;while(i.length>0){o=i.pop();a=new Set;l=[];if(o.variables){for(const e of o.variables){for(const t of e.dependencies)s(t)}}if(o.dependencies){for(const e of o.dependencies)s(e)}if(o.blocks){for(const e of o.blocks)n(e)}const e={modules:a,blocks:l};t.set(o,e)}}return t};const a=(e,t,s,r,a,l)=>{const u=e.getLogger("webpack.buildChunkGraph.visitModules");const{namedChunkGroups:c}=e;u.time("prepare");const d=i(e);const h=new Map;for(const e of t){h.set(e,{index:0,index2:0})}let f=0;let p=0;const m=new Map;const g=0;const y=1;const k=2;const b=3;const w=(e,t)=>{for(const s of t.chunks){const n=s.entryModule;e.push({action:y,block:n,module:n,chunk:s,chunkGroup:t})}s.set(t,{chunkGroup:t,minAvailableModules:new Set,minAvailableModulesOwned:true,availableModulesToBeMerged:[],skippedItems:[],resultingAvailableModules:undefined,children:undefined});return e};let _=t.reduce(w,[]).reverse();const v=new Map;const x=new Set;let $=[];u.timeEnd("prepare");let E;let M;let O;let A;let S;let C;const j=t=>{let s=m.get(t);if(s===undefined){s=c.get(t.chunkName);if(s&&s.isInitial()){e.errors.push(new n(t.chunkName,E,t.loc));s=O}else{s=e.addChunkInGroup(t.groupOptions||t.chunkName,E,t.loc,t.request);h.set(s,{index:0,index2:0});m.set(t,s);l.add(s)}}else{if(s.addOptions)s.addOptions(t.groupOptions);s.addOrigin(E,t.loc,t.request)}let o=r.get(O);if(!o)r.set(O,o=[]);o.push({block:t,chunkGroup:s});let i=v.get(O);if(i===undefined){i=new Set;v.set(O,i)}i.add(s);$.push({action:k,block:t,module:E,chunk:s.chunks[0],chunkGroup:s})};while(_.length){u.time("visiting");while(_.length){const e=_.pop();E=e.module;A=e.block;M=e.chunk;if(O!==e.chunkGroup){O=e.chunkGroup;const t=s.get(O);S=t.minAvailableModules;C=t.skippedItems}switch(e.action){case g:{if(S.has(E)){C.push(e);break}if(M.addModule(E)){E.addChunk(M)}else{break}}case y:{if(O!==undefined){const e=O.getModuleIndex(E);if(e===undefined){O.setModuleIndex(E,h.get(O).index++)}}if(E.index===null){E.index=f++}_.push({action:b,block:A,module:E,chunk:M,chunkGroup:O})}case k:{const e=d.get(A);const t=[];const s=[];for(const n of e.modules){if(M.containsModule(n)){continue}if(S.has(n)){t.push({action:g,block:n,module:n,chunk:M,chunkGroup:O});continue}s.push({action:g,block:n,module:n,chunk:M,chunkGroup:O})}for(let e=t.length-1;e>=0;e--){C.push(t[e])}for(let e=s.length-1;e>=0;e--){_.push(s[e])}for(const t of e.blocks)j(t);if(e.blocks.length>0&&E!==A){a.add(A)}break}case b:{if(O!==undefined){const e=O.getModuleIndex2(E);if(e===undefined){O.setModuleIndex2(E,h.get(O).index2++)}}if(E.index2===null){E.index2=p++}break}}}u.timeEnd("visiting");while(v.size>0){u.time("calculating available modules");for(const[e,t]of v){const n=s.get(e);let r=n.minAvailableModules;const o=new Set(r);for(const t of e.chunks){for(const e of t.modulesIterable){o.add(e)}}n.resultingAvailableModules=o;if(n.children===undefined){n.children=t}else{for(const e of t){n.children.add(e)}}for(const e of t){let t=s.get(e);if(t===undefined){t={chunkGroup:e,minAvailableModules:undefined,minAvailableModulesOwned:undefined,availableModulesToBeMerged:[],skippedItems:[],resultingAvailableModules:undefined,children:undefined};s.set(e,t)}t.availableModulesToBeMerged.push(o);x.add(t)}}v.clear();u.timeEnd("calculating available modules");if(x.size>0){u.time("merging available modules");for(const e of x){const t=e.availableModulesToBeMerged;let s=e.minAvailableModules;if(t.length>1){t.sort(o)}let n=false;for(const r of t){if(s===undefined){s=r;e.minAvailableModules=s;e.minAvailableModulesOwned=false;n=true}else{if(e.minAvailableModulesOwned){for(const e of s){if(!r.has(e)){s.delete(e);n=true}}}else{for(const t of s){if(!r.has(t)){const o=new Set;const i=s[Symbol.iterator]();let a;while(!(a=i.next()).done){const e=a.value;if(e===t)break;o.add(e)}while(!(a=i.next()).done){const e=a.value;if(r.has(e)){o.add(e)}}s=o;e.minAvailableModulesOwned=true;e.minAvailableModules=o;if(O===e.chunkGroup){S=s}n=true;break}}}}}t.length=0;if(!n)continue;for(const t of e.skippedItems){_.push(t)}e.skippedItems.length=0;if(e.children!==undefined){const t=e.chunkGroup;for(const s of e.children){let e=v.get(t);if(e===undefined){e=new Set;v.set(t,e)}e.add(s)}}}x.clear();u.timeEnd("merging available modules")}}if(_.length===0){const e=_;_=$.reverse();$=e}}};const l=(e,t,s)=>{let n;const o=(e,t)=>{for(const s of e.chunks){for(const e of s.modulesIterable){if(!t.has(e))return false}}return true};const i=t=>{const s=t.chunkGroup;if(e.has(t.block))return true;if(o(s,n)){return false}return true};for(const[e,o]of t){if(o.length===0)continue;const t=s.get(e);n=t.resultingAvailableModules;for(let t=0;t{for(const s of t){if(s.getNumberOfParents()===0){for(const t of s.chunks){const s=e.chunks.indexOf(t);if(s>=0)e.chunks.splice(s,1);t.remove("unconnected")}s.remove("unconnected")}}};const c=(e,t)=>{const s=new Map;const n=new Set;const r=new Map;const o=new Set;a(e,t,r,s,o,n);l(o,s,r);u(e,n)};e.exports=c},521:function(e){"use strict";class Hook{constructor(e){if(!Array.isArray(e))e=[];this._args=e;this.taps=[];this.interceptors=[];this.call=this._call;this.promise=this._promise;this.callAsync=this._callAsync;this._x=undefined}compile(e){throw new Error("Abstract: should be overriden")}_createCall(e){return this.compile({taps:this.taps,interceptors:this.interceptors,args:this._args,type:e})}tap(e,t){if(typeof e==="string")e={name:e};if(typeof e!=="object"||e===null)throw new Error("Invalid arguments to tap(options: Object, fn: function)");e=Object.assign({type:"sync",fn:t},e);if(typeof e.name!=="string"||e.name==="")throw new Error("Missing name for tap");e=this._runRegisterInterceptors(e);this._insert(e)}tapAsync(e,t){if(typeof e==="string")e={name:e};if(typeof e!=="object"||e===null)throw new Error("Invalid arguments to tapAsync(options: Object, fn: function)");e=Object.assign({type:"async",fn:t},e);if(typeof e.name!=="string"||e.name==="")throw new Error("Missing name for tapAsync");e=this._runRegisterInterceptors(e);this._insert(e)}tapPromise(e,t){if(typeof e==="string")e={name:e};if(typeof e!=="object"||e===null)throw new Error("Invalid arguments to tapPromise(options: Object, fn: function)");e=Object.assign({type:"promise",fn:t},e);if(typeof e.name!=="string"||e.name==="")throw new Error("Missing name for tapPromise");e=this._runRegisterInterceptors(e);this._insert(e)}_runRegisterInterceptors(e){for(const t of this.interceptors){if(t.register){const s=t.register(e);if(s!==undefined)e=s}}return e}withOptions(e){const t=t=>Object.assign({},e,typeof t==="string"?{name:t}:t);e=Object.assign({},e,this._withOptions);const s=this._withOptionsBase||this;const n=Object.create(s);n.tapAsync=((e,n)=>s.tapAsync(t(e),n)),n.tap=((e,n)=>s.tap(t(e),n));n.tapPromise=((e,n)=>s.tapPromise(t(e),n));n._withOptions=e;n._withOptionsBase=s;return n}isUsed(){return this.taps.length>0||this.interceptors.length>0}intercept(e){this._resetCompilation();this.interceptors.push(Object.assign({},e));if(e.register){for(let t=0;t0){n--;const e=this.taps[n];this.taps[n+1]=e;const r=e.stage||0;if(t){if(t.has(e.name)){t.delete(e.name);continue}if(t.size>0){continue}}if(r>s){continue}n++;break}this.taps[n]=e}}function createCompileDelegate(e,t){return function lazyCompileHook(...s){this[e]=this._createCall(t);return this[e](...s)}}Object.defineProperties(Hook.prototype,{_call:{value:createCompileDelegate("call","sync"),configurable:true,writable:true},_promise:{value:createCompileDelegate("promise","promise"),configurable:true,writable:true},_callAsync:{value:createCompileDelegate("callAsync","async"),configurable:true,writable:true}});e.exports=Hook},533:function(e){"use strict";class HookCodeFactory{constructor(e){this.config=e;this.options=undefined;this._args=undefined}create(e){this.init(e);let t;switch(this.options.type){case"sync":t=new Function(this.args(),'"use strict";\n'+this.header()+this.content({onError:e=>`throw ${e};\n`,onResult:e=>`return ${e};\n`,resultReturns:true,onDone:()=>"",rethrowIfPossible:true}));break;case"async":t=new Function(this.args({after:"_callback"}),'"use strict";\n'+this.header()+this.content({onError:e=>`_callback(${e});\n`,onResult:e=>`_callback(null, ${e});\n`,onDone:()=>"_callback();\n"}));break;case"promise":let e=false;const s=this.content({onError:t=>{e=true;return`_error(${t});\n`},onResult:e=>`_resolve(${e});\n`,onDone:()=>"_resolve();\n"});let n="";n+='"use strict";\n';n+="return new Promise((_resolve, _reject) => {\n";if(e){n+="var _sync = true;\n";n+="function _error(_err) {\n";n+="if(_sync)\n";n+="_resolve(Promise.resolve().then(() => { throw _err; }));\n";n+="else\n";n+="_reject(_err);\n";n+="};\n"}n+=this.header();n+=s;if(e){n+="_sync = false;\n"}n+="});\n";t=new Function(this.args(),n);break}this.deinit();return t}setup(e,t){e._x=t.taps.map(e=>e.fn)}init(e){this.options=e;this._args=e.args.slice()}deinit(){this.options=undefined;this._args=undefined}header(){let e="";if(this.needContext()){e+="var _context = {};\n"}else{e+="var _context;\n"}e+="var _x = this._x;\n";if(this.options.interceptors.length>0){e+="var _taps = this.taps;\n";e+="var _interceptors = this.interceptors;\n"}for(let t=0;t {\n`;else i+=`_err${e} => {\n`;i+=`if(_err${e}) {\n`;i+=t(`_err${e}`);i+="} else {\n";if(s){i+=s(`_result${e}`)}if(n){i+=n()}i+="}\n";i+="}";o+=`_fn${e}(${this.args({before:a.context?"_context":undefined,after:i})});\n`;break;case"promise":o+=`var _hasResult${e} = false;\n`;o+=`var _promise${e} = _fn${e}(${this.args({before:a.context?"_context":undefined})});\n`;o+=`if (!_promise${e} || !_promise${e}.then)\n`;o+=` throw new Error('Tap function (tapPromise) did not return promise (returned ' + _promise${e} + ')');\n`;o+=`_promise${e}.then(_result${e} => {\n`;o+=`_hasResult${e} = true;\n`;if(s){o+=s(`_result${e}`)}if(n){o+=n()}o+=`}, _err${e} => {\n`;o+=`if(_hasResult${e}) throw _err${e};\n`;o+=t(`_err${e}`);o+="});\n";break}return o}callTapsSeries({onError:e,onResult:t,resultReturns:s,onDone:n,doneReturns:r,rethrowIfPossible:o}){if(this.options.taps.length===0)return n();const i=this.options.taps.findIndex(e=>e.type!=="sync");const a=s||r||false;let l="";let u=n;for(let s=this.options.taps.length-1;s>=0;s--){const r=s;const c=u!==n&&this.options.taps[r].type!=="sync";if(c){l+=`function _next${r}() {\n`;l+=u();l+=`}\n`;u=(()=>`${a?"return ":""}_next${r}();\n`)}const d=u;const h=e=>{if(e)return"";return n()};const f=this.callTap(r,{onError:t=>e(r,t,d,h),onResult:t&&(e=>{return t(r,e,d,h)}),onDone:!t&&d,rethrowIfPossible:o&&(i<0||rf)}l+=u();return l}callTapsLooping({onError:e,onDone:t,rethrowIfPossible:s}){if(this.options.taps.length===0)return t();const n=this.options.taps.every(e=>e.type==="sync");let r="";if(!n){r+="var _looper = () => {\n";r+="var _loopAsync = false;\n"}r+="var _loop;\n";r+="do {\n";r+="_loop = false;\n";for(let e=0;e{let o="";o+=`if(${t} !== undefined) {\n`;o+="_loop = true;\n";if(!n)o+="if(_loopAsync) _looper();\n";o+=r(true);o+=`} else {\n`;o+=s();o+=`}\n`;return o},onDone:t&&(()=>{let e="";e+="if(!_loop) {\n";e+=t();e+="}\n";return e}),rethrowIfPossible:s&&n});r+="} while(_loop);\n";if(!n){r+="_loopAsync = true;\n";r+="};\n";r+="_looper();\n"}return r}callTapsParallel({onError:e,onResult:t,onDone:s,rethrowIfPossible:n,onTap:r=((e,t)=>t())}){if(this.options.taps.length<=1){return this.callTapsSeries({onError:e,onResult:t,onDone:s,rethrowIfPossible:n})}let o="";o+="do {\n";o+=`var _counter = ${this.options.taps.length};\n`;if(s){o+="var _done = () => {\n";o+=s();o+="};\n"}for(let i=0;i{if(s)return"if(--_counter === 0) _done();\n";else return"--_counter;"};const l=e=>{if(e||!s)return"_counter = 0;\n";else return"_counter = 0;\n_done();\n"};o+="if(_counter <= 0) break;\n";o+=r(i,()=>this.callTap(i,{onError:t=>{let s="";s+="if(_counter > 0) {\n";s+=e(i,t,a,l);s+="}\n";return s},onResult:t&&(e=>{let s="";s+="if(_counter > 0) {\n";s+=t(i,e,a,l);s+="}\n";return s}),onDone:!t&&(()=>{return a()}),rethrowIfPossible:n}),a,l)}o+="} while(false);\n";return o}args({before:e,after:t}={}){let s=this._args;if(e)s=[e].concat(s);if(t)s=s.concat(t);if(s.length===0){return""}else{return s.join(", ")}}getTapFn(e){return`_x[${e}]`}getTap(e){return`_taps[${e}]`}getInterceptor(e){return`_interceptors[${e}]`}}e.exports=HookCodeFactory},542:function(e){"use strict";class SortableSet extends Set{constructor(e,t){super(e);this._sortFn=t;this._lastActiveSortFn=null;this._cache=undefined;this._cacheOrderIndependent=undefined}add(e){this._lastActiveSortFn=null;this._invalidateCache();this._invalidateOrderedCache();super.add(e);return this}delete(e){this._invalidateCache();this._invalidateOrderedCache();return super.delete(e)}clear(){this._invalidateCache();this._invalidateOrderedCache();return super.clear()}sortWith(e){if(this.size<=1||e===this._lastActiveSortFn){return}const t=Array.from(this).sort(e);super.clear();for(let e=0;ee(s),onResult:(e,s,n)=>`if(${s} !== undefined) {\n${t(s)};\n} else {\n${n()}}\n`,resultReturns:s,onDone:n,rethrowIfPossible:r})}}const o=new SyncBailHookCodeFactory;class SyncBailHook extends n{tapAsync(){throw new Error("tapAsync is not supported on a SyncBailHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncBailHook")}compile(e){o.setup(this,e);return o.create(e)}}e.exports=SyncBailHook},566:function(e,t,s){"use strict";const n=s(521);const r=s(533);class AsyncSeriesBailHookCodeFactory extends r{content({onError:e,onResult:t,resultReturns:s,onDone:n}){return this.callTapsSeries({onError:(t,s,n,r)=>e(s)+r(true),onResult:(e,s,n)=>`if(${s} !== undefined) {\n${t(s)};\n} else {\n${n()}}\n`,resultReturns:s,onDone:n})}}const o=new AsyncSeriesBailHookCodeFactory;class AsyncSeriesBailHook extends n{compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncSeriesBailHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncSeriesBailHook},589:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(s(622));var r=_interopRequireDefault(s(87));var o=s(241);var i=s(745);var a=_interopRequireDefault(s(432));var l=s(78);var u=_interopRequireDefault(s(134));var c=_interopRequireDefault(s(960));var d=_interopRequireDefault(s(751));var h=_interopRequireDefault(s(694));var f=_interopRequireDefault(s(733));var p=_interopRequireDefault(s(641));var m=s(812);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class TerserPlugin{constructor(e={}){(0,u.default)(p.default,e,{name:"Terser Plugin",baseDataPath:"options"});const{minify:t,terserOptions:s={},test:n=/\.m?js(\?.*)?$/i,extractComments:r=true,sourceMap:o,cache:i=true,cacheKeys:a=(e=>e),parallel:l=true,include:c,exclude:d}=e;this.options={test:n,extractComments:r,sourceMap:o,cache:i,cacheKeys:a,parallel:l,include:c,exclude:d,minify:t,terserOptions:s}}static isSourceMap(e){return Boolean(e&&e.version&&e.sources&&Array.isArray(e.sources)&&typeof e.mappings==="string")}static buildError(e,t,s,n){if(e.line){const r=s&&s.originalPositionFor({line:e.line,column:e.col});if(r&&r.source&&n){return new Error(`${t} from Terser\n${e.message} [${n.shorten(r.source)}:${r.line},${r.column}][${t}:${e.line},${e.col}]${e.stack?`\n${e.stack.split("\n").slice(1).join("\n")}`:""}`)}return new Error(`${t} from Terser\n${e.message} [${t}:${e.line},${e.col}]${e.stack?`\n${e.stack.split("\n").slice(1).join("\n")}`:""}`)}if(e.stack){return new Error(`${t} from Terser\n${e.stack}`)}return new Error(`${t} from Terser\n${e.message}`)}static isWebpack4(){return l.version[0]==="4"}static getAvailableNumberOfCores(e){const t=r.default.cpus()||{length:1};return e===true?t.length-1:Math.min(Number(e)||0,t.length-1)}static getAsset(e,t){if(e.getAsset){return e.getAsset(t)}if(e.assets[t]){return{name:t,source:e.assets[t],info:{}}}}static emitAsset(e,t,s,n){if(e.emitAsset){e.emitAsset(t,s,n)}e.assets[t]=s}static updateAsset(e,t,s,n){if(e.updateAsset){e.updateAsset(t,s,n)}e.assets[t]=s}*taskGenerator(e,t,r,u){const{info:c,source:h}=TerserPlugin.getAsset(t,u);if(c.minimized){yield false}let f;let p;if(this.options.sourceMap&&h.sourceAndMap){const{source:e,map:s}=h.sourceAndMap();f=e;if(s){if(TerserPlugin.isSourceMap(s)){p=s}else{p=s;t.warnings.push(new Error(`${u} contains invalid source map`))}}}else{f=h.source();p=null}if(Buffer.isBuffer(f)){f=f.toString()}let m=false;if(this.options.extractComments){m=this.options.extractComments.filename||"[file].LICENSE.txt[query]";let e="";let s=u;const n=s.indexOf("?");if(n>=0){e=s.substr(n);s=s.substr(0,n)}const r=s.lastIndexOf("/");const o=r===-1?s:s.substr(r+1);const i={filename:s,basename:o,query:e};m=t.getPath(m,i)}const g=s=>{let{code:l}=s;const{error:d,map:h}=s;const{extractedComments:g}=s;let y=null;if(d&&p&&TerserPlugin.isSourceMap(p)){y=new o.SourceMapConsumer(p)}if(d){t.errors.push(TerserPlugin.buildError(d,u,y,new a.default(e.context)));return}const k=m&&g&&g.length>0;const b=this.options.extractComments.banner!==false;let w;let _;if(k&&b&&l.startsWith("#!")){const e=l.indexOf("\n");_=l.substring(0,e);l=l.substring(e+1)}if(h){w=new i.SourceMapSource(l,u,h,f,p,true)}else{w=new i.RawSource(l)}const v={...c,minimized:true};if(k){let e;v.related={license:m};if(b){e=this.options.extractComments.banner||`For license information please see ${n.default.relative(n.default.dirname(u),m).replace(/\\/g,"/")}`;if(typeof e==="function"){e=e(m)}if(e){w=new i.ConcatSource(_?`${_}\n`:"",`/*! ${e} */\n`,w)}}if(!r[m]){r[m]=new Set}g.forEach(t=>{if(e&&t===`/*! ${e} */`){return}r[m].add(t)});const s=TerserPlugin.getAsset(t,m);if(s){const e=s.source.source();e.replace(/\n$/,"").split("\n\n").forEach(e=>{r[m].add(e)})}}TerserPlugin.updateAsset(t,u,w,v)};const y={name:u,input:f,inputSourceMap:p,commentsFilename:m,extractComments:this.options.extractComments,terserOptions:this.options.terserOptions,minify:this.options.minify,callback:g};if(TerserPlugin.isWebpack4()){const{outputOptions:{hashSalt:e,hashDigest:n,hashDigestLength:r,hashFunction:o}}=t;const i=l.util.createHash(o);if(e){i.update(e)}i.update(f);const a=i.digest(n);if(this.options.cache){const e={terser:d.default.version,"terser-webpack-plugin":s(721).version,"terser-webpack-plugin-options":this.options,nodeVersion:process.version,name:u,contentHash:a.substr(0,r)};y.cacheKeys=this.options.cacheKeys(e,u)}}else{y.assetSource=h}yield y}async runTasks(e,t,n){const r=TerserPlugin.getAvailableNumberOfCores(this.options.parallel);let o=Infinity;let i;if(r>0){const t=Math.min(e.length,r);o=t;i=new f.default(s.ab+"minify.js",{numWorkers:t});const n=i.getStdout();if(n){n.on("data",e=>{return process.stdout.write(e)})}const a=i.getStderr();if(a){a.on("data",e=>{return process.stderr.write(e)})}}const a=(0,h.default)(o);const l=[];for(const s of e){const e=async e=>{let t;try{t=await(i?i.transform((0,c.default)(e)):(0,m.minify)(e))}catch(e){t={error:e}}if(n.isEnabled()&&!t.error){await n.store(e,t)}e.callback(t);return t};l.push(a(async()=>{const r=t(s).next().value;if(!r){return Promise.resolve()}if(n.isEnabled()){let t;try{t=await n.get(r)}catch(t){return e(r)}if(!t){return e(r)}r.callback(t);return Promise.resolve()}return e(r)}))}await Promise.all(l);if(i){await i.end()}}apply(e){const{devtool:t,output:n,plugins:r}=e.options;this.options.sourceMap=typeof this.options.sourceMap==="undefined"?t&&!t.includes("eval")&&!t.includes("cheap")&&(t.includes("source-map")||t.includes("sourcemap"))||r&&r.some(e=>e instanceof l.SourceMapDevToolPlugin&&e.options&&e.options.columns):Boolean(this.options.sourceMap);if(typeof this.options.terserOptions.module==="undefined"&&typeof n.module!=="undefined"){this.options.terserOptions.module=n.module}if(typeof this.options.terserOptions.ecma==="undefined"&&typeof n.ecmaVersion!=="undefined"){this.options.terserOptions.ecma=n.ecmaVersion}const o=l.ModuleFilenameHelpers.matchObject.bind(undefined,this.options);const a=async(t,n)=>{let r;if(TerserPlugin.isWebpack4()){r=[].concat(Array.from(t.additionalChunkAssets||[])).concat(Array.from(n).reduce((e,t)=>e.concat(Array.from(t.files||[])),[])).concat(Object.keys(t.assets)).filter((e,t,s)=>s.indexOf(e)===t).filter(e=>o(e))}else{r=[].concat(Object.keys(n)).filter(e=>o(e))}if(r.length===0){return Promise.resolve()}const a={};const l=this.taskGenerator.bind(this,e,t,a);const u=TerserPlugin.isWebpack4()?s(722).default:s(475).default;const c=new u(t,{cache:this.options.cache});await this.runTasks(r,l,c);Object.keys(a).forEach(e=>{const s=Array.from(a[e]).sort().join("\n\n");TerserPlugin.emitAsset(t,e,new i.RawSource(`${s}\n`))});return Promise.resolve()};const u=this.constructor.name;e.hooks.compilation.tap(u,e=>{if(this.options.sourceMap){e.hooks.buildModule.tap(u,e=>{e.useSourceMap=true})}if(TerserPlugin.isWebpack4()){const{mainTemplate:t,chunkTemplate:s}=e;const n=(0,c.default)({terser:d.default.version,terserOptions:this.options.terserOptions});for(const e of[t,s]){e.hooks.hashForChunk.tap(u,e=>{e.update("TerserPlugin");e.update(n)})}e.hooks.optimizeChunkAssets.tapPromise(u,a.bind(this,e))}else{const t=s(980);const n=l.javascript.JavascriptModulesPlugin.getCompilationHooks(e);const r=(0,c.default)({terser:d.default.version,terserOptions:this.options.terserOptions});n.chunkHash.tap(u,(e,t)=>{t.update("TerserPlugin");t.update(r)});e.hooks.processAssets.tapPromise({name:u,stage:t.PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE},a.bind(this,e));e.hooks.statsPrinter.tap(u,e=>{e.hooks.print.for("asset.info.minimized").tap("terser-webpack-plugin",(e,{green:t,formatFlag:s})=>e?t(s("minimized")):undefined)})}})}}var g=TerserPlugin;t.default=g},591:function(e,t,s){"use strict";const n=s(886);class HotUpdateChunk extends n{constructor(){super();this.removedModules=undefined}}e.exports=HotUpdateChunk},622:function(e){e.exports=require("path")},635:function(e){e.exports=require("cacache")},638:function(e,t,s){"use strict";const n=s(446);class EntryModuleNotFoundError extends n{constructor(e){super("Entry module not found: "+e);this.name="EntryModuleNotFoundError";this.details=e.details;this.error=e;Error.captureStackTrace(this,this.constructor)}}e.exports=EntryModuleNotFoundError},641:function(e){e.exports={definitions:{Rule:{description:"Filtering rule as regex or string.",anyOf:[{instanceof:"RegExp",tsType:"RegExp"},{type:"string",minLength:1}]},Rules:{description:"Filtering rules.",anyOf:[{type:"array",items:{description:"A rule condition.",oneOf:[{$ref:"#/definitions/Rule"}]}},{$ref:"#/definitions/Rule"}]}},title:"TerserPluginOptions",type:"object",additionalProperties:false,properties:{test:{description:"Include all modules that pass test assertion.",oneOf:[{$ref:"#/definitions/Rules"}]},include:{description:"Include all modules matching any of these conditions.",oneOf:[{$ref:"#/definitions/Rules"}]},exclude:{description:"Exclude all modules matching any of these conditions.",oneOf:[{$ref:"#/definitions/Rules"}]},cache:{description:"Enable file caching. Ignored in webpack 5, for webpack 5 please use https://webpack.js.org/configuration/other-options/#cache.",anyOf:[{type:"boolean"},{type:"string"}]},cacheKeys:{description:"Allows you to override default cache keys. Ignored in webpack 5, for webpack 5 please use https://webpack.js.org/configuration/other-options/#cache.",instanceof:"Function"},parallel:{description:"Use multi-process parallel running to improve the build speed.",anyOf:[{type:"boolean"},{type:"integer"}]},sourceMap:{description:"Enables/Disables generation of source maps.",type:"boolean"},minify:{description:"Allows you to override default minify function.",instanceof:"Function"},terserOptions:{description:"Options for `terser`.",additionalProperties:true,type:"object"},extractComments:{description:"Whether comments shall be extracted to a separate file.",anyOf:[{type:"boolean"},{type:"string"},{instanceof:"RegExp"},{instanceof:"Function"},{additionalProperties:false,properties:{condition:{anyOf:[{type:"boolean"},{type:"string"},{instanceof:"RegExp"},{instanceof:"Function"}]},filename:{anyOf:[{type:"string"},{instanceof:"Function"}]},banner:{anyOf:[{type:"boolean"},{type:"string"},{instanceof:"Function"}]}},type:"object"}]}}}},645:function(e,t,s){"use strict";const n=s(446);class ModuleNotFoundError extends n{constructor(e,t){super("Module not found: "+t);this.name="ModuleNotFoundError";this.details=t.details;this.missing=t.missing;this.module=e;this.error=t;Error.captureStackTrace(this,this.constructor)}}e.exports=ModuleNotFoundError},647:function(e,t,s){"use strict";const n=s(446);e.exports=class ModuleDependencyWarning extends n{constructor(e,t,s){super(t.message);this.name="ModuleDependencyWarning";this.details=t.stack.split("\n").slice(1).join("\n");this.module=e;this.loc=s;this.error=t;this.origin=e.issuer;Error.captureStackTrace(this,this.constructor)}}},656:function(e,t){"use strict";const s=e=>{if(e.length===0)return new Set;if(e.length===1)return new Set(e[0]);let t=Infinity;let s=-1;for(let n=0;n{if(e.sizee(s),onResult:(e,t,s)=>{let n="";n+=`if(${t} !== undefined) {\n`;n+=`${this._args[0]} = ${t};\n`;n+=`}\n`;n+=s();return n},onDone:()=>t(this._args[0]),doneReturns:s,rethrowIfPossible:n})}}const o=new SyncWaterfallHookCodeFactory;class SyncWaterfallHook extends n{constructor(e){super(e);if(e.length<1)throw new Error("Waterfall hooks must have at least one argument")}tapAsync(){throw new Error("tapAsync is not supported on a SyncWaterfallHook")}tapPromise(){throw new Error("tapPromise is not supported on a SyncWaterfallHook")}compile(e){o.setup(this,e);return o.create(e)}}e.exports=SyncWaterfallHook},694:function(e,t,s){"use strict";const n=s(813);const r=e=>{if(!((Number.isInteger(e)||e===Infinity)&&e>0)){throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const t=[];let s=0;const r=()=>{s--;if(t.length>0){t.shift()()}};const o=async(e,t,...o)=>{s++;const i=n(e,...o);t(i);try{await i}catch{}r()};const i=(n,r,...i)=>{t.push(o.bind(null,n,r,...i));(async()=>{await Promise.resolve();if(s0){t.shift()()}})()};const a=(e,...t)=>new Promise(s=>i(e,s,...t));Object.defineProperties(a,{activeCount:{get:()=>s},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}});return a};e.exports=r},696:function(e,t,s){"use strict";const n=s(669);const r=s(463);const o=s(496);class Dependency{constructor(){this.module=null;this.weak=false;this.optional=false;this.loc=undefined}getResourceIdentifier(){return null}getReference(){if(!this.module)return null;return new o(this.module,true,this.weak)}getExports(){return null}getWarnings(){return null}getErrors(){return null}updateHash(e){e.update((this.module&&this.module.id)+"")}disconnect(){this.module=null}}Dependency.compare=n.deprecate((e,t)=>r(e.loc,t.loc),"Dependency.compare is deprecated and will be removed in the next major version");e.exports=Dependency},721:function(e){e.exports={name:"terser-webpack-plugin",version:"4.1.0",description:"Terser plugin for webpack",license:"MIT",repository:"webpack-contrib/terser-webpack-plugin",author:"webpack Contrib Team",homepage:"https://github.com/webpack-contrib/terser-webpack-plugin",bugs:"https://github.com/webpack-contrib/terser-webpack-plugin/issues",funding:{type:"opencollective",url:"https://opencollective.com/webpack"},main:"dist/cjs.js",engines:{node:">= 10.13.0"},scripts:{start:"npm run build -- -w",clean:"del-cli dist",prebuild:"npm run clean",build:"cross-env NODE_ENV=production babel src -d dist --copy-files",commitlint:"commitlint --from=master",security:"npm audit","lint:prettier":"prettier --list-different .","lint:js":"eslint --cache .",lint:'npm-run-all -l -p "lint:**"',"test:only":"cross-env NODE_ENV=test jest","test:watch":"npm run test:only -- --watch","test:coverage":'npm run test:only -- --collectCoverageFrom="src/**/*.js" --coverage',pretest:"npm run lint",test:"npm run test:coverage",prepare:"npm run build",release:"standard-version",defaults:"webpack-defaults"},files:["dist"],peerDependencies:{webpack:"^4.0.0 || ^5.0.0"},dependencies:{cacache:"^15.0.5","find-cache-dir":"^3.3.1","jest-worker":"^26.3.0","p-limit":"^3.0.2","schema-utils":"^2.6.6","serialize-javascript":"^4.0.0","source-map":"^0.6.1",terser:"^5.0.0","webpack-sources":"^1.4.3"},devDependencies:{"@babel/cli":"^7.10.5","@babel/core":"^7.11.1","@babel/preset-env":"^7.11.0","@commitlint/cli":"^9.1.2","@commitlint/config-conventional":"^9.1.1","@webpack-contrib/defaults":"^6.3.0","@webpack-contrib/eslint-config-webpack":"^3.0.0","babel-jest":"^26.3.0","copy-webpack-plugin":"^6.0.3","cross-env":"^7.0.2",del:"^5.1.0","del-cli":"^3.0.1",eslint:"^7.5.0","eslint-config-prettier":"^6.11.0","eslint-plugin-import":"^2.21.2","file-loader":"^6.0.0",husky:"^4.2.5",jest:"^26.3.0","lint-staged":"^10.2.11",memfs:"^3.2.0","npm-run-all":"^4.1.5",prettier:"^2.0.5","standard-version":"^8.0.2","uglify-js":"^3.10.0",webpack:"^4.44.1","worker-loader":"^3.0.1"},keywords:["uglify","uglify-js","uglify-es","terser","webpack","webpack-plugin","minification","compress","compressor","min","minification","minifier","minify","optimize","optimizer"]}},722:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=_interopRequireDefault(s(87));var r=_interopRequireDefault(s(635));var o=_interopRequireDefault(s(240));var i=_interopRequireDefault(s(960));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class Webpack4Cache{constructor(e,t){this.cacheDir=t.cache===true?Webpack4Cache.getCacheDirectory():t.cache}static getCacheDirectory(){return(0,o.default)({name:"terser-webpack-plugin"})||n.default.tmpdir()}isEnabled(){return Boolean(this.cacheDir)}async get(e){e.cacheIdent=e.cacheIdent||(0,i.default)(e.cacheKeys);const{data:t}=await r.default.get(this.cacheDir,e.cacheIdent);return JSON.parse(t)}async store(e,t){return r.default.put(this.cacheDir,e.cacheIdent,JSON.stringify(t))}}t.default=Webpack4Cache},733:function(e){e.exports=require("jest-worker")},742:function(e,t,s){"use strict";const n=s(696);class ModuleDependency extends n{constructor(e){super();this.request=e;this.userRequest=e}getResourceIdentifier(){return`module${this.request}`}}e.exports=ModuleDependency},743:function(e,t,s){"use strict";const n=s(521);const r=s(533);class AsyncSeriesHookCodeFactory extends r{content({onError:e,onDone:t}){return this.callTapsSeries({onError:(t,s,n,r)=>e(s)+r(true),onDone:t})}}const o=new AsyncSeriesHookCodeFactory;class AsyncSeriesHook extends n{compile(e){o.setup(this,e);return o.create(e)}}Object.defineProperties(AsyncSeriesHook.prototype,{_call:{value:undefined,configurable:true,writable:true}});e.exports=AsyncSeriesHook},745:function(e){e.exports=require("webpack-sources")},751:function(e){e.exports={name:"terser",description:"JavaScript parser, mangler/compressor and beautifier toolkit for ES6+",homepage:"https://terser.org",author:"Mihai Bazon (http://lisperator.net/)",license:"BSD-2-Clause",version:"5.1.0",engines:{node:">=6.0.0"},maintainers:["Fábio Santos "],repository:"https://github.com/terser/terser",main:"dist/bundle.min.js",type:"module",exports:{".":{import:"./main.js",require:"./dist/bundle.min.js"},"./package":{default:"./package.json"},"./package.json":{default:"./package.json"}},types:"tools/terser.d.ts",bin:{terser:"bin/terser"},files:["bin","dist","lib","tools","LICENSE","README.md","CHANGELOG.md","PATRONS.md","main.js"],dependencies:{commander:"^2.20.0","source-map":"~0.6.1","source-map-support":"~0.5.12"},devDependencies:{"@ls-lint/ls-lint":"^1.9.2",acorn:"^7.4.0",astring:"^1.4.1",eslint:"^7.0.0",eslump:"^2.0.0",esm:"^3.2.25",mocha:"^8.0.0","pre-commit":"^1.2.2",rimraf:"^3.0.0",rollup:"2.0.6",semver:"^7.1.3"},scripts:{test:"node test/compress.js && mocha test/mocha","test:compress":"node test/compress.js","test:mocha":"mocha test/mocha",lint:"eslint lib","lint-fix":"eslint --fix lib","ls-lint":"ls-lint",build:"rimraf dist/bundle* && rollup --config --silent",prepare:"npm run build",postversion:"echo 'Remember to update the changelog!'"},keywords:["uglify","terser","uglify-es","uglify-js","minify","minifier","javascript","ecmascript","es5","es6","es7","es8","es2015","es2016","es2017","async","await"],eslintConfig:{parserOptions:{sourceType:"module",ecmaVersion:"2020"},env:{node:true,browser:true,es2020:true},globals:{describe:false,it:false,require:false,global:false,process:false},rules:{"brace-style":["error","1tbs",{allowSingleLine:true}],quotes:["error","double","avoid-escape"],"no-debugger":"error","no-undef":"error","no-unused-vars":["error",{varsIgnorePattern:"^_$"}],"no-tabs":"error",semi:["error","always"],"no-extra-semi":"error","no-irregular-whitespace":"error","space-before-blocks":["error","always"]}},"pre-commit":["lint-fix","ls-lint","test"]}},773:function(e,t,s){"use strict";const n=s(542);const r=s(463);let o=5e3;const i=e=>Array.from(e);const a=(e,t)=>{if(e.id{const s=e.module?e.module.identifier():"";const n=t.module?t.module.identifier():"";if(sn)return 1;return r(e.loc,t.loc)};class ChunkGroup{constructor(e){if(typeof e==="string"){e={name:e}}else if(!e){e={name:undefined}}this.groupDebugId=o++;this.options=e;this._children=new n(undefined,a);this._parents=new n(undefined,a);this._blocks=new n;this.chunks=[];this.origins=[];this._moduleIndices=new Map;this._moduleIndices2=new Map}addOptions(e){for(const t of Object.keys(e)){if(this.options[t]===undefined){this.options[t]=e[t]}else if(this.options[t]!==e[t]){if(t.endsWith("Order")){this.options[t]=Math.max(this.options[t],e[t])}else{throw new Error(`ChunkGroup.addOptions: No option merge strategy for ${t}`)}}}}get name(){return this.options.name}set name(e){this.options.name=e}get debugId(){return Array.from(this.chunks,e=>e.debugId).join("+")}get id(){return Array.from(this.chunks,e=>e.id).join("+")}unshiftChunk(e){const t=this.chunks.indexOf(e);if(t>0){this.chunks.splice(t,1);this.chunks.unshift(e)}else if(t<0){this.chunks.unshift(e);return true}return false}insertChunk(e,t){const s=this.chunks.indexOf(e);const n=this.chunks.indexOf(t);if(n<0){throw new Error("before chunk not found")}if(s>=0&&s>n){this.chunks.splice(s,1);this.chunks.splice(n,0,e)}else if(s<0){this.chunks.splice(n,0,e);return true}return false}pushChunk(e){const t=this.chunks.indexOf(e);if(t>=0){return false}this.chunks.push(e);return true}replaceChunk(e,t){const s=this.chunks.indexOf(e);if(s<0)return false;const n=this.chunks.indexOf(t);if(n<0){this.chunks[s]=t;return true}if(n=0){this.chunks.splice(t,1);return true}return false}isInitial(){return false}addChild(e){if(this._children.has(e)){return false}this._children.add(e);return true}getChildren(){return this._children.getFromCache(i)}getNumberOfChildren(){return this._children.size}get childrenIterable(){return this._children}removeChild(e){if(!this._children.has(e)){return false}this._children.delete(e);e.removeParent(this);return true}addParent(e){if(!this._parents.has(e)){this._parents.add(e);return true}return false}getParents(){return this._parents.getFromCache(i)}setParents(e){this._parents.clear();for(const t of e){this._parents.add(t)}}getNumberOfParents(){return this._parents.size}hasParent(e){return this._parents.has(e)}get parentsIterable(){return this._parents}removeParent(e){if(this._parents.delete(e)){e.removeChunk(this);return true}return false}getBlocks(){return this._blocks.getFromCache(i)}getNumberOfBlocks(){return this._blocks.size}hasBlock(e){return this._blocks.has(e)}get blocksIterable(){return this._blocks}addBlock(e){if(!this._blocks.has(e)){this._blocks.add(e);return true}return false}addOrigin(e,t,s){this.origins.push({module:e,loc:t,request:s})}containsModule(e){for(const t of this.chunks){if(t.containsModule(e))return true}return false}getFiles(){const e=new Set;for(const t of this.chunks){for(const s of t.files){e.add(s)}}return Array.from(e)}remove(e){for(const e of this._parents){e._children.delete(this);for(const t of this._children){t.addParent(e);e.addChild(t)}}for(const e of this._children){e._parents.delete(this)}for(const e of this._blocks){e.chunkGroup=null}for(const e of this.chunks){e.removeGroup(this)}}sortItems(){this.origins.sort(l);this._parents.sort();this._children.sort()}compareTo(e){if(this.chunks.length>e.chunks.length)return-1;if(this.chunks.length{const s=t.order-e.order;if(s!==0)return s;if(e.group.compareTo){return e.group.compareTo(t.group)}return 0});t[s]=n.map(e=>e.group)}return t}setModuleIndex(e,t){this._moduleIndices.set(e,t)}getModuleIndex(e){return this._moduleIndices.get(e)}setModuleIndex2(e,t){this._moduleIndices2.set(e,t)}getModuleIndex2(e){return this._moduleIndices2.get(e)}checkConstraints(){const e=this;for(const t of e._children){if(!t._parents.has(e)){throw new Error(`checkConstraints: child missing parent ${e.debugId} -> ${t.debugId}`)}}for(const t of e._parents){if(!t._children.has(e)){throw new Error(`checkConstraints: parent missing child ${t.debugId} <- ${e.debugId}`)}}}}e.exports=ChunkGroup},775:function(e){e.exports=require("next/dist/compiled/terser")},788:function(e,t,s){"use strict";const n=s(140);const r=s(122);const o=s(367);const i=s(832);const a=s(463);const{LogType:l}=s(225);const u=(...e)=>{let t=[];t.push(...e);return t.find(e=>e!==undefined)};const c=(e,t)=>{if(typeof e!==typeof t){return typeof et)return 1;return 0};class Stats{constructor(e){this.compilation=e;this.hash=e.hash;this.startTime=undefined;this.endTime=undefined}static filterWarnings(e,t){if(!t){return e}const s=[].concat(t).map(e=>{if(typeof e==="string"){return t=>t.includes(e)}if(e instanceof RegExp){return t=>e.test(t)}if(typeof e==="function"){return e}throw new Error(`Can only filter warnings with Strings or RegExps. (Given: ${e})`)});return e.filter(e=>{return!s.some(t=>t(e))})}formatFilePath(e){const t=/^(\s|\S)*!/;return e.includes("!")?`${e.replace(t,"")} (${e})`:`${e}`}hasWarnings(){return this.compilation.warnings.length>0||this.compilation.children.some(e=>e.getStats().hasWarnings())}hasErrors(){return this.compilation.errors.length>0||this.compilation.children.some(e=>e.getStats().hasErrors())}normalizeFieldKey(e){if(e[0]==="!"){return e.substr(1)}return e}sortOrderRegular(e){if(e[0]==="!"){return false}return true}toJson(e,t){if(typeof e==="boolean"||typeof e==="string"){e=Stats.presetToOptions(e)}else if(!e){e={}}const r=(t,s)=>t!==undefined?t:e.all!==undefined?e.all:s;const d=e=>{if(typeof e==="string"){const t=new RegExp(`[\\\\/]${e.replace(/[-[\]{}()*+?.\\^$|]/g,"\\$&")}([\\\\/]|$|!|\\?)`);return e=>t.test(e)}if(e&&typeof e==="object"&&typeof e.test==="function"){return t=>e.test(t)}if(typeof e==="function"){return e}if(typeof e==="boolean"){return()=>e}};const h=this.compilation;const f=u(e.context,h.compiler.context);const p=h.compiler.context===f?h.requestShortener:new n(f);const m=r(e.performance,true);const g=r(e.hash,true);const y=r(e.env,false);const k=r(e.version,true);const b=r(e.timings,true);const w=r(e.builtAt,true);const _=r(e.assets,true);const v=r(e.entrypoints,true);const x=r(e.chunkGroups,!t);const $=r(e.chunks,!t);const E=r(e.chunkModules,true);const M=r(e.chunkOrigins,!t);const O=r(e.modules,true);const A=r(e.nestedModules,true);const S=r(e.moduleAssets,!t);const C=r(e.depth,!t);const j=r(e.cached,true);const T=r(e.cachedAssets,true);const I=r(e.reasons,!t);const D=r(e.usedExports,!t);const P=r(e.providedExports,!t);const R=r(e.optimizationBailout,!t);const H=r(e.children,true);const z=r(e.source,!t);const q=r(e.moduleTrace,true);const B=r(e.errors,true);const F=r(e.errorDetails,!t);const G=r(e.warnings,true);const N=u(e.warningsFilter,null);const W=r(e.publicPath,!t);const U=r(e.logging,t?"info":true);const L=r(e.loggingTrace,!t);const J=[].concat(u(e.loggingDebug,[])).map(d);const Z=[].concat(u(e.excludeModules,e.exclude,[])).map(d);const K=[].concat(u(e.excludeAssets,[])).map(d);const Q=u(e.maxModules,t?15:Infinity);const X=u(e.modulesSort,"id");const Y=u(e.chunksSort,"id");const V=u(e.assetsSort,"");const ee=r(e.outputPath,!t);if(!j){Z.push((e,t)=>!t.built)}const te=()=>{let e=0;return t=>{if(Z.length>0){const e=p.shorten(t.resource);const s=Z.some(s=>s(e,t));if(s)return false}const s=e{return e=>{if(K.length>0){const t=e.name;const s=K.some(s=>s(t,e));if(s)return false}return T||e.emitted}};const ne=(e,t,s)=>{if(t[e]===null&&s[e]===null)return 0;if(t[e]===null)return 1;if(s[e]===null)return-1;if(t[e]===s[e])return 0;if(typeof t[e]!==typeof s[e])return typeof t[e]{const s=t.reduce((e,t,s)=>{e.set(t,s);return e},new Map);return(t,n)=>{if(e){const s=this.normalizeFieldKey(e);const r=this.sortOrderRegular(e);const o=ne(s,r?t:n,r?n:t);if(o)return o}return s.get(t)-s.get(n)}};const oe=e=>{let t="";if(typeof e==="string"){e={message:e}}if(e.chunk){t+=`chunk ${e.chunk.name||e.chunk.id}${e.chunk.hasRuntime()?" [entry]":e.chunk.canBeInitial()?" [initial]":""}\n`}if(e.file){t+=`${e.file}\n`}if(e.module&&e.module.readableIdentifier&&typeof e.module.readableIdentifier==="function"){t+=this.formatFilePath(e.module.readableIdentifier(p));if(typeof e.loc==="object"){const s=o(e.loc);if(s)t+=` ${s}`}t+="\n"}t+=e.message;if(F&&e.details){t+=`\n${e.details}`}if(F&&e.missing){t+=e.missing.map(e=>`\n[${e}]`).join("")}if(q&&e.origin){t+=`\n @ ${this.formatFilePath(e.origin.readableIdentifier(p))}`;if(typeof e.originLoc==="object"){const s=o(e.originLoc);if(s)t+=` ${s}`}if(e.dependencies){for(const s of e.dependencies){if(!s.loc)continue;if(typeof s.loc==="string")continue;const e=o(s.loc);if(!e)continue;t+=` ${e}`}}let s=e.origin;while(s.issuer){s=s.issuer;t+=`\n @ ${s.readableIdentifier(p)}`}}return t};const ie={errors:h.errors.map(oe),warnings:Stats.filterWarnings(h.warnings.map(oe),N)};Object.defineProperty(ie,"_showWarnings",{value:G,enumerable:false});Object.defineProperty(ie,"_showErrors",{value:B,enumerable:false});if(k){ie.version=s(155).version}if(g)ie.hash=this.hash;if(b&&this.startTime&&this.endTime){ie.time=this.endTime-this.startTime}if(w&&this.endTime){ie.builtAt=this.endTime}if(y&&e._env){ie.env=e._env}if(h.needAdditionalPass){ie.needAdditionalPass=true}if(W){ie.publicPath=this.compilation.mainTemplate.getPublicPath({hash:this.compilation.hash})}if(ee){ie.outputPath=this.compilation.mainTemplate.outputOptions.path}if(_){const e={};const t=h.getAssets().sort((e,t)=>e.name{const r={name:t,size:s.size(),chunks:[],chunkNames:[],info:n,emitted:s.emitted||h.emittedAssets.has(t)};if(m){r.isOverSizeLimit=s.isOverSizeLimit}e[t]=r;return r}).filter(se());ie.filteredAssets=t.length-ie.assets.length;for(const t of h.chunks){for(const s of t.files){if(e[s]){for(const n of t.ids){e[s].chunks.push(n)}if(t.name){e[s].chunkNames.push(t.name);if(ie.assetsByChunkName[t.name]){ie.assetsByChunkName[t.name]=[].concat(ie.assetsByChunkName[t.name]).concat([s])}else{ie.assetsByChunkName[t.name]=s}}}}}ie.assets.sort(re(V,ie.assets))}const ae=e=>{const t={};for(const s of e){const e=s[0];const n=s[1];const r=n.getChildrenByOrders();t[e]={chunks:n.chunks.map(e=>e.id),assets:n.chunks.reduce((e,t)=>e.concat(t.files||[]),[]),children:Object.keys(r).reduce((e,t)=>{const s=r[t];e[t]=s.map(e=>({name:e.name,chunks:e.chunks.map(e=>e.id),assets:e.chunks.reduce((e,t)=>e.concat(t.files||[]),[])}));return e},Object.create(null)),childAssets:Object.keys(r).reduce((e,t)=>{const s=r[t];e[t]=Array.from(s.reduce((e,t)=>{for(const s of t.chunks){for(const t of s.files){e.add(t)}}return e},new Set));return e},Object.create(null))};if(m){t[e].isOverSizeLimit=n.isOverSizeLimit}}return t};if(v){ie.entrypoints=ae(h.entrypoints)}if(x){ie.namedChunkGroups=ae(h.namedChunkGroups)}const le=e=>{const t=[];let s=e;while(s.issuer){t.push(s=s.issuer)}t.reverse();const n={id:e.id,identifier:e.identifier(),name:e.readableIdentifier(p),index:e.index,index2:e.index2,size:e.size(),cacheable:e.buildInfo.cacheable,built:!!e.built,optional:e.optional,prefetched:e.prefetched,chunks:Array.from(e.chunksIterable,e=>e.id),issuer:e.issuer&&e.issuer.identifier(),issuerId:e.issuer&&e.issuer.id,issuerName:e.issuer&&e.issuer.readableIdentifier(p),issuerPath:e.issuer&&t.map(e=>({id:e.id,identifier:e.identifier(),name:e.readableIdentifier(p),profile:e.profile})),profile:e.profile,failed:!!e.error,errors:e.errors?e.errors.length:0,warnings:e.warnings?e.warnings.length:0};if(S){n.assets=Object.keys(e.buildInfo.assets||{})}if(I){n.reasons=e.reasons.sort((e,t)=>{if(e.module&&!t.module)return-1;if(!e.module&&t.module)return 1;if(e.module&&t.module){const s=c(e.module.id,t.module.id);if(s)return s}if(e.dependency&&!t.dependency)return-1;if(!e.dependency&&t.dependency)return 1;if(e.dependency&&t.dependency){const s=a(e.dependency.loc,t.dependency.loc);if(s)return s;if(e.dependency.typet.dependency.type)return 1}return 0}).map(e=>{const t={moduleId:e.module?e.module.id:null,moduleIdentifier:e.module?e.module.identifier():null,module:e.module?e.module.readableIdentifier(p):null,moduleName:e.module?e.module.readableIdentifier(p):null,type:e.dependency?e.dependency.type:null,explanation:e.explanation,userRequest:e.dependency?e.dependency.userRequest:null};if(e.dependency){const s=o(e.dependency.loc);if(s){t.loc=s}}return t})}if(D){if(e.used===true){n.usedExports=e.usedExports}else if(e.used===false){n.usedExports=false}}if(P){n.providedExports=Array.isArray(e.buildMeta.providedExports)?e.buildMeta.providedExports:null}if(R){n.optimizationBailout=e.optimizationBailout.map(e=>{if(typeof e==="function")return e(p);return e})}if(C){n.depth=e.depth}if(A){if(e.modules){const t=e.modules;n.modules=t.sort(re("depth",t)).filter(te()).map(le);n.filteredModules=t.length-n.modules.length;n.modules.sort(re(X,n.modules))}}if(z&&e._source){n.source=e._source.source()}return n};if($){ie.chunks=h.chunks.map(e=>{const t=new Set;const s=new Set;const n=new Set;const r=e.getChildIdsByOrders();for(const r of e.groupsIterable){for(const e of r.parentsIterable){for(const s of e.chunks){t.add(s.id)}}for(const e of r.childrenIterable){for(const t of e.chunks){s.add(t.id)}}for(const t of r.chunks){if(t!==e)n.add(t.id)}}const i={id:e.id,rendered:e.rendered,initial:e.canBeInitial(),entry:e.hasRuntime(),recorded:e.recorded,reason:e.chunkReason,size:e.modulesSize(),names:e.name?[e.name]:[],files:e.files.slice(),hash:e.renderedHash,siblings:Array.from(n).sort(c),parents:Array.from(t).sort(c),children:Array.from(s).sort(c),childrenByOrder:r};if(E){const t=e.getModules();i.modules=t.slice().sort(re("depth",t)).filter(te()).map(le);i.filteredModules=e.getNumberOfModules()-i.modules.length;i.modules.sort(re(X,i.modules))}if(M){i.origins=Array.from(e.groupsIterable,e=>e.origins).reduce((e,t)=>e.concat(t),[]).map(e=>({moduleId:e.module?e.module.id:undefined,module:e.module?e.module.identifier():"",moduleIdentifier:e.module?e.module.identifier():"",moduleName:e.module?e.module.readableIdentifier(p):"",loc:o(e.loc),request:e.request,reasons:e.reasons||[]})).sort((e,t)=>{const s=c(e.moduleId,t.moduleId);if(s)return s;const n=c(e.loc,t.loc);if(n)return n;const r=c(e.request,t.request);if(r)return r;return 0})}return i});ie.chunks.sort(re(Y,ie.chunks))}if(O){ie.modules=h.modules.slice().sort(re("depth",h.modules)).filter(te()).map(le);ie.filteredModules=h.modules.length-ie.modules.length;ie.modules.sort(re(X,ie.modules))}if(U){const e=s(669);ie.logging={};let t;let n=false;switch(U){case"none":t=new Set([]);break;case"error":t=new Set([l.error]);break;case"warn":t=new Set([l.error,l.warn]);break;case"info":t=new Set([l.error,l.warn,l.info]);break;case true:case"log":t=new Set([l.error,l.warn,l.info,l.log,l.group,l.groupEnd,l.groupCollapsed,l.clear]);break;case"verbose":t=new Set([l.error,l.warn,l.info,l.log,l.group,l.groupEnd,l.groupCollapsed,l.profile,l.profileEnd,l.time,l.status,l.clear]);n=true;break}for(const[s,r]of h.logging){const o=J.some(e=>e(s));let a=0;let u=r;if(!o){u=u.filter(e=>{if(!t.has(e.type))return false;if(!n){switch(e.type){case l.groupCollapsed:a++;return a===1;case l.group:if(a>0)a++;return a===0;case l.groupEnd:if(a>0){a--;return false}return true;default:return a===0}}return true})}u=u.map(t=>{let s=undefined;if(t.type===l.time){s=`${t.args[0]}: ${t.args[1]*1e3+t.args[2]/1e6}ms`}else if(t.args&&t.args.length>0){s=e.format(t.args[0],...t.args.slice(1))}return{type:(o||n)&&t.type===l.groupCollapsed?l.group:t.type,message:s,trace:L&&t.trace?t.trace:undefined}});let c=i.makePathsRelative(f,s,h.cache).replace(/\|/g," ");if(c in ie.logging){let e=1;while(`${c}#${e}`in ie.logging){e++}c=`${c}#${e}`}ie.logging[c]={entries:u,filteredEntries:r.length-u.length,debug:o}}}if(H){ie.children=h.children.map((s,n)=>{const r=Stats.getChildOptions(e,n);const o=new Stats(s).toJson(r,t);delete o.hash;delete o.version;if(s.name){o.name=i.makePathsRelative(f,s.name,h.cache)}return o})}return ie}toString(e){if(typeof e==="boolean"||typeof e==="string"){e=Stats.presetToOptions(e)}else if(!e){e={}}const t=u(e.colors,false);const s=this.toJson(e,true);return Stats.jsonToString(s,t)}static jsonToString(e,t){const s=[];const n={bold:"",yellow:"",red:"",green:"",cyan:"",magenta:""};const o=Object.keys(n).reduce((e,r)=>{e[r]=(e=>{if(t){s.push(t===true||t[r]===undefined?n[r]:t[r])}s.push(e);if(t){s.push("")}});return e},{normal:e=>s.push(e)});const i=t=>{let s=[800,400,200,100];if(e.time){s=[e.time/2,e.time/4,e.time/8,e.time/16]}if(ts.push("\n");const u=(e,t,s)=>{return e[t][s].value};const c=(e,t,s)=>{const n=e.length;const r=e[0].length;const i=new Array(r);for(let e=0;ei[s]){i[s]=n.length}}}for(let l=0;l{if(e.isOverSizeLimit){return o.yellow}return t};if(e.hash){o.normal("Hash: ");o.bold(e.hash);a()}if(e.version){o.normal("Version: webpack ");o.bold(e.version);a()}if(typeof e.time==="number"){o.normal("Time: ");o.bold(e.time);o.normal("ms");a()}if(typeof e.builtAt==="number"){const t=new Date(e.builtAt);let s=undefined;try{t.toLocaleTimeString()}catch(e){s="UTC"}o.normal("Built at: ");o.normal(t.toLocaleDateString(undefined,{day:"2-digit",month:"2-digit",year:"numeric",timeZone:s}));o.normal(" ");o.bold(t.toLocaleTimeString(undefined,{timeZone:s}));a()}if(e.env){o.normal("Environment (--env): ");o.bold(JSON.stringify(e.env,null,2));a()}if(e.publicPath){o.normal("PublicPath: ");o.bold(e.publicPath);a()}if(e.assets&&e.assets.length>0){const t=[[{value:"Asset",color:o.bold},{value:"Size",color:o.bold},{value:"Chunks",color:o.bold},{value:"",color:o.bold},{value:"",color:o.bold},{value:"Chunk Names",color:o.bold}]];for(const s of e.assets){t.push([{value:s.name,color:d(s,o.green)},{value:r.formatSize(s.size),color:d(s,o.normal)},{value:s.chunks.join(", "),color:o.bold},{value:[s.emitted&&"[emitted]",s.info.immutable&&"[immutable]",s.info.development&&"[dev]",s.info.hotModuleReplacement&&"[hmr]"].filter(Boolean).join(" "),color:o.green},{value:s.isOverSizeLimit?"[big]":"",color:d(s,o.normal)},{value:s.chunkNames.join(", "),color:o.normal}])}c(t,"rrrlll")}if(e.filteredAssets>0){o.normal(" ");if(e.assets.length>0)o.normal("+ ");o.normal(e.filteredAssets);if(e.assets.length>0)o.normal(" hidden");o.normal(e.filteredAssets!==1?" assets":" asset");a()}const h=(e,t)=>{for(const s of Object.keys(e)){const n=e[s];o.normal(`${t} `);o.bold(s);if(n.isOverSizeLimit){o.normal(" ");o.yellow("[big]")}o.normal(" =");for(const e of n.assets){o.normal(" ");o.green(e)}for(const e of Object.keys(n.childAssets)){const t=n.childAssets[e];if(t&&t.length>0){o.normal(" ");o.magenta(`(${e}:`);for(const e of t){o.normal(" ");o.green(e)}o.magenta(")")}}a()}};if(e.entrypoints){h(e.entrypoints,"Entrypoint")}if(e.namedChunkGroups){let t=e.namedChunkGroups;if(e.entrypoints){t=Object.keys(t).filter(t=>!e.entrypoints[t]).reduce((t,s)=>{t[s]=e.namedChunkGroups[s];return t},{})}h(t,"Chunk Group")}const f={};if(e.modules){for(const t of e.modules){f[`$${t.identifier}`]=t}}else if(e.chunks){for(const t of e.chunks){if(t.modules){for(const e of t.modules){f[`$${e.identifier}`]=e}}}}const p=e=>{o.normal(" ");o.normal(r.formatSize(e.size));if(e.chunks){for(const t of e.chunks){o.normal(" {");o.yellow(t);o.normal("}")}}if(typeof e.depth==="number"){o.normal(` [depth ${e.depth}]`)}if(e.cacheable===false){o.red(" [not cacheable]")}if(e.optional){o.yellow(" [optional]")}if(e.built){o.green(" [built]")}if(e.assets&&e.assets.length){o.magenta(` [${e.assets.length} asset${e.assets.length===1?"":"s"}]`)}if(e.prefetched){o.magenta(" [prefetched]")}if(e.failed)o.red(" [failed]");if(e.warnings){o.yellow(` [${e.warnings} warning${e.warnings===1?"":"s"}]`)}if(e.errors){o.red(` [${e.errors} error${e.errors===1?"":"s"}]`)}};const m=(e,t)=>{if(Array.isArray(e.providedExports)){o.normal(t);if(e.providedExports.length===0){o.cyan("[no exports]")}else{o.cyan(`[exports: ${e.providedExports.join(", ")}]`)}a()}if(e.usedExports!==undefined){if(e.usedExports!==true){o.normal(t);if(e.usedExports===null){o.cyan("[used exports unknown]")}else if(e.usedExports===false){o.cyan("[no exports used]")}else if(Array.isArray(e.usedExports)&&e.usedExports.length===0){o.cyan("[no exports used]")}else if(Array.isArray(e.usedExports)){const t=Array.isArray(e.providedExports)?e.providedExports.length:null;if(t!==null&&t===e.usedExports.length){o.cyan("[all exports used]")}else{o.cyan(`[only some exports used: ${e.usedExports.join(", ")}]`)}}a()}}if(Array.isArray(e.optimizationBailout)){for(const s of e.optimizationBailout){o.normal(t);o.yellow(s);a()}}if(e.reasons){for(const s of e.reasons){o.normal(t);if(s.type){o.normal(s.type);o.normal(" ")}if(s.userRequest){o.cyan(s.userRequest);o.normal(" ")}if(s.moduleId!==null){o.normal("[");o.normal(s.moduleId);o.normal("]")}if(s.module&&s.module!==s.moduleId){o.normal(" ");o.magenta(s.module)}if(s.loc){o.normal(" ");o.normal(s.loc)}if(s.explanation){o.normal(" ");o.cyan(s.explanation)}a()}}if(e.profile){o.normal(t);let s=0;if(e.issuerPath){for(const t of e.issuerPath){o.normal("[");o.normal(t.id);o.normal("] ");if(t.profile){const e=(t.profile.factory||0)+(t.profile.building||0);i(e);s+=e;o.normal(" ")}o.normal("-> ")}}for(const t of Object.keys(e.profile)){o.normal(`${t}:`);const n=e.profile[t];i(n);o.normal(" ");s+=n}o.normal("= ");i(s);a()}if(e.modules){g(e,t+"| ")}};const g=(e,t)=>{if(e.modules){let s=0;for(const t of e.modules){if(typeof t.id==="number"){if(s=10)n+=" ";if(s>=100)n+=" ";if(s>=1e3)n+=" ";for(const r of e.modules){o.normal(t);const e=r.name||r.identifier;if(typeof r.id==="string"||typeof r.id==="number"){if(typeof r.id==="number"){if(r.id<1e3&&s>=1e3)o.normal(" ");if(r.id<100&&s>=100)o.normal(" ");if(r.id<10&&s>=10)o.normal(" ")}else{if(s>=1e3)o.normal(" ");if(s>=100)o.normal(" ");if(s>=10)o.normal(" ")}if(e!==r.id){o.normal("[");o.normal(r.id);o.normal("]");o.normal(" ")}else{o.normal("[");o.bold(r.id);o.normal("]")}}if(e!==r.id){o.bold(e)}p(r);a();m(r,n)}if(e.filteredModules>0){o.normal(t);o.normal(" ");if(e.modules.length>0)o.normal(" + ");o.normal(e.filteredModules);if(e.modules.length>0)o.normal(" hidden");o.normal(e.filteredModules!==1?" modules":" module");a()}}};if(e.chunks){for(const t of e.chunks){o.normal("chunk ");if(t.id<1e3)o.normal(" ");if(t.id<100)o.normal(" ");if(t.id<10)o.normal(" ");o.normal("{");o.yellow(t.id);o.normal("} ");o.green(t.files.join(", "));if(t.names&&t.names.length>0){o.normal(" (");o.normal(t.names.join(", "));o.normal(")")}o.normal(" ");o.normal(r.formatSize(t.size));for(const e of t.parents){o.normal(" <{");o.yellow(e);o.normal("}>")}for(const e of t.siblings){o.normal(" ={");o.yellow(e);o.normal("}=")}for(const e of t.children){o.normal(" >{");o.yellow(e);o.normal("}<")}if(t.childrenByOrder){for(const e of Object.keys(t.childrenByOrder)){const s=t.childrenByOrder[e];o.normal(" ");o.magenta(`(${e}:`);for(const e of s){o.normal(" {");o.yellow(e);o.normal("}")}o.magenta(")")}}if(t.entry){o.yellow(" [entry]")}else if(t.initial){o.yellow(" [initial]")}if(t.rendered){o.green(" [rendered]")}if(t.recorded){o.green(" [recorded]")}if(t.reason){o.yellow(` ${t.reason}`)}a();if(t.origins){for(const e of t.origins){o.normal(" > ");if(e.reasons&&e.reasons.length){o.yellow(e.reasons.join(" "));o.normal(" ")}if(e.request){o.normal(e.request);o.normal(" ")}if(e.module){o.normal("[");o.normal(e.moduleId);o.normal("] ");const t=f[`$${e.module}`];if(t){o.bold(t.name);o.normal(" ")}}if(e.loc){o.normal(e.loc)}a()}}g(t," ")}}g(e,"");if(e.logging){for(const t of Object.keys(e.logging)){const s=e.logging[t];if(s.entries.length>0){a();if(s.debug){o.red("DEBUG ")}o.bold("LOG from "+t);a();let e="";for(const t of s.entries){let s=o.normal;let n=" ";switch(t.type){case l.clear:o.normal(`${e}-------`);a();continue;case l.error:s=o.red;n=" ";break;case l.warn:s=o.yellow;n=" ";break;case l.info:s=o.green;n=" ";break;case l.log:s=o.bold;break;case l.trace:case l.debug:s=o.normal;break;case l.status:s=o.magenta;n=" ";break;case l.profile:s=o.magenta;n="

";break;case l.profileEnd:s=o.magenta;n="

";break;case l.time:s=o.magenta;n=" ";break;case l.group:s=o.cyan;n="<-> ";break;case l.groupCollapsed:s=o.cyan;n="<+> ";break;case l.groupEnd:if(e.length>=2)e=e.slice(0,e.length-2);continue}if(t.message){for(const r of t.message.split("\n")){o.normal(`${e}${n}`);s(r);a()}}if(t.trace){for(const s of t.trace){o.normal(`${e}| ${s}`);a()}}switch(t.type){case l.group:e+=" ";break}}if(s.filteredEntries){o.normal(`+ ${s.filteredEntries} hidden lines`);a()}}}}if(e._showWarnings&&e.warnings){for(const t of e.warnings){a();o.yellow(`WARNING in ${t}`);a()}}if(e._showErrors&&e.errors){for(const t of e.errors){a();o.red(`ERROR in ${t}`);a()}}if(e.children){for(const n of e.children){const e=Stats.jsonToString(n,t);if(e){if(n.name){o.normal("Child ");o.bold(n.name);o.normal(":")}else{o.normal("Child")}a();s.push(" ");s.push(e.replace(/\n/g,"\n "));a()}}}if(e.needAdditionalPass){o.yellow("Compilation needs an additional pass and will compile again.")}while(s[s.length-1]==="\n"){s.pop()}return s.join("")}static presetToOptions(e){const t=typeof e==="string"&&e.toLowerCase()||e||"none";switch(t){case"none":return{all:false};case"verbose":return{entrypoints:true,chunkGroups:true,modules:false,chunks:true,chunkModules:true,chunkOrigins:true,depth:true,env:true,reasons:true,usedExports:true,providedExports:true,optimizationBailout:true,errorDetails:true,publicPath:true,logging:"verbose",exclude:false,maxModules:Infinity};case"detailed":return{entrypoints:true,chunkGroups:true,chunks:true,chunkModules:false,chunkOrigins:true,depth:true,usedExports:true,providedExports:true,optimizationBailout:true,errorDetails:true,publicPath:true,logging:true,exclude:false,maxModules:Infinity};case"minimal":return{all:false,modules:true,maxModules:0,errors:true,warnings:true,logging:"warn"};case"errors-only":return{all:false,errors:true,moduleTrace:true,logging:"error"};case"errors-warnings":return{all:false,errors:true,warnings:true,logging:"warn"};default:return{}}}static getChildOptions(e,t){let s;if(Array.isArray(e.children)){if(t({parse:{...t},compress:typeof s==="boolean"?s:{...s},mangle:n==null?true:typeof n==="boolean"?n:{...n},output:{beautify:false,...o},sourceMap:null,ecma:e,keep_classnames:u,keep_fnames:c,ie8:l,module:r,nameCache:a,safari10:d,toplevel:i});function isObject(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")}const o=(e,t,s)=>{const n={};const r=t.output.comments;const{extractComments:o}=e;n.preserve=typeof r!=="undefined"?r:false;if(typeof o==="boolean"&&o){n.extract="some"}else if(typeof o==="string"||o instanceof RegExp){n.extract=o}else if(typeof o==="function"){n.extract=o}else if(isObject(o)){n.extract=typeof o.condition==="boolean"&&o.condition?"some":typeof o.condition!=="undefined"?o.condition:"some"}else{n.preserve=typeof r!=="undefined"?r:"some";n.extract=false}["preserve","extract"].forEach(e=>{let t;let s;switch(typeof n[e]){case"boolean":n[e]=n[e]?()=>true:()=>false;break;case"function":break;case"string":if(n[e]==="all"){n[e]=(()=>true);break}if(n[e]==="some"){n[e]=((e,t)=>{return(t.type==="comment2"||t.type==="comment1")&&/@preserve|@lic|@cc_on|^\**!/i.test(t.value)});break}t=n[e];n[e]=((e,s)=>{return new RegExp(t).test(s.value)});break;default:s=n[e];n[e]=((e,t)=>s.test(t.value))}});return(e,t)=>{if(n.extract(e,t)){const e=t.type==="comment2"?`/*${t.value}*/`:`//${t.value}`;if(!s.includes(e)){s.push(e)}}return n.preserve(e,t)}};async function minify(e){const{name:t,input:s,inputSourceMap:i,minify:a}=e;if(a){return a({[t]:s},i)}const l=r(e.terserOptions);if(i){l.sourceMap={asObject:true}}const u=[];l.output.comments=o(e,l,u);const c=await n({[t]:s},l);return{...c,extractedComments:u}}function transform(s){s=new Function("exports","require","module","__filename","__dirname",`'use strict'\nreturn ${s}`)(t,require,e,__filename,__dirname);return minify(s)}e.exports.minify=minify;e.exports.transform=transform},813:function(e){"use strict";const t=(e,...t)=>new Promise(s=>{s(e(...t))});e.exports=t;e.exports.default=t},832:function(e,t,s){"use strict";const n=s(622);const r=(e,t)=>{if(t.startsWith("./")||t.startsWith("../"))return n.join(e,t);return t};const o=e=>{if(/^\/.*\/$/.test(e)){return false}return/^(?:[a-z]:\\|\/)/i.test(e)};const i=e=>e.replace(/\\/g,"/");const a=(e,t)=>{return t.split(/([|! ])/).map(t=>o(t)?i(n.relative(e,t)):t).join("")};t.makePathsRelative=((e,t,s)=>{if(!s)return a(e,t);const n=s.relativePaths||(s.relativePaths=new Map);let r;let o=n.get(e);if(o===undefined){n.set(e,o=new Map)}else{r=o.get(t)}if(r!==undefined){return r}else{const s=a(e,t);o.set(t,s);return s}});t.contextify=((e,t)=>{return t.split("!").map(t=>{const s=t.split("?",2);if(/^[a-zA-Z]:\\/.test(s[0])){s[0]=n.win32.relative(e,s[0]);if(!/^[a-zA-Z]:\\/.test(s[0])){s[0]=s[0].replace(/\\/g,"/")}}if(/^\//.test(s[0])){s[0]=n.posix.relative(e,s[0])}if(!/^(\.\.\/|\/|[a-zA-Z]:\\)/.test(s[0])){s[0]="./"+s[0]}return s.join("?")}).join("!")});const l=(e,t)=>{return t.split("!").map(t=>r(e,t)).join("!")};t.absolutify=l},847:function(e,t,s){"use strict";const n=s(446);const r=/at ([a-zA-Z0-9_.]*)/;function createMessage(e){return`Abstract method${e?" "+e:""}. Must be overridden.`}function Message(){this.stack=undefined;Error.captureStackTrace(this);const e=this.stack.split("\n")[3].match(r);this.message=e&&e[1]?createMessage(e[1]):createMessage()}class AbstractMethodError extends n{constructor(){super((new Message).message);this.name="AbstractMethodError"}}e.exports=AbstractMethodError},886:function(e,t,s){"use strict";const n=s(669);const r=s(542);const o=s(656).intersect;const i=s(335);const a=s(174);let l=1e3;const u="Chunk.entry was removed. Use hasRuntime()";const c="Chunk.initial was removed. Use canBeInitial/isOnlyInitial()";const d=(e,t)=>{if(e.id{if(e.id{if(e.identifier()>t.identifier())return 1;if(e.identifier(){e.sort();let t="";for(const s of e){t+=s.identifier()+"#"}return t};const m=e=>Array.from(e);const g=e=>{let t=0;for(const s of e){t+=s.size()}return t};class Chunk{constructor(e){this.id=null;this.ids=null;this.debugId=l++;this.name=e;this.preventIntegration=false;this.entryModule=undefined;this._modules=new r(undefined,f);this.filenameTemplate=undefined;this._groups=new r(undefined,h);this.files=[];this.rendered=false;this.hash=undefined;this.contentHash=Object.create(null);this.renderedHash=undefined;this.chunkReason=undefined;this.extraAsync=false;this.removedModules=undefined}get entry(){throw new Error(u)}set entry(e){throw new Error(u)}get initial(){throw new Error(c)}set initial(e){throw new Error(c)}hasRuntime(){for(const e of this._groups){if(e.isInitial()&&e instanceof a&&e.getRuntimeChunk()===this){return true}}return false}canBeInitial(){for(const e of this._groups){if(e.isInitial())return true}return false}isOnlyInitial(){if(this._groups.size<=0)return false;for(const e of this._groups){if(!e.isInitial())return false}return true}hasEntryModule(){return!!this.entryModule}addModule(e){if(!this._modules.has(e)){this._modules.add(e);return true}return false}removeModule(e){if(this._modules.delete(e)){e.removeChunk(this);return true}return false}setModules(e){this._modules=new r(e,f)}getNumberOfModules(){return this._modules.size}get modulesIterable(){return this._modules}addGroup(e){if(this._groups.has(e))return false;this._groups.add(e);return true}removeGroup(e){if(!this._groups.has(e))return false;this._groups.delete(e);return true}isInGroup(e){return this._groups.has(e)}getNumberOfGroups(){return this._groups.size}get groupsIterable(){return this._groups}compareTo(e){if(this.name&&!e.name)return-1;if(!this.name&&e.name)return 1;if(this.namee.name)return 1;if(this._modules.size>e._modules.size)return-1;if(this._modules.sizeo)return 1}}containsModule(e){return this._modules.has(e)}getModules(){return this._modules.getFromCache(m)}getModulesIdent(){return this._modules.getFromUnorderedCache(p)}remove(e){for(const e of Array.from(this._modules)){e.removeChunk(this)}for(const e of this._groups){e.removeChunk(this)}}moveModule(e,t){i.disconnectChunkAndModule(this,e);i.connectChunkAndModule(t,e);e.rewriteChunkInReasons(this,[t])}integrate(e,t){if(!this.canBeIntegrated(e)){return false}if(this.name&&e.name){if(this.hasEntryModule()===e.hasEntryModule()){if(this.name.length!==e.name.length){this.name=this.name.length{const s=new Set(t.groupsIterable);for(const t of s){if(e.isInGroup(t))continue;if(t.isInitial())return false;for(const e of t.parentsIterable){s.add(e)}}return true};const s=this.hasRuntime();const n=e.hasRuntime();if(s!==n){if(s){return t(this,e)}else if(n){return t(e,this)}else{return false}}if(this.hasEntryModule()||e.hasEntryModule()){return false}return true}addMultiplierAndOverhead(e,t){const s=typeof t.chunkOverhead==="number"?t.chunkOverhead:1e4;const n=this.canBeInitial()?t.entryChunkMultiplicator||10:1;return e*n+s}modulesSize(){return this._modules.getFromUnorderedCache(g)}size(e={}){return this.addMultiplierAndOverhead(this.modulesSize(),e)}integratedSize(e,t){if(!this.canBeIntegrated(e)){return false}let s=this.modulesSize();for(const t of e._modules){if(!this._modules.has(t)){s+=t.size()}}return this.addMultiplierAndOverhead(s,t)}sortModules(e){this._modules.sortWith(e||d)}sortItems(){this.sortModules()}getAllAsyncChunks(){const e=new Set;const t=new Set;const s=o(Array.from(this.groupsIterable,e=>new Set(e.chunks)));for(const t of this.groupsIterable){for(const s of t.childrenIterable){e.add(s)}}for(const n of e){for(const e of n.chunks){if(!s.has(e)){t.add(e)}}for(const t of n.childrenIterable){e.add(t)}}return t}getChunkMaps(e){const t=Object.create(null);const s=Object.create(null);const n=Object.create(null);for(const r of this.getAllAsyncChunks()){t[r.id]=e?r.hash:r.renderedHash;for(const e of Object.keys(r.contentHash)){if(!s[e]){s[e]=Object.create(null)}s[e][r.id]=r.contentHash[e]}if(r.name){n[r.id]=r.name}}return{hash:t,contentHash:s,name:n}}getChildIdsByOrders(){const e=new Map;for(const t of this.groupsIterable){if(t.chunks[t.chunks.length-1]===this){for(const s of t.childrenIterable){if(typeof s.options==="object"){for(const t of Object.keys(s.options)){if(t.endsWith("Order")){const n=t.substr(0,t.length-"Order".length);let r=e.get(n);if(r===undefined)e.set(n,r=[]);r.push({order:s.options[t],group:s})}}}}}}const t=Object.create(null);for(const[s,n]of e){n.sort((e,t)=>{const s=t.order-e.order;if(s!==0)return s;if(e.group.compareTo){return e.group.compareTo(t.group)}return 0});t[s]=Array.from(n.reduce((e,t)=>{for(const s of t.group.chunks){e.add(s.id)}return e},new Set))}return t}getChildIdsByOrdersMap(e){const t=Object.create(null);const s=e=>{const s=e.getChildIdsByOrders();for(const n of Object.keys(s)){let r=t[n];if(r===undefined){t[n]=r=Object.create(null)}r[e.id]=s[n]}};if(e){const e=new Set;for(const t of this.groupsIterable){for(const s of t.chunks){e.add(s)}}for(const t of e){s(t)}}for(const e of this.getAllAsyncChunks()){s(e)}return t}getChunkModuleMaps(e){const t=Object.create(null);const s=Object.create(null);for(const n of this.getAllAsyncChunks()){let r;for(const o of n.modulesIterable){if(e(o)){if(r===undefined){r=[];t[n.id]=r}r.push(o.id);s[o.id]=o.renderedHash}}if(r!==undefined){r.sort()}}return{id:t,hash:s}}hasModuleInGraph(e,t){const s=new Set(this.groupsIterable);const n=new Set;for(const r of s){for(const s of r.chunks){if(!n.has(s)){n.add(s);if(!t||t(s)){for(const t of s.modulesIterable){if(e(t)){return true}}}}}for(const e of r.childrenIterable){s.add(e)}}return false}toString(){return`Chunk[${Array.from(this._modules).join()}]`}}Object.defineProperty(Chunk.prototype,"forEachModule",{configurable:false,value:n.deprecate(function(e){this._modules.forEach(e)},"Chunk.forEachModule: Use for(const module of chunk.modulesIterable) instead")});Object.defineProperty(Chunk.prototype,"mapModules",{configurable:false,value:n.deprecate(function(e){return Array.from(this._modules,e)},"Chunk.mapModules: Use Array.from(chunk.modulesIterable, fn) instead")});Object.defineProperty(Chunk.prototype,"chunks",{configurable:false,get(){throw new Error("Chunk.chunks: Use ChunkGroup.getChildren() instead")},set(){throw new Error("Chunk.chunks: Use ChunkGroup.add/removeChild() instead")}});Object.defineProperty(Chunk.prototype,"parents",{configurable:false,get(){throw new Error("Chunk.parents: Use ChunkGroup.getParents() instead")},set(){throw new Error("Chunk.parents: Use ChunkGroup.add/removeParent() instead")}});Object.defineProperty(Chunk.prototype,"blocks",{configurable:false,get(){throw new Error("Chunk.blocks: Use ChunkGroup.getBlocks() instead")},set(){throw new Error("Chunk.blocks: Use ChunkGroup.add/removeBlock() instead")}});Object.defineProperty(Chunk.prototype,"entrypoints",{configurable:false,get(){throw new Error("Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead")},set(){throw new Error("Chunk.entrypoints: Use Chunks.addGroup instead")}});e.exports=Chunk},960:function(e,t,s){"use strict";var n=s(46);var r=16;var o=generateUID();var i=new RegExp('(\\\\)?"@__(F|R|D|M|S|U|I|B)-'+o+'-(\\d+)__@"',"g");var a=/\{\s*\[native code\]\s*\}/g;var l=/function.*?\(/;var u=/.*?=>.*?/;var c=/[<>\/\u2028\u2029]/g;var d=["*","async"];var h={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};function escapeUnsafeChars(e){return h[e]}function generateUID(){var e=n(r);var t="";for(var s=0;s0});var r=n.filter(function(e){return d.indexOf(e)===-1});if(r.length>0){return(n.indexOf("async")>-1?"async ":"")+"function"+(n.join("").indexOf("*")>-1?"*":"")+t.substr(s)}return t}if(t.ignoreFunction&&typeof e==="function"){e=undefined}if(e===undefined){return String(e)}var y;if(t.isJSON&&!t.space){y=JSON.stringify(e)}else{y=JSON.stringify(e,t.isJSON?null:replacer,t.space)}if(typeof y!=="string"){return String(y)}if(t.unsafe!==true){y=y.replace(c,escapeUnsafeChars)}if(s.length===0&&n.length===0&&r.length===0&&h.length===0&&f.length===0&&p.length===0&&m.length===0&&g.length===0){return y}return y.replace(i,function(e,o,i,a){if(o){return e}if(i==="D"){return'new Date("'+r[a].toISOString()+'")'}if(i==="R"){return"new RegExp("+serialize(n[a].source)+', "'+n[a].flags+'")'}if(i==="M"){return"new Map("+serialize(Array.from(h[a].entries()),t)+")"}if(i==="S"){return"new Set("+serialize(Array.from(f[a].values()),t)+")"}if(i==="U"){return"undefined"}if(i==="I"){return m[a]}if(i==="B"){return'BigInt("'+g[a]+'")'}var l=s[a];return serializeFunc(l)})}},966:function(e,t,s){const{ConcatSource:n}=s(745);const r=s(591);const o="a".charCodeAt(0);const i="A".charCodeAt(0);const a="z".charCodeAt(0)-o+1;const l=/^function\s?\(\)\s?\{\r?\n?|\r?\n?\}$/g;const u=/^\t/gm;const c=/\r?\n/g;const d=/^([^a-zA-Z$_])/;const h=/[^a-zA-Z0-9$]+/g;const f=/\*\//g;const p=/[^a-zA-Z0-9_!§$()=\-^°]+/g;const m=/^-|-$/g;const g=(e,t)=>{const s=e.id+"";const n=t.id+"";if(sn)return 1;return 0};class Template{static getFunctionContent(e){return e.toString().replace(l,"").replace(u,"").replace(c,"\n")}static toIdentifier(e){if(typeof e!=="string")return"";return e.replace(d,"_$1").replace(h,"_")}static toComment(e){if(!e)return"";return`/*! ${e.replace(f,"* /")} */`}static toNormalComment(e){if(!e)return"";return`/* ${e.replace(f,"* /")} */`}static toPath(e){if(typeof e!=="string")return"";return e.replace(p,"-").replace(m,"")}static numberToIdentifer(e){if(en.id)s=n.id}if(s<16+(""+s).length){s=0}const n=e.map(e=>(e.id+"").length+2).reduce((e,t)=>e+t,-1);const r=s===0?t:16+(""+s).length+t;return r{return{id:t.id,source:s.render(t,o,{chunk:e})}});if(u&&u.length>0){for(const e of u){c.push({id:e,source:"false"})}}const d=Template.getModulesArrayBounds(c);if(d){const e=d[0];const t=d[1];if(e!==0){a.add(`Array(${e}).concat(`)}a.add("[\n");const s=new Map;for(const e of c){s.set(e.id,e)}for(let n=e;n<=t;n++){const t=s.get(n);if(n!==e){a.add(",\n")}a.add(`/* ${n} */`);if(t){a.add("\n");a.add(t.source)}}a.add("\n"+i+"]");if(e!==0){a.add(")")}}else{a.add("{\n");c.sort(g).forEach((e,t)=>{if(t!==0){a.add(",\n")}a.add(`\n/***/ ${JSON.stringify(e.id)}:\n`);a.add(e.source)});a.add(`\n\n${i}}`)}return a}}e.exports=Template},980:function(e,t,s){"use strict";const n=s(343);const r=s(669);const{CachedSource:o}=s(745);const{Tapable:i,SyncHook:a,SyncBailHook:l,SyncWaterfallHook:u,AsyncSeriesHook:c}=s(75);const d=s(638);const h=s(645);const f=s(647);const p=s(59);const m=s(773);const g=s(886);const y=s(174);const k=s(503);const b=s(55);const w=s(408);const _=s(216);const v=s(48);const x=s(207);const $=s(788);const E=s(393);const M=s(486);const O=s(542);const A=s(335);const S=s(742);const C=s(463);const{Logger:j,LogType:T}=s(225);const I=s(102);const D=s(510);const P=s(446);const R=(e,t)=>{if(typeof e.id!==typeof t.id){return typeof e.idt.id)return 1;return 0};const H=(e,t)=>{if(typeof e.id!==typeof t.id){return typeof e.idt.id)return 1;const s=e.identifier();const n=t.identifier();if(sn)return 1;return 0};const z=(e,t)=>{if(e.indext.index)return 1;const s=e.identifier();const n=t.identifier();if(sn)return 1;return 0};const q=(e,t)=>{if(e.namet.name)return 1;if(e.fullHasht.fullHash)return 1;return 0};const B=(e,t)=>{for(let s=0;s{for(let s=0;s{for(const s of t){e.add(s)}};const N=(e,t)=>{if(e===t)return true;let s=e.source();let n=t.source();if(s===n)return true;if(typeof s==="string"&&typeof n==="string")return false;if(!Buffer.isBuffer(s))s=Buffer.from(s,"utf-8");if(!Buffer.isBuffer(n))n=Buffer.from(n,"utf-8");return s.equals(n)};class Compilation extends i{constructor(e){super();this.hooks={buildModule:new a(["module"]),rebuildModule:new a(["module"]),failedModule:new a(["module","error"]),succeedModule:new a(["module"]),addEntry:new a(["entry","name"]),failedEntry:new a(["entry","name","error"]),succeedEntry:new a(["entry","name","module"]),dependencyReference:new u(["dependencyReference","dependency","module"]),finishModules:new c(["modules"]),finishRebuildingModule:new a(["module"]),unseal:new a([]),seal:new a([]),beforeChunks:new a([]),afterChunks:new a(["chunks"]),optimizeDependenciesBasic:new l(["modules"]),optimizeDependencies:new l(["modules"]),optimizeDependenciesAdvanced:new l(["modules"]),afterOptimizeDependencies:new a(["modules"]),optimize:new a([]),optimizeModulesBasic:new l(["modules"]),optimizeModules:new l(["modules"]),optimizeModulesAdvanced:new l(["modules"]),afterOptimizeModules:new a(["modules"]),optimizeChunksBasic:new l(["chunks","chunkGroups"]),optimizeChunks:new l(["chunks","chunkGroups"]),optimizeChunksAdvanced:new l(["chunks","chunkGroups"]),afterOptimizeChunks:new a(["chunks","chunkGroups"]),optimizeTree:new c(["chunks","modules"]),afterOptimizeTree:new a(["chunks","modules"]),optimizeChunkModulesBasic:new l(["chunks","modules"]),optimizeChunkModules:new l(["chunks","modules"]),optimizeChunkModulesAdvanced:new l(["chunks","modules"]),afterOptimizeChunkModules:new a(["chunks","modules"]),shouldRecord:new l([]),reviveModules:new a(["modules","records"]),optimizeModuleOrder:new a(["modules"]),advancedOptimizeModuleOrder:new a(["modules"]),beforeModuleIds:new a(["modules"]),moduleIds:new a(["modules"]),optimizeModuleIds:new a(["modules"]),afterOptimizeModuleIds:new a(["modules"]),reviveChunks:new a(["chunks","records"]),optimizeChunkOrder:new a(["chunks"]),beforeChunkIds:new a(["chunks"]),optimizeChunkIds:new a(["chunks"]),afterOptimizeChunkIds:new a(["chunks"]),recordModules:new a(["modules","records"]),recordChunks:new a(["chunks","records"]),beforeHash:new a([]),contentHash:new a(["chunk"]),afterHash:new a([]),recordHash:new a(["records"]),record:new a(["compilation","records"]),beforeModuleAssets:new a([]),shouldGenerateChunkAssets:new l([]),beforeChunkAssets:new a([]),additionalChunkAssets:new a(["chunks"]),additionalAssets:new c([]),optimizeChunkAssets:new c(["chunks"]),afterOptimizeChunkAssets:new a(["chunks"]),optimizeAssets:new c(["assets"]),afterOptimizeAssets:new a(["assets"]),needAdditionalSeal:new l([]),afterSeal:new c([]),chunkHash:new a(["chunk","chunkHash"]),moduleAsset:new a(["module","filename"]),chunkAsset:new a(["chunk","filename"]),assetPath:new u(["filename","data"]),needAdditionalPass:new l([]),childCompiler:new a(["childCompiler","compilerName","compilerIndex"]),log:new l(["origin","logEntry"]),normalModuleLoader:new a(["loaderContext","module"]),optimizeExtractedChunksBasic:new l(["chunks"]),optimizeExtractedChunks:new l(["chunks"]),optimizeExtractedChunksAdvanced:new l(["chunks"]),afterOptimizeExtractedChunks:new a(["chunks"])};this._pluginCompat.tap("Compilation",e=>{switch(e.name){case"optimize-tree":case"additional-assets":case"optimize-chunk-assets":case"optimize-assets":case"after-seal":e.async=true;break}});this.name=undefined;this.compiler=e;this.resolverFactory=e.resolverFactory;this.inputFileSystem=e.inputFileSystem;this.requestShortener=e.requestShortener;const t=e.options;this.options=t;this.outputOptions=t&&t.output;this.bail=t&&t.bail;this.profile=t&&t.profile;this.performance=t&&t.performance;this.mainTemplate=new k(this.outputOptions);this.chunkTemplate=new b(this.outputOptions);this.hotUpdateChunkTemplate=new w(this.outputOptions);this.runtimeTemplate=new v(this.outputOptions,this.requestShortener);this.moduleTemplates={javascript:new _(this.runtimeTemplate,"javascript"),webassembly:new _(this.runtimeTemplate,"webassembly")};this.semaphore=new E(t.parallelism||100);this.entries=[];this._preparedEntrypoints=[];this.entrypoints=new Map;this.chunks=[];this.chunkGroups=[];this.namedChunkGroups=new Map;this.namedChunks=new Map;this.modules=[];this._modules=new Map;this.cache=null;this.records=null;this.additionalChunkAssets=[];this.assets={};this.assetsInfo=new Map;this.errors=[];this.warnings=[];this.children=[];this.logging=new Map;this.dependencyFactories=new Map;this.dependencyTemplates=new Map;this.dependencyTemplates.set("hash","");this.childrenCounters={};this.usedChunkIds=null;this.usedModuleIds=null;this.fileTimestamps=undefined;this.contextTimestamps=undefined;this.compilationDependencies=undefined;this._buildingModules=new Map;this._rebuildingModules=new Map;this.emittedAssets=new Set}getStats(){return new $(this)}getLogger(e){if(!e){throw new TypeError("Compilation.getLogger(name) called without a name")}let t;return new j((s,n)=>{if(typeof e==="function"){e=e();if(!e){throw new TypeError("Compilation.getLogger(name) called with a function not returning a name")}}let r;switch(s){case T.warn:case T.error:case T.trace:r=I.cutOffLoaderExecution(new Error("Trace").stack).split("\n").slice(3);break}const o={time:Date.now(),type:s,args:n,trace:r};if(this.hooks.log.call(e,o)===undefined){if(o.type===T.profileEnd){if(typeof console.profileEnd==="function"){console.profileEnd(`[${e}] ${o.args[0]}`)}}if(t===undefined){t=this.logging.get(e);if(t===undefined){t=[];this.logging.set(e,t)}}t.push(o);if(o.type===T.profile){if(typeof console.profile==="function"){console.profile(`[${e}] ${o.args[0]}`)}}}})}addModule(e,t){const s=e.identifier();const n=this._modules.get(s);if(n){return{module:n,issuer:false,build:false,dependencies:false}}const r=(t||"m")+s;if(this.cache&&this.cache[r]){const t=this.cache[r];if(typeof t.updateCacheModule==="function"){t.updateCacheModule(e)}let n=true;if(this.fileTimestamps&&this.contextTimestamps){n=t.needRebuild(this.fileTimestamps,this.contextTimestamps)}if(!n){t.disconnect();this._modules.set(s,t);this.modules.push(t);for(const e of t.errors){this.errors.push(e)}for(const e of t.warnings){this.warnings.push(e)}return{module:t,issuer:true,build:false,dependencies:true}}t.unbuild();e=t}this._modules.set(s,e);if(this.cache){this.cache[r]=e}this.modules.push(e);return{module:e,issuer:true,build:true,dependencies:true}}getModule(e){const t=e.identifier();return this._modules.get(t)}findModule(e){return this._modules.get(e)}waitForBuildingFinished(e,t){let s=this._buildingModules.get(e);if(s){s.push(()=>t())}else{process.nextTick(t)}}buildModule(e,t,s,n,r){let o=this._buildingModules.get(e);if(o){o.push(r);return}this._buildingModules.set(e,o=[r]);const i=t=>{this._buildingModules.delete(e);for(const e of o){e(t)}};this.hooks.buildModule.call(e);e.build(this.options,this,this.resolverFactory.get("normal",e.resolveOptions),this.inputFileSystem,r=>{const o=e.errors;for(let e=0;e{e.set(t,s);return e},new Map);e.dependencies.sort((e,t)=>{const s=C(e.loc,t.loc);if(s)return s;return l.get(e)-l.get(t)});if(r){this.hooks.failedModule.call(e,r);return i(r)}this.hooks.succeedModule.call(e);return i()})}processModuleDependencies(e,t){const s=new Map;const n=e=>{const t=e.getResourceIdentifier();if(t){const n=this.dependencyFactories.get(e.constructor);if(n===undefined){throw new Error(`No module factory available for dependency type: ${e.constructor.name}`)}let r=s.get(n);if(r===undefined){s.set(n,r=new Map)}let o=r.get(t);if(o===undefined)r.set(t,o=[]);o.push(e)}};const r=e=>{if(e.dependencies){F(e.dependencies,n)}if(e.blocks){F(e.blocks,r)}if(e.variables){B(e.variables,n)}};try{r(e)}catch(e){t(e)}const o=[];for(const e of s){for(const t of e[1]){o.push({factory:e[0],dependencies:t[1]})}}this.addModuleDependencies(e,o,this.bail,null,true,t)}addModuleDependencies(e,t,s,r,o,i){const a=this.profile&&Date.now();const l=this.profile&&{};n.forEach(t,(t,n)=>{const i=t.dependencies;const u=t=>{t.origin=e;t.dependencies=i;this.errors.push(t);if(s){n(t)}else{n()}};const c=t=>{t.origin=e;this.warnings.push(t);n()};const d=this.semaphore;d.acquire(()=>{const s=t.factory;s.create({contextInfo:{issuer:e.nameForCondition&&e.nameForCondition(),compiler:this.compiler.name},resolveOptions:e.resolveOptions,context:e.context,dependencies:i},(t,s)=>{let f;const p=()=>{return i.every(e=>e.optional)};const m=e=>{if(p()){return c(e)}else{return u(e)}};if(t){d.release();return m(new h(e,t))}if(!s){d.release();return process.nextTick(n)}if(l){f=Date.now();l.factory=f-a}const g=t=>{for(let n=0;n{if(o&&y.dependencies){this.processModuleDependencies(s,n)}else{return n()}};if(y.issuer){if(l){s.profile=l}s.issuer=e}else{if(this.profile){if(e.profile){const t=Date.now()-a;if(!e.profile.dependencies||t>e.profile.dependencies){e.profile.dependencies=t}}}}if(y.build){this.buildModule(s,p(),e,i,e=>{if(e){d.release();return m(e)}if(l){const e=Date.now();l.building=e-f}d.release();k()})}else{d.release();this.waitForBuildingFinished(s,k)}})})},e=>{if(e){e.stack=e.stack;return i(e)}return process.nextTick(i)})}_addModuleChain(e,t,s,n){const r=this.profile&&Date.now();const o=this.profile&&{};const i=this.bail?e=>{n(e)}:e=>{e.dependencies=[t];this.errors.push(e);n()};if(typeof t!=="object"||t===null||!t.constructor){throw new Error("Parameter 'dependency' must be a Dependency")}const a=t.constructor;const l=this.dependencyFactories.get(a);if(!l){throw new Error(`No dependency factory available for this dependency type: ${t.constructor.name}`)}this.semaphore.acquire(()=>{l.create({contextInfo:{issuer:"",compiler:this.compiler.name},context:e,dependencies:[t]},(e,a)=>{if(e){this.semaphore.release();return i(new d(e))}let l;if(o){l=Date.now();o.factory=l-r}const u=this.addModule(a);a=u.module;s(a);t.module=a;a.addReason(null,t);const c=()=>{if(u.dependencies){this.processModuleDependencies(a,e=>{if(e)return n(e);n(null,a)})}else{return n(null,a)}};if(u.issuer){if(o){a.profile=o}}if(u.build){this.buildModule(a,false,null,null,e=>{if(e){this.semaphore.release();return i(e)}if(o){const e=Date.now();o.building=e-l}this.semaphore.release();c()})}else{this.semaphore.release();this.waitForBuildingFinished(a,c)}})})}addEntry(e,t,s,n){this.hooks.addEntry.call(t,s);const r={name:s,request:null,module:null};if(t instanceof S){r.request=t.request}const o=this._preparedEntrypoints.findIndex(e=>e.name===s);if(o>=0){this._preparedEntrypoints[o]=r}else{this._preparedEntrypoints.push(r)}this._addModuleChain(e,t,e=>{this.entries.push(e)},(e,o)=>{if(e){this.hooks.failedEntry.call(t,s,e);return n(e)}if(o){r.module=o}else{const e=this._preparedEntrypoints.indexOf(r);if(e>=0){this._preparedEntrypoints.splice(e,1)}}this.hooks.succeedEntry.call(t,s,o);return n(null,o)})}prefetch(e,t,s){this._addModuleChain(e,t,e=>{e.prefetched=true},s)}rebuildModule(e,t){let s=this._rebuildingModules.get(e);if(s){s.push(t);return}this._rebuildingModules.set(e,s=[t]);const n=t=>{this._rebuildingModules.delete(e);for(const e of s){e(t)}};this.hooks.rebuildModule.call(e);const r=e.dependencies.slice();const o=e.variables.slice();const i=e.blocks.slice();e.unbuild();this.buildModule(e,false,e,null,t=>{if(t){this.hooks.finishRebuildingModule.call(e);return n(t)}this.processModuleDependencies(e,t=>{if(t)return n(t);this.removeReasonsOfDependencyBlock(e,{dependencies:r,variables:o,blocks:i});this.hooks.finishRebuildingModule.call(e);n()})})}finish(e){const t=this.modules;this.hooks.finishModules.callAsync(t,s=>{if(s)return e(s);for(let e=0;e{if(t){return e(t)}this.hooks.afterOptimizeTree.call(this.chunks,this.modules);while(this.hooks.optimizeChunkModulesBasic.call(this.chunks,this.modules)||this.hooks.optimizeChunkModules.call(this.chunks,this.modules)||this.hooks.optimizeChunkModulesAdvanced.call(this.chunks,this.modules)){}this.hooks.afterOptimizeChunkModules.call(this.chunks,this.modules);const s=this.hooks.shouldRecord.call()!==false;this.hooks.reviveModules.call(this.modules,this.records);this.hooks.optimizeModuleOrder.call(this.modules);this.hooks.advancedOptimizeModuleOrder.call(this.modules);this.hooks.beforeModuleIds.call(this.modules);this.hooks.moduleIds.call(this.modules);this.applyModuleIds();this.hooks.optimizeModuleIds.call(this.modules);this.hooks.afterOptimizeModuleIds.call(this.modules);this.sortItemsWithModuleIds();this.hooks.reviveChunks.call(this.chunks,this.records);this.hooks.optimizeChunkOrder.call(this.chunks);this.hooks.beforeChunkIds.call(this.chunks);this.applyChunkIds();this.hooks.optimizeChunkIds.call(this.chunks);this.hooks.afterOptimizeChunkIds.call(this.chunks);this.sortItemsWithChunkIds();if(s){this.hooks.recordModules.call(this.modules,this.records);this.hooks.recordChunks.call(this.chunks,this.records)}this.hooks.beforeHash.call();this.createHash();this.hooks.afterHash.call();if(s){this.hooks.recordHash.call(this.records)}this.hooks.beforeModuleAssets.call();this.createModuleAssets();if(this.hooks.shouldGenerateChunkAssets.call()!==false){this.hooks.beforeChunkAssets.call();this.createChunkAssets()}this.hooks.additionalChunkAssets.call(this.chunks);this.summarizeDependencies();if(s){this.hooks.record.call(this,this.records)}this.hooks.additionalAssets.callAsync(t=>{if(t){return e(t)}this.hooks.optimizeChunkAssets.callAsync(this.chunks,t=>{if(t){return e(t)}this.hooks.afterOptimizeChunkAssets.call(this.chunks);this.hooks.optimizeAssets.callAsync(this.assets,t=>{if(t){return e(t)}this.hooks.afterOptimizeAssets.call(this.assets);if(this.hooks.needAdditionalSeal.call()){this.unseal();return this.seal(e)}return this.hooks.afterSeal.callAsync(e)})})})})}sortModules(e){e.sort(z)}reportDependencyErrorsAndWarnings(e,t){for(let s=0;s{const n=e.depth;if(typeof n==="number"&&n<=s)return;t.add(e);e.depth=s};const r=e=>{if(e.module){n(e.module)}};const o=e=>{if(e.variables){B(e.variables,r)}if(e.dependencies){F(e.dependencies,r)}if(e.blocks){F(e.blocks,o)}};for(e of t){t.delete(e);s=e.depth;s++;o(e)}}getDependencyReference(e,t){if(typeof t.getReference!=="function")return null;const s=t.getReference();if(!s)return null;return this.hooks.dependencyReference.call(s,t,e)}removeReasonsOfDependencyBlock(e,t){const s=t=>{if(!t.module){return}if(t.module.removeReason(e,t)){for(const e of t.module.chunksIterable){this.patchChunksAfterReasonRemoval(t.module,e)}}};if(t.blocks){F(t.blocks,t=>this.removeReasonsOfDependencyBlock(e,t))}if(t.dependencies){F(t.dependencies,s)}if(t.variables){B(t.variables,s)}}patchChunksAfterReasonRemoval(e,t){if(!e.hasReasons()){this.removeReasonsOfDependencyBlock(e,e)}if(!e.hasReasonForChunk(t)){if(e.removeChunk(t)){this.removeChunkFromDependencies(e,t)}}}removeChunkFromDependencies(e,t){const s=e=>{if(!e.module){return}this.patchChunksAfterReasonRemoval(e.module,t)};const n=e.blocks;for(let t=0;t0){let n=-1;for(const e of s){if(typeof e!=="number"){continue}n=Math.max(n,e)}let r=t=n+1;while(r--){if(!s.has(r)){e.push(r)}}}const r=this.modules;for(let s=0;s0){n.id=e.pop()}else{n.id=t++}}}}applyChunkIds(){const e=new Set;if(this.usedChunkIds){for(const t of this.usedChunkIds){if(typeof t!=="number"){continue}e.add(t)}}const t=this.chunks;for(let s=0;s0){let t=s;while(t--){if(!e.has(t)){n.push(t)}}}for(let e=0;e0){r.id=n.pop()}else{r.id=s++}}if(!r.ids){r.ids=[r.id]}}}sortItemsWithModuleIds(){this.modules.sort(H);const e=this.modules;for(let t=0;te.compareTo(t))}sortItemsWithChunkIds(){for(const e of this.chunkGroups){e.sortItems()}this.chunks.sort(R);for(let e=0;e{const s=`${e.message}`;const n=`${t.message}`;if(s{const s=e.hasRuntime();const n=t.hasRuntime();if(s&&!n)return 1;if(!s&&n)return-1;return R(e,t)});for(let o=0;oe[1].toUpperCase())].call(...t)},"Compilation.applyPlugins is deprecated. Use new API on `.hooks` instead");Object.defineProperty(Compilation.prototype,"moduleTemplate",{configurable:false,get:r.deprecate(function(){return this.moduleTemplates.javascript},"Compilation.moduleTemplate: Use Compilation.moduleTemplates.javascript instead"),set:r.deprecate(function(e){this.moduleTemplates.javascript=e},"Compilation.moduleTemplate: Use Compilation.moduleTemplates.javascript instead.")});e.exports=Compilation}},function(e){"use strict";!function(){e.nmd=function(e){e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});return e}}()}); \ No newline at end of file diff --git a/packages/next/compiled/terser/bundle.min.js b/packages/next/compiled/terser/bundle.min.js index c4a1c4464925bab..4c1311a917e2426 100644 --- a/packages/next/compiled/terser/bundle.min.js +++ b/packages/next/compiled/terser/bundle.min.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var n={};function __webpack_require__(t){if(n[t]){return n[t].exports}var i=n[t]={i:t,l:false,exports:{}};e[t].call(i.exports,i,i.exports,__webpack_require__);i.l=true;return i.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(692)}return startup()}({241:function(e){e.exports=require("next/dist/compiled/source-map")},692:function(e,t,n){(function(e,i){true?i(t,n(241)):undefined})(this,function(e,t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t;function characters(e){return e.split("")}function member(e,t){return t.includes(e)}class DefaultsError extends Error{constructor(e,t){super();this.name="DefaultsError";this.message=e;this.defs=t}}function defaults(e,t,n){if(e===true){e={}}if(e!=null&&typeof e==="object"){e=Object.assign({},e)}const i=e||{};if(n)for(const e in i)if(HOP(i,e)&&!HOP(t,e)){throw new DefaultsError("`"+e+"` is not a supported option",t)}for(const n in t)if(HOP(t,n)){if(!e||!HOP(e,n)){i[n]=t[n]}else if(n==="ecma"){let t=e[n]|0;if(t>5&&t<2015)t+=2009;i[n]=t}else{i[n]=e&&HOP(e,n)?e[n]:t[n]}}return i}function noop(){}function return_false(){return false}function return_true(){return true}function return_this(){return this}function return_null(){return null}var i=function(){function MAP(t,n,i){var r=[],a=[],o;function doit(){var s=n(t[o],o);var u=s instanceof Last;if(u)s=s.v;if(s instanceof AtTop){s=s.v;if(s instanceof Splice){a.push.apply(a,i?s.v.slice().reverse():s.v)}else{a.push(s)}}else if(s!==e){if(s instanceof Splice){r.push.apply(r,i?s.v.slice().reverse():s.v)}else{r.push(s)}}return u}if(Array.isArray(t)){if(i){for(o=t.length;--o>=0;)if(doit())break;r.reverse();a.reverse()}else{for(o=0;o=0;){if(e[n]===t)e.splice(n,1)}}function mergeSort(e,t){if(e.length<2)return e.slice();function merge(e,n){var i=[],r=0,a=0,o=0;while(r{n+=e})}return n}function has_annotation(e,t){return e._annotations&t}function set_annotation(e,t){e._annotations|=t}var o="break case catch class const continue debugger default delete do else export extends finally for function if in instanceof let new return switch throw try typeof var void while with";var s="false null true";var u="enum implements import interface package private protected public static super this "+s+" "+o;var c="return new delete throw else case yield await";o=makePredicate(o);u=makePredicate(u);c=makePredicate(c);s=makePredicate(s);var l=makePredicate(characters("+-*&%=<>!?|~^"));var f=/[0-9a-f]/i;var p=/^0x[0-9a-f]+$/i;var _=/^0[0-7]+$/;var h=/^0o[0-7]+$/i;var d=/^0b[01]+$/i;var m=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i;var E=/^(0[xob])?[0-9a-f]+n$/i;var g=makePredicate(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","**","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","??","||"]);var v=makePredicate(characters("  \n\r\t\f\v​           \u2028\u2029   \ufeff"));var D=makePredicate(characters("\n\r\u2028\u2029"));var b=makePredicate(characters(";]),:"));var y=makePredicate(characters("[{(,;:"));var k=makePredicate(characters("[]{}(),;:"));var S={ID_Start:/[$A-Z_a-z\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\u08A0-\u08B4\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\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\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\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-\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\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\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\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\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[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\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]|\uD82C[\uDC00\uDC01]|\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]|\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]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/(?:[$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\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\u08A0-\u08B4\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\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\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\u0C81-\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\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\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\u1369-\u1371\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-\u19DA\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\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\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\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\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\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[\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\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\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]|\uD82C[\uDC00\uDC01]|\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]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\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]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF])+/};function get_full_char(e,t){if(is_surrogate_pair_head(e.charCodeAt(t))){if(is_surrogate_pair_tail(e.charCodeAt(t+1))){return e.charAt(t)+e.charAt(t+1)}}else if(is_surrogate_pair_tail(e.charCodeAt(t))){if(is_surrogate_pair_head(e.charCodeAt(t-1))){return e.charAt(t-1)+e.charAt(t)}}return e.charAt(t)}function get_full_char_code(e,t){if(is_surrogate_pair_head(e.charCodeAt(t))){return 65536+(e.charCodeAt(t)-55296<<10)+e.charCodeAt(t+1)-56320}return e.charCodeAt(t)}function get_full_char_length(e){var t=0;for(var n=0;n65535){e-=65536;return String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)}return String.fromCharCode(e)}function is_surrogate_pair_head(e){return e>=55296&&e<=56319}function is_surrogate_pair_tail(e){return e>=56320&&e<=57343}function is_digit(e){return e>=48&&e<=57}function is_identifier_start(e){return S.ID_Start.test(e)}function is_identifier_char(e){return S.ID_Continue.test(e)}function is_basic_identifier_string(e){return/^[a-z_$][a-z0-9_$]*$/i.test(e)}function is_identifier_string(e,t){if(/^[a-z_$][a-z0-9_$]*$/i.test(e)){return true}if(!t&&/[\ud800-\udfff]/.test(e)){return false}var n=S.ID_Start.exec(e);if(!n||n.index!==0){return false}e=e.slice(n[0].length);if(!e){return true}n=S.ID_Continue.exec(e);return!!n&&n[0].length===e.length}function parse_js_number(e,t=true){if(!t&&e.includes("e")){return NaN}if(p.test(e)){return parseInt(e.substr(2),16)}else if(_.test(e)){return parseInt(e.substr(1),8)}else if(h.test(e)){return parseInt(e.substr(2),8)}else if(d.test(e)){return parseInt(e.substr(2),2)}else if(m.test(e)){return parseFloat(e)}else{var n=parseFloat(e);if(n==e)return n}}class JS_Parse_Error extends Error{constructor(e,t,n,i,r){super();this.name="SyntaxError";this.message=e;this.filename=t;this.line=n;this.col=i;this.pos=r}}function js_error(e,t,n,i,r){throw new JS_Parse_Error(e,t,n,i,r)}function is_token(e,t,n){return e.type==t&&(n==null||e.value==n)}var A={};function tokenizer(e,t,n,i){var r={text:e,filename:t,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:false,regex_allowed:false,brace_counter:0,template_braces:[],comments_before:[],directives:{},directive_stack:[]};function peek(){return get_full_char(r.text,r.pos)}function next(e,t){var n=get_full_char(r.text,r.pos++);if(e&&!n)throw A;if(D.has(n)){r.newline_before=r.newline_before||!t;++r.line;r.col=0;if(n=="\r"&&peek()=="\n"){++r.pos;n="\n"}}else{if(n.length>1){++r.pos;++r.col}++r.col}return n}function forward(e){while(e--)next()}function looking_at(e){return r.text.substr(r.pos,e.length)==e}function find_eol(){var e=r.text;for(var t=r.pos,n=r.text.length;t="0"&&e<="7"}function read_escaped_char(e,t,n){var i=next(true,e);switch(i.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 120:return String.fromCharCode(hex_bytes(2,t));case 117:if(peek()=="{"){next(true);if(peek()==="}")parse_error("Expecting hex-character between {}");while(peek()=="0")next(true);var a,o=find("}",true)-r.pos;if(o>6||(a=hex_bytes(o,t))>1114111){parse_error("Unicode reference out of bounds")}next(true);return from_char_code(a)}return String.fromCharCode(hex_bytes(4,t));case 10:return"";case 13:if(peek()=="\n"){next(true,e);return""}}if(is_octal(i)){if(n&&t){const e=i==="0"&&!is_octal(peek());if(!e){parse_error("Octal escape sequences are not allowed in template strings")}}return read_octal_escape_sequence(i,t)}return i}function read_octal_escape_sequence(e,t){var n=peek();if(n>="0"&&n<="7"){e+=next(true);if(e[0]<="3"&&(n=peek())>="0"&&n<="7")e+=next(true)}if(e==="0")return"\0";if(e.length>0&&next_token.has_directive("use strict")&&t)parse_error("Legacy octal escape sequences are not allowed in strict mode");return String.fromCharCode(parseInt(e,8))}function hex_bytes(e,t){var n=0;for(;e>0;--e){if(!t&&isNaN(parseInt(peek(),16))){return parseInt(n,16)||""}var i=next(true);if(isNaN(parseInt(i,16)))parse_error("Invalid hex-character pattern in string");n+=i}return parseInt(n,16)}var d=with_eof_error("Unterminated string constant",function(){var e=next(),t="";for(;;){var n=next(true,true);if(n=="\\")n=read_escaped_char(true,true);else if(n=="\r"||n=="\n")parse_error("Unterminated string constant");else if(n==e)break;t+=n}var i=token("string",t);i.quote=e;return i});var m=with_eof_error("Unterminated template",function(e){if(e){r.template_braces.push(r.brace_counter)}var t="",n="",i,a;next(true,true);while((i=next(true,true))!="`"){if(i=="\r"){if(peek()=="\n")++r.pos;i="\n"}else if(i=="$"&&peek()=="{"){next(true,true);r.brace_counter++;a=token(e?"template_head":"template_substitution",t);a.raw=n;return a}n+=i;if(i=="\\"){var o=r.pos;var s=h&&(h.type==="name"||h.type==="punc"&&(h.value===")"||h.value==="]"));i=read_escaped_char(true,!s,true);n+=r.text.substr(o,r.pos-o)}t+=i}r.template_braces.pop();a=token(e?"template_head":"template_substitution",t);a.raw=n;a.end=true;return a});function skip_line_comment(e){var t=r.regex_allowed;var n=find_eol(),i;if(n==-1){i=r.text.substr(r.pos);r.pos=r.text.length}else{i=r.text.substring(r.pos,n);r.pos=n}r.col=r.tokcol+(r.pos-r.tokpos);r.comments_before.push(token(e,i,true));r.regex_allowed=t;return next_token}var b=with_eof_error("Unterminated multiline comment",function(){var e=r.regex_allowed;var t=find("*/",true);var n=r.text.substring(r.pos,t).replace(/\r\n|\r|\u2028|\u2029/g,"\n");forward(get_full_char_length(n)+2);r.comments_before.push(token("comment2",n,true));r.newline_before=r.newline_before||n.includes("\n");r.regex_allowed=e;return next_token});var S=with_eof_error("Unterminated identifier name",function(){var e,t,n=false;var i=function(){n=true;next();if(peek()!=="u"){parse_error("Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}")}return read_escaped_char(false,true)};if((e=peek())==="\\"){e=i();if(!is_identifier_start(e)){parse_error("First identifier char is an invalid identifier char")}}else if(is_identifier_start(e)){next()}else{return""}while((t=peek())!=null){if((t=peek())==="\\"){t=i();if(!is_identifier_char(t)){parse_error("Invalid escaped identifier char")}}else{if(!is_identifier_char(t)){break}next()}e+=t}if(u.has(e)&&n){parse_error("Escaped characters are not allowed in keywords")}return e});var T=with_eof_error("Unterminated regular expression",function(e){var t=false,n,i=false;while(n=next(true))if(D.has(n)){parse_error("Unexpected line terminator")}else if(t){e+="\\"+n;t=false}else if(n=="["){i=true;e+=n}else if(n=="]"&&i){i=false;e+=n}else if(n=="/"&&!i){break}else if(n=="\\"){t=true}else{e+=n}const r=S();return token("regexp",{source:e,flags:r})});function read_operator(e){function grow(e){if(!peek())return e;var t=e+peek();if(g.has(t)){next();return grow(t)}else{return e}}return token("operator",grow(e||next()))}function handle_slash(){next();switch(peek()){case"/":next();return skip_line_comment("comment1");case"*":next();return b()}return r.regex_allowed?T(""):read_operator("/")}function handle_eq_sign(){next();if(peek()===">"){next();return token("arrow","=>")}else{return read_operator("=")}}function handle_dot(){next();if(is_digit(peek().charCodeAt(0))){return read_num(".")}if(peek()==="."){next();next();return token("expand","...")}return token("punc",".")}function read_word(){var e=S();if(a)return token("name",e);return s.has(e)?token("atom",e):!o.has(e)?token("name",e):g.has(e)?token("operator",e):token("keyword",e)}function with_eof_error(e,t){return function(n){try{return t(n)}catch(t){if(t===A)parse_error(e);else throw t}}}function next_token(e){if(e!=null)return T(e);if(i&&r.pos==0&&looking_at("#!")){start_token();forward(2);skip_line_comment("comment5")}for(;;){skip_whitespace();start_token();if(n){if(looking_at("\x3c!--")){forward(4);skip_line_comment("comment3");continue}if(looking_at("--\x3e")&&r.newline_before){forward(3);skip_line_comment("comment4");continue}}var t=peek();if(!t)return token("eof");var a=t.charCodeAt(0);switch(a){case 34:case 39:return d();case 46:return handle_dot();case 47:{var o=handle_slash();if(o===next_token)continue;return o}case 61:return handle_eq_sign();case 96:return m(true);case 123:r.brace_counter++;break;case 125:r.brace_counter--;if(r.template_braces.length>0&&r.template_braces[r.template_braces.length-1]===r.brace_counter)return m(false);break}if(is_digit(a))return read_num();if(k.has(t))return token("punc",next());if(l.has(t))return read_operator();if(a==92||is_identifier_start(t))return read_word();break}parse_error("Unexpected character '"+t+"'")}next_token.next=next;next_token.peek=peek;next_token.context=function(e){if(e)r=e;return r};next_token.add_directive=function(e){r.directive_stack[r.directive_stack.length-1].push(e);if(r.directives[e]===undefined){r.directives[e]=1}else{r.directives[e]++}};next_token.push_directives_stack=function(){r.directive_stack.push([])};next_token.pop_directives_stack=function(){var e=r.directive_stack[r.directive_stack.length-1];for(var t=0;t0};return next_token}var T=makePredicate(["typeof","void","delete","--","++","!","~","-","+"]);var C=makePredicate(["--","++"]);var x=makePredicate(["=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&="]);var O=function(e,t){for(var n=0;n","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],{});var F=makePredicate(["atom","num","big_int","string","regexp","name"]);function parse(e,t){const n=new Map;t=defaults(t,{bare_returns:false,ecma:2017,expression:false,filename:null,html5_comments:true,module:false,shebang:true,strict:false,toplevel:null},true);var i={input:typeof e=="string"?tokenizer(e,t.filename,t.html5_comments,t.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_async:-1,in_generator:-1,in_directives:true,in_loop:0,labels:[]};i.token=next();function is(e,t){return is_token(i.token,e,t)}function peek(){return i.peeked||(i.peeked=i.input())}function next(){i.prev=i.token;if(!i.peeked)peek();i.token=i.peeked;i.peeked=null;i.in_directives=i.in_directives&&(i.token.type=="string"||is("punc",";"));return i.token}function prev(){return i.prev}function croak(e,t,n,r){var a=i.input.context();js_error(e,a.filename,t!=null?t:a.tokline,n!=null?n:a.tokcol,r!=null?r:a.tokpos)}function token_error(e,t){croak(t,e.line,e.col)}function unexpected(e){if(e==null)e=i.token;token_error(e,"Unexpected token: "+e.type+" ("+e.value+")")}function expect_token(e,t){if(is(e,t)){return next()}token_error(i.token,"Unexpected token "+i.token.type+" «"+i.token.value+"»"+", expected "+e+" «"+t+"»")}function expect(e){return expect_token("punc",e)}function has_newline_before(e){return e.nlb||!e.comments_before.every(e=>!e.nlb)}function can_insert_semicolon(){return!t.strict&&(is("eof")||is("punc","}")||has_newline_before(i.token))}function is_in_generator(){return i.in_generator===i.in_function}function is_in_async(){return i.in_async===i.in_function}function semicolon(e){if(is("punc",";"))next();else if(!e&&!can_insert_semicolon())unexpected()}function parenthesised(){expect("(");var e=y(true);expect(")");return e}function embed_tokens(e){return function(...t){const n=i.token;const r=e(...t);r.start=n;r.end=prev();return r}}function handle_regexp(){if(is("operator","/")||is("operator","/=")){i.peeked=null;i.token=i.input(i.token.value.substr(1))}}var r=embed_tokens(function(e,n,a){handle_regexp();switch(i.token.type){case"string":if(i.in_directives){var u=peek();if(!i.token.raw.includes("\\")&&(is_token(u,"punc",";")||is_token(u,"punc","}")||has_newline_before(u)||is_token(u,"eof"))){i.input.add_directive(i.token.value)}else{i.in_directives=false}}var f=i.in_directives,p=simple_statement();return f&&p.body instanceof Ot?new I(p.body):p;case"template_head":case"num":case"big_int":case"regexp":case"operator":case"atom":return simple_statement();case"name":if(i.token.value=="async"&&is_token(peek(),"keyword","function")){next();next();if(n){croak("functions are not allowed as the body of a loop")}return o(ie,false,true,e)}if(i.token.value=="import"&&!is_token(peek(),"punc","(")&&!is_token(peek(),"punc",".")){next();var _=import_();semicolon();return _}return is_token(peek(),"punc",":")?labeled_statement():simple_statement();case"punc":switch(i.token.value){case"{":return new L({start:i.token,body:block_(),end:prev()});case"[":case"(":return simple_statement();case";":i.in_directives=false;next();return new B;default:unexpected()}case"keyword":switch(i.token.value){case"break":next();return break_cont(_e);case"continue":next();return break_cont(he);case"debugger":next();semicolon();return new N;case"do":next();var h=in_loop(r);expect_token("keyword","while");var d=parenthesised();semicolon(true);return new H({body:h,condition:d});case"while":next();return new X({condition:parenthesised(),body:in_loop(function(){return r(false,true)})});case"for":next();return for_();case"class":next();if(n){croak("classes are not allowed as the body of a loop")}if(a){croak("classes are not allowed as the body of an if")}return class_(nt);case"function":next();if(n){croak("functions are not allowed as the body of a loop")}return o(ie,false,false,e);case"if":next();return if_();case"return":if(i.in_function==0&&!t.bare_returns)croak("'return' outside of function");next();var m=null;if(is("punc",";")){next()}else if(!can_insert_semicolon()){m=y(true);semicolon()}return new le({value:m});case"switch":next();return new ge({expression:parenthesised(),body:in_loop(switch_body_)});case"throw":next();if(has_newline_before(i.token))croak("Illegal newline after 'throw'");var m=y(true);semicolon();return new fe({value:m});case"try":next();return try_();case"var":next();var _=s();semicolon();return _;case"let":next();var _=c();semicolon();return _;case"const":next();var _=l();semicolon();return _;case"with":if(i.input.has_directive("use strict")){croak("Strict mode may not include a with statement")}next();return new $({expression:parenthesised(),body:r()});case"export":if(!is_token(peek(),"punc","(")){next();var _=export_();if(is("punc",";"))semicolon();return _}}}unexpected()});function labeled_statement(){var e=as_symbol(bt);if(e.name==="await"&&is_in_async()){token_error(i.prev,"await cannot be used as label inside async function")}if(i.labels.some(t=>t.name===e.name)){croak("Label "+e.name+" defined twice")}expect(":");i.labels.push(e);var t=r();i.labels.pop();if(!(t instanceof z)){e.references.forEach(function(t){if(t instanceof he){t=t.label.start;croak("Continue label `"+e.name+"` refers to non-IterationStatement.",t.line,t.col,t.pos)}})}return new K({body:t,label:e})}function simple_statement(e){return new P({body:(e=y(true),semicolon(),e)})}function break_cont(e){var t=null,n;if(!can_insert_semicolon()){t=as_symbol(At,true)}if(t!=null){n=i.labels.find(e=>e.name===t.name);if(!n)croak("Undefined label "+t.name);t.thedef=n}else if(i.in_loop==0)croak(e.TYPE+" not inside a loop or switch");semicolon();var r=new e({label:t});if(n)n.references.push(r);return r}function for_(){var e="`for await` invalid in this context";var t=i.token;if(t.type=="name"&&t.value=="await"){if(!is_in_async()){token_error(t,e)}next()}else{t=false}expect("(");var n=null;if(!is("punc",";")){n=is("keyword","var")?(next(),s(true)):is("keyword","let")?(next(),c(true)):is("keyword","const")?(next(),l(true)):y(true,true);var r=is("operator","in");var a=is("name","of");if(t&&!a){token_error(t,e)}if(r||a){if(n instanceof Ae){if(n.definitions.length>1)token_error(n.start,"Only one variable declaration allowed in for..in loop")}else if(!(is_assignable(n)||(n=to_destructuring(n))instanceof re)){token_error(n.start,"Invalid left-hand side in for..in loop")}next();if(r){return for_in(n)}else{return for_of(n,!!t)}}}else if(t){token_error(t,e)}return regular_for(n)}function regular_for(e){expect(";");var t=is("punc",";")?null:y(true);expect(";");var n=is("punc",")")?null:y(true);expect(")");return new q({init:e,condition:t,step:n,body:in_loop(function(){return r(false,true)})})}function for_of(e,t){var n=e instanceof Ae?e.definitions[0].name:null;var i=y(true);expect(")");return new Y({await:t,init:e,name:n,object:i,body:in_loop(function(){return r(false,true)})})}function for_in(e){var t=y(true);expect(")");return new W({init:e,object:t,body:in_loop(function(){return r(false,true)})})}var a=function(e,t,n){if(has_newline_before(i.token)){croak("Unexpected newline before arrow (=>)")}expect_token("arrow","=>");var r=_function_body(is("punc","{"),false,n);var a=r instanceof Array&&r.length?r[r.length-1].end:r instanceof Array?e:r.end;return new ne({start:e,end:a,async:n,argnames:t,body:r})};var o=function(e,t,n,i){var r=e===ie;var a=is("operator","*");if(a){next()}var o=is("name")?as_symbol(r?pt:dt):null;if(r&&!o){if(i){e=te}else{unexpected()}}if(o&&e!==ee&&!(o instanceof ot))unexpected(prev());var s=[];var u=_function_body(true,a||t,n,o,s);return new e({start:s.start,end:u.end,is_generator:a,async:n,name:o,argnames:s,body:u})};function track_used_binding_identifiers(e,t){var n=new Set;var i=false;var r=false;var a=false;var o=!!t;var s={add_parameter:function(t){if(n.has(t.value)){if(i===false){i=t}s.check_strict()}else{n.add(t.value);if(e){switch(t.value){case"arguments":case"eval":case"yield":if(o){token_error(t,"Unexpected "+t.value+" identifier as parameter inside strict mode")}break;default:if(u.has(t.value)){unexpected()}}}}},mark_default_assignment:function(e){if(r===false){r=e}},mark_spread:function(e){if(a===false){a=e}},mark_strict_mode:function(){o=true},is_strict:function(){return r!==false||a!==false||o},check_strict:function(){if(s.is_strict()&&i!==false){token_error(i,"Parameter "+i.value+" was used already")}}};return s}function parameters(e){var n=track_used_binding_identifiers(true,i.input.has_directive("use strict"));expect("(");while(!is("punc",")")){var r=parameter(n);e.push(r);if(!is("punc",")")){expect(",");if(is("punc",")")&&t.ecma<2017)unexpected()}if(r instanceof Q){break}}next()}function parameter(e,t){var n;var r=false;if(e===undefined){e=track_used_binding_identifiers(true,i.input.has_directive("use strict"))}if(is("expand","...")){r=i.token;e.mark_spread(i.token);next()}n=binding_element(e,t);if(is("operator","=")&&r===false){e.mark_default_assignment(i.token);next();n=new qe({start:n.start,left:n,operator:"=",right:y(false),end:i.token})}if(r!==false){if(!is("punc",")")){unexpected()}n=new Q({start:r,expression:n,end:r})}e.check_strict();return n}function binding_element(e,t){var n=[];var r=true;var a=false;var o;var s=i.token;if(e===undefined){e=track_used_binding_identifiers(false,i.input.has_directive("use strict"))}t=t===undefined?ft:t;if(is("punc","[")){next();while(!is("punc","]")){if(r){r=false}else{expect(",")}if(is("expand","...")){a=true;o=i.token;e.mark_spread(i.token);next()}if(is("punc")){switch(i.token.value){case",":n.push(new Vt({start:i.token,end:i.token}));continue;case"]":break;case"[":case"{":n.push(binding_element(e,t));break;default:unexpected()}}else if(is("name")){e.add_parameter(i.token);n.push(as_symbol(t))}else{croak("Invalid function parameter")}if(is("operator","=")&&a===false){e.mark_default_assignment(i.token);next();n[n.length-1]=new qe({start:n[n.length-1].start,left:n[n.length-1],operator:"=",right:y(false),end:i.token})}if(a){if(!is("punc","]")){croak("Rest element must be last element")}n[n.length-1]=new Q({start:o,expression:n[n.length-1],end:o})}}expect("]");e.check_strict();return new re({start:s,names:n,is_array:true,end:prev()})}else if(is("punc","{")){next();while(!is("punc","}")){if(r){r=false}else{expect(",")}if(is("expand","...")){a=true;o=i.token;e.mark_spread(i.token);next()}if(is("name")&&(is_token(peek(),"punc")||is_token(peek(),"operator"))&&[",","}","="].includes(peek().value)){e.add_parameter(i.token);var u=prev();var c=as_symbol(t);if(a){n.push(new Q({start:o,expression:c,end:c.end}))}else{n.push(new je({start:u,key:c.name,value:c,end:c.end}))}}else if(is("punc","}")){continue}else{var l=i.token;var f=as_property_name();if(f===null){unexpected(prev())}else if(prev().type==="name"&&!is("punc",":")){n.push(new je({start:prev(),key:f,value:new t({start:prev(),name:f,end:prev()}),end:prev()}))}else{expect(":");n.push(new je({start:l,quote:l.quote,key:f,value:binding_element(e,t),end:prev()}))}}if(a){if(!is("punc","}")){croak("Rest element must be last element")}}else if(is("operator","=")){e.mark_default_assignment(i.token);next();n[n.length-1].value=new qe({start:n[n.length-1].value.start,left:n[n.length-1].value,operator:"=",right:y(false),end:i.token})}}expect("}");e.check_strict();return new re({start:s,names:n,is_array:false,end:prev()})}else if(is("name")){e.add_parameter(i.token);return as_symbol(t)}else{croak("Invalid function parameter")}}function params_or_seq_(e,n){var r;var a;var o;var s=[];expect("(");while(!is("punc",")")){if(r)unexpected(r);if(is("expand","...")){r=i.token;if(n)a=i.token;next();s.push(new Q({start:prev(),expression:y(),end:i.token}))}else{s.push(y())}if(!is("punc",")")){expect(",");if(is("punc",")")){if(t.ecma<2017)unexpected();o=prev();if(n)a=o}}}expect(")");if(e&&is("arrow","=>")){if(r&&o)unexpected(o)}else if(a){unexpected(a)}return s}function _function_body(e,t,n,r,a){var o=i.in_loop;var s=i.labels;var u=i.in_generator;var c=i.in_async;++i.in_function;if(t)i.in_generator=i.in_function;if(n)i.in_async=i.in_function;if(a)parameters(a);if(e)i.in_directives=true;i.in_loop=0;i.labels=[];if(e){i.input.push_directives_stack();var l=block_();if(r)_verify_symbol(r);if(a)a.forEach(_verify_symbol);i.input.pop_directives_stack()}else{var l=[new le({start:i.token,value:y(false),end:i.token})]}--i.in_function;i.in_loop=o;i.labels=s;i.in_generator=u;i.in_async=c;return l}function _await_expression(){if(!is_in_async()){croak("Unexpected await expression outside async function",i.prev.line,i.prev.col,i.prev.pos)}return new de({start:prev(),end:i.token,expression:E(true)})}function _yield_expression(){if(!is_in_generator()){croak("Unexpected yield expression outside generator function",i.prev.line,i.prev.col,i.prev.pos)}var e=i.token;var t=false;var n=true;if(can_insert_semicolon()||is("punc")&&b.has(i.token.value)){n=false}else if(is("operator","*")){t=true;next()}return new me({start:e,is_star:t,expression:n?y():null,end:prev()})}function if_(){var e=parenthesised(),t=r(false,false,true),n=null;if(is("keyword","else")){next();n=r(false,false,true)}return new Ee({condition:e,body:t,alternative:n})}function block_(){expect("{");var e=[];while(!is("punc","}")){if(is("eof"))unexpected();e.push(r())}next();return e}function switch_body_(){expect("{");var e=[],t=null,n=null,a;while(!is("punc","}")){if(is("eof"))unexpected();if(is("keyword","case")){if(n)n.end=prev();t=[];n=new be({start:(a=i.token,next(),a),expression:y(true),body:t});e.push(n);expect(":")}else if(is("keyword","default")){if(n)n.end=prev();t=[];n=new De({start:(a=i.token,next(),expect(":"),a),body:t});e.push(n)}else{if(!t)unexpected();t.push(r())}}if(n)n.end=prev();next();return e}function try_(){var e=block_(),t=null,n=null;if(is("keyword","catch")){var r=i.token;next();if(is("punc","{")){var a=null}else{expect("(");var a=parameter(undefined,gt);expect(")")}t=new ke({start:r,argname:a,body:block_(),end:prev()})}if(is("keyword","finally")){var r=i.token;next();n=new Se({start:r,body:block_(),end:prev()})}if(!t&&!n)croak("Missing catch/finally blocks");return new ye({body:e,bcatch:t,bfinally:n})}function vardefs(e,t){var n=[];var r;for(;;){var a=t==="var"?st:t==="const"?ct:t==="let"?lt:null;if(is("punc","{")||is("punc","[")){r=new Oe({start:i.token,name:binding_element(undefined,a),value:is("operator","=")?(expect_token("operator","="),y(false,e)):null,end:prev()})}else{r=new Oe({start:i.token,name:as_symbol(a),value:is("operator","=")?(next(),y(false,e)):!e&&t==="const"?croak("Missing initializer in const declaration"):null,end:prev()});if(r.name.name=="import")croak("Unexpected token: import")}n.push(r);if(!is("punc",","))break;next()}return n}var s=function(e){return new Te({start:prev(),definitions:vardefs(e,"var"),end:prev()})};var c=function(e){return new Ce({start:prev(),definitions:vardefs(e,"let"),end:prev()})};var l=function(e){return new xe({start:prev(),definitions:vardefs(e,"const"),end:prev()})};var f=function(e){var n=i.token;expect_token("operator","new");if(is("punc",".")){next();expect_token("name","target");return m(new at({start:n,end:prev()}),e)}var r=p(false),a;if(is("punc","(")){next();a=expr_list(")",t.ecma>=2017)}else{a=[]}var o=new Ie({start:n,expression:r,args:a,end:prev()});annotate(o);return m(o,e)};function as_atom_node(){var e=i.token,t;switch(e.type){case"name":t=_make_symbol(yt);break;case"num":t=new Ft({start:e,end:e,value:e.value});break;case"big_int":t=new wt({start:e,end:e,value:e.value});break;case"string":t=new Ot({start:e,end:e,value:e.value,quote:e.quote});break;case"regexp":t=new Rt({start:e,end:e,value:e.value});break;case"atom":switch(e.value){case"false":t=new Ut({start:e,end:e});break;case"true":t=new Kt({start:e,end:e});break;case"null":t=new Nt({start:e,end:e});break}break}next();return t}function to_fun_args(e,t){var n=function(e,t){if(t){return new qe({start:e.start,left:e,operator:"=",right:t,end:t.end})}return e};if(e instanceof Ye){return n(new re({start:e.start,end:e.end,is_array:false,names:e.properties.map(e=>to_fun_args(e))}),t)}else if(e instanceof je){e.value=to_fun_args(e.value);return n(e,t)}else if(e instanceof Vt){return e}else if(e instanceof re){e.names=e.names.map(e=>to_fun_args(e));return n(e,t)}else if(e instanceof yt){return n(new ft({name:e.name,start:e.start,end:e.end}),t)}else if(e instanceof Q){e.expression=to_fun_args(e.expression);return n(e,t)}else if(e instanceof We){return n(new re({start:e.start,end:e.end,is_array:true,names:e.elements.map(e=>to_fun_args(e))}),t)}else if(e instanceof Xe){return n(to_fun_args(e.left,e.right),t)}else if(e instanceof qe){e.left=to_fun_args(e.left);return e}else{croak("Invalid function parameter",e.start.line,e.start.col)}}var p=function(e,t){if(is("operator","new")){return f(e)}if(is("operator","import")){return import_meta()}var r=i.token;var s;var u=is("name","async")&&(s=peek()).value!="["&&s.type!="arrow"&&as_atom_node();if(is("punc")){switch(i.token.value){case"(":if(u&&!e)break;var c=params_or_seq_(t,!u);if(t&&is("arrow","=>")){return a(r,c.map(e=>to_fun_args(e)),!!u)}var l=u?new Ne({expression:u,args:c}):c.length==1?c[0]:new Pe({expressions:c});if(l.start){const e=r.comments_before.length;n.set(r,e);l.start.comments_before.unshift(...r.comments_before);r.comments_before=l.start.comments_before;if(e==0&&r.comments_before.length>0){var p=r.comments_before[0];if(!p.nlb){p.nlb=r.nlb;r.nlb=false}}r.comments_after=l.start.comments_after}l.start=r;var h=prev();if(l.end){h.comments_before=l.end.comments_before;l.end.comments_after.push(...h.comments_after);h.comments_after=l.end.comments_after}l.end=h;if(l instanceof Ne)annotate(l);return m(l,e);case"[":return m(_(),e);case"{":return m(d(),e)}if(!u)unexpected()}if(t&&is("name")&&is_token(peek(),"arrow")){var E=new ft({name:i.token.value,start:r,end:r});next();return a(r,[E],!!u)}if(is("keyword","function")){next();var g=o(te,false,!!u);g.start=r;g.end=prev();return m(g,e)}if(u)return m(u,e);if(is("keyword","class")){next();var v=class_(it);v.start=r;v.end=prev();return m(v,e)}if(is("template_head")){return m(template_string(),e)}if(F.has(i.token.type)){return m(as_atom_node(),e)}unexpected()};function template_string(){var e=[],t=i.token;e.push(new se({start:i.token,raw:i.token.raw,value:i.token.value,end:i.token}));while(!i.token.end){next();handle_regexp();e.push(y(true));if(!is_token("template_substitution")){unexpected()}e.push(new se({start:i.token,raw:i.token.raw,value:i.token.value,end:i.token}))}next();return new oe({start:t,segments:e,end:i.token})}function expr_list(e,t,n){var r=true,a=[];while(!is("punc",e)){if(r)r=false;else expect(",");if(t&&is("punc",e))break;if(is("punc",",")&&n){a.push(new Vt({start:i.token,end:i.token}))}else if(is("expand","...")){next();a.push(new Q({start:prev(),expression:y(),end:i.token}))}else{a.push(y(false))}}next();return a}var _=embed_tokens(function(){expect("[");return new We({elements:expr_list("]",!t.strict,true)})});var h=embed_tokens((e,t)=>{return o(ee,e,t)});var d=embed_tokens(function object_or_destructuring_(){var e=i.token,n=true,r=[];expect("{");while(!is("punc","}")){if(n)n=false;else expect(",");if(!t.strict&&is("punc","}"))break;e=i.token;if(e.type=="expand"){next();r.push(new Q({start:e,expression:y(false),end:prev()}));continue}var a=as_property_name();var o;if(!is("punc",":")){var s=concise_method_or_getset(a,e);if(s){r.push(s);continue}o=new yt({start:prev(),name:a,end:prev()})}else if(a===null){unexpected(prev())}else{next();o=y(false)}if(is("operator","=")){next();o=new Xe({start:e,left:o,operator:"=",right:y(false),end:prev()})}r.push(new je({start:e,quote:e.quote,key:a instanceof R?a:""+a,value:o,end:prev()}))}next();return new Ye({properties:r})});function class_(e){var t,n,r,a,o=[];i.input.push_directives_stack();i.input.add_directive("use strict");if(i.token.type=="name"&&i.token.value!="extends"){r=as_symbol(e===nt?mt:Et)}if(e===nt&&!r){unexpected()}if(i.token.value=="extends"){next();a=y(true)}expect("{");while(is("punc",";")){next()}while(!is("punc","}")){t=i.token;n=concise_method_or_getset(as_property_name(),t,true);if(!n){unexpected()}o.push(n);while(is("punc",";")){next()}}i.input.pop_directives_stack();next();return new e({start:t,name:r,extends:a,properties:o,end:prev()})}function concise_method_or_getset(e,t,n){var r=function(e,t){if(typeof e==="string"||typeof e==="number"){return new _t({start:t,name:""+e,end:prev()})}else if(e===null){unexpected()}return e};const a=e=>{if(typeof e==="string"||typeof e==="number"){return new ht({start:c,end:c,name:""+e})}else if(e===null){unexpected()}return e};var o=false;var s=false;var u=false;var c=t;if(n&&e==="static"&&!is("punc","(")){s=true;c=i.token;e=as_property_name()}if(e==="async"&&!is("punc","(")&&!is("punc",",")&&!is("punc","}")&&!is("operator","=")){o=true;c=i.token;e=as_property_name()}if(e===null){u=true;c=i.token;e=as_property_name();if(e===null){unexpected()}}if(is("punc","(")){e=r(e,t);var l=new Je({start:t,static:s,is_generator:u,async:o,key:e,quote:e instanceof _t?c.quote:undefined,value:h(u,o),end:prev()});return l}const f=i.token;if(e=="get"){if(!is("punc")||is("punc","[")){e=r(as_property_name(),t);return new Qe({start:t,static:s,key:e,quote:e instanceof _t?f.quote:undefined,value:h(),end:prev()})}}else if(e=="set"){if(!is("punc")||is("punc","[")){e=r(as_property_name(),t);return new Ze({start:t,static:s,key:e,quote:e instanceof _t?f.quote:undefined,value:h(),end:prev()})}}if(n){const n=a(e);const i=n instanceof ht?c.quote:undefined;if(is("operator","=")){next();return new tt({start:t,static:s,quote:i,key:n,value:y(false),end:prev()})}else if(is("name")||is("punc",";")||is("punc","}")){return new tt({start:t,static:s,quote:i,key:n,end:prev()})}}}function import_(){var e=prev();var t;var n;if(is("name")){t=as_symbol(vt)}if(is("punc",",")){next()}n=map_names(true);if(n||t){expect_token("name","from")}var r=i.token;if(r.type!=="string"){unexpected()}next();return new we({start:e,imported_name:t,imported_names:n,module_name:new Ot({start:r,value:r.value,quote:r.quote,end:r}),end:i.token})}function import_meta(){var e=i.token;expect_token("operator","import");expect_token("punc",".");expect_token("name","meta");return m(new Re({start:e,end:prev()}),false)}function map_name(e){function make_symbol(e){return new e({name:as_property_name(),start:prev(),end:prev()})}var t=e?Dt:St;var n=e?vt:kt;var r=i.token;var a;var o;if(e){a=make_symbol(t)}else{o=make_symbol(n)}if(is("name","as")){next();if(e){o=make_symbol(n)}else{a=make_symbol(t)}}else if(e){o=new n(a)}else{a=new t(o)}return new Fe({start:r,foreign_name:a,name:o,end:prev()})}function map_nameAsterisk(e,t){var n=e?Dt:St;var r=e?vt:kt;var a=i.token;var o;var s=prev();t=t||new r({name:"*",start:a,end:s});o=new n({name:"*",start:a,end:s});return new Fe({start:a,foreign_name:o,name:t,end:s})}function map_names(e){var t;if(is("punc","{")){next();t=[];while(!is("punc","}")){t.push(map_name(e));if(is("punc",",")){next()}}next()}else if(is("operator","*")){var n;next();if(e&&is("name","as")){next();n=as_symbol(e?vt:St)}t=[map_nameAsterisk(e,n)]}return t}function export_(){var e=i.token;var t;var n;if(is("keyword","default")){t=true;next()}else if(n=map_names(false)){if(is("name","from")){next();var a=i.token;if(a.type!=="string"){unexpected()}next();return new Me({start:e,is_default:t,exported_names:n,module_name:new Ot({start:a,value:a.value,quote:a.quote,end:a}),end:prev()})}else{return new Me({start:e,is_default:t,exported_names:n,end:prev()})}}var o;var s;var u;if(is("punc","{")||t&&(is("keyword","class")||is("keyword","function"))&&is_token(peek(),"punc")){s=y(false);semicolon()}else if((o=r(t))instanceof Ae&&t){unexpected(o.start)}else if(o instanceof Ae||o instanceof J||o instanceof nt){u=o}else if(o instanceof P){s=o.body}else{unexpected(o.start)}return new Me({start:e,is_default:t,exported_value:s,exported_definition:u,end:prev()})}function as_property_name(){var e=i.token;switch(e.type){case"punc":if(e.value==="["){next();var t=y(false);expect("]");return t}else unexpected(e);case"operator":if(e.value==="*"){next();return null}if(!["delete","in","instanceof","new","typeof","void"].includes(e.value)){unexpected(e)}case"name":case"string":case"num":case"big_int":case"keyword":case"atom":next();return e.value;default:unexpected(e)}}function as_name(){var e=i.token;if(e.type!="name")unexpected();next();return e.value}function _make_symbol(e){var t=i.token.value;return new(t=="this"?Tt:t=="super"?Ct:e)({name:String(t),start:i.token,end:i.token})}function _verify_symbol(e){var t=e.name;if(is_in_generator()&&t=="yield"){token_error(e.start,"Yield cannot be used as identifier inside generators")}if(i.input.has_directive("use strict")){if(t=="yield"){token_error(e.start,"Unexpected yield identifier inside strict mode")}if(e instanceof ot&&(t=="arguments"||t=="eval")){token_error(e.start,"Unexpected "+t+" in strict mode")}}}function as_symbol(e,t){if(!is("name")){if(!t)croak("Name expected");return null}var n=_make_symbol(e);_verify_symbol(n);next();return n}function annotate(e){var t=e.start;var i=t.comments_before;const r=n.get(t);var a=r!=null?r:i.length;while(--a>=0){var o=i[a];if(/[@#]__/.test(o.value)){if(/[@#]__PURE__/.test(o.value)){set_annotation(e,Gt);break}if(/[@#]__INLINE__/.test(o.value)){set_annotation(e,Ht);break}if(/[@#]__NOINLINE__/.test(o.value)){set_annotation(e,Xt);break}}}}var m=function(e,t){var n=e.start;if(is("punc",".")){next();return m(new Le({start:n,expression:e,property:as_name(),end:prev()}),t)}if(is("punc","[")){next();var i=y(true);expect("]");return m(new Be({start:n,expression:e,property:i,end:prev()}),t)}if(t&&is("punc","(")){next();var r=new Ne({start:n,expression:e,args:call_args(),end:prev()});annotate(r);return m(r,true)}if(is("template_head")){return m(new ae({start:n,prefix:e,template_string:template_string(),end:prev()}),t)}return e};function call_args(){var e=[];while(!is("punc",")")){if(is("expand","...")){next();e.push(new Q({start:prev(),expression:y(false),end:prev()}))}else{e.push(y(false))}if(!is("punc",")")){expect(",");if(is("punc",")")&&t.ecma<2017)unexpected()}}next();return e}var E=function(e,t){var n=i.token;if(n.type=="name"&&n.value=="await"){if(is_in_async()){next();return _await_expression()}else if(i.input.has_directive("use strict")){token_error(i.token,"Unexpected await identifier inside strict mode")}}if(is("operator")&&T.has(n.value)){next();handle_regexp();var r=make_unary(Ke,n,E(e));r.start=n;r.end=prev();return r}var a=p(e,t);while(is("operator")&&C.has(i.token.value)&&!has_newline_before(i.token)){if(a instanceof ne)unexpected();a=make_unary(ze,i.token,a);a.start=n;a.end=i.token;next()}return a};function make_unary(e,t,n){var r=t.value;switch(r){case"++":case"--":if(!is_assignable(n))croak("Invalid use of "+r+" operator",t.line,t.col,t.pos);break;case"delete":if(n instanceof yt&&i.input.has_directive("use strict"))croak("Calling delete on expression not allowed in strict mode",n.start.line,n.start.col,n.start.pos);break}return new e({operator:r,expression:n})}var g=function(e,t,n){var r=is("operator")?i.token.value:null;if(r=="in"&&n)r=null;if(r=="**"&&e instanceof Ke&&!is_token(e.start,"punc","(")&&e.operator!=="--"&&e.operator!=="++")unexpected(e.start);var a=r!=null?O[r]:null;if(a!=null&&(a>t||r==="**"&&t===a)){next();var o=g(E(true),a,n);return g(new Ge({start:e.start,left:e,operator:r,right:o,end:o.end}),t,n)}return e};function expr_ops(e){return g(E(true,true),0,e)}var v=function(e){var t=i.token;var n=expr_ops(e);if(is("operator","?")){next();var r=y(false);expect(":");return new He({start:t,condition:n,consequent:r,alternative:y(false,e),end:prev()})}return n};function is_assignable(e){return e instanceof Ve||e instanceof yt}function to_destructuring(e){if(e instanceof Ye){e=new re({start:e.start,names:e.properties.map(to_destructuring),is_array:false,end:e.end})}else if(e instanceof We){var t=[];for(var n=0;n=0;){a+="this."+t[o]+" = props."+t[o]+";"}const s=i&&Object.create(i.prototype);if(s&&s.initialize||n&&n.initialize)a+="this.initialize();";a+="}";a+="this.flags = 0;";a+="}";var u=new Function(a)();if(s){u.prototype=s;u.BASE=i}if(i)i.SUBCLASSES.push(u);u.prototype.CTOR=u;u.prototype.constructor=u;u.PROPS=t||null;u.SELF_PROPS=r;u.SUBCLASSES=[];if(e){u.prototype.TYPE=u.TYPE=e}if(n)for(o in n)if(HOP(n,o)){if(o[0]==="$"){u[o.substr(1)]=n[o]}else{u.prototype[o]=n[o]}}u.DEFMETHOD=function(e,t){this.prototype[e]=t};return u}var w=DEFNODE("Token","type value line col pos endline endcol endpos nlb comments_before comments_after file raw quote end",{},null);var R=DEFNODE("Node","start end",{_clone:function(e){if(e){var t=this.clone();return t.transform(new TreeTransformer(function(e){if(e!==t){return e.clone(true)}}))}return new this.CTOR(this)},clone:function(e){return this._clone(e)},$documentation:"Base class of all AST nodes",$propdoc:{start:"[AST_Token] The first token of this node",end:"[AST_Token] The last token of this node"},_walk:function(e){return e._visit(this)},walk:function(e){return this._walk(e)},_children_backwards:()=>{}},null);var M=DEFNODE("Statement",null,{$documentation:"Base class of all statements"});var N=DEFNODE("Debugger",null,{$documentation:"Represents a debugger statement"},M);var I=DEFNODE("Directive","value quote",{$documentation:'Represents a directive, like "use strict";',$propdoc:{value:"[string] The value of this directive as a plain string (it's not an AST_String!)",quote:"[string] the original quote character"}},M);var P=DEFNODE("SimpleStatement","body",{$documentation:"A statement consisting of an expression, i.e. a = 1 + 2",$propdoc:{body:"[AST_Node] an expression node (should not be instanceof AST_Statement)"},_walk:function(e){return e._visit(this,function(){this.body._walk(e)})},_children_backwards(e){e(this.body)}},M);function walk_body(e,t){const n=e.body;for(var i=0,r=n.length;i SymbolDef for all variables/functions defined in this scope",functions:"[Map/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"},get_defun_scope:function(){var e=this;while(e.is_block_scope()){e=e.parent_scope}return e},clone:function(e,t){var n=this._clone(e);if(e&&this.variables&&t&&!this._block_scope){n.figure_out_scope({},{toplevel:t,parent_scope:this.parent_scope})}else{if(this.variables)n.variables=new Map(this.variables);if(this.functions)n.functions=new Map(this.functions);if(this.enclosed)n.enclosed=this.enclosed.slice();if(this._block_scope)n._block_scope=this._block_scope}return n},pinned:function(){return this.uses_eval||this.uses_with}},V);var Z=DEFNODE("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Map/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs:function(e){var t=this.body;var n="(function(exports){'$ORIG';})(typeof "+e+"=='undefined'?("+e+"={}):"+e+");";n=parse(n);n=n.transform(new TreeTransformer(function(e){if(e instanceof I&&e.value=="$ORIG"){return i.splice(t)}}));return n},wrap_enclose:function(e){if(typeof e!="string")e="";var t=e.indexOf(":");if(t<0)t=e.length;var n=this.body;return parse(["(function(",e.slice(0,t),'){"$ORIG"})(',e.slice(t+1),")"].join("")).transform(new TreeTransformer(function(e){if(e instanceof I&&e.value=="$ORIG"){return i.splice(n)}}))}},j);var Q=DEFNODE("Expansion","expression",{$documentation:"An expandible argument, such as ...rest, a splat, such as [1,2,...all], or an expansion in a variable declaration, such as var [first, ...rest] = list",$propdoc:{expression:"[AST_Node] the thing to be expanded"},_walk:function(e){return e._visit(this,function(){this.expression.walk(e)})},_children_backwards(e){e(this.expression)}});var J=DEFNODE("Lambda","name argnames uses_arguments is_generator async",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg|AST_Destructuring|AST_Expansion|AST_DefaultAssign*] array of function arguments, destructurings, or expanding arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},args_as_names:function(){var e=[];for(var t=0;t b)"},J);var ie=DEFNODE("Defun",null,{$documentation:"A function definition"},J);var re=DEFNODE("Destructuring","names is_array",{$documentation:"A destructuring of several names. Used in destructuring assignment and with destructuring function argument names",$propdoc:{names:"[AST_Node*] Array of properties or elements",is_array:"[Boolean] Whether the destructuring represents an object or array"},_walk:function(e){return e._visit(this,function(){this.names.forEach(function(t){t._walk(e)})})},_children_backwards(e){let t=this.names.length;while(t--)e(this.names[t])},all_symbols:function(){var e=[];this.walk(new TreeWalker(function(t){if(t instanceof rt){e.push(t)}}));return e}});var ae=DEFNODE("PrefixedTemplateString","template_string prefix",{$documentation:"A templatestring with a prefix, such as String.raw`foobarbaz`",$propdoc:{template_string:"[AST_TemplateString] The template string",prefix:"[AST_SymbolRef|AST_PropAccess] The prefix, which can be a symbol such as `foo` or a dotted expression such as `String.raw`."},_walk:function(e){return e._visit(this,function(){this.prefix._walk(e);this.template_string._walk(e)})},_children_backwards(e){e(this.template_string);e(this.prefix)}});var oe=DEFNODE("TemplateString","segments",{$documentation:"A template string literal",$propdoc:{segments:"[AST_Node*] One or more segments, starting with AST_TemplateSegment. AST_Node may follow AST_TemplateSegment, but each AST_Node must be followed by AST_TemplateSegment."},_walk:function(e){return e._visit(this,function(){this.segments.forEach(function(t){t._walk(e)})})},_children_backwards(e){let t=this.segments.length;while(t--)e(this.segments[t])}});var se=DEFNODE("TemplateSegment","value raw",{$documentation:"A segment of a template string literal",$propdoc:{value:"Content of the segment",raw:"Raw content of the segment"}});var ue=DEFNODE("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},M);var ce=DEFNODE("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(e){return e._visit(this,this.value&&function(){this.value._walk(e)})},_children_backwards(e){if(this.value)e(this.value)}},ue);var le=DEFNODE("Return",null,{$documentation:"A `return` statement"},ce);var fe=DEFNODE("Throw",null,{$documentation:"A `throw` statement"},ce);var pe=DEFNODE("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(e){return e._visit(this,this.label&&function(){this.label._walk(e)})},_children_backwards(e){if(this.label)e(this.label)}},ue);var _e=DEFNODE("Break",null,{$documentation:"A `break` statement"},pe);var he=DEFNODE("Continue",null,{$documentation:"A `continue` statement"},pe);var de=DEFNODE("Await","expression",{$documentation:"An `await` statement",$propdoc:{expression:"[AST_Node] the mandatory expression being awaited"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})},_children_backwards(e){e(this.expression)}});var me=DEFNODE("Yield","expression is_star",{$documentation:"A `yield` statement",$propdoc:{expression:"[AST_Node?] the value returned or thrown by this statement; could be null (representing undefined) but only when is_star is set to false",is_star:"[Boolean] Whether this is a yield or yield* statement"},_walk:function(e){return e._visit(this,this.expression&&function(){this.expression._walk(e)})},_children_backwards(e){if(this.expression)e(this.expression)}});var Ee=DEFNODE("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e);this.body._walk(e);if(this.alternative)this.alternative._walk(e)})},_children_backwards(e){if(this.alternative){e(this.alternative)}e(this.body);e(this.condition)}},U);var ge=DEFNODE("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e);walk_body(this,e)})},_children_backwards(e){let t=this.body.length;while(t--)e(this.body[t]);e(this.expression)}},V);var ve=DEFNODE("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},V);var De=DEFNODE("Default",null,{$documentation:"A `default` switch branch"},ve);var be=DEFNODE("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e);walk_body(this,e)})},_children_backwards(e){let t=this.body.length;while(t--)e(this.body[t]);e(this.expression)}},ve);var ye=DEFNODE("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(e){return e._visit(this,function(){walk_body(this,e);if(this.bcatch)this.bcatch._walk(e);if(this.bfinally)this.bfinally._walk(e)})},_children_backwards(e){if(this.bfinally)e(this.bfinally);if(this.bcatch)e(this.bcatch);let t=this.body.length;while(t--)e(this.body[t])}},V);var ke=DEFNODE("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch|AST_Destructuring|AST_Expansion|AST_DefaultAssign] symbol for the exception"},_walk:function(e){return e._visit(this,function(){if(this.argname)this.argname._walk(e);walk_body(this,e)})},_children_backwards(e){let t=this.body.length;while(t--)e(this.body[t]);if(this.argname)e(this.argname)}},V);var Se=DEFNODE("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},V);var Ae=DEFNODE("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(e){return e._visit(this,function(){var t=this.definitions;for(var n=0,i=t.length;n a`"},Ge);var We=DEFNODE("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(e){return e._visit(this,function(){var t=this.elements;for(var n=0,i=t.length;nt._walk(e))})},_children_backwards(e){let t=this.properties.length;while(t--)e(this.properties[t]);if(this.extends)e(this.extends);if(this.name)e(this.name)}},j);var tt=DEFNODE("ClassProperty","static quote",{$documentation:"A class property",$propdoc:{static:"[boolean] whether this is a static key",quote:"[string] which quote is being used"},_walk:function(e){return e._visit(this,function(){if(this.key instanceof R)this.key._walk(e);if(this.value instanceof R)this.value._walk(e)})},_children_backwards(e){if(this.value instanceof R)e(this.value);if(this.key instanceof R)e(this.key)},computed_key(){return!(this.key instanceof ht)}},$e);var nt=DEFNODE("DefClass",null,{$documentation:"A class definition"},et);var it=DEFNODE("ClassExpression",null,{$documentation:"A class expression."},et);var rt=DEFNODE("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"});var at=DEFNODE("NewTarget",null,{$documentation:"A reference to new.target"});var ot=DEFNODE("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)"},rt);var st=DEFNODE("SymbolVar",null,{$documentation:"Symbol defining a variable"},ot);var ut=DEFNODE("SymbolBlockDeclaration",null,{$documentation:"Base class for block-scoped declaration symbols"},ot);var ct=DEFNODE("SymbolConst",null,{$documentation:"A constant declaration"},ut);var lt=DEFNODE("SymbolLet",null,{$documentation:"A block-scoped `let` declaration"},ut);var ft=DEFNODE("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},st);var pt=DEFNODE("SymbolDefun",null,{$documentation:"Symbol defining a function"},ot);var _t=DEFNODE("SymbolMethod",null,{$documentation:"Symbol in an object defining a method"},rt);var ht=DEFNODE("SymbolClassProperty",null,{$documentation:"Symbol for a class property"},rt);var dt=DEFNODE("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},ot);var mt=DEFNODE("SymbolDefClass",null,{$documentation:"Symbol naming a class's name in a class declaration. Lexically scoped to its containing scope, and accessible within the class."},ut);var Et=DEFNODE("SymbolClass",null,{$documentation:"Symbol naming a class's name. Lexically scoped to the class."},ot);var gt=DEFNODE("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},ut);var vt=DEFNODE("SymbolImport",null,{$documentation:"Symbol referring to an imported name"},ut);var Dt=DEFNODE("SymbolImportForeign",null,{$documentation:"A symbol imported from a module, but it is defined in the other module, and its real name is irrelevant for this module's purposes"},rt);var bt=DEFNODE("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[];this.thedef=this}},rt);var yt=DEFNODE("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},rt);var kt=DEFNODE("SymbolExport",null,{$documentation:"Symbol referring to a name to export"},yt);var St=DEFNODE("SymbolExportForeign",null,{$documentation:"A symbol exported from this module, but it is used in the other module, and its real name is irrelevant for this module's purposes"},rt);var At=DEFNODE("LabelRef",null,{$documentation:"Reference to a label symbol"},rt);var Tt=DEFNODE("This",null,{$documentation:"The `this` symbol"},rt);var Ct=DEFNODE("Super",null,{$documentation:"The `super` symbol"},Tt);var xt=DEFNODE("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}});var Ot=DEFNODE("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},xt);var Ft=DEFNODE("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},xt);var wt=DEFNODE("BigInt","value",{$documentation:"A big int literal",$propdoc:{value:"[string] big int value"}},xt);var Rt=DEFNODE("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},xt);var Mt=DEFNODE("Atom",null,{$documentation:"Base class for atoms"},xt);var Nt=DEFNODE("Null",null,{$documentation:"The `null` atom",value:null},Mt);var It=DEFNODE("NaN",null,{$documentation:"The impossible value",value:0/0},Mt);var Pt=DEFNODE("Undefined",null,{$documentation:"The `undefined` value",value:function(){}()},Mt);var Vt=DEFNODE("Hole",null,{$documentation:"A hole in an array",value:function(){}()},Mt);var Lt=DEFNODE("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},Mt);var Bt=DEFNODE("Boolean",null,{$documentation:"Base class for booleans"},Mt);var Ut=DEFNODE("False",null,{$documentation:"The `false` atom",value:false},Bt);var Kt=DEFNODE("True",null,{$documentation:"The `true` atom",value:true},Bt);function walk(e,t,n=[e]){const i=n.push.bind(n);while(n.length){const e=n.pop();const r=t(e,n);if(r){if(r===zt)return true;continue}e._children_backwards(i)}return false}function walk_parent(e,t,n){const i=[e];const r=i.push.bind(i);const a=n?n.slice():[];const o=[];let s;const u={parent:(e=0)=>{if(e===-1){return s}if(n&&e>=a.length){e-=a.length;return n[n.length-(e+1)]}return a[a.length-(1+e)]}};while(i.length){s=i.pop();while(o.length&&i.length==o[o.length-1]){a.pop();o.pop()}const e=t(s,u);if(e){if(e===zt)return true;continue}const n=i.length;s._children_backwards(r);if(i.length>n){a.push(s);o.push(n-1)}}return false}const zt=Symbol("abort walk");class TreeWalker{constructor(e){this.visit=e;this.stack=[];this.directives=Object.create(null)}_visit(e,t){this.push(e);var n=this.visit(e,t?function(){t.call(e)}:noop);if(!n&&t){t.call(e)}this.pop();return n}parent(e){return this.stack[this.stack.length-2-(e||0)]}push(e){if(e instanceof J){this.directives=Object.create(this.directives)}else if(e instanceof I&&!this.directives[e.value]){this.directives[e.value]=e}else if(e instanceof et){this.directives=Object.create(this.directives);if(!this.directives["use strict"]){this.directives["use strict"]=e}}this.stack.push(e)}pop(){var e=this.stack.pop();if(e instanceof J||e instanceof et){this.directives=Object.getPrototypeOf(this.directives)}}self(){return this.stack[this.stack.length-1]}find_parent(e){var t=this.stack;for(var n=t.length;--n>=0;){var i=t[n];if(i instanceof e)return i}}has_directive(e){var t=this.directives[e];if(t)return t;var n=this.stack[this.stack.length-1];if(n instanceof j&&n.body){for(var i=0;i=0;){var i=t[n];if(i instanceof K&&i.label.name==e.label.name)return i.body}else for(var n=t.length;--n>=0;){var i=t[n];if(i instanceof z||e instanceof _e&&i instanceof ge)return i}}}class TreeTransformer extends TreeWalker{constructor(e,t){super();this.before=e;this.after=t}}const Gt=1;const Ht=2;const Xt=4;var qt=Object.freeze({__proto__:null,AST_Accessor:ee,AST_Array:We,AST_Arrow:ne,AST_Assign:Xe,AST_Atom:Mt,AST_Await:de,AST_BigInt:wt,AST_Binary:Ge,AST_Block:V,AST_BlockStatement:L,AST_Boolean:Bt,AST_Break:_e,AST_Call:Ne,AST_Case:be,AST_Catch:ke,AST_Class:et,AST_ClassExpression:it,AST_ClassProperty:tt,AST_ConciseMethod:Je,AST_Conditional:He,AST_Const:xe,AST_Constant:xt,AST_Continue:he,AST_Debugger:N,AST_Default:De,AST_DefaultAssign:qe,AST_DefClass:nt,AST_Definitions:Ae,AST_Defun:ie,AST_Destructuring:re,AST_Directive:I,AST_Do:H,AST_Dot:Le,AST_DWLoop:G,AST_EmptyStatement:B,AST_Exit:ce,AST_Expansion:Q,AST_Export:Me,AST_False:Ut,AST_Finally:Se,AST_For:q,AST_ForIn:W,AST_ForOf:Y,AST_Function:te,AST_Hole:Vt,AST_If:Ee,AST_Import:we,AST_ImportMeta:Re,AST_Infinity:Lt,AST_IterationStatement:z,AST_Jump:ue,AST_Label:bt,AST_LabeledStatement:K,AST_LabelRef:At,AST_Lambda:J,AST_Let:Ce,AST_LoopControl:pe,AST_NameMapping:Fe,AST_NaN:It,AST_New:Ie,AST_NewTarget:at,AST_Node:R,AST_Null:Nt,AST_Number:Ft,AST_Object:Ye,AST_ObjectGetter:Qe,AST_ObjectKeyVal:je,AST_ObjectProperty:$e,AST_ObjectSetter:Ze,AST_PrefixedTemplateString:ae,AST_PropAccess:Ve,AST_RegExp:Rt,AST_Return:le,AST_Scope:j,AST_Sequence:Pe,AST_SimpleStatement:P,AST_Statement:M,AST_StatementWithBody:U,AST_String:Ot,AST_Sub:Be,AST_Super:Ct,AST_Switch:ge,AST_SwitchBranch:ve,AST_Symbol:rt,AST_SymbolBlockDeclaration:ut,AST_SymbolCatch:gt,AST_SymbolClass:Et,AST_SymbolClassProperty:ht,AST_SymbolConst:ct,AST_SymbolDeclaration:ot,AST_SymbolDefClass:mt,AST_SymbolDefun:pt,AST_SymbolExport:kt,AST_SymbolExportForeign:St,AST_SymbolFunarg:ft,AST_SymbolImport:vt,AST_SymbolImportForeign:Dt,AST_SymbolLambda:dt,AST_SymbolLet:lt,AST_SymbolMethod:_t,AST_SymbolRef:yt,AST_SymbolVar:st,AST_TemplateSegment:se,AST_TemplateString:oe,AST_This:Tt,AST_Throw:fe,AST_Token:w,AST_Toplevel:Z,AST_True:Kt,AST_Try:ye,AST_Unary:Ue,AST_UnaryPostfix:ze,AST_UnaryPrefix:Ke,AST_Undefined:Pt,AST_Var:Te,AST_VarDef:Oe,AST_While:X,AST_With:$,AST_Yield:me,TreeTransformer:TreeTransformer,TreeWalker:TreeWalker,walk:walk,walk_abort:zt,walk_body:walk_body,walk_parent:walk_parent,_INLINE:Ht,_NOINLINE:Xt,_PURE:Gt});function def_transform(e,t){e.DEFMETHOD("transform",function(e,n){let i=undefined;e.push(this);if(e.before)i=e.before(this,t,n);if(i===undefined){i=this;t(i,e);if(e.after){const t=e.after(i,n);if(t!==undefined)i=t}}e.pop();return i})}function do_list(e,t){return i(e,function(e){return e.transform(t,true)})}def_transform(R,noop);def_transform(K,function(e,t){e.label=e.label.transform(t);e.body=e.body.transform(t)});def_transform(P,function(e,t){e.body=e.body.transform(t)});def_transform(V,function(e,t){e.body=do_list(e.body,t)});def_transform(H,function(e,t){e.body=e.body.transform(t);e.condition=e.condition.transform(t)});def_transform(X,function(e,t){e.condition=e.condition.transform(t);e.body=e.body.transform(t)});def_transform(q,function(e,t){if(e.init)e.init=e.init.transform(t);if(e.condition)e.condition=e.condition.transform(t);if(e.step)e.step=e.step.transform(t);e.body=e.body.transform(t)});def_transform(W,function(e,t){e.init=e.init.transform(t);e.object=e.object.transform(t);e.body=e.body.transform(t)});def_transform($,function(e,t){e.expression=e.expression.transform(t);e.body=e.body.transform(t)});def_transform(ce,function(e,t){if(e.value)e.value=e.value.transform(t)});def_transform(pe,function(e,t){if(e.label)e.label=e.label.transform(t)});def_transform(Ee,function(e,t){e.condition=e.condition.transform(t);e.body=e.body.transform(t);if(e.alternative)e.alternative=e.alternative.transform(t)});def_transform(ge,function(e,t){e.expression=e.expression.transform(t);e.body=do_list(e.body,t)});def_transform(be,function(e,t){e.expression=e.expression.transform(t);e.body=do_list(e.body,t)});def_transform(ye,function(e,t){e.body=do_list(e.body,t);if(e.bcatch)e.bcatch=e.bcatch.transform(t);if(e.bfinally)e.bfinally=e.bfinally.transform(t)});def_transform(ke,function(e,t){if(e.argname)e.argname=e.argname.transform(t);e.body=do_list(e.body,t)});def_transform(Ae,function(e,t){e.definitions=do_list(e.definitions,t)});def_transform(Oe,function(e,t){e.name=e.name.transform(t);if(e.value)e.value=e.value.transform(t)});def_transform(re,function(e,t){e.names=do_list(e.names,t)});def_transform(J,function(e,t){if(e.name)e.name=e.name.transform(t);e.argnames=do_list(e.argnames,t);if(e.body instanceof R){e.body=e.body.transform(t)}else{e.body=do_list(e.body,t)}});def_transform(Ne,function(e,t){e.expression=e.expression.transform(t);e.args=do_list(e.args,t)});def_transform(Pe,function(e,t){const n=do_list(e.expressions,t);e.expressions=n.length?n:[new Ft({value:0})]});def_transform(Le,function(e,t){e.expression=e.expression.transform(t)});def_transform(Be,function(e,t){e.expression=e.expression.transform(t);e.property=e.property.transform(t)});def_transform(me,function(e,t){if(e.expression)e.expression=e.expression.transform(t)});def_transform(de,function(e,t){e.expression=e.expression.transform(t)});def_transform(Ue,function(e,t){e.expression=e.expression.transform(t)});def_transform(Ge,function(e,t){e.left=e.left.transform(t);e.right=e.right.transform(t)});def_transform(He,function(e,t){e.condition=e.condition.transform(t);e.consequent=e.consequent.transform(t);e.alternative=e.alternative.transform(t)});def_transform(We,function(e,t){e.elements=do_list(e.elements,t)});def_transform(Ye,function(e,t){e.properties=do_list(e.properties,t)});def_transform($e,function(e,t){if(e.key instanceof R){e.key=e.key.transform(t)}if(e.value)e.value=e.value.transform(t)});def_transform(et,function(e,t){if(e.name)e.name=e.name.transform(t);if(e.extends)e.extends=e.extends.transform(t);e.properties=do_list(e.properties,t)});def_transform(Q,function(e,t){e.expression=e.expression.transform(t)});def_transform(Fe,function(e,t){e.foreign_name=e.foreign_name.transform(t);e.name=e.name.transform(t)});def_transform(we,function(e,t){if(e.imported_name)e.imported_name=e.imported_name.transform(t);if(e.imported_names)do_list(e.imported_names,t);e.module_name=e.module_name.transform(t)});def_transform(Me,function(e,t){if(e.exported_definition)e.exported_definition=e.exported_definition.transform(t);if(e.exported_value)e.exported_value=e.exported_value.transform(t);if(e.exported_names)do_list(e.exported_names,t);if(e.module_name)e.module_name=e.module_name.transform(t)});def_transform(oe,function(e,t){e.segments=do_list(e.segments,t)});def_transform(ae,function(e,t){e.prefix=e.prefix.transform(t);e.template_string=e.template_string.transform(t)});(function(){var e=function(e){var t=true;for(var n=0;n1||e.guardedHandlers&&e.guardedHandlers.length){throw new Error("Multiple catch clauses are not supported.")}return new ye({start:my_start_token(e),end:my_end_token(e),body:from_moz(e.block).body,bcatch:from_moz(t[0]),bfinally:e.finalizer?new Se(from_moz(e.finalizer)):null})},Property:function(e){var t=e.key;var n={start:my_start_token(t||e.value),end:my_end_token(e.value),key:t.type=="Identifier"?t.name:t.value,value:from_moz(e.value)};if(e.computed){n.key=from_moz(e.key)}if(e.method){n.is_generator=e.value.generator;n.async=e.value.async;if(!e.computed){n.key=new _t({name:n.key})}else{n.key=from_moz(e.key)}return new Je(n)}if(e.kind=="init"){if(t.type!="Identifier"&&t.type!="Literal"){n.key=from_moz(t)}return new je(n)}if(typeof n.key==="string"||typeof n.key==="number"){n.key=new _t({name:n.key})}n.value=new ee(n.value);if(e.kind=="get")return new Qe(n);if(e.kind=="set")return new Ze(n);if(e.kind=="method"){n.async=e.value.async;n.is_generator=e.value.generator;n.quote=e.computed?'"':null;return new Je(n)}},MethodDefinition:function(e){var t={start:my_start_token(e),end:my_end_token(e),key:e.computed?from_moz(e.key):new _t({name:e.key.name||e.key.value}),value:from_moz(e.value),static:e.static};if(e.kind=="get"){return new Qe(t)}if(e.kind=="set"){return new Ze(t)}t.is_generator=e.value.generator;t.async=e.value.async;return new Je(t)},FieldDefinition:function(e){let t;if(e.computed){t=from_moz(e.key)}else{if(e.key.type!=="Identifier")throw new Error("Non-Identifier key in FieldDefinition");t=from_moz(e.key)}return new tt({start:my_start_token(e),end:my_end_token(e),key:t,value:from_moz(e.value),static:e.static})},ArrayExpression:function(e){return new We({start:my_start_token(e),end:my_end_token(e),elements:e.elements.map(function(e){return e===null?new Vt:from_moz(e)})})},ObjectExpression:function(e){return new Ye({start:my_start_token(e),end:my_end_token(e),properties:e.properties.map(function(e){if(e.type==="SpreadElement"){return from_moz(e)}e.type="Property";return from_moz(e)})})},SequenceExpression:function(e){return new Pe({start:my_start_token(e),end:my_end_token(e),expressions:e.expressions.map(from_moz)})},MemberExpression:function(e){return new(e.computed?Be:Le)({start:my_start_token(e),end:my_end_token(e),property:e.computed?from_moz(e.property):e.property.name,expression:from_moz(e.object)})},SwitchCase:function(e){return new(e.test?be:De)({start:my_start_token(e),end:my_end_token(e),expression:from_moz(e.test),body:e.consequent.map(from_moz)})},VariableDeclaration:function(e){return new(e.kind==="const"?xe:e.kind==="let"?Ce:Te)({start:my_start_token(e),end:my_end_token(e),definitions:e.declarations.map(from_moz)})},ImportDeclaration:function(e){var t=null;var n=null;e.specifiers.forEach(function(e){if(e.type==="ImportSpecifier"){if(!n){n=[]}n.push(new Fe({start:my_start_token(e),end:my_end_token(e),foreign_name:from_moz(e.imported),name:from_moz(e.local)}))}else if(e.type==="ImportDefaultSpecifier"){t=from_moz(e.local)}else if(e.type==="ImportNamespaceSpecifier"){if(!n){n=[]}n.push(new Fe({start:my_start_token(e),end:my_end_token(e),foreign_name:new Dt({name:"*"}),name:from_moz(e.local)}))}});return new we({start:my_start_token(e),end:my_end_token(e),imported_name:t,imported_names:n,module_name:from_moz(e.source)})},ExportAllDeclaration:function(e){return new Me({start:my_start_token(e),end:my_end_token(e),exported_names:[new Fe({name:new St({name:"*"}),foreign_name:new St({name:"*"})})],module_name:from_moz(e.source)})},ExportNamedDeclaration:function(e){return new Me({start:my_start_token(e),end:my_end_token(e),exported_definition:from_moz(e.declaration),exported_names:e.specifiers&&e.specifiers.length?e.specifiers.map(function(e){return new Fe({foreign_name:from_moz(e.exported),name:from_moz(e.local)})}):null,module_name:from_moz(e.source)})},ExportDefaultDeclaration:function(e){return new Me({start:my_start_token(e),end:my_end_token(e),exported_value:from_moz(e.declaration),is_default:true})},Literal:function(e){var t=e.value,n={start:my_start_token(e),end:my_end_token(e)};var i=e.regex;if(i&&i.pattern){n.value={source:i.pattern,flags:i.flags};return new Rt(n)}else if(i){const i=e.raw||t;const r=i.match(/^\/(.*)\/(\w*)$/);if(!r)throw new Error("Invalid regex source "+i);const[a,o,s]=r;n.value={source:o,flags:s};return new Rt(n)}if(t===null)return new Nt(n);switch(typeof t){case"string":n.value=t;return new Ot(n);case"number":n.value=t;return new Ft(n);case"boolean":return new(t?Kt:Ut)(n)}},MetaProperty:function(e){if(e.meta.name==="new"&&e.property.name==="target"){return new at({start:my_start_token(e),end:my_end_token(e)})}else if(e.meta.name==="import"&&e.property.name==="meta"){return new Re({start:my_start_token(e),end:my_end_token(e)})}},Identifier:function(e){var t=n[n.length-2];return new(t.type=="LabeledStatement"?bt:t.type=="VariableDeclarator"&&t.id===e?t.kind=="const"?ct:t.kind=="let"?lt:st:/Import.*Specifier/.test(t.type)?t.local===e?vt:Dt:t.type=="ExportSpecifier"?t.local===e?kt:St:t.type=="FunctionExpression"?t.id===e?dt:ft:t.type=="FunctionDeclaration"?t.id===e?pt:ft:t.type=="ArrowFunctionExpression"?t.params.includes(e)?ft:yt:t.type=="ClassExpression"?t.id===e?Et:yt:t.type=="Property"?t.key===e&&t.computed||t.value===e?yt:_t:t.type=="FieldDefinition"?t.key===e&&t.computed||t.value===e?yt:ht:t.type=="ClassDeclaration"?t.id===e?mt:yt:t.type=="MethodDefinition"?t.computed?yt:_t:t.type=="CatchClause"?gt:t.type=="BreakStatement"||t.type=="ContinueStatement"?At:yt)({start:my_start_token(e),end:my_end_token(e),name:e.name})},BigIntLiteral(e){return new wt({start:my_start_token(e),end:my_end_token(e),value:e.value})}};t.UpdateExpression=t.UnaryExpression=function To_Moz_Unary(e){var t="prefix"in e?e.prefix:e.type=="UnaryExpression"?true:false;return new(t?Ke:ze)({start:my_start_token(e),end:my_end_token(e),operator:e.operator,expression:from_moz(e.argument)})};t.ClassDeclaration=t.ClassExpression=function From_Moz_Class(e){return new(e.type==="ClassDeclaration"?nt:it)({start:my_start_token(e),end:my_end_token(e),name:from_moz(e.id),extends:from_moz(e.superClass),properties:e.body.body.map(from_moz)})};map("EmptyStatement",B);map("BlockStatement",L,"body@body");map("IfStatement",Ee,"test>condition, consequent>body, alternate>alternative");map("LabeledStatement",K,"label>label, body>body");map("BreakStatement",_e,"label>label");map("ContinueStatement",he,"label>label");map("WithStatement",$,"object>expression, body>body");map("SwitchStatement",ge,"discriminant>expression, cases@body");map("ReturnStatement",le,"argument>value");map("ThrowStatement",fe,"argument>value");map("WhileStatement",X,"test>condition, body>body");map("DoWhileStatement",H,"test>condition, body>body");map("ForStatement",q,"init>init, test>condition, update>step, body>body");map("ForInStatement",W,"left>init, right>object, body>body");map("ForOfStatement",Y,"left>init, right>object, body>body, await=await");map("AwaitExpression",de,"argument>expression");map("YieldExpression",me,"argument>expression, delegate=is_star");map("DebuggerStatement",N);map("VariableDeclarator",Oe,"id>name, init>value");map("CatchClause",ke,"param>argname, body%body");map("ThisExpression",Tt);map("Super",Ct);map("BinaryExpression",Ge,"operator=operator, left>left, right>right");map("LogicalExpression",Ge,"operator=operator, left>left, right>right");map("AssignmentExpression",Xe,"operator=operator, left>left, right>right");map("ConditionalExpression",He,"test>condition, consequent>consequent, alternate>alternative");map("NewExpression",Ie,"callee>expression, arguments@args");map("CallExpression",Ne,"callee>expression, arguments@args");def_to_moz(Z,function To_Moz_Program(e){return to_moz_scope("Program",e)});def_to_moz(Q,function To_Moz_Spread(e){return{type:to_moz_in_destructuring()?"RestElement":"SpreadElement",argument:to_moz(e.expression)}});def_to_moz(ae,function To_Moz_TaggedTemplateExpression(e){return{type:"TaggedTemplateExpression",tag:to_moz(e.prefix),quasi:to_moz(e.template_string)}});def_to_moz(oe,function To_Moz_TemplateLiteral(e){var t=[];var n=[];for(var i=0;i({type:"BigIntLiteral",value:e.value}));Bt.DEFMETHOD("to_mozilla_ast",xt.prototype.to_mozilla_ast);Nt.DEFMETHOD("to_mozilla_ast",xt.prototype.to_mozilla_ast);Vt.DEFMETHOD("to_mozilla_ast",function To_Moz_ArrayHole(){return null});V.DEFMETHOD("to_mozilla_ast",L.prototype.to_mozilla_ast);J.DEFMETHOD("to_mozilla_ast",te.prototype.to_mozilla_ast);function raw_token(e){if(e.type=="Literal"){return e.raw!=null?e.raw:e.value+""}}function my_start_token(e){var t=e.loc,n=t&&t.start;var i=e.range;return new w({file:t&&t.source,line:n&&n.line,col:n&&n.column,pos:i?i[0]:e.start,endline:n&&n.line,endcol:n&&n.column,endpos:i?i[0]:e.start,raw:raw_token(e)})}function my_end_token(e){var t=e.loc,n=t&&t.end;var i=e.range;return new w({file:t&&t.source,line:n&&n.line,col:n&&n.column,pos:i?i[1]:e.end,endline:n&&n.line,endcol:n&&n.column,endpos:i?i[1]:e.end,raw:raw_token(e)})}function map(e,n,i){var r="function From_Moz_"+e+"(M){\n";r+="return new U2."+n.name+"({\n"+"start: my_start_token(M),\n"+"end: my_end_token(M)";var a="function To_Moz_"+e+"(M){\n";a+="return {\n"+"type: "+JSON.stringify(e);if(i)i.split(/\s*,\s*/).forEach(function(e){var t=/([a-z0-9$_]+)([=@>%])([a-z0-9$_]+)/i.exec(e);if(!t)throw new Error("Can't understand property map: "+e);var n=t[1],i=t[2],o=t[3];r+=",\n"+o+": ";a+=",\n"+n+": ";switch(i){case"@":r+="M."+n+".map(from_moz)";a+="M."+o+".map(to_moz)";break;case">":r+="from_moz(M."+n+")";a+="to_moz(M."+o+")";break;case"=":r+="M."+n;a+="M."+o;break;case"%":r+="from_moz(M."+n+").body";a+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}});r+="\n})\n}";a+="\n}\n}";r=new Function("U2","my_start_token","my_end_token","from_moz","return("+r+")")(qt,my_start_token,my_end_token,from_moz);a=new Function("to_moz","to_moz_block","to_moz_scope","return("+a+")")(to_moz,to_moz_block,to_moz_scope);t[e]=r;def_to_moz(n,a)}var n=null;function from_moz(e){n.push(e);var i=e!=null?t[e.type](e):null;n.pop();return i}R.from_mozilla_ast=function(e){var t=n;n=[];var i=from_moz(e);n=t;return i};function set_moz_loc(e,t){var n=e.start;var i=e.end;if(!(n&&i)){return t}if(n.pos!=null&&i.endpos!=null){t.range=[n.pos,i.endpos]}if(n.line){t.loc={start:{line:n.line,column:n.col},end:i.endline?{line:i.endline,column:i.endcol}:null};if(n.file){t.loc.source=n.file}}return t}function def_to_moz(e,t){e.DEFMETHOD("to_mozilla_ast",function(e){return set_moz_loc(this,t(this,e))})}var i=null;function to_moz(e){if(i===null){i=[]}i.push(e);var t=e!=null?e.to_mozilla_ast(i[i.length-2]):null;i.pop();if(i.length===0){i=null}return t}function to_moz_in_destructuring(){var e=i.length;while(e--){if(i[e]instanceof re){return true}}return false}function to_moz_block(e){return{type:"BlockStatement",body:e.body.map(to_moz)}}function to_moz_scope(e,t){var n=t.body.map(to_moz);if(t.body[0]instanceof P&&t.body[0].body instanceof Ot){n.unshift(to_moz(new B(t.body[0])))}return{type:e,body:n}}})();function first_in_statement(e){let t=e.parent(-1);for(let n=0,i;i=e.parent(n);n++){if(i instanceof M&&i.body===t)return true;if(i instanceof Pe&&i.expressions[0]===t||i.TYPE==="Call"&&i.expression===t||i instanceof ae&&i.prefix===t||i instanceof Le&&i.expression===t||i instanceof Be&&i.expression===t||i instanceof He&&i.condition===t||i instanceof Ge&&i.left===t||i instanceof ze&&i.expression===t){t=i}else{return false}}}function left_is_object(e){if(e instanceof Ye)return true;if(e instanceof Pe)return left_is_object(e.expressions[0]);if(e.TYPE==="Call")return left_is_object(e.expression);if(e instanceof ae)return left_is_object(e.prefix);if(e instanceof Le||e instanceof Be)return left_is_object(e.expression);if(e instanceof He)return left_is_object(e.condition);if(e instanceof Ge)return left_is_object(e.left);if(e instanceof ze)return left_is_object(e.expression);return false}const Wt=/^$|[;{][\s\n]*$/;const Yt=10;const $t=32;const jt=/[@#]__(PURE|INLINE|NOINLINE)__/g;function is_some_comments(e){return(e.type==="comment2"||e.type==="comment1")&&/@preserve|@lic|@cc_on|^\**!/i.test(e.value)}function OutputStream(e){var t=!e;e=defaults(e,{ascii_only:false,beautify:false,braces:false,comments:"some",ecma:5,ie8:false,indent_level:4,indent_start:0,inline_script:true,keep_numbers:false,keep_quoted_props:false,max_line_len:false,preamble:null,preserve_annotations:false,quote_keys:false,quote_style:0,safari10:false,semicolons:true,shebang:true,shorthand:undefined,source_map:null,webkit:false,width:80,wrap_iife:false,wrap_func_args:true},true);if(e.shorthand===undefined)e.shorthand=e.ecma>5;var n=return_false;if(e.comments){let t=e.comments;if(typeof e.comments==="string"&&/^\/.*\/[a-zA-Z]*$/.test(e.comments)){var i=e.comments.lastIndexOf("/");t=new RegExp(e.comments.substr(1,i-1),e.comments.substr(i+1))}if(t instanceof RegExp){n=function(e){return e.type!="comment5"&&t.test(e.value)}}else if(typeof t==="function"){n=function(e){return e.type!="comment5"&&t(this,e)}}else if(t==="some"){n=is_some_comments}else{n=return_true}}var r=0;var a=0;var o=1;var s=0;var u="";let c=new Set;var l=e.ascii_only?function(t,n){if(e.ecma>=2015){t=t.replace(/[\ud800-\udbff][\udc00-\udfff]/g,function(e){var t=get_full_char_code(e,0).toString(16);return"\\u{"+t+"}"})}return t.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(e){var t=e.charCodeAt(0).toString(16);if(t.length<=2&&!n){while(t.length<2)t="0"+t;return"\\x"+t}else{while(t.length<4)t="0"+t;return"\\u"+t}})}:function(e){return e.replace(/[\ud800-\udbff][\udc00-\udfff]|([\ud800-\udbff]|[\udc00-\udfff])/g,function(e,t){if(t){return"\\u"+t.charCodeAt(0).toString(16)}return e})};function make_string(t,n){var i=0,r=0;t=t.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(n,a){switch(n){case'"':++i;return'"';case"'":++r;return"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return e.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-9]/.test(get_full_char(t,a+1))?"\\x00":"\\0"}return n});function quote_single(){return"'"+t.replace(/\x27/g,"\\'")+"'"}function quote_double(){return'"'+t.replace(/\x22/g,'\\"')+'"'}function quote_template(){return"`"+t.replace(/`/g,"\\`")+"`"}t=l(t);if(n==="`")return quote_template();switch(e.quote_style){case 1:return quote_single();case 2:return quote_double();case 3:return n=="'"?quote_single():quote_double();default:return i>r?quote_single():quote_double()}}function encode_string(t,n){var i=make_string(t,n);if(e.inline_script){i=i.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"<\\/$1$2");i=i.replace(/\x3c!--/g,"\\x3c!--");i=i.replace(/--\x3e/g,"--\\x3e")}return i}function make_name(e){e=e.toString();e=l(e,true);return e}function make_indent(t){return" ".repeat(e.indent_start+r-t*e.indent_level)}var f=false;var p=false;var _=false;var h=0;var d=false;var m=false;var E=-1;var g="";var v,D,b=e.source_map&&[];var y=b?function(){b.forEach(function(t){try{e.source_map.add(t.token.file,t.line,t.col,t.token.line,t.token.col,!t.name&&t.token.type=="name"?t.token.value:t.name)}catch(e){}});b=[]}:noop;var k=e.max_line_len?function(){if(a>e.max_line_len){if(h){var t=u.slice(0,h);var n=u.slice(h);if(b){var i=n.length-a;b.forEach(function(e){e.line++;e.col+=i})}u=t+"\n"+n;o++;s++;a=n.length}}if(h){h=0;y()}}:noop;var S=makePredicate("( [ + * / - , . `");function print(t){t=String(t);var n=get_full_char(t,0);if(d&&n){d=false;if(n!=="\n"){print("\n");C()}}if(m&&n){m=false;if(!/[\s;})]/.test(n)){T()}}E=-1;var i=g.charAt(g.length-1);if(_){_=false;if(i===":"&&n==="}"||(!n||!";}".includes(n))&&i!==";"){if(e.semicolons||S.has(n)){u+=";";a++;s++}else{k();if(a>0){u+="\n";s++;o++;a=0}if(/^\s+$/.test(t)){_=true}}if(!e.beautify)p=false}}if(p){if(is_identifier_char(i)&&(is_identifier_char(n)||n=="\\")||n=="/"&&n==i||(n=="+"||n=="-")&&n==g){u+=" ";a++;s++}p=false}if(v){b.push({token:v,name:D,line:o,col:a});v=false;if(!h)y()}u+=t;f=t[t.length-1]=="(";s+=t.length;var r=t.split(/\r?\n/),c=r.length-1;o+=c;a+=r[0].length;if(c>0){k();a=r[c].length}g=t}var A=function(){print("*")};var T=e.beautify?function(){print(" ")}:function(){p=true};var C=e.beautify?function(t){if(e.beautify){print(make_indent(t?.5:0))}}:noop;var x=e.beautify?function(e,t){if(e===true)e=next_indent();var n=r;r=e;var i=t();r=n;return i}:function(e,t){return t()};var O=e.beautify?function(){if(E<0)return print("\n");if(u[E]!="\n"){u=u.slice(0,E)+"\n"+u.slice(E);s++;o++}E++}:e.max_line_len?function(){k();h=u.length}:noop;var F=e.beautify?function(){print(";")}:function(){_=true};function force_semicolon(){_=false;print(";")}function next_indent(){return r+e.indent_level}function with_block(e){var t;print("{");O();x(next_indent(),function(){t=e()});C();print("}");return t}function with_parens(e){print("(");var t=e();print(")");return t}function with_square(e){print("[");var t=e();print("]");return t}function comma(){print(",");T()}function colon(){print(":");T()}var w=b?function(e,t){v=e;D=t}:noop;function get(){if(h){k()}return u}function has_nlb(){let e=u.length-1;while(e>=0){const t=u.charCodeAt(e);if(t===Yt){return true}if(t!==$t){return false}e--}return true}function filter_comment(t){if(!e.preserve_annotations){t=t.replace(jt," ")}if(/^\s*$/.test(t)){return""}return t.replace(/(<\s*\/\s*)(script)/i,"<\\/$2")}function prepend_comments(t){var i=this;var r=t.start;if(!r)return;var a=i.printed_comments;const o=t instanceof ce&&t.value;if(r.comments_before&&a.has(r.comments_before)){if(o){r.comments_before=[]}else{return}}var u=r.comments_before;if(!u){u=r.comments_before=[]}a.add(u);if(o){var c=new TreeWalker(function(e){var t=c.parent();if(t instanceof ce||t instanceof Ge&&t.left===e||t.TYPE=="Call"&&t.expression===e||t instanceof He&&t.condition===e||t instanceof Le&&t.expression===e||t instanceof Pe&&t.expressions[0]===e||t instanceof Be&&t.expression===e||t instanceof ze){if(!e.start)return;var n=e.start.comments_before;if(n&&!a.has(n)){a.add(n);u=u.concat(n)}}else{return true}});c.push(t);t.value.walk(c)}if(s==0){if(u.length>0&&e.shebang&&u[0].type==="comment5"&&!a.has(u[0])){print("#!"+u.shift().value+"\n");C()}var l=e.preamble;if(l){print(l.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}}u=u.filter(n,t).filter(e=>!a.has(e));if(u.length==0)return;var f=has_nlb();u.forEach(function(e,t){a.add(e);if(!f){if(e.nlb){print("\n");C();f=true}else if(t>0){T()}}if(/comment[134]/.test(e.type)){var n=filter_comment(e.value);if(n){print("//"+n+"\n");C()}f=true}else if(e.type=="comment2"){var n=filter_comment(e.value);if(n){print("/*"+n+"*/")}f=false}});if(!f){if(r.nlb){print("\n");C()}else{T()}}}function append_comments(e,t){var i=this;var r=e.end;if(!r)return;var a=i.printed_comments;var o=r[t?"comments_before":"comments_after"];if(!o||a.has(o))return;if(!(e instanceof M||o.every(e=>!/comment[134]/.test(e.type))))return;a.add(o);var s=u.length;o.filter(n,e).forEach(function(e,n){if(a.has(e))return;a.add(e);m=false;if(d){print("\n");C();d=false}else if(e.nlb&&(n>0||!has_nlb())){print("\n");C()}else if(n>0||!t){T()}if(/comment[134]/.test(e.type)){const t=filter_comment(e.value);if(t){print("//"+t)}d=true}else if(e.type=="comment2"){const t=filter_comment(e.value);if(t){print("/*"+t+"*/")}m=true}});if(u.length>s)E=s}var R=[];return{get:get,toString:get,indent:C,in_directive:false,use_asm:null,active_scope:null,indentation:function(){return r},current_width:function(){return a-r},should_break:function(){return e.width&&this.current_width()>=e.width},has_parens:function(){return f},newline:O,print:print,star:A,space:T,comma:comma,colon:colon,last:function(){return g},semicolon:F,force_semicolon:force_semicolon,to_utf8:l,print_name:function(e){print(make_name(e))},print_string:function(e,t,n){var i=encode_string(e,t);if(n===true&&!i.includes("\\")){if(!Wt.test(u)){force_semicolon()}force_semicolon()}print(i)},print_template_string_chars:function(e){var t=encode_string(e,"`").replace(/\${/g,"\\${");return print(t.substr(1,t.length-2))},encode_string:encode_string,next_indent:next_indent,with_indent:x,with_block:with_block,with_parens:with_parens,with_square:with_square,add_mapping:w,option:function(t){return e[t]},printed_comments:c,prepend_comments:t?noop:prepend_comments,append_comments:t||n===return_false?noop:append_comments,line:function(){return o},col:function(){return a},pos:function(){return s},push_node:function(e){R.push(e)},pop_node:function(){return R.pop()},parent:function(e){return R[R.length-2-(e||0)]}}}(function(){function DEFPRINT(e,t){e.DEFMETHOD("_codegen",t)}R.DEFMETHOD("print",function(e,t){var n=this,i=n._codegen;if(n instanceof j){e.active_scope=n}else if(!e.use_asm&&n instanceof I&&n.value=="use asm"){e.use_asm=e.active_scope}function doit(){e.prepend_comments(n);n.add_source_map(e);i(n,e);e.append_comments(n)}e.push_node(n);if(t||n.needs_parens(e)){e.with_parens(doit)}else{doit()}e.pop_node();if(n===e.use_asm){e.use_asm=null}});R.DEFMETHOD("_print",R.prototype.print);R.DEFMETHOD("print_to_string",function(e){var t=OutputStream(e);this.print(t);return t.get()});function PARENS(e,t){if(Array.isArray(e)){e.forEach(function(e){PARENS(e,t)})}else{e.DEFMETHOD("needs_parens",t)}}PARENS(R,return_false);PARENS(te,function(e){if(!e.has_parens()&&first_in_statement(e)){return true}if(e.option("webkit")){var t=e.parent();if(t instanceof Ve&&t.expression===this){return true}}if(e.option("wrap_iife")){var t=e.parent();if(t instanceof Ne&&t.expression===this){return true}}if(e.option("wrap_func_args")){var t=e.parent();if(t instanceof Ne&&t.args.includes(this)){return true}}return false});PARENS(ne,function(e){var t=e.parent();return t instanceof Ve&&t.expression===this});PARENS(Ye,function(e){return!e.has_parens()&&first_in_statement(e)});PARENS(it,first_in_statement);PARENS(Ue,function(e){var t=e.parent();return t instanceof Ve&&t.expression===this||t instanceof Ne&&t.expression===this||t instanceof Ge&&t.operator==="**"&&this instanceof Ke&&t.left===this&&this.operator!=="++"&&this.operator!=="--"});PARENS(de,function(e){var t=e.parent();return t instanceof Ve&&t.expression===this||t instanceof Ne&&t.expression===this||e.option("safari10")&&t instanceof Ke});PARENS(Pe,function(e){var t=e.parent();return t instanceof Ne||t instanceof Ue||t instanceof Ge||t instanceof Oe||t instanceof Ve||t instanceof We||t instanceof $e||t instanceof He||t instanceof ne||t instanceof qe||t instanceof Q||t instanceof Y&&this===t.object||t instanceof me||t instanceof Me});PARENS(Ge,function(e){var t=e.parent();if(t instanceof Ne&&t.expression===this)return true;if(t instanceof Ue)return true;if(t instanceof Ve&&t.expression===this)return true;if(t instanceof Ge){const e=t.operator;const n=this.operator;if(n==="??"&&(e==="||"||e==="&&")){return true}const i=O[e];const r=O[n];if(i>r||i==r&&(this===t.right||e=="**")){return true}}});PARENS(me,function(e){var t=e.parent();if(t instanceof Ge&&t.operator!=="=")return true;if(t instanceof Ne&&t.expression===this)return true;if(t instanceof He&&t.condition===this)return true;if(t instanceof Ue)return true;if(t instanceof Ve&&t.expression===this)return true});PARENS(Ve,function(e){var t=e.parent();if(t instanceof Ie&&t.expression===this){return walk(this,e=>{if(e instanceof j)return true;if(e instanceof Ne){return zt}})}});PARENS(Ne,function(e){var t=e.parent(),n;if(t instanceof Ie&&t.expression===this||t instanceof Me&&t.is_default&&this.expression instanceof te)return true;return this.expression instanceof te&&t instanceof Ve&&t.expression===this&&(n=e.parent(1))instanceof Xe&&n.left===t});PARENS(Ie,function(e){var t=e.parent();if(this.args.length===0&&(t instanceof Ve||t instanceof Ne&&t.expression===this))return true});PARENS(Ft,function(e){var t=e.parent();if(t instanceof Ve&&t.expression===this){var n=this.getValue();if(n<0||/^0/.test(make_num(n))){return true}}});PARENS(wt,function(e){var t=e.parent();if(t instanceof Ve&&t.expression===this){var n=this.getValue();if(n.startsWith("-")){return true}}});PARENS([Xe,He],function(e){var t=e.parent();if(t instanceof Ue)return true;if(t instanceof Ge&&!(t instanceof Xe))return true;if(t instanceof Ne&&t.expression===this)return true;if(t instanceof He&&t.condition===this)return true;if(t instanceof Ve&&t.expression===this)return true;if(this instanceof Xe&&this.left instanceof re&&this.left.is_array===false)return true});DEFPRINT(I,function(e,t){t.print_string(e.value,e.quote);t.semicolon()});DEFPRINT(Q,function(e,t){t.print("...");e.expression.print(t)});DEFPRINT(re,function(e,t){t.print(e.is_array?"[":"{");var n=e.names.length;e.names.forEach(function(e,i){if(i>0)t.comma();e.print(t);if(i==n-1&&e instanceof Vt)t.comma()});t.print(e.is_array?"]":"}")});DEFPRINT(N,function(e,t){t.print("debugger");t.semicolon()});function display_body(e,t,n,i){var r=e.length-1;n.in_directive=i;e.forEach(function(e,i){if(n.in_directive===true&&!(e instanceof I||e instanceof B||e instanceof P&&e.body instanceof Ot)){n.in_directive=false}if(!(e instanceof B)){n.indent();e.print(n);if(!(i==r&&t)){n.newline();if(t)n.newline()}}if(n.in_directive===true&&e instanceof P&&e.body instanceof Ot){n.in_directive=false}});n.in_directive=false}U.DEFMETHOD("_do_print_body",function(e){force_statement(this.body,e)});DEFPRINT(M,function(e,t){e.body.print(t);t.semicolon()});DEFPRINT(Z,function(e,t){display_body(e.body,true,t,true);t.print("")});DEFPRINT(K,function(e,t){e.label.print(t);t.colon();e.body.print(t)});DEFPRINT(P,function(e,t){e.body.print(t);t.semicolon()});function print_braced_empty(e,t){t.print("{");t.with_indent(t.next_indent(),function(){t.append_comments(e,true)});t.print("}")}function print_braced(e,t,n){if(e.body.length>0){t.with_block(function(){display_body(e.body,false,t,n)})}else print_braced_empty(e,t)}DEFPRINT(L,function(e,t){print_braced(e,t)});DEFPRINT(B,function(e,t){t.semicolon()});DEFPRINT(H,function(e,t){t.print("do");t.space();make_block(e.body,t);t.space();t.print("while");t.space();t.with_parens(function(){e.condition.print(t)});t.semicolon()});DEFPRINT(X,function(e,t){t.print("while");t.space();t.with_parens(function(){e.condition.print(t)});t.space();e._do_print_body(t)});DEFPRINT(q,function(e,t){t.print("for");t.space();t.with_parens(function(){if(e.init){if(e.init instanceof Ae){e.init.print(t)}else{parenthesize_for_noin(e.init,t,true)}t.print(";");t.space()}else{t.print(";")}if(e.condition){e.condition.print(t);t.print(";");t.space()}else{t.print(";")}if(e.step){e.step.print(t)}});t.space();e._do_print_body(t)});DEFPRINT(W,function(e,t){t.print("for");if(e.await){t.space();t.print("await")}t.space();t.with_parens(function(){e.init.print(t);t.space();t.print(e instanceof Y?"of":"in");t.space();e.object.print(t)});t.space();e._do_print_body(t)});DEFPRINT($,function(e,t){t.print("with");t.space();t.with_parens(function(){e.expression.print(t)});t.space();e._do_print_body(t)});J.DEFMETHOD("_do_print",function(e,t){var n=this;if(!t){if(n.async){e.print("async");e.space()}e.print("function");if(n.is_generator){e.star()}if(n.name){e.space()}}if(n.name instanceof rt){n.name.print(e)}else if(t&&n.name instanceof R){e.with_square(function(){n.name.print(e)})}e.with_parens(function(){n.argnames.forEach(function(t,n){if(n)e.comma();t.print(e)})});e.space();print_braced(n,e,true)});DEFPRINT(J,function(e,t){e._do_print(t)});DEFPRINT(ae,function(e,t){var n=e.prefix;var i=n instanceof J||n instanceof Ge||n instanceof He||n instanceof Pe||n instanceof Ue||n instanceof Le&&n.expression instanceof Ye;if(i)t.print("(");e.prefix.print(t);if(i)t.print(")");e.template_string.print(t)});DEFPRINT(oe,function(e,t){var n=t.parent()instanceof ae;t.print("`");for(var i=0;i");e.space();const r=t.body[0];if(t.body.length===1&&r instanceof le){const t=r.value;if(!t){e.print("{}")}else if(left_is_object(t)){e.print("(");t.print(e);e.print(")")}else{t.print(e)}}else{print_braced(t,e)}if(i){e.print(")")}});ce.DEFMETHOD("_do_print",function(e,t){e.print(t);if(this.value){e.space();const t=this.value.start.comments_before;if(t&&t.length&&!e.printed_comments.has(t)){e.print("(");this.value.print(e);e.print(")")}else{this.value.print(e)}}e.semicolon()});DEFPRINT(le,function(e,t){e._do_print(t,"return")});DEFPRINT(fe,function(e,t){e._do_print(t,"throw")});DEFPRINT(me,function(e,t){var n=e.is_star?"*":"";t.print("yield"+n);if(e.expression){t.space();e.expression.print(t)}});DEFPRINT(de,function(e,t){t.print("await");t.space();var n=e.expression;var i=!(n instanceof Ne||n instanceof yt||n instanceof Ve||n instanceof Ue||n instanceof xt);if(i)t.print("(");e.expression.print(t);if(i)t.print(")")});pe.DEFMETHOD("_do_print",function(e,t){e.print(t);if(this.label){e.space();this.label.print(e)}e.semicolon()});DEFPRINT(_e,function(e,t){e._do_print(t,"break")});DEFPRINT(he,function(e,t){e._do_print(t,"continue")});function make_then(e,t){var n=e.body;if(t.option("braces")||t.option("ie8")&&n instanceof H)return make_block(n,t);if(!n)return t.force_semicolon();while(true){if(n instanceof Ee){if(!n.alternative){make_block(e.body,t);return}n=n.alternative}else if(n instanceof U){n=n.body}else break}force_statement(e.body,t)}DEFPRINT(Ee,function(e,t){t.print("if");t.space();t.with_parens(function(){e.condition.print(t)});t.space();if(e.alternative){make_then(e,t);t.space();t.print("else");t.space();if(e.alternative instanceof Ee)e.alternative.print(t);else force_statement(e.alternative,t)}else{e._do_print_body(t)}});DEFPRINT(ge,function(e,t){t.print("switch");t.space();t.with_parens(function(){e.expression.print(t)});t.space();var n=e.body.length-1;if(n<0)print_braced_empty(e,t);else t.with_block(function(){e.body.forEach(function(e,i){t.indent(true);e.print(t);if(i0)t.newline()})})});ve.DEFMETHOD("_do_print_body",function(e){e.newline();this.body.forEach(function(t){e.indent();t.print(e);e.newline()})});DEFPRINT(De,function(e,t){t.print("default:");e._do_print_body(t)});DEFPRINT(be,function(e,t){t.print("case");t.space();e.expression.print(t);t.print(":");e._do_print_body(t)});DEFPRINT(ye,function(e,t){t.print("try");t.space();print_braced(e,t);if(e.bcatch){t.space();e.bcatch.print(t)}if(e.bfinally){t.space();e.bfinally.print(t)}});DEFPRINT(ke,function(e,t){t.print("catch");if(e.argname){t.space();t.with_parens(function(){e.argname.print(t)})}t.space();print_braced(e,t)});DEFPRINT(Se,function(e,t){t.print("finally");t.space();print_braced(e,t)});Ae.DEFMETHOD("_do_print",function(e,t){e.print(t);e.space();this.definitions.forEach(function(t,n){if(n)e.comma();t.print(e)});var n=e.parent();var i=n instanceof q||n instanceof W;var r=!i||n&&n.init!==this;if(r)e.semicolon()});DEFPRINT(Ce,function(e,t){e._do_print(t,"let")});DEFPRINT(Te,function(e,t){e._do_print(t,"var")});DEFPRINT(xe,function(e,t){e._do_print(t,"const")});DEFPRINT(we,function(e,t){t.print("import");t.space();if(e.imported_name){e.imported_name.print(t)}if(e.imported_name&&e.imported_names){t.print(",");t.space()}if(e.imported_names){if(e.imported_names.length===1&&e.imported_names[0].foreign_name.name==="*"){e.imported_names[0].print(t)}else{t.print("{");e.imported_names.forEach(function(n,i){t.space();n.print(t);if(i{if(e instanceof j)return true;if(e instanceof Ge&&e.operator=="in"){return zt}})}e.print(t,i)}DEFPRINT(Oe,function(e,t){e.name.print(t);if(e.value){t.space();t.print("=");t.space();var n=t.parent(1);var i=n instanceof q||n instanceof W;parenthesize_for_noin(e.value,t,i)}});DEFPRINT(Ne,function(e,t){e.expression.print(t);if(e instanceof Ie&&e.args.length===0)return;if(e.expression instanceof Ne||e.expression instanceof J){t.add_mapping(e.start)}t.with_parens(function(){e.args.forEach(function(e,n){if(n)t.comma();e.print(t)})})});DEFPRINT(Ie,function(e,t){t.print("new");t.space();Ne.prototype._codegen(e,t)});Pe.DEFMETHOD("_do_print",function(e){this.expressions.forEach(function(t,n){if(n>0){e.comma();if(e.should_break()){e.newline();e.indent()}}t.print(e)})});DEFPRINT(Pe,function(e,t){e._do_print(t)});DEFPRINT(Le,function(e,t){var n=e.expression;n.print(t);var i=e.property;var r=u.has(i)?t.option("ie8"):!is_identifier_string(i,t.option("ecma")>=2015);if(r){t.print("[");t.add_mapping(e.end);t.print_string(i);t.print("]")}else{if(n instanceof Ft&&n.getValue()>=0){if(!/[xa-f.)]/i.test(t.last())){t.print(".")}}t.print(".");t.add_mapping(e.end);t.print_name(i)}});DEFPRINT(Be,function(e,t){e.expression.print(t);t.print("[");e.property.print(t);t.print("]")});DEFPRINT(Ke,function(e,t){var n=e.operator;t.print(n);if(/^[a-z]/i.test(n)||/[+-]$/.test(n)&&e.expression instanceof Ke&&/^[+-]/.test(e.expression.operator)){t.space()}e.expression.print(t)});DEFPRINT(ze,function(e,t){e.expression.print(t);t.print(e.operator)});DEFPRINT(Ge,function(e,t){var n=e.operator;e.left.print(t);if(n[0]==">"&&e.left instanceof ze&&e.left.operator=="--"){t.print(" ")}else{t.space()}t.print(n);if((n=="<"||n=="<<")&&e.right instanceof Ke&&e.right.operator=="!"&&e.right.expression instanceof Ke&&e.right.expression.operator=="--"){t.print(" ")}else{t.space()}e.right.print(t)});DEFPRINT(He,function(e,t){e.condition.print(t);t.space();t.print("?");t.space();e.consequent.print(t);t.space();t.colon();e.alternative.print(t)});DEFPRINT(We,function(e,t){t.with_square(function(){var n=e.elements,i=n.length;if(i>0)t.space();n.forEach(function(e,n){if(n)t.comma();e.print(t);if(n===i-1&&e instanceof Vt)t.comma()});if(i>0)t.space()})});DEFPRINT(Ye,function(e,t){if(e.properties.length>0)t.with_block(function(){e.properties.forEach(function(e,n){if(n){t.print(",");t.newline()}t.indent();e.print(t)});t.newline()});else print_braced_empty(e,t)});DEFPRINT(et,function(e,t){t.print("class");t.space();if(e.name){e.name.print(t);t.space()}if(e.extends){var n=!(e.extends instanceof yt)&&!(e.extends instanceof Ve)&&!(e.extends instanceof it)&&!(e.extends instanceof te);t.print("extends");if(n){t.print("(")}else{t.space()}e.extends.print(t);if(n){t.print(")")}else{t.space()}}if(e.properties.length>0)t.with_block(function(){e.properties.forEach(function(e,n){if(n){t.newline()}t.indent();e.print(t)});t.newline()});else t.print("{}")});DEFPRINT(at,function(e,t){t.print("new.target")});function print_property_name(e,t,n){if(n.option("quote_keys")){return n.print_string(e)}if(""+ +e==e&&e>=0){if(n.option("keep_numbers")){return n.print(e)}return n.print(make_num(e))}var i=u.has(e)?n.option("ie8"):n.option("ecma")<2015?!is_basic_identifier_string(e):!is_identifier_string(e,true);if(i||t&&n.option("keep_quoted_props")){return n.print_string(e,t)}return n.print_name(e)}DEFPRINT(je,function(e,t){function get_name(e){var t=e.definition();return t?t.mangled_name||t.name:e.name}var n=t.option("shorthand");if(n&&e.value instanceof rt&&is_identifier_string(e.key,t.option("ecma")>=2015)&&get_name(e.value)===e.key&&!u.has(e.key)){print_property_name(e.key,e.quote,t)}else if(n&&e.value instanceof qe&&e.value.left instanceof rt&&is_identifier_string(e.key,t.option("ecma")>=2015)&&get_name(e.value.left)===e.key){print_property_name(e.key,e.quote,t);t.space();t.print("=");t.space();e.value.right.print(t)}else{if(!(e.key instanceof R)){print_property_name(e.key,e.quote,t)}else{t.with_square(function(){e.key.print(t)})}t.colon();e.value.print(t)}});DEFPRINT(tt,(e,t)=>{if(e.static){t.print("static");t.space()}if(e.key instanceof ht){print_property_name(e.key.name,e.quote,t)}else{t.print("[");e.key.print(t);t.print("]")}if(e.value){t.print("=");e.value.print(t)}t.semicolon()});$e.DEFMETHOD("_print_getter_setter",function(e,t){var n=this;if(n.static){t.print("static");t.space()}if(e){t.print(e);t.space()}if(n.key instanceof _t){print_property_name(n.key.name,n.quote,t)}else{t.with_square(function(){n.key.print(t)})}n.value._do_print(t,true)});DEFPRINT(Ze,function(e,t){e._print_getter_setter("set",t)});DEFPRINT(Qe,function(e,t){e._print_getter_setter("get",t)});DEFPRINT(Je,function(e,t){var n;if(e.is_generator&&e.async){n="async*"}else if(e.is_generator){n="*"}else if(e.async){n="async"}e._print_getter_setter(n,t)});rt.DEFMETHOD("_do_print",function(e){var t=this.definition();e.print_name(t?t.mangled_name||t.name:this.name)});DEFPRINT(rt,function(e,t){e._do_print(t)});DEFPRINT(Vt,noop);DEFPRINT(Tt,function(e,t){t.print("this")});DEFPRINT(Ct,function(e,t){t.print("super")});DEFPRINT(xt,function(e,t){t.print(e.getValue())});DEFPRINT(Ot,function(e,t){t.print_string(e.getValue(),e.quote,t.in_directive)});DEFPRINT(Ft,function(e,t){if((t.option("keep_numbers")||t.use_asm)&&e.start&&e.start.raw!=null){t.print(e.start.raw)}else{t.print(make_num(e.getValue()))}});DEFPRINT(wt,function(e,t){t.print(e.getValue()+"n")});const e=/(<\s*\/\s*script)/i;const t=(e,t)=>t.replace("/","\\/");DEFPRINT(Rt,function(n,i){let{source:r,flags:a}=n.getValue();r=regexp_source_fix(r);a=a?sort_regexp_flags(a):"";r=r.replace(e,t);i.print(i.to_utf8(`/${r}/${a}`));const o=i.parent();if(o instanceof Ge&&/^\w/.test(o.operator)&&o.left===n){i.print(" ")}});function force_statement(e,t){if(t.option("braces")){make_block(e,t)}else{if(!e||e instanceof B)t.force_semicolon();else e.print(t)}}function best_of(e){var t=e[0],n=t.length;for(var i=1;i{return e===null&&t===null||e.TYPE===t.TYPE&&e.shallow_cmp(t)};const Qt=(e,t)=>{if(!Zt(e,t))return false;const n=[e];const i=[t];const r=n.push.bind(n);const a=i.push.bind(i);while(n.length&&i.length){const e=n.pop();const t=i.pop();if(!Zt(e,t))return false;e._children_backwards(r);t._children_backwards(a);if(n.length!==i.length){return false}}return n.length==0&&i.length==0};const Jt=e=>{const t=Object.keys(e).map(t=>{if(e[t]==="eq"){return`this.${t} === other.${t}`}else if(e[t]==="exist"){return`(this.${t} == null ? other.${t} == null : this.${t} === other.${t})`}else{throw new Error(`mkshallow: Unexpected instruction: ${e[t]}`)}}).join(" && ");return new Function("other","return "+t)};const en=()=>true;R.prototype.shallow_cmp=function(){throw new Error("did not find a shallow_cmp function for "+this.constructor.name)};N.prototype.shallow_cmp=en;I.prototype.shallow_cmp=Jt({value:"eq"});P.prototype.shallow_cmp=en;V.prototype.shallow_cmp=en;B.prototype.shallow_cmp=en;K.prototype.shallow_cmp=Jt({"label.name":"eq"});H.prototype.shallow_cmp=en;X.prototype.shallow_cmp=en;q.prototype.shallow_cmp=Jt({init:"exist",condition:"exist",step:"exist"});W.prototype.shallow_cmp=en;Y.prototype.shallow_cmp=en;$.prototype.shallow_cmp=en;Z.prototype.shallow_cmp=en;Q.prototype.shallow_cmp=en;J.prototype.shallow_cmp=Jt({is_generator:"eq",async:"eq"});re.prototype.shallow_cmp=Jt({is_array:"eq"});ae.prototype.shallow_cmp=en;oe.prototype.shallow_cmp=en;se.prototype.shallow_cmp=Jt({value:"eq"});ue.prototype.shallow_cmp=en;pe.prototype.shallow_cmp=en;de.prototype.shallow_cmp=en;me.prototype.shallow_cmp=Jt({is_star:"eq"});Ee.prototype.shallow_cmp=Jt({alternative:"exist"});ge.prototype.shallow_cmp=en;ve.prototype.shallow_cmp=en;ye.prototype.shallow_cmp=Jt({bcatch:"exist",bfinally:"exist"});ke.prototype.shallow_cmp=Jt({argname:"exist"});Se.prototype.shallow_cmp=en;Ae.prototype.shallow_cmp=en;Oe.prototype.shallow_cmp=Jt({value:"exist"});Fe.prototype.shallow_cmp=en;we.prototype.shallow_cmp=Jt({imported_name:"exist",imported_names:"exist"});Re.prototype.shallow_cmp=en;Me.prototype.shallow_cmp=Jt({exported_definition:"exist",exported_value:"exist",exported_names:"exist",module_name:"eq",is_default:"eq"});Ne.prototype.shallow_cmp=en;Pe.prototype.shallow_cmp=en;Ve.prototype.shallow_cmp=en;Le.prototype.shallow_cmp=Jt({property:"eq"});Ue.prototype.shallow_cmp=Jt({operator:"eq"});Ge.prototype.shallow_cmp=Jt({operator:"eq"});He.prototype.shallow_cmp=en;We.prototype.shallow_cmp=en;Ye.prototype.shallow_cmp=en;$e.prototype.shallow_cmp=en;je.prototype.shallow_cmp=Jt({key:"eq"});Ze.prototype.shallow_cmp=Jt({static:"eq"});Qe.prototype.shallow_cmp=Jt({static:"eq"});Je.prototype.shallow_cmp=Jt({static:"eq",is_generator:"eq",async:"eq"});et.prototype.shallow_cmp=Jt({name:"exist",extends:"exist"});tt.prototype.shallow_cmp=Jt({static:"eq"});rt.prototype.shallow_cmp=Jt({name:"eq"});at.prototype.shallow_cmp=en;Tt.prototype.shallow_cmp=en;Ct.prototype.shallow_cmp=en;Ot.prototype.shallow_cmp=Jt({value:"eq"});Ft.prototype.shallow_cmp=Jt({value:"eq"});wt.prototype.shallow_cmp=Jt({value:"eq"});Rt.prototype.shallow_cmp=function(e){return this.value.flags===e.value.flags&&this.value.source===e.value.source};Mt.prototype.shallow_cmp=en;const tn=1<<0;const nn=1<<1;let rn=null;let an=null;class SymbolDef{constructor(e,t,n){this.name=t.name;this.orig=[t];this.init=n;this.eliminated=0;this.assignments=0;this.scope=e;this.replaced=0;this.global=false;this.export=0;this.mangled_name=null;this.undeclared=false;this.id=SymbolDef.next_id++;this.chained=false;this.direct_access=false;this.escaped=0;this.recursive_refs=0;this.references=[];this.should_replace=undefined;this.single_use=false;this.fixed=false;Object.seal(this)}fixed_value(){if(!this.fixed||this.fixed instanceof R)return this.fixed;return this.fixed()}unmangleable(e){if(!e)e={};if(rn&&rn.has(this.id)&&keep_name(e.keep_fnames,this.orig[0].name))return true;return this.global&&!e.toplevel||this.export&tn||this.undeclared||!e.eval&&this.scope.pinned()||(this.orig[0]instanceof dt||this.orig[0]instanceof pt)&&keep_name(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof _t||(this.orig[0]instanceof Et||this.orig[0]instanceof mt)&&keep_name(e.keep_classnames,this.orig[0].name)}mangle(e){const t=e.cache&&e.cache.props;if(this.global&&t&&t.has(this.name)){this.mangled_name=t.get(this.name)}else if(!this.mangled_name&&!this.unmangleable(e)){var n=this.scope;var i=this.orig[0];if(e.ie8&&i instanceof dt)n=n.parent_scope;const r=redefined_catch_def(this);this.mangled_name=r?r.mangled_name||r.name:n.next_mangled(e,this);if(this.global&&t){t.set(this.name,this.mangled_name)}}}}SymbolDef.next_id=1;function redefined_catch_def(e){if(e.orig[0]instanceof gt&&e.scope.is_block_scope()){return e.scope.get_defun_scope().variables.get(e.name)}}j.DEFMETHOD("figure_out_scope",function(e,{parent_scope:t=null,toplevel:n=this}={}){e=defaults(e,{cache:null,ie8:false,safari10:false});if(!(n instanceof Z)){throw new Error("Invalid toplevel scope")}var i=this.parent_scope=t;var r=new Map;var a=null;var o=null;var s=[];var u=new TreeWalker((t,n)=>{if(t.is_block_scope()){const r=i;t.block_scope=i=new j(t);i._block_scope=true;const a=t instanceof ke?r.parent_scope:r;i.init_scope_vars(a);i.uses_with=r.uses_with;i.uses_eval=r.uses_eval;if(e.safari10){if(t instanceof q||t instanceof W){s.push(i)}}if(t instanceof ge){const e=i;i=r;t.expression.walk(u);i=e;for(let e=0;e{if(e===t)return true;if(t instanceof ut){return e instanceof dt}return!(e instanceof lt||e instanceof ct)})){js_error(`"${t.name}" is redeclared`,t.start.file,t.start.line,t.start.col,t.start.pos)}if(!(t instanceof ft))mark_export(h,2);if(a!==i){t.mark_enclosed();var h=i.find_variable(t);if(t.thedef!==h){t.thedef=h;t.reference()}}}else if(t instanceof At){var d=r.get(t.name);if(!d)throw new Error(string_template("Undefined label {name} [{line},{col}]",{name:t.name,line:t.start.line,col:t.start.col}));t.thedef=d}if(!(i instanceof Z)&&(t instanceof Me||t instanceof we)){js_error(`"${t.TYPE}" statement may only appear at the top level`,t.start.file,t.start.line,t.start.col,t.start.pos)}});this.walk(u);function mark_export(e,t){if(o){var n=0;do{t++}while(u.parent(n++)!==o)}var i=u.parent(t);if(e.export=i instanceof Me?tn:0){var r=i.exported_definition;if((r instanceof ie||r instanceof nt)&&i.is_default){e.export=nn}}}const c=this instanceof Z;if(c){this.globals=new Map}var u=new TreeWalker(e=>{if(e instanceof pe&&e.label){e.label.thedef.references.push(e);return true}if(e instanceof yt){var t=e.name;if(t=="eval"&&u.parent()instanceof Ne){for(var i=e.scope;i&&!i.uses_eval;i=i.parent_scope){i.uses_eval=true}}var r;if(u.parent()instanceof Fe&&u.parent(1).module_name||!(r=e.scope.find_variable(t))){r=n.def_global(e);if(e instanceof kt)r.export=tn}else if(r.scope instanceof J&&t=="arguments"){r.scope.uses_arguments=true}e.thedef=r;e.reference();if(e.scope.is_block_scope()&&!(r.orig[0]instanceof ut)){e.scope=e.scope.get_defun_scope()}return true}var a;if(e instanceof gt&&(a=redefined_catch_def(e.definition()))){var i=e.scope;while(i){push_uniq(i.enclosed,a);if(i===a.scope)break;i=i.parent_scope}}});this.walk(u);if(e.ie8||e.safari10){walk(this,e=>{if(e instanceof gt){var t=e.name;var i=e.thedef.references;var r=e.scope.get_defun_scope();var a=r.find_variable(t)||n.globals.get(t)||r.def_variable(e);i.forEach(function(e){e.thedef=a;e.reference()});e.thedef=a;e.reference();return true}})}if(e.safari10){for(const e of s){e.parent_scope.variables.forEach(function(t){push_uniq(e.enclosed,t)})}}});Z.DEFMETHOD("def_global",function(e){var t=this.globals,n=e.name;if(t.has(n)){return t.get(n)}else{var i=new SymbolDef(this,e);i.undeclared=true;i.global=true;t.set(n,i);return i}});j.DEFMETHOD("init_scope_vars",function(e){this.variables=new Map;this.functions=new Map;this.uses_with=false;this.uses_eval=false;this.parent_scope=e;this.enclosed=[];this.cname=-1});j.DEFMETHOD("conflicting_def",function(e){return this.enclosed.find(t=>t.name===e)||this.variables.has(e)||this.parent_scope&&this.parent_scope.conflicting_def(e)});j.DEFMETHOD("add_child_scope",function(e){if(e.parent_scope===this)return;e.parent_scope=this;const t=(()=>{const e=[];let t=this;do{e.push(t)}while(t=t.parent_scope);e.reverse();return e})();const n=new Set(e.enclosed);const i=[];for(const e of t){i.forEach(t=>push_uniq(e.enclosed,t));for(const t of e.variables.values()){if(n.has(t)){push_uniq(i,t);push_uniq(e.enclosed,t)}}}});j.DEFMETHOD("create_symbol",function(e,{source:t,tentative_name:n,scope:i,init:r=null}={}){let a;if(n){n=a=n.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/gi,"_");let e=0;while(this.conflicting_def(a)){a=n+"$"+e++}}if(!a){throw new Error("No symbol name could be generated in create_symbol()")}const o=make_node(e,t,{name:a,scope:i});this.def_variable(o,r||null);o.mark_enclosed();return o});R.DEFMETHOD("is_block_scope",return_false);et.DEFMETHOD("is_block_scope",return_false);J.DEFMETHOD("is_block_scope",return_false);Z.DEFMETHOD("is_block_scope",return_false);ve.DEFMETHOD("is_block_scope",return_false);V.DEFMETHOD("is_block_scope",return_true);j.DEFMETHOD("is_block_scope",function(){return this._block_scope||false});z.DEFMETHOD("is_block_scope",return_true);J.DEFMETHOD("init_scope_vars",function(){j.prototype.init_scope_vars.apply(this,arguments);this.uses_arguments=false;this.def_variable(new ft({name:"arguments",start:this.start,end:this.end}))});ne.DEFMETHOD("init_scope_vars",function(){j.prototype.init_scope_vars.apply(this,arguments);this.uses_arguments=false});rt.DEFMETHOD("mark_enclosed",function(){var e=this.definition();var t=this.scope;while(t){push_uniq(t.enclosed,e);if(t===e.scope)break;t=t.parent_scope}});rt.DEFMETHOD("reference",function(){this.definition().references.push(this);this.mark_enclosed()});j.DEFMETHOD("find_variable",function(e){if(e instanceof rt)e=e.name;return this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)});j.DEFMETHOD("def_function",function(e,t){var n=this.def_variable(e,t);if(!n.init||n.init instanceof ie)n.init=t;this.functions.set(e.name,n);return n});j.DEFMETHOD("def_variable",function(e,t){var n=this.variables.get(e.name);if(n){n.orig.push(e);if(n.init&&(n.scope!==e.scope||n.init instanceof te)){n.init=t}}else{n=new SymbolDef(this,e,t);this.variables.set(e.name,n);n.global=!this.parent_scope}return e.thedef=n});function next_mangled(e,t){var n=e.enclosed;e:while(true){var i=on(++e.cname);if(u.has(i))continue;if(t.reserved.has(i))continue;if(an&&an.has(i))continue e;for(let e=n.length;--e>=0;){const r=n[e];const a=r.mangled_name||r.unmangleable(t)&&r.name;if(i==a)continue e}return i}}j.DEFMETHOD("next_mangled",function(e){return next_mangled(this,e)});Z.DEFMETHOD("next_mangled",function(e){let t;const n=this.mangled_names;do{t=next_mangled(this,e)}while(n.has(t));return t});te.DEFMETHOD("next_mangled",function(e,t){var n=t.orig[0]instanceof ft&&this.name&&this.name.definition();var i=n?n.mangled_name||n.name:null;while(true){var r=next_mangled(this,e);if(!i||i!=r)return r}});rt.DEFMETHOD("unmangleable",function(e){var t=this.definition();return!t||t.unmangleable(e)});bt.DEFMETHOD("unmangleable",return_false);rt.DEFMETHOD("unreferenced",function(){return!this.definition().references.length&&!this.scope.pinned()});rt.DEFMETHOD("definition",function(){return this.thedef});rt.DEFMETHOD("global",function(){return this.thedef.global});Z.DEFMETHOD("_default_mangler_options",function(e){e=defaults(e,{eval:false,ie8:false,keep_classnames:false,keep_fnames:false,module:false,reserved:[],toplevel:false});if(e.module)e.toplevel=true;if(!Array.isArray(e.reserved)&&!(e.reserved instanceof Set)){e.reserved=[]}e.reserved=new Set(e.reserved);e.reserved.add("arguments");return e});Z.DEFMETHOD("mangle_names",function(e){e=this._default_mangler_options(e);var t=-1;var n=[];if(e.keep_fnames){rn=new Set}const i=this.mangled_names=new Set;if(e.cache){this.globals.forEach(collect);if(e.cache.props){e.cache.props.forEach(function(e){i.add(e)})}}var r=new TreeWalker(function(i,r){if(i instanceof K){var a=t;r();t=a;return true}if(i instanceof j){i.variables.forEach(collect);return}if(i.is_block_scope()){i.block_scope.variables.forEach(collect);return}if(rn&&i instanceof Oe&&i.value instanceof J&&!i.value.name&&keep_name(e.keep_fnames,i.name.name)){rn.add(i.name.definition().id);return}if(i instanceof bt){let e;do{e=on(++t)}while(u.has(e));i.mangled_name=e;return true}if(!(e.ie8||e.safari10)&&i instanceof gt){n.push(i.definition());return}});this.walk(r);if(e.keep_fnames||e.keep_classnames){an=new Set;n.forEach(t=>{if(t.name.length<6&&t.unmangleable(e)){an.add(t.name)}})}n.forEach(t=>{t.mangle(e)});rn=null;an=null;function collect(t){const i=!e.reserved.has(t.name)&&!(t.export&tn);if(i){n.push(t)}}});Z.DEFMETHOD("find_colliding_names",function(e){const t=e.cache&&e.cache.props;const n=new Set;e.reserved.forEach(to_avoid);this.globals.forEach(add_def);this.walk(new TreeWalker(function(e){if(e instanceof j)e.variables.forEach(add_def);if(e instanceof gt)add_def(e.definition())}));return n;function to_avoid(e){n.add(e)}function add_def(n){var i=n.name;if(n.global&&t&&t.has(i))i=t.get(i);else if(!n.unmangleable(e))return;to_avoid(i)}});Z.DEFMETHOD("expand_names",function(e){on.reset();on.sort();e=this._default_mangler_options(e);var t=this.find_colliding_names(e);var n=0;this.globals.forEach(rename);this.walk(new TreeWalker(function(e){if(e instanceof j)e.variables.forEach(rename);if(e instanceof gt)rename(e.definition())}));function next_name(){var e;do{e=on(n++)}while(t.has(e)||u.has(e));return e}function rename(t){if(t.global&&e.cache)return;if(t.unmangleable(e))return;if(e.reserved.has(t.name))return;const n=redefined_catch_def(t);const i=t.name=n?n.name:next_name();t.orig.forEach(function(e){e.name=i});t.references.forEach(function(e){e.name=i})}});R.DEFMETHOD("tail_node",return_this);Pe.DEFMETHOD("tail_node",function(){return this.expressions[this.expressions.length-1]});Z.DEFMETHOD("compute_char_frequency",function(e){e=this._default_mangler_options(e);try{R.prototype.print=function(t,n){this._print(t,n);if(this instanceof rt&&!this.unmangleable(e)){on.consider(this.name,-1)}else if(e.properties){if(this instanceof Le){on.consider(this.property,-1)}else if(this instanceof Be){skip_string(this.property)}}};on.consider(this.print_to_string(),1)}finally{R.prototype.print=R.prototype._print}on.sort();function skip_string(e){if(e instanceof Ot){on.consider(e.value,-1)}else if(e instanceof He){skip_string(e.consequent);skip_string(e.alternative)}else if(e instanceof Pe){skip_string(e.tail_node())}}});const on=(()=>{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split("");const t="0123456789".split("");let n;let i;function reset(){i=new Map;e.forEach(function(e){i.set(e,0)});t.forEach(function(e){i.set(e,0)})}base54.consider=function(e,t){for(var n=e.length;--n>=0;){i.set(e[n],i.get(e[n])+t)}};function compare(e,t){return i.get(t)-i.get(e)}base54.sort=function(){n=mergeSort(e,compare).concat(mergeSort(t,compare))};base54.reset=reset;reset();function base54(e){var t="",i=54;e++;do{e--;t+=n[e%i];e=Math.floor(e/i);i=64}while(e>0);return t}return base54})();let sn=undefined;R.prototype.size=function(e,t){sn=undefined;let n=0;walk_parent(this,(e,t)=>{n+=e._size(t)},t||e&&e.stack);sn=undefined;return n};R.prototype._size=(()=>0);N.prototype._size=(()=>8);I.prototype._size=function(){return 2+this.value.length};const un=e=>e.length&&e.length-1;V.prototype._size=function(){return 2+un(this.body)};Z.prototype._size=function(){return un(this.body)};B.prototype._size=(()=>1);K.prototype._size=(()=>2);H.prototype._size=(()=>9);X.prototype._size=(()=>7);q.prototype._size=(()=>8);W.prototype._size=(()=>8);$.prototype._size=(()=>6);Q.prototype._size=(()=>3);const cn=e=>(e.is_generator?1:0)+(e.async?6:0);ee.prototype._size=function(){return cn(this)+4+un(this.argnames)+un(this.body)};te.prototype._size=function(e){const t=!!first_in_statement(e);return t*2+cn(this)+12+un(this.argnames)+un(this.body)};ie.prototype._size=function(){return cn(this)+13+un(this.argnames)+un(this.body)};ne.prototype._size=function(){let e=2+un(this.argnames);if(!(this.argnames.length===1&&this.argnames[0]instanceof rt)){e+=2}return cn(this)+e+(Array.isArray(this.body)?un(this.body):this.body._size())};re.prototype._size=(()=>2);oe.prototype._size=function(){return 2+Math.floor(this.segments.length/2)*3};se.prototype._size=function(){return this.value.length};le.prototype._size=function(){return this.value?7:6};fe.prototype._size=(()=>6);_e.prototype._size=function(){return this.label?6:5};he.prototype._size=function(){return this.label?9:8};Ee.prototype._size=(()=>4);ge.prototype._size=function(){return 8+un(this.body)};be.prototype._size=function(){return 5+un(this.body)};De.prototype._size=function(){return 8+un(this.body)};ye.prototype._size=function(){return 3+un(this.body)};ke.prototype._size=function(){let e=7+un(this.body);if(this.argname){e+=2}return e};Se.prototype._size=function(){return 7+un(this.body)};const ln=(e,t)=>e+un(t.definitions);Te.prototype._size=function(){return ln(4,this)};Ce.prototype._size=function(){return ln(4,this)};xe.prototype._size=function(){return ln(6,this)};Oe.prototype._size=function(){return this.value?1:0};Fe.prototype._size=function(){return this.name?4:0};we.prototype._size=function(){let e=6;if(this.imported_name)e+=1;if(this.imported_name||this.imported_names)e+=5;if(this.imported_names){e+=2+un(this.imported_names)}return e};Re.prototype._size=(()=>11);Me.prototype._size=function(){let e=7+(this.is_default?8:0);if(this.exported_value){e+=this.exported_value._size()}if(this.exported_names){e+=2+un(this.exported_names)}if(this.module_name){e+=5}return e};Ne.prototype._size=function(){return 2+un(this.args)};Ie.prototype._size=function(){return 6+un(this.args)};Pe.prototype._size=function(){return un(this.expressions)};Le.prototype._size=function(){return this.property.length+1};Be.prototype._size=(()=>2);Ue.prototype._size=function(){if(this.operator==="typeof")return 7;if(this.operator==="void")return 5;return this.operator.length};Ge.prototype._size=function(e){if(this.operator==="in")return 4;let t=this.operator.length;if((this.operator==="+"||this.operator==="-")&&this.right instanceof Ue&&this.right.operator===this.operator){t+=1}if(this.needs_parens(e)){t+=2}return t};He.prototype._size=(()=>3);We.prototype._size=function(){return 2+un(this.elements)};Ye.prototype._size=function(e){let t=2;if(first_in_statement(e)){t+=2}return t+un(this.properties)};const fn=e=>typeof e==="string"?e.length:0;je.prototype._size=function(){return fn(this.key)+1};const pn=e=>e?7:0;Qe.prototype._size=function(){return 5+pn(this.static)+fn(this.key)};Ze.prototype._size=function(){return 5+pn(this.static)+fn(this.key)};Je.prototype._size=function(){return pn(this.static)+fn(this.key)+cn(this)};et.prototype._size=function(){return(this.name?8:7)+(this.extends?8:0)};tt.prototype._size=function(){return pn(this.static)+(typeof this.key==="string"?this.key.length+2:0)+(this.value?1:0)};rt.prototype._size=function(){return!sn||this.definition().unmangleable(sn)?this.name.length:2};ht.prototype._size=function(){return this.name.length};yt.prototype._size=ot.prototype._size=function(){const{name:e,thedef:t}=this;if(t&&t.global)return e.length;if(e==="arguments")return 9;return 2};at.prototype._size=(()=>10);Dt.prototype._size=function(){return this.name.length};St.prototype._size=function(){return this.name.length};Tt.prototype._size=(()=>4);Ct.prototype._size=(()=>5);Ot.prototype._size=function(){return this.value.length+2};Ft.prototype._size=function(){const{value:e}=this;if(e===0)return 1;if(e>0&&Math.floor(e)===e){return Math.floor(Math.log10(e)+1)}return e.toString().length};wt.prototype._size=function(){return this.value.length};Rt.prototype._size=function(){return this.value.toString().length};Nt.prototype._size=(()=>4);It.prototype._size=(()=>3);Pt.prototype._size=(()=>6);Vt.prototype._size=(()=>0);Lt.prototype._size=(()=>8);Kt.prototype._size=(()=>4);Ut.prototype._size=(()=>5);de.prototype._size=(()=>6);me.prototype._size=(()=>6);const _n=1;const hn=2;const dn=4;const mn=8;const En=16;const gn=32;const vn=256;const Dn=512;const bn=1024;const yn=vn|Dn|bn;const kn=(e,t)=>e.flags&t;const Sn=(e,t)=>{e.flags|=t};const An=(e,t)=>{e.flags&=~t};class Compressor extends TreeWalker{constructor(e,t){super();if(e.defaults!==undefined&&!e.defaults)t=true;this.options=defaults(e,{arguments:false,arrows:!t,booleans:!t,booleans_as_integers:false,collapse_vars:!t,comparisons:!t,computed_props:!t,conditionals:!t,dead_code:!t,defaults:true,directives:!t,drop_console:false,drop_debugger:!t,ecma:5,evaluate:!t,expression:false,global_defs:false,hoist_funs:false,hoist_props:!t,hoist_vars:false,ie8:false,if_return:!t,inline:!t,join_vars:!t,keep_classnames:false,keep_fargs:true,keep_fnames:false,keep_infinity:false,loops:!t,module:false,negate_iife:!t,passes:1,properties:!t,pure_getters:!t&&"strict",pure_funcs:null,reduce_funcs:null,reduce_vars:!t,sequences:!t,side_effects:!t,switches:!t,top_retain:null,toplevel:!!(e&&e["top_retain"]),typeofs:!t,unsafe:false,unsafe_arrows:false,unsafe_comps:false,unsafe_Function:false,unsafe_math:false,unsafe_symbols:false,unsafe_methods:false,unsafe_proto:false,unsafe_regexp:false,unsafe_undefined:false,unused:!t,warnings:false},true);var n=this.options["global_defs"];if(typeof n=="object")for(var i in n){if(i[0]==="@"&&HOP(n,i)){n[i.slice(1)]=parse(n[i],{expression:true})}}if(this.options["inline"]===true)this.options["inline"]=3;var r=this.options["pure_funcs"];if(typeof r=="function"){this.pure_funcs=r}else{this.pure_funcs=r?function(e){return!r.includes(e.expression.print_to_string())}:return_true}var a=this.options["top_retain"];if(a instanceof RegExp){this.top_retain=function(e){return a.test(e.name)}}else if(typeof a=="function"){this.top_retain=a}else if(a){if(typeof a=="string"){a=a.split(/,/)}this.top_retain=function(e){return a.includes(e.name)}}if(this.options["module"]){this.directives["use strict"]=true;this.options["toplevel"]=true}var o=this.options["toplevel"];this.toplevel=typeof o=="string"?{funcs:/funcs/.test(o),vars:/vars/.test(o)}:{funcs:o,vars:o};var s=this.options["sequences"];this.sequences_limit=s==1?800:s|0;this.evaluated_regexps=new Map;this._toplevel=undefined}option(e){return this.options[e]}exposed(e){if(e.export)return true;if(e.global)for(var t=0,n=e.orig.length;t0||this.option("reduce_vars")){this._toplevel.reset_opt_flags(this)}this._toplevel=this._toplevel.transform(this);if(t>1){let e=0;walk(this._toplevel,()=>{e++});if(e=0){r.body[o]=r.body[o].transform(i)}}else if(r instanceof Ee){r.body=r.body.transform(i);if(r.alternative){r.alternative=r.alternative.transform(i)}}else if(r instanceof $){r.body=r.body.transform(i)}return r});n.transform(i)});function read_property(e,t){t=get_value(t);if(t instanceof R)return;var n;if(e instanceof We){var i=e.elements;if(t=="length")return make_node_from_constant(i.length,e);if(typeof t=="number"&&t in i)n=i[t]}else if(e instanceof Ye){t=""+t;var r=e.properties;for(var a=r.length;--a>=0;){var o=r[a];if(!(o instanceof je))return;if(!n&&r[a].key===t)n=r[a].value}}return n instanceof yt&&n.fixed_value()||n}function is_modified(e,t,n,i,r,a){var o=t.parent(r);var s=is_lhs(n,o);if(s)return s;if(!a&&o instanceof Ne&&o.expression===n&&!(i instanceof ne)&&!(i instanceof et)&&!o.is_expr_pure(e)&&(!(i instanceof te)||!(o instanceof Ie)&&i.contains_this())){return true}if(o instanceof We){return is_modified(e,t,o,o,r+1)}if(o instanceof je&&n===o.value){var u=t.parent(r+1);return is_modified(e,t,u,u,r+2)}if(o instanceof Ve&&o.expression===n){var c=read_property(i,o.property);return!a&&is_modified(e,t,o,c,r+1)}}(function(e){e(R,noop);function reset_def(e,t){t.assignments=0;t.chained=false;t.direct_access=false;t.escaped=0;t.recursive_refs=0;t.references=[];t.single_use=undefined;if(t.scope.pinned()){t.fixed=false}else if(t.orig[0]instanceof ct||!e.exposed(t)){t.fixed=t.init}else{t.fixed=false}}function reset_variables(e,t,n){n.variables.forEach(function(n){reset_def(t,n);if(n.fixed===null){e.defs_to_safe_ids.set(n.id,e.safe_ids);mark(e,n,true)}else if(n.fixed){e.loop_ids.set(n.id,e.in_loop);mark(e,n,true)}})}function reset_block_variables(e,t){if(t.block_scope)t.block_scope.variables.forEach(t=>{reset_def(e,t)})}function push(e){e.safe_ids=Object.create(e.safe_ids)}function pop(e){e.safe_ids=Object.getPrototypeOf(e.safe_ids)}function mark(e,t,n){e.safe_ids[t.id]=n}function safe_to_read(e,t){if(t.single_use=="m")return false;if(e.safe_ids[t.id]){if(t.fixed==null){var n=t.orig[0];if(n instanceof ft||n.name=="arguments")return false;t.fixed=make_node(Pt,n)}return true}return t.fixed instanceof ie}function safe_to_assign(e,t,n,i){if(t.fixed===undefined)return true;let r;if(t.fixed===null&&(r=e.defs_to_safe_ids.get(t.id))){r[t.id]=false;e.defs_to_safe_ids.delete(t.id);return true}if(!HOP(e.safe_ids,t.id))return false;if(!safe_to_read(e,t))return false;if(t.fixed===false)return false;if(t.fixed!=null&&(!i||t.references.length>t.assignments))return false;if(t.fixed instanceof ie){return i instanceof R&&t.fixed.parent_scope===n}return t.orig.every(e=>{return!(e instanceof ct||e instanceof pt||e instanceof dt)})}function ref_once(e,t,n){return t.option("unused")&&!n.scope.pinned()&&n.references.length-n.recursive_refs==1&&e.loop_ids.get(n.id)===e.in_loop}function is_immutable(e){if(!e)return false;return e.is_constant()||e instanceof J||e instanceof Tt}function mark_escaped(e,t,n,i,r,a,o){var s=e.parent(a);if(r){if(r.is_constant())return;if(r instanceof it)return}if(s instanceof Xe&&s.operator=="="&&i===s.right||s instanceof Ne&&(i!==s.expression||s instanceof Ie)||s instanceof ce&&i===s.value&&i.scope!==t.scope||s instanceof Oe&&i===s.value||s instanceof me&&i===s.value&&i.scope!==t.scope){if(o>1&&!(r&&r.is_constant_expression(n)))o=1;if(!t.escaped||t.escaped>o)t.escaped=o;return}else if(s instanceof We||s instanceof de||s instanceof Ge&&xn.has(s.operator)||s instanceof He&&i!==s.condition||s instanceof Q||s instanceof Pe&&i===s.tail_node()){mark_escaped(e,t,n,s,s,a+1,o)}else if(s instanceof je&&i===s.value){var u=e.parent(a+1);mark_escaped(e,t,n,u,u,a+2,o)}else if(s instanceof Ve&&i===s.expression){r=read_property(r,s.property);mark_escaped(e,t,n,s,r,a+1,o+1);if(r)return}if(a>0)return;if(s instanceof Pe&&i!==s.tail_node())return;if(s instanceof P)return;t.direct_access=true}const t=e=>walk(e,e=>{if(!(e instanceof rt))return;var t=e.definition();if(!t)return;if(e instanceof yt)t.references.push(e);t.fixed=false});e(ee,function(e,t,n){push(e);reset_variables(e,n,this);t();pop(e);return true});e(Xe,function(e,n,i){var r=this;if(r.left instanceof re){t(r.left);return}var a=r.left;if(!(a instanceof yt))return;var o=a.definition();var s=safe_to_assign(e,o,a.scope,r.right);o.assignments++;if(!s)return;var u=o.fixed;if(!u&&r.operator!="=")return;var c=r.operator=="=";var l=c?r.right:r;if(is_modified(i,e,r,l,0))return;o.references.push(a);if(!c)o.chained=true;o.fixed=c?function(){return r.right}:function(){return make_node(Ge,r,{operator:r.operator.slice(0,-1),left:u instanceof R?u:u(),right:r.right})};mark(e,o,false);r.right.walk(e);mark(e,o,true);mark_escaped(e,o,a.scope,r,l,0,1);return true});e(Ge,function(e){if(!xn.has(this.operator))return;this.left.walk(e);push(e);this.right.walk(e);pop(e);return true});e(V,function(e,t,n){reset_block_variables(n,this)});e(be,function(e){push(e);this.expression.walk(e);pop(e);push(e);walk_body(this,e);pop(e);return true});e(et,function(e,t){An(this,En);push(e);t();pop(e);return true});e(He,function(e){this.condition.walk(e);push(e);this.consequent.walk(e);pop(e);push(e);this.alternative.walk(e);pop(e);return true});e(De,function(e,t){push(e);t();pop(e);return true});function mark_lambda(e,t,n){An(this,En);push(e);reset_variables(e,n,this);if(this.uses_arguments){t();pop(e);return}var i;if(!this.name&&(i=e.parent())instanceof Ne&&i.expression===this&&!i.args.some(e=>e instanceof Q)&&this.argnames.every(e=>e instanceof rt)){this.argnames.forEach((t,n)=>{if(!t.definition)return;var r=t.definition();if(r.orig.length>1)return;if(r.fixed===undefined&&(!this.uses_arguments||e.has_directive("use strict"))){r.fixed=function(){return i.args[n]||make_node(Pt,i)};e.loop_ids.set(r.id,e.in_loop);mark(e,r,true)}else{r.fixed=false}})}t();pop(e);return true}e(J,mark_lambda);e(H,function(e,t,n){reset_block_variables(n,this);const i=e.in_loop;e.in_loop=this;push(e);this.body.walk(e);if(has_break_or_continue(this)){pop(e);push(e)}this.condition.walk(e);pop(e);e.in_loop=i;return true});e(q,function(e,t,n){reset_block_variables(n,this);if(this.init)this.init.walk(e);const i=e.in_loop;e.in_loop=this;push(e);if(this.condition)this.condition.walk(e);this.body.walk(e);if(this.step){if(has_break_or_continue(this)){pop(e);push(e)}this.step.walk(e)}pop(e);e.in_loop=i;return true});e(W,function(e,n,i){reset_block_variables(i,this);t(this.init);this.object.walk(e);const r=e.in_loop;e.in_loop=this;push(e);this.body.walk(e);pop(e);e.in_loop=r;return true});e(Ee,function(e){this.condition.walk(e);push(e);this.body.walk(e);pop(e);if(this.alternative){push(e);this.alternative.walk(e);pop(e)}return true});e(K,function(e){push(e);this.body.walk(e);pop(e);return true});e(gt,function(){this.definition().fixed=false});e(yt,function(e,t,n){var i=this.definition();i.references.push(this);if(i.references.length==1&&!i.fixed&&i.orig[0]instanceof pt){e.loop_ids.set(i.id,e.in_loop)}var r;if(i.fixed===undefined||!safe_to_read(e,i)){i.fixed=false}else if(i.fixed){r=this.fixed_value();if(r instanceof J&&recursive_ref(e,i)){i.recursive_refs++}else if(r&&!n.exposed(i)&&ref_once(e,n,i)){i.single_use=r instanceof J&&!r.pinned()||r instanceof et||i.scope===this.scope&&r.is_constant_expression()}else{i.single_use=false}if(is_modified(n,e,this,r,0,is_immutable(r))){if(i.single_use){i.single_use="m"}else{i.fixed=false}}}mark_escaped(e,i,this.scope,this,r,0,1)});e(Z,function(e,t,n){this.globals.forEach(function(e){reset_def(n,e)});reset_variables(e,n,this)});e(ye,function(e,t,n){reset_block_variables(n,this);push(e);walk_body(this,e);pop(e);if(this.bcatch){push(e);this.bcatch.walk(e);pop(e)}if(this.bfinally)this.bfinally.walk(e);return true});e(Ue,function(e){var t=this;if(t.operator!=="++"&&t.operator!=="--")return;var n=t.expression;if(!(n instanceof yt))return;var i=n.definition();var r=safe_to_assign(e,i,n.scope,true);i.assignments++;if(!r)return;var a=i.fixed;if(!a)return;i.references.push(n);i.chained=true;i.fixed=function(){return make_node(Ge,t,{operator:t.operator.slice(0,-1),left:make_node(Ke,t,{operator:"+",expression:a instanceof R?a:a()}),right:make_node(Ft,t,{value:1})})};mark(e,i,true);return true});e(Oe,function(e,n){var i=this;if(i.name instanceof re){t(i.name);return}var r=i.name.definition();if(i.value){if(safe_to_assign(e,r,i.name.scope,i.value)){r.fixed=function(){return i.value};e.loop_ids.set(r.id,e.in_loop);mark(e,r,false);n();mark(e,r,true);return true}else{r.fixed=false}}});e(X,function(e,t,n){reset_block_variables(n,this);const i=e.in_loop;e.in_loop=this;push(e);t();pop(e);e.in_loop=i;return true})})(function(e,t){e.DEFMETHOD("reduce_vars",t)});Z.DEFMETHOD("reset_opt_flags",function(e){const t=this;const n=e.option("reduce_vars");const i=new TreeWalker(function(r,a){An(r,yn);if(n){if(e.top_retain&&r instanceof ie&&i.parent()===t){Sn(r,bn)}return r.reduce_vars(i,a,e)}});i.safe_ids=Object.create(null);i.in_loop=null;i.loop_ids=new Map;i.defs_to_safe_ids=new Map;t.walk(i)});rt.DEFMETHOD("fixed_value",function(){var e=this.thedef.fixed;if(!e||e instanceof R)return e;return e()});yt.DEFMETHOD("is_immutable",function(){var e=this.definition().orig;return e.length==1&&e[0]instanceof dt});function is_func_expr(e){return e instanceof ne||e instanceof te}function is_lhs_read_only(e){if(e instanceof Tt)return true;if(e instanceof yt)return e.definition().orig[0]instanceof dt;if(e instanceof Ve){e=e.expression;if(e instanceof yt){if(e.is_immutable())return false;e=e.fixed_value()}if(!e)return true;if(e instanceof Rt)return false;if(e instanceof xt)return true;return is_lhs_read_only(e)}return false}function is_ref_of(e,t){if(!(e instanceof yt))return false;var n=e.definition().orig;for(var i=n.length;--i>=0;){if(n[i]instanceof t)return true}}function find_scope(e){for(let t=0;;t++){const n=e.parent(t);if(n instanceof Z)return n;if(n instanceof J)return n;if(n.block_scope)return n.block_scope}}function find_variable(e,t){var n,i=0;while(n=e.parent(i++)){if(n instanceof j)break;if(n instanceof ke&&n.argname){n=n.argname.definition().scope;break}}return n.find_variable(t)}function make_sequence(e,t){if(t.length==1)return t[0];if(t.length==0)throw new Error("trying to create a sequence with length zero!");return make_node(Pe,e,{expressions:t.reduce(merge_sequence,[])})}function make_node_from_constant(e,t){switch(typeof e){case"string":return make_node(Ot,t,{value:e});case"number":if(isNaN(e))return make_node(It,t);if(isFinite(e)){return 1/e<0?make_node(Ke,t,{operator:"-",expression:make_node(Ft,t,{value:-e})}):make_node(Ft,t,{value:e})}return e<0?make_node(Ke,t,{operator:"-",expression:make_node(Lt,t)}):make_node(Lt,t);case"boolean":return make_node(e?Kt:Ut,t);case"undefined":return make_node(Pt,t);default:if(e===null){return make_node(Nt,t,{value:null})}if(e instanceof RegExp){return make_node(Rt,t,{value:{source:regexp_source_fix(e.source),flags:e.flags}})}throw new Error(string_template("Can't handle constant of type: {type}",{type:typeof e}))}}function maintain_this_binding(e,t,n){if(e instanceof Ke&&e.operator=="delete"||e instanceof Ne&&e.expression===t&&(n instanceof Ve||n instanceof yt&&n.name=="eval")){return make_sequence(t,[make_node(Ft,t,{value:0}),n])}return n}function merge_sequence(e,t){if(t instanceof Pe){e.push(...t.expressions)}else{e.push(t)}return e}function as_statement_array(e){if(e===null)return[];if(e instanceof L)return e.body;if(e instanceof B)return[];if(e instanceof M)return[e];throw new Error("Can't convert thing to statement array")}function is_empty(e){if(e===null)return true;if(e instanceof B)return true;if(e instanceof L)return e.body.length==0;return false}function can_be_evicted_from_block(e){return!(e instanceof nt||e instanceof ie||e instanceof Ce||e instanceof xe||e instanceof Me||e instanceof we)}function loop_body(e){if(e instanceof z){return e.body instanceof L?e.body:e}return e}function is_iife_call(e){if(e.TYPE!="Call")return false;return e.expression instanceof te||is_iife_call(e.expression)}function is_undeclared_ref(e){return e instanceof yt&&e.definition().undeclared}var Tn=makePredicate("Array Boolean clearInterval clearTimeout console Date decodeURI decodeURIComponent encodeURI encodeURIComponent Error escape eval EvalError Function isFinite isNaN JSON Math Number parseFloat parseInt RangeError ReferenceError RegExp Object setInterval setTimeout String SyntaxError TypeError unescape URIError");yt.DEFMETHOD("is_declared",function(e){return!this.definition().undeclared||e.option("unsafe")&&Tn.has(this.name)});var Cn=makePredicate("Infinity NaN undefined");function is_identifier_atom(e){return e instanceof Lt||e instanceof It||e instanceof Pt}function tighten_body(e,t){var n,r;var a=t.find_parent(j).get_defun_scope();find_loop_scope_try();var o,s=10;do{o=false;eliminate_spurious_blocks(e);if(t.option("dead_code")){eliminate_dead_code(e,t)}if(t.option("if_return")){handle_if_return(e,t)}if(t.sequences_limit>0){sequencesize(e,t);sequencesize_2(e,t)}if(t.option("join_vars")){join_consecutive_vars(e)}if(t.option("collapse_vars")){collapse(e,t)}}while(o&&s-- >0);function find_loop_scope_try(){var e=t.self(),i=0;do{if(e instanceof ke||e instanceof Se){i++}else if(e instanceof z){n=true}else if(e instanceof j){a=e;break}else if(e instanceof ye){r=true}}while(e=t.parent(i++))}function collapse(e,t){if(a.pinned())return e;var s;var u=[];var c=e.length;var l=new TreeTransformer(function(e){if(T)return e;if(!A){if(e!==p[_])return e;_++;if(_1||e instanceof z&&!(e instanceof q)||e instanceof pe||e instanceof ye||e instanceof $||e instanceof me||e instanceof Me||e instanceof et||n instanceof q&&e!==n.init||!y&&(e instanceof yt&&!e.is_declared(t)&&!Nn.has(e))||e instanceof yt&&n instanceof Ne&&has_annotation(n,Xt)){T=true;return e}if(!E&&(!D||!y)&&(n instanceof Ge&&xn.has(n.operator)&&n.left!==e||n instanceof He&&n.condition!==e||n instanceof Ee&&n.condition!==e)){E=n}if(x&&!(e instanceof ot)&&g.equivalent_to(e)){if(E){T=true;return e}if(is_lhs(e,n)){if(d)C++;return e}else{C++;if(d&&h instanceof Oe)return e}o=T=true;if(h instanceof ze){return make_node(Ke,h,h)}if(h instanceof Oe){var i=h.name.definition();var a=h.value;if(i.references.length-i.replaced==1&&!t.exposed(i)){i.replaced++;if(S&&is_identifier_atom(a)){return a.transform(t)}else{return maintain_this_binding(n,e,a)}}return make_node(Xe,h,{operator:"=",left:make_node(yt,h.name,h.name),right:a})}An(h,gn);return h}var s;if(e instanceof Ne||e instanceof ce&&(b||g instanceof Ve||may_modify(g))||e instanceof Ve&&(b||e.expression.may_throw_on_access(t))||e instanceof yt&&(v.get(e.name)||b&&may_modify(e))||e instanceof Oe&&e.value&&(v.has(e.name.name)||b&&may_modify(e.name))||(s=is_lhs(e.left,e))&&(s instanceof Ve||v.has(s.name))||k&&(r?e.has_side_effects(t):side_effects_external(e))){m=e;if(e instanceof j)T=true}return handle_custom_scan_order(e)},function(e){if(T)return;if(m===e)T=true;if(E===e)E=null});var f=new TreeTransformer(function(e){if(T)return e;if(!A){if(e!==p[_])return e;_++;if(_=0){if(c==0&&t.option("unused"))extract_args();var p=[];extract_candidates(e[c]);while(u.length>0){p=u.pop();var _=0;var h=p[p.length-1];var d=null;var m=null;var E=null;var g=get_lhs(h);if(!g||is_lhs_read_only(g)||g.has_side_effects(t))continue;var v=get_lvalues(h);var D=is_lhs_local(g);if(g instanceof yt)v.set(g.name,false);var b=value_has_side_effects(h);var y=replace_all_symbols();var k=h.may_throw(t);var S=h.name instanceof ft;var A=S;var T=false,C=0,x=!s||!A;if(!x){for(var O=t.self().argnames.lastIndexOf(h.name)+1;!T&&OC)C=false;else{T=false;_=0;A=S;for(var F=c;!T&&F!(e instanceof Q))){var i=t.has_directive("use strict");if(i&&!member(i,n.body))i=false;var r=n.argnames.length;s=e.args.slice(r);var a=new Set;for(var o=r;--o>=0;){var c=n.argnames[o];var l=e.args[o];const r=c.definition&&c.definition();const p=r&&r.orig.length>1;if(p)continue;s.unshift(make_node(Oe,c,{name:c,value:l}));if(a.has(c.name))continue;a.add(c.name);if(c instanceof Q){var f=e.args.slice(o);if(f.every(e=>!has_overlapping_symbol(n,e,i))){u.unshift([make_node(Oe,c,{name:c.expression,value:make_node(We,e,{elements:f})})])}}else{if(!l){l=make_node(Pt,c).transform(t)}else if(l instanceof J&&l.pinned()||has_overlapping_symbol(n,l,i)){l=null}if(l)u.unshift([make_node(Oe,c,{name:c,value:l})])}}}}function extract_candidates(e){p.push(e);if(e instanceof Xe){if(!e.left.has_side_effects(t)){u.push(p.slice())}extract_candidates(e.right)}else if(e instanceof Ge){extract_candidates(e.left);extract_candidates(e.right)}else if(e instanceof Ne&&!has_annotation(e,Xt)){extract_candidates(e.expression);e.args.forEach(extract_candidates)}else if(e instanceof be){extract_candidates(e.expression)}else if(e instanceof He){extract_candidates(e.condition);extract_candidates(e.consequent);extract_candidates(e.alternative)}else if(e instanceof Ae){var n=e.definitions.length;var i=n-200;if(i<0)i=0;for(;i1&&!(e.name instanceof ft)||(i>1?mangleable_var(e):!t.exposed(n))){return make_node(yt,e.name,e.name)}}else{const t=e[e instanceof Xe?"left":"expression"];return!is_ref_of(t,ct)&&!is_ref_of(t,lt)&&t}}function get_rvalue(e){return e[e instanceof Xe?"right":"value"]}function get_lvalues(e){var n=new Map;if(e instanceof Ue)return n;var i=new TreeWalker(function(e){var r=e;while(r instanceof Ve)r=r.expression;if(r instanceof yt||r instanceof Tt){n.set(r.name,n.get(r.name)||is_modified(t,i,e,e,0))}});get_rvalue(e).walk(i);return n}function remove_candidate(n){if(n.name instanceof ft){var r=t.parent(),a=t.self().argnames;var o=a.indexOf(n.name);if(o<0){r.args.length=Math.min(r.args.length,a.length-1)}else{var s=r.args;if(s[o])s[o]=make_node(Ft,s[o],{value:0})}return true}var u=false;return e[c].transform(new TreeTransformer(function(e,t,r){if(u)return e;if(e===n||e.body===n){u=true;if(e instanceof Oe){e.value=e.name instanceof ct?make_node(Pt,e.value):null;return e}return r?i.skip:null}},function(e){if(e instanceof Pe)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}}))}function is_lhs_local(e){while(e instanceof Ve)e=e.expression;return e instanceof yt&&e.definition().scope===a&&!(n&&(v.has(e.name)||h instanceof Ue||h instanceof Xe&&h.operator!="="))}function value_has_side_effects(e){if(e instanceof Ue)return On.has(e.operator);return get_rvalue(e).has_side_effects(t)}function replace_all_symbols(){if(b)return false;if(d)return true;if(g instanceof yt){var e=g.definition();if(e.references.length-e.replaced==(h instanceof Oe?1:2)){return true}}return false}function may_modify(e){if(!e.definition)return true;var t=e.definition();if(t.orig.length==1&&t.orig[0]instanceof pt)return false;if(t.scope.get_defun_scope()!==a)return true;return!t.references.every(e=>{var t=e.scope.get_defun_scope();if(t.TYPE=="Scope")t=t.parent_scope;return t===a})}function side_effects_external(e,t){if(e instanceof Xe)return side_effects_external(e.left,true);if(e instanceof Ue)return side_effects_external(e.expression,true);if(e instanceof Oe)return e.value&&side_effects_external(e.value);if(t){if(e instanceof Le)return side_effects_external(e.expression,true);if(e instanceof Be)return side_effects_external(e.expression,true);if(e instanceof yt)return e.definition().scope!==a}return false}}function eliminate_spurious_blocks(e){var t=[];for(var n=0;n=0;){var s=e[a];var u=next_index(a);var c=e[u];if(r&&!c&&s instanceof le){if(!s.value){o=true;e.splice(a,1);continue}if(s.value instanceof Ke&&s.value.operator=="void"){o=true;e[a]=make_node(P,s,{body:s.value.expression});continue}}if(s instanceof Ee){var l=aborts(s.body);if(can_merge_flow(l)){if(l.label){remove(l.label.thedef.references,l)}o=true;s=s.clone();s.condition=s.condition.negate(t);var f=as_statement_array_with_return(s.body,l);s.body=make_node(L,s,{body:as_statement_array(s.alternative).concat(extract_functions())});s.alternative=make_node(L,s,{body:f});e[a]=s.transform(t);continue}var l=aborts(s.alternative);if(can_merge_flow(l)){if(l.label){remove(l.label.thedef.references,l)}o=true;s=s.clone();s.body=make_node(L,s.body,{body:as_statement_array(s.body).concat(extract_functions())});var f=as_statement_array_with_return(s.alternative,l);s.alternative=make_node(L,s.alternative,{body:f});e[a]=s.transform(t);continue}}if(s instanceof Ee&&s.body instanceof le){var p=s.body.value;if(!p&&!s.alternative&&(r&&!c||c instanceof le&&!c.value)){o=true;e[a]=make_node(P,s.condition,{body:s.condition});continue}if(p&&!s.alternative&&c instanceof le&&c.value){o=true;s=s.clone();s.alternative=c;e[a]=s.transform(t);e.splice(u,1);continue}if(p&&!s.alternative&&(!c&&r&&i||c instanceof le)){o=true;s=s.clone();s.alternative=c||make_node(le,s,{value:null});e[a]=s.transform(t);if(c)e.splice(u,1);continue}var _=e[prev_index(a)];if(t.option("sequences")&&r&&!s.alternative&&_ instanceof Ee&&_.body instanceof le&&next_index(u)==e.length&&c instanceof P){o=true;s=s.clone();s.alternative=make_node(L,c,{body:[c,make_node(le,c,{value:null})]});e[a]=s.transform(t);e.splice(u,1);continue}}}function has_multiple_if_returns(e){var t=0;for(var n=e.length;--n>=0;){var i=e[n];if(i instanceof Ee&&i.body instanceof le){if(++t>1)return true}}return false}function is_return_void(e){return!e||e instanceof Ke&&e.operator=="void"}function can_merge_flow(i){if(!i)return false;for(var o=a+1,s=e.length;o=0;){var i=e[n];if(!(i instanceof Te&&declarations_only(i))){break}}return n}}function eliminate_dead_code(e,t){var n;var i=t.self();for(var r=0,a=0,s=e.length;r!e.value)}function sequencesize(e,t){if(e.length<2)return;var n=[],i=0;function push_seq(){if(!n.length)return;var t=make_sequence(n[0],n);e[i++]=make_node(P,t,{body:t});n=[]}for(var r=0,a=e.length;r=t.sequences_limit)push_seq();var u=s.body;if(n.length>0)u=u.drop_side_effect_free(t);if(u)merge_sequence(n,u)}else if(s instanceof Ae&&declarations_only(s)||s instanceof ie){e[i++]=s}else{push_seq();e[i++]=s}}push_seq();e.length=i;if(i!=a)o=true}function to_simple_statement(e,t){if(!(e instanceof L))return e;var n=null;for(var i=0,r=e.body.length;i{if(e instanceof j)return true;if(e instanceof Ge&&e.operator==="in"){return zt}});if(!e){if(a.init)a.init=cons_seq(a.init);else{a.init=i.body;n--;o=true}}}}else if(a instanceof W){if(!(a.init instanceof xe)&&!(a.init instanceof Ce)){a.object=cons_seq(a.object)}}else if(a instanceof Ee){a.condition=cons_seq(a.condition)}else if(a instanceof ge){a.expression=cons_seq(a.expression)}else if(a instanceof $){a.expression=cons_seq(a.expression)}}if(t.option("conditionals")&&a instanceof Ee){var s=[];var u=to_simple_statement(a.body,s);var c=to_simple_statement(a.alternative,s);if(u!==false&&c!==false&&s.length>0){var l=s.length;s.push(make_node(Ee,a,{condition:a.condition,body:u||make_node(B,a.body),alternative:c}));s.unshift(n,1);[].splice.apply(e,s);r+=l;n+=l+1;i=null;o=true;continue}}e[n++]=a;i=a instanceof P?a:null}e.length=n}function join_object_assignments(e,n){if(!(e instanceof Ae))return;var i=e.definitions[e.definitions.length-1];if(!(i.value instanceof Ye))return;var r;if(n instanceof Xe){r=[n]}else if(n instanceof Pe){r=n.expressions.slice()}if(!r)return;var o=false;do{var s=r[0];if(!(s instanceof Xe))break;if(s.operator!="=")break;if(!(s.left instanceof Ve))break;var u=s.left.expression;if(!(u instanceof yt))break;if(i.name.name!=u.name)break;if(!s.right.is_constant_expression(a))break;var c=s.left.property;if(c instanceof R){c=c.evaluate(t)}if(c instanceof R)break;c=""+c;var l=t.option("ecma")<2015&&t.has_directive("use strict")?function(e){return e.key!=c&&(e.key&&e.key.name!=c)}:function(e){return e.key&&e.key.name!=c};if(!i.value.properties.every(l))break;var f=i.value.properties.filter(function(e){return e.key===c})[0];if(!f){i.value.properties.push(make_node(je,s,{key:c,value:s.right}))}else{f.value=new Pe({start:f.start,expressions:[f.value.clone(),s.right.clone()],end:f.end})}r.shift();o=true}while(r.length);return o&&r}function join_consecutive_vars(e){var t;for(var n=0,i=-1,r=e.length;n{if(i instanceof Te){i.remove_initializers();n.push(i);return true}if(i instanceof ie&&(i===t||!e.has_directive("use strict"))){n.push(i===t?i:make_node(Te,i,{definitions:[make_node(Oe,i,{name:make_node(st,i.name,i.name),value:null})]}));return true}if(i instanceof Me||i instanceof we){n.push(i);return true}if(i instanceof j){return true}})}function get_value(e){if(e instanceof xt){return e.getValue()}if(e instanceof Ke&&e.operator=="void"&&e.expression instanceof xt){return}return e}function is_undefined(e,t){return kn(e,mn)||e instanceof Pt||e instanceof Ke&&e.operator=="void"&&!e.expression.has_side_effects(t)}(function(e){R.DEFMETHOD("may_throw_on_access",function(e){return!e.option("pure_getters")||this._dot_throw(e)});function is_strict(e){return/strict/.test(e.option("pure_getters"))}e(R,is_strict);e(Nt,return_true);e(Pt,return_true);e(xt,return_false);e(We,return_false);e(Ye,function(e){if(!is_strict(e))return false;for(var t=this.properties.length;--t>=0;)if(this.properties[t]._dot_throw(e))return true;return false});e(et,return_false);e($e,return_false);e(Qe,return_true);e(Q,function(e){return this.expression._dot_throw(e)});e(te,return_false);e(ne,return_false);e(ze,return_false);e(Ke,function(){return this.operator=="void"});e(Ge,function(e){return(this.operator=="&&"||this.operator=="||"||this.operator=="??")&&(this.left._dot_throw(e)||this.right._dot_throw(e))});e(Xe,function(e){return this.operator=="="&&this.right._dot_throw(e)});e(He,function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)});e(Le,function(e){if(!is_strict(e))return false;if(this.expression instanceof te&&this.property=="prototype")return false;return true});e(Pe,function(e){return this.tail_node()._dot_throw(e)});e(yt,function(e){if(this.name==="arguments")return false;if(kn(this,mn))return true;if(!is_strict(e))return false;if(is_undeclared_ref(this)&&this.is_declared(e))return false;if(this.is_immutable())return false;var t=this.fixed_value();return!t||t._dot_throw(e)})})(function(e,t){e.DEFMETHOD("_dot_throw",t)});(function(e){const t=makePredicate("! delete");const n=makePredicate("in instanceof == != === !== < <= >= >");e(R,return_false);e(Ke,function(){return t.has(this.operator)});e(Ge,function(){return n.has(this.operator)||xn.has(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()});e(He,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()});e(Xe,function(){return this.operator=="="&&this.right.is_boolean()});e(Pe,function(){return this.tail_node().is_boolean()});e(Kt,return_true);e(Ut,return_true)})(function(e,t){e.DEFMETHOD("is_boolean",t)});(function(e){e(R,return_false);e(Ft,return_true);var t=makePredicate("+ - ~ ++ --");e(Ue,function(){return t.has(this.operator)});var n=makePredicate("- * / % & | ^ << >> >>>");e(Ge,function(e){return n.has(this.operator)||this.operator=="+"&&this.left.is_number(e)&&this.right.is_number(e)});e(Xe,function(e){return n.has(this.operator.slice(0,-1))||this.operator=="="&&this.right.is_number(e)});e(Pe,function(e){return this.tail_node().is_number(e)});e(He,function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)})})(function(e,t){e.DEFMETHOD("is_number",t)});(function(e){e(R,return_false);e(Ot,return_true);e(oe,return_true);e(Ke,function(){return this.operator=="typeof"});e(Ge,function(e){return this.operator=="+"&&(this.left.is_string(e)||this.right.is_string(e))});e(Xe,function(e){return(this.operator=="="||this.operator=="+=")&&this.right.is_string(e)});e(Pe,function(e){return this.tail_node().is_string(e)});e(He,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)})})(function(e,t){e.DEFMETHOD("is_string",t)});var xn=makePredicate("&& || ??");var On=makePredicate("delete ++ --");function is_lhs(e,t){if(t instanceof Ue&&On.has(t.operator))return t.expression;if(t instanceof Xe&&t.left===e)return e}(function(e){function to_node(e,t){if(e instanceof R)return make_node(e.CTOR,t,e);if(Array.isArray(e))return make_node(We,t,{elements:e.map(function(e){return to_node(e,t)})});if(e&&typeof e=="object"){var n=[];for(var i in e)if(HOP(e,i)){n.push(make_node(je,t,{key:i,value:to_node(e[i],t)}))}return make_node(Ye,t,{properties:n})}return make_node_from_constant(e,t)}Z.DEFMETHOD("resolve_defines",function(e){if(!e.option("global_defs"))return this;this.figure_out_scope({ie8:e.option("ie8")});return this.transform(new TreeTransformer(function(t){var n=t._find_defs(e,"");if(!n)return;var i=0,r=t,a;while(a=this.parent(i++)){if(!(a instanceof Ve))break;if(a.expression!==r)break;r=a}if(is_lhs(r,a)){return}return n}))});e(R,noop);e(Le,function(e,t){return this.expression._find_defs(e,"."+this.property+t)});e(ot,function(){if(!this.global())return});e(yt,function(e,t){if(!this.global())return;var n=e.option("global_defs");var i=this.name+t;if(HOP(n,i))return to_node(n[i],this)})})(function(e,t){e.DEFMETHOD("_find_defs",t)});function best_of_expression(e,t){return e.size()>t.size()?t:e}function best_of_statement(e,t){return best_of_expression(make_node(P,e,{body:e}),make_node(P,t,{body:t})).body}function best_of(e,t,n){return(first_in_statement(e)?best_of_statement:best_of_expression)(t,n)}function convert_to_predicate(e){const t=new Map;for(var n of Object.keys(e)){t.set(n,makePredicate(e[n]))}return t}var Fn=["constructor","toString","valueOf"];var wn=convert_to_predicate({Array:["indexOf","join","lastIndexOf","slice"].concat(Fn),Boolean:Fn,Function:Fn,Number:["toExponential","toFixed","toPrecision"].concat(Fn),Object:Fn,RegExp:["test"].concat(Fn),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(Fn)});var Rn=convert_to_predicate({Array:["isArray"],Math:["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","atan2","pow","max","min"],Number:["isFinite","isNaN"],Object:["create","getOwnPropertyDescriptor","getOwnPropertyNames","getPrototypeOf","isExtensible","isFrozen","isSealed","keys"],String:["fromCharCode"]});(function(e){R.DEFMETHOD("evaluate",function(e){if(!e.option("evaluate"))return this;var t=this._eval(e,1);if(!t||t instanceof RegExp)return t;if(typeof t=="function"||typeof t=="object")return this;return t});var t=makePredicate("! ~ - + void");R.DEFMETHOD("is_constant",function(){if(this instanceof xt){return!(this instanceof Rt)}else{return this instanceof Ke&&this.expression instanceof xt&&t.has(this.operator)}});e(M,function(){throw new Error(string_template("Cannot evaluate a statement [{file}:{line},{col}]",this.start))});e(J,return_this);e(et,return_this);e(R,return_this);e(xt,function(){return this.getValue()});e(wt,return_this);e(Rt,function(e){let t=e.evaluated_regexps.get(this);if(t===undefined){try{t=(0,eval)(this.print_to_string())}catch(e){t=null}e.evaluated_regexps.set(this,t)}return t||this});e(oe,function(){if(this.segments.length!==1)return this;return this.segments[0].value});e(te,function(e){if(e.option("unsafe")){var t=function(){};t.node=this;t.toString=function(){return this.node.print_to_string()};return t}return this});e(We,function(e,t){if(e.option("unsafe")){var n=[];for(var i=0,r=this.elements.length;itypeof e==="object"||typeof e==="function"||typeof e==="symbol";e(Ge,function(e,t){if(!i.has(this.operator))t++;var n=this.left._eval(e,t);if(n===this.left)return this;var o=this.right._eval(e,t);if(o===this.right)return this;var s;if(n!=null&&o!=null&&r.has(this.operator)&&a(n)&&a(o)&&typeof n===typeof o){return this}switch(this.operator){case"&&":s=n&&o;break;case"||":s=n||o;break;case"??":s=n!=null?n:o;break;case"|":s=n|o;break;case"&":s=n&o;break;case"^":s=n^o;break;case"+":s=n+o;break;case"*":s=n*o;break;case"**":s=Math.pow(n,o);break;case"/":s=n/o;break;case"%":s=n%o;break;case"-":s=n-o;break;case"<<":s=n<>":s=n>>o;break;case">>>":s=n>>>o;break;case"==":s=n==o;break;case"===":s=n===o;break;case"!=":s=n!=o;break;case"!==":s=n!==o;break;case"<":s=n":s=n>o;break;case">=":s=n>=o;break;default:return this}if(isNaN(s)&&e.find_parent($)){return this}return s});e(He,function(e,t){var n=this.condition._eval(e,t);if(n===this.condition)return this;var i=n?this.consequent:this.alternative;var r=i._eval(e,t);return r===i?this:r});const o=new Set;e(yt,function(e,t){if(o.has(this))return this;var n=this.fixed_value();if(!n)return this;var i;if(HOP(n,"_eval")){i=n._eval()}else{o.add(this);i=n._eval(e,t);o.delete(this);if(i===n)return this}if(i&&typeof i=="object"){var r=this.definition().escaped;if(r&&t>r)return this}return i});var s={Array:Array,Math:Math,Number:Number,Object:Object,String:String};var u=convert_to_predicate({Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]});e(Ve,function(e,t){if(e.option("unsafe")){var n=this.property;if(n instanceof R){n=n._eval(e,t);if(n===this.property)return this}var i=this.expression;var r;if(is_undeclared_ref(i)){var a;var o=i.name==="hasOwnProperty"&&n==="call"&&(a=e.parent()&&e.parent().args)&&(a&&a[0]&&a[0].evaluate(e));o=o instanceof Le?o.expression:o;if(o==null||o.thedef&&o.thedef.undeclared){return this.clone()}var c=u.get(i.name);if(!c||!c.has(n))return this;r=s[i.name]}else{r=i._eval(e,t+1);if(!r||r===i||!HOP(r,n))return this;if(typeof r=="function")switch(n){case"name":return r.node.name?r.node.name.name:"";case"length":return r.node.argnames.length;default:return this}}return r[n]}return this});e(Ne,function(e,t){var n=this.expression;if(e.option("unsafe")&&n instanceof Ve){var i=n.property;if(i instanceof R){i=i._eval(e,t);if(i===n.property)return this}var r;var a=n.expression;if(is_undeclared_ref(a)){var o=a.name==="hasOwnProperty"&&i==="call"&&(this.args[0]&&this.args[0].evaluate(e));o=o instanceof Le?o.expression:o;if(o==null||o.thedef&&o.thedef.undeclared){return this.clone()}var u=Rn.get(a.name);if(!u||!u.has(i))return this;r=s[a.name]}else{r=a._eval(e,t+1);if(r===a||!r)return this;var c=wn.get(r.constructor.name);if(!c||!c.has(i))return this}var l=[];for(var f=0,p=this.args.length;f";return n;case"<":n.operator=">=";return n;case">=":n.operator="<";return n;case">":n.operator="<=";return n}}switch(i){case"==":n.operator="!=";return n;case"!=":n.operator="==";return n;case"===":n.operator="!==";return n;case"!==":n.operator="===";return n;case"&&":n.operator="||";n.left=n.left.negate(e,t);n.right=n.right.negate(e);return best(this,n,t);case"||":n.operator="&&";n.left=n.left.negate(e,t);n.right=n.right.negate(e);return best(this,n,t);case"??":n.right=n.right.negate(e);return best(this,n,t)}return basic_negation(this)})})(function(e,t){e.DEFMETHOD("negate",function(e,n){return t.call(this,e,n)})});var Mn=makePredicate("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");Ne.DEFMETHOD("is_expr_pure",function(e){if(e.option("unsafe")){var t=this.expression;var n=this.args&&this.args[0]&&this.args[0].evaluate(e);if(t.expression&&t.expression.name==="hasOwnProperty"&&(n==null||n.thedef&&n.thedef.undeclared)){return false}if(is_undeclared_ref(t)&&Mn.has(t.name))return true;let i;if(t instanceof Le&&is_undeclared_ref(t.expression)&&(i=Rn.get(t.expression.name))&&i.has(t.property)){return true}}return!!has_annotation(this,Gt)||!e.pure_funcs(this)});R.DEFMETHOD("is_call_pure",return_false);Le.DEFMETHOD("is_call_pure",function(e){if(!e.option("unsafe"))return;const t=this.expression;let n;if(t instanceof We){n=wn.get("Array")}else if(t.is_boolean()){n=wn.get("Boolean")}else if(t.is_number(e)){n=wn.get("Number")}else if(t instanceof Rt){n=wn.get("RegExp")}else if(t.is_string(e)){n=wn.get("String")}else if(!this.may_throw_on_access(e)){n=wn.get("Object")}return n&&n.has(this.property)});const Nn=new Set(["Number","String","Array","Object","Function","Promise"]);(function(e){e(R,return_true);e(B,return_false);e(xt,return_false);e(Tt,return_false);function any(e,t){for(var n=e.length;--n>=0;)if(e[n].has_side_effects(t))return true;return false}e(V,function(e){return any(this.body,e)});e(Ne,function(e){if(!this.is_expr_pure(e)&&(!this.expression.is_call_pure(e)||this.expression.has_side_effects(e))){return true}return any(this.args,e)});e(ge,function(e){return this.expression.has_side_effects(e)||any(this.body,e)});e(be,function(e){return this.expression.has_side_effects(e)||any(this.body,e)});e(ye,function(e){return any(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)});e(Ee,function(e){return this.condition.has_side_effects(e)||this.body&&this.body.has_side_effects(e)||this.alternative&&this.alternative.has_side_effects(e)});e(K,function(e){return this.body.has_side_effects(e)});e(P,function(e){return this.body.has_side_effects(e)});e(J,return_false);e(et,function(e){if(this.extends&&this.extends.has_side_effects(e)){return true}return any(this.properties,e)});e(Ge,function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)});e(Xe,return_true);e(He,function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)});e(Ue,function(e){return On.has(this.operator)||this.expression.has_side_effects(e)});e(yt,function(e){return!this.is_declared(e)&&!Nn.has(this.name)});e(ht,return_false);e(ot,return_false);e(Ye,function(e){return any(this.properties,e)});e($e,function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.value.has_side_effects(e)});e(tt,function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.static&&this.value&&this.value.has_side_effects(e)});e(Je,function(e){return this.computed_key()&&this.key.has_side_effects(e)});e(Qe,function(e){return this.computed_key()&&this.key.has_side_effects(e)});e(Ze,function(e){return this.computed_key()&&this.key.has_side_effects(e)});e(We,function(e){return any(this.elements,e)});e(Le,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)});e(Be,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e)});e(Pe,function(e){return any(this.expressions,e)});e(Ae,function(e){return any(this.definitions,e)});e(Oe,function(){return this.value});e(se,return_false);e(oe,function(e){return any(this.segments,e)})})(function(e,t){e.DEFMETHOD("has_side_effects",t)});(function(e){e(R,return_true);e(xt,return_false);e(B,return_false);e(J,return_false);e(ot,return_false);e(Tt,return_false);function any(e,t){for(var n=e.length;--n>=0;)if(e[n].may_throw(t))return true;return false}e(et,function(e){if(this.extends&&this.extends.may_throw(e))return true;return any(this.properties,e)});e(We,function(e){return any(this.elements,e)});e(Xe,function(e){if(this.right.may_throw(e))return true;if(!e.has_directive("use strict")&&this.operator=="="&&this.left instanceof yt){return false}return this.left.may_throw(e)});e(Ge,function(e){return this.left.may_throw(e)||this.right.may_throw(e)});e(V,function(e){return any(this.body,e)});e(Ne,function(e){if(any(this.args,e))return true;if(this.is_expr_pure(e))return false;if(this.expression.may_throw(e))return true;return!(this.expression instanceof J)||any(this.expression.body,e)});e(be,function(e){return this.expression.may_throw(e)||any(this.body,e)});e(He,function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)});e(Ae,function(e){return any(this.definitions,e)});e(Le,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)});e(Ee,function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)});e(K,function(e){return this.body.may_throw(e)});e(Ye,function(e){return any(this.properties,e)});e($e,function(e){return this.value.may_throw(e)});e(tt,function(e){return this.computed_key()&&this.key.may_throw(e)||this.static&&this.value&&this.value.may_throw(e)});e(Je,function(e){return this.computed_key()&&this.key.may_throw(e)});e(Qe,function(e){return this.computed_key()&&this.key.may_throw(e)});e(Ze,function(e){return this.computed_key()&&this.key.may_throw(e)});e(le,function(e){return this.value&&this.value.may_throw(e)});e(Pe,function(e){return any(this.expressions,e)});e(P,function(e){return this.body.may_throw(e)});e(Be,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e)});e(ge,function(e){return this.expression.may_throw(e)||any(this.body,e)});e(yt,function(e){return!this.is_declared(e)&&!Nn.has(this.name)});e(ht,return_false);e(ye,function(e){return this.bcatch?this.bcatch.may_throw(e):any(this.body,e)||this.bfinally&&this.bfinally.may_throw(e)});e(Ue,function(e){if(this.operator=="typeof"&&this.expression instanceof yt)return false;return this.expression.may_throw(e)});e(Oe,function(e){if(!this.value)return false;return this.value.may_throw(e)})})(function(e,t){e.DEFMETHOD("may_throw",t)});(function(e){function all_refs_local(e){let t=true;walk(this,n=>{if(n instanceof yt){if(kn(this,En)){t=false;return zt}var i=n.definition();if(member(i,this.enclosed)&&!this.variables.has(i.name)){if(e){var r=e.find_variable(n);if(i.undeclared?!r:r===i){t="f";return true}}t=false;return zt}return true}if(n instanceof Tt&&this instanceof ne){t=false;return zt}});return t}e(R,return_false);e(xt,return_true);e(et,function(e){if(this.extends&&!this.extends.is_constant_expression(e)){return false}for(const t of this.properties){if(t.computed_key()&&!t.key.is_constant_expression(e)){return false}if(t.static&&t.value&&!t.value.is_constant_expression(e)){return false}}return all_refs_local.call(this,e)});e(J,all_refs_local);e(Ue,function(){return this.expression.is_constant_expression()});e(Ge,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()});e(We,function(){return this.elements.every(e=>e.is_constant_expression())});e(Ye,function(){return this.properties.every(e=>e.is_constant_expression())});e($e,function(){return!(this.key instanceof R)&&this.value.is_constant_expression()})})(function(e,t){e.DEFMETHOD("is_constant_expression",t)});function aborts(e){return e&&e.aborts()}(function(e){e(M,return_null);e(ue,return_this);function block_aborts(){for(var e=0;e{if(e instanceof ot){const n=e.definition();if((t||n.global)&&!o.has(n.id)){o.set(n.id,n)}}})}if(n.value){if(n.name instanceof re){n.walk(f)}else{var i=n.name.definition();map_add(c,i.id,n.value);if(!i.chained&&n.name.fixed_value()===n.value){s.set(i.id,n)}}if(n.value.has_side_effects(e)){n.value.walk(f)}}});return true}return scan_ref_scoped(i,a)});t.walk(f);f=new TreeWalker(scan_ref_scoped);o.forEach(function(e){var t=c.get(e.id);if(t)t.forEach(function(e){e.walk(f)})});var p=new TreeTransformer(function before(c,f,_){var h=p.parent();if(r){const e=a(c);if(e instanceof yt){var d=e.definition();var m=o.has(d.id);if(c instanceof Xe){if(!m||s.has(d.id)&&s.get(d.id)!==c){return maintain_this_binding(h,c,c.right.transform(p))}}else if(!m)return _?i.skip:make_node(Ft,c,{value:0})}}if(l!==t)return;var d;if(c.name&&(c instanceof it&&!keep_name(e.option("keep_classnames"),(d=c.name.definition()).name)||c instanceof te&&!keep_name(e.option("keep_fnames"),(d=c.name.definition()).name))){if(!o.has(d.id)||d.orig.length>1)c.name=null}if(c instanceof J&&!(c instanceof ee)){var E=!e.option("keep_fargs");for(var g=c.argnames,v=g.length;--v>=0;){var D=g[v];if(D instanceof Q){D=D.expression}if(D instanceof qe){D=D.left}if(!(D instanceof re)&&!o.has(D.definition().id)){Sn(D,_n);if(E){g.pop()}}else{E=false}}}if((c instanceof ie||c instanceof nt)&&c!==t){const t=c.name.definition();let r=t.global&&!n||o.has(t.id);if(!r){t.eliminated++;if(c instanceof nt){const t=c.drop_side_effect_free(e);if(t){return make_node(P,c,{body:t})}}return _?i.skip:make_node(B,c)}}if(c instanceof Ae&&!(h instanceof W&&h.init===c)){var b=!(h instanceof Z)&&!(c instanceof Te);var y=[],k=[],S=[];var A=[];c.definitions.forEach(function(t){if(t.value)t.value=t.value.transform(p);var n=t.name instanceof re;var i=n?new SymbolDef(null,{name:""}):t.name.definition();if(b&&i.global)return S.push(t);if(!(r||b)||n&&(t.name.names.length||t.name.is_array||e.option("pure_getters")!=true)||o.has(i.id)){if(t.value&&s.has(i.id)&&s.get(i.id)!==t){t.value=t.value.drop_side_effect_free(e)}if(t.name instanceof st){var a=u.get(i.id);if(a.length>1&&(!t.value||i.orig.indexOf(t.name)>i.eliminated)){if(t.value){var l=make_node(yt,t.name,t.name);i.references.push(l);var f=make_node(Xe,t,{operator:"=",left:l,right:t.value});if(s.get(i.id)===t){s.set(i.id,f)}A.push(f.transform(p))}remove(a,t);i.eliminated++;return}}if(t.value){if(A.length>0){if(S.length>0){A.push(t.value);t.value=make_sequence(t.value,A)}else{y.push(make_node(P,c,{body:make_sequence(c,A)}))}A=[]}S.push(t)}else{k.push(t)}}else if(i.orig[0]instanceof gt){var _=t.value&&t.value.drop_side_effect_free(e);if(_)A.push(_);t.value=null;k.push(t)}else{var _=t.value&&t.value.drop_side_effect_free(e);if(_){A.push(_)}i.eliminated++}});if(k.length>0||S.length>0){c.definitions=k.concat(S);y.push(c)}if(A.length>0){y.push(make_node(P,c,{body:make_sequence(c,A)}))}switch(y.length){case 0:return _?i.skip:make_node(B,c);case 1:return y[0];default:return _?i.splice(y):make_node(L,c,{body:y})}}if(c instanceof q){f(c,this);var T;if(c.init instanceof L){T=c.init;c.init=T.body.pop();T.body.push(c)}if(c.init instanceof P){c.init=c.init.body}else if(is_empty(c.init)){c.init=null}return!T?c:_?i.splice(T.body):T}if(c instanceof K&&c.body instanceof q){f(c,this);if(c.body instanceof L){var T=c.body;c.body=T.body.pop();T.body.push(c);return _?i.splice(T.body):T}return c}if(c instanceof L){f(c,this);if(_&&c.body.every(can_be_evicted_from_block)){return i.splice(c.body)}return c}if(c instanceof j){const e=l;l=c;f(c,this);l=e;return c}});t.transform(p);function scan_ref_scoped(e,n){var i;const r=a(e);if(r instanceof yt&&!is_ref_of(e.left,ut)&&t.variables.get(r.name)===(i=r.definition())){if(e instanceof Xe){e.right.walk(f);if(!i.chained&&e.left.fixed_value()===e.right){s.set(i.id,e)}}return true}if(e instanceof yt){i=e.definition();if(!o.has(i.id)){o.set(i.id,i);if(i.orig[0]instanceof gt){const e=i.scope.is_block_scope()&&i.scope.get_defun_scope().variables.get(i.name);if(e)o.set(e.id,e)}}return true}if(e instanceof j){var u=l;l=e;n();l=u;return true}}});j.DEFMETHOD("hoist_declarations",function(e){var t=this;if(e.has_directive("use asm"))return t;if(!Array.isArray(t.body))return t;var n=e.option("hoist_funs");var i=e.option("hoist_vars");if(n||i){var r=[];var a=[];var o=new Map,s=0,u=0;walk(t,e=>{if(e instanceof j&&e!==t)return true;if(e instanceof Te){++u;return true}});i=i&&u>1;var c=new TreeTransformer(function before(u){if(u!==t){if(u instanceof I){r.push(u);return make_node(B,u)}if(n&&u instanceof ie&&!(c.parent()instanceof Me)&&c.parent()===t){a.push(u);return make_node(B,u)}if(i&&u instanceof Te){u.definitions.forEach(function(e){if(e.name instanceof re)return;o.set(e.name.name,e);++s});var l=u.to_assignments(e);var f=c.parent();if(f instanceof W&&f.init===u){if(l==null){var p=u.definitions[0].name;return make_node(yt,p,p)}return l}if(f instanceof q&&f.init===u){return l}if(!l)return make_node(B,u);return make_node(P,u,{body:l})}if(u instanceof j)return u}});t=t.transform(c);if(s>0){var l=[];const e=t instanceof J;const n=e?t.args_as_names():null;o.forEach((t,i)=>{if(e&&n.some(e=>e.name===t.name.name)){o.delete(i)}else{t=t.clone();t.value=null;l.push(t);o.set(i,t)}});if(l.length>0){for(var f=0;fe.computed_key())){s(o,this);const e=new Map;const n=[];l.properties.forEach(({key:i,value:r})=>{const s=t.create_symbol(u.CTOR,{source:u,scope:find_scope(a),tentative_name:u.name+"_"+i});e.set(String(i),s.definition());n.push(make_node(Oe,o,{name:s,value:r}))});r.set(c.id,e);return i.splice(n)}}else if(o instanceof Ve&&o.expression instanceof yt){const e=r.get(o.expression.definition().id);if(e){const t=e.get(String(get_value(o.property)));const n=make_node(yt,o,{name:t.name,scope:o.expression.scope,thedef:t});n.reference({});return n}}});return t.transform(a)});(function(e){function trim(e,t,n){var i=e.length;if(!i)return null;var r=[],a=false;for(var o=0;o0){o[0].body=a.concat(o[0].body)}e.body=o;while(n=o[o.length-1]){var h=n.body[n.body.length-1];if(h instanceof _e&&t.loopcontrol_target(h)===e)n.body.pop();if(n.body.length||n instanceof be&&(s||n.expression.has_side_effects(t)))break;if(o.pop()===s)s=null}if(o.length==0){return make_node(L,e,{body:a.concat(make_node(P,e.expression,{body:e.expression}))}).optimize(t)}if(o.length==1&&(o[0]===u||o[0]===s)){var d=false;var m=new TreeWalker(function(t){if(d||t instanceof J||t instanceof P)return true;if(t instanceof _e&&m.loopcontrol_target(t)===e)d=true});e.walk(m);if(!d){var E=o[0].body.slice();var f=o[0].expression;if(f)E.unshift(make_node(P,f,{body:f}));E.unshift(make_node(P,e.expression,{body:e.expression}));return make_node(L,e,{body:E}).optimize(t)}}return e;function eliminate_branch(e,n){if(n&&!aborts(n)){n.body=n.body.concat(e.body)}else{trim_unreachable_code(t,e,a)}}});def_optimize(ye,function(e,t){tighten_body(e.body,t);if(e.bcatch&&e.bfinally&&e.bfinally.body.every(is_empty))e.bfinally=null;if(t.option("dead_code")&&e.body.every(is_empty)){var n=[];if(e.bcatch){trim_unreachable_code(t,e.bcatch,n)}if(e.bfinally)n.push(...e.bfinally.body);return make_node(L,e,{body:n}).optimize(t)}return e});Ae.DEFMETHOD("remove_initializers",function(){var e=[];this.definitions.forEach(function(t){if(t.name instanceof ot){t.value=null;e.push(t)}else{walk(t.name,n=>{if(n instanceof ot){e.push(make_node(Oe,t,{name:n,value:null}))}})}});this.definitions=e});Ae.DEFMETHOD("to_assignments",function(e){var t=e.option("reduce_vars");var n=this.definitions.reduce(function(e,n){if(n.value&&!(n.name instanceof re)){var i=make_node(yt,n.name,n.name);e.push(make_node(Xe,n,{operator:"=",left:i,right:n.value}));if(t)i.definition().fixed=false}else if(n.value){var r=make_node(Oe,n,{name:n.name,value:n.value});var a=make_node(Te,n,{definitions:[r]});e.push(a)}n=n.name.definition();n.eliminated++;n.replaced--;return e},[]);if(n.length==0)return null;return make_sequence(this,n)});def_optimize(Ae,function(e){if(e.definitions.length==0)return make_node(B,e);return e});def_optimize(we,function(e){return e});function retain_top_func(e,t){return t.top_retain&&e instanceof ie&&kn(e,bn)&&e.name&&t.top_retain(e.name)}def_optimize(Ne,function(e,t){var n=e.expression;var i=n;inline_array_like_spread(e,t,e.args);var r=e.args.every(e=>!(e instanceof Q));if(t.option("reduce_vars")&&i instanceof yt&&!has_annotation(e,Xt)){const e=i.fixed_value();if(!retain_top_func(e,t)){i=e}}var a=i instanceof J;if(a&&i.pinned())return e;if(t.option("unused")&&r&&a&&!i.uses_arguments){var o=0,s=0;for(var u=0,c=e.args.length;u=i.argnames.length;if(f||kn(i.argnames[u],_n)){var l=e.args[u].drop_side_effect_free(t);if(l){e.args[o++]=l}else if(!f){e.args[o++]=make_node(Ft,e.args[u],{value:0});continue}}else{e.args[o++]=e.args[u]}s=o}e.args.length=s}if(t.option("unsafe")){if(is_undeclared_ref(n))switch(n.name){case"Array":if(e.args.length!=1){return make_node(We,e,{elements:e.args}).optimize(t)}else if(e.args[0]instanceof Ft&&e.args[0].value<=11){const t=[];for(let n=0;n=1&&e.args.length<=2&&e.args.every(e=>{var n=e.evaluate(t);p.push(n);return e!==n})){let[n,i]=p;n=regexp_source_fix(new RegExp(n).source);const r=make_node(Rt,e,{value:{source:n,flags:i}});if(r._eval(t)!==r){return r}}break}else if(n instanceof Le)switch(n.property){case"toString":if(e.args.length==0&&!n.expression.may_throw_on_access(t)){return make_node(Ge,e,{left:make_node(Ot,e,{value:""}),operator:"+",right:n.expression}).optimize(t)}break;case"join":if(n.expression instanceof We)e:{var _;if(e.args.length>0){_=e.args[0].evaluate(t);if(_===e.args[0])break e}var h=[];var d=[];for(var u=0,c=n.expression.elements.length;u0){h.push(make_node(Ot,e,{value:d.join(_)}));d.length=0}h.push(m)}}if(d.length>0){h.push(make_node(Ot,e,{value:d.join(_)}))}if(h.length==0)return make_node(Ot,e,{value:""});if(h.length==1){if(h[0].is_string(t)){return h[0]}return make_node(Ge,h[0],{operator:"+",left:make_node(Ot,e,{value:""}),right:h[0]})}if(_==""){var g;if(h[0].is_string(t)||h[1].is_string(t)){g=h.shift()}else{g=make_node(Ot,e,{value:""})}return h.reduce(function(e,t){return make_node(Ge,t,{operator:"+",left:e,right:t})},g).optimize(t)}var l=e.clone();l.expression=l.expression.clone();l.expression.expression=l.expression.expression.clone();l.expression.expression.elements=h;return best_of(t,e,l)}break;case"charAt":if(n.expression.is_string(t)){var v=e.args[0];var D=v?v.evaluate(t):0;if(D!==v){return make_node(Be,n,{expression:n.expression,property:make_node_from_constant(D|0,v||n)}).optimize(t)}}break;case"apply":if(e.args.length==2&&e.args[1]instanceof We){var b=e.args[1].elements.slice();b.unshift(e.args[0]);return make_node(Ne,e,{expression:make_node(Le,n,{expression:n.expression,property:"call"}),args:b}).optimize(t)}break;case"call":var y=n.expression;if(y instanceof yt){y=y.fixed_value()}if(y instanceof J&&!y.contains_this()){return(e.args.length?make_sequence(this,[e.args[0],make_node(Ne,e,{expression:n.expression,args:e.args.slice(1)})]):make_node(Ne,e,{expression:n.expression,args:[]})).optimize(t)}break}}if(t.option("unsafe_Function")&&is_undeclared_ref(n)&&n.name=="Function"){if(e.args.length==0)return make_node(te,e,{argnames:[],body:[]}).optimize(t);if(e.args.every(e=>e instanceof Ot)){try{var k="n(function("+e.args.slice(0,-1).map(function(e){return e.value}).join(",")+"){"+e.args[e.args.length-1].value+"})";var S=parse(k);var A={ie8:t.option("ie8")};S.figure_out_scope(A);var T=new Compressor(t.options);S=S.transform(T);S.figure_out_scope(A);on.reset();S.compute_char_frequency(A);S.mangle_names(A);var C;walk(S,e=>{if(is_func_expr(e)){C=e;return zt}});var k=OutputStream();L.prototype._codegen.call(C,C,k);e.args=[make_node(Ot,e,{value:C.argnames.map(function(e){return e.print_to_string()}).join(",")}),make_node(Ot,e.args[e.args.length-1],{value:k.get().replace(/^{|}$/g,"")})];return e}catch(e){if(!(e instanceof JS_Parse_Error)){throw e}}}}var x=a&&i.body[0];var O=a&&!i.is_generator&&!i.async;var F=O&&t.option("inline")&&!e.is_expr_pure(t);if(F&&x instanceof le){let n=x.value;if(!n||n.is_constant_expression()){if(n){n=n.clone(true)}else{n=make_node(Pt,e)}const i=e.args.concat(n);return make_sequence(e,i).optimize(t)}if(i.argnames.length===1&&i.argnames[0]instanceof ft&&e.args.length<2&&n instanceof yt&&n.name===i.argnames[0].name){const n=(e.args[0]||make_node(Pt)).optimize(t);let i;if(n instanceof Ve&&(i=t.parent())instanceof Ne&&i.expression===e){return make_sequence(e,[make_node(Ft,e,{value:0}),n])}return n}}if(F){var w,R,M=-1;let a;let o;let s;if(r&&!i.uses_arguments&&!(t.parent()instanceof et)&&!(i.name&&i instanceof te)&&(o=can_flatten_body(x))&&(n===i||has_annotation(e,Ht)||t.option("unused")&&(a=n.definition()).references.length==1&&!recursive_ref(t,a)&&i.is_constant_expression(n.scope))&&!has_annotation(e,Gt|Xt)&&!i.contains_this()&&can_inject_symbols()&&(s=find_scope(t))&&!scope_encloses_variables_in_this_scope(s,i)&&!function in_default_assign(){let e=0;let n;while(n=t.parent(e++)){if(n instanceof qe)return true;if(n instanceof V)break}return false}()&&!(w instanceof et)){Sn(i,vn);s.add_child_scope(i);return make_sequence(e,flatten_fn(o)).optimize(t)}}if(F&&has_annotation(e,Ht)){Sn(i,vn);i=make_node(i.CTOR===ie?te:i.CTOR,i,i);i.figure_out_scope({},{parent_scope:find_scope(t),toplevel:t.get_toplevel()});return make_node(Ne,e,{expression:i,args:e.args}).optimize(t)}const N=O&&t.option("side_effects")&&i.body.every(is_empty);if(N){var b=e.args.concat(make_node(Pt,e));return make_sequence(e,b).optimize(t)}if(t.option("negate_iife")&&t.parent()instanceof P&&is_iife_call(e)){return e.negate(t,true)}var I=e.evaluate(t);if(I!==e){I=make_node_from_constant(I,e).optimize(t);return best_of(t,I,e)}return e;function return_value(t){if(!t)return make_node(Pt,e);if(t instanceof le){if(!t.value)return make_node(Pt,e);return t.value.clone(true)}if(t instanceof P){return make_node(Ke,t,{operator:"void",expression:t.body.clone(true)})}}function can_flatten_body(e){var n=i.body;var r=n.length;if(t.option("inline")<3){return r==1&&return_value(e)}e=null;for(var a=0;a!e.value)){return false}}else if(e){return false}else if(!(o instanceof B)){e=o}}return return_value(e)}function can_inject_args(e,t){for(var n=0,r=i.argnames.length;n=0;){var s=a.definitions[o].name;if(s instanceof re||e.has(s.name)||Cn.has(s.name)||w.conflicting_def(s.name)){return false}if(R)R.push(s.definition())}}return true}function can_inject_symbols(){var e=new Set;do{w=t.parent(++M);if(w.is_block_scope()&&w.block_scope){w.block_scope.variables.forEach(function(t){e.add(t.name)})}if(w instanceof ke){if(w.argname){e.add(w.argname.name)}}else if(w instanceof z){R=[]}else if(w instanceof yt){if(w.fixed_value()instanceof j)return false}}while(!(w instanceof j));var n=!(w instanceof Z)||t.toplevel.vars;var r=t.option("inline");if(!can_inject_vars(e,r>=3&&n))return false;if(!can_inject_args(e,r>=2&&n))return false;return!R||R.length==0||!is_reachable(i,R)}function append_var(t,n,i,r){var a=i.definition();const o=w.variables.has(i.name);if(!o){w.variables.set(i.name,a);w.enclosed.push(a);t.push(make_node(Oe,i,{name:i,value:null}))}var s=make_node(yt,i,i);a.references.push(s);if(r)n.push(make_node(Xe,e,{operator:"=",left:s,right:r.clone()}))}function flatten_args(t,n){var r=i.argnames.length;for(var a=e.args.length;--a>=r;){n.push(e.args[a])}for(a=r;--a>=0;){var o=i.argnames[a];var s=e.args[a];if(kn(o,_n)||!o.name||w.conflicting_def(o.name)){if(s)n.push(s)}else{var u=make_node(st,o,o);o.definition().orig.push(u);if(!s&&R)s=make_node(Pt,e);append_var(t,n,u,s)}}t.reverse();n.reverse()}function flatten_vars(e,t){var n=t.length;for(var r=0,a=i.body.length;re.name!=l.name)){var f=i.variables.get(l.name);var p=make_node(yt,l,l);f.references.push(p);t.splice(n++,0,make_node(Xe,c,{operator:"=",left:p,right:make_node(Pt,l)}))}}}}function flatten_fn(e){var n=[];var r=[];flatten_args(n,r);flatten_vars(n,r);r.push(e);if(n.length){const e=w.body.indexOf(t.parent(M-1))+1;w.body.splice(e,0,make_node(Te,i,{definitions:n}))}return r.map(e=>e.clone(true))}});def_optimize(Ie,function(e,t){if(t.option("unsafe")&&is_undeclared_ref(e.expression)&&["Object","RegExp","Function","Error","Array"].includes(e.expression.name))return make_node(Ne,e,e).transform(t);return e});def_optimize(Pe,function(e,t){if(!t.option("side_effects"))return e;var n=[];filter_for_side_effects();var i=n.length-1;trim_right_for_undefined();if(i==0){e=maintain_this_binding(t.parent(),t.self(),n[0]);if(!(e instanceof Pe))e=e.optimize(t);return e}e.expressions=n;return e;function filter_for_side_effects(){var i=first_in_statement(t);var r=e.expressions.length-1;e.expressions.forEach(function(e,a){if(a0&&is_undefined(n[i],t))i--;if(i0){var n=this.clone();n.right=make_sequence(this.right,t.slice(a));t=t.slice(0,a);t.push(n);return make_sequence(this,t).optimize(e)}}}return this});var Vn=makePredicate("== === != !== * & | ^");function is_object(e){return e instanceof We||e instanceof J||e instanceof Ye||e instanceof et}def_optimize(Ge,function(e,t){function reversible(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(t)&&!e.right.has_side_effects(t)}function reverse(t){if(reversible()){if(t)e.operator=t;var n=e.left;e.left=e.right;e.right=n}}if(Vn.has(e.operator)){if(e.right.is_constant()&&!e.left.is_constant()){if(!(e.left instanceof Ge&&O[e.left.operator]>=O[e.operator])){reverse()}}}e=e.lift_sequences(t);if(t.option("comparisons"))switch(e.operator){case"===":case"!==":var n=true;if(e.left.is_string(t)&&e.right.is_string(t)||e.left.is_number(t)&&e.right.is_number(t)||e.left.is_boolean()&&e.right.is_boolean()||e.left.equivalent_to(e.right)){e.operator=e.operator.substr(0,2)}case"==":case"!=":if(!n&&is_undefined(e.left,t)){e.left=make_node(Nt,e.left)}else if(t.option("typeofs")&&e.left instanceof Ot&&e.left.value=="undefined"&&e.right instanceof Ke&&e.right.operator=="typeof"){var i=e.right.expression;if(i instanceof yt?i.is_declared(t):!(i instanceof Ve&&t.option("ie8"))){e.right=i;e.left=make_node(Pt,e.left).optimize(t);if(e.operator.length==2)e.operator+="="}}else if(e.left instanceof yt&&e.right instanceof yt&&e.left.definition()===e.right.definition()&&is_object(e.left.fixed_value())){return make_node(e.operator[0]=="="?Kt:Ut,e)}break;case"&&":case"||":var r=e.left;if(r.operator==e.operator){r=r.right}if(r instanceof Ge&&r.operator==(e.operator=="&&"?"!==":"===")&&e.right instanceof Ge&&r.operator==e.right.operator&&(is_undefined(r.left,t)&&e.right.left instanceof Nt||r.left instanceof Nt&&is_undefined(e.right.left,t))&&!r.right.has_side_effects(t)&&r.right.equivalent_to(e.right.right)){var a=make_node(Ge,e,{operator:r.operator.slice(0,-1),left:make_node(Nt,e),right:r.right});if(r!==e.left){a=make_node(Ge,e,{operator:e.operator,left:e.left.left,right:a})}return a}break}if(e.operator=="+"&&t.in_boolean_context()){var o=e.left.evaluate(t);var s=e.right.evaluate(t);if(o&&typeof o=="string"){return make_sequence(e,[e.right,make_node(Kt,e)]).optimize(t)}if(s&&typeof s=="string"){return make_sequence(e,[e.left,make_node(Kt,e)]).optimize(t)}}if(t.option("comparisons")&&e.is_boolean()){if(!(t.parent()instanceof Ge)||t.parent()instanceof Xe){var u=make_node(Ke,e,{operator:"!",expression:e.negate(t,first_in_statement(t))});e=best_of(t,e,u)}if(t.option("unsafe_comps")){switch(e.operator){case"<":reverse(">");break;case"<=":reverse(">=");break}}}if(e.operator=="+"){if(e.right instanceof Ot&&e.right.getValue()==""&&e.left.is_string(t)){return e.left}if(e.left instanceof Ot&&e.left.getValue()==""&&e.right.is_string(t)){return e.right}if(e.left instanceof Ge&&e.left.operator=="+"&&e.left.left instanceof Ot&&e.left.left.getValue()==""&&e.right.is_string(t)){e.left=e.left.right;return e.transform(t)}}if(t.option("evaluate")){switch(e.operator){case"&&":var o=kn(e.left,hn)?true:kn(e.left,dn)?false:e.left.evaluate(t);if(!o){return maintain_this_binding(t.parent(),t.self(),e.left).optimize(t)}else if(!(o instanceof R)){return make_sequence(e,[e.left,e.right]).optimize(t)}var s=e.right.evaluate(t);if(!s){if(t.in_boolean_context()){return make_sequence(e,[e.left,make_node(Ut,e)]).optimize(t)}else{Sn(e,dn)}}else if(!(s instanceof R)){var c=t.parent();if(c.operator=="&&"&&c.left===t.self()||t.in_boolean_context()){return e.left.optimize(t)}}if(e.left.operator=="||"){var l=e.left.right.evaluate(t);if(!l)return make_node(He,e,{condition:e.left.left,consequent:e.right,alternative:e.left.right}).optimize(t)}break;case"||":var o=kn(e.left,hn)?true:kn(e.left,dn)?false:e.left.evaluate(t);if(!o){return make_sequence(e,[e.left,e.right]).optimize(t)}else if(!(o instanceof R)){return maintain_this_binding(t.parent(),t.self(),e.left).optimize(t)}var s=e.right.evaluate(t);if(!s){var c=t.parent();if(c.operator=="||"&&c.left===t.self()||t.in_boolean_context()){return e.left.optimize(t)}}else if(!(s instanceof R)){if(t.in_boolean_context()){return make_sequence(e,[e.left,make_node(Kt,e)]).optimize(t)}else{Sn(e,hn)}}if(e.left.operator=="&&"){var l=e.left.right.evaluate(t);if(l&&!(l instanceof R))return make_node(He,e,{condition:e.left.left,consequent:e.left.right,alternative:e.right}).optimize(t)}break;case"??":if(is_nullish(e.left)){return e.right}var o=e.left.evaluate(t);if(!(o instanceof R)){return o==null?e.right:e.left}if(t.in_boolean_context()){const n=e.right.evaluate(t);if(!(n instanceof R)&&!n){return e.left}}}var f=true;switch(e.operator){case"+":if(e.left instanceof xt&&e.right instanceof Ge&&e.right.operator=="+"&&e.right.is_string(t)){var p=make_node(Ge,e,{operator:"+",left:e.left,right:e.right.left});var _=p.optimize(t);if(p!==_){e=make_node(Ge,e,{operator:"+",left:_,right:e.right.right})}}if(e.right instanceof xt&&e.left instanceof Ge&&e.left.operator=="+"&&e.left.is_string(t)){var p=make_node(Ge,e,{operator:"+",left:e.left.right,right:e.right});var h=p.optimize(t);if(p!==h){e=make_node(Ge,e,{operator:"+",left:e.left.left,right:h})}}if(e.left instanceof Ge&&e.left.operator=="+"&&e.left.is_string(t)&&e.right instanceof Ge&&e.right.operator=="+"&&e.right.is_string(t)){var p=make_node(Ge,e,{operator:"+",left:e.left.right,right:e.right.left});var d=p.optimize(t);if(p!==d){e=make_node(Ge,e,{operator:"+",left:make_node(Ge,e.left,{operator:"+",left:e.left.left,right:d}),right:e.right.right})}}if(e.right instanceof Ke&&e.right.operator=="-"&&e.left.is_number(t)){e=make_node(Ge,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof Ke&&e.left.operator=="-"&&reversible()&&e.right.is_number(t)){e=make_node(Ge,e,{operator:"-",left:e.right,right:e.left.expression});break}if(e.left instanceof oe){var _=e.left;var h=e.right.evaluate(t);if(h!=e.right){_.segments[_.segments.length-1].value+=h.toString();return _}}if(e.right instanceof oe){var h=e.right;var _=e.left.evaluate(t);if(_!=e.left){h.segments[0].value=_.toString()+h.segments[0].value;return h}}if(e.left instanceof oe&&e.right instanceof oe){var _=e.left;var m=_.segments;var h=e.right;m[m.length-1].value+=h.segments[0].value;for(var E=1;E=O[e.operator])){var g=make_node(Ge,e,{operator:e.operator,left:e.right,right:e.left});if(e.right instanceof xt&&!(e.left instanceof xt)){e=best_of(t,g,e)}else{e=best_of(t,e,g)}}if(f&&e.is_number(t)){if(e.right instanceof Ge&&e.right.operator==e.operator){e=make_node(Ge,e,{operator:e.operator,left:make_node(Ge,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})}if(e.right instanceof xt&&e.left instanceof Ge&&e.left.operator==e.operator){if(e.left.left instanceof xt){e=make_node(Ge,e,{operator:e.operator,left:make_node(Ge,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right})}else if(e.left.right instanceof xt){e=make_node(Ge,e,{operator:e.operator,left:make_node(Ge,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left})}}if(e.left instanceof Ge&&e.left.operator==e.operator&&e.left.right instanceof xt&&e.right instanceof Ge&&e.right.operator==e.operator&&e.right.left instanceof xt){e=make_node(Ge,e,{operator:e.operator,left:make_node(Ge,e.left,{operator:e.operator,left:make_node(Ge,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})}}}}if(e.right instanceof Ge&&e.right.operator==e.operator&&(xn.has(e.operator)||e.operator=="+"&&(e.right.left.is_string(t)||e.left.is_string(t)&&e.right.right.is_string(t)))){e.left=make_node(Ge,e.left,{operator:e.operator,left:e.left,right:e.right.left});e.right=e.right.right;return e.transform(t)}var v=e.evaluate(t);if(v!==e){v=make_node_from_constant(v,e).optimize(t);return best_of(t,v,e)}return e});def_optimize(kt,function(e){return e});function recursive_ref(e,t){var n;for(var i=0;n=e.parent(i);i++){if(n instanceof J||n instanceof et){var r=n.name;if(r&&r.definition()===t)break}}return n}function within_array_or_object_literal(e){var t,n=0;while(t=e.parent(n++)){if(t instanceof M)return false;if(t instanceof We||t instanceof je||t instanceof Ye){return true}}return false}def_optimize(yt,function(e,t){if(!t.option("ie8")&&is_undeclared_ref(e)&&!t.find_parent($)){switch(e.name){case"undefined":return make_node(Pt,e).optimize(t);case"NaN":return make_node(It,e).optimize(t);case"Infinity":return make_node(Lt,e).optimize(t)}}const n=t.parent();if(t.option("reduce_vars")&&is_lhs(e,n)!==e){const a=e.definition();const o=find_scope(t);if(t.top_retain&&a.global&&t.top_retain(a)){a.fixed=false;a.single_use=false;return e}let s=e.fixed_value();let u=a.single_use&&!(n instanceof Ne&&n.is_expr_pure(t)||has_annotation(n,Xt));if(u&&(s instanceof J||s instanceof et)){if(retain_top_func(s,t)){u=false}else if(a.scope!==e.scope&&(a.escaped==1||kn(s,En)||within_array_or_object_literal(t))){u=false}else if(recursive_ref(t,a)){u=false}else if(a.scope!==e.scope||a.orig[0]instanceof ft){u=s.is_constant_expression(e.scope);if(u=="f"){var i=e.scope;do{if(i instanceof ie||is_func_expr(i)){Sn(i,En)}}while(i=i.parent_scope)}}}if(u&&s instanceof J){u=a.scope===e.scope&&!scope_encloses_variables_in_this_scope(o,s)||n instanceof Ne&&n.expression===e&&!scope_encloses_variables_in_this_scope(o,s)}if(u&&s instanceof et){const e=!s.extends||!s.extends.may_throw(t)&&!s.extends.has_side_effects(t);u=e&&!s.properties.some(e=>e.may_throw(t)||e.has_side_effects(t))}if(u&&s){if(s instanceof nt){Sn(s,vn);s=make_node(it,s,s)}if(s instanceof ie){Sn(s,vn);s=make_node(te,s,s)}if(a.recursive_refs>0&&s.name instanceof pt){const e=s.name.definition();let t=s.variables.get(s.name.name);let n=t&&t.orig[0];if(!(n instanceof dt)){n=make_node(dt,s.name,s.name);n.scope=s;s.name=n;t=s.def_function(n)}walk(s,n=>{if(n instanceof yt&&n.definition()===e){n.thedef=t;t.references.push(n)}})}if((s instanceof J||s instanceof et)&&s.parent_scope!==o){s=s.clone(true,t.get_toplevel());o.add_child_scope(s)}return s.optimize(t)}if(s){let e;if(s instanceof Tt){if(!(a.orig[0]instanceof ft)&&a.references.every(e=>a.scope===e.scope)){e=s}}else{var r=s.evaluate(t);if(r!==s&&(t.option("unsafe_regexp")||!(r instanceof RegExp))){e=make_node_from_constant(r,s)}}if(e){const n=a.name.length;const i=e.size();let r=0;if(t.option("unused")&&!t.exposed(a)){r=(n+2+i)/(a.references.length-a.assignments)}if(i<=n+r){return e}}}}return e});function scope_encloses_variables_in_this_scope(e,t){for(const n of t.enclosed){if(t.variables.has(n.name)){continue}const i=e.find_variable(n.name);if(i){if(i===n)continue;return true}}return false}function is_atomic(e,t){return e instanceof yt||e.TYPE===t.TYPE}def_optimize(Pt,function(e,t){if(t.option("unsafe_undefined")){var n=find_variable(t,"undefined");if(n){var i=make_node(yt,e,{name:"undefined",scope:n.scope,thedef:n});Sn(i,mn);return i}}var r=is_lhs(t.self(),t.parent());if(r&&is_atomic(r,e))return e;return make_node(Ke,e,{operator:"void",expression:make_node(Ft,e,{value:0})})});def_optimize(Lt,function(e,t){var n=is_lhs(t.self(),t.parent());if(n&&is_atomic(n,e))return e;if(t.option("keep_infinity")&&!(n&&!is_atomic(n,e))&&!find_variable(t,"Infinity")){return e}return make_node(Ge,e,{operator:"/",left:make_node(Ft,e,{value:1}),right:make_node(Ft,e,{value:0})})});def_optimize(It,function(e,t){var n=is_lhs(t.self(),t.parent());if(n&&!is_atomic(n,e)||find_variable(t,"NaN")){return make_node(Ge,e,{operator:"/",left:make_node(Ft,e,{value:0}),right:make_node(Ft,e,{value:0})})}return e});function is_reachable(e,t){const n=e=>{if(e instanceof yt&&member(e.definition(),t)){return zt}};return walk_parent(e,(t,i)=>{if(t instanceof j&&t!==e){var r=i.parent();if(r instanceof Ne&&r.expression===t)return;if(walk(t,n))return zt;return true}})}const Ln=makePredicate("+ - / * % >> << >>> | ^ &");const Bn=makePredicate("* | ^ &");def_optimize(Xe,function(e,t){var n;if(t.option("dead_code")&&e.left instanceof yt&&(n=e.left.definition()).scope===t.find_parent(J)){var i=0,r,a=e;do{r=a;a=t.parent(i++);if(a instanceof ce){if(in_try(i,a))break;if(is_reachable(n.scope,[n]))break;if(e.operator=="=")return e.right;n.fixed=false;return make_node(Ge,e,{operator:e.operator.slice(0,-1),left:e.left,right:e.right}).optimize(t)}}while(a instanceof Ge&&a.right===r||a instanceof Pe&&a.tail_node()===r)}e=e.lift_sequences(t);if(e.operator=="="&&e.left instanceof yt&&e.right instanceof Ge){if(e.right.left instanceof yt&&e.right.left.name==e.left.name&&Ln.has(e.right.operator)){e.operator=e.right.operator+"=";e.right=e.right.right}else if(e.right.right instanceof yt&&e.right.right.name==e.left.name&&Bn.has(e.right.operator)&&!e.right.left.has_side_effects(t)){e.operator=e.right.operator+"=";e.right=e.right.left}}return e;function in_try(n,i){var r=e.right;e.right=make_node(Nt,r);var a=i.may_throw(t);e.right=r;var o=e.left.definition().scope;var s;while((s=t.parent(n++))!==o){if(s instanceof ye){if(s.bfinally)return true;if(a&&s.bcatch)return true}}}});def_optimize(qe,function(e,t){if(!t.option("evaluate")){return e}var n=e.right.evaluate(t);if(n===undefined){e=e.left}else if(n!==e.right){n=make_node_from_constant(n,e.right);e.right=best_of_expression(n,e.right)}return e});function is_nullish(e){let t;return e instanceof Nt||is_undefined(e)||e instanceof yt&&(t=e.definition().fixed)instanceof R&&is_nullish(t)}function is_nullish_check(e,t,n){if(t.may_throw(n))return false;let i;if(e instanceof Ge&&e.operator==="=="&&((i=is_nullish(e.left)&&e.left)||(i=is_nullish(e.right)&&e.right))&&(i===e.left?e.right:e.left).equivalent_to(t)){return true}if(e instanceof Ge&&e.operator==="||"){let n;let i;const r=e=>{if(!(e instanceof Ge&&(e.operator==="==="||e.operator==="=="))){return false}let r=0;let a;if(e.left instanceof Nt){r++;n=e;a=e.right}if(e.right instanceof Nt){r++;n=e;a=e.left}if(is_undefined(e.left)){r++;i=e;a=e.right}if(is_undefined(e.right)){r++;i=e;a=e.left}if(r!==1){return false}if(!a.equivalent_to(t)){return false}return true};if(!r(e.left))return false;if(!r(e.right))return false;if(n&&i&&n!==i){return true}}return false}def_optimize(He,function(e,t){if(!t.option("conditionals"))return e;if(e.condition instanceof Pe){var n=e.condition.expressions.slice();e.condition=n.pop();n.push(e);return make_sequence(e,n)}var i=e.condition.evaluate(t);if(i!==e.condition){if(i){return maintain_this_binding(t.parent(),t.self(),e.consequent)}else{return maintain_this_binding(t.parent(),t.self(),e.alternative)}}var r=i.negate(t,first_in_statement(t));if(best_of(t,i,r)===r){e=make_node(He,e,{condition:r,consequent:e.alternative,alternative:e.consequent})}var a=e.condition;var o=e.consequent;var s=e.alternative;if(a instanceof yt&&o instanceof yt&&a.definition()===o.definition()){return make_node(Ge,e,{operator:"||",left:a,right:s})}if(o instanceof Xe&&s instanceof Xe&&o.operator==s.operator&&o.left.equivalent_to(s.left)&&(!e.condition.has_side_effects(t)||o.operator=="="&&!o.left.has_side_effects(t))){return make_node(Xe,e,{operator:o.operator,left:o.left,right:make_node(He,e,{condition:e.condition,consequent:o.right,alternative:s.right})})}var u;if(o instanceof Ne&&s.TYPE===o.TYPE&&o.args.length>0&&o.args.length==s.args.length&&o.expression.equivalent_to(s.expression)&&!e.condition.has_side_effects(t)&&!o.expression.has_side_effects(t)&&typeof(u=single_arg_diff())=="number"){var c=o.clone();c.args[u]=make_node(He,e,{condition:e.condition,consequent:o.args[u],alternative:s.args[u]});return c}if(s instanceof He&&o.equivalent_to(s.consequent)){return make_node(He,e,{condition:make_node(Ge,e,{operator:"||",left:a,right:s.condition}),consequent:o,alternative:s.alternative}).optimize(t)}if(t.option("ecma")>=2020&&is_nullish_check(a,s,t)){return make_node(Ge,e,{operator:"??",left:s,right:o}).optimize(t)}if(s instanceof Pe&&o.equivalent_to(s.expressions[s.expressions.length-1])){return make_sequence(e,[make_node(Ge,e,{operator:"||",left:a,right:make_sequence(e,s.expressions.slice(0,-1))}),o]).optimize(t)}if(s instanceof Ge&&s.operator=="&&"&&o.equivalent_to(s.right)){return make_node(Ge,e,{operator:"&&",left:make_node(Ge,e,{operator:"||",left:a,right:s.left}),right:o}).optimize(t)}if(o instanceof He&&o.alternative.equivalent_to(s)){return make_node(He,e,{condition:make_node(Ge,e,{left:e.condition,operator:"&&",right:o.condition}),consequent:o.consequent,alternative:s})}if(o.equivalent_to(s)){return make_sequence(e,[e.condition,o]).optimize(t)}if(o instanceof Ge&&o.operator=="||"&&o.right.equivalent_to(s)){return make_node(Ge,e,{operator:"||",left:make_node(Ge,e,{operator:"&&",left:e.condition,right:o.left}),right:s}).optimize(t)}var l=t.in_boolean_context();if(is_true(e.consequent)){if(is_false(e.alternative)){return booleanize(e.condition)}return make_node(Ge,e,{operator:"||",left:booleanize(e.condition),right:e.alternative})}if(is_false(e.consequent)){if(is_true(e.alternative)){return booleanize(e.condition.negate(t))}return make_node(Ge,e,{operator:"&&",left:booleanize(e.condition.negate(t)),right:e.alternative})}if(is_true(e.alternative)){return make_node(Ge,e,{operator:"||",left:booleanize(e.condition.negate(t)),right:e.consequent})}if(is_false(e.alternative)){return make_node(Ge,e,{operator:"&&",left:booleanize(e.condition),right:e.consequent})}return e;function booleanize(e){if(e.is_boolean())return e;return make_node(Ke,e,{operator:"!",expression:e.negate(t)})}function is_true(e){return e instanceof Kt||l&&e instanceof xt&&e.getValue()||e instanceof Ke&&e.operator=="!"&&e.expression instanceof xt&&!e.expression.getValue()}function is_false(e){return e instanceof Ut||l&&e instanceof xt&&!e.getValue()||e instanceof Ke&&e.operator=="!"&&e.expression instanceof xt&&e.expression.getValue()}function single_arg_diff(){var e=o.args;var t=s.args;for(var n=0,i=e.length;n1){_=null}}else if(!_&&!t.option("keep_fargs")&&u=s.argnames.length){_=s.create_symbol(ft,{source:s,scope:s,tentative_name:"argument_"+s.argnames.length});s.argnames.push(_)}}if(_){var d=make_node(yt,e,_);d.reference({});An(_,_n);return d}}if(is_lhs(e,t.parent()))return e;if(r!==i){var m=e.flatten_object(o,t);if(m){n=e.expression=m.expression;i=e.property=m.property}}if(t.option("properties")&&t.option("side_effects")&&i instanceof Ft&&n instanceof We){var u=i.getValue();var E=n.elements;var g=E[u];e:if(safe_to_flatten(g,t)){var v=true;var D=[];for(var b=E.length;--b>u;){var a=E[b].drop_side_effect_free(t);if(a){D.unshift(a);if(v&&a.has_side_effects(t))v=false}}if(g instanceof Q)break e;g=g instanceof Vt?make_node(Pt,g):g;if(!v)D.unshift(g);while(--b>=0){var a=E[b];if(a instanceof Q)break e;a=a.drop_side_effect_free(t);if(a)D.unshift(a);else u--}if(v){D.push(g);return make_sequence(e,D).optimize(t)}else return make_node(Be,e,{expression:make_node(We,n,{elements:D}),property:make_node(Ft,i,{value:u})})}}var y=e.evaluate(t);if(y!==e){y=make_node_from_constant(y,e).optimize(t);return best_of(t,y,e)}return e});J.DEFMETHOD("contains_this",function(){return walk(this,e=>{if(e instanceof Tt)return zt;if(e!==this&&e instanceof j&&!(e instanceof ne)){return true}})});Ve.DEFMETHOD("flatten_object",function(e,t){if(!t.option("properties"))return;var n=t.option("unsafe_arrows")&&t.option("ecma")>=2015;var i=this.expression;if(i instanceof Ye){var r=i.properties;for(var a=r.length;--a>=0;){var o=r[a];if(""+(o instanceof Je?o.key.name:o.key)==e){if(!r.every(e=>{return e instanceof je||n&&e instanceof Je&&!e.is_generator}))break;if(!safe_to_flatten(o.value,t))break;return make_node(Be,this,{expression:make_node(We,i,{elements:r.map(function(e){var t=e.value;if(t instanceof ee)t=make_node(te,t,t);var n=e.key;if(n instanceof R&&!(n instanceof _t)){return make_sequence(e,[n,t])}return t})}),property:make_node(Ft,this,{value:a})})}}}});def_optimize(Le,function(e,t){const n=t.parent();if(is_lhs(e,n))return e;if(t.option("unsafe_proto")&&e.expression instanceof Le&&e.expression.property=="prototype"){var i=e.expression.expression;if(is_undeclared_ref(i))switch(i.name){case"Array":e.expression=make_node(We,e.expression,{elements:[]});break;case"Function":e.expression=make_node(te,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=make_node(Ft,e.expression,{value:0});break;case"Object":e.expression=make_node(Ye,e.expression,{properties:[]});break;case"RegExp":e.expression=make_node(Rt,e.expression,{value:{source:"t",flags:""}});break;case"String":e.expression=make_node(Ot,e.expression,{value:""});break}}if(!(n instanceof Ne)||!has_annotation(n,Xt)){const n=e.flatten_object(e.property,t);if(n)return n.optimize(t)}let r=e.evaluate(t);if(r!==e){r=make_node_from_constant(r,e).optimize(t);return best_of(t,r,e)}return e});function literals_in_boolean_context(e,t){if(t.in_boolean_context()){return best_of(t,e,make_sequence(e,[e,make_node(Kt,e)]).optimize(t))}return e}function inline_array_like_spread(e,t,n){for(var i=0;i=2015&&!e.name&&!e.is_generator&&!e.uses_arguments&&!e.pinned()){const n=walk(e,e=>{if(e instanceof Tt)return zt});if(!n)return make_node(ne,e,e).optimize(t)}return e});def_optimize(et,function(e){return e});def_optimize(me,function(e,t){if(e.expression&&!e.is_star&&is_undefined(e.expression,t)){e.expression=null}return e});def_optimize(oe,function(e,t){if(!t.option("evaluate")||t.parent()instanceof ae)return e;var n=[];for(var i=0;i=2015&&(!(n instanceof RegExp)||n.test(e.key+""))){var i=e.key;var r=e.value;var a=r instanceof ne&&Array.isArray(r.body)&&!r.contains_this();if((a||r instanceof te)&&!r.name){return make_node(Je,e,{async:r.async,is_generator:r.is_generator,key:i instanceof R?i:make_node(_t,e,{name:i}),value:make_node(ee,r,r),quote:e.quote})}}return e});def_optimize(re,function(e,t){if(t.option("pure_getters")==true&&t.option("unused")&&!e.is_array&&Array.isArray(e.names)&&!is_destructuring_export_decl(t)){var n=[];for(var i=0;i1)throw new Error("inline source map only works with singular input");t.sourceMap.content=read_source_map(e[a])}}r=t.parse.toplevel}if(i&&t.mangle.properties.keep_quoted!=="strict"){reserve_quoted_keys(r,i)}if(t.wrap){r=r.wrap_commonjs(t.wrap)}if(t.enclose){r=r.wrap_enclose(t.enclose)}if(n)n.rename=Date.now();if(n)n.compress=Date.now();if(t.compress)r=new Compressor(t.compress).compress(r);if(n)n.scope=Date.now();if(t.mangle)r.figure_out_scope(t.mangle);if(n)n.mangle=Date.now();if(t.mangle){on.reset();r.compute_char_frequency(t.mangle);r.mangle_names(t.mangle)}if(n)n.properties=Date.now();if(t.mangle&&t.mangle.properties){r=mangle_properties(r,t.mangle.properties)}if(n)n.format=Date.now();var o={};if(t.format.ast){o.ast=r}if(!HOP(t.format,"code")||t.format.code){if(t.sourceMap){if(typeof t.sourceMap.content=="string"){t.sourceMap.content=JSON.parse(t.sourceMap.content)}t.format.source_map=SourceMap({file:t.sourceMap.filename,orig:t.sourceMap.content,root:t.sourceMap.root});if(t.sourceMap.includeSources){if(e instanceof Z){throw new Error("original source content unavailable")}else for(var a in e)if(HOP(e,a)){t.format.source_map.get().setSourceContent(a,e[a])}}}delete t.format.ast;delete t.format.code;var s=OutputStream(t.format);r.print(s);o.code=s.get();if(t.sourceMap){if(t.sourceMap.asObject){o.map=t.format.source_map.get().toJSON()}else{o.map=t.format.source_map.toString()}if(t.sourceMap.url=="inline"){var u=typeof o.map==="object"?JSON.stringify(o.map):o.map;o.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+zn(u)}else if(t.sourceMap.url){o.code+="\n//# sourceMappingURL="+t.sourceMap.url}}}if(t.nameCache&&t.mangle){if(t.mangle.cache)t.nameCache.vars=cache_to_json(t.mangle.cache);if(t.mangle.properties&&t.mangle.properties.cache){t.nameCache.props=cache_to_json(t.mangle.properties.cache)}}if(n){n.end=Date.now();o.timings={parse:.001*(n.rename-n.parse),rename:.001*(n.compress-n.rename),compress:.001*(n.scope-n.compress),scope:.001*(n.mangle-n.scope),mangle:.001*(n.properties-n.mangle),properties:.001*(n.format-n.properties),format:.001*(n.end-n.format),total:.001*(n.end-n.start)}}return o}async function run_cli({program:e,packageJson:t,fs:i,path:r}){const a=new Set(["cname","parent_scope","scope","uses_eval","uses_with"]);var o={};var s={compress:false,mangle:false};const u=await _default_options();e.version(t.name+" "+t.version);e.parseArgv=e.parse;e.parse=undefined;if(process.argv.includes("ast"))e.helpInformation=describe_ast;else if(process.argv.includes("options"))e.helpInformation=function(){var e=[];for(var t in u){e.push("--"+(t==="sourceMap"?"source-map":t)+" options:");e.push(format_object(u[t]));e.push("")}return e.join("\n")};e.option("-p, --parse ","Specify parser options.",parse_js());e.option("-c, --compress [options]","Enable compressor/specify compressor options.",parse_js());e.option("-m, --mangle [options]","Mangle names/specify mangler options.",parse_js());e.option("--mangle-props [options]","Mangle properties/specify mangler options.",parse_js());e.option("-f, --format [options]","Format options.",parse_js());e.option("-b, --beautify [options]","Alias for --format beautify=true.",parse_js());e.option("-o, --output ","Output file (default STDOUT).");e.option("--comments [filter]","Preserve copyright comments in the output.");e.option("--config-file ","Read minify() options from JSON file.");e.option("-d, --define [=value]","Global definitions.",parse_js("define"));e.option("--ecma ","Specify ECMAScript release: 5, 2015, 2016 or 2017...");e.option("-e, --enclose [arg[,...][:value[,...]]]","Embed output in a big function with configurable arguments and values.");e.option("--ie8","Support non-standard Internet Explorer 8.");e.option("--keep-classnames","Do not mangle/drop class names.");e.option("--keep-fnames","Do not mangle/drop function names. Useful for code relying on Function.prototype.name.");e.option("--module","Input is an ES6 module");e.option("--name-cache ","File to hold mangled name mappings.");e.option("--rename","Force symbol expansion.");e.option("--no-rename","Disable symbol expansion.");e.option("--safari10","Support non-standard Safari 10.");e.option("--source-map [options]","Enable source map/specify source map options.",parse_js());e.option("--timings","Display operations run time on STDERR.");e.option("--toplevel","Compress and/or mangle variables in toplevel scope.");e.option("--wrap ","Embed everything as a function with “exports” corresponding to “name” globally.");e.arguments("[files...]").parseArgv(process.argv);if(e.configFile){s=JSON.parse(read_file(e.configFile))}if(!e.output&&e.sourceMap&&e.sourceMap.url!="inline"){fatal("ERROR: cannot write source map to STDOUT")}["compress","enclose","ie8","mangle","module","safari10","sourceMap","toplevel","wrap"].forEach(function(t){if(t in e){s[t]=e[t]}});if("ecma"in e){if(e.ecma!=(e.ecma|0))fatal("ERROR: ecma must be an integer");const t=e.ecma|0;if(t>5&&t<2015)s.ecma=t+2009;else s.ecma=t}if(e.beautify||e.format){if(e.beautify&&e.format){fatal("Please only specify one of --beautify or --format")}if(e.beautify){s.format=typeof e.beautify=="object"?e.beautify:{};if(!("beautify"in s.format)){s.format.beautify=true}}if(e.format){s.format=typeof e.format=="object"?e.format:{}}}if(e.comments){if(typeof s.format!="object")s.format={};s.format.comments=typeof e.comments=="string"?e.comments=="false"?false:e.comments:"some"}if(e.define){if(typeof s.compress!="object")s.compress={};if(typeof s.compress.global_defs!="object")s.compress.global_defs={};for(var c in e.define){s.compress.global_defs[c]=e.define[c]}}if(e.keepClassnames){s.keep_classnames=true}if(e.keepFnames){s.keep_fnames=true}if(e.mangleProps){if(e.mangleProps.domprops){delete e.mangleProps.domprops}else{if(typeof e.mangleProps!="object")e.mangleProps={};if(!Array.isArray(e.mangleProps.reserved))e.mangleProps.reserved=[]}if(typeof s.mangle!="object")s.mangle={};s.mangle.properties=e.mangleProps}if(e.nameCache){s.nameCache=JSON.parse(read_file(e.nameCache,"{}"))}if(e.output=="ast"){s.format={ast:true,code:false}}if(e.parse){if(!e.parse.acorn&&!e.parse.spidermonkey){s.parse=e.parse}else if(e.sourceMap&&e.sourceMap.content=="inline"){fatal("ERROR: inline source map only works with built-in parser")}}if(~e.rawArgs.indexOf("--rename")){s.rename=true}else if(!e.rename){s.rename=false}let l=e=>e;if(typeof e.sourceMap=="object"&&"base"in e.sourceMap){l=function(){var t=e.sourceMap.base;delete s.sourceMap.base;return function(e){return r.relative(t,e)}}()}let f;if(s.files&&s.files.length){f=s.files;delete s.files}else if(e.args.length){f=e.args}if(f){simple_glob(f).forEach(function(e){o[l(e)]=read_file(e)})}else{await new Promise(e=>{var t=[];process.stdin.setEncoding("utf8");process.stdin.on("data",function(e){t.push(e)}).on("end",function(){o=[t.join("")];e()});process.stdin.resume()})}await run_cli();function convert_ast(e){return R.from_mozilla_ast(Object.keys(o).reduce(e,null))}async function run_cli(){var t=e.sourceMap&&e.sourceMap.content;if(t&&t!=="inline"){s.sourceMap.content=read_file(t,t)}if(e.timings)s.timings=true;try{if(e.parse){if(e.parse.acorn){o=convert_ast(function(t,i){return n(740).parse(o[i],{ecmaVersion:2018,locations:true,program:t,sourceFile:i,sourceType:s.module||e.parse.module?"module":"script"})})}else if(e.parse.spidermonkey){o=convert_ast(function(e,t){var n=JSON.parse(o[t]);if(!e)return n;e.body=e.body.concat(n.body);return e})}}}catch(e){fatal(e)}let r;try{r=await minify(o,s)}catch(e){if(e.name=="SyntaxError"){print_error("Parse error at "+e.filename+":"+e.line+","+e.col);var u=e.col;var c=o[e.filename].split(/\r?\n/);var l=c[e.line-1];if(!l&&!u){l=c[e.line-2];u=l.length}if(l){var f=70;if(u>f){l=l.slice(u-f);u=f}print_error(l.slice(0,80));print_error(l.slice(0,u).replace(/\S/g," ")+"^")}}if(e.defs){print_error("Supported options:");print_error(format_object(e.defs))}fatal(e);return}if(e.output=="ast"){if(!s.compress&&!s.mangle){r.ast.figure_out_scope({})}console.log(JSON.stringify(r.ast,function(e,t){if(t)switch(e){case"thedef":return symdef(t);case"enclosed":return t.length?t.map(symdef):undefined;case"variables":case"functions":case"globals":return t.size?collect_from_map(t,symdef):undefined}if(a.has(e))return;if(t instanceof w)return;if(t instanceof Map)return;if(t instanceof R){var n={_class:"AST_"+t.TYPE};if(t.block_scope){n.variables=t.block_scope.variables;n.functions=t.block_scope.functions;n.enclosed=t.block_scope.enclosed}t.CTOR.PROPS.forEach(function(e){n[e]=t[e]});return n}return t},2))}else if(e.output=="spidermonkey"){try{const e=await minify(r.code,{compress:false,mangle:false,format:{ast:true,code:false}});console.log(JSON.stringify(e.ast.to_mozilla_ast(),null,2))}catch(e){fatal(e);return}}else if(e.output){i.writeFileSync(e.output,r.code);if(s.sourceMap&&s.sourceMap.url!=="inline"&&r.map){i.writeFileSync(e.output+".map",r.map)}}else{console.log(r.code)}if(e.nameCache){i.writeFileSync(e.nameCache,JSON.stringify(s.nameCache))}if(r.timings)for(var p in r.timings){print_error("- "+p+": "+r.timings[p].toFixed(3)+"s")}}function fatal(e){if(e instanceof Error)e=e.stack.replace(/^\S*?Error:/,"ERROR:");print_error(e);process.exit(1)}function simple_glob(e){if(Array.isArray(e)){return[].concat.apply([],e.map(simple_glob))}if(e&&e.match(/[*?]/)){var t=r.dirname(e);try{var n=i.readdirSync(t)}catch(e){}if(n){var a="^"+r.basename(e).replace(/[.+^$[\]\\(){}]/g,"\\$&").replace(/\*/g,"[^/\\\\]*").replace(/\?/g,"[^/\\\\]")+"$";var o=process.platform==="win32"?"i":"";var s=new RegExp(a,o);var u=n.filter(function(e){return s.test(e)}).map(function(e){return r.join(t,e)});if(u.length)return u}}return[e]}function read_file(e,t){try{return i.readFileSync(e,"utf8")}catch(e){if((e.code=="ENOENT"||e.code=="ENAMETOOLONG")&&t!=null)return t;fatal(e)}}function parse_js(e){return function(t,n){n=n||{};try{walk(parse(t,{expression:true}),t=>{if(t instanceof Xe){var i=t.left.print_to_string();var r=t.right;if(e){n[i]=r}else if(r instanceof We){n[i]=r.elements.map(to_string)}else if(r instanceof Rt){r=r.value;n[i]=new RegExp(r.source,r.flags)}else{n[i]=to_string(r)}return true}if(t instanceof rt||t instanceof Ve){var i=t.print_to_string();n[i]=true;return true}if(!(t instanceof Pe))throw t;function to_string(e){return e instanceof xt?e.getValue():e.print_to_string({quote_keys:true})}})}catch(i){if(e){fatal("Error parsing arguments for '"+e+"': "+t)}else{n[t]=null}}return n}}function symdef(e){var t=1e6+e.id+" "+e.name;if(e.mangled_name)t+=" "+e.mangled_name;return t}function collect_from_map(e,t){var n=[];e.forEach(function(e){n.push(t(e))});return n}function format_object(e){var t=[];var n="";Object.keys(e).map(function(t){if(n.length!/^\$/.test(e));if(n.length>0){e.space();e.with_parens(function(){n.forEach(function(t,n){if(n)e.space();e.print(t)})})}if(t.documentation){e.space();e.print_string(t.documentation)}if(t.SUBCLASSES.length>0){e.space();e.with_block(function(){t.SUBCLASSES.forEach(function(t){e.indent();doitem(t);e.newline()})})}}doitem(R);return e+"\n"}}async function _default_options(){const e={};Object.keys(infer_options({0:0})).forEach(t=>{const n=infer_options({[t]:{0:0}});if(n)e[t]=n});return e}async function infer_options(e){try{await minify("",e)}catch(e){return e.defs}}e._default_options=_default_options;e._run_cli=run_cli;e.minify=minify})},740:function(e,t){(function(e,n){true?n(t):undefined})(this,function(e){"use strict";var t={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"};var n="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this";var i={5:n,"5module":n+" export import",6:n+" const class extends export import super"};var r=/^in(stanceof)?$/;var a="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";var o="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";var s=new RegExp("["+a+"]");var u=new RegExp("["+a+o+"]");a=o=null;var c=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,155,22,13,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,0,33,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,0,161,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,754,9486,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541];var l=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,232,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,792487,239];function isInAstralSet(e,t){var n=65536;for(var i=0;ie){return false}n+=t[i+1];if(n>=e){return true}}}function isIdentifierStart(e,t){if(e<65){return e===36}if(e<91){return true}if(e<97){return e===95}if(e<123){return true}if(e<=65535){return e>=170&&s.test(String.fromCharCode(e))}if(t===false){return false}return isInAstralSet(e,c)}function isIdentifierChar(e,t){if(e<48){return e===36}if(e<58){return true}if(e<65){return false}if(e<91){return true}if(e<97){return e===95}if(e<123){return true}if(e<=65535){return e>=170&&u.test(String.fromCharCode(e))}if(t===false){return false}return isInAstralSet(e,c)||isInAstralSet(e,l)}var f=function TokenType(e,t){if(t===void 0)t={};this.label=e;this.keyword=t.keyword;this.beforeExpr=!!t.beforeExpr;this.startsExpr=!!t.startsExpr;this.isLoop=!!t.isLoop;this.isAssign=!!t.isAssign;this.prefix=!!t.prefix;this.postfix=!!t.postfix;this.binop=t.binop||null;this.updateContext=null};function binop(e,t){return new f(e,{beforeExpr:true,binop:t})}var p={beforeExpr:true},_={startsExpr:true};var h={};function kw(e,t){if(t===void 0)t={};t.keyword=e;return h[e]=new f(e,t)}var d={num:new f("num",_),regexp:new f("regexp",_),string:new f("string",_),name:new f("name",_),eof:new f("eof"),bracketL:new f("[",{beforeExpr:true,startsExpr:true}),bracketR:new f("]"),braceL:new f("{",{beforeExpr:true,startsExpr:true}),braceR:new f("}"),parenL:new f("(",{beforeExpr:true,startsExpr:true}),parenR:new f(")"),comma:new f(",",p),semi:new f(";",p),colon:new f(":",p),dot:new f("."),question:new f("?",p),arrow:new f("=>",p),template:new f("template"),invalidTemplate:new f("invalidTemplate"),ellipsis:new f("...",p),backQuote:new f("`",_),dollarBraceL:new f("${",{beforeExpr:true,startsExpr:true}),eq:new f("=",{beforeExpr:true,isAssign:true}),assign:new f("_=",{beforeExpr:true,isAssign:true}),incDec:new f("++/--",{prefix:true,postfix:true,startsExpr:true}),prefix:new f("!/~",{beforeExpr:true,prefix:true,startsExpr:true}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new f("+/-",{beforeExpr:true,binop:9,prefix:true,startsExpr:true}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new f("**",{beforeExpr:true}),_break:kw("break"),_case:kw("case",p),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",p),_do:kw("do",{isLoop:true,beforeExpr:true}),_else:kw("else",p),_finally:kw("finally"),_for:kw("for",{isLoop:true}),_function:kw("function",_),_if:kw("if"),_return:kw("return",p),_switch:kw("switch"),_throw:kw("throw",p),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:true}),_with:kw("with"),_new:kw("new",{beforeExpr:true,startsExpr:true}),_this:kw("this",_),_super:kw("super",_),_class:kw("class",_),_extends:kw("extends",p),_export:kw("export"),_import:kw("import",_),_null:kw("null",_),_true:kw("true",_),_false:kw("false",_),_in:kw("in",{beforeExpr:true,binop:7}),_instanceof:kw("instanceof",{beforeExpr:true,binop:7}),_typeof:kw("typeof",{beforeExpr:true,prefix:true,startsExpr:true}),_void:kw("void",{beforeExpr:true,prefix:true,startsExpr:true}),_delete:kw("delete",{beforeExpr:true,prefix:true,startsExpr:true})};var m=/\r\n?|\n|\u2028|\u2029/;var E=new RegExp(m.source,"g");function isNewLine(e,t){return e===10||e===13||!t&&(e===8232||e===8233)}var g=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;var v=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;var D=Object.prototype;var b=D.hasOwnProperty;var y=D.toString;function has(e,t){return b.call(e,t)}var k=Array.isArray||function(e){return y.call(e)==="[object Array]"};function wordsRegexp(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var S=function Position(e,t){this.line=e;this.column=t};S.prototype.offset=function offset(e){return new S(this.line,this.column+e)};var A=function SourceLocation(e,t,n){this.start=t;this.end=n;if(e.sourceFile!==null){this.source=e.sourceFile}};function getLineInfo(e,t){for(var n=1,i=0;;){E.lastIndex=i;var r=E.exec(e);if(r&&r.index=2015){t.ecmaVersion-=2009}if(t.allowReserved==null){t.allowReserved=t.ecmaVersion<5}if(k(t.onToken)){var i=t.onToken;t.onToken=function(e){return i.push(e)}}if(k(t.onComment)){t.onComment=pushComment(t,t.onComment)}return t}function pushComment(e,t){return function(n,i,r,a,o,s){var u={type:n?"Block":"Line",value:i,start:r,end:a};if(e.locations){u.loc=new A(this,o,s)}if(e.ranges){u.range=[r,a]}t.push(u)}}var C=1,x=2,O=C|x,F=4,w=8,R=16,M=32,N=64,I=128;function functionFlags(e,t){return x|(e?F:0)|(t?w:0)}var P=0,V=1,L=2,B=3,U=4,K=5;var z=function Parser(e,n,r){this.options=e=getOptions(e);this.sourceFile=e.sourceFile;this.keywords=wordsRegexp(i[e.ecmaVersion>=6?6:e.sourceType==="module"?"5module":5]);var a="";if(e.allowReserved!==true){for(var o=e.ecmaVersion;;o--){if(a=t[o]){break}}if(e.sourceType==="module"){a+=" await"}}this.reservedWords=wordsRegexp(a);var s=(a?a+" ":"")+t.strict;this.reservedWordsStrict=wordsRegexp(s);this.reservedWordsStrictBind=wordsRegexp(s+" "+t.strictBind);this.input=String(n);this.containsEsc=false;if(r){this.pos=r;this.lineStart=this.input.lastIndexOf("\n",r-1)+1;this.curLine=this.input.slice(0,this.lineStart).split(m).length}else{this.pos=this.lineStart=0;this.curLine=1}this.type=d.eof;this.value=null;this.start=this.end=this.pos;this.startLoc=this.endLoc=this.curPosition();this.lastTokEndLoc=this.lastTokStartLoc=null;this.lastTokStart=this.lastTokEnd=this.pos;this.context=this.initialContext();this.exprAllowed=true;this.inModule=e.sourceType==="module";this.strict=this.inModule||this.strictDirective(this.pos);this.potentialArrowAt=-1;this.yieldPos=this.awaitPos=this.awaitIdentPos=0;this.labels=[];this.undefinedExports={};if(this.pos===0&&e.allowHashBang&&this.input.slice(0,2)==="#!"){this.skipLineComment(2)}this.scopeStack=[];this.enterScope(C);this.regexpState=null};var G={inFunction:{configurable:true},inGenerator:{configurable:true},inAsync:{configurable:true},allowSuper:{configurable:true},allowDirectSuper:{configurable:true},treatFunctionsAsVar:{configurable:true}};z.prototype.parse=function parse(){var e=this.options.program||this.startNode();this.nextToken();return this.parseTopLevel(e)};G.inFunction.get=function(){return(this.currentVarScope().flags&x)>0};G.inGenerator.get=function(){return(this.currentVarScope().flags&w)>0};G.inAsync.get=function(){return(this.currentVarScope().flags&F)>0};G.allowSuper.get=function(){return(this.currentThisScope().flags&N)>0};G.allowDirectSuper.get=function(){return(this.currentThisScope().flags&I)>0};G.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};z.prototype.inNonArrowFunction=function inNonArrowFunction(){return(this.currentThisScope().flags&x)>0};z.extend=function extend(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var n=this;for(var i=0;i-1){this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element")}var n=t?e.parenthesizedAssign:e.parenthesizedBind;if(n>-1){this.raiseRecoverable(n,"Parenthesized pattern")}};H.checkExpressionErrors=function(e,t){if(!e){return false}var n=e.shorthandAssign;var i=e.doubleProto;if(!t){return n>=0||i>=0}if(n>=0){this.raise(n,"Shorthand property assignments are valid only in destructuring patterns")}if(i>=0){this.raiseRecoverable(i,"Redefinition of __proto__ property")}};H.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos=6){this.unexpected()}return this.parseFunctionStatement(r,false,!e);case d._class:if(e){this.unexpected()}return this.parseClass(r,true);case d._if:return this.parseIfStatement(r);case d._return:return this.parseReturnStatement(r);case d._switch:return this.parseSwitchStatement(r);case d._throw:return this.parseThrowStatement(r);case d._try:return this.parseTryStatement(r);case d._const:case d._var:a=a||this.value;if(e&&a!=="var"){this.unexpected()}return this.parseVarStatement(r,a);case d._while:return this.parseWhileStatement(r);case d._with:return this.parseWithStatement(r);case d.braceL:return this.parseBlock(true,r);case d.semi:return this.parseEmptyStatement(r);case d._export:case d._import:if(this.options.ecmaVersion>10&&i===d._import){v.lastIndex=this.pos;var o=v.exec(this.input);var s=this.pos+o[0].length,u=this.input.charCodeAt(s);if(u===40){return this.parseExpressionStatement(r,this.parseExpression())}}if(!this.options.allowImportExportEverywhere){if(!t){this.raise(this.start,"'import' and 'export' may only appear at the top level")}if(!this.inModule){this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}}return i===d._import?this.parseImport(r):this.parseExport(r,n);default:if(this.isAsyncFunction()){if(e){this.unexpected()}this.next();return this.parseFunctionStatement(r,true,!e)}var c=this.value,l=this.parseExpression();if(i===d.name&&l.type==="Identifier"&&this.eat(d.colon)){return this.parseLabeledStatement(r,c,l,e)}else{return this.parseExpressionStatement(r,l)}}};q.parseBreakContinueStatement=function(e,t){var n=t==="break";this.next();if(this.eat(d.semi)||this.insertSemicolon()){e.label=null}else if(this.type!==d.name){this.unexpected()}else{e.label=this.parseIdent();this.semicolon()}var i=0;for(;i=6){this.eat(d.semi)}else{this.semicolon()}return this.finishNode(e,"DoWhileStatement")};q.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;this.labels.push(W);this.enterScope(0);this.expect(d.parenL);if(this.type===d.semi){if(t>-1){this.unexpected(t)}return this.parseFor(e,null)}var n=this.isLet();if(this.type===d._var||this.type===d._const||n){var i=this.startNode(),r=n?"let":this.value;this.next();this.parseVar(i,true,r);this.finishNode(i,"VariableDeclaration");if((this.type===d._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&i.declarations.length===1){if(this.options.ecmaVersion>=9){if(this.type===d._in){if(t>-1){this.unexpected(t)}}else{e.await=t>-1}}return this.parseForIn(e,i)}if(t>-1){this.unexpected(t)}return this.parseFor(e,i)}var a=new DestructuringErrors;var o=this.parseExpression(true,a);if(this.type===d._in||this.options.ecmaVersion>=6&&this.isContextual("of")){if(this.options.ecmaVersion>=9){if(this.type===d._in){if(t>-1){this.unexpected(t)}}else{e.await=t>-1}}this.toAssignable(o,false,a);this.checkLVal(o);return this.parseForIn(e,o)}else{this.checkExpressionErrors(a,true)}if(t>-1){this.unexpected(t)}return this.parseFor(e,o)};q.parseFunctionStatement=function(e,t,n){this.next();return this.parseFunction(e,j|(n?0:Z),false,t)};q.parseIfStatement=function(e){this.next();e.test=this.parseParenExpression();e.consequent=this.parseStatement("if");e.alternate=this.eat(d._else)?this.parseStatement("if"):null;return this.finishNode(e,"IfStatement")};q.parseReturnStatement=function(e){if(!this.inFunction&&!this.options.allowReturnOutsideFunction){this.raise(this.start,"'return' outside of function")}this.next();if(this.eat(d.semi)||this.insertSemicolon()){e.argument=null}else{e.argument=this.parseExpression();this.semicolon()}return this.finishNode(e,"ReturnStatement")};q.parseSwitchStatement=function(e){this.next();e.discriminant=this.parseParenExpression();e.cases=[];this.expect(d.braceL);this.labels.push(Y);this.enterScope(0);var t;for(var n=false;this.type!==d.braceR;){if(this.type===d._case||this.type===d._default){var i=this.type===d._case;if(t){this.finishNode(t,"SwitchCase")}e.cases.push(t=this.startNode());t.consequent=[];this.next();if(i){t.test=this.parseExpression()}else{if(n){this.raiseRecoverable(this.lastTokStart,"Multiple default clauses")}n=true;t.test=null}this.expect(d.colon)}else{if(!t){this.unexpected()}t.consequent.push(this.parseStatement(null))}}this.exitScope();if(t){this.finishNode(t,"SwitchCase")}this.next();this.labels.pop();return this.finishNode(e,"SwitchStatement")};q.parseThrowStatement=function(e){this.next();if(m.test(this.input.slice(this.lastTokEnd,this.start))){this.raise(this.lastTokEnd,"Illegal newline after throw")}e.argument=this.parseExpression();this.semicolon();return this.finishNode(e,"ThrowStatement")};var $=[];q.parseTryStatement=function(e){this.next();e.block=this.parseBlock();e.handler=null;if(this.type===d._catch){var t=this.startNode();this.next();if(this.eat(d.parenL)){t.param=this.parseBindingAtom();var n=t.param.type==="Identifier";this.enterScope(n?M:0);this.checkLVal(t.param,n?U:L);this.expect(d.parenR)}else{if(this.options.ecmaVersion<10){this.unexpected()}t.param=null;this.enterScope(0)}t.body=this.parseBlock(false);this.exitScope();e.handler=this.finishNode(t,"CatchClause")}e.finalizer=this.eat(d._finally)?this.parseBlock():null;if(!e.handler&&!e.finalizer){this.raise(e.start,"Missing catch or finally clause")}return this.finishNode(e,"TryStatement")};q.parseVarStatement=function(e,t){this.next();this.parseVar(e,false,t);this.semicolon();return this.finishNode(e,"VariableDeclaration")};q.parseWhileStatement=function(e){this.next();e.test=this.parseParenExpression();this.labels.push(W);e.body=this.parseStatement("while");this.labels.pop();return this.finishNode(e,"WhileStatement")};q.parseWithStatement=function(e){if(this.strict){this.raise(this.start,"'with' in strict mode")}this.next();e.object=this.parseParenExpression();e.body=this.parseStatement("with");return this.finishNode(e,"WithStatement")};q.parseEmptyStatement=function(e){this.next();return this.finishNode(e,"EmptyStatement")};q.parseLabeledStatement=function(e,t,n,i){for(var r=0,a=this.labels;r=0;u--){var c=this.labels[u];if(c.statementStart===e.start){c.statementStart=this.start;c.kind=s}else{break}}this.labels.push({name:t,kind:s,statementStart:this.start});e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label");this.labels.pop();e.label=n;return this.finishNode(e,"LabeledStatement")};q.parseExpressionStatement=function(e,t){e.expression=t;this.semicolon();return this.finishNode(e,"ExpressionStatement")};q.parseBlock=function(e,t){if(e===void 0)e=true;if(t===void 0)t=this.startNode();t.body=[];this.expect(d.braceL);if(e){this.enterScope(0)}while(!this.eat(d.braceR)){var n=this.parseStatement(null);t.body.push(n)}if(e){this.exitScope()}return this.finishNode(t,"BlockStatement")};q.parseFor=function(e,t){e.init=t;this.expect(d.semi);e.test=this.type===d.semi?null:this.parseExpression();this.expect(d.semi);e.update=this.type===d.parenR?null:this.parseExpression();this.expect(d.parenR);e.body=this.parseStatement("for");this.exitScope();this.labels.pop();return this.finishNode(e,"ForStatement")};q.parseForIn=function(e,t){var n=this.type===d._in;this.next();if(t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")){this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer")}else if(t.type==="AssignmentPattern"){this.raise(t.start,"Invalid left-hand side in for-loop")}e.left=t;e.right=n?this.parseExpression():this.parseMaybeAssign();this.expect(d.parenR);e.body=this.parseStatement("for");this.exitScope();this.labels.pop();return this.finishNode(e,n?"ForInStatement":"ForOfStatement")};q.parseVar=function(e,t,n){e.declarations=[];e.kind=n;for(;;){var i=this.startNode();this.parseVarId(i,n);if(this.eat(d.eq)){i.init=this.parseMaybeAssign(t)}else if(n==="const"&&!(this.type===d._in||this.options.ecmaVersion>=6&&this.isContextual("of"))){this.unexpected()}else if(i.id.type!=="Identifier"&&!(t&&(this.type===d._in||this.isContextual("of")))){this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value")}else{i.init=null}e.declarations.push(this.finishNode(i,"VariableDeclarator"));if(!this.eat(d.comma)){break}}return e};q.parseVarId=function(e,t){e.id=this.parseBindingAtom();this.checkLVal(e.id,t==="var"?V:L,false)};var j=1,Z=2,Q=4;q.parseFunction=function(e,t,n,i){this.initFunction(e);if(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i){if(this.type===d.star&&t&Z){this.unexpected()}e.generator=this.eat(d.star)}if(this.options.ecmaVersion>=8){e.async=!!i}if(t&j){e.id=t&Q&&this.type!==d.name?null:this.parseIdent();if(e.id&&!(t&Z)){this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?V:L:B)}}var r=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;this.enterScope(functionFlags(e.async,e.generator));if(!(t&j)){e.id=this.type===d.name?this.parseIdent():null}this.parseFunctionParams(e);this.parseFunctionBody(e,n,false);this.yieldPos=r;this.awaitPos=a;this.awaitIdentPos=o;return this.finishNode(e,t&j?"FunctionDeclaration":"FunctionExpression")};q.parseFunctionParams=function(e){this.expect(d.parenL);e.params=this.parseBindingList(d.parenR,false,this.options.ecmaVersion>=8);this.checkYieldAwaitInDefaultParams()};q.parseClass=function(e,t){this.next();var n=this.strict;this.strict=true;this.parseClassId(e,t);this.parseClassSuper(e);var i=this.startNode();var r=false;i.body=[];this.expect(d.braceL);while(!this.eat(d.braceR)){var a=this.parseClassElement(e.superClass!==null);if(a){i.body.push(a);if(a.type==="MethodDefinition"&&a.kind==="constructor"){if(r){this.raise(a.start,"Duplicate constructor in the same class")}r=true}}}e.body=this.finishNode(i,"ClassBody");this.strict=n;return this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};q.parseClassElement=function(e){var t=this;if(this.eat(d.semi)){return null}var n=this.startNode();var i=function(e,i){if(i===void 0)i=false;var r=t.start,a=t.startLoc;if(!t.eatContextual(e)){return false}if(t.type!==d.parenL&&(!i||!t.canInsertSemicolon())){return true}if(n.key){t.unexpected()}n.computed=false;n.key=t.startNodeAt(r,a);n.key.name=e;t.finishNode(n.key,"Identifier");return false};n.kind="method";n.static=i("static");var r=this.eat(d.star);var a=false;if(!r){if(this.options.ecmaVersion>=8&&i("async",true)){a=true;r=this.options.ecmaVersion>=9&&this.eat(d.star)}else if(i("get")){n.kind="get"}else if(i("set")){n.kind="set"}}if(!n.key){this.parsePropertyName(n)}var o=n.key;var s=false;if(!n.computed&&!n.static&&(o.type==="Identifier"&&o.name==="constructor"||o.type==="Literal"&&o.value==="constructor")){if(n.kind!=="method"){this.raise(o.start,"Constructor can't have get/set modifier")}if(r){this.raise(o.start,"Constructor can't be a generator")}if(a){this.raise(o.start,"Constructor can't be an async method")}n.kind="constructor";s=e}else if(n.static&&o.type==="Identifier"&&o.name==="prototype"){this.raise(o.start,"Classes may not have a static property named prototype")}this.parseClassMethod(n,r,a,s);if(n.kind==="get"&&n.value.params.length!==0){this.raiseRecoverable(n.value.start,"getter should have no params")}if(n.kind==="set"&&n.value.params.length!==1){this.raiseRecoverable(n.value.start,"setter should have exactly one param")}if(n.kind==="set"&&n.value.params[0].type==="RestElement"){this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params")}return n};q.parseClassMethod=function(e,t,n,i){e.value=this.parseMethod(t,n,i);return this.finishNode(e,"MethodDefinition")};q.parseClassId=function(e,t){if(this.type===d.name){e.id=this.parseIdent();if(t){this.checkLVal(e.id,L,false)}}else{if(t===true){this.unexpected()}e.id=null}};q.parseClassSuper=function(e){e.superClass=this.eat(d._extends)?this.parseExprSubscripts():null};q.parseExport=function(e,t){this.next();if(this.eat(d.star)){this.expectContextual("from");if(this.type!==d.string){this.unexpected()}e.source=this.parseExprAtom();this.semicolon();return this.finishNode(e,"ExportAllDeclaration")}if(this.eat(d._default)){this.checkExport(t,"default",this.lastTokStart);var n;if(this.type===d._function||(n=this.isAsyncFunction())){var i=this.startNode();this.next();if(n){this.next()}e.declaration=this.parseFunction(i,j|Q,false,n)}else if(this.type===d._class){var r=this.startNode();e.declaration=this.parseClass(r,"nullableID")}else{e.declaration=this.parseMaybeAssign();this.semicolon()}return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement()){e.declaration=this.parseStatement(null);if(e.declaration.type==="VariableDeclaration"){this.checkVariableExport(t,e.declaration.declarations)}else{this.checkExport(t,e.declaration.id.name,e.declaration.id.start)}e.specifiers=[];e.source=null}else{e.declaration=null;e.specifiers=this.parseExportSpecifiers(t);if(this.eatContextual("from")){if(this.type!==d.string){this.unexpected()}e.source=this.parseExprAtom()}else{for(var a=0,o=e.specifiers;a=6&&e){switch(e.type){case"Identifier":if(this.inAsync&&e.name==="await"){this.raise(e.start,"Cannot use 'await' as identifier inside an async function")}break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";if(n){this.checkPatternErrors(n,true)}for(var i=0,r=e.properties;i=8&&!a&&o.name==="async"&&!this.canInsertSemicolon()&&this.eat(d._function)){return this.parseFunction(this.startNodeAt(i,r),0,false,true)}if(n&&!this.canInsertSemicolon()){if(this.eat(d.arrow)){return this.parseArrowExpression(this.startNodeAt(i,r),[o],false)}if(this.options.ecmaVersion>=8&&o.name==="async"&&this.type===d.name&&!a){o=this.parseIdent(false);if(this.canInsertSemicolon()||!this.eat(d.arrow)){this.unexpected()}return this.parseArrowExpression(this.startNodeAt(i,r),[o],true)}}return o;case d.regexp:var s=this.value;t=this.parseLiteral(s.value);t.regex={pattern:s.pattern,flags:s.flags};return t;case d.num:case d.string:return this.parseLiteral(this.value);case d._null:case d._true:case d._false:t=this.startNode();t.value=this.type===d._null?null:this.type===d._true;t.raw=this.type.keyword;this.next();return this.finishNode(t,"Literal");case d.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(n);if(e){if(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)){e.parenthesizedAssign=u}if(e.parenthesizedBind<0){e.parenthesizedBind=u}}return c;case d.bracketL:t=this.startNode();this.next();t.elements=this.parseExprList(d.bracketR,true,true,e);return this.finishNode(t,"ArrayExpression");case d.braceL:return this.parseObj(false,e);case d._function:t=this.startNode();this.next();return this.parseFunction(t,0);case d._class:return this.parseClass(this.startNode(),false);case d._new:return this.parseNew();case d.backQuote:return this.parseTemplate();case d._import:if(this.options.ecmaVersion>=11){return this.parseExprImport()}else{return this.unexpected()}default:this.unexpected()}};ee.parseExprImport=function(){var e=this.startNode();this.next();switch(this.type){case d.parenL:return this.parseDynamicImport(e);default:this.unexpected()}};ee.parseDynamicImport=function(e){this.next();e.source=this.parseMaybeAssign();if(!this.eat(d.parenR)){var t=this.start;if(this.eat(d.comma)&&this.eat(d.parenR)){this.raiseRecoverable(t,"Trailing comma is not allowed in import()")}else{this.unexpected(t)}}return this.finishNode(e,"ImportExpression")};ee.parseLiteral=function(e){var t=this.startNode();t.value=e;t.raw=this.input.slice(this.start,this.end);if(t.raw.charCodeAt(t.raw.length-1)===110){t.bigint=t.raw.slice(0,-1)}this.next();return this.finishNode(t,"Literal")};ee.parseParenExpression=function(){this.expect(d.parenL);var e=this.parseExpression();this.expect(d.parenR);return e};ee.parseParenAndDistinguishExpression=function(e){var t=this.start,n=this.startLoc,i,r=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a=this.start,o=this.startLoc;var s=[],u=true,c=false;var l=new DestructuringErrors,f=this.yieldPos,p=this.awaitPos,_;this.yieldPos=0;this.awaitPos=0;while(this.type!==d.parenR){u?u=false:this.expect(d.comma);if(r&&this.afterTrailingComma(d.parenR,true)){c=true;break}else if(this.type===d.ellipsis){_=this.start;s.push(this.parseParenItem(this.parseRestBinding()));if(this.type===d.comma){this.raise(this.start,"Comma is not permitted after the rest element")}break}else{s.push(this.parseMaybeAssign(false,l,this.parseParenItem))}}var h=this.start,m=this.startLoc;this.expect(d.parenR);if(e&&!this.canInsertSemicolon()&&this.eat(d.arrow)){this.checkPatternErrors(l,false);this.checkYieldAwaitInDefaultParams();this.yieldPos=f;this.awaitPos=p;return this.parseParenArrowList(t,n,s)}if(!s.length||c){this.unexpected(this.lastTokStart)}if(_){this.unexpected(_)}this.checkExpressionErrors(l,true);this.yieldPos=f||this.yieldPos;this.awaitPos=p||this.awaitPos;if(s.length>1){i=this.startNodeAt(a,o);i.expressions=s;this.finishNodeAt(i,"SequenceExpression",h,m)}else{i=s[0]}}else{i=this.parseParenExpression()}if(this.options.preserveParens){var E=this.startNodeAt(t,n);E.expression=i;return this.finishNode(E,"ParenthesizedExpression")}else{return i}};ee.parseParenItem=function(e){return e};ee.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var te=[];ee.parseNew=function(){if(this.containsEsc){this.raiseRecoverable(this.start,"Escape sequence in keyword new")}var e=this.startNode();var t=this.parseIdent(true);if(this.options.ecmaVersion>=6&&this.eat(d.dot)){e.meta=t;var n=this.containsEsc;e.property=this.parseIdent(true);if(e.property.name!=="target"||n){this.raiseRecoverable(e.property.start,"The only valid meta property for new is new.target")}if(!this.inNonArrowFunction()){this.raiseRecoverable(e.start,"new.target can only be used in functions")}return this.finishNode(e,"MetaProperty")}var i=this.start,r=this.startLoc,a=this.type===d._import;e.callee=this.parseSubscripts(this.parseExprAtom(),i,r,true);if(a&&e.callee.type==="ImportExpression"){this.raise(i,"Cannot use new with import()")}if(this.eat(d.parenL)){e.arguments=this.parseExprList(d.parenR,this.options.ecmaVersion>=8,false)}else{e.arguments=te}return this.finishNode(e,"NewExpression")};ee.parseTemplateElement=function(e){var t=e.isTagged;var n=this.startNode();if(this.type===d.invalidTemplate){if(!t){this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal")}n.value={raw:this.value,cooked:null}}else{n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value}}this.next();n.tail=this.type===d.backQuote;return this.finishNode(n,"TemplateElement")};ee.parseTemplate=function(e){if(e===void 0)e={};var t=e.isTagged;if(t===void 0)t=false;var n=this.startNode();this.next();n.expressions=[];var i=this.parseTemplateElement({isTagged:t});n.quasis=[i];while(!i.tail){if(this.type===d.eof){this.raise(this.pos,"Unterminated template literal")}this.expect(d.dollarBraceL);n.expressions.push(this.parseExpression());this.expect(d.braceR);n.quasis.push(i=this.parseTemplateElement({isTagged:t}))}this.next();return this.finishNode(n,"TemplateLiteral")};ee.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===d.name||this.type===d.num||this.type===d.string||this.type===d.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===d.star)&&!m.test(this.input.slice(this.lastTokEnd,this.start))};ee.parseObj=function(e,t){var n=this.startNode(),i=true,r={};n.properties=[];this.next();while(!this.eat(d.braceR)){if(!i){this.expect(d.comma);if(this.options.ecmaVersion>=5&&this.afterTrailingComma(d.braceR)){break}}else{i=false}var a=this.parseProperty(e,t);if(!e){this.checkPropClash(a,r,t)}n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")};ee.parseProperty=function(e,t){var n=this.startNode(),i,r,a,o;if(this.options.ecmaVersion>=9&&this.eat(d.ellipsis)){if(e){n.argument=this.parseIdent(false);if(this.type===d.comma){this.raise(this.start,"Comma is not permitted after the rest element")}return this.finishNode(n,"RestElement")}if(this.type===d.parenL&&t){if(t.parenthesizedAssign<0){t.parenthesizedAssign=this.start}if(t.parenthesizedBind<0){t.parenthesizedBind=this.start}}n.argument=this.parseMaybeAssign(false,t);if(this.type===d.comma&&t&&t.trailingComma<0){t.trailingComma=this.start}return this.finishNode(n,"SpreadElement")}if(this.options.ecmaVersion>=6){n.method=false;n.shorthand=false;if(e||t){a=this.start;o=this.startLoc}if(!e){i=this.eat(d.star)}}var s=this.containsEsc;this.parsePropertyName(n);if(!e&&!s&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(n)){r=true;i=this.options.ecmaVersion>=9&&this.eat(d.star);this.parsePropertyName(n,t)}else{r=false}this.parsePropertyValue(n,e,i,r,a,o,t,s);return this.finishNode(n,"Property")};ee.parsePropertyValue=function(e,t,n,i,r,a,o,s){if((n||i)&&this.type===d.colon){this.unexpected()}if(this.eat(d.colon)){e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(false,o);e.kind="init"}else if(this.options.ecmaVersion>=6&&this.type===d.parenL){if(t){this.unexpected()}e.kind="init";e.method=true;e.value=this.parseMethod(n,i)}else if(!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&(this.type!==d.comma&&this.type!==d.braceR)){if(n||i){this.unexpected()}e.kind=e.key.name;this.parsePropertyName(e);e.value=this.parseMethod(false);var u=e.kind==="get"?0:1;if(e.value.params.length!==u){var c=e.value.start;if(e.kind==="get"){this.raiseRecoverable(c,"getter should have no params")}else{this.raiseRecoverable(c,"setter should have exactly one param")}}else{if(e.kind==="set"&&e.value.params[0].type==="RestElement"){this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}}}else if(this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"){if(n||i){this.unexpected()}this.checkUnreserved(e.key);if(e.key.name==="await"&&!this.awaitIdentPos){this.awaitIdentPos=r}e.kind="init";if(t){e.value=this.parseMaybeDefault(r,a,e.key)}else if(this.type===d.eq&&o){if(o.shorthandAssign<0){o.shorthandAssign=this.start}e.value=this.parseMaybeDefault(r,a,e.key)}else{e.value=e.key}e.shorthand=true}else{this.unexpected()}};ee.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(d.bracketL)){e.computed=true;e.key=this.parseMaybeAssign();this.expect(d.bracketR);return e.key}else{e.computed=false}}return e.key=this.type===d.num||this.type===d.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};ee.initFunction=function(e){e.id=null;if(this.options.ecmaVersion>=6){e.generator=e.expression=false}if(this.options.ecmaVersion>=8){e.async=false}};ee.parseMethod=function(e,t,n){var i=this.startNode(),r=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;this.initFunction(i);if(this.options.ecmaVersion>=6){i.generator=e}if(this.options.ecmaVersion>=8){i.async=!!t}this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;this.enterScope(functionFlags(t,i.generator)|N|(n?I:0));this.expect(d.parenL);i.params=this.parseBindingList(d.parenR,false,this.options.ecmaVersion>=8);this.checkYieldAwaitInDefaultParams();this.parseFunctionBody(i,false,true);this.yieldPos=r;this.awaitPos=a;this.awaitIdentPos=o;return this.finishNode(i,"FunctionExpression")};ee.parseArrowExpression=function(e,t,n){var i=this.yieldPos,r=this.awaitPos,a=this.awaitIdentPos;this.enterScope(functionFlags(n,false)|R);this.initFunction(e);if(this.options.ecmaVersion>=8){e.async=!!n}this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;e.params=this.toAssignableList(t,true);this.parseFunctionBody(e,true,false);this.yieldPos=i;this.awaitPos=r;this.awaitIdentPos=a;return this.finishNode(e,"ArrowFunctionExpression")};ee.parseFunctionBody=function(e,t,n){var i=t&&this.type!==d.braceL;var r=this.strict,a=false;if(i){e.body=this.parseMaybeAssign();e.expression=true;this.checkParams(e,false)}else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);if(!r||o){a=this.strictDirective(this.end);if(a&&o){this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list")}}var s=this.labels;this.labels=[];if(a){this.strict=true}this.checkParams(e,!r&&!a&&!t&&!n&&this.isSimpleParamList(e.params));e.body=this.parseBlock(false);e.expression=false;this.adaptDirectivePrologue(e.body.body);this.labels=s}this.exitScope();if(this.strict&&e.id){this.checkLVal(e.id,K)}this.strict=r};ee.isSimpleParamList=function(e){for(var t=0,n=e;t-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1;r.lexical.push(e);if(this.inModule&&r.flags&C){delete this.undefinedExports[e]}}else if(t===U){var a=this.currentScope();a.lexical.push(e)}else if(t===B){var o=this.currentScope();if(this.treatFunctionsAsVar){i=o.lexical.indexOf(e)>-1}else{i=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1}o.functions.push(e)}else{for(var s=this.scopeStack.length-1;s>=0;--s){var u=this.scopeStack[s];if(u.lexical.indexOf(e)>-1&&!(u.flags&M&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){i=true;break}u.var.push(e);if(this.inModule&&u.flags&C){delete this.undefinedExports[e]}if(u.flags&O){break}}}if(i){this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")}};ie.checkLocalExport=function(e){if(this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1){this.undefinedExports[e.name]=e}};ie.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};ie.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&O){return t}}};ie.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&O&&!(t.flags&R)){return t}}};var ae=function Node(e,t,n){this.type="";this.start=t;this.end=0;if(e.options.locations){this.loc=new A(e,n)}if(e.options.directSourceFile){this.sourceFile=e.options.directSourceFile}if(e.options.ranges){this.range=[t,0]}};var oe=z.prototype;oe.startNode=function(){return new ae(this,this.start,this.startLoc)};oe.startNodeAt=function(e,t){return new ae(this,e,t)};function finishNodeAt(e,t,n,i){e.type=t;e.end=n;if(this.options.locations){e.loc.end=i}if(this.options.ranges){e.range[1]=n}return e}oe.finishNode=function(e,t){return finishNodeAt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};oe.finishNodeAt=function(e,t,n,i){return finishNodeAt.call(this,e,t,n,i)};var se=function TokContext(e,t,n,i,r){this.token=e;this.isExpr=!!t;this.preserveSpace=!!n;this.override=i;this.generator=!!r};var ue={b_stat:new se("{",false),b_expr:new se("{",true),b_tmpl:new se("${",false),p_stat:new se("(",false),p_expr:new se("(",true),q_tmpl:new se("`",true,true,function(e){return e.tryReadTemplateToken()}),f_stat:new se("function",false),f_expr:new se("function",true),f_expr_gen:new se("function",true,false,null,true),f_gen:new se("function",false,false,null,true)};var ce=z.prototype;ce.initialContext=function(){return[ue.b_stat]};ce.braceIsBlock=function(e){var t=this.curContext();if(t===ue.f_expr||t===ue.f_stat){return true}if(e===d.colon&&(t===ue.b_stat||t===ue.b_expr)){return!t.isExpr}if(e===d._return||e===d.name&&this.exprAllowed){return m.test(this.input.slice(this.lastTokEnd,this.start))}if(e===d._else||e===d.semi||e===d.eof||e===d.parenR||e===d.arrow){return true}if(e===d.braceL){return t===ue.b_stat}if(e===d._var||e===d._const||e===d.name){return false}return!this.exprAllowed};ce.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function"){return t.generator}}return false};ce.updateContext=function(e){var t,n=this.type;if(n.keyword&&e===d.dot){this.exprAllowed=false}else if(t=n.updateContext){t.call(this,e)}else{this.exprAllowed=n.beforeExpr}};d.parenR.updateContext=d.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=true;return}var e=this.context.pop();if(e===ue.b_stat&&this.curContext().token==="function"){e=this.context.pop()}this.exprAllowed=!e.isExpr};d.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ue.b_stat:ue.b_expr);this.exprAllowed=true};d.dollarBraceL.updateContext=function(){this.context.push(ue.b_tmpl);this.exprAllowed=true};d.parenL.updateContext=function(e){var t=e===d._if||e===d._for||e===d._with||e===d._while;this.context.push(t?ue.p_stat:ue.p_expr);this.exprAllowed=true};d.incDec.updateContext=function(){};d._function.updateContext=d._class.updateContext=function(e){if(e.beforeExpr&&e!==d.semi&&e!==d._else&&!(e===d._return&&m.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===d.colon||e===d.braceL)&&this.curContext()===ue.b_stat)){this.context.push(ue.f_expr)}else{this.context.push(ue.f_stat)}this.exprAllowed=false};d.backQuote.updateContext=function(){if(this.curContext()===ue.q_tmpl){this.context.pop()}else{this.context.push(ue.q_tmpl)}this.exprAllowed=false};d.star.updateContext=function(e){if(e===d._function){var t=this.context.length-1;if(this.context[t]===ue.f_expr){this.context[t]=ue.f_expr_gen}else{this.context[t]=ue.f_gen}}this.exprAllowed=true};d.name.updateContext=function(e){var t=false;if(this.options.ecmaVersion>=6&&e!==d.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext()){t=true}}this.exprAllowed=t};var le="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS";var fe=le+" Extended_Pictographic";var pe=fe;var _e={9:le,10:fe,11:pe};var he="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu";var de="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb";var me=de+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd";var Ee=me+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";var ge={9:de,10:me,11:Ee};var ve={};function buildUnicodeData(e){var t=ve[e]={binary:wordsRegexp(_e[e]+" "+he),nonBinary:{General_Category:wordsRegexp(he),Script:wordsRegexp(ge[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script;t.nonBinary.gc=t.nonBinary.General_Category;t.nonBinary.sc=t.nonBinary.Script;t.nonBinary.scx=t.nonBinary.Script_Extensions}buildUnicodeData(9);buildUnicodeData(10);buildUnicodeData(11);var De=z.prototype;var be=function RegExpValidationState(e){this.parser=e;this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"");this.unicodeProperties=ve[e.options.ecmaVersion>=11?11:e.options.ecmaVersion];this.source="";this.flags="";this.start=0;this.switchU=false;this.switchN=false;this.pos=0;this.lastIntValue=0;this.lastStringValue="";this.lastAssertionIsQuantifiable=false;this.numCapturingParens=0;this.maxBackReference=0;this.groupNames=[];this.backReferenceNames=[]};be.prototype.reset=function reset(e,t,n){var i=n.indexOf("u")!==-1;this.start=e|0;this.source=t+"";this.flags=n;this.switchU=i&&this.parser.options.ecmaVersion>=6;this.switchN=i&&this.parser.options.ecmaVersion>=9};be.prototype.raise=function raise(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)};be.prototype.at=function at(e){var t=this.source;var n=t.length;if(e>=n){return-1}var i=t.charCodeAt(e);if(!this.switchU||i<=55295||i>=57344||e+1>=n){return i}var r=t.charCodeAt(e+1);return r>=56320&&r<=57343?(i<<10)+r-56613888:i};be.prototype.nextIndex=function nextIndex(e){var t=this.source;var n=t.length;if(e>=n){return n}var i=t.charCodeAt(e),r;if(!this.switchU||i<=55295||i>=57344||e+1>=n||(r=t.charCodeAt(e+1))<56320||r>57343){return e+1}return e+2};be.prototype.current=function current(){return this.at(this.pos)};be.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))};be.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)};be.prototype.eat=function eat(e){if(this.current()===e){this.advance();return true}return false};function codePointToString(e){if(e<=65535){return String.fromCharCode(e)}e-=65536;return String.fromCharCode((e>>10)+55296,(e&1023)+56320)}De.validateRegExpFlags=function(e){var t=e.validFlags;var n=e.flags;for(var i=0;i-1){this.raise(e.start,"Duplicate regular expression flag")}}};De.validateRegExpPattern=function(e){this.regexp_pattern(e);if(!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0){e.switchN=true;this.regexp_pattern(e)}};De.regexp_pattern=function(e){e.pos=0;e.lastIntValue=0;e.lastStringValue="";e.lastAssertionIsQuantifiable=false;e.numCapturingParens=0;e.maxBackReference=0;e.groupNames.length=0;e.backReferenceNames.length=0;this.regexp_disjunction(e);if(e.pos!==e.source.length){if(e.eat(41)){e.raise("Unmatched ')'")}if(e.eat(93)||e.eat(125)){e.raise("Lone quantifier brackets")}}if(e.maxBackReference>e.numCapturingParens){e.raise("Invalid escape")}for(var t=0,n=e.backReferenceNames;t=9){n=e.eat(60)}if(e.eat(61)||e.eat(33)){this.regexp_disjunction(e);if(!e.eat(41)){e.raise("Unterminated group")}e.lastAssertionIsQuantifiable=!n;return true}}e.pos=t;return false};De.regexp_eatQuantifier=function(e,t){if(t===void 0)t=false;if(this.regexp_eatQuantifierPrefix(e,t)){e.eat(63);return true}return false};De.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};De.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var i=0,r=-1;if(this.regexp_eatDecimalDigits(e)){i=e.lastIntValue;if(e.eat(44)&&this.regexp_eatDecimalDigits(e)){r=e.lastIntValue}if(e.eat(125)){if(r!==-1&&r=9){this.regexp_groupSpecifier(e)}else if(e.current()===63){e.raise("Invalid group")}this.regexp_disjunction(e);if(e.eat(41)){e.numCapturingParens+=1;return true}e.raise("Unterminated group")}return false};De.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};De.regexp_eatInvalidBracedQuantifier=function(e){if(this.regexp_eatBracedQuantifier(e,true)){e.raise("Nothing to repeat")}return false};De.regexp_eatSyntaxCharacter=function(e){var t=e.current();if(isSyntaxCharacter(t)){e.lastIntValue=t;e.advance();return true}return false};function isSyntaxCharacter(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}De.regexp_eatPatternCharacters=function(e){var t=e.pos;var n=0;while((n=e.current())!==-1&&!isSyntaxCharacter(n)){e.advance()}return e.pos!==t};De.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();if(t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124){e.advance();return true}return false};De.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){if(e.groupNames.indexOf(e.lastStringValue)!==-1){e.raise("Duplicate capture group name")}e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};De.regexp_eatGroupName=function(e){e.lastStringValue="";if(e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62)){return true}e.raise("Invalid capture group name")}return false};De.regexp_eatRegExpIdentifierName=function(e){e.lastStringValue="";if(this.regexp_eatRegExpIdentifierStart(e)){e.lastStringValue+=codePointToString(e.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(e)){e.lastStringValue+=codePointToString(e.lastIntValue)}return true}return false};De.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos;var n=e.current();e.advance();if(n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e)){n=e.lastIntValue}if(isRegExpIdentifierStart(n)){e.lastIntValue=n;return true}e.pos=t;return false};function isRegExpIdentifierStart(e){return isIdentifierStart(e,true)||e===36||e===95}De.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos;var n=e.current();e.advance();if(n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e)){n=e.lastIntValue}if(isRegExpIdentifierPart(n)){e.lastIntValue=n;return true}e.pos=t;return false};function isRegExpIdentifierPart(e){return isIdentifierChar(e,true)||e===36||e===95||e===8204||e===8205}De.regexp_eatAtomEscape=function(e){if(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)){return true}if(e.switchU){if(e.current()===99){e.raise("Invalid unicode escape")}e.raise("Invalid escape")}return false};De.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU){if(n>e.maxBackReference){e.maxBackReference=n}return true}if(n<=e.numCapturingParens){return true}e.pos=t}return false};De.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e)){e.backReferenceNames.push(e.lastStringValue);return true}e.raise("Invalid named reference")}return false};De.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};De.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e)){return true}e.pos=t}return false};De.regexp_eatZero=function(e){if(e.current()===48&&!isDecimalDigit(e.lookahead())){e.lastIntValue=0;e.advance();return true}return false};De.regexp_eatControlEscape=function(e){var t=e.current();if(t===116){e.lastIntValue=9;e.advance();return true}if(t===110){e.lastIntValue=10;e.advance();return true}if(t===118){e.lastIntValue=11;e.advance();return true}if(t===102){e.lastIntValue=12;e.advance();return true}if(t===114){e.lastIntValue=13;e.advance();return true}return false};De.regexp_eatControlLetter=function(e){var t=e.current();if(isControlLetter(t)){e.lastIntValue=t%32;e.advance();return true}return false};function isControlLetter(e){return e>=65&&e<=90||e>=97&&e<=122}De.regexp_eatRegExpUnicodeEscapeSequence=function(e){var t=e.pos;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(e.switchU&&n>=55296&&n<=56319){var i=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(r>=56320&&r<=57343){e.lastIntValue=(n-55296)*1024+(r-56320)+65536;return true}}e.pos=i;e.lastIntValue=n}return true}if(e.switchU&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&isValidUnicode(e.lastIntValue)){return true}if(e.switchU){e.raise("Invalid unicode escape")}e.pos=t}return false};function isValidUnicode(e){return e>=0&&e<=1114111}De.regexp_eatIdentityEscape=function(e){if(e.switchU){if(this.regexp_eatSyntaxCharacter(e)){return true}if(e.eat(47)){e.lastIntValue=47;return true}return false}var t=e.current();if(t!==99&&(!e.switchN||t!==107)){e.lastIntValue=t;e.advance();return true}return false};De.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48);e.advance()}while((t=e.current())>=48&&t<=57);return true}return false};De.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(isCharacterClassEscape(t)){e.lastIntValue=-1;e.advance();return true}if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){e.lastIntValue=-1;e.advance();if(e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125)){return true}e.raise("Invalid property name")}return false};function isCharacterClassEscape(e){return e===100||e===68||e===115||e===83||e===119||e===87}De.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;this.regexp_validateUnicodePropertyNameAndValue(e,n,i);return true}}e.pos=t;if(this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;this.regexp_validateUnicodePropertyNameOrValue(e,r);return true}return false};De.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){if(!has(e.unicodeProperties.nonBinary,t)){e.raise("Invalid property name")}if(!e.unicodeProperties.nonBinary[t].test(n)){e.raise("Invalid property value")}};De.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(!e.unicodeProperties.binary.test(t)){e.raise("Invalid property name")}};De.regexp_eatUnicodePropertyName=function(e){var t=0;e.lastStringValue="";while(isUnicodePropertyNameCharacter(t=e.current())){e.lastStringValue+=codePointToString(t);e.advance()}return e.lastStringValue!==""};function isUnicodePropertyNameCharacter(e){return isControlLetter(e)||e===95}De.regexp_eatUnicodePropertyValue=function(e){var t=0;e.lastStringValue="";while(isUnicodePropertyValueCharacter(t=e.current())){e.lastStringValue+=codePointToString(t);e.advance()}return e.lastStringValue!==""};function isUnicodePropertyValueCharacter(e){return isUnicodePropertyNameCharacter(e)||isDecimalDigit(e)}De.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};De.regexp_eatCharacterClass=function(e){if(e.eat(91)){e.eat(94);this.regexp_classRanges(e);if(e.eat(93)){return true}e.raise("Unterminated character class")}return false};De.regexp_classRanges=function(e){while(this.regexp_eatClassAtom(e)){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;if(e.switchU&&(t===-1||n===-1)){e.raise("Invalid character class")}if(t!==-1&&n!==-1&&t>n){e.raise("Range out of order in character class")}}}};De.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e)){return true}if(e.switchU){var n=e.current();if(n===99||isOctalDigit(n)){e.raise("Invalid class escape")}e.raise("Invalid escape")}e.pos=t}var i=e.current();if(i!==93){e.lastIntValue=i;e.advance();return true}return false};De.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98)){e.lastIntValue=8;return true}if(e.switchU&&e.eat(45)){e.lastIntValue=45;return true}if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e)){return true}e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};De.regexp_eatClassControlLetter=function(e){var t=e.current();if(isDecimalDigit(t)||t===95){e.lastIntValue=t%32;e.advance();return true}return false};De.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2)){return true}if(e.switchU){e.raise("Invalid escape")}e.pos=t}return false};De.regexp_eatDecimalDigits=function(e){var t=e.pos;var n=0;e.lastIntValue=0;while(isDecimalDigit(n=e.current())){e.lastIntValue=10*e.lastIntValue+(n-48);e.advance()}return e.pos!==t};function isDecimalDigit(e){return e>=48&&e<=57}De.regexp_eatHexDigits=function(e){var t=e.pos;var n=0;e.lastIntValue=0;while(isHexDigit(n=e.current())){e.lastIntValue=16*e.lastIntValue+hexToInt(n);e.advance()}return e.pos!==t};function isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function hexToInt(e){if(e>=65&&e<=70){return 10+(e-65)}if(e>=97&&e<=102){return 10+(e-97)}return e-48}De.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;if(t<=3&&this.regexp_eatOctalDigit(e)){e.lastIntValue=t*64+n*8+e.lastIntValue}else{e.lastIntValue=t*8+n}}else{e.lastIntValue=t}return true}return false};De.regexp_eatOctalDigit=function(e){var t=e.current();if(isOctalDigit(t)){e.lastIntValue=t-48;e.advance();return true}e.lastIntValue=0;return false};function isOctalDigit(e){return e>=48&&e<=55}De.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var i=0;i=this.input.length){return this.finishToken(d.eof)}if(e.override){return e.override(this)}else{this.readToken(this.fullCharCodeAtPos())}};ke.readToken=function(e){if(isIdentifierStart(e,this.options.ecmaVersion>=6)||e===92){return this.readWord()}return this.getTokenFromCode(e)};ke.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=57344){return e}var t=this.input.charCodeAt(this.pos+1);return(e<<10)+t-56613888};ke.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition();var t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(n===-1){this.raise(this.pos-2,"Unterminated comment")}this.pos=n+2;if(this.options.locations){E.lastIndex=t;var i;while((i=E.exec(this.input))&&i.index8&&e<14||e>=5760&&g.test(String.fromCharCode(e))){++this.pos}else{break e}}}};ke.finishToken=function(e,t){this.end=this.pos;if(this.options.locations){this.endLoc=this.curPosition()}var n=this.type;this.type=e;this.value=t;this.updateContext(n)};ke.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57){return this.readNumber(true)}var t=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&e===46&&t===46){this.pos+=3;return this.finishToken(d.ellipsis)}else{++this.pos;return this.finishToken(d.dot)}};ke.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);if(this.exprAllowed){++this.pos;return this.readRegexp()}if(e===61){return this.finishOp(d.assign,2)}return this.finishOp(d.slash,1)};ke.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1);var n=1;var i=e===42?d.star:d.modulo;if(this.options.ecmaVersion>=7&&e===42&&t===42){++n;i=d.starstar;t=this.input.charCodeAt(this.pos+2)}if(t===61){return this.finishOp(d.assign,n+1)}return this.finishOp(i,n)};ke.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){return this.finishOp(e===124?d.logicalOR:d.logicalAND,2)}if(t===61){return this.finishOp(d.assign,2)}return this.finishOp(e===124?d.bitwiseOR:d.bitwiseAND,1)};ke.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);if(e===61){return this.finishOp(d.assign,2)}return this.finishOp(d.bitwiseXOR,1)};ke.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||m.test(this.input.slice(this.lastTokEnd,this.pos)))){this.skipLineComment(3);this.skipSpace();return this.nextToken()}return this.finishOp(d.incDec,2)}if(t===61){return this.finishOp(d.assign,2)}return this.finishOp(d.plusMin,1)};ke.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1);var n=1;if(t===e){n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2;if(this.input.charCodeAt(this.pos+n)===61){return this.finishOp(d.assign,n+1)}return this.finishOp(d.bitShift,n)}if(t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45){this.skipLineComment(4);this.skipSpace();return this.nextToken()}if(t===61){n=2}return this.finishOp(d.relational,n)};ke.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===61){return this.finishOp(d.equality,this.input.charCodeAt(this.pos+2)===61?3:2)}if(e===61&&t===62&&this.options.ecmaVersion>=6){this.pos+=2;return this.finishToken(d.arrow)}return this.finishOp(e===61?d.eq:d.prefix,1)};ke.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:++this.pos;return this.finishToken(d.parenL);case 41:++this.pos;return this.finishToken(d.parenR);case 59:++this.pos;return this.finishToken(d.semi);case 44:++this.pos;return this.finishToken(d.comma);case 91:++this.pos;return this.finishToken(d.bracketL);case 93:++this.pos;return this.finishToken(d.bracketR);case 123:++this.pos;return this.finishToken(d.braceL);case 125:++this.pos;return this.finishToken(d.braceR);case 58:++this.pos;return this.finishToken(d.colon);case 63:++this.pos;return this.finishToken(d.question);case 96:if(this.options.ecmaVersion<6){break}++this.pos;return this.finishToken(d.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88){return this.readRadixNumber(16)}if(this.options.ecmaVersion>=6){if(t===111||t===79){return this.readRadixNumber(8)}if(t===98||t===66){return this.readRadixNumber(2)}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(false);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(d.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(e)+"'")};ke.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);this.pos+=t;return this.finishToken(e,n)};ke.readRegexp=function(){var e,t,n=this.pos;for(;;){if(this.pos>=this.input.length){this.raise(n,"Unterminated regular expression")}var i=this.input.charAt(this.pos);if(m.test(i)){this.raise(n,"Unterminated regular expression")}if(!e){if(i==="["){t=true}else if(i==="]"&&t){t=false}else if(i==="/"&&!t){break}e=i==="\\"}else{e=false}++this.pos}var r=this.input.slice(n,this.pos);++this.pos;var a=this.pos;var o=this.readWord1();if(this.containsEsc){this.unexpected(a)}var s=this.regexpState||(this.regexpState=new be(this));s.reset(n,r,o);this.validateRegExpFlags(s);this.validateRegExpPattern(s);var u=null;try{u=new RegExp(r,o)}catch(e){}return this.finishToken(d.regexp,{pattern:r,flags:o,value:u})};ke.readInt=function(e,t){var n=this.pos,i=0;for(var r=0,a=t==null?Infinity:t;r=97){s=o-97+10}else if(o>=65){s=o-65+10}else if(o>=48&&o<=57){s=o-48}else{s=Infinity}if(s>=e){break}++this.pos;i=i*e+s}if(this.pos===n||t!=null&&this.pos-n!==t){return null}return i};ke.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);if(n==null){this.raise(this.start+2,"Expected number in radix "+e)}if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110){n=typeof BigInt!=="undefined"?BigInt(this.input.slice(t,this.pos)):null;++this.pos}else if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}return this.finishToken(d.num,n)};ke.readNumber=function(e){var t=this.pos;if(!e&&this.readInt(10)===null){this.raise(t,"Invalid number")}var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;if(n&&this.strict){this.raise(t,"Invalid number")}var i=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&i===110){var r=this.input.slice(t,this.pos);var a=typeof BigInt!=="undefined"?BigInt(r):null;++this.pos;if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}return this.finishToken(d.num,a)}if(n&&/[89]/.test(this.input.slice(t,this.pos))){n=false}if(i===46&&!n){++this.pos;this.readInt(10);i=this.input.charCodeAt(this.pos)}if((i===69||i===101)&&!n){i=this.input.charCodeAt(++this.pos);if(i===43||i===45){++this.pos}if(this.readInt(10)===null){this.raise(t,"Invalid number")}}if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}var o=this.input.slice(t,this.pos);var s=n?parseInt(o,8):parseFloat(o);return this.finishToken(d.num,s)};ke.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){if(this.options.ecmaVersion<6){this.unexpected()}var n=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos);++this.pos;if(t>1114111){this.invalidStringToken(n,"Code point out of bounds")}}else{t=this.readHexChar(4)}return t};function codePointToString$1(e){if(e<=65535){return String.fromCharCode(e)}e-=65536;return String.fromCharCode((e>>10)+55296,(e&1023)+56320)}ke.readString=function(e){var t="",n=++this.pos;for(;;){if(this.pos>=this.input.length){this.raise(this.start,"Unterminated string constant")}var i=this.input.charCodeAt(this.pos);if(i===e){break}if(i===92){t+=this.input.slice(n,this.pos);t+=this.readEscapedChar(false);n=this.pos}else{if(isNewLine(i,this.options.ecmaVersion>=10)){this.raise(this.start,"Unterminated string constant")}++this.pos}}t+=this.input.slice(n,this.pos++);return this.finishToken(d.string,t)};var Se={};ke.tryReadTemplateToken=function(){this.inTemplateElement=true;try{this.readTmplToken()}catch(e){if(e===Se){this.readInvalidTemplateToken()}else{throw e}}this.inTemplateElement=false};ke.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9){throw Se}else{this.raise(e,t)}};ke.readTmplToken=function(){var e="",t=this.pos;for(;;){if(this.pos>=this.input.length){this.raise(this.start,"Unterminated template")}var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===d.template||this.type===d.invalidTemplate)){if(n===36){this.pos+=2;return this.finishToken(d.dollarBraceL)}else{++this.pos;return this.finishToken(d.backQuote)}}e+=this.input.slice(t,this.pos);return this.finishToken(d.template,e)}if(n===92){e+=this.input.slice(t,this.pos);e+=this.readEscapedChar(true);t=this.pos}else if(isNewLine(n)){e+=this.input.slice(t,this.pos);++this.pos;switch(n){case 13:if(this.input.charCodeAt(this.pos)===10){++this.pos}case 10:e+="\n";break;default:e+=String.fromCharCode(n);break}if(this.options.locations){++this.curLine;this.lineStart=this.pos}t=this.pos}else{++this.pos}}};ke.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0];var r=parseInt(i,8);if(r>255){i=i.slice(0,-1);r=parseInt(i,8)}this.pos+=i.length-1;t=this.input.charCodeAt(this.pos);if((i!=="0"||t===56||t===57)&&(this.strict||e)){this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode")}return String.fromCharCode(r)}if(isNewLine(t)){return""}return String.fromCharCode(t)}};ke.readHexChar=function(e){var t=this.pos;var n=this.readInt(16,e);if(n===null){this.invalidStringToken(t,"Bad character escape sequence")}return n};ke.readWord1=function(){this.containsEsc=false;var e="",t=true,n=this.pos;var i=this.options.ecmaVersion>=6;while(this.pos5&&t<2015)t+=2009;i[n]=t}else{i[n]=e&&HOP(e,n)?e[n]:t[n]}}return i}function noop(){}function return_false(){return false}function return_true(){return true}function return_this(){return this}function return_null(){return null}var i=function(){function MAP(t,n,i){var r=[],a=[],o;function doit(){var s=n(t[o],o);var u=s instanceof Last;if(u)s=s.v;if(s instanceof AtTop){s=s.v;if(s instanceof Splice){a.push.apply(a,i?s.v.slice().reverse():s.v)}else{a.push(s)}}else if(s!==e){if(s instanceof Splice){r.push.apply(r,i?s.v.slice().reverse():s.v)}else{r.push(s)}}return u}if(Array.isArray(t)){if(i){for(o=t.length;--o>=0;)if(doit())break;r.reverse();a.reverse()}else{for(o=0;o=0;){if(e[n]===t)e.splice(n,1)}}function mergeSort(e,t){if(e.length<2)return e.slice();function merge(e,n){var i=[],r=0,a=0,o=0;while(r{n+=e})}return n}function has_annotation(e,t){return e._annotations&t}function set_annotation(e,t){e._annotations|=t}var o="break case catch class const continue debugger default delete do else export extends finally for function if in instanceof let new return switch throw try typeof var void while with";var s="false null true";var u="enum implements import interface package private protected public static super this "+s+" "+o;var c="return new delete throw else case yield await";o=makePredicate(o);u=makePredicate(u);c=makePredicate(c);s=makePredicate(s);var l=makePredicate(characters("+-*&%=<>!?|~^"));var f=/[0-9a-f]/i;var p=/^0x[0-9a-f]+$/i;var _=/^0[0-7]+$/;var h=/^0o[0-7]+$/i;var d=/^0b[01]+$/i;var m=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i;var E=/^(0[xob])?[0-9a-f]+n$/i;var g=makePredicate(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","**","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","??","||"]);var v=makePredicate(characters("  \n\r\t\f\v​           \u2028\u2029   \ufeff"));var D=makePredicate(characters("\n\r\u2028\u2029"));var b=makePredicate(characters(";]),:"));var y=makePredicate(characters("[{(,;:"));var k=makePredicate(characters("[]{}(),;:"));var S={ID_Start:/[$A-Z_a-z\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\u08A0-\u08B4\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\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\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\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-\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\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\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\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\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[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\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]|\uD82C[\uDC00\uDC01]|\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]|\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]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/(?:[$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\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\u08A0-\u08B4\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\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\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\u0C81-\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\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\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\u1369-\u1371\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-\u19DA\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\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\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\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\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\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[\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\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\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]|\uD82C[\uDC00\uDC01]|\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]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\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]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF])+/};function get_full_char(e,t){if(is_surrogate_pair_head(e.charCodeAt(t))){if(is_surrogate_pair_tail(e.charCodeAt(t+1))){return e.charAt(t)+e.charAt(t+1)}}else if(is_surrogate_pair_tail(e.charCodeAt(t))){if(is_surrogate_pair_head(e.charCodeAt(t-1))){return e.charAt(t-1)+e.charAt(t)}}return e.charAt(t)}function get_full_char_code(e,t){if(is_surrogate_pair_head(e.charCodeAt(t))){return 65536+(e.charCodeAt(t)-55296<<10)+e.charCodeAt(t+1)-56320}return e.charCodeAt(t)}function get_full_char_length(e){var t=0;for(var n=0;n65535){e-=65536;return String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)}return String.fromCharCode(e)}function is_surrogate_pair_head(e){return e>=55296&&e<=56319}function is_surrogate_pair_tail(e){return e>=56320&&e<=57343}function is_digit(e){return e>=48&&e<=57}function is_identifier_start(e){return S.ID_Start.test(e)}function is_identifier_char(e){return S.ID_Continue.test(e)}function is_basic_identifier_string(e){return/^[a-z_$][a-z0-9_$]*$/i.test(e)}function is_identifier_string(e,t){if(/^[a-z_$][a-z0-9_$]*$/i.test(e)){return true}if(!t&&/[\ud800-\udfff]/.test(e)){return false}var n=S.ID_Start.exec(e);if(!n||n.index!==0){return false}e=e.slice(n[0].length);if(!e){return true}n=S.ID_Continue.exec(e);return!!n&&n[0].length===e.length}function parse_js_number(e,t=true){if(!t&&e.includes("e")){return NaN}if(p.test(e)){return parseInt(e.substr(2),16)}else if(_.test(e)){return parseInt(e.substr(1),8)}else if(h.test(e)){return parseInt(e.substr(2),8)}else if(d.test(e)){return parseInt(e.substr(2),2)}else if(m.test(e)){return parseFloat(e)}else{var n=parseFloat(e);if(n==e)return n}}class JS_Parse_Error extends Error{constructor(e,t,n,i,r){super();this.name="SyntaxError";this.message=e;this.filename=t;this.line=n;this.col=i;this.pos=r}}function js_error(e,t,n,i,r){throw new JS_Parse_Error(e,t,n,i,r)}function is_token(e,t,n){return e.type==t&&(n==null||e.value==n)}var A={};function tokenizer(e,t,n,i){var r={text:e,filename:t,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:false,regex_allowed:false,brace_counter:0,template_braces:[],comments_before:[],directives:{},directive_stack:[]};function peek(){return get_full_char(r.text,r.pos)}function next(e,t){var n=get_full_char(r.text,r.pos++);if(e&&!n)throw A;if(D.has(n)){r.newline_before=r.newline_before||!t;++r.line;r.col=0;if(n=="\r"&&peek()=="\n"){++r.pos;n="\n"}}else{if(n.length>1){++r.pos;++r.col}++r.col}return n}function forward(e){while(e--)next()}function looking_at(e){return r.text.substr(r.pos,e.length)==e}function find_eol(){var e=r.text;for(var t=r.pos,n=r.text.length;t="0"&&e<="7"}function read_escaped_char(e,t,n){var i=next(true,e);switch(i.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 120:return String.fromCharCode(hex_bytes(2,t));case 117:if(peek()=="{"){next(true);if(peek()==="}")parse_error("Expecting hex-character between {}");while(peek()=="0")next(true);var a,o=find("}",true)-r.pos;if(o>6||(a=hex_bytes(o,t))>1114111){parse_error("Unicode reference out of bounds")}next(true);return from_char_code(a)}return String.fromCharCode(hex_bytes(4,t));case 10:return"";case 13:if(peek()=="\n"){next(true,e);return""}}if(is_octal(i)){if(n&&t){const e=i==="0"&&!is_octal(peek());if(!e){parse_error("Octal escape sequences are not allowed in template strings")}}return read_octal_escape_sequence(i,t)}return i}function read_octal_escape_sequence(e,t){var n=peek();if(n>="0"&&n<="7"){e+=next(true);if(e[0]<="3"&&(n=peek())>="0"&&n<="7")e+=next(true)}if(e==="0")return"\0";if(e.length>0&&next_token.has_directive("use strict")&&t)parse_error("Legacy octal escape sequences are not allowed in strict mode");return String.fromCharCode(parseInt(e,8))}function hex_bytes(e,t){var n=0;for(;e>0;--e){if(!t&&isNaN(parseInt(peek(),16))){return parseInt(n,16)||""}var i=next(true);if(isNaN(parseInt(i,16)))parse_error("Invalid hex-character pattern in string");n+=i}return parseInt(n,16)}var d=with_eof_error("Unterminated string constant",function(){var e=next(),t="";for(;;){var n=next(true,true);if(n=="\\")n=read_escaped_char(true,true);else if(n=="\r"||n=="\n")parse_error("Unterminated string constant");else if(n==e)break;t+=n}var i=token("string",t);i.quote=e;return i});var m=with_eof_error("Unterminated template",function(e){if(e){r.template_braces.push(r.brace_counter)}var t="",n="",i,a;next(true,true);while((i=next(true,true))!="`"){if(i=="\r"){if(peek()=="\n")++r.pos;i="\n"}else if(i=="$"&&peek()=="{"){next(true,true);r.brace_counter++;a=token(e?"template_head":"template_substitution",t);a.raw=n;return a}n+=i;if(i=="\\"){var o=r.pos;var s=h&&(h.type==="name"||h.type==="punc"&&(h.value===")"||h.value==="]"));i=read_escaped_char(true,!s,true);n+=r.text.substr(o,r.pos-o)}t+=i}r.template_braces.pop();a=token(e?"template_head":"template_substitution",t);a.raw=n;a.end=true;return a});function skip_line_comment(e){var t=r.regex_allowed;var n=find_eol(),i;if(n==-1){i=r.text.substr(r.pos);r.pos=r.text.length}else{i=r.text.substring(r.pos,n);r.pos=n}r.col=r.tokcol+(r.pos-r.tokpos);r.comments_before.push(token(e,i,true));r.regex_allowed=t;return next_token}var b=with_eof_error("Unterminated multiline comment",function(){var e=r.regex_allowed;var t=find("*/",true);var n=r.text.substring(r.pos,t).replace(/\r\n|\r|\u2028|\u2029/g,"\n");forward(get_full_char_length(n)+2);r.comments_before.push(token("comment2",n,true));r.newline_before=r.newline_before||n.includes("\n");r.regex_allowed=e;return next_token});var S=with_eof_error("Unterminated identifier name",function(){var e,t,n=false;var i=function(){n=true;next();if(peek()!=="u"){parse_error("Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}")}return read_escaped_char(false,true)};if((e=peek())==="\\"){e=i();if(!is_identifier_start(e)){parse_error("First identifier char is an invalid identifier char")}}else if(is_identifier_start(e)){next()}else{return""}while((t=peek())!=null){if((t=peek())==="\\"){t=i();if(!is_identifier_char(t)){parse_error("Invalid escaped identifier char")}}else{if(!is_identifier_char(t)){break}next()}e+=t}if(u.has(e)&&n){parse_error("Escaped characters are not allowed in keywords")}return e});var T=with_eof_error("Unterminated regular expression",function(e){var t=false,n,i=false;while(n=next(true))if(D.has(n)){parse_error("Unexpected line terminator")}else if(t){e+="\\"+n;t=false}else if(n=="["){i=true;e+=n}else if(n=="]"&&i){i=false;e+=n}else if(n=="/"&&!i){break}else if(n=="\\"){t=true}else{e+=n}const r=S();return token("regexp",{source:e,flags:r})});function read_operator(e){function grow(e){if(!peek())return e;var t=e+peek();if(g.has(t)){next();return grow(t)}else{return e}}return token("operator",grow(e||next()))}function handle_slash(){next();switch(peek()){case"/":next();return skip_line_comment("comment1");case"*":next();return b()}return r.regex_allowed?T(""):read_operator("/")}function handle_eq_sign(){next();if(peek()===">"){next();return token("arrow","=>")}else{return read_operator("=")}}function handle_dot(){next();if(is_digit(peek().charCodeAt(0))){return read_num(".")}if(peek()==="."){next();next();return token("expand","...")}return token("punc",".")}function read_word(){var e=S();if(a)return token("name",e);return s.has(e)?token("atom",e):!o.has(e)?token("name",e):g.has(e)?token("operator",e):token("keyword",e)}function with_eof_error(e,t){return function(n){try{return t(n)}catch(t){if(t===A)parse_error(e);else throw t}}}function next_token(e){if(e!=null)return T(e);if(i&&r.pos==0&&looking_at("#!")){start_token();forward(2);skip_line_comment("comment5")}for(;;){skip_whitespace();start_token();if(n){if(looking_at("\x3c!--")){forward(4);skip_line_comment("comment3");continue}if(looking_at("--\x3e")&&r.newline_before){forward(3);skip_line_comment("comment4");continue}}var t=peek();if(!t)return token("eof");var a=t.charCodeAt(0);switch(a){case 34:case 39:return d();case 46:return handle_dot();case 47:{var o=handle_slash();if(o===next_token)continue;return o}case 61:return handle_eq_sign();case 96:return m(true);case 123:r.brace_counter++;break;case 125:r.brace_counter--;if(r.template_braces.length>0&&r.template_braces[r.template_braces.length-1]===r.brace_counter)return m(false);break}if(is_digit(a))return read_num();if(k.has(t))return token("punc",next());if(l.has(t))return read_operator();if(a==92||is_identifier_start(t))return read_word();break}parse_error("Unexpected character '"+t+"'")}next_token.next=next;next_token.peek=peek;next_token.context=function(e){if(e)r=e;return r};next_token.add_directive=function(e){r.directive_stack[r.directive_stack.length-1].push(e);if(r.directives[e]===undefined){r.directives[e]=1}else{r.directives[e]++}};next_token.push_directives_stack=function(){r.directive_stack.push([])};next_token.pop_directives_stack=function(){var e=r.directive_stack[r.directive_stack.length-1];for(var t=0;t0};return next_token}var T=makePredicate(["typeof","void","delete","--","++","!","~","-","+"]);var C=makePredicate(["--","++"]);var x=makePredicate(["=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&="]);var O=function(e,t){for(var n=0;n","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],{});var F=makePredicate(["atom","num","big_int","string","regexp","name"]);function parse(e,t){const n=new Map;t=defaults(t,{bare_returns:false,ecma:2017,expression:false,filename:null,html5_comments:true,module:false,shebang:true,strict:false,toplevel:null},true);var i={input:typeof e=="string"?tokenizer(e,t.filename,t.html5_comments,t.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_async:-1,in_generator:-1,in_directives:true,in_loop:0,labels:[]};i.token=next();function is(e,t){return is_token(i.token,e,t)}function peek(){return i.peeked||(i.peeked=i.input())}function next(){i.prev=i.token;if(!i.peeked)peek();i.token=i.peeked;i.peeked=null;i.in_directives=i.in_directives&&(i.token.type=="string"||is("punc",";"));return i.token}function prev(){return i.prev}function croak(e,t,n,r){var a=i.input.context();js_error(e,a.filename,t!=null?t:a.tokline,n!=null?n:a.tokcol,r!=null?r:a.tokpos)}function token_error(e,t){croak(t,e.line,e.col)}function unexpected(e){if(e==null)e=i.token;token_error(e,"Unexpected token: "+e.type+" ("+e.value+")")}function expect_token(e,t){if(is(e,t)){return next()}token_error(i.token,"Unexpected token "+i.token.type+" «"+i.token.value+"»"+", expected "+e+" «"+t+"»")}function expect(e){return expect_token("punc",e)}function has_newline_before(e){return e.nlb||!e.comments_before.every(e=>!e.nlb)}function can_insert_semicolon(){return!t.strict&&(is("eof")||is("punc","}")||has_newline_before(i.token))}function is_in_generator(){return i.in_generator===i.in_function}function is_in_async(){return i.in_async===i.in_function}function semicolon(e){if(is("punc",";"))next();else if(!e&&!can_insert_semicolon())unexpected()}function parenthesised(){expect("(");var e=y(true);expect(")");return e}function embed_tokens(e){return function(...t){const n=i.token;const r=e(...t);r.start=n;r.end=prev();return r}}function handle_regexp(){if(is("operator","/")||is("operator","/=")){i.peeked=null;i.token=i.input(i.token.value.substr(1))}}var r=embed_tokens(function(e,n,a){handle_regexp();switch(i.token.type){case"string":if(i.in_directives){var u=peek();if(!i.token.raw.includes("\\")&&(is_token(u,"punc",";")||is_token(u,"punc","}")||has_newline_before(u)||is_token(u,"eof"))){i.input.add_directive(i.token.value)}else{i.in_directives=false}}var f=i.in_directives,p=simple_statement();return f&&p.body instanceof Ot?new I(p.body):p;case"template_head":case"num":case"big_int":case"regexp":case"operator":case"atom":return simple_statement();case"name":if(i.token.value=="async"&&is_token(peek(),"keyword","function")){next();next();if(n){croak("functions are not allowed as the body of a loop")}return o(ie,false,true,e)}if(i.token.value=="import"&&!is_token(peek(),"punc","(")&&!is_token(peek(),"punc",".")){next();var _=import_();semicolon();return _}return is_token(peek(),"punc",":")?labeled_statement():simple_statement();case"punc":switch(i.token.value){case"{":return new L({start:i.token,body:block_(),end:prev()});case"[":case"(":return simple_statement();case";":i.in_directives=false;next();return new B;default:unexpected()}case"keyword":switch(i.token.value){case"break":next();return break_cont(_e);case"continue":next();return break_cont(he);case"debugger":next();semicolon();return new N;case"do":next();var h=in_loop(r);expect_token("keyword","while");var d=parenthesised();semicolon(true);return new H({body:h,condition:d});case"while":next();return new X({condition:parenthesised(),body:in_loop(function(){return r(false,true)})});case"for":next();return for_();case"class":next();if(n){croak("classes are not allowed as the body of a loop")}if(a){croak("classes are not allowed as the body of an if")}return class_(nt);case"function":next();if(n){croak("functions are not allowed as the body of a loop")}return o(ie,false,false,e);case"if":next();return if_();case"return":if(i.in_function==0&&!t.bare_returns)croak("'return' outside of function");next();var m=null;if(is("punc",";")){next()}else if(!can_insert_semicolon()){m=y(true);semicolon()}return new le({value:m});case"switch":next();return new ge({expression:parenthesised(),body:in_loop(switch_body_)});case"throw":next();if(has_newline_before(i.token))croak("Illegal newline after 'throw'");var m=y(true);semicolon();return new fe({value:m});case"try":next();return try_();case"var":next();var _=s();semicolon();return _;case"let":next();var _=c();semicolon();return _;case"const":next();var _=l();semicolon();return _;case"with":if(i.input.has_directive("use strict")){croak("Strict mode may not include a with statement")}next();return new $({expression:parenthesised(),body:r()});case"export":if(!is_token(peek(),"punc","(")){next();var _=export_();if(is("punc",";"))semicolon();return _}}}unexpected()});function labeled_statement(){var e=as_symbol(bt);if(e.name==="await"&&is_in_async()){token_error(i.prev,"await cannot be used as label inside async function")}if(i.labels.some(t=>t.name===e.name)){croak("Label "+e.name+" defined twice")}expect(":");i.labels.push(e);var t=r();i.labels.pop();if(!(t instanceof z)){e.references.forEach(function(t){if(t instanceof he){t=t.label.start;croak("Continue label `"+e.name+"` refers to non-IterationStatement.",t.line,t.col,t.pos)}})}return new K({body:t,label:e})}function simple_statement(e){return new P({body:(e=y(true),semicolon(),e)})}function break_cont(e){var t=null,n;if(!can_insert_semicolon()){t=as_symbol(At,true)}if(t!=null){n=i.labels.find(e=>e.name===t.name);if(!n)croak("Undefined label "+t.name);t.thedef=n}else if(i.in_loop==0)croak(e.TYPE+" not inside a loop or switch");semicolon();var r=new e({label:t});if(n)n.references.push(r);return r}function for_(){var e="`for await` invalid in this context";var t=i.token;if(t.type=="name"&&t.value=="await"){if(!is_in_async()){token_error(t,e)}next()}else{t=false}expect("(");var n=null;if(!is("punc",";")){n=is("keyword","var")?(next(),s(true)):is("keyword","let")?(next(),c(true)):is("keyword","const")?(next(),l(true)):y(true,true);var r=is("operator","in");var a=is("name","of");if(t&&!a){token_error(t,e)}if(r||a){if(n instanceof Ae){if(n.definitions.length>1)token_error(n.start,"Only one variable declaration allowed in for..in loop")}else if(!(is_assignable(n)||(n=to_destructuring(n))instanceof re)){token_error(n.start,"Invalid left-hand side in for..in loop")}next();if(r){return for_in(n)}else{return for_of(n,!!t)}}}else if(t){token_error(t,e)}return regular_for(n)}function regular_for(e){expect(";");var t=is("punc",";")?null:y(true);expect(";");var n=is("punc",")")?null:y(true);expect(")");return new q({init:e,condition:t,step:n,body:in_loop(function(){return r(false,true)})})}function for_of(e,t){var n=e instanceof Ae?e.definitions[0].name:null;var i=y(true);expect(")");return new Y({await:t,init:e,name:n,object:i,body:in_loop(function(){return r(false,true)})})}function for_in(e){var t=y(true);expect(")");return new W({init:e,object:t,body:in_loop(function(){return r(false,true)})})}var a=function(e,t,n){if(has_newline_before(i.token)){croak("Unexpected newline before arrow (=>)")}expect_token("arrow","=>");var r=_function_body(is("punc","{"),false,n);var a=r instanceof Array&&r.length?r[r.length-1].end:r instanceof Array?e:r.end;return new ne({start:e,end:a,async:n,argnames:t,body:r})};var o=function(e,t,n,i){var r=e===ie;var a=is("operator","*");if(a){next()}var o=is("name")?as_symbol(r?pt:dt):null;if(r&&!o){if(i){e=te}else{unexpected()}}if(o&&e!==ee&&!(o instanceof ot))unexpected(prev());var s=[];var u=_function_body(true,a||t,n,o,s);return new e({start:s.start,end:u.end,is_generator:a,async:n,name:o,argnames:s,body:u})};function track_used_binding_identifiers(e,t){var n=new Set;var i=false;var r=false;var a=false;var o=!!t;var s={add_parameter:function(t){if(n.has(t.value)){if(i===false){i=t}s.check_strict()}else{n.add(t.value);if(e){switch(t.value){case"arguments":case"eval":case"yield":if(o){token_error(t,"Unexpected "+t.value+" identifier as parameter inside strict mode")}break;default:if(u.has(t.value)){unexpected()}}}}},mark_default_assignment:function(e){if(r===false){r=e}},mark_spread:function(e){if(a===false){a=e}},mark_strict_mode:function(){o=true},is_strict:function(){return r!==false||a!==false||o},check_strict:function(){if(s.is_strict()&&i!==false){token_error(i,"Parameter "+i.value+" was used already")}}};return s}function parameters(e){var n=track_used_binding_identifiers(true,i.input.has_directive("use strict"));expect("(");while(!is("punc",")")){var r=parameter(n);e.push(r);if(!is("punc",")")){expect(",");if(is("punc",")")&&t.ecma<2017)unexpected()}if(r instanceof Q){break}}next()}function parameter(e,t){var n;var r=false;if(e===undefined){e=track_used_binding_identifiers(true,i.input.has_directive("use strict"))}if(is("expand","...")){r=i.token;e.mark_spread(i.token);next()}n=binding_element(e,t);if(is("operator","=")&&r===false){e.mark_default_assignment(i.token);next();n=new qe({start:n.start,left:n,operator:"=",right:y(false),end:i.token})}if(r!==false){if(!is("punc",")")){unexpected()}n=new Q({start:r,expression:n,end:r})}e.check_strict();return n}function binding_element(e,t){var n=[];var r=true;var a=false;var o;var s=i.token;if(e===undefined){e=track_used_binding_identifiers(false,i.input.has_directive("use strict"))}t=t===undefined?ft:t;if(is("punc","[")){next();while(!is("punc","]")){if(r){r=false}else{expect(",")}if(is("expand","...")){a=true;o=i.token;e.mark_spread(i.token);next()}if(is("punc")){switch(i.token.value){case",":n.push(new Vt({start:i.token,end:i.token}));continue;case"]":break;case"[":case"{":n.push(binding_element(e,t));break;default:unexpected()}}else if(is("name")){e.add_parameter(i.token);n.push(as_symbol(t))}else{croak("Invalid function parameter")}if(is("operator","=")&&a===false){e.mark_default_assignment(i.token);next();n[n.length-1]=new qe({start:n[n.length-1].start,left:n[n.length-1],operator:"=",right:y(false),end:i.token})}if(a){if(!is("punc","]")){croak("Rest element must be last element")}n[n.length-1]=new Q({start:o,expression:n[n.length-1],end:o})}}expect("]");e.check_strict();return new re({start:s,names:n,is_array:true,end:prev()})}else if(is("punc","{")){next();while(!is("punc","}")){if(r){r=false}else{expect(",")}if(is("expand","...")){a=true;o=i.token;e.mark_spread(i.token);next()}if(is("name")&&(is_token(peek(),"punc")||is_token(peek(),"operator"))&&[",","}","="].includes(peek().value)){e.add_parameter(i.token);var u=prev();var c=as_symbol(t);if(a){n.push(new Q({start:o,expression:c,end:c.end}))}else{n.push(new je({start:u,key:c.name,value:c,end:c.end}))}}else if(is("punc","}")){continue}else{var l=i.token;var f=as_property_name();if(f===null){unexpected(prev())}else if(prev().type==="name"&&!is("punc",":")){n.push(new je({start:prev(),key:f,value:new t({start:prev(),name:f,end:prev()}),end:prev()}))}else{expect(":");n.push(new je({start:l,quote:l.quote,key:f,value:binding_element(e,t),end:prev()}))}}if(a){if(!is("punc","}")){croak("Rest element must be last element")}}else if(is("operator","=")){e.mark_default_assignment(i.token);next();n[n.length-1].value=new qe({start:n[n.length-1].value.start,left:n[n.length-1].value,operator:"=",right:y(false),end:i.token})}}expect("}");e.check_strict();return new re({start:s,names:n,is_array:false,end:prev()})}else if(is("name")){e.add_parameter(i.token);return as_symbol(t)}else{croak("Invalid function parameter")}}function params_or_seq_(e,n){var r;var a;var o;var s=[];expect("(");while(!is("punc",")")){if(r)unexpected(r);if(is("expand","...")){r=i.token;if(n)a=i.token;next();s.push(new Q({start:prev(),expression:y(),end:i.token}))}else{s.push(y())}if(!is("punc",")")){expect(",");if(is("punc",")")){if(t.ecma<2017)unexpected();o=prev();if(n)a=o}}}expect(")");if(e&&is("arrow","=>")){if(r&&o)unexpected(o)}else if(a){unexpected(a)}return s}function _function_body(e,t,n,r,a){var o=i.in_loop;var s=i.labels;var u=i.in_generator;var c=i.in_async;++i.in_function;if(t)i.in_generator=i.in_function;if(n)i.in_async=i.in_function;if(a)parameters(a);if(e)i.in_directives=true;i.in_loop=0;i.labels=[];if(e){i.input.push_directives_stack();var l=block_();if(r)_verify_symbol(r);if(a)a.forEach(_verify_symbol);i.input.pop_directives_stack()}else{var l=[new le({start:i.token,value:y(false),end:i.token})]}--i.in_function;i.in_loop=o;i.labels=s;i.in_generator=u;i.in_async=c;return l}function _await_expression(){if(!is_in_async()){croak("Unexpected await expression outside async function",i.prev.line,i.prev.col,i.prev.pos)}return new de({start:prev(),end:i.token,expression:E(true)})}function _yield_expression(){if(!is_in_generator()){croak("Unexpected yield expression outside generator function",i.prev.line,i.prev.col,i.prev.pos)}var e=i.token;var t=false;var n=true;if(can_insert_semicolon()||is("punc")&&b.has(i.token.value)){n=false}else if(is("operator","*")){t=true;next()}return new me({start:e,is_star:t,expression:n?y():null,end:prev()})}function if_(){var e=parenthesised(),t=r(false,false,true),n=null;if(is("keyword","else")){next();n=r(false,false,true)}return new Ee({condition:e,body:t,alternative:n})}function block_(){expect("{");var e=[];while(!is("punc","}")){if(is("eof"))unexpected();e.push(r())}next();return e}function switch_body_(){expect("{");var e=[],t=null,n=null,a;while(!is("punc","}")){if(is("eof"))unexpected();if(is("keyword","case")){if(n)n.end=prev();t=[];n=new be({start:(a=i.token,next(),a),expression:y(true),body:t});e.push(n);expect(":")}else if(is("keyword","default")){if(n)n.end=prev();t=[];n=new De({start:(a=i.token,next(),expect(":"),a),body:t});e.push(n)}else{if(!t)unexpected();t.push(r())}}if(n)n.end=prev();next();return e}function try_(){var e=block_(),t=null,n=null;if(is("keyword","catch")){var r=i.token;next();if(is("punc","{")){var a=null}else{expect("(");var a=parameter(undefined,gt);expect(")")}t=new ke({start:r,argname:a,body:block_(),end:prev()})}if(is("keyword","finally")){var r=i.token;next();n=new Se({start:r,body:block_(),end:prev()})}if(!t&&!n)croak("Missing catch/finally blocks");return new ye({body:e,bcatch:t,bfinally:n})}function vardefs(e,t){var n=[];var r;for(;;){var a=t==="var"?st:t==="const"?ct:t==="let"?lt:null;if(is("punc","{")||is("punc","[")){r=new Oe({start:i.token,name:binding_element(undefined,a),value:is("operator","=")?(expect_token("operator","="),y(false,e)):null,end:prev()})}else{r=new Oe({start:i.token,name:as_symbol(a),value:is("operator","=")?(next(),y(false,e)):!e&&t==="const"?croak("Missing initializer in const declaration"):null,end:prev()});if(r.name.name=="import")croak("Unexpected token: import")}n.push(r);if(!is("punc",","))break;next()}return n}var s=function(e){return new Te({start:prev(),definitions:vardefs(e,"var"),end:prev()})};var c=function(e){return new Ce({start:prev(),definitions:vardefs(e,"let"),end:prev()})};var l=function(e){return new xe({start:prev(),definitions:vardefs(e,"const"),end:prev()})};var f=function(e){var n=i.token;expect_token("operator","new");if(is("punc",".")){next();expect_token("name","target");return m(new at({start:n,end:prev()}),e)}var r=p(false),a;if(is("punc","(")){next();a=expr_list(")",t.ecma>=2017)}else{a=[]}var o=new Ie({start:n,expression:r,args:a,end:prev()});annotate(o);return m(o,e)};function as_atom_node(){var e=i.token,t;switch(e.type){case"name":t=_make_symbol(yt);break;case"num":t=new Ft({start:e,end:e,value:e.value});break;case"big_int":t=new wt({start:e,end:e,value:e.value});break;case"string":t=new Ot({start:e,end:e,value:e.value,quote:e.quote});break;case"regexp":t=new Rt({start:e,end:e,value:e.value});break;case"atom":switch(e.value){case"false":t=new Ut({start:e,end:e});break;case"true":t=new Kt({start:e,end:e});break;case"null":t=new Nt({start:e,end:e});break}break}next();return t}function to_fun_args(e,t){var n=function(e,t){if(t){return new qe({start:e.start,left:e,operator:"=",right:t,end:t.end})}return e};if(e instanceof Ye){return n(new re({start:e.start,end:e.end,is_array:false,names:e.properties.map(e=>to_fun_args(e))}),t)}else if(e instanceof je){e.value=to_fun_args(e.value);return n(e,t)}else if(e instanceof Vt){return e}else if(e instanceof re){e.names=e.names.map(e=>to_fun_args(e));return n(e,t)}else if(e instanceof yt){return n(new ft({name:e.name,start:e.start,end:e.end}),t)}else if(e instanceof Q){e.expression=to_fun_args(e.expression);return n(e,t)}else if(e instanceof We){return n(new re({start:e.start,end:e.end,is_array:true,names:e.elements.map(e=>to_fun_args(e))}),t)}else if(e instanceof Xe){return n(to_fun_args(e.left,e.right),t)}else if(e instanceof qe){e.left=to_fun_args(e.left);return e}else{croak("Invalid function parameter",e.start.line,e.start.col)}}var p=function(e,t){if(is("operator","new")){return f(e)}if(is("operator","import")){return import_meta()}var r=i.token;var s;var u=is("name","async")&&(s=peek()).value!="["&&s.type!="arrow"&&as_atom_node();if(is("punc")){switch(i.token.value){case"(":if(u&&!e)break;var c=params_or_seq_(t,!u);if(t&&is("arrow","=>")){return a(r,c.map(e=>to_fun_args(e)),!!u)}var l=u?new Ne({expression:u,args:c}):c.length==1?c[0]:new Pe({expressions:c});if(l.start){const e=r.comments_before.length;n.set(r,e);l.start.comments_before.unshift(...r.comments_before);r.comments_before=l.start.comments_before;if(e==0&&r.comments_before.length>0){var p=r.comments_before[0];if(!p.nlb){p.nlb=r.nlb;r.nlb=false}}r.comments_after=l.start.comments_after}l.start=r;var h=prev();if(l.end){h.comments_before=l.end.comments_before;l.end.comments_after.push(...h.comments_after);h.comments_after=l.end.comments_after}l.end=h;if(l instanceof Ne)annotate(l);return m(l,e);case"[":return m(_(),e);case"{":return m(d(),e)}if(!u)unexpected()}if(t&&is("name")&&is_token(peek(),"arrow")){var E=new ft({name:i.token.value,start:r,end:r});next();return a(r,[E],!!u)}if(is("keyword","function")){next();var g=o(te,false,!!u);g.start=r;g.end=prev();return m(g,e)}if(u)return m(u,e);if(is("keyword","class")){next();var v=class_(it);v.start=r;v.end=prev();return m(v,e)}if(is("template_head")){return m(template_string(),e)}if(F.has(i.token.type)){return m(as_atom_node(),e)}unexpected()};function template_string(){var e=[],t=i.token;e.push(new se({start:i.token,raw:i.token.raw,value:i.token.value,end:i.token}));while(!i.token.end){next();handle_regexp();e.push(y(true));if(!is_token("template_substitution")){unexpected()}e.push(new se({start:i.token,raw:i.token.raw,value:i.token.value,end:i.token}))}next();return new oe({start:t,segments:e,end:i.token})}function expr_list(e,t,n){var r=true,a=[];while(!is("punc",e)){if(r)r=false;else expect(",");if(t&&is("punc",e))break;if(is("punc",",")&&n){a.push(new Vt({start:i.token,end:i.token}))}else if(is("expand","...")){next();a.push(new Q({start:prev(),expression:y(),end:i.token}))}else{a.push(y(false))}}next();return a}var _=embed_tokens(function(){expect("[");return new We({elements:expr_list("]",!t.strict,true)})});var h=embed_tokens((e,t)=>{return o(ee,e,t)});var d=embed_tokens(function object_or_destructuring_(){var e=i.token,n=true,r=[];expect("{");while(!is("punc","}")){if(n)n=false;else expect(",");if(!t.strict&&is("punc","}"))break;e=i.token;if(e.type=="expand"){next();r.push(new Q({start:e,expression:y(false),end:prev()}));continue}var a=as_property_name();var o;if(!is("punc",":")){var s=concise_method_or_getset(a,e);if(s){r.push(s);continue}o=new yt({start:prev(),name:a,end:prev()})}else if(a===null){unexpected(prev())}else{next();o=y(false)}if(is("operator","=")){next();o=new Xe({start:e,left:o,operator:"=",right:y(false),end:prev()})}r.push(new je({start:e,quote:e.quote,key:a instanceof R?a:""+a,value:o,end:prev()}))}next();return new Ye({properties:r})});function class_(e){var t,n,r,a,o=[];i.input.push_directives_stack();i.input.add_directive("use strict");if(i.token.type=="name"&&i.token.value!="extends"){r=as_symbol(e===nt?mt:Et)}if(e===nt&&!r){unexpected()}if(i.token.value=="extends"){next();a=y(true)}expect("{");while(is("punc",";")){next()}while(!is("punc","}")){t=i.token;n=concise_method_or_getset(as_property_name(),t,true);if(!n){unexpected()}o.push(n);while(is("punc",";")){next()}}i.input.pop_directives_stack();next();return new e({start:t,name:r,extends:a,properties:o,end:prev()})}function concise_method_or_getset(e,t,n){var r=function(e,t){if(typeof e==="string"||typeof e==="number"){return new _t({start:t,name:""+e,end:prev()})}else if(e===null){unexpected()}return e};const a=e=>{if(typeof e==="string"||typeof e==="number"){return new ht({start:c,end:c,name:""+e})}else if(e===null){unexpected()}return e};var o=false;var s=false;var u=false;var c=t;if(n&&e==="static"&&!is("punc","(")){s=true;c=i.token;e=as_property_name()}if(e==="async"&&!is("punc","(")&&!is("punc",",")&&!is("punc","}")&&!is("operator","=")){o=true;c=i.token;e=as_property_name()}if(e===null){u=true;c=i.token;e=as_property_name();if(e===null){unexpected()}}if(is("punc","(")){e=r(e,t);var l=new Je({start:t,static:s,is_generator:u,async:o,key:e,quote:e instanceof _t?c.quote:undefined,value:h(u,o),end:prev()});return l}const f=i.token;if(e=="get"){if(!is("punc")||is("punc","[")){e=r(as_property_name(),t);return new Qe({start:t,static:s,key:e,quote:e instanceof _t?f.quote:undefined,value:h(),end:prev()})}}else if(e=="set"){if(!is("punc")||is("punc","[")){e=r(as_property_name(),t);return new Ze({start:t,static:s,key:e,quote:e instanceof _t?f.quote:undefined,value:h(),end:prev()})}}if(n){const n=a(e);const i=n instanceof ht?c.quote:undefined;if(is("operator","=")){next();return new tt({start:t,static:s,quote:i,key:n,value:y(false),end:prev()})}else if(is("name")||is("punc",";")||is("punc","}")){return new tt({start:t,static:s,quote:i,key:n,end:prev()})}}}function import_(){var e=prev();var t;var n;if(is("name")){t=as_symbol(vt)}if(is("punc",",")){next()}n=map_names(true);if(n||t){expect_token("name","from")}var r=i.token;if(r.type!=="string"){unexpected()}next();return new we({start:e,imported_name:t,imported_names:n,module_name:new Ot({start:r,value:r.value,quote:r.quote,end:r}),end:i.token})}function import_meta(){var e=i.token;expect_token("operator","import");expect_token("punc",".");expect_token("name","meta");return m(new Re({start:e,end:prev()}),false)}function map_name(e){function make_symbol(e){return new e({name:as_property_name(),start:prev(),end:prev()})}var t=e?Dt:St;var n=e?vt:kt;var r=i.token;var a;var o;if(e){a=make_symbol(t)}else{o=make_symbol(n)}if(is("name","as")){next();if(e){o=make_symbol(n)}else{a=make_symbol(t)}}else if(e){o=new n(a)}else{a=new t(o)}return new Fe({start:r,foreign_name:a,name:o,end:prev()})}function map_nameAsterisk(e,t){var n=e?Dt:St;var r=e?vt:kt;var a=i.token;var o;var s=prev();t=t||new r({name:"*",start:a,end:s});o=new n({name:"*",start:a,end:s});return new Fe({start:a,foreign_name:o,name:t,end:s})}function map_names(e){var t;if(is("punc","{")){next();t=[];while(!is("punc","}")){t.push(map_name(e));if(is("punc",",")){next()}}next()}else if(is("operator","*")){var n;next();if(e&&is("name","as")){next();n=as_symbol(e?vt:St)}t=[map_nameAsterisk(e,n)]}return t}function export_(){var e=i.token;var t;var n;if(is("keyword","default")){t=true;next()}else if(n=map_names(false)){if(is("name","from")){next();var a=i.token;if(a.type!=="string"){unexpected()}next();return new Me({start:e,is_default:t,exported_names:n,module_name:new Ot({start:a,value:a.value,quote:a.quote,end:a}),end:prev()})}else{return new Me({start:e,is_default:t,exported_names:n,end:prev()})}}var o;var s;var u;if(is("punc","{")||t&&(is("keyword","class")||is("keyword","function"))&&is_token(peek(),"punc")){s=y(false);semicolon()}else if((o=r(t))instanceof Ae&&t){unexpected(o.start)}else if(o instanceof Ae||o instanceof J||o instanceof nt){u=o}else if(o instanceof P){s=o.body}else{unexpected(o.start)}return new Me({start:e,is_default:t,exported_value:s,exported_definition:u,end:prev()})}function as_property_name(){var e=i.token;switch(e.type){case"punc":if(e.value==="["){next();var t=y(false);expect("]");return t}else unexpected(e);case"operator":if(e.value==="*"){next();return null}if(!["delete","in","instanceof","new","typeof","void"].includes(e.value)){unexpected(e)}case"name":case"string":case"num":case"big_int":case"keyword":case"atom":next();return e.value;default:unexpected(e)}}function as_name(){var e=i.token;if(e.type!="name")unexpected();next();return e.value}function _make_symbol(e){var t=i.token.value;return new(t=="this"?Tt:t=="super"?Ct:e)({name:String(t),start:i.token,end:i.token})}function _verify_symbol(e){var t=e.name;if(is_in_generator()&&t=="yield"){token_error(e.start,"Yield cannot be used as identifier inside generators")}if(i.input.has_directive("use strict")){if(t=="yield"){token_error(e.start,"Unexpected yield identifier inside strict mode")}if(e instanceof ot&&(t=="arguments"||t=="eval")){token_error(e.start,"Unexpected "+t+" in strict mode")}}}function as_symbol(e,t){if(!is("name")){if(!t)croak("Name expected");return null}var n=_make_symbol(e);_verify_symbol(n);next();return n}function annotate(e){var t=e.start;var i=t.comments_before;const r=n.get(t);var a=r!=null?r:i.length;while(--a>=0){var o=i[a];if(/[@#]__/.test(o.value)){if(/[@#]__PURE__/.test(o.value)){set_annotation(e,Gt);break}if(/[@#]__INLINE__/.test(o.value)){set_annotation(e,Ht);break}if(/[@#]__NOINLINE__/.test(o.value)){set_annotation(e,Xt);break}}}}var m=function(e,t){var n=e.start;if(is("punc",".")){next();return m(new Le({start:n,expression:e,property:as_name(),end:prev()}),t)}if(is("punc","[")){next();var i=y(true);expect("]");return m(new Be({start:n,expression:e,property:i,end:prev()}),t)}if(t&&is("punc","(")){next();var r=new Ne({start:n,expression:e,args:call_args(),end:prev()});annotate(r);return m(r,true)}if(is("template_head")){return m(new ae({start:n,prefix:e,template_string:template_string(),end:prev()}),t)}return e};function call_args(){var e=[];while(!is("punc",")")){if(is("expand","...")){next();e.push(new Q({start:prev(),expression:y(false),end:prev()}))}else{e.push(y(false))}if(!is("punc",")")){expect(",");if(is("punc",")")&&t.ecma<2017)unexpected()}}next();return e}var E=function(e,t){var n=i.token;if(n.type=="name"&&n.value=="await"){if(is_in_async()){next();return _await_expression()}else if(i.input.has_directive("use strict")){token_error(i.token,"Unexpected await identifier inside strict mode")}}if(is("operator")&&T.has(n.value)){next();handle_regexp();var r=make_unary(Ke,n,E(e));r.start=n;r.end=prev();return r}var a=p(e,t);while(is("operator")&&C.has(i.token.value)&&!has_newline_before(i.token)){if(a instanceof ne)unexpected();a=make_unary(ze,i.token,a);a.start=n;a.end=i.token;next()}return a};function make_unary(e,t,n){var r=t.value;switch(r){case"++":case"--":if(!is_assignable(n))croak("Invalid use of "+r+" operator",t.line,t.col,t.pos);break;case"delete":if(n instanceof yt&&i.input.has_directive("use strict"))croak("Calling delete on expression not allowed in strict mode",n.start.line,n.start.col,n.start.pos);break}return new e({operator:r,expression:n})}var g=function(e,t,n){var r=is("operator")?i.token.value:null;if(r=="in"&&n)r=null;if(r=="**"&&e instanceof Ke&&!is_token(e.start,"punc","(")&&e.operator!=="--"&&e.operator!=="++")unexpected(e.start);var a=r!=null?O[r]:null;if(a!=null&&(a>t||r==="**"&&t===a)){next();var o=g(E(true),a,n);return g(new Ge({start:e.start,left:e,operator:r,right:o,end:o.end}),t,n)}return e};function expr_ops(e){return g(E(true,true),0,e)}var v=function(e){var t=i.token;var n=expr_ops(e);if(is("operator","?")){next();var r=y(false);expect(":");return new He({start:t,condition:n,consequent:r,alternative:y(false,e),end:prev()})}return n};function is_assignable(e){return e instanceof Ve||e instanceof yt}function to_destructuring(e){if(e instanceof Ye){e=new re({start:e.start,names:e.properties.map(to_destructuring),is_array:false,end:e.end})}else if(e instanceof We){var t=[];for(var n=0;n=0;){a+="this."+t[o]+" = props."+t[o]+";"}const s=i&&Object.create(i.prototype);if(s&&s.initialize||n&&n.initialize)a+="this.initialize();";a+="}";a+="this.flags = 0;";a+="}";var u=new Function(a)();if(s){u.prototype=s;u.BASE=i}if(i)i.SUBCLASSES.push(u);u.prototype.CTOR=u;u.prototype.constructor=u;u.PROPS=t||null;u.SELF_PROPS=r;u.SUBCLASSES=[];if(e){u.prototype.TYPE=u.TYPE=e}if(n)for(o in n)if(HOP(n,o)){if(o[0]==="$"){u[o.substr(1)]=n[o]}else{u.prototype[o]=n[o]}}u.DEFMETHOD=function(e,t){this.prototype[e]=t};return u}var w=DEFNODE("Token","type value line col pos endline endcol endpos nlb comments_before comments_after file raw quote end",{},null);var R=DEFNODE("Node","start end",{_clone:function(e){if(e){var t=this.clone();return t.transform(new TreeTransformer(function(e){if(e!==t){return e.clone(true)}}))}return new this.CTOR(this)},clone:function(e){return this._clone(e)},$documentation:"Base class of all AST nodes",$propdoc:{start:"[AST_Token] The first token of this node",end:"[AST_Token] The last token of this node"},_walk:function(e){return e._visit(this)},walk:function(e){return this._walk(e)},_children_backwards:()=>{}},null);var M=DEFNODE("Statement",null,{$documentation:"Base class of all statements"});var N=DEFNODE("Debugger",null,{$documentation:"Represents a debugger statement"},M);var I=DEFNODE("Directive","value quote",{$documentation:'Represents a directive, like "use strict";',$propdoc:{value:"[string] The value of this directive as a plain string (it's not an AST_String!)",quote:"[string] the original quote character"}},M);var P=DEFNODE("SimpleStatement","body",{$documentation:"A statement consisting of an expression, i.e. a = 1 + 2",$propdoc:{body:"[AST_Node] an expression node (should not be instanceof AST_Statement)"},_walk:function(e){return e._visit(this,function(){this.body._walk(e)})},_children_backwards(e){e(this.body)}},M);function walk_body(e,t){const n=e.body;for(var i=0,r=n.length;i SymbolDef for all variables/functions defined in this scope",functions:"[Map/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"},get_defun_scope:function(){var e=this;while(e.is_block_scope()){e=e.parent_scope}return e},clone:function(e,t){var n=this._clone(e);if(e&&this.variables&&t&&!this._block_scope){n.figure_out_scope({},{toplevel:t,parent_scope:this.parent_scope})}else{if(this.variables)n.variables=new Map(this.variables);if(this.functions)n.functions=new Map(this.functions);if(this.enclosed)n.enclosed=this.enclosed.slice();if(this._block_scope)n._block_scope=this._block_scope}return n},pinned:function(){return this.uses_eval||this.uses_with}},V);var Z=DEFNODE("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Map/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs:function(e){var t=this.body;var n="(function(exports){'$ORIG';})(typeof "+e+"=='undefined'?("+e+"={}):"+e+");";n=parse(n);n=n.transform(new TreeTransformer(function(e){if(e instanceof I&&e.value=="$ORIG"){return i.splice(t)}}));return n},wrap_enclose:function(e){if(typeof e!="string")e="";var t=e.indexOf(":");if(t<0)t=e.length;var n=this.body;return parse(["(function(",e.slice(0,t),'){"$ORIG"})(',e.slice(t+1),")"].join("")).transform(new TreeTransformer(function(e){if(e instanceof I&&e.value=="$ORIG"){return i.splice(n)}}))}},j);var Q=DEFNODE("Expansion","expression",{$documentation:"An expandible argument, such as ...rest, a splat, such as [1,2,...all], or an expansion in a variable declaration, such as var [first, ...rest] = list",$propdoc:{expression:"[AST_Node] the thing to be expanded"},_walk:function(e){return e._visit(this,function(){this.expression.walk(e)})},_children_backwards(e){e(this.expression)}});var J=DEFNODE("Lambda","name argnames uses_arguments is_generator async",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg|AST_Destructuring|AST_Expansion|AST_DefaultAssign*] array of function arguments, destructurings, or expanding arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},args_as_names:function(){var e=[];for(var t=0;t b)"},J);var ie=DEFNODE("Defun",null,{$documentation:"A function definition"},J);var re=DEFNODE("Destructuring","names is_array",{$documentation:"A destructuring of several names. Used in destructuring assignment and with destructuring function argument names",$propdoc:{names:"[AST_Node*] Array of properties or elements",is_array:"[Boolean] Whether the destructuring represents an object or array"},_walk:function(e){return e._visit(this,function(){this.names.forEach(function(t){t._walk(e)})})},_children_backwards(e){let t=this.names.length;while(t--)e(this.names[t])},all_symbols:function(){var e=[];this.walk(new TreeWalker(function(t){if(t instanceof rt){e.push(t)}}));return e}});var ae=DEFNODE("PrefixedTemplateString","template_string prefix",{$documentation:"A templatestring with a prefix, such as String.raw`foobarbaz`",$propdoc:{template_string:"[AST_TemplateString] The template string",prefix:"[AST_SymbolRef|AST_PropAccess] The prefix, which can be a symbol such as `foo` or a dotted expression such as `String.raw`."},_walk:function(e){return e._visit(this,function(){this.prefix._walk(e);this.template_string._walk(e)})},_children_backwards(e){e(this.template_string);e(this.prefix)}});var oe=DEFNODE("TemplateString","segments",{$documentation:"A template string literal",$propdoc:{segments:"[AST_Node*] One or more segments, starting with AST_TemplateSegment. AST_Node may follow AST_TemplateSegment, but each AST_Node must be followed by AST_TemplateSegment."},_walk:function(e){return e._visit(this,function(){this.segments.forEach(function(t){t._walk(e)})})},_children_backwards(e){let t=this.segments.length;while(t--)e(this.segments[t])}});var se=DEFNODE("TemplateSegment","value raw",{$documentation:"A segment of a template string literal",$propdoc:{value:"Content of the segment",raw:"Raw content of the segment"}});var ue=DEFNODE("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},M);var ce=DEFNODE("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(e){return e._visit(this,this.value&&function(){this.value._walk(e)})},_children_backwards(e){if(this.value)e(this.value)}},ue);var le=DEFNODE("Return",null,{$documentation:"A `return` statement"},ce);var fe=DEFNODE("Throw",null,{$documentation:"A `throw` statement"},ce);var pe=DEFNODE("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(e){return e._visit(this,this.label&&function(){this.label._walk(e)})},_children_backwards(e){if(this.label)e(this.label)}},ue);var _e=DEFNODE("Break",null,{$documentation:"A `break` statement"},pe);var he=DEFNODE("Continue",null,{$documentation:"A `continue` statement"},pe);var de=DEFNODE("Await","expression",{$documentation:"An `await` statement",$propdoc:{expression:"[AST_Node] the mandatory expression being awaited"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})},_children_backwards(e){e(this.expression)}});var me=DEFNODE("Yield","expression is_star",{$documentation:"A `yield` statement",$propdoc:{expression:"[AST_Node?] the value returned or thrown by this statement; could be null (representing undefined) but only when is_star is set to false",is_star:"[Boolean] Whether this is a yield or yield* statement"},_walk:function(e){return e._visit(this,this.expression&&function(){this.expression._walk(e)})},_children_backwards(e){if(this.expression)e(this.expression)}});var Ee=DEFNODE("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e);this.body._walk(e);if(this.alternative)this.alternative._walk(e)})},_children_backwards(e){if(this.alternative){e(this.alternative)}e(this.body);e(this.condition)}},U);var ge=DEFNODE("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e);walk_body(this,e)})},_children_backwards(e){let t=this.body.length;while(t--)e(this.body[t]);e(this.expression)}},V);var ve=DEFNODE("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},V);var De=DEFNODE("Default",null,{$documentation:"A `default` switch branch"},ve);var be=DEFNODE("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e);walk_body(this,e)})},_children_backwards(e){let t=this.body.length;while(t--)e(this.body[t]);e(this.expression)}},ve);var ye=DEFNODE("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(e){return e._visit(this,function(){walk_body(this,e);if(this.bcatch)this.bcatch._walk(e);if(this.bfinally)this.bfinally._walk(e)})},_children_backwards(e){if(this.bfinally)e(this.bfinally);if(this.bcatch)e(this.bcatch);let t=this.body.length;while(t--)e(this.body[t])}},V);var ke=DEFNODE("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch|AST_Destructuring|AST_Expansion|AST_DefaultAssign] symbol for the exception"},_walk:function(e){return e._visit(this,function(){if(this.argname)this.argname._walk(e);walk_body(this,e)})},_children_backwards(e){let t=this.body.length;while(t--)e(this.body[t]);if(this.argname)e(this.argname)}},V);var Se=DEFNODE("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},V);var Ae=DEFNODE("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(e){return e._visit(this,function(){var t=this.definitions;for(var n=0,i=t.length;n a`"},Ge);var We=DEFNODE("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(e){return e._visit(this,function(){var t=this.elements;for(var n=0,i=t.length;nt._walk(e))})},_children_backwards(e){let t=this.properties.length;while(t--)e(this.properties[t]);if(this.extends)e(this.extends);if(this.name)e(this.name)}},j);var tt=DEFNODE("ClassProperty","static quote",{$documentation:"A class property",$propdoc:{static:"[boolean] whether this is a static key",quote:"[string] which quote is being used"},_walk:function(e){return e._visit(this,function(){if(this.key instanceof R)this.key._walk(e);if(this.value instanceof R)this.value._walk(e)})},_children_backwards(e){if(this.value instanceof R)e(this.value);if(this.key instanceof R)e(this.key)},computed_key(){return!(this.key instanceof ht)}},$e);var nt=DEFNODE("DefClass",null,{$documentation:"A class definition"},et);var it=DEFNODE("ClassExpression",null,{$documentation:"A class expression."},et);var rt=DEFNODE("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"});var at=DEFNODE("NewTarget",null,{$documentation:"A reference to new.target"});var ot=DEFNODE("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)"},rt);var st=DEFNODE("SymbolVar",null,{$documentation:"Symbol defining a variable"},ot);var ut=DEFNODE("SymbolBlockDeclaration",null,{$documentation:"Base class for block-scoped declaration symbols"},ot);var ct=DEFNODE("SymbolConst",null,{$documentation:"A constant declaration"},ut);var lt=DEFNODE("SymbolLet",null,{$documentation:"A block-scoped `let` declaration"},ut);var ft=DEFNODE("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},st);var pt=DEFNODE("SymbolDefun",null,{$documentation:"Symbol defining a function"},ot);var _t=DEFNODE("SymbolMethod",null,{$documentation:"Symbol in an object defining a method"},rt);var ht=DEFNODE("SymbolClassProperty",null,{$documentation:"Symbol for a class property"},rt);var dt=DEFNODE("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},ot);var mt=DEFNODE("SymbolDefClass",null,{$documentation:"Symbol naming a class's name in a class declaration. Lexically scoped to its containing scope, and accessible within the class."},ut);var Et=DEFNODE("SymbolClass",null,{$documentation:"Symbol naming a class's name. Lexically scoped to the class."},ot);var gt=DEFNODE("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},ut);var vt=DEFNODE("SymbolImport",null,{$documentation:"Symbol referring to an imported name"},ut);var Dt=DEFNODE("SymbolImportForeign",null,{$documentation:"A symbol imported from a module, but it is defined in the other module, and its real name is irrelevant for this module's purposes"},rt);var bt=DEFNODE("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[];this.thedef=this}},rt);var yt=DEFNODE("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},rt);var kt=DEFNODE("SymbolExport",null,{$documentation:"Symbol referring to a name to export"},yt);var St=DEFNODE("SymbolExportForeign",null,{$documentation:"A symbol exported from this module, but it is used in the other module, and its real name is irrelevant for this module's purposes"},rt);var At=DEFNODE("LabelRef",null,{$documentation:"Reference to a label symbol"},rt);var Tt=DEFNODE("This",null,{$documentation:"The `this` symbol"},rt);var Ct=DEFNODE("Super",null,{$documentation:"The `super` symbol"},Tt);var xt=DEFNODE("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}});var Ot=DEFNODE("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},xt);var Ft=DEFNODE("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},xt);var wt=DEFNODE("BigInt","value",{$documentation:"A big int literal",$propdoc:{value:"[string] big int value"}},xt);var Rt=DEFNODE("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},xt);var Mt=DEFNODE("Atom",null,{$documentation:"Base class for atoms"},xt);var Nt=DEFNODE("Null",null,{$documentation:"The `null` atom",value:null},Mt);var It=DEFNODE("NaN",null,{$documentation:"The impossible value",value:0/0},Mt);var Pt=DEFNODE("Undefined",null,{$documentation:"The `undefined` value",value:function(){}()},Mt);var Vt=DEFNODE("Hole",null,{$documentation:"A hole in an array",value:function(){}()},Mt);var Lt=DEFNODE("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},Mt);var Bt=DEFNODE("Boolean",null,{$documentation:"Base class for booleans"},Mt);var Ut=DEFNODE("False",null,{$documentation:"The `false` atom",value:false},Bt);var Kt=DEFNODE("True",null,{$documentation:"The `true` atom",value:true},Bt);function walk(e,t,n=[e]){const i=n.push.bind(n);while(n.length){const e=n.pop();const r=t(e,n);if(r){if(r===zt)return true;continue}e._children_backwards(i)}return false}function walk_parent(e,t,n){const i=[e];const r=i.push.bind(i);const a=n?n.slice():[];const o=[];let s;const u={parent:(e=0)=>{if(e===-1){return s}if(n&&e>=a.length){e-=a.length;return n[n.length-(e+1)]}return a[a.length-(1+e)]}};while(i.length){s=i.pop();while(o.length&&i.length==o[o.length-1]){a.pop();o.pop()}const e=t(s,u);if(e){if(e===zt)return true;continue}const n=i.length;s._children_backwards(r);if(i.length>n){a.push(s);o.push(n-1)}}return false}const zt=Symbol("abort walk");class TreeWalker{constructor(e){this.visit=e;this.stack=[];this.directives=Object.create(null)}_visit(e,t){this.push(e);var n=this.visit(e,t?function(){t.call(e)}:noop);if(!n&&t){t.call(e)}this.pop();return n}parent(e){return this.stack[this.stack.length-2-(e||0)]}push(e){if(e instanceof J){this.directives=Object.create(this.directives)}else if(e instanceof I&&!this.directives[e.value]){this.directives[e.value]=e}else if(e instanceof et){this.directives=Object.create(this.directives);if(!this.directives["use strict"]){this.directives["use strict"]=e}}this.stack.push(e)}pop(){var e=this.stack.pop();if(e instanceof J||e instanceof et){this.directives=Object.getPrototypeOf(this.directives)}}self(){return this.stack[this.stack.length-1]}find_parent(e){var t=this.stack;for(var n=t.length;--n>=0;){var i=t[n];if(i instanceof e)return i}}has_directive(e){var t=this.directives[e];if(t)return t;var n=this.stack[this.stack.length-1];if(n instanceof j&&n.body){for(var i=0;i=0;){var i=t[n];if(i instanceof K&&i.label.name==e.label.name)return i.body}else for(var n=t.length;--n>=0;){var i=t[n];if(i instanceof z||e instanceof _e&&i instanceof ge)return i}}}class TreeTransformer extends TreeWalker{constructor(e,t){super();this.before=e;this.after=t}}const Gt=1;const Ht=2;const Xt=4;var qt=Object.freeze({__proto__:null,AST_Accessor:ee,AST_Array:We,AST_Arrow:ne,AST_Assign:Xe,AST_Atom:Mt,AST_Await:de,AST_BigInt:wt,AST_Binary:Ge,AST_Block:V,AST_BlockStatement:L,AST_Boolean:Bt,AST_Break:_e,AST_Call:Ne,AST_Case:be,AST_Catch:ke,AST_Class:et,AST_ClassExpression:it,AST_ClassProperty:tt,AST_ConciseMethod:Je,AST_Conditional:He,AST_Const:xe,AST_Constant:xt,AST_Continue:he,AST_Debugger:N,AST_Default:De,AST_DefaultAssign:qe,AST_DefClass:nt,AST_Definitions:Ae,AST_Defun:ie,AST_Destructuring:re,AST_Directive:I,AST_Do:H,AST_Dot:Le,AST_DWLoop:G,AST_EmptyStatement:B,AST_Exit:ce,AST_Expansion:Q,AST_Export:Me,AST_False:Ut,AST_Finally:Se,AST_For:q,AST_ForIn:W,AST_ForOf:Y,AST_Function:te,AST_Hole:Vt,AST_If:Ee,AST_Import:we,AST_ImportMeta:Re,AST_Infinity:Lt,AST_IterationStatement:z,AST_Jump:ue,AST_Label:bt,AST_LabeledStatement:K,AST_LabelRef:At,AST_Lambda:J,AST_Let:Ce,AST_LoopControl:pe,AST_NameMapping:Fe,AST_NaN:It,AST_New:Ie,AST_NewTarget:at,AST_Node:R,AST_Null:Nt,AST_Number:Ft,AST_Object:Ye,AST_ObjectGetter:Qe,AST_ObjectKeyVal:je,AST_ObjectProperty:$e,AST_ObjectSetter:Ze,AST_PrefixedTemplateString:ae,AST_PropAccess:Ve,AST_RegExp:Rt,AST_Return:le,AST_Scope:j,AST_Sequence:Pe,AST_SimpleStatement:P,AST_Statement:M,AST_StatementWithBody:U,AST_String:Ot,AST_Sub:Be,AST_Super:Ct,AST_Switch:ge,AST_SwitchBranch:ve,AST_Symbol:rt,AST_SymbolBlockDeclaration:ut,AST_SymbolCatch:gt,AST_SymbolClass:Et,AST_SymbolClassProperty:ht,AST_SymbolConst:ct,AST_SymbolDeclaration:ot,AST_SymbolDefClass:mt,AST_SymbolDefun:pt,AST_SymbolExport:kt,AST_SymbolExportForeign:St,AST_SymbolFunarg:ft,AST_SymbolImport:vt,AST_SymbolImportForeign:Dt,AST_SymbolLambda:dt,AST_SymbolLet:lt,AST_SymbolMethod:_t,AST_SymbolRef:yt,AST_SymbolVar:st,AST_TemplateSegment:se,AST_TemplateString:oe,AST_This:Tt,AST_Throw:fe,AST_Token:w,AST_Toplevel:Z,AST_True:Kt,AST_Try:ye,AST_Unary:Ue,AST_UnaryPostfix:ze,AST_UnaryPrefix:Ke,AST_Undefined:Pt,AST_Var:Te,AST_VarDef:Oe,AST_While:X,AST_With:$,AST_Yield:me,TreeTransformer:TreeTransformer,TreeWalker:TreeWalker,walk:walk,walk_abort:zt,walk_body:walk_body,walk_parent:walk_parent,_INLINE:Ht,_NOINLINE:Xt,_PURE:Gt});function def_transform(e,t){e.DEFMETHOD("transform",function(e,n){let i=undefined;e.push(this);if(e.before)i=e.before(this,t,n);if(i===undefined){i=this;t(i,e);if(e.after){const t=e.after(i,n);if(t!==undefined)i=t}}e.pop();return i})}function do_list(e,t){return i(e,function(e){return e.transform(t,true)})}def_transform(R,noop);def_transform(K,function(e,t){e.label=e.label.transform(t);e.body=e.body.transform(t)});def_transform(P,function(e,t){e.body=e.body.transform(t)});def_transform(V,function(e,t){e.body=do_list(e.body,t)});def_transform(H,function(e,t){e.body=e.body.transform(t);e.condition=e.condition.transform(t)});def_transform(X,function(e,t){e.condition=e.condition.transform(t);e.body=e.body.transform(t)});def_transform(q,function(e,t){if(e.init)e.init=e.init.transform(t);if(e.condition)e.condition=e.condition.transform(t);if(e.step)e.step=e.step.transform(t);e.body=e.body.transform(t)});def_transform(W,function(e,t){e.init=e.init.transform(t);e.object=e.object.transform(t);e.body=e.body.transform(t)});def_transform($,function(e,t){e.expression=e.expression.transform(t);e.body=e.body.transform(t)});def_transform(ce,function(e,t){if(e.value)e.value=e.value.transform(t)});def_transform(pe,function(e,t){if(e.label)e.label=e.label.transform(t)});def_transform(Ee,function(e,t){e.condition=e.condition.transform(t);e.body=e.body.transform(t);if(e.alternative)e.alternative=e.alternative.transform(t)});def_transform(ge,function(e,t){e.expression=e.expression.transform(t);e.body=do_list(e.body,t)});def_transform(be,function(e,t){e.expression=e.expression.transform(t);e.body=do_list(e.body,t)});def_transform(ye,function(e,t){e.body=do_list(e.body,t);if(e.bcatch)e.bcatch=e.bcatch.transform(t);if(e.bfinally)e.bfinally=e.bfinally.transform(t)});def_transform(ke,function(e,t){if(e.argname)e.argname=e.argname.transform(t);e.body=do_list(e.body,t)});def_transform(Ae,function(e,t){e.definitions=do_list(e.definitions,t)});def_transform(Oe,function(e,t){e.name=e.name.transform(t);if(e.value)e.value=e.value.transform(t)});def_transform(re,function(e,t){e.names=do_list(e.names,t)});def_transform(J,function(e,t){if(e.name)e.name=e.name.transform(t);e.argnames=do_list(e.argnames,t);if(e.body instanceof R){e.body=e.body.transform(t)}else{e.body=do_list(e.body,t)}});def_transform(Ne,function(e,t){e.expression=e.expression.transform(t);e.args=do_list(e.args,t)});def_transform(Pe,function(e,t){const n=do_list(e.expressions,t);e.expressions=n.length?n:[new Ft({value:0})]});def_transform(Le,function(e,t){e.expression=e.expression.transform(t)});def_transform(Be,function(e,t){e.expression=e.expression.transform(t);e.property=e.property.transform(t)});def_transform(me,function(e,t){if(e.expression)e.expression=e.expression.transform(t)});def_transform(de,function(e,t){e.expression=e.expression.transform(t)});def_transform(Ue,function(e,t){e.expression=e.expression.transform(t)});def_transform(Ge,function(e,t){e.left=e.left.transform(t);e.right=e.right.transform(t)});def_transform(He,function(e,t){e.condition=e.condition.transform(t);e.consequent=e.consequent.transform(t);e.alternative=e.alternative.transform(t)});def_transform(We,function(e,t){e.elements=do_list(e.elements,t)});def_transform(Ye,function(e,t){e.properties=do_list(e.properties,t)});def_transform($e,function(e,t){if(e.key instanceof R){e.key=e.key.transform(t)}if(e.value)e.value=e.value.transform(t)});def_transform(et,function(e,t){if(e.name)e.name=e.name.transform(t);if(e.extends)e.extends=e.extends.transform(t);e.properties=do_list(e.properties,t)});def_transform(Q,function(e,t){e.expression=e.expression.transform(t)});def_transform(Fe,function(e,t){e.foreign_name=e.foreign_name.transform(t);e.name=e.name.transform(t)});def_transform(we,function(e,t){if(e.imported_name)e.imported_name=e.imported_name.transform(t);if(e.imported_names)do_list(e.imported_names,t);e.module_name=e.module_name.transform(t)});def_transform(Me,function(e,t){if(e.exported_definition)e.exported_definition=e.exported_definition.transform(t);if(e.exported_value)e.exported_value=e.exported_value.transform(t);if(e.exported_names)do_list(e.exported_names,t);if(e.module_name)e.module_name=e.module_name.transform(t)});def_transform(oe,function(e,t){e.segments=do_list(e.segments,t)});def_transform(ae,function(e,t){e.prefix=e.prefix.transform(t);e.template_string=e.template_string.transform(t)});(function(){var e=function(e){var t=true;for(var n=0;n1||e.guardedHandlers&&e.guardedHandlers.length){throw new Error("Multiple catch clauses are not supported.")}return new ye({start:my_start_token(e),end:my_end_token(e),body:from_moz(e.block).body,bcatch:from_moz(t[0]),bfinally:e.finalizer?new Se(from_moz(e.finalizer)):null})},Property:function(e){var t=e.key;var n={start:my_start_token(t||e.value),end:my_end_token(e.value),key:t.type=="Identifier"?t.name:t.value,value:from_moz(e.value)};if(e.computed){n.key=from_moz(e.key)}if(e.method){n.is_generator=e.value.generator;n.async=e.value.async;if(!e.computed){n.key=new _t({name:n.key})}else{n.key=from_moz(e.key)}return new Je(n)}if(e.kind=="init"){if(t.type!="Identifier"&&t.type!="Literal"){n.key=from_moz(t)}return new je(n)}if(typeof n.key==="string"||typeof n.key==="number"){n.key=new _t({name:n.key})}n.value=new ee(n.value);if(e.kind=="get")return new Qe(n);if(e.kind=="set")return new Ze(n);if(e.kind=="method"){n.async=e.value.async;n.is_generator=e.value.generator;n.quote=e.computed?'"':null;return new Je(n)}},MethodDefinition:function(e){var t={start:my_start_token(e),end:my_end_token(e),key:e.computed?from_moz(e.key):new _t({name:e.key.name||e.key.value}),value:from_moz(e.value),static:e.static};if(e.kind=="get"){return new Qe(t)}if(e.kind=="set"){return new Ze(t)}t.is_generator=e.value.generator;t.async=e.value.async;return new Je(t)},FieldDefinition:function(e){let t;if(e.computed){t=from_moz(e.key)}else{if(e.key.type!=="Identifier")throw new Error("Non-Identifier key in FieldDefinition");t=from_moz(e.key)}return new tt({start:my_start_token(e),end:my_end_token(e),key:t,value:from_moz(e.value),static:e.static})},ArrayExpression:function(e){return new We({start:my_start_token(e),end:my_end_token(e),elements:e.elements.map(function(e){return e===null?new Vt:from_moz(e)})})},ObjectExpression:function(e){return new Ye({start:my_start_token(e),end:my_end_token(e),properties:e.properties.map(function(e){if(e.type==="SpreadElement"){return from_moz(e)}e.type="Property";return from_moz(e)})})},SequenceExpression:function(e){return new Pe({start:my_start_token(e),end:my_end_token(e),expressions:e.expressions.map(from_moz)})},MemberExpression:function(e){return new(e.computed?Be:Le)({start:my_start_token(e),end:my_end_token(e),property:e.computed?from_moz(e.property):e.property.name,expression:from_moz(e.object)})},SwitchCase:function(e){return new(e.test?be:De)({start:my_start_token(e),end:my_end_token(e),expression:from_moz(e.test),body:e.consequent.map(from_moz)})},VariableDeclaration:function(e){return new(e.kind==="const"?xe:e.kind==="let"?Ce:Te)({start:my_start_token(e),end:my_end_token(e),definitions:e.declarations.map(from_moz)})},ImportDeclaration:function(e){var t=null;var n=null;e.specifiers.forEach(function(e){if(e.type==="ImportSpecifier"){if(!n){n=[]}n.push(new Fe({start:my_start_token(e),end:my_end_token(e),foreign_name:from_moz(e.imported),name:from_moz(e.local)}))}else if(e.type==="ImportDefaultSpecifier"){t=from_moz(e.local)}else if(e.type==="ImportNamespaceSpecifier"){if(!n){n=[]}n.push(new Fe({start:my_start_token(e),end:my_end_token(e),foreign_name:new Dt({name:"*"}),name:from_moz(e.local)}))}});return new we({start:my_start_token(e),end:my_end_token(e),imported_name:t,imported_names:n,module_name:from_moz(e.source)})},ExportAllDeclaration:function(e){return new Me({start:my_start_token(e),end:my_end_token(e),exported_names:[new Fe({name:new St({name:"*"}),foreign_name:new St({name:"*"})})],module_name:from_moz(e.source)})},ExportNamedDeclaration:function(e){return new Me({start:my_start_token(e),end:my_end_token(e),exported_definition:from_moz(e.declaration),exported_names:e.specifiers&&e.specifiers.length?e.specifiers.map(function(e){return new Fe({foreign_name:from_moz(e.exported),name:from_moz(e.local)})}):null,module_name:from_moz(e.source)})},ExportDefaultDeclaration:function(e){return new Me({start:my_start_token(e),end:my_end_token(e),exported_value:from_moz(e.declaration),is_default:true})},Literal:function(e){var t=e.value,n={start:my_start_token(e),end:my_end_token(e)};var i=e.regex;if(i&&i.pattern){n.value={source:i.pattern,flags:i.flags};return new Rt(n)}else if(i){const i=e.raw||t;const r=i.match(/^\/(.*)\/(\w*)$/);if(!r)throw new Error("Invalid regex source "+i);const[a,o,s]=r;n.value={source:o,flags:s};return new Rt(n)}if(t===null)return new Nt(n);switch(typeof t){case"string":n.value=t;return new Ot(n);case"number":n.value=t;return new Ft(n);case"boolean":return new(t?Kt:Ut)(n)}},MetaProperty:function(e){if(e.meta.name==="new"&&e.property.name==="target"){return new at({start:my_start_token(e),end:my_end_token(e)})}else if(e.meta.name==="import"&&e.property.name==="meta"){return new Re({start:my_start_token(e),end:my_end_token(e)})}},Identifier:function(e){var t=n[n.length-2];return new(t.type=="LabeledStatement"?bt:t.type=="VariableDeclarator"&&t.id===e?t.kind=="const"?ct:t.kind=="let"?lt:st:/Import.*Specifier/.test(t.type)?t.local===e?vt:Dt:t.type=="ExportSpecifier"?t.local===e?kt:St:t.type=="FunctionExpression"?t.id===e?dt:ft:t.type=="FunctionDeclaration"?t.id===e?pt:ft:t.type=="ArrowFunctionExpression"?t.params.includes(e)?ft:yt:t.type=="ClassExpression"?t.id===e?Et:yt:t.type=="Property"?t.key===e&&t.computed||t.value===e?yt:_t:t.type=="FieldDefinition"?t.key===e&&t.computed||t.value===e?yt:ht:t.type=="ClassDeclaration"?t.id===e?mt:yt:t.type=="MethodDefinition"?t.computed?yt:_t:t.type=="CatchClause"?gt:t.type=="BreakStatement"||t.type=="ContinueStatement"?At:yt)({start:my_start_token(e),end:my_end_token(e),name:e.name})},BigIntLiteral(e){return new wt({start:my_start_token(e),end:my_end_token(e),value:e.value})}};t.UpdateExpression=t.UnaryExpression=function To_Moz_Unary(e){var t="prefix"in e?e.prefix:e.type=="UnaryExpression"?true:false;return new(t?Ke:ze)({start:my_start_token(e),end:my_end_token(e),operator:e.operator,expression:from_moz(e.argument)})};t.ClassDeclaration=t.ClassExpression=function From_Moz_Class(e){return new(e.type==="ClassDeclaration"?nt:it)({start:my_start_token(e),end:my_end_token(e),name:from_moz(e.id),extends:from_moz(e.superClass),properties:e.body.body.map(from_moz)})};map("EmptyStatement",B);map("BlockStatement",L,"body@body");map("IfStatement",Ee,"test>condition, consequent>body, alternate>alternative");map("LabeledStatement",K,"label>label, body>body");map("BreakStatement",_e,"label>label");map("ContinueStatement",he,"label>label");map("WithStatement",$,"object>expression, body>body");map("SwitchStatement",ge,"discriminant>expression, cases@body");map("ReturnStatement",le,"argument>value");map("ThrowStatement",fe,"argument>value");map("WhileStatement",X,"test>condition, body>body");map("DoWhileStatement",H,"test>condition, body>body");map("ForStatement",q,"init>init, test>condition, update>step, body>body");map("ForInStatement",W,"left>init, right>object, body>body");map("ForOfStatement",Y,"left>init, right>object, body>body, await=await");map("AwaitExpression",de,"argument>expression");map("YieldExpression",me,"argument>expression, delegate=is_star");map("DebuggerStatement",N);map("VariableDeclarator",Oe,"id>name, init>value");map("CatchClause",ke,"param>argname, body%body");map("ThisExpression",Tt);map("Super",Ct);map("BinaryExpression",Ge,"operator=operator, left>left, right>right");map("LogicalExpression",Ge,"operator=operator, left>left, right>right");map("AssignmentExpression",Xe,"operator=operator, left>left, right>right");map("ConditionalExpression",He,"test>condition, consequent>consequent, alternate>alternative");map("NewExpression",Ie,"callee>expression, arguments@args");map("CallExpression",Ne,"callee>expression, arguments@args");def_to_moz(Z,function To_Moz_Program(e){return to_moz_scope("Program",e)});def_to_moz(Q,function To_Moz_Spread(e){return{type:to_moz_in_destructuring()?"RestElement":"SpreadElement",argument:to_moz(e.expression)}});def_to_moz(ae,function To_Moz_TaggedTemplateExpression(e){return{type:"TaggedTemplateExpression",tag:to_moz(e.prefix),quasi:to_moz(e.template_string)}});def_to_moz(oe,function To_Moz_TemplateLiteral(e){var t=[];var n=[];for(var i=0;i({type:"BigIntLiteral",value:e.value}));Bt.DEFMETHOD("to_mozilla_ast",xt.prototype.to_mozilla_ast);Nt.DEFMETHOD("to_mozilla_ast",xt.prototype.to_mozilla_ast);Vt.DEFMETHOD("to_mozilla_ast",function To_Moz_ArrayHole(){return null});V.DEFMETHOD("to_mozilla_ast",L.prototype.to_mozilla_ast);J.DEFMETHOD("to_mozilla_ast",te.prototype.to_mozilla_ast);function raw_token(e){if(e.type=="Literal"){return e.raw!=null?e.raw:e.value+""}}function my_start_token(e){var t=e.loc,n=t&&t.start;var i=e.range;return new w({file:t&&t.source,line:n&&n.line,col:n&&n.column,pos:i?i[0]:e.start,endline:n&&n.line,endcol:n&&n.column,endpos:i?i[0]:e.start,raw:raw_token(e)})}function my_end_token(e){var t=e.loc,n=t&&t.end;var i=e.range;return new w({file:t&&t.source,line:n&&n.line,col:n&&n.column,pos:i?i[1]:e.end,endline:n&&n.line,endcol:n&&n.column,endpos:i?i[1]:e.end,raw:raw_token(e)})}function map(e,n,i){var r="function From_Moz_"+e+"(M){\n";r+="return new U2."+n.name+"({\n"+"start: my_start_token(M),\n"+"end: my_end_token(M)";var a="function To_Moz_"+e+"(M){\n";a+="return {\n"+"type: "+JSON.stringify(e);if(i)i.split(/\s*,\s*/).forEach(function(e){var t=/([a-z0-9$_]+)([=@>%])([a-z0-9$_]+)/i.exec(e);if(!t)throw new Error("Can't understand property map: "+e);var n=t[1],i=t[2],o=t[3];r+=",\n"+o+": ";a+=",\n"+n+": ";switch(i){case"@":r+="M."+n+".map(from_moz)";a+="M."+o+".map(to_moz)";break;case">":r+="from_moz(M."+n+")";a+="to_moz(M."+o+")";break;case"=":r+="M."+n;a+="M."+o;break;case"%":r+="from_moz(M."+n+").body";a+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}});r+="\n})\n}";a+="\n}\n}";r=new Function("U2","my_start_token","my_end_token","from_moz","return("+r+")")(qt,my_start_token,my_end_token,from_moz);a=new Function("to_moz","to_moz_block","to_moz_scope","return("+a+")")(to_moz,to_moz_block,to_moz_scope);t[e]=r;def_to_moz(n,a)}var n=null;function from_moz(e){n.push(e);var i=e!=null?t[e.type](e):null;n.pop();return i}R.from_mozilla_ast=function(e){var t=n;n=[];var i=from_moz(e);n=t;return i};function set_moz_loc(e,t){var n=e.start;var i=e.end;if(!(n&&i)){return t}if(n.pos!=null&&i.endpos!=null){t.range=[n.pos,i.endpos]}if(n.line){t.loc={start:{line:n.line,column:n.col},end:i.endline?{line:i.endline,column:i.endcol}:null};if(n.file){t.loc.source=n.file}}return t}function def_to_moz(e,t){e.DEFMETHOD("to_mozilla_ast",function(e){return set_moz_loc(this,t(this,e))})}var i=null;function to_moz(e){if(i===null){i=[]}i.push(e);var t=e!=null?e.to_mozilla_ast(i[i.length-2]):null;i.pop();if(i.length===0){i=null}return t}function to_moz_in_destructuring(){var e=i.length;while(e--){if(i[e]instanceof re){return true}}return false}function to_moz_block(e){return{type:"BlockStatement",body:e.body.map(to_moz)}}function to_moz_scope(e,t){var n=t.body.map(to_moz);if(t.body[0]instanceof P&&t.body[0].body instanceof Ot){n.unshift(to_moz(new B(t.body[0])))}return{type:e,body:n}}})();function first_in_statement(e){let t=e.parent(-1);for(let n=0,i;i=e.parent(n);n++){if(i instanceof M&&i.body===t)return true;if(i instanceof Pe&&i.expressions[0]===t||i.TYPE==="Call"&&i.expression===t||i instanceof ae&&i.prefix===t||i instanceof Le&&i.expression===t||i instanceof Be&&i.expression===t||i instanceof He&&i.condition===t||i instanceof Ge&&i.left===t||i instanceof ze&&i.expression===t){t=i}else{return false}}}function left_is_object(e){if(e instanceof Ye)return true;if(e instanceof Pe)return left_is_object(e.expressions[0]);if(e.TYPE==="Call")return left_is_object(e.expression);if(e instanceof ae)return left_is_object(e.prefix);if(e instanceof Le||e instanceof Be)return left_is_object(e.expression);if(e instanceof He)return left_is_object(e.condition);if(e instanceof Ge)return left_is_object(e.left);if(e instanceof ze)return left_is_object(e.expression);return false}const Wt=/^$|[;{][\s\n]*$/;const Yt=10;const $t=32;const jt=/[@#]__(PURE|INLINE|NOINLINE)__/g;function is_some_comments(e){return(e.type==="comment2"||e.type==="comment1")&&/@preserve|@lic|@cc_on|^\**!/i.test(e.value)}function OutputStream(e){var t=!e;e=defaults(e,{ascii_only:false,beautify:false,braces:false,comments:"some",ecma:5,ie8:false,indent_level:4,indent_start:0,inline_script:true,keep_numbers:false,keep_quoted_props:false,max_line_len:false,preamble:null,preserve_annotations:false,quote_keys:false,quote_style:0,safari10:false,semicolons:true,shebang:true,shorthand:undefined,source_map:null,webkit:false,width:80,wrap_iife:false,wrap_func_args:true},true);if(e.shorthand===undefined)e.shorthand=e.ecma>5;var n=return_false;if(e.comments){let t=e.comments;if(typeof e.comments==="string"&&/^\/.*\/[a-zA-Z]*$/.test(e.comments)){var i=e.comments.lastIndexOf("/");t=new RegExp(e.comments.substr(1,i-1),e.comments.substr(i+1))}if(t instanceof RegExp){n=function(e){return e.type!="comment5"&&t.test(e.value)}}else if(typeof t==="function"){n=function(e){return e.type!="comment5"&&t(this,e)}}else if(t==="some"){n=is_some_comments}else{n=return_true}}var r=0;var a=0;var o=1;var s=0;var u="";let c=new Set;var l=e.ascii_only?function(t,n){if(e.ecma>=2015){t=t.replace(/[\ud800-\udbff][\udc00-\udfff]/g,function(e){var t=get_full_char_code(e,0).toString(16);return"\\u{"+t+"}"})}return t.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(e){var t=e.charCodeAt(0).toString(16);if(t.length<=2&&!n){while(t.length<2)t="0"+t;return"\\x"+t}else{while(t.length<4)t="0"+t;return"\\u"+t}})}:function(e){return e.replace(/[\ud800-\udbff][\udc00-\udfff]|([\ud800-\udbff]|[\udc00-\udfff])/g,function(e,t){if(t){return"\\u"+t.charCodeAt(0).toString(16)}return e})};function make_string(t,n){var i=0,r=0;t=t.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(n,a){switch(n){case'"':++i;return'"';case"'":++r;return"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return e.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-9]/.test(get_full_char(t,a+1))?"\\x00":"\\0"}return n});function quote_single(){return"'"+t.replace(/\x27/g,"\\'")+"'"}function quote_double(){return'"'+t.replace(/\x22/g,'\\"')+'"'}function quote_template(){return"`"+t.replace(/`/g,"\\`")+"`"}t=l(t);if(n==="`")return quote_template();switch(e.quote_style){case 1:return quote_single();case 2:return quote_double();case 3:return n=="'"?quote_single():quote_double();default:return i>r?quote_single():quote_double()}}function encode_string(t,n){var i=make_string(t,n);if(e.inline_script){i=i.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"<\\/$1$2");i=i.replace(/\x3c!--/g,"\\x3c!--");i=i.replace(/--\x3e/g,"--\\x3e")}return i}function make_name(e){e=e.toString();e=l(e,true);return e}function make_indent(t){return" ".repeat(e.indent_start+r-t*e.indent_level)}var f=false;var p=false;var _=false;var h=0;var d=false;var m=false;var E=-1;var g="";var v,D,b=e.source_map&&[];var y=b?function(){b.forEach(function(t){try{e.source_map.add(t.token.file,t.line,t.col,t.token.line,t.token.col,!t.name&&t.token.type=="name"?t.token.value:t.name)}catch(e){}});b=[]}:noop;var k=e.max_line_len?function(){if(a>e.max_line_len){if(h){var t=u.slice(0,h);var n=u.slice(h);if(b){var i=n.length-a;b.forEach(function(e){e.line++;e.col+=i})}u=t+"\n"+n;o++;s++;a=n.length}}if(h){h=0;y()}}:noop;var S=makePredicate("( [ + * / - , . `");function print(t){t=String(t);var n=get_full_char(t,0);if(d&&n){d=false;if(n!=="\n"){print("\n");C()}}if(m&&n){m=false;if(!/[\s;})]/.test(n)){T()}}E=-1;var i=g.charAt(g.length-1);if(_){_=false;if(i===":"&&n==="}"||(!n||!";}".includes(n))&&i!==";"){if(e.semicolons||S.has(n)){u+=";";a++;s++}else{k();if(a>0){u+="\n";s++;o++;a=0}if(/^\s+$/.test(t)){_=true}}if(!e.beautify)p=false}}if(p){if(is_identifier_char(i)&&(is_identifier_char(n)||n=="\\")||n=="/"&&n==i||(n=="+"||n=="-")&&n==g){u+=" ";a++;s++}p=false}if(v){b.push({token:v,name:D,line:o,col:a});v=false;if(!h)y()}u+=t;f=t[t.length-1]=="(";s+=t.length;var r=t.split(/\r?\n/),c=r.length-1;o+=c;a+=r[0].length;if(c>0){k();a=r[c].length}g=t}var A=function(){print("*")};var T=e.beautify?function(){print(" ")}:function(){p=true};var C=e.beautify?function(t){if(e.beautify){print(make_indent(t?.5:0))}}:noop;var x=e.beautify?function(e,t){if(e===true)e=next_indent();var n=r;r=e;var i=t();r=n;return i}:function(e,t){return t()};var O=e.beautify?function(){if(E<0)return print("\n");if(u[E]!="\n"){u=u.slice(0,E)+"\n"+u.slice(E);s++;o++}E++}:e.max_line_len?function(){k();h=u.length}:noop;var F=e.beautify?function(){print(";")}:function(){_=true};function force_semicolon(){_=false;print(";")}function next_indent(){return r+e.indent_level}function with_block(e){var t;print("{");O();x(next_indent(),function(){t=e()});C();print("}");return t}function with_parens(e){print("(");var t=e();print(")");return t}function with_square(e){print("[");var t=e();print("]");return t}function comma(){print(",");T()}function colon(){print(":");T()}var w=b?function(e,t){v=e;D=t}:noop;function get(){if(h){k()}return u}function has_nlb(){let e=u.length-1;while(e>=0){const t=u.charCodeAt(e);if(t===Yt){return true}if(t!==$t){return false}e--}return true}function filter_comment(t){if(!e.preserve_annotations){t=t.replace(jt," ")}if(/^\s*$/.test(t)){return""}return t.replace(/(<\s*\/\s*)(script)/i,"<\\/$2")}function prepend_comments(t){var i=this;var r=t.start;if(!r)return;var a=i.printed_comments;const o=t instanceof ce&&t.value;if(r.comments_before&&a.has(r.comments_before)){if(o){r.comments_before=[]}else{return}}var u=r.comments_before;if(!u){u=r.comments_before=[]}a.add(u);if(o){var c=new TreeWalker(function(e){var t=c.parent();if(t instanceof ce||t instanceof Ge&&t.left===e||t.TYPE=="Call"&&t.expression===e||t instanceof He&&t.condition===e||t instanceof Le&&t.expression===e||t instanceof Pe&&t.expressions[0]===e||t instanceof Be&&t.expression===e||t instanceof ze){if(!e.start)return;var n=e.start.comments_before;if(n&&!a.has(n)){a.add(n);u=u.concat(n)}}else{return true}});c.push(t);t.value.walk(c)}if(s==0){if(u.length>0&&e.shebang&&u[0].type==="comment5"&&!a.has(u[0])){print("#!"+u.shift().value+"\n");C()}var l=e.preamble;if(l){print(l.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}}u=u.filter(n,t).filter(e=>!a.has(e));if(u.length==0)return;var f=has_nlb();u.forEach(function(e,t){a.add(e);if(!f){if(e.nlb){print("\n");C();f=true}else if(t>0){T()}}if(/comment[134]/.test(e.type)){var n=filter_comment(e.value);if(n){print("//"+n+"\n");C()}f=true}else if(e.type=="comment2"){var n=filter_comment(e.value);if(n){print("/*"+n+"*/")}f=false}});if(!f){if(r.nlb){print("\n");C()}else{T()}}}function append_comments(e,t){var i=this;var r=e.end;if(!r)return;var a=i.printed_comments;var o=r[t?"comments_before":"comments_after"];if(!o||a.has(o))return;if(!(e instanceof M||o.every(e=>!/comment[134]/.test(e.type))))return;a.add(o);var s=u.length;o.filter(n,e).forEach(function(e,n){if(a.has(e))return;a.add(e);m=false;if(d){print("\n");C();d=false}else if(e.nlb&&(n>0||!has_nlb())){print("\n");C()}else if(n>0||!t){T()}if(/comment[134]/.test(e.type)){const t=filter_comment(e.value);if(t){print("//"+t)}d=true}else if(e.type=="comment2"){const t=filter_comment(e.value);if(t){print("/*"+t+"*/")}m=true}});if(u.length>s)E=s}var R=[];return{get:get,toString:get,indent:C,in_directive:false,use_asm:null,active_scope:null,indentation:function(){return r},current_width:function(){return a-r},should_break:function(){return e.width&&this.current_width()>=e.width},has_parens:function(){return f},newline:O,print:print,star:A,space:T,comma:comma,colon:colon,last:function(){return g},semicolon:F,force_semicolon:force_semicolon,to_utf8:l,print_name:function(e){print(make_name(e))},print_string:function(e,t,n){var i=encode_string(e,t);if(n===true&&!i.includes("\\")){if(!Wt.test(u)){force_semicolon()}force_semicolon()}print(i)},print_template_string_chars:function(e){var t=encode_string(e,"`").replace(/\${/g,"\\${");return print(t.substr(1,t.length-2))},encode_string:encode_string,next_indent:next_indent,with_indent:x,with_block:with_block,with_parens:with_parens,with_square:with_square,add_mapping:w,option:function(t){return e[t]},printed_comments:c,prepend_comments:t?noop:prepend_comments,append_comments:t||n===return_false?noop:append_comments,line:function(){return o},col:function(){return a},pos:function(){return s},push_node:function(e){R.push(e)},pop_node:function(){return R.pop()},parent:function(e){return R[R.length-2-(e||0)]}}}(function(){function DEFPRINT(e,t){e.DEFMETHOD("_codegen",t)}R.DEFMETHOD("print",function(e,t){var n=this,i=n._codegen;if(n instanceof j){e.active_scope=n}else if(!e.use_asm&&n instanceof I&&n.value=="use asm"){e.use_asm=e.active_scope}function doit(){e.prepend_comments(n);n.add_source_map(e);i(n,e);e.append_comments(n)}e.push_node(n);if(t||n.needs_parens(e)){e.with_parens(doit)}else{doit()}e.pop_node();if(n===e.use_asm){e.use_asm=null}});R.DEFMETHOD("_print",R.prototype.print);R.DEFMETHOD("print_to_string",function(e){var t=OutputStream(e);this.print(t);return t.get()});function PARENS(e,t){if(Array.isArray(e)){e.forEach(function(e){PARENS(e,t)})}else{e.DEFMETHOD("needs_parens",t)}}PARENS(R,return_false);PARENS(te,function(e){if(!e.has_parens()&&first_in_statement(e)){return true}if(e.option("webkit")){var t=e.parent();if(t instanceof Ve&&t.expression===this){return true}}if(e.option("wrap_iife")){var t=e.parent();if(t instanceof Ne&&t.expression===this){return true}}if(e.option("wrap_func_args")){var t=e.parent();if(t instanceof Ne&&t.args.includes(this)){return true}}return false});PARENS(ne,function(e){var t=e.parent();return t instanceof Ve&&t.expression===this});PARENS(Ye,function(e){return!e.has_parens()&&first_in_statement(e)});PARENS(it,first_in_statement);PARENS(Ue,function(e){var t=e.parent();return t instanceof Ve&&t.expression===this||t instanceof Ne&&t.expression===this||t instanceof Ge&&t.operator==="**"&&this instanceof Ke&&t.left===this&&this.operator!=="++"&&this.operator!=="--"});PARENS(de,function(e){var t=e.parent();return t instanceof Ve&&t.expression===this||t instanceof Ne&&t.expression===this||e.option("safari10")&&t instanceof Ke});PARENS(Pe,function(e){var t=e.parent();return t instanceof Ne||t instanceof Ue||t instanceof Ge||t instanceof Oe||t instanceof Ve||t instanceof We||t instanceof $e||t instanceof He||t instanceof ne||t instanceof qe||t instanceof Q||t instanceof Y&&this===t.object||t instanceof me||t instanceof Me});PARENS(Ge,function(e){var t=e.parent();if(t instanceof Ne&&t.expression===this)return true;if(t instanceof Ue)return true;if(t instanceof Ve&&t.expression===this)return true;if(t instanceof Ge){const e=t.operator;const n=this.operator;if(n==="??"&&(e==="||"||e==="&&")){return true}const i=O[e];const r=O[n];if(i>r||i==r&&(this===t.right||e=="**")){return true}}});PARENS(me,function(e){var t=e.parent();if(t instanceof Ge&&t.operator!=="=")return true;if(t instanceof Ne&&t.expression===this)return true;if(t instanceof He&&t.condition===this)return true;if(t instanceof Ue)return true;if(t instanceof Ve&&t.expression===this)return true});PARENS(Ve,function(e){var t=e.parent();if(t instanceof Ie&&t.expression===this){return walk(this,e=>{if(e instanceof j)return true;if(e instanceof Ne){return zt}})}});PARENS(Ne,function(e){var t=e.parent(),n;if(t instanceof Ie&&t.expression===this||t instanceof Me&&t.is_default&&this.expression instanceof te)return true;return this.expression instanceof te&&t instanceof Ve&&t.expression===this&&(n=e.parent(1))instanceof Xe&&n.left===t});PARENS(Ie,function(e){var t=e.parent();if(this.args.length===0&&(t instanceof Ve||t instanceof Ne&&t.expression===this))return true});PARENS(Ft,function(e){var t=e.parent();if(t instanceof Ve&&t.expression===this){var n=this.getValue();if(n<0||/^0/.test(make_num(n))){return true}}});PARENS(wt,function(e){var t=e.parent();if(t instanceof Ve&&t.expression===this){var n=this.getValue();if(n.startsWith("-")){return true}}});PARENS([Xe,He],function(e){var t=e.parent();if(t instanceof Ue)return true;if(t instanceof Ge&&!(t instanceof Xe))return true;if(t instanceof Ne&&t.expression===this)return true;if(t instanceof He&&t.condition===this)return true;if(t instanceof Ve&&t.expression===this)return true;if(this instanceof Xe&&this.left instanceof re&&this.left.is_array===false)return true});DEFPRINT(I,function(e,t){t.print_string(e.value,e.quote);t.semicolon()});DEFPRINT(Q,function(e,t){t.print("...");e.expression.print(t)});DEFPRINT(re,function(e,t){t.print(e.is_array?"[":"{");var n=e.names.length;e.names.forEach(function(e,i){if(i>0)t.comma();e.print(t);if(i==n-1&&e instanceof Vt)t.comma()});t.print(e.is_array?"]":"}")});DEFPRINT(N,function(e,t){t.print("debugger");t.semicolon()});function display_body(e,t,n,i){var r=e.length-1;n.in_directive=i;e.forEach(function(e,i){if(n.in_directive===true&&!(e instanceof I||e instanceof B||e instanceof P&&e.body instanceof Ot)){n.in_directive=false}if(!(e instanceof B)){n.indent();e.print(n);if(!(i==r&&t)){n.newline();if(t)n.newline()}}if(n.in_directive===true&&e instanceof P&&e.body instanceof Ot){n.in_directive=false}});n.in_directive=false}U.DEFMETHOD("_do_print_body",function(e){force_statement(this.body,e)});DEFPRINT(M,function(e,t){e.body.print(t);t.semicolon()});DEFPRINT(Z,function(e,t){display_body(e.body,true,t,true);t.print("")});DEFPRINT(K,function(e,t){e.label.print(t);t.colon();e.body.print(t)});DEFPRINT(P,function(e,t){e.body.print(t);t.semicolon()});function print_braced_empty(e,t){t.print("{");t.with_indent(t.next_indent(),function(){t.append_comments(e,true)});t.print("}")}function print_braced(e,t,n){if(e.body.length>0){t.with_block(function(){display_body(e.body,false,t,n)})}else print_braced_empty(e,t)}DEFPRINT(L,function(e,t){print_braced(e,t)});DEFPRINT(B,function(e,t){t.semicolon()});DEFPRINT(H,function(e,t){t.print("do");t.space();make_block(e.body,t);t.space();t.print("while");t.space();t.with_parens(function(){e.condition.print(t)});t.semicolon()});DEFPRINT(X,function(e,t){t.print("while");t.space();t.with_parens(function(){e.condition.print(t)});t.space();e._do_print_body(t)});DEFPRINT(q,function(e,t){t.print("for");t.space();t.with_parens(function(){if(e.init){if(e.init instanceof Ae){e.init.print(t)}else{parenthesize_for_noin(e.init,t,true)}t.print(";");t.space()}else{t.print(";")}if(e.condition){e.condition.print(t);t.print(";");t.space()}else{t.print(";")}if(e.step){e.step.print(t)}});t.space();e._do_print_body(t)});DEFPRINT(W,function(e,t){t.print("for");if(e.await){t.space();t.print("await")}t.space();t.with_parens(function(){e.init.print(t);t.space();t.print(e instanceof Y?"of":"in");t.space();e.object.print(t)});t.space();e._do_print_body(t)});DEFPRINT($,function(e,t){t.print("with");t.space();t.with_parens(function(){e.expression.print(t)});t.space();e._do_print_body(t)});J.DEFMETHOD("_do_print",function(e,t){var n=this;if(!t){if(n.async){e.print("async");e.space()}e.print("function");if(n.is_generator){e.star()}if(n.name){e.space()}}if(n.name instanceof rt){n.name.print(e)}else if(t&&n.name instanceof R){e.with_square(function(){n.name.print(e)})}e.with_parens(function(){n.argnames.forEach(function(t,n){if(n)e.comma();t.print(e)})});e.space();print_braced(n,e,true)});DEFPRINT(J,function(e,t){e._do_print(t)});DEFPRINT(ae,function(e,t){var n=e.prefix;var i=n instanceof J||n instanceof Ge||n instanceof He||n instanceof Pe||n instanceof Ue||n instanceof Le&&n.expression instanceof Ye;if(i)t.print("(");e.prefix.print(t);if(i)t.print(")");e.template_string.print(t)});DEFPRINT(oe,function(e,t){var n=t.parent()instanceof ae;t.print("`");for(var i=0;i");e.space();const r=t.body[0];if(t.body.length===1&&r instanceof le){const t=r.value;if(!t){e.print("{}")}else if(left_is_object(t)){e.print("(");t.print(e);e.print(")")}else{t.print(e)}}else{print_braced(t,e)}if(i){e.print(")")}});ce.DEFMETHOD("_do_print",function(e,t){e.print(t);if(this.value){e.space();const t=this.value.start.comments_before;if(t&&t.length&&!e.printed_comments.has(t)){e.print("(");this.value.print(e);e.print(")")}else{this.value.print(e)}}e.semicolon()});DEFPRINT(le,function(e,t){e._do_print(t,"return")});DEFPRINT(fe,function(e,t){e._do_print(t,"throw")});DEFPRINT(me,function(e,t){var n=e.is_star?"*":"";t.print("yield"+n);if(e.expression){t.space();e.expression.print(t)}});DEFPRINT(de,function(e,t){t.print("await");t.space();var n=e.expression;var i=!(n instanceof Ne||n instanceof yt||n instanceof Ve||n instanceof Ue||n instanceof xt);if(i)t.print("(");e.expression.print(t);if(i)t.print(")")});pe.DEFMETHOD("_do_print",function(e,t){e.print(t);if(this.label){e.space();this.label.print(e)}e.semicolon()});DEFPRINT(_e,function(e,t){e._do_print(t,"break")});DEFPRINT(he,function(e,t){e._do_print(t,"continue")});function make_then(e,t){var n=e.body;if(t.option("braces")||t.option("ie8")&&n instanceof H)return make_block(n,t);if(!n)return t.force_semicolon();while(true){if(n instanceof Ee){if(!n.alternative){make_block(e.body,t);return}n=n.alternative}else if(n instanceof U){n=n.body}else break}force_statement(e.body,t)}DEFPRINT(Ee,function(e,t){t.print("if");t.space();t.with_parens(function(){e.condition.print(t)});t.space();if(e.alternative){make_then(e,t);t.space();t.print("else");t.space();if(e.alternative instanceof Ee)e.alternative.print(t);else force_statement(e.alternative,t)}else{e._do_print_body(t)}});DEFPRINT(ge,function(e,t){t.print("switch");t.space();t.with_parens(function(){e.expression.print(t)});t.space();var n=e.body.length-1;if(n<0)print_braced_empty(e,t);else t.with_block(function(){e.body.forEach(function(e,i){t.indent(true);e.print(t);if(i0)t.newline()})})});ve.DEFMETHOD("_do_print_body",function(e){e.newline();this.body.forEach(function(t){e.indent();t.print(e);e.newline()})});DEFPRINT(De,function(e,t){t.print("default:");e._do_print_body(t)});DEFPRINT(be,function(e,t){t.print("case");t.space();e.expression.print(t);t.print(":");e._do_print_body(t)});DEFPRINT(ye,function(e,t){t.print("try");t.space();print_braced(e,t);if(e.bcatch){t.space();e.bcatch.print(t)}if(e.bfinally){t.space();e.bfinally.print(t)}});DEFPRINT(ke,function(e,t){t.print("catch");if(e.argname){t.space();t.with_parens(function(){e.argname.print(t)})}t.space();print_braced(e,t)});DEFPRINT(Se,function(e,t){t.print("finally");t.space();print_braced(e,t)});Ae.DEFMETHOD("_do_print",function(e,t){e.print(t);e.space();this.definitions.forEach(function(t,n){if(n)e.comma();t.print(e)});var n=e.parent();var i=n instanceof q||n instanceof W;var r=!i||n&&n.init!==this;if(r)e.semicolon()});DEFPRINT(Ce,function(e,t){e._do_print(t,"let")});DEFPRINT(Te,function(e,t){e._do_print(t,"var")});DEFPRINT(xe,function(e,t){e._do_print(t,"const")});DEFPRINT(we,function(e,t){t.print("import");t.space();if(e.imported_name){e.imported_name.print(t)}if(e.imported_name&&e.imported_names){t.print(",");t.space()}if(e.imported_names){if(e.imported_names.length===1&&e.imported_names[0].foreign_name.name==="*"){e.imported_names[0].print(t)}else{t.print("{");e.imported_names.forEach(function(n,i){t.space();n.print(t);if(i{if(e instanceof j)return true;if(e instanceof Ge&&e.operator=="in"){return zt}})}e.print(t,i)}DEFPRINT(Oe,function(e,t){e.name.print(t);if(e.value){t.space();t.print("=");t.space();var n=t.parent(1);var i=n instanceof q||n instanceof W;parenthesize_for_noin(e.value,t,i)}});DEFPRINT(Ne,function(e,t){e.expression.print(t);if(e instanceof Ie&&e.args.length===0)return;if(e.expression instanceof Ne||e.expression instanceof J){t.add_mapping(e.start)}t.with_parens(function(){e.args.forEach(function(e,n){if(n)t.comma();e.print(t)})})});DEFPRINT(Ie,function(e,t){t.print("new");t.space();Ne.prototype._codegen(e,t)});Pe.DEFMETHOD("_do_print",function(e){this.expressions.forEach(function(t,n){if(n>0){e.comma();if(e.should_break()){e.newline();e.indent()}}t.print(e)})});DEFPRINT(Pe,function(e,t){e._do_print(t)});DEFPRINT(Le,function(e,t){var n=e.expression;n.print(t);var i=e.property;var r=u.has(i)?t.option("ie8"):!is_identifier_string(i,t.option("ecma")>=2015);if(r){t.print("[");t.add_mapping(e.end);t.print_string(i);t.print("]")}else{if(n instanceof Ft&&n.getValue()>=0){if(!/[xa-f.)]/i.test(t.last())){t.print(".")}}t.print(".");t.add_mapping(e.end);t.print_name(i)}});DEFPRINT(Be,function(e,t){e.expression.print(t);t.print("[");e.property.print(t);t.print("]")});DEFPRINT(Ke,function(e,t){var n=e.operator;t.print(n);if(/^[a-z]/i.test(n)||/[+-]$/.test(n)&&e.expression instanceof Ke&&/^[+-]/.test(e.expression.operator)){t.space()}e.expression.print(t)});DEFPRINT(ze,function(e,t){e.expression.print(t);t.print(e.operator)});DEFPRINT(Ge,function(e,t){var n=e.operator;e.left.print(t);if(n[0]==">"&&e.left instanceof ze&&e.left.operator=="--"){t.print(" ")}else{t.space()}t.print(n);if((n=="<"||n=="<<")&&e.right instanceof Ke&&e.right.operator=="!"&&e.right.expression instanceof Ke&&e.right.expression.operator=="--"){t.print(" ")}else{t.space()}e.right.print(t)});DEFPRINT(He,function(e,t){e.condition.print(t);t.space();t.print("?");t.space();e.consequent.print(t);t.space();t.colon();e.alternative.print(t)});DEFPRINT(We,function(e,t){t.with_square(function(){var n=e.elements,i=n.length;if(i>0)t.space();n.forEach(function(e,n){if(n)t.comma();e.print(t);if(n===i-1&&e instanceof Vt)t.comma()});if(i>0)t.space()})});DEFPRINT(Ye,function(e,t){if(e.properties.length>0)t.with_block(function(){e.properties.forEach(function(e,n){if(n){t.print(",");t.newline()}t.indent();e.print(t)});t.newline()});else print_braced_empty(e,t)});DEFPRINT(et,function(e,t){t.print("class");t.space();if(e.name){e.name.print(t);t.space()}if(e.extends){var n=!(e.extends instanceof yt)&&!(e.extends instanceof Ve)&&!(e.extends instanceof it)&&!(e.extends instanceof te);t.print("extends");if(n){t.print("(")}else{t.space()}e.extends.print(t);if(n){t.print(")")}else{t.space()}}if(e.properties.length>0)t.with_block(function(){e.properties.forEach(function(e,n){if(n){t.newline()}t.indent();e.print(t)});t.newline()});else t.print("{}")});DEFPRINT(at,function(e,t){t.print("new.target")});function print_property_name(e,t,n){if(n.option("quote_keys")){return n.print_string(e)}if(""+ +e==e&&e>=0){if(n.option("keep_numbers")){return n.print(e)}return n.print(make_num(e))}var i=u.has(e)?n.option("ie8"):n.option("ecma")<2015?!is_basic_identifier_string(e):!is_identifier_string(e,true);if(i||t&&n.option("keep_quoted_props")){return n.print_string(e,t)}return n.print_name(e)}DEFPRINT(je,function(e,t){function get_name(e){var t=e.definition();return t?t.mangled_name||t.name:e.name}var n=t.option("shorthand");if(n&&e.value instanceof rt&&is_identifier_string(e.key,t.option("ecma")>=2015)&&get_name(e.value)===e.key&&!u.has(e.key)){print_property_name(e.key,e.quote,t)}else if(n&&e.value instanceof qe&&e.value.left instanceof rt&&is_identifier_string(e.key,t.option("ecma")>=2015)&&get_name(e.value.left)===e.key){print_property_name(e.key,e.quote,t);t.space();t.print("=");t.space();e.value.right.print(t)}else{if(!(e.key instanceof R)){print_property_name(e.key,e.quote,t)}else{t.with_square(function(){e.key.print(t)})}t.colon();e.value.print(t)}});DEFPRINT(tt,(e,t)=>{if(e.static){t.print("static");t.space()}if(e.key instanceof ht){print_property_name(e.key.name,e.quote,t)}else{t.print("[");e.key.print(t);t.print("]")}if(e.value){t.print("=");e.value.print(t)}t.semicolon()});$e.DEFMETHOD("_print_getter_setter",function(e,t){var n=this;if(n.static){t.print("static");t.space()}if(e){t.print(e);t.space()}if(n.key instanceof _t){print_property_name(n.key.name,n.quote,t)}else{t.with_square(function(){n.key.print(t)})}n.value._do_print(t,true)});DEFPRINT(Ze,function(e,t){e._print_getter_setter("set",t)});DEFPRINT(Qe,function(e,t){e._print_getter_setter("get",t)});DEFPRINT(Je,function(e,t){var n;if(e.is_generator&&e.async){n="async*"}else if(e.is_generator){n="*"}else if(e.async){n="async"}e._print_getter_setter(n,t)});rt.DEFMETHOD("_do_print",function(e){var t=this.definition();e.print_name(t?t.mangled_name||t.name:this.name)});DEFPRINT(rt,function(e,t){e._do_print(t)});DEFPRINT(Vt,noop);DEFPRINT(Tt,function(e,t){t.print("this")});DEFPRINT(Ct,function(e,t){t.print("super")});DEFPRINT(xt,function(e,t){t.print(e.getValue())});DEFPRINT(Ot,function(e,t){t.print_string(e.getValue(),e.quote,t.in_directive)});DEFPRINT(Ft,function(e,t){if((t.option("keep_numbers")||t.use_asm)&&e.start&&e.start.raw!=null){t.print(e.start.raw)}else{t.print(make_num(e.getValue()))}});DEFPRINT(wt,function(e,t){t.print(e.getValue()+"n")});const e=/(<\s*\/\s*script)/i;const t=(e,t)=>t.replace("/","\\/");DEFPRINT(Rt,function(n,i){let{source:r,flags:a}=n.getValue();r=regexp_source_fix(r);a=a?sort_regexp_flags(a):"";r=r.replace(e,t);i.print(i.to_utf8(`/${r}/${a}`));const o=i.parent();if(o instanceof Ge&&/^\w/.test(o.operator)&&o.left===n){i.print(" ")}});function force_statement(e,t){if(t.option("braces")){make_block(e,t)}else{if(!e||e instanceof B)t.force_semicolon();else e.print(t)}}function best_of(e){var t=e[0],n=t.length;for(var i=1;i{return e===null&&t===null||e.TYPE===t.TYPE&&e.shallow_cmp(t)};const Qt=(e,t)=>{if(!Zt(e,t))return false;const n=[e];const i=[t];const r=n.push.bind(n);const a=i.push.bind(i);while(n.length&&i.length){const e=n.pop();const t=i.pop();if(!Zt(e,t))return false;e._children_backwards(r);t._children_backwards(a);if(n.length!==i.length){return false}}return n.length==0&&i.length==0};const Jt=e=>{const t=Object.keys(e).map(t=>{if(e[t]==="eq"){return`this.${t} === other.${t}`}else if(e[t]==="exist"){return`(this.${t} == null ? other.${t} == null : this.${t} === other.${t})`}else{throw new Error(`mkshallow: Unexpected instruction: ${e[t]}`)}}).join(" && ");return new Function("other","return "+t)};const en=()=>true;R.prototype.shallow_cmp=function(){throw new Error("did not find a shallow_cmp function for "+this.constructor.name)};N.prototype.shallow_cmp=en;I.prototype.shallow_cmp=Jt({value:"eq"});P.prototype.shallow_cmp=en;V.prototype.shallow_cmp=en;B.prototype.shallow_cmp=en;K.prototype.shallow_cmp=Jt({"label.name":"eq"});H.prototype.shallow_cmp=en;X.prototype.shallow_cmp=en;q.prototype.shallow_cmp=Jt({init:"exist",condition:"exist",step:"exist"});W.prototype.shallow_cmp=en;Y.prototype.shallow_cmp=en;$.prototype.shallow_cmp=en;Z.prototype.shallow_cmp=en;Q.prototype.shallow_cmp=en;J.prototype.shallow_cmp=Jt({is_generator:"eq",async:"eq"});re.prototype.shallow_cmp=Jt({is_array:"eq"});ae.prototype.shallow_cmp=en;oe.prototype.shallow_cmp=en;se.prototype.shallow_cmp=Jt({value:"eq"});ue.prototype.shallow_cmp=en;pe.prototype.shallow_cmp=en;de.prototype.shallow_cmp=en;me.prototype.shallow_cmp=Jt({is_star:"eq"});Ee.prototype.shallow_cmp=Jt({alternative:"exist"});ge.prototype.shallow_cmp=en;ve.prototype.shallow_cmp=en;ye.prototype.shallow_cmp=Jt({bcatch:"exist",bfinally:"exist"});ke.prototype.shallow_cmp=Jt({argname:"exist"});Se.prototype.shallow_cmp=en;Ae.prototype.shallow_cmp=en;Oe.prototype.shallow_cmp=Jt({value:"exist"});Fe.prototype.shallow_cmp=en;we.prototype.shallow_cmp=Jt({imported_name:"exist",imported_names:"exist"});Re.prototype.shallow_cmp=en;Me.prototype.shallow_cmp=Jt({exported_definition:"exist",exported_value:"exist",exported_names:"exist",module_name:"eq",is_default:"eq"});Ne.prototype.shallow_cmp=en;Pe.prototype.shallow_cmp=en;Ve.prototype.shallow_cmp=en;Le.prototype.shallow_cmp=Jt({property:"eq"});Ue.prototype.shallow_cmp=Jt({operator:"eq"});Ge.prototype.shallow_cmp=Jt({operator:"eq"});He.prototype.shallow_cmp=en;We.prototype.shallow_cmp=en;Ye.prototype.shallow_cmp=en;$e.prototype.shallow_cmp=en;je.prototype.shallow_cmp=Jt({key:"eq"});Ze.prototype.shallow_cmp=Jt({static:"eq"});Qe.prototype.shallow_cmp=Jt({static:"eq"});Je.prototype.shallow_cmp=Jt({static:"eq",is_generator:"eq",async:"eq"});et.prototype.shallow_cmp=Jt({name:"exist",extends:"exist"});tt.prototype.shallow_cmp=Jt({static:"eq"});rt.prototype.shallow_cmp=Jt({name:"eq"});at.prototype.shallow_cmp=en;Tt.prototype.shallow_cmp=en;Ct.prototype.shallow_cmp=en;Ot.prototype.shallow_cmp=Jt({value:"eq"});Ft.prototype.shallow_cmp=Jt({value:"eq"});wt.prototype.shallow_cmp=Jt({value:"eq"});Rt.prototype.shallow_cmp=function(e){return this.value.flags===e.value.flags&&this.value.source===e.value.source};Mt.prototype.shallow_cmp=en;const tn=1<<0;const nn=1<<1;let rn=null;let an=null;class SymbolDef{constructor(e,t,n){this.name=t.name;this.orig=[t];this.init=n;this.eliminated=0;this.assignments=0;this.scope=e;this.replaced=0;this.global=false;this.export=0;this.mangled_name=null;this.undeclared=false;this.id=SymbolDef.next_id++;this.chained=false;this.direct_access=false;this.escaped=0;this.recursive_refs=0;this.references=[];this.should_replace=undefined;this.single_use=false;this.fixed=false;Object.seal(this)}fixed_value(){if(!this.fixed||this.fixed instanceof R)return this.fixed;return this.fixed()}unmangleable(e){if(!e)e={};if(rn&&rn.has(this.id)&&keep_name(e.keep_fnames,this.orig[0].name))return true;return this.global&&!e.toplevel||this.export&tn||this.undeclared||!e.eval&&this.scope.pinned()||(this.orig[0]instanceof dt||this.orig[0]instanceof pt)&&keep_name(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof _t||(this.orig[0]instanceof Et||this.orig[0]instanceof mt)&&keep_name(e.keep_classnames,this.orig[0].name)}mangle(e){const t=e.cache&&e.cache.props;if(this.global&&t&&t.has(this.name)){this.mangled_name=t.get(this.name)}else if(!this.mangled_name&&!this.unmangleable(e)){var n=this.scope;var i=this.orig[0];if(e.ie8&&i instanceof dt)n=n.parent_scope;const r=redefined_catch_def(this);this.mangled_name=r?r.mangled_name||r.name:n.next_mangled(e,this);if(this.global&&t){t.set(this.name,this.mangled_name)}}}}SymbolDef.next_id=1;function redefined_catch_def(e){if(e.orig[0]instanceof gt&&e.scope.is_block_scope()){return e.scope.get_defun_scope().variables.get(e.name)}}j.DEFMETHOD("figure_out_scope",function(e,{parent_scope:t=null,toplevel:n=this}={}){e=defaults(e,{cache:null,ie8:false,safari10:false});if(!(n instanceof Z)){throw new Error("Invalid toplevel scope")}var i=this.parent_scope=t;var r=new Map;var a=null;var o=null;var s=[];var u=new TreeWalker((t,n)=>{if(t.is_block_scope()){const r=i;t.block_scope=i=new j(t);i._block_scope=true;const a=t instanceof ke?r.parent_scope:r;i.init_scope_vars(a);i.uses_with=r.uses_with;i.uses_eval=r.uses_eval;if(e.safari10){if(t instanceof q||t instanceof W){s.push(i)}}if(t instanceof ge){const e=i;i=r;t.expression.walk(u);i=e;for(let e=0;e{if(e===t)return true;if(t instanceof ut){return e instanceof dt}return!(e instanceof lt||e instanceof ct)})){js_error(`"${t.name}" is redeclared`,t.start.file,t.start.line,t.start.col,t.start.pos)}if(!(t instanceof ft))mark_export(h,2);if(a!==i){t.mark_enclosed();var h=i.find_variable(t);if(t.thedef!==h){t.thedef=h;t.reference()}}}else if(t instanceof At){var d=r.get(t.name);if(!d)throw new Error(string_template("Undefined label {name} [{line},{col}]",{name:t.name,line:t.start.line,col:t.start.col}));t.thedef=d}if(!(i instanceof Z)&&(t instanceof Me||t instanceof we)){js_error(`"${t.TYPE}" statement may only appear at the top level`,t.start.file,t.start.line,t.start.col,t.start.pos)}});this.walk(u);function mark_export(e,t){if(o){var n=0;do{t++}while(u.parent(n++)!==o)}var i=u.parent(t);if(e.export=i instanceof Me?tn:0){var r=i.exported_definition;if((r instanceof ie||r instanceof nt)&&i.is_default){e.export=nn}}}const c=this instanceof Z;if(c){this.globals=new Map}var u=new TreeWalker(e=>{if(e instanceof pe&&e.label){e.label.thedef.references.push(e);return true}if(e instanceof yt){var t=e.name;if(t=="eval"&&u.parent()instanceof Ne){for(var i=e.scope;i&&!i.uses_eval;i=i.parent_scope){i.uses_eval=true}}var r;if(u.parent()instanceof Fe&&u.parent(1).module_name||!(r=e.scope.find_variable(t))){r=n.def_global(e);if(e instanceof kt)r.export=tn}else if(r.scope instanceof J&&t=="arguments"){r.scope.uses_arguments=true}e.thedef=r;e.reference();if(e.scope.is_block_scope()&&!(r.orig[0]instanceof ut)){e.scope=e.scope.get_defun_scope()}return true}var a;if(e instanceof gt&&(a=redefined_catch_def(e.definition()))){var i=e.scope;while(i){push_uniq(i.enclosed,a);if(i===a.scope)break;i=i.parent_scope}}});this.walk(u);if(e.ie8||e.safari10){walk(this,e=>{if(e instanceof gt){var t=e.name;var i=e.thedef.references;var r=e.scope.get_defun_scope();var a=r.find_variable(t)||n.globals.get(t)||r.def_variable(e);i.forEach(function(e){e.thedef=a;e.reference()});e.thedef=a;e.reference();return true}})}if(e.safari10){for(const e of s){e.parent_scope.variables.forEach(function(t){push_uniq(e.enclosed,t)})}}});Z.DEFMETHOD("def_global",function(e){var t=this.globals,n=e.name;if(t.has(n)){return t.get(n)}else{var i=new SymbolDef(this,e);i.undeclared=true;i.global=true;t.set(n,i);return i}});j.DEFMETHOD("init_scope_vars",function(e){this.variables=new Map;this.functions=new Map;this.uses_with=false;this.uses_eval=false;this.parent_scope=e;this.enclosed=[];this.cname=-1});j.DEFMETHOD("conflicting_def",function(e){return this.enclosed.find(t=>t.name===e)||this.variables.has(e)||this.parent_scope&&this.parent_scope.conflicting_def(e)});j.DEFMETHOD("add_child_scope",function(e){if(e.parent_scope===this)return;e.parent_scope=this;const t=(()=>{const e=[];let t=this;do{e.push(t)}while(t=t.parent_scope);e.reverse();return e})();const n=new Set(e.enclosed);const i=[];for(const e of t){i.forEach(t=>push_uniq(e.enclosed,t));for(const t of e.variables.values()){if(n.has(t)){push_uniq(i,t);push_uniq(e.enclosed,t)}}}});j.DEFMETHOD("create_symbol",function(e,{source:t,tentative_name:n,scope:i,init:r=null}={}){let a;if(n){n=a=n.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/gi,"_");let e=0;while(this.conflicting_def(a)){a=n+"$"+e++}}if(!a){throw new Error("No symbol name could be generated in create_symbol()")}const o=make_node(e,t,{name:a,scope:i});this.def_variable(o,r||null);o.mark_enclosed();return o});R.DEFMETHOD("is_block_scope",return_false);et.DEFMETHOD("is_block_scope",return_false);J.DEFMETHOD("is_block_scope",return_false);Z.DEFMETHOD("is_block_scope",return_false);ve.DEFMETHOD("is_block_scope",return_false);V.DEFMETHOD("is_block_scope",return_true);j.DEFMETHOD("is_block_scope",function(){return this._block_scope||false});z.DEFMETHOD("is_block_scope",return_true);J.DEFMETHOD("init_scope_vars",function(){j.prototype.init_scope_vars.apply(this,arguments);this.uses_arguments=false;this.def_variable(new ft({name:"arguments",start:this.start,end:this.end}))});ne.DEFMETHOD("init_scope_vars",function(){j.prototype.init_scope_vars.apply(this,arguments);this.uses_arguments=false});rt.DEFMETHOD("mark_enclosed",function(){var e=this.definition();var t=this.scope;while(t){push_uniq(t.enclosed,e);if(t===e.scope)break;t=t.parent_scope}});rt.DEFMETHOD("reference",function(){this.definition().references.push(this);this.mark_enclosed()});j.DEFMETHOD("find_variable",function(e){if(e instanceof rt)e=e.name;return this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)});j.DEFMETHOD("def_function",function(e,t){var n=this.def_variable(e,t);if(!n.init||n.init instanceof ie)n.init=t;this.functions.set(e.name,n);return n});j.DEFMETHOD("def_variable",function(e,t){var n=this.variables.get(e.name);if(n){n.orig.push(e);if(n.init&&(n.scope!==e.scope||n.init instanceof te)){n.init=t}}else{n=new SymbolDef(this,e,t);this.variables.set(e.name,n);n.global=!this.parent_scope}return e.thedef=n});function next_mangled(e,t){var n=e.enclosed;e:while(true){var i=on(++e.cname);if(u.has(i))continue;if(t.reserved.has(i))continue;if(an&&an.has(i))continue e;for(let e=n.length;--e>=0;){const r=n[e];const a=r.mangled_name||r.unmangleable(t)&&r.name;if(i==a)continue e}return i}}j.DEFMETHOD("next_mangled",function(e){return next_mangled(this,e)});Z.DEFMETHOD("next_mangled",function(e){let t;const n=this.mangled_names;do{t=next_mangled(this,e)}while(n.has(t));return t});te.DEFMETHOD("next_mangled",function(e,t){var n=t.orig[0]instanceof ft&&this.name&&this.name.definition();var i=n?n.mangled_name||n.name:null;while(true){var r=next_mangled(this,e);if(!i||i!=r)return r}});rt.DEFMETHOD("unmangleable",function(e){var t=this.definition();return!t||t.unmangleable(e)});bt.DEFMETHOD("unmangleable",return_false);rt.DEFMETHOD("unreferenced",function(){return!this.definition().references.length&&!this.scope.pinned()});rt.DEFMETHOD("definition",function(){return this.thedef});rt.DEFMETHOD("global",function(){return this.thedef.global});Z.DEFMETHOD("_default_mangler_options",function(e){e=defaults(e,{eval:false,ie8:false,keep_classnames:false,keep_fnames:false,module:false,reserved:[],toplevel:false});if(e.module)e.toplevel=true;if(!Array.isArray(e.reserved)&&!(e.reserved instanceof Set)){e.reserved=[]}e.reserved=new Set(e.reserved);e.reserved.add("arguments");return e});Z.DEFMETHOD("mangle_names",function(e){e=this._default_mangler_options(e);var t=-1;var n=[];if(e.keep_fnames){rn=new Set}const i=this.mangled_names=new Set;if(e.cache){this.globals.forEach(collect);if(e.cache.props){e.cache.props.forEach(function(e){i.add(e)})}}var r=new TreeWalker(function(i,r){if(i instanceof K){var a=t;r();t=a;return true}if(i instanceof j){i.variables.forEach(collect);return}if(i.is_block_scope()){i.block_scope.variables.forEach(collect);return}if(rn&&i instanceof Oe&&i.value instanceof J&&!i.value.name&&keep_name(e.keep_fnames,i.name.name)){rn.add(i.name.definition().id);return}if(i instanceof bt){let e;do{e=on(++t)}while(u.has(e));i.mangled_name=e;return true}if(!(e.ie8||e.safari10)&&i instanceof gt){n.push(i.definition());return}});this.walk(r);if(e.keep_fnames||e.keep_classnames){an=new Set;n.forEach(t=>{if(t.name.length<6&&t.unmangleable(e)){an.add(t.name)}})}n.forEach(t=>{t.mangle(e)});rn=null;an=null;function collect(t){const i=!e.reserved.has(t.name)&&!(t.export&tn);if(i){n.push(t)}}});Z.DEFMETHOD("find_colliding_names",function(e){const t=e.cache&&e.cache.props;const n=new Set;e.reserved.forEach(to_avoid);this.globals.forEach(add_def);this.walk(new TreeWalker(function(e){if(e instanceof j)e.variables.forEach(add_def);if(e instanceof gt)add_def(e.definition())}));return n;function to_avoid(e){n.add(e)}function add_def(n){var i=n.name;if(n.global&&t&&t.has(i))i=t.get(i);else if(!n.unmangleable(e))return;to_avoid(i)}});Z.DEFMETHOD("expand_names",function(e){on.reset();on.sort();e=this._default_mangler_options(e);var t=this.find_colliding_names(e);var n=0;this.globals.forEach(rename);this.walk(new TreeWalker(function(e){if(e instanceof j)e.variables.forEach(rename);if(e instanceof gt)rename(e.definition())}));function next_name(){var e;do{e=on(n++)}while(t.has(e)||u.has(e));return e}function rename(t){if(t.global&&e.cache)return;if(t.unmangleable(e))return;if(e.reserved.has(t.name))return;const n=redefined_catch_def(t);const i=t.name=n?n.name:next_name();t.orig.forEach(function(e){e.name=i});t.references.forEach(function(e){e.name=i})}});R.DEFMETHOD("tail_node",return_this);Pe.DEFMETHOD("tail_node",function(){return this.expressions[this.expressions.length-1]});Z.DEFMETHOD("compute_char_frequency",function(e){e=this._default_mangler_options(e);try{R.prototype.print=function(t,n){this._print(t,n);if(this instanceof rt&&!this.unmangleable(e)){on.consider(this.name,-1)}else if(e.properties){if(this instanceof Le){on.consider(this.property,-1)}else if(this instanceof Be){skip_string(this.property)}}};on.consider(this.print_to_string(),1)}finally{R.prototype.print=R.prototype._print}on.sort();function skip_string(e){if(e instanceof Ot){on.consider(e.value,-1)}else if(e instanceof He){skip_string(e.consequent);skip_string(e.alternative)}else if(e instanceof Pe){skip_string(e.tail_node())}}});const on=(()=>{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split("");const t="0123456789".split("");let n;let i;function reset(){i=new Map;e.forEach(function(e){i.set(e,0)});t.forEach(function(e){i.set(e,0)})}base54.consider=function(e,t){for(var n=e.length;--n>=0;){i.set(e[n],i.get(e[n])+t)}};function compare(e,t){return i.get(t)-i.get(e)}base54.sort=function(){n=mergeSort(e,compare).concat(mergeSort(t,compare))};base54.reset=reset;reset();function base54(e){var t="",i=54;e++;do{e--;t+=n[e%i];e=Math.floor(e/i);i=64}while(e>0);return t}return base54})();let sn=undefined;R.prototype.size=function(e,t){sn=undefined;let n=0;walk_parent(this,(e,t)=>{n+=e._size(t)},t||e&&e.stack);sn=undefined;return n};R.prototype._size=(()=>0);N.prototype._size=(()=>8);I.prototype._size=function(){return 2+this.value.length};const un=e=>e.length&&e.length-1;V.prototype._size=function(){return 2+un(this.body)};Z.prototype._size=function(){return un(this.body)};B.prototype._size=(()=>1);K.prototype._size=(()=>2);H.prototype._size=(()=>9);X.prototype._size=(()=>7);q.prototype._size=(()=>8);W.prototype._size=(()=>8);$.prototype._size=(()=>6);Q.prototype._size=(()=>3);const cn=e=>(e.is_generator?1:0)+(e.async?6:0);ee.prototype._size=function(){return cn(this)+4+un(this.argnames)+un(this.body)};te.prototype._size=function(e){const t=!!first_in_statement(e);return t*2+cn(this)+12+un(this.argnames)+un(this.body)};ie.prototype._size=function(){return cn(this)+13+un(this.argnames)+un(this.body)};ne.prototype._size=function(){let e=2+un(this.argnames);if(!(this.argnames.length===1&&this.argnames[0]instanceof rt)){e+=2}return cn(this)+e+(Array.isArray(this.body)?un(this.body):this.body._size())};re.prototype._size=(()=>2);oe.prototype._size=function(){return 2+Math.floor(this.segments.length/2)*3};se.prototype._size=function(){return this.value.length};le.prototype._size=function(){return this.value?7:6};fe.prototype._size=(()=>6);_e.prototype._size=function(){return this.label?6:5};he.prototype._size=function(){return this.label?9:8};Ee.prototype._size=(()=>4);ge.prototype._size=function(){return 8+un(this.body)};be.prototype._size=function(){return 5+un(this.body)};De.prototype._size=function(){return 8+un(this.body)};ye.prototype._size=function(){return 3+un(this.body)};ke.prototype._size=function(){let e=7+un(this.body);if(this.argname){e+=2}return e};Se.prototype._size=function(){return 7+un(this.body)};const ln=(e,t)=>e+un(t.definitions);Te.prototype._size=function(){return ln(4,this)};Ce.prototype._size=function(){return ln(4,this)};xe.prototype._size=function(){return ln(6,this)};Oe.prototype._size=function(){return this.value?1:0};Fe.prototype._size=function(){return this.name?4:0};we.prototype._size=function(){let e=6;if(this.imported_name)e+=1;if(this.imported_name||this.imported_names)e+=5;if(this.imported_names){e+=2+un(this.imported_names)}return e};Re.prototype._size=(()=>11);Me.prototype._size=function(){let e=7+(this.is_default?8:0);if(this.exported_value){e+=this.exported_value._size()}if(this.exported_names){e+=2+un(this.exported_names)}if(this.module_name){e+=5}return e};Ne.prototype._size=function(){return 2+un(this.args)};Ie.prototype._size=function(){return 6+un(this.args)};Pe.prototype._size=function(){return un(this.expressions)};Le.prototype._size=function(){return this.property.length+1};Be.prototype._size=(()=>2);Ue.prototype._size=function(){if(this.operator==="typeof")return 7;if(this.operator==="void")return 5;return this.operator.length};Ge.prototype._size=function(e){if(this.operator==="in")return 4;let t=this.operator.length;if((this.operator==="+"||this.operator==="-")&&this.right instanceof Ue&&this.right.operator===this.operator){t+=1}if(this.needs_parens(e)){t+=2}return t};He.prototype._size=(()=>3);We.prototype._size=function(){return 2+un(this.elements)};Ye.prototype._size=function(e){let t=2;if(first_in_statement(e)){t+=2}return t+un(this.properties)};const fn=e=>typeof e==="string"?e.length:0;je.prototype._size=function(){return fn(this.key)+1};const pn=e=>e?7:0;Qe.prototype._size=function(){return 5+pn(this.static)+fn(this.key)};Ze.prototype._size=function(){return 5+pn(this.static)+fn(this.key)};Je.prototype._size=function(){return pn(this.static)+fn(this.key)+cn(this)};et.prototype._size=function(){return(this.name?8:7)+(this.extends?8:0)};tt.prototype._size=function(){return pn(this.static)+(typeof this.key==="string"?this.key.length+2:0)+(this.value?1:0)};rt.prototype._size=function(){return!sn||this.definition().unmangleable(sn)?this.name.length:2};ht.prototype._size=function(){return this.name.length};yt.prototype._size=ot.prototype._size=function(){const{name:e,thedef:t}=this;if(t&&t.global)return e.length;if(e==="arguments")return 9;return 2};at.prototype._size=(()=>10);Dt.prototype._size=function(){return this.name.length};St.prototype._size=function(){return this.name.length};Tt.prototype._size=(()=>4);Ct.prototype._size=(()=>5);Ot.prototype._size=function(){return this.value.length+2};Ft.prototype._size=function(){const{value:e}=this;if(e===0)return 1;if(e>0&&Math.floor(e)===e){return Math.floor(Math.log10(e)+1)}return e.toString().length};wt.prototype._size=function(){return this.value.length};Rt.prototype._size=function(){return this.value.toString().length};Nt.prototype._size=(()=>4);It.prototype._size=(()=>3);Pt.prototype._size=(()=>6);Vt.prototype._size=(()=>0);Lt.prototype._size=(()=>8);Kt.prototype._size=(()=>4);Ut.prototype._size=(()=>5);de.prototype._size=(()=>6);me.prototype._size=(()=>6);const _n=1;const hn=2;const dn=4;const mn=8;const En=16;const gn=32;const vn=256;const Dn=512;const bn=1024;const yn=vn|Dn|bn;const kn=(e,t)=>e.flags&t;const Sn=(e,t)=>{e.flags|=t};const An=(e,t)=>{e.flags&=~t};class Compressor extends TreeWalker{constructor(e,t){super();if(e.defaults!==undefined&&!e.defaults)t=true;this.options=defaults(e,{arguments:false,arrows:!t,booleans:!t,booleans_as_integers:false,collapse_vars:!t,comparisons:!t,computed_props:!t,conditionals:!t,dead_code:!t,defaults:true,directives:!t,drop_console:false,drop_debugger:!t,ecma:5,evaluate:!t,expression:false,global_defs:false,hoist_funs:false,hoist_props:!t,hoist_vars:false,ie8:false,if_return:!t,inline:!t,join_vars:!t,keep_classnames:false,keep_fargs:true,keep_fnames:false,keep_infinity:false,loops:!t,module:false,negate_iife:!t,passes:1,properties:!t,pure_getters:!t&&"strict",pure_funcs:null,reduce_funcs:null,reduce_vars:!t,sequences:!t,side_effects:!t,switches:!t,top_retain:null,toplevel:!!(e&&e["top_retain"]),typeofs:!t,unsafe:false,unsafe_arrows:false,unsafe_comps:false,unsafe_Function:false,unsafe_math:false,unsafe_symbols:false,unsafe_methods:false,unsafe_proto:false,unsafe_regexp:false,unsafe_undefined:false,unused:!t,warnings:false},true);var n=this.options["global_defs"];if(typeof n=="object")for(var i in n){if(i[0]==="@"&&HOP(n,i)){n[i.slice(1)]=parse(n[i],{expression:true})}}if(this.options["inline"]===true)this.options["inline"]=3;var r=this.options["pure_funcs"];if(typeof r=="function"){this.pure_funcs=r}else{this.pure_funcs=r?function(e){return!r.includes(e.expression.print_to_string())}:return_true}var a=this.options["top_retain"];if(a instanceof RegExp){this.top_retain=function(e){return a.test(e.name)}}else if(typeof a=="function"){this.top_retain=a}else if(a){if(typeof a=="string"){a=a.split(/,/)}this.top_retain=function(e){return a.includes(e.name)}}if(this.options["module"]){this.directives["use strict"]=true;this.options["toplevel"]=true}var o=this.options["toplevel"];this.toplevel=typeof o=="string"?{funcs:/funcs/.test(o),vars:/vars/.test(o)}:{funcs:o,vars:o};var s=this.options["sequences"];this.sequences_limit=s==1?800:s|0;this.evaluated_regexps=new Map;this._toplevel=undefined}option(e){return this.options[e]}exposed(e){if(e.export)return true;if(e.global)for(var t=0,n=e.orig.length;t0||this.option("reduce_vars")){this._toplevel.reset_opt_flags(this)}this._toplevel=this._toplevel.transform(this);if(t>1){let e=0;walk(this._toplevel,()=>{e++});if(e=0){r.body[o]=r.body[o].transform(i)}}else if(r instanceof Ee){r.body=r.body.transform(i);if(r.alternative){r.alternative=r.alternative.transform(i)}}else if(r instanceof $){r.body=r.body.transform(i)}return r});n.transform(i)});function read_property(e,t){t=get_value(t);if(t instanceof R)return;var n;if(e instanceof We){var i=e.elements;if(t=="length")return make_node_from_constant(i.length,e);if(typeof t=="number"&&t in i)n=i[t]}else if(e instanceof Ye){t=""+t;var r=e.properties;for(var a=r.length;--a>=0;){var o=r[a];if(!(o instanceof je))return;if(!n&&r[a].key===t)n=r[a].value}}return n instanceof yt&&n.fixed_value()||n}function is_modified(e,t,n,i,r,a){var o=t.parent(r);var s=is_lhs(n,o);if(s)return s;if(!a&&o instanceof Ne&&o.expression===n&&!(i instanceof ne)&&!(i instanceof et)&&!o.is_expr_pure(e)&&(!(i instanceof te)||!(o instanceof Ie)&&i.contains_this())){return true}if(o instanceof We){return is_modified(e,t,o,o,r+1)}if(o instanceof je&&n===o.value){var u=t.parent(r+1);return is_modified(e,t,u,u,r+2)}if(o instanceof Ve&&o.expression===n){var c=read_property(i,o.property);return!a&&is_modified(e,t,o,c,r+1)}}(function(e){e(R,noop);function reset_def(e,t){t.assignments=0;t.chained=false;t.direct_access=false;t.escaped=0;t.recursive_refs=0;t.references=[];t.single_use=undefined;if(t.scope.pinned()){t.fixed=false}else if(t.orig[0]instanceof ct||!e.exposed(t)){t.fixed=t.init}else{t.fixed=false}}function reset_variables(e,t,n){n.variables.forEach(function(n){reset_def(t,n);if(n.fixed===null){e.defs_to_safe_ids.set(n.id,e.safe_ids);mark(e,n,true)}else if(n.fixed){e.loop_ids.set(n.id,e.in_loop);mark(e,n,true)}})}function reset_block_variables(e,t){if(t.block_scope)t.block_scope.variables.forEach(t=>{reset_def(e,t)})}function push(e){e.safe_ids=Object.create(e.safe_ids)}function pop(e){e.safe_ids=Object.getPrototypeOf(e.safe_ids)}function mark(e,t,n){e.safe_ids[t.id]=n}function safe_to_read(e,t){if(t.single_use=="m")return false;if(e.safe_ids[t.id]){if(t.fixed==null){var n=t.orig[0];if(n instanceof ft||n.name=="arguments")return false;t.fixed=make_node(Pt,n)}return true}return t.fixed instanceof ie}function safe_to_assign(e,t,n,i){if(t.fixed===undefined)return true;let r;if(t.fixed===null&&(r=e.defs_to_safe_ids.get(t.id))){r[t.id]=false;e.defs_to_safe_ids.delete(t.id);return true}if(!HOP(e.safe_ids,t.id))return false;if(!safe_to_read(e,t))return false;if(t.fixed===false)return false;if(t.fixed!=null&&(!i||t.references.length>t.assignments))return false;if(t.fixed instanceof ie){return i instanceof R&&t.fixed.parent_scope===n}return t.orig.every(e=>{return!(e instanceof ct||e instanceof pt||e instanceof dt)})}function ref_once(e,t,n){return t.option("unused")&&!n.scope.pinned()&&n.references.length-n.recursive_refs==1&&e.loop_ids.get(n.id)===e.in_loop}function is_immutable(e){if(!e)return false;return e.is_constant()||e instanceof J||e instanceof Tt}function mark_escaped(e,t,n,i,r,a,o){var s=e.parent(a);if(r){if(r.is_constant())return;if(r instanceof it)return}if(s instanceof Xe&&s.operator=="="&&i===s.right||s instanceof Ne&&(i!==s.expression||s instanceof Ie)||s instanceof ce&&i===s.value&&i.scope!==t.scope||s instanceof Oe&&i===s.value||s instanceof me&&i===s.value&&i.scope!==t.scope){if(o>1&&!(r&&r.is_constant_expression(n)))o=1;if(!t.escaped||t.escaped>o)t.escaped=o;return}else if(s instanceof We||s instanceof de||s instanceof Ge&&xn.has(s.operator)||s instanceof He&&i!==s.condition||s instanceof Q||s instanceof Pe&&i===s.tail_node()){mark_escaped(e,t,n,s,s,a+1,o)}else if(s instanceof je&&i===s.value){var u=e.parent(a+1);mark_escaped(e,t,n,u,u,a+2,o)}else if(s instanceof Ve&&i===s.expression){r=read_property(r,s.property);mark_escaped(e,t,n,s,r,a+1,o+1);if(r)return}if(a>0)return;if(s instanceof Pe&&i!==s.tail_node())return;if(s instanceof P)return;t.direct_access=true}const t=e=>walk(e,e=>{if(!(e instanceof rt))return;var t=e.definition();if(!t)return;if(e instanceof yt)t.references.push(e);t.fixed=false});e(ee,function(e,t,n){push(e);reset_variables(e,n,this);t();pop(e);return true});e(Xe,function(e,n,i){var r=this;if(r.left instanceof re){t(r.left);return}var a=r.left;if(!(a instanceof yt))return;var o=a.definition();var s=safe_to_assign(e,o,a.scope,r.right);o.assignments++;if(!s)return;var u=o.fixed;if(!u&&r.operator!="=")return;var c=r.operator=="=";var l=c?r.right:r;if(is_modified(i,e,r,l,0))return;o.references.push(a);if(!c)o.chained=true;o.fixed=c?function(){return r.right}:function(){return make_node(Ge,r,{operator:r.operator.slice(0,-1),left:u instanceof R?u:u(),right:r.right})};mark(e,o,false);r.right.walk(e);mark(e,o,true);mark_escaped(e,o,a.scope,r,l,0,1);return true});e(Ge,function(e){if(!xn.has(this.operator))return;this.left.walk(e);push(e);this.right.walk(e);pop(e);return true});e(V,function(e,t,n){reset_block_variables(n,this)});e(be,function(e){push(e);this.expression.walk(e);pop(e);push(e);walk_body(this,e);pop(e);return true});e(et,function(e,t){An(this,En);push(e);t();pop(e);return true});e(He,function(e){this.condition.walk(e);push(e);this.consequent.walk(e);pop(e);push(e);this.alternative.walk(e);pop(e);return true});e(De,function(e,t){push(e);t();pop(e);return true});function mark_lambda(e,t,n){An(this,En);push(e);reset_variables(e,n,this);if(this.uses_arguments){t();pop(e);return}var i;if(!this.name&&(i=e.parent())instanceof Ne&&i.expression===this&&!i.args.some(e=>e instanceof Q)&&this.argnames.every(e=>e instanceof rt)){this.argnames.forEach((t,n)=>{if(!t.definition)return;var r=t.definition();if(r.orig.length>1)return;if(r.fixed===undefined&&(!this.uses_arguments||e.has_directive("use strict"))){r.fixed=function(){return i.args[n]||make_node(Pt,i)};e.loop_ids.set(r.id,e.in_loop);mark(e,r,true)}else{r.fixed=false}})}t();pop(e);return true}e(J,mark_lambda);e(H,function(e,t,n){reset_block_variables(n,this);const i=e.in_loop;e.in_loop=this;push(e);this.body.walk(e);if(has_break_or_continue(this)){pop(e);push(e)}this.condition.walk(e);pop(e);e.in_loop=i;return true});e(q,function(e,t,n){reset_block_variables(n,this);if(this.init)this.init.walk(e);const i=e.in_loop;e.in_loop=this;push(e);if(this.condition)this.condition.walk(e);this.body.walk(e);if(this.step){if(has_break_or_continue(this)){pop(e);push(e)}this.step.walk(e)}pop(e);e.in_loop=i;return true});e(W,function(e,n,i){reset_block_variables(i,this);t(this.init);this.object.walk(e);const r=e.in_loop;e.in_loop=this;push(e);this.body.walk(e);pop(e);e.in_loop=r;return true});e(Ee,function(e){this.condition.walk(e);push(e);this.body.walk(e);pop(e);if(this.alternative){push(e);this.alternative.walk(e);pop(e)}return true});e(K,function(e){push(e);this.body.walk(e);pop(e);return true});e(gt,function(){this.definition().fixed=false});e(yt,function(e,t,n){var i=this.definition();i.references.push(this);if(i.references.length==1&&!i.fixed&&i.orig[0]instanceof pt){e.loop_ids.set(i.id,e.in_loop)}var r;if(i.fixed===undefined||!safe_to_read(e,i)){i.fixed=false}else if(i.fixed){r=this.fixed_value();if(r instanceof J&&recursive_ref(e,i)){i.recursive_refs++}else if(r&&!n.exposed(i)&&ref_once(e,n,i)){i.single_use=r instanceof J&&!r.pinned()||r instanceof et||i.scope===this.scope&&r.is_constant_expression()}else{i.single_use=false}if(is_modified(n,e,this,r,0,is_immutable(r))){if(i.single_use){i.single_use="m"}else{i.fixed=false}}}mark_escaped(e,i,this.scope,this,r,0,1)});e(Z,function(e,t,n){this.globals.forEach(function(e){reset_def(n,e)});reset_variables(e,n,this)});e(ye,function(e,t,n){reset_block_variables(n,this);push(e);walk_body(this,e);pop(e);if(this.bcatch){push(e);this.bcatch.walk(e);pop(e)}if(this.bfinally)this.bfinally.walk(e);return true});e(Ue,function(e){var t=this;if(t.operator!=="++"&&t.operator!=="--")return;var n=t.expression;if(!(n instanceof yt))return;var i=n.definition();var r=safe_to_assign(e,i,n.scope,true);i.assignments++;if(!r)return;var a=i.fixed;if(!a)return;i.references.push(n);i.chained=true;i.fixed=function(){return make_node(Ge,t,{operator:t.operator.slice(0,-1),left:make_node(Ke,t,{operator:"+",expression:a instanceof R?a:a()}),right:make_node(Ft,t,{value:1})})};mark(e,i,true);return true});e(Oe,function(e,n){var i=this;if(i.name instanceof re){t(i.name);return}var r=i.name.definition();if(i.value){if(safe_to_assign(e,r,i.name.scope,i.value)){r.fixed=function(){return i.value};e.loop_ids.set(r.id,e.in_loop);mark(e,r,false);n();mark(e,r,true);return true}else{r.fixed=false}}});e(X,function(e,t,n){reset_block_variables(n,this);const i=e.in_loop;e.in_loop=this;push(e);t();pop(e);e.in_loop=i;return true})})(function(e,t){e.DEFMETHOD("reduce_vars",t)});Z.DEFMETHOD("reset_opt_flags",function(e){const t=this;const n=e.option("reduce_vars");const i=new TreeWalker(function(r,a){An(r,yn);if(n){if(e.top_retain&&r instanceof ie&&i.parent()===t){Sn(r,bn)}return r.reduce_vars(i,a,e)}});i.safe_ids=Object.create(null);i.in_loop=null;i.loop_ids=new Map;i.defs_to_safe_ids=new Map;t.walk(i)});rt.DEFMETHOD("fixed_value",function(){var e=this.thedef.fixed;if(!e||e instanceof R)return e;return e()});yt.DEFMETHOD("is_immutable",function(){var e=this.definition().orig;return e.length==1&&e[0]instanceof dt});function is_func_expr(e){return e instanceof ne||e instanceof te}function is_lhs_read_only(e){if(e instanceof Tt)return true;if(e instanceof yt)return e.definition().orig[0]instanceof dt;if(e instanceof Ve){e=e.expression;if(e instanceof yt){if(e.is_immutable())return false;e=e.fixed_value()}if(!e)return true;if(e instanceof Rt)return false;if(e instanceof xt)return true;return is_lhs_read_only(e)}return false}function is_ref_of(e,t){if(!(e instanceof yt))return false;var n=e.definition().orig;for(var i=n.length;--i>=0;){if(n[i]instanceof t)return true}}function find_scope(e){for(let t=0;;t++){const n=e.parent(t);if(n instanceof Z)return n;if(n instanceof J)return n;if(n.block_scope)return n.block_scope}}function find_variable(e,t){var n,i=0;while(n=e.parent(i++)){if(n instanceof j)break;if(n instanceof ke&&n.argname){n=n.argname.definition().scope;break}}return n.find_variable(t)}function make_sequence(e,t){if(t.length==1)return t[0];if(t.length==0)throw new Error("trying to create a sequence with length zero!");return make_node(Pe,e,{expressions:t.reduce(merge_sequence,[])})}function make_node_from_constant(e,t){switch(typeof e){case"string":return make_node(Ot,t,{value:e});case"number":if(isNaN(e))return make_node(It,t);if(isFinite(e)){return 1/e<0?make_node(Ke,t,{operator:"-",expression:make_node(Ft,t,{value:-e})}):make_node(Ft,t,{value:e})}return e<0?make_node(Ke,t,{operator:"-",expression:make_node(Lt,t)}):make_node(Lt,t);case"boolean":return make_node(e?Kt:Ut,t);case"undefined":return make_node(Pt,t);default:if(e===null){return make_node(Nt,t,{value:null})}if(e instanceof RegExp){return make_node(Rt,t,{value:{source:regexp_source_fix(e.source),flags:e.flags}})}throw new Error(string_template("Can't handle constant of type: {type}",{type:typeof e}))}}function maintain_this_binding(e,t,n){if(e instanceof Ke&&e.operator=="delete"||e instanceof Ne&&e.expression===t&&(n instanceof Ve||n instanceof yt&&n.name=="eval")){return make_sequence(t,[make_node(Ft,t,{value:0}),n])}return n}function merge_sequence(e,t){if(t instanceof Pe){e.push(...t.expressions)}else{e.push(t)}return e}function as_statement_array(e){if(e===null)return[];if(e instanceof L)return e.body;if(e instanceof B)return[];if(e instanceof M)return[e];throw new Error("Can't convert thing to statement array")}function is_empty(e){if(e===null)return true;if(e instanceof B)return true;if(e instanceof L)return e.body.length==0;return false}function can_be_evicted_from_block(e){return!(e instanceof nt||e instanceof ie||e instanceof Ce||e instanceof xe||e instanceof Me||e instanceof we)}function loop_body(e){if(e instanceof z){return e.body instanceof L?e.body:e}return e}function is_iife_call(e){if(e.TYPE!="Call")return false;return e.expression instanceof te||is_iife_call(e.expression)}function is_undeclared_ref(e){return e instanceof yt&&e.definition().undeclared}var Tn=makePredicate("Array Boolean clearInterval clearTimeout console Date decodeURI decodeURIComponent encodeURI encodeURIComponent Error escape eval EvalError Function isFinite isNaN JSON Math Number parseFloat parseInt RangeError ReferenceError RegExp Object setInterval setTimeout String SyntaxError TypeError unescape URIError");yt.DEFMETHOD("is_declared",function(e){return!this.definition().undeclared||e.option("unsafe")&&Tn.has(this.name)});var Cn=makePredicate("Infinity NaN undefined");function is_identifier_atom(e){return e instanceof Lt||e instanceof It||e instanceof Pt}function tighten_body(e,t){var n,r;var a=t.find_parent(j).get_defun_scope();find_loop_scope_try();var o,s=10;do{o=false;eliminate_spurious_blocks(e);if(t.option("dead_code")){eliminate_dead_code(e,t)}if(t.option("if_return")){handle_if_return(e,t)}if(t.sequences_limit>0){sequencesize(e,t);sequencesize_2(e,t)}if(t.option("join_vars")){join_consecutive_vars(e)}if(t.option("collapse_vars")){collapse(e,t)}}while(o&&s-- >0);function find_loop_scope_try(){var e=t.self(),i=0;do{if(e instanceof ke||e instanceof Se){i++}else if(e instanceof z){n=true}else if(e instanceof j){a=e;break}else if(e instanceof ye){r=true}}while(e=t.parent(i++))}function collapse(e,t){if(a.pinned())return e;var s;var u=[];var c=e.length;var l=new TreeTransformer(function(e){if(T)return e;if(!A){if(e!==p[_])return e;_++;if(_1||e instanceof z&&!(e instanceof q)||e instanceof pe||e instanceof ye||e instanceof $||e instanceof me||e instanceof Me||e instanceof et||n instanceof q&&e!==n.init||!y&&(e instanceof yt&&!e.is_declared(t)&&!Nn.has(e))||e instanceof yt&&n instanceof Ne&&has_annotation(n,Xt)){T=true;return e}if(!E&&(!D||!y)&&(n instanceof Ge&&xn.has(n.operator)&&n.left!==e||n instanceof He&&n.condition!==e||n instanceof Ee&&n.condition!==e)){E=n}if(x&&!(e instanceof ot)&&g.equivalent_to(e)){if(E){T=true;return e}if(is_lhs(e,n)){if(d)C++;return e}else{C++;if(d&&h instanceof Oe)return e}o=T=true;if(h instanceof ze){return make_node(Ke,h,h)}if(h instanceof Oe){var i=h.name.definition();var a=h.value;if(i.references.length-i.replaced==1&&!t.exposed(i)){i.replaced++;if(S&&is_identifier_atom(a)){return a.transform(t)}else{return maintain_this_binding(n,e,a)}}return make_node(Xe,h,{operator:"=",left:make_node(yt,h.name,h.name),right:a})}An(h,gn);return h}var s;if(e instanceof Ne||e instanceof ce&&(b||g instanceof Ve||may_modify(g))||e instanceof Ve&&(b||e.expression.may_throw_on_access(t))||e instanceof yt&&(v.get(e.name)||b&&may_modify(e))||e instanceof Oe&&e.value&&(v.has(e.name.name)||b&&may_modify(e.name))||(s=is_lhs(e.left,e))&&(s instanceof Ve||v.has(s.name))||k&&(r?e.has_side_effects(t):side_effects_external(e))){m=e;if(e instanceof j)T=true}return handle_custom_scan_order(e)},function(e){if(T)return;if(m===e)T=true;if(E===e)E=null});var f=new TreeTransformer(function(e){if(T)return e;if(!A){if(e!==p[_])return e;_++;if(_=0){if(c==0&&t.option("unused"))extract_args();var p=[];extract_candidates(e[c]);while(u.length>0){p=u.pop();var _=0;var h=p[p.length-1];var d=null;var m=null;var E=null;var g=get_lhs(h);if(!g||is_lhs_read_only(g)||g.has_side_effects(t))continue;var v=get_lvalues(h);var D=is_lhs_local(g);if(g instanceof yt)v.set(g.name,false);var b=value_has_side_effects(h);var y=replace_all_symbols();var k=h.may_throw(t);var S=h.name instanceof ft;var A=S;var T=false,C=0,x=!s||!A;if(!x){for(var O=t.self().argnames.lastIndexOf(h.name)+1;!T&&OC)C=false;else{T=false;_=0;A=S;for(var F=c;!T&&F!(e instanceof Q))){var i=t.has_directive("use strict");if(i&&!member(i,n.body))i=false;var r=n.argnames.length;s=e.args.slice(r);var a=new Set;for(var o=r;--o>=0;){var c=n.argnames[o];var l=e.args[o];const r=c.definition&&c.definition();const p=r&&r.orig.length>1;if(p)continue;s.unshift(make_node(Oe,c,{name:c,value:l}));if(a.has(c.name))continue;a.add(c.name);if(c instanceof Q){var f=e.args.slice(o);if(f.every(e=>!has_overlapping_symbol(n,e,i))){u.unshift([make_node(Oe,c,{name:c.expression,value:make_node(We,e,{elements:f})})])}}else{if(!l){l=make_node(Pt,c).transform(t)}else if(l instanceof J&&l.pinned()||has_overlapping_symbol(n,l,i)){l=null}if(l)u.unshift([make_node(Oe,c,{name:c,value:l})])}}}}function extract_candidates(e){p.push(e);if(e instanceof Xe){if(!e.left.has_side_effects(t)){u.push(p.slice())}extract_candidates(e.right)}else if(e instanceof Ge){extract_candidates(e.left);extract_candidates(e.right)}else if(e instanceof Ne&&!has_annotation(e,Xt)){extract_candidates(e.expression);e.args.forEach(extract_candidates)}else if(e instanceof be){extract_candidates(e.expression)}else if(e instanceof He){extract_candidates(e.condition);extract_candidates(e.consequent);extract_candidates(e.alternative)}else if(e instanceof Ae){var n=e.definitions.length;var i=n-200;if(i<0)i=0;for(;i1&&!(e.name instanceof ft)||(i>1?mangleable_var(e):!t.exposed(n))){return make_node(yt,e.name,e.name)}}else{const t=e[e instanceof Xe?"left":"expression"];return!is_ref_of(t,ct)&&!is_ref_of(t,lt)&&t}}function get_rvalue(e){return e[e instanceof Xe?"right":"value"]}function get_lvalues(e){var n=new Map;if(e instanceof Ue)return n;var i=new TreeWalker(function(e){var r=e;while(r instanceof Ve)r=r.expression;if(r instanceof yt||r instanceof Tt){n.set(r.name,n.get(r.name)||is_modified(t,i,e,e,0))}});get_rvalue(e).walk(i);return n}function remove_candidate(n){if(n.name instanceof ft){var r=t.parent(),a=t.self().argnames;var o=a.indexOf(n.name);if(o<0){r.args.length=Math.min(r.args.length,a.length-1)}else{var s=r.args;if(s[o])s[o]=make_node(Ft,s[o],{value:0})}return true}var u=false;return e[c].transform(new TreeTransformer(function(e,t,r){if(u)return e;if(e===n||e.body===n){u=true;if(e instanceof Oe){e.value=e.name instanceof ct?make_node(Pt,e.value):null;return e}return r?i.skip:null}},function(e){if(e instanceof Pe)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}}))}function is_lhs_local(e){while(e instanceof Ve)e=e.expression;return e instanceof yt&&e.definition().scope===a&&!(n&&(v.has(e.name)||h instanceof Ue||h instanceof Xe&&h.operator!="="))}function value_has_side_effects(e){if(e instanceof Ue)return On.has(e.operator);return get_rvalue(e).has_side_effects(t)}function replace_all_symbols(){if(b)return false;if(d)return true;if(g instanceof yt){var e=g.definition();if(e.references.length-e.replaced==(h instanceof Oe?1:2)){return true}}return false}function may_modify(e){if(!e.definition)return true;var t=e.definition();if(t.orig.length==1&&t.orig[0]instanceof pt)return false;if(t.scope.get_defun_scope()!==a)return true;return!t.references.every(e=>{var t=e.scope.get_defun_scope();if(t.TYPE=="Scope")t=t.parent_scope;return t===a})}function side_effects_external(e,t){if(e instanceof Xe)return side_effects_external(e.left,true);if(e instanceof Ue)return side_effects_external(e.expression,true);if(e instanceof Oe)return e.value&&side_effects_external(e.value);if(t){if(e instanceof Le)return side_effects_external(e.expression,true);if(e instanceof Be)return side_effects_external(e.expression,true);if(e instanceof yt)return e.definition().scope!==a}return false}}function eliminate_spurious_blocks(e){var t=[];for(var n=0;n=0;){var s=e[a];var u=next_index(a);var c=e[u];if(r&&!c&&s instanceof le){if(!s.value){o=true;e.splice(a,1);continue}if(s.value instanceof Ke&&s.value.operator=="void"){o=true;e[a]=make_node(P,s,{body:s.value.expression});continue}}if(s instanceof Ee){var l=aborts(s.body);if(can_merge_flow(l)){if(l.label){remove(l.label.thedef.references,l)}o=true;s=s.clone();s.condition=s.condition.negate(t);var f=as_statement_array_with_return(s.body,l);s.body=make_node(L,s,{body:as_statement_array(s.alternative).concat(extract_functions())});s.alternative=make_node(L,s,{body:f});e[a]=s.transform(t);continue}var l=aborts(s.alternative);if(can_merge_flow(l)){if(l.label){remove(l.label.thedef.references,l)}o=true;s=s.clone();s.body=make_node(L,s.body,{body:as_statement_array(s.body).concat(extract_functions())});var f=as_statement_array_with_return(s.alternative,l);s.alternative=make_node(L,s.alternative,{body:f});e[a]=s.transform(t);continue}}if(s instanceof Ee&&s.body instanceof le){var p=s.body.value;if(!p&&!s.alternative&&(r&&!c||c instanceof le&&!c.value)){o=true;e[a]=make_node(P,s.condition,{body:s.condition});continue}if(p&&!s.alternative&&c instanceof le&&c.value){o=true;s=s.clone();s.alternative=c;e[a]=s.transform(t);e.splice(u,1);continue}if(p&&!s.alternative&&(!c&&r&&i||c instanceof le)){o=true;s=s.clone();s.alternative=c||make_node(le,s,{value:null});e[a]=s.transform(t);if(c)e.splice(u,1);continue}var _=e[prev_index(a)];if(t.option("sequences")&&r&&!s.alternative&&_ instanceof Ee&&_.body instanceof le&&next_index(u)==e.length&&c instanceof P){o=true;s=s.clone();s.alternative=make_node(L,c,{body:[c,make_node(le,c,{value:null})]});e[a]=s.transform(t);e.splice(u,1);continue}}}function has_multiple_if_returns(e){var t=0;for(var n=e.length;--n>=0;){var i=e[n];if(i instanceof Ee&&i.body instanceof le){if(++t>1)return true}}return false}function is_return_void(e){return!e||e instanceof Ke&&e.operator=="void"}function can_merge_flow(i){if(!i)return false;for(var o=a+1,s=e.length;o=0;){var i=e[n];if(!(i instanceof Te&&declarations_only(i))){break}}return n}}function eliminate_dead_code(e,t){var n;var i=t.self();for(var r=0,a=0,s=e.length;r!e.value)}function sequencesize(e,t){if(e.length<2)return;var n=[],i=0;function push_seq(){if(!n.length)return;var t=make_sequence(n[0],n);e[i++]=make_node(P,t,{body:t});n=[]}for(var r=0,a=e.length;r=t.sequences_limit)push_seq();var u=s.body;if(n.length>0)u=u.drop_side_effect_free(t);if(u)merge_sequence(n,u)}else if(s instanceof Ae&&declarations_only(s)||s instanceof ie){e[i++]=s}else{push_seq();e[i++]=s}}push_seq();e.length=i;if(i!=a)o=true}function to_simple_statement(e,t){if(!(e instanceof L))return e;var n=null;for(var i=0,r=e.body.length;i{if(e instanceof j)return true;if(e instanceof Ge&&e.operator==="in"){return zt}});if(!e){if(a.init)a.init=cons_seq(a.init);else{a.init=i.body;n--;o=true}}}}else if(a instanceof W){if(!(a.init instanceof xe)&&!(a.init instanceof Ce)){a.object=cons_seq(a.object)}}else if(a instanceof Ee){a.condition=cons_seq(a.condition)}else if(a instanceof ge){a.expression=cons_seq(a.expression)}else if(a instanceof $){a.expression=cons_seq(a.expression)}}if(t.option("conditionals")&&a instanceof Ee){var s=[];var u=to_simple_statement(a.body,s);var c=to_simple_statement(a.alternative,s);if(u!==false&&c!==false&&s.length>0){var l=s.length;s.push(make_node(Ee,a,{condition:a.condition,body:u||make_node(B,a.body),alternative:c}));s.unshift(n,1);[].splice.apply(e,s);r+=l;n+=l+1;i=null;o=true;continue}}e[n++]=a;i=a instanceof P?a:null}e.length=n}function join_object_assignments(e,n){if(!(e instanceof Ae))return;var i=e.definitions[e.definitions.length-1];if(!(i.value instanceof Ye))return;var r;if(n instanceof Xe){r=[n]}else if(n instanceof Pe){r=n.expressions.slice()}if(!r)return;var o=false;do{var s=r[0];if(!(s instanceof Xe))break;if(s.operator!="=")break;if(!(s.left instanceof Ve))break;var u=s.left.expression;if(!(u instanceof yt))break;if(i.name.name!=u.name)break;if(!s.right.is_constant_expression(a))break;var c=s.left.property;if(c instanceof R){c=c.evaluate(t)}if(c instanceof R)break;c=""+c;var l=t.option("ecma")<2015&&t.has_directive("use strict")?function(e){return e.key!=c&&(e.key&&e.key.name!=c)}:function(e){return e.key&&e.key.name!=c};if(!i.value.properties.every(l))break;var f=i.value.properties.filter(function(e){return e.key===c})[0];if(!f){i.value.properties.push(make_node(je,s,{key:c,value:s.right}))}else{f.value=new Pe({start:f.start,expressions:[f.value.clone(),s.right.clone()],end:f.end})}r.shift();o=true}while(r.length);return o&&r}function join_consecutive_vars(e){var t;for(var n=0,i=-1,r=e.length;n{if(i instanceof Te){i.remove_initializers();n.push(i);return true}if(i instanceof ie&&(i===t||!e.has_directive("use strict"))){n.push(i===t?i:make_node(Te,i,{definitions:[make_node(Oe,i,{name:make_node(st,i.name,i.name),value:null})]}));return true}if(i instanceof Me||i instanceof we){n.push(i);return true}if(i instanceof j){return true}})}function get_value(e){if(e instanceof xt){return e.getValue()}if(e instanceof Ke&&e.operator=="void"&&e.expression instanceof xt){return}return e}function is_undefined(e,t){return kn(e,mn)||e instanceof Pt||e instanceof Ke&&e.operator=="void"&&!e.expression.has_side_effects(t)}(function(e){R.DEFMETHOD("may_throw_on_access",function(e){return!e.option("pure_getters")||this._dot_throw(e)});function is_strict(e){return/strict/.test(e.option("pure_getters"))}e(R,is_strict);e(Nt,return_true);e(Pt,return_true);e(xt,return_false);e(We,return_false);e(Ye,function(e){if(!is_strict(e))return false;for(var t=this.properties.length;--t>=0;)if(this.properties[t]._dot_throw(e))return true;return false});e(et,return_false);e($e,return_false);e(Qe,return_true);e(Q,function(e){return this.expression._dot_throw(e)});e(te,return_false);e(ne,return_false);e(ze,return_false);e(Ke,function(){return this.operator=="void"});e(Ge,function(e){return(this.operator=="&&"||this.operator=="||"||this.operator=="??")&&(this.left._dot_throw(e)||this.right._dot_throw(e))});e(Xe,function(e){return this.operator=="="&&this.right._dot_throw(e)});e(He,function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)});e(Le,function(e){if(!is_strict(e))return false;if(this.expression instanceof te&&this.property=="prototype")return false;return true});e(Pe,function(e){return this.tail_node()._dot_throw(e)});e(yt,function(e){if(this.name==="arguments")return false;if(kn(this,mn))return true;if(!is_strict(e))return false;if(is_undeclared_ref(this)&&this.is_declared(e))return false;if(this.is_immutable())return false;var t=this.fixed_value();return!t||t._dot_throw(e)})})(function(e,t){e.DEFMETHOD("_dot_throw",t)});(function(e){const t=makePredicate("! delete");const n=makePredicate("in instanceof == != === !== < <= >= >");e(R,return_false);e(Ke,function(){return t.has(this.operator)});e(Ge,function(){return n.has(this.operator)||xn.has(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()});e(He,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()});e(Xe,function(){return this.operator=="="&&this.right.is_boolean()});e(Pe,function(){return this.tail_node().is_boolean()});e(Kt,return_true);e(Ut,return_true)})(function(e,t){e.DEFMETHOD("is_boolean",t)});(function(e){e(R,return_false);e(Ft,return_true);var t=makePredicate("+ - ~ ++ --");e(Ue,function(){return t.has(this.operator)});var n=makePredicate("- * / % & | ^ << >> >>>");e(Ge,function(e){return n.has(this.operator)||this.operator=="+"&&this.left.is_number(e)&&this.right.is_number(e)});e(Xe,function(e){return n.has(this.operator.slice(0,-1))||this.operator=="="&&this.right.is_number(e)});e(Pe,function(e){return this.tail_node().is_number(e)});e(He,function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)})})(function(e,t){e.DEFMETHOD("is_number",t)});(function(e){e(R,return_false);e(Ot,return_true);e(oe,return_true);e(Ke,function(){return this.operator=="typeof"});e(Ge,function(e){return this.operator=="+"&&(this.left.is_string(e)||this.right.is_string(e))});e(Xe,function(e){return(this.operator=="="||this.operator=="+=")&&this.right.is_string(e)});e(Pe,function(e){return this.tail_node().is_string(e)});e(He,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)})})(function(e,t){e.DEFMETHOD("is_string",t)});var xn=makePredicate("&& || ??");var On=makePredicate("delete ++ --");function is_lhs(e,t){if(t instanceof Ue&&On.has(t.operator))return t.expression;if(t instanceof Xe&&t.left===e)return e}(function(e){function to_node(e,t){if(e instanceof R)return make_node(e.CTOR,t,e);if(Array.isArray(e))return make_node(We,t,{elements:e.map(function(e){return to_node(e,t)})});if(e&&typeof e=="object"){var n=[];for(var i in e)if(HOP(e,i)){n.push(make_node(je,t,{key:i,value:to_node(e[i],t)}))}return make_node(Ye,t,{properties:n})}return make_node_from_constant(e,t)}Z.DEFMETHOD("resolve_defines",function(e){if(!e.option("global_defs"))return this;this.figure_out_scope({ie8:e.option("ie8")});return this.transform(new TreeTransformer(function(t){var n=t._find_defs(e,"");if(!n)return;var i=0,r=t,a;while(a=this.parent(i++)){if(!(a instanceof Ve))break;if(a.expression!==r)break;r=a}if(is_lhs(r,a)){return}return n}))});e(R,noop);e(Le,function(e,t){return this.expression._find_defs(e,"."+this.property+t)});e(ot,function(){if(!this.global())return});e(yt,function(e,t){if(!this.global())return;var n=e.option("global_defs");var i=this.name+t;if(HOP(n,i))return to_node(n[i],this)})})(function(e,t){e.DEFMETHOD("_find_defs",t)});function best_of_expression(e,t){return e.size()>t.size()?t:e}function best_of_statement(e,t){return best_of_expression(make_node(P,e,{body:e}),make_node(P,t,{body:t})).body}function best_of(e,t,n){return(first_in_statement(e)?best_of_statement:best_of_expression)(t,n)}function convert_to_predicate(e){const t=new Map;for(var n of Object.keys(e)){t.set(n,makePredicate(e[n]))}return t}var Fn=["constructor","toString","valueOf"];var wn=convert_to_predicate({Array:["indexOf","join","lastIndexOf","slice"].concat(Fn),Boolean:Fn,Function:Fn,Number:["toExponential","toFixed","toPrecision"].concat(Fn),Object:Fn,RegExp:["test"].concat(Fn),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(Fn)});var Rn=convert_to_predicate({Array:["isArray"],Math:["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","atan2","pow","max","min"],Number:["isFinite","isNaN"],Object:["create","getOwnPropertyDescriptor","getOwnPropertyNames","getPrototypeOf","isExtensible","isFrozen","isSealed","keys"],String:["fromCharCode"]});(function(e){R.DEFMETHOD("evaluate",function(e){if(!e.option("evaluate"))return this;var t=this._eval(e,1);if(!t||t instanceof RegExp)return t;if(typeof t=="function"||typeof t=="object")return this;return t});var t=makePredicate("! ~ - + void");R.DEFMETHOD("is_constant",function(){if(this instanceof xt){return!(this instanceof Rt)}else{return this instanceof Ke&&this.expression instanceof xt&&t.has(this.operator)}});e(M,function(){throw new Error(string_template("Cannot evaluate a statement [{file}:{line},{col}]",this.start))});e(J,return_this);e(et,return_this);e(R,return_this);e(xt,function(){return this.getValue()});e(wt,return_this);e(Rt,function(e){let t=e.evaluated_regexps.get(this);if(t===undefined){try{t=(0,eval)(this.print_to_string())}catch(e){t=null}e.evaluated_regexps.set(this,t)}return t||this});e(oe,function(){if(this.segments.length!==1)return this;return this.segments[0].value});e(te,function(e){if(e.option("unsafe")){var t=function(){};t.node=this;t.toString=function(){return this.node.print_to_string()};return t}return this});e(We,function(e,t){if(e.option("unsafe")){var n=[];for(var i=0,r=this.elements.length;itypeof e==="object"||typeof e==="function"||typeof e==="symbol";e(Ge,function(e,t){if(!i.has(this.operator))t++;var n=this.left._eval(e,t);if(n===this.left)return this;var o=this.right._eval(e,t);if(o===this.right)return this;var s;if(n!=null&&o!=null&&r.has(this.operator)&&a(n)&&a(o)&&typeof n===typeof o){return this}switch(this.operator){case"&&":s=n&&o;break;case"||":s=n||o;break;case"??":s=n!=null?n:o;break;case"|":s=n|o;break;case"&":s=n&o;break;case"^":s=n^o;break;case"+":s=n+o;break;case"*":s=n*o;break;case"**":s=Math.pow(n,o);break;case"/":s=n/o;break;case"%":s=n%o;break;case"-":s=n-o;break;case"<<":s=n<>":s=n>>o;break;case">>>":s=n>>>o;break;case"==":s=n==o;break;case"===":s=n===o;break;case"!=":s=n!=o;break;case"!==":s=n!==o;break;case"<":s=n":s=n>o;break;case">=":s=n>=o;break;default:return this}if(isNaN(s)&&e.find_parent($)){return this}return s});e(He,function(e,t){var n=this.condition._eval(e,t);if(n===this.condition)return this;var i=n?this.consequent:this.alternative;var r=i._eval(e,t);return r===i?this:r});const o=new Set;e(yt,function(e,t){if(o.has(this))return this;var n=this.fixed_value();if(!n)return this;var i;if(HOP(n,"_eval")){i=n._eval()}else{o.add(this);i=n._eval(e,t);o.delete(this);if(i===n)return this}if(i&&typeof i=="object"){var r=this.definition().escaped;if(r&&t>r)return this}return i});var s={Array:Array,Math:Math,Number:Number,Object:Object,String:String};var u=convert_to_predicate({Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]});e(Ve,function(e,t){if(e.option("unsafe")){var n=this.property;if(n instanceof R){n=n._eval(e,t);if(n===this.property)return this}var i=this.expression;var r;if(is_undeclared_ref(i)){var a;var o=i.name==="hasOwnProperty"&&n==="call"&&(a=e.parent()&&e.parent().args)&&(a&&a[0]&&a[0].evaluate(e));o=o instanceof Le?o.expression:o;if(o==null||o.thedef&&o.thedef.undeclared){return this.clone()}var c=u.get(i.name);if(!c||!c.has(n))return this;r=s[i.name]}else{r=i._eval(e,t+1);if(!r||r===i||!HOP(r,n))return this;if(typeof r=="function")switch(n){case"name":return r.node.name?r.node.name.name:"";case"length":return r.node.argnames.length;default:return this}}return r[n]}return this});e(Ne,function(e,t){var n=this.expression;if(e.option("unsafe")&&n instanceof Ve){var i=n.property;if(i instanceof R){i=i._eval(e,t);if(i===n.property)return this}var r;var a=n.expression;if(is_undeclared_ref(a)){var o=a.name==="hasOwnProperty"&&i==="call"&&(this.args[0]&&this.args[0].evaluate(e));o=o instanceof Le?o.expression:o;if(o==null||o.thedef&&o.thedef.undeclared){return this.clone()}var u=Rn.get(a.name);if(!u||!u.has(i))return this;r=s[a.name]}else{r=a._eval(e,t+1);if(r===a||!r)return this;var c=wn.get(r.constructor.name);if(!c||!c.has(i))return this}var l=[];for(var f=0,p=this.args.length;f";return n;case"<":n.operator=">=";return n;case">=":n.operator="<";return n;case">":n.operator="<=";return n}}switch(i){case"==":n.operator="!=";return n;case"!=":n.operator="==";return n;case"===":n.operator="!==";return n;case"!==":n.operator="===";return n;case"&&":n.operator="||";n.left=n.left.negate(e,t);n.right=n.right.negate(e);return best(this,n,t);case"||":n.operator="&&";n.left=n.left.negate(e,t);n.right=n.right.negate(e);return best(this,n,t);case"??":n.right=n.right.negate(e);return best(this,n,t)}return basic_negation(this)})})(function(e,t){e.DEFMETHOD("negate",function(e,n){return t.call(this,e,n)})});var Mn=makePredicate("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");Ne.DEFMETHOD("is_expr_pure",function(e){if(e.option("unsafe")){var t=this.expression;var n=this.args&&this.args[0]&&this.args[0].evaluate(e);if(t.expression&&t.expression.name==="hasOwnProperty"&&(n==null||n.thedef&&n.thedef.undeclared)){return false}if(is_undeclared_ref(t)&&Mn.has(t.name))return true;let i;if(t instanceof Le&&is_undeclared_ref(t.expression)&&(i=Rn.get(t.expression.name))&&i.has(t.property)){return true}}return!!has_annotation(this,Gt)||!e.pure_funcs(this)});R.DEFMETHOD("is_call_pure",return_false);Le.DEFMETHOD("is_call_pure",function(e){if(!e.option("unsafe"))return;const t=this.expression;let n;if(t instanceof We){n=wn.get("Array")}else if(t.is_boolean()){n=wn.get("Boolean")}else if(t.is_number(e)){n=wn.get("Number")}else if(t instanceof Rt){n=wn.get("RegExp")}else if(t.is_string(e)){n=wn.get("String")}else if(!this.may_throw_on_access(e)){n=wn.get("Object")}return n&&n.has(this.property)});const Nn=new Set(["Number","String","Array","Object","Function","Promise"]);(function(e){e(R,return_true);e(B,return_false);e(xt,return_false);e(Tt,return_false);function any(e,t){for(var n=e.length;--n>=0;)if(e[n].has_side_effects(t))return true;return false}e(V,function(e){return any(this.body,e)});e(Ne,function(e){if(!this.is_expr_pure(e)&&(!this.expression.is_call_pure(e)||this.expression.has_side_effects(e))){return true}return any(this.args,e)});e(ge,function(e){return this.expression.has_side_effects(e)||any(this.body,e)});e(be,function(e){return this.expression.has_side_effects(e)||any(this.body,e)});e(ye,function(e){return any(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)});e(Ee,function(e){return this.condition.has_side_effects(e)||this.body&&this.body.has_side_effects(e)||this.alternative&&this.alternative.has_side_effects(e)});e(K,function(e){return this.body.has_side_effects(e)});e(P,function(e){return this.body.has_side_effects(e)});e(J,return_false);e(et,function(e){if(this.extends&&this.extends.has_side_effects(e)){return true}return any(this.properties,e)});e(Ge,function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)});e(Xe,return_true);e(He,function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)});e(Ue,function(e){return On.has(this.operator)||this.expression.has_side_effects(e)});e(yt,function(e){return!this.is_declared(e)&&!Nn.has(this.name)});e(ht,return_false);e(ot,return_false);e(Ye,function(e){return any(this.properties,e)});e($e,function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.value.has_side_effects(e)});e(tt,function(e){return this.computed_key()&&this.key.has_side_effects(e)||this.static&&this.value&&this.value.has_side_effects(e)});e(Je,function(e){return this.computed_key()&&this.key.has_side_effects(e)});e(Qe,function(e){return this.computed_key()&&this.key.has_side_effects(e)});e(Ze,function(e){return this.computed_key()&&this.key.has_side_effects(e)});e(We,function(e){return any(this.elements,e)});e(Le,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)});e(Be,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e)});e(Pe,function(e){return any(this.expressions,e)});e(Ae,function(e){return any(this.definitions,e)});e(Oe,function(){return this.value});e(se,return_false);e(oe,function(e){return any(this.segments,e)})})(function(e,t){e.DEFMETHOD("has_side_effects",t)});(function(e){e(R,return_true);e(xt,return_false);e(B,return_false);e(J,return_false);e(ot,return_false);e(Tt,return_false);function any(e,t){for(var n=e.length;--n>=0;)if(e[n].may_throw(t))return true;return false}e(et,function(e){if(this.extends&&this.extends.may_throw(e))return true;return any(this.properties,e)});e(We,function(e){return any(this.elements,e)});e(Xe,function(e){if(this.right.may_throw(e))return true;if(!e.has_directive("use strict")&&this.operator=="="&&this.left instanceof yt){return false}return this.left.may_throw(e)});e(Ge,function(e){return this.left.may_throw(e)||this.right.may_throw(e)});e(V,function(e){return any(this.body,e)});e(Ne,function(e){if(any(this.args,e))return true;if(this.is_expr_pure(e))return false;if(this.expression.may_throw(e))return true;return!(this.expression instanceof J)||any(this.expression.body,e)});e(be,function(e){return this.expression.may_throw(e)||any(this.body,e)});e(He,function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)});e(Ae,function(e){return any(this.definitions,e)});e(Le,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)});e(Ee,function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)});e(K,function(e){return this.body.may_throw(e)});e(Ye,function(e){return any(this.properties,e)});e($e,function(e){return this.value.may_throw(e)});e(tt,function(e){return this.computed_key()&&this.key.may_throw(e)||this.static&&this.value&&this.value.may_throw(e)});e(Je,function(e){return this.computed_key()&&this.key.may_throw(e)});e(Qe,function(e){return this.computed_key()&&this.key.may_throw(e)});e(Ze,function(e){return this.computed_key()&&this.key.may_throw(e)});e(le,function(e){return this.value&&this.value.may_throw(e)});e(Pe,function(e){return any(this.expressions,e)});e(P,function(e){return this.body.may_throw(e)});e(Be,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e)});e(ge,function(e){return this.expression.may_throw(e)||any(this.body,e)});e(yt,function(e){return!this.is_declared(e)&&!Nn.has(this.name)});e(ht,return_false);e(ye,function(e){return this.bcatch?this.bcatch.may_throw(e):any(this.body,e)||this.bfinally&&this.bfinally.may_throw(e)});e(Ue,function(e){if(this.operator=="typeof"&&this.expression instanceof yt)return false;return this.expression.may_throw(e)});e(Oe,function(e){if(!this.value)return false;return this.value.may_throw(e)})})(function(e,t){e.DEFMETHOD("may_throw",t)});(function(e){function all_refs_local(e){let t=true;walk(this,n=>{if(n instanceof yt){if(kn(this,En)){t=false;return zt}var i=n.definition();if(member(i,this.enclosed)&&!this.variables.has(i.name)){if(e){var r=e.find_variable(n);if(i.undeclared?!r:r===i){t="f";return true}}t=false;return zt}return true}if(n instanceof Tt&&this instanceof ne){t=false;return zt}});return t}e(R,return_false);e(xt,return_true);e(et,function(e){if(this.extends&&!this.extends.is_constant_expression(e)){return false}for(const t of this.properties){if(t.computed_key()&&!t.key.is_constant_expression(e)){return false}if(t.static&&t.value&&!t.value.is_constant_expression(e)){return false}}return all_refs_local.call(this,e)});e(J,all_refs_local);e(Ue,function(){return this.expression.is_constant_expression()});e(Ge,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()});e(We,function(){return this.elements.every(e=>e.is_constant_expression())});e(Ye,function(){return this.properties.every(e=>e.is_constant_expression())});e($e,function(){return!(this.key instanceof R)&&this.value.is_constant_expression()})})(function(e,t){e.DEFMETHOD("is_constant_expression",t)});function aborts(e){return e&&e.aborts()}(function(e){e(M,return_null);e(ue,return_this);function block_aborts(){for(var e=0;e{if(e instanceof ot){const n=e.definition();if((t||n.global)&&!o.has(n.id)){o.set(n.id,n)}}})}if(n.value){if(n.name instanceof re){n.walk(f)}else{var i=n.name.definition();map_add(c,i.id,n.value);if(!i.chained&&n.name.fixed_value()===n.value){s.set(i.id,n)}}if(n.value.has_side_effects(e)){n.value.walk(f)}}});return true}return scan_ref_scoped(i,a)});t.walk(f);f=new TreeWalker(scan_ref_scoped);o.forEach(function(e){var t=c.get(e.id);if(t)t.forEach(function(e){e.walk(f)})});var p=new TreeTransformer(function before(c,f,_){var h=p.parent();if(r){const e=a(c);if(e instanceof yt){var d=e.definition();var m=o.has(d.id);if(c instanceof Xe){if(!m||s.has(d.id)&&s.get(d.id)!==c){return maintain_this_binding(h,c,c.right.transform(p))}}else if(!m)return _?i.skip:make_node(Ft,c,{value:0})}}if(l!==t)return;var d;if(c.name&&(c instanceof it&&!keep_name(e.option("keep_classnames"),(d=c.name.definition()).name)||c instanceof te&&!keep_name(e.option("keep_fnames"),(d=c.name.definition()).name))){if(!o.has(d.id)||d.orig.length>1)c.name=null}if(c instanceof J&&!(c instanceof ee)){var E=!e.option("keep_fargs");for(var g=c.argnames,v=g.length;--v>=0;){var D=g[v];if(D instanceof Q){D=D.expression}if(D instanceof qe){D=D.left}if(!(D instanceof re)&&!o.has(D.definition().id)){Sn(D,_n);if(E){g.pop()}}else{E=false}}}if((c instanceof ie||c instanceof nt)&&c!==t){const t=c.name.definition();let r=t.global&&!n||o.has(t.id);if(!r){t.eliminated++;if(c instanceof nt){const t=c.drop_side_effect_free(e);if(t){return make_node(P,c,{body:t})}}return _?i.skip:make_node(B,c)}}if(c instanceof Ae&&!(h instanceof W&&h.init===c)){var b=!(h instanceof Z)&&!(c instanceof Te);var y=[],k=[],S=[];var A=[];c.definitions.forEach(function(t){if(t.value)t.value=t.value.transform(p);var n=t.name instanceof re;var i=n?new SymbolDef(null,{name:""}):t.name.definition();if(b&&i.global)return S.push(t);if(!(r||b)||n&&(t.name.names.length||t.name.is_array||e.option("pure_getters")!=true)||o.has(i.id)){if(t.value&&s.has(i.id)&&s.get(i.id)!==t){t.value=t.value.drop_side_effect_free(e)}if(t.name instanceof st){var a=u.get(i.id);if(a.length>1&&(!t.value||i.orig.indexOf(t.name)>i.eliminated)){if(t.value){var l=make_node(yt,t.name,t.name);i.references.push(l);var f=make_node(Xe,t,{operator:"=",left:l,right:t.value});if(s.get(i.id)===t){s.set(i.id,f)}A.push(f.transform(p))}remove(a,t);i.eliminated++;return}}if(t.value){if(A.length>0){if(S.length>0){A.push(t.value);t.value=make_sequence(t.value,A)}else{y.push(make_node(P,c,{body:make_sequence(c,A)}))}A=[]}S.push(t)}else{k.push(t)}}else if(i.orig[0]instanceof gt){var _=t.value&&t.value.drop_side_effect_free(e);if(_)A.push(_);t.value=null;k.push(t)}else{var _=t.value&&t.value.drop_side_effect_free(e);if(_){A.push(_)}i.eliminated++}});if(k.length>0||S.length>0){c.definitions=k.concat(S);y.push(c)}if(A.length>0){y.push(make_node(P,c,{body:make_sequence(c,A)}))}switch(y.length){case 0:return _?i.skip:make_node(B,c);case 1:return y[0];default:return _?i.splice(y):make_node(L,c,{body:y})}}if(c instanceof q){f(c,this);var T;if(c.init instanceof L){T=c.init;c.init=T.body.pop();T.body.push(c)}if(c.init instanceof P){c.init=c.init.body}else if(is_empty(c.init)){c.init=null}return!T?c:_?i.splice(T.body):T}if(c instanceof K&&c.body instanceof q){f(c,this);if(c.body instanceof L){var T=c.body;c.body=T.body.pop();T.body.push(c);return _?i.splice(T.body):T}return c}if(c instanceof L){f(c,this);if(_&&c.body.every(can_be_evicted_from_block)){return i.splice(c.body)}return c}if(c instanceof j){const e=l;l=c;f(c,this);l=e;return c}});t.transform(p);function scan_ref_scoped(e,n){var i;const r=a(e);if(r instanceof yt&&!is_ref_of(e.left,ut)&&t.variables.get(r.name)===(i=r.definition())){if(e instanceof Xe){e.right.walk(f);if(!i.chained&&e.left.fixed_value()===e.right){s.set(i.id,e)}}return true}if(e instanceof yt){i=e.definition();if(!o.has(i.id)){o.set(i.id,i);if(i.orig[0]instanceof gt){const e=i.scope.is_block_scope()&&i.scope.get_defun_scope().variables.get(i.name);if(e)o.set(e.id,e)}}return true}if(e instanceof j){var u=l;l=e;n();l=u;return true}}});j.DEFMETHOD("hoist_declarations",function(e){var t=this;if(e.has_directive("use asm"))return t;if(!Array.isArray(t.body))return t;var n=e.option("hoist_funs");var i=e.option("hoist_vars");if(n||i){var r=[];var a=[];var o=new Map,s=0,u=0;walk(t,e=>{if(e instanceof j&&e!==t)return true;if(e instanceof Te){++u;return true}});i=i&&u>1;var c=new TreeTransformer(function before(u){if(u!==t){if(u instanceof I){r.push(u);return make_node(B,u)}if(n&&u instanceof ie&&!(c.parent()instanceof Me)&&c.parent()===t){a.push(u);return make_node(B,u)}if(i&&u instanceof Te){u.definitions.forEach(function(e){if(e.name instanceof re)return;o.set(e.name.name,e);++s});var l=u.to_assignments(e);var f=c.parent();if(f instanceof W&&f.init===u){if(l==null){var p=u.definitions[0].name;return make_node(yt,p,p)}return l}if(f instanceof q&&f.init===u){return l}if(!l)return make_node(B,u);return make_node(P,u,{body:l})}if(u instanceof j)return u}});t=t.transform(c);if(s>0){var l=[];const e=t instanceof J;const n=e?t.args_as_names():null;o.forEach((t,i)=>{if(e&&n.some(e=>e.name===t.name.name)){o.delete(i)}else{t=t.clone();t.value=null;l.push(t);o.set(i,t)}});if(l.length>0){for(var f=0;fe.computed_key())){s(o,this);const e=new Map;const n=[];l.properties.forEach(({key:i,value:r})=>{const s=t.create_symbol(u.CTOR,{source:u,scope:find_scope(a),tentative_name:u.name+"_"+i});e.set(String(i),s.definition());n.push(make_node(Oe,o,{name:s,value:r}))});r.set(c.id,e);return i.splice(n)}}else if(o instanceof Ve&&o.expression instanceof yt){const e=r.get(o.expression.definition().id);if(e){const t=e.get(String(get_value(o.property)));const n=make_node(yt,o,{name:t.name,scope:o.expression.scope,thedef:t});n.reference({});return n}}});return t.transform(a)});(function(e){function trim(e,t,n){var i=e.length;if(!i)return null;var r=[],a=false;for(var o=0;o0){o[0].body=a.concat(o[0].body)}e.body=o;while(n=o[o.length-1]){var h=n.body[n.body.length-1];if(h instanceof _e&&t.loopcontrol_target(h)===e)n.body.pop();if(n.body.length||n instanceof be&&(s||n.expression.has_side_effects(t)))break;if(o.pop()===s)s=null}if(o.length==0){return make_node(L,e,{body:a.concat(make_node(P,e.expression,{body:e.expression}))}).optimize(t)}if(o.length==1&&(o[0]===u||o[0]===s)){var d=false;var m=new TreeWalker(function(t){if(d||t instanceof J||t instanceof P)return true;if(t instanceof _e&&m.loopcontrol_target(t)===e)d=true});e.walk(m);if(!d){var E=o[0].body.slice();var f=o[0].expression;if(f)E.unshift(make_node(P,f,{body:f}));E.unshift(make_node(P,e.expression,{body:e.expression}));return make_node(L,e,{body:E}).optimize(t)}}return e;function eliminate_branch(e,n){if(n&&!aborts(n)){n.body=n.body.concat(e.body)}else{trim_unreachable_code(t,e,a)}}});def_optimize(ye,function(e,t){tighten_body(e.body,t);if(e.bcatch&&e.bfinally&&e.bfinally.body.every(is_empty))e.bfinally=null;if(t.option("dead_code")&&e.body.every(is_empty)){var n=[];if(e.bcatch){trim_unreachable_code(t,e.bcatch,n)}if(e.bfinally)n.push(...e.bfinally.body);return make_node(L,e,{body:n}).optimize(t)}return e});Ae.DEFMETHOD("remove_initializers",function(){var e=[];this.definitions.forEach(function(t){if(t.name instanceof ot){t.value=null;e.push(t)}else{walk(t.name,n=>{if(n instanceof ot){e.push(make_node(Oe,t,{name:n,value:null}))}})}});this.definitions=e});Ae.DEFMETHOD("to_assignments",function(e){var t=e.option("reduce_vars");var n=this.definitions.reduce(function(e,n){if(n.value&&!(n.name instanceof re)){var i=make_node(yt,n.name,n.name);e.push(make_node(Xe,n,{operator:"=",left:i,right:n.value}));if(t)i.definition().fixed=false}else if(n.value){var r=make_node(Oe,n,{name:n.name,value:n.value});var a=make_node(Te,n,{definitions:[r]});e.push(a)}n=n.name.definition();n.eliminated++;n.replaced--;return e},[]);if(n.length==0)return null;return make_sequence(this,n)});def_optimize(Ae,function(e){if(e.definitions.length==0)return make_node(B,e);return e});def_optimize(we,function(e){return e});function retain_top_func(e,t){return t.top_retain&&e instanceof ie&&kn(e,bn)&&e.name&&t.top_retain(e.name)}def_optimize(Ne,function(e,t){var n=e.expression;var i=n;inline_array_like_spread(e,t,e.args);var r=e.args.every(e=>!(e instanceof Q));if(t.option("reduce_vars")&&i instanceof yt&&!has_annotation(e,Xt)){const e=i.fixed_value();if(!retain_top_func(e,t)){i=e}}var a=i instanceof J;if(a&&i.pinned())return e;if(t.option("unused")&&r&&a&&!i.uses_arguments){var o=0,s=0;for(var u=0,c=e.args.length;u=i.argnames.length;if(f||kn(i.argnames[u],_n)){var l=e.args[u].drop_side_effect_free(t);if(l){e.args[o++]=l}else if(!f){e.args[o++]=make_node(Ft,e.args[u],{value:0});continue}}else{e.args[o++]=e.args[u]}s=o}e.args.length=s}if(t.option("unsafe")){if(is_undeclared_ref(n))switch(n.name){case"Array":if(e.args.length!=1){return make_node(We,e,{elements:e.args}).optimize(t)}else if(e.args[0]instanceof Ft&&e.args[0].value<=11){const t=[];for(let n=0;n=1&&e.args.length<=2&&e.args.every(e=>{var n=e.evaluate(t);p.push(n);return e!==n})){let[n,i]=p;n=regexp_source_fix(new RegExp(n).source);const r=make_node(Rt,e,{value:{source:n,flags:i}});if(r._eval(t)!==r){return r}}break}else if(n instanceof Le)switch(n.property){case"toString":if(e.args.length==0&&!n.expression.may_throw_on_access(t)){return make_node(Ge,e,{left:make_node(Ot,e,{value:""}),operator:"+",right:n.expression}).optimize(t)}break;case"join":if(n.expression instanceof We)e:{var _;if(e.args.length>0){_=e.args[0].evaluate(t);if(_===e.args[0])break e}var h=[];var d=[];for(var u=0,c=n.expression.elements.length;u0){h.push(make_node(Ot,e,{value:d.join(_)}));d.length=0}h.push(m)}}if(d.length>0){h.push(make_node(Ot,e,{value:d.join(_)}))}if(h.length==0)return make_node(Ot,e,{value:""});if(h.length==1){if(h[0].is_string(t)){return h[0]}return make_node(Ge,h[0],{operator:"+",left:make_node(Ot,e,{value:""}),right:h[0]})}if(_==""){var g;if(h[0].is_string(t)||h[1].is_string(t)){g=h.shift()}else{g=make_node(Ot,e,{value:""})}return h.reduce(function(e,t){return make_node(Ge,t,{operator:"+",left:e,right:t})},g).optimize(t)}var l=e.clone();l.expression=l.expression.clone();l.expression.expression=l.expression.expression.clone();l.expression.expression.elements=h;return best_of(t,e,l)}break;case"charAt":if(n.expression.is_string(t)){var v=e.args[0];var D=v?v.evaluate(t):0;if(D!==v){return make_node(Be,n,{expression:n.expression,property:make_node_from_constant(D|0,v||n)}).optimize(t)}}break;case"apply":if(e.args.length==2&&e.args[1]instanceof We){var b=e.args[1].elements.slice();b.unshift(e.args[0]);return make_node(Ne,e,{expression:make_node(Le,n,{expression:n.expression,property:"call"}),args:b}).optimize(t)}break;case"call":var y=n.expression;if(y instanceof yt){y=y.fixed_value()}if(y instanceof J&&!y.contains_this()){return(e.args.length?make_sequence(this,[e.args[0],make_node(Ne,e,{expression:n.expression,args:e.args.slice(1)})]):make_node(Ne,e,{expression:n.expression,args:[]})).optimize(t)}break}}if(t.option("unsafe_Function")&&is_undeclared_ref(n)&&n.name=="Function"){if(e.args.length==0)return make_node(te,e,{argnames:[],body:[]}).optimize(t);if(e.args.every(e=>e instanceof Ot)){try{var k="n(function("+e.args.slice(0,-1).map(function(e){return e.value}).join(",")+"){"+e.args[e.args.length-1].value+"})";var S=parse(k);var A={ie8:t.option("ie8")};S.figure_out_scope(A);var T=new Compressor(t.options);S=S.transform(T);S.figure_out_scope(A);on.reset();S.compute_char_frequency(A);S.mangle_names(A);var C;walk(S,e=>{if(is_func_expr(e)){C=e;return zt}});var k=OutputStream();L.prototype._codegen.call(C,C,k);e.args=[make_node(Ot,e,{value:C.argnames.map(function(e){return e.print_to_string()}).join(",")}),make_node(Ot,e.args[e.args.length-1],{value:k.get().replace(/^{|}$/g,"")})];return e}catch(e){if(!(e instanceof JS_Parse_Error)){throw e}}}}var x=a&&i.body[0];var O=a&&!i.is_generator&&!i.async;var F=O&&t.option("inline")&&!e.is_expr_pure(t);if(F&&x instanceof le){let n=x.value;if(!n||n.is_constant_expression()){if(n){n=n.clone(true)}else{n=make_node(Pt,e)}const i=e.args.concat(n);return make_sequence(e,i).optimize(t)}if(i.argnames.length===1&&i.argnames[0]instanceof ft&&e.args.length<2&&n instanceof yt&&n.name===i.argnames[0].name){const n=(e.args[0]||make_node(Pt)).optimize(t);let i;if(n instanceof Ve&&(i=t.parent())instanceof Ne&&i.expression===e){return make_sequence(e,[make_node(Ft,e,{value:0}),n])}return n}}if(F){var w,R,M=-1;let a;let o;let s;if(r&&!i.uses_arguments&&!(t.parent()instanceof et)&&!(i.name&&i instanceof te)&&(o=can_flatten_body(x))&&(n===i||has_annotation(e,Ht)||t.option("unused")&&(a=n.definition()).references.length==1&&!recursive_ref(t,a)&&i.is_constant_expression(n.scope))&&!has_annotation(e,Gt|Xt)&&!i.contains_this()&&can_inject_symbols()&&(s=find_scope(t))&&!scope_encloses_variables_in_this_scope(s,i)&&!function in_default_assign(){let e=0;let n;while(n=t.parent(e++)){if(n instanceof qe)return true;if(n instanceof V)break}return false}()&&!(w instanceof et)){Sn(i,vn);s.add_child_scope(i);return make_sequence(e,flatten_fn(o)).optimize(t)}}if(F&&has_annotation(e,Ht)){Sn(i,vn);i=make_node(i.CTOR===ie?te:i.CTOR,i,i);i.figure_out_scope({},{parent_scope:find_scope(t),toplevel:t.get_toplevel()});return make_node(Ne,e,{expression:i,args:e.args}).optimize(t)}const N=O&&t.option("side_effects")&&i.body.every(is_empty);if(N){var b=e.args.concat(make_node(Pt,e));return make_sequence(e,b).optimize(t)}if(t.option("negate_iife")&&t.parent()instanceof P&&is_iife_call(e)){return e.negate(t,true)}var I=e.evaluate(t);if(I!==e){I=make_node_from_constant(I,e).optimize(t);return best_of(t,I,e)}return e;function return_value(t){if(!t)return make_node(Pt,e);if(t instanceof le){if(!t.value)return make_node(Pt,e);return t.value.clone(true)}if(t instanceof P){return make_node(Ke,t,{operator:"void",expression:t.body.clone(true)})}}function can_flatten_body(e){var n=i.body;var r=n.length;if(t.option("inline")<3){return r==1&&return_value(e)}e=null;for(var a=0;a!e.value)){return false}}else if(e){return false}else if(!(o instanceof B)){e=o}}return return_value(e)}function can_inject_args(e,t){for(var n=0,r=i.argnames.length;n=0;){var s=a.definitions[o].name;if(s instanceof re||e.has(s.name)||Cn.has(s.name)||w.conflicting_def(s.name)){return false}if(R)R.push(s.definition())}}return true}function can_inject_symbols(){var e=new Set;do{w=t.parent(++M);if(w.is_block_scope()&&w.block_scope){w.block_scope.variables.forEach(function(t){e.add(t.name)})}if(w instanceof ke){if(w.argname){e.add(w.argname.name)}}else if(w instanceof z){R=[]}else if(w instanceof yt){if(w.fixed_value()instanceof j)return false}}while(!(w instanceof j));var n=!(w instanceof Z)||t.toplevel.vars;var r=t.option("inline");if(!can_inject_vars(e,r>=3&&n))return false;if(!can_inject_args(e,r>=2&&n))return false;return!R||R.length==0||!is_reachable(i,R)}function append_var(t,n,i,r){var a=i.definition();const o=w.variables.has(i.name);if(!o){w.variables.set(i.name,a);w.enclosed.push(a);t.push(make_node(Oe,i,{name:i,value:null}))}var s=make_node(yt,i,i);a.references.push(s);if(r)n.push(make_node(Xe,e,{operator:"=",left:s,right:r.clone()}))}function flatten_args(t,n){var r=i.argnames.length;for(var a=e.args.length;--a>=r;){n.push(e.args[a])}for(a=r;--a>=0;){var o=i.argnames[a];var s=e.args[a];if(kn(o,_n)||!o.name||w.conflicting_def(o.name)){if(s)n.push(s)}else{var u=make_node(st,o,o);o.definition().orig.push(u);if(!s&&R)s=make_node(Pt,e);append_var(t,n,u,s)}}t.reverse();n.reverse()}function flatten_vars(e,t){var n=t.length;for(var r=0,a=i.body.length;re.name!=l.name)){var f=i.variables.get(l.name);var p=make_node(yt,l,l);f.references.push(p);t.splice(n++,0,make_node(Xe,c,{operator:"=",left:p,right:make_node(Pt,l)}))}}}}function flatten_fn(e){var n=[];var r=[];flatten_args(n,r);flatten_vars(n,r);r.push(e);if(n.length){const e=w.body.indexOf(t.parent(M-1))+1;w.body.splice(e,0,make_node(Te,i,{definitions:n}))}return r.map(e=>e.clone(true))}});def_optimize(Ie,function(e,t){if(t.option("unsafe")&&is_undeclared_ref(e.expression)&&["Object","RegExp","Function","Error","Array"].includes(e.expression.name))return make_node(Ne,e,e).transform(t);return e});def_optimize(Pe,function(e,t){if(!t.option("side_effects"))return e;var n=[];filter_for_side_effects();var i=n.length-1;trim_right_for_undefined();if(i==0){e=maintain_this_binding(t.parent(),t.self(),n[0]);if(!(e instanceof Pe))e=e.optimize(t);return e}e.expressions=n;return e;function filter_for_side_effects(){var i=first_in_statement(t);var r=e.expressions.length-1;e.expressions.forEach(function(e,a){if(a0&&is_undefined(n[i],t))i--;if(i0){var n=this.clone();n.right=make_sequence(this.right,t.slice(a));t=t.slice(0,a);t.push(n);return make_sequence(this,t).optimize(e)}}}return this});var Vn=makePredicate("== === != !== * & | ^");function is_object(e){return e instanceof We||e instanceof J||e instanceof Ye||e instanceof et}def_optimize(Ge,function(e,t){function reversible(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(t)&&!e.right.has_side_effects(t)}function reverse(t){if(reversible()){if(t)e.operator=t;var n=e.left;e.left=e.right;e.right=n}}if(Vn.has(e.operator)){if(e.right.is_constant()&&!e.left.is_constant()){if(!(e.left instanceof Ge&&O[e.left.operator]>=O[e.operator])){reverse()}}}e=e.lift_sequences(t);if(t.option("comparisons"))switch(e.operator){case"===":case"!==":var n=true;if(e.left.is_string(t)&&e.right.is_string(t)||e.left.is_number(t)&&e.right.is_number(t)||e.left.is_boolean()&&e.right.is_boolean()||e.left.equivalent_to(e.right)){e.operator=e.operator.substr(0,2)}case"==":case"!=":if(!n&&is_undefined(e.left,t)){e.left=make_node(Nt,e.left)}else if(t.option("typeofs")&&e.left instanceof Ot&&e.left.value=="undefined"&&e.right instanceof Ke&&e.right.operator=="typeof"){var i=e.right.expression;if(i instanceof yt?i.is_declared(t):!(i instanceof Ve&&t.option("ie8"))){e.right=i;e.left=make_node(Pt,e.left).optimize(t);if(e.operator.length==2)e.operator+="="}}else if(e.left instanceof yt&&e.right instanceof yt&&e.left.definition()===e.right.definition()&&is_object(e.left.fixed_value())){return make_node(e.operator[0]=="="?Kt:Ut,e)}break;case"&&":case"||":var r=e.left;if(r.operator==e.operator){r=r.right}if(r instanceof Ge&&r.operator==(e.operator=="&&"?"!==":"===")&&e.right instanceof Ge&&r.operator==e.right.operator&&(is_undefined(r.left,t)&&e.right.left instanceof Nt||r.left instanceof Nt&&is_undefined(e.right.left,t))&&!r.right.has_side_effects(t)&&r.right.equivalent_to(e.right.right)){var a=make_node(Ge,e,{operator:r.operator.slice(0,-1),left:make_node(Nt,e),right:r.right});if(r!==e.left){a=make_node(Ge,e,{operator:e.operator,left:e.left.left,right:a})}return a}break}if(e.operator=="+"&&t.in_boolean_context()){var o=e.left.evaluate(t);var s=e.right.evaluate(t);if(o&&typeof o=="string"){return make_sequence(e,[e.right,make_node(Kt,e)]).optimize(t)}if(s&&typeof s=="string"){return make_sequence(e,[e.left,make_node(Kt,e)]).optimize(t)}}if(t.option("comparisons")&&e.is_boolean()){if(!(t.parent()instanceof Ge)||t.parent()instanceof Xe){var u=make_node(Ke,e,{operator:"!",expression:e.negate(t,first_in_statement(t))});e=best_of(t,e,u)}if(t.option("unsafe_comps")){switch(e.operator){case"<":reverse(">");break;case"<=":reverse(">=");break}}}if(e.operator=="+"){if(e.right instanceof Ot&&e.right.getValue()==""&&e.left.is_string(t)){return e.left}if(e.left instanceof Ot&&e.left.getValue()==""&&e.right.is_string(t)){return e.right}if(e.left instanceof Ge&&e.left.operator=="+"&&e.left.left instanceof Ot&&e.left.left.getValue()==""&&e.right.is_string(t)){e.left=e.left.right;return e.transform(t)}}if(t.option("evaluate")){switch(e.operator){case"&&":var o=kn(e.left,hn)?true:kn(e.left,dn)?false:e.left.evaluate(t);if(!o){return maintain_this_binding(t.parent(),t.self(),e.left).optimize(t)}else if(!(o instanceof R)){return make_sequence(e,[e.left,e.right]).optimize(t)}var s=e.right.evaluate(t);if(!s){if(t.in_boolean_context()){return make_sequence(e,[e.left,make_node(Ut,e)]).optimize(t)}else{Sn(e,dn)}}else if(!(s instanceof R)){var c=t.parent();if(c.operator=="&&"&&c.left===t.self()||t.in_boolean_context()){return e.left.optimize(t)}}if(e.left.operator=="||"){var l=e.left.right.evaluate(t);if(!l)return make_node(He,e,{condition:e.left.left,consequent:e.right,alternative:e.left.right}).optimize(t)}break;case"||":var o=kn(e.left,hn)?true:kn(e.left,dn)?false:e.left.evaluate(t);if(!o){return make_sequence(e,[e.left,e.right]).optimize(t)}else if(!(o instanceof R)){return maintain_this_binding(t.parent(),t.self(),e.left).optimize(t)}var s=e.right.evaluate(t);if(!s){var c=t.parent();if(c.operator=="||"&&c.left===t.self()||t.in_boolean_context()){return e.left.optimize(t)}}else if(!(s instanceof R)){if(t.in_boolean_context()){return make_sequence(e,[e.left,make_node(Kt,e)]).optimize(t)}else{Sn(e,hn)}}if(e.left.operator=="&&"){var l=e.left.right.evaluate(t);if(l&&!(l instanceof R))return make_node(He,e,{condition:e.left.left,consequent:e.left.right,alternative:e.right}).optimize(t)}break;case"??":if(is_nullish(e.left)){return e.right}var o=e.left.evaluate(t);if(!(o instanceof R)){return o==null?e.right:e.left}if(t.in_boolean_context()){const n=e.right.evaluate(t);if(!(n instanceof R)&&!n){return e.left}}}var f=true;switch(e.operator){case"+":if(e.left instanceof xt&&e.right instanceof Ge&&e.right.operator=="+"&&e.right.is_string(t)){var p=make_node(Ge,e,{operator:"+",left:e.left,right:e.right.left});var _=p.optimize(t);if(p!==_){e=make_node(Ge,e,{operator:"+",left:_,right:e.right.right})}}if(e.right instanceof xt&&e.left instanceof Ge&&e.left.operator=="+"&&e.left.is_string(t)){var p=make_node(Ge,e,{operator:"+",left:e.left.right,right:e.right});var h=p.optimize(t);if(p!==h){e=make_node(Ge,e,{operator:"+",left:e.left.left,right:h})}}if(e.left instanceof Ge&&e.left.operator=="+"&&e.left.is_string(t)&&e.right instanceof Ge&&e.right.operator=="+"&&e.right.is_string(t)){var p=make_node(Ge,e,{operator:"+",left:e.left.right,right:e.right.left});var d=p.optimize(t);if(p!==d){e=make_node(Ge,e,{operator:"+",left:make_node(Ge,e.left,{operator:"+",left:e.left.left,right:d}),right:e.right.right})}}if(e.right instanceof Ke&&e.right.operator=="-"&&e.left.is_number(t)){e=make_node(Ge,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof Ke&&e.left.operator=="-"&&reversible()&&e.right.is_number(t)){e=make_node(Ge,e,{operator:"-",left:e.right,right:e.left.expression});break}if(e.left instanceof oe){var _=e.left;var h=e.right.evaluate(t);if(h!=e.right){_.segments[_.segments.length-1].value+=h.toString();return _}}if(e.right instanceof oe){var h=e.right;var _=e.left.evaluate(t);if(_!=e.left){h.segments[0].value=_.toString()+h.segments[0].value;return h}}if(e.left instanceof oe&&e.right instanceof oe){var _=e.left;var m=_.segments;var h=e.right;m[m.length-1].value+=h.segments[0].value;for(var E=1;E=O[e.operator])){var g=make_node(Ge,e,{operator:e.operator,left:e.right,right:e.left});if(e.right instanceof xt&&!(e.left instanceof xt)){e=best_of(t,g,e)}else{e=best_of(t,e,g)}}if(f&&e.is_number(t)){if(e.right instanceof Ge&&e.right.operator==e.operator){e=make_node(Ge,e,{operator:e.operator,left:make_node(Ge,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})}if(e.right instanceof xt&&e.left instanceof Ge&&e.left.operator==e.operator){if(e.left.left instanceof xt){e=make_node(Ge,e,{operator:e.operator,left:make_node(Ge,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right})}else if(e.left.right instanceof xt){e=make_node(Ge,e,{operator:e.operator,left:make_node(Ge,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left})}}if(e.left instanceof Ge&&e.left.operator==e.operator&&e.left.right instanceof xt&&e.right instanceof Ge&&e.right.operator==e.operator&&e.right.left instanceof xt){e=make_node(Ge,e,{operator:e.operator,left:make_node(Ge,e.left,{operator:e.operator,left:make_node(Ge,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})}}}}if(e.right instanceof Ge&&e.right.operator==e.operator&&(xn.has(e.operator)||e.operator=="+"&&(e.right.left.is_string(t)||e.left.is_string(t)&&e.right.right.is_string(t)))){e.left=make_node(Ge,e.left,{operator:e.operator,left:e.left,right:e.right.left});e.right=e.right.right;return e.transform(t)}var v=e.evaluate(t);if(v!==e){v=make_node_from_constant(v,e).optimize(t);return best_of(t,v,e)}return e});def_optimize(kt,function(e){return e});function recursive_ref(e,t){var n;for(var i=0;n=e.parent(i);i++){if(n instanceof J||n instanceof et){var r=n.name;if(r&&r.definition()===t)break}}return n}function within_array_or_object_literal(e){var t,n=0;while(t=e.parent(n++)){if(t instanceof M)return false;if(t instanceof We||t instanceof je||t instanceof Ye){return true}}return false}def_optimize(yt,function(e,t){if(!t.option("ie8")&&is_undeclared_ref(e)&&!t.find_parent($)){switch(e.name){case"undefined":return make_node(Pt,e).optimize(t);case"NaN":return make_node(It,e).optimize(t);case"Infinity":return make_node(Lt,e).optimize(t)}}const n=t.parent();if(t.option("reduce_vars")&&is_lhs(e,n)!==e){const a=e.definition();const o=find_scope(t);if(t.top_retain&&a.global&&t.top_retain(a)){a.fixed=false;a.single_use=false;return e}let s=e.fixed_value();let u=a.single_use&&!(n instanceof Ne&&n.is_expr_pure(t)||has_annotation(n,Xt));if(u&&(s instanceof J||s instanceof et)){if(retain_top_func(s,t)){u=false}else if(a.scope!==e.scope&&(a.escaped==1||kn(s,En)||within_array_or_object_literal(t))){u=false}else if(recursive_ref(t,a)){u=false}else if(a.scope!==e.scope||a.orig[0]instanceof ft){u=s.is_constant_expression(e.scope);if(u=="f"){var i=e.scope;do{if(i instanceof ie||is_func_expr(i)){Sn(i,En)}}while(i=i.parent_scope)}}}if(u&&s instanceof J){u=a.scope===e.scope&&!scope_encloses_variables_in_this_scope(o,s)||n instanceof Ne&&n.expression===e&&!scope_encloses_variables_in_this_scope(o,s)}if(u&&s instanceof et){const e=!s.extends||!s.extends.may_throw(t)&&!s.extends.has_side_effects(t);u=e&&!s.properties.some(e=>e.may_throw(t)||e.has_side_effects(t))}if(u&&s){if(s instanceof nt){Sn(s,vn);s=make_node(it,s,s)}if(s instanceof ie){Sn(s,vn);s=make_node(te,s,s)}if(a.recursive_refs>0&&s.name instanceof pt){const e=s.name.definition();let t=s.variables.get(s.name.name);let n=t&&t.orig[0];if(!(n instanceof dt)){n=make_node(dt,s.name,s.name);n.scope=s;s.name=n;t=s.def_function(n)}walk(s,n=>{if(n instanceof yt&&n.definition()===e){n.thedef=t;t.references.push(n)}})}if((s instanceof J||s instanceof et)&&s.parent_scope!==o){s=s.clone(true,t.get_toplevel());o.add_child_scope(s)}return s.optimize(t)}if(s){let e;if(s instanceof Tt){if(!(a.orig[0]instanceof ft)&&a.references.every(e=>a.scope===e.scope)){e=s}}else{var r=s.evaluate(t);if(r!==s&&(t.option("unsafe_regexp")||!(r instanceof RegExp))){e=make_node_from_constant(r,s)}}if(e){const n=a.name.length;const i=e.size();let r=0;if(t.option("unused")&&!t.exposed(a)){r=(n+2+i)/(a.references.length-a.assignments)}if(i<=n+r){return e}}}}return e});function scope_encloses_variables_in_this_scope(e,t){for(const n of t.enclosed){if(t.variables.has(n.name)){continue}const i=e.find_variable(n.name);if(i){if(i===n)continue;return true}}return false}function is_atomic(e,t){return e instanceof yt||e.TYPE===t.TYPE}def_optimize(Pt,function(e,t){if(t.option("unsafe_undefined")){var n=find_variable(t,"undefined");if(n){var i=make_node(yt,e,{name:"undefined",scope:n.scope,thedef:n});Sn(i,mn);return i}}var r=is_lhs(t.self(),t.parent());if(r&&is_atomic(r,e))return e;return make_node(Ke,e,{operator:"void",expression:make_node(Ft,e,{value:0})})});def_optimize(Lt,function(e,t){var n=is_lhs(t.self(),t.parent());if(n&&is_atomic(n,e))return e;if(t.option("keep_infinity")&&!(n&&!is_atomic(n,e))&&!find_variable(t,"Infinity")){return e}return make_node(Ge,e,{operator:"/",left:make_node(Ft,e,{value:1}),right:make_node(Ft,e,{value:0})})});def_optimize(It,function(e,t){var n=is_lhs(t.self(),t.parent());if(n&&!is_atomic(n,e)||find_variable(t,"NaN")){return make_node(Ge,e,{operator:"/",left:make_node(Ft,e,{value:0}),right:make_node(Ft,e,{value:0})})}return e});function is_reachable(e,t){const n=e=>{if(e instanceof yt&&member(e.definition(),t)){return zt}};return walk_parent(e,(t,i)=>{if(t instanceof j&&t!==e){var r=i.parent();if(r instanceof Ne&&r.expression===t)return;if(walk(t,n))return zt;return true}})}const Ln=makePredicate("+ - / * % >> << >>> | ^ &");const Bn=makePredicate("* | ^ &");def_optimize(Xe,function(e,t){var n;if(t.option("dead_code")&&e.left instanceof yt&&(n=e.left.definition()).scope===t.find_parent(J)){var i=0,r,a=e;do{r=a;a=t.parent(i++);if(a instanceof ce){if(in_try(i,a))break;if(is_reachable(n.scope,[n]))break;if(e.operator=="=")return e.right;n.fixed=false;return make_node(Ge,e,{operator:e.operator.slice(0,-1),left:e.left,right:e.right}).optimize(t)}}while(a instanceof Ge&&a.right===r||a instanceof Pe&&a.tail_node()===r)}e=e.lift_sequences(t);if(e.operator=="="&&e.left instanceof yt&&e.right instanceof Ge){if(e.right.left instanceof yt&&e.right.left.name==e.left.name&&Ln.has(e.right.operator)){e.operator=e.right.operator+"=";e.right=e.right.right}else if(e.right.right instanceof yt&&e.right.right.name==e.left.name&&Bn.has(e.right.operator)&&!e.right.left.has_side_effects(t)){e.operator=e.right.operator+"=";e.right=e.right.left}}return e;function in_try(n,i){var r=e.right;e.right=make_node(Nt,r);var a=i.may_throw(t);e.right=r;var o=e.left.definition().scope;var s;while((s=t.parent(n++))!==o){if(s instanceof ye){if(s.bfinally)return true;if(a&&s.bcatch)return true}}}});def_optimize(qe,function(e,t){if(!t.option("evaluate")){return e}var n=e.right.evaluate(t);if(n===undefined){e=e.left}else if(n!==e.right){n=make_node_from_constant(n,e.right);e.right=best_of_expression(n,e.right)}return e});function is_nullish(e){let t;return e instanceof Nt||is_undefined(e)||e instanceof yt&&(t=e.definition().fixed)instanceof R&&is_nullish(t)}function is_nullish_check(e,t,n){if(t.may_throw(n))return false;let i;if(e instanceof Ge&&e.operator==="=="&&((i=is_nullish(e.left)&&e.left)||(i=is_nullish(e.right)&&e.right))&&(i===e.left?e.right:e.left).equivalent_to(t)){return true}if(e instanceof Ge&&e.operator==="||"){let n;let i;const r=e=>{if(!(e instanceof Ge&&(e.operator==="==="||e.operator==="=="))){return false}let r=0;let a;if(e.left instanceof Nt){r++;n=e;a=e.right}if(e.right instanceof Nt){r++;n=e;a=e.left}if(is_undefined(e.left)){r++;i=e;a=e.right}if(is_undefined(e.right)){r++;i=e;a=e.left}if(r!==1){return false}if(!a.equivalent_to(t)){return false}return true};if(!r(e.left))return false;if(!r(e.right))return false;if(n&&i&&n!==i){return true}}return false}def_optimize(He,function(e,t){if(!t.option("conditionals"))return e;if(e.condition instanceof Pe){var n=e.condition.expressions.slice();e.condition=n.pop();n.push(e);return make_sequence(e,n)}var i=e.condition.evaluate(t);if(i!==e.condition){if(i){return maintain_this_binding(t.parent(),t.self(),e.consequent)}else{return maintain_this_binding(t.parent(),t.self(),e.alternative)}}var r=i.negate(t,first_in_statement(t));if(best_of(t,i,r)===r){e=make_node(He,e,{condition:r,consequent:e.alternative,alternative:e.consequent})}var a=e.condition;var o=e.consequent;var s=e.alternative;if(a instanceof yt&&o instanceof yt&&a.definition()===o.definition()){return make_node(Ge,e,{operator:"||",left:a,right:s})}if(o instanceof Xe&&s instanceof Xe&&o.operator==s.operator&&o.left.equivalent_to(s.left)&&(!e.condition.has_side_effects(t)||o.operator=="="&&!o.left.has_side_effects(t))){return make_node(Xe,e,{operator:o.operator,left:o.left,right:make_node(He,e,{condition:e.condition,consequent:o.right,alternative:s.right})})}var u;if(o instanceof Ne&&s.TYPE===o.TYPE&&o.args.length>0&&o.args.length==s.args.length&&o.expression.equivalent_to(s.expression)&&!e.condition.has_side_effects(t)&&!o.expression.has_side_effects(t)&&typeof(u=single_arg_diff())=="number"){var c=o.clone();c.args[u]=make_node(He,e,{condition:e.condition,consequent:o.args[u],alternative:s.args[u]});return c}if(s instanceof He&&o.equivalent_to(s.consequent)){return make_node(He,e,{condition:make_node(Ge,e,{operator:"||",left:a,right:s.condition}),consequent:o,alternative:s.alternative}).optimize(t)}if(t.option("ecma")>=2020&&is_nullish_check(a,s,t)){return make_node(Ge,e,{operator:"??",left:s,right:o}).optimize(t)}if(s instanceof Pe&&o.equivalent_to(s.expressions[s.expressions.length-1])){return make_sequence(e,[make_node(Ge,e,{operator:"||",left:a,right:make_sequence(e,s.expressions.slice(0,-1))}),o]).optimize(t)}if(s instanceof Ge&&s.operator=="&&"&&o.equivalent_to(s.right)){return make_node(Ge,e,{operator:"&&",left:make_node(Ge,e,{operator:"||",left:a,right:s.left}),right:o}).optimize(t)}if(o instanceof He&&o.alternative.equivalent_to(s)){return make_node(He,e,{condition:make_node(Ge,e,{left:e.condition,operator:"&&",right:o.condition}),consequent:o.consequent,alternative:s})}if(o.equivalent_to(s)){return make_sequence(e,[e.condition,o]).optimize(t)}if(o instanceof Ge&&o.operator=="||"&&o.right.equivalent_to(s)){return make_node(Ge,e,{operator:"||",left:make_node(Ge,e,{operator:"&&",left:e.condition,right:o.left}),right:s}).optimize(t)}var l=t.in_boolean_context();if(is_true(e.consequent)){if(is_false(e.alternative)){return booleanize(e.condition)}return make_node(Ge,e,{operator:"||",left:booleanize(e.condition),right:e.alternative})}if(is_false(e.consequent)){if(is_true(e.alternative)){return booleanize(e.condition.negate(t))}return make_node(Ge,e,{operator:"&&",left:booleanize(e.condition.negate(t)),right:e.alternative})}if(is_true(e.alternative)){return make_node(Ge,e,{operator:"||",left:booleanize(e.condition.negate(t)),right:e.consequent})}if(is_false(e.alternative)){return make_node(Ge,e,{operator:"&&",left:booleanize(e.condition),right:e.consequent})}return e;function booleanize(e){if(e.is_boolean())return e;return make_node(Ke,e,{operator:"!",expression:e.negate(t)})}function is_true(e){return e instanceof Kt||l&&e instanceof xt&&e.getValue()||e instanceof Ke&&e.operator=="!"&&e.expression instanceof xt&&!e.expression.getValue()}function is_false(e){return e instanceof Ut||l&&e instanceof xt&&!e.getValue()||e instanceof Ke&&e.operator=="!"&&e.expression instanceof xt&&e.expression.getValue()}function single_arg_diff(){var e=o.args;var t=s.args;for(var n=0,i=e.length;n1){_=null}}else if(!_&&!t.option("keep_fargs")&&u=s.argnames.length){_=s.create_symbol(ft,{source:s,scope:s,tentative_name:"argument_"+s.argnames.length});s.argnames.push(_)}}if(_){var d=make_node(yt,e,_);d.reference({});An(_,_n);return d}}if(is_lhs(e,t.parent()))return e;if(r!==i){var m=e.flatten_object(o,t);if(m){n=e.expression=m.expression;i=e.property=m.property}}if(t.option("properties")&&t.option("side_effects")&&i instanceof Ft&&n instanceof We){var u=i.getValue();var E=n.elements;var g=E[u];e:if(safe_to_flatten(g,t)){var v=true;var D=[];for(var b=E.length;--b>u;){var a=E[b].drop_side_effect_free(t);if(a){D.unshift(a);if(v&&a.has_side_effects(t))v=false}}if(g instanceof Q)break e;g=g instanceof Vt?make_node(Pt,g):g;if(!v)D.unshift(g);while(--b>=0){var a=E[b];if(a instanceof Q)break e;a=a.drop_side_effect_free(t);if(a)D.unshift(a);else u--}if(v){D.push(g);return make_sequence(e,D).optimize(t)}else return make_node(Be,e,{expression:make_node(We,n,{elements:D}),property:make_node(Ft,i,{value:u})})}}var y=e.evaluate(t);if(y!==e){y=make_node_from_constant(y,e).optimize(t);return best_of(t,y,e)}return e});J.DEFMETHOD("contains_this",function(){return walk(this,e=>{if(e instanceof Tt)return zt;if(e!==this&&e instanceof j&&!(e instanceof ne)){return true}})});Ve.DEFMETHOD("flatten_object",function(e,t){if(!t.option("properties"))return;var n=t.option("unsafe_arrows")&&t.option("ecma")>=2015;var i=this.expression;if(i instanceof Ye){var r=i.properties;for(var a=r.length;--a>=0;){var o=r[a];if(""+(o instanceof Je?o.key.name:o.key)==e){if(!r.every(e=>{return e instanceof je||n&&e instanceof Je&&!e.is_generator}))break;if(!safe_to_flatten(o.value,t))break;return make_node(Be,this,{expression:make_node(We,i,{elements:r.map(function(e){var t=e.value;if(t instanceof ee)t=make_node(te,t,t);var n=e.key;if(n instanceof R&&!(n instanceof _t)){return make_sequence(e,[n,t])}return t})}),property:make_node(Ft,this,{value:a})})}}}});def_optimize(Le,function(e,t){const n=t.parent();if(is_lhs(e,n))return e;if(t.option("unsafe_proto")&&e.expression instanceof Le&&e.expression.property=="prototype"){var i=e.expression.expression;if(is_undeclared_ref(i))switch(i.name){case"Array":e.expression=make_node(We,e.expression,{elements:[]});break;case"Function":e.expression=make_node(te,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=make_node(Ft,e.expression,{value:0});break;case"Object":e.expression=make_node(Ye,e.expression,{properties:[]});break;case"RegExp":e.expression=make_node(Rt,e.expression,{value:{source:"t",flags:""}});break;case"String":e.expression=make_node(Ot,e.expression,{value:""});break}}if(!(n instanceof Ne)||!has_annotation(n,Xt)){const n=e.flatten_object(e.property,t);if(n)return n.optimize(t)}let r=e.evaluate(t);if(r!==e){r=make_node_from_constant(r,e).optimize(t);return best_of(t,r,e)}return e});function literals_in_boolean_context(e,t){if(t.in_boolean_context()){return best_of(t,e,make_sequence(e,[e,make_node(Kt,e)]).optimize(t))}return e}function inline_array_like_spread(e,t,n){for(var i=0;i=2015&&!e.name&&!e.is_generator&&!e.uses_arguments&&!e.pinned()){const n=walk(e,e=>{if(e instanceof Tt)return zt});if(!n)return make_node(ne,e,e).optimize(t)}return e});def_optimize(et,function(e){return e});def_optimize(me,function(e,t){if(e.expression&&!e.is_star&&is_undefined(e.expression,t)){e.expression=null}return e});def_optimize(oe,function(e,t){if(!t.option("evaluate")||t.parent()instanceof ae)return e;var n=[];for(var i=0;i=2015&&(!(n instanceof RegExp)||n.test(e.key+""))){var i=e.key;var r=e.value;var a=r instanceof ne&&Array.isArray(r.body)&&!r.contains_this();if((a||r instanceof te)&&!r.name){return make_node(Je,e,{async:r.async,is_generator:r.is_generator,key:i instanceof R?i:make_node(_t,e,{name:i}),value:make_node(ee,r,r),quote:e.quote})}}return e});def_optimize(re,function(e,t){if(t.option("pure_getters")==true&&t.option("unused")&&!e.is_array&&Array.isArray(e.names)&&!is_destructuring_export_decl(t)){var n=[];for(var i=0;i1)throw new Error("inline source map only works with singular input");t.sourceMap.content=read_source_map(e[a])}}r=t.parse.toplevel}if(i&&t.mangle.properties.keep_quoted!=="strict"){reserve_quoted_keys(r,i)}if(t.wrap){r=r.wrap_commonjs(t.wrap)}if(t.enclose){r=r.wrap_enclose(t.enclose)}if(n)n.rename=Date.now();if(n)n.compress=Date.now();if(t.compress)r=new Compressor(t.compress).compress(r);if(n)n.scope=Date.now();if(t.mangle)r.figure_out_scope(t.mangle);if(n)n.mangle=Date.now();if(t.mangle){on.reset();r.compute_char_frequency(t.mangle);r.mangle_names(t.mangle)}if(n)n.properties=Date.now();if(t.mangle&&t.mangle.properties){r=mangle_properties(r,t.mangle.properties)}if(n)n.format=Date.now();var o={};if(t.format.ast){o.ast=r}if(!HOP(t.format,"code")||t.format.code){if(t.sourceMap){if(typeof t.sourceMap.content=="string"){t.sourceMap.content=JSON.parse(t.sourceMap.content)}t.format.source_map=SourceMap({file:t.sourceMap.filename,orig:t.sourceMap.content,root:t.sourceMap.root});if(t.sourceMap.includeSources){if(e instanceof Z){throw new Error("original source content unavailable")}else for(var a in e)if(HOP(e,a)){t.format.source_map.get().setSourceContent(a,e[a])}}}delete t.format.ast;delete t.format.code;var s=OutputStream(t.format);r.print(s);o.code=s.get();if(t.sourceMap){if(t.sourceMap.asObject){o.map=t.format.source_map.get().toJSON()}else{o.map=t.format.source_map.toString()}if(t.sourceMap.url=="inline"){var u=typeof o.map==="object"?JSON.stringify(o.map):o.map;o.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+zn(u)}else if(t.sourceMap.url){o.code+="\n//# sourceMappingURL="+t.sourceMap.url}}}if(t.nameCache&&t.mangle){if(t.mangle.cache)t.nameCache.vars=cache_to_json(t.mangle.cache);if(t.mangle.properties&&t.mangle.properties.cache){t.nameCache.props=cache_to_json(t.mangle.properties.cache)}}if(n){n.end=Date.now();o.timings={parse:.001*(n.rename-n.parse),rename:.001*(n.compress-n.rename),compress:.001*(n.scope-n.compress),scope:.001*(n.mangle-n.scope),mangle:.001*(n.properties-n.mangle),properties:.001*(n.format-n.properties),format:.001*(n.end-n.format),total:.001*(n.end-n.start)}}return o}async function run_cli({program:e,packageJson:t,fs:i,path:r}){const a=new Set(["cname","parent_scope","scope","uses_eval","uses_with"]);var o={};var s={compress:false,mangle:false};const u=await _default_options();e.version(t.name+" "+t.version);e.parseArgv=e.parse;e.parse=undefined;if(process.argv.includes("ast"))e.helpInformation=describe_ast;else if(process.argv.includes("options"))e.helpInformation=function(){var e=[];for(var t in u){e.push("--"+(t==="sourceMap"?"source-map":t)+" options:");e.push(format_object(u[t]));e.push("")}return e.join("\n")};e.option("-p, --parse ","Specify parser options.",parse_js());e.option("-c, --compress [options]","Enable compressor/specify compressor options.",parse_js());e.option("-m, --mangle [options]","Mangle names/specify mangler options.",parse_js());e.option("--mangle-props [options]","Mangle properties/specify mangler options.",parse_js());e.option("-f, --format [options]","Format options.",parse_js());e.option("-b, --beautify [options]","Alias for --format beautify=true.",parse_js());e.option("-o, --output ","Output file (default STDOUT).");e.option("--comments [filter]","Preserve copyright comments in the output.");e.option("--config-file ","Read minify() options from JSON file.");e.option("-d, --define [=value]","Global definitions.",parse_js("define"));e.option("--ecma ","Specify ECMAScript release: 5, 2015, 2016 or 2017...");e.option("-e, --enclose [arg[,...][:value[,...]]]","Embed output in a big function with configurable arguments and values.");e.option("--ie8","Support non-standard Internet Explorer 8.");e.option("--keep-classnames","Do not mangle/drop class names.");e.option("--keep-fnames","Do not mangle/drop function names. Useful for code relying on Function.prototype.name.");e.option("--module","Input is an ES6 module");e.option("--name-cache ","File to hold mangled name mappings.");e.option("--rename","Force symbol expansion.");e.option("--no-rename","Disable symbol expansion.");e.option("--safari10","Support non-standard Safari 10.");e.option("--source-map [options]","Enable source map/specify source map options.",parse_js());e.option("--timings","Display operations run time on STDERR.");e.option("--toplevel","Compress and/or mangle variables in toplevel scope.");e.option("--wrap ","Embed everything as a function with “exports” corresponding to “name” globally.");e.arguments("[files...]").parseArgv(process.argv);if(e.configFile){s=JSON.parse(read_file(e.configFile))}if(!e.output&&e.sourceMap&&e.sourceMap.url!="inline"){fatal("ERROR: cannot write source map to STDOUT")}["compress","enclose","ie8","mangle","module","safari10","sourceMap","toplevel","wrap"].forEach(function(t){if(t in e){s[t]=e[t]}});if("ecma"in e){if(e.ecma!=(e.ecma|0))fatal("ERROR: ecma must be an integer");const t=e.ecma|0;if(t>5&&t<2015)s.ecma=t+2009;else s.ecma=t}if(e.beautify||e.format){if(e.beautify&&e.format){fatal("Please only specify one of --beautify or --format")}if(e.beautify){s.format=typeof e.beautify=="object"?e.beautify:{};if(!("beautify"in s.format)){s.format.beautify=true}}if(e.format){s.format=typeof e.format=="object"?e.format:{}}}if(e.comments){if(typeof s.format!="object")s.format={};s.format.comments=typeof e.comments=="string"?e.comments=="false"?false:e.comments:"some"}if(e.define){if(typeof s.compress!="object")s.compress={};if(typeof s.compress.global_defs!="object")s.compress.global_defs={};for(var c in e.define){s.compress.global_defs[c]=e.define[c]}}if(e.keepClassnames){s.keep_classnames=true}if(e.keepFnames){s.keep_fnames=true}if(e.mangleProps){if(e.mangleProps.domprops){delete e.mangleProps.domprops}else{if(typeof e.mangleProps!="object")e.mangleProps={};if(!Array.isArray(e.mangleProps.reserved))e.mangleProps.reserved=[]}if(typeof s.mangle!="object")s.mangle={};s.mangle.properties=e.mangleProps}if(e.nameCache){s.nameCache=JSON.parse(read_file(e.nameCache,"{}"))}if(e.output=="ast"){s.format={ast:true,code:false}}if(e.parse){if(!e.parse.acorn&&!e.parse.spidermonkey){s.parse=e.parse}else if(e.sourceMap&&e.sourceMap.content=="inline"){fatal("ERROR: inline source map only works with built-in parser")}}if(~e.rawArgs.indexOf("--rename")){s.rename=true}else if(!e.rename){s.rename=false}let l=e=>e;if(typeof e.sourceMap=="object"&&"base"in e.sourceMap){l=function(){var t=e.sourceMap.base;delete s.sourceMap.base;return function(e){return r.relative(t,e)}}()}let f;if(s.files&&s.files.length){f=s.files;delete s.files}else if(e.args.length){f=e.args}if(f){simple_glob(f).forEach(function(e){o[l(e)]=read_file(e)})}else{await new Promise(e=>{var t=[];process.stdin.setEncoding("utf8");process.stdin.on("data",function(e){t.push(e)}).on("end",function(){o=[t.join("")];e()});process.stdin.resume()})}await run_cli();function convert_ast(e){return R.from_mozilla_ast(Object.keys(o).reduce(e,null))}async function run_cli(){var t=e.sourceMap&&e.sourceMap.content;if(t&&t!=="inline"){s.sourceMap.content=read_file(t,t)}if(e.timings)s.timings=true;try{if(e.parse){if(e.parse.acorn){o=convert_ast(function(t,i){return n(740).parse(o[i],{ecmaVersion:2018,locations:true,program:t,sourceFile:i,sourceType:s.module||e.parse.module?"module":"script"})})}else if(e.parse.spidermonkey){o=convert_ast(function(e,t){var n=JSON.parse(o[t]);if(!e)return n;e.body=e.body.concat(n.body);return e})}}}catch(e){fatal(e)}let r;try{r=await minify(o,s)}catch(e){if(e.name=="SyntaxError"){print_error("Parse error at "+e.filename+":"+e.line+","+e.col);var u=e.col;var c=o[e.filename].split(/\r?\n/);var l=c[e.line-1];if(!l&&!u){l=c[e.line-2];u=l.length}if(l){var f=70;if(u>f){l=l.slice(u-f);u=f}print_error(l.slice(0,80));print_error(l.slice(0,u).replace(/\S/g," ")+"^")}}if(e.defs){print_error("Supported options:");print_error(format_object(e.defs))}fatal(e);return}if(e.output=="ast"){if(!s.compress&&!s.mangle){r.ast.figure_out_scope({})}console.log(JSON.stringify(r.ast,function(e,t){if(t)switch(e){case"thedef":return symdef(t);case"enclosed":return t.length?t.map(symdef):undefined;case"variables":case"functions":case"globals":return t.size?collect_from_map(t,symdef):undefined}if(a.has(e))return;if(t instanceof w)return;if(t instanceof Map)return;if(t instanceof R){var n={_class:"AST_"+t.TYPE};if(t.block_scope){n.variables=t.block_scope.variables;n.functions=t.block_scope.functions;n.enclosed=t.block_scope.enclosed}t.CTOR.PROPS.forEach(function(e){n[e]=t[e]});return n}return t},2))}else if(e.output=="spidermonkey"){try{const e=await minify(r.code,{compress:false,mangle:false,format:{ast:true,code:false}});console.log(JSON.stringify(e.ast.to_mozilla_ast(),null,2))}catch(e){fatal(e);return}}else if(e.output){i.writeFileSync(e.output,r.code);if(s.sourceMap&&s.sourceMap.url!=="inline"&&r.map){i.writeFileSync(e.output+".map",r.map)}}else{console.log(r.code)}if(e.nameCache){i.writeFileSync(e.nameCache,JSON.stringify(s.nameCache))}if(r.timings)for(var p in r.timings){print_error("- "+p+": "+r.timings[p].toFixed(3)+"s")}}function fatal(e){if(e instanceof Error)e=e.stack.replace(/^\S*?Error:/,"ERROR:");print_error(e);process.exit(1)}function simple_glob(e){if(Array.isArray(e)){return[].concat.apply([],e.map(simple_glob))}if(e&&e.match(/[*?]/)){var t=r.dirname(e);try{var n=i.readdirSync(t)}catch(e){}if(n){var a="^"+r.basename(e).replace(/[.+^$[\]\\(){}]/g,"\\$&").replace(/\*/g,"[^/\\\\]*").replace(/\?/g,"[^/\\\\]")+"$";var o=process.platform==="win32"?"i":"";var s=new RegExp(a,o);var u=n.filter(function(e){return s.test(e)}).map(function(e){return r.join(t,e)});if(u.length)return u}}return[e]}function read_file(e,t){try{return i.readFileSync(e,"utf8")}catch(e){if((e.code=="ENOENT"||e.code=="ENAMETOOLONG")&&t!=null)return t;fatal(e)}}function parse_js(e){return function(t,n){n=n||{};try{walk(parse(t,{expression:true}),t=>{if(t instanceof Xe){var i=t.left.print_to_string();var r=t.right;if(e){n[i]=r}else if(r instanceof We){n[i]=r.elements.map(to_string)}else if(r instanceof Rt){r=r.value;n[i]=new RegExp(r.source,r.flags)}else{n[i]=to_string(r)}return true}if(t instanceof rt||t instanceof Ve){var i=t.print_to_string();n[i]=true;return true}if(!(t instanceof Pe))throw t;function to_string(e){return e instanceof xt?e.getValue():e.print_to_string({quote_keys:true})}})}catch(i){if(e){fatal("Error parsing arguments for '"+e+"': "+t)}else{n[t]=null}}return n}}function symdef(e){var t=1e6+e.id+" "+e.name;if(e.mangled_name)t+=" "+e.mangled_name;return t}function collect_from_map(e,t){var n=[];e.forEach(function(e){n.push(t(e))});return n}function format_object(e){var t=[];var n="";Object.keys(e).map(function(t){if(n.length!/^\$/.test(e));if(n.length>0){e.space();e.with_parens(function(){n.forEach(function(t,n){if(n)e.space();e.print(t)})})}if(t.documentation){e.space();e.print_string(t.documentation)}if(t.SUBCLASSES.length>0){e.space();e.with_block(function(){t.SUBCLASSES.forEach(function(t){e.indent();doitem(t);e.newline()})})}}doitem(R);return e+"\n"}}async function _default_options(){const e={};Object.keys(infer_options({0:0})).forEach(t=>{const n=infer_options({[t]:{0:0}});if(n)e[t]=n});return e}async function infer_options(e){try{await minify("",e)}catch(e){return e.defs}}e._default_options=_default_options;e._run_cli=run_cli;e.minify=minify})},241:function(e){e.exports=require("next/dist/compiled/source-map")},740:function(e,t){(function(e,n){true?n(t):undefined})(this,function(e){"use strict";var t={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"};var n="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this";var i={5:n,"5module":n+" export import",6:n+" const class extends export import super"};var r=/^in(stanceof)?$/;var a="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";var o="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";var s=new RegExp("["+a+"]");var u=new RegExp("["+a+o+"]");a=o=null;var c=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,155,22,13,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,0,33,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,0,161,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,754,9486,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541];var l=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,232,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,792487,239];function isInAstralSet(e,t){var n=65536;for(var i=0;ie){return false}n+=t[i+1];if(n>=e){return true}}}function isIdentifierStart(e,t){if(e<65){return e===36}if(e<91){return true}if(e<97){return e===95}if(e<123){return true}if(e<=65535){return e>=170&&s.test(String.fromCharCode(e))}if(t===false){return false}return isInAstralSet(e,c)}function isIdentifierChar(e,t){if(e<48){return e===36}if(e<58){return true}if(e<65){return false}if(e<91){return true}if(e<97){return e===95}if(e<123){return true}if(e<=65535){return e>=170&&u.test(String.fromCharCode(e))}if(t===false){return false}return isInAstralSet(e,c)||isInAstralSet(e,l)}var f=function TokenType(e,t){if(t===void 0)t={};this.label=e;this.keyword=t.keyword;this.beforeExpr=!!t.beforeExpr;this.startsExpr=!!t.startsExpr;this.isLoop=!!t.isLoop;this.isAssign=!!t.isAssign;this.prefix=!!t.prefix;this.postfix=!!t.postfix;this.binop=t.binop||null;this.updateContext=null};function binop(e,t){return new f(e,{beforeExpr:true,binop:t})}var p={beforeExpr:true},_={startsExpr:true};var h={};function kw(e,t){if(t===void 0)t={};t.keyword=e;return h[e]=new f(e,t)}var d={num:new f("num",_),regexp:new f("regexp",_),string:new f("string",_),name:new f("name",_),eof:new f("eof"),bracketL:new f("[",{beforeExpr:true,startsExpr:true}),bracketR:new f("]"),braceL:new f("{",{beforeExpr:true,startsExpr:true}),braceR:new f("}"),parenL:new f("(",{beforeExpr:true,startsExpr:true}),parenR:new f(")"),comma:new f(",",p),semi:new f(";",p),colon:new f(":",p),dot:new f("."),question:new f("?",p),arrow:new f("=>",p),template:new f("template"),invalidTemplate:new f("invalidTemplate"),ellipsis:new f("...",p),backQuote:new f("`",_),dollarBraceL:new f("${",{beforeExpr:true,startsExpr:true}),eq:new f("=",{beforeExpr:true,isAssign:true}),assign:new f("_=",{beforeExpr:true,isAssign:true}),incDec:new f("++/--",{prefix:true,postfix:true,startsExpr:true}),prefix:new f("!/~",{beforeExpr:true,prefix:true,startsExpr:true}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new f("+/-",{beforeExpr:true,binop:9,prefix:true,startsExpr:true}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new f("**",{beforeExpr:true}),_break:kw("break"),_case:kw("case",p),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",p),_do:kw("do",{isLoop:true,beforeExpr:true}),_else:kw("else",p),_finally:kw("finally"),_for:kw("for",{isLoop:true}),_function:kw("function",_),_if:kw("if"),_return:kw("return",p),_switch:kw("switch"),_throw:kw("throw",p),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:true}),_with:kw("with"),_new:kw("new",{beforeExpr:true,startsExpr:true}),_this:kw("this",_),_super:kw("super",_),_class:kw("class",_),_extends:kw("extends",p),_export:kw("export"),_import:kw("import",_),_null:kw("null",_),_true:kw("true",_),_false:kw("false",_),_in:kw("in",{beforeExpr:true,binop:7}),_instanceof:kw("instanceof",{beforeExpr:true,binop:7}),_typeof:kw("typeof",{beforeExpr:true,prefix:true,startsExpr:true}),_void:kw("void",{beforeExpr:true,prefix:true,startsExpr:true}),_delete:kw("delete",{beforeExpr:true,prefix:true,startsExpr:true})};var m=/\r\n?|\n|\u2028|\u2029/;var E=new RegExp(m.source,"g");function isNewLine(e,t){return e===10||e===13||!t&&(e===8232||e===8233)}var g=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;var v=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;var D=Object.prototype;var b=D.hasOwnProperty;var y=D.toString;function has(e,t){return b.call(e,t)}var k=Array.isArray||function(e){return y.call(e)==="[object Array]"};function wordsRegexp(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var S=function Position(e,t){this.line=e;this.column=t};S.prototype.offset=function offset(e){return new S(this.line,this.column+e)};var A=function SourceLocation(e,t,n){this.start=t;this.end=n;if(e.sourceFile!==null){this.source=e.sourceFile}};function getLineInfo(e,t){for(var n=1,i=0;;){E.lastIndex=i;var r=E.exec(e);if(r&&r.index=2015){t.ecmaVersion-=2009}if(t.allowReserved==null){t.allowReserved=t.ecmaVersion<5}if(k(t.onToken)){var i=t.onToken;t.onToken=function(e){return i.push(e)}}if(k(t.onComment)){t.onComment=pushComment(t,t.onComment)}return t}function pushComment(e,t){return function(n,i,r,a,o,s){var u={type:n?"Block":"Line",value:i,start:r,end:a};if(e.locations){u.loc=new A(this,o,s)}if(e.ranges){u.range=[r,a]}t.push(u)}}var C=1,x=2,O=C|x,F=4,w=8,R=16,M=32,N=64,I=128;function functionFlags(e,t){return x|(e?F:0)|(t?w:0)}var P=0,V=1,L=2,B=3,U=4,K=5;var z=function Parser(e,n,r){this.options=e=getOptions(e);this.sourceFile=e.sourceFile;this.keywords=wordsRegexp(i[e.ecmaVersion>=6?6:e.sourceType==="module"?"5module":5]);var a="";if(e.allowReserved!==true){for(var o=e.ecmaVersion;;o--){if(a=t[o]){break}}if(e.sourceType==="module"){a+=" await"}}this.reservedWords=wordsRegexp(a);var s=(a?a+" ":"")+t.strict;this.reservedWordsStrict=wordsRegexp(s);this.reservedWordsStrictBind=wordsRegexp(s+" "+t.strictBind);this.input=String(n);this.containsEsc=false;if(r){this.pos=r;this.lineStart=this.input.lastIndexOf("\n",r-1)+1;this.curLine=this.input.slice(0,this.lineStart).split(m).length}else{this.pos=this.lineStart=0;this.curLine=1}this.type=d.eof;this.value=null;this.start=this.end=this.pos;this.startLoc=this.endLoc=this.curPosition();this.lastTokEndLoc=this.lastTokStartLoc=null;this.lastTokStart=this.lastTokEnd=this.pos;this.context=this.initialContext();this.exprAllowed=true;this.inModule=e.sourceType==="module";this.strict=this.inModule||this.strictDirective(this.pos);this.potentialArrowAt=-1;this.yieldPos=this.awaitPos=this.awaitIdentPos=0;this.labels=[];this.undefinedExports={};if(this.pos===0&&e.allowHashBang&&this.input.slice(0,2)==="#!"){this.skipLineComment(2)}this.scopeStack=[];this.enterScope(C);this.regexpState=null};var G={inFunction:{configurable:true},inGenerator:{configurable:true},inAsync:{configurable:true},allowSuper:{configurable:true},allowDirectSuper:{configurable:true},treatFunctionsAsVar:{configurable:true}};z.prototype.parse=function parse(){var e=this.options.program||this.startNode();this.nextToken();return this.parseTopLevel(e)};G.inFunction.get=function(){return(this.currentVarScope().flags&x)>0};G.inGenerator.get=function(){return(this.currentVarScope().flags&w)>0};G.inAsync.get=function(){return(this.currentVarScope().flags&F)>0};G.allowSuper.get=function(){return(this.currentThisScope().flags&N)>0};G.allowDirectSuper.get=function(){return(this.currentThisScope().flags&I)>0};G.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};z.prototype.inNonArrowFunction=function inNonArrowFunction(){return(this.currentThisScope().flags&x)>0};z.extend=function extend(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var n=this;for(var i=0;i-1){this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element")}var n=t?e.parenthesizedAssign:e.parenthesizedBind;if(n>-1){this.raiseRecoverable(n,"Parenthesized pattern")}};H.checkExpressionErrors=function(e,t){if(!e){return false}var n=e.shorthandAssign;var i=e.doubleProto;if(!t){return n>=0||i>=0}if(n>=0){this.raise(n,"Shorthand property assignments are valid only in destructuring patterns")}if(i>=0){this.raiseRecoverable(i,"Redefinition of __proto__ property")}};H.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos=6){this.unexpected()}return this.parseFunctionStatement(r,false,!e);case d._class:if(e){this.unexpected()}return this.parseClass(r,true);case d._if:return this.parseIfStatement(r);case d._return:return this.parseReturnStatement(r);case d._switch:return this.parseSwitchStatement(r);case d._throw:return this.parseThrowStatement(r);case d._try:return this.parseTryStatement(r);case d._const:case d._var:a=a||this.value;if(e&&a!=="var"){this.unexpected()}return this.parseVarStatement(r,a);case d._while:return this.parseWhileStatement(r);case d._with:return this.parseWithStatement(r);case d.braceL:return this.parseBlock(true,r);case d.semi:return this.parseEmptyStatement(r);case d._export:case d._import:if(this.options.ecmaVersion>10&&i===d._import){v.lastIndex=this.pos;var o=v.exec(this.input);var s=this.pos+o[0].length,u=this.input.charCodeAt(s);if(u===40){return this.parseExpressionStatement(r,this.parseExpression())}}if(!this.options.allowImportExportEverywhere){if(!t){this.raise(this.start,"'import' and 'export' may only appear at the top level")}if(!this.inModule){this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}}return i===d._import?this.parseImport(r):this.parseExport(r,n);default:if(this.isAsyncFunction()){if(e){this.unexpected()}this.next();return this.parseFunctionStatement(r,true,!e)}var c=this.value,l=this.parseExpression();if(i===d.name&&l.type==="Identifier"&&this.eat(d.colon)){return this.parseLabeledStatement(r,c,l,e)}else{return this.parseExpressionStatement(r,l)}}};q.parseBreakContinueStatement=function(e,t){var n=t==="break";this.next();if(this.eat(d.semi)||this.insertSemicolon()){e.label=null}else if(this.type!==d.name){this.unexpected()}else{e.label=this.parseIdent();this.semicolon()}var i=0;for(;i=6){this.eat(d.semi)}else{this.semicolon()}return this.finishNode(e,"DoWhileStatement")};q.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;this.labels.push(W);this.enterScope(0);this.expect(d.parenL);if(this.type===d.semi){if(t>-1){this.unexpected(t)}return this.parseFor(e,null)}var n=this.isLet();if(this.type===d._var||this.type===d._const||n){var i=this.startNode(),r=n?"let":this.value;this.next();this.parseVar(i,true,r);this.finishNode(i,"VariableDeclaration");if((this.type===d._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&i.declarations.length===1){if(this.options.ecmaVersion>=9){if(this.type===d._in){if(t>-1){this.unexpected(t)}}else{e.await=t>-1}}return this.parseForIn(e,i)}if(t>-1){this.unexpected(t)}return this.parseFor(e,i)}var a=new DestructuringErrors;var o=this.parseExpression(true,a);if(this.type===d._in||this.options.ecmaVersion>=6&&this.isContextual("of")){if(this.options.ecmaVersion>=9){if(this.type===d._in){if(t>-1){this.unexpected(t)}}else{e.await=t>-1}}this.toAssignable(o,false,a);this.checkLVal(o);return this.parseForIn(e,o)}else{this.checkExpressionErrors(a,true)}if(t>-1){this.unexpected(t)}return this.parseFor(e,o)};q.parseFunctionStatement=function(e,t,n){this.next();return this.parseFunction(e,j|(n?0:Z),false,t)};q.parseIfStatement=function(e){this.next();e.test=this.parseParenExpression();e.consequent=this.parseStatement("if");e.alternate=this.eat(d._else)?this.parseStatement("if"):null;return this.finishNode(e,"IfStatement")};q.parseReturnStatement=function(e){if(!this.inFunction&&!this.options.allowReturnOutsideFunction){this.raise(this.start,"'return' outside of function")}this.next();if(this.eat(d.semi)||this.insertSemicolon()){e.argument=null}else{e.argument=this.parseExpression();this.semicolon()}return this.finishNode(e,"ReturnStatement")};q.parseSwitchStatement=function(e){this.next();e.discriminant=this.parseParenExpression();e.cases=[];this.expect(d.braceL);this.labels.push(Y);this.enterScope(0);var t;for(var n=false;this.type!==d.braceR;){if(this.type===d._case||this.type===d._default){var i=this.type===d._case;if(t){this.finishNode(t,"SwitchCase")}e.cases.push(t=this.startNode());t.consequent=[];this.next();if(i){t.test=this.parseExpression()}else{if(n){this.raiseRecoverable(this.lastTokStart,"Multiple default clauses")}n=true;t.test=null}this.expect(d.colon)}else{if(!t){this.unexpected()}t.consequent.push(this.parseStatement(null))}}this.exitScope();if(t){this.finishNode(t,"SwitchCase")}this.next();this.labels.pop();return this.finishNode(e,"SwitchStatement")};q.parseThrowStatement=function(e){this.next();if(m.test(this.input.slice(this.lastTokEnd,this.start))){this.raise(this.lastTokEnd,"Illegal newline after throw")}e.argument=this.parseExpression();this.semicolon();return this.finishNode(e,"ThrowStatement")};var $=[];q.parseTryStatement=function(e){this.next();e.block=this.parseBlock();e.handler=null;if(this.type===d._catch){var t=this.startNode();this.next();if(this.eat(d.parenL)){t.param=this.parseBindingAtom();var n=t.param.type==="Identifier";this.enterScope(n?M:0);this.checkLVal(t.param,n?U:L);this.expect(d.parenR)}else{if(this.options.ecmaVersion<10){this.unexpected()}t.param=null;this.enterScope(0)}t.body=this.parseBlock(false);this.exitScope();e.handler=this.finishNode(t,"CatchClause")}e.finalizer=this.eat(d._finally)?this.parseBlock():null;if(!e.handler&&!e.finalizer){this.raise(e.start,"Missing catch or finally clause")}return this.finishNode(e,"TryStatement")};q.parseVarStatement=function(e,t){this.next();this.parseVar(e,false,t);this.semicolon();return this.finishNode(e,"VariableDeclaration")};q.parseWhileStatement=function(e){this.next();e.test=this.parseParenExpression();this.labels.push(W);e.body=this.parseStatement("while");this.labels.pop();return this.finishNode(e,"WhileStatement")};q.parseWithStatement=function(e){if(this.strict){this.raise(this.start,"'with' in strict mode")}this.next();e.object=this.parseParenExpression();e.body=this.parseStatement("with");return this.finishNode(e,"WithStatement")};q.parseEmptyStatement=function(e){this.next();return this.finishNode(e,"EmptyStatement")};q.parseLabeledStatement=function(e,t,n,i){for(var r=0,a=this.labels;r=0;u--){var c=this.labels[u];if(c.statementStart===e.start){c.statementStart=this.start;c.kind=s}else{break}}this.labels.push({name:t,kind:s,statementStart:this.start});e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label");this.labels.pop();e.label=n;return this.finishNode(e,"LabeledStatement")};q.parseExpressionStatement=function(e,t){e.expression=t;this.semicolon();return this.finishNode(e,"ExpressionStatement")};q.parseBlock=function(e,t){if(e===void 0)e=true;if(t===void 0)t=this.startNode();t.body=[];this.expect(d.braceL);if(e){this.enterScope(0)}while(!this.eat(d.braceR)){var n=this.parseStatement(null);t.body.push(n)}if(e){this.exitScope()}return this.finishNode(t,"BlockStatement")};q.parseFor=function(e,t){e.init=t;this.expect(d.semi);e.test=this.type===d.semi?null:this.parseExpression();this.expect(d.semi);e.update=this.type===d.parenR?null:this.parseExpression();this.expect(d.parenR);e.body=this.parseStatement("for");this.exitScope();this.labels.pop();return this.finishNode(e,"ForStatement")};q.parseForIn=function(e,t){var n=this.type===d._in;this.next();if(t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")){this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer")}else if(t.type==="AssignmentPattern"){this.raise(t.start,"Invalid left-hand side in for-loop")}e.left=t;e.right=n?this.parseExpression():this.parseMaybeAssign();this.expect(d.parenR);e.body=this.parseStatement("for");this.exitScope();this.labels.pop();return this.finishNode(e,n?"ForInStatement":"ForOfStatement")};q.parseVar=function(e,t,n){e.declarations=[];e.kind=n;for(;;){var i=this.startNode();this.parseVarId(i,n);if(this.eat(d.eq)){i.init=this.parseMaybeAssign(t)}else if(n==="const"&&!(this.type===d._in||this.options.ecmaVersion>=6&&this.isContextual("of"))){this.unexpected()}else if(i.id.type!=="Identifier"&&!(t&&(this.type===d._in||this.isContextual("of")))){this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value")}else{i.init=null}e.declarations.push(this.finishNode(i,"VariableDeclarator"));if(!this.eat(d.comma)){break}}return e};q.parseVarId=function(e,t){e.id=this.parseBindingAtom();this.checkLVal(e.id,t==="var"?V:L,false)};var j=1,Z=2,Q=4;q.parseFunction=function(e,t,n,i){this.initFunction(e);if(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i){if(this.type===d.star&&t&Z){this.unexpected()}e.generator=this.eat(d.star)}if(this.options.ecmaVersion>=8){e.async=!!i}if(t&j){e.id=t&Q&&this.type!==d.name?null:this.parseIdent();if(e.id&&!(t&Z)){this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?V:L:B)}}var r=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;this.enterScope(functionFlags(e.async,e.generator));if(!(t&j)){e.id=this.type===d.name?this.parseIdent():null}this.parseFunctionParams(e);this.parseFunctionBody(e,n,false);this.yieldPos=r;this.awaitPos=a;this.awaitIdentPos=o;return this.finishNode(e,t&j?"FunctionDeclaration":"FunctionExpression")};q.parseFunctionParams=function(e){this.expect(d.parenL);e.params=this.parseBindingList(d.parenR,false,this.options.ecmaVersion>=8);this.checkYieldAwaitInDefaultParams()};q.parseClass=function(e,t){this.next();var n=this.strict;this.strict=true;this.parseClassId(e,t);this.parseClassSuper(e);var i=this.startNode();var r=false;i.body=[];this.expect(d.braceL);while(!this.eat(d.braceR)){var a=this.parseClassElement(e.superClass!==null);if(a){i.body.push(a);if(a.type==="MethodDefinition"&&a.kind==="constructor"){if(r){this.raise(a.start,"Duplicate constructor in the same class")}r=true}}}e.body=this.finishNode(i,"ClassBody");this.strict=n;return this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};q.parseClassElement=function(e){var t=this;if(this.eat(d.semi)){return null}var n=this.startNode();var i=function(e,i){if(i===void 0)i=false;var r=t.start,a=t.startLoc;if(!t.eatContextual(e)){return false}if(t.type!==d.parenL&&(!i||!t.canInsertSemicolon())){return true}if(n.key){t.unexpected()}n.computed=false;n.key=t.startNodeAt(r,a);n.key.name=e;t.finishNode(n.key,"Identifier");return false};n.kind="method";n.static=i("static");var r=this.eat(d.star);var a=false;if(!r){if(this.options.ecmaVersion>=8&&i("async",true)){a=true;r=this.options.ecmaVersion>=9&&this.eat(d.star)}else if(i("get")){n.kind="get"}else if(i("set")){n.kind="set"}}if(!n.key){this.parsePropertyName(n)}var o=n.key;var s=false;if(!n.computed&&!n.static&&(o.type==="Identifier"&&o.name==="constructor"||o.type==="Literal"&&o.value==="constructor")){if(n.kind!=="method"){this.raise(o.start,"Constructor can't have get/set modifier")}if(r){this.raise(o.start,"Constructor can't be a generator")}if(a){this.raise(o.start,"Constructor can't be an async method")}n.kind="constructor";s=e}else if(n.static&&o.type==="Identifier"&&o.name==="prototype"){this.raise(o.start,"Classes may not have a static property named prototype")}this.parseClassMethod(n,r,a,s);if(n.kind==="get"&&n.value.params.length!==0){this.raiseRecoverable(n.value.start,"getter should have no params")}if(n.kind==="set"&&n.value.params.length!==1){this.raiseRecoverable(n.value.start,"setter should have exactly one param")}if(n.kind==="set"&&n.value.params[0].type==="RestElement"){this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params")}return n};q.parseClassMethod=function(e,t,n,i){e.value=this.parseMethod(t,n,i);return this.finishNode(e,"MethodDefinition")};q.parseClassId=function(e,t){if(this.type===d.name){e.id=this.parseIdent();if(t){this.checkLVal(e.id,L,false)}}else{if(t===true){this.unexpected()}e.id=null}};q.parseClassSuper=function(e){e.superClass=this.eat(d._extends)?this.parseExprSubscripts():null};q.parseExport=function(e,t){this.next();if(this.eat(d.star)){this.expectContextual("from");if(this.type!==d.string){this.unexpected()}e.source=this.parseExprAtom();this.semicolon();return this.finishNode(e,"ExportAllDeclaration")}if(this.eat(d._default)){this.checkExport(t,"default",this.lastTokStart);var n;if(this.type===d._function||(n=this.isAsyncFunction())){var i=this.startNode();this.next();if(n){this.next()}e.declaration=this.parseFunction(i,j|Q,false,n)}else if(this.type===d._class){var r=this.startNode();e.declaration=this.parseClass(r,"nullableID")}else{e.declaration=this.parseMaybeAssign();this.semicolon()}return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement()){e.declaration=this.parseStatement(null);if(e.declaration.type==="VariableDeclaration"){this.checkVariableExport(t,e.declaration.declarations)}else{this.checkExport(t,e.declaration.id.name,e.declaration.id.start)}e.specifiers=[];e.source=null}else{e.declaration=null;e.specifiers=this.parseExportSpecifiers(t);if(this.eatContextual("from")){if(this.type!==d.string){this.unexpected()}e.source=this.parseExprAtom()}else{for(var a=0,o=e.specifiers;a=6&&e){switch(e.type){case"Identifier":if(this.inAsync&&e.name==="await"){this.raise(e.start,"Cannot use 'await' as identifier inside an async function")}break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";if(n){this.checkPatternErrors(n,true)}for(var i=0,r=e.properties;i=8&&!a&&o.name==="async"&&!this.canInsertSemicolon()&&this.eat(d._function)){return this.parseFunction(this.startNodeAt(i,r),0,false,true)}if(n&&!this.canInsertSemicolon()){if(this.eat(d.arrow)){return this.parseArrowExpression(this.startNodeAt(i,r),[o],false)}if(this.options.ecmaVersion>=8&&o.name==="async"&&this.type===d.name&&!a){o=this.parseIdent(false);if(this.canInsertSemicolon()||!this.eat(d.arrow)){this.unexpected()}return this.parseArrowExpression(this.startNodeAt(i,r),[o],true)}}return o;case d.regexp:var s=this.value;t=this.parseLiteral(s.value);t.regex={pattern:s.pattern,flags:s.flags};return t;case d.num:case d.string:return this.parseLiteral(this.value);case d._null:case d._true:case d._false:t=this.startNode();t.value=this.type===d._null?null:this.type===d._true;t.raw=this.type.keyword;this.next();return this.finishNode(t,"Literal");case d.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(n);if(e){if(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)){e.parenthesizedAssign=u}if(e.parenthesizedBind<0){e.parenthesizedBind=u}}return c;case d.bracketL:t=this.startNode();this.next();t.elements=this.parseExprList(d.bracketR,true,true,e);return this.finishNode(t,"ArrayExpression");case d.braceL:return this.parseObj(false,e);case d._function:t=this.startNode();this.next();return this.parseFunction(t,0);case d._class:return this.parseClass(this.startNode(),false);case d._new:return this.parseNew();case d.backQuote:return this.parseTemplate();case d._import:if(this.options.ecmaVersion>=11){return this.parseExprImport()}else{return this.unexpected()}default:this.unexpected()}};ee.parseExprImport=function(){var e=this.startNode();this.next();switch(this.type){case d.parenL:return this.parseDynamicImport(e);default:this.unexpected()}};ee.parseDynamicImport=function(e){this.next();e.source=this.parseMaybeAssign();if(!this.eat(d.parenR)){var t=this.start;if(this.eat(d.comma)&&this.eat(d.parenR)){this.raiseRecoverable(t,"Trailing comma is not allowed in import()")}else{this.unexpected(t)}}return this.finishNode(e,"ImportExpression")};ee.parseLiteral=function(e){var t=this.startNode();t.value=e;t.raw=this.input.slice(this.start,this.end);if(t.raw.charCodeAt(t.raw.length-1)===110){t.bigint=t.raw.slice(0,-1)}this.next();return this.finishNode(t,"Literal")};ee.parseParenExpression=function(){this.expect(d.parenL);var e=this.parseExpression();this.expect(d.parenR);return e};ee.parseParenAndDistinguishExpression=function(e){var t=this.start,n=this.startLoc,i,r=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a=this.start,o=this.startLoc;var s=[],u=true,c=false;var l=new DestructuringErrors,f=this.yieldPos,p=this.awaitPos,_;this.yieldPos=0;this.awaitPos=0;while(this.type!==d.parenR){u?u=false:this.expect(d.comma);if(r&&this.afterTrailingComma(d.parenR,true)){c=true;break}else if(this.type===d.ellipsis){_=this.start;s.push(this.parseParenItem(this.parseRestBinding()));if(this.type===d.comma){this.raise(this.start,"Comma is not permitted after the rest element")}break}else{s.push(this.parseMaybeAssign(false,l,this.parseParenItem))}}var h=this.start,m=this.startLoc;this.expect(d.parenR);if(e&&!this.canInsertSemicolon()&&this.eat(d.arrow)){this.checkPatternErrors(l,false);this.checkYieldAwaitInDefaultParams();this.yieldPos=f;this.awaitPos=p;return this.parseParenArrowList(t,n,s)}if(!s.length||c){this.unexpected(this.lastTokStart)}if(_){this.unexpected(_)}this.checkExpressionErrors(l,true);this.yieldPos=f||this.yieldPos;this.awaitPos=p||this.awaitPos;if(s.length>1){i=this.startNodeAt(a,o);i.expressions=s;this.finishNodeAt(i,"SequenceExpression",h,m)}else{i=s[0]}}else{i=this.parseParenExpression()}if(this.options.preserveParens){var E=this.startNodeAt(t,n);E.expression=i;return this.finishNode(E,"ParenthesizedExpression")}else{return i}};ee.parseParenItem=function(e){return e};ee.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var te=[];ee.parseNew=function(){if(this.containsEsc){this.raiseRecoverable(this.start,"Escape sequence in keyword new")}var e=this.startNode();var t=this.parseIdent(true);if(this.options.ecmaVersion>=6&&this.eat(d.dot)){e.meta=t;var n=this.containsEsc;e.property=this.parseIdent(true);if(e.property.name!=="target"||n){this.raiseRecoverable(e.property.start,"The only valid meta property for new is new.target")}if(!this.inNonArrowFunction()){this.raiseRecoverable(e.start,"new.target can only be used in functions")}return this.finishNode(e,"MetaProperty")}var i=this.start,r=this.startLoc,a=this.type===d._import;e.callee=this.parseSubscripts(this.parseExprAtom(),i,r,true);if(a&&e.callee.type==="ImportExpression"){this.raise(i,"Cannot use new with import()")}if(this.eat(d.parenL)){e.arguments=this.parseExprList(d.parenR,this.options.ecmaVersion>=8,false)}else{e.arguments=te}return this.finishNode(e,"NewExpression")};ee.parseTemplateElement=function(e){var t=e.isTagged;var n=this.startNode();if(this.type===d.invalidTemplate){if(!t){this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal")}n.value={raw:this.value,cooked:null}}else{n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value}}this.next();n.tail=this.type===d.backQuote;return this.finishNode(n,"TemplateElement")};ee.parseTemplate=function(e){if(e===void 0)e={};var t=e.isTagged;if(t===void 0)t=false;var n=this.startNode();this.next();n.expressions=[];var i=this.parseTemplateElement({isTagged:t});n.quasis=[i];while(!i.tail){if(this.type===d.eof){this.raise(this.pos,"Unterminated template literal")}this.expect(d.dollarBraceL);n.expressions.push(this.parseExpression());this.expect(d.braceR);n.quasis.push(i=this.parseTemplateElement({isTagged:t}))}this.next();return this.finishNode(n,"TemplateLiteral")};ee.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===d.name||this.type===d.num||this.type===d.string||this.type===d.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===d.star)&&!m.test(this.input.slice(this.lastTokEnd,this.start))};ee.parseObj=function(e,t){var n=this.startNode(),i=true,r={};n.properties=[];this.next();while(!this.eat(d.braceR)){if(!i){this.expect(d.comma);if(this.options.ecmaVersion>=5&&this.afterTrailingComma(d.braceR)){break}}else{i=false}var a=this.parseProperty(e,t);if(!e){this.checkPropClash(a,r,t)}n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")};ee.parseProperty=function(e,t){var n=this.startNode(),i,r,a,o;if(this.options.ecmaVersion>=9&&this.eat(d.ellipsis)){if(e){n.argument=this.parseIdent(false);if(this.type===d.comma){this.raise(this.start,"Comma is not permitted after the rest element")}return this.finishNode(n,"RestElement")}if(this.type===d.parenL&&t){if(t.parenthesizedAssign<0){t.parenthesizedAssign=this.start}if(t.parenthesizedBind<0){t.parenthesizedBind=this.start}}n.argument=this.parseMaybeAssign(false,t);if(this.type===d.comma&&t&&t.trailingComma<0){t.trailingComma=this.start}return this.finishNode(n,"SpreadElement")}if(this.options.ecmaVersion>=6){n.method=false;n.shorthand=false;if(e||t){a=this.start;o=this.startLoc}if(!e){i=this.eat(d.star)}}var s=this.containsEsc;this.parsePropertyName(n);if(!e&&!s&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(n)){r=true;i=this.options.ecmaVersion>=9&&this.eat(d.star);this.parsePropertyName(n,t)}else{r=false}this.parsePropertyValue(n,e,i,r,a,o,t,s);return this.finishNode(n,"Property")};ee.parsePropertyValue=function(e,t,n,i,r,a,o,s){if((n||i)&&this.type===d.colon){this.unexpected()}if(this.eat(d.colon)){e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(false,o);e.kind="init"}else if(this.options.ecmaVersion>=6&&this.type===d.parenL){if(t){this.unexpected()}e.kind="init";e.method=true;e.value=this.parseMethod(n,i)}else if(!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&(this.type!==d.comma&&this.type!==d.braceR)){if(n||i){this.unexpected()}e.kind=e.key.name;this.parsePropertyName(e);e.value=this.parseMethod(false);var u=e.kind==="get"?0:1;if(e.value.params.length!==u){var c=e.value.start;if(e.kind==="get"){this.raiseRecoverable(c,"getter should have no params")}else{this.raiseRecoverable(c,"setter should have exactly one param")}}else{if(e.kind==="set"&&e.value.params[0].type==="RestElement"){this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}}}else if(this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"){if(n||i){this.unexpected()}this.checkUnreserved(e.key);if(e.key.name==="await"&&!this.awaitIdentPos){this.awaitIdentPos=r}e.kind="init";if(t){e.value=this.parseMaybeDefault(r,a,e.key)}else if(this.type===d.eq&&o){if(o.shorthandAssign<0){o.shorthandAssign=this.start}e.value=this.parseMaybeDefault(r,a,e.key)}else{e.value=e.key}e.shorthand=true}else{this.unexpected()}};ee.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(d.bracketL)){e.computed=true;e.key=this.parseMaybeAssign();this.expect(d.bracketR);return e.key}else{e.computed=false}}return e.key=this.type===d.num||this.type===d.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};ee.initFunction=function(e){e.id=null;if(this.options.ecmaVersion>=6){e.generator=e.expression=false}if(this.options.ecmaVersion>=8){e.async=false}};ee.parseMethod=function(e,t,n){var i=this.startNode(),r=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;this.initFunction(i);if(this.options.ecmaVersion>=6){i.generator=e}if(this.options.ecmaVersion>=8){i.async=!!t}this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;this.enterScope(functionFlags(t,i.generator)|N|(n?I:0));this.expect(d.parenL);i.params=this.parseBindingList(d.parenR,false,this.options.ecmaVersion>=8);this.checkYieldAwaitInDefaultParams();this.parseFunctionBody(i,false,true);this.yieldPos=r;this.awaitPos=a;this.awaitIdentPos=o;return this.finishNode(i,"FunctionExpression")};ee.parseArrowExpression=function(e,t,n){var i=this.yieldPos,r=this.awaitPos,a=this.awaitIdentPos;this.enterScope(functionFlags(n,false)|R);this.initFunction(e);if(this.options.ecmaVersion>=8){e.async=!!n}this.yieldPos=0;this.awaitPos=0;this.awaitIdentPos=0;e.params=this.toAssignableList(t,true);this.parseFunctionBody(e,true,false);this.yieldPos=i;this.awaitPos=r;this.awaitIdentPos=a;return this.finishNode(e,"ArrowFunctionExpression")};ee.parseFunctionBody=function(e,t,n){var i=t&&this.type!==d.braceL;var r=this.strict,a=false;if(i){e.body=this.parseMaybeAssign();e.expression=true;this.checkParams(e,false)}else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);if(!r||o){a=this.strictDirective(this.end);if(a&&o){this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list")}}var s=this.labels;this.labels=[];if(a){this.strict=true}this.checkParams(e,!r&&!a&&!t&&!n&&this.isSimpleParamList(e.params));e.body=this.parseBlock(false);e.expression=false;this.adaptDirectivePrologue(e.body.body);this.labels=s}this.exitScope();if(this.strict&&e.id){this.checkLVal(e.id,K)}this.strict=r};ee.isSimpleParamList=function(e){for(var t=0,n=e;t-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1;r.lexical.push(e);if(this.inModule&&r.flags&C){delete this.undefinedExports[e]}}else if(t===U){var a=this.currentScope();a.lexical.push(e)}else if(t===B){var o=this.currentScope();if(this.treatFunctionsAsVar){i=o.lexical.indexOf(e)>-1}else{i=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1}o.functions.push(e)}else{for(var s=this.scopeStack.length-1;s>=0;--s){var u=this.scopeStack[s];if(u.lexical.indexOf(e)>-1&&!(u.flags&M&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){i=true;break}u.var.push(e);if(this.inModule&&u.flags&C){delete this.undefinedExports[e]}if(u.flags&O){break}}}if(i){this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")}};ie.checkLocalExport=function(e){if(this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1){this.undefinedExports[e.name]=e}};ie.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};ie.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&O){return t}}};ie.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&O&&!(t.flags&R)){return t}}};var ae=function Node(e,t,n){this.type="";this.start=t;this.end=0;if(e.options.locations){this.loc=new A(e,n)}if(e.options.directSourceFile){this.sourceFile=e.options.directSourceFile}if(e.options.ranges){this.range=[t,0]}};var oe=z.prototype;oe.startNode=function(){return new ae(this,this.start,this.startLoc)};oe.startNodeAt=function(e,t){return new ae(this,e,t)};function finishNodeAt(e,t,n,i){e.type=t;e.end=n;if(this.options.locations){e.loc.end=i}if(this.options.ranges){e.range[1]=n}return e}oe.finishNode=function(e,t){return finishNodeAt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};oe.finishNodeAt=function(e,t,n,i){return finishNodeAt.call(this,e,t,n,i)};var se=function TokContext(e,t,n,i,r){this.token=e;this.isExpr=!!t;this.preserveSpace=!!n;this.override=i;this.generator=!!r};var ue={b_stat:new se("{",false),b_expr:new se("{",true),b_tmpl:new se("${",false),p_stat:new se("(",false),p_expr:new se("(",true),q_tmpl:new se("`",true,true,function(e){return e.tryReadTemplateToken()}),f_stat:new se("function",false),f_expr:new se("function",true),f_expr_gen:new se("function",true,false,null,true),f_gen:new se("function",false,false,null,true)};var ce=z.prototype;ce.initialContext=function(){return[ue.b_stat]};ce.braceIsBlock=function(e){var t=this.curContext();if(t===ue.f_expr||t===ue.f_stat){return true}if(e===d.colon&&(t===ue.b_stat||t===ue.b_expr)){return!t.isExpr}if(e===d._return||e===d.name&&this.exprAllowed){return m.test(this.input.slice(this.lastTokEnd,this.start))}if(e===d._else||e===d.semi||e===d.eof||e===d.parenR||e===d.arrow){return true}if(e===d.braceL){return t===ue.b_stat}if(e===d._var||e===d._const||e===d.name){return false}return!this.exprAllowed};ce.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function"){return t.generator}}return false};ce.updateContext=function(e){var t,n=this.type;if(n.keyword&&e===d.dot){this.exprAllowed=false}else if(t=n.updateContext){t.call(this,e)}else{this.exprAllowed=n.beforeExpr}};d.parenR.updateContext=d.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=true;return}var e=this.context.pop();if(e===ue.b_stat&&this.curContext().token==="function"){e=this.context.pop()}this.exprAllowed=!e.isExpr};d.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ue.b_stat:ue.b_expr);this.exprAllowed=true};d.dollarBraceL.updateContext=function(){this.context.push(ue.b_tmpl);this.exprAllowed=true};d.parenL.updateContext=function(e){var t=e===d._if||e===d._for||e===d._with||e===d._while;this.context.push(t?ue.p_stat:ue.p_expr);this.exprAllowed=true};d.incDec.updateContext=function(){};d._function.updateContext=d._class.updateContext=function(e){if(e.beforeExpr&&e!==d.semi&&e!==d._else&&!(e===d._return&&m.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===d.colon||e===d.braceL)&&this.curContext()===ue.b_stat)){this.context.push(ue.f_expr)}else{this.context.push(ue.f_stat)}this.exprAllowed=false};d.backQuote.updateContext=function(){if(this.curContext()===ue.q_tmpl){this.context.pop()}else{this.context.push(ue.q_tmpl)}this.exprAllowed=false};d.star.updateContext=function(e){if(e===d._function){var t=this.context.length-1;if(this.context[t]===ue.f_expr){this.context[t]=ue.f_expr_gen}else{this.context[t]=ue.f_gen}}this.exprAllowed=true};d.name.updateContext=function(e){var t=false;if(this.options.ecmaVersion>=6&&e!==d.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext()){t=true}}this.exprAllowed=t};var le="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS";var fe=le+" Extended_Pictographic";var pe=fe;var _e={9:le,10:fe,11:pe};var he="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu";var de="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb";var me=de+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd";var Ee=me+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";var ge={9:de,10:me,11:Ee};var ve={};function buildUnicodeData(e){var t=ve[e]={binary:wordsRegexp(_e[e]+" "+he),nonBinary:{General_Category:wordsRegexp(he),Script:wordsRegexp(ge[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script;t.nonBinary.gc=t.nonBinary.General_Category;t.nonBinary.sc=t.nonBinary.Script;t.nonBinary.scx=t.nonBinary.Script_Extensions}buildUnicodeData(9);buildUnicodeData(10);buildUnicodeData(11);var De=z.prototype;var be=function RegExpValidationState(e){this.parser=e;this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"");this.unicodeProperties=ve[e.options.ecmaVersion>=11?11:e.options.ecmaVersion];this.source="";this.flags="";this.start=0;this.switchU=false;this.switchN=false;this.pos=0;this.lastIntValue=0;this.lastStringValue="";this.lastAssertionIsQuantifiable=false;this.numCapturingParens=0;this.maxBackReference=0;this.groupNames=[];this.backReferenceNames=[]};be.prototype.reset=function reset(e,t,n){var i=n.indexOf("u")!==-1;this.start=e|0;this.source=t+"";this.flags=n;this.switchU=i&&this.parser.options.ecmaVersion>=6;this.switchN=i&&this.parser.options.ecmaVersion>=9};be.prototype.raise=function raise(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)};be.prototype.at=function at(e){var t=this.source;var n=t.length;if(e>=n){return-1}var i=t.charCodeAt(e);if(!this.switchU||i<=55295||i>=57344||e+1>=n){return i}var r=t.charCodeAt(e+1);return r>=56320&&r<=57343?(i<<10)+r-56613888:i};be.prototype.nextIndex=function nextIndex(e){var t=this.source;var n=t.length;if(e>=n){return n}var i=t.charCodeAt(e),r;if(!this.switchU||i<=55295||i>=57344||e+1>=n||(r=t.charCodeAt(e+1))<56320||r>57343){return e+1}return e+2};be.prototype.current=function current(){return this.at(this.pos)};be.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))};be.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)};be.prototype.eat=function eat(e){if(this.current()===e){this.advance();return true}return false};function codePointToString(e){if(e<=65535){return String.fromCharCode(e)}e-=65536;return String.fromCharCode((e>>10)+55296,(e&1023)+56320)}De.validateRegExpFlags=function(e){var t=e.validFlags;var n=e.flags;for(var i=0;i-1){this.raise(e.start,"Duplicate regular expression flag")}}};De.validateRegExpPattern=function(e){this.regexp_pattern(e);if(!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0){e.switchN=true;this.regexp_pattern(e)}};De.regexp_pattern=function(e){e.pos=0;e.lastIntValue=0;e.lastStringValue="";e.lastAssertionIsQuantifiable=false;e.numCapturingParens=0;e.maxBackReference=0;e.groupNames.length=0;e.backReferenceNames.length=0;this.regexp_disjunction(e);if(e.pos!==e.source.length){if(e.eat(41)){e.raise("Unmatched ')'")}if(e.eat(93)||e.eat(125)){e.raise("Lone quantifier brackets")}}if(e.maxBackReference>e.numCapturingParens){e.raise("Invalid escape")}for(var t=0,n=e.backReferenceNames;t=9){n=e.eat(60)}if(e.eat(61)||e.eat(33)){this.regexp_disjunction(e);if(!e.eat(41)){e.raise("Unterminated group")}e.lastAssertionIsQuantifiable=!n;return true}}e.pos=t;return false};De.regexp_eatQuantifier=function(e,t){if(t===void 0)t=false;if(this.regexp_eatQuantifierPrefix(e,t)){e.eat(63);return true}return false};De.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};De.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var i=0,r=-1;if(this.regexp_eatDecimalDigits(e)){i=e.lastIntValue;if(e.eat(44)&&this.regexp_eatDecimalDigits(e)){r=e.lastIntValue}if(e.eat(125)){if(r!==-1&&r=9){this.regexp_groupSpecifier(e)}else if(e.current()===63){e.raise("Invalid group")}this.regexp_disjunction(e);if(e.eat(41)){e.numCapturingParens+=1;return true}e.raise("Unterminated group")}return false};De.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};De.regexp_eatInvalidBracedQuantifier=function(e){if(this.regexp_eatBracedQuantifier(e,true)){e.raise("Nothing to repeat")}return false};De.regexp_eatSyntaxCharacter=function(e){var t=e.current();if(isSyntaxCharacter(t)){e.lastIntValue=t;e.advance();return true}return false};function isSyntaxCharacter(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}De.regexp_eatPatternCharacters=function(e){var t=e.pos;var n=0;while((n=e.current())!==-1&&!isSyntaxCharacter(n)){e.advance()}return e.pos!==t};De.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();if(t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124){e.advance();return true}return false};De.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){if(e.groupNames.indexOf(e.lastStringValue)!==-1){e.raise("Duplicate capture group name")}e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};De.regexp_eatGroupName=function(e){e.lastStringValue="";if(e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62)){return true}e.raise("Invalid capture group name")}return false};De.regexp_eatRegExpIdentifierName=function(e){e.lastStringValue="";if(this.regexp_eatRegExpIdentifierStart(e)){e.lastStringValue+=codePointToString(e.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(e)){e.lastStringValue+=codePointToString(e.lastIntValue)}return true}return false};De.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos;var n=e.current();e.advance();if(n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e)){n=e.lastIntValue}if(isRegExpIdentifierStart(n)){e.lastIntValue=n;return true}e.pos=t;return false};function isRegExpIdentifierStart(e){return isIdentifierStart(e,true)||e===36||e===95}De.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos;var n=e.current();e.advance();if(n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e)){n=e.lastIntValue}if(isRegExpIdentifierPart(n)){e.lastIntValue=n;return true}e.pos=t;return false};function isRegExpIdentifierPart(e){return isIdentifierChar(e,true)||e===36||e===95||e===8204||e===8205}De.regexp_eatAtomEscape=function(e){if(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)){return true}if(e.switchU){if(e.current()===99){e.raise("Invalid unicode escape")}e.raise("Invalid escape")}return false};De.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU){if(n>e.maxBackReference){e.maxBackReference=n}return true}if(n<=e.numCapturingParens){return true}e.pos=t}return false};De.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e)){e.backReferenceNames.push(e.lastStringValue);return true}e.raise("Invalid named reference")}return false};De.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};De.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e)){return true}e.pos=t}return false};De.regexp_eatZero=function(e){if(e.current()===48&&!isDecimalDigit(e.lookahead())){e.lastIntValue=0;e.advance();return true}return false};De.regexp_eatControlEscape=function(e){var t=e.current();if(t===116){e.lastIntValue=9;e.advance();return true}if(t===110){e.lastIntValue=10;e.advance();return true}if(t===118){e.lastIntValue=11;e.advance();return true}if(t===102){e.lastIntValue=12;e.advance();return true}if(t===114){e.lastIntValue=13;e.advance();return true}return false};De.regexp_eatControlLetter=function(e){var t=e.current();if(isControlLetter(t)){e.lastIntValue=t%32;e.advance();return true}return false};function isControlLetter(e){return e>=65&&e<=90||e>=97&&e<=122}De.regexp_eatRegExpUnicodeEscapeSequence=function(e){var t=e.pos;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(e.switchU&&n>=55296&&n<=56319){var i=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(r>=56320&&r<=57343){e.lastIntValue=(n-55296)*1024+(r-56320)+65536;return true}}e.pos=i;e.lastIntValue=n}return true}if(e.switchU&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&isValidUnicode(e.lastIntValue)){return true}if(e.switchU){e.raise("Invalid unicode escape")}e.pos=t}return false};function isValidUnicode(e){return e>=0&&e<=1114111}De.regexp_eatIdentityEscape=function(e){if(e.switchU){if(this.regexp_eatSyntaxCharacter(e)){return true}if(e.eat(47)){e.lastIntValue=47;return true}return false}var t=e.current();if(t!==99&&(!e.switchN||t!==107)){e.lastIntValue=t;e.advance();return true}return false};De.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48);e.advance()}while((t=e.current())>=48&&t<=57);return true}return false};De.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(isCharacterClassEscape(t)){e.lastIntValue=-1;e.advance();return true}if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){e.lastIntValue=-1;e.advance();if(e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125)){return true}e.raise("Invalid property name")}return false};function isCharacterClassEscape(e){return e===100||e===68||e===115||e===83||e===119||e===87}De.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;this.regexp_validateUnicodePropertyNameAndValue(e,n,i);return true}}e.pos=t;if(this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;this.regexp_validateUnicodePropertyNameOrValue(e,r);return true}return false};De.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){if(!has(e.unicodeProperties.nonBinary,t)){e.raise("Invalid property name")}if(!e.unicodeProperties.nonBinary[t].test(n)){e.raise("Invalid property value")}};De.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(!e.unicodeProperties.binary.test(t)){e.raise("Invalid property name")}};De.regexp_eatUnicodePropertyName=function(e){var t=0;e.lastStringValue="";while(isUnicodePropertyNameCharacter(t=e.current())){e.lastStringValue+=codePointToString(t);e.advance()}return e.lastStringValue!==""};function isUnicodePropertyNameCharacter(e){return isControlLetter(e)||e===95}De.regexp_eatUnicodePropertyValue=function(e){var t=0;e.lastStringValue="";while(isUnicodePropertyValueCharacter(t=e.current())){e.lastStringValue+=codePointToString(t);e.advance()}return e.lastStringValue!==""};function isUnicodePropertyValueCharacter(e){return isUnicodePropertyNameCharacter(e)||isDecimalDigit(e)}De.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};De.regexp_eatCharacterClass=function(e){if(e.eat(91)){e.eat(94);this.regexp_classRanges(e);if(e.eat(93)){return true}e.raise("Unterminated character class")}return false};De.regexp_classRanges=function(e){while(this.regexp_eatClassAtom(e)){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;if(e.switchU&&(t===-1||n===-1)){e.raise("Invalid character class")}if(t!==-1&&n!==-1&&t>n){e.raise("Range out of order in character class")}}}};De.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e)){return true}if(e.switchU){var n=e.current();if(n===99||isOctalDigit(n)){e.raise("Invalid class escape")}e.raise("Invalid escape")}e.pos=t}var i=e.current();if(i!==93){e.lastIntValue=i;e.advance();return true}return false};De.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98)){e.lastIntValue=8;return true}if(e.switchU&&e.eat(45)){e.lastIntValue=45;return true}if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e)){return true}e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};De.regexp_eatClassControlLetter=function(e){var t=e.current();if(isDecimalDigit(t)||t===95){e.lastIntValue=t%32;e.advance();return true}return false};De.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2)){return true}if(e.switchU){e.raise("Invalid escape")}e.pos=t}return false};De.regexp_eatDecimalDigits=function(e){var t=e.pos;var n=0;e.lastIntValue=0;while(isDecimalDigit(n=e.current())){e.lastIntValue=10*e.lastIntValue+(n-48);e.advance()}return e.pos!==t};function isDecimalDigit(e){return e>=48&&e<=57}De.regexp_eatHexDigits=function(e){var t=e.pos;var n=0;e.lastIntValue=0;while(isHexDigit(n=e.current())){e.lastIntValue=16*e.lastIntValue+hexToInt(n);e.advance()}return e.pos!==t};function isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function hexToInt(e){if(e>=65&&e<=70){return 10+(e-65)}if(e>=97&&e<=102){return 10+(e-97)}return e-48}De.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;if(t<=3&&this.regexp_eatOctalDigit(e)){e.lastIntValue=t*64+n*8+e.lastIntValue}else{e.lastIntValue=t*8+n}}else{e.lastIntValue=t}return true}return false};De.regexp_eatOctalDigit=function(e){var t=e.current();if(isOctalDigit(t)){e.lastIntValue=t-48;e.advance();return true}e.lastIntValue=0;return false};function isOctalDigit(e){return e>=48&&e<=55}De.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var i=0;i=this.input.length){return this.finishToken(d.eof)}if(e.override){return e.override(this)}else{this.readToken(this.fullCharCodeAtPos())}};ke.readToken=function(e){if(isIdentifierStart(e,this.options.ecmaVersion>=6)||e===92){return this.readWord()}return this.getTokenFromCode(e)};ke.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=57344){return e}var t=this.input.charCodeAt(this.pos+1);return(e<<10)+t-56613888};ke.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition();var t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(n===-1){this.raise(this.pos-2,"Unterminated comment")}this.pos=n+2;if(this.options.locations){E.lastIndex=t;var i;while((i=E.exec(this.input))&&i.index8&&e<14||e>=5760&&g.test(String.fromCharCode(e))){++this.pos}else{break e}}}};ke.finishToken=function(e,t){this.end=this.pos;if(this.options.locations){this.endLoc=this.curPosition()}var n=this.type;this.type=e;this.value=t;this.updateContext(n)};ke.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57){return this.readNumber(true)}var t=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&e===46&&t===46){this.pos+=3;return this.finishToken(d.ellipsis)}else{++this.pos;return this.finishToken(d.dot)}};ke.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);if(this.exprAllowed){++this.pos;return this.readRegexp()}if(e===61){return this.finishOp(d.assign,2)}return this.finishOp(d.slash,1)};ke.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1);var n=1;var i=e===42?d.star:d.modulo;if(this.options.ecmaVersion>=7&&e===42&&t===42){++n;i=d.starstar;t=this.input.charCodeAt(this.pos+2)}if(t===61){return this.finishOp(d.assign,n+1)}return this.finishOp(i,n)};ke.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){return this.finishOp(e===124?d.logicalOR:d.logicalAND,2)}if(t===61){return this.finishOp(d.assign,2)}return this.finishOp(e===124?d.bitwiseOR:d.bitwiseAND,1)};ke.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);if(e===61){return this.finishOp(d.assign,2)}return this.finishOp(d.bitwiseXOR,1)};ke.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||m.test(this.input.slice(this.lastTokEnd,this.pos)))){this.skipLineComment(3);this.skipSpace();return this.nextToken()}return this.finishOp(d.incDec,2)}if(t===61){return this.finishOp(d.assign,2)}return this.finishOp(d.plusMin,1)};ke.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1);var n=1;if(t===e){n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2;if(this.input.charCodeAt(this.pos+n)===61){return this.finishOp(d.assign,n+1)}return this.finishOp(d.bitShift,n)}if(t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45){this.skipLineComment(4);this.skipSpace();return this.nextToken()}if(t===61){n=2}return this.finishOp(d.relational,n)};ke.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===61){return this.finishOp(d.equality,this.input.charCodeAt(this.pos+2)===61?3:2)}if(e===61&&t===62&&this.options.ecmaVersion>=6){this.pos+=2;return this.finishToken(d.arrow)}return this.finishOp(e===61?d.eq:d.prefix,1)};ke.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:++this.pos;return this.finishToken(d.parenL);case 41:++this.pos;return this.finishToken(d.parenR);case 59:++this.pos;return this.finishToken(d.semi);case 44:++this.pos;return this.finishToken(d.comma);case 91:++this.pos;return this.finishToken(d.bracketL);case 93:++this.pos;return this.finishToken(d.bracketR);case 123:++this.pos;return this.finishToken(d.braceL);case 125:++this.pos;return this.finishToken(d.braceR);case 58:++this.pos;return this.finishToken(d.colon);case 63:++this.pos;return this.finishToken(d.question);case 96:if(this.options.ecmaVersion<6){break}++this.pos;return this.finishToken(d.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88){return this.readRadixNumber(16)}if(this.options.ecmaVersion>=6){if(t===111||t===79){return this.readRadixNumber(8)}if(t===98||t===66){return this.readRadixNumber(2)}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(false);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(d.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(e)+"'")};ke.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);this.pos+=t;return this.finishToken(e,n)};ke.readRegexp=function(){var e,t,n=this.pos;for(;;){if(this.pos>=this.input.length){this.raise(n,"Unterminated regular expression")}var i=this.input.charAt(this.pos);if(m.test(i)){this.raise(n,"Unterminated regular expression")}if(!e){if(i==="["){t=true}else if(i==="]"&&t){t=false}else if(i==="/"&&!t){break}e=i==="\\"}else{e=false}++this.pos}var r=this.input.slice(n,this.pos);++this.pos;var a=this.pos;var o=this.readWord1();if(this.containsEsc){this.unexpected(a)}var s=this.regexpState||(this.regexpState=new be(this));s.reset(n,r,o);this.validateRegExpFlags(s);this.validateRegExpPattern(s);var u=null;try{u=new RegExp(r,o)}catch(e){}return this.finishToken(d.regexp,{pattern:r,flags:o,value:u})};ke.readInt=function(e,t){var n=this.pos,i=0;for(var r=0,a=t==null?Infinity:t;r=97){s=o-97+10}else if(o>=65){s=o-65+10}else if(o>=48&&o<=57){s=o-48}else{s=Infinity}if(s>=e){break}++this.pos;i=i*e+s}if(this.pos===n||t!=null&&this.pos-n!==t){return null}return i};ke.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);if(n==null){this.raise(this.start+2,"Expected number in radix "+e)}if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110){n=typeof BigInt!=="undefined"?BigInt(this.input.slice(t,this.pos)):null;++this.pos}else if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}return this.finishToken(d.num,n)};ke.readNumber=function(e){var t=this.pos;if(!e&&this.readInt(10)===null){this.raise(t,"Invalid number")}var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;if(n&&this.strict){this.raise(t,"Invalid number")}var i=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&i===110){var r=this.input.slice(t,this.pos);var a=typeof BigInt!=="undefined"?BigInt(r):null;++this.pos;if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}return this.finishToken(d.num,a)}if(n&&/[89]/.test(this.input.slice(t,this.pos))){n=false}if(i===46&&!n){++this.pos;this.readInt(10);i=this.input.charCodeAt(this.pos)}if((i===69||i===101)&&!n){i=this.input.charCodeAt(++this.pos);if(i===43||i===45){++this.pos}if(this.readInt(10)===null){this.raise(t,"Invalid number")}}if(isIdentifierStart(this.fullCharCodeAtPos())){this.raise(this.pos,"Identifier directly after number")}var o=this.input.slice(t,this.pos);var s=n?parseInt(o,8):parseFloat(o);return this.finishToken(d.num,s)};ke.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){if(this.options.ecmaVersion<6){this.unexpected()}var n=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos);++this.pos;if(t>1114111){this.invalidStringToken(n,"Code point out of bounds")}}else{t=this.readHexChar(4)}return t};function codePointToString$1(e){if(e<=65535){return String.fromCharCode(e)}e-=65536;return String.fromCharCode((e>>10)+55296,(e&1023)+56320)}ke.readString=function(e){var t="",n=++this.pos;for(;;){if(this.pos>=this.input.length){this.raise(this.start,"Unterminated string constant")}var i=this.input.charCodeAt(this.pos);if(i===e){break}if(i===92){t+=this.input.slice(n,this.pos);t+=this.readEscapedChar(false);n=this.pos}else{if(isNewLine(i,this.options.ecmaVersion>=10)){this.raise(this.start,"Unterminated string constant")}++this.pos}}t+=this.input.slice(n,this.pos++);return this.finishToken(d.string,t)};var Se={};ke.tryReadTemplateToken=function(){this.inTemplateElement=true;try{this.readTmplToken()}catch(e){if(e===Se){this.readInvalidTemplateToken()}else{throw e}}this.inTemplateElement=false};ke.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9){throw Se}else{this.raise(e,t)}};ke.readTmplToken=function(){var e="",t=this.pos;for(;;){if(this.pos>=this.input.length){this.raise(this.start,"Unterminated template")}var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===d.template||this.type===d.invalidTemplate)){if(n===36){this.pos+=2;return this.finishToken(d.dollarBraceL)}else{++this.pos;return this.finishToken(d.backQuote)}}e+=this.input.slice(t,this.pos);return this.finishToken(d.template,e)}if(n===92){e+=this.input.slice(t,this.pos);e+=this.readEscapedChar(true);t=this.pos}else if(isNewLine(n)){e+=this.input.slice(t,this.pos);++this.pos;switch(n){case 13:if(this.input.charCodeAt(this.pos)===10){++this.pos}case 10:e+="\n";break;default:e+=String.fromCharCode(n);break}if(this.options.locations){++this.curLine;this.lineStart=this.pos}t=this.pos}else{++this.pos}}};ke.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0];var r=parseInt(i,8);if(r>255){i=i.slice(0,-1);r=parseInt(i,8)}this.pos+=i.length-1;t=this.input.charCodeAt(this.pos);if((i!=="0"||t===56||t===57)&&(this.strict||e)){this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode")}return String.fromCharCode(r)}if(isNewLine(t)){return""}return String.fromCharCode(t)}};ke.readHexChar=function(e){var t=this.pos;var n=this.readInt(16,e);if(n===null){this.invalidStringToken(t,"Bad character escape sequence")}return n};ke.readWord1=function(){this.containsEsc=false;var e="",t=true,n=this.pos;var i=this.options.ecmaVersion>=6;while(this.pos { Syntax error: Selector \\"button\\" is not pure (pure selectors must contain at least one local class or id) > 1 | button {} - | ^" + | ^" `) await cleanup() diff --git a/yarn.lock b/yarn.lock index 23e1dd54357c092..63a7c5a5a3492fe 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4604,7 +4604,7 @@ browserify-zlib@^0.2.0: dependencies: pako "~1.0.5" -browserslist@4.13.0, browserslist@^4.0.0, browserslist@^4.12.0, browserslist@^4.13.0, browserslist@^4.3.6, browserslist@^4.6.4, browserslist@^4.8.3, browserslist@^4.8.5: +browserslist@4.13.0, browserslist@^1.3.6, browserslist@^1.5.2, browserslist@^1.7.6, browserslist@^4.0.0, browserslist@^4.12.0, browserslist@^4.13.0, browserslist@^4.3.6, browserslist@^4.6.4, browserslist@^4.8.3, browserslist@^4.8.5: version "4.13.0" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.13.0.tgz#42556cba011e1b0a2775b611cba6a8eca18e940d" integrity sha512-MINatJ5ZNrLnQ6blGvePd/QOz9Xtu+Ne+x29iQSCHfkU5BugKVJwZKn/iiL8UbpIpa3JhviKjz+XxMo0m2caFQ== @@ -4614,14 +4614,6 @@ browserslist@4.13.0, browserslist@^4.0.0, browserslist@^4.12.0, browserslist@^4. escalade "^3.0.1" node-releases "^1.1.58" -browserslist@^1.3.6, browserslist@^1.5.2, browserslist@^1.7.6: - version "1.7.7" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-1.7.7.tgz#0bd76704258be829b2398bb50e4b62d1a166b0b9" - integrity sha1-C9dnBCWL6CmyOYu1Dkti0aFmsLk= - dependencies: - caniuse-db "^1.0.30000639" - electron-to-chromium "^1.2.7" - browserstack-local@1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/browserstack-local/-/browserstack-local-1.4.0.tgz#d979cac056f57b9af159b3bcd7fdc09b4354537c" @@ -4937,21 +4929,11 @@ caniuse-db@^1.0.30000529, caniuse-db@^1.0.30000634: version "1.0.30001023" resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30001023.tgz#f856f71af16a5a44e81f1fcefc1673912a43da72" -caniuse-db@^1.0.30000639: - version "1.0.30001150" - resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30001150.tgz#b1eeca5eb823f0f33aeb13ae64ea9f365ece3707" - integrity sha512-q5DkgNDZSiltPxdzspBDRSEU6vpIofqjIE5Dhs1i7P5QFNCUnIpFUgdPp5hdIWU7SGrMne3c/wnhKkG0OV3pCg== - -caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000981, caniuse-lite@^1.0.30001019, caniuse-lite@^1.0.30001020: +caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000981, caniuse-lite@^1.0.30001019, caniuse-lite@^1.0.30001020, caniuse-lite@^1.0.30001093, caniuse-lite@^1.0.30001113: version "1.0.30001066" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001066.tgz#0a8a58a10108f2b9bf38e7b65c237b12fd9c5f04" integrity sha512-Gfj/WAastBtfxLws0RCh2sDbTK/8rJuSeZMecrSkNGYxPcv7EzblmDGfWQCFEQcSqYE2BRgQiJh8HOD07N5hIw== -caniuse-lite@^1.0.30001093, caniuse-lite@^1.0.30001113: - version "1.0.30001150" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001150.tgz#6d0d829da654b0b233576de00335586bc2004df1" - integrity sha512-kiNKvihW0m36UhAFnl7bOAv0i1K1f6wpfVtTF5O5O82XzgtBnb05V0XeV3oZ968vfg2sRNChsHw8ASH2hDfoYQ== - capitalize@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/capitalize/-/capitalize-1.0.0.tgz#dc802c580aee101929020d2ca14b4ca8a0ae44be" @@ -6758,11 +6740,6 @@ ejs@^2.6.1: version "2.7.4" resolved "https://registry.yarnpkg.com/ejs/-/ejs-2.7.4.tgz#48661287573dcc53e366c7a1ae52c3a120eec9ba" -electron-to-chromium@^1.2.7: - version "1.3.582" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.582.tgz#1adfac5affce84d85b3d7b3dfbc4ade293a6ffc4" - integrity sha512-0nCJ7cSqnkMC+kUuPs0YgklFHraWGl/xHqtZWWtOeVtyi+YqkoAOMGuZQad43DscXCQI/yizcTa3u6B5r+BLww== - electron-to-chromium@^1.3.488: version "1.3.501" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.501.tgz#faa17a2cb0105ee30d5e1ca87eae7d8e85dd3175"