User:Thundercraft5/global.js/minify.js

/* Terser is released under the BSD license:

Copyright 2012-2018 (c) Mihai Bazon 

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // Original source at https://github.com/terser/terser // This file is minified from the original !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("source-map")):"function"==typeof define&&define.amd?define(["exports","source-map"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Terser={},e.sourceMap)}(this,(function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=n(t);function r(e){return e.split("")}function o(e,t){return t.includes(e)}class s extends Error{constructor(e,t){super,this.name="DefaultsError",this.message=e,this.defs=t}}function a(e,t,n){!0===e&&(e={}),null!=e&&"object"==typeof e&&(e=Object.assign({},e));const i=e||{};if(n)for(const e in i)if(b(i,e)&&!b(t,e))throw new s("`"+e+"` is not a supported option",t);for(const n in t)if(b(t,n))if(e&&b(e,n))if("ecma"===n){let t=0|e[n];t>5&&t<2015&&(t+=2009),i[n]=t}else i[n]=e&&b(e,n)?e[n]:t[n];else i[n]=t[n];return i}function u{}function c{return!1}function f{return!0}function l{return this}function p{return null}var h=function{function e(e,o,s){var a,u=[],c=[];function f{var f=o(e[a],a),l=f instanceof r;return l&&(f=f.v),f instanceof n?(f=f.v)instanceof i?c.push.apply(c,s?f.v.slice.reverse:f.v):c.push(f):f!==t&&(f instanceof i?u.push.apply(u,s?f.v.slice.reverse:f.v):u.push(f)),l}if(Array.isArray(e))if(s){for(a=e.length;--a>=0&&!f;);u.reverse,c.reverse}else for(a=0;a<e.length&&!f;++a);else for(a in e)if(b(e,a)&&f)break;return c.concat(u)}e.at_top=function(e){return new n(e)},e.splice=function(e){return new i(e)},e.last=function(e){return new r(e)};var t=e.skip={};function n(e){this.v=e}function i(e){this.v=e}function r(e){this.v=e}return e};function d(e,t,n){return n||(n={}),t&&(n.start||(n.start=t.start),n.end||(n.end=t.end)),new e(n)}function m(e,t){e.includes(t)||e.push(t)}function _(e,t){return e.replace(/{(.+?)}/g,(function(e,n){return t&&t[n]}))}function v(e,t){for(var n=e.length;--n>=0;)e[n]===t&&e.splice(n,1)}function g(e,t){if(e.length<2)return e.slice;return function e(n){if(n.length<=1)return n;var i=Math.floor(n.length/2),r=n.slice(0,i),o=n.slice(i);return function(e,n){for(var i=[],r=0,o=0,s=0;r<e.length&&o<n.length;)t(e[r],n[o])<=0?i[s++]=e[r++]:i[s++]=n[o++];return r<e.length&&i.push.apply(i,e.slice(r)),o<n.length&&i.push.apply(i,n.slice(o)),i}(r=e(r),o=e(o))}(e)}function y(e){return Array.isArray(e)||(e=e.split(" ")),new Set(e)}function D(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function w(e,t){return!0===e||e instanceof RegExp&&e.test(t)}var A={"\0":"0","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function x(e){return e.replace(/[\0\n\r\u2028\u2029]/g,(function(t,n){return("\\"==e[n-1]&&("\\"!=e[n-2]||/(?:^|[^\\])(?:\\{2})*$/.test(e.slice(0,n-1)))?"":"\\")+A[t]}))}function E(e,t){return e._annotations&t}function k(e,t){e._annotations|=t}var F="",C=!0,S="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",B="false null true",T="enum implements import interface package private protected public static super this "+B+" "+S,$="return new delete throw else case yield await";S=y(S),T=y(T),$=y($),B=y(B);var z=y(r("+-*&%=<>!?|~^")),O=/[0-9a-f]/i,M=/^0x[0-9a-f]+$/i,q=/^0[0-7]+$/,N=/^0o[0-7]+$/i,I=/^0b[01]+$/i,j=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i,P=/^(0[xob])?[0-9a-f]+n$/i,H=y(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","**","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","||=","&&=","??=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","??","||"]),R=y(r("  \n\r\t\f\v​           \u2028\u2029  　\ufeff")),L=y(r("\n\r\u2028\u2029")),U=y(r(";]),:")),V=y(r("[{(,;:")),Y=y(r("[]{},;:")),W={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 J(e,t){if(G(e.charCodeAt(t))){if(X(e.charCodeAt(t+1)))return e.charAt(t)+e.charAt(t+1)}else if(X(e.charCodeAt(t))&&G(e.charCodeAt(t-1)))return e.charAt(t-1)+e.charAt(t);return e.charAt(t)}function G(e){return e>=55296&&e<=56319}function X(e){return e>=56320&&e<=57343}function Z(e){return e>=48&&e<=57}function K(e){return W.ID_Start.test(e)}function Q(e){return W.ID_Continue.test(e)}const ee=/^[a-z_$][a-z0-9_$]*$/i;function te(e){return ee.test(e)}function ne(e,t){if(ee.test(e))return!0;if(!t&&/[\ud800-\udfff]/.test(e))return!1;var n=W.ID_Start.exec(e);return!(!n||0!==n.index)&&(!(e=e.slice(n[0].length))||!!(n=W.ID_Continue.exec(e))&&n[0].length===e.length)}function ie(e,t=!0){if(!t&&e.includes("e"))return NaN;if(M.test(e))return parseInt(e.substr(2),16);if(q.test(e))return parseInt(e.substr(1),8);if(N.test(e))return parseInt(e.substr(2),8);if(I.test(e))return parseInt(e.substr(2),2);if(j.test(e))return parseFloat(e);var n=parseFloat(e);return n==e?n:void 0}class re 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 oe(e,t,n,i,r){throw new re(e,t,n,i,r)}function se(e,t,n){return e.type==t&&(null==n||e.value==n)}var ae={};function ue(e,t,n,i){var r={text:e,filename:t,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,brace_counter:0,template_braces:[],comments_before:[],directives:{},directive_stack:[]};function o{return J(r.text,r.pos)}function s{if(!(46===r.text.charCodeAt(r.pos+1)))return!1;const e=r.text.charCodeAt(r.pos+2);return e<48||e>57}function a(e,t){var n=J(r.text,r.pos++);if(e&&!n)throw ae;return L.has(n)?(r.newline_before=r.newline_before||!t,++r.line,r.col=0,"\r"==n&&"\n"==o&&(++r.pos,n="\n")):(n.length>1&&(++r.pos,++r.col),++r.col),n}function u(e){for(e--;)a}function c(e){return r.text.substr(r.pos,e.length)==e}function f(e,t){var n=r.text.indexOf(e,r.pos);if(t&&-1==n)throw ae;return n}function l{r.tokline=r.line,r.tokcol=r.col,r.tokpos=r.pos}var p=!1,h=null;function d(e,n,i){r.regex_allowed="operator"==e&&!fe.has(n)||"keyword"==e&&$.has(n)||"punc"==e&&V.has(n)||"arrow"==e,"punc"!=e||"."!=n&&"?."!=n?i||(p=!1):p=!0;const o=r.tokline,s=r.tokcol,a=r.tokpos,u=r.newline_before,c=t;let f=[],l=[];i||(f=r.comments_before,l=r.comments_before=[]),r.newline_before=!1;const d=new ye(e,n,o,s,a,u,f,l,c);return i||(h=d),d}function m{for(R.has(o);)a}function _(e){oe(e,t,r.tokline,r.tokcol,r.tokpos)}function v(e){var t=!1,n=!1,i=!1,r="."==e,s=!1,u=!1,c=function(e){for(var t,n="",i=0;(t=o)&&e(t,i++);)n+=a;return n}((function(o,a){if(s)return!1;switch(o.charCodeAt(0)){case 95:return u=!0;case 98:case 66:return i=!0;case 111:case 79:case 120:case 88:return!i&&(i=!0);case 101:case 69:return!!i||!t&&(t=n=!0);case 45:return n||0==a&&!e;case 43:return n;case n=!1,46:return!(r||i||t)&&(r=!0)}return"n"===o?(s=!0,!0):O.test(o)}));if(e&&(c=e+c),F=c,q.test(c)&&U.has_directive("use strict")&&_("Legacy octal literals are not allowed in strict mode"),u&&(c.endsWith("_")?_("Numeric separators are not allowed at the end of numeric literals"):c.includes("__")&&_("Only one underscore is allowed as numeric separator"),c=c.replace(/_/g,"")),c.endsWith("n")){const e=c.slice(0,-1),t=ie(e,M.test(e));if(!r&&P.test(c)&&!isNaN(t))return d("big_int",e);_("Invalid or unexpected token")}var f=ie(c);if(!isNaN(f))return d("num",f);_("Invalid syntax: "+c)}function g(e){return e>="0"&&e<="7"}function y(e,t,n){var i,s=a(!0,e);switch(s.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(D(2,t));case 117:if("{"==o){for(a(!0),"}"===o&&_("Expecting hex-character between {}");"0"==o;)a(!0);var u,c=f("}",!0)-r.pos;return(c>6||(u=D(c,t))>1114111)&&_("Unicode reference out of bounds"),a(!0),(i=u)>65535?(i-=65536,String.fromCharCode(55296+(i>>10))+String.fromCharCode(i%1024+56320)):String.fromCharCode(i)}return String.fromCharCode(D(4,t));case 10:return"";case 13:if("\n"==o)return a(!0,e),""}if(g(s)){if(n&&t){"0"===s&&!g(o)||_("Octal escape sequences are not allowed in template strings")}return function(e,t){var n=o;n>="0"&&n<="7"&&(e+=a(!0))[0]<="3"&&(n=o)>="0"&&n<="7"&&(e+=a(!0));if("0"===e)return"\0";e.length>0&&U.has_directive("use strict")&&t&&_("Legacy octal escape sequences are not allowed in strict mode");return String.fromCharCode(parseInt(e,8))}(s,t)}return s}function D(e,t){for(var n=0;e>0;--e){if(!t&&isNaN(parseInt(o,16)))return parseInt(n,16)||"";var i=a(!0);isNaN(parseInt(i,16))&&_("Invalid hex-character pattern in string"),n+=i}return parseInt(n,16)}var b=j("Unterminated string constant",(function{const e=r.pos;for(var t=a,n=[];;){var i=a(!0,!0);if("\\"==i)i=y(!0,!0);else if("\r"==i||"\n"==i)_("Unterminated string constant");else if(i==t)break;n.push(i)}var o=d("string",n.join(""));return F=r.text.slice(e,r.pos),o.quote=t,o})),w=j("Unterminated template",(function(e){e&&r.template_braces.push(r.brace_counter);var t,n,i="",s="";for(a(!0,!0);"`"!=(t=a(!0,!0));){if("\r"==t)"\n"==o&&++r.pos,t="\n";else if("$"==t&&"{"==o)return a(!0,!0),r.brace_counter++,n=d(e?"template_head":"template_substitution",i),F=s,C=!1,n;if(s+=t,"\\"==t){var u=r.pos;t=y(!0,!(h&&("name"===h.type||"punc"===h.type&&(")"===h.value||"]"===h.value))),!0),s+=r.text.substr(u,r.pos-u)}i+=t}return r.template_braces.pop,n=d(e?"template_head":"template_substitution",i),F=s,C=!0,n}));function A(e){var t,n=r.regex_allowed,i=function{for(var e=r.text,t=r.pos,n=r.text.length;t<n;++t){var i=e[t];if(L.has(i))return t}return-1};return-1==i?(t=r.text.substr(r.pos),r.pos=r.text.length):(t=r.text.substring(r.pos,i),r.pos=i),r.col=r.tokcol+(r.pos-r.tokpos),r.comments_before.push(d(e,t,!0)),r.regex_allowed=n,U}var x=j("Unterminated multiline comment",(function{var e=r.regex_allowed,t=f("*/",!0),n=r.text.substring(r.pos,t).replace(/\r\n|\r|\u2028|\u2029/g,"\n");return u(function(e){for(var t=0,n=0;n<e.length;n++)G(e.charCodeAt(n))&&X(e.charCodeAt(n+1))&&(t++,n++);return e.length-t}(n)+2),r.comments_before.push(d("comment2",n,!0)),r.newline_before=r.newline_before||n.includes("\n"),r.regex_allowed=e,U})),E=j("Unterminated identifier name",(function{var e,t=[],n=!1,i=function{return n=!0,a,"u"!==o&&_("Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}"),y(!1,!0)};if("\\"===(e=o))K(e=i)||_("First identifier char is an invalid identifier char");else{if(!K(e))return"";a}for(t.push(e);null!=(e=o);){if("\\"===(e=o))Q(e=i)||_("Invalid escaped identifier char");else{if(!Q(e))break;a}t.push(e)}const r=t.join("");return T.has(r)&&n&&_("Escaped characters are not allowed in keywords"),r})),k=j("Unterminated regular expression",(function(e){for(var t,n=!1,i=!1;t=a(!0);)if(L.has(t))_("Unexpected line terminator");else if(n)e+="\\"+t,n=!1;else if("["==t)i=!0,e+=t;else if("]"==t&&i)i=!1,e+=t;else{if("/"==t&&!i)break;"\\"==t?n=!0:e+=t}return d("regexp","/"+e+"/"+E)}));function N(e){return d("operator",function e(t){if(!o)return t;var n=t+o;return H.has(n)?(a,e(n)):t}(e||a))}function I{switch(a,o){case"/":return a,A("comment1");case"*":return a,x}return r.regex_allowed?k(""):N("/")}function j(e,t){return function(n){try{return t(n)}catch(t){if(t!==ae)throw t;_(e)}}}function U(e){if(null!=e)return k(e);for(i&&0==r.pos&&c("#!")&&(l,u(2),A("comment5"));;){if(m,l,n){if(c("\x3c!--")){u(4),A("comment3");continue}if(c("--\x3e")&&r.newline_before){u(3),A("comment4");continue}}var t=o;if(!t)return d("eof");var f=t.charCodeAt(0);switch(f){case 34:case 39:return b;case 46:return a,Z(o.charCodeAt(0))?v("."):"."===o?(a,a,d("expand","...")):d("punc",".");case 47:var h=I;if(h===U)continue;return h;case 61:return a,">"===o?(a,d("arrow","=>")):N("=");case 63:if(!s)break;return a,a,d("punc","?.");case 96:return w(!0);case 123:r.brace_counter++;break;case 125:if(r.brace_counter--,r.template_braces.length>0&&r.template_braces[r.template_braces.length-1]===r.brace_counter)return w(!1)}if(Z(f))return v;if(Y.has(t))return d("punc",a);if(z.has(t))return N;if(92==f||K(t))return g=void 0,g=E,p?d("name",g):B.has(g)?d("atom",g):S.has(g)?H.has(g)?d("operator",g):d("keyword",g):d("name",g);if(35==f)return a,d("privatename",E);break}var g;_("Unexpected character '"+t+"'")}return U.next=a,U.peek=o,U.context=function(e){return e&&(r=e),r},U.add_directive=function(e){r.directive_stack[r.directive_stack.length-1].push(e),void 0===r.directives[e]?r.directives[e]=1:r.directives[e]++},U.push_directives_stack=function{r.directive_stack.push([])},U.pop_directives_stack=function{for(var e=r.directive_stack[r.directive_stack.length-1],t=0;t0},U}var ce=y(["typeof","void","delete","--","++","!","~","-","+"]),fe=y(["--","++"]),le=y(["=","+=","-=","??=","&&=","||=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&="]),pe=y(["??=","&&=","||="]),he=function(e,t){for(var n=0;n","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**",{}),de=y(["atom","num","big_int","string","regexp","name"]);function me(e,t){const n=new WeakMap;t=a(t,{bare_returns:!1,ecma:null,expression:!1,filename:null,html5_comments:!0,module:!1,shebang:!0,strict:!1,toplevel:null},!0);var i={input:"string"==typeof e?ue(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:!0,in_loop:0,labels:[]};function r(e,t){return se(i.token,e,t)}function o{return i.peeked||(i.peeked=i.input)}function s{return i.prev=i.token,i.peeked||o,i.token=i.peeked,i.peeked=null,i.in_directives=i.in_directives&&("string"==i.token.type||r("punc",";")),i.token}function u{return i.prev}function c(e,t,n,r){var o=i.input.context;oe(e,o.filename,null!=t?t:o.tokline,null!=n?n:o.tokcol,null!=r?r:o.tokpos)}function f(e,t){c(t,e.line,e.col)}function l(e){null==e&&(e=i.token),f(e,"Unexpected token: "+e.type+" ("+e.value+")")}function p(e,t){if(r(e,t))return s;f(i.token,"Unexpected token "+i.token.type+" «"+i.token.value+"», expected "+e+" «"+t+"»")}function h(e){return p("punc",e)}function d(e){return e.nlb||!e.comments_before.every((e=>!e.nlb))}function m{return!t.strict&&(r("eof")||r("punc","}")||d(i.token))}function _{return i.in_generator===i.in_function}function v{return i.in_async===i.in_function||0===i.in_function&&i.input.has_directive("use strict")}function g(e){r("punc",";")?s:e||m||l}function y{h("(");var e=$t(!0);return h(")"),e}function D(e){return function(...t){const n=i.token,r=e(...t);return r.start=n,r.end=u,r}}function b{(r("operator","/")||r("operator","/="))&&(i.peeked=null,i.token=i.input(i.token.value.substr(1)))}i.token=s;var w=D((function e(n,a,_){switch(b,i.token.type){case"string":if(i.in_directives){var D=o;!F.includes("\\")&&(se(D,"punc",";")||se(D,"punc","}")||d(D)||se(D,"eof"))?i.input.add_directive(i.token.value):i.in_directives=!1}var w=i.in_directives,k=x;return w&&k.body instanceof kn?new Ae(k.body):k;case"template_head":case"num":case"big_int":case"regexp":case"operator":case"atom":return x;case"name":if("async"==i.token.value&&se(o,"keyword","function"))return s,s,a&&c("functions are not allowed as the body of a loop"),O(We,!1,!0,n);if("import"==i.token.value&&!se(o,"punc","(")&&!se(o,"punc",".")){s;var C=function{var e,t,n=u;r("name")&&(e=be(_n));r("punc",",")&&s;((t=ae(!0))||e)&&p("name","from");var o=i.token;"string"!==o.type&&l;return s,new bt({start:n,imported_name:e,imported_names:t,module_name:new kn({start:o,value:o.value,quote:o.quote,end:o}),end:i.token})};return g,C}return se(o,"punc",":")?A:x;case"punc":switch(i.token.value){case"{":return new Ce({start:i.token,body:P,end:u});case"[":case"(":return x;case";":return i.in_directives=!1,s,new Se;default:l}case"keyword":switch(i.token.value){case"break":return s,E(it);case"continue":return s,E(rt);case"debugger":return s,g,new we;case"do":s;var T=Gt(e);p("keyword","while");var z=y;return g(!0),new Oe({body:T,condition:z});case"while":return s,new Me({condition:y,body:Gt((function{return e(!1,!0)}))});case"for":return s,function{var e="`for await` invalid in this context",t=i.token;"name"==t.type&&"await"==t.value?(v||f(t,e),s):t=!1;h("(");var n=null;if(r("punc",";"))t&&f(t,e);else{n=r("keyword","var")?(s,L(!0)):r("keyword","let")?(s,V(!0)):r("keyword","const")?(s,Y(!0)):$t(!0,!0);var o=r("operator","in"),a=r("name","of");if(t&&!a&&f(t,e),o||a)return n instanceof mt?n.definitions.length>1&&f(n.start,"Only one variable declaration allowed in for..in loop"):Qe(n)||(n=nt(n))instanceof Je||f(n.start,"Invalid left-hand side in for..in loop"),s,o?$(n):B(n,!!t)}return S(n)};case"class":return s,a&&c("classes are not allowed as the body of a loop"),_&&c("classes are not allowed as the body of an if"),te(Kt);case"function":return s,a&&c("functions are not allowed as the body of a loop"),O(We,!1,!1,n);case"if":return s,j;case"return":0!=i.in_function||t.bare_returns||c("'return' outside of function"),s;var M=null;return r("punc",";")?s:m||(M=$t(!0),g),new et({value:M});case"switch":return s,new ut({expression:y,body:Gt(H)});case"throw":s,d(i.token)&&c("Illegal newline after 'throw'");M=$t(!0);return g,new tt({value:M});case"try":return s,function{var e=P,t=null,n=null;if(r("keyword","catch")){var o=i.token;if(s,r("punc","{"))var a=null;else{h("(");a=q(void 0,mn);h(")")}t=new ht({start:o,argname:a,body:P,end:u})}if(r("keyword","finally")){o=i.token;s,n=new dt({start:o,body:P,end:u})}t||n||c("Missing catch/finally blocks");return new pt({body:e,bcatch:t,bfinally:n})};case"var":s;C=L;return g,C;case"let":s;C=V;return g,C;case"const":s;C=Y;return g,C;case"with":return i.input.has_directive("use strict")&&c("Strict mode may not include a with statement"),s,new je({expression:y,body:e});case"export":if(!se(o,"punc","(")){s;C=me;return r("punc",";")&&g,C}}}l}));function A{var e=be(gn);"await"===e.name&&i.in_async===i.in_function&&f(i.prev,"await cannot be used as label inside async function"),i.labels.some((t=>t.name===e.name))&&c("Label "+e.name+" defined twice"),h(":"),i.labels.push(e);var t=w;return i.labels.pop,t instanceof $e||e.references.forEach((function(t){t instanceof rt&&(t=t.label.start,c("Continue label `"+e.name+"` refers to non-IterationStatement.",t.line,t.col,t.pos))})),new Te({body:t,label:e})}function x(e){return new xe({body:(e=$t(!0),g,e)})}function E(e){var t,n=null;m||(n=be(wn,!0)),null!=n?((t=i.labels.find((e=>e.name===n.name)))||c("Undefined label "+n.name),n.thedef=t):0==i.in_loop&&c(e.TYPE+" not inside a loop or switch"),g;var r=new e({label:n});return t&&t.references.push(r),r}function S(e){h(";");var t=r("punc",";")?null:$t(!0);h(";");var n=r("punc",")")?null:$t(!0);return h(")"),new qe({init:e,condition:t,step:n,body:Gt((function{return w(!1,!0)}))})}function B(e,t){var n=e instanceof mt?e.definitions[0].name:null,i=$t(!0);return h(")"),new Ie({await:t,init:e,name:n,object:i,body:Gt((function{return w(!1,!0)}))})}function $(e){var t=$t(!0);return h(")"),new Ne({init:e,object:t,body:Gt((function{return w(!1,!0)}))})}var z=function(e,t,n){d(i.token)&&c("Unexpected newline before arrow (=>)"),p("arrow","=>");var o=I(r("punc","{"),!1,n),s=o instanceof Array&&o.length?o[o.length-1].end:o instanceof Array?e:o.end;return new Ye({start:e,end:s,async:n,argnames:t,body:o})},O=function(e,t,n,i){var o=e===We,a=r("operator","*");a&&s;var c=r("name")?be(o?cn:pn):null;o&&!c&&(i?e=Ve:l),!c||e===Ue||c instanceof nn||l(u);var f=[],p=I(!0,a||t,n,c,f);return new e({start:f.start,end:p.end,is_generator:a,async:n,name:c,argnames:f,body:p})};function M(e,t){var n=new Set,i=!1,r=!1,o=!1,s=!!t,a={add_parameter:function(t){if(n.has(t.value))!1===i&&(i=t),a.check_strict;else if(n.add(t.value),e)switch(t.value){case"arguments":case"eval":case"yield":s&&f(t,"Unexpected "+t.value+" identifier as parameter inside strict mode");break;default:T.has(t.value)&&l}},mark_default_assignment:function(e){!1===r&&(r=e)},mark_spread:function(e){!1===o&&(o=e)},mark_strict_mode:function{s=!0},is_strict:function{return!1!==r||!1!==o||s},check_strict:function{a.is_strict&&!1!==i&&f(i,"Parameter "+i.value+" was used already")}};return a}function q(e,t){var n,o=!1;return void 0===e&&(e=M(!0,i.input.has_directive("use strict"))),r("expand","...")&&(o=i.token,e.mark_spread(i.token),s),n=N(e,t),r("operator","=")&&!1===o&&(e.mark_default_assignment(i.token),s,n=new It({start:n.start,left:n,operator:"=",right:$t(!1),end:i.token})),!1!==o&&(r("punc",")")||l,n=new Re({start:o,expression:n,end:o})),e.check_strict,n}function N(e,t){var n,a=[],f=!0,p=!1,d=i.token;if(void 0===e&&(e=M(!1,i.input.has_directive("use strict"))),t=void 0===t?un:t,r("punc","[")){for(s;!r("punc","]");){if(f?f=!1:h(","),r("expand","...")&&(p=!0,n=i.token,e.mark_spread(i.token),s),r("punc"))switch(i.token.value){case",":a.push(new On({start:i.token,end:i.token}));continue;case"]":break;case"[":case"{":a.push(N(e,t));break;default:l}else r("name")?(e.add_parameter(i.token),a.push(be(t))):c("Invalid function parameter");r("operator","=")&&!1===p&&(e.mark_default_assignment(i.token),s,a[a.length-1]=new It({start:a[a.length-1].start,left:a[a.length-1],operator:"=",right:$t(!1),end:i.token})),p&&(r("punc","]")||c("Rest element must be last element"),a[a.length-1]=new Re({start:n,expression:a[a.length-1],end:n}))}return h("]"),e.check_strict,new Je({start:d,names:a,is_array:!0,end:u})}if(r("punc","{")){for(s;!r("punc","}");){if(f?f=!1:h(","),r("expand","...")&&(p=!0,n=i.token,e.mark_spread(i.token),s),r("name")&&(se(o,"punc")||se(o,"operator"))&&[",","}","="].includes(o.value)){e.add_parameter(i.token);var m=u,_=be(t);p?a.push(new Re({start:n,expression:_,end:_.end})):a.push(new Rt({start:m,key:_.name,value:_,end:_.end}))}else{if(r("punc","}"))continue;var v=i.token,g=_e;null===g?l(u):"name"!==u.type||r("punc",":")?(h(":"),a.push(new Rt({start:v,quote:v.quote,key:g,value:N(e,t),end:u}))):a.push(new Rt({start:u,key:g,value:new t({start:u,name:g,end:u}),end:u}))}p?r("punc","}")||c("Rest element must be last element"):r("operator","=")&&(e.mark_default_assignment(i.token),s,a[a.length-1].value=new It({start:a[a.length-1].value.start,left:a[a.length-1].value,operator:"=",right:$t(!1),end:i.token}))}return h("}"),e.check_strict,new Je({start:d,names:a,is_array:!1,end:u})}if(r("name"))return e.add_parameter(i.token),be(t);c("Invalid function parameter")}function I(e,t,n,o,a){var u=i.in_loop,c=i.labels,f=i.in_generator,l=i.in_async;if(++i.in_function,t&&(i.in_generator=i.in_function),n&&(i.in_async=i.in_function),a&&function(e){var t=M(!0,i.input.has_directive("use strict"));for(h("(");!r("punc",")");){var n=q(t);if(e.push(n),r("punc",")")||h(","),n instanceof Re)break}s}(a),e&&(i.in_directives=!0),i.in_loop=0,i.labels=[],e){i.input.push_directives_stack;var p=P;o&&ye(o),a&&a.forEach(ye),i.input.pop_directives_stack}else p=[new et({start:i.token,value:$t(!1),end:i.token})];return--i.in_function,i.in_loop=u,i.labels=c,i.in_generator=f,i.in_async=l,p}function j{var e=y,t=w(!1,!1,!0),n=null;return r("keyword","else")&&(s,n=w(!1,!1,!0)),new at({condition:e,body:t,alternative:n})}function P{h("{");for(var e=[];!r("punc","}");)r("eof")&&l,e.push(w);return s,e}function H{h("{");for(var e,t=[],n=null,o=null;!r("punc","}");)r("eof")&&l,r("keyword","case")?(o&&(o.end=u),n=[],o=new lt({start:(e=i.token,s,e),expression:$t(!0),body:n}),t.push(o),h(":")):r("keyword","default")?(o&&(o.end=u),n=[],o=new ft({start:(e=i.token,s,h(":"),e),body:n}),t.push(o)):(n||l,n.push(w));return o&&(o.end=u),s,t}function R(e,t){for(var n,o=[];;){var a="var"===t?rn:"const"===t?sn:"let"===t?an:null;if(r("punc","{")||r("punc","[")?n=new yt({start:i.token,name:N(void 0,a),value:r("operator","=")?(p("operator","="),$t(!1,e)):null,end:u}):"import"==(n=new yt({start:i.token,name:be(a),value:r("operator","=")?(s,$t(!1,e)):e||"const"!==t?null:c("Missing initializer in const declaration"),end:u})).name.name&&c("Unexpected token: import"),o.push(n),!r("punc",","))break;s}return o}var L=function(e){return new _t({start:u,definitions:R(e,"var"),end:u})},V=function(e){return new vt({start:u,definitions:R(e,"let"),end:u})},Y=function(e){return new gt({start:u,definitions:R(e,"const"),end:u})};function W{var e,t=i.token;switch(t.type){case"name":e=ge(yn);break;case"num":e=new Fn({start:t,end:t,value:t.value,raw:F});break;case"big_int":e=new Cn({start:t,end:t,value:t.value});break;case"string":e=new kn({start:t,end:t,value:t.value,quote:t.quote});break;case"regexp":const[n,i,r]=t.value.match(/^\/(.*)\/(\w*)$/);e=new Sn({start:t,end:t,value:{source:i,flags:r}});break;case"atom":switch(t.value){case"false":e=new Nn({start:t,end:t});break;case"true":e=new In({start:t,end:t});break;case"null":e=new Tn({start:t,end:t})}}return s,e}function J(e,t){var n=function(e,t){return t?new It({start:e.start,left:e,operator:"=",right:t,end:t.end}):e};return e instanceof Pt?n(new Je({start:e.start,end:e.end,is_array:!1,names:e.properties.map((e=>J(e)))}),t):e instanceof Rt?(e.value=J(e.value),n(e,t)):e instanceof On?e:e instanceof Je?(e.names=e.names.map((e=>J(e))),n(e,t)):e instanceof yn?n(new un({name:e.name,start:e.start,end:e.end}),t):e instanceof Re?(e.expression=J(e.expression),n(e,t)):e instanceof jt?n(new Je({start:e.start,end:e.end,is_array:!0,names:e.elements.map((e=>J(e)))}),t):e instanceof Nt?n(J(e.left,e.right),t):e instanceof It?(e.left=J(e.left),e):void c("Invalid function parameter",e.start.line,e.start.col)}var G=function(e,t){if(r("operator","new"))return function(e){var t=i.token;if(p("operator","new"),r("punc","."))return s,p("name","target"),ke(new tn({start:t,end:u}),e);var n,o=G(!1);r("punc","(")?(s,n=Z(")",!0)):n=[];var a=new Et({start:t,expression:o,args:n,end:u});return Ee(a),ke(a,e)}(e);if(r("operator","import"))return function{var e=i.token;return p("operator","import"),p("punc","."),p("name","meta"),ke(new wt({start:e,end:u}),!1)};var a,c=i.token,f=r("name","async")&&"["!=(a=o).value&&"arrow"!=a.type&&W;if(r("punc")){switch(i.token.value){case"(":if(f&&!e)break;var d=function(e,t){var n,o,a,c=[];for(h("(");!r("punc",")");)n&&l(n),r("expand","...")?(n=i.token,t&&(o=i.token),s,c.push(new Re({start:u,expression:$t,end:i.token}))):c.push($t),r("punc",")")||(h(","),r("punc",")")&&(a=u,t&&(o=a)));return h(")"),e&&r("arrow","=>")?n&&a&&l(a):o&&l(o),c}(t,!f);if(t&&r("arrow","=>"))return z(c,d.map((e=>J(e))),!!f);var m=f?new xt({expression:f,args:d}):1==d.length?d[0]:new kt({expressions:d});if(m.start){const e=c.comments_before.length;if(n.set(c,e),m.start.comments_before.unshift(...c.comments_before),c.comments_before=m.start.comments_before,0==e&&c.comments_before.length>0){var _=c.comments_before[0];_.nlb||(_.nlb=c.nlb,c.nlb=!1)}c.comments_after=m.start.comments_after}m.start=c;var v=u;return m.end&&(v.comments_before=m.end.comments_before,m.end.comments_after.push(...v.comments_after),v.comments_after=m.end.comments_after),m.end=v,m instanceof xt&&Ee(m),ke(m,e);case"[":return ke(K,e);case"{":return ke(ee,e)}f||l}if(t&&r("name")&&se(o,"arrow")){var g=new un({name:i.token.value,start:c,end:c});return s,z(c,[g],!!f)}if(r("keyword","function")){s;var y=O(Ve,!1,!!f);return y.start=c,y.end=u,ke(y,e)}if(f)return ke(f,e);if(r("keyword","class")){s;var D=te(Qt);return D.start=c,D.end=u,ke(D,e)}return r("template_head")?ke(X,e):de.has(i.token.type)?ke(W,e):void l};function X{var e=[],t=i.token;for(e.push(new Ze({start:i.token,raw:F,value:i.token.value,end:i.token}));!C;)s,b,e.push($t(!0)),e.push(new Ze({start:i.token,raw:F,value:i.token.value,end:i.token}));return s,new Xe({start:t,segments:e,end:i.token})}function Z(e,t,n){for(var o=!0,a=[];!r("punc",e)&&(o?o=!1:h(","),!t||!r("punc",e));)r("punc",",")&&n?a.push(new On({start:i.token,end:i.token})):r("expand","...")?(s,a.push(new Re({start:u,expression:$t,end:i.token}))):a.push($t(!1));return s,a}var K=D((function{return h("["),new jt({elements:Z("]",!t.strict,!0)})})),Q=D(((e,t)=>O(Ue,e,t))),ee=D((function{var e=i.token,n=!0,o=[];for(h("{");!r("punc","}")&&(n?n=!1:h(","),t.strict||!r("punc","}"));)if("expand"!=(e=i.token).type){var a,c=_e;if(r("punc",":"))null===c?l(u):(s,a=$t(!1));else{var f=ne(c,e);if(f){o.push(f);continue}a=new yn({start:u,name:c,end:u})}r("operator","=")&&(s,a=new Nt({start:e,left:a,operator:"=",right:$t(!1),logical:!1,end:u})),o.push(new Rt({start:e,quote:e.quote,key:c instanceof De?c:""+c,value:a,end:u}))}else s,o.push(new Re({start:e,expression:$t(!1),end:u}));return s,new Pt({properties:o})}));function te(e){var t,n,o,a,c=[];for(i.input.push_directives_stack,i.input.add_directive("use strict"),"name"==i.token.type&&"extends"!=i.token.value&&(o=be(e===Kt?hn:dn)),e!==Kt||o||l,"extends"==i.token.value&&(s,a=$t(!0)),h("{");r("punc",";");)s;for(!r("punc","}");)for(t=i.token,(n=ne(_e,t,!0))||l,c.push(n);r("punc",";");)s;return i.input.pop_directives_stack,s,new e({start:t,name:o,extends:a,properties:c,end:u})}function ne(e,t,n){var o=function(e,t){return"string"==typeof e||"number"==typeof e?new fn({start:t,name:""+e,end:u}):(null===e&&l,e)};var a="privatename"==t.type,c=!1,f=!1,p=!1,h=t;if(n&&"static"===e&&!r("punc","(")&&(f=!0,a="privatename"==(h=i.token).type,e=_e),"async"!==e||r("punc","(")||r("punc",",")||r("punc","}")||r("operator","=")||(c=!0,a="privatename"==(h=i.token).type,e=_e),null===e&&(p=!0,a="privatename"==(h=i.token).type,null===(e=_e)&&l),r("punc","(")){e=o(e,t);return new(a?Jt:Wt)({start:t,static:f,is_generator:p,async:c,key:e,quote:e instanceof fn?h.quote:void 0,value:Q(p,c),end:u})}const d=i.token;if(("get"===e||"set"===e)&&"privatename"===d.type){s;return new("get"===e?Ut:Lt)({start:t,static:f,key:o(d.value,t),value:Q,end:u})}if("get"==e){if(!r("punc")||r("punc","["))return e=o(_e,t),new Yt({start:t,static:f,key:e,quote:e instanceof fn?d.quote:void 0,value:Q,end:u})}else if("set"==e&&(!r("punc")||r("punc","[")))return e=o(_e,t),new Vt({start:t,static:f,key:e,quote:e instanceof fn?d.quote:void 0,value:Q,end:u});if(n){const n=(e=>"string"==typeof e||"number"==typeof e?new ln({start:h,end:h,name:""+e}):(null===e&&l,e))(e),i=n instanceof ln?h.quote:void 0,o=a?Zt:Xt;if(r("operator","="))return s,new o({start:t,static:f,quote:i,key:n,value:$t(!1),end:u});if(r("name")||r("privatename")||r("operator","*")||r("punc",";")||r("punc","}"))return new o({start:t,static:f,quote:i,key:n,end:u})}}function ie(e){function t(e){return new e({name:_e,start:u,end:u})}var n,o,a=e?vn:bn,c=e?_n:Dn,f=i.token;return e?n=t(a):o=t(c),r("name","as")?(s,e?o=t(c):n=t(a)):e?o=new c(n):n=new a(o),new Dt({start:f,foreign_name:n,name:o,end:u})}function re(e,t){var n,r=e?vn:bn,o=e?_n:Dn,s=i.token,a=u;return t=t||new o({name:"*",start:s,end:a}),n=new r({name:"*",start:s,end:a}),new Dt({start:s,foreign_name:n,name:t,end:a})}function ae(e){var t;if(r("punc","{")){for(s,t=[];!r("punc","}");)t.push(ie(e)),r("punc",",")&&s;s}else if(r("operator","*")){var n;s,e&&r("name","as")&&(s,n=be(e?_n:bn)),t=[re(e,n)]}return t}function me{var e,t,n,a,c,f=i.token;if(r("keyword","default"))e=!0,s;else if(t=ae(!1)){if(r("name","from")){s;var p=i.token;return"string"!==p.type&&l,s,new At({start:f,is_default:e,exported_names:t,module_name:new kn({start:p,value:p.value,quote:p.quote,end:p}),end:u})}return new At({start:f,is_default:e,exported_names:t,end:u})}return r("punc","{")||e&&(r("keyword","class")||r("keyword","function"))&&se(o,"punc")?(a=$t(!1),g):(n=w(e))instanceof mt&&e?l(n.start):n instanceof mt||n instanceof Le||n instanceof Kt?c=n:n instanceof xe?a=n.body:l(n.start),new At({start:f,is_default:e,exported_value:a,exported_definition:c,end:u})}function _e{var e=i.token;switch(e.type){case"punc":if("["===e.value){s;var t=$t(!1);return h("]"),t}l(e);case"operator":if("*"===e.value)return s,null;["delete","in","instanceof","new","typeof","void"].includes(e.value)||l(e);case"name":case"privatename":case"string":case"num":case"big_int":case"keyword":case"atom":return s,e.value;default:l(e)}}function ve{var e=i.token;return"name"!=e.type&&"privatename"!=e.type&&l,s,e.value}function ge(e){var t=i.token.value;return new("this"==t?An:"super"==t?xn:e)({name:String(t),start:i.token,end:i.token})}function ye(e){var t=e.name;_&&"yield"==t&&f(e.start,"Yield cannot be used as identifier inside generators"),i.input.has_directive("use strict")&&("yield"==t&&f(e.start,"Unexpected yield identifier inside strict mode"),e instanceof nn&&("arguments"==t||"eval"==t)&&f(e.start,"Unexpected "+t+" in strict mode"))}function be(e,t){if(!r("name"))return t||c("Name expected"),null;var n=ge(e);return ye(n),s,n}function Ee(e){var t=e.start,i=t.comments_before;const r=n.get(t);for(var o=null!=r?r:i.length;--o>=0;){var s=i[o];if(/[@#]__/.test(s.value)){if(/[@#]__PURE__/.test(s.value)){k(e,Un);break}if(/[@#]__INLINE__/.test(s.value)){k(e,Vn);break}if(/[@#]__NOINLINE__/.test(s.value)){k(e,Yn);break}}}}var ke=function(e,t,n){var i=e.start;if(r("punc",".")){s;const o=r("privatename")?St:Ct;return ke(new o({start:i,expression:e,optional:!1,property:ve,end:u}),t,n)}if(r("punc","[")){s;var o=$t(!0);return h("]"),ke(new Bt({start:i,expression:e,optional:!1,property:o,end:u}),t,n)}if(t&&r("punc","(")){s;var a=new xt({start:i,expression:e,optional:!1,args:Fe,end:u});return Ee(a),ke(a,!0,n)}if(r("punc","?.")){let n;if(s,t&&r("punc","(")){s;const t=new xt({start:i,optional:!0,expression:e,args:Fe,end:u});Ee(t),n=ke(t,!0,!0)}else if(r("name")||r("privatename")){const o=r("privatename")?St:Ct;n=ke(new o({start:i,expression:e,optional:!0,property:ve,end:u}),t,!0)}else if(r("punc","[")){s;const r=$t(!0);h("]"),n=ke(new Bt({start:i,expression:e,optional:!0,property:r,end:u}),t,!0)}return n||l,n instanceof Tt?n:new Tt({start:i,expression:n,end:u})}return r("template_head")?(n&&l,ke(new Ge({start:i,prefix:e,template_string:X,end:u}),t)):e};function Fe{for(var e=[];!r("punc",")");)r("expand","...")?(s,e.push(new Re({start:u,expression:$t(!1),end:u}))):e.push($t(!1)),r("punc",")")||h(",");return s,e}var Be=function(e,t){var n=i.token;if("name"==n.type&&"await"==n.value&&v)return s,v||c("Unexpected await expression outside async function",i.prev.line,i.prev.col,i.prev.pos),new ot({start:u,end:i.token,expression:Be(!0)});if(r("operator")&&ce.has(n.value)){s,b;var o=ze(zt,n,Be(e));return o.start=n,o.end=u,o}for(var a=G(e,t);r("operator")&&fe.has(i.token.value)&&!d(i.token);)a instanceof Ye&&l,(a=ze(Ot,i.token,a)).start=n,a.end=i.token,s;return a};function ze(e,t,n){var r=t.value;switch(r){case"++":case"--":Qe(n)||c("Invalid use of "+r+" operator",t.line,t.col,t.pos);break;case"delete":n instanceof yn&&i.input.has_directive("use strict")&&c("Calling delete on expression not allowed in strict mode",n.start.line,n.start.col,n.start.pos)}return new e({operator:r,expression:n})}var Pe=function(e,t,n){var o=r("operator")?i.token.value:null;"in"==o&&n&&(o=null),"**"==o&&e instanceof zt&&!se(e.start,"punc","(")&&"--"!==e.operator&&"++"!==e.operator&&l(e.start);var a=null!=o?he[o]:null;if(null!=a&&(a>t||"**"===o&&t===a)){s;var u=Pe(Be(!0),a,n);return Pe(new Mt({start:e.start,left:e,operator:o,right:u,end:u.end}),t,n)}return e};var Ke=function(e){var t=i.token,n=function(e){return Pe(Be(!0,!0),0,e)}(e);if(r("operator","?")){s;var o=$t(!1);return h(":"),new qt({start:t,condition:n,consequent:o,alternative:$t(!1,e),end:u})}return n};function Qe(e){return e instanceof Ft||e instanceof yn}function nt(e){if(e instanceof Pt)e=new Je({start:e.start,names:e.properties.map(nt),is_array:!1,end:e.end});else if(e instanceof jt){for(var t=[],n=0;n<e.elements.length;n++)e.elements[n]instanceof Re&&(n+1!==e.elements.length&&f(e.elements[n].start,"Spread must the be last element in destructuring array"),e.elements[n].expression=nt(e.elements[n].expression)),t.push(nt(e.elements[n]));e=new Je({start:e.start,names:t,is_array:!0,end:e.end})}else e instanceof Ht?e.value=nt(e.value):e instanceof Nt&&(e=new It({start:e.start,left:e.left,operator:"=",right:e.right,end:e.end}));return e}var ct=function(e){b;var t=i.token;if("name"==t.type&&"yield"==t.value){if(_)return s,function{_||c("Unexpected yield expression outside generator function",i.prev.line,i.prev.col,i.prev.pos);var e=i.token,t=!1,n=!0;return m||r("punc")&&U.has(i.token.value)?n=!1:r("operator","*")&&(t=!0,s),new st({start:e,is_star:t,expression:n?$t:null,end:u})};i.input.has_directive("use strict")&&f(i.token,"Unexpected yield identifier inside strict mode")}var n=Ke(e),o=i.token.value;if(r("operator")&&le.has(o)){if(Qe(n)||(n=nt(n))instanceof Je)return s,new Nt({start:t,left:n,operator:o,right:ct(e),logical:pe.has(o),end:u});c("Invalid assignment")}return n},$t=function(e,t){for(var n=i.token,a=[];a.push(ct(t)),e&&r("punc",",");)s,e=!0;return 1==a.length?a[0]:new kt({start:n,expressions:a,end:o})};function Gt(e){++i.in_loop;var t=e;return--i.in_loop,t}return t.expression?$t(!0):function{var e=i.token,n=[];for(i.input.push_directives_stack,t.module&&i.input.add_directive("use strict");!r("eof");)n.push(w);i.input.pop_directives_stack;var o=u,s=t.toplevel;return s?(s.body=s.body.concat(n),s.end=o):s=new He({start:e,body:n,end:o}),s}}function _e(e,t,n,i=De){var r=t=t?t.split(/\s+/):[];i&&i.PROPS&&(t=t.concat(i.PROPS));for(var o="return function AST_"+e+"(props){ if (props) { ",s=t.length;--s>=0;)o+="this."+t[s]+" = props."+t[s]+";";const a=i&&Object.create(i.prototype);(a&&a.initialize||n&&n.initialize)&&(o+="this.initialize;"),o+="}",o+="this.flags = 0;",o+="}";var u=new Function(o);if(a&&(u.prototype=a,u.BASE=i),i&&i.SUBCLASSES.push(u),u.prototype.CTOR=u,u.prototype.constructor=u,u.PROPS=t||null,u.SELF_PROPS=r,u.SUBCLASSES=[],e&&(u.prototype.TYPE=u.TYPE=e),n)for(s in n)b(n,s)&&("$"===s[0]?u[s.substr(1)]=n[s]:u.prototype[s]=n[s]);return u.DEFMETHOD=function(e,t){this.prototype[e]=t},u}const ve=(e,t)=>Boolean(e.flags&t),ge=(e,t,n)=>{n?e.flags|=t:e.flags&=~t};class ye{constructor(e,t,n,i,r,o,s,a,u){this.flags=o?1:0,this.type=e,this.value=t,this.line=n,this.col=i,this.pos=r,this.comments_before=s,this.comments_after=a,this.file=u,Object.seal(this)}get nlb{return ve(this,1)}set nlb(e){ge(this,1,e)}get quote{return ve(this,4)?ve(this,2)?"'":'"':""}set quote(e){ge(this,2,"'"===e),ge(this,4,!!e)}}var De=_e("Node","start end",{_clone:function(e){if(e){var t=this.clone;return t.transform(new Ln((function(e){if(e!==t)return e.clone(!0)})))}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),be=_e("Statement",null,{$documentation:"Base class of all statements"}),we=_e("Debugger",null,{$documentation:"Represents a debugger statement"},be),Ae=_e("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"}},be),xe=_e("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)}},be);function Ee(e,t){const n=e.body;for(var i=0,r=n.length;i<r;i++)n[i]._walk(t)}function ke(e){var t=this._clone(e);return this.block_scope&&(t.block_scope=this.block_scope.clone),t}var Fe=_e("Block","body block_scope",{$documentation:"A body of statements (usually braced)",$propdoc:{body:"[AST_Statement*] an array of statements",block_scope:"[AST_Scope] the block scope"},_walk:function(e){return e._visit(this,(function{Ee(this,e)}))},_children_backwards(e){let t=this.body.length;for(t--;)e(this.body[t])},clone:ke},be),Ce=_e("BlockStatement",null,{$documentation:"A block statement"},Fe),Se=_e("EmptyStatement",null,{$documentation:"The empty statement (empty block or simply a semicolon)"},be),Be=_e("StatementWithBody","body",{$documentation:"Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",$propdoc:{body:"[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement"}},be),Te=_e("LabeledStatement","label",{$documentation:"Statement with a label",$propdoc:{label:"[AST_Label] a label definition"},_walk:function(e){return e._visit(this,(function{this.label._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),e(this.label)},clone:function(e){var t=this._clone(e);if(e){var n=t.label,i=this.label;t.walk(new Rn((function(e){e instanceof nt&&e.label&&e.label.thedef===i&&(e.label.thedef=n,n.references.push(e))})))}return t}},Be),$e=_e("IterationStatement","block_scope",{$documentation:"Internal class. All loops inherit from it.",$propdoc:{block_scope:"[AST_Scope] the block scope for this iteration statement."},clone:ke},Be),ze=_e("DWLoop","condition",{$documentation:"Base class for do/while statements",$propdoc:{condition:"[AST_Node] the loop condition. Should not be instanceof AST_Statement"}},$e),Oe=_e("Do",null,{$documentation:"A `do` statement",_walk:function(e){return e._visit(this,(function{this.body._walk(e),this.condition._walk(e)}))},_children_backwards(e){e(this.condition),e(this.body)}},ze),Me=_e("While",null,{$documentation:"A `while` statement",_walk:function(e){return e._visit(this,(function{this.condition._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),e(this.condition)}},ze),qe=_e("For","init condition step",{$documentation:"A `for` statement",$propdoc:{init:"[AST_Node?] the `for` initialization code, or null if empty",condition:"[AST_Node?] the `for` termination clause, or null if empty",step:"[AST_Node?] the `for` update clause, or null if empty"},_walk:function(e){return e._visit(this,(function{this.init&&this.init._walk(e),this.condition&&this.condition._walk(e),this.step&&this.step._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),this.step&&e(this.step),this.condition&&e(this.condition),this.init&&e(this.init)}},$e),Ne=_e("ForIn","init object",{$documentation:"A `for ... in` statement",$propdoc:{init:"[AST_Node] the `for/in` initialization code",object:"[AST_Node] the object that we're looping through"},_walk:function(e){return e._visit(this,(function{this.init._walk(e),this.object._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),this.object&&e(this.object),this.init&&e(this.init)}},$e),Ie=_e("ForOf","await",{$documentation:"A `for ... of` statement"},Ne),je=_e("With","expression",{$documentation:"A `with` statement",$propdoc:{expression:"[AST_Node] the `with` expression"},_walk:function(e){return e._visit(this,(function{this.expression._walk(e),this.body._walk(e)}))},_children_backwards(e){e(this.body),e(this.expression)}},Be),Pe=_e("Scope","variables functions uses_with uses_eval parent_scope enclosed cname",{$documentation:"Base class for all statements introducing a lexical scope",$propdoc:{variables:"[Map/S] a map of name -> 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{for(var e=this;e.is_block_scope;)e=e.parent_scope;return e},clone:function(e,t){var n=this._clone(e);return e&&this.variables&&t&&!this._block_scope?n.figure_out_scope({},{toplevel:t,parent_scope:this.parent_scope}):(this.variables&&(n.variables=new Map(this.variables)),this.functions&&(n.functions=new Map(this.functions)),this.enclosed&&(n.enclosed=this.enclosed.slice),this._block_scope&&(n._block_scope=this._block_scope)),n},pinned:function{return this.uses_eval||this.uses_with}},Fe),He=_e("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,n="(function(exports){'$ORIG';})(typeof "+e+"=='undefined'?("+e+"={}):"+e+");";return n=(n=me(n)).transform(new Ln((function(e){if(e instanceof Ae&&"$ORIG"==e.value)return h.splice(t)})))},wrap_enclose:function(e){"string"!=typeof e&&(e="");var t=e.indexOf(":");t<0&&(t=e.length);var n=this.body;return me(["(function(",e.slice(0,t),'){"$ORIG"})(',e.slice(t+1),")"].join("")).transform(new Ln((function(e){if(e instanceof Ae&&"$ORIG"==e.value)return h.splice(n)})))}},Pe),Re=_e("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)}}),Le=_e("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{for(var e=[],t=0;t<this.argnames.length;t++)this.argnames[t]instanceof Je?e.push(...this.argnames[t].all_symbols):e.push(this.argnames[t]);return e},_walk:function(e){return e._visit(this,(function{this.name&&this.name._walk(e);for(var t=this.argnames,n=0,i=t.length;n b)"},Le),We=_e("Defun",null,{$documentation:"A function definition"},Le),Je=_e("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;for(t--;)e(this.names[t])},all_symbols:function{var e=[];return this.walk(new Rn((function(t){t instanceof en&&e.push(t)}))),e}}),Ge=_e("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_Node] The prefix, which will get called."},_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)}}),Xe=_e("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;for(t--;)e(this.segments[t])}}),Ze=_e("TemplateSegment","value raw",{$documentation:"A segment of a template string literal",$propdoc:{value:"Content of the segment",raw:"Raw source of the segment"}}),Ke=_e("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},be),Qe=_e("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){this.value&&e(this.value)}},Ke),et=_e("Return",null,{$documentation:"A `return` statement"},Qe),tt=_e("Throw",null,{$documentation:"A `throw` statement"},Qe),nt=_e("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){this.label&&e(this.label)}},Ke),it=_e("Break",null,{$documentation:"A `break` statement"},nt),rt=_e("Continue",null,{$documentation:"A `continue` statement"},nt),ot=_e("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)}}),st=_e("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){this.expression&&e(this.expression)}}),at=_e("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),this.alternative&&this.alternative._walk(e)}))},_children_backwards(e){this.alternative&&e(this.alternative),e(this.body),e(this.condition)}},Be),ut=_e("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),Ee(this,e)}))},_children_backwards(e){let t=this.body.length;for(t--;)e(this.body[t]);e(this.expression)}},Fe),ct=_e("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},Fe),ft=_e("Default",null,{$documentation:"A `default` switch branch"},ct),lt=_e("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),Ee(this,e)}))},_children_backwards(e){let t=this.body.length;for(t--;)e(this.body[t]);e(this.expression)}},ct),pt=_e("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{Ee(this,e),this.bcatch&&this.bcatch._walk(e),this.bfinally&&this.bfinally._walk(e)}))},_children_backwards(e){this.bfinally&&e(this.bfinally),this.bcatch&&e(this.bcatch);let t=this.body.length;for(t--;)e(this.body[t])}},Fe),ht=_e("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{this.argname&&this.argname._walk(e),Ee(this,e)}))},_children_backwards(e){let t=this.body.length;for(t--;)e(this.body[t]);this.argname&&e(this.argname)}},Fe),dt=_e("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},Fe),mt=_e("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{for(var t=this.definitions,n=0,i=t.length;n<i;n++)t[n]._walk(e)}))},_children_backwards(e){let t=this.definitions.length;for(t--;)e(this.definitions[t])}},be),_t=_e("Var",null,{$documentation:"A `var` statement"},mt),vt=_e("Let",null,{$documentation:"A `let` statement"},mt),gt=_e("Const",null,{$documentation:"A `const` statement"},mt),yt=_e("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_Destructuring|AST_SymbolConst|AST_SymbolLet|AST_SymbolVar] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(e){return e._visit(this,(function{this.name._walk(e),this.value&&this.value._walk(e)}))},_children_backwards(e){this.value&&e(this.value),e(this.name)}}),Dt=_e("NameMapping","foreign_name name",{$documentation:"The part of the export/import statement that declare names from a module.",$propdoc:{foreign_name:"[AST_SymbolExportForeign|AST_SymbolImportForeign] The name being exported/imported (as specified in the module)",name:"[AST_SymbolExport|AST_SymbolImport] The name as it is visible to this module."},_walk:function(e){return e._visit(this,(function{this.foreign_name._walk(e),this.name._walk(e)}))},_children_backwards(e){e(this.name),e(this.foreign_name)}}),bt=_e("Import","imported_name imported_names module_name",{$documentation:"An `import` statement",$propdoc:{imported_name:"[AST_SymbolImport] The name of the variable holding the module's default export.",imported_names:"[AST_NameMapping*] The names of non-default imported variables",module_name:"[AST_String] String literal describing where this module came from"},_walk:function(e){return e._visit(this,(function{this.imported_name&&this.imported_name._walk(e),this.imported_names&&this.imported_names.forEach((function(t){t._walk(e)})),this.module_name._walk(e)}))},_children_backwards(e){if(e(this.module_name),this.imported_names){let t=this.imported_names.length;for(t--;)e(this.imported_names[t])}this.imported_name&&e(this.imported_name)}}),wt=_e("ImportMeta",null,{$documentation:"A reference to import.meta"}),At=_e("Export","exported_definition exported_value is_default exported_names module_name",{$documentation:"An `export` statement",$propdoc:{exported_definition:"[AST_Defun|AST_Definitions|AST_DefClass?] An exported definition",exported_value:"[AST_Node?] An exported value",exported_names:"[AST_NameMapping*?] List of exported names",module_name:"[AST_String?] Name of the file to load exports from",is_default:"[Boolean] Whether this is the default exported value of this module"},_walk:function(e){return e._visit(this,(function{this.exported_definition&&this.exported_definition._walk(e),this.exported_value&&this.exported_value._walk(e),this.exported_names&&this.exported_names.forEach((function(t){t._walk(e)})),this.module_name&&this.module_name._walk(e)}))},_children_backwards(e){if(this.module_name&&e(this.module_name),this.exported_names){let t=this.exported_names.length;for(t--;)e(this.exported_names[t])}this.exported_value&&e(this.exported_value),this.exported_definition&&e(this.exported_definition)}},be),xt=_e("Call","expression args optional _annotations",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments",optional:"[boolean] whether this is an optional call (IE ?. )",_annotations:"[number] bitfield containing information about the call"},initialize{null==this._annotations&&(this._annotations=0)},_walk(e){return e._visit(this,(function{for(var t=this.args,n=0,i=t.length;n<i;n++)t[n]._walk(e);this.expression._walk(e)}))},_children_backwards(e){let t=this.args.length;for(t--;)e(this.args[t]);e(this.expression)}}),Et=_e("New",null,{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},xt),kt=_e("Sequence","expressions",{$documentation:"A sequence expression (comma-separated expressions)",$propdoc:{expressions:"[AST_Node*] array of expressions (at least two)"},_walk:function(e){return e._visit(this,(function{this.expressions.forEach((function(t){t._walk(e)}))}))},_children_backwards(e){let t=this.expressions.length;for(t--;)e(this.expressions[t])}}),Ft=_e("PropAccess","expression property optional",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access. For AST_Dot & AST_DotHash this is always a plain string, while for AST_Sub it's an arbitrary AST_Node",optional:"[boolean] whether this is an optional property access (IE ?.)"}}),Ct=_e("Dot","quote",{$documentation:"A dotted property access expression",$propdoc:{quote:"[string] the original quote character when transformed from AST_Sub"},_walk:function(e){return e._visit(this,(function{this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}},Ft),St=_e("DotHash","",{$documentation:"A dotted property access to a private property",_walk:function(e){return e._visit(this,(function{this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}},Ft),Bt=_e("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(e){return e._visit(this,(function{this.expression._walk(e),this.property._walk(e)}))},_children_backwards(e){e(this.property),e(this.expression)}},Ft),Tt=_e("Chain","expression",{$documentation:"A chain expression like a?.b?.(c)?.[d]",$propdoc:{expression:"[AST_Call|AST_Dot|AST_DotHash|AST_Sub] chain element."},_walk:function(e){return e._visit(this,(function{this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}}),$t=_e("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(e){return e._visit(this,(function{this.expression._walk(e)}))},_children_backwards(e){e(this.expression)}}),zt=_e("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},$t),Ot=_e("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},$t),Mt=_e("Binary","operator left right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(e){return e._visit(this,(function{this.left._walk(e),this.right._walk(e)}))},_children_backwards(e){e(this.right),e(this.left)}}),qt=_e("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(e){return e._visit(this,(function{this.condition._walk(e),this.consequent._walk(e),this.alternative._walk(e)}))},_children_backwards(e){e(this.alternative),e(this.consequent),e(this.condition)}}),Nt=_e("Assign","logical",{$documentation:"An assignment expression — `a = b + 5`",$propdoc:{logical:"Whether it's a logical assignment"}},Mt),It=_e("DefaultAssign",null,{$documentation:"A default assignment expression like in `(a = 3) => a`"},Mt),jt=_e("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(e){return e._visit(this,(function{for(var t=this.elements,n=0,i=t.length;n<i;n++)t[n]._walk(e)}))},_children_backwards(e){let t=this.elements.length;for(t--;)e(this.elements[t])}}),Pt=_e("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(e){return e._visit(this,(function{for(var t=this.properties,n=0,i=t.length;n<i;n++)t[n]._walk(e)}))},_children_backwards(e){let t=this.properties.length;for(t--;)e(this.properties[t])}}),Ht=_e("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string|AST_Node] property name. For ObjectKeyVal this is a string. For getters, setters and computed property this is an AST_Node.",value:"[AST_Node] property value. For getters and setters this is an AST_Accessor."},_walk:function(e){return e._visit(this,(function{this.key instanceof De&&this.key._walk(e),this.value._walk(e)}))},_children_backwards(e){e(this.value),this.key instanceof De&&e(this.key)}}),Rt=_e("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"},computed_key{return this.key instanceof De}},Ht),Lt=_e("PrivateSetter","static",{$propdoc:{static:"[boolean] whether this is a static private setter"},$documentation:"A private setter property",computed_key:=>!1},Ht),Ut=_e("PrivateGetter","static",{$propdoc:{static:"[boolean] whether this is a static private getter"},$documentation:"A private getter property",computed_key:=>!1},Ht),Vt=_e("ObjectSetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static setter (classes only)"},$documentation:"An object setter property",computed_key{return!(this.key instanceof fn)}},Ht),Yt=_e("ObjectGetter","quote static",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static getter (classes only)"},$documentation:"An object getter property",computed_key{return!(this.key instanceof fn)}},Ht),Wt=_e("ConciseMethod","quote static is_generator async",{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] is this method static (classes only)",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},$documentation:"An ES6 concise method inside an object or class",computed_key{return!(this.key instanceof fn)}},Ht),Jt=_e("PrivateMethod","",{$documentation:"A private class method inside a class"},Wt),Gt=_e("Class","name extends properties",{$propdoc:{name:"[AST_SymbolClass|AST_SymbolDefClass?] optional class name.",extends:"[AST_Node]? optional parent class",properties:"[AST_ObjectProperty*] array of properties"},$documentation:"An ES6 class",_walk:function(e){return e._visit(this,(function{this.name&&this.name._walk(e),this.extends&&this.extends._walk(e),this.properties.forEach((t=>t._walk(e)))}))},_children_backwards(e){let t=this.properties.length;for(t--;)e(this.properties[t]);this.extends&&e(this.extends),this.name&&e(this.name)}},Pe),Xt=_e("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{this.key instanceof De&&this.key._walk(e),this.value instanceof De&&this.value._walk(e)}))},_children_backwards(e){this.value instanceof De&&e(this.value),this.key instanceof De&&e(this.key)},computed_key{return!(this.key instanceof ln)}},Ht),Zt=_e("ClassProperty","",{$documentation:"A class property for a private property"},Xt),Kt=_e("DefClass",null,{$documentation:"A class definition"},Gt),Qt=_e("ClassExpression",null,{$documentation:"A class expression."},Gt),en=_e("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"}),tn=_e("NewTarget",null,{$documentation:"A reference to new.target"}),nn=_e("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)"},en),rn=_e("SymbolVar",null,{$documentation:"Symbol defining a variable"},nn),on=_e("SymbolBlockDeclaration",null,{$documentation:"Base class for block-scoped declaration symbols"},nn),sn=_e("SymbolConst",null,{$documentation:"A constant declaration"},on),an=_e("SymbolLet",null,{$documentation:"A block-scoped `let` declaration"},on),un=_e("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},rn),cn=_e("SymbolDefun",null,{$documentation:"Symbol defining a function"},nn),fn=_e("SymbolMethod",null,{$documentation:"Symbol in an object defining a method"},en),ln=_e("SymbolClassProperty",null,{$documentation:"Symbol for a class property"},en),pn=_e("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},nn),hn=_e("SymbolDefClass",null,{$documentation:"Symbol naming a class's name in a class declaration. Lexically scoped to its containing scope, and accessible within the class."},on),dn=_e("SymbolClass",null,{$documentation:"Symbol naming a class's name. Lexically scoped to the class."},nn),mn=_e("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},on),_n=_e("SymbolImport",null,{$documentation:"Symbol referring to an imported name"},on),vn=_e("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"},en),gn=_e("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}},en),yn=_e("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},en),Dn=_e("SymbolExport",null,{$documentation:"Symbol referring to a name to export"},yn),bn=_e("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"},en),wn=_e("LabelRef",null,{$documentation:"Reference to a label symbol"},en),An=_e("This",null,{$documentation:"The `this` symbol"},en),xn=_e("Super",null,{$documentation:"The `super` symbol"},An),En=_e("Constant",null,{$documentation:"Base class for all constants",getValue:function{return this.value}}),kn=_e("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},En),Fn=_e("Number","value raw",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",raw:"[string] numeric value as string"}},En),Cn=_e("BigInt","value",{$documentation:"A big int literal",$propdoc:{value:"[string] big int value"}},En),Sn=_e("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},En),Bn=_e("Atom",null,{$documentation:"Base class for atoms"},En),Tn=_e("Null",null,{$documentation:"The `null` atom",value:null},Bn),$n=_e("NaN",null,{$documentation:"The impossible value",value:NaN},Bn),zn=_e("Undefined",null,{$documentation:"The `undefined` value",value:void 0},Bn),On=_e("Hole",null,{$documentation:"A hole in an array",value:void 0},Bn),Mn=_e("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},Bn),qn=_e("Boolean",null,{$documentation:"Base class for booleans"},Bn),Nn=_e("False",null,{$documentation:"The `false` atom",value:!1},qn),In=_e("True",null,{$documentation:"The `true` atom",value:!0},qn);function jn(e,t,n=[e]){const i=n.push.bind(n);for(n.length;){const e=n.pop,r=t(e,n);if(r){if(r===Hn)return!0}else e._children_backwards(i)}return!1}function Pn(e,t,n){const i=[e],r=i.push.bind(i),o=n?n.slice:[],s=[];let a;const u={parent:(e=0)=>-1===e?a:n&&e>=o.length?(e-=o.length,n[n.length-(e+1)]):o[o.length-(1+e)]};for(i.length;){for(a=i.pop;s.length&&i.length==s[s.length-1];)o.pop,s.pop;const e=t(a,u);if(e){if(e===Hn)return!0;continue}const n=i.length;a._children_backwards(r),i.length>n&&(o.push(a),s.push(n-1))}return!1}const Hn=Symbol("abort walk");class Rn{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)}:u);return!n&&t&&t.call(e),this.pop,n}parent(e){return this.stack[this.stack.length-2-(e||0)]}push(e){e instanceof Le?this.directives=Object.create(this.directives):e instanceof Ae&&!this.directives[e.value]?this.directives[e.value]=e:e instanceof Gt&&(this.directives=Object.create(this.directives),this.directives["use strict"]||(this.directives["use strict"]=e)),this.stack.push(e)}pop{var e=this.stack.pop;(e instanceof Le||e instanceof Gt)&&(this.directives=Object.getPrototypeOf(this.directives))}self{return this.stack[this.stack.length-1]}find_parent(e){for(var t=this.stack,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 Pe&&n.body)for(var i=0;i=0;){if((i=t[n])instanceof Te&&i.label.name==e.label.name)return i.body}else for(n=t.length;--n>=0;){var i;if((i=t[n])instanceof $e||e instanceof it&&i instanceof ut)return i}}}class Ln extends Rn{constructor(e,t){super,this.before=e,this.after=t}}const Un=1,Vn=2,Yn=4;var Wn=Object.freeze({__proto__:null,AST_Accessor:Ue,AST_Array:jt,AST_Arrow:Ye,AST_Assign:Nt,AST_Atom:Bn,AST_Await:ot,AST_BigInt:Cn,AST_Binary:Mt,AST_Block:Fe,AST_BlockStatement:Ce,AST_Boolean:qn,AST_Break:it,AST_Call:xt,AST_Case:lt,AST_Catch:ht,AST_Chain:Tt,AST_Class:Gt,AST_ClassExpression:Qt,AST_ClassPrivateProperty:Zt,AST_ClassProperty:Xt,AST_ConciseMethod:Wt,AST_Conditional:qt,AST_Const:gt,AST_Constant:En,AST_Continue:rt,AST_Debugger:we,AST_Default:ft,AST_DefaultAssign:It,AST_DefClass:Kt,AST_Definitions:mt,AST_Defun:We,AST_Destructuring:Je,AST_Directive:Ae,AST_Do:Oe,AST_Dot:Ct,AST_DotHash:St,AST_DWLoop:ze,AST_EmptyStatement:Se,AST_Exit:Qe,AST_Expansion:Re,AST_Export:At,AST_False:Nn,AST_Finally:dt,AST_For:qe,AST_ForIn:Ne,AST_ForOf:Ie,AST_Function:Ve,AST_Hole:On,AST_If:at,AST_Import:bt,AST_ImportMeta:wt,AST_Infinity:Mn,AST_IterationStatement:$e,AST_Jump:Ke,AST_Label:gn,AST_LabeledStatement:Te,AST_LabelRef:wn,AST_Lambda:Le,AST_Let:vt,AST_LoopControl:nt,AST_NameMapping:Dt,AST_NaN:$n,AST_New:Et,AST_NewTarget:tn,AST_Node:De,AST_Null:Tn,AST_Number:Fn,AST_Object:Pt,AST_ObjectGetter:Yt,AST_ObjectKeyVal:Rt,AST_ObjectProperty:Ht,AST_ObjectSetter:Vt,AST_PrefixedTemplateString:Ge,AST_PrivateGetter:Ut,AST_PrivateMethod:Jt,AST_PrivateSetter:Lt,AST_PropAccess:Ft,AST_RegExp:Sn,AST_Return:et,AST_Scope:Pe,AST_Sequence:kt,AST_SimpleStatement:xe,AST_Statement:be,AST_StatementWithBody:Be,AST_String:kn,AST_Sub:Bt,AST_Super:xn,AST_Switch:ut,AST_SwitchBranch:ct,AST_Symbol:en,AST_SymbolBlockDeclaration:on,AST_SymbolCatch:mn,AST_SymbolClass:dn,AST_SymbolClassProperty:ln,AST_SymbolConst:sn,AST_SymbolDeclaration:nn,AST_SymbolDefClass:hn,AST_SymbolDefun:cn,AST_SymbolExport:Dn,AST_SymbolExportForeign:bn,AST_SymbolFunarg:un,AST_SymbolImport:_n,AST_SymbolImportForeign:vn,AST_SymbolLambda:pn,AST_SymbolLet:an,AST_SymbolMethod:fn,AST_SymbolRef:yn,AST_SymbolVar:rn,AST_TemplateSegment:Ze,AST_TemplateString:Xe,AST_This:An,AST_Throw:tt,AST_Token:ye,AST_Toplevel:He,AST_True:In,AST_Try:pt,AST_Unary:$t,AST_UnaryPostfix:Ot,AST_UnaryPrefix:zt,AST_Undefined:zn,AST_Var:_t,AST_VarDef:yt,AST_While:Me,AST_With:je,AST_Yield:st,TreeTransformer:Ln,TreeWalker:Rn,walk:jn,walk_abort:Hn,walk_body:Ee,walk_parent:Pn,_INLINE:Vn,_NOINLINE:Yn,_PURE:Un});function Jn(e,t){e.DEFMETHOD("transform",(function(e,n){let i;if(e.push(this),e.before&&(i=e.before(this,t,n)),void 0===i&&(i=this,t(i,e),e.after)){const t=e.after(i,n);void 0!==t&&(i=t)}return e.pop,i}))}function Gn(e,t){return h(e,(function(e){return e.transform(t,!0)}))}function Xn(e){let t=e.parent(-1);for(let n,i=0;n=e.parent(i);i++){if(n instanceof be&&n.body===t)return!0;if(!(n instanceof kt&&n.expressions[0]===t||"Call"===n.TYPE&&n.expression===t||n instanceof Ge&&n.prefix===t||n instanceof Ct&&n.expression===t||n instanceof Bt&&n.expression===t||n instanceof qt&&n.condition===t||n instanceof Mt&&n.left===t||n instanceof Ot&&n.expression===t))return!1;t=n}}function Zn(e){return e instanceof Pt||(e instanceof kt?Zn(e.expressions[0]):"Call"===e.TYPE?Zn(e.expression):e instanceof Ge?Zn(e.prefix):e instanceof Ct||e instanceof Bt?Zn(e.expression):e instanceof qt?Zn(e.condition):e instanceof Mt?Zn(e.left):e instanceof Ot&&Zn(e.expression))}Jn(De,u),Jn(Te,(function(e,t){e.label=e.label.transform(t),e.body=e.body.transform(t)})),Jn(xe,(function(e,t){e.body=e.body.transform(t)})),Jn(Fe,(function(e,t){e.body=Gn(e.body,t)})),Jn(Oe,(function(e,t){e.body=e.body.transform(t),e.condition=e.condition.transform(t)})),Jn(Me,(function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t)})),Jn(qe,(function(e,t){e.init&&(e.init=e.init.transform(t)),e.condition&&(e.condition=e.condition.transform(t)),e.step&&(e.step=e.step.transform(t)),e.body=e.body.transform(t)})),Jn(Ne,(function(e,t){e.init=e.init.transform(t),e.object=e.object.transform(t),e.body=e.body.transform(t)})),Jn(je,(function(e,t){e.expression=e.expression.transform(t),e.body=e.body.transform(t)})),Jn(Qe,(function(e,t){e.value&&(e.value=e.value.transform(t))})),Jn(nt,(function(e,t){e.label&&(e.label=e.label.transform(t))})),Jn(at,(function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t),e.alternative&&(e.alternative=e.alternative.transform(t))})),Jn(ut,(function(e,t){e.expression=e.expression.transform(t),e.body=Gn(e.body,t)})),Jn(lt,(function(e,t){e.expression=e.expression.transform(t),e.body=Gn(e.body,t)})),Jn(pt,(function(e,t){e.body=Gn(e.body,t),e.bcatch&&(e.bcatch=e.bcatch.transform(t)),e.bfinally&&(e.bfinally=e.bfinally.transform(t))})),Jn(ht,(function(e,t){e.argname&&(e.argname=e.argname.transform(t)),e.body=Gn(e.body,t)})),Jn(mt,(function(e,t){e.definitions=Gn(e.definitions,t)})),Jn(yt,(function(e,t){e.name=e.name.transform(t),e.value&&(e.value=e.value.transform(t))})),Jn(Je,(function(e,t){e.names=Gn(e.names,t)})),Jn(Le,(function(e,t){e.name&&(e.name=e.name.transform(t)),e.argnames=Gn(e.argnames,t),e.body instanceof De?e.body=e.body.transform(t):e.body=Gn(e.body,t)})),Jn(xt,(function(e,t){e.expression=e.expression.transform(t),e.args=Gn(e.args,t)})),Jn(kt,(function(e,t){const n=Gn(e.expressions,t);e.expressions=n.length?n:[new Fn({value:0})]})),Jn(Ct,(function(e,t){e.expression=e.expression.transform(t)})),Jn(Bt,(function(e,t){e.expression=e.expression.transform(t),e.property=e.property.transform(t)})),Jn(Tt,(function(e,t){e.expression=e.expression.transform(t)})),Jn(st,(function(e,t){e.expression&&(e.expression=e.expression.transform(t))})),Jn(ot,(function(e,t){e.expression=e.expression.transform(t)})),Jn($t,(function(e,t){e.expression=e.expression.transform(t)})),Jn(Mt,(function(e,t){e.left=e.left.transform(t),e.right=e.right.transform(t)})),Jn(qt,(function(e,t){e.condition=e.condition.transform(t),e.consequent=e.consequent.transform(t),e.alternative=e.alternative.transform(t)})),Jn(jt,(function(e,t){e.elements=Gn(e.elements,t)})),Jn(Pt,(function(e,t){e.properties=Gn(e.properties,t)})),Jn(Ht,(function(e,t){e.key instanceof De&&(e.key=e.key.transform(t)),e.value&&(e.value=e.value.transform(t))})),Jn(Gt,(function(e,t){e.name&&(e.name=e.name.transform(t)),e.extends&&(e.extends=e.extends.transform(t)),e.properties=Gn(e.properties,t)})),Jn(Re,(function(e,t){e.expression=e.expression.transform(t)})),Jn(Dt,(function(e,t){e.foreign_name=e.foreign_name.transform(t),e.name=e.name.transform(t)})),Jn(bt,(function(e,t){e.imported_name&&(e.imported_name=e.imported_name.transform(t)),e.imported_names&&Gn(e.imported_names,t),e.module_name=e.module_name.transform(t)})),Jn(At,(function(e,t){e.exported_definition&&(e.exported_definition=e.exported_definition.transform(t)),e.exported_value&&(e.exported_value=e.exported_value.transform(t)),e.exported_names&&Gn(e.exported_names,t),e.module_name&&(e.module_name=e.module_name.transform(t))})),Jn(Xe,(function(e,t){e.segments=Gn(e.segments,t)})),Jn(Ge,(function(e,t){e.prefix=e.prefix.transform(t),e.template_string=e.template_string.transform(t)})),function{var e=function(e){for(var t=!0,n=0;n<e.length;n++)t&&e[n]instanceof be&&e[n].body instanceof kn?e[n]=new Ae({start:e[n].start,end:e[n].end,value:e[n].body.value}):!t||e[n]instanceof be&&e[n].body instanceof kn||(t=!1);return e},t={Program:function(t){return new He({start:n(t),end:i(t),body:e(t.body.map(s))})},ArrayPattern:function(e){return new Je({start:n(e),end:i(e),names:e.elements.map((function(e){return null===e?new On:s(e)})),is_array:!0})},ObjectPattern:function(e){return new Je({start:n(e),end:i(e),names:e.properties.map(s),is_array:!1})},AssignmentPattern:function(e){return new It({start:n(e),end:i(e),left:s(e.left),operator:"=",right:s(e.right)})},SpreadElement:function(e){return new Re({start:n(e),end:i(e),expression:s(e.argument)})},RestElement:function(e){return new Re({start:n(e),end:i(e),expression:s(e.argument)})},TemplateElement:function(e){return new Ze({start:n(e),end:i(e),value:e.value.cooked,raw:e.value.raw})},TemplateLiteral:function(e){for(var t=[],r=0;r<e.quasis.length;r++)t.push(s(e.quasis[r])),e.expressions[r]&&t.push(s(e.expressions[r]));return new Xe({start:n(e),end:i(e),segments:t})},TaggedTemplateExpression:function(e){return new Ge({start:n(e),end:i(e),template_string:s(e.quasi),prefix:s(e.tag)})},FunctionDeclaration:function(t){return new We({start:n(t),end:i(t),name:s(t.id),argnames:t.params.map(s),is_generator:t.generator,async:t.async,body:e(s(t.body).body)})},FunctionExpression:function(t){return new Ve({start:n(t),end:i(t),name:s(t.id),argnames:t.params.map(s),is_generator:t.generator,async:t.async,body:e(s(t.body).body)})},ArrowFunctionExpression:function(e){const t="BlockStatement"===e.body.type?s(e.body).body:[d(et,{},{value:s(e.body)})];return new Ye({start:n(e),end:i(e),argnames:e.params.map(s),body:t,async:e.async})},ExpressionStatement:function(e){return new xe({start:n(e),end:i(e),body:s(e.expression)})},TryStatement:function(e){var t=e.handlers||[e.handler];if(t.length>1||e.guardedHandlers&&e.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new pt({start:n(e),end:i(e),body:s(e.block).body,bcatch:s(t[0]),bfinally:e.finalizer?new dt(s(e.finalizer)):null})},Property:function(e){var t=e.key,r={start:n(t||e.value),end:i(e.value),key:"Identifier"==t.type?t.name:t.value,value:s(e.value)};return e.computed&&(r.key=s(e.key)),e.method?(r.is_generator=e.value.generator,r.async=e.value.async,e.computed?r.key=s(e.key):r.key=new fn({name:r.key}),new Wt(r)):"init"==e.kind?("Identifier"!=t.type&&"Literal"!=t.type&&(r.key=s(t)),new Rt(r)):("string"!=typeof r.key&&"number"!=typeof r.key||(r.key=new fn({name:r.key})),r.value=new Ue(r.value),"get"==e.kind?new Yt(r):"set"==e.kind?new Vt(r):"method"==e.kind?(r.async=e.value.async,r.is_generator=e.value.generator,r.quote=e.computed?'"':null,new Wt(r)):void 0)},MethodDefinition:function(e){var t={start:n(e),end:i(e),key:e.computed?s(e.key):new fn({name:e.key.name||e.key.value}),value:s(e.value),static:e.static};return"get"==e.kind?new Yt(t):"set"==e.kind?new Vt(t):(t.is_generator=e.value.generator,t.async=e.value.async,new Wt(t))},FieldDefinition:function(e){let t;if(e.computed)t=s(e.key);else{if("Identifier"!==e.key.type)throw new Error("Non-Identifier key in FieldDefinition");t=s(e.key)}return new Xt({start:n(e),end:i(e),key:t,value:s(e.value),static:e.static})},PropertyDefinition:function(e){let t;if(e.computed)t=s(e.key);else{if("Identifier"!==e.key.type)throw new Error("Non-Identifier key in PropertyDefinition");t=s(e.key)}return new Xt({start:n(e),end:i(e),key:t,value:s(e.value),static:e.static})},ArrayExpression:function(e){return new jt({start:n(e),end:i(e),elements:e.elements.map((function(e){return null===e?new On:s(e)}))})},ObjectExpression:function(e){return new Pt({start:n(e),end:i(e),properties:e.properties.map((function(e){return"SpreadElement"===e.type||(e.type="Property"),s(e)}))})},SequenceExpression:function(e){return new kt({start:n(e),end:i(e),expressions:e.expressions.map(s)})},MemberExpression:function(e){return new(e.computed?Bt:Ct)({start:n(e),end:i(e),property:e.computed?s(e.property):e.property.name,expression:s(e.object),optional:e.optional||!1})},ChainExpression:function(e){return new Tt({start:n(e),end:i(e),expression:s(e.expression)})},SwitchCase:function(e){return new(e.test?lt:ft)({start:n(e),end:i(e),expression:s(e.test),body:e.consequent.map(s)})},VariableDeclaration:function(e){return new("const"===e.kind?gt:"let"===e.kind?vt:_t)({start:n(e),end:i(e),definitions:e.declarations.map(s)})},ImportDeclaration:function(e){var t=null,r=null;return e.specifiers.forEach((function(e){"ImportSpecifier"===e.type?(r||(r=[]),r.push(new Dt({start:n(e),end:i(e),foreign_name:s(e.imported),name:s(e.local)}))):"ImportDefaultSpecifier"===e.type?t=s(e.local):"ImportNamespaceSpecifier"===e.type&&(r||(r=[]),r.push(new Dt({start:n(e),end:i(e),foreign_name:new vn({name:"*"}),name:s(e.local)})))})),new bt({start:n(e),end:i(e),imported_name:t,imported_names:r,module_name:s(e.source)})},ExportAllDeclaration:function(e){return new At({start:n(e),end:i(e),exported_names:[new Dt({name:new bn({name:"*"}),foreign_name:new bn({name:"*"})})],module_name:s(e.source)})},ExportNamedDeclaration:function(e){return new At({start:n(e),end:i(e),exported_definition:s(e.declaration),exported_names:e.specifiers&&e.specifiers.length?e.specifiers.map((function(e){return new Dt({foreign_name:s(e.exported),name:s(e.local)})})):null,module_name:s(e.source)})},ExportDefaultDeclaration:function(e){return new At({start:n(e),end:i(e),exported_value:s(e.declaration),is_default:!0})},Literal:function(e){var t=e.value,r={start:n(e),end:i(e)},o=e.regex;if(o&&o.pattern)return r.value={source:o.pattern,flags:o.flags},new Sn(r);if(o){const n=e.raw||t,i=n.match(/^\/(.*)\/(\w*)$/);if(!i)throw new Error("Invalid regex source "+n);const[o,s,a]=i;return r.value={source:s,flags:a},new Sn(r)}if(null===t)return new Tn(r);switch(typeof t){case"string":return r.value=t,new kn(r);case"number":return r.value=t,r.raw=e.raw||t.toString,new Fn(r);case"boolean":return new(t?In:Nn)(r)}},MetaProperty:function(e){return"new"===e.meta.name&&"target"===e.property.name?new tn({start:n(e),end:i(e)}):"import"===e.meta.name&&"meta"===e.property.name?new wt({start:n(e),end:i(e)}):void 0},Identifier:function(e){var t=o[o.length-2];return new("LabeledStatement"==t.type?gn:"VariableDeclarator"==t.type&&t.id===e?"const"==t.kind?sn:"let"==t.kind?an:rn:/Import.*Specifier/.test(t.type)?t.local===e?_n:vn:"ExportSpecifier"==t.type?t.local===e?Dn:bn:"FunctionExpression"==t.type?t.id===e?pn:un:"FunctionDeclaration"==t.type?t.id===e?cn:un:"ArrowFunctionExpression"==t.type?t.params.includes(e)?un:yn:"ClassExpression"==t.type?t.id===e?dn:yn:"Property"==t.type?t.key===e&&t.computed||t.value===e?yn:fn:"PropertyDefinition"==t.type||"FieldDefinition"===t.type?t.key===e&&t.computed||t.value===e?yn:ln:"ClassDeclaration"==t.type?t.id===e?hn:yn:"MethodDefinition"==t.type?t.computed?yn:fn:"CatchClause"==t.type?mn:"BreakStatement"==t.type||"ContinueStatement"==t.type?wn:yn)({start:n(e),end:i(e),name:e.name})},BigIntLiteral:e=>new Cn({start:n(e),end:i(e),value:e.value})};function n(e){var t=e.loc,n=t&&t.start,i=e.range;return new ye("","",n&&n.line||0,n&&n.column||0,i?i[0]:e.start,!1,[],[],t&&t.source)}function i(e){var t=e.loc,n=t&&t.end,i=e.range;return new ye("","",n&&n.line||0,n&&n.column||0,i?i[0]:e.end,!1,[],[],t&&t.source)}function r(e,r,o){var u="function From_Moz_"+e+"(M){\n";u+="return new U2."+r.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var f="function To_Moz_"+e+"(M){\n";f+="return {\ntype: "+JSON.stringify(e),o&&o.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],r=t[3];switch(u+=",\n"+r+": ",f+=",\n"+n+": ",i){case"@":u+="M."+n+".map(from_moz)",f+="M."+r+".map(to_moz)";break;case">":u+="from_moz(M."+n+")",f+="to_moz(M."+r+")";break;case"=":u+="M."+n,f+="M."+r;break;case"%":u+="from_moz(M."+n+").body",f+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}})),u+="\n})\n}",f+="\n}\n}",u=new Function("U2","my_start_token","my_end_token","from_moz","return("+u+")")(Wn,n,i,s),f=new Function("to_moz","to_moz_block","to_moz_scope","return("+f+")")(c,l,p),t[e]=u,a(r,f)}t.UpdateExpression=t.UnaryExpression=function(e){return new(("prefix"in e?e.prefix:"UnaryExpression"==e.type)?zt:Ot)({start:n(e),end:i(e),operator:e.operator,expression:s(e.argument)})},t.ClassDeclaration=t.ClassExpression=function(e){return new("ClassDeclaration"===e.type?Kt:Qt)({start:n(e),end:i(e),name:s(e.id),extends:s(e.superClass),properties:e.body.body.map(s)})},r("EmptyStatement",Se),r("BlockStatement",Ce,"body@body"),r("IfStatement",at,"test>condition, consequent>body, alternate>alternative"),r("LabeledStatement",Te,"label>label, body>body"),r("BreakStatement",it,"label>label"),r("ContinueStatement",rt,"label>label"),r("WithStatement",je,"object>expression, body>body"),r("SwitchStatement",ut,"discriminant>expression, cases@body"),r("ReturnStatement",et,"argument>value"),r("ThrowStatement",tt,"argument>value"),r("WhileStatement",Me,"test>condition, body>body"),r("DoWhileStatement",Oe,"test>condition, body>body"),r("ForStatement",qe,"init>init, test>condition, update>step, body>body"),r("ForInStatement",Ne,"left>init, right>object, body>body"),r("ForOfStatement",Ie,"left>init, right>object, body>body, await=await"),r("AwaitExpression",ot,"argument>expression"),r("YieldExpression",st,"argument>expression, delegate=is_star"),r("DebuggerStatement",we),r("VariableDeclarator",yt,"id>name, init>value"),r("CatchClause",ht,"param>argname, body%body"),r("ThisExpression",An),r("Super",xn),r("BinaryExpression",Mt,"operator=operator, left>left, right>right"),r("LogicalExpression",Mt,"operator=operator, left>left, right>right"),r("AssignmentExpression",Nt,"operator=operator, left>left, right>right"),r("ConditionalExpression",qt,"test>condition, consequent>consequent, alternate>alternative"),r("NewExpression",Et,"callee>expression, arguments@args"),r("CallExpression",xt,"callee>expression, optional=optional, arguments@args"),a(He,(function(e){return p("Program",e)})),a(Re,(function(e){return{type:f?"RestElement":"SpreadElement",argument:c(e.expression)}})),a(Ge,(function(e){return{type:"TaggedTemplateExpression",tag:c(e.prefix),quasi:c(e.template_string)}})),a(Xe,(function(e){for(var t=[],n=[],i=0;i<e.segments.length;i++)i%2!=0?n.push(c(e.segments[i])):t.push({type:"TemplateElement",value:{raw:e.segments[i].raw,cooked:e.segments[i].value},tail:i===e.segments.length-1});return{type:"TemplateLiteral",quasis:t,expressions:n}})),a(We,(function(e){return{type:"FunctionDeclaration",id:c(e.name),params:e.argnames.map(c),generator:e.is_generator,async:e.async,body:p("BlockStatement",e)}})),a(Ve,(function(e,t){var n=void 0!==t.is_generator?t.is_generator:e.is_generator;return{type:"FunctionExpression",id:c(e.name),params:e.argnames.map(c),generator:n,async:e.async,body:p("BlockStatement",e)}})),a(Ye,(function(e){var t={type:"BlockStatement",body:e.body.map(c)};return{type:"ArrowFunctionExpression",params:e.argnames.map(c),async:e.async,body:t}})),a(Je,(function(e){return e.is_array?{type:"ArrayPattern",elements:e.names.map(c)}:{type:"ObjectPattern",properties:e.names.map(c)}})),a(Ae,(function(e){return{type:"ExpressionStatement",expression:{type:"Literal",value:e.value,raw:e.print_to_string},directive:e.value}})),a(xe,(function(e){return{type:"ExpressionStatement",expression:c(e.body)}})),a(ct,(function(e){return{type:"SwitchCase",test:c(e.expression),consequent:e.body.map(c)}})),a(pt,(function(e){return{type:"TryStatement",block:l(e),handler:c(e.bcatch),guardedHandlers:[],finalizer:c(e.bfinally)}})),a(ht,(function(e){return{type:"CatchClause",param:c(e.argname),guard:null,body:l(e)}})),a(mt,(function(e){return{type:"VariableDeclaration",kind:e instanceof gt?"const":e instanceof vt?"let":"var",declarations:e.definitions.map(c)}})),a(At,(function(e){return e.exported_names?"*"===e.exported_names[0].name.name?{type:"ExportAllDeclaration",source:c(e.module_name)}:{type:"ExportNamedDeclaration",specifiers:e.exported_names.map((function(e){return{type:"ExportSpecifier",exported:c(e.foreign_name),local:c(e.name)}})),declaration:c(e.exported_definition),source:c(e.module_name)}:{type:e.is_default?"ExportDefaultDeclaration":"ExportNamedDeclaration",declaration:c(e.exported_value||e.exported_definition)}})),a(bt,(function(e){var t=[];return e.imported_name&&t.push({type:"ImportDefaultSpecifier",local:c(e.imported_name)}),e.imported_names&&"*"===e.imported_names[0].foreign_name.name?t.push({type:"ImportNamespaceSpecifier",local:c(e.imported_names[0].name)}):e.imported_names&&e.imported_names.forEach((function(e){t.push({type:"ImportSpecifier",local:c(e.name),imported:c(e.foreign_name)})})),{type:"ImportDeclaration",specifiers:t,source:c(e.module_name)}})),a(wt,(function{return{type:"MetaProperty",meta:{type:"Identifier",name:"import"},property:{type:"Identifier",name:"meta"}}})),a(kt,(function(e){return{type:"SequenceExpression",expressions:e.expressions.map(c)}})),a(St,(function(e){return{type:"MemberExpression",object:c(e.expression),computed:!1,property:{type:"PrivateIdentifier",name:e.property},optional:e.optional}})),a(Ft,(function(e){var t=e instanceof Bt;return{type:"MemberExpression",object:c(e.expression),computed:t,property:t?c(e.property):{type:"Identifier",name:e.property},optional:e.optional}})),a(Tt,(function(e){return{type:"ChainExpression",expression:c(e.expression)}})),a($t,(function(e){return{type:"++"==e.operator||"--"==e.operator?"UpdateExpression":"UnaryExpression",operator:e.operator,prefix:e instanceof zt,argument:c(e.expression)}})),a(Mt,(function(e){if("="==e.operator&&f)return{type:"AssignmentPattern",left:c(e.left),right:c(e.right)};return{type:"&&"==e.operator||"||"==e.operator||"??"===e.operator?"LogicalExpression":"BinaryExpression",left:c(e.left),operator:e.operator,right:c(e.right)}})),a(jt,(function(e){return{type:"ArrayExpression",elements:e.elements.map(c)}})),a(Pt,(function(e){return{type:"ObjectExpression",properties:e.properties.map(c)}})),a(Ht,(function(e,t){var n,i=e.key instanceof De?c(e.key):{type:"Identifier",value:e.key};"number"==typeof e.key&&(i={type:"Literal",value:Number(e.key)}),"string"==typeof e.key&&(i={type:"Identifier",name:e.key});var r="string"==typeof e.key||"number"==typeof e.key,o=!r&&(!(e.key instanceof en)||e.key instanceof yn);if(e instanceof Rt?(n="init",o=!r):e instanceof Yt?n="get":e instanceof Vt&&(n="set"),e instanceof Ut||e instanceof Lt){return{type:"MethodDefinition",computed:!1,kind:e instanceof Ut?"get":"set",static:e.static,key:{type:"PrivateIdentifier",name:e.key.name},value:c(e.value)}}return e instanceof Zt?{type:"PropertyDefinition",key:{type:"PrivateIdentifier",name:e.key.name},value:c(e.value),computed:!1,static:e.static}:e instanceof Xt?{type:"PropertyDefinition",key:i,value:c(e.value),computed:o,static:e.static}:t instanceof Gt?{type:"MethodDefinition",computed:o,kind:n,static:e.static,key:c(e.key),value:c(e.value)}:{type:"Property",computed:o,kind:n,key:i,value:c(e.value)}})),a(Wt,(function(e,t){if(t instanceof Pt)return{type:"Property",computed:!(e.key instanceof en)||e.key instanceof yn,kind:"init",method:!0,shorthand:!1,key:c(e.key),value:c(e.value)};const n=e instanceof Jt?{type:"PrivateIdentifier",name:e.key.name}:c(e.key);return{type:"MethodDefinition",kind:"constructor"===e.key?"constructor":"method",key:n,value:c(e.value),computed:!(e.key instanceof en)||e.key instanceof yn,static:e.static}})),a(Gt,(function(e){return{type:e instanceof Qt?"ClassExpression":"ClassDeclaration",superClass:c(e.extends),id:e.name?c(e.name):null,body:{type:"ClassBody",body:e.properties.map(c)}}})),a(tn,(function{return{type:"MetaProperty",meta:{type:"Identifier",name:"new"},property:{type:"Identifier",name:"target"}}})),a(en,(function(e,t){if(e instanceof fn&&t.quote)return{type:"Literal",value:e.name};var n=e.definition;return{type:"Identifier",name:n?n.mangled_name||n.name:e.name}})),a(Sn,(function(e){const t=e.value.source,n=e.value.flags;return{type:"Literal",value:null,raw:e.print_to_string,regex:{pattern:t,flags:n}}})),a(En,(function(e){return{type:"Literal",value:e.value,raw:e.raw||e.print_to_string}})),a(Bn,(function(e){return{type:"Identifier",name:String(e.value)}})),a(Cn,(e=>({type:"BigIntLiteral",value:e.value}))),qn.DEFMETHOD("to_mozilla_ast",En.prototype.to_mozilla_ast),Tn.DEFMETHOD("to_mozilla_ast",En.prototype.to_mozilla_ast),On.DEFMETHOD("to_mozilla_ast",(function{return null})),Fe.DEFMETHOD("to_mozilla_ast",Ce.prototype.to_mozilla_ast),Le.DEFMETHOD("to_mozilla_ast",Ve.prototype.to_mozilla_ast);var o=null;function s(e){o.push(e);var n=null!=e?t[e.type](e):null;return o.pop,n}function a(e,t){e.DEFMETHOD("to_mozilla_ast",(function(e){return n=this,i=t(this,e),r=n.start,o=n.end,r&&o?(null!=r.pos&&null!=o.endpos&&(i.range=[r.pos,o.endpos]),r.line&&(i.loc={start:{line:r.line,column:r.col},end:o.endline?{line:o.endline,column:o.endcol}:null},r.file&&(i.loc.source=r.file)),i):i;var n,i,r,o}))}De.from_mozilla_ast=function(e){var t=o;o=[];var n=s(e);return o=t,n};var u=null;function c(e){null===u&&(u=[]),u.push(e);var t=null!=e?e.to_mozilla_ast(u[u.length-2]):null;return u.pop,0===u.length&&(u=null),t}function f{for(var e=u.length;e--;)if(u[e]instanceof Je)return!0;return!1}function l(e){return{type:"BlockStatement",body:e.body.map(c)}}function p(e,t){var n=t.body.map(c);return t.body[0]instanceof xe&&t.body[0].body instanceof kn&&n.unshift(c(new Se(t.body[0]))),{type:e,body:n}}};const Kn=/^$|[;{][\s\n]*$/,Qn=/[@#]__(PURE|INLINE|NOINLINE)__/g;function ei(e){return("comment2"===e.type||"comment1"===e.type)&&/@preserve|@lic|@cc_on|^\**!/i.test(e.value)}function ti(e){var t=!e;void 0===(e=a(e,{ascii_only:!1,beautify:!1,braces:!1,comments:"some",ecma:5,ie8:!1,indent_level:4,indent_start:0,inline_script:!0,keep_numbers:!1,keep_quoted_props:!1,max_line_len:!1,preamble:null,preserve_annotations:!1,quote_keys:!1,quote_style:0,safari10:!1,semicolons:!0,shebang:!0,shorthand:void 0,source_map:null,webkit:!1,width:80,wrap_iife:!1,wrap_func_args:!0},!0)).shorthand&&(e.shorthand=e.ecma>5);var n=c;if(e.comments){let t=e.comments;if("string"==typeof e.comments&&/^\/.*\/[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))}n=t instanceof RegExp?function(e){return"comment5"!=e.type&&t.test(e.value)}:"function"==typeof t?function(e){return"comment5"!=e.type&&t(this,e)}:"some"===t?ei:f}var r=0,o=0,s=1,l=0,p="";let h=new Set;var d=e.ascii_only?function(t,n){return e.ecma>=2015&&!e.safari10&&(t=t.replace(/[\ud800-\udbff][\udc00-\udfff]/g,(function(e){return"\\u{"+function(e,t){return G(e.charCodeAt(t))?65536+(e.charCodeAt(t)-55296<<10)+e.charCodeAt(t+1)-56320:e.charCodeAt(t)}(e,0).toString(16)+"}"}))),t.replace(/[\u0000-\u001f\u007f-\uffff]/g,(function(e){var t=e.charCodeAt(0).toString(16);if(t.length<=2&&!n){for(t.length<2;)t="0"+t;return"\\x"+t}for(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){return t?"\\u"+t.charCodeAt(0).toString(16):e}))};function m(t,n){var i=function(t,n){var i=0,r=0;function o{return"'"+t.replace(/\x27/g,"\\'")+"'"}function s{return'"'+t.replace(/\x22/g,'\\"')+'"'}if(t=t.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,(function(n,o){switch(n){case'"':return++i,'"';case"'":return++r,"'";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(J(t,o+1))?"\\x00":"\\0"}return n})),t=d(t),"`"===n)return"`"+t.replace(/`/g,"\\`")+"`";switch(e.quote_style){case 1:return o;case 2:return s;case 3:return"'"==n?o:s;default:return i>r?o:s}}(t,n);return e.inline_script&&(i=(i=(i=i.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"e.max_line_len&&w){var t=p.slice(0,w),n=p.slice(w);if(F){var i=n.length-o;F.forEach((function(e){e.line++,e.col+=i}))}p=t+"\n"+n,s++,l++,o=n.length}w&&(w=0,C)}:u,B=y("( [ + * / -,. `");function T(t){var n=J(t=String(t),0);A&&n&&(A=!1,"\n"!==n&&(T("\n"),z)),x&&n&&(x=!1,/[\s;})]/.test(n)||$),E=-1;var i=k.charAt(k.length-1);b&&(b=!1,(":"!==i||"}"!==n)&&(n&&";}".includes(n)||";"===i)||(e.semicolons||B.has(n)?(p+=";",o++,l++):(S,o>0&&(p+="\n",l++,s++,o=0),/^\s+$/.test(t)&&(b=!0)),e.beautify||(D=!1))),D&&((Q(i)&&(Q(n)||"\\"==n)||"/"==n&&n==i||("+"==n||"-"==n)&&n==k)&&(p+=" ",o++,l++),D=!1),_&&(F.push({token:_,name:v,line:s,col:o}),_=!1,w||C),p+=t,g="("==t[t.length-1],l+=t.length;var r=t.split(/\r?\n/),a=r.length-1;s+=a,o+=r[0].length,a>0&&(S,o=r[a].length),k=t}var $=e.beautify?function{T(" ")}:function{D=!0},z=e.beautify?function(t){var n;e.beautify&&T((n=t?.5:0," ".repeat(e.indent_start+r-n*e.indent_level)))}:u,O=e.beautify?function(e,t){!0===e&&(e=I);var n=r;r=e;var i=t;return r=n,i}:function(e,t){return t},M=e.beautify?function{if(E<0)return T("\n");"\n"!=p[E]&&(p=p.slice(0,E)+"\n"+p.slice(E),l++,s++),E++}:e.max_line_len?function{S,w=p.length}:u,q=e.beautify?function{T(";")}:function{b=!0};function N{b=!1,T(";")}function I{return r+e.indent_level}function j{return w&&S,p}function P{let e=p.length-1;for(e>=0;){const t=p.charCodeAt(e);if(10===t)return!0;if(32!==t)return!1;e--}return!0}function H(t){return e.preserve_annotations||(t=t.replace(Qn," ")),/^\s*$/.test(t)?"":t.replace(/(<\s*\/\s*)(script)/i,"=e.width},has_parens:function{return g},newline:M,print:T,star:function{T("*")},space:$,comma:function{T(","),$},colon:function{T(":"),$},last:function{return k},semicolon:q,force_semicolon:N,to_utf8:d,print_name:function(e){T(function(e){return e=e.toString,d(e,!0)}(e))},print_string:function(e,t,n){var i=m(e,t);!0!==n||i.includes("\\")||(Kn.test(p)||N,N),T(i)},print_template_string_chars:function(e){var t=m(e,"`").replace(/\${/g,"\\${");return T(t.substr(1,t.length-2))},encode_string:m,next_indent:I,with_indent:O,with_block:function(e){var t;return T("{"),M,O(I,(function{t=e})),z,T("}"),t},with_parens:function(e){T("(");var t=e;return T(")"),t},with_square:function(e){T("[");var t=e;return T("]"),t},add_mapping:F?function(e,t){_=e,v=t}:u,option:function(t){return e[t]},printed_comments:h,prepend_comments:t?u:function(t){var i=t.start;if(!i)return;var r=this.printed_comments;const o=t instanceof Qe&&t.value;if(i.comments_before&&r.has(i.comments_before)){if(!o)return;i.comments_before=[]}var s=i.comments_before;if(s||(s=i.comments_before=[]),r.add(s),o){var a=new Rn((function(e){var t=a.parent;if(!(t instanceof Qe||t instanceof Mt&&t.left===e||"Call"==t.TYPE&&t.expression===e||t instanceof qt&&t.condition===e||t instanceof Ct&&t.expression===e||t instanceof kt&&t.expressions[0]===e||t instanceof Bt&&t.expression===e||t instanceof Ot))return!0;if(e.start){var n=e.start.comments_before;n&&!r.has(n)&&(r.add(n),s=s.concat(n))}}));a.push(t),t.value.walk(a)}if(0==l){s.length>0&&e.shebang&&"comment5"===s[0].type&&!r.has(s[0])&&(T("#!"+s.shift.value+"\n"),z);var u=e.preamble;u&&T(u.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}if(0!=(s=s.filter(n,t).filter((e=>!r.has(e)))).length){var c=P;s.forEach((function(e,t){if(r.add(e),c||(e.nlb?(T("\n"),z,c=!0):t>0&&$),/comment[134]/.test(e.type))(n=H(e.value))&&(T("//"+n+"\n"),z),c=!0;else if("comment2"==e.type){var n;(n=H(e.value))&&T("/*"+n+"*/"),c=!1}})),c||(i.nlb?(T("\n"),z):$)}},append_comments:t||n===c?u:function(e,t){var i=e.end;if(i){var r=this.printed_comments,o=i[t?"comments_before":"comments_after"];if(o&&!r.has(o)&&(e instanceof be||o.every((e=>!/comment[134]/.test(e.type))))){r.add(o);var s=p.length;o.filter(n,e).forEach((function(e,n){if(!r.has(e))if(r.add(e),x=!1,A?(T("\n"),z,A=!1):e.nlb&&(n>0||!P)?(T("\n"),z):(n>0||!t)&&$,/comment[134]/.test(e.type)){const t=H(e.value);t&&T("//"+t),A=!0}else if("comment2"==e.type){const t=H(e.value);t&&T("/*"+t+"*/"),x=!0}})),p.length>s&&(E=s)}}},line:function{return s},col:function{return o},pos:function{return l},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 e(e,t){e.DEFMETHOD("_codegen",t)}function t(e,n){Array.isArray(e)?e.forEach((function(e){t(e,n)})):e.DEFMETHOD("needs_parens",n)}function n(e,t,n,i){var r=e.length-1;n.in_directive=i,e.forEach((function(e,i){!0!==n.in_directive||e instanceof Ae||e instanceof Se||e instanceof xe&&e.body instanceof kn||(n.in_directive=!1),e instanceof Se||(n.indent,e.print(n),i==r&&t||(n.newline,t&&n.newline)),!0===n.in_directive&&e instanceof xe&&e.body instanceof kn&&(n.in_directive=!1)})),n.in_directive=!1}function i(e,t){t.print("{"),t.with_indent(t.next_indent,(function{t.append_comments(e,!0)})),t.print("}")}function r(e,t,r){e.body.length>0?t.with_block((function{n(e.body,!1,t,r)})):i(e,t)}function o(e,t,n){var i=!1;n&&(i=jn(e,(e=>e instanceof Pe||(e instanceof Mt&&"in"==e.operator?Hn:void 0)))),e.print(t,i)}function s(e,t,n){return n.option("quote_keys")?n.print_string(e):""+ +e==e&&e>=0?n.option("keep_numbers")?n.print(e):n.print(p(e)):(T.has(e)?n.option("ie8"):n.option("ecma")<2015||n.option("safari10")?!te(e):!ne(e,!0))||t&&n.option("keep_quoted_props")?n.print_string(e,t):n.print_name(e)}De.DEFMETHOD("print",(function(e,t){var n=this,i=n._codegen;function r{e.prepend_comments(n),n.add_source_map(e),i(n,e),e.append_comments(n)}n instanceof Pe?e.active_scope=n:!e.use_asm&&n instanceof Ae&&"use asm"==n.value&&(e.use_asm=e.active_scope),e.push_node(n),t||n.needs_parens(e)?e.with_parens(r):r,e.pop_node,n===e.use_asm&&(e.use_asm=null)})),De.DEFMETHOD("_print",De.prototype.print),De.DEFMETHOD("print_to_string",(function(e){var t=ti(e);return this.print(t),t.get})),t(De,c),t(Ve,(function(e){if(!e.has_parens&&Xn(e))return!0;var t;if(e.option("webkit")&&((t=e.parent)instanceof Ft&&t.expression===this))return!0;if(e.option("wrap_iife")&&((t=e.parent)instanceof xt&&t.expression===this))return!0;if(e.option("wrap_func_args")&&((t=e.parent)instanceof xt&&t.args.includes(this)))return!0;return!1})),t(Ye,(function(e){var t=e.parent;return!!(e.option("wrap_func_args")&&t instanceof xt&&t.args.includes(this))||t instanceof Ft&&t.expression===this})),t(Pt,(function(e){return!e.has_parens&&Xn(e)})),t(Qt,Xn),t($t,(function(e){var t=e.parent;return t instanceof Ft&&t.expression===this||t instanceof xt&&t.expression===this||t instanceof Mt&&"**"===t.operator&&this instanceof zt&&t.left===this&&"++"!==this.operator&&"--"!==this.operator})),t(ot,(function(e){var t=e.parent;return t instanceof Ft&&t.expression===this||t instanceof xt&&t.expression===this||t instanceof Mt&&"**"===t.operator&&t.left===this||e.option("safari10")&&t instanceof zt})),t(kt,(function(e){var t=e.parent;return t instanceof xt||t instanceof $t||t instanceof Mt||t instanceof yt||t instanceof Ft||t instanceof jt||t instanceof Ht||t instanceof qt||t instanceof Ye||t instanceof It||t instanceof Re||t instanceof Ie&&this===t.object||t instanceof st||t instanceof At})),t(Mt,(function(e){var t=e.parent;if(t instanceof xt&&t.expression===this)return!0;if(t instanceof $t)return!0;if(t instanceof Ft&&t.expression===this)return!0;if(t instanceof Mt){const e=t.operator,n=this.operator;if("??"===n&&("||"===e||"&&"===e))return!0;if("??"===e&&("||"===n||"&&"===n))return!0;const i=he[e],r=he[n];if(i>r||i==r&&(this===t.right||"**"==e))return!0}})),t(st,(function(e){var t=e.parent;return t instanceof Mt&&"="!==t.operator||(t instanceof xt&&t.expression===this||(t instanceof qt&&t.condition===this||(t instanceof $t||(t instanceof Ft&&t.expression===this||void 0))))})),t(Ft,(function(e){var t=e.parent;if(t instanceof Et&&t.expression===this)return jn(this,(e=>e instanceof Pe||(e instanceof xt?Hn:void 0)))})),t(xt,(function(e){var t,n=e.parent;return!!(n instanceof Et&&n.expression===this||n instanceof At&&n.is_default&&this.expression instanceof Ve)||this.expression instanceof Ve&&n instanceof Ft&&n.expression===this&&(t=e.parent(1))instanceof Nt&&t.left===n})),t(Et,(function(e){var t=e.parent;if(0===this.args.length&&(t instanceof Ft||t instanceof xt&&t.expression===this))return!0})),t(Fn,(function(e){var t=e.parent;if(t instanceof Ft&&t.expression===this){var n=this.getValue;if(n<0||/^0/.test(p(n)))return!0}})),t(Cn,(function(e){var t=e.parent;if(t instanceof Ft&&t.expression===this&&this.getValue.startsWith("-"))return!0})),t([Nt,qt],(function(e){var t=e.parent;return t instanceof $t||(t instanceof Mt&&!(t instanceof Nt)||(t instanceof xt&&t.expression===this||(t instanceof qt&&t.condition===this||(t instanceof Ft&&t.expression===this||(this instanceof Nt&&this.left instanceof Je&&!1===this.left.is_array||void 0)))))})),e(Ae,(function(e,t){t.print_string(e.value,e.quote),t.semicolon})),e(Re,(function(e,t){t.print("..."),e.expression.print(t)})),e(Je,(function(e,t){t.print(e.is_array?"[":"{");var n=e.names.length;e.names.forEach((function(e,i){i>0&&t.comma,e.print(t),i==n-1&&e instanceof On&&t.comma})),t.print(e.is_array?"]":"}")})),e(we,(function(e,t){t.print("debugger"),t.semicolon})),Be.DEFMETHOD("_do_print_body",(function(e){l(this.body,e)})),e(be,(function(e,t){e.body.print(t),t.semicolon})),e(He,(function(e,t){n(e.body,!0,t,!0),t.print("")})),e(Te,(function(e,t){e.label.print(t),t.colon,e.body.print(t)})),e(xe,(function(e,t){e.body.print(t),t.semicolon})),e(Ce,(function(e,t){r(e,t)})),e(Se,(function(e,t){t.semicolon})),e(Oe,(function(e,t){t.print("do"),t.space,h(e.body,t),t.space,t.print("while"),t.space,t.with_parens((function{e.condition.print(t)})),t.semicolon})),e(Me,(function(e,t){t.print("while"),t.space,t.with_parens((function{e.condition.print(t)})),t.space,e._do_print_body(t)})),e(qe,(function(e,t){t.print("for"),t.space,t.with_parens((function{e.init?(e.init instanceof mt?e.init.print(t):o(e.init,t,!0),t.print(";"),t.space):t.print(";"),e.condition?(e.condition.print(t),t.print(";"),t.space):t.print(";"),e.step&&e.step.print(t)})),t.space,e._do_print_body(t)})),e(Ne,(function(e,t){t.print("for"),e.await&&(t.space,t.print("await")),t.space,t.with_parens((function{e.init.print(t),t.space,t.print(e instanceof Ie?"of":"in"),t.space,e.object.print(t)})),t.space,e._do_print_body(t)})),e(je,(function(e,t){t.print("with"),t.space,t.with_parens((function{e.expression.print(t)})),t.space,e._do_print_body(t)})),Le.DEFMETHOD("_do_print",(function(e,t){var n=this;t||(n.async&&(e.print("async"),e.space),e.print("function"),n.is_generator&&e.star,n.name&&e.space),n.name instanceof en?n.name.print(e):t&&n.name instanceof De&&e.with_square((function{n.name.print(e)})),e.with_parens((function{n.argnames.forEach((function(t,n){n&&e.comma,t.print(e)}))})),e.space,r(n,e,!0)})),e(Le,(function(e,t){e._do_print(t)})),e(Ge,(function(e,t){var n=e.prefix,i=n instanceof Le||n instanceof Mt||n instanceof qt||n instanceof kt||n instanceof $t||n instanceof Ct&&n.expression instanceof Pt;i&&t.print("("),e.prefix.print(t),i&&t.print(")"),e.template_string.print(t)})),e(Xe,(function(e,t){var n=t.parentinstanceof Ge;t.print("`");for(var i=0;i<e.segments.length;i++)e.segments[i]instanceof Ze?n?t.print(e.segments[i].raw):t.print_template_string_chars(e.segments[i].value):(t.print("${"),e.segments[i].print(t),t.print("}"));t.print("`")})),e(Ze,(function(e,t){t.print_template_string_chars(e.value)})),Ye.DEFMETHOD("_do_print",(function(e){var t=this,n=e.parent,i=n instanceof Mt&&!(n instanceof Nt)||n instanceof $t||n instanceof xt&&t===n.expression;i&&e.print("("),t.async&&(e.print("async"),e.space),1===t.argnames.length&&t.argnames[0]instanceof en?t.argnames[0].print(e):e.with_parens((function{t.argnames.forEach((function(t,n){n&&e.comma,t.print(e)}))})),e.space,e.print("=>"),e.space;const o=t.body[0];if(1===t.body.length&&o instanceof et){const t=o.value;t?Zn(t)?(e.print("("),t.print(e),e.print(")")):t.print(e):e.print("{}")}else r(t,e);i&&e.print(")")})),Qe.DEFMETHOD("_do_print",(function(e,t){if(e.print(t),this.value){e.space;const t=this.value.start.comments_before;t&&t.length&&!e.printed_comments.has(t)?(e.print("("),this.value.print(e),e.print(")")):this.value.print(e)}e.semicolon})),e(et,(function(e,t){e._do_print(t,"return")})),e(tt,(function(e,t){e._do_print(t,"throw")})),e(st,(function(e,t){var n=e.is_star?"*":"";t.print("yield"+n),e.expression&&(t.space,e.expression.print(t))})),e(ot,(function(e,t){t.print("await"),t.space;var n=e.expression,i=!(n instanceof xt||n instanceof yn||n instanceof Ft||n instanceof $t||n instanceof En||n instanceof ot||n instanceof Pt);i&&t.print("("),e.expression.print(t),i&&t.print(")")})),nt.DEFMETHOD("_do_print",(function(e,t){e.print(t),this.label&&(e.space,this.label.print(e)),e.semicolon})),e(it,(function(e,t){e._do_print(t,"break")})),e(rt,(function(e,t){e._do_print(t,"continue")})),e(at,(function(e,t){t.print("if"),t.space,t.with_parens((function{e.condition.print(t)})),t.space,e.alternative?(!function(e,t){var n=e.body;if(t.option("braces")||t.option("ie8")&&n instanceof Oe)return h(n,t);if(!n)return t.force_semicolon;forif(n instanceof at){if(!n.alternative)return void h(e.body,t);n=n.alternative}else{if(!(n instanceof Be))break;n=n.body}l(e.body,t)}(e,t),t.space,t.print("else"),t.space,e.alternative instanceof at?e.alternative.print(t):l(e.alternative,t)):e._do_print_body(t)})),e(ut,(function(e,t){t.print("switch"),t.space,t.with_parens((function{e.expression.print(t)})),t.space;var n=e.body.length-1;n<0?i(e,t):t.with_block((function{e.body.forEach((function(e,i){t.indent(!0),e.print(t),i0&&t.newline}))}))})),ct.DEFMETHOD("_do_print_body",(function(e){e.newline,this.body.forEach((function(t){e.indent,t.print(e),e.newline}))})),e(ft,(function(e,t){t.print("default:"),e._do_print_body(t)})),e(lt,(function(e,t){t.print("case"),t.space,e.expression.print(t),t.print(":"),e._do_print_body(t)})),e(pt,(function(e,t){t.print("try"),t.space,r(e,t),e.bcatch&&(t.space,e.bcatch.print(t)),e.bfinally&&(t.space,e.bfinally.print(t))})),e(ht,(function(e,t){t.print("catch"),e.argname&&(t.space,t.with_parens((function{e.argname.print(t)}))),t.space,r(e,t)})),e(dt,(function(e,t){t.print("finally"),t.space,r(e,t)})),mt.DEFMETHOD("_do_print",(function(e,t){e.print(t),e.space,this.definitions.forEach((function(t,n){n&&e.comma,t.print(e)}));var n=e.parent;(!(n instanceof qe||n instanceof Ne)||n&&n.init!==this)&&e.semicolon})),e(vt,(function(e,t){e._do_print(t,"let")})),e(_t,(function(e,t){e._do_print(t,"var")})),e(gt,(function(e,t){e._do_print(t,"const")})),e(bt,(function(e,t){t.print("import"),t.space,e.imported_name&&e.imported_name.print(t),e.imported_name&&e.imported_names&&(t.print(","),t.space),e.imported_names&&(1===e.imported_names.length&&"*"===e.imported_names[0].foreign_name.name?e.imported_names[0].print(t):(t.print("{"),e.imported_names.forEach((function(n,i){t.space,n.print(t),i<e.imported_names.length-1&&t.print(",")})),t.space,t.print("}"))),(e.imported_name||e.imported_names)&&(t.space,t.print("from"),t.space),e.module_name.print(t),t.semicolon})),e(wt,(function(e,t){t.print("import.meta")})),e(Dt,(function(e,t){var n=t.parentinstanceof bt,i=e.name.definition;(i&&i.mangled_name||e.name.name)!==e.foreign_name.name?(n?t.print(e.foreign_name.name):e.name.print(t),t.space,t.print("as"),t.space,n?e.name.print(t):t.print(e.foreign_name.name)):e.name.print(t)})),e(At,(function(e,t){if(t.print("export"),t.space,e.is_default&&(t.print("default"),t.space),e.exported_names)1===e.exported_names.length&&"*"===e.exported_names[0].name.name?e.exported_names[0].print(t):(t.print("{"),e.exported_names.forEach((function(n,i){t.space,n.print(t),i<e.exported_names.length-1&&t.print(",")})),t.space,t.print("}"));else if(e.exported_value)e.exported_value.print(t);else if(e.exported_definition&&(e.exported_definition.print(t),e.exported_definition instanceof mt))return;e.module_name&&(t.space,t.print("from"),t.space,e.module_name.print(t)),(e.exported_value&&!(e.exported_value instanceof We||e.exported_value instanceof Ve||e.exported_value instanceof Gt)||e.module_name||e.exported_names)&&t.semicolon})),e(yt,(function(e,t){if(e.name.print(t),e.value){t.space,t.print("="),t.space;var n=t.parent(1),i=n instanceof qe||n instanceof Ne;o(e.value,t,i)}})),e(xt,(function(e,t){e.expression.print(t),e instanceof Et&&0===e.args.length||((e.expression instanceof xt||e.expression instanceof Le)&&t.add_mapping(e.start),e.optional&&t.print("?."),t.with_parens((function{e.args.forEach((function(e,n){n&&t.comma,e.print(t)}))})))})),e(Et,(function(e,t){t.print("new"),t.space,xt.prototype._codegen(e,t)})),kt.DEFMETHOD("_do_print",(function(e){this.expressions.forEach((function(t,n){n>0&&(e.comma,e.should_break&&(e.newline,e.indent)),t.print(e)}))})),e(kt,(function(e,t){e._do_print(t)})),e(Ct,(function(e,t){var n=e.expression;n.print(t);var i=e.property,r=T.has(i)?t.option("ie8"):!ne(i,t.option("ecma")>=2015||t.option("safari10"));e.optional&&t.print("?."),r?(t.print("["),t.add_mapping(e.end),t.print_string(i),t.print("]")):(n instanceof Fn&&n.getValue>=0&&(/[xa-f.)]/i.test(t.last)||t.print(".")),e.optional||t.print("."),t.add_mapping(e.end),t.print_name(i))})),e(St,(function(e,t){e.expression.print(t);var n=e.property;e.optional&&t.print("?"),t.print(".#"),t.print_name(n)})),e(Bt,(function(e,t){e.expression.print(t),e.optional&&t.print("?."),t.print("["),e.property.print(t),t.print("]")})),e(Tt,(function(e,t){e.expression.print(t)})),e(zt,(function(e,t){var n=e.operator;t.print(n),(/^[a-z]/i.test(n)||/[+-]$/.test(n)&&e.expression instanceof zt&&/^[+-]/.test(e.expression.operator))&&t.space,e.expression.print(t)})),e(Ot,(function(e,t){e.expression.print(t),t.print(e.operator)})),e(Mt,(function(e,t){var n=e.operator;e.left.print(t),">"==n[0]&&e.left instanceof Ot&&"--"==e.left.operator?t.print(" "):t.space,t.print(n),("<"==n||"<<"==n)&&e.right instanceof zt&&"!"==e.right.operator&&e.right.expression instanceof zt&&"--"==e.right.expression.operator?t.print(" "):t.space,e.right.print(t)})),e(qt,(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)})),e(jt,(function(e,t){t.with_square((function{var n=e.elements,i=n.length;i>0&&t.space,n.forEach((function(e,n){n&&t.comma,e.print(t),n===i-1&&e instanceof On&&t.comma})),i>0&&t.space}))})),e(Pt,(function(e,t){e.properties.length>0?t.with_block((function{e.properties.forEach((function(e,n){n&&(t.print(","),t.newline),t.indent,e.print(t)})),t.newline})):i(e,t)})),e(Gt,(function(e,t){if(t.print("class"),t.space,e.name&&(e.name.print(t),t.space),e.extends){var n=!(e.extends instanceof yn||e.extends instanceof Ft||e.extends instanceof Qt||e.extends instanceof Ve);t.print("extends"),n?t.print("("):t.space,e.extends.print(t),n?t.print(")"):t.space}e.properties.length>0?t.with_block((function{e.properties.forEach((function(e,n){n&&t.newline,t.indent,e.print(t)})),t.newline})):t.print("{}")})),e(tn,(function(e,t){t.print("new.target")})),e(Rt,(function(e,t){function n(e){var t=e.definition;return t?t.mangled_name||t.name:e.name}var i=t.option("shorthand");i&&e.value instanceof en&&ne(e.key,t.option("ecma")>=2015||t.option("safari10"))&&n(e.value)===e.key&&!T.has(e.key)?s(e.key,e.quote,t):i&&e.value instanceof It&&e.value.left instanceof en&&ne(e.key,t.option("ecma")>=2015||t.option("safari10"))&&n(e.value.left)===e.key?(s(e.key,e.quote,t),t.space,t.print("="),t.space,e.value.right.print(t)):(e.key instanceof De?t.with_square((function{e.key.print(t)})):s(e.key,e.quote,t),t.colon,e.value.print(t))})),e(Zt,((e,t)=>{e.static&&(t.print("static"),t.space),t.print("#"),s(e.key.name,e.quote,t),e.value&&(t.print("="),e.value.print(t)),t.semicolon})),e(Xt,((e,t)=>{e.static&&(t.print("static"),t.space),e.key instanceof ln?s(e.key.name,e.quote,t):(t.print("["),e.key.print(t),t.print("]")),e.value&&(t.print("="),e.value.print(t)),t.semicolon})),Ht.DEFMETHOD("_print_getter_setter",(function(e,t,n){var i=this;i.static&&(n.print("static"),n.space),e&&(n.print(e),n.space),i.key instanceof fn?(t&&n.print("#"),s(i.key.name,i.quote,n)):n.with_square((function{i.key.print(n)})),i.value._do_print(n,!0)})),e(Vt,(function(e,t){e._print_getter_setter("set",!1,t)})),e(Yt,(function(e,t){e._print_getter_setter("get",!1,t)})),e(Lt,(function(e,t){e._print_getter_setter("set",!0,t)})),e(Ut,(function(e,t){e._print_getter_setter("get",!0,t)})),e(Jt,(function(e,t){var n;e.is_generator&&e.async?n="async*":e.is_generator?n="*":e.async&&(n="async"),e._print_getter_setter(n,!0,t)})),e(Wt,(function(e,t){var n;e.is_generator&&e.async?n="async*":e.is_generator?n="*":e.async&&(n="async"),e._print_getter_setter(n,!1,t)})),en.DEFMETHOD("_do_print",(function(e){var t=this.definition;e.print_name(t?t.mangled_name||t.name:this.name)})),e(en,(function(e,t){e._do_print(t)})),e(On,u),e(An,(function(e,t){t.print("this")})),e(xn,(function(e,t){t.print("super")})),e(En,(function(e,t){t.print(e.getValue)})),e(kn,(function(e,t){t.print_string(e.getValue,e.quote,t.in_directive)})),e(Fn,(function(e,t){(t.option("keep_numbers")||t.use_asm)&&e.raw?t.print(e.raw):t.print(p(e.getValue))})),e(Cn,(function(e,t){t.print(e.getValue+"n")}));const a=/(<\s*\/\s*script)/i,f=(e,t)=>t.replace("/","\\/");function l(e,t){t.option("braces")?h(e,t):!e||e instanceof Se?t.force_semicolon:e.print(t)}function p(e){var t,n,i,r=e.toString(10).replace(/^0\./,".").replace("e+","e"),o=[r];return Math.floor(e)===e&&(e<0?o.push("-0x"+(-e).toString(16).toLowerCase):o.push("0x"+e.toString(16).toLowerCase)),(t=/^\.0+/.exec(r))?(n=t[0].length,i=r.slice(n),o.push(i+"e-"+(i.length+n-1))):(t=/0+$/.exec(r))?(n=t[0].length,o.push(r.slice(0,-n)+"e"+n)):(t=/^(\d)\.(\d+)e(-?\d+)$/.exec(r))&&o.push(t[1]+t[2]+"e"+(t[3]-t[2].length)),function(e){for(var t=e[0],n=t.length,i=1;i{n+=e})),n}(i):"",n=n.replace(a,f),t.print(t.to_utf8(`/${n}/${i}`));const r=t.parent;r instanceof Mt&&/^\w/.test(r.operator)&&r.left===e&&t.print(" ")})),d([De,Te,He],u),d([jt,Ce,ht,Gt,En,we,mt,Ae,dt,Ke,Le,Et,Pt,Be,en,ut,ct,Xe,Ze,pt],(function(e){e.add_mapping(this.start)})),d([Yt,Vt],(function(e){e.add_mapping(this.start,this.key.name)})),d([Ht],(function(e){e.add_mapping(this.start,this.key)}))};const ni=(e,t)=>null===e&&null===t||e.TYPE===t.TYPE&&e.shallow_cmp(t),ii=e=>{const t=Object.keys(e).map((t=>{if("eq"===e[t])return`this.${t} === other.${t}`;if("exist"===e[t])return`(this.${t} == null ? other.${t} == null : this.${t} === other.${t})`;throw new Error(`mkshallow: Unexpected instruction: ${e[t]}`)})).join(" && ");return new Function("other","return "+t)},ri==>!0;De.prototype.shallow_cmp=function{throw new Error("did not find a shallow_cmp function for "+this.constructor.name)},we.prototype.shallow_cmp=ri,Ae.prototype.shallow_cmp=ii({value:"eq"}),xe.prototype.shallow_cmp=ri,Fe.prototype.shallow_cmp=ri,Se.prototype.shallow_cmp=ri,Te.prototype.shallow_cmp=ii({"label.name":"eq"}),Oe.prototype.shallow_cmp=ri,Me.prototype.shallow_cmp=ri,qe.prototype.shallow_cmp=ii({init:"exist",condition:"exist",step:"exist"}),Ne.prototype.shallow_cmp=ri,Ie.prototype.shallow_cmp=ri,je.prototype.shallow_cmp=ri,He.prototype.shallow_cmp=ri,Re.prototype.shallow_cmp=ri,Le.prototype.shallow_cmp=ii({is_generator:"eq",async:"eq"}),Je.prototype.shallow_cmp=ii({is_array:"eq"}),Ge.prototype.shallow_cmp=ri,Xe.prototype.shallow_cmp=ri,Ze.prototype.shallow_cmp=ii({value:"eq"}),Ke.prototype.shallow_cmp=ri,nt.prototype.shallow_cmp=ri,ot.prototype.shallow_cmp=ri,st.prototype.shallow_cmp=ii({is_star:"eq"}),at.prototype.shallow_cmp=ii({alternative:"exist"}),ut.prototype.shallow_cmp=ri,ct.prototype.shallow_cmp=ri,pt.prototype.shallow_cmp=ii({bcatch:"exist",bfinally:"exist"}),ht.prototype.shallow_cmp=ii({argname:"exist"}),dt.prototype.shallow_cmp=ri,mt.prototype.shallow_cmp=ri,yt.prototype.shallow_cmp=ii({value:"exist"}),Dt.prototype.shallow_cmp=ri,bt.prototype.shallow_cmp=ii({imported_name:"exist",imported_names:"exist"}),wt.prototype.shallow_cmp=ri,At.prototype.shallow_cmp=ii({exported_definition:"exist",exported_value:"exist",exported_names:"exist",module_name:"eq",is_default:"eq"}),xt.prototype.shallow_cmp=ri,kt.prototype.shallow_cmp=ri,Ft.prototype.shallow_cmp=ri,Tt.prototype.shallow_cmp=ri,Ct.prototype.shallow_cmp=ii({property:"eq"}),$t.prototype.shallow_cmp=ii({operator:"eq"}),Mt.prototype.shallow_cmp=ii({operator:"eq"}),qt.prototype.shallow_cmp=ri,jt.prototype.shallow_cmp=ri,Pt.prototype.shallow_cmp=ri,Ht.prototype.shallow_cmp=ri,Rt.prototype.shallow_cmp=ii({key:"eq"}),Vt.prototype.shallow_cmp=ii({static:"eq"}),Yt.prototype.shallow_cmp=ii({static:"eq"}),Wt.prototype.shallow_cmp=ii({static:"eq",is_generator:"eq",async:"eq"}),Gt.prototype.shallow_cmp=ii({name:"exist",extends:"exist"}),Xt.prototype.shallow_cmp=ii({static:"eq"}),en.prototype.shallow_cmp=ii({name:"eq"}),tn.prototype.shallow_cmp=ri,An.prototype.shallow_cmp=ri,xn.prototype.shallow_cmp=ri,kn.prototype.shallow_cmp=ii({value:"eq"}),Fn.prototype.shallow_cmp=ii({value:"eq"}),Cn.prototype.shallow_cmp=ii({value:"eq"}),Sn.prototype.shallow_cmp=function(e){return this.value.flags===e.value.flags&&this.value.source===e.value.source},Bn.prototype.shallow_cmp=ri;let oi=null,si=null;class ai{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=!1,this.export=0,this.mangled_name=null,this.undeclared=!1,this.id=ai.next_id++,this.chained=!1,this.direct_access=!1,this.escaped=0,this.recursive_refs=0,this.references=[],this.should_replace=void 0,this.single_use=!1,this.fixed=!1,Object.seal(this)}fixed_value{return!this.fixed||this.fixed instanceof De?this.fixed:this.fixed}unmangleable(e){return e||(e={}),!!(oi&&oi.has(this.id)&&w(e.keep_fnames,this.orig[0].name))||(this.global&&!e.toplevel||1&this.export||this.undeclared||!e.eval&&this.scope.pinned||(this.orig[0]instanceof pn||this.orig[0]instanceof cn)&&w(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof fn||(this.orig[0]instanceof dn||this.orig[0]instanceof hn)&&w(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,i=this.orig[0];e.ie8&&i instanceof pn&&(n=n.parent_scope);const r=ui(this);this.mangled_name=r?r.mangled_name||r.name:n.next_mangled(e,this),this.global&&t&&t.set(this.name,this.mangled_name)}}}function ui(e){if(e.orig[0]instanceof mn&&e.scope.is_block_scope)return e.scope.get_defun_scope.variables.get(e.name)}function ci(e,t){var n=e.enclosed;e:for{var i=fi(++e.cname);if(!T.has(i)&&!(t.reserved.has(i)||si&&si.has(i))){for(let e=n.length;--e>=0;){const r=n[e];if(i==(r.mangled_name||r.unmangleable(t)&&r.name))continue e}return i}}}ai.next_id=1,Pe.DEFMETHOD("figure_out_scope",(function(e,{parent_scope:t=null,toplevel:n=this}={}){if(e=a(e,{cache:null,ie8:!1,safari10:!1}),!(n instanceof He))throw new Error("Invalid toplevel scope");var i=this.parent_scope=t,r=new Map,o=null,s=null,u=[],c=new Rn(((t,n)=>{if(t.is_block_scope){const r=i;t.block_scope=i=new Pe(t),i._block_scope=!0;const o=t instanceof ht?r.parent_scope:r;if(i.init_scope_vars(o),i.uses_with=r.uses_with,i.uses_eval=r.uses_eval,e.safari10&&(t instanceof qe||t instanceof Ne)&&u.push(i),t instanceof ut){const e=i;i=r,t.expression.walk(c),i=e;for(let e=0;e<t.body.length;e++)t.body[e].walk(c)}else n;return i=r,!0}if(t instanceof Je){const e=s;return s=t,n,s=e,!0}if(t instanceof Pe){t.init_scope_vars(i);var a=i,l=o,p=r;return o=i=t,r=new Map,n,i=a,o=l,r=p,!0}if(t instanceof Te){var h=t.label;if(r.has(h.name))throw new Error(_("Label {name} defined twice",h));return r.set(h.name,h),n,r.delete(h.name),!0}if(t instanceof je)for(var d=i;d;d=d.parent_scope)d.uses_with=!0;else{if(t instanceof en&&(t.scope=i),t instanceof gn&&(t.thedef=t,t.references=[]),t instanceof pn)o.def_function(t,"arguments"==t.name?void 0:o);else if(t instanceof cn)f((t.scope=o.parent_scope.get_defun_scope).def_function(t,o),1);else if(t instanceof dn)f(o.def_variable(t,o),1);else if(t instanceof _n)i.def_variable(t);else if(t instanceof hn)f((t.scope=o.parent_scope).def_function(t,o),1);else if(t instanceof rn||t instanceof an||t instanceof sn||t instanceof mn){if((m=t instanceof on?i.def_variable(t,null):o.def_variable(t,"SymbolVar"==t.TYPE?null:void 0)).orig.every((e=>e===t||(t instanceof on?e instanceof pn:!(e instanceof an||e instanceof sn))))||oe(`"${t.name}" is redeclared`,t.start.file,t.start.line,t.start.col,t.start.pos),t instanceof un||f(m,2),o!==i){t.mark_enclosed;var m=i.find_variable(t);t.thedef!==m&&(t.thedef=m,t.reference)}}else if(t instanceof wn){var v=r.get(t.name);if(!v)throw new Error(_("Undefined label {name} [{line},{col}]",{name:t.name,line:t.start.line,col:t.start.col}));t.thedef=v}i instanceof He||!(t instanceof At||t instanceof bt)||oe(`"${t.TYPE}" statement may only appear at the top level`,t.start.file,t.start.line,t.start.col,t.start.pos)}}));function f(e,t){if(s){var n=0;do{t++}while(c.parent(n++)!==s)}var i=c.parent(t);if(e.export=i instanceof At?1:0){var r=i.exported_definition;(r instanceof We||r instanceof Kt)&&i.is_default&&(e.export=2)}}this.walk(c);this instanceof He&&(this.globals=new Map);c=new Rn((e=>{if(e instanceof nt&&e.label)return e.label.thedef.references.push(e),!0;if(e instanceof yn){var t,i=e.name;if("eval"==i&&c.parentinstanceof xt)for(var r=e.scope;r&&!r.uses_eval;r=r.parent_scope)r.uses_eval=!0;return c.parentinstanceof Dt&&c.parent(1).module_name||!(t=e.scope.find_variable(i))?(t=n.def_global(e),e instanceof Dn&&(t.export=1)):t.scope instanceof Le&&"arguments"==i&&(t.scope.uses_arguments=!0),e.thedef=t,e.reference,!e.scope.is_block_scope||t.orig[0]instanceof on||(e.scope=e.scope.get_defun_scope),!0}var o;if(e instanceof mn&&(o=ui(e.definition)))for(r=e.scope;r&&(m(r.enclosed,o),r!==o.scope);)r=r.parent_scope}));if(this.walk(c),(e.ie8||e.safari10)&&jn(this,(e=>{if(e instanceof mn){var t=e.name,i=e.thedef.references,r=e.scope.get_defun_scope,o=r.find_variable(t)||n.globals.get(t)||r.def_variable(e);return i.forEach((function(e){e.thedef=o,e.reference})),e.thedef=o,e.reference,!0}})),e.safari10)for(const e of u)e.parent_scope.variables.forEach((function(t){m(e.enclosed,t)}))})),He.DEFMETHOD("def_global",(function(e){var t=this.globals,n=e.name;if(t.has(n))return t.get(n);var i=new ai(this,e);return i.undeclared=!0,i.global=!0,t.set(n,i),i})),Pe.DEFMETHOD("init_scope_vars",(function(e){this.variables=new Map,this.functions=new Map,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=e,this.enclosed=[],this.cname=-1})),Pe.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)})),Pe.DEFMETHOD("conflicting_def_shallow",(function(e){return this.enclosed.find((t=>t.name===e))||this.variables.has(e)})),Pe.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);return e.reverse,e}),n=new Set(e.enclosed),i=[];for(const e of t){i.forEach((t=>m(e.enclosed,t)));for(const t of e.variables.values)n.has(t)&&(m(i,t),m(e.enclosed,t))}})),Pe.DEFMETHOD("create_symbol",(function(e,{source:t,tentative_name:n,scope:i,conflict_scopes:r=[i],init:o=null}={}){let s;if(r=function(e){const t=new Set;for(const n of new Set(e))!function e(n){null==n||t.has(n)||(t.add(n),e(n.parent_scope))}(n);return[...t]}(r),n){n=s=n.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/gi,"_");let e=0;for(r.find((e=>e.conflicting_def_shallow(s)));)s=n+"$"+e++}if(!s)throw new Error("No symbol name could be generated in create_symbol");const a=d(e,t,{name:s,scope:i});return this.def_variable(a,o||null),a.mark_enclosed,a})),De.DEFMETHOD("is_block_scope",c),Gt.DEFMETHOD("is_block_scope",c),Le.DEFMETHOD("is_block_scope",c),He.DEFMETHOD("is_block_scope",c),ct.DEFMETHOD("is_block_scope",c),Fe.DEFMETHOD("is_block_scope",f),Pe.DEFMETHOD("is_block_scope",(function{return this._block_scope||!1})),$e.DEFMETHOD("is_block_scope",f),Le.DEFMETHOD("init_scope_vars",(function{Pe.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new un({name:"arguments",start:this.start,end:this.end}))})),Ye.DEFMETHOD("init_scope_vars",(function{Pe.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1})),en.DEFMETHOD("mark_enclosed",(function{for(var e=this.definition,t=this.scope;t&&(m(t.enclosed,e),t!==e.scope);)t=t.parent_scope})),en.DEFMETHOD("reference",(function{this.definition.references.push(this),this.mark_enclosed})),Pe.DEFMETHOD("find_variable",(function(e){return e instanceof en&&(e=e.name),this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)})),Pe.DEFMETHOD("def_function",(function(e,t){var n=this.def_variable(e,t);return(!n.init||n.init instanceof We)&&(n.init=t),this.functions.set(e.name,n),n})),Pe.DEFMETHOD("def_variable",(function(e,t){var n=this.variables.get(e.name);return n?(n.orig.push(e),n.init&&(n.scope!==e.scope||n.init instanceof Ve)&&(n.init=t)):(n=new ai(this,e,t),this.variables.set(e.name,n),n.global=!this.parent_scope),e.thedef=n})),Pe.DEFMETHOD("next_mangled",(function(e){return ci(this,e)})),He.DEFMETHOD("next_mangled",(function(e){let t;const n=this.mangled_names;do{t=ci(this,e)}while(n.has(t));return t})),Ve.DEFMETHOD("next_mangled",(function(e,t){for(var n=t.orig[0]instanceof un&&this.name&&this.name.definition,i=n?n.mangled_name||n.name:null;;){var r=ci(this,e);if(!i||i!=r)return r}})),en.DEFMETHOD("unmangleable",(function(e){var t=this.definition;return!t||t.unmangleable(e)})),gn.DEFMETHOD("unmangleable",c),en.DEFMETHOD("unreferenced",(function{return!this.definition.references.length&&!this.scope.pinned})),en.DEFMETHOD("definition",(function{return this.thedef})),en.DEFMETHOD("global",(function{return this.thedef.global})),He.DEFMETHOD("_default_mangler_options",(function(e){return(e=a(e,{eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,reserved:[],toplevel:!1})).module&&(e.toplevel=!0),Array.isArray(e.reserved)||e.reserved instanceof Set||(e.reserved=[]),e.reserved=new Set(e.reserved),e.reserved.add("arguments"),e})),He.DEFMETHOD("mangle_names",(function(e){e=this._default_mangler_options(e);var t=-1,n=[];e.keep_fnames&&(oi=new Set);const i=this.mangled_names=new Set;e.cache&&(this.globals.forEach(o),e.cache.props&&e.cache.props.forEach((function(e){i.add(e)})));var r=new Rn((function(i,r){if(i instanceof Te){var s=t;return r,t=s,!0}if(i instanceof Pe)i.variables.forEach(o);else if(i.is_block_scope)i.block_scope.variables.forEach(o);else if(oi&&i instanceof yt&&i.value instanceof Le&&!i.value.name&&w(e.keep_fnames,i.name.name))oi.add(i.name.definition.id);else{if(i instanceof gn){let e;do{e=fi(++t)}while(T.has(e));return i.mangled_name=e,!0}!e.ie8&&!e.safari10&&i instanceof mn&&n.push(i.definition)}}));function o(t){!(e.reserved.has(t.name)||1&t.export)&&n.push(t)}this.walk(r),(e.keep_fnames||e.keep_classnames)&&(si=new Set,n.forEach((t=>{t.name.length<6&&t.unmangleable(e)&&si.add(t.name)}))),n.forEach((t=>{t.mangle(e)})),oi=null,si=null})),He.DEFMETHOD("find_colliding_names",(function(e){const t=e.cache&&e.cache.props,n=new Set;return e.reserved.forEach(i),this.globals.forEach(r),this.walk(new Rn((function(e){e instanceof Pe&&e.variables.forEach(r),e instanceof mn&&r(e.definition)}))),n;function i(e){n.add(e)}function r(n){var r=n.name;if(n.global&&t&&t.has(r))r=t.get(r);else if(!n.unmangleable(e))return;i(r)}})),He.DEFMETHOD("expand_names",(function(e){fi.reset,fi.sort,e=this._default_mangler_options(e);var t=this.find_colliding_names(e),n=0;function i(i){if(i.global&&e.cache)return;if(i.unmangleable(e))return;if(e.reserved.has(i.name))return;const r=ui(i),o=i.name=r?r.name:function{var e;do{e=fi(n++)}while(t.has(e)||T.has(e));return e};i.orig.forEach((function(e){e.name=o})),i.references.forEach((function(e){e.name=o}))}this.globals.forEach(i),this.walk(new Rn((function(e){e instanceof Pe&&e.variables.forEach(i),e instanceof mn&&i(e.definition)})))})),De.DEFMETHOD("tail_node",l),kt.DEFMETHOD("tail_node",(function{return this.expressions[this.expressions.length-1]})),He.DEFMETHOD("compute_char_frequency",(function(e){e=this._default_mangler_options(e);try{De.prototype.print=function(n,i){this._print(n,i),this instanceof en&&!this.unmangleable(e)?fi.consider(this.name,-1):e.properties&&(this instanceof St?fi.consider("#"+this.property,-1):this instanceof Ct?fi.consider(this.property,-1):this instanceof Bt&&t(this.property))},fi.consider(this.print_to_string,1)}finally{De.prototype.print=De.prototype._print}function t(e){e instanceof kn?fi.consider(e.value,-1):e instanceof qt?(t(e.consequent),t(e.alternative)):e instanceof kt&&t(e.tail_node)}fi.sort}));const fi=(=>{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split(""),t="0123456789".split("");let n,i;function r{i=new Map,e.forEach((function(e){i.set(e,0)})),t.forEach((function(e){i.set(e,0)}))}function o(e,t){return i.get(t)-i.get(e)}function s(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 s.consider=function(e,t){for(var n=e.length;--n>=0;)i.set(e[n],i.get(e[n])+t)},s.sort=function{n=g(e,o).concat(g(t,o))},s.reset=r,r,s});let li;De.prototype.size=function(e,t){li=e&&e.mangle_options;let n=0;return Pn(this,((e,t)=>{if(n+=e._size(t),e instanceof Ye&&e.is_braceless)return n+=e.body[0].value._size(t),!0}),t||e&&e.stack),li=void 0,n},De.prototype._size==>0,we.prototype._size==>8,Ae.prototype._size=function{return 2+this.value.length};const pi=e=>e.length&&e.length-1;Fe.prototype._size=function{return 2+pi(this.body)},He.prototype._size=function{return pi(this.body)},Se.prototype._size==>1,Te.prototype._size==>2,Oe.prototype._size==>9,Me.prototype._size==>7,qe.prototype._size==>8,Ne.prototype._size==>8,je.prototype._size==>6,Re.prototype._size==>3;const hi=e=>(e.is_generator?1:0)+(e.async?6:0);Ue.prototype._size=function{return hi(this)+4+pi(this.argnames)+pi(this.body)},Ve.prototype._size=function(e){return 2*!!Xn(e)+hi(this)+12+pi(this.argnames)+pi(this.body)},We.prototype._size=function{return hi(this)+13+pi(this.argnames)+pi(this.body)},Ye.prototype._size=function{let e=2+pi(this.argnames);1===this.argnames.length&&this.argnames[0]instanceof en||(e+=2);const t=this.is_braceless?0:pi(this.body)+2;return hi(this)+e+t},Je.prototype._size==>2,Xe.prototype._size=function{return 2+3*Math.floor(this.segments.length/2)},Ze.prototype._size=function{return this.value.length},et.prototype._size=function{return this.value?7:6},tt.prototype._size==>6,it.prototype._size=function{return this.label?6:5},rt.prototype._size=function{return this.label?9:8},at.prototype._size==>4,ut.prototype._size=function{return 8+pi(this.body)},lt.prototype._size=function{return 5+pi(this.body)},ft.prototype._size=function{return 8+pi(this.body)},pt.prototype._size=function{return 3+pi(this.body)},ht.prototype._size=function{let e=7+pi(this.body);return this.argname&&(e+=2),e},dt.prototype._size=function{return 7+pi(this.body)};const di=(e,t)=>e+pi(t.definitions);_t.prototype._size=function{return di(4,this)},vt.prototype._size=function{return di(4,this)},gt.prototype._size=function{return di(6,this)},yt.prototype._size=function{return this.value?1:0},Dt.prototype._size=function{return this.name?4:0},bt.prototype._size=function{let e=6;return this.imported_name&&(e+=1),(this.imported_name||this.imported_names)&&(e+=5),this.imported_names&&(e+=2+pi(this.imported_names)),e},wt.prototype._size==>11,At.prototype._size=function{let e=7+(this.is_default?8:0);return this.exported_value&&(e+=this.exported_value._size),this.exported_names&&(e+=2+pi(this.exported_names)),this.module_name&&(e+=5),e},xt.prototype._size=function{return this.optional?4+pi(this.args):2+pi(this.args)},Et.prototype._size=function{return 6+pi(this.args)},kt.prototype._size=function{return pi(this.expressions)},Ct.prototype._size=function{return this.optional?this.property.length+2:this.property.length+1},St.prototype._size=function{return this.optional?this.property.length+3:this.property.length+2},Bt.prototype._size=function{return this.optional?4:2},$t.prototype._size=function{return"typeof"===this.operator?7:"void"===this.operator?5:this.operator.length},Mt.prototype._size=function(e){if("in"===this.operator)return 4;let t=this.operator.length;return("+"===this.operator||"-"===this.operator)&&this.right instanceof $t&&this.right.operator===this.operator&&(t+=1),this.needs_parens(e)&&(t+=2),t},qt.prototype._size==>3,jt.prototype._size=function{return 2+pi(this.elements)},Pt.prototype._size=function(e){let t=2;return Xn(e)&&(t+=2),t+pi(this.properties)};const mi=e=>"string"==typeof e?e.length:0;Rt.prototype._size=function{return mi(this.key)+1};const _i=e=>e?7:0;Yt.prototype._size=function{return 5+_i(this.static)+mi(this.key)},Vt.prototype._size=function{return 5+_i(this.static)+mi(this.key)},Wt.prototype._size=function{return _i(this.static)+mi(this.key)+hi(this)},Jt.prototype._size=function{return Wt.prototype._size.call(this)+1},Ut.prototype._size=Lt.prototype._size=function{return Wt.prototype._size.call(this)+4},Gt.prototype._size=function{return(this.name?8:7)+(this.extends?8:0)},Xt.prototype._size=function{return _i(this.static)+("string"==typeof this.key?this.key.length+2:0)+(this.value?1:0)},Zt.prototype._size=function{return Xt.prototype._size.call(this)+1},en.prototype._size=function{return!li||this.definition.unmangleable(li)?this.name.length:1},ln.prototype._size=function{return this.name.length},yn.prototype._size=nn.prototype._size=function{const{name:e,thedef:t}=this;return t&&t.global?e.length:"arguments"===e?9:en.prototype._size.call(this)},tn.prototype._size==>10,vn.prototype._size=function{return this.name.length},bn.prototype._size=function{return this.name.length},An.prototype._size==>4,xn.prototype._size==>5,kn.prototype._size=function{return this.value.length+2},Fn.prototype._size=function{const{value:e}=this;return 0===e?1:e>0&&Math.floor(e)===e?Math.floor(Math.log10(e)+1):e.toString.length},Cn.prototype._size=function{return this.value.length},Sn.prototype._size=function{return this.value.toString.length},Tn.prototype._size==>4,$n.prototype._size==>3,zn.prototype._size==>6,On.prototype._size==>0,Mn.prototype._size==>8,In.prototype._size==>4,Nn.prototype._size==>5,ot.prototype._size==>6,st.prototype._size==>6;const vi=32,gi=256,yi=1024,Di=(e,t)=>e.flags&t,bi=(e,t)=>{e.flags|=t},wi=(e,t)=>{e.flags&=~t};class Ai extends Rn{constructor(e,{false_by_default:t=!1,mangle_options:n=!1}){super,void 0===e.defaults||e.defaults||(t=!0),this.options=a(e,{arguments:!1,arrows:!t,booleans:!t,booleans_as_integers:!1,collapse_vars:!t,comparisons:!t,computed_props:!t,conditionals:!t,dead_code:!t,defaults:!0,directives:!t,drop_console:!1,drop_debugger:!t,ecma:5,evaluate:!t,expression:!1,global_defs:!1,hoist_funs:!1,hoist_props:!t,hoist_vars:!1,ie8:!1,if_return:!t,inline:!t,join_vars:!t,keep_classnames:!1,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,loops:!t,module:!1,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:!1,unsafe_arrows:!1,unsafe_comps:!1,unsafe_Function:!1,unsafe_math:!1,unsafe_symbols:!1,unsafe_methods:!1,unsafe_proto:!1,unsafe_regexp:!1,unsafe_undefined:!1,unused:!t,warnings:!1},!0);var i=this.options.global_defs;if("object"==typeof i)for(var r in i)"@"===r[0]&&b(i,r)&&(i[r.slice(1)]=me(i[r],{expression:!0}));!0===this.options.inline&&(this.options.inline=3);var o=this.options.pure_funcs;this.pure_funcs="function"==typeof o?o:o?function(e){return!o.includes(e.expression.print_to_string)}:f;var s=this.options.top_retain;s instanceof RegExp?this.top_retain=function(e){return s.test(e.name)}:"function"==typeof s?this.top_retain=s:s&&("string"==typeof s&&(s=s.split(/,/)),this.top_retain=function(e){return s.includes(e.name)}),this.options.module&&(this.directives["use strict"]=!0,this.options.toplevel=!0);var u=this.options.toplevel;this.toplevel="string"==typeof u?{funcs:/funcs/.test(u),vars:/vars/.test(u)}:{funcs:u,vars:u};var c=this.options.sequences;this.sequences_limit=1==c?800:0|c,this.evaluated_regexps=new Map,this._toplevel=void 0,this.mangle_options=n}option(e){return this.options[e]}exposed(e){if(e.export)return!0;if(e.global)for(var t=0,n=e.orig.length;t<n;t++)if(!this.toplevel[e.orig[t]instanceof cn?"funcs":"vars"])return!0;return!1}in_boolean_context{if(!this.option("booleans"))return!1;for(var e,t=this.self,n=0;e=this.parent(n);n++){if(e instanceof xe||e instanceof qt&&e.condition===t||e instanceof ze&&e.condition===t||e instanceof qe&&e.condition===t||e instanceof at&&e.condition===t||e instanceof zt&&"!"==e.operator&&e.expression===t)return!0;if(!(e instanceof Mt&&("&&"==e.operator||"||"==e.operator||"??"==e.operator)||e instanceof qt||e.tail_node===t))return!1;t=e}}get_toplevel{return this._toplevel}compress(e){e=e.resolve_defines(this),this._toplevel=e,this.option("expression")&&this._toplevel.process_expression(!0);for(var t=+this.options.passes||1,n=1/0,i=!1,r={ie8:this.option("ie8")},o=0;o0||this.option("reduce_vars"))&&this._toplevel.reset_opt_flags(this),this._toplevel=this._toplevel.transform(this),t>1){let e=0;if(jn(this._toplevel,(=>{e++})),e<n)n=e,i=!1;else{if(i)break;i=!0}}return this.option("expression")&&this._toplevel.process_expression(!1),e=this._toplevel,this._toplevel=void 0,e}before(e,t){if(Di(e,gi))return e;var n=!1;e instanceof Pe&&(e=(e=e.hoist_properties(this)).hoist_declarations(this),n=!0),t(e,this),t(e,this);var i=e.optimize(this);return n&&i instanceof Pe&&(i.drop_unused(this),t(i,this)),i===e&&bi(i,gi),i}}function xi(e,t){e.DEFMETHOD("optimize",(function(e){var n=this;if(Di(n,512))return n;if(e.has_directive("use asm"))return n;var i=t(n,e);return bi(i,512),i}))}function Ei(e,t){if(!((t=Ji(t))instanceof De)){var n;if(e instanceof jt){var i=e.elements;if("length"==t)return zi(i.length,e);"number"==typeof t&&t in i&&(n=i[t])}else if(e instanceof Pt){t=""+t;for(var r=e.properties,o=r.length;--o>=0;){if(!(r[o]instanceof Rt))return;n||r[o].key!==t||(n=r[o].value)}}return n instanceof yn&&n.fixed_value||n}}function ki(e,t,n,i,r,o){var s=t.parent(r),a=Ki(n,s);if(a)return a;if(!o&&s instanceof xt&&s.expression===n&&!(i instanceof Ye)&&!(i instanceof Gt)&&!s.is_expr_pure(e)&&(!(i instanceof Ve)||!(s instanceof Et)&&i.contains_this))return!0;if(s instanceof jt)return ki(e,t,s,s,r+1);if(s instanceof Rt&&n===s.value){var u=t.parent(r+1);return ki(e,t,u,u,r+2)}if(s instanceof Ft&&s.expression===n){var c=Ei(i,s.property);return!o&&ki(e,t,s,c,r+1)}}function Fi(e){return e instanceof Ye||e instanceof Ve}function Ci(e){if(e instanceof An)return!0;if(e instanceof yn)return e.definition.orig[0]instanceof pn;if(e instanceof Ft){if((e=e.expression)instanceof yn){if(e.is_immutable)return!1;e=e.fixed_value}return!e||!(e instanceof Sn)&&(e instanceof En||Ci(e))}return!1}function Si(e,t){if(!(e instanceof yn))return!1;for(var n=e.definition.orig,i=n.length;--i>=0;)if(n[i]instanceof t)return!0}function Bi(e){for(let t=0;;t++){const n=e.parent(t);if(n instanceof He)return n;if(n instanceof Le)return n;if(n.block_scope)return n.block_scope}}function Ti(e,t){for(var n,i=0;(n=e.parent(i++))&&!(n instanceof Pe);)if(n instanceof ht&&n.argname){n=n.argname.definition.scope;break}return n.find_variable(t)}function $i(e,t){if(1==t.length)return t[0];if(0==t.length)throw new Error("trying to create a sequence with length zero!");return d(kt,e,{expressions:t.reduce(Mi,[])})}function zi(e,t){switch(typeof e){case"string":return d(kn,t,{value:e});case"number":return isNaN(e)?d($n,t):isFinite(e)?1/e<0?d(zt,t,{operator:"-",expression:d(Fn,t,{value:-e})}):d(Fn,t,{value:e}):e<0?d(zt,t,{operator:"-",expression:d(Mn,t)}):d(Mn,t);case"boolean":return d(e?In:Nn,t);case"undefined":return d(zn,t);default:if(null===e)return d(Tn,t,{value:null});if(e instanceof RegExp)return d(Sn,t,{value:{source:x(e.source),flags:e.flags}});throw new Error(_("Can't handle constant of type: {type}",{type:typeof e}))}}function Oi(e,t,n){return e instanceof zt&&"delete"==e.operator||e instanceof xt&&e.expression===t&&(n instanceof Ft||n instanceof yn&&"eval"==n.name)?$i(t,[d(Fn,t,{value:0}),n]):n}function Mi(e,t){return t instanceof kt?e.push(...t.expressions):e.push(t),e}function qi(e){if(null===e)return[];if(e instanceof Ce)return e.body;if(e instanceof Se)return[];if(e instanceof be)return[e];throw new Error("Can't convert thing to statement array")}function Ni(e){return null===e||(e instanceof Se||e instanceof Ce&&0==e.body.length)}function Ii(e){return!(e instanceof Kt||e instanceof We||e instanceof vt||e instanceof gt||e instanceof At||e instanceof bt)}function ji(e){return e instanceof $e&&e.body instanceof Ce?e.body:e}function Pi(e){return"Call"==e.TYPE&&(e.expression instanceof Ve||Pi(e.expression))}function Hi(e){return e instanceof yn&&e.definition.undeclared}xi(De,(function(e){return e})),He.DEFMETHOD("drop_console",(function{return this.transform(new Ln((function(e){if("Call"==e.TYPE){var t=e.expression;if(t instanceof Ft){for(var n=t.expression;n.expression;)n=n.expression;if(Hi(n)&&"console"==n.name)return d(zn,e)}}})))})),De.DEFMETHOD("equivalent_to",(function(e){return((e,t)=>{if(!ni(e,t))return!1;const n=[e],i=[t],r=n.push.bind(n),o=i.push.bind(i);for(n.length&&i.length;){const e=n.pop,t=i.pop;if(!ni(e,t))return!1;if(e._children_backwards(r),t._children_backwards(o),n.length!==i.length)return!1}return 0==n.length&&0==i.length})(this,e)})),Pe.DEFMETHOD("process_expression",(function(e,t){var n=this,i=new Ln((function(r){if(e&&r instanceof xe)return d(et,r,{value:r.body});if(!e&&r instanceof et){if(t){var o=r.value&&r.value.drop_side_effect_free(t,!0);return o?d(xe,r,{body:o}):d(Se,r)}return d(xe,r,{body:r.value||d(zt,r,{operator:"void",expression:d(Fn,r,{value:0})})})}if(r instanceof Gt||r instanceof Le&&r!==n)return r;if(r instanceof Fe){var s=r.body.length-1;s>=0&&(r.body[s]=r.body[s].transform(i))}else r instanceof at?(r.body=r.body.transform(i),r.alternative&&(r.alternative=r.alternative.transform(i))):r instanceof je&&(r.body=r.body.transform(i));return r}));n.transform(i)})),function(e){function t(e,t){t.assignments=0,t.chained=!1,t.direct_access=!1,t.escaped=0,t.recursive_refs=0,t.references=[],t.single_use=void 0,t.scope.pinned?t.fixed=!1:t.orig[0]instanceof sn||!e.exposed(t)?t.fixed=t.init:t.fixed=!1}function n(e,n,i){i.variables.forEach((function(i){t(n,i),null===i.fixed?(e.defs_to_safe_ids.set(i.id,e.safe_ids),s(e,i,!0)):i.fixed&&(e.loop_ids.set(i.id,e.in_loop),s(e,i,!0))}))}function i(e,n){n.block_scope&&n.block_scope.variables.forEach((n=>{t(e,n)}))}function r(e){e.safe_ids=Object.create(e.safe_ids)}function o(e){e.safe_ids=Object.getPrototypeOf(e.safe_ids)}function s(e,t,n){e.safe_ids[t.id]=n}function a(e,t){if("m"==t.single_use)return!1;if(e.safe_ids[t.id]){if(null==t.fixed){var n=t.orig[0];if(n instanceof un||"arguments"==n.name)return!1;t.fixed=d(zn,n)}return!0}return t.fixed instanceof We}function c(e,t,n,i){if(void 0===t.fixed)return!0;let r;return null===t.fixed&&(r=e.defs_to_safe_ids.get(t.id))?(r[t.id]=!1,e.defs_to_safe_ids.delete(t.id),!0):!!b(e.safe_ids,t.id)&&(!!a(e,t)&&(!1!==t.fixed&&(!(null!=t.fixed&&(!i||t.references.length>t.assignments))&&(t.fixed instanceof We?i instanceof De&&t.fixed.parent_scope===n:t.orig.every((e=>!(e instanceof sn||e instanceof cn||e instanceof pn)))))))}function f(e,t,n,i,r,o=0,s=1){var a=e.parent(o);if(r){if(r.is_constant)return;if(r instanceof Qt)return}if(a instanceof Nt&&("="===a.operator||a.logical)&&i===a.right||a instanceof xt&&(i!==a.expression||a instanceof Et)||a instanceof Qe&&i===a.value&&i.scope!==t.scope||a instanceof yt&&i===a.value||a instanceof st&&i===a.value&&i.scope!==t.scope)return!(s>1)||r&&r.is_constant_expression(n)||(s=1),void((!t.escaped||t.escaped>s)&&(t.escaped=s));if(a instanceof jt||a instanceof ot||a instanceof Mt&&Xi.has(a.operator)||a instanceof qt&&i!==a.condition||a instanceof Re||a instanceof kt&&i===a.tail_node)f(e,t,n,a,a,o+1,s);else if(a instanceof Rt&&i===a.value){var u=e.parent(o+1);f(e,t,n,u,u,o+2,s)}else if(a instanceof Ft&&i===a.expression&&(f(e,t,n,a,r=Ei(r,a.property),o+1,s+1),r))return;o>0||a instanceof kt&&i!==a.tail_node||a instanceof xe||(t.direct_access=!0)}e(De,u);const l=e=>jn(e,(e=>{if(e instanceof en){var t=e.definition;t&&(e instanceof yn&&t.references.push(e),t.fixed=!1)}}));e(Ue,(function(e,t,i){return r(e),n(e,i,this),t,o(e),!0})),e(Nt,(function(e,t,n){var i=this;if(i.left instanceof Je)return void l(i.left);const a==>{if(i.logical)return i.left.walk(e),r(e),i.right.walk(e),o(e),!0};var u=i.left;if(!(u instanceof yn))return a;var p=u.definition,h=c(e,p,u.scope,i.right);if(p.assignments++,!h)return a;var m=p.fixed;if(!m&&"="!=i.operator&&!i.logical)return a;var _="="==i.operator,v=_?i.right:i;return ki(n,e,i,v,0)?a:(p.references.push(u),i.logical||(_||(p.chained=!0),p.fixed=_?function{return i.right}:function{return d(Mt,i,{operator:i.operator.slice(0,-1),left:m instanceof De?m:m,right:i.right})}),i.logical?(s(e,p,!1),r(e),i.right.walk(e),o(e),!0):(s(e,p,!1),i.right.walk(e),s(e,p,!0),f(e,p,u.scope,i,v,0,1),!0))})),e(Mt,(function(e){if(Xi.has(this.operator))return this.left.walk(e),r(e),this.right.walk(e),o(e),!0})),e(Fe,(function(e,t,n){i(n,this)})),e(lt,(function(e){return r(e),this.expression.walk(e),o(e),r(e),Ee(this,e),o(e),!0})),e(Gt,(function(e,t){return wi(this,16),r(e),t,o(e),!0})),e(qt,(function(e){return this.condition.walk(e),r(e),this.consequent.walk(e),o(e),r(e),this.alternative.walk(e),o(e),!0})),e(Tt,(function(e,t){const n=e.safe_ids;return t,e.safe_ids=n,!0})),e(xt,(function(e){this.expression.walk(e),this.optional&&r(e);for(const t of this.args)t.walk(e);return!0})),e(Ft,(function(e){if(this.optional)return this.expression.walk(e),r(e),this.property instanceof De&&this.property.walk(e),!0})),e(ft,(function(e,t){return r(e),t,o(e),!0})),e(Le,(function(e,t,i){return wi(this,16),r(e),n(e,i,this),this.uses_arguments?(t,void o(e)):(!this.name&&(a=e.parent)instanceof xt&&a.expression===this&&!a.args.some((e=>e instanceof Re))&&this.argnames.every((e=>e instanceof en))&&this.argnames.forEach(((t,n)=>{if(t.definition){var i=t.definition;i.orig.length>1||(void 0!==i.fixed||this.uses_arguments&&!e.has_directive("use strict")?i.fixed=!1:(i.fixed=function{return a.args[n]||d(zn,a)},e.loop_ids.set(i.id,e.in_loop),s(e,i,!0)))}})),t,o(e),!0);var a})),e(Oe,(function(e,t,n){i(n,this);const s=e.in_loop;return e.in_loop=this,r(e),this.body.walk(e),pr(this)&&(o(e),r(e)),this.condition.walk(e),o(e),e.in_loop=s,!0})),e(qe,(function(e,t,n){i(n,this),this.init&&this.init.walk(e);const s=e.in_loop;return e.in_loop=this,r(e),this.condition&&this.condition.walk(e),this.body.walk(e),this.step&&(pr(this)&&(o(e),r(e)),this.step.walk(e)),o(e),e.in_loop=s,!0})),e(Ne,(function(e,t,n){i(n,this),l(this.init),this.object.walk(e);const s=e.in_loop;return e.in_loop=this,r(e),this.body.walk(e),o(e),e.in_loop=s,!0})),e(at,(function(e){return this.condition.walk(e),r(e),this.body.walk(e),o(e),this.alternative&&(r(e),this.alternative.walk(e),o(e)),!0})),e(Te,(function(e){return r(e),this.body.walk(e),o(e),!0})),e(mn,(function{this.definition.fixed=!1})),e(yn,(function(e,t,n){var i,r,o=this.definition;o.references.push(this),1==o.references.length&&!o.fixed&&o.orig[0]instanceof cn&&e.loop_ids.set(o.id,e.in_loop),void 0!==o.fixed&&a(e,o)?o.fixed&&((i=this.fixed_value)instanceof Le&&_r(e,o)?o.recursive_refs++:i&&!n.exposed(o)&&function(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}(e,n,o)?o.single_use=i instanceof Le&&!i.pinned||i instanceof Gt||o.scope===this.scope&&i.is_constant_expression:o.single_use=!1,ki(n,e,this,i,0,!!(r=i)&&(r.is_constant||r instanceof Le||r instanceof An))&&(o.single_use?o.single_use="m":o.fixed=!1)):o.fixed=!1,f(e,o,this.scope,this,i,0,1)})),e(He,(function(e,i,r){this.globals.forEach((function(e){t(r,e)})),n(e,r,this)})),e(pt,(function(e,t,n){return i(n,this),r(e),Ee(this,e),o(e),this.bcatch&&(r(e),this.bcatch.walk(e),o(e)),this.bfinally&&this.bfinally.walk(e),!0})),e($t,(function(e){var t=this;if("++"===t.operator||"--"===t.operator){var n=t.expression;if(n instanceof yn){var i=n.definition,r=c(e,i,n.scope,!0);if(i.assignments++,r){var o=i.fixed;if(o)return i.references.push(n),i.chained=!0,i.fixed=function{return d(Mt,t,{operator:t.operator.slice(0,-1),left:d(zt,t,{operator:"+",expression:o instanceof De?o:o}),right:d(Fn,t,{value:1})})},s(e,i,!0),!0}}}})),e(yt,(function(e,t){var n=this;if(n.name instanceof Je)l(n.name);else{var i=n.name.definition;if(n.value){if(c(e,i,n.name.scope,n.value))return i.fixed=function{return n.value},e.loop_ids.set(i.id,e.in_loop),s(e,i,!1),t,s(e,i,!0),!0;i.fixed=!1}}})),e(Me,(function(e,t,n){i(n,this);const s=e.in_loop;return e.in_loop=this,r(e),t,o(e),e.in_loop=s,!0}))}((function(e,t){e.DEFMETHOD("reduce_vars",t)})),He.DEFMETHOD("reset_opt_flags",(function(e){const t=this,n=e.option("reduce_vars"),i=new Rn((function(r,o){if(wi(r,1792),n)return e.top_retain&&r instanceof We&&i.parent===t&&bi(r,yi),r.reduce_vars(i,o,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)})),en.DEFMETHOD("fixed_value",(function{var e=this.thedef.fixed;return!e||e instanceof De?e:e})),yn.DEFMETHOD("is_immutable",(function{var e=this.definition.orig;return 1==e.length&&e[0]instanceof pn}));var Ri=y("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");yn.DEFMETHOD("is_declared",(function(e){return!this.definition.undeclared||e.option("unsafe")&&Ri.has(this.name)}));var Li,Ui=y("Infinity NaN undefined");function Vi(e){return e instanceof Mn||e instanceof $n||e instanceof zn}function Yi(e,t){var n,i,r=t.find_parent(Pe).get_defun_scope;!function{var e=t.self,o=0;do{if(e instanceof ht||e instanceof dt)o++;else if(e instanceof $e)n=!0;else{if(e instanceof Pe){r=e;break}e instanceof pt&&(i=!0)}}while(e=t.parent(o++))};var s,a=10;do{s=!1,c(e),t.option("dead_code")&&l(e,t),t.option("if_return")&&f(e,t),t.sequences_limit>0&&(m(e,t),g(e,t)),t.option("join_vars")&&D(e),t.option("collapse_vars")&&u(e,t)}while(s&&a-- >0);function u(e,t){if(r.pinned)return e;for(var a,u=[],c=e.length,f=new Ln((function(e){if(S)return e;if(!C)return e!==p[m]?e:++m1)||e instanceof $e&&!(e instanceof qe)||e instanceof nt||e instanceof pt||e instanceof je||e instanceof st||e instanceof At||e instanceof Gt||r instanceof qe&&e!==r.init||!x&&e instanceof yn&&!e.is_declared(t)&&!ar.has(e)||e instanceof yn&&r instanceof xt&&E(r,Yn))return S=!0,e;if(y||w&&x||!(r instanceof Mt&&Xi.has(r.operator)&&r.left!==e||r instanceof qt&&r.condition!==e||r instanceof at&&r.condition!==e)||(y=r),T&&!(e instanceof nn)&&D.equivalent_to(e)){if(y)return S=!0,e;if(Ki(e,r))return v&&B++,e;if(B++,v&&_ instanceof yt)return e;if(s=S=!0,_ instanceof Ot)return d(zt,_,_);if(_ instanceof yt){var o=_.name.definition,a=_.value;return o.references.length-o.replaced!=1||t.exposed(o)?d(Nt,_,{operator:"=",logical:!1,left:d(yn,_.name,_.name),right:a}):(o.replaced++,F&&Vi(a)?a.transform(t):Oi(r,e,a))}return wi(_,vi),_}return(e instanceof xt||e instanceof Qe&&(A||D instanceof Ft||W(D))||e instanceof Ft&&(A||e.expression.may_throw_on_access(t))||e instanceof yn&&(b.get(e.name)||A&&W(e))||e instanceof yt&&e.value&&(b.has(e.name.name)||A&&W(e.name))||(n=Ki(e.left,e))&&(n instanceof Ft||b.has(n.name))||k&&(i?e.has_side_effects(t):J(e)))&&(g=e,e instanceof Pe&&(S=!0)),M(e)}),(function(e){S||(g===e&&(S=!0),y===e&&(y=null))})),l=new Ln((function(e){if(S)return e;if(!C){if(e!==p[m])return e;if(++m=0;){0==c&&t.option("unused")&&N;var p=[];for(I(e[c]);u.length>0;){p=u.pop;var m=0,_=p[p.length-1],v=null,g=null,y=null,D=P(_);if(D&&!Ci(D)&&!D.has_side_effects(t)){var b=R(_),w=U(D);D instanceof yn&&b.set(D.name,!1);var A=V(_),x=Y,k=_.may_throw(t),F=_.name instanceof un,C=F,S=!1,B=0,T=!a||!C;if(!T){for(var $=t.self.argnames.lastIndexOf(_.name)+1;!S&&$B)B=!1;else{S=!1,m=0,C=F;for(z=c;!S&&z<e.length;z++)e[z].transform(l);v.single_use=!1}}B&&!L(_)&&e.splice(c,1)}}}function M(e){if(e instanceof Pe)return e;if(e instanceof ut){e.expression=e.expression.transform(f);for(var t=0,n=e.body.length;!S&&t<n;t++){var i=e.body[t];if(i instanceof lt){if(!C){if(i!==p[m])continue;m++}if(i.expression=i.expression.transform(f),!x)break}}return S=!0,e}}function q(e,t,n){var i=!1,o=!(e instanceof Ye);return t.walk(new Rn((function(t,s){if(i)return!0;if(t instanceof yn&&(e.variables.has(t.name)||function(e,t){if(e.global)return!1;let n=e.scope;for(n&&n!==t;){if(n.variables.has(e.name))return!0;n=n.parent_scope}return!1}(t.definition,e))){var a=t.definition.scope;if(a!==r)for(a=a.parent_scope;)if(a===r)return!0;return i=!0}if((n||o)&&t instanceof An)return i=!0;if(t instanceof Pe&&!(t instanceof Ye)){var u=o;return o=!1,s,o=u,!0}}))),i}function N{var e,n=t.self;if(Fi(n)&&!n.name&&!n.uses_arguments&&!n.pinned&&(e=t.parent)instanceof xt&&e.expression===n&&e.args.every((e=>!(e instanceof Re)))){var i=t.has_directive("use strict");i&&!o(i,n.body)&&(i=!1);var r=n.argnames.length;a=e.args.slice(r);for(var s=new Set,c=r;--c>=0;){var f=n.argnames[c],l=e.args[c];const r=f.definition&&f.definition;if(!(r&&r.orig.length>1)&&(a.unshift(d(yt,f,{name:f,value:l})),!s.has(f.name)))if(s.add(f.name),f instanceof Re){var p=e.args.slice(c);p.every((e=>!q(n,e,i)))&&u.unshift([d(yt,f,{name:f.expression,value:d(jt,e,{elements:p})})])}else l?(l instanceof Le&&l.pinned||q(n,l,i))&&(l=null):l=d(zn,f).transform(t),l&&u.unshift([d(yt,f,{name:f,value:l})])}}}function I(e){if(p.push(e),e instanceof Nt)e.left.has_side_effects(t)||u.push(p.slice),I(e.right);else if(e instanceof Mt)I(e.left),I(e.right);else if(e instanceof xt&&!E(e,Yn))I(e.expression),e.args.forEach(I);else if(e instanceof lt)I(e.expression);else if(e instanceof qt)I(e.condition),I(e.consequent),I(e.alternative);else if(e instanceof mt){var n=e.definitions.length,i=n-200;for(i<0&&(i=0);i<n;i++)I(e.definitions[i])}else e instanceof ze?(I(e.condition),e.body instanceof Fe||I(e.body)):e instanceof Qe?e.value&&I(e.value):e instanceof qe?(e.init&&I(e.init),e.condition&&I(e.condition),e.step&&I(e.step),e.body instanceof Fe||I(e.body)):e instanceof Ne?(I(e.object),e.body instanceof Fe||I(e.body)):e instanceof at?(I(e.condition),e.body instanceof Fe||I(e.body),!e.alternative||e.alternative instanceof Fe||I(e.alternative)):e instanceof kt?e.expressions.forEach(I):e instanceof xe?I(e.body):e instanceof ut?(I(e.expression),e.body.forEach(I)):e instanceof $t?"++"!=e.operator&&"--"!=e.operator||u.push(p.slice):e instanceof yt&&e.value&&(u.push(p.slice),I(e.value));p.pop}function j(e,t,n){var i=f.parent(t);return i instanceof Nt?!n||i.logical||i.left instanceof Ft||b.has(i.left.name)?e:j(i,t+1,n):i instanceof Mt?!n||Xi.has(i.operator)&&i.left!==e?e:j(i,t+1,n):i instanceof xt||i instanceof lt?e:i instanceof qt?n&&i.condition===e?j(i,t+1,n):e:i instanceof mt?j(i,t+1,!0):i instanceof Qe?n?j(i,t+1,n):e:i instanceof at?n&&i.condition===e?j(i,t+1,n):e:i instanceof $e?e:i instanceof kt?j(i,t+1,i.tail_node!==e):i instanceof xe?j(i,t+1,!0):i instanceof ut||i instanceof yt?e:null}function P(e){if(e instanceof Nt&&e.logical)return!1;if(!(e instanceof yt&&e.name instanceof nn)){const t=e instanceof Nt?e.left:e.expression;return!Si(t,sn)&&!Si(t,an)&&t}var n=e.name.definition;if(o(e.name,n.orig)){var i=n.references.length-n.replaced;if(i)return n.orig.length-n.eliminated>1&&!(e.name instanceof un)||(i>1?function(e){var t=e.value;if(t instanceof yn&&"arguments"!=t.name){var n=t.definition;if(!n.undeclared)return v=n}}(e):!t.exposed(n))?d(yn,e.name,e.name):void 0}}function H(e){return e instanceof Nt?e.right:e.value}function R(e){var n=new Map;if(e instanceof $t)return n;var i=new Rn((function(e){for(var r=e;r instanceof Ft;)r=r.expression;(r instanceof yn||r instanceof An)&&n.set(r.name,n.get(r.name)||ki(t,i,e,e,0))}));return H(e).walk(i),n}function L(n){if(n.name instanceof un){var i=t.parent,r=t.self.argnames,o=r.indexOf(n.name);if(o<0)i.args.length=Math.min(i.args.length,r.length-1);else{var s=i.args;s[o]&&(s[o]=d(Fn,s[o],{value:0}))}return!0}var a=!1;return e[c].transform(new Ln((function(e,t,i){return a?e:e===n||e.body===n?(a=!0,e instanceof yt?(e.value=e.name instanceof sn?d(zn,e.value):null,e):i?h.skip:null):void 0}),(function(e){if(e instanceof kt)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}})))}function U(e){for(e instanceof Ft;)e=e.expression;return e instanceof yn&&e.definition.scope===r&&!(n&&(b.has(e.name)||_ instanceof $t||_ instanceof Nt&&!_.logical&&"="!=_.operator))}function V(e){return e instanceof $t?Zi.has(e.operator):H(e).has_side_effects(t)}function Y{if(A)return!1;if(v)return!0;if(D instanceof yn){var e=D.definition;if(e.references.length-e.replaced==(_ instanceof yt?1:2))return!0}return!1}function W(e){if(!e.definition)return!0;var t=e.definition;return!(1==t.orig.length&&t.orig[0]instanceof cn)&&(t.scope.get_defun_scope!==r||!t.references.every((e=>{var t=e.scope.get_defun_scope;return"Scope"==t.TYPE&&(t=t.parent_scope),t===r})))}function J(e,t){if(e instanceof Nt)return J(e.left,!0);if(e instanceof $t)return J(e.expression,!0);if(e instanceof yt)return e.value&&J(e.value);if(t){if(e instanceof Ct)return J(e.expression,!0);if(e instanceof Bt)return J(e.expression,!0);if(e instanceof yn)return e.definition.scope!==r}return!1}}function c(e){for(var t=[],n=0;n=0;){var i=e[n];if(i instanceof at&&i.body instanceof et&&++t>1)return!0}return!1}(e),r=n instanceof Le,o=e.length;--o>=0;){var a=e[o],u=D(o),c=e[u];if(r&&!c&&a instanceof et){if(!a.value){s=!0,e.splice(o,1);continue}if(a.value instanceof zt&&"void"==a.value.operator){s=!0,e[o]=d(xe,a,{body:a.value.expression});continue}}if(a instanceof at){var f;if(_(f=ur(a.body))){f.label&&v(f.label.thedef.references,f),s=!0,(a=a.clone).condition=a.condition.negate(t);var l=y(a.body,f);a.body=d(Ce,a,{body:qi(a.alternative).concat(g)}),a.alternative=d(Ce,a,{body:l}),e[o]=a.transform(t);continue}if(_(f=ur(a.alternative))){f.label&&v(f.label.thedef.references,f),s=!0,(a=a.clone).body=d(Ce,a.body,{body:qi(a.body).concat(g)});l=y(a.alternative,f);a.alternative=d(Ce,a.alternative,{body:l}),e[o]=a.transform(t);continue}}if(a instanceof at&&a.body instanceof et){var h=a.body.value;if(!h&&!a.alternative&&(r&&!c||c instanceof et&&!c.value)){s=!0,e[o]=d(xe,a.condition,{body:a.condition});continue}if(h&&!a.alternative&&c instanceof et&&c.value){s=!0,(a=a.clone).alternative=c,e[o]=a.transform(t),e.splice(u,1);continue}if(h&&!a.alternative&&(!c&&r&&i||c instanceof et)){s=!0,(a=a.clone).alternative=c||d(et,a,{value:null}),e[o]=a.transform(t),c&&e.splice(u,1);continue}var m=e[b(o)];if(t.option("sequences")&&r&&!a.alternative&&m instanceof at&&m.body instanceof et&&D(u)==e.length&&c instanceof xe){s=!0,(a=a.clone).alternative=d(Ce,c,{body:[c,d(et,c,{value:null})]}),e[o]=a.transform(t),e.splice(u,1);continue}}}function _(i){if(!i)return!1;for(var s=o+1,a=e.length;s<a;s++){var u=e[s];if(u instanceof gt||u instanceof vt)return!1}var c=i instanceof nt?t.loopcontrol_target(i):null;return i instanceof et&&r&&function(e){return!e||e instanceof zt&&"void"==e.operator}(i.value)||i instanceof rt&&n===ji(c)||i instanceof it&&c instanceof Ce&&n===c}function g{var t=e.slice(o+1);return e.length=o+1,t.filter((function(t){return!(t instanceof We)||(e.push(t),!1)}))}function y(e,t){var n=qi(e).slice(0,-1);return t.value&&n.push(d(xe,t.value,{body:t.value.expression})),n}function D(t){for(var n=t+1,i=e.length;n=0;){var i=e[n];if(!(i instanceof _t&&p(i)))break}return n}}function l(e,t){for(var n,i=t.self,r=0,o=0,a=e.length;r!e.value))}function m(e,t){if(!(e.length<2)){for(var n=[],i=0,r=0,o=e.length;r<o;r++){var a=e[r];if(a instanceof xe){n.length>=t.sequences_limit&&c;var u=a.body;n.length>0&&(u=u.drop_side_effect_free(t)),u&&Mi(n,u)}else a instanceof mt&&p(a)||a instanceof We||c,e[i++]=a}c,e.length=i,i!=o&&(s=!0)}function c{if(n.length){var t=$i(n[0],n);e[i++]=d(xe,t,{body:t}),n=[]}}}function _(e,t){if(!(e instanceof Ce))return e;for(var n=null,i=0,r=e.body.length;i<r;i++){var o=e.body[i];if(o instanceof _t&&p(o))t.push(o);else{if(n)return!1;n=o}}return n}function g(e,t){function n(e){r--,s=!0;var n=i.body;return $i(n,[n,e]).transform(t)}for(var i,r=0,o=0;o<e.length;o++){var a=e[o];if(i)if(a instanceof Qe)a.value=n(a.value||d(zn,a).transform(t));else if(a instanceof qe){if(!(a.init instanceof mt)){jn(i.body,(e=>e instanceof Pe||(e instanceof Mt&&"in"===e.operator?Hn:void 0)))||(a.init?a.init=n(a.init):(a.init=i.body,r--,s=!0))}}else a instanceof Ne?a.init instanceof gt||a.init instanceof vt||(a.object=n(a.object)):a instanceof at?a.condition=n(a.condition):(a instanceof ut||a instanceof je)&&(a.expression=n(a.expression));if(t.option("conditionals")&&a instanceof at){var u=[],c=_(a.body,u),f=_(a.alternative,u);if(!1!==c&&!1!==f&&u.length>0){var l=u.length;u.push(d(at,a,{condition:a.condition,body:c||d(Se,a.body),alternative:f})),u.unshift(r,1),[].splice.apply(e,u),o+=l,r+=l+1,i=null,s=!0;continue}}e[r++]=a,i=a instanceof xe?a:null}e.length=r}function y(e,n){if(e instanceof mt){var i,o=e.definitions[e.definitions.length-1];if(o.value instanceof Pt)if(n instanceof Nt&&!n.logical?i=[n]:n instanceof kt&&(i=n.expressions.slice),i){var s=!1;do{var a=i[0];if(!(a instanceof Nt))break;if("="!=a.operator)break;if(!(a.left instanceof Ft))break;var u=a.left.expression;if(!(u instanceof yn))break;if(o.name.name!=u.name)break;if(!a.right.is_constant_expression(r))break;var c=a.left.property;if(c instanceof De&&(c=c.evaluate(t)),c instanceof De)break;c=""+c;var f=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(!o.value.properties.every(f))break;var l=o.value.properties.filter((function(e){return e.key===c}))[0];l?l.value=new kt({start:l.start,expressions:[l.value.clone,a.right.clone],end:l.end}):o.value.properties.push(d(Rt,a,{key:c,value:a.right})),i.shift,s=!0}while(i.length);return s&&i}}}function D(e){for(var t,n=0,i=-1,r=e.length;n<r;n++){var o=e[n],a=e[i];if(o instanceof mt)a&&a.TYPE==o.TYPE?(a.definitions=a.definitions.concat(o.definitions),s=!0):t&&t.TYPE==o.TYPE&&p(o)?(t.definitions=t.definitions.concat(o.definitions),s=!0):(e[++i]=o,t=o);else if(o instanceof Qe)o.value=c(o.value);else if(o instanceof qe){(u=y(a,o.init))?(s=!0,o.init=u.length?$i(o.init,u):null,e[++i]=o):a instanceof _t&&(!o.init||o.init.TYPE==a.TYPE)?(o.init&&(a.definitions=a.definitions.concat(o.init.definitions)),o.init=a,e[i]=o,s=!0):t&&o.init&&t.TYPE==o.init.TYPE&&p(o.init)?(t.definitions=t.definitions.concat(o.init.definitions),o.init=null,e[++i]=o,s=!0):e[++i]=o}else if(o instanceof Ne)o.object=c(o.object);else if(o instanceof at)o.condition=c(o.condition);else if(o instanceof xe){var u;if(u=y(a,o.body)){if(s=!0,!u.length)continue;o.body=$i(o.body,u)}e[++i]=o}else o instanceof ut||o instanceof je?o.expression=c(o.expression):e[++i]=o}function c(t){e[++i]=o;var n=y(a,t);return n?(s=!0,n.length?$i(t,n):t instanceof kt?t.tail_node.left:t.left):t}e.length=i+1}}function Wi(e,t,n){jn(t,(i=>i instanceof _t?(i.remove_initializers,n.push(i),!0):i instanceof We&&(i===t||!e.has_directive("use strict"))?(n.push(i===t?i:d(_t,i,{definitions:[d(yt,i,{name:d(rn,i.name,i.name),value:null})]})),!0):i instanceof At||i instanceof bt?(n.push(i),!0):i instanceof Pe||void 0))}function Ji(e){return e instanceof En?e.getValue:e instanceof zt&&"void"==e.operator&&e.expression instanceof En?void 0:e}function Gi(e,t){return Di(e,8)||e instanceof zn||e instanceof zt&&"void"==e.operator&&!e.expression.has_side_effects(t)}!function(e){function t(e){return/strict/.test(e.option("pure_getters"))}De.DEFMETHOD("may_throw_on_access",(function(e){return!e.option("pure_getters")||this._dot_throw(e)})),e(De,t),e(Tn,f),e(zn,f),e(En,c),e(jt,c),e(Pt,(function(e){if(!t(e))return!1;for(var n=this.properties.length;--n>=0;)if(this.properties[n]._dot_throw(e))return!0;return!1})),e(Gt,c),e(Ht,c),e(Yt,f),e(Re,(function(e){return this.expression._dot_throw(e)})),e(Ve,c),e(Ye,c),e(Ot,c),e(zt,(function{return"void"==this.operator})),e(Mt,(function(e){return("&&"==this.operator||"||"==this.operator||"??"==this.operator)&&(this.left._dot_throw(e)||this.right._dot_throw(e))})),e(Nt,(function(e){return!!this.logical||"="==this.operator&&this.right._dot_throw(e)})),e(qt,(function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)})),e(Ct,(function(e){return!!t(e)&&("prototype"!=this.property||!(this.expression instanceof Ve||this.expression instanceof Gt))})),e(Tt,(function(e){return this.expression._dot_throw(e)})),e(kt,(function(e){return this.tail_node._dot_throw(e)})),e(yn,(function(e){if("arguments"===this.name)return!1;if(Di(this,8))return!0;if(!t(e))return!1;if(Hi(this)&&this.is_declared(e))return!1;if(this.is_immutable)return!1;var n=this.fixed_value;return!n||n._dot_throw(e)}))}((function(e,t){e.DEFMETHOD("_dot_throw",t)})),function(e){const t=y("! delete"),n=y("in instanceof == != === !== < <= >= >");e(De,c),e(zt,(function{return t.has(this.operator)})),e(Mt,(function{return n.has(this.operator)||Xi.has(this.operator)&&this.left.is_boolean&&this.right.is_boolean})),e(qt,(function{return this.consequent.is_boolean&&this.alternative.is_boolean})),e(Nt,(function{return"="==this.operator&&this.right.is_boolean})),e(kt,(function{return this.tail_node.is_boolean})),e(In,f),e(Nn,f)}((function(e,t){e.DEFMETHOD("is_boolean",t)})),function(e){e(De,c),e(Fn,f);var t=y("+ - ~ ++ --");e($t,(function{return t.has(this.operator)}));var n=y("- * / % & | ^ << >> >>>");e(Mt,(function(e){return n.has(this.operator)||"+"==this.operator&&this.left.is_number(e)&&this.right.is_number(e)})),e(Nt,(function(e){return n.has(this.operator.slice(0,-1))||"="==this.operator&&this.right.is_number(e)})),e(kt,(function(e){return this.tail_node.is_number(e)})),e(qt,(function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)}))}((function(e,t){e.DEFMETHOD("is_number",t)})),(Li=function(e,t){e.DEFMETHOD("is_string",t)})(De,c),Li(kn,f),Li(Xe,f),Li(zt,(function{return"typeof"==this.operator})),Li(Mt,(function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))})),Li(Nt,(function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)})),Li(kt,(function(e){return this.tail_node.is_string(e)})),Li(qt,(function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)}));var Xi=y("&& || ??"),Zi=y("delete ++ --");function Ki(e,t){return t instanceof $t&&Zi.has(t.operator)?t.expression:t instanceof Nt&&t.left===e?e:void 0}function Qi(e,t){return e.size>t.size?t:e}function er(e,t){return Qi(d(xe,e,{body:e}),d(xe,t,{body:t})).body}function tr(e,t,n){return(Xn(e)?er:Qi)(t,n)}function nr(e){const t=new Map;for(var n of Object.keys(e))t.set(n,y(e[n]));return t}!function(e){function t(e,n){if(e instanceof De)return d(e.CTOR,n,e);if(Array.isArray(e))return d(jt,n,{elements:e.map((function(e){return t(e,n)}))});if(e&&"object"==typeof e){var i=[];for(var r in e)b(e,r)&&i.push(d(Rt,n,{key:r,value:t(e[r],n)}));return d(Pt,n,{properties:i})}return zi(e,n)}He.DEFMETHOD("resolve_defines",(function(e){return e.option("global_defs")?(this.figure_out_scope({ie8:e.option("ie8")}),this.transform(new Ln((function(t){var n=t._find_defs(e,"");if(n){for(var i,r=0,o=t;(i=this.parent(r++))&&i instanceof Ft&&i.expression===o;)o=i;if(!Ki(o,i))return n}})))):this})),e(De,u),e(Tt,(function(e,t){return this.expression._find_defs(e,t)})),e(Ct,(function(e,t){return this.expression._find_defs(e,"."+this.property+t)})),e(nn,(function{this.global})),e(yn,(function(e,n){if(this.global){var i=e.option("global_defs"),r=this.name+n;return b(i,r)?t(i[r],this):void 0}}))}((function(e,t){e.DEFMETHOD("_find_defs",t)}));var ir=["constructor","toString","valueOf"],rr=nr({Array:["indexOf","join","lastIndexOf","slice"].concat(ir),Boolean:ir,Function:ir,Number:["toExponential","toFixed","toPrecision"].concat(ir),Object:ir,RegExp:["test"].concat(ir),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(ir)}),or=nr({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){De.DEFMETHOD("evaluate",(function(e){if(!e.option("evaluate"))return this;var t=this._eval(e,1);return!t||t instanceof RegExp?t:"function"==typeof t||"object"==typeof t?this:t}));var t=y("! ~ - + void");De.DEFMETHOD("is_constant",(function{return this instanceof En?!(this instanceof Sn):this instanceof zt&&this.expression instanceof En&&t.has(this.operator)})),e(be,(function{throw new Error(_("Cannot evaluate a statement [{file}:{line},{col}]",this.start))})),e(Le,l),e(Gt,l),e(De,l),e(En,(function{return this.getValue})),e(Cn,l),e(Sn,(function(e){let t=e.evaluated_regexps.get(this);if(void 0===t){try{t=(0,eval)(this.print_to_string)}catch(e){t=null}e.evaluated_regexps.set(this,t)}return t||this})),e(Xe,(function{return 1!==this.segments.length?this:this.segments[0].value})),e(Ve,(function(e){if(e.option("unsafe")){var t=function{};return t.node=this,t.toString=function{return this.node.print_to_string},t}return this})),e(jt,(function(e,t){if(e.option("unsafe")){for(var n=[],i=0,r=this.elements.length;i<r;i++){var o=this.elements[i],s=o._eval(e,t);if(o===s)return this;n.push(s)}return n}return this})),e(Pt,(function(e,t){if(e.option("unsafe")){for(var n={},i=0,r=this.properties.length;i<r;i++){var o=this.properties[i];if(o instanceof Re)return this;var s=o.key;if(s instanceof en)s=s.name;else if(s instanceof De&&(s=s._eval(e,t))===o.key)return this;if("function"==typeof Object.prototype[s])return this;if(!(o.value instanceof Ve)&&(n[s]=o.value._eval(e,t),n[s]===o.value))return this}return n}return this}));var n=y("! typeof void");e(zt,(function(e,t){var i=this.expression;if(e.option("typeofs")&&"typeof"==this.operator&&(i instanceof Le||i instanceof yn&&i.fixed_valueinstanceof Le))return"function";if(n.has(this.operator)||t++,(i=i._eval(e,t))===this.expression)return this;switch(this.operator){case"!":return!i;case"typeof":return i instanceof RegExp?this:typeof i;case"void":return;case"~":return~i;case"-":return-i;case"+":return+i}return this}));var i=y("&& || ?? === !==");const r=y("== != === !=="),o=e=>"object"==typeof e||"function"==typeof e||"symbol"==typeof e;e(Mt,(function(e,t){i.has(this.operator)||t++;var n=this.left._eval(e,t);if(n===this.left)return this;var s,a=this.right._eval(e,t);if(a===this.right)return this;if(null!=n&&null!=a&&r.has(this.operator)&&o(n)&&o(a)&&typeof n==typeof a)return this;switch(this.operator){case"&&":s=n&&a;break;case"||":s=n||a;break;case"??":s=null!=n?n:a;break;case"|":s=n|a;break;case"&":s=n&a;break;case"^":s=n^a;break;case"+":s=n+a;break;case"*":s=n*a;break;case"**":s=Math.pow(n,a);break;case"/":s=n/a;break;case"%":s=n%a;break;case"-":s=n-a;break;case"<<":s=n<<a;break;case">>":s=n>>a;break;case">>>":s=n>>>a;break;case"==":s=n==a;break;case"===":s=n===a;break;case"!=":s=n!=a;break;case"!==":s=n!==a;break;case"<":s=n<a;break;case"<=":s=n<=a;break;case">":s=n>a;break;case">=":s=n>=a;break;default:return this}return isNaN(s)&&e.find_parent(je)?this:s})),e(qt,(function(e,t){var n=this.condition._eval(e,t);if(n===this.condition)return this;var i=n?this.consequent:this.alternative,r=i._eval(e,t);return r===i?this:r}));const s=new Set;e(yn,(function(e,t){if(s.has(this))return this;var n=this.fixed_value;if(!n)return this;s.add(this);const i=n._eval(e,t);if(s.delete(this),i===n)return this;if(i&&"object"==typeof i){var r=this.definition.escaped;if(r&&t>r)return this}return i}));var a={Array:Array,Math:Math,Number:Number,Object:Object,String:String},u=nr({Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]});e(Ft,(function(e,t){if(this.optional){if(null==this.expression._eval(e,t))return}if(e.option("unsafe")){var n=this.property;if(n instanceof De&&(n=n._eval(e,t))===this.property)return this;var i,r=this.expression;if(Hi(r)){var o,s="hasOwnProperty"===r.name&&"call"===n&&(o=e.parent&&e.parent.args)&&o&&o[0]&&o[0].evaluate(e);if(null==(s=s instanceof Ct?s.expression:s)||s.thedef&&s.thedef.undeclared)return this.clone;var c=u.get(r.name);if(!c||!c.has(n))return this;i=a[r.name]}else{if(!(i=r._eval(e,t+1))||i===r||!b(i,n))return this;if("function"==typeof i)switch(n){case"name":return i.node.name?i.node.name.name:"";case"length":return i.node.argnames.length;default:return this}}return i[n]}return this})),e(Tt,(function(e,t){const n=this.expression._eval(e,t);return n===this.expression?this:n})),e(xt,(function(e,t){var n=this.expression;if(this.optional){if(null==this.expression._eval(e,t))return}if(e.option("unsafe")&&n instanceof Ft){var i,r=n.property;if(r instanceof De&&(r=r._eval(e,t))===n.property)return this;var o=n.expression;if(Hi(o)){var s="hasOwnProperty"===o.name&&"call"===r&&this.args[0]&&this.args[0].evaluate(e);if(null==(s=s instanceof Ct?s.expression:s)||s.thedef&&s.thedef.undeclared)return this.clone;var u=or.get(o.name);if(!u||!u.has(r))return this;i=a[o.name]}else{if((i=o._eval(e,t+1))===o||!i)return this;var c=rr.get(i.constructor.name);if(!c||!c.has(r))return this}for(var f=[],l=0,p=this.args.length;l<p;l++){var h=this.args[l],d=h._eval(e,t);if(h===d)return this;f.push(d)}try{return i[r].apply(i,f)}catch(e){}}return this})),e(Et,l)}((function(e,t){e.DEFMETHOD("_eval",t)})),function(e){function t(e){return d(zt,e,{operator:"!",expression:e})}function n(e,n,i){var r=t(e);if(i){var o=d(xe,n,{body:n});return Qi(r,o)===o?n:r}return Qi(r,n)}e(De,(function{return t(this)})),e(be,(function{throw new Error("Cannot negate a statement")})),e(Ve,(function{return t(this)})),e(Ye,(function{return t(this)})),e(zt,(function{return"!"==this.operator?this.expression:t(this)})),e(kt,(function(e){var t=this.expressions.slice;return t.push(t.pop.negate(e)),$i(this,t)})),e(qt,(function(e,t){var i=this.clone;return i.consequent=i.consequent.negate(e),i.alternative=i.alternative.negate(e),n(this,i,t)})),e(Mt,(function(e,i){var r=this.clone,o=this.operator;if(e.option("unsafe_comps"))switch(o){case"<=":return r.operator=">",r;case"<":return r.operator=">=",r;case">=":return r.operator="<",r;case">":return r.operator="<=",r}switch(o){case"==":return r.operator="!=",r;case"!=":return r.operator="==",r;case"===":return r.operator="!==",r;case"!==":return r.operator="===",r;case"&&":return r.operator="||",r.left=r.left.negate(e,i),r.right=r.right.negate(e),n(this,r,i);case"||":return r.operator="&&",r.left=r.left.negate(e,i),r.right=r.right.negate(e),n(this,r,i);case"??":return r.right=r.right.negate(e),n(this,r,i)}return t(this)}))}((function(e,t){e.DEFMETHOD("negate",(function(e,n){return t.call(this,e,n)}))}));var sr=y("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");xt.DEFMETHOD("is_expr_pure",(function(e){if(e.option("unsafe")){var t=this.expression,n=this.args&&this.args[0]&&this.args[0].evaluate(e);if(t.expression&&"hasOwnProperty"===t.expression.name&&(null==n||n.thedef&&n.thedef.undeclared))return!1;if(Hi(t)&&sr.has(t.name))return!0;let i;if(t instanceof Ct&&Hi(t.expression)&&(i=or.get(t.expression.name))&&i.has(t.property))return!0}return!!E(this,Un)||!e.pure_funcs(this)})),De.DEFMETHOD("is_call_pure",c),Ct.DEFMETHOD("is_call_pure",(function(e){if(!e.option("unsafe"))return;const t=this.expression;let n;return t instanceof jt?n=rr.get("Array"):t.is_boolean?n=rr.get("Boolean"):t.is_number(e)?n=rr.get("Number"):t instanceof Sn?n=rr.get("RegExp"):t.is_string(e)?n=rr.get("String"):this.may_throw_on_access(e)||(n=rr.get("Object")),n&&n.has(this.property)}));const ar=new Set(["Number","String","Array","Object","Function","Promise"]);function ur(e){return e&&e.aborts}!function(e){function t(e,t){for(var n=e.length;--n>=0;)if(e[n].has_side_effects(t))return!0;return!1}e(De,f),e(Se,c),e(En,c),e(An,c),e(Fe,(function(e){return t(this.body,e)})),e(xt,(function(e){return!(this.is_expr_pure(e)||this.expression.is_call_pure(e)&&!this.expression.has_side_effects(e))||t(this.args,e)})),e(ut,(function(e){return this.expression.has_side_effects(e)||t(this.body,e)})),e(lt,(function(e){return this.expression.has_side_effects(e)||t(this.body,e)})),e(pt,(function(e){return t(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)})),e(at,(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(Te,(function(e){return this.body.has_side_effects(e)})),e(xe,(function(e){return this.body.has_side_effects(e)})),e(Le,c),e(Gt,(function(e){return!(!this.extends||!this.extends.has_side_effects(e))||t(this.properties,e)})),e(Mt,(function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)})),e(Nt,f),e(qt,(function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)})),e($t,(function(e){return Zi.has(this.operator)||this.expression.has_side_effects(e)})),e(yn,(function(e){return!this.is_declared(e)&&!ar.has(this.name)})),e(ln,c),e(nn,c),e(Pt,(function(e){return t(this.properties,e)})),e(Ht,(function(e){return this.computed_key&&this.key.has_side_effects(e)||this.value&&this.value.has_side_effects(e)})),e(Xt,(function(e){return this.computed_key&&this.key.has_side_effects(e)||this.static&&this.value&&this.value.has_side_effects(e)})),e(Wt,(function(e){return this.computed_key&&this.key.has_side_effects(e)})),e(Yt,(function(e){return this.computed_key&&this.key.has_side_effects(e)})),e(Vt,(function(e){return this.computed_key&&this.key.has_side_effects(e)})),e(jt,(function(e){return t(this.elements,e)})),e(Ct,(function(e){return!this.optional&&this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)})),e(Bt,(function(e){return(!this.optional||!wr(this.expression))&&(!this.optional&&this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e))})),e(Tt,(function(e){return this.expression.has_side_effects(e)})),e(kt,(function(e){return t(this.expressions,e)})),e(mt,(function(e){return t(this.definitions,e)})),e(yt,(function{return this.value})),e(Ze,c),e(Xe,(function(e){return t(this.segments,e)}))}((function(e,t){e.DEFMETHOD("has_side_effects",t)})),function(e){function t(e,t){for(var n=e.length;--n>=0;)if(e[n].may_throw(t))return!0;return!1}e(De,f),e(En,c),e(Se,c),e(Le,c),e(nn,c),e(An,c),e(Gt,(function(e){return!(!this.extends||!this.extends.may_throw(e))||t(this.properties,e)})),e(jt,(function(e){return t(this.elements,e)})),e(Nt,(function(e){return!!this.right.may_throw(e)||!(!e.has_directive("use strict")&&"="==this.operator&&this.left instanceof yn)&&this.left.may_throw(e)})),e(Mt,(function(e){return this.left.may_throw(e)||this.right.may_throw(e)})),e(Fe,(function(e){return t(this.body,e)})),e(xt,(function(e){return(!this.optional||!wr(this.expression))&&(!!t(this.args,e)||!this.is_expr_pure(e)&&(!!this.expression.may_throw(e)||(!(this.expression instanceof Le)||t(this.expression.body,e))))})),e(lt,(function(e){return this.expression.may_throw(e)||t(this.body,e)})),e(qt,(function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)})),e(mt,(function(e){return t(this.definitions,e)})),e(at,(function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)})),e(Te,(function(e){return this.body.may_throw(e)})),e(Pt,(function(e){return t(this.properties,e)})),e(Ht,(function(e){return!!this.value&&this.value.may_throw(e)})),e(Xt,(function(e){return this.computed_key&&this.key.may_throw(e)||this.static&&this.value&&this.value.may_throw(e)})),e(Wt,(function(e){return this.computed_key&&this.key.may_throw(e)})),e(Yt,(function(e){return this.computed_key&&this.key.may_throw(e)})),e(Vt,(function(e){return this.computed_key&&this.key.may_throw(e)})),e(et,(function(e){return this.value&&this.value.may_throw(e)})),e(kt,(function(e){return t(this.expressions,e)})),e(xe,(function(e){return this.body.may_throw(e)})),e(Ct,(function(e){return!this.optional&&this.expression.may_throw_on_access(e)||this.expression.may_throw(e)})),e(Bt,(function(e){return(!this.optional||!wr(this.expression))&&(!this.optional&&this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e))})),e(Tt,(function(e){return this.expression.may_throw(e)})),e(ut,(function(e){return this.expression.may_throw(e)||t(this.body,e)})),e(yn,(function(e){return!this.is_declared(e)&&!ar.has(this.name)})),e(ln,c),e(pt,(function(e){return this.bcatch?this.bcatch.may_throw(e):t(this.body,e)||this.bfinally&&this.bfinally.may_throw(e)})),e($t,(function(e){return!("typeof"==this.operator&&this.expression instanceof yn)&&this.expression.may_throw(e)})),e(yt,(function(e){return!!this.value&&this.value.may_throw(e)}))}((function(e,t){e.DEFMETHOD("may_throw",t)})),function(e){function t(e){let t=!0;return jn(this,(n=>{if(n instanceof yn){if(Di(this,16))return t=!1,Hn;var i=n.definition;if(o(i,this.enclosed)&&!this.variables.has(i.name)){if(e){var r=e.find_variable(n);if(i.undeclared?!r:r===i)return t="f",!0}return t=!1,Hn}return!0}if(n instanceof An&&this instanceof Ye)return t=!1,Hn})),t}e(De,c),e(En,f),e(Gt,(function(e){if(this.extends&&!this.extends.is_constant_expression(e))return!1;for(const t of this.properties){if(t.computed_key&&!t.key.is_constant_expression(e))return!1;if(t.static&&t.value&&!t.value.is_constant_expression(e))return!1}return t.call(this,e)})),e(Le,t),e($t,(function{return this.expression.is_constant_expression})),e(Mt,(function{return this.left.is_constant_expression&&this.right.is_constant_expression})),e(jt,(function{return this.elements.every((e=>e.is_constant_expression))})),e(Pt,(function{return this.properties.every((e=>e.is_constant_expression))})),e(Ht,(function{return!(this.key instanceof De||!this.value||!this.value.is_constant_expression)}))}((function(e,t){e.DEFMETHOD("is_constant_expression",t)})),function(e){function t{for(var e=0;e<this.body.length;e++)if(ur(this.body[e]))return this.body[e];return null}e(be,p),e(Ke,l),e(bt,(function{return null})),e(Ce,t),e(ct,t),e(at,(function{return this.alternative&&ur(this.body)&&ur(this.alternative)&&this}))}((function(e,t){e.DEFMETHOD("aborts",t)}));var cr=new Set(["use asm","use strict"]);function fr(e,t){return Yi(e.body,t),t.option("side_effects")&&1==e.body.length&&e.body[0]===t.has_directive("use strict")&&(e.body.length=0),e}xi(Ae,(function(e,t){return!t.option("directives")||cr.has(e.value)&&t.has_directive(e.value)===e?e:d(Se,e)})),xi(we,(function(e,t){return t.option("drop_debugger")?d(Se,e):e})),xi(Te,(function(e,t){return e.body instanceof it&&t.loopcontrol_target(e.body)===e.body?d(Se,e):0==e.label.references.length?e.body:e})),xi(Fe,(function(e,t){return Yi(e.body,t),e})),xi(Ce,(function(e,t){switch(Yi(e.body,t),e.body.length){case 1:if(!t.has_directive("use strict")&&t.parentinstanceof at&&!((n=e.body[0])instanceof gt||n instanceof vt||n instanceof Gt)||Ii(e.body[0]))return e.body[0];break;case 0:return d(Se,e)}var n;return e})),xi(Le,fr);const lr=/keep_assign/;function pr(e,t){var n=!1,i=new Rn((function(t){return!!(n||t instanceof Pe)||(t instanceof nt&&i.loopcontrol_target(t)===e?n=!0:void 0)}));return t instanceof Te&&i.push(t),i.push(e),e.body.walk(i),n}function hr(e,t){var n=e.body instanceof Ce?e.body.body[0]:e.body;if(t.option("dead_code")&&r(n)){var i=[];return e.init instanceof be?i.push(e.init):e.init&&i.push(d(xe,e.init,{body:e.init})),e.condition&&i.push(d(xe,e.condition,{body:e.condition})),Wi(t,e.body,i),d(Ce,e,{body:i})}return n instanceof at&&(r(n.body)?(e.condition?e.condition=d(Mt,e.condition,{left:e.condition,operator:"&&",right:n.condition.negate(t)}):e.condition=n.condition.negate(t),o(n.alternative)):r(n.alternative)&&(e.condition?e.condition=d(Mt,e.condition,{left:e.condition,operator:"&&",right:n.condition}):e.condition=n.condition,o(n.body))),e;function r(e){return e instanceof it&&t.loopcontrol_target(e)===t.self}function o(n){n=qi(n),e.body instanceof Ce?(e.body=e.body.clone,e.body.body=n.concat(e.body.body.slice(1)),e.body=e.body.transform(t)):e.body=d(Ce,e.body,{body:n}).transform(t),e=hr(e,t)}}function dr(e,t){return t.top_retain&&e instanceof We&&Di(e,yi)&&e.name&&t.top_retain(e.name)}Pe.DEFMETHOD("drop_unused",(function(e){if(!e.option("unused"))return;if(e.has_directive("use asm"))return;var t=this;if(t.pinned)return;var n=!(t instanceof He)||e.toplevel.funcs,i=!(t instanceof He)||e.toplevel.vars;const r=lr.test(e.option("unused"))?c:function(e){return e instanceof Nt&&!e.logical&&(Di(e,vi)||"="==e.operator)?e.left:e instanceof $t&&Di(e,vi)?e.expression:void 0};var o=new Map,s=new Map;t instanceof He&&e.top_retain&&t.variables.forEach((function(t){e.top_retain(t)&&!o.has(t.id)&&o.set(t.id,t)}));var a=new Map,u=new Map,f=this,l=new Rn((function(r,c){if(r instanceof Le&&r.uses_arguments&&!l.has_directive("use strict")&&r.argnames.forEach((function(e){if(e instanceof nn){var t=e.definition;o.has(t.id)||o.set(t.id,t)}})),r!==t){if(r instanceof We||r instanceof Kt){var p=r.name.definition;if((l.parentinstanceof At||!n&&f===t)&&p.global&&!o.has(p.id)&&o.set(p.id,p),r instanceof Kt){r.extends&&(r.extends.has_side_effects(e)||r.extends.may_throw(e))&&r.extends.walk(l);for(const t of r.properties)(t.has_side_effects(e)||t.may_throw(e))&&t.walk(l)}return D(u,p.id,r),!0}if(r instanceof un&&f===t&&D(a,r.definition.id,r),r instanceof mt&&f===t){const t=l.parentinstanceof At;return r.definitions.forEach((function(n){if(n.name instanceof rn&&D(a,n.name.definition.id,n),!t&&i||jn(n.name,(e=>{if(e instanceof nn){const n=e.definition;!t&&!n.global||o.has(n.id)||o.set(n.id,n)}})),n.value){if(n.name instanceof Je)n.walk(l);else{var r=n.name.definition;D(u,r.id,n.value),r.chained||n.name.fixed_value!==n.value||s.set(r.id,n)}n.value.has_side_effects(e)&&n.value.walk(l)}})),!0}return m(r,c)}}));t.walk(l),l=new Rn(m),o.forEach((function(e){var t=u.get(e.id);t&&t.forEach((function(e){e.walk(l)}))}));var p=new Ln((function(u,c,l){var m=p.parent;if(i){const e=r(u);if(e instanceof yn){var _=e.definition,g=o.has(_.id);if(u instanceof Nt){if(!g||s.has(_.id)&&s.get(_.id)!==u)return Oi(m,u,u.right.transform(p))}else if(!g)return l?h.skip:d(Fn,u,{value:0})}}if(f===t){if(u.name&&(u instanceof Qt&&!w(e.option("keep_classnames"),(_=u.name.definition).name)||u instanceof Ve&&!w(e.option("keep_fnames"),(_=u.name.definition).name))&&(!o.has(_.id)||_.orig.length>1)&&(u.name=null),u instanceof Le&&!(u instanceof Ue))for(var y=!e.option("keep_fargs"),D=u.argnames,b=D.length;--b>=0;){var A=D[b];A instanceof Re&&(A=A.expression),A instanceof It&&(A=A.left),A instanceof Je||o.has(A.definition.id)?y=!1:(bi(A,1),y&&D.pop)}if((u instanceof We||u instanceof Kt)&&u!==t){const t=u.name.definition;if(!(t.global&&!n||o.has(t.id))){if(t.eliminated++,u instanceof Kt){const t=u.drop_side_effect_free(e);if(t)return d(xe,u,{body:t})}return l?h.skip:d(Se,u)}}if(u instanceof mt&&!(m instanceof Ne&&m.init===u)){var x=!(m instanceof He||u instanceof _t),E=[],k=[],F=[],C=[];switch(u.definitions.forEach((function(t){t.value&&(t.value=t.value.transform(p));var n=t.name instanceof Je,r=n?new ai(null,{name:" "}):t.name.definition;if(x&&r.global)return F.push(t);if(!i&&!x||n&&(t.name.names.length||t.name.is_array||1!=e.option("pure_getters"))||o.has(r.id)){if(t.value&&s.has(r.id)&&s.get(r.id)!==t&&(t.value=t.value.drop_side_effect_free(e)),t.name instanceof rn){var c=a.get(r.id);if(c.length>1&&(!t.value||r.orig.indexOf(t.name)>r.eliminated)){if(t.value){var f=d(yn,t.name,t.name);r.references.push(f);var l=d(Nt,t,{operator:"=",logical:!1,left:f,right:t.value});s.get(r.id)===t&&s.set(r.id,l),C.push(l.transform(p))}return v(c,t),void r.eliminated++}}t.value?(C.length>0&&(F.length>0?(C.push(t.value),t.value=$i(t.value,C)):E.push(d(xe,u,{body:$i(u,C)})),C=[]),F.push(t)):k.push(t)}else if(r.orig[0]instanceof mn){(h=t.value&&t.value.drop_side_effect_free(e))&&C.push(h),t.value=null,k.push(t)}else{var h;(h=t.value&&t.value.drop_side_effect_free(e))&&C.push(h),r.eliminated++}})),(k.length>0||F.length>0)&&(u.definitions=k.concat(F),E.push(u)),C.length>0&&E.push(d(xe,u,{body:$i(u,C)})),E.length){case 0:return l?h.skip:d(Se,u);case 1:return E[0];default:return l?h.splice(E):d(Ce,u,{body:E})}}if(u instanceof qe)return c(u,this),u.init instanceof Ce&&(S=u.init,u.init=S.body.pop,S.body.push(u)),u.init instanceof xe?u.init=u.init.body:Ni(u.init)&&(u.init=null),S?l?h.splice(S.body):S:u;if(u instanceof Te&&u.body instanceof qe){if(c(u,this),u.body instanceof Ce){var S=u.body;return u.body=S.body.pop,S.body.push(u),l?h.splice(S.body):S}return u}if(u instanceof Ce)return c(u,this),l&&u.body.every(Ii)?h.splice(u.body):u;if(u instanceof Pe){const e=f;return f=u,c(u,this),f=e,u}}}));function m(e,n){var i;const a=r(e);if(a instanceof yn&&!Si(e.left,on)&&t.variables.get(a.name)===(i=a.definition))return e instanceof Nt&&(e.right.walk(l),i.chained||e.left.fixed_value!==e.right||s.set(i.id,e)),!0;if(e instanceof yn){if(i=e.definition,!o.has(i.id)&&(o.set(i.id,i),i.orig[0]instanceof mn)){const e=i.scope.is_block_scope&&i.scope.get_defun_scope.variables.get(i.name);e&&o.set(e.id,e)}return!0}if(e instanceof Pe){var u=f;return f=e,n,f=u,!0}}t.transform(p)})),Pe.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"),i=e.option("hoist_vars");if(n||i){var r=[],o=[],s=new Map,a=0,u=0;jn(t,(e=>e instanceof Pe&&e!==t||(e instanceof _t?(++u,!0):void 0))),i=i&&u>1;var c=new Ln((function(u){if(u!==t){if(u instanceof Ae)return r.push(u),d(Se,u);if(n&&u instanceof We&&!(c.parentinstanceof At)&&c.parent===t)return o.push(u),d(Se,u);if(i&&u instanceof _t&&!u.definitions.some((e=>e.name instanceof Je))){u.definitions.forEach((function(e){s.set(e.name.name,e),++a}));var f=u.to_assignments(e),l=c.parent;if(l instanceof Ne&&l.init===u){if(null==f){var p=u.definitions[0].name;return d(yn,p,p)}return f}return l instanceof qe&&l.init===u?f:f?d(xe,u,{body:f}):d(Se,u)}if(u instanceof Pe)return u}}));if(t=t.transform(c),a>0){var f=[];const e=t instanceof Le,n=e?t.args_as_names:null;if(s.forEach(((t,i)=>{e&&n.some((e=>e.name===t.name.name))?s.delete(i):((t=t.clone).value=null,f.push(t),s.set(i,t))})),f.length>0){for(0<t.body.length;){if(t.body[0]instanceof xe){var l,p,h=t.body[0].body;if(h instanceof Nt&&"="==h.operator&&(l=h.left)instanceof en&&s.has(l.name)){if((m=s.get(l.name)).value)break;m.value=h.right,v(f,m),f.push(m),t.body.splice(0,1);continue}if(h instanceof kt&&(p=h.expressions[0])instanceof Nt&&"="==p.operator&&(l=p.left)instanceof en&&s.has(l.name)){var m;if((m=s.get(l.name)).value)break;m.value=p.right,v(f,m),f.push(m),t.body[0].body=$i(h,h.expressions.slice(1));continue}}if(t.body[0]instanceof Se)t.body.splice(0,1);else{if(!(t.body[0]instanceof Ce))break;t.body.splice(0,1,...t.body[0].body)}}f=d(_t,t,{definitions:f}),o.push(f)}}t.body=r.concat(o,t.body)}return t})),Pe.DEFMETHOD("hoist_properties",(function(e){var t=this;if(!e.option("hoist_props")||e.has_directive("use asm"))return t;var n=t instanceof He&&e.top_retain||c,i=new Map,r=new Ln((function(o,s){if(o instanceof mt&&r.parentinstanceof At)return o;if(o instanceof yt){const a=o.name;let u,c;if(a.scope===t&&1!=(u=a.definition).escaped&&!u.assignments&&!u.direct_access&&!u.single_use&&!e.exposed(u)&&!n(u)&&(c=a.fixed_value)===o.value&&c instanceof Pt&&!c.properties.some((e=>e instanceof Re||e.computed_key))){s(o,this);const e=new Map,n=[];return c.properties.forEach((({key:i,value:s})=>{const u=Bi(r),c=t.create_symbol(a.CTOR,{source:a,scope:u,conflict_scopes:new Set([u,...a.definition.references.map((e=>e.scope))]),tentative_name:a.name+"_"+i});e.set(String(i),c.definition),n.push(d(yt,o,{name:c,value:s}))})),i.set(u.id,e),h.splice(n)}}else if(o instanceof Ft&&o.expression instanceof yn){const e=i.get(o.expression.definition.id);if(e){const t=e.get(String(Ji(o.property))),n=d(yn,o,{name:t.name,scope:o.expression.scope,thedef:t});return n.reference({}),n}}}));return t.transform(r)})),function(e){function t(e,t,n){var i=e.length;if(!i)return null;for(var r=[],o=!1,s=0;s<i;s++){var a=e[s].drop_side_effect_free(t,n);o|=a!==e[s],a&&(r.push(a),n=!1)}return o?r.length?r:null:e}e(De,l),e(En,p),e(An,p),e(xt,(function(e,n){if(this.optional&&wr(this.expression))return d(zn,this);if(!this.is_expr_pure(e)){if(this.expression.is_call_pure(e)){var i=this.args.slice;return i.unshift(this.expression.expression),(i=t(i,e,n))&&$i(this,i)}if(Fi(this.expression)&&(!this.expression.name||!this.expression.name.definition.references.length)){var r=this.clone;return r.expression.process_expression(!1,e),r}return this}var o=t(this.args,e,n);return o&&$i(this,o)})),e(Ue,p),e(Ve,p),e(Ye,p),e(Gt,(function(e){const t=[],n=this.extends&&this.extends.drop_side_effect_free(e);n&&t.push(n);for(const n of this.properties){const i=n.drop_side_effect_free(e);i&&t.push(i)}return t.length?$i(this,t):null})),e(Mt,(function(e,t){var n=this.right.drop_side_effect_free(e);if(!n)return this.left.drop_side_effect_free(e,t);if(Xi.has(this.operator)){if(n===this.right)return this;var i=this.clone;return i.right=n,i}var r=this.left.drop_side_effect_free(e,t);return r?$i(this,[r,n]):this.right.drop_side_effect_free(e,t)})),e(Nt,(function(e){if(this.logical)return this;var t=this.left;if(t.has_side_effects(e)||e.has_directive("use strict")&&t instanceof Ft&&t.expression.is_constant)return this;for(bi(this,vi);t instanceof Ft;)t=t.expression;return t.is_constant_expression(e.find_parent(Pe))?this.right.drop_side_effect_free(e):this})),e(qt,(function(e){var t=this.consequent.drop_side_effect_free(e),n=this.alternative.drop_side_effect_free(e);if(t===this.consequent&&n===this.alternative)return this;if(!t)return n?d(Mt,this,{operator:"||",left:this.condition,right:n}):this.condition.drop_side_effect_free(e);if(!n)return d(Mt,this,{operator:"&&",left:this.condition,right:t});var i=this.clone;return i.consequent=t,i.alternative=n,i})),e($t,(function(e,t){if(Zi.has(this.operator))return this.expression.has_side_effects(e)?wi(this,vi):bi(this,vi),this;if("typeof"==this.operator&&this.expression instanceof yn)return null;var n=this.expression.drop_side_effect_free(e,t);return t&&n&&Pi(n)?n===this.expression&&"!"==this.operator?this:n.negate(e,t):n})),e(yn,(function(e){return this.is_declared(e)||ar.has(this.name)?null:this})),e(Pt,(function(e,n){var i=t(this.properties,e,n);return i&&$i(this,i)})),e(Ht,(function(e,t){const n=this instanceof Rt&&this.key instanceof De&&this.key.drop_side_effect_free(e,t),i=this.value&&this.value.drop_side_effect_free(e,t);return n&&i?$i(this,[n,i]):n||i})),e(Xt,(function(e){const t=this.computed_key&&this.key.drop_side_effect_free(e),n=this.static&&this.value&&this.value.drop_side_effect_free(e);return t&&n?$i(this,[t,n]):t||n||null})),e(Wt,(function{return this.computed_key?this.key:null})),e(Yt,(function{return this.computed_key?this.key:null})),e(Vt,(function{return this.computed_key?this.key:null})),e(jt,(function(e,n){var i=t(this.elements,e,n);return i&&$i(this,i)})),e(Ct,(function(e,t){return this.optional?wr(this.expression)?d(zn,this):this:this.expression.may_throw_on_access(e)?this:this.expression.drop_side_effect_free(e,t)})),e(Bt,(function(e,t){if(this.optional)return wr(this.expression)?d(zn,this):this;if(this.expression.may_throw_on_access(e))return this;var n=this.expression.drop_side_effect_free(e,t);if(!n)return this.property.drop_side_effect_free(e,t);var i=this.property.drop_side_effect_free(e);return i?$i(this,[n,i]):n})),e(Tt,(function(e,t){return this.expression.drop_side_effect_free(e,t)})),e(kt,(function(e){var t=this.tail_node,n=t.drop_side_effect_free(e);if(n===t)return this;var i=this.expressions.slice(0,-1);return n&&i.push(n),i.length?$i(this,i):d(Fn,this,{value:0})})),e(Re,(function(e,t){return this.expression.drop_side_effect_free(e,t)})),e(Ze,p),e(Xe,(function(e){var n=t(this.segments,e,Xn);return n&&$i(this,n)}))}((function(e,t){e.DEFMETHOD("drop_side_effect_free",t)})),xi(xe,(function(e,t){if(t.option("side_effects")){var n=e.body,i=n.drop_side_effect_free(t,!0);if(!i)return d(Se,e);if(i!==n)return d(xe,e,{body:i})}return e})),xi(Me,(function(e,t){return t.option("loops")?d(qe,e,e).optimize(t):e})),xi(Oe,(function(e,t){if(!t.option("loops"))return e;var n=e.condition.tail_node.evaluate(t);if(!(n instanceof De)){if(n)return d(qe,e,{body:d(Ce,e.body,{body:[e.body,d(xe,e.condition,{body:e.condition})]})}).optimize(t);if(!pr(e,t.parent))return d(Ce,e.body,{body:[e.body,d(xe,e.condition,{body:e.condition})]}).optimize(t)}return e})),xi(qe,(function(e,t){if(!t.option("loops"))return e;if(t.option("side_effects")&&e.init&&(e.init=e.init.drop_side_effect_free(t)),e.condition){var n=e.condition.evaluate(t);if(!(n instanceof De))if(n)e.condition=null;else if(!t.option("dead_code")){var i=e.condition;e.condition=zi(n,e.condition),e.condition=Qi(e.condition.transform(t),i)}if(t.option("dead_code")&&(n instanceof De&&(n=e.condition.tail_node.evaluate(t)),!n)){var r=[];return Wi(t,e.body,r),e.init instanceof be?r.push(e.init):e.init&&r.push(d(xe,e.init,{body:e.init})),r.push(d(xe,e.condition,{body:e.condition})),d(Ce,e,{body:r}).optimize(t)}}return hr(e,t)})),xi(at,(function(e,t){if(Ni(e.alternative)&&(e.alternative=null),!t.option("conditionals"))return e;var n=e.condition.evaluate(t);if(!(t.option("dead_code")||n instanceof De)){var i=e.condition;e.condition=zi(n,i),e.condition=Qi(e.condition.transform(t),i)}if(t.option("dead_code")){if(n instanceof De&&(n=e.condition.tail_node.evaluate(t)),!n){var r=[];return Wi(t,e.body,r),r.push(d(xe,e.condition,{body:e.condition})),e.alternative&&r.push(e.alternative),d(Ce,e,{body:r}).optimize(t)}if(!(n instanceof De))return(r=[]).push(d(xe,e.condition,{body:e.condition})),r.push(e.body),e.alternative&&Wi(t,e.alternative,r),d(Ce,e,{body:r}).optimize(t)}var o=e.condition.negate(t),s=e.condition.size,a=o.size,u=a<s;if(e.alternative&&u){u=!1,e.condition=o;var c=e.body;e.body=e.alternative||d(Se,e),e.alternative=c}if(Ni(e.body)&&Ni(e.alternative))return d(xe,e.condition,{body:e.condition.clone}).optimize(t);if(e.body instanceof xe&&e.alternative instanceof xe)return d(xe,e,{body:d(qt,e,{condition:e.condition,consequent:e.body.body,alternative:e.alternative.body})}).optimize(t);if(Ni(e.alternative)&&e.body instanceof xe)return s===a&&!u&&e.condition instanceof Mt&&"||"==e.condition.operator&&(u=!0),u?d(xe,e,{body:d(Mt,e,{operator:"||",left:o,right:e.body.body})}).optimize(t):d(xe,e,{body:d(Mt,e,{operator:"&&",left:e.condition,right:e.body.body})}).optimize(t);if(e.body instanceof Se&&e.alternative instanceof xe)return d(xe,e,{body:d(Mt,e,{operator:"||",left:e.condition,right:e.alternative.body})}).optimize(t);if(e.body instanceof Qe&&e.alternative instanceof Qe&&e.body.TYPE==e.alternative.TYPE)return d(e.body.CTOR,e,{value:d(qt,e,{condition:e.condition,consequent:e.body.value||d(zn,e.body),alternative:e.alternative.value||d(zn,e.alternative)}).transform(t)}).optimize(t);if(e.body instanceof at&&!e.body.alternative&&!e.alternative&&(e=d(at,e,{condition:d(Mt,e.condition,{operator:"&&",left:e.condition,right:e.body.condition}),body:e.body.body,alternative:null})),ur(e.body)&&e.alternative){var f=e.alternative;return e.alternative=null,d(Ce,e,{body:[e,f]}).optimize(t)}if(ur(e.alternative)){r=e.body;return e.body=e.alternative,e.condition=u?o:e.condition.negate(t),e.alternative=null,d(Ce,e,{body:[e,r]}).optimize(t)}return e})),xi(ut,(function(e,t){if(!t.option("switches"))return e;var n,i=e.expression.evaluate(t);if(!(i instanceof De)){var r=e.expression;e.expression=zi(i,r),e.expression=Qi(e.expression.transform(t),r)}if(!t.option("dead_code"))return e;i instanceof De&&(i=e.expression.tail_node.evaluate(t));for(var o,s,a=[],u=[],c=0,f=e.body.length;c<f&&!s;c++){if((n=e.body[c])instanceof ft)o?y(n,u[u.length-1]):o=n;else if(!(i instanceof De)){if(!((v=n.expression.evaluate(t))instanceof De)&&v!==i){y(n,u[u.length-1]);continue}if(v instanceof De&&(v=n.expression.tail_node.evaluate(t)),v===i&&(s=n,o)){var l=u.indexOf(o);u.splice(l,1),y(o,u[l-1]),o=null}}if(ur(n)){var p=u[u.length-1];ur(p)&&p.body.length==n.body.length&&d(Ce,p,p).equivalent_to(d(Ce,n,n))&&(p.body=[])}u.push(n)}for(c<f;)y(e.body[c++],u[u.length-1]);for(u.length>0&&(u[0].body=a.concat(u[0].body)),e.body=u;n=u[u.length-1];){var h=n.body[n.body.length-1];if(h instanceof it&&t.loopcontrol_target(h)===e&&n.body.pop,n.body.length||n instanceof lt&&(o||n.expression.has_side_effects(t)))break;u.pop===o&&(o=null)}if(0==u.length)return d(Ce,e,{body:a.concat(d(xe,e.expression,{body:e.expression}))}).optimize(t);if(1==u.length&&(u[0]===s||u[0]===o)){var m=!1,_=new Rn((function(t){if(m||t instanceof Le||t instanceof xe)return!0;t instanceof it&&_.loopcontrol_target(t)===e&&(m=!0)}));if(e.walk(_),!m){var v,g=u[0].body.slice;return(v=u[0].expression)&&g.unshift(d(xe,v,{body:v})),g.unshift(d(xe,e.expression,{body:e.expression})),d(Ce,e,{body:g}).optimize(t)}}return e;function y(e,n){n&&!ur(n)?n.body=n.body.concat(e.body):Wi(t,e,a)}})),xi(pt,(function(e,t){if(Yi(e.body,t),e.bcatch&&e.bfinally&&e.bfinally.body.every(Ni)&&(e.bfinally=null),t.option("dead_code")&&e.body.every(Ni)){var n=[];return e.bcatch&&Wi(t,e.bcatch,n),e.bfinally&&n.push(...e.bfinally.body),d(Ce,e,{body:n}).optimize(t)}return e})),mt.DEFMETHOD("remove_initializers",(function{var e=[];this.definitions.forEach((function(t){t.name instanceof nn?(t.value=null,e.push(t)):jn(t.name,(n=>{n instanceof nn&&e.push(d(yt,t,{name:n,value:null}))}))})),this.definitions=e})),mt.DEFMETHOD("to_assignments",(function(e){var t=e.option("reduce_vars"),n=[];for(const e of this.definitions){if(e.value){var i=d(yn,e.name,e.name);n.push(d(Nt,e,{operator:"=",logical:!1,left:i,right:e.value})),t&&(i.definition.fixed=!1)}else if(e.value){var r=d(yt,e,{name:e.name,value:e.value}),o=d(_t,e,{definitions:[r]});n.push(o)}const s=e.name.definition;s.eliminated++,s.replaced--}return 0==n.length?null:$i(this,n)})),xi(mt,(function(e){return 0==e.definitions.length?d(Se,e):e})),xi(yt,(function(e){return e.name instanceof an&&null!=e.value&&Gi(e.value)&&(e.value=null),e})),xi(bt,(function(e){return e})),xi(xt,(function(e,t){var n=e.expression,i=n;Er(e.args);var r=e.args.every((e=>!(e instanceof Re)));if(t.option("reduce_vars")&&i instanceof yn&&!E(e,Yn)){const e=i.fixed_value;dr(e,t)||(i=e)}if(e.optional&&wr(i))return d(zn,e);var o=i instanceof Le;if(o&&i.pinned)return e;if(t.option("unused")&&r&&o&&!i.uses_arguments){for(var s=0,a=0,u=0,c=e.args.length;u<c;u++){if(i.argnames[u]instanceof Re){if(Di(i.argnames[u].expression,1))for(u<c;){(y=e.args[u++].drop_side_effect_free(t))&&(e.args[s++]=y)}else for(u<c;)e.args[s++]=e.args[u++];a=s;break}var f=u>=i.argnames.length;if(f||Di(i.argnames[u],1)){if(y=e.args[u].drop_side_effect_free(t))e.args[s++]=y;else if(!f){e.args[s++]=d(Fn,e.args[u],{value:0});continue}}else e.args[s++]=e.args[u];a=s}e.args.length=a}if(t.option("unsafe"))if(Hi(n))switch(n.name){case"Array":if(1!=e.args.length)return d(jt,e,{elements:e.args}).optimize(t);if(e.args[0]instanceof Fn&&e.args[0].value<=11){const t=[];for(let n=0;n<e.args[0].value;n++)t.push(new On);return new jt({elements:t})}break;case"Object":if(0==e.args.length)return d(Pt,e,{properties:[]});break;case"String":if(0==e.args.length)return d(kn,e,{value:""});if(e.args.length<=1)return d(Mt,e,{left:e.args[0],operator:"+",right:d(kn,e,{value:""})}).optimize(t);break;case"Number":if(0==e.args.length)return d(Fn,e,{value:0});if(1==e.args.length&&t.option("unsafe_math"))return d(zt,e,{expression:e.args[0],operator:"+"}).optimize(t);break;case"Symbol":1==e.args.length&&e.args[0]instanceof kn&&t.option("unsafe_symbols")&&(e.args.length=0);break;case"Boolean":if(0==e.args.length)return d(Nn,e);if(1==e.args.length)return d(zt,e,{expression:d(zt,e,{expression:e.args[0],operator:"!"}),operator:"!"}).optimize(t);break;case"RegExp":var l=[];if(e.args.length>=1&&e.args.length<=2&&e.args.every((e=>{var n=e.evaluate(t);return l.push(n),e!==n}))){let[n,i]=l;n=x(new RegExp(n).source);const r=d(Sn,e,{value:{source:n,flags:i}});if(r._eval(t)!==r)return r}}else if(n instanceof Ct)switch(n.property){case"toString":if(0==e.args.length&&!n.expression.may_throw_on_access(t))return d(Mt,e,{left:d(kn,e,{value:""}),operator:"+",right:n.expression}).optimize(t);break;case"join":if(n.expression instanceof jt)e:{var p;if(!(e.args.length>0&&(p=e.args[0].evaluate(t))===e.args[0])){var h,m=[],_=[];for(u=0,c=n.expression.elements.length;u<c;u++){var v=n.expression.elements[u];if(v instanceof Re)break e;var g=v.evaluate(t);g!==v?_.push(g):(_.length>0&&(m.push(d(kn,e,{value:_.join(p)})),_.length=0),m.push(v))}return _.length>0&&m.push(d(kn,e,{value:_.join(p)})),0==m.length?d(kn,e,{value:""}):1==m.length?m[0].is_string(t)?m[0]:d(Mt,m[0],{operator:"+",left:d(kn,e,{value:""}),right:m[0]}):""==p?(h=m[0].is_string(t)||m[1].is_string(t)?m.shift:d(kn,e,{value:""}),m.reduce((function(e,t){return d(Mt,t,{operator:"+",left:e,right:t})}),h).optimize(t)):((y=e.clone).expression=y.expression.clone,y.expression.expression=y.expression.expression.clone,y.expression.expression.elements=m,tr(t,e,y));var y}}break;case"charAt":if(n.expression.is_string(t)){var D=e.args[0],b=D?D.evaluate(t):0;if(b!==D)return d(Bt,n,{expression:n.expression,property:zi(0|b,D||n)}).optimize(t)}break;case"apply":if(2==e.args.length&&e.args[1]instanceof jt)return(q=e.args[1].elements.slice).unshift(e.args[0]),d(xt,e,{expression:d(Ct,n,{expression:n.expression,optional:!1,property:"call"}),args:q}).optimize(t);break;case"call":var w=n.expression;if(w instanceof yn&&(w=w.fixed_value),w instanceof Le&&!w.contains_this)return(e.args.length?$i(this,[e.args[0],d(xt,e,{expression:n.expression,args:e.args.slice(1)})]):d(xt,e,{expression:n.expression,args:[]})).optimize(t)}if(t.option("unsafe_Function")&&Hi(n)&&"Function"==n.name){if(0==e.args.length)return d(Ve,e,{argnames:[],body:[]}).optimize(t);if(e.args.every((e=>e instanceof kn)))try{var A=me(S="n(function("+e.args.slice(0,-1).map((function(e){return e.value})).join(",")+"){"+e.args[e.args.length-1].value+"})"),k={ie8:t.option("ie8")};A.figure_out_scope(k);var F,C=new Ai(t.options,{mangle_options:t.mangle_options});(A=A.transform(C)).figure_out_scope(k),fi.reset,A.compute_char_frequency(k),A.mangle_names(k),jn(A,(e=>{if(Fi(e))return F=e,Hn}));var S=ti;return Ce.prototype._codegen.call(F,F,S),e.args=[d(kn,e,{value:F.argnames.map((function(e){return e.print_to_string})).join(",")}),d(kn,e.args[e.args.length-1],{value:S.get.replace(/^{|}$/g,"")})],e}catch(e){if(!(e instanceof re))throw e}}var B=o&&i.body[0],T=o&&!i.is_generator&&!i.async,$=T&&t.option("inline")&&!e.is_expr_pure(t);if($&&B instanceof et){let n=B.value;if(!n||n.is_constant_expression){n=n?n.clone(!0):d(zn,e);const i=e.args.concat(n);return $i(e,i).optimize(t)}if(1===i.argnames.length&&i.argnames[0]instanceof un&&e.args.length<2&&n instanceof yn&&n.name===i.argnames[0].name){const n=(e.args[0]||d(zn)).optimize(t);let i;return n instanceof Ft&&(i=t.parent)instanceof xt&&i.expression===e?$i(e,[d(Fn,e,{value:0}),n]):n}}if($){var z,O,M=-1;let o,s,a;if(r&&!i.uses_arguments&&!(t.parentinstanceof Gt)&&!(i.name&&i instanceof Ve)&&(s=function(e){var n=i.body,r=n.length;if(t.option("inline")<3)return 1==r&&I(e);e=null;for(var o=0;o<r;o++){var s=n[o];if(s instanceof _t){if(e&&!s.definitions.every((e=>!e.value)))return!1}else{if(e)return!1;s instanceof Se||(e=s)}}return I(e)}(B))&&(n===i||E(e,Vn)||t.option("unused")&&1==(o=n.definition).references.length&&!_r(t,o)&&i.is_constant_expression(n.scope))&&!E(e,Un|Yn)&&!i.contains_this&&function{var e=new Set;do{if((z=t.parent(++M)).is_block_scope&&z.block_scope&&z.block_scope.variables.forEach((function(t){e.add(t.name)})),z instanceof ht)z.argname&&e.add(z.argname.name);else if(z instanceof $e)O=[];else if(z instanceof yn&&z.fixed_valueinstanceof Pe)return!1}while(!(z instanceof Pe));var n=!(z instanceof He)||t.toplevel.vars,r=t.option("inline");return!!function(e,t){for(var n=i.body.length,r=0;r<n;r++){var o=i.body[r];if(o instanceof _t){if(!t)return!1;for(var s=o.definitions.length;--s>=0;){var a=o.definitions[s].name;if(a instanceof Je||e.has(a.name)||Ui.has(a.name)||z.conflicting_def(a.name))return!1;O&&O.push(a.definition)}}}return!0}(e,r>=3&&n)&&(!!function(e,t){for(var n=0,r=i.argnames.length;n<r;n++){var o=i.argnames[n];if(o instanceof It){if(Di(o.left,1))continue;return!1}if(o instanceof Je)return!1;if(o instanceof Re){if(Di(o.expression,1))continue;return!1}if(!Di(o,1)){if(!t||e.has(o.name)||Ui.has(o.name)||z.conflicting_def(o.name))return!1;O&&O.push(o.definition)}}return!0}(e,r>=2&&n)&&(!O||0==O.length||!yr(i,O)))}&&(a=Bi(t))&&!vr(a,i)&&!function{let e,n=0;for(e=t.parent(n++);){if(e instanceof It)return!0;if(e instanceof Fe)break}return!1}&&!(z instanceof Gt))return bi(i,gi),a.add_child_scope(i),$i(e,function(n){var r=[],o=[];if(function(t,n){for(var r=i.argnames.length,o=e.args.length;--o>=r;)n.push(e.args[o]);for(o=r;--o>=0;){var s=i.argnames[o],a=e.args[o];if(Di(s,1)||!s.name||z.conflicting_def(s.name))a&&n.push(a);else{var u=d(rn,s,s);s.definition.orig.push(u),!a&&O&&(a=d(zn,e)),j(t,n,u,a)}}t.reverse,n.reverse}(r,o),function(e,t){for(var n=t.length,r=0,o=i.body.length;r<o;r++){var s=i.body[r];if(s instanceof _t)for(var a=0,u=s.definitions.length;a<u;a++){var c=s.definitions[a],f=c.name;if(j(e,t,f,c.value),O&&i.argnames.every((e=>e.name!=f.name))){var l=i.variables.get(f.name),p=d(yn,f,f);l.references.push(p),t.splice(n++,0,d(Nt,c,{operator:"=",logical:!1,left:p,right:d(zn,f)}))}}}}(r,o),o.push(n),r.length){const e=z.body.indexOf(t.parent(M-1))+1;z.body.splice(e,0,d(_t,i,{definitions:r}))}return o.map((e=>e.clone(!0)))}(s)).optimize(t)}if($&&E(e,Vn))return bi(i,gi),(i=d(i.CTOR===We?Ve:i.CTOR,i,i)).figure_out_scope({},{parent_scope:Bi(t),toplevel:t.get_toplevel}),d(xt,e,{expression:i,args:e.args}).optimize(t);if(T&&t.option("side_effects")&&i.body.every(Ni)){var q=e.args.concat(d(zn,e));return $i(e,q).optimize(t)}if(t.option("negate_iife")&&t.parentinstanceof xe&&Pi(e))return e.negate(t,!0);var N=e.evaluate(t);return N!==e?(N=zi(N,e).optimize(t),tr(t,N,e)):e;function I(t){return t?t instanceof et?t.value?t.value.clone(!0):d(zn,e):t instanceof xe?d(zt,t,{operator:"void",expression:t.body.clone(!0)}):void 0:d(zn,e)}function j(t,n,i,r){var o=i.definition;z.variables.has(i.name)||(z.variables.set(i.name,o),z.enclosed.push(o),t.push(d(yt,i,{name:i,value:null})));var s=d(yn,i,i);o.references.push(s),r&&n.push(d(Nt,e,{operator:"=",logical:!1,left:s,right:r.clone}))}})),xi(Et,(function(e,t){return t.option("unsafe")&&Hi(e.expression)&&["Object","RegExp","Function","Error","Array"].includes(e.expression.name)?d(xt,e,e).transform(t):e})),xi(kt,(function(e,t){if(!t.option("side_effects"))return e;var n,i,r=[];n=Xn(t),i=e.expressions.length-1,e.expressions.forEach((function(e,o){o<i&&(e=e.drop_side_effect_free(t,n)),e&&(Mi(r,e),n=!1)}));var o=r.length-1;return function{for(o>0&&Gi(r[o],t);)o--;o<r.length-1&&(r[o]=d(zt,e,{operator:"void",expression:r[o]}),r.length=o+1)},0==o?((e=Oi(t.parent,t.self,r[0]))instanceof kt||(e=e.optimize(t)),e):(e.expressions=r,e)})),$t.DEFMETHOD("lift_sequences",(function(e){if(e.option("sequences")&&this.expression instanceof kt){var t=this.expression.expressions.slice,n=this.clone;return n.expression=t.pop,t.push(n),$i(this,t).optimize(e)}return this})),xi(Ot,(function(e,t){return e.lift_sequences(t)})),xi(zt,(function(e,t){var n=e.expression;if("delete"==e.operator&&!(n instanceof yn||n instanceof Ft||Vi(n))){if(n instanceof kt){const i=n.expressions.slice;return i.push(d(In,e)),$i(e,i).optimize(t)}return $i(e,[n,d(In,e)]).optimize(t)}var i=e.lift_sequences(t);if(i!==e)return i;if(t.option("side_effects")&&"void"==e.operator)return(n=n.drop_side_effect_free(t))?(e.expression=n,e):d(zn,e).optimize(t);if(t.in_boolean_context)switch(e.operator){case"!":if(n instanceof zt&&"!"==n.operator)return n.expression;n instanceof Mt&&(e=tr(t,e,n.negate(t,Xn(t))));break;case"typeof":return(n instanceof yn?d(In,e):$i(e,[n,d(In,e)])).optimize(t)}if("-"==e.operator&&n instanceof Mn&&(n=n.transform(t)),n instanceof Mt&&("+"==e.operator||"-"==e.operator)&&("*"==n.operator||"/"==n.operator||"%"==n.operator))return d(Mt,e,{operator:n.operator,left:d(zt,n.left,{operator:e.operator,expression:n.left}),right:n.right});if("-"!=e.operator||!(n instanceof Fn||n instanceof Mn||n instanceof Cn)){var r=e.evaluate(t);if(r!==e)return tr(t,r=zi(r,e).optimize(t),e)}return e})),Mt.DEFMETHOD("lift_sequences",(function(e){if(e.option("sequences")){if(this.left instanceof kt){var t=this.left.expressions.slice;return(n=this.clone).left=t.pop,t.push(n),$i(this,t).optimize(e)}if(this.right instanceof kt&&!this.left.has_side_effects(e)){for(var n,i="="==this.operator&&this.left instanceof yn,r=(t=this.right.expressions).length-1,o=0;o<r&&(i||!t[o].has_side_effects(e));o++);if(o==r)return t=t.slice,(n=this.clone).right=t.pop,t.push(n),$i(this,t).optimize(e);if(o>0)return(n=this.clone).right=$i(this.right,t.slice(o)),(t=t.slice(0,o)).push(n),$i(this,t).optimize(e)}}return this}));var mr=y("== === != !== * & | ^");function _r(e,t){for(var n,i=0;n=e.parent(i);i++)if(n instanceof Le||n instanceof Gt){var r=n.name;if(r&&r.definition===t)break}return n}function vr(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!0}}return!1}function gr(e,t){return e instanceof yn||e.TYPE===t.TYPE}function yr(e,t){const n=e=>{if(e instanceof yn&&o(e.definition,t))return Hn};return Pn(e,((t,i)=>{if(t instanceof Pe&&t!==e){var r=i.parent;if(r instanceof xt&&r.expression===t)return;return!jn(t,n)||Hn}}))}xi(Mt,(function(e,t){function n{return e.left.is_constant||e.right.is_constant||!e.left.has_side_effects(t)&&!e.right.has_side_effects(t)}function i(t){if(n){t&&(e.operator=t);var i=e.left;e.left=e.right,e.right=i}}if(mr.has(e.operator)&&e.right.is_constant&&!e.left.is_constant&&(e.left instanceof Mt&&he[e.left.operator]>=he[e.operator]||i),e=e.lift_sequences(t),t.option("comparisons"))switch(e.operator){case"===":case"!==":var r=!0;(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(!r&&Gi(e.left,t))e.left=d(Tn,e.left);else if(t.option("typeofs")&&e.left instanceof kn&&"undefined"==e.left.value&&e.right instanceof zt&&"typeof"==e.right.operator){var o=e.right.expression;(o instanceof yn?!o.is_declared(t):o instanceof Ft&&t.option("ie8"))||(e.right=o,e.left=d(zn,e.left).optimize(t),2==e.operator.length&&(e.operator+="="))}else if(e.left instanceof yn&&e.right instanceof yn&&e.left.definition===e.right.definition&&((u=e.left.fixed_value)instanceof jt||u instanceof Le||u instanceof Pt||u instanceof Gt))return d("="==e.operator[0]?In:Nn,e);break;case"&&":case"||":var s=e.left;if(s.operator==e.operator&&(s=s.right),s instanceof Mt&&s.operator==("&&"==e.operator?"!==":"===")&&e.right instanceof Mt&&s.operator==e.right.operator&&(Gi(s.left,t)&&e.right.left instanceof Tn||s.left instanceof Tn&&Gi(e.right.left,t))&&!s.right.has_side_effects(t)&&s.right.equivalent_to(e.right.right)){var a=d(Mt,e,{operator:s.operator.slice(0,-1),left:d(Tn,e),right:s.right});return s!==e.left&&(a=d(Mt,e,{operator:e.operator,left:e.left.left,right:a})),a}}var u;if("+"==e.operator&&t.in_boolean_context){var c=e.left.evaluate(t),f=e.right.evaluate(t);if(c&&"string"==typeof c)return $i(e,[e.right,d(In,e)]).optimize(t);if(f&&"string"==typeof f)return $i(e,[e.left,d(In,e)]).optimize(t)}if(t.option("comparisons")&&e.is_boolean){if(!(t.parentinstanceof Mt)||t.parentinstanceof Nt){var l=d(zt,e,{operator:"!",expression:e.negate(t,Xn(t))});e=tr(t,e,l)}if(t.option("unsafe_comps"))switch(e.operator){case"<":i(">");break;case"<=":i(">=")}}if("+"==e.operator){if(e.right instanceof kn&&""==e.right.getValue&&e.left.is_string(t))return e.left;if(e.left instanceof kn&&""==e.left.getValue&&e.right.is_string(t))return e.right;if(e.left instanceof Mt&&"+"==e.left.operator&&e.left.left instanceof kn&&""==e.left.left.getValue&&e.right.is_string(t))return e.left=e.left.right,e}if(t.option("evaluate")){switch(e.operator){case"&&":if(!(c=!!Di(e.left,2)||!Di(e.left,4)&&e.left.evaluate(t)))return Oi(t.parent,t.self,e.left).optimize(t);if(!(c instanceof De))return $i(e,[e.left,e.right]).optimize(t);if(f=e.right.evaluate(t)){if(!(f instanceof De)){if("&&"==(p=t.parent).operator&&p.left===t.self||t.in_boolean_context)return e.left.optimize(t)}}else{if(t.in_boolean_context)return $i(e,[e.left,d(Nn,e)]).optimize(t);bi(e,4)}if("||"==e.left.operator)if(!(h=e.left.right.evaluate(t)))return d(qt,e,{condition:e.left.left,consequent:e.right,alternative:e.left.right}).optimize(t);break;case"||":var p,h;if(!(c=!!Di(e.left,2)||!Di(e.left,4)&&e.left.evaluate(t)))return $i(e,[e.left,e.right]).optimize(t);if(!(c instanceof De))return Oi(t.parent,t.self,e.left).optimize(t);if(f=e.right.evaluate(t)){if(!(f instanceof De)){if(t.in_boolean_context)return $i(e,[e.left,d(In,e)]).optimize(t);bi(e,2)}}else if("||"==(p=t.parent).operator&&p.left===t.self||t.in_boolean_context)return e.left.optimize(t);if("&&"==e.left.operator)if((h=e.left.right.evaluate(t))&&!(h instanceof De))return d(qt,e,{condition:e.left.left,consequent:e.left.right,alternative:e.right}).optimize(t);break;case"??":if(wr(e.left))return e.right;if(!((c=e.left.evaluate(t))instanceof De))return null==c?e.right:e.left;if(t.in_boolean_context){const n=e.right.evaluate(t);if(!(n instanceof De||n))return e.left}}var m=!0;switch(e.operator){case"+":if(e.right instanceof En&&e.left instanceof Mt&&"+"==e.left.operator&&e.left.is_string(t)){var _=(v=d(Mt,e,{operator:"+",left:e.left.right,right:e.right})).optimize(t);v!==_&&(e=d(Mt,e,{operator:"+",left:e.left.left,right:_}))}if(e.left instanceof Mt&&"+"==e.left.operator&&e.left.is_string(t)&&e.right instanceof Mt&&"+"==e.right.operator&&e.right.is_string(t)){var v,g=(v=d(Mt,e,{operator:"+",left:e.left.right,right:e.right.left})).optimize(t);v!==g&&(e=d(Mt,e,{operator:"+",left:d(Mt,e.left,{operator:"+",left:e.left.left,right:g}),right:e.right.right}))}if(e.right instanceof zt&&"-"==e.right.operator&&e.left.is_number(t)){e=d(Mt,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof zt&&"-"==e.left.operator&&n&&e.right.is_number(t)){e=d(Mt,e,{operator:"-",left:e.right,right:e.left.expression});break}if(e.left instanceof Xe){var y=e.left;if((_=e.right.evaluate(t))!=e.right)return y.segments[y.segments.length-1].value+=String(_),y}if(e.right instanceof Xe){_=e.right;if((y=e.left.evaluate(t))!=e.left)return _.segments[0].value=String(y)+_.segments[0].value,_}if(e.left instanceof Xe&&e.right instanceof Xe){var D=(y=e.left).segments;_=e.right;D[D.length-1].value+=_.segments[0].value;for(var b=1;b<_.segments.length;b++)D.push(_.segments[b]);return y}case"*":m=t.option("unsafe_math");case"&":case"|":case"^":if(e.left.is_number(t)&&e.right.is_number(t)&&n&&!(e.left instanceof Mt&&e.left.operator!=e.operator&&he[e.left.operator]>=he[e.operator])){var w=d(Mt,e,{operator:e.operator,left:e.right,right:e.left});e=e.right instanceof En&&!(e.left instanceof En)?tr(t,w,e):tr(t,e,w)}m&&e.is_number(t)&&(e.right instanceof Mt&&e.right.operator==e.operator&&(e=d(Mt,e,{operator:e.operator,left:d(Mt,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})),e.right instanceof En&&e.left instanceof Mt&&e.left.operator==e.operator&&(e.left.left instanceof En?e=d(Mt,e,{operator:e.operator,left:d(Mt,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}):e.left.right instanceof En&&(e=d(Mt,e,{operator:e.operator,left:d(Mt,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}))),e.left instanceof Mt&&e.left.operator==e.operator&&e.left.right instanceof En&&e.right instanceof Mt&&e.right.operator==e.operator&&e.right.left instanceof En&&(e=d(Mt,e,{operator:e.operator,left:d(Mt,e.left,{operator:e.operator,left:d(Mt,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 Mt&&e.right.operator==e.operator&&(Xi.has(e.operator)||"+"==e.operator&&(e.right.left.is_string(t)||e.left.is_string(t)&&e.right.right.is_string(t))))return e.left=d(Mt,e.left,{operator:e.operator,left:e.left.transform(t),right:e.right.left.transform(t)}),e.right=e.right.right.transform(t),e.transform(t);var A=e.evaluate(t);return A!==e?(A=zi(A,e).optimize(t),tr(t,A,e)):e})),xi(Dn,(function(e){return e})),xi(yn,(function(e,t){if(!t.option("ie8")&&Hi(e)&&!t.find_parent(je))switch(e.name){case"undefined":return d(zn,e).optimize(t);case"NaN":return d($n,e).optimize(t);case"Infinity":return d(Mn,e).optimize(t)}const n=t.parent;if(t.option("reduce_vars")&&Ki(e,n)!==e){const o=e.definition,s=Bi(t);if(t.top_retain&&o.global&&t.top_retain(o))return o.fixed=!1,o.single_use=!1,e;let a=e.fixed_value,u=o.single_use&&!(n instanceof xt&&n.is_expr_pure(t)||E(n,Yn))&&!(n instanceof At&&a instanceof Le&&a.name);if(u&&(a instanceof Le||a instanceof Gt))if(dr(a,t))u=!1;else if(o.scope!==e.scope&&(1==o.escaped||Di(a,16)||function(e){for(var t,n=0;t=e.parent(n++);){if(t instanceof be)return!1;if(t instanceof jt||t instanceof Rt||t instanceof Pt)return!0}return!1}(t)))u=!1;else if(_r(t,o))u=!1;else if((o.scope!==e.scope||o.orig[0]instanceof un)&&(u=a.is_constant_expression(e.scope),"f"==u)){var i=e.scope;do{(i instanceof We||Fi(i))&&bi(i,16)}while(i=i.parent_scope)}if(u&&a instanceof Le&&(u=o.scope===e.scope&&!vr(s,a)||n instanceof xt&&n.expression===e&&!vr(s,a)&&!(a.name&&a.name.definition.recursive_refs>0)),u&&a instanceof Gt){u=(!a.extends||!a.extends.may_throw(t)&&!a.extends.has_side_effects(t))&&!a.properties.some((e=>e.may_throw(t)||e.has_side_effects(t)))}if(u&&a){if(a instanceof Kt&&(bi(a,gi),a=d(Qt,a,a)),a instanceof We&&(bi(a,gi),a=d(Ve,a,a)),o.recursive_refs>0&&a.name instanceof cn){const e=a.name.definition;let t=a.variables.get(a.name.name),n=t&&t.orig[0];n instanceof pn||(n=d(pn,a.name,a.name),n.scope=a,a.name=n,t=a.def_function(n)),jn(a,(n=>{n instanceof yn&&n.definition===e&&(n.thedef=t,t.references.push(n))}))}return(a instanceof Le||a instanceof Gt)&&a.parent_scope!==s&&(a=a.clone(!0,t.get_toplevel),s.add_child_scope(a)),a.optimize(t)}if(a){let n;if(a instanceof An)o.orig[0]instanceof un||!o.references.every((e=>o.scope===e.scope))||(n=a);else{var r=a.evaluate(t);r===a||!t.option("unsafe_regexp")&&r instanceof RegExp||(n=zi(r,a))}if(n){const i=e.size(t),r=n.size(t);let s=0;if(t.option("unused")&&!t.exposed(o)&&(s=(i+2+r)/(o.references.length-o.assignments)),r<=i+s)return n}}}return e})),xi(zn,(function(e,t){if(t.option("unsafe_undefined")){var n=Ti(t,"undefined");if(n){var i=d(yn,e,{name:"undefined",scope:n.scope,thedef:n});return bi(i,8),i}}var r=Ki(t.self,t.parent);return r&&gr(r,e)?e:d(zt,e,{operator:"void",expression:d(Fn,e,{value:0})})})),xi(Mn,(function(e,t){var n=Ki(t.self,t.parent);return n&&gr(n,e)?e:!t.option("keep_infinity")||n&&!gr(n,e)||Ti(t,"Infinity")?d(Mt,e,{operator:"/",left:d(Fn,e,{value:1}),right:d(Fn,e,{value:0})}):e})),xi($n,(function(e,t){var n=Ki(t.self,t.parent);return n&&!gr(n,e)||Ti(t,"NaN")?d(Mt,e,{operator:"/",left:d(Fn,e,{value:0}),right:d(Fn,e,{value:0})}):e}));const Dr=y("+ - / * % >> << >>> | ^ &"),br=y("* | ^ &");function wr(e){let t;return e instanceof Tn||Gi(e)||e instanceof yn&&(t=e.definition.fixed)instanceof De&&wr(t)||e instanceof Ft&&e.optional&&wr(e.expression)||e instanceof xt&&e.optional&&wr(e.expression)||e instanceof Tt&&wr(e.expression)}function Ar(e,t){return e instanceof yn&&(e=e.fixed_value),!!e&&(!(e instanceof Le||e instanceof Gt)||(!(e instanceof Le&&e.contains_this)||t.parentinstanceof Et))}function xr(e,t){return t.in_boolean_context?tr(t,e,$i(e,[e,d(In,e)]).optimize(t)):e}function Er(e){for(var t=0;t<e.length;t++){var n=e[t];if(n instanceof Re){var i=n.expression;i instanceof jt&&!i.elements.some((e=>e instanceof On))&&(e.splice(t,1,...i.elements),t--)}}}function kr(e,t){if(!t.option("computed_props"))return e;if(!(e.key instanceof En))return e;if(e.key instanceof kn||e.key instanceof Fn){if("__proto__"===e.key.value)return e;if("constructor"==e.key.value&&t.parentinstanceof Gt)return e;e.key=e instanceof Rt?e.key.value:d(e instanceof Xt?ln:fn,e.key,{name:e.key.value})}return e}xi(Nt,(function(e,t){if(e.logical)return e.lift_sequences(t);var n;if(t.option("dead_code")&&e.left instanceof yn&&(n=e.left.definition).scope===t.find_parent(Le)){var i,r=0,o=e;do{if(i=o,(o=t.parent(r++))instanceof Qe){if(s(r,o))break;if(yr(n.scope,[n]))break;return"="==e.operator?e.right:(n.fixed=!1,d(Mt,e,{operator:e.operator.slice(0,-1),left:e.left,right:e.right}).optimize(t))}}while(o instanceof Mt&&o.right===i||o instanceof kt&&o.tail_node===i)}return"="==(e=e.lift_sequences(t)).operator&&e.left instanceof yn&&e.right instanceof Mt&&(e.right.left instanceof yn&&e.right.left.name==e.left.name&&Dr.has(e.right.operator)?(e.operator=e.right.operator+"=",e.right=e.right.right):e.right.right instanceof yn&&e.right.right.name==e.left.name&&br.has(e.right.operator)&&!e.right.left.has_side_effects(t)&&(e.operator=e.right.operator+"=",e.right=e.right.left)),e;function s(n,i){var r=e.right;e.right=d(Tn,r);var o=i.may_throw(t);e.right=r;for(var s,a=e.left.definition.scope;(s=t.parent(n++))!==a;)if(s instanceof pt){if(s.bfinally)return!0;if(o&&s.bcatch)return!0}}})),xi(It,(function(e,t){if(!t.option("evaluate"))return e;var n=e.right.evaluate(t);return void 0===n?e=e.left:n!==e.right&&(n=zi(n,e.right),e.right=Qi(n,e.right)),e})),xi(qt,(function(e,t){if(!t.option("conditionals"))return e;if(e.condition instanceof kt){var n=e.condition.expressions.slice;return e.condition=n.pop,n.push(e),$i(e,n)}var i=e.condition.evaluate(t);if(i!==e.condition)return Oi(t.parent,t.self,i?e.consequent:e.alternative);var r=i.negate(t,Xn(t));tr(t,i,r)===r&&(e=d(qt,e,{condition:r,consequent:e.alternative,alternative:e.consequent}));var o,s=e.condition,a=e.consequent,u=e.alternative;if(s instanceof yn&&a instanceof yn&&s.definition===a.definition)return d(Mt,e,{operator:"||",left:s,right:u});if(a instanceof Nt&&u instanceof Nt&&a.operator===u.operator&&a.logical===u.logical&&a.left.equivalent_to(u.left)&&(!e.condition.has_side_effects(t)||"="==a.operator&&!a.left.has_side_effects(t)))return d(Nt,e,{operator:a.operator,left:a.left,logical:a.logical,right:d(qt,e,{condition:e.condition,consequent:a.right,alternative:u.right})});if(a instanceof xt&&u.TYPE===a.TYPE&&a.args.length>0&&a.args.length==u.args.length&&a.expression.equivalent_to(u.expression)&&!e.condition.has_side_effects(t)&&!a.expression.has_side_effects(t)&&"number"==typeof(o=function{for(var e=a.args,t=u.args,n=0,i=e.length;n<i;n++){if(e[n]instanceof Re)return;if(!e[n].equivalent_to(t[n])){if(t[n]instanceof Re)return;for(var r=n+1;r<i;r++){if(e[r]instanceof Re)return;if(!e[r].equivalent_to(t[r]))return}return n}}})){var c=a.clone;return c.args[o]=d(qt,e,{condition:e.condition,consequent:a.args[o],alternative:u.args[o]}),c}if(u instanceof qt&&a.equivalent_to(u.consequent))return d(qt,e,{condition:d(Mt,e,{operator:"||",left:s,right:u.condition}),consequent:a,alternative:u.alternative}).optimize(t);if(t.option("ecma")>=2020&&function(e,t,n){if(t.may_throw(n))return!1;let i;if(e instanceof Mt&&"=="===e.operator&&((i=wr(e.left)&&e.left)||(i=wr(e.right)&&e.right))&&(i===e.left?e.right:e.left).equivalent_to(t))return!0;if(e instanceof Mt&&"||"===e.operator){let n,i;const r=e=>{if(!(e instanceof Mt)||"==="!==e.operator&&"=="!==e.operator)return!1;let r,o=0;return e.left instanceof Tn&&(o++,n=e,r=e.right),e.right instanceof Tn&&(o++,n=e,r=e.left),Gi(e.left)&&(o++,i=e,r=e.right),Gi(e.right)&&(o++,i=e,r=e.left),1===o&&!!r.equivalent_to(t)};if(!r(e.left))return!1;if(!r(e.right))return!1;if(n&&i&&n!==i)return!0}return!1}(s,u,t))return d(Mt,e,{operator:"??",left:u,right:a}).optimize(t);if(u instanceof kt&&a.equivalent_to(u.expressions[u.expressions.length-1]))return $i(e,[d(Mt,e,{operator:"||",left:s,right:$i(e,u.expressions.slice(0,-1))}),a]).optimize(t);if(u instanceof Mt&&"&&"==u.operator&&a.equivalent_to(u.right))return d(Mt,e,{operator:"&&",left:d(Mt,e,{operator:"||",left:s,right:u.left}),right:a}).optimize(t);if(a instanceof qt&&a.alternative.equivalent_to(u))return d(qt,e,{condition:d(Mt,e,{left:e.condition,operator:"&&",right:a.condition}),consequent:a.consequent,alternative:u});if(a.equivalent_to(u))return $i(e,[e.condition,a]).optimize(t);if(a instanceof Mt&&"||"==a.operator&&a.right.equivalent_to(u))return d(Mt,e,{operator:"||",left:d(Mt,e,{operator:"&&",left:e.condition,right:a.left}),right:u}).optimize(t);var f=t.in_boolean_context;return p(e.consequent)?h(e.alternative)?l(e.condition):d(Mt,e,{operator:"||",left:l(e.condition),right:e.alternative}):h(e.consequent)?p(e.alternative)?l(e.condition.negate(t)):d(Mt,e,{operator:"&&",left:l(e.condition.negate(t)),right:e.alternative}):p(e.alternative)?d(Mt,e,{operator:"||",left:l(e.condition.negate(t)),right:e.consequent}):h(e.alternative)?d(Mt,e,{operator:"&&",left:l(e.condition),right:e.consequent}):e;function l(e){return e.is_boolean?e:d(zt,e,{operator:"!",expression:e.negate(t)})}function p(e){return e instanceof In||f&&e instanceof En&&e.getValue||e instanceof zt&&"!"==e.operator&&e.expression instanceof En&&!e.expression.getValue}function h(e){return e instanceof Nn||f&&e instanceof En&&!e.getValue||e instanceof zt&&"!"==e.operator&&e.expression instanceof En&&e.expression.getValue}})),xi(qn,(function(e,t){if(t.in_boolean_context)return d(Fn,e,{value:+e.value});var n=t.parent;return t.option("booleans_as_integers")?(n instanceof Mt&&("==="==n.operator||"!=="==n.operator)&&(n.operator=n.operator.replace(/=$/,"")),d(Fn,e,{value:+e.value})):t.option("booleans")?n instanceof Mt&&("=="==n.operator||"!="==n.operator)?d(Fn,e,{value:+e.value}):d(zt,e,{operator:"!",expression:d(Fn,e,{value:1-e.value})}):e})),Ft.DEFMETHOD("flatten_object",(function(e,t){if(t.option("properties")){var n=t.option("unsafe_arrows")&&t.option("ecma")>=2015,i=this.expression;if(i instanceof Pt)for(var r=i.properties,o=r.length;--o>=0;){var s=r[o];if(""+(s instanceof Wt?s.key.name:s.key)==e){if(!r.every((e=>e instanceof Rt||n&&e instanceof Wt&&!e.is_generator)))break;if(!Ar(s.value,t))break;return d(Bt,this,{expression:d(jt,i,{elements:r.map((function(e){var t=e.value;t instanceof Ue&&(t=d(Ve,t,t));var n=e.key;return n instanceof De&&!(n instanceof fn)?$i(e,[n,t]):t}))}),property:d(Fn,this,{value:o})})}}}})),xi(Bt,(function(e,t){var n,i=e.expression,r=e.property;if(t.option("properties")){var o=r.evaluate(t);if(o!==r){if("string"==typeof o)if("undefined"==o)o=void 0;else(w=parseFloat(o)).toString==o&&(o=w);r=e.property=Qi(r,zi(o,r).transform(t));var s=""+o;if(te(s)&&s.length<=r.size+1)return d(Ct,e,{expression:i,optional:e.optional,property:s,quote:r.quote}).optimize(t)}}e:if(t.option("arguments")&&i instanceof yn&&"arguments"==i.name&&1==i.definition.orig.length&&(n=i.scope)instanceof Le&&n.uses_arguments&&!(n instanceof Ye)&&r instanceof Fn){for(var a=r.getValue,u=new Set,c=n.argnames,f=0;f<c.length;f++){if(!(c[f]instanceof un))break e;var l=c[f].name;if(u.has(l))break e;u.add(l)}var p=n.argnames[a];if(p&&t.has_directive("use strict")){var h=p.definition;(!t.option("reduce_vars")||h.assignments||h.orig.length>1)&&(p=null)}else if(!p&&!t.option("keep_fargs")&&a<n.argnames.length+5)for(a>=n.argnames.length;)p=n.create_symbol(un,{source:n,scope:n,tentative_name:"argument_"+n.argnames.length}),n.argnames.push(p);if(p){var m=d(yn,e,p);return m.reference({}),wi(p,1),m}}if(Ki(e,t.parent))return e;if(o!==r){var _=e.flatten_object(s,t);_&&(i=e.expression=_.expression,r=e.property=_.property)}if(t.option("properties")&&t.option("side_effects")&&r instanceof Fn&&i instanceof jt){a=r.getValue;var v=i.elements,g=v[a];e:if(Ar(g,t)){for(var y=!0,D=[],b=v.length;--b>a;){(w=v[b].drop_side_effect_free(t))&&(D.unshift(w),y&&w.has_side_effects(t)&&(y=!1))}if(g instanceof Re)break e;for(g=g instanceof On?d(zn,g):g,y||D.unshift(g);--b>=0;){var w;if((w=v[b])instanceof Re)break e;(w=w.drop_side_effect_free(t))?D.unshift(w):a--}return y?(D.push(g),$i(e,D).optimize(t)):d(Bt,e,{expression:d(jt,i,{elements:D}),property:d(Fn,r,{value:a})})}}var A=e.evaluate(t);return A!==e?tr(t,A=zi(A,e).optimize(t),e):e.optional&&wr(e.expression)?d(zn,e):e})),xi(Tt,(function(e,t){return e.expression=e.expression.optimize(t),e})),Le.DEFMETHOD("contains_this",(function{return jn(this,(e=>e instanceof An?Hn:e!==this&&e instanceof Pe&&!(e instanceof Ye)||void 0))})),xi(Ct,(function(e,t){const n=t.parent;if(Ki(e,n))return e;if(t.option("unsafe_proto")&&e.expression instanceof Ct&&"prototype"==e.expression.property){var i=e.expression.expression;if(Hi(i))switch(i.name){case"Array":e.expression=d(jt,e.expression,{elements:[]});break;case"Function":e.expression=d(Ve,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=d(Fn,e.expression,{value:0});break;case"Object":e.expression=d(Pt,e.expression,{properties:[]});break;case"RegExp":e.expression=d(Sn,e.expression,{value:{source:"t",flags:""}});break;case"String":e.expression=d(kn,e.expression,{value:""})}}if(!(n instanceof xt&&E(n,Yn))){const n=e.flatten_object(e.property,t);if(n)return n.optimize(t)}let r=e.evaluate(t);return r!==e?(r=zi(r,e).optimize(t),tr(t,r,e)):e.optional&&wr(e.expression)?d(zn,e):e})),xi(jt,(function(e,t){var n=xr(e,t);return n!==e?n:(Er(e.elements),e)})),xi(Pt,(function(e,t){var n=xr(e,t);return n!==e?n:(function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n instanceof Re){const i=n.expression;i instanceof Pt&&i.properties.every((e=>e instanceof Rt))?(e.splice(t,1,...i.properties),t--):i instanceof En&&!(i instanceof kn)&&e.splice(t,1)}}}(e.properties),e)})),xi(Sn,xr),xi(et,(function(e,t){return e.value&&Gi(e.value,t)&&(e.value=null),e})),xi(Ye,fr),xi(Ve,(function(e,t){if(e=fr(e,t),t.option("unsafe_arrows")&&t.option("ecma")>=2015&&!e.name&&!e.is_generator&&!e.uses_arguments&&!e.pinned){if(!jn(e,(e=>{if(e instanceof An)return Hn})))return d(Ye,e,e).optimize(t)}return e})),xi(Gt,(function(e){return e})),xi(st,(function(e,t){return e.expression&&!e.is_star&&Gi(e.expression,t)&&(e.expression=null),e})),xi(Xe,(function(e,t){if(!t.option("evaluate")||t.parentinstanceof Ge)return e;for(var n=[],i=0;i<e.segments.length;i++){var r=e.segments[i];if(r instanceof De){var o=r.evaluate(t);if(o!==r&&(o+"").length<=r.size+"${}".length){n[n.length-1].value=n[n.length-1].value+o+e.segments[++i].value;continue}if(r instanceof Xe){var s=r.segments;n[n.length-1].value+=s[0].value;for(var a=1;a<s.length;a++)r=s[a],n.push(r);continue}}n.push(r)}if(e.segments=n,1==n.length)return d(kn,e,n[0]);if(3===n.length&&n[1]instanceof De&&(n[1].is_string(t)||n[1].is_number(t)||wr(n[1])||t.option("unsafe"))){if(""===n[2].value)return d(Mt,e,{operator:"+",left:d(kn,e,{value:n[0].value}),right:n[1]});if(""===n[0].value)return d(Mt,e,{operator:"+",left:n[1],right:d(kn,e,{value:n[2].value})})}return e})),xi(Ge,(function(e){return e})),xi(Ht,kr),xi(Wt,(function(e,t){if(kr(e,t),t.option("arrows")&&t.parentinstanceof Pt&&!e.is_generator&&!e.value.uses_arguments&&!e.value.pinned&&1==e.value.body.length&&e.value.body[0]instanceof et&&e.value.body[0].value&&!e.value.contains_this){var n=d(Ye,e.value,e.value);return n.async=e.async,n.is_generator=e.is_generator,d(Rt,e,{key:e.key instanceof fn?e.key.name:e.key,value:n,quote:e.quote})}return e})),xi(Rt,(function(e,t){kr(e,t);var n=t.option("unsafe_methods");if(n&&t.option("ecma")>=2015&&(!(n instanceof RegExp)||n.test(e.key+""))){var i=e.key,r=e.value;if((r instanceof Ye&&Array.isArray(r.body)&&!r.contains_this||r instanceof Ve)&&!r.name)return d(Wt,e,{async:r.async,is_generator:r.is_generator,key:i instanceof De?i:d(fn,e,{name:i}),value:d(Ue,r,r),quote:e.quote})}return e})),xi(Je,(function(e,t){if(1==t.option("pure_getters")&&t.option("unused")&&!e.is_array&&Array.isArray(e.names)&&!function(e){for(var t=[/^VarDef$/,/^(Const|Let|Var)$/,/^Export$/],n=0,i=0,r=t.length;n<r;i++){var o=e.parent(i);if(!o)return!1;if(0!==n||"Destructuring"!=o.TYPE){if(!t[n].test(o.TYPE))return!1;n++}}return!0}(t)&&!(e.names[e.names.length-1]instanceof Re)){for(var n=[],i=0;i<e.names.length;i++){var r=e.names[i];r instanceof Rt&&"string"==typeof r.key&&r.value instanceof nn&&!o(t,r.value.definition)||n.push(r)}n.length!=e.names.length&&(e.names=n)}return e;function o(e,t){return!!t.references.length||!!t.global&&(!e.toplevel.vars||!!e.top_retain&&e.top_retain(t))}}));function Fr(e,t){function n(e){m(t,e)}e.walk(new Rn((function(e){e instanceof Rt&&e.quote?n(e.key):e instanceof Ht&&e.quote?n(e.key.name):e instanceof Bt&&Cr(e.property,n)})))}function Cr(e,t){e.walk(new Rn((function(e){return e instanceof kt?Cr(e.tail_node,t):e instanceof kn?t(e.value):e instanceof qt&&(Cr(e.consequent,t),Cr(e.alternative,t)),!0})))}var Sr="undefined"==typeof atob?function(e){return Buffer.from(e,"base64").toString}:atob,Br="undefined"==typeof btoa?function(e){return Buffer.from(e).toString("base64")}:btoa;function Tr(e,t,n){t[e]&&n.forEach((function(n){t[n]&&("object"!=typeof t[n]&&(t[n]={}),e in t[n]||(t[n][e]=t[e]))}))}function $r(e){e&&("props"in e?e.props instanceof Map||(e.props=function(e){var t=new Map;for(var n in e)b(e,n)&&"$"===n.charAt(0)&&t.set(n.substr(1),e[n]);return t}(e.props)):e.props=new Map)}function zr(e){return{props:(t=e.props,n=Object.create(null),t.forEach((function(e,t){n["$"+t]=e})),n)};var t,n}async function Or(e,t){var n,r,o,s,u=(t=a(t,{compress:{},ecma:void 0,enclose:!1,ie8:!1,keep_classnames:void 0,keep_fnames:!1,mangle:{},module:!1,nameCache:null,output:null,format:null,parse:{},rename:void 0,safari10:!1,sourceMap:!1,timings:!1,toplevel:!1,warnings:!1,wrap:!1},!0)).timings&&{start:Date.now};if(void 0===t.keep_classnames&&(t.keep_classnames=t.keep_fnames),void 0===t.rename&&(t.rename=t.compress&&t.mangle),t.output&&t.format)throw new Error("Please only specify either output or format option, preferrably format.");if(t.format=t.format||t.output||{},Tr("ecma",t,["parse","compress","format"]),Tr("ie8",t,["compress","mangle","format"]),Tr("keep_classnames",t,["compress","mangle"]),Tr("keep_fnames",t,["compress","mangle"]),Tr("module",t,["parse","compress","mangle"]),Tr("safari10",t,["mangle","format"]),Tr("toplevel",t,["compress","mangle"]),Tr("warnings",t,["compress"]),t.mangle&&(t.mangle=a(t.mangle,{cache:t.nameCache&&(t.nameCache.vars||{}),eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,properties:!1,reserved:[],safari10:!1,toplevel:!1},!0),t.mangle.properties&&("object"!=typeof t.mangle.properties&&(t.mangle.properties={}),t.mangle.properties.keep_quoted&&(n=t.mangle.properties.reserved,Array.isArray(n)||(n=[]),t.mangle.properties.reserved=n),t.nameCache&&!("cache"in t.mangle.properties)&&(t.mangle.properties.cache=t.nameCache.props||{})),$r(t.mangle.cache),$r(t.mangle.properties.cache)),t.sourceMap&&(t.sourceMap=a(t.sourceMap,{asObject:!1,content:null,filename:null,includeSources:!1,root:null,url:null},!0)),u&&(u.parse=Date.now),e instanceof He)r=e;else{for(var c in"string"==typeof e&&(e=[e]),t.parse=t.parse||{},t.parse.toplevel=null,e)if(b(e,c)&&(t.parse.filename=c,t.parse.toplevel=me(e[c],t.parse),t.sourceMap&&"inline"==t.sourceMap.content)){if(Object.keys(e).length>1)throw new Error("inline source map only works with singular input");t.sourceMap.content=(o=e[c],s=void 0,(s=/(?:^|[^.])\/\/# sourceMappingURL=data:application\/json([\w=-]*)?;base64,([+/0-9A-Za-z]*=*)\s*$/.exec(o))?Sr(s[2]):(console.warn("inline source map not found"),null))}r=t.parse.toplevel}n&&"strict"!==t.mangle.properties.keep_quoted&&Fr(r,n),t.wrap&&(r=r.wrap_commonjs(t.wrap)),t.enclose&&(r=r.wrap_enclose(t.enclose)),u&&(u.rename=Date.now),u&&(u.compress=Date.now),t.compress&&(r=new Ai(t.compress,{mangle_options:t.mangle}).compress(r)),u&&(u.scope=Date.now),t.mangle&&r.figure_out_scope(t.mangle),u&&(u.mangle=Date.now),t.mangle&&(fi.reset,r.compute_char_frequency(t.mangle),r.mangle_names(t.mangle)),u&&(u.properties=Date.now),t.mangle&&t.mangle.properties&&(r=mangle_properties(r,t.mangle.properties)),u&&(u.format=Date.now);var f={};if(t.format.ast&&(f.ast=r),!b(t.format,"code")||t.format.code){if(t.sourceMap&&(t.format.source_map=await async function(e){var t;e=a(e,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var n=new i.default.SourceMapGenerator({file:e.file,sourceRoot:e.root});return e.orig&&(t=await new i.default.SourceMapConsumer(e.orig)).sources.forEach((function(e){var i=t.sourceContentFor(e,!0);i&&n.setSourceContent(e,i)})),{add:function(i,r,o,s,a,u){if(t){var c=t.originalPositionFor({line:s,column:a});if(null===c.source)return;i=c.source,s=c.line,a=c.column,u=c.name||u}n.addMapping({generated:{line:r+e.dest_line_diff,column:o},original:{line:s+e.orig_line_diff,column:a},source:i,name:u})},get:function{return n},toString:function{return n.toString},destroy:function{t&&t.destroy&&t.destroy}}}({file:t.sourceMap.filename,orig:t.sourceMap.content,root:t.sourceMap.root}),t.sourceMap.includeSources)){if(e instanceof He)throw new Error("original source content unavailable");for(var c in e)b(e,c)&&t.format.source_map.get.setSourceContent(c,e[c])}delete t.format.ast,delete t.format.code;var l=ti(t.format);if(r.print(l),f.code=l.get,t.sourceMap)if(t.sourceMap.asObject?f.map=t.format.source_map.get.toJSON:f.map=t.format.source_map.toString,"inline"==t.sourceMap.url){var p="object"==typeof f.map?JSON.stringify(f.map):f.map;f.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+Br(p)}else t.sourceMap.url&&(f.code+="\n//# sourceMappingURL="+t.sourceMap.url)}return t.nameCache&&t.mangle&&(t.mangle.cache&&(t.nameCache.vars=zr(t.mangle.cache)),t.mangle.properties&&t.mangle.properties.cache&&(t.nameCache.props=zr(t.mangle.properties.cache))),t.format&&t.format.source_map&&t.format.source_map.destroy,u&&(u.end=Date.now,f.timings={parse:.001*(u.rename-u.parse),rename:.001*(u.compress-u.rename),compress:.001*(u.scope-u.compress),scope:.001*(u.mangle-u.scope),mangle:.001*(u.properties-u.mangle),properties:.001*(u.format-u.properties),format:.001*(u.end-u.format),total:.001*(u.end-u.start)}),f}async function Mr{const e={};return Object.keys(qr({0:0})).forEach((t=>{const n=qr({[t]:{0:0}});n&&(e[t]=n)})),e}async function qr(e){try{await Or("",e)}catch(e){return e.defs}}e._default_options=Mr,e._run_cli=async function({program:e,packageJson:t,fs:n,path:i}){const r=new Set(["cname","parent_scope","scope","uses_eval","uses_with"]);var o={},s={compress:!1,mangle:!1};const a=await Mr;if(e.version(t.name+" "+t.version),e.parseArgv=e.parse,e.parse=void 0,process.argv.includes("ast")?e.helpInformation=function{var e=ti({beautify:!0});return function t(n){e.print("AST_"+n.TYPE);const i=n.SELF_PROPS.filter((e=>!/^\$/.test(e)));i.length>0&&(e.space,e.with_parens((function{i.forEach((function(t,n){n&&e.space,e.print(t)}))})));n.documentation&&(e.space,e.print_string(n.documentation));n.SUBCLASSES.length>0&&(e.space,e.with_block((function{n.SUBCLASSES.forEach((function(n){e.indent,t(n),e.newline}))})))}(De),e+"\n"}:process.argv.includes("options")&&(e.helpInformation=function{var e=[];for(var t in a)e.push("--"+("sourceMap"===t?"source-map":t)+" options:"),e.push(v(a[t])),e.push("");return e.join("\n")}),e.option("-p, --parse ","Specify parser options.",m),e.option("-c, --compress [options]","Enable compressor/specify compressor options.",m),e.option("-m, --mangle [options]","Mangle names/specify mangler options.",m),e.option("--mangle-props [options]","Mangle properties/specify mangler options.",m),e.option("-f, --format [options]","Format options.",m),e.option("-b, --beautify [options]","Alias for --format.",m),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.",m("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.",m),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),e.configFile&&(s=JSON.parse(d(e.configFile))),!e.output&&e.sourceMap&&"inline"!=e.sourceMap.url&&h("ERROR: cannot write source map to STDOUT"),["compress","enclose","ie8","mangle","module","safari10","sourceMap","toplevel","wrap"].forEach((function(t){t in e&&(s[t]=e[t])})),"ecma"in e){e.ecma!=(0|e.ecma)&&h("ERROR: ecma must be an integer");const t=0|e.ecma;s.ecma=t>5&&t<2015?t+2009:t}if(e.format||e.beautify){const t=e.format||e.beautify;s.format="object"==typeof t?t:{}}if(e.comments&&("object"!=typeof s.format&&(s.format={}),s.format.comments="string"==typeof e.comments?"false"!=e.comments&&e.comments:"some"),e.define)for(var u in"object"!=typeof s.compress&&(s.compress={}),"object"!=typeof s.compress.global_defs&&(s.compress.global_defs={}),e.define)s.compress.global_defs[u]=e.define[u];e.keepClassnames&&(s.keep_classnames=!0),e.keepFnames&&(s.keep_fnames=!0),e.mangleProps&&(e.mangleProps.domprops?delete e.mangleProps.domprops:("object"!=typeof e.mangleProps&&(e.mangleProps={}),Array.isArray(e.mangleProps.reserved)||(e.mangleProps.reserved=[])),"object"!=typeof s.mangle&&(s.mangle={}),s.mangle.properties=e.mangleProps),e.nameCache&&(s.nameCache=JSON.parse(d(e.nameCache,"{}"))),"ast"==e.output&&(s.format={ast:!0,code:!1}),e.parse&&(e.parse.acorn||e.parse.spidermonkey?e.sourceMap&&"inline"==e.sourceMap.content&&h("ERROR: inline source map only works with built-in parser"):s.parse=e.parse),~e.rawArgs.indexOf("--rename")?s.rename=!0:e.rename||(s.rename=!1);let c=e=>e;var f;let l;function p(e){return De.from_mozilla_ast(Object.keys(o).reduce(e,null))}function h(e){e instanceof Error&&(e=e.stack.replace(/^\S*?Error:/,"ERROR:")),g(e),process.exit(1)}function d(e,t){try{return n.readFileSync(e,"utf8")}catch(e){if(("ENOENT"==e.code||"ENAMETOOLONG"==e.code)&&null!=t)return t;h(e)}}function m(e){return function(t,n){n=n||{};try{jn(me(t,{expression:!0}),(t=>{if(t instanceof Nt){var i=t.left.print_to_string,r=t.right;return e?n[i]=r:r instanceof jt?n[i]=r.elements.map(o):r instanceof Sn?(r=r.value,n[i]=new RegExp(r.source,r.flags)):n[i]=o(r),!0}if(t instanceof en||t instanceof Ft){i=t.print_to_string;return n[i]=!0,!0}if(!(t instanceof kt))throw t;function o(e){return e instanceof En?e.getValue:e.print_to_string({quote_keys:!0})}}))}catch(i){e?h("Error parsing arguments for '"+e+"': "+t):n[t]=null}return n}}function _(e){var t=1e6+e.id+" "+e.name;return e.mangled_name&&(t+=" "+e.mangled_name),t}function v(e){var t=[],n="";return Object.keys(e).map((function(t){return n.length<t.length&&(n=Array(t.length+1).join(" ")),[t,JSON.stringify(e[t])]})).forEach((function(e){t.push(" "+e[0]+n.slice(e[0].length-2)+e[1])})),t.join("\n")}function g(e){process.stderr.write(e),process.stderr.write("\n")}"object"==typeof e.sourceMap&&"base"in e.sourceMap&&(f=e.sourceMap.base,delete s.sourceMap.base,c=function(e){return i.relative(f,e)}),s.files&&s.files.length?(l=s.files,delete s.files):e.args.length&&(l=e.args),l?function e(t){if(Array.isArray(t))return[].concat.apply([],t.map(e));if(t&&t.match(/[*?]/)){var r=i.dirname(t);try{var o=n.readdirSync(r)}catch(e){}if(o){var s="^"+i.basename(t).replace(/[.+^$[\]\\{}]/g,"\\$&").replace(/\*/g,"[^/\\\\]*").replace(/\?/g,"[^/\\\\]")+"$",a="win32"===process.platform?"i":"",u=new RegExp(s,a),c=o.filter((function(e){return u.test(e)})).map((function(e){return i.join(r,e)}));if(c.length)return c}}return[t]}(l).forEach((function(e){o[c(e)]=d(e)})):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 async function{var t=e.sourceMap&&e.sourceMap.content;t&&"inline"!==t&&(s.sourceMap.content=d(t,t));e.timings&&(s.timings=!0);try{e.parse&&(e.parse.acorn?o=p((function(t,n){return require("acorn").parse(o[n],{ecmaVersion:2018,locations:!0,program:t,sourceFile:n,sourceType:s.module||e.parse.module?"module":"script"})})):e.parse.spidermonkey&&(o=p((function(e,t){var n=JSON.parse(o[t]);return e?(e.body=e.body.concat(n.body),e):n}))))}catch(e){h(e)}let i;try{i=await Or(o,s)}catch(e){if("SyntaxError"==e.name){g("Parse error at "+e.filename+":"+e.line+","+e.col);var a=e.col,u=o[e.filename].split(/\r?\n/),c=u[e.line-1];if(c||a||(c=u[e.line-2],a=c.length),c){a>70&&(c=c.slice(a-70),a=70),g(c.slice(0,80)),g(c.slice(0,a).replace(/\S/g," ")+"^")}}return e.defs&&(g("Supported options:"),g(v(e.defs))),void h(e)}if("ast"==e.output)s.compress||s.mangle||i.ast.figure_out_scope({}),console.log(JSON.stringify(i.ast,(function(e,t){if(t)switch(e){case"thedef":return _(t);case"enclosed":return t.length?t.map(_):void 0;case"variables":case"functions":case"globals":return t.size?function(e,t){var n=[];return e.forEach((function(e){n.push(t(e))})),n}(t,_):void 0}if(!r.has(e)&&!(t instanceof ye||t instanceof Map)){if(t instanceof De){var n={_class:"AST_"+t.TYPE};return 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]})),n}return t}}),2));else if("spidermonkey"==e.output)try{const e=await Or(i.code,{compress:!1,mangle:!1,format:{ast:!0,code:!1}});console.log(JSON.stringify(e.ast.to_mozilla_ast,null,2))}catch(e){return void h(e)}else e.output?(n.writeFileSync(e.output,i.code),s.sourceMap&&"inline"!==s.sourceMap.url&&i.map&&n.writeFileSync(e.output+".map",i.map)):console.log(i.code);e.nameCache&&n.writeFileSync(e.nameCache,JSON.stringify(s.nameCache));if(i.timings)for(var f in i.timings)g("- "+f+": "+i.timings[f].toFixed(3)+"s")}},e.minify=Or})); var minify = window.Terser.minify; window.mw.minify = function(code, options) { return minify(code, options); }; delete window.Terser;