rollup 1.16.4 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -1
- package/bin/rollup +11 -12
- package/dist/rollup.browser.es.js +3 -3
- package/dist/rollup.browser.js +3 -3
- package/dist/rollup.d.ts +31 -8
- package/dist/rollup.es.js +141 -101
- package/dist/rollup.js +141 -101
- package/package.json +16 -15
package/dist/rollup.browser.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v1.
|
|
4
|
-
|
|
3
|
+
Rollup.js v1.17.0
|
|
4
|
+
Mon, 15 Jul 2019 04:31:04 GMT - commit 5d1541a577b06d9004a3533bde672761e5798482
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
8
8
|
|
|
9
9
|
Released under the MIT License.
|
|
10
10
|
*/
|
|
11
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).rollup={})}(this,function(e){"use strict";var t="1.16.4",n=r;function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e){return 1===e.length?"0"+e:e}function a(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}r.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var h={inherits:function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}),toArray:function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),s=0;s<e.length;s+=2)n.push(parseInt(e[s]+e[s+1],16))}else for(var r=0,s=0;s<e.length;s++){var o=e.charCodeAt(s);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):i(e,s)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++s)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(s=0;s<e.length;s++)n[s]=0|e[s];return n},toHex:function(e){for(var t="",n=0;n<e.length;n++)t+=o(e[n].toString(16));return t},htonl:s,toHex32:function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=a(i.toString(16))}return n},zero2:o,zero8:a,join32:function(e,t,r,i){var s=r-t;n(s%4==0);for(var o=new Array(s/4),a=0,h=t;a<o.length;a++,h+=4){var u;u="big"===i?e[h]<<24|e[h+1]<<16|e[h+2]<<8|e[h+3]:e[h+3]<<24|e[h+2]<<16|e[h+1]<<8|e[h],o[a]=u>>>0}return o},split32:function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var s=e[r];"big"===t?(n[i]=s>>>24,n[i+1]=s>>>16&255,n[i+2]=s>>>8&255,n[i+3]=255&s):(n[i+3]=s>>>24,n[i+2]=s>>>16&255,n[i+1]=s>>>8&255,n[i]=255&s)}return n},rotr32:function(e,t){return e>>>t|e<<32-t},rotl32:function(e,t){return e<<t|e>>>32-t},sum32:function(e,t){return e+t>>>0},sum32_3:function(e,t,n){return e+t+n>>>0},sum32_4:function(e,t,n,r){return e+t+n+r>>>0},sum32_5:function(e,t,n,r,i){return e+t+n+r+i>>>0},sum64:function(e,t,n,r){var i=e[t],s=r+e[t+1]>>>0,o=(s<r?1:0)+n+i;e[t]=o>>>0,e[t+1]=s},sum64_hi:function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},sum64_lo:function(e,t,n,r){return t+r>>>0},sum64_4_hi:function(e,t,n,r,i,s,o,a){var h=0,u=t;return h+=(u=u+r>>>0)<t?1:0,h+=(u=u+s>>>0)<s?1:0,e+n+i+o+(h+=(u=u+a>>>0)<a?1:0)>>>0},sum64_4_lo:function(e,t,n,r,i,s,o,a){return t+r+s+a>>>0},sum64_5_hi:function(e,t,n,r,i,s,o,a,h,u){var c=0,l=t;return c+=(l=l+r>>>0)<t?1:0,c+=(l=l+s>>>0)<s?1:0,c+=(l=l+a>>>0)<a?1:0,e+n+i+o+h+(c+=(l=l+u>>>0)<u?1:0)>>>0},sum64_5_lo:function(e,t,n,r,i,s,o,a,h,u){return t+r+s+a+u>>>0},rotr64_hi:function(e,t,n){return(t<<32-n|e>>>n)>>>0},rotr64_lo:function(e,t,n){return(e<<32-n|t>>>n)>>>0},shr64_hi:function(e,t,n){return e>>>n},shr64_lo:function(e,t,n){return(e<<32-n|t>>>n)>>>0}};function u(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var c=u;u.prototype.update=function(e,t){if(e=h.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=h.join32(e,0,e.length-n,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},u.prototype.digest=function(e){return this.update(this._pad()),n(null===this.pending),this._digest(e)},u.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var s=8;s<this.padLength;s++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,s=8;s<this.padLength;s++)r[i++]=0;return r};var l={BlockHash:c},p=h.rotr32;function d(e,t,n){return e&t^~e&n}function f(e,t,n){return e&t^e&n^t&n}function m(e,t,n){return e^t^n}var g={ft_1:function(e,t,n,r){return 0===e?d(t,n,r):1===e||3===e?m(t,n,r):2===e?f(t,n,r):void 0},ch32:d,maj32:f,p32:m,s0_256:function(e){return p(e,2)^p(e,13)^p(e,22)},s1_256:function(e){return p(e,6)^p(e,11)^p(e,25)},g0_256:function(e){return p(e,7)^p(e,18)^e>>>3},g1_256:function(e){return p(e,17)^p(e,19)^e>>>10}},y=h.sum32,x=h.sum32_4,v=h.sum32_5,E=g.ch32,_=g.maj32,b=g.s0_256,A=g.s1_256,S=g.g0_256,w=g.g1_256,I=l.BlockHash,P=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function C(){if(!(this instanceof C))return new C;I.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=P,this.W=new Array(64)}h.inherits(C,I);var k=C;C.blockSize=512,C.outSize=256,C.hmacStrength=192,C.padLength=64,C.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=x(w(r[i-2]),r[i-7],S(r[i-15]),r[i-16]);var s=this.h[0],o=this.h[1],a=this.h[2],h=this.h[3],u=this.h[4],c=this.h[5],l=this.h[6],p=this.h[7];for(n(this.k.length===r.length),i=0;i<r.length;i++){var d=v(p,A(u),E(u,c,l),this.k[i],r[i]),f=y(b(s),_(s,o,a));p=l,l=c,c=u,u=y(h,d),h=a,a=o,o=s,s=y(d,f)}this.h[0]=y(this.h[0],s),this.h[1]=y(this.h[1],o),this.h[2]=y(this.h[2],a),this.h[3]=y(this.h[3],h),this.h[4]=y(this.h[4],u),this.h[5]=y(this.h[5],c),this.h[6]=y(this.h[6],l),this.h[7]=y(this.h[7],p)},C.prototype._digest=function(e){return"hex"===e?h.toHex32(this.h,"big"):h.split32(this.h,"big")};for(var $={},N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",R=0;R<N.length;R++)$[N.charCodeAt(R)]=R;function O(e){for(var t=0,n=0,r=0,i=0,s=0,o=[],a=[],h=[],u=0,c=0,l=0,p=0,d=e.length;u<d;u++){var f=e.charCodeAt(u);if(44===f)h.length&&a.push(new Int32Array(h)),h=[],c=0;else if(59===f)h.length&&a.push(new Int32Array(h)),h=[],c=0,o.push(a),a=[],t=0;else{var m=$[f];if(void 0===m)throw new Error("Invalid character ("+String.fromCharCode(f)+")");var g=32&m;if(p+=(m&=31)<<l,g)l+=5;else{var y=1&p;p>>=1;var x=y?-p:p;0==c?(t+=x,h.push(t)):1===c?(n+=x,h.push(n)):2===c?(r+=x,h.push(r)):3===c?(i+=x,h.push(i)):4===c&&(s+=x,h.push(s)),c++,p=l=0}}}return h.length&&a.push(new Int32Array(h)),o.push(a),o}function M(e){var t="";e=e<0?-e<<1|1:e<<1;do{var n=31&e;(e>>=5)>0&&(n|=32),t+=N[n]}while(e>0);return t}var D=function(e,t,n){this.start=e,this.end=t,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};D.prototype.appendLeft=function(e){this.outro+=e},D.prototype.appendRight=function(e){this.intro=this.intro+e},D.prototype.clone=function(){var e=new D(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},D.prototype.contains=function(e){return this.start<e&&e<this.end},D.prototype.eachNext=function(e){for(var t=this;t;)e(t),t=t.next},D.prototype.eachPrevious=function(e){for(var t=this;t;)e(t),t=t.previous},D.prototype.edit=function(e,t,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this},D.prototype.prependLeft=function(e){this.outro=e+this.outro},D.prototype.prependRight=function(e){this.intro=e+this.intro},D.prototype.split=function(e){var t=e-this.start,n=this.original.slice(0,t),r=this.original.slice(t);this.original=n;var i=new D(e,this.end,r);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i},D.prototype.toString=function(){return this.intro+this.content+this.outro},D.prototype.trimEnd=function(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&this.split(this.start+t.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)},D.prototype.trimStart=function(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.end-t.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)};var T=function(){throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?T=function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"function"==typeof Buffer&&(T=function(e){return Buffer.from(e,"utf-8").toString("base64")});var L=function(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=function(e){for(var t=0,n=0,r=0,i=0,s="",o=0;o<e.length;o++){var a=e[o];if(o>0&&(s+=";"),0!==a.length){for(var h=0,u=[],c=0,l=a;c<l.length;c++){var p=l[c],d=M(p[0]-h);h=p[0],p.length>1&&(d+=M(p[1]-t)+M(p[2]-n)+M(p[3]-r),t=p[1],n=p[2],r=p[3]),5===p.length&&(d+=M(p[4]-i),i=p[4]),u.push(d)}s+=u.join(",")}}return s}(e.mappings)};function V(e){var t=e.split("\n"),n=t.filter(function(e){return/^\t+/.test(e)}),r=t.filter(function(e){return/^ {2,}/.test(e)});if(0===n.length&&0===r.length)return null;if(n.length>=r.length)return"\t";var i=r.reduce(function(e,t){var n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return new Array(i+1).join(" ")}function B(e,t){var n=e.split(/[\/\\]/),r=t.split(/[\/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length)for(var i=n.length;i--;)n[i]="..";return n.concat(r).join("/")}L.prototype.toString=function(){return JSON.stringify(this)},L.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+T(this.toString())};var z=Object.prototype.toString;function j(e){return"[object Object]"===z.call(e)}function W(e){for(var t=e.split("\n"),n=[],r=0,i=0;r<t.length;r++)n.push(i),i+=t[r].length+1;return function(e){for(var t=0,r=n.length;t<r;){var i=t+r>>1;e<n[i]?r=i:t=i+1}var s=t-1;return{line:s,column:e-n[s]}}}var U=function(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};U.prototype.addEdit=function(e,t,n,r){if(t.length){var i=[this.generatedCodeColumn,e,n.line,n.column];r>=0&&i.push(r),this.rawSegments.push(i)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null},U.prototype.addUneditedChunk=function(e,t,n,r,i){for(var s=t.start,o=!0;s<t.end;)(this.hires||o||i[s])&&this.rawSegments.push([this.generatedCodeColumn,e,r.line,r.column]),"\n"===n[s]?(r.line+=1,r.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0):(r.column+=1,this.generatedCodeColumn+=1),s+=1,o=!1;this.pending=[this.generatedCodeColumn,e,r.line,r.column]},U.prototype.advance=function(e){if(e){var t=e.split("\n");if(t.length>1){for(var n=0;n<t.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}};var F="\n",q={insertLeft:!1,insertRight:!1,storeName:!1},G=function(e,t){void 0===t&&(t={});var n=new D(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:{}},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:V(e)}}),this.byStart[0]=n,this.byEnd[e.length]=n};G.prototype.addSourcemapLocation=function(e){this.sourcemapLocations[e]=!0},G.prototype.append=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this},G.prototype.appendLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.appendLeft(t):this.intro+=t,this},G.prototype.appendRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.appendRight(t):this.outro+=t,this},G.prototype.clone=function(){for(var e=new G(this.original,{filename:this.filename}),t=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=t.clone();t;){e.byStart[n.start]=n,e.byEnd[n.end]=n;var r=t.next,i=r&&r.clone();i&&(n.next=i,i.previous=n,n=i),t=r}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),Object.keys(this.sourcemapLocations).forEach(function(t){e.sourcemapLocations[t]=!0}),e},G.prototype.generateDecodedMap=function(e){var t=this;e=e||{};var n=Object.keys(this.storedNames),r=new U(e.hires),i=W(this.original);return this.intro&&r.advance(this.intro),this.firstChunk.eachNext(function(e){var s=i(e.start);e.intro.length&&r.advance(e.intro),e.edited?r.addEdit(0,e.content,s,e.storeName?n.indexOf(e.original):-1):r.addUneditedChunk(0,e,t.original,s,t.sourcemapLocations),e.outro.length&&r.advance(e.outro)}),{file:e.file?e.file.split(/[\/\\]/).pop():null,sources:[e.source?B(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:n,mappings:r.raw}},G.prototype.generateMap=function(e){return new L(this.generateDecodedMap(e))},G.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},G.prototype.indent=function(e,t){var n=/^[^\r\n]/gm;if(j(e)&&(t=e,e=void 0),""===(e=void 0!==e?e:this.indentStr||"\t"))return this;var r={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach(function(e){for(var t=e[0];t<e[1];t+=1)r[t]=!0});var i=!1!==t.indentStart,s=function(t){return i?""+e+t:(i=!0,t)};this.intro=this.intro.replace(n,s);for(var o=0,a=this.firstChunk;a;){var h=a.end;if(a.edited)r[o]||(a.content=a.content.replace(n,s),a.content.length&&(i="\n"===a.content[a.content.length-1]));else for(o=a.start;o<h;){if(!r[o]){var u=this.original[o];"\n"===u?i=!0:"\r"!==u&&i&&(i=!1,o===a.start?a.prependRight(e):(this._splitChunk(a,o),(a=a.next).prependRight(e)))}o+=1}o=a.end,a=a.next}return this.outro=this.outro.replace(n,s),this},G.prototype.insert=function(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},G.prototype.insertLeft=function(e,t){return q.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),q.insertLeft=!0),this.appendLeft(e,t)},G.prototype.insertRight=function(e,t){return q.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),q.insertRight=!0),this.prependRight(e,t)},G.prototype.move=function(e,t,n){if(n>=e&&n<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(n);var r=this.byStart[e],i=this.byEnd[t],s=r.previous,o=i.next,a=this.byStart[n];if(!a&&i===this.lastChunk)return this;var h=a?a.previous:this.lastChunk;return s&&(s.next=o),o&&(o.previous=s),h&&(h.next=r),a&&(a.previous=i),r.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=h,i.next=a||null,h||(this.firstChunk=r),a||(this.lastChunk=i),this},G.prototype.overwrite=function(e,t,n,r){if("string"!=typeof n)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===r&&(q.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),q.storeName=!0),r={storeName:!0});var i=void 0!==r&&r.storeName,s=void 0!==r&&r.contentOnly;if(i){var o=this.original.slice(e,t);this.storedNames[o]=!0}var a=this.byStart[e],h=this.byEnd[t];if(a){if(t>a.end&&a.next!==this.byStart[a.end])throw new Error("Cannot overwrite across a split point");if(a.edit(n,i,s),a!==h){for(var u=a.next;u!==h;)u.edit("",!1),u=u.next;u.edit("",!1)}}else{var c=new D(e,t,"").edit(n,i);h.next=c,c.previous=h}return this},G.prototype.prepend=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},G.prototype.prependLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.prependLeft(t):this.intro=t+this.intro,this},G.prototype.prependRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.prependRight(t):this.outro=t+this.outro,this},G.prototype.remove=function(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var n=this.byStart[e];n;)n.intro="",n.outro="",n.edit(""),n=t>n.end?this.byStart[n.end]:null;return this},G.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""},G.prototype.lastLine=function(){var e=this.outro.lastIndexOf(F);if(-1!==e)return this.outro.substr(e+1);var t=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(-1!==(e=n.outro.lastIndexOf(F)))return n.outro.substr(e+1)+t;t=n.outro+t}if(n.content.length>0){if(-1!==(e=n.content.lastIndexOf(F)))return n.content.substr(e+1)+t;t=n.content+t}if(n.intro.length>0){if(-1!==(e=n.intro.lastIndexOf(F)))return n.intro.substr(e+1)+t;t=n.intro+t}}while(n=n.previous);return-1!==(e=this.intro.lastIndexOf(F))?this.intro.substr(e+1)+t:this.intro+t},G.prototype.slice=function(e,t){for(void 0===e&&(e=0),void 0===t&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var n="",r=this.firstChunk;r&&(r.start>e||r.end<=e);){if(r.start<t&&r.end>=t)return n;r=r.next}if(r&&r.edited&&r.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var i=r;r;){!r.intro||i===r&&r.start!==e||(n+=r.intro);var s=r.start<t&&r.end>=t;if(s&&r.edited&&r.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var o=i===r?e-r.start:0,a=s?r.content.length+t-r.end:r.content.length;if(n+=r.content.slice(o,a),!r.outro||s&&r.end!==t||(n+=r.outro),s)break;r=r.next}return n},G.prototype.snip=function(e,t){var n=this.clone();return n.remove(0,e),n.remove(t,n.original.length),n},G.prototype._split=function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var t=this.lastSearchedChunk,n=e>t.end;t;){if(t.contains(e))return this._splitChunk(t,e);t=n?this.byStart[t.end]:this.byEnd[t.start]}},G.prototype._splitChunk=function(e,t){if(e.edited&&e.content.length){var n=W(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+n.line+":"+n.column+' – "'+e.original+'")')}var r=e.split(t);return this.byEnd[t]=e,this.byStart[t]=r,this.byEnd[r.end]=r,e===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=e,!0},G.prototype.toString=function(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro},G.prototype.isEmpty=function(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0},G.prototype.length=function(){var e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t},G.prototype.trimLines=function(){return this.trim("[\\r\\n]")},G.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},G.prototype.trimEndAborted=function(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var n=this.lastChunk;do{var r=n.end,i=n.trimEnd(t);if(n.end!==r&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.previous}while(n);return!1},G.prototype.trimEnd=function(e){return this.trimEndAborted(e),this},G.prototype.trimStartAborted=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var n=this.firstChunk;do{var r=n.end,i=n.trimStart(t);if(n.end!==r&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.next}while(n);return!1},G.prototype.trimStart=function(e){return this.trimStartAborted(e),this};var H=Object.prototype.hasOwnProperty,K=function(e){void 0===e&&(e={}),this.intro=e.intro||"",this.separator=void 0!==e.separator?e.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};function Y(e,t){const n=e.split(/[\/\\]/).filter(Boolean),r=t.split(/[\/\\]/).filter(Boolean);for("."===n[0]&&n.shift(),"."===r[0]&&r.shift();n[0]&&r[0]&&n[0]===r[0];)n.shift(),r.shift();for(;".."===r[0]&&n.length>0;)r.shift(),n.pop();for(;n.pop();)r.unshift("..");return r.join("/")}K.prototype.addSource=function(e){if(e instanceof G)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!j(e)||!e.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach(function(t){H.call(e,t)||(e[t]=e.content[t])}),void 0===e.separator&&(e.separator=this.separator),e.filename)if(H.call(this.uniqueSourceIndexByFilename,e.filename)){var t=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==t.content)throw new Error("Illegal source: same filename ("+e.filename+"), different contents")}else this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:e.filename,content:e.content.original});return this.sources.push(e),this},K.prototype.append=function(e,t){return this.addSource({content:new G(e),separator:t&&t.separator||""}),this},K.prototype.clone=function(){var e=new K({intro:this.intro,separator:this.separator});return this.sources.forEach(function(t){e.addSource({filename:t.filename,content:t.content.clone(),separator:t.separator})}),e},K.prototype.generateDecodedMap=function(e){var t=this;void 0===e&&(e={});var n=[];this.sources.forEach(function(e){Object.keys(e.content.storedNames).forEach(function(e){~n.indexOf(e)||n.push(e)})});var r=new U(e.hires);return this.intro&&r.advance(this.intro),this.sources.forEach(function(e,i){i>0&&r.advance(t.separator);var s=e.filename?t.uniqueSourceIndexByFilename[e.filename]:-1,o=e.content,a=W(o.original);o.intro&&r.advance(o.intro),o.firstChunk.eachNext(function(t){var i=a(t.start);t.intro.length&&r.advance(t.intro),e.filename?t.edited?r.addEdit(s,t.content,i,t.storeName?n.indexOf(t.original):-1):r.addUneditedChunk(s,t,o.original,i,o.sourcemapLocations):r.advance(t.content),t.outro.length&&r.advance(t.outro)}),o.outro&&r.advance(o.outro)}),{file:e.file?e.file.split(/[\/\\]/).pop():null,sources:this.uniqueSources.map(function(t){return e.file?B(e.file,t.filename):t.filename}),sourcesContent:this.uniqueSources.map(function(t){return e.includeContent?t.content:null}),names:n,mappings:r.raw}},K.prototype.generateMap=function(e){return new L(this.generateDecodedMap(e))},K.prototype.getIndentString=function(){var e={};return this.sources.forEach(function(t){var n=t.content.indentStr;null!==n&&(e[n]||(e[n]=0),e[n]+=1)}),Object.keys(e).sort(function(t,n){return e[t]-e[n]})[0]||"\t"},K.prototype.indent=function(e){var t=this;if(arguments.length||(e=this.getIndentString()),""===e)return this;var n=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach(function(r,i){var s=void 0!==r.separator?r.separator:t.separator,o=n||i>0&&/\r?\n$/.test(s);r.content.indent(e,{exclude:r.indentExclusionRanges,indentStart:o}),n="\n"===r.content.lastChar()}),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,function(t,n){return n>0?e+t:t})),this},K.prototype.prepend=function(e){return this.intro=e+this.intro,this},K.prototype.toString=function(){var e=this,t=this.sources.map(function(t,n){var r=void 0!==t.separator?t.separator:e.separator;return(n>0?r:"")+t.content.toString()}).join("");return this.intro+t},K.prototype.isEmpty=function(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some(function(e){return!e.content.isEmpty()})},K.prototype.length=function(){return this.sources.reduce(function(e,t){return e+t.content.length()},this.intro.length)},K.prototype.trimLines=function(){return this.trim("[\\r\\n]")},K.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},K.prototype.trimStart=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),!this.intro){var n,r=0;do{if(!(n=this.sources[r++]))break}while(!n.content.trimStartAborted(e))}return this},K.prototype.trimEnd=function(e){var t,n=new RegExp((e||"\\s")+"+$"),r=this.sources.length-1;do{if(!(t=this.sources[r--])){this.intro=this.intro.replace(n,"");break}}while(!t.content.trimEndAborted(e));return this};const X=Object.create(null),Q="BlockStatement",J="CallExpression",Z="ExportAllDeclaration",ee="ExpressionStatement",te="FunctionExpression",ne="Identifier",re="ImportDefaultSpecifier",ie="ImportNamespaceSpecifier",se="Program",oe="Property",ae="ReturnStatement",he="VariableDeclaration";function ue(e,t,n,r){if(t.remove(n,r),e.annotations)for(const r of e.annotations){if(!(r.start<n))return;t.remove(r.start,r.end)}}function ce(e,t){if(e.annotations||e.parent.type!==ee||(e=e.parent),e.annotations)for(const n of e.annotations)t.remove(n.start,n.end)}const le={isNoStatement:!0};function pe(e,t,n=0){let r,i;for(r=e.indexOf(t,n);;){if(-1===(n=e.indexOf("/",n))||n>r)return r;if(i=e.charCodeAt(++n),++n,47===i){if(0===(n=e.indexOf("\n",n)+1))return-1;n>r&&(r=e.indexOf(t,n))}else 42===i&&(n=e.indexOf("*/",n)+2)>r&&(r=e.indexOf(t,n))}}function de(e,t=0){let n,r;for(n=e.indexOf("\n",t);;){if(-1===(t=e.indexOf("/",t))||t>n)return n;if(47===(r=e.charCodeAt(++t)))return n;++t,42===r&&(t=e.indexOf("*/",t)+2)>n&&(n=e.indexOf("\n",t))}}function fe(e,t,n,r,i){if(0===e.length)return;let s,o,a,h,u=e[0],c=!u.included||u.needsBoundaries;c&&(h=n+de(t.original.slice(n,u.start))+1);for(let n=1;n<=e.length;n++)s=u,o=h,a=c,c=void 0!==(u=e[n])&&(!u.included||u.needsBoundaries),a||c?(h=s.end+de(t.original.slice(s.end,void 0===u?r:u.start))+1,s.included?a?s.render(t,i,{end:h,start:o}):s.render(t,i):ue(s,t,o,h)):s.render(t,i)}function me(e,t,n,r){const i=[];let s,o,a,h,u,c=n-1;for(let r=0;r<e.length;r++){for(o=e[r],void 0!==s&&(c=s.end+pe(t.original.slice(s.end,o.start),",")),a=h=c+2+de(t.original.slice(c+1,o.start));32===(u=t.original.charCodeAt(a))||9===u||10===u||13===u;)a++;void 0!==s&&i.push({contentEnd:h,end:a,node:s,separator:c,start:n}),s=o,n=a}return i.push({contentEnd:r,end:r,node:s,separator:null,start:n}),i}const ge="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$",ye=64;function xe(e){let t="";do{const n=e%ye;e=Math.floor(e/ye),t=ge[n]+t}while(0!==e);return t}const ve=Object.assign(Object.create(null),{await:!0,break:!0,case:!0,catch:!0,class:!0,const:!0,continue:!0,debugger:!0,default:!0,delete:!0,do:!0,else:!0,enum:!0,eval:!0,export:!0,extends:!0,false:!0,finally:!0,for:!0,function:!0,if:!0,implements:!0,import:!0,in:!0,instanceof:!0,interface:!0,let:!0,new:!0,null:!0,package:!0,private:!0,protected:!0,public:!0,return:!0,static:!0,super:!0,switch:!0,this:!0,throw:!0,true:!0,try:!0,typeof:!0,undefined:!0,var:!0,void:!0,while:!0,with:!0,yield:!0});function Ee(e,t){let n=e,r=1;for(;t.has(n)||ve[n];)n=`${e}$${xe(r++)}`;return t.add(n),n}class _e{static create(e){return new this(e)}constructor({withNew:e=!1,args:t=[],callIdentifier:n}={}){this.withNew=e,this.args=t,this.callIdentifier=n}equals(e){return e&&this.callIdentifier===e.callIdentifier}}const be={UNKNOWN_KEY:!0},Ae=[],Se=[be];function we(e,t=null){return Object.create(t,e)}const Ie={UNKNOWN_VALUE:!0},Pe={deoptimizePath:()=>{},getLiteralValueAtPath:()=>Ie,getReturnExpressionWhenCalledAtPath:()=>Pe,hasEffectsWhenAccessedAtPath:e=>e.length>0,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:()=>!0,include:()=>{},includeCallArguments(e){for(const t of e)t.include(!1)},included:!0,toString:()=>"[[UNKNOWN]]"},Ce={deoptimizePath:()=>{},getLiteralValueAtPath:()=>void 0,getReturnExpressionWhenCalledAtPath:()=>Pe,hasEffectsWhenAccessedAtPath:e=>e.length>0,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:()=>!0,include:()=>{},includeCallArguments(){},included:!0,toString:()=>"undefined"},ke={value:{returns:null,returnsPrimitive:Pe,callsArgs:null,mutatesSelf:!0}},$e={value:{returns:null,returnsPrimitive:Pe,callsArgs:[0],mutatesSelf:!1}};class Ne{constructor(){this.included=!1}deoptimizePath(){}getLiteralValueAtPath(){return Ie}getReturnExpressionWhenCalledAtPath(e){return 1===e.length?Je(He,e[0]):Pe}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,n){return 1!==e.length||Qe(He,e[0],this.included,t,n)}include(){this.included=!0}includeCallArguments(e){for(const t of e)t.include(!1)}toString(){return"[[UNKNOWN ARRAY]]"}}const Re={value:{callsArgs:null,mutatesSelf:!1,returns:Ne,returnsPrimitive:null}},Oe={value:{callsArgs:null,mutatesSelf:!0,returns:Ne,returnsPrimitive:null}},Me={value:{callsArgs:[0],mutatesSelf:!1,returns:Ne,returnsPrimitive:null}},De={value:{callsArgs:[0],mutatesSelf:!0,returns:Ne,returnsPrimitive:null}},Te={deoptimizePath:()=>{},getLiteralValueAtPath:()=>Ie,getReturnExpressionWhenCalledAtPath:e=>1===e.length?Je(Ke,e[0]):Pe,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:e=>{if(1===e.length){const t=e[0];return"string"!=typeof t||!Ke[t]}return!0},include:()=>{},includeCallArguments(e){for(const t of e)t.include(!1)},included:!0,toString:()=>"[[UNKNOWN BOOLEAN]]"},Le={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:Te}},Ve={value:{callsArgs:[0],mutatesSelf:!1,returns:null,returnsPrimitive:Te}},Be={deoptimizePath:()=>{},getLiteralValueAtPath:()=>Ie,getReturnExpressionWhenCalledAtPath:e=>1===e.length?Je(Ye,e[0]):Pe,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:e=>{if(1===e.length){const t=e[0];return"string"!=typeof t||!Ye[t]}return!0},include:()=>{},includeCallArguments(e){for(const t of e)t.include(!1)},included:!0,toString:()=>"[[UNKNOWN NUMBER]]"},ze={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:Be}},je={value:{callsArgs:null,mutatesSelf:!0,returns:null,returnsPrimitive:Be}},We={value:{callsArgs:[0],mutatesSelf:!1,returns:null,returnsPrimitive:Be}},Ue={deoptimizePath:()=>{},getLiteralValueAtPath:()=>Ie,getReturnExpressionWhenCalledAtPath:e=>1===e.length?Je(Xe,e[0]):Pe,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:(e,t,n)=>1!==e.length||Qe(Xe,e[0],!0,t,n),include:()=>{},includeCallArguments(e){for(const t of e)t.include(!1)},included:!0,toString:()=>"[[UNKNOWN STRING]]"},Fe={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:Ue}};class qe{constructor(){this.included=!1}deoptimizePath(){}getLiteralValueAtPath(){return Ie}getReturnExpressionWhenCalledAtPath(e){return 1===e.length?Je(Ge,e[0]):Pe}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,n){return 1!==e.length||Qe(Ge,e[0],this.included,t,n)}include(){this.included=!0}includeCallArguments(e){for(const t of e)t.include(!1)}toString(){return"[[UNKNOWN OBJECT]]"}}const Ge=we({hasOwnProperty:Le,isPrototypeOf:Le,propertyIsEnumerable:Le,toLocaleString:Fe,toString:Fe,valueOf:{value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:Pe}}}),He=we({concat:Re,copyWithin:Oe,every:Ve,fill:Oe,filter:Me,find:$e,findIndex:We,forEach:$e,includes:Le,indexOf:ze,join:Fe,lastIndexOf:ze,map:Me,pop:ke,push:je,reduce:$e,reduceRight:$e,reverse:Oe,shift:ke,slice:Re,some:Ve,sort:De,splice:Oe,unshift:je},Ge),Ke=we({valueOf:Le},Ge),Ye=we({toExponential:Fe,toFixed:Fe,toLocaleString:Fe,toPrecision:Fe,valueOf:ze},Ge),Xe=we({charAt:Fe,charCodeAt:ze,codePointAt:ze,concat:Fe,endsWith:Le,includes:Le,indexOf:ze,lastIndexOf:ze,localeCompare:ze,match:Le,normalize:Fe,padEnd:Fe,padStart:Fe,repeat:Fe,replace:{value:{callsArgs:[1],mutatesSelf:!1,returns:null,returnsPrimitive:Ue}},search:ze,slice:Fe,split:Re,startsWith:Le,substr:Fe,substring:Fe,toLocaleLowerCase:Fe,toLocaleUpperCase:Fe,toLowerCase:Fe,toUpperCase:Fe,trim:Fe,valueOf:Fe},Ge);function Qe(e,t,n,r,i){if("string"!=typeof t||!e[t])return!0;if(e[t].mutatesSelf&&n)return!0;if(!e[t].callsArgs)return!1;for(const n of e[t].callsArgs)if(r.args[n]&&r.args[n].hasEffectsWhenCalledAtPath(Ae,_e.create({args:[],callIdentifier:{},withNew:!1}),i.getHasEffectsWhenCalledOptions()))return!0;return!1}function Je(e,t){return"string"==typeof t&&e[t]?null!==e[t].returnsPrimitive?e[t].returnsPrimitive:new e[t].returns:Pe}class Ze{constructor(e){this.alwaysRendered=!1,this.exportName=null,this.included=!1,this.isId=!1,this.isReassigned=!1,this.renderBaseName=null,this.renderName=null,this.safeExportName=null,this.name=e}addReference(e){}deoptimizePath(e){}getBaseVariableName(){return this.renderBaseName||this.renderName||this.name}getLiteralValueAtPath(e,t,n){return Ie}getName(){const e=this.renderName||this.name;return this.renderBaseName?`${this.renderBaseName}.${e}`:e}getReturnExpressionWhenCalledAtPath(e,t,n){return Pe}hasEffectsWhenAccessedAtPath(e,t){return e.length>0}hasEffectsWhenAssignedAtPath(e,t){return!0}hasEffectsWhenCalledAtPath(e,t,n){return!0}include(){this.included=!0}includeCallArguments(e){for(const t of e)t.include(!1)}markCalledFromTryStatement(){}setRenderNames(e,t){this.renderBaseName=e,this.renderName=t}setSafeName(e){this.renderName=e}toString(){return this.name}}class et extends Ze{constructor(e,t){super(t),this.module=e,this.isNamespace="*"===t,this.referenced=!1}addReference(e){this.referenced=!0,"default"!==this.name&&"*"!==this.name||this.module.suggestName(e.name)}include(){this.included||(this.included=!0,this.module.used=!0)}}const tt="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public".split(" "),nt="Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "),rt=Object.create(null);tt.concat(nt).forEach(e=>rt[e]=!0);const it=/[^$_a-zA-Z0-9]/g,st=e=>/\d/.test(e[0]);function ot(e){return e=e.replace(/-(\w)/g,(e,t)=>t.toUpperCase()).replace(it,"_"),(st(e)||rt[e])&&(e=`_${e}`),e}const at=/^(?:\/|(?:[A-Za-z]:)?[\\|\/])/,ht=/^\.?\.\//;function ut(e){return at.test(e)}function ct(e){return ht.test(e)}function lt(e){return e.replace(/\\/g,"/")}function pt(e){return e.split(/(\/|\\)/).pop()}function dt(e){const t=/(\/|\\)[^\/\\]*$/.exec(e);if(!t)return".";const n=e.slice(0,-t[0].length);return n||"/"}function ft(e){const t=/\.[^.]+$/.exec(pt(e));return t?t[0]:""}function mt(e,t){const n=e.split(/[\/\\]/).filter(Boolean),r=t.split(/[\/\\]/).filter(Boolean);for("."===n[0]&&n.shift(),"."===r[0]&&r.shift();n[0]&&r[0]&&n[0]===r[0];)n.shift(),r.shift();for(;".."===r[0]&&n.length>0;)r.shift(),n.pop();for(;n.pop();)r.unshift("..");return r.join("/")}function gt(...e){let t=e.shift().split(/[\/\\]/);return e.forEach(e=>{if(ut(e))t=e.split(/[\/\\]/);else{const n=e.split(/[\/\\]/);for(;"."===n[0]||".."===n[0];){".."===n.shift()&&t.pop()}t.push.apply(t,n)}}),t.join("/")}class yt{constructor(e,t,n){this.exportsNames=!1,this.exportsNamespace=!1,this.mostCommonSuggestion=0,this.reexported=!1,this.renderPath=void 0,this.renormalizeRenderPath=!1,this.used=!1,this.graph=e,this.id=t,this.execIndex=1/0,this.moduleSideEffects=n;const r=t.split(/[\\\/]/);this.variableName=ot(r.pop()),this.nameSuggestions=Object.create(null),this.declarations=Object.create(null),this.exportedVariables=new Map}getVariableForExportName(e,t){"*"===e?this.exportsNamespace=!0:"default"!==e&&(this.exportsNames=!0);let n=this.declarations[e];return n||(this.declarations[e]=n=new et(this,e),this.exportedVariables.set(n,e),n)}setRenderPath(e,t){return this.renderPath="",e.paths&&(this.renderPath="function"==typeof e.paths?e.paths(this.id):e.paths[this.id]),this.renderPath||(ut(this.id)?(this.renderPath=lt(mt(t,this.id)),this.renormalizeRenderPath=!0):this.renderPath=this.id),this.renderPath}suggestName(e){this.nameSuggestions[e]||(this.nameSuggestions[e]=0),this.nameSuggestions[e]+=1,this.nameSuggestions[e]>this.mostCommonSuggestion&&(this.mostCommonSuggestion=this.nameSuggestions[e],this.variableName=e)}warnUnusedImports(){const e=Object.keys(this.declarations).filter(e=>{if("*"===e)return!1;const t=this.declarations[e];return!t.included&&!this.reexported&&!t.referenced});if(0===e.length)return;const t=1===e.length?`'${e[0]}' is`:`${e.slice(0,-1).map(e=>`'${e}'`).join(", ")} and '${e.slice(-1)}' are`;this.graph.warn({code:"UNUSED_EXTERNAL_IMPORT",message:`${t} imported from external module '${this.id}' but never used`,names:e,source:this.id})}}function xt(e){e.isExecuted=!0;const t=[e],n=new Set;for(const e of t)for(const r of e.dependencies)r instanceof yt||r.isExecuted||!r.moduleSideEffects||n.has(r.id)||(r.isExecuted=!0,n.add(r.id),t.push(r))}const vt=7;class Et extends Ze{constructor(e,t,n,r){super(e),this.additionalInitializers=null,this.calledFromTryStatement=!1,this.expressionsToBeDeoptimized=[],this.declarations=t?[t]:[],this.init=n,this.deoptimizationTracker=r.deoptimizationTracker,this.module=r.module}addDeclaration(e,t){this.declarations.push(e),null===this.additionalInitializers&&(this.additionalInitializers=null===this.init?[]:[this.init],this.init=Pe,this.isReassigned=!0),null!==t&&this.additionalInitializers.push(t)}consolidateInitializers(){if(null!==this.additionalInitializers){for(const e of this.additionalInitializers)e.deoptimizePath(Se);this.additionalInitializers=null}}deoptimizePath(e){if(!(e.length>vt||this.isReassigned||this.deoptimizationTracker.track(this,e)))if(0===e.length){if(!this.isReassigned){this.isReassigned=!0;for(const e of this.expressionsToBeDeoptimized)e.deoptimizeCache();this.init&&this.init.deoptimizePath(Se)}}else this.init&&this.init.deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.isReassigned||!this.init||e.length>vt||t.isTracked(this.init,e)?Ie:(this.expressionsToBeDeoptimized.push(n),this.init.getLiteralValueAtPath(e,t.track(this.init,e),n))}getReturnExpressionWhenCalledAtPath(e,t,n){return this.isReassigned||!this.init||e.length>vt||t.isTracked(this.init,e)?Pe:(this.expressionsToBeDeoptimized.push(n),this.init.getReturnExpressionWhenCalledAtPath(e,t.track(this.init,e),n))}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(this.isReassigned||e.length>vt||this.init&&!t.hasNodeBeenAccessedAtPath(e,this.init)&&this.init.hasEffectsWhenAccessedAtPath(e,t.addAccessedNodeAtPath(e,this.init)))}hasEffectsWhenAssignedAtPath(e,t){return!!(this.included||e.length>vt)||0!==e.length&&(this.isReassigned||this.init&&!t.hasNodeBeenAssignedAtPath(e,this.init)&&this.init.hasEffectsWhenAssignedAtPath(e,t.addAssignedNodeAtPath(e,this.init)))}hasEffectsWhenCalledAtPath(e,t,n){return e.length>vt||(this.isReassigned||this.init&&!n.hasNodeBeenCalledAtPathWithOptions(e,this.init,t)&&this.init.hasEffectsWhenCalledAtPath(e,t,n.addCalledNodeAtPathWithOptions(e,this.init,t)))}include(){if(!this.included){this.included=!0,this.module.isExecuted||xt(this.module);for(const e of this.declarations){e.included||e.include(!1);let t=e.parent;for(;!t.included&&(t.included=!0,t.type!==se);)t=t.parent}}}includeCallArguments(e){if(this.isReassigned)for(const t of e)t.include(!1);else this.init&&this.init.includeCallArguments(e)}markCalledFromTryStatement(){this.calledFromTryStatement=!0}}class _t{constructor(){this.children=[],this.variables=new Map}addDeclaration(e,t,n=null,r){const i=e.name;let s=this.variables.get(i);return s?s.addDeclaration(e,n):(s=new Et(e.name,e,n||Ce,t),this.variables.set(i,s)),s}contains(e){return this.variables.has(e)}findVariable(e){throw new Error("Internal Error: findVariable needs to be implemented by a subclass")}}class bt extends _t{constructor(e){super(),this.accessedOutsideVariables=new Map,this.parent=e,e.children.push(this)}addAccessedGlobalsByFormat(e){let t=this.accessedGlobalVariablesByFormat;t||(t=this.accessedGlobalVariablesByFormat=new Map);for(const n of Object.keys(e)){let r=t.get(n);r||(r=new Set,t.set(n,r));for(const t of e[n])r.add(t)}this.parent instanceof bt&&this.parent.addAccessedGlobalsByFormat(e)}addNamespaceMemberAccess(e,t){this.accessedOutsideVariables.set(e,t),this.parent instanceof bt&&this.parent.addNamespaceMemberAccess(e,t)}addReturnExpression(e){this.parent instanceof bt&&this.parent.addReturnExpression(e)}contains(e){return this.variables.has(e)||this.parent.contains(e)}deconflict(e){const t=new Set;for(const n of this.accessedOutsideVariables.values())n.included&&(t.add(n.getBaseVariableName()),n.exportName&&"system"===e&&t.add("exports"));const n=this.accessedGlobalVariablesByFormat&&this.accessedGlobalVariablesByFormat.get(e);if(n)for(const e of n)t.add(e);for(const[e,n]of this.variables)(n.included||n.alwaysRendered)&&n.setSafeName(Ee(e,t));for(const t of this.children)t.deconflict(e)}findLexicalBoundary(){return this.parent instanceof bt?this.parent.findLexicalBoundary():this}findVariable(e){const t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;const n=this.parent.findVariable(e);return this.accessedOutsideVariables.set(e,n),n}}function At(e,t,n){if("number"==typeof n)throw new Error("locate takes a { startIndex, offsetLine, offsetColumn } object as the third argument");return function(e,t){void 0===t&&(t={});var n=t.offsetLine||0,r=t.offsetColumn||0,i=e.split("\n"),s=0,o=i.map(function(e,t){var n=s+e.length+1,r={start:s,end:n,line:t};return s=n,r}),a=0;function h(e,t){return e.start<=t&&t<e.end}function u(e,t){return{line:n+e.line,column:r+t-e.start,character:t}}return function(t,n){"string"==typeof t&&(t=e.indexOf(t,n||0));for(var r=o[a],i=t>=r.end?1:-1;r;){if(h(r,t))return u(r,t);r=o[a+=i]}}}(e,n)(t,n&&n.startIndex)}var St=5,wt=1<<St,It=wt-1,Pt={};function Ct(e){e&&(e.value=!0)}function kt(){}function $t(e){return void 0===e.size&&(e.size=e.__iterate(Rt)),e.size}function Nt(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?$t(e)+t:t}function Rt(){return!0}function Ot(e,t,n){return(0===e&&!Lt(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function Mt(e,t){return Tt(e,t,0)}function Dt(e,t){return Tt(e,t,t)}function Tt(e,t,n){return void 0===e?n:Lt(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function Lt(e){return e<0||0===e&&1/e==-1/0}var Vt="@@__IMMUTABLE_ITERABLE__@@";function Bt(e){return Boolean(e&&e[Vt])}var zt="@@__IMMUTABLE_KEYED__@@";function jt(e){return Boolean(e&&e[zt])}var Wt="@@__IMMUTABLE_INDEXED__@@";function Ut(e){return Boolean(e&&e[Wt])}function Ft(e){return jt(e)||Ut(e)}var qt=function(e){return Bt(e)?e:xn(e)},Gt=function(e){function t(e){return jt(e)?e:vn(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(qt),Ht=function(e){function t(e){return Ut(e)?e:En(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(qt),Kt=function(e){function t(e){return Bt(e)&&!Ft(e)?e:_n(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(qt);qt.Keyed=Gt,qt.Indexed=Ht,qt.Set=Kt;var Yt="@@__IMMUTABLE_SEQ__@@";function Xt(e){return Boolean(e&&e[Yt])}var Qt="@@__IMMUTABLE_RECORD__@@";function Jt(e){return Boolean(e&&e[Qt])}function Zt(e){return Bt(e)||Jt(e)}var en="@@__IMMUTABLE_ORDERED__@@";function tn(e){return Boolean(e&&e[en])}var nn=0,rn=1,sn=2,on="function"==typeof Symbol&&Symbol.iterator,an="@@iterator",hn=on||an,un=function(e){this.next=e};function cn(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function ln(){return{value:void 0,done:!0}}function pn(e){return!!mn(e)}function dn(e){return e&&"function"==typeof e.next}function fn(e){var t=mn(e);return t&&t.call(e)}function mn(e){var t=e&&(on&&e[on]||e[an]);if("function"==typeof t)return t}un.prototype.toString=function(){return"[Iterator]"},un.KEYS=nn,un.VALUES=rn,un.ENTRIES=sn,un.prototype.inspect=un.prototype.toSource=function(){return this.toString()},un.prototype[hn]=function(){return this};var gn=Object.prototype.hasOwnProperty;function yn(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var xn=function(e){function t(e){return null==e?In():Zt(e)?e.toSeq():function(e){var t=kn(e);if(t)return t;if("object"==typeof e)return new An(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var s=n[t?r-++i:i++];if(!1===e(s[1],s[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new un(function(){if(i===r)return{value:void 0,done:!0};var s=n[t?r-++i:i++];return cn(e,s[0],s[1])})}return this.__iteratorUncached(e,t)},t}(qt),vn=function(e){function t(e){return null==e?In().toKeyedSeq():Bt(e)?jt(e)?e.toSeq():e.fromEntrySeq():Jt(e)?e.toSeq():Pn(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(xn),En=function(e){function t(e){return null==e?In():Bt(e)?jt(e)?e.entrySeq():e.toIndexedSeq():Jt(e)?e.toSeq().entrySeq():Cn(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(xn),_n=function(e){function t(e){return(Bt(e)&&!Ft(e)?e:En(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(xn);xn.isSeq=Xt,xn.Keyed=vn,xn.Set=_n,xn.Indexed=En,xn.prototype[Yt]=!0;var bn=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[Nt(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var s=t?r-++i:i++;if(!1===e(n[s],s,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new un(function(){if(i===r)return{value:void 0,done:!0};var s=t?r-++i:i++;return cn(e,s,n[s])})},t}(En),An=function(e){function t(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return gn.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,s=0;s!==i;){var o=r[t?i-++s:s++];if(!1===e(n[o],o,this))break}return s},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,s=0;return new un(function(){if(s===i)return{value:void 0,done:!0};var o=r[t?i-++s:s++];return cn(e,o,n[o])})},t}(vn);An.prototype[en]=!0;var Sn,wn=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=fn(this._collection),r=0;if(dn(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=fn(this._collection);if(!dn(n))return new un(ln);var r=0;return new un(function(){var t=n.next();return t.done?t:cn(e,r++,t.value)})},t}(En);function In(){return Sn||(Sn=new bn([]))}function Pn(e){var t=Array.isArray(e)?new bn(e):pn(e)?new wn(e):void 0;if(t)return t.fromEntrySeq();if("object"==typeof e)return new An(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function Cn(e){var t=kn(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function kn(e){return yn(e)?new bn(e):pn(e)?new wn(e):void 0}var $n="@@__IMMUTABLE_MAP__@@";function Nn(e){return Boolean(e&&e[$n])}function Rn(e){return Nn(e)&&tn(e)}function On(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function Mn(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(On(e)&&On(t)&&e.equals(t))}var Dn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Tn(e){return e>>>1&1073741824|3221225471&e}var Ln=Object.prototype.valueOf;function Vn(e){switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return Tn(t)}(e);case"string":return e.length>Gn?function(e){var t=Yn[e];void 0===t&&(t=Bn(e),Kn===Hn&&(Kn=0,Yn={}),Kn++,Yn[e]=t);return t}(e):Bn(e);case"object":case"function":return null===e?1108378658:"function"==typeof e.hashCode?Tn(e.hashCode(e)):(e.valueOf!==Ln&&"function"==typeof e.valueOf&&(e=e.valueOf(e)),function(e){var t;if(Un&&void 0!==(t=Wn.get(e)))return t;if(void 0!==(t=e[qn]))return t;if(!jn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[qn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}t=++Fn,1073741824&Fn&&(Fn=0);if(Un)Wn.set(e,t);else{if(void 0!==zn&&!1===zn(e))throw new Error("Non-extensible objects are not allowed as keys.");if(jn)Object.defineProperty(e,qn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[qn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[qn]=t}}return t}(e));case"undefined":return 1108378659;default:if("function"==typeof e.toString)return Bn(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function Bn(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Tn(t)}var zn=Object.isExtensible,jn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var Wn,Un="function"==typeof WeakMap;Un&&(Wn=new WeakMap);var Fn=0,qn="__immutablehash__";"function"==typeof Symbol&&(qn=Symbol(qn));var Gn=16,Hn=255,Kn=0,Yn={},Xn=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=nr(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=tr(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t,r){return e(t,r,n)},t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(vn);Xn.prototype[en]=!0;var Qn=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&$t(this),this._iter.__iterate(function(i){return e(i,t?n.size-++r:r++,n)},t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(rn,t),i=0;return t&&$t(this),new un(function(){var s=r.next();return s.done?s:cn(e,t?n.size-++i:i++,s.value,s)})},t}(En),Jn=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(rn,t);return new un(function(){var t=n.next();return t.done?t:cn(e,t.value,t.value,t)})},t}(_n),Zn=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){dr(t);var r=Bt(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(rn,t);return new un(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){dr(r);var i=Bt(r);return cn(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},t}(vn);function er(e){var t=mr(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=gr,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===sn){var r=e.__iterator(t,n);return new un(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===rn?nn:rn,n)},t}function tr(e,t,n){var r=mr(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var s=e.get(r,Pt);return s===Pt?i:t.call(n,s,r,e)},r.__iterateUncached=function(r,i){var s=this;return e.__iterate(function(e,i,o){return!1!==r(t.call(n,e,i,o),i,s)},i)},r.__iteratorUncached=function(r,i){var s=e.__iterator(sn,i);return new un(function(){var i=s.next();if(i.done)return i;var o=i.value,a=o[0];return cn(r,a,t.call(n,o[1],a,e),i)})},r}function nr(e,t){var n=this,r=mr(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=er(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=gr,r.__iterate=function(n,r){var i=this,s=0;return r&&$t(e),e.__iterate(function(e,o){return n(e,t?o:r?i.size-++s:s++,i)},!r)},r.__iterator=function(r,i){var s=0;i&&$t(e);var o=e.__iterator(sn,!i);return new un(function(){var e=o.next();if(e.done)return e;var a=e.value;return cn(r,t?a[0]:i?n.size-++s:s++,a[1],e)})},r}function rr(e,t,n,r){var i=mr(e);return r&&(i.has=function(r){var i=e.get(r,Pt);return i!==Pt&&!!t.call(n,i,r,e)},i.get=function(r,i){var s=e.get(r,Pt);return s!==Pt&&t.call(n,s,r,e)?s:i}),i.__iterateUncached=function(i,s){var o=this,a=0;return e.__iterate(function(e,s,h){if(t.call(n,e,s,h))return a++,i(e,r?s:a-1,o)},s),a},i.__iteratorUncached=function(i,s){var o=e.__iterator(sn,s),a=0;return new un(function(){for(;;){var s=o.next();if(s.done)return s;var h=s.value,u=h[0],c=h[1];if(t.call(n,c,u,e))return cn(i,r?u:a++,c,s)}})},i}function ir(e,t,n,r){var i=e.size;if(Ot(t,n,i))return e;var s=Mt(t,i),o=Dt(n,i);if(s!=s||o!=o)return ir(e.toSeq().cacheResult(),t,n,r);var a,h=o-s;h==h&&(a=h<0?0:h);var u=mr(e);return u.size=0===a?a:e.size&&a||void 0,!r&&Xt(e)&&a>=0&&(u.get=function(t,n){return(t=Nt(this,t))>=0&&t<a?e.get(t+s,n):n}),u.__iterateUncached=function(t,n){var i=this;if(0===a)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,h=!0,u=0;return e.__iterate(function(e,n){if(!h||!(h=o++<s))return u++,!1!==t(e,r?n:u-1,i)&&u!==a}),u},u.__iteratorUncached=function(t,n){if(0!==a&&n)return this.cacheResult().__iterator(t,n);if(0===a)return new un(ln);var i=e.__iterator(t,n),o=0,h=0;return new un(function(){for(;o++<s;)i.next();if(++h>a)return{value:void 0,done:!0};var e=i.next();return r||t===rn||e.done?e:cn(t,h-1,t===nn?void 0:e.value[1],e)})},u}function sr(e,t,n,r){var i=mr(e);return i.__iterateUncached=function(i,s){var o=this;if(s)return this.cacheResult().__iterate(i,s);var a=!0,h=0;return e.__iterate(function(e,s,u){if(!a||!(a=t.call(n,e,s,u)))return h++,i(e,r?s:h-1,o)}),h},i.__iteratorUncached=function(i,s){var o=this;if(s)return this.cacheResult().__iterator(i,s);var a=e.__iterator(sn,s),h=!0,u=0;return new un(function(){var e,s,c;do{if((e=a.next()).done)return r||i===rn?e:cn(i,u++,i===nn?void 0:e.value[1],e);var l=e.value;s=l[0],c=l[1],h&&(h=t.call(n,c,s,o))}while(h);return i===sn?e:cn(i,s,c,e)})},i}function or(e,t){var n=jt(e),r=[e].concat(t).map(function(e){return Bt(e)?n&&(e=Gt(e)):e=n?Pn(e):Cn(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===r.length)return e;if(1===r.length){var i=r[0];if(i===e||n&&jt(i)||Ut(e)&&Ut(i))return i}var s=new bn(r);return n?s=s.toKeyedSeq():Ut(e)||(s=s.toSetSeq()),(s=s.flatten(!0)).size=r.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),s}function ar(e,t,n){var r=mr(e);return r.__iterateUncached=function(i,s){if(s)return this.cacheResult().__iterate(i,s);var o=0,a=!1;return function e(h,u){h.__iterate(function(s,h){return(!t||u<t)&&Bt(s)?e(s,u+1):(o++,!1===i(s,n?h:o-1,r)&&(a=!0)),!a},s)}(e,0),o},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var s=e.__iterator(r,i),o=[],a=0;return new un(function(){for(;s;){var e=s.next();if(!1===e.done){var h=e.value;if(r===sn&&(h=h[1]),t&&!(o.length<t)||!Bt(h))return n?e:cn(r,a++,h,e);o.push(s),s=h.__iterator(r,i)}else s=o.pop()}return{value:void 0,done:!0}})},r}function hr(e,t,n){t||(t=yr);var r=jt(e),i=0,s=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).valueSeq().toArray();return s.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){s[t].length=2}:function(e,t){s[t]=e[1]}),r?vn(s):Ut(e)?En(s):_n(s)}function ur(e,t,n){if(t||(t=yr),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return cr(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return cr(t,e,n)?n:e})}function cr(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function lr(e,t,n,r){var i=mr(e),s=new bn(n).map(function(e){return e.size});return i.size=r?s.max():s.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(rn,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var s=n.map(function(e){return e=qt(e),fn(i?e.reverse():e)}),o=0,a=!1;return new un(function(){var n;return a||(n=s.map(function(e){return e.next()}),a=r?n.every(function(e){return e.done}):n.some(function(e){return e.done})),a?{value:void 0,done:!0}:cn(e,o++,t.apply(null,n.map(function(e){return e.value})))})},i}function pr(e,t){return e===t?e:Xt(e)?t:e.constructor(t)}function dr(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function fr(e){return jt(e)?Gt:Ut(e)?Ht:Kt}function mr(e){return Object.create((jt(e)?vn:Ut(e)?En:_n).prototype)}function gr(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):xn.prototype.cacheResult.call(this)}function yr(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function xr(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function vr(e,t){if(!e)throw new Error(t)}function Er(e){vr(e!==1/0,"Cannot perform this action with an infinite size.")}function _r(e){if(yn(e)&&"string"!=typeof e)return e;if(tn(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function br(e){return e&&("function"!=typeof e.constructor||"Object"===e.constructor.name)}function Ar(e){return"object"==typeof e&&(Zt(e)||Array.isArray(e)||br(e))}function Sr(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function wr(e,t){return Zt(e)?e.has(t):Ar(e)&&gn.call(e,t)}function Ir(e,t,n){return Zt(e)?e.get(t,n):wr(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function Pr(e){if(Array.isArray(e))return xr(e);var t={};for(var n in e)gn.call(e,n)&&(t[n]=e[n]);return t}function Cr(e,t){if(!Ar(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Zt(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!gn.call(e,t))return e;var n=Pr(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function kr(e,t,n){if(!Ar(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Zt(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(gn.call(e,t)&&n===e[t])return e;var r=Pr(e);return r[t]=n,r}function $r(e,t,n,r){r||(r=n,n=void 0);var i=function e(t,n,r,i,s,o){var a=n===Pt;if(i===r.length){var h=a?s:n,u=o(h);return u===h?n:u}if(!a&&!Ar(n))throw new TypeError("Cannot update within non-data-structure value in path ["+r.slice(0,i).map(Sr)+"]: "+n);var c=r[i];var l=a?Pt:Ir(n,c,Pt);var p=e(l===Pt?t:Zt(l),l,r,i+1,s,o);return p===l?n:p===Pt?Cr(n,c):kr(a?t?ui():{}:n,c,p)}(Zt(e),e,_r(t),0,n,r);return i===Pt?n:i}function Nr(e,t,n){return $r(e,t,Pt,function(){return n})}function Rr(e,t){return Nr(this,e,t)}function Or(e,t){return $r(e,t,function(){return Pt})}function Mr(e){return Or(this,e)}function Dr(e,t,n,r){return $r(e,[t],n,r)}function Tr(e,t,n){return 1===arguments.length?e(this):Dr(this,e,t,n)}function Lr(e,t,n){return $r(this,e,t,n)}function Vr(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return zr(this,e)}function Br(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return zr(this,t,e)}function zr(e,t,n){for(var r=[],i=0;i<t.length;i++){var s=Gt(t[i]);0!==s.size&&r.push(s)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations(function(e){for(var t=n?function(t,r){Dr(e,r,Pt,function(e){return e===Pt?t:n(e,t,r)})}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)}):e.constructor(r[0])}function jr(e,t,n){return Wr(e,t,function(e){return function t(n,r,i){return Ar(n)&&Ar(r)?Wr(n,[r],t):e?e(n,r,i):r}}(n))}function Wr(e,t,n){if(!Ar(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(Zt(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,s=r?Ht:Gt,o=r?function(t){i===e&&(i=Pr(i)),i.push(t)}:function(t,r){var s=gn.call(i,r),o=s&&n?n(i[r],t,r):t;s&&o===i[r]||(i===e&&(i=Pr(i)),i[r]=o)},a=0;a<t.length;a++)s(t[a]).forEach(o);return i}function Ur(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return jr(this,e)}function Fr(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return jr(this,t,e)}function qr(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return $r(this,e,ui(),function(e){return Wr(e,t)})}function Gr(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return $r(this,e,ui(),function(e){return jr(e,t)})}function Hr(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Kr(){return this.__ownerID?this:this.__ensureOwner(new kt)}function Yr(){return this.__ensureOwner()}function Xr(){return this.__altered}Qn.prototype.cacheResult=Xn.prototype.cacheResult=Jn.prototype.cacheResult=Zn.prototype.cacheResult=gr;var Qr=function(e){function t(t){return null==t?ui():Nn(t)&&!tn(t)?t:ui().withMutations(function(n){var r=e(t);Er(r.size),r.forEach(function(e,t){return n.set(t,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return ui().withMutations(function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return ci(this,e,t)},t.prototype.remove=function(e){return ci(this,e,Pt)},t.prototype.deleteAll=function(e){var t=qt(e);return 0===t.size?this:this.withMutations(function(e){t.forEach(function(t){return e.remove(t)})})},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ui()},t.prototype.sort=function(e){return Di(hr(this,e))},t.prototype.sortBy=function(e,t){return Di(hr(this,t,e))},t.prototype.map=function(e,t){return this.withMutations(function(n){n.forEach(function(r,i){n.set(i,e.call(t,r,i,n))})})},t.prototype.__iterator=function(e,t){return new si(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?hi(this.size,this._root,e,this.__hash):0===this.size?ui():(this.__ownerID=e,this.__altered=!1,this)},t}(Gt);Qr.isMap=Nn;var Jr=Qr.prototype;Jr[$n]=!0,Jr.delete=Jr.remove,Jr.removeAll=Jr.deleteAll,Jr.setIn=Rr,Jr.removeIn=Jr.deleteIn=Mr,Jr.update=Tr,Jr.updateIn=Lr,Jr.merge=Jr.concat=Vr,Jr.mergeWith=Br,Jr.mergeDeep=Ur,Jr.mergeDeepWith=Fr,Jr.mergeIn=qr,Jr.mergeDeepIn=Gr,Jr.withMutations=Hr,Jr.wasAltered=Xr,Jr.asImmutable=Yr,Jr["@@transducer/init"]=Jr.asMutable=Kr,Jr["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},Jr["@@transducer/result"]=function(e){return e.asImmutable()};var Zr=function(e,t){this.ownerID=e,this.entries=t};Zr.prototype.get=function(e,t,n,r){for(var i=this.entries,s=0,o=i.length;s<o;s++)if(Mn(n,i[s][0]))return i[s][1];return r},Zr.prototype.update=function(e,t,n,r,i,s,o){for(var a=i===Pt,h=this.entries,u=0,c=h.length;u<c&&!Mn(r,h[u][0]);u++);var l=u<c;if(l?h[u][1]===i:a)return this;if(Ct(o),(a||!l)&&Ct(s),!a||1!==h.length){if(!l&&!a&&h.length>=gi)return function(e,t,n,r){e||(e=new kt);for(var i=new ri(e,Vn(n),[n,r]),s=0;s<t.length;s++){var o=t[s];i=i.update(e,0,void 0,o[0],o[1])}return i}(e,h,r,i);var p=e&&e===this.ownerID,d=p?h:xr(h);return l?a?u===c-1?d.pop():d[u]=d.pop():d[u]=[r,i]:d.push([r,i]),p?(this.entries=d,this):new Zr(e,d)}};var ei=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};ei.prototype.get=function(e,t,n,r){void 0===t&&(t=Vn(n));var i=1<<((0===e?t:t>>>e)&It),s=this.bitmap;return 0==(s&i)?r:this.nodes[fi(s&i-1)].get(e+St,t,n,r)},ei.prototype.update=function(e,t,n,r,i,s,o){void 0===n&&(n=Vn(r));var a=(0===t?n:n>>>t)&It,h=1<<a,u=this.bitmap,c=0!=(u&h);if(!c&&i===Pt)return this;var l=fi(u&h-1),p=this.nodes,d=c?p[l]:void 0,f=li(d,e,t+St,n,r,i,s,o);if(f===d)return this;if(!c&&f&&p.length>=yi)return function(e,t,n,r,i){for(var s=0,o=new Array(wt),a=0;0!==n;a++,n>>>=1)o[a]=1&n?t[s++]:void 0;return o[r]=i,new ti(e,s+1,o)}(e,p,u,a,f);if(c&&!f&&2===p.length&&pi(p[1^l]))return p[1^l];if(c&&f&&1===p.length&&pi(f))return f;var m=e&&e===this.ownerID,g=c?f?u:u^h:u|h,y=c?f?mi(p,l,f,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),s=0,o=0;o<r;o++)o===t&&(s=1),i[o]=e[o+s];return i}(p,l,m):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var s=new Array(i),o=0,a=0;a<i;a++)a===t?(s[a]=n,o=-1):s[a]=e[a+o];return s}(p,l,f,m);return m?(this.bitmap=g,this.nodes=y,this):new ei(e,g,y)};var ti=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};ti.prototype.get=function(e,t,n,r){void 0===t&&(t=Vn(n));var i=(0===e?t:t>>>e)&It,s=this.nodes[i];return s?s.get(e+St,t,n,r):r},ti.prototype.update=function(e,t,n,r,i,s,o){void 0===n&&(n=Vn(r));var a=(0===t?n:n>>>t)&It,h=i===Pt,u=this.nodes,c=u[a];if(h&&!c)return this;var l=li(c,e,t+St,n,r,i,s,o);if(l===c)return this;var p=this.count;if(c){if(!l&&--p<xi)return function(e,t,n,r){for(var i=0,s=0,o=new Array(n),a=0,h=1,u=t.length;a<u;a++,h<<=1){var c=t[a];void 0!==c&&a!==r&&(i|=h,o[s++]=c)}return new ei(e,i,o)}(e,u,p,a)}else p++;var d=e&&e===this.ownerID,f=mi(u,a,l,d);return d?(this.count=p,this.nodes=f,this):new ti(e,p,f)};var ni=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};ni.prototype.get=function(e,t,n,r){for(var i=this.entries,s=0,o=i.length;s<o;s++)if(Mn(n,i[s][0]))return i[s][1];return r},ni.prototype.update=function(e,t,n,r,i,s,o){void 0===n&&(n=Vn(r));var a=i===Pt;if(n!==this.keyHash)return a?this:(Ct(o),Ct(s),di(this,e,t,n,[r,i]));for(var h=this.entries,u=0,c=h.length;u<c&&!Mn(r,h[u][0]);u++);var l=u<c;if(l?h[u][1]===i:a)return this;if(Ct(o),(a||!l)&&Ct(s),a&&2===c)return new ri(e,this.keyHash,h[1^u]);var p=e&&e===this.ownerID,d=p?h:xr(h);return l?a?u===c-1?d.pop():d[u]=d.pop():d[u]=[r,i]:d.push([r,i]),p?(this.entries=d,this):new ni(e,this.keyHash,d)};var ri=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};ri.prototype.get=function(e,t,n,r){return Mn(n,this.entry[0])?this.entry[1]:r},ri.prototype.update=function(e,t,n,r,i,s,o){var a=i===Pt,h=Mn(r,this.entry[0]);return(h?i===this.entry[1]:a)?this:(Ct(o),a?void Ct(s):h?e&&e===this.ownerID?(this.entry[1]=i,this):new ri(e,this.keyHash,[r,i]):(Ct(s),di(this,e,t,Vn(r),[r,i])))},Zr.prototype.iterate=ni.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},ei.prototype.iterate=ti.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var s=n[t?i-r:r];if(s&&!1===s.iterate(e,t))return!1}},ri.prototype.iterate=function(e,t){return e(this.entry)};var ii,si=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&ai(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(0===r)return oi(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return oi(e,n.entries[this._reverse?i-r:r])}else if(r<=(i=n.nodes.length-1)){var s=n.nodes[this._reverse?i-r:r];if(s){if(s.entry)return oi(e,s.entry);t=this._stack=ai(s,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(un);function oi(e,t){return cn(e,t[0],t[1])}function ai(e,t){return{node:e,index:0,__prev:t}}function hi(e,t,n,r){var i=Object.create(Jr);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function ui(){return ii||(ii=hi(0))}function ci(e,t,n){var r,i;if(e._root){var s={value:!1},o={value:!1};if(r=li(e._root,e.__ownerID,0,void 0,t,n,s,o),!o.value)return e;i=e.size+(s.value?n===Pt?-1:1:0)}else{if(n===Pt)return e;i=1,r=new Zr(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?hi(i,r):ui()}function li(e,t,n,r,i,s,o,a){return e?e.update(t,n,r,i,s,o,a):s===Pt?e:(Ct(a),Ct(o),new ri(t,r,[i,s]))}function pi(e){return e.constructor===ri||e.constructor===ni}function di(e,t,n,r,i){if(e.keyHash===r)return new ni(t,r,[e.entry,i]);var s,o=(0===n?e.keyHash:e.keyHash>>>n)&It,a=(0===n?r:r>>>n)&It,h=o===a?[di(e,t,n+St,r,i)]:(s=new ri(t,r,i),o<a?[e,s]:[s,e]);return new ei(t,1<<o|1<<a,h)}function fi(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function mi(e,t,n,r){var i=r?e:xr(e);return i[t]=n,i}var gi=wt/4,yi=wt/2,xi=wt/4,vi="@@__IMMUTABLE_LIST__@@";function Ei(e){return Boolean(e&&e[vi])}var _i=function(e){function t(t){var n=Ci();if(null==t)return n;if(Ei(t))return t;var r=e(t),i=r.size;return 0===i?n:(Er(i),i>0&&i<wt?Pi(0,i,St,null,new Ai(r.toArray())):n.withMutations(function(e){e.setSize(i),r.forEach(function(t,n){return e.set(n,t)})}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=Nt(this,e))>=0&&e<this.size){var n=Ni(this,e+=this._origin);return n&&n.array[e&It]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=Nt(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Ri(e,t).set(0,n):Ri(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,s={value:!1};t>=Oi(e._capacity)?r=ki(r,e.__ownerID,0,t,n,s):i=ki(i,e.__ownerID,e._level,t,n,s);if(!s.value)return e;if(e.__ownerID)return e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return Pi(e._origin,e._capacity,e._level,i,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=St,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Ci()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Ri(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},t.prototype.pop=function(){return Ri(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){Ri(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},t.prototype.shift=function(){return Ri(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],s=e("string"!=typeof i&&pn(i)?i:[i]);0!==s.size&&n.push(s)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations(function(e){n.forEach(function(t){return t.forEach(function(t){return e.push(t)})})}):this.constructor(n[0])},t.prototype.setSize=function(e){return Ri(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,r))})},t.prototype.slice=function(e,t){var n=this.size;return Ot(e,t,n)?this:Ri(this,Mt(e,n),Dt(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=Ii(this,t);return new un(function(){var i=r();return i===wi?{value:void 0,done:!0}:cn(e,t?--n:n++,i)})},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=Ii(this,t);(n=i())!==wi&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Pi(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?Ci():(this.__ownerID=e,this.__altered=!1,this)},t}(Ht);_i.isList=Ei;var bi=_i.prototype;bi[vi]=!0,bi.delete=bi.remove,bi.merge=bi.concat,bi.setIn=Rr,bi.deleteIn=bi.removeIn=Mr,bi.update=Tr,bi.updateIn=Lr,bi.mergeIn=qr,bi.mergeDeepIn=Gr,bi.withMutations=Hr,bi.wasAltered=Xr,bi.asImmutable=Yr,bi["@@transducer/init"]=bi.asMutable=Kr,bi["@@transducer/step"]=function(e,t){return e.push(t)},bi["@@transducer/result"]=function(e){return e.asImmutable()};var Ai=function(e,t){this.array=e,this.ownerID=t};Ai.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&It;if(r>=this.array.length)return new Ai([],e);var i,s=0===r;if(t>0){var o=this.array[r];if((i=o&&o.removeBefore(e,t-St,n))===o&&s)return this}if(s&&!i)return this;var a=$i(this,e);if(!s)for(var h=0;h<r;h++)a.array[h]=void 0;return i&&(a.array[r]=i),a},Ai.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&It;if(i>=this.array.length)return this;if(t>0){var s=this.array[i];if((r=s&&s.removeAfter(e,t-St,n))===s&&i===this.array.length-1)return this}var o=$i(this,e);return o.array.splice(i+1),r&&(o.array[i]=r),o};var Si,wi={};function Ii(e,t){var n=e._origin,r=e._capacity,i=Oi(r),s=e._tail;return o(e._root,e._level,0);function o(e,a,h){return 0===a?function(e,o){var a=o===i?s&&s.array:e&&e.array,h=o>n?0:n-o,u=r-o;u>wt&&(u=wt);return function(){if(h===u)return wi;var e=t?--u:h++;return a&&a[e]}}(e,h):function(e,i,s){var a,h=e&&e.array,u=s>n?0:n-s>>i,c=1+(r-s>>i);c>wt&&(c=wt);return function(){for(;;){if(a){var e=a();if(e!==wi)return e;a=null}if(u===c)return wi;var n=t?--c:u++;a=o(h&&h[n],i-St,s+(n<<i))}}}(e,a,h)}}function Pi(e,t,n,r,i,s,o){var a=Object.create(bi);return a.size=t-e,a._origin=e,a._capacity=t,a._level=n,a._root=r,a._tail=i,a.__ownerID=s,a.__hash=o,a.__altered=!1,a}function Ci(){return Si||(Si=Pi(0,0,St))}function ki(e,t,n,r,i,s){var o,a=r>>>n&It,h=e&&a<e.array.length;if(!h&&void 0===i)return e;if(n>0){var u=e&&e.array[a],c=ki(u,t,n-St,r,i,s);return c===u?e:((o=$i(e,t)).array[a]=c,o)}return h&&e.array[a]===i?e:(s&&Ct(s),o=$i(e,t),void 0===i&&a===o.array.length-1?o.array.pop():o.array[a]=i,o)}function $i(e,t){return t&&e&&t===e.ownerID?e:new Ai(e?e.array.slice():[],t)}function Ni(e,t){if(t>=Oi(e._capacity))return e._tail;if(t<1<<e._level+St){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&It],r-=St;return n}}function Ri(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new kt,i=e._origin,s=e._capacity,o=i+t,a=void 0===n?s:n<0?s+n:i+n;if(o===i&&a===s)return e;if(o>=a)return e.clear();for(var h=e._level,u=e._root,c=0;o+c<0;)u=new Ai(u&&u.array.length?[void 0,u]:[],r),c+=1<<(h+=St);c&&(o+=c,i+=c,a+=c,s+=c);for(var l=Oi(s),p=Oi(a);p>=1<<h+St;)u=new Ai(u&&u.array.length?[u]:[],r),h+=St;var d=e._tail,f=p<l?Ni(e,a-1):p>l?new Ai([],r):d;if(d&&p>l&&o<s&&d.array.length){for(var m=u=$i(u,r),g=h;g>St;g-=St){var y=l>>>g&It;m=m.array[y]=$i(m.array[y],r)}m.array[l>>>St&It]=d}if(a<s&&(f=f&&f.removeAfter(r,0,a)),o>=p)o-=p,a-=p,h=St,u=null,f=f&&f.removeBefore(r,0,o);else if(o>i||p<l){for(c=0;u;){var x=o>>>h&It;if(x!==p>>>h&It)break;x&&(c+=(1<<h)*x),h-=St,u=u.array[x]}u&&o>i&&(u=u.removeBefore(r,h,o-c)),u&&p<l&&(u=u.removeAfter(r,h,p-c)),c&&(o-=c,a-=c)}return e.__ownerID?(e.size=a-o,e._origin=o,e._capacity=a,e._level=h,e._root=u,e._tail=f,e.__hash=void 0,e.__altered=!0,e):Pi(o,a,h,u,f)}function Oi(e){return e<wt?0:e-1>>>St<<St}var Mi,Di=function(e){function t(e){return null==e?Li():Rn(e)?e:Li().withMutations(function(t){var n=Gt(e);Er(n.size),n.forEach(function(e,n){return t.set(n,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Li()},t.prototype.set=function(e,t){return Vi(this,e,t)},t.prototype.remove=function(e){return Vi(this,e,Pt)},t.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ti(t,n,e,this.__hash):0===this.size?Li():(this.__ownerID=e,this._map=t,this._list=n,this)},t}(Qr);function Ti(e,t,n,r){var i=Object.create(Di.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function Li(){return Mi||(Mi=Ti(ui(),Ci()))}function Vi(e,t,n){var r,i,s=e._map,o=e._list,a=s.get(t),h=void 0!==a;if(n===Pt){if(!h)return e;o.size>=wt&&o.size>=2*s.size?(r=(i=o.filter(function(e,t){return void 0!==e&&a!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=s.remove(t),i=a===o.size-1?o.pop():o.set(a,void 0))}else if(h){if(n===o.get(a)[1])return e;r=s,i=o.set(a,[t,n])}else r=s.set(t,o.size),i=o.set(o.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Ti(r,i)}Di.isOrderedMap=Rn,Di.prototype[en]=!0,Di.prototype.delete=Di.prototype.remove;var Bi="@@__IMMUTABLE_STACK__@@";function zi(e){return Boolean(e&&e[Bi])}var ji=function(e){function t(e){return null==e?qi():zi(e)?e:qi().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=Nt(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Fi(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&zi(t))return t;Er(t.size);var n=this.size,r=this._head;return t.__iterate(function(e){n++,r={value:e,next:r}},!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):Fi(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):qi()},t.prototype.slice=function(t,n){if(Ot(t,n,this.size))return this;var r=Mt(t,this.size);if(Dt(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,s=this._head;r--;)s=s.next;return this.__ownerID?(this.size=i,this._head=s,this.__hash=void 0,this.__altered=!0,this):Fi(i,s)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Fi(this.size,this._head,e,this.__hash):0===this.size?qi():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new bn(this.toArray()).__iterate(function(t,r){return e(t,r,n)},t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new bn(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new un(function(){if(r){var t=r.value;return r=r.next,cn(e,n++,t)}return{value:void 0,done:!0}})},t}(Ht);ji.isStack=zi;var Wi,Ui=ji.prototype;function Fi(e,t,n,r){var i=Object.create(Ui);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function qi(){return Wi||(Wi=Fi(0))}Ui[Bi]=!0,Ui.shift=Ui.pop,Ui.unshift=Ui.push,Ui.unshiftAll=Ui.pushAll,Ui.withMutations=Hr,Ui.wasAltered=Xr,Ui.asImmutable=Yr,Ui["@@transducer/init"]=Ui.asMutable=Kr,Ui["@@transducer/step"]=function(e,t){return e.unshift(t)},Ui["@@transducer/result"]=function(e){return e.asImmutable()};var Gi="@@__IMMUTABLE_SET__@@";function Hi(e){return Boolean(e&&e[Gi])}function Ki(e){return Hi(e)&&tn(e)}function Yi(e,t){if(e===t)return!0;if(!Bt(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||jt(e)!==jt(t)||Ut(e)!==Ut(t)||tn(e)!==tn(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!Ft(e);if(tn(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&Mn(i[1],e)&&(n||Mn(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var s=e;e=t,t=s}var o=!0,a=t.__iterate(function(t,r){if(n?!e.has(t):i?!Mn(t,e.get(r,Pt)):!Mn(e.get(r,Pt),t))return o=!1,!1});return o&&e.size===a}function Xi(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Qi(e){if(!e||"object"!=typeof e)return e;if(!Bt(e)){if(!Ar(e))return e;e=xn(e)}if(jt(e)){var t={};return e.__iterate(function(e,n){t[n]=Qi(e)}),t}var n=[];return e.__iterate(function(e){n.push(Qi(e))}),n}var Ji=function(e){function t(t){return null==t?rs():Hi(t)&&!tn(t)?t:rs().withMutations(function(n){var r=e(t);Er(r.size),r.forEach(function(e){return n.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(Gt(e).keySeq())},t.intersect=function(e){return(e=qt(e).toArray()).length?es.intersect.apply(t(e.pop()),e):rs()},t.union=function(e){return(e=qt(e).toArray()).length?es.union.apply(t(e.pop()),e):rs()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return ts(this,this._map.set(e,e))},t.prototype.remove=function(e){return ts(this,this._map.remove(e))},t.prototype.clear=function(){return ts(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=[],i=[];return this.forEach(function(s){var o=e.call(t,s,s,n);o!==s&&(r.push(s),i.push(o))}),this.withMutations(function(e){r.forEach(function(t){return e.remove(t)}),i.forEach(function(t){return e.add(t)})})},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(n){for(var r=0;r<t.length;r++)e(t[r]).forEach(function(e){return n.add(e)})}):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.every(function(t){return t.includes(e)})||r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.sort=function(e){return _s(hr(this,e))},t.prototype.sortBy=function(e,t){return _s(hr(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(Kt);Ji.isSet=Hi;var Zi,es=Ji.prototype;function ts(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function ns(e,t){var n=Object.create(es);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function rs(){return Zi||(Zi=ns(ui()))}es[Gi]=!0,es.delete=es.remove,es.merge=es.concat=es.union,es.withMutations=Hr,es.asImmutable=Yr,es["@@transducer/init"]=es.asMutable=Kr,es["@@transducer/step"]=function(e,t){return e.add(t)},es["@@transducer/result"]=function(e){return e.asImmutable()},es.__empty=rs,es.__make=ns;var is,ss=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(vr(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(is)return is;is=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+Nt(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return Ot(e,n,this.size)?this:(e=Mt(e,this.size),(n=Dt(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,s=0;s!==n&&!1!==e(i,t?n-++s:s++,this);)i+=t?-r:r;return s},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,s=0;return new un(function(){if(s===n)return{value:void 0,done:!0};var o=i;return i+=t?-r:r,cn(e,t?n-++s:s++,o)})},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:Yi(this,e)},t}(En);function os(e,t,n){for(var r=_r(t),i=0;i!==r.length;)if((e=Ir(e,r[i++],Pt))===Pt)return n;return e}function as(e,t){return os(this,e,t)}function hs(e,t){return os(e,t,Pt)!==Pt}function us(){Er(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e}qt.isIterable=Bt,qt.isKeyed=jt,qt.isIndexed=Ut,qt.isAssociative=Ft,qt.isOrdered=tn,qt.Iterator=un,Xi(qt,{toArray:function(){Er(this.size);var e=new Array(this.size||0),t=jt(this),n=0;return this.__iterate(function(r,i){e[n++]=t?[i,r]:r}),e},toIndexedSeq:function(){return new Qn(this)},toJS:function(){return Qi(this)},toKeyedSeq:function(){return new Xn(this,!0)},toMap:function(){return Qr(this.toKeyedSeq())},toObject:us,toOrderedMap:function(){return Di(this.toKeyedSeq())},toOrderedSet:function(){return _s(jt(this)?this.valueSeq():this)},toSet:function(){return Ji(jt(this)?this.valueSeq():this)},toSetSeq:function(){return new Jn(this)},toSeq:function(){return Ut(this)?this.toIndexedSeq():jt(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return ji(jt(this)?this.valueSeq():this)},toList:function(){return _i(jt(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return pr(this,or(this,e))},includes:function(e){return this.some(function(t){return Mn(t,e)})},entries:function(){return this.__iterator(sn)},every:function(e,t){Er(this.size);var n=!0;return this.__iterate(function(r,i,s){if(!e.call(t,r,i,s))return n=!1,!1}),n},filter:function(e,t){return pr(this,rr(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Er(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Er(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""}),t},keys:function(){return this.__iterator(nn)},map:function(e,t){return pr(this,tr(this,e,t))},reduce:function(e,t,n){return ds(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return ds(this,e,t,n,arguments.length<2,!0)},reverse:function(){return pr(this,nr(this,!0))},slice:function(e,t){return pr(this,ir(this,e,t,!0))},some:function(e,t){return!this.every(gs(e),t)},sort:function(e){return pr(this,hr(this,e))},values:function(){return this.__iterator(rn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return $t(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Qr().asMutable();return e.__iterate(function(i,s){r.update(t.call(n,i,s,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return Yi(this,e)},entrySeq:function(){var e=this;if(e._cache)return new bn(e._cache);var t=e.toSeq().map(ms).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(gs(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,s){if(e.call(t,n,i,s))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(Rt,null,e)},flatMap:function(e,t){return pr(this,function(e,t,n){var r=fr(e);return e.toSeq().map(function(i,s){return r(t.call(n,i,s,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return pr(this,ar(this,e,!0))},fromEntrySeq:function(){return new Zn(this)},get:function(e,t){return this.find(function(t,n){return Mn(n,e)},void 0,t)},getIn:as,groupBy:function(e,t){return function(e,t,n){var r=jt(e),i=(tn(e)?Di():Qr()).asMutable();e.__iterate(function(s,o){i.update(t.call(n,s,o,e),function(e){return(e=e||[]).push(r?[o,s]:s),e})});var s=fr(e);return i.map(function(t){return pr(e,s(t))}).asImmutable()}(this,e,t)},has:function(e){return this.get(e,Pt)!==Pt},hasIn:function(e){return hs(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:qt(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:qt(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return Mn(t,e)})},keySeq:function(){return this.toSeq().map(fs).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return ur(this,e)},maxBy:function(e,t){return ur(this,t,e)},min:function(e){return ur(this,e?ys(e):vs)},minBy:function(e,t){return ur(this,t?ys(t):vs,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return pr(this,sr(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(gs(e),t)},sortBy:function(e,t){return pr(this,hr(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return pr(this,function(e,t,n){var r=mr(e);return r.__iterateUncached=function(r,i){var s=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return e.__iterate(function(e,i,a){return t.call(n,e,i,a)&&++o&&r(e,i,s)}),o},r.__iteratorUncached=function(r,i){var s=this;if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(sn,i),a=!0;return new un(function(){if(!a)return{value:void 0,done:!0};var e=o.next();if(e.done)return e;var i=e.value,h=i[0],u=i[1];return t.call(n,u,h,s)?r===sn?e:cn(r,h,u,e):(a=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(gs(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=tn(e),n=jt(e),r=t?1:0;return function(e,t){return t=Dn(t,3432918353),t=Dn(t<<15|t>>>-15,461845907),t=Dn(t<<13|t>>>-13,5),t=Dn((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Tn((t=Dn(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Es(Vn(e),Vn(t))|0}:function(e,t){r=r+Es(Vn(e),Vn(t))|0}:t?function(e){r=31*r+Vn(e)|0}:function(e){r=r+Vn(e)|0}),r)}(this))}});var cs=qt.prototype;cs[Vt]=!0,cs[hn]=cs.values,cs.toJSON=cs.toArray,cs.__toStringMapper=Sr,cs.inspect=cs.toSource=function(){return this.toString()},cs.chain=cs.flatMap,cs.contains=cs.includes,Xi(Gt,{flip:function(){return pr(this,er(this))},mapEntries:function(e,t){var n=this,r=0;return pr(this,this.toSeq().map(function(i,s){return e.call(t,[s,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return pr(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var ls=Gt.prototype;ls[zt]=!0,ls[hn]=cs.entries,ls.toJSON=us,ls.__toStringMapper=function(e,t){return Sr(t)+": "+Sr(e)},Xi(Ht,{toKeyedSeq:function(){return new Xn(this,!1)},filter:function(e,t){return pr(this,rr(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return pr(this,nr(this,!1))},slice:function(e,t){return pr(this,ir(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=Mt(e,e<0?this.count():this.size);var r=this.slice(0,e);return pr(this,1===n?r:r.concat(xr(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return pr(this,ar(this,e,!1))},get:function(e,t){return(e=Nt(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=Nt(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return pr(this,function(e,t){var n=mr(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,s=0;return e.__iterate(function(e){return(!s||!1!==n(t,s++,i))&&!1!==n(e,s++,i)},r),s},n.__iteratorUncached=function(n,r){var i,s=e.__iterator(rn,r),o=0;return new un(function(){return(!i||o%2)&&(i=s.next()).done?i:o%2?cn(n,o++,t):cn(n,o++,i.value,i)})},n}(this,e))},interleave:function(){var e=[this].concat(xr(arguments)),t=lr(this.toSeq(),En.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),pr(this,n)},keySeq:function(){return ss(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return pr(this,sr(this,e,t,!1))},zip:function(){var e=[this].concat(xr(arguments));return pr(this,lr(this,xs,e))},zipAll:function(){var e=[this].concat(xr(arguments));return pr(this,lr(this,xs,e,!0))},zipWith:function(e){var t=xr(arguments);return t[0]=this,pr(this,lr(this,e,t))}});var ps=Ht.prototype;function ds(e,t,n,r,i,s){return Er(e.size),e.__iterate(function(e,s,o){i?(i=!1,n=e):n=t.call(r,n,e,s,o)},s),n}function fs(e,t){return t}function ms(e,t){return[t,e]}function gs(e){return function(){return!e.apply(this,arguments)}}function ys(e){return function(){return-e.apply(this,arguments)}}function xs(){return xr(arguments)}function vs(e,t){return e<t?1:e>t?-1:0}function Es(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}ps[Wt]=!0,ps[en]=!0,Xi(Kt,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),Kt.prototype.has=cs.includes,Kt.prototype.contains=Kt.prototype.includes,Xi(vn,Gt.prototype),Xi(En,Ht.prototype),Xi(_n,Kt.prototype);var _s=function(e){function t(e){return null==e?ws():Ki(e)?e:ws().withMutations(function(t){var n=Kt(e);Er(n.size),n.forEach(function(e){return t.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(Gt(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Ji);_s.isOrderedSet=Ki;var bs,As=_s.prototype;function Ss(e,t){var n=Object.create(As);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function ws(){return bs||(bs=Ss(Li()))}As[en]=!0,As.zip=ps.zip,As.zipWith=ps.zipWith,As.__empty=ws,As.__make=Ss;var Is=function(e,t){var n,r=function(s){var o=this;if(s instanceof r)return s;if(!(this instanceof r))return new r(s);if(!n){n=!0;var a=Object.keys(e),h=i._indices={};i._name=t,i._keys=a,i._defaultValues=e;for(var u=0;u<a.length;u++){var c=a[u];h[c]=u,i[c]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+$s(this)+' with property "'+c+'" since that property name is part of the Record API.'):Rs(i,c)}}this.__ownerID=void 0,this._values=_i().withMutations(function(e){e.setSize(o._keys.length),Gt(s).forEach(function(t,n){e.set(o._indices[n],t===o._defaultValues[n]?void 0:t)})})},i=r.prototype=Object.create(Cs);return i.constructor=r,t&&(r.displayName=t),r};Is.prototype.toString=function(){for(var e,t=$s(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+Sr(this.get(e));return t+" }"},Is.prototype.equals=function(e){return this===e||e&&this._keys===e._keys&&Ns(this).equals(Ns(e))},Is.prototype.hashCode=function(){return Ns(this).hashCode()},Is.prototype.has=function(e){return this._indices.hasOwnProperty(e)},Is.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},Is.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return ks(this,n)}return this},Is.prototype.remove=function(e){return this.set(e)},Is.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:ks(this,e)},Is.prototype.wasAltered=function(){return this._values.wasAltered()},Is.prototype.toSeq=function(){return Ns(this)},Is.prototype.toJS=function(){return Qi(this)},Is.prototype.entries=function(){return this.__iterator(sn)},Is.prototype.__iterator=function(e,t){return Ns(this).__iterator(e,t)},Is.prototype.__iterate=function(e,t){return Ns(this).__iterate(e,t)},Is.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?ks(this,t,e):(this.__ownerID=e,this._values=t,this)},Is.isRecord=Jt,Is.getDescriptiveName=$s;var Ps,Cs=Is.prototype;function ks(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function $s(e){return e.constructor.displayName||e.constructor.name||"Record"}function Ns(e){return Pn(e._keys.map(function(t){return[t,e.get(t)]}))}function Rs(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){vr(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}function Os(e,t){return jt(t)?t.toMap():t.toList()}Cs[Qt]=!0,Cs.delete=Cs.remove,Cs.deleteIn=Cs.removeIn=Mr,Cs.getIn=as,Cs.hasIn=cs.hasIn,Cs.merge=Vr,Cs.mergeWith=Br,Cs.mergeIn=qr,Cs.mergeDeep=Ur,Cs.mergeDeepWith=Fr,Cs.mergeDeepIn=Gr,Cs.setIn=Rr,Cs.update=Tr,Cs.updateIn=Lr,Cs.withMutations=Hr,Cs.asMutable=Kr,Cs.asImmutable=Yr,Cs[hn]=Cs.entries,Cs.toJSON=Cs.toObject=cs.toObject,Cs.inspect=Cs.toSource=function(){return this.toString()};var Ms,Ds={version:"4.0.0-rc.11",Collection:qt,Iterable:qt,Seq:xn,Map:Qr,OrderedMap:Di,List:_i,Stack:ji,Set:Ji,OrderedSet:_s,Record:Is,Range:ss,Repeat:function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(Ps)return Ps;Ps=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return Mn(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return Ot(e,n,r)?this:new t(this._value,Dt(n,r)-Mt(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return Mn(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return Mn(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,i=0;return new un(function(){return i===r?{value:void 0,done:!0}:cn(e,t?r-++i:i++,n._value)})},t.prototype.equals=function(e){return e instanceof t?Mn(this._value,e._value):Yi(e)},t}(En),is:Mn,fromJS:function(e,t){return function e(t,n,r,i,s,o){var a=Array.isArray(r)?En:br(r)?vn:null;if(a){if(~t.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");t.push(r),s&&""!==i&&s.push(i);var h=n.call(o,i,a(r).map(function(i,o){return e(t,n,i,o,s,r)}),s&&s.slice());return t.pop(),s&&s.pop(),h}return r}([],t||Os,e,"",t&&t.length>2?[]:void 0,{"":e})},hash:Vn,isImmutable:Zt,isCollection:Bt,isKeyed:jt,isIndexed:Ut,isAssociative:Ft,isOrdered:tn,isValueObject:On,isSeq:Xt,isList:Ei,isMap:Nn,isOrderedMap:Rn,isStack:zi,isSet:Hi,isOrderedSet:Ki,isRecord:Jt,get:Ir,getIn:os,has:wr,hasIn:hs,merge:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Wr(e,t)},mergeDeep:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return jr(e,t)},mergeWith:function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Wr(t,n,e)},mergeDeepWith:function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return jr(t,n,e)},remove:Cr,removeIn:Or,set:kr,setIn:Nr,update:Dr,updateIn:$r};!function(e){e[e.IGNORED_LABELS=0]="IGNORED_LABELS",e[e.ACCESSED_NODES=1]="ACCESSED_NODES",e[e.ASSIGNED_NODES=2]="ASSIGNED_NODES",e[e.IGNORE_BREAK_STATEMENTS=3]="IGNORE_BREAK_STATEMENTS",e[e.IGNORE_RETURN_AWAIT_YIELD=4]="IGNORE_RETURN_AWAIT_YIELD",e[e.NODES_CALLED_AT_PATH_WITH_OPTIONS=5]="NODES_CALLED_AT_PATH_WITH_OPTIONS",e[e.REPLACED_VARIABLE_INITS=6]="REPLACED_VARIABLE_INITS",e[e.RETURN_EXPRESSIONS_ACCESSED_AT_PATH=7]="RETURN_EXPRESSIONS_ACCESSED_AT_PATH",e[e.RETURN_EXPRESSIONS_ASSIGNED_AT_PATH=8]="RETURN_EXPRESSIONS_ASSIGNED_AT_PATH",e[e.RETURN_EXPRESSIONS_CALLED_AT_PATH=9]="RETURN_EXPRESSIONS_CALLED_AT_PATH"}(Ms||(Ms={}));const Ts={};class Ls{static create(){return new this(Ds.Map())}constructor(e){this.optionValues=e}addAccessedNodeAtPath(e,t){return this.setIn([Ms.ACCESSED_NODES,t,...e,Ts],!0)}addAccessedReturnExpressionAtPath(e,t){return this.setIn([Ms.RETURN_EXPRESSIONS_ACCESSED_AT_PATH,t,...e,Ts],!0)}addAssignedNodeAtPath(e,t){return this.setIn([Ms.ASSIGNED_NODES,t,...e,Ts],!0)}addAssignedReturnExpressionAtPath(e,t){return this.setIn([Ms.RETURN_EXPRESSIONS_ASSIGNED_AT_PATH,t,...e,Ts],!0)}addCalledNodeAtPathWithOptions(e,t,n){return this.setIn([Ms.NODES_CALLED_AT_PATH_WITH_OPTIONS,t,...e,Ts,n],!0)}addCalledReturnExpressionAtPath(e,t){return this.setIn([Ms.RETURN_EXPRESSIONS_CALLED_AT_PATH,t,...e,Ts],!0)}getHasEffectsWhenCalledOptions(){return this.setIgnoreReturnAwaitYield().setIgnoreBreakStatements(!1).setIgnoreNoLabels()}getReplacedVariableInit(e){return this.optionValues.getIn([Ms.REPLACED_VARIABLE_INITS,e])}hasNodeBeenAccessedAtPath(e,t){return this.optionValues.getIn([Ms.ACCESSED_NODES,t,...e,Ts])}hasNodeBeenAssignedAtPath(e,t){return this.optionValues.getIn([Ms.ASSIGNED_NODES,t,...e,Ts])}hasNodeBeenCalledAtPathWithOptions(e,t,n){const r=this.optionValues.getIn([Ms.NODES_CALLED_AT_PATH_WITH_OPTIONS,t,...e,Ts]);return r&&r.find((e,t)=>t.equals(n))}hasReturnExpressionBeenAccessedAtPath(e,t){return this.optionValues.getIn([Ms.RETURN_EXPRESSIONS_ACCESSED_AT_PATH,t,...e,Ts])}hasReturnExpressionBeenAssignedAtPath(e,t){return this.optionValues.getIn([Ms.RETURN_EXPRESSIONS_ASSIGNED_AT_PATH,t,...e,Ts])}hasReturnExpressionBeenCalledAtPath(e,t){return this.optionValues.getIn([Ms.RETURN_EXPRESSIONS_CALLED_AT_PATH,t,...e,Ts])}ignoreBreakStatements(){return this.get(Ms.IGNORE_BREAK_STATEMENTS)}ignoreLabel(e){return this.optionValues.getIn([Ms.IGNORED_LABELS,e])}ignoreReturnAwaitYield(){return this.get(Ms.IGNORE_RETURN_AWAIT_YIELD)}replaceVariableInit(e,t){return this.setIn([Ms.REPLACED_VARIABLE_INITS,e],t)}setIgnoreBreakStatements(e=!0){return this.set(Ms.IGNORE_BREAK_STATEMENTS,e)}setIgnoreLabel(e){return this.setIn([Ms.IGNORED_LABELS,e],!0)}setIgnoreNoLabels(){return this.remove(Ms.IGNORED_LABELS)}setIgnoreReturnAwaitYield(e=!0){return this.set(Ms.IGNORE_RETURN_AWAIT_YIELD,e)}get(e){return this.optionValues.get(e)}remove(e){return new Ls(this.optionValues.remove(e))}set(e,t){return new Ls(this.optionValues.set(e,t))}setIn(e,t){return new Ls(this.optionValues.setIn(e,t))}}const Vs={Literal:[],Program:["body"]};const Bs="variables",zs=Ls.create();class js{constructor(e,t,n){this.included=!1,this.keys=Vs[e.type]||function(e){return Vs[e.type]=Object.keys(e).filter(t=>"object"==typeof e[t]),Vs[e.type]}(e),this.parent=t,this.context=t.context,this.createScope(n),this.parseNode(e),this.initialise(),this.context.magicString.addSourcemapLocation(this.start),this.context.magicString.addSourcemapLocation(this.end)}bind(){for(const e of this.keys){const t=this[e];if(null!==t&&"annotations"!==e)if(Array.isArray(t))for(const e of t)null!==e&&e.bind();else t.bind()}}createScope(e){this.scope=e}declare(e,t){return[]}deoptimizePath(e){}getLiteralValueAtPath(e,t,n){return Ie}getReturnExpressionWhenCalledAtPath(e,t,n){return Pe}hasEffects(e){for(const t of this.keys){const n=this[t];if(null!==n&&"annotations"!==t)if(Array.isArray(n)){for(const t of n)if(null!==t&&t.hasEffects(e))return!0}else if(n.hasEffects(e))return!0}return!1}hasEffectsWhenAccessedAtPath(e,t){return e.length>0}hasEffectsWhenAssignedAtPath(e,t){return!0}hasEffectsWhenCalledAtPath(e,t,n){return!0}include(e){this.included=!0;for(const t of this.keys){const n=this[t];if(null!==n&&"annotations"!==t)if(Array.isArray(n))for(const t of n)null!==t&&t.include(e);else n.include(e)}}includeCallArguments(e){for(const t of e)t.include(!1)}includeWithAllDeclaredVariables(e){this.include(e)}initialise(){}insertSemicolon(e){";"!==e.original[this.end-1]&&e.appendLeft(this.end,";")}locate(){const e=At(this.context.code,this.start,{offsetLine:1});return e.file=this.context.fileName,e.toString=()=>JSON.stringify(e),e}parseNode(e){for(const t of Object.keys(e)){if(this.hasOwnProperty(t))continue;const n=e[t];if("object"!=typeof n||null===n||"annotations"===t)this[t]=n;else if(Array.isArray(n)){this[t]=[];for(const e of n)this[t].push(null===e?null:new(this.context.nodeConstructors[e.type]||this.context.nodeConstructors.UnknownNode)(e,this,this.scope))}else this[t]=new(this.context.nodeConstructors[n.type]||this.context.nodeConstructors.UnknownNode)(n,this,this.scope)}}render(e,t){for(const n of this.keys){const r=this[n];if(null!==r&&"annotations"!==n)if(Array.isArray(r))for(const n of r)null!==n&&n.render(e,t);else r.render(e,t)}}shouldBeIncluded(){return this.included||this.hasEffects(zs)}toString(){return this.context.code.slice(this.start,this.end)}}class Ws extends js{createScope(e){this.scope=new bt(e)}hasEffectsWhenAccessedAtPath(e,t){return e.length>1}hasEffectsWhenAssignedAtPath(e,t){return e.length>1}hasEffectsWhenCalledAtPath(e,t,n){return this.body.hasEffectsWhenCalledAtPath(e,t,n)||null!==this.superClass&&this.superClass.hasEffectsWhenCalledAtPath(e,t,n)}initialise(){null!==this.id&&this.id.declare("class",this)}}class Us extends Ws{initialise(){super.initialise(),null!==this.id&&(this.id.variable.isId=!0)}parseNode(e){null!==e.id&&(this.id=new this.context.nodeConstructors.Identifier(e.id,this,this.scope.parent)),super.parseNode(e)}render(e,t){"system"===t.format&&this.id&&this.id.variable.exportName&&e.appendLeft(this.end,` exports('${this.id.variable.exportName}', ${this.id.variable.getName()});`),super.render(e,t)}}class Fs extends Et{constructor(e){super("arguments",null,Pe,e)}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(){return!0}hasEffectsWhenCalledAtPath(){return!0}}class qs extends Et{constructor(e){super("this",null,null,e)}_getInit(e){return e.getReplacedVariableInit(this)||Pe}getLiteralValueAtPath(){return Ie}hasEffectsWhenAccessedAtPath(e,t){return this._getInit(t).hasEffectsWhenAccessedAtPath(e,t)||super.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return this._getInit(t).hasEffectsWhenAssignedAtPath(e,t)||super.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,n){return this._getInit(n).hasEffectsWhenCalledAtPath(e,t,n)||super.hasEffectsWhenCalledAtPath(e,t,n)}}class Gs extends bt{constructor(e,t){super(e),this.parameters=[],this.hasRest=!1,this.context=t,this.hoistedBodyVarScope=new bt(this)}addParameterDeclaration(e){const t=e.name;let n=this.hoistedBodyVarScope.variables.get(t);return n?n.addDeclaration(e,null):n=new Et(t,e,Pe,this.context),this.variables.set(t,n),n}addParameterVariables(e,t){this.parameters=e;for(const t of e)for(const e of t)e.alwaysRendered=!0;this.hasRest=t}includeCallArguments(e){let t=!1,n=!1;const r=this.hasRest&&this.parameters[this.parameters.length-1];for(let i=e.length-1;i>=0;i--){const s=this.parameters[i]||r,o=e[i];if(s){t=!1;for(const e of s)e.included&&(n=!0),e.calledFromTryStatement&&(t=!0)}!n&&o.shouldBeIncluded()&&(n=!0),n&&o.include(t)}}}class Hs extends Gs{constructor(){super(...arguments),this.returnExpression=null,this.returnExpressions=[]}addReturnExpression(e){this.returnExpressions.push(e)}getReturnExpression(){return null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression}updateReturnExpression(){if(1===this.returnExpressions.length)this.returnExpression=this.returnExpressions[0];else{this.returnExpression=Pe;for(const e of this.returnExpressions)e.deoptimizePath(Se)}}}class Ks extends Hs{constructor(e,t){super(e,t),this.variables.set("arguments",this.argumentsVariable=new Fs(t)),this.variables.set("this",this.thisVariable=new qs(t))}findLexicalBoundary(){return this}getOptionsWhenCalledWith({withNew:e},t){return t.replaceVariableInit(this.thisVariable,e?new qe:Pe)}includeCallArguments(e){if(super.includeCallArguments(e),this.argumentsVariable.included)for(const t of e)t.included||t.include(!1)}}class Ys extends js{constructor(){super(...arguments),this.variable=null,this.bound=!1}addExportedVariables(e){null!==this.variable&&this.variable.exportName&&e.push(this.variable)}bind(){this.bound||(this.bound=!0,null===this.variable&&function e(t,n){if("MemberExpression"===t.type)return!t.computed&&e(t.object,t);if("Identifier"===t.type)switch(n.type){case"MemberExpression":return n.computed||t===n.object;case"MethodDefinition":return n.computed;case"Property":return n.computed||t===n.value;case"ExportSpecifier":return t===n.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}return!1}(this,this.parent)&&(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this)),null!==this.variable&&this.variable instanceof Et&&null!==this.variable.additionalInitializers&&this.variable.consolidateInitializers())}declare(e,t){let n;switch(e){case"var":case"function":n=this.scope.addDeclaration(this,this.context,t,!0);break;case"let":case"const":case"class":n=this.scope.addDeclaration(this,this.context,t,!1);break;case"parameter":n=this.scope.addParameterDeclaration(this);break;default:throw new Error(`Unexpected identifier kind ${e}.`)}return[this.variable=n]}deoptimizePath(e){this.bound||this.bind(),null!==this.variable&&(0===e.length&&this.name in this.context.importDescriptions&&!this.scope.contains(this.name)&&this.disallowImportReassignment(),this.variable.deoptimizePath(e))}getLiteralValueAtPath(e,t,n){return this.bound||this.bind(),null!==this.variable?this.variable.getLiteralValueAtPath(e,t,n):Ie}getReturnExpressionWhenCalledAtPath(e,t,n){return this.bound||this.bind(),null!==this.variable?this.variable.getReturnExpressionWhenCalledAtPath(e,t,n):Pe}hasEffectsWhenAccessedAtPath(e,t){return null!==this.variable&&this.variable.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return!this.variable||this.variable.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,n){return!this.variable||this.variable.hasEffectsWhenCalledAtPath(e,t,n)}include(){this.included||(this.included=!0,null!==this.variable&&this.context.includeVariable(this.variable))}includeCallArguments(e){this.variable&&this.variable.includeCallArguments(e)}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:r,isShorthandProperty:i}=X){if(this.variable){const t=this.variable.getName();t!==this.name&&(e.overwrite(this.start,this.end,t,{contentOnly:!0,storeName:!0}),i&&e.prependRight(this.start,`${this.name}: `)),"eval"===t&&n===J&&r&&e.appendRight(this.start,"0, ")}}disallowImportReassignment(){this.context.error({code:"ILLEGAL_REASSIGNMENT",message:`Illegal reassignment to import '${this.name}'`},this.start)}}class Xs extends js{constructor(){super(...arguments),this.declarationInit=null}addExportedVariables(e){this.argument.addExportedVariables(e)}bind(){super.bind(),null!==this.declarationInit&&this.declarationInit.deoptimizePath([be,be])}declare(e,t){return this.declarationInit=t,this.argument.declare(e,Pe)}deoptimizePath(e){0===e.length&&this.argument.deoptimizePath(Ae)}hasEffectsWhenAssignedAtPath(e,t){return e.length>0||this.argument.hasEffectsWhenAssignedAtPath(Ae,t)}}class Qs extends js{constructor(){super(...arguments),this.isPrototypeDeoptimized=!1}createScope(e){this.scope=new Ks(e,this.context)}deoptimizePath(e){1===e.length&&("prototype"===e[0]?this.isPrototypeDeoptimized=!0:e[0]===be&&(this.isPrototypeDeoptimized=!0,this.scope.getReturnExpression().deoptimizePath(Se)))}getReturnExpressionWhenCalledAtPath(e){return 0===e.length?this.scope.getReturnExpression():Pe}hasEffects(e){return null!==this.id&&this.id.hasEffects(e)}hasEffectsWhenAccessedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0]||this.isPrototypeDeoptimized)}hasEffectsWhenAssignedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0]||this.isPrototypeDeoptimized)}hasEffectsWhenCalledAtPath(e,t,n){if(e.length>0)return!0;const r=this.scope.getOptionsWhenCalledWith(t,n);for(const e of this.params)if(e.hasEffects(r))return!0;return this.body.hasEffects(r)}include(e){this.included=!0,this.body.include(e),this.id&&this.id.include();const t=this.scope.argumentsVariable.included;for(const n of this.params)n instanceof Ys&&!t||n.include(e)}includeCallArguments(e){this.scope.includeCallArguments(e)}initialise(){null!==this.id&&this.id.declare("function",this),this.scope.addParameterVariables(this.params.map(e=>e.declare("parameter",Pe)),this.params[this.params.length-1]instanceof Xs),this.body.addImplicitReturnExpressionToScope()}parseNode(e){this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope.hoistedBodyVarScope),super.parseNode(e)}}Qs.prototype.preventChildBlockScope=!0;class Js extends Qs{initialise(){super.initialise(),null!==this.id&&(this.id.variable.isId=!0)}parseNode(e){null!==e.id&&(this.id=new this.context.nodeConstructors.Identifier(e.id,this,this.scope.parent)),super.parseNode(e)}}const Zs=/\s/;class eo extends js{include(e){super.include(e),e&&this.context.includeVariable(this.variable)}initialise(){const e=this.declaration;this.declarationName=e.id&&e.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this.declarationName||this.context.getModuleName(),this,this.context),this.context.addExport(this)}render(e,t,{start:n,end:r}=X){const i=function(e,t=0){for(t=pe(e,"default",t)+7;Zs.test(e[t]);)t++;return t}(e.original,this.start);if(this.declaration instanceof Js)this.renderNamedDeclaration(e,i,"function",null===this.declaration.id,t);else if(this.declaration instanceof Us)this.renderNamedDeclaration(e,i,"class",null===this.declaration.id,t);else{if(this.variable.getOriginalVariable()!==this.variable)return void("system"===t.format&&this.variable.exportName?e.overwrite(n,r,`exports('${this.variable.exportName}', ${this.variable.getName()});`):ue(this,e,n,r));if(!this.variable.included)return e.remove(this.start,i),this.declaration.render(e,t,{isCalleeOfRenderedParent:!1,renderedParentType:ee}),void(";"!==e.original[this.end-1]&&e.appendLeft(this.end,";"));this.renderVariableDeclaration(e,i,t)}this.declaration.render(e,t)}renderNamedDeclaration(e,t,n,r,i){const s=this.variable.getName();e.remove(this.start,t),r&&e.appendLeft(function(e,t,n=0){const r=pe(e,t,n)+t.length;e=e.slice(r,pe(e,"{",r));const i=pe(e,"*");return-1===i?r:r+i+1}(e.original,n,t),` ${s}`),"system"===i.format&&this.declaration instanceof Us&&this.variable.exportName&&e.appendLeft(this.end,` exports('${this.variable.exportName}', ${s});`)}renderVariableDeclaration(e,t,n){const r="system"===n.format&&this.variable.exportName?`exports('${this.variable.exportName}', `:"";e.overwrite(this.start,t,`${n.varOrConst} ${this.variable.getName()} = ${r}`);const i=59===e.original.charCodeAt(this.end-1);r?e.appendRight(i?this.end-1:this.end,")"+(i?"":";")):i||e.appendLeft(this.end,";")}}eo.prototype.needsBoundaries=!0;class to extends Et{constructor(e,t,n){super(e,t,t.declaration,n),this.hasId=!1,this.originalId=null,this.originalVariable=null;const r=t.declaration;(r instanceof Js||r instanceof Us)&&r.id?(this.hasId=!0,this.originalId=r.id):r instanceof Ys&&(this.originalId=r)}addReference(e){this.hasId||(this.name=e.name)}getAssignedVariableName(){return this.originalId&&this.originalId.name||null}getName(){const e=this.getOriginalVariable();return e===this?super.getName():e.getName()}getOriginalVariable(){if(null===this.originalVariable)if(!this.originalId||!this.hasId&&this.originalId.variable.isReassigned)this.originalVariable=this;else{const e=this.originalId.variable;this.originalVariable=e instanceof to?e.getOriginalVariable():e}return this.originalVariable}setRenderNames(e,t){const n=this.getOriginalVariable();n===this?super.setRenderNames(e,t):n.setRenderNames(e,t)}setSafeName(e){const t=this.getOriginalVariable();t===this?super.setSafeName(e):t.setSafeName(e)}}to.prototype.getBaseVariableName=to.prototype.getName;const no="_missingExportShim",ro="_interopDefault",io="_interopNamespace";class so extends Ze{constructor(e){super(no),this.module=e}}const oo=["Array.isArray","Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape","Object","Object.create","Object.getNotifier","Object.getOwn","Object.getOwnPropertyDescriptor","Object.getOwnPropertyNames","Object.getOwnPropertySymbols","Object.getPrototypeOf","Object.is","Object.isExtensible","Object.isFrozen","Object.isSealed","Object.keys","Boolean","Number","Number.isFinite","Number.isInteger","Number.isNaN","Number.isSafeInteger","Number.parseFloat","Number.parseInt","Symbol","Symbol.for","Symbol.keyFor","Math.abs","Math.acos","Math.acosh","Math.asin","Math.asinh","Math.atan","Math.atan2","Math.atanh","Math.cbrt","Math.ceil","Math.clz32","Math.cos","Math.cosh","Math.exp","Math.expm1","Math.floor","Math.fround","Math.hypot","Math.imul","Math.log","Math.log10","Math.log1p","Math.log2","Math.max","Math.min","Math.pow","Math.random","Math.round","Math.sign","Math.sin","Math.sinh","Math.sqrt","Math.tan","Math.tanh","Math.trunc","Date","Date.UTC","Date.now","Date.parse","String","String.fromCharCode","String.fromCodePoint","String.raw","RegExp","Map","Set","WeakMap","WeakSet","ArrayBuffer","ArrayBuffer.isView","DataView","Promise.all","Promise.race","Promise.resolve","Intl.Collator","Intl.Collator.supportedLocalesOf","Intl.DateTimeFormat","Intl.DateTimeFormat.supportedLocalesOf","Intl.NumberFormat","Intl.NumberFormat.supportedLocalesOf"],ao="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" ");for(const e of ao)oo.push(e,`${e}.from`,`${e}.of`);const ho="Int8x16 Int16x8 Int32x4 Float32x4 Float64x2".split(" "),uo="abs add and bool check div equal extractLane fromFloat32x4 fromFloat32x4Bits fromFloat64x2 fromFloat64x2Bits fromInt16x8Bits fromInt32x4 fromInt32x4Bits fromInt8x16Bits greaterThan greaterThanOrEqual lessThan lessThanOrEqual load max maxNum min minNum mul neg not notEqual or reciprocalApproximation reciprocalSqrtApproximation replaceLane select selectBits shiftLeftByScalar shiftRightArithmeticByScalar shiftRightLogicalByScalar shuffle splat sqrt store sub swizzle xor".split(" ");for(const e of ho){const t=`SIMD.${e}`;oo.push(t);for(const e of uo)oo.push(`${t}.${e}`)}var co=new Set(oo);class lo extends Ze{hasEffectsWhenAccessedAtPath(e){return e.length>0&&!this.isPureFunctionMember(e)&&!("Reflect"===this.name&&1===e.length)}hasEffectsWhenCalledAtPath(e){return!co.has([this.name,...e].join("."))}isPureFunctionMember(e){return co.has([this.name,...e].join("."))||e.length>=1&&co.has([this.name,...e.slice(0,-1)].join("."))||e.length>=2&&co.has([this.name,...e.slice(0,-2)].join("."))&&"prototype"===e[e.length-2]}}class po extends Ze{constructor(e){super(e.getModuleName()),this.memberVariables=Object.create(null),this.containsExternalNamespace=!1,this.referencedEarly=!1,this.references=[],this.context=e,this.module=e.module;for(const e of this.context.getExports().concat(this.context.getReexports()))"*"===e[0]&&e.length>1&&(this.containsExternalNamespace=!0),this.memberVariables[e]=this.context.traceExport(e)}addReference(e){this.references.push(e),this.name=e.name}deoptimizePath(){for(const e in this.memberVariables)this.memberVariables[e].deoptimizePath(Se)}include(){if(!this.included){this.containsExternalNamespace&&this.context.error({code:"NAMESPACE_CANNOT_CONTAIN_EXTERNAL",id:this.module.id,message:`Cannot create an explicit namespace object for module "${this.context.getModuleName()}" because it contains a reexported external namespace`},void 0),this.included=!0;for(const e of this.references)if(e.context.getModuleExecIndex()<=this.context.getModuleExecIndex()){this.referencedEarly=!0;break}if(this.context.preserveModules)for(const e of Object.keys(this.memberVariables))this.memberVariables[e].include();else for(const e of Object.keys(this.memberVariables))this.context.includeVariable(this.memberVariables[e])}}renderBlock(e){const t=e.compact?"":" ",n=e.compact?"":"\n",r=e.indent,i=Object.keys(this.memberVariables).map(n=>{const i=this.memberVariables[n];if(this.referencedEarly||i.isReassigned)return`${r}get ${n}${t}()${t}{${t}return ${i.getName()}${e.compact?"":";"}${t}}`;const s=ve[n]?`'${n}'`:n;return`${r}${s}: ${i.getName()}`}),s=this.getName(),o=e.freeze?"/*#__PURE__*/Object.freeze":"";let a=`${e.varOrConst} ${s} = ${e.namespaceToStringTag?`{${n}${i.join(`,${n}`)}${n}};`:`${o}({${n}${i.join(`,${n}`)}${n}});`}`;return e.namespaceToStringTag&&(a+=`${n}if${t}(typeof Symbol${t}!==${t}'undefined'${t}&&${t}Symbol.toStringTag)${n}`,a+=`${r}Object.defineProperty(${s},${t}Symbol.toStringTag,${t}{${t}value:${t}'Module'${t}});${n}`,a+=`else${n||" "}`,a+=`${r}Object.defineProperty(${s},${t}'toString',${t}{${t}value:${t}function${t}()${t}{${t}return${t}'[object Module]'${e.compact?";":""}${t}}${t}});${n}`,a+=`${o}(${s});`),"system"===e.format&&this.exportName&&(a+=`${n}exports('${this.exportName}',${t}${s});`),a}renderFirst(){return this.referencedEarly}}po.prototype.isNamespace=!0;const fo="Object.defineProperty(exports, '__esModule', { value: true });",mo="Object.defineProperty(exports,'__esModule',{value:true});";function go(e,t,n,r,i,s,o="return "){const a=i?"":" ",h=i?"":"\n";if(!n){let n;return e.some(e=>"default"===e.exported&&(n=e.local,!0)),n||t.some(e=>!!e.reexports&&e.reexports.some(t=>"default"===t.reexported&&(n=e.namedExportsMode?`${e.name}.${t.imported}`:e.name,!0))),`${o}${n};`}let u="";return t.forEach(({name:e,reexports:t})=>{t&&n&&t.forEach(t=>{"*"===t.reexported&&(!i&&u&&(u+="\n"),u+=`Object.keys(${e}).forEach(function${a}(k)${a}{${h}`+`${s}if${a}(k${a}!==${a}'default')${a}Object.defineProperty(exports,${a}k,${a}{${h}`+`${s}${s}enumerable:${a}true,${h}`+`${s}${s}get:${a}function${a}()${a}{${h}`+`${s}${s}${s}return ${e}[k];${h}`+`${s}${s}}${h}${s}});${h}});`)})}),t.forEach(({name:e,imports:t,reexports:o,isChunk:c,namedExportsMode:l})=>{o&&n&&o.forEach(n=>{if("default"!==n.imported||c)if("*"!==n.imported){u&&!i&&(u+="\n");const t="default"!==n.imported||l?`${e}.${n.imported}`:e;u+=n.needsLiveBinding?`Object.defineProperty(exports,${a}'${n.reexported}',${a}{${h}`+`${s}enumerable:${a}true,${h}`+`${s}get:${a}function${a}()${a}{${h}`+`${s}${s}return ${t};${h}${s}}${h}});`:`exports.${n.reexported}${a}=${a}${t};`}else"*"!==n.reexported&&(u&&!i&&(u+="\n"),u+=`exports.${n.reexported}${a}=${a}${e};`);else{const s=t&&t.some(e=>"default"!==e.imported)||o&&o.some(e=>"default"!==e.imported&&"*"!==e.imported),h=o&&o.some(e=>"default"===e.imported&&"default"===e.reexported);u&&!i&&(u+="\n"),u+=s||h?`exports.${n.reexported}${a}=${a}${e}${!1!==r?"__default":".default"};`:`exports.${n.reexported}${a}=${a}${e};`}})}),e.forEach(e=>{const t=`exports.${e.exported}`,n=e.local;t!==n&&(u&&!i&&(u+="\n"),u+=`${t}${a}=${a}${n};`)}),u}function yo(e,t,n){return e.map(({name:e,exportsNames:r,exportsDefault:i,namedExportsMode:s})=>{if(s)return i&&!1!==t.interop?r?t.compact?`${n} ${e}__default='default'in ${e}?${e}['default']:${e};`:`${n} ${e}__default = 'default' in ${e} ? ${e}['default'] : ${e};`:t.compact?`${e}=${e}&&${e}.hasOwnProperty('default')?${e}['default']:${e};`:`${e} = ${e} && ${e}.hasOwnProperty('default') ? ${e}['default'] : ${e};`:null}).filter(Boolean).join(t.compact?"":"\n")}function xo(e,t,n){return`function ${io}(e)${e}{${t}`+`${n}if${e}(e${e}&&${e}e.__esModule)${e}{${e}return e;${e}}${e}else${e}{${t}`+`${n}${n}var n${e}=${e}{};${t}`+`${n}${n}if${e}(e)${e}{${t}`+`${n}${n}${n}Object.keys(e).forEach(function${e}(k)${e}{${t}`+`${n}${n}${n}${n}var d${e}=${e}Object.getOwnPropertyDescriptor(e,${e}k);${t}`+`${n}${n}${n}${n}Object.defineProperty(n,${e}k,${e}d.get${e}?${e}d${e}:${e}{${t}`+`${n}${n}${n}${n}${n}enumerable:${e}true,${t}`+`${n}${n}${n}${n}${n}get:${e}function${e}()${e}{${t}`+`${n}${n}${n}${n}${n}${n}return e[k];${t}`+`${n}${n}${n}${n}${n}}${t}`+`${n}${n}${n}${n}});${t}`+`${n}${n}${n}});${t}`+`${n}${n}}${t}`+`${n}${n}n['default']${e}=${e}e;${t}`+`${n}${n}return n;${t}`+`${n}}${t}`+`}${t}${t}`}const vo={assert:!0,buffer:!0,console:!0,constants:!0,domain:!0,events:!0,http:!0,https:!0,os:!0,path:!0,process:!0,punycode:!0,querystring:!0,stream:!0,string_decoder:!0,timers:!0,tty:!0,url:!0,util:!0,vm:!0,zlib:!0};function Eo(e,t){const n=t.map(({id:e})=>e).filter(e=>e in vo);n.length&&e({code:"MISSING_NODE_BUILTINS",message:`Creating a browser bundle that depends on Node.js built-in ${1===n.length?`module ('${n[0]}')`:`modules (${n.slice(0,-1).map(e=>`'${e}'`).join(", ")} and '${n.slice(-1)}')`}. You might need to include https://www.npmjs.com/package/rollup-plugin-node-builtins`,modules:n})}function _o(e){return e.replace(/^\t+/,e=>e.split("\t").join(" "))}function bo(e,t,n){let r=e.split("\n");const i=Math.max(0,t-3);let s=Math.min(t+2,r.length);for(r=r.slice(i,s);!/\S/.test(r[r.length-1]);)r.pop(),s-=1;const o=String(s).length;return r.map((e,r)=>{const s=i+r+1===t;let a=String(r+i+1);for(;a.length<o;)a=` ${a}`;if(s){const t=function(e){let t="";for(;e--;)t+=" ";return t}(o+2+_o(e.slice(0,n)).length)+"^";return`${a}: ${_o(e)}\n${t}`}return`${a}: ${_o(e)}`}).join("\n")}function Ao(e){const t=pt(e);return t.substr(0,t.length-ft(e).length)}function So(e){return"undefined"!=typeof process&&ut(e)?mt(process.cwd(),e):e}function wo(e){return!("/"===e[0]||"."===e[1]&&("/"===e[2]||"."===e[2]&&"/"===e[3]))}function Io(e,t){throw e instanceof Error==!1&&(e=Object.assign(new Error(e.message),e)),t&&Object.assign(e,t),e}function Po(e,t,n,r){if("object"==typeof t){const{line:n,column:i}=t;e.loc={file:r,line:n,column:i}}else{e.pos=t;const{line:i,column:s}=At(n,t,{offsetLine:1});e.loc={file:r,line:i,column:s}}if(void 0===e.frame){const{line:t,column:r}=e.loc;e.frame=bo(n,t,r)}}var Co;function ko(e){return Object.assign({code:Co.DEPRECATED_FEATURE},"string"==typeof e?{message:e}:e)}function $o(e,t,n){return{code:Co.INVALID_CHUNK,message:`Cannot assign ${So(e)} to the "${t}" chunk as it is already in the "${n}" chunk.`}}function No(e,t,n){return{code:Co.NAMESPACE_CONFLICT,message:`Conflicting namespaces: ${So(t.id)} re-exports '${e}' from both ${So(t.exportsAll[e])} and ${So(n.exportsAll[e])} (will be ignored)`,name:e,reexporter:t.id,sources:[t.exportsAll[e],n.exportsAll[e]]}}!function(e){e.ASSET_NOT_FINALISED="ASSET_NOT_FINALISED",e.ASSET_NOT_FOUND="ASSET_NOT_FOUND",e.ASSET_SOURCE_ALREADY_SET="ASSET_SOURCE_ALREADY_SET",e.ASSET_SOURCE_MISSING="ASSET_SOURCE_MISSING",e.BAD_LOADER="BAD_LOADER",e.CHUNK_NOT_FOUND="CHUNK_NOT_FOUND",e.CHUNK_NOT_GENERATED="CHUNK_NOT_GENERATED",e.DEPRECATED_FEATURE="DEPRECATED_FEATURE",e.INVALID_ASSET_NAME="INVALID_ASSET_NAME",e.INVALID_CHUNK="INVALID_CHUNK",e.INVALID_EXTERNAL_ID="INVALID_EXTERNAL_ID",e.INVALID_OPTION="INVALID_OPTION",e.INVALID_PLUGIN_HOOK="INVALID_PLUGIN_HOOK",e.INVALID_ROLLUP_PHASE="INVALID_ROLLUP_PHASE",e.NAMESPACE_CONFLICT="NAMESPACE_CONFLICT",e.UNRESOLVED_ENTRY="UNRESOLVED_ENTRY",e.UNRESOLVED_IMPORT="UNRESOLVED_IMPORT"}(Co||(Co={}));const Ro=/^[a-zA-Z$_][a-zA-Z0-9$_]*$/;function Oo(e){return Ro.test(e)?`.${e}`:`['${e}']`}function Mo(e){return e.split(".").map(Oo).join("")}function Do(e,t,n,r,i){const s=r?"":" ",o=e.split(".");n&&(o[0]=("function"==typeof n?n(o[0]):n[o[0]])||o[0]);const a=o.pop();let h=t,u=o.map(e=>(h+=Oo(e),`${h}${s}=${s}${h}${s}||${s}{}`)).concat(`${h}${Oo(a)}`).join(`,${s}`).concat(`${s}=${s}${i}`);return o.length>0&&(u=`(${u})`),u}function To(e){let t=e.length;for(;t--;){const n=e[t];if(n.exportsDefault||n.exportsNames)return e.slice(0,t+1)}return[]}const Lo=e=>`this${Mo(e)}`;const Vo=(e,t,n,r,i)=>e?`${i}${r}${t} _starExcludes${n}=${n}{${n}${Array.from(e).join(`:${n}1,${n}`)}${e.size?`:${n}1`:""}${n}};`:"",Bo=(e,t,n,r)=>e.length?`${r}${n}var ${e.join(`,${t}`)};`:"";function zo(e,t,n,r){return 0===e.length?"":1===e.length?`${n}${n}${n}exports('${e[0].name}',${t}${e[0].value});${r}${r}`:`${n}${n}${n}exports({${r}`+e.map(({name:e,value:r})=>`${n}${n}${n}${n}${e}:${t}${r}`).join(`,${r}`)+`${r}${n}${n}${n}});${r}${r}`}const jo=(e,t,n,r)=>zo(e.filter(e=>e.hoisted||e.uninitialized).map(e=>({name:e.exported,value:e.uninitialized?"void 0":e.local})),t,n,r),Wo=(e,t,n,r)=>zo(e.filter(e=>e.local===no).map(e=>({name:e.exported,value:no})),t,n,r);function Uo(e,t){return e?`${t}${Mo(e)}`:"null"}var Fo={system:function(e,{accessedGlobals:t,dependencies:n,exports:r,hasExports:i,indentString:s,intro:o,outro:a,usesTopLevelAwait:h,varOrConst:u},c){const l=c.compact?"":"\n",p=c.compact?"":" ",d=n.map(e=>`'${e.id}'`),f=[];let m;const g=[];n.forEach(({imports:e,reexports:t})=>{const i=[];if(e&&e.forEach(e=>{f.push(e.local),"*"===e.imported?i.push(`${e.local}${p}=${p}module;`):i.push(`${e.local}${p}=${p}module.${e.imported};`)}),t){let e=!1;t.length>1||1===t.length&&("*"===t[0].reexported||"*"===t[0].imported)?(t.forEach(t=>{"*"===t.reexported&&(m||(m=function({dependencies:e,exports:t}){const n=new Set(t.map(e=>e.exported));return n.has("default")||n.add("default"),e.forEach(({reexports:e})=>{e&&e.forEach(e=>{"*"===e.imported||n.has(e.reexported)||n.add(e.reexported)})}),n}({dependencies:n,exports:r})),e||(i.push(`${u} _setter${p}=${p}{};`),e=!0),i.push(`for${p}(var _$p${p}in${p}module)${p}{`),i.push(`${s}if${p}(!_starExcludes[_$p])${p}_setter[_$p]${p}=${p}module[_$p];`),i.push("}"))}),t.forEach(e=>{"*"===e.imported&&"*"!==e.reexported&&i.push(`exports('${e.reexported}',${p}module);`)}),t.forEach(t=>{"*"!==t.reexported&&"*"!==t.imported&&(e||(i.push(`${u} _setter${p}=${p}{};`),e=!0),i.push(`_setter.${t.reexported}${p}=${p}module.${t.imported};`))}),e&&i.push("exports(_setter);")):t.forEach(e=>{i.push(`exports('${e.reexported}',${p}module.${e.imported});`)})}g.push(i.join(`${l}${s}${s}${s}`))});const y=c.name?`'${c.name}',${p}`:"",x=t.has("module")?`exports,${p}module`:i?"exports":"";let v=`System.register(${y}[`+d.join(`,${p}`)+`],${p}function${p}(${x})${p}{${l}${s}'use strict';`+Vo(m,u,p,s,l)+Bo(f,p,s,l)+`${l}${s}return${p}{${g.length?`${l}${s}${s}setters:${p}[${g.map(e=>e?`function${p}(module)${p}{${l}${s}${s}${s}${e}${l}${s}${s}}`:`function${p}()${p}{}`).join(`,${p}`)}],`:""}${l}`;v+=`${s}${s}execute:${p}${h?`async${p}`:""}function${p}()${p}{${l}${l}`+jo(r,p,s,l);const E=`${l}${l}`+Wo(r,p,s,l)+`${s}${s}}${l}${s}}${c.compact?"":";"}${l}});`;return o&&e.prepend(o),a&&e.append(a),e.indent(`${s}${s}${s}`).append(E).prepend(v)},amd:function(e,{accessedGlobals:t,dependencies:n,exports:r,hasExports:i,indentString:s,intro:o,isEntryModuleFacade:a,namedExportsMode:h,outro:u,varOrConst:c,warn:l},p){Eo(l,n);const d=n.map(e=>`'${function(e){return"."===e[0]&&e.endsWith(".js")?e.slice(0,-3):e}(e.id)}'`),f=n.map(e=>e.name),m=p.compact?"":"\n",g=p.compact?"":" ";h&&i&&(f.unshift("exports"),d.unshift("'exports'")),t.has("require")&&(f.unshift("require"),d.unshift("'require'")),t.has("module")&&(f.unshift("module"),d.unshift("'module'"));const y=p.amd||{},x=(y.id?`'${y.id}',${g}`:"")+(d.length?`[${d.join(`,${g}`)}],${g}`:""),v=!1!==p.strict?`${g}'use strict';`:"",E=`${y.define||"define"}(${x}function${g}(${f.join(`,${g}`)})${g}{${v}${m}${m}`,_=yo(n,p,c);_&&e.prepend(_+m+m),t.has(io)&&e.prepend(xo(g,m,s)),o&&e.prepend(o);const b=go(r,n,h,p.interop,p.compact,s);return b&&e.append(m+m+b),h&&i&&a&&p.esModule&&e.append(`${m}${m}${p.compact?mo:fo}`),u&&e.append(u),e.indent(s).append(m+m+"});").prepend(E)},cjs:function(e,{accessedGlobals:t,dependencies:n,exports:r,hasExports:i,indentString:s,intro:o,isEntryModuleFacade:a,namedExportsMode:h,outro:u,varOrConst:c},l){const p=l.compact?"":"\n",d=l.compact?"":" ";o=(!1===l.strict?o:`'use strict';${p}${p}${o}`)+(h&&i&&a&&l.esModule?`${l.compact?mo:fo}${p}${p}`:"");let f=!1;const m=!1!==l.interop;let g,y=!1;g="";for(const{id:e,namedExportsMode:t,isChunk:r,name:i,reexports:s,imports:o,exportsNames:a,exportsDefault:h}of n)s||o?(g+=l.compact&&y?",":`${g?`;${p}`:""}${c} `,y=!0,m&&!r&&h&&t?(f=!0,g+=a?`${i}${d}=${d}require('${e}')${l.compact?",":`;\n${c} `}${i}__default${d}=${d}${ro}(${i})`:`${i}${d}=${d}${ro}(require('${e}'))`):g+=`${i}${d}=${d}require('${e}')`):(g&&(g+=!l.compact||y?`;${p}`:","),y=!1,g+=`require('${e}')`);if(g&&(g+=";"),f){const e=l.compact?"e":"ex";o+=`function ${ro}${d}(${e})${d}{${d}return${d}`+`(${e}${d}&&${d}(typeof ${e}${d}===${d}'object')${d}&&${d}'default'${d}in ${e})${d}`+`?${d}${e}['default']${d}:${d}${e}${l.compact?"":"; "}}${p}${p}`}t.has(io)&&(o+=xo(d,p,s)),g&&(o+=g+p+p);const x=go(r,n,h,l.interop,l.compact,s,`module.exports${d}=${d}`);return e.prepend(o),x&&e.append(p+p+x),u&&e.append(u),e},es:function(e,{intro:t,outro:n,dependencies:r,exports:i},s){const o=s.compact?"":" ",a=s.compact?"":"\n",h=r.map(({id:e,reexports:t,imports:n,name:r})=>{if(!t&&!n)return`import${o}'${e}';`;let i="";if(n){const t=n.find(e=>"default"===e.imported),r=n.find(e=>"*"===e.imported);r&&(i+=`import${o}*${o}as ${r.local} from${o}'${e}';`,n.length>1&&(i+=a)),t&&1===n.length?i+=`import ${t.local} from${o}'${e}';`:(!r||n.length>1)&&(i+=`import ${t?`${t.local},${o}`:""}{${o}${n.filter(e=>e!==t&&e!==r).map(e=>e.imported===e.local?e.imported:`${e.imported} as ${e.local}`).join(`,${o}`)}${o}}${o}from${o}'${e}';`)}if(t){n&&(i+=a);const s=t.find(e=>"*"===e.reexported),h=t.find(e=>"*"===e.imported&&"*"!==e.reexported);if(s){if(i+=`export${o}*${o}from${o}'${e}';`,1===t.length)return i;i+=a}if(h){if(n&&n.some(e=>"*"===e.imported&&e.local===r)||(i+=`import${o}*${o}as ${r} from${o}'${e}';${a}`),i+=`export${o}{${o}${r===h.reexported?r:`${r} as ${h.reexported}`} };`,t.length===(s?2:1))return i;i+=a}i+=`export${o}{${o}${t.filter(e=>e!==s&&e!==h).map(e=>e.imported===e.reexported?e.imported:`${e.imported} as ${e.reexported}`).join(`,${o}`)}${o}}${o}from${o}'${e}';`}return i}).join(a);h&&(t+=h+a+a),t&&e.prepend(t);const u=[],c=[];return i.forEach(e=>{"default"===e.exported?u.push(`export default ${e.local};`):c.push(e.exported===e.local?e.local:`${e.local} as ${e.exported}`)}),c.length&&u.push(`export${o}{${o}${c.join(`,${o}`)}${o}};`),u.length&&e.append(a+a+u.join(a).trim()),n&&e.append(n),e.trim()},iife:function(e,{dependencies:t,exports:n,hasExports:r,indentString:i,intro:s,namedExportsMode:o,outro:a,varOrConst:h,warn:u},c){const l=c.compact?"":" ",p=c.compact?"":"\n",{extend:d,name:f}=c,m=f&&-1!==f.indexOf("."),g=!d&&!m;var y;f&&g&&(st(y=f)||rt[y]||it.test(y))&&Io({code:"ILLEGAL_IDENTIFIER_AS_NAME",message:`Given name (${f}) is not legal JS identifier. If you need this you can try --extend option`}),Eo(u,t);const x=To(t),v=x.map(e=>e.globalName||"null"),E=x.map(e=>e.name);r&&!f&&Io({code:"INVALID_OPTION",message:'You must supply "output.name" for IIFE bundles.'}),o&&r&&(d?(v.unshift(`${Lo(f)}${l}=${l}${Lo(f)}${l}||${l}{}`),E.unshift("exports")):(v.unshift("{}"),E.unshift("exports")));const _=!1!==c.strict?`${i}'use strict';${p}${p}`:"";let b=`(function${l}(${E.join(`,${l}`)})${l}{${p}${_}`;!r||d&&o||(b=(g?`${h} ${f}`:Lo(f))+`${l}=${l}${b}`),m&&r&&(b=function(e,t,n,r){const i=e.split(".");n&&(i[0]=("function"==typeof n?n(i[0]):n[i[0]])||i[0]);const s=r?"":" ";i.pop();let o=t;return i.map(e=>(o+=Oo(e),`${o}${s}=${s}${o}${s}||${s}{}${r?"":";"}`)).join(r?",":"\n")+(r&&i.length?";":"\n")}(f,"this",c.globals,c.compact)+b);let A=`${p}${p}}(${v.join(`,${l}`)}));`;!d&&o&&r&&(A=`${p}${p}${i}return exports;${A}`);const S=yo(t,c,h);S&&e.prepend(S+p+p),s&&e.prepend(s);const w=go(n,t,o,c.interop,c.compact,i);return w&&e.append(p+p+w),a&&e.append(a),e.indent(i).prepend(b).append(A)},umd:function(e,{dependencies:t,exports:n,hasExports:r,indentString:i,intro:s,namedExportsMode:o,outro:a,varOrConst:h,warn:u},c){const l=c.compact?"":" ",p=c.compact?"":"\n",d=c.compact?"f":"factory",f=c.compact?"g":"global";r&&!c.name&&Io({code:"INVALID_OPTION",message:'You must supply "output.name" for UMD bundles.'}),Eo(u,t);const m=t.map(e=>`'${e.id}'`),g=t.map(e=>`require('${e.id}')`),y=To(t),x=y.map(e=>Uo(e.globalName,f)),v=y.map(e=>e.name);o&&(r||!0===c.noConflict)&&(m.unshift("'exports'"),g.unshift("exports"),x.unshift(Do(c.name,f,c.globals,c.compact,`${c.extend?`${Uo(c.name,f)}${l}||${l}`:""}{}`)),v.unshift("exports"));const E=c.amd||{},_=(E.id?`'${E.id}',${l}`:"")+(m.length?`[${m.join(`,${l}`)}],${l}`:""),b=E.define||"define",A=!o&&r?`module.exports${l}=${l}`:"",S=!1!==c.strict?`${l}'use strict';${p}`:"";let w;if(!0===c.noConflict){const e=c.compact?"e":"exports";let t;!o&&r?t=`var ${e}${l}=${l}${Do(c.name,f,c.globals,c.compact,`${d}(${x.join(`,${l}`)})`)};`:o&&(t=`var ${e}${l}=${l}${x.shift()};${p}`+`${i}${i}${d}(${[e].concat(x).join(`,${l}`)});`),w=`(function${l}()${l}{${p}`+`${i}${i}var current${l}=${l}${function(e,t,n){const r=e.split(".");let i=t;return r.map(e=>(i+=Oo(e),i)).join(`${n}&&${n}`)}(c.name,f,l)};${p}`+`${i}${i}${t}${p}`+`${i}${i}${e}.noConflict${l}=${l}function${l}()${l}{${l}`+`${Uo(c.name,f)}${l}=${l}current;${l}return ${e}${c.compact?"":"; "}};${p}`+`${i}}())`}else w=`${d}(${x.join(`,${l}`)})`,!o&&r&&(w=Do(c.name,f,c.globals,c.compact,w));const I=r||!0===c.noConflict&&o||x.length>0,P=I?`this,${l}`:"",C=I?`(${f}${l}=${l}${f}${l}||${l}self,${l}`:"",k=I?")":"",$=`(function${l}(${I?`${f},${l}`:""}${d})${l}{${p}`+(I?`${i}typeof exports${l}===${l}'object'${l}&&${l}typeof module${l}!==${l}'undefined'${l}?`+`${l}${A}${d}(${g.join(`,${l}`)})${l}:${p}`:"")+`${i}typeof ${b}${l}===${l}'function'${l}&&${l}${b}.amd${l}?${l}${b}(${_}${d})${l}:${p}`+`${i}${C}${w}${k};${p}`+`}(${P}function${l}(${v.join(", ")})${l}{${S}${p}`,N=p+p+"}));",R=yo(t,c,h);R&&e.prepend(R+p+p),s&&e.prepend(s);const O=go(n,t,o,c.interop,c.compact,i);return O&&e.append(p+p+O),o&&r&&c.esModule&&e.append(p+p+(c.compact?mo:fo)),a&&e.append(a),e.trim().indent(i).append(N).prepend($)}};const qo={ArrayPattern(e,t){for(const n of t.elements)n&&qo[n.type](e,n)},AssignmentPattern(e,t){qo[t.left.type](e,t.left)},Identifier(e,t){e.push(t.name)},MemberExpression(){},ObjectPattern(e,t){for(const n of t.properties)"RestElement"===n.type?qo.RestElement(e,n):qo[n.value.type](e,n.value)},RestElement(e,t){qo[t.argument.type](e,t.argument)}},Go=function(e){const t=[];return qo[e.type](t,e),t};class Ho extends bt{addDeclaration(e,t,n=null,r=!1){return r?this.parent.addDeclaration(e,t,Pe,!0):super.addDeclaration(e,t,n,!1)}}class Ko extends js{addImplicitReturnExpressionToScope(){const e=this.body[this.body.length-1];e&&e.type===ae||this.scope.addReturnExpression(Pe)}createScope(e){this.scope=this.parent.preventChildBlockScope?e:new Ho(e)}hasEffects(e){for(const t of this.body)if(t.hasEffects(e))return!0;return!1}include(e){this.included=!0;for(const t of this.body)(e||t.shouldBeIncluded())&&t.include(e)}render(e,t){this.body.length?fe(this.body,e,this.start+1,this.end-1,t):super.render(e,t)}}class Yo extends js{createScope(e){this.scope=new Hs(e,this.context)}deoptimizePath(e){1===e.length&&e[0]===be&&this.scope.getReturnExpression().deoptimizePath(Se)}getReturnExpressionWhenCalledAtPath(e){return 0===e.length?this.scope.getReturnExpression():Pe}hasEffects(e){return!1}hasEffectsWhenAccessedAtPath(e,t){return e.length>1}hasEffectsWhenAssignedAtPath(e,t){return e.length>1}hasEffectsWhenCalledAtPath(e,t,n){if(e.length>0)return!0;for(const e of this.params)if(e.hasEffects(n))return!0;return this.body.hasEffects(n)}include(e){this.included=!0,this.body.include(e);for(const t of this.params)t instanceof Ys||t.include(e)}includeCallArguments(e){this.scope.includeCallArguments(e)}initialise(){this.scope.addParameterVariables(this.params.map(e=>e.declare("parameter",Pe)),this.params[this.params.length-1]instanceof Xs),this.body instanceof Ko?this.body.addImplicitReturnExpressionToScope():this.scope.addReturnExpression(this.body)}parseNode(e){e.body.type===Q&&(this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope.hoistedBodyVarScope)),super.parseNode(e)}}function Xo(e){return 1===e.length?`exports('${e[0].safeExportName||e[0].exportName}', ${e[0].getName()});`:`exports({${e.map(e=>`${e.safeExportName||e.exportName}: ${e.getName()}`).join(", ")}});`}Yo.prototype.preventChildBlockScope=!0;const Qo={};class Jo{constructor(e=Ds.Map()){this.entityPaths=e}isTracked(e,t){return this.entityPaths.getIn([e,...t,Qo])}track(e,t){return new Jo(this.entityPaths.setIn([e,...t,Qo],!0))}}const Zo=new Jo;class ea extends js{initialise(){this.directive&&"use strict"!==this.directive&&this.parent.type===se&&this.context.warn({code:"MODULE_LEVEL_DIRECTIVE",message:`Module level directives cause errors when bundled, '${this.directive}' was ignored.`},this.start)}render(e,t){super.render(e,t),this.included&&this.insertSemicolon(e)}shouldBeIncluded(){return this.directive&&"use strict"!==this.directive?this.parent.type!==se:super.shouldBeIncluded()}}const ta={"!=":(e,t)=>e!=t,"!==":(e,t)=>e!==t,"%":(e,t)=>e%t,"&":(e,t)=>e&t,"*":(e,t)=>e*t,"**":(e,t)=>Math.pow(e,t),"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"<":(e,t)=>e<t,"<<":(e,t)=>e<<t,"<=":(e,t)=>e<=t,"==":(e,t)=>e==t,"===":(e,t)=>e===t,">":(e,t)=>e>t,">=":(e,t)=>e>=t,">>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t,"^":(e,t)=>e^t,in:()=>Ie,instanceof:()=>Ie,"|":(e,t)=>e|t};class na extends Gs{addDeclaration(e,t,n=null,r=!1){return r?this.parent.addDeclaration(e,t,n,!0):super.addDeclaration(e,t,n,!1)}}class ra extends js{createScope(e){this.scope=new na(e,this.context)}initialise(){this.param&&this.param.declare("parameter",Pe)}parseNode(e){this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope),super.parseNode(e)}}ra.prototype.preventChildBlockScope=!0;class ia{constructor(e){this.included=!1,this.expressions=e}deoptimizePath(e){for(const t of this.expressions)t.deoptimizePath(e)}getLiteralValueAtPath(){return Ie}getReturnExpressionWhenCalledAtPath(e,t,n){return new ia(this.expressions.map(r=>r.getReturnExpressionWhenCalledAtPath(e,t,n)))}hasEffectsWhenAccessedAtPath(e,t){for(const n of this.expressions)if(n.hasEffectsWhenAccessedAtPath(e,t))return!0;return!1}hasEffectsWhenAssignedAtPath(e,t){for(const n of this.expressions)if(n.hasEffectsWhenAssignedAtPath(e,t))return!0;return!1}hasEffectsWhenCalledAtPath(e,t,n){for(const r of this.expressions)if(r.hasEffectsWhenCalledAtPath(e,t,n))return!0;return!1}include(){}includeCallArguments(e){for(const t of this.expressions)t.includeCallArguments(e)}}class sa extends js{hasEffects(){return!1}initialise(){this.context.addExport(this)}render(e,t,{start:n,end:r}=X){e.remove(n,r)}}sa.prototype.needsBoundaries=!0;class oa extends js{bind(){null!==this.declaration&&this.declaration.bind()}hasEffects(e){return null!==this.declaration&&this.declaration.hasEffects(e)}initialise(){this.context.addExport(this)}render(e,t,{start:n,end:r}=X){null===this.declaration?e.remove(n,r):(e.remove(this.start,this.declaration.start),this.declaration.render(e,t,{start:n,end:r}))}}oa.prototype.needsBoundaries=!0;class aa extends js{bind(){}hasEffects(){return!1}initialise(){this.context.addImport(this)}render(e,t,{start:n,end:r}=X){e.remove(n,r)}}aa.prototype.needsBoundaries=!0;class ha extends js{getLiteralValueAtPath(e){return e.length>0||null===this.value&&110!==this.context.code.charCodeAt(this.start)||"bigint"==typeof this.value||47===this.context.code.charCodeAt(this.start)?Ie:this.value}getReturnExpressionWhenCalledAtPath(e){return 1!==e.length?Pe:Je(this.members,e[0])}hasEffectsWhenAccessedAtPath(e){return null===this.value?e.length>0:e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>0}hasEffectsWhenCalledAtPath(e,t,n){return 1!==e.length||Qe(this.members,e[0],this.included,t,n)}initialise(){this.members=function(e){switch(typeof e){case"boolean":return Ke;case"number":return Ye;case"string":return Xe;default:return Object.create(null)}}(this.value)}render(e,t){"string"==typeof this.value&&e.indentExclusionRanges.push([this.start+1,this.end-1])}}function ua(e){return e.computed?function(e){if(e instanceof ha)return String(e.value);return null}(e.property):e.property.name}class ca extends js{constructor(){super(...arguments),this.variable=null,this.bound=!1,this.expressionsToBeDeoptimized=[],this.replacement=null}addExportedVariables(){}bind(){if(this.bound)return;this.bound=!0;const e=function e(t){const n=t.propertyKey,r=t.object;if("string"==typeof n){if(r instanceof Ys)return[{key:r.name,pos:r.start},{key:n,pos:t.property.start}];if(r instanceof ca){const i=e(r);return i&&[...i,{key:n,pos:t.property.start}]}}return null}(this),t=e&&this.scope.findVariable(e[0].key);if(t&&t.isNamespace){const n=this.resolveNamespaceVariables(t,e.slice(1));n?"string"==typeof n?this.replacement=n:(n instanceof et&&n.module&&n.module.suggestName(e[0].key),this.variable=n,this.scope.addNamespaceMemberAccess(function(e){let t=e[0].key;for(let n=1;n<e.length;n++)t+="."+e[n].key;return t}(e),n)):super.bind()}else super.bind(),null===this.propertyKey&&this.analysePropertyKey()}deoptimizeCache(){for(const e of this.expressionsToBeDeoptimized)e.deoptimizeCache()}deoptimizePath(e){this.bound||this.bind(),0===e.length&&this.disallowNamespaceReassignment(),this.variable?this.variable.deoptimizePath(e):(null===this.propertyKey&&this.analysePropertyKey(),this.object.deoptimizePath([this.propertyKey,...e]))}getLiteralValueAtPath(e,t,n){return this.bound||this.bind(),null!==this.variable?this.variable.getLiteralValueAtPath(e,t,n):(null===this.propertyKey&&this.analysePropertyKey(),this.expressionsToBeDeoptimized.push(n),this.object.getLiteralValueAtPath([this.propertyKey,...e],t,n))}getReturnExpressionWhenCalledAtPath(e,t,n){return this.bound||this.bind(),null!==this.variable?this.variable.getReturnExpressionWhenCalledAtPath(e,t,n):(null===this.propertyKey&&this.analysePropertyKey(),this.expressionsToBeDeoptimized.push(n),this.object.getReturnExpressionWhenCalledAtPath([this.propertyKey,...e],t,n))}hasEffects(e){return this.property.hasEffects(e)||this.object.hasEffects(e)||this.context.propertyReadSideEffects&&this.object.hasEffectsWhenAccessedAtPath([this.propertyKey],e)}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null!==this.variable?this.variable.hasEffectsWhenAccessedAtPath(e,t):this.object.hasEffectsWhenAccessedAtPath([this.propertyKey,...e],t))}hasEffectsWhenAssignedAtPath(e,t){return null!==this.variable?this.variable.hasEffectsWhenAssignedAtPath(e,t):this.object.hasEffectsWhenAssignedAtPath([this.propertyKey,...e],t)}hasEffectsWhenCalledAtPath(e,t,n){return null!==this.variable?this.variable.hasEffectsWhenCalledAtPath(e,t,n):this.object.hasEffectsWhenCalledAtPath([this.propertyKey,...e],t,n)}include(e){this.included||(this.included=!0,null!==this.variable&&this.context.includeVariable(this.variable)),this.object.include(e),this.property.include(e)}includeCallArguments(e){this.variable?this.variable.includeCallArguments(e):super.includeCallArguments(e)}initialise(){this.propertyKey=ua(this)}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:r}=X){const i=n===J&&r;if(this.variable||this.replacement){let t=this.variable?this.variable.getName():this.replacement;i&&(t="0, "+t),e.overwrite(this.start,this.end,t,{contentOnly:!0,storeName:!0})}else i&&e.appendRight(this.start,"0, "),super.render(e,t)}analysePropertyKey(){this.propertyKey=be;const e=this.property.getLiteralValueAtPath(Ae,Zo,this);this.propertyKey=e===Ie?be:String(e)}disallowNamespaceReassignment(){this.object instanceof Ys&&this.scope.findVariable(this.object.name).isNamespace&&this.context.error({code:"ILLEGAL_NAMESPACE_REASSIGNMENT",message:`Illegal reassignment to import '${this.object.name}'`},this.start)}resolveNamespaceVariables(e,t){if(0===t.length)return e;if(!e.isNamespace)return null;const n=t[0].key,r=e instanceof et?e.module.getVariableForExportName(n):e.context.traceExport(n);if(!r){const r=e instanceof et?e.module.id:e.context.fileName;return this.context.warn({code:"MISSING_EXPORT",exporter:So(r),importer:So(this.context.fileName),message:`'${n}' is not exported by '${So(r)}'`,missing:n,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module-"},t[0].pos),"undefined"}return this.resolveNamespaceVariables(r,t.slice(1))}}const la=e=>(...t)=>{throw new Error(`Cannot use fs.${e} inside browser`)},pa=la("lstatSync"),da=la("readdirSync"),fa=la("readFile"),ma=la("realpathSync"),ga=la("writeFile");function ya(e,t){try{const n=pa(e);if(!t&&n.isSymbolicLink())return ya(ma(e),t);if(t&&n.isSymbolicLink()||n.isFile()){const t=pt(e);if(-1!==da(dt(e)).indexOf(t))return e}}catch(e){}}function xa(e){return function(t,n){return"undefined"==typeof process&&Io({code:"MISSING_PROCESS",message:"It looks like you're using Rollup in a non-Node.js environment. This means you must supply a plugin with custom resolveId and load functions",url:"https://rollupjs.org/guide/en/#a-simple-example"}),void 0===n||ut(t)||"."===t[0]?function(e,t){let n=ya(e,t);return n||((n=ya(e+".mjs",t))?n:n=ya(e+".js",t))}(gt(n?dt(n):gt(),t),e):null}}const va=(e,t="URL")=>`new ${t}(${e}).href`,Ea=e=>`(document.currentScript && document.currentScript.src || new URL('${e}', document.baseURI).href)`,_a=e=>(t,n)=>{const r=e(n);return null===t?`({ url: ${r} })`:"url"===t?r:"undefined"},ba={amd:_a(()=>va("module.uri, document.baseURI")),cjs:_a(e=>`(typeof document === 'undefined' ? ${va("'file:' + __filename","(require('u' + 'rl').URL)")} : ${Ea(e)})`),iife:_a(e=>Ea(e)),system:e=>null===e?"module.meta":`module.meta.${e}`,umd:_a(e=>`(typeof document === 'undefined' ? ${va("'file:' + __filename","(require('u' + 'rl').URL)")} : ${Ea(e)})`)},Aa=e=>va(`'${e}', document.currentScript && document.currentScript.src || document.baseURI`),Sa={amd:e=>va(`require.toUrl('${e}'), document.baseURI`),cjs:e=>`(typeof document === 'undefined' ? ${va(`'file:' + __dirname + '/${e}'`,"(require('u' + 'rl').URL)")} : ${Aa(e)})`,es:e=>va(`'${e}', import.meta.url`),iife:e=>Aa(e),system:e=>va(`'${e}', module.meta.url`),umd:e=>`(typeof document === 'undefined' ? ${va(`'file:' + __dirname + '/${e}'`,"(require('u' + 'rl').URL)")} : ${Aa(e)})`},wa={amd:["document","module","URL"],cjs:["document","require","URL"],iife:["document","URL"],system:["module"],umd:["document","require","URL"]},Ia={amd:["document","require","URL"],cjs:["document","require","URL"],iife:["document","URL"],system:["module","URL"],umd:["document","require","URL"]},Pa="ROLLUP_ASSET_URL_",Ca="ROLLUP_CHUNK_URL_";class ka extends js{bind(){super.bind(),this.argument.deoptimizePath([be,be])}}class $a extends js{hasEffects(e){for(const t of this.body)if(t.hasEffects(e))return!0;return!1}include(e){this.included=!0;for(const t of this.body)(e||t.shouldBeIncluded())&&t.include(e)}render(e,t){this.body.length?fe(this.body,e,this.start,this.end,t):super.render(e,t)}}class Na extends js{getLiteralValueAtPath(e){return e.length>0||1!==this.quasis.length?Ie:this.quasis[0].value.cooked}render(e,t){e.indentExclusionRanges.push([this.start,this.end]),super.render(e,t)}}class Ra extends bt{constructor(e,t){super(e),this.context=t,this.variables.set("this",new Et("this",null,Ce,t))}addExportDefaultDeclaration(e,t,n){const r=new to(e,t,n);return this.variables.set("default",r),r}addNamespaceMemberAccess(e,t){t instanceof lo&&this.accessedOutsideVariables.set(t.name,t)}deconflict(e){for(const t of this.children)t.deconflict(e)}findLexicalBoundary(){return this}findVariable(e){const t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;const n=this.context.traceVariable(e)||this.parent.findVariable(e);return n instanceof lo&&this.accessedOutsideVariables.set(e,n),n}}const Oa={"!":e=>!e,"+":e=>+e,"-":e=>-e,delete:()=>Ie,typeof:e=>typeof e,void:()=>void 0,"~":e=>~e};function Ma(e){return null!==e.renderBaseName&&null!==e.exportName&&e.isReassigned}const Da={ArrayExpression:class extends js{bind(){super.bind();for(const e of this.elements)null!==e&&e.deoptimizePath(Se)}getReturnExpressionWhenCalledAtPath(e){return 1!==e.length?Pe:Je(He,e[0])}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,n){return 1!==e.length||Qe(He,e[0],this.included,t,n)}},ArrayPattern:class extends js{addExportedVariables(e){for(const t of this.elements)null!==t&&t.addExportedVariables(e)}declare(e,t){const n=[];for(const t of this.elements)null!==t&&n.push(...t.declare(e,Pe));return n}deoptimizePath(e){if(0===e.length)for(const t of this.elements)null!==t&&t.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){if(e.length>0)return!0;for(const e of this.elements)if(null!==e&&e.hasEffectsWhenAssignedAtPath(Ae,t))return!0;return!1}},ArrowFunctionExpression:Yo,AssignmentExpression:class extends js{bind(){super.bind(),this.left.deoptimizePath(Ae),this.right.deoptimizePath(Se)}hasEffects(e){return this.right.hasEffects(e)||this.left.hasEffects(e)||this.left.hasEffectsWhenAssignedAtPath(Ae,e)}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.right.hasEffectsWhenAccessedAtPath(e,t)}render(e,t){if(this.left.render(e,t),this.right.render(e,t),"system"===t.format)if(this.left.variable&&this.left.variable.exportName)e.prependLeft(e.original.indexOf("=",this.left.end)+1,` exports('${this.left.variable.exportName}',`),e.appendLeft(this.right.end,")");else if("addExportedVariables"in this.left){const t=[];this.left.addExportedVariables(t),t.length>0&&(e.prependRight(this.start,`function (v) {${Xo(t)} return v;} (`),e.appendLeft(this.end,")"))}}},AssignmentPattern:class extends js{addExportedVariables(e){this.left.addExportedVariables(e)}bind(){super.bind(),this.left.deoptimizePath(Ae),this.right.deoptimizePath(Se)}declare(e,t){return this.left.declare(e,t)}deoptimizePath(e){0===e.length&&this.left.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){return e.length>0||this.left.hasEffectsWhenAssignedAtPath(Ae,t)}render(e,t,{isShorthandProperty:n}=X){this.left.render(e,t,{isShorthandProperty:n}),this.right.render(e,t)}},AwaitExpression:class extends js{hasEffects(e){return super.hasEffects(e)||!e.ignoreReturnAwaitYield()}include(e){e:if(!this.included&&!this.context.usesTopLevelAwait){let e=this.parent;do{if(e instanceof Qs||e instanceof Yo)break e}while(e=e.parent);this.context.usesTopLevelAwait=!0}super.include(e)}render(e,t){super.render(e,t)}},BinaryExpression:class extends js{deoptimizeCache(){}getLiteralValueAtPath(e,t,n){if(e.length>0)return Ie;const r=this.left.getLiteralValueAtPath(Ae,t,n);if(r===Ie)return Ie;const i=this.right.getLiteralValueAtPath(Ae,t,n);if(i===Ie)return Ie;const s=ta[this.operator];return s?s(r,i):Ie}hasEffects(e){return"+"===this.operator&&this.parent instanceof ea&&""===this.left.getLiteralValueAtPath(Ae,Zo,this)||super.hasEffects(e)}hasEffectsWhenAccessedAtPath(e,t){return e.length>1}},BlockStatement:Ko,BreakStatement:class extends js{hasEffects(e){return super.hasEffects(e)||!e.ignoreBreakStatements()||null!==this.label&&!e.ignoreLabel(this.label.name)}},CallExpression:class extends js{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.returnExpression=null}bind(){super.bind(),this.callee instanceof Ys&&(this.scope.findVariable(this.callee.name).isNamespace&&this.context.error({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${this.callee.name}')`},this.start),"eval"===this.callee.name&&this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://rollupjs.org/guide/en/#avoiding-eval"},this.start)),null===this.returnExpression&&(this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(Ae,Zo,this));for(const e of this.arguments)e.deoptimizePath(Se)}deoptimizeCache(){if(this.returnExpression!==Pe){this.returnExpression=Pe;for(const e of this.expressionsToBeDeoptimized)e.deoptimizeCache()}}deoptimizePath(e){e.length>0&&!this.context.deoptimizationTracker.track(this,e)&&(null===this.returnExpression&&(this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(Ae,Zo,this)),this.returnExpression.deoptimizePath(e))}getLiteralValueAtPath(e,t,n){return null===this.returnExpression&&(this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(Ae,t,this)),this.returnExpression===Pe||t.isTracked(this.returnExpression,e)?Ie:(this.expressionsToBeDeoptimized.push(n),this.returnExpression.getLiteralValueAtPath(e,t.track(this.returnExpression,e),n))}getReturnExpressionWhenCalledAtPath(e,t,n){return null===this.returnExpression&&(this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(Ae,t,this)),this.returnExpression===Pe||t.isTracked(this.returnExpression,e)?Pe:(this.expressionsToBeDeoptimized.push(n),this.returnExpression.getReturnExpressionWhenCalledAtPath(e,t.track(this.returnExpression,e),n))}hasEffects(e){for(const t of this.arguments)if(t.hasEffects(e))return!0;return(!this.context.annotations||!this.annotatedPure)&&(this.callee.hasEffects(e)||this.callee.hasEffectsWhenCalledAtPath(Ae,this.callOptions,e.getHasEffectsWhenCalledOptions()))}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&!t.hasReturnExpressionBeenAccessedAtPath(e,this)&&this.returnExpression.hasEffectsWhenAccessedAtPath(e,t.addAccessedReturnExpressionAtPath(e,this))}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||!t.hasReturnExpressionBeenAssignedAtPath(e,this)&&this.returnExpression.hasEffectsWhenAssignedAtPath(e,t.addAssignedReturnExpressionAtPath(e,this))}hasEffectsWhenCalledAtPath(e,t,n){return!n.hasReturnExpressionBeenCalledAtPath(e,this)&&this.returnExpression.hasEffectsWhenCalledAtPath(e,t,n.addCalledReturnExpressionAtPath(e,this))}include(e){e?(super.include(e),e===Bs&&this.callee instanceof Ys&&this.callee.variable&&this.callee.variable.markCalledFromTryStatement()):(this.included=!0,this.callee.include(!1)),this.callee.includeCallArguments(this.arguments),this.returnExpression.included||this.returnExpression.include(!1)}initialise(){this.callOptions=_e.create({args:this.arguments,callIdentifier:this,withNew:!1})}render(e,t,{renderedParentType:n}=X){if(this.callee.render(e,t),this.arguments.length>0)if(this.arguments[this.arguments.length-1].included)for(const n of this.arguments)n.render(e,t);else{let n=this.arguments.length-2;for(;n>=0&&!this.arguments[n].included;)n--;if(n>=0){for(let r=0;r<=n;r++)this.arguments[r].render(e,t);e.remove(pe(e.original,",",this.arguments[n].end),this.end-1)}else e.remove(pe(e.original,"(",this.callee.end)+1,this.end-1)}n===ee&&this.callee.type===te&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}},CatchClause:ra,ClassBody:class extends js{hasEffectsWhenCalledAtPath(e,t,n){return e.length>0||null!==this.classConstructor&&this.classConstructor.hasEffectsWhenCalledAtPath(Ae,t,n)}initialise(){for(const e of this.body)if("constructor"===e.kind)return void(this.classConstructor=e);this.classConstructor=null}},ClassDeclaration:Us,ClassExpression:class extends Ws{},ConditionalExpression:class extends js{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.unusedBranch=null,this.usedBranch=null}bind(){super.bind(),this.isBranchResolutionAnalysed||this.analyseBranchResolution()}deoptimizeCache(){if(null!==this.usedBranch){this.usedBranch=null,this.unusedBranch.deoptimizePath(Se);for(const e of this.expressionsToBeDeoptimized)e.deoptimizeCache()}}deoptimizePath(e){e.length>0&&(this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?(this.consequent.deoptimizePath(e),this.alternate.deoptimizePath(e)):this.usedBranch.deoptimizePath(e))}getLiteralValueAtPath(e,t,n){return this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?Ie:(this.expressionsToBeDeoptimized.push(n),this.usedBranch.getLiteralValueAtPath(e,t,n))}getReturnExpressionWhenCalledAtPath(e,t,n){return this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?new ia([this.consequent.getReturnExpressionWhenCalledAtPath(e,t,n),this.alternate.getReturnExpressionWhenCalledAtPath(e,t,n)]):(this.expressionsToBeDeoptimized.push(n),this.usedBranch.getReturnExpressionWhenCalledAtPath(e,t,n))}hasEffects(e){return!!this.test.hasEffects(e)||(null===this.usedBranch?this.consequent.hasEffects(e)||this.alternate.hasEffects(e):this.usedBranch.hasEffects(e))}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null===this.usedBranch?this.consequent.hasEffectsWhenAccessedAtPath(e,t)||this.alternate.hasEffectsWhenAccessedAtPath(e,t):this.usedBranch.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||(null===this.usedBranch?this.consequent.hasEffectsWhenAssignedAtPath(e,t)||this.alternate.hasEffectsWhenAssignedAtPath(e,t):this.usedBranch.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,n){return null===this.usedBranch?this.consequent.hasEffectsWhenCalledAtPath(e,t,n)||this.alternate.hasEffectsWhenCalledAtPath(e,t,n):this.usedBranch.hasEffectsWhenCalledAtPath(e,t,n)}include(e){this.included=!0,e||null===this.usedBranch||this.test.shouldBeIncluded()?(this.test.include(e),this.consequent.include(e),this.alternate.include(e)):this.usedBranch.include(e)}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:r}=X){if(this.test.included)super.render(e,t);else{const i=pe(e.original,":",this.consequent.end);if(this.consequent.included){const t=pe(e.original,"?",this.test.end);e.remove(this.start,t+1),e.remove(i,this.end)}else e.remove(this.start,i+1);ce(this,e),this.usedBranch.render(e,t,{isCalleeOfRenderedParent:n?r:this.parent.callee===this,renderedParentType:n||this.parent.type})}}analyseBranchResolution(){this.isBranchResolutionAnalysed=!0;const e=this.test.getLiteralValueAtPath(Ae,Zo,this);e!==Ie&&(e?(this.usedBranch=this.consequent,this.unusedBranch=this.alternate):(this.usedBranch=this.alternate,this.unusedBranch=this.consequent))}},DoWhileStatement:class extends js{hasEffects(e){return this.test.hasEffects(e)||this.body.hasEffects(e.setIgnoreBreakStatements())}},EmptyStatement:class extends js{hasEffects(){return!1}},ExportAllDeclaration:sa,ExportDefaultDeclaration:eo,ExportNamedDeclaration:oa,ExpressionStatement:ea,ForInStatement:class extends js{bind(){this.left.bind(),this.left.deoptimizePath(Ae),this.right.bind(),this.body.bind()}createScope(e){this.scope=new Ho(e)}hasEffects(e){return this.left&&(this.left.hasEffects(e)||this.left.hasEffectsWhenAssignedAtPath(Ae,e))||this.right&&this.right.hasEffects(e)||this.body.hasEffects(e.setIgnoreBreakStatements())}include(e){this.included=!0,this.left.includeWithAllDeclaredVariables(e),this.left.deoptimizePath(Ae),this.right.include(e),this.body.include(e)}render(e,t){this.left.render(e,t,le),this.right.render(e,t,le),this.body.render(e,t)}},ForOfStatement:class extends js{bind(){this.left.bind(),this.left.deoptimizePath(Ae),this.right.bind(),this.body.bind()}createScope(e){this.scope=new Ho(e)}hasEffects(e){return this.left&&(this.left.hasEffects(e)||this.left.hasEffectsWhenAssignedAtPath(Ae,e))||this.right&&this.right.hasEffects(e)||this.body.hasEffects(e.setIgnoreBreakStatements())}include(e){this.included=!0,this.left.includeWithAllDeclaredVariables(e),this.left.deoptimizePath(Ae),this.right.include(e),this.body.include(e)}render(e,t){this.left.render(e,t,le),this.right.render(e,t,le),this.body.render(e,t)}},ForStatement:class extends js{createScope(e){this.scope=new Ho(e)}hasEffects(e){return this.init&&this.init.hasEffects(e)||this.test&&this.test.hasEffects(e)||this.update&&this.update.hasEffects(e)||this.body.hasEffects(e.setIgnoreBreakStatements())}render(e,t){this.init&&this.init.render(e,t,le),this.test&&this.test.render(e,t,le),this.update&&this.update.render(e,t,le),this.body.render(e,t)}},FunctionDeclaration:Js,FunctionExpression:class extends Qs{},Identifier:Ys,IfStatement:class extends js{constructor(){super(...arguments),this.isTestValueAnalysed=!1}bind(){super.bind(),this.isTestValueAnalysed||(this.testValue=Ie,this.isTestValueAnalysed=!0,this.testValue=this.test.getLiteralValueAtPath(Ae,Zo,this))}deoptimizeCache(){this.testValue=Ie}hasEffects(e){return!!this.test.hasEffects(e)||(this.testValue===Ie?this.consequent.hasEffects(e)||null!==this.alternate&&this.alternate.hasEffects(e):this.testValue?this.consequent.hasEffects(e):null!==this.alternate&&this.alternate.hasEffects(e))}include(e){if(this.included=!0,e)return this.test.include(e),this.consequent.include(e),void(null!==this.alternate&&this.alternate.include(e));const t=this.testValue===Ie;(t||this.test.shouldBeIncluded())&&this.test.include(!1),(t||this.testValue)&&this.consequent.shouldBeIncluded()&&this.consequent.include(!1),null===this.alternate||!t&&this.testValue||!this.alternate.shouldBeIncluded()||this.alternate.include(!1)}render(e,t){if(this.test.included||(this.testValue?null!==this.alternate&&this.alternate.included:this.consequent.included))this.test.included?this.test.render(e,t):e.overwrite(this.test.start,this.test.end,this.testValue?"true":"false"),this.consequent.included?this.consequent.render(e,t):e.overwrite(this.consequent.start,this.consequent.end,";"),null!==this.alternate&&(this.alternate.included?this.alternate.render(e,t):e.remove(this.consequent.end,this.alternate.end));else{const n=this.testValue?this.consequent:this.alternate;e.remove(this.start,n.start),e.remove(n.end,this.end),ce(this,e),n.render(e,t)}}},Import:class extends js{constructor(){super(...arguments),this.exportMode="auto"}include(){this.included||(this.included=!0,this.context.includeDynamicImport(this))}initialise(){this.context.addDynamicImport(this)}render(e,t){if(this.inlineNamespace){const n=t.compact?"":" ",r=t.compact?"":";";return void e.overwrite(this.parent.start,this.parent.end,`Promise.resolve().then(function${n}()${n}{${n}return ${this.inlineNamespace.getName()}${r}${n}})`)}const n=this.getDynamicImportMechanism(t);n&&(e.overwrite(this.parent.start,pe(e.original,"(",this.parent.callee.end)+1,n.left),e.overwrite(this.parent.end-1,this.parent.end,n.right))}renderFinalResolution(e,t,n){this.included&&("amd"===n&&t.startsWith("'.")&&t.endsWith(".js'")&&(t=t.slice(0,-4)+"'"),e.overwrite(this.parent.arguments[0].start,this.parent.arguments[0].end,t))}setResolution(e,t){this.exportMode=e,t?this.inlineNamespace=t:(this.scope.addAccessedGlobalsByFormat({amd:["require"],cjs:["require"],system:["module"]}),"auto"===e&&this.scope.addAccessedGlobalsByFormat({amd:[io],cjs:[io]}))}getDynamicImportMechanism(e){switch(e.format){case"cjs":{const t=e.compact?"":" ",n=e.compact?"c":"resolve";switch(this.exportMode){case"default":return{left:`new Promise(function${t}(${n})${t}{${t}${n}({${t}'default':${t}require(`,right:`)${t}});${t}})`};case"auto":return{left:`new Promise(function${t}(${n})${t}{${t}${n}(${io}(require(`,right:`)));${t}})`};default:return{left:`new Promise(function${t}(${n})${t}{${t}${n}(require(`,right:`));${t}})`}}}case"amd":{const t=e.compact?"":" ",n=e.compact?"c":"resolve",r=e.compact?"e":"reject";return{left:`new Promise(function${t}(${n},${t}${r})${t}{${t}require([`,right:`],${t}${"default"===this.exportMode?`function${t}(m)${t}{${t}${n}({${t}'default':${t}m${t}});${t}}`:"auto"===this.exportMode?`function${t}(m)${t}{${t}${n}(${io}(m));${t}}`:n},${t}${r})${t}})`}}case"system":return{left:"module.import(",right:")"};case"es":if(e.dynamicImportFunction)return{left:`${e.dynamicImportFunction}(`,right:")"}}return null}},ImportDeclaration:aa,LabeledStatement:class extends js{hasEffects(e){return this.body.hasEffects(e.setIgnoreLabel(this.label.name).setIgnoreBreakStatements())}},Literal:ha,LogicalExpression:class extends js{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.unusedBranch=null,this.usedBranch=null}bind(){super.bind(),this.isBranchResolutionAnalysed||this.analyseBranchResolution()}deoptimizeCache(){if(null!==this.usedBranch){this.usedBranch=null,this.unusedBranch.deoptimizePath(Se);for(const e of this.expressionsToBeDeoptimized)e.deoptimizeCache()}}deoptimizePath(e){e.length>0&&(this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?(this.left.deoptimizePath(e),this.right.deoptimizePath(e)):this.usedBranch.deoptimizePath(e))}getLiteralValueAtPath(e,t,n){return this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?Ie:(this.expressionsToBeDeoptimized.push(n),this.usedBranch.getLiteralValueAtPath(e,t,n))}getReturnExpressionWhenCalledAtPath(e,t,n){return this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?new ia([this.left.getReturnExpressionWhenCalledAtPath(e,t,n),this.right.getReturnExpressionWhenCalledAtPath(e,t,n)]):(this.expressionsToBeDeoptimized.push(n),this.usedBranch.getReturnExpressionWhenCalledAtPath(e,t,n))}hasEffects(e){return null===this.usedBranch?this.left.hasEffects(e)||this.right.hasEffects(e):this.usedBranch.hasEffects(e)}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null===this.usedBranch?this.left.hasEffectsWhenAccessedAtPath(e,t)||this.right.hasEffectsWhenAccessedAtPath(e,t):this.usedBranch.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||(null===this.usedBranch?this.left.hasEffectsWhenAssignedAtPath(e,t)||this.right.hasEffectsWhenAssignedAtPath(e,t):this.usedBranch.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,n){return null===this.usedBranch?this.left.hasEffectsWhenCalledAtPath(e,t,n)||this.right.hasEffectsWhenCalledAtPath(e,t,n):this.usedBranch.hasEffectsWhenCalledAtPath(e,t,n)}include(e){this.included=!0,e||null===this.usedBranch||this.unusedBranch.shouldBeIncluded()?(this.left.include(e),this.right.include(e)):this.usedBranch.include(e)}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:r}=X){if(this.left.included&&this.right.included)super.render(e,t);else{const i=pe(e.original,this.operator,this.left.end);this.right.included?e.remove(this.start,i+2):e.remove(i,this.end),ce(this,e),this.usedBranch.render(e,t,{isCalleeOfRenderedParent:n?r:this.parent.callee===this,renderedParentType:n||this.parent.type})}}analyseBranchResolution(){this.isBranchResolutionAnalysed=!0;const e=this.left.getLiteralValueAtPath(Ae,Zo,this);e!==Ie&&(("||"===this.operator?e:!e)?(this.usedBranch=this.left,this.unusedBranch=this.right):(this.usedBranch=this.right,this.unusedBranch=this.left))}},MemberExpression:ca,MetaProperty:class extends js{hasEffectsWhenAccessedAtPath(e){return e.length>1}include(){if(!this.included){this.included=!0;const e=this.parent,t=this.metaProperty=e instanceof ca&&"string"==typeof e.propertyKey?e.propertyKey:null;t&&("url"===t?this.scope.addAccessedGlobalsByFormat(wa):(t.startsWith(Pa)||t.startsWith(Ca))&&this.scope.addAccessedGlobalsByFormat(Ia))}}initialise(){"import"===this.meta.name&&this.context.addImportMeta(this)}renderFinalMechanism(e,t,n,r){if(!this.included)return;const i=this.parent,s=this.metaProperty;if(s&&(s.startsWith(Pa)||s.startsWith(Ca))){let o,a=null,h=null;s.startsWith(Pa)?(a=s.substr(Pa.length),o=this.context.getAssetFileName(a)):(h=s.substr(Ca.length),o=this.context.getChunkFileName(h));const u=lt(mt(dt(t),o));let c;return null!==a&&(c=r.hookFirstSync("resolveAssetUrl",[{assetFileName:o,chunkId:t,format:n,moduleId:this.context.module.id,relativeAssetPath:u}])),c||(c=r.hookFirstSync("resolveFileUrl",[{assetReferenceId:a,chunkId:t,chunkReferenceId:h,fileName:o,format:n,moduleId:this.context.module.id,relativePath:u}])),void e.overwrite(i.start,i.end,c)}const o=r.hookFirstSync("resolveImportMeta",[s,{chunkId:t,format:n,moduleId:this.context.module.id}]);"string"==typeof o&&(i instanceof ca?e.overwrite(i.start,i.end,o):e.overwrite(this.start,this.end,o))}},MethodDefinition:class extends js{hasEffects(e){return this.key.hasEffects(e)}hasEffectsWhenCalledAtPath(e,t,n){return e.length>0||this.value.hasEffectsWhenCalledAtPath(Ae,t,n)}},NewExpression:class extends js{bind(){super.bind();for(const e of this.arguments)e.deoptimizePath(Se)}hasEffects(e){for(const t of this.arguments)if(t.hasEffects(e))return!0;return!this.annotatedPure&&this.callee.hasEffectsWhenCalledAtPath(Ae,this.callOptions,e.getHasEffectsWhenCalledOptions())}hasEffectsWhenAccessedAtPath(e,t){return e.length>1}initialise(){this.callOptions=_e.create({args:this.arguments,callIdentifier:this,withNew:!0})}},ObjectExpression:class extends js{constructor(){super(...arguments),this.deoptimizedPaths=new Set,this.expressionsToBeDeoptimized=new Map,this.hasUnknownDeoptimizedProperty=!1,this.propertyMap=null,this.unmatchablePropertiesRead=[],this.unmatchablePropertiesWrite=[]}bind(){super.bind(),null===this.propertyMap&&this.buildPropertyMap()}deoptimizeCache(){this.hasUnknownDeoptimizedProperty||this.deoptimizeAllProperties()}deoptimizePath(e){if(this.hasUnknownDeoptimizedProperty)return;if(null===this.propertyMap&&this.buildPropertyMap(),0===e.length)return void this.deoptimizeAllProperties();const t=e[0];if(1===e.length){if("string"!=typeof t)return void this.deoptimizeAllProperties();if(!this.deoptimizedPaths.has(t)){this.deoptimizedPaths.add(t);const e=this.expressionsToBeDeoptimized.get(t);if(e)for(const t of e)t.deoptimizeCache()}}const n=1===e.length?Se:e.slice(1);for(const e of"string"==typeof t?this.propertyMap[t]?this.propertyMap[t].propertiesRead:[]:this.properties)e.deoptimizePath(n)}getLiteralValueAtPath(e,t,n){null===this.propertyMap&&this.buildPropertyMap();const r=e[0];if(0===e.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof r||this.deoptimizedPaths.has(r))return Ie;if(1===e.length&&!this.propertyMap[r]&&!Ge[r]&&0===this.unmatchablePropertiesRead.length){const e=this.expressionsToBeDeoptimized.get(r);return void(e?e.push(n):this.expressionsToBeDeoptimized.set(r,[n]))}if(!this.propertyMap[r]||null===this.propertyMap[r].exactMatchRead||this.propertyMap[r].propertiesRead.length>1)return Ie;const i=this.expressionsToBeDeoptimized.get(r);return i?i.push(n):this.expressionsToBeDeoptimized.set(r,[n]),this.propertyMap[r].exactMatchRead.getLiteralValueAtPath(e.slice(1),t,n)}getReturnExpressionWhenCalledAtPath(e,t,n){null===this.propertyMap&&this.buildPropertyMap();const r=e[0];if(0===e.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof r||this.deoptimizedPaths.has(r))return Pe;if(1===e.length&&Ge[r]&&0===this.unmatchablePropertiesRead.length&&(!this.propertyMap[r]||null===this.propertyMap[r].exactMatchRead))return Je(Ge,r);if(!this.propertyMap[r]||null===this.propertyMap[r].exactMatchRead||this.propertyMap[r].propertiesRead.length>1)return Pe;const i=this.expressionsToBeDeoptimized.get(r);return i?i.push(n):this.expressionsToBeDeoptimized.set(r,[n]),this.propertyMap[r].exactMatchRead.getReturnExpressionWhenCalledAtPath(e.slice(1),t,n)}hasEffectsWhenAccessedAtPath(e,t){if(0===e.length)return!1;const n=e[0];if(e.length>1&&(this.hasUnknownDeoptimizedProperty||"string"!=typeof n||this.deoptimizedPaths.has(n)||!this.propertyMap[n]||null===this.propertyMap[n].exactMatchRead))return!0;const r=e.slice(1);for(const e of"string"!=typeof n?this.properties:this.propertyMap[n]?this.propertyMap[n].propertiesRead:[])if(e.hasEffectsWhenAccessedAtPath(r,t))return!0;return!1}hasEffectsWhenAssignedAtPath(e,t){if(0===e.length)return!1;const n=e[0];if(e.length>1&&(this.hasUnknownDeoptimizedProperty||"string"!=typeof n||this.deoptimizedPaths.has(n)||!this.propertyMap[n]||null===this.propertyMap[n].exactMatchRead))return!0;const r=e.slice(1);for(const i of"string"!=typeof n?this.properties:e.length>1?this.propertyMap[n].propertiesRead:this.propertyMap[n]?this.propertyMap[n].propertiesSet:[])if(i.hasEffectsWhenAssignedAtPath(r,t))return!0;return!1}hasEffectsWhenCalledAtPath(e,t,n){const r=e[0];if(0===e.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof r||this.deoptimizedPaths.has(r)||(this.propertyMap[r]?!this.propertyMap[r].exactMatchRead:e.length>1||!Ge[r]))return!0;const i=e.slice(1);for(const e of this.propertyMap[r]?this.propertyMap[r].propertiesRead:[])if(e.hasEffectsWhenCalledAtPath(i,t,n))return!0;return!(1!==e.length||!Ge[r])&&Qe(Ge,r,this.included,t,n)}render(e,t,{renderedParentType:n}=X){super.render(e,t),n===ee&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}buildPropertyMap(){this.propertyMap=Object.create(null);for(let e=this.properties.length-1;e>=0;e--){const t=this.properties[e];if(t instanceof ka){this.unmatchablePropertiesRead.push(t);continue}const n="get"!==t.kind,r="set"!==t.kind;let i;if(t.computed){const e=t.key.getLiteralValueAtPath(Ae,Zo,this);if(e===Ie){r?this.unmatchablePropertiesRead.push(t):this.unmatchablePropertiesWrite.push(t);continue}i=String(e)}else i=t.key instanceof Ys?t.key.name:String(t.key.value);const s=this.propertyMap[i];s?(r&&null===s.exactMatchRead&&(s.exactMatchRead=t,s.propertiesRead.push(t,...this.unmatchablePropertiesRead)),n&&!r&&null===s.exactMatchWrite&&(s.exactMatchWrite=t,s.propertiesSet.push(t,...this.unmatchablePropertiesWrite))):this.propertyMap[i]={exactMatchRead:r?t:null,exactMatchWrite:n?t:null,propertiesRead:r?[t,...this.unmatchablePropertiesRead]:[],propertiesSet:n&&!r?[t,...this.unmatchablePropertiesWrite]:[]}}}deoptimizeAllProperties(){this.hasUnknownDeoptimizedProperty=!0;for(const e of this.properties)e.deoptimizePath(Se);for(const e of this.expressionsToBeDeoptimized.values())for(const t of e)t.deoptimizeCache()}},ObjectPattern:class extends js{addExportedVariables(e){for(const t of this.properties)t.type===oe?t.value.addExportedVariables(e):t.argument.addExportedVariables(e)}declare(e,t){const n=[];for(const r of this.properties)n.push(...r.declare(e,t));return n}deoptimizePath(e){if(0===e.length)for(const t of this.properties)t.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){if(e.length>0)return!0;for(const e of this.properties)if(e.hasEffectsWhenAssignedAtPath(Ae,t))return!0;return!1}},Program:$a,Property:class extends js{constructor(){super(...arguments),this.declarationInit=null,this.returnExpression=null}bind(){super.bind(),"get"===this.kind&&null===this.returnExpression&&this.updateReturnExpression(),null!==this.declarationInit&&this.declarationInit.deoptimizePath([be,be])}declare(e,t){return this.declarationInit=t,this.value.declare(e,Pe)}deoptimizeCache(){throw new Error("Unexpected deoptimization")}deoptimizePath(e){"get"===this.kind?e.length>0&&(null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression.deoptimizePath(e)):"set"!==this.kind&&this.value.deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return"set"===this.kind?Ie:"get"===this.kind?(null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression.getLiteralValueAtPath(e,t,n)):this.value.getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n){return"set"===this.kind?Pe:"get"===this.kind?(null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression.getReturnExpressionWhenCalledAtPath(e,t,n)):this.value.getReturnExpressionWhenCalledAtPath(e,t,n)}hasEffects(e){return this.key.hasEffects(e)||this.value.hasEffects(e)}hasEffectsWhenAccessedAtPath(e,t){return"get"===this.kind?this.value.hasEffectsWhenCalledAtPath(Ae,this.accessorCallOptions,t.getHasEffectsWhenCalledOptions())||e.length>0&&this.returnExpression.hasEffectsWhenAccessedAtPath(e,t):this.value.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return"get"===this.kind?0===e.length||this.returnExpression.hasEffectsWhenAssignedAtPath(e,t):"set"===this.kind?e.length>0||this.value.hasEffectsWhenCalledAtPath(Ae,this.accessorCallOptions,t.getHasEffectsWhenCalledOptions()):this.value.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,n){return"get"===this.kind?this.returnExpression.hasEffectsWhenCalledAtPath(e,t,n):this.value.hasEffectsWhenCalledAtPath(e,t,n)}initialise(){this.accessorCallOptions=_e.create({callIdentifier:this,withNew:!1})}render(e,t){this.shorthand||this.key.render(e,t),this.value.render(e,t,{isShorthandProperty:this.shorthand})}updateReturnExpression(){this.returnExpression=Pe,this.returnExpression=this.value.getReturnExpressionWhenCalledAtPath(Ae,Zo,this)}},RestElement:Xs,ReturnStatement:class extends js{hasEffects(e){return!e.ignoreReturnAwaitYield()||null!==this.argument&&this.argument.hasEffects(e)}initialise(){this.scope.addReturnExpression(this.argument||Pe)}render(e,t){this.argument&&(this.argument.render(e,t),this.argument.start===this.start+6&&e.prependLeft(this.start+6," "))}},SequenceExpression:class extends js{deoptimizePath(e){e.length>0&&this.expressions[this.expressions.length-1].deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(e,t,n)}hasEffects(e){for(const t of this.expressions)if(t.hasEffects(e))return!0;return!1}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.expressions[this.expressions.length-1].hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||this.expressions[this.expressions.length-1].hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,n){return this.expressions[this.expressions.length-1].hasEffectsWhenCalledAtPath(e,t,n)}include(e){this.included=!0;for(let t=0;t<this.expressions.length-1;t++){const n=this.expressions[t];(e||n.shouldBeIncluded())&&n.include(e)}this.expressions[this.expressions.length-1].include(e)}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:r}=X){let i=0;for(const{node:s,start:o,end:a}of me(this.expressions,e,this.start,this.end))s.included?(i++,s===this.expressions[this.expressions.length-1]&&1===i?s.render(e,t,{isCalleeOfRenderedParent:n?r:this.parent.callee===this,renderedParentType:n||this.parent.type}):s.render(e,t)):ue(s,e,o,a)}},SpreadElement:ka,SwitchCase:class extends js{include(e){this.included=!0,this.test&&this.test.include(e);for(const t of this.consequent)(e||t.shouldBeIncluded())&&t.include(e)}render(e,t){if(this.consequent.length){this.test&&this.test.render(e,t);const n=this.test?this.test.end:pe(e.original,"default",this.start)+7,r=pe(e.original,":",n)+1;fe(this.consequent,e,r,this.end,t)}else super.render(e,t)}},SwitchStatement:class extends js{createScope(e){this.scope=new Ho(e)}hasEffects(e){return super.hasEffects(e.setIgnoreBreakStatements())}},TaggedTemplateExpression:class extends js{bind(){super.bind(),this.tag.type===ne&&(this.scope.findVariable(this.tag.name).isNamespace&&this.context.error({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${this.tag.name}')`},this.start),"eval"===this.tag.name&&this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://rollupjs.org/guide/en/#avoiding-eval"},this.start))}hasEffects(e){return super.hasEffects(e)||this.tag.hasEffectsWhenCalledAtPath(Ae,this.callOptions,e.getHasEffectsWhenCalledOptions())}initialise(){this.callOptions=_e.create({callIdentifier:this,withNew:!1})}},TemplateElement:class extends js{hasEffects(e){return!1}},TemplateLiteral:Na,ThisExpression:class extends js{bind(){super.bind(),this.variable=this.scope.findVariable("this")}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.variable.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return this.variable.hasEffectsWhenAssignedAtPath(e,t)}initialise(){this.alias=this.scope.findLexicalBoundary()instanceof Ra?this.context.moduleContext:null,"undefined"===this.alias&&this.context.warn({code:"THIS_IS_UNDEFINED",message:"The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten",url:"https://rollupjs.org/guide/en/#error-this-is-undefined"},this.start)}render(e,t){null!==this.alias&&e.overwrite(this.start,this.end,this.alias,{contentOnly:!1,storeName:!0})}},ThrowStatement:class extends js{hasEffects(e){return!0}},TryStatement:class extends js{constructor(){super(...arguments),this.directlyIncluded=!1}hasEffects(e){return this.block.body.length>0||null!==this.handler&&this.handler.hasEffects(e)||null!==this.finalizer&&this.finalizer.hasEffects(e)}include(e){this.directlyIncluded&&this.context.tryCatchDeoptimization||(this.included=!0,this.directlyIncluded=!0,this.block.include(this.context.tryCatchDeoptimization?Bs:e)),null!==this.handler&&this.handler.include(e),null!==this.finalizer&&this.finalizer.include(e)}},UnaryExpression:class extends js{bind(){super.bind(),"delete"===this.operator&&this.argument.deoptimizePath(Ae)}getLiteralValueAtPath(e,t,n){if(e.length>0)return Ie;const r=this.argument.getLiteralValueAtPath(Ae,t,n);return r===Ie?Ie:Oa[this.operator](r)}hasEffects(e){return this.argument.hasEffects(e)||"delete"===this.operator&&this.argument.hasEffectsWhenAssignedAtPath(Ae,e)}hasEffectsWhenAccessedAtPath(e,t){return"void"===this.operator?e.length>0:e.length>1}},UnknownNode:class extends js{hasEffects(e){return!0}include(){super.include(!0)}},UpdateExpression:class extends js{bind(){super.bind(),this.argument.deoptimizePath(Ae),this.argument instanceof Ys&&(this.scope.findVariable(this.argument.name).isReassigned=!0)}hasEffects(e){return this.argument.hasEffects(e)||this.argument.hasEffectsWhenAssignedAtPath(Ae,e)}hasEffectsWhenAccessedAtPath(e,t){return e.length>1}render(e,t){this.argument.render(e,t);const n=this.argument.variable;if("system"===t.format&&n&&n.exportName){const t=n.getName();if(this.prefix)e.overwrite(this.start,this.end,`exports('${n.exportName}', ${this.operator}${t})`);else{let r;switch(this.operator){case"++":r=`${t} + 1`;break;case"--":r=`${t} - 1`}e.overwrite(this.start,this.end,`(exports('${n.exportName}', ${r}), ${t}${this.operator})`)}}}},VariableDeclaration:class extends js{deoptimizePath(e){for(const e of this.declarations)e.deoptimizePath(Ae)}hasEffectsWhenAssignedAtPath(e,t){return!1}include(e){this.included=!0;for(const t of this.declarations)(e||t.shouldBeIncluded())&&t.include(e)}includeWithAllDeclaredVariables(e){this.included=!0;for(const t of this.declarations)t.include(e)}initialise(){for(const e of this.declarations)e.declareDeclarator(this.kind)}render(e,t,n=X){if(function(e){for(const t of e){if(!t.included)return!1;if(t.id.type===ne){if(t.id.variable.exportName)return!1}else{const e=[];if(t.id.addExportedVariables(e),e.length>0)return!1}}return!0}(this.declarations)){for(const n of this.declarations)n.render(e,t);n.isNoStatement||59===e.original.charCodeAt(this.end-1)||e.appendLeft(this.end,";")}else this.renderReplacedDeclarations(e,t,n)}renderDeclarationEnd(e,t,n,r,i,s,o){59===e.original.charCodeAt(this.end-1)&&e.remove(this.end-1,this.end),s&&(t+=";"),null!==n?(10!==e.original.charCodeAt(r-1)||10!==e.original.charCodeAt(this.end)&&13!==e.original.charCodeAt(this.end)||(r--,13===e.original.charCodeAt(r)&&r--),r===n+1?e.overwrite(n,i,t):(e.overwrite(n,n+1,t),e.remove(r,i))):e.appendLeft(i,t),o.length>0&&e.appendLeft(i," "+Xo(o))}renderReplacedDeclarations(e,t,{start:n=this.start,end:r=this.end,isNoStatement:i}){const s=me(this.declarations,e,this.start+this.kind.length,this.end-(59===e.original.charCodeAt(this.end-1)?1:0));let o,a,h=(a=/\n\s*$/.test(e.slice(this.start,s[0].start))?this.start+this.kind.length:s[0].start)-1;e.remove(this.start,h);let u,c,l=!1,p=!1,d="";const f=[];for(const{node:n,start:r,separator:i,contentEnd:m,end:g}of s)!n.included||n.id instanceof Ys&&Ma(n.id.variable)&&null===n.init?e.remove(r,g):(u="",c="",n.id instanceof Ys&&Ma(n.id.variable)?(p&&(d+=";"),l=!1):("system"===t.format&&null!==n.init&&(n.id.type!==ne?n.id.addExportedVariables(f):n.id.variable.exportName&&(e.prependLeft(e.original.indexOf("=",n.id.end)+1,` exports('${n.id.variable.safeExportName||n.id.variable.exportName}',`),c+=")")),l?d+=",":(p&&(d+=";"),u+=`${this.kind} `,l=!0)),a===h+1?e.overwrite(h,a,d+u):(e.overwrite(h,h+1,d),e.appendLeft(a,u)),n.render(e,t),o=m,a=g,p=!0,h=i,d=c);p?this.renderDeclarationEnd(e,d,h,o,a,!i,f):e.remove(n,r)}},VariableDeclarator:class extends js{declareDeclarator(e){this.id.declare(e,this.init||Ce)}deoptimizePath(e){this.id.deoptimizePath(e)}render(e,t){null===this.init||this.init.included?super.render(e,t):(e.remove(this.id.end,this.end),this.id.render(e,t))}},WhileStatement:class extends js{hasEffects(e){return this.test.hasEffects(e)||this.body.hasEffects(e.setIgnoreBreakStatements())}},YieldExpression:class extends js{bind(){super.bind(),null!==this.argument&&this.argument.deoptimizePath(Se)}hasEffects(e){return!e.ignoreReturnAwaitYield()||null!==this.argument&&this.argument.hasEffects(e)}render(e,t){this.argument&&(this.argument.render(e,t),this.argument.start===this.start+5&&e.prependLeft(this.start+5," "))}}};function Ta(e,t,n){n(e,t)}function La(e,t,n){}var Va={};function Ba(e,t,n=e.type){let r=t.commentNodes[t.commentIndex];for(;r&&e.start>=r.end;)za(e,r),r=t.commentNodes[++t.commentIndex];r&&r.end<=e.end&&Va[n](e,t,Ba)}function za(e,t){e.annotations?e.annotations.push(t):e.annotations=[t],"ExpressionStatement"===e.type&&(e=e.expression),"CallExpression"!==e.type&&"NewExpression"!==e.type||(e.annotatedPure=!0)}Va.Program=Va.BlockStatement=function(e,t,n){for(var r=0,i=e.body;r<i.length;r+=1){n(i[r],t,"Statement")}},Va.Statement=Ta,Va.EmptyStatement=La,Va.ExpressionStatement=Va.ParenthesizedExpression=function(e,t,n){return n(e.expression,t,"Expression")},Va.IfStatement=function(e,t,n){n(e.test,t,"Expression"),n(e.consequent,t,"Statement"),e.alternate&&n(e.alternate,t,"Statement")},Va.LabeledStatement=function(e,t,n){return n(e.body,t,"Statement")},Va.BreakStatement=Va.ContinueStatement=La,Va.WithStatement=function(e,t,n){n(e.object,t,"Expression"),n(e.body,t,"Statement")},Va.SwitchStatement=function(e,t,n){n(e.discriminant,t,"Expression");for(var r=0,i=e.cases;r<i.length;r+=1){var s=i[r];s.test&&n(s.test,t,"Expression");for(var o=0,a=s.consequent;o<a.length;o+=1){n(a[o],t,"Statement")}}},Va.SwitchCase=function(e,t,n){e.test&&n(e.test,t,"Expression");for(var r=0,i=e.consequent;r<i.length;r+=1){n(i[r],t,"Statement")}},Va.ReturnStatement=Va.YieldExpression=Va.AwaitExpression=function(e,t,n){e.argument&&n(e.argument,t,"Expression")},Va.ThrowStatement=Va.SpreadElement=function(e,t,n){return n(e.argument,t,"Expression")},Va.TryStatement=function(e,t,n){n(e.block,t,"Statement"),e.handler&&n(e.handler,t),e.finalizer&&n(e.finalizer,t,"Statement")},Va.CatchClause=function(e,t,n){e.param&&n(e.param,t,"Pattern"),n(e.body,t,"Statement")},Va.WhileStatement=Va.DoWhileStatement=function(e,t,n){n(e.test,t,"Expression"),n(e.body,t,"Statement")},Va.ForStatement=function(e,t,n){e.init&&n(e.init,t,"ForInit"),e.test&&n(e.test,t,"Expression"),e.update&&n(e.update,t,"Expression"),n(e.body,t,"Statement")},Va.ForInStatement=Va.ForOfStatement=function(e,t,n){n(e.left,t,"ForInit"),n(e.right,t,"Expression"),n(e.body,t,"Statement")},Va.ForInit=function(e,t,n){"VariableDeclaration"===e.type?n(e,t):n(e,t,"Expression")},Va.DebuggerStatement=La,Va.FunctionDeclaration=function(e,t,n){return n(e,t,"Function")},Va.VariableDeclaration=function(e,t,n){for(var r=0,i=e.declarations;r<i.length;r+=1){n(i[r],t)}},Va.VariableDeclarator=function(e,t,n){n(e.id,t,"Pattern"),e.init&&n(e.init,t,"Expression")},Va.Function=function(e,t,n){e.id&&n(e.id,t,"Pattern");for(var r=0,i=e.params;r<i.length;r+=1){n(i[r],t,"Pattern")}n(e.body,t,e.expression?"Expression":"Statement")},Va.Pattern=function(e,t,n){"Identifier"===e.type?n(e,t,"VariablePattern"):"MemberExpression"===e.type?n(e,t,"MemberPattern"):n(e,t)},Va.VariablePattern=La,Va.MemberPattern=Ta,Va.RestElement=function(e,t,n){return n(e.argument,t,"Pattern")},Va.ArrayPattern=function(e,t,n){for(var r=0,i=e.elements;r<i.length;r+=1){var s=i[r];s&&n(s,t,"Pattern")}},Va.ObjectPattern=function(e,t,n){for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];"Property"===s.type?(s.computed&&n(s.key,t,"Expression"),n(s.value,t,"Pattern")):"RestElement"===s.type&&n(s.argument,t,"Pattern")}},Va.Expression=Ta,Va.ThisExpression=Va.Super=Va.MetaProperty=La,Va.ArrayExpression=function(e,t,n){for(var r=0,i=e.elements;r<i.length;r+=1){var s=i[r];s&&n(s,t,"Expression")}},Va.ObjectExpression=function(e,t,n){for(var r=0,i=e.properties;r<i.length;r+=1){n(i[r],t)}},Va.FunctionExpression=Va.ArrowFunctionExpression=Va.FunctionDeclaration,Va.SequenceExpression=function(e,t,n){for(var r=0,i=e.expressions;r<i.length;r+=1){n(i[r],t,"Expression")}},Va.TemplateLiteral=function(e,t,n){for(var r=0,i=e.quasis;r<i.length;r+=1){n(i[r],t)}for(var s=0,o=e.expressions;s<o.length;s+=1){n(o[s],t,"Expression")}},Va.TemplateElement=La,Va.UnaryExpression=Va.UpdateExpression=function(e,t,n){n(e.argument,t,"Expression")},Va.BinaryExpression=Va.LogicalExpression=function(e,t,n){n(e.left,t,"Expression"),n(e.right,t,"Expression")},Va.AssignmentExpression=Va.AssignmentPattern=function(e,t,n){n(e.left,t,"Pattern"),n(e.right,t,"Expression")},Va.ConditionalExpression=function(e,t,n){n(e.test,t,"Expression"),n(e.consequent,t,"Expression"),n(e.alternate,t,"Expression")},Va.NewExpression=Va.CallExpression=function(e,t,n){if(n(e.callee,t,"Expression"),e.arguments)for(var r=0,i=e.arguments;r<i.length;r+=1){n(i[r],t,"Expression")}},Va.MemberExpression=function(e,t,n){n(e.object,t,"Expression"),e.computed&&n(e.property,t,"Expression")},Va.ExportNamedDeclaration=Va.ExportDefaultDeclaration=function(e,t,n){e.declaration&&n(e.declaration,t,"ExportNamedDeclaration"===e.type||e.declaration.id?"Statement":"Expression"),e.source&&n(e.source,t,"Expression")},Va.ExportAllDeclaration=function(e,t,n){n(e.source,t,"Expression")},Va.ImportDeclaration=function(e,t,n){for(var r=0,i=e.specifiers;r<i.length;r+=1){n(i[r],t)}n(e.source,t,"Expression")},Va.ImportSpecifier=Va.ImportDefaultSpecifier=Va.ImportNamespaceSpecifier=Va.Identifier=Va.Literal=La,Va.TaggedTemplateExpression=function(e,t,n){n(e.tag,t,"Expression"),n(e.quasi,t,"Expression")},Va.ClassDeclaration=Va.ClassExpression=function(e,t,n){return n(e,t,"Class")},Va.Class=function(e,t,n){e.id&&n(e.id,t,"Pattern"),e.superClass&&n(e.superClass,t,"Expression"),n(e.body,t)},Va.ClassBody=function(e,t,n){for(var r=0,i=e.body;r<i.length;r+=1){n(i[r],t)}},Va.MethodDefinition=Va.Property=function(e,t,n){e.computed&&n(e.key,t,"Expression"),n(e.value,t,"Expression")};const ja=/[@#]__PURE__/,Wa=e=>ja.test(e.text);let Ua="sourceMa";Ua+="ppingURL";const Fa=new RegExp(`^#\\s+${Ua}=.+\\n?`),qa=()=>{};let Ga=()=>[0,0],Ha=()=>0,Ka=()=>0,Ya={};const Xa=e=>1e3*e[0]+e[1]/1e6;function Qa(e,t){switch(t){case 1:return`# ${e}`;case 2:return`## ${e}`;case 3:return e;default:return`${" ".repeat(t-4)}- ${e}`}}function Ja(e,t=3){e=Qa(e,t),Ya.hasOwnProperty(e)||(Ya[e]={memory:0,startMemory:void 0,startTime:void 0,time:0,totalMemory:0});const n=Ka();Ya[e].startTime=Ga(),Ya[e].startMemory=n}function Za(e,t=3){if(e=Qa(e,t),Ya.hasOwnProperty(e)){const t=Ka();Ya[e].time+=Ha(Ya[e].startTime),Ya[e].totalMemory=Math.max(Ya[e].totalMemory,t),Ya[e].memory+=t-Ya[e].startMemory}}function eh(){const e={};return Object.keys(Ya).forEach(t=>{e[t]=[Ya[t].time,Ya[t].memory,Ya[t].totalMemory]}),e}let th=qa,nh=qa;const rh={load:!0,ongenerate:!0,onwrite:!0,resolveDynamicImport:!0,resolveId:!0,transform:!0,transformBundle:!0};function ih(e,t){const n={};for(const r of Object.keys(e))if(!0===rh[r]){let i=`plugin ${t}`;e.name&&(i+=` (${e.name})`),i+=` - ${r}`,n[r]=function(){th(i,4);const t=e[r].apply(this===n?e:this,arguments);return nh(i,4),t&&"function"==typeof t.then&&(th(`${i} (async)`,4),t.then(()=>nh(`${i} (async)`,4))),t}}else n[r]=e[r];return n}function sh(e){e.perf?(Ya={},"undefined"!=typeof process&&"function"==typeof process.hrtime?(Ga=process.hrtime.bind(process),Ha=e=>Xa(process.hrtime(e))):"undefined"!=typeof performance&&"function"==typeof performance.now&&(Ga=()=>[performance.now(),0],Ha=e=>performance.now()-e[0]),"undefined"!=typeof process&&"function"==typeof process.memoryUsage&&(Ka=()=>process.memoryUsage().heapUsed),th=Ja,nh=Za,e.plugins=e.plugins.map(ih)):(th=qa,nh=qa)}const oh={ecmaVersion:2019,preserveParens:!1,sourceType:"module"};function ah(e,t,n,r){t.error({code:"MISSING_EXPORT",message:`'${e}' is not exported by ${So(n)}`,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module-"},r)}const hh={identifier:null,localName:no};class uh{constructor(e,t,n,r){this.chunkAlias=null,this.comments=[],this.dependencies=[],this.dynamicallyImportedBy=[],this.dynamicDependencies=[],this.dynamicImports=[],this.entryPointsHash=new Uint8Array(10),this.execIndex=1/0,this.exportAllModules=null,this.exportAllSources=[],this.exports=Object.create(null),this.exportsAll=Object.create(null),this.exportShimVariable=new so(this),this.facadeChunk=null,this.importDescriptions=Object.create(null),this.importMetas=[],this.imports=new Set,this.isExecuted=!1,this.isUserDefinedEntryPoint=!1,this.manualChunkAlias=null,this.reexports=Object.create(null),this.sources=[],this.usesTopLevelAwait=!1,this.namespaceVariable=void 0,this.transformDependencies=null,this.id=t,this.graph=e,this.excludeFromSourcemap=/\0/.test(t),this.context=e.getModuleContext(t),this.moduleSideEffects=n,this.isEntryPoint=r}basename(){const e=pt(this.id),t=ft(this.id);return ot(t?e.slice(0,-t.length):e)}bindReferences(){this.ast.bind()}error(e,t){if(void 0!==t){e.pos=t;let n=At(this.code,t,{offsetLine:1});try{n=function(e,t){const n=e.filter(e=>e.mappings);for(;n.length>0;){const e=n.pop(),r=e.mappings[t.line-1];let i=!1;if(void 0!==r)for(const n of r)if(n[0]>=t.column){if(n.length<4)break;t={column:n[3],line:n[2]+1,name:e.names[n[4]],source:e.sources[n[1]]},i=!0;break}if(!i)throw new Error("Can't resolve original location of error.")}return t}(this.sourcemapChain,n)}catch(e){this.warn({code:"SOURCEMAP_ERROR",loc:{column:n.column,file:this.id,line:n.line},message:`Error when using sourcemap for reporting an error: ${e.message}`,pos:t},void 0)}e.loc={column:n.column,file:this.id,line:n.line},e.frame=bo(this.originalCode,n.line,n.column)}Io(e)}getAllExportNames(){if(this.allExportNames)return this.allExportNames;const e=this.allExportNames=new Set;for(const t of Object.keys(this.exports))e.add(t);for(const t of Object.keys(this.reexports))e.add(t);for(const t of this.exportAllModules)if(t instanceof yt)e.add(`*${t.id}`);else for(const n of t.getAllExportNames())"default"!==n&&e.add(n);return e}getDynamicImportExpressions(){return this.dynamicImports.map(({node:e})=>{const t=e.parent.arguments[0];if(t instanceof Na){if(0===t.expressions.length&&1===t.quasis.length)return t.quasis[0].value.cooked}else{if(!(t instanceof ha))return t;if("string"==typeof t.value)return t.value}})}getExportNamesByVariable(){const e=new Map;for(const t of this.getAllExportNames()){const n=this.getVariableForExportName(t);if(!n||!(n.included||n instanceof et))continue;const r=e.get(n);r?r.push(t):e.set(n,[t])}return e}getExports(){return Object.keys(this.exports)}getOrCreateNamespace(){return this.namespaceVariable||(this.namespaceVariable=new po(this.astContext))}getReexports(){if(this.transitiveReexports)return this.transitiveReexports;this.transitiveReexports=[];const e=new Set;for(const t in this.reexports)e.add(t);for(const t of this.exportAllModules)if(t instanceof yt)e.add(`*${t.id}`);else for(const n of t.getExports().concat(t.getReexports()))"default"!==n&&e.add(n);return this.transitiveReexports=Array.from(e)}getRenderedExports(){const e=[],t=[];for(const n in this.exports){const r=this.getVariableForExportName(n);(r&&r.included?e:t).push(n)}return{renderedExports:e,removedExports:t}}getTransitiveDependencies(){return this.dependencies.concat(this.getReexports().map(e=>this.getVariableForExportName(e).module))}getVariableForExportName(e,t){if("*"===e[0]){if(1===e.length)return this.getOrCreateNamespace();return this.graph.moduleById.get(e.slice(1)).getVariableForExportName("*")}const n=this.reexports[e];if(n){const e=n.module.getVariableForExportName(n.localName);return e||ah(n.localName,this,n.module.id,n.start),e}const r=this.exports[e];if(r){if(r===hh)return this.exportShimVariable;const e=r.localName;return this.traceVariable(e)||this.graph.scope.findVariable(e)}if("default"!==e)for(const t of this.exportAllModules){const n=t.getVariableForExportName(e,!0);if(n)return n}if(this.graph.shimMissingExports&&!t)return this.shimMissingExport(e),this.exportShimVariable}include(){this.ast.shouldBeIncluded()&&this.ast.include(!1)}includeAllExports(){this.isExecuted||(this.graph.needsTreeshakingPass=!0,xt(this));for(const e of this.getExports()){const t=this.getVariableForExportName(e);t.deoptimizePath(Se),t.included||(t.include(),this.graph.needsTreeshakingPass=!0)}for(const e of this.getReexports()){const t=this.getVariableForExportName(e);t.deoptimizePath(Se),t.included||(t.include(),this.graph.needsTreeshakingPass=!0),t instanceof et&&(t.module.reexported=!0)}}includeAllInBundle(){this.ast.include(!0)}isIncluded(){return this.ast.included||this.namespaceVariable&&this.namespaceVariable.included}linkDependencies(){for(const e of this.sources){const t=this.resolvedIds[e].id;if(t){const e=this.graph.moduleById.get(t);this.dependencies.push(e)}}for(const{resolution:e}of this.dynamicImports)(e instanceof uh||e instanceof yt)&&this.dynamicDependencies.push(e);this.addModulesToSpecifiers(this.importDescriptions),this.addModulesToSpecifiers(this.reexports),this.exportAllModules=this.exportAllSources.map(e=>{const t=this.resolvedIds[e].id;return this.graph.moduleById.get(t)}).sort((e,t)=>{const n=e instanceof yt;return n===t instanceof yt?0:n?1:-1})}render(e){const t=this.magicString.clone();return this.ast.render(t,e),this.usesTopLevelAwait=this.astContext.usesTopLevelAwait,t}setSource({ast:e,code:t,customTransformCache:n,moduleSideEffects:r,originalCode:i,originalSourcemap:s,resolvedIds:o,sourcemapChain:a,transformAssets:h,transformChunks:u,transformDependencies:c}){var l;this.code=t,this.originalCode=i,this.originalSourcemap=s,this.sourcemapChain=a,h&&(this.transformAssets=h),u&&(this.transformChunks=u),this.transformDependencies=c,this.customTransformCache=n,"boolean"==typeof r&&(this.moduleSideEffects=r),th("generate ast",3),this.esTreeAst=e||function(e,t,n){try{return t.parse(e.code,Object.assign({},oh,n,{onComment:(t,n,r,i)=>e.comments.push({block:t,text:n,start:r,end:i})}))}catch(t){let n=t.message.replace(/ \(\d+:\d+\)$/,"");e.id.endsWith(".json")?n+=" (Note that you need rollup-plugin-json to import JSON files)":e.id.endsWith(".js")||(n+=" (Note that you need plugins to import files that are not JavaScript)"),e.error({code:"PARSE_ERROR",message:n},t.pos)}}(this,this.graph.acornParser,this.graph.acornOptions),l=this.comments,Ba(this.esTreeAst,{commentIndex:0,commentNodes:l.filter(Wa)}),nh("generate ast",3),this.resolvedIds=o||Object.create(null);const p=this.id;this.magicString=new G(t,{filename:this.excludeFromSourcemap?null:p,indentExclusionRanges:[]}),this.removeExistingSourceMap(),th("analyse ast",3),this.astContext={addDynamicImport:this.addDynamicImport.bind(this),addExport:this.addExport.bind(this),addImport:this.addImport.bind(this),addImportMeta:this.addImportMeta.bind(this),annotations:this.graph.treeshakingOptions&&this.graph.treeshakingOptions.annotations,code:t,deoptimizationTracker:this.graph.deoptimizationTracker,error:this.error.bind(this),fileName:p,getAssetFileName:this.graph.pluginDriver.getAssetFileName,getChunkFileName:this.graph.moduleLoader.getChunkFileName.bind(this.graph.moduleLoader),getExports:this.getExports.bind(this),getModuleExecIndex:()=>this.execIndex,getModuleName:this.basename.bind(this),getReexports:this.getReexports.bind(this),importDescriptions:this.importDescriptions,includeDynamicImport:this.includeDynamicImport.bind(this),includeVariable:this.includeVariable.bind(this),isCrossChunkImport:e=>e.module.chunk!==this.chunk,magicString:this.magicString,module:this,moduleContext:this.context,nodeConstructors:Da,preserveModules:this.graph.preserveModules,propertyReadSideEffects:!this.graph.treeshakingOptions||this.graph.treeshakingOptions.propertyReadSideEffects,traceExport:this.getVariableForExportName.bind(this),traceVariable:this.traceVariable.bind(this),treeshake:!!this.graph.treeshakingOptions,tryCatchDeoptimization:!this.graph.treeshakingOptions||this.graph.treeshakingOptions.tryCatchDeoptimization,usesTopLevelAwait:!1,warn:this.warn.bind(this)},this.scope=new Ra(this.graph.scope,this.astContext),this.ast=new $a(this.esTreeAst,{type:"Module",context:this.astContext},this.scope),nh("analyse ast",3)}toJSON(){return{ast:this.esTreeAst,code:this.code,customTransformCache:this.customTransformCache,dependencies:this.dependencies.map(e=>e.id),id:this.id,moduleSideEffects:this.moduleSideEffects,originalCode:this.originalCode,originalSourcemap:this.originalSourcemap,resolvedIds:this.resolvedIds,sourcemapChain:this.sourcemapChain,transformAssets:this.transformAssets,transformChunks:this.transformChunks,transformDependencies:this.transformDependencies}}traceVariable(e){const t=this.scope.variables.get(e);if(t)return t;if(e in this.importDescriptions){const t=this.importDescriptions[e],n=t.module;if(n instanceof uh&&"*"===t.name)return n.getOrCreateNamespace();const r=n.getVariableForExportName(t.name);return r||ah(t.name,this,n.id,t.start),r}return null}warn(e,t){if(void 0!==t){e.pos=t;const{line:n,column:r}=At(this.code,t,{offsetLine:1});e.loc={file:this.id,line:n,column:r},e.frame=bo(this.code,n,r)}e.id=this.id,this.graph.warn(e)}addDynamicImport(e){this.dynamicImports.push({node:e,resolution:null})}addExport(e){const t=e.source&&e.source.value;if(t)if(-1===this.sources.indexOf(t)&&this.sources.push(t),e.type===Z)this.exportAllSources.push(t);else for(const n of e.specifiers){const e=n.exported.name;(this.exports[e]||this.reexports[e])&&this.error({code:"DUPLICATE_EXPORT",message:`A module cannot have multiple exports with the same name ('${e}')`},n.start),this.reexports[e]={localName:n.local.name,module:null,source:t,start:n.start}}else if(e instanceof eo)this.exports.default&&this.error({code:"DUPLICATE_EXPORT",message:"A module can only have one default export"},e.start),this.exports.default={identifier:e.variable.getAssignedVariableName(),localName:"default"};else if(e.declaration){const t=e.declaration;if(t.type===he)for(const e of t.declarations)for(const t of Go(e.id))this.exports[t]={identifier:null,localName:t};else{const e=t.id.name;this.exports[e]={identifier:null,localName:e}}}else for(const t of e.specifiers){const e=t.local.name,n=t.exported.name;(this.exports[n]||this.reexports[n])&&this.error({code:"DUPLICATE_EXPORT",message:`A module cannot have multiple exports with the same name ('${n}')`},t.start),this.exports[n]={identifier:null,localName:e}}}addImport(e){const t=e.source.value;-1===this.sources.indexOf(t)&&this.sources.push(t);for(const n of e.specifiers){const e=n.local.name;this.importDescriptions[e]&&this.error({code:"DUPLICATE_IMPORT",message:`Duplicated import '${e}'`},n.start);const r=n.type===re,i=n.type===ie,s=r?"default":i?"*":n.imported.name;this.importDescriptions[e]={source:t,start:n.start,name:s,module:null}}}addImportMeta(e){this.importMetas.push(e)}addModulesToSpecifiers(e){for(const t of Object.keys(e)){const n=e[t],r=this.resolvedIds[n.source].id;n.module=this.graph.moduleById.get(r)}}includeDynamicImport(e){const t=this.dynamicImports.find(t=>t.node===e).resolution;t instanceof uh&&(t.dynamicallyImportedBy.push(this),t.includeAllExports())}includeVariable(e){const t=e.module;e.included||(e.include(),this.graph.needsTreeshakingPass=!0),t&&t!==this&&this.imports.add(e)}removeExistingSourceMap(){for(const e of this.comments)!e.block&&Fa.test(e.text)&&this.magicString.remove(e.start,e.end)}shimMissingExport(e){this.exports[e]||(this.graph.warn({code:"SHIMMED_EXPORT",exporter:So(this.id),exportName:e,message:`Missing export "${e}" has been shimmed in module ${So(this.id)}.`}),this.exports[e]=hh)}}class ch{constructor(e,t){this.isOriginal=!0,this.filename=e,this.content=t}traceSegment(e,t,n){return{line:e,column:t,name:n,source:this}}}class lh{constructor(e,t){this.sources=t,this.names=e.names,this.mappings=e.mappings}traceMappings(){const e=[],t=[],n=[],r=[];for(const i of this.mappings){const s=[];for(const r of i){const i=this.sources[r[1]];if(!i)continue;const o=i.traceSegment(r[2],r[3],this.names[r[4]]);if(o){let i=e.lastIndexOf(o.source.filename);-1===i?(i=e.length,e.push(o.source.filename),t[i]=o.source.content):null==t[i]?t[i]=o.source.content:null!=o.source.content&&t[i]!==o.source.content&&Io({message:`Multiple conflicting contents for sourcemap source ${o.source.filename}`});const a=[r[0],i,o.line,o.column];if(o.name){let e=n.indexOf(o.name);-1===e&&(e=n.length,n.push(o.name)),a[4]=e}s.push(a)}}r.push(s)}return{sources:e,sourcesContent:t,names:n,mappings:r}}traceSegment(e,t,n){const r=this.mappings[e];if(!r)return null;let i=0,s=r.length-1;for(;i<=s;){const e=i+s>>1,o=r[e];if(o[0]===t){const e=this.sources[o[1]];return e?e.traceSegment(o[2],o[3],this.names[o[4]]||n):null}o[0]>t?s=e-1:i=e+1}return null}}const ph={amd:mh,cjs:mh,es:fh,iife:mh,system:fh,umd:mh};function dh(e,t,n,r,i,s,o){!function(e,t,n){for(const r of t){const t=r.scope;for(const[n,r]of t.accessedOutsideVariables)r.included&&e.add(n);const i=t.accessedGlobalVariablesByFormat&&t.accessedGlobalVariablesByFormat.get(n);if(i)for(const t of i)e.add(t)}}(r,e,i),function(e,t){for(const n of t){for(const t of n.scope.variables.values())t.included&&!(t.renderBaseName||t instanceof to&&t.getOriginalVariable()!==t)&&t.setRenderNames(null,Ee(t.name,e));const t=n.getOrCreateNamespace();t.included&&t.setRenderNames(null,Ee(t.name,e))}}(r,e),ph[i](r,n,t,s,o);for(const t of e)t.scope.deconflict(i)}function fh(e,t,n,r){for(const n of t){const t=n.module,i=n.name;let s;s=t instanceof yt&&("*"===i||"default"===i)?"default"===i&&r&&t.exportsNamespace?t.variableName+"__default":t.variableName:i,n.setRenderNames(null,Ee(s,e))}}function mh(e,t,n,r,i){for(const t of n)t.variableName=Ee(t.variableName,e);for(const e of t){const t=e.module;if(t instanceof yt){const n=e.name;"default"===n&&r&&(t.exportsNamespace||t.exportsNames)?e.setRenderNames(null,t.variableName+"__default"):"*"===n||"default"===n?e.setRenderNames(null,t.variableName):e.setRenderNames(t.variableName,null)}else{const n=t.chunk;"default"===n.exportMode||i&&e.isNamespace?e.setRenderNames(null,n.variableName):e.setRenderNames(n.variableName,n.getVariableExportName(e))}}}const gh=(e,t)=>e.execIndex>t.execIndex?1:-1;function yh(e){e.sort(gh)}function xh(e,t,n){const r=[So(e)];let i=t;for(;i!==e&&(r.push(So(i)),i=n[i]););return r.push(r[0]),r.reverse(),r}function vh(e){const t=e.split("\n"),n=t.filter(e=>/^\t+/.test(e)),r=t.filter(e=>/^ {2,}/.test(e));if(0===n.length&&0===r.length)return null;if(n.length>=r.length)return"\t";const i=r.reduce((e,t)=>{const n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return new Array(i+1).join(" ")}function Eh(e,t,n){return wo(e)||Io({code:"INVALID_PATTERN",message:`Invalid output pattern "${e}" for ${t}, cannot be an absolute or relative URL or path.`}),e.replace(/\[(\w+)\]/g,(e,r)=>{const i=n(r);return void 0===i&&Io({code:"INVALID_PATTERN_REPLACEMENT",message:`"${r}" is not a valid substitution name in output option ${t} pattern.`}),wo(i)||Io({code:"INVALID_PATTERN_REPLACEMENT",message:`Invalid replacement "${i}" for "${r}" in ${t} pattern, must be a plain path name.`}),i})}function _h(e,t){if(e in t==!1)return e;const n=ft(e);e=e.substr(0,e.length-n.length);let r,i=1;for(;t[r=e+ ++i+n];);return r}function bh(e){return e.replace(/[\0?*]/g,"_")}function Ah(e,t,n,r){let i;return"function"==typeof t?i=t(e.id):t&&(i=t[e.id]),i||(r?(n.warn({code:"MISSING_GLOBAL_NAME",guess:e.variableName,message:`No name was provided for external module '${e.id}' in output.globals – guessing '${e.variableName}'`,source:e.id}),e.variableName):void 0)}function Sh(e){return!e.isEmpty||e.entryModules.length>0||null!==e.manualChunkAlias}class wh{constructor(e,t){this.entryModules=[],this.exportMode="named",this.facadeModule=null,this.id=void 0,this.indentString=void 0,this.manualChunkAlias=null,this.usedModules=void 0,this.dependencies=void 0,this.dynamicDependencies=void 0,this.exportNames=Object.create(null),this.exports=new Set,this.imports=new Set,this.needsExportsShim=!1,this.renderedDeclarations=void 0,this.renderedHash=void 0,this.renderedModuleSources=new Map,this.renderedSource=null,this.renderedSourceLength=void 0,this.sortedExportNames=null,this.graph=e,this.orderedModules=t,this.execIndex=t.length>0?t[0].execIndex:1/0,this.isEmpty=!0;for(const e of t)this.isEmpty&&e.isIncluded()&&(this.isEmpty=!1),e.manualChunkAlias&&(this.manualChunkAlias=e.manualChunkAlias),e.chunk=this,(e.isEntryPoint||e.dynamicallyImportedBy.some(e=>-1===t.indexOf(e)))&&this.entryModules.push(e);const n=this.entryModules[0];this.variableName=n?ot(pt(n.chunkAlias||n.manualChunkAlias||Ao(n.id))):"__chunk_"+ ++e.curChunkIndex}static generateFacade(e,t){const n=new wh(e,[]);n.dependencies=[t.chunk],n.dynamicDependencies=[],n.facadeModule=t,t.facadeChunk=n;for(const e of t.getAllExportNames()){const r=t.getVariableForExportName(e);n.exports.add(r),n.exportNames[e]=r}return n}canModuleBeFacade(e,t){if(this.manualChunkAlias&&t&&this.manualChunkAlias!==t)return!1;for(const t of this.exports)if(!e.has(t))return!1;return!0}generateFacades(){const e=[];for(const t of this.entryModules){if(!this.facadeModule){const e=t.getExportNamesByVariable();if(this.graph.preserveModules||this.canModuleBeFacade(e,t.chunkAlias)){this.facadeModule=t;for(const[t,n]of e)for(const e of n)this.exportNames[e]=t;continue}}e.push(wh.generateFacade(this.graph,t))}return e}generateId(e,t,n,r,i){this.id=_h(Eh(e,t,e=>{switch(e){case"format":return"es"===r.format?"esm":r.format;case"hash":return this.computeContentHashWithDependencies(n,r);case"name":return this.getChunkName()}}),i)}generateIdPreserveModules(e,t){const n=bh(this.orderedModules[0].id);this.id=_h(lt(ut(this.orderedModules[0].id)?Y(e,n):"_virtual/"+pt(n)),t)}generateInternalExports(e){if(null!==this.facadeModule)return;const t="system"===e.format||"es"===e.format||e.compact;let n,r=0;if(this.exportNames=Object.create(null),this.sortedExportNames=null,t)for(const e of this.exports){const t=e.name[0];if(this.exportNames[t]){do{49===(n=xe(++r)).charCodeAt(0)&&(n=xe(r+=9*Math.pow(64,n.length-1)))}while(ve[n]||this.exportNames[n]);this.exportNames[n]=e}else this.exportNames[t]=e}else for(const e of this.exports){for(r=0,n=e.name;this.exportNames[n];)n=e.name+"$"+ ++r;this.exportNames[n]=e}}getChunkName(){return this.chunkName||(this.chunkName=this.computeChunkName())}getDynamicImportIds(){return this.dynamicDependencies.map(e=>e.id).filter(Boolean)}getExportNames(){return this.sortedExportNames||(this.sortedExportNames=Object.keys(this.exportNames).sort())}getImportIds(){return this.dependencies.map(e=>e.id)}getRenderedHash(){if(this.renderedHash)return this.renderedHash;if(!this.renderedSource)return"";const e=k();return e.update(this.renderedSource.toString()),e.update(this.getExportNames().map(e=>{const t=this.exportNames[e];return`${So(t.module.id).replace(/\\/g,"/")}:${t.name}:${e}`}).join(",")),this.renderedHash=e.digest("hex")}getRenderedSourceLength(){return void 0!==this.renderedSourceLength?this.renderedSourceLength:this.renderedSourceLength=this.renderedSource.length()}getVariableExportName(e){if(this.graph.preserveModules&&e instanceof po)return"*";for(const t of Object.keys(this.exportNames))if(this.exportNames[t]===e)return t;throw new Error(`Internal Error: Could not find export name for variable ${e.name}.`)}link(){const e=new Set,t=new Set;for(const n of this.orderedModules)this.addDependenciesToChunk(n.getTransitiveDependencies(),e),this.addDependenciesToChunk(n.dynamicDependencies,t),this.setUpChunkImportsAndExportsForModule(n);this.dependencies=Array.from(e),this.dynamicDependencies=Array.from(t)}merge(e,t,n,r){if(null!==this.facadeModule||null!==e.facadeModule)throw new Error("Internal error: Code splitting chunk merges not supported for facades");for(const t of e.orderedModules)t.chunk=this,this.orderedModules.push(t);for(const t of e.imports)this.imports.has(t)||t.module.chunk===this||this.imports.add(t);for(const t of e.exports)this.exports.has(t)||this.exports.add(t);const i=this.exportNames;this.generateInternalExports(n);const s=(e,t)=>{if(e.imports)for(const n of e.imports)n.imported=this.getVariableExportName(t[n.imported]);if(e.reexports)for(const n of e.reexports)n.imported=this.getVariableExportName(t[n.imported])},o=(e,t)=>{t.imports&&(e.imports?e.imports=e.imports.concat(t.imports):e.imports=t.imports),t.reexports&&(e.reexports?e.reexports=e.reexports.concat(t.reexports):e.reexports=t.reexports),!e.exportsNames&&t.exportsNames&&(e.exportsNames=!0),!e.exportsDefault&&t.exportsDefault&&(e.exportsDefault=!0),e.name=this.variableName};for(const n of t){let t=void 0;for(let r=0;r<n.dependencies.length;r++){const a=n.dependencies[r];if(a!==e&&a!==this||!t)a===e?(n.dependencies[r]=this,s(t=n.renderedDeclarations.dependencies[r],e.exportNames)):a===this&&s(t=n.renderedDeclarations.dependencies[r],i);else{const h=n.renderedDeclarations.dependencies[r];s(h,a===e?e.exportNames:i),o(t,h),n.renderedDeclarations.dependencies.splice(r,1),n.dependencies.splice(r--,1)}}}this.preRender(n,r)}preRender(e,t){th("render modules",3);const n=new K({separator:e.compact?"":"\n\n"});this.usedModules=[],this.indentString=e.compact?"":function(e,t){if(!0!==t.indent)return t.indent||"";for(let t=0;t<e.length;t++){const n=vh(e[t].originalCode);if(null!==n)return n}return"\t"}(this.orderedModules,e);const r=e.compact?"":"\n",i=e.compact?"":" ",s={compact:e.compact,dynamicImportFunction:e.dynamicImportFunction,format:e.format,freeze:!1!==e.freeze,indent:this.indentString,namespaceToStringTag:!0===e.namespaceToStringTag,varOrConst:e.preferConst?"const":"var"};for(const{module:e}of this.imports){const t=e instanceof uh?e.chunk:e;-1===this.dependencies.indexOf(t)&&this.dependencies.push(t)}if(!this.graph.preserveModules&&null!==this.facadeModule)for(const e of this.dependencies)e instanceof wh&&this.inlineChunkDependencies(e,!0);for(let e=0;e<this.dependencies.length;e++){const t=this.dependencies[e];t instanceof wh&&t.isEmpty&&(this.dependencies.splice(e--,1),this.inlineChunkDependencies(t,!1))}yh(this.dependencies),this.prepareDynamicImports(),this.setIdentifierRenderResolutions(e);let o="";const a=this.renderedModules=Object.create(null);for(const t of this.orderedModules){let i=0;if(t.isIncluded()){const a=t.render(s).trim();e.compact&&-1!==a.lastLine().indexOf("//")&&a.append("\n");const h=t.getOrCreateNamespace();if((h.included||a.length()>0)&&(i=a.length(),this.renderedModuleSources.set(t,a),n.addSource(a),this.usedModules.push(t),h.included&&!this.graph.preserveModules)){const e=h.renderBlock(s);h.renderFirst()?o+=r+e:n.addSource(new G(e))}}const{renderedExports:h,removedExports:u}=t.getRenderedExports();a[t.id]={originalLength:t.originalCode.length,removedExports:u,renderedExports:h,renderedLength:i}}o&&n.prepend(o+r+r),this.needsExportsShim&&n.prepend(`${r}${s.varOrConst} ${no}${i}=${i}void 0;${r}${r}`),e.compact?this.renderedSource=n:this.renderedSource=n.trim(),this.renderedSourceLength=void 0,this.renderedHash=void 0,0===this.getExportNames().length&&0===this.getImportIds().length&&this.isEmpty&&this.graph.warn({code:"EMPTY_BUNDLE",message:"Generated an empty bundle"}),this.setExternalRenderPaths(e,t),this.renderedDeclarations={dependencies:this.getChunkDependencyDeclarations(e),exports:"none"===this.exportMode?[]:this.getChunkExportDeclarations()},nh("render modules",3)}render(e,t,n){if(th("render format",3),!this.renderedSource)throw new Error("Internal error: Chunk render called before preRender");const r=e.format,i=Fo[r];i||Io({code:"INVALID_OPTION",message:`Invalid format: ${r} - valid options are ${Object.keys(Fo).join(", ")}.`}),e.dynamicImportFunction&&"es"!==r&&this.graph.warn({code:"INVALID_OPTION",message:'"output.dynamicImportFunction" is ignored for formats other than "esm".'});for(let e=0;e<this.dependencies.length;e++){const t=this.dependencies[e];if(t instanceof yt&&!t.renormalizeRenderPath)continue;const n=this.renderedDeclarations.dependencies[e],r=t instanceof yt?n.id:t.id;let i=this.id?lt(Y(dt(this.id),r)):r;i.startsWith("../")||(i="./"+i),t instanceof wh&&(n.namedExportsMode="default"!==t.exportMode),n.id=i}this.finaliseDynamicImports(r),this.finaliseImportMetas(r);const s=0!==this.renderedDeclarations.exports.length||this.renderedDeclarations.dependencies.some(e=>e.reexports&&0!==e.reexports.length);let o=!1;const a=new Set;for(const e of this.orderedModules){e.usesTopLevelAwait&&(o=!0);const t=e.scope.accessedGlobalVariablesByFormat,n=t&&t.get(r);if(n)for(const e of n)a.add(e)}o&&"es"!==r&&"system"!==r&&Io({code:"INVALID_TLA_FORMAT",message:`Module format ${r} does not support top-level await. Use the "es" or "system" output formats rather.`});const h=i(this.renderedSource,{accessedGlobals:a,dependencies:this.renderedDeclarations.dependencies,exports:this.renderedDeclarations.exports,hasExports:s,indentString:this.indentString,intro:t.intro,isEntryModuleFacade:null!==this.facadeModule&&this.facadeModule.isEntryPoint,namedExportsMode:"default"!==this.exportMode,outro:t.outro,usesTopLevelAwait:o,varOrConst:e.preferConst?"const":"var",warn:this.graph.warn.bind(this.graph)},e);t.banner&&h.prepend(t.banner),t.footer&&h.append(t.footer);const u=h.toString();nh("render format",3);let c=null;const l=[];return function({graph:e,chunk:t,renderChunk:n,code:r,sourcemapChain:i,options:s}){const o=(e,t,n)=>{if(null==t)return e;"string"==typeof t&&(t={code:t,map:void 0});const r="string"==typeof t.map?JSON.parse(t.map):t.map;return r&&"string"==typeof r.mappings&&(r.mappings=O(r.mappings)),null!==r&&i.push(r||{missing:!0,plugin:n.name}),t.code};let a=!1,h=!0;return e.pluginDriver.hookReduceArg0("renderChunk",[r,n,s],o).then(n=>(h=!1,e.pluginDriver.hookReduceArg0("transformChunk",[n,s,t],o))).then(n=>(a=!0,e.pluginDriver.hookReduceArg0("transformBundle",[n,s,t],o))).catch(e=>{if(h)throw e;return Io(e,{code:a?"BAD_BUNDLE_TRANSFORMER":"BAD_CHUNK_TRANSFORMER",message:`Error transforming ${(a?"bundle":"chunk")+(e.plugin?` with '${e.plugin}' plugin`:"")}: ${e.message}`,plugin:e.plugin})})}({chunk:this,code:u,graph:this.graph,options:e,renderChunk:n,sourcemapChain:l}).then(t=>{if(e.sourcemap){let t;if(th("sourcemap",3),t=e.file?gt(e.sourcemapFile||e.file):e.dir?gt(e.dir,this.id):gt(this.id),this.graph.pluginDriver.hasLoadersOrTransforms){const n=h.generateDecodedMap({});c=function(e,t,n,r,i,s){function o(t,n){return n.missing&&(e.graph.warn({code:"SOURCEMAP_BROKEN",message:`Sourcemap is likely to be incorrect: a plugin${n.plugin?` ('${n.plugin}')`:""} was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,plugin:n.plugin,url:"https://rollupjs.org/guide/en/#warning-sourcemap-is-likely-to-be-incorrect"}),n={mappings:"",names:[]}),new lh(n,[t])}const a=r.filter(e=>!e.excludeFromSourcemap).map(e=>{let t,n=e.sourcemapChain;const r=e.originalSourcemap;if(r){const i=r.sources,s=r.sourcesContent||[];if(null==i||i.length<=1&&null==i[0])t=new ch(e.id,s[0]),n=[r].concat(n);else{const n=dt(e.id)||".",o=r.sourceRoot||".",a=i.map((e,t)=>new ch(gt(n,o,e),s[t]));t=new lh(r,a)}}else t=new ch(e.id,e.originalCode);return t=n.reduce(o,t)});let h=new lh(n,a);h=i.reduce(o,h);let{sources:u,sourcesContent:c,names:l,mappings:p}=h.traceMappings();if(t){const e=dt(t);u=u.map(t=>mt(e,t)),t=pt(t)}return new L({file:t,sources:u,sourcesContent:c=s?null:c,names:l,mappings:p})}(this,t,n,this.usedModules,l,e.sourcemapExcludeSources)}else c=h.generateMap({file:t,includeContent:!e.sourcemapExcludeSources});c.sources=c.sources.map(t=>lt(e.sourcemapPathTransform?e.sourcemapPathTransform(t):t)),nh("sourcemap",3)}return!0!==e.compact&&"\n"!==t[t.length-1]&&(t+="\n"),{code:t,map:c}})}visitDependencies(e){const t=[this],n=new Set;for(const r of t)if(e(r),!(r instanceof yt))for(const e of r.dependencies.concat(r.dynamicDependencies))n.has(e)||(n.add(e),t.push(e))}visitStaticDependenciesUntilCondition(e){const t=new Set;return function n(r){if(!t.has(r)){if(t.add(r),r instanceof wh)for(const e of r.dependencies)if(n(e))return!0;return!0===e(r)}}(this)}addDependenciesToChunk(e,t){for(const n of e){if(n.chunk===this)continue;let e;if(n instanceof uh)e=n.chunk;else{if(!n.used&&!n.moduleSideEffects)continue;e=n}t.add(e)}}computeChunkName(){if(this.manualChunkAlias)return bh(this.manualChunkAlias);if(null!==this.facadeModule)return bh(this.facadeModule.chunkAlias||Ao(this.facadeModule.id));for(const e of this.orderedModules)if(e.chunkAlias)return bh(e.chunkAlias);return"chunk"}computeContentHashWithDependencies(e,t){const n=k();return n.update([e.intro,e.outro,e.banner,e.footer].map(e=>e||"").join(":")),n.update(t.format),this.visitDependencies(e=>{e instanceof yt?n.update(":"+e.renderPath):n.update(e.getRenderedHash())}),n.digest("hex").substr(0,8)}finaliseDynamicImports(e){for(const[t,n]of this.renderedModuleSources)for(const{node:r,resolution:i}of t.dynamicImports)if(i)if(i instanceof uh){if(i.chunk!==this&&Sh(i.chunk)){const t=i.facadeChunk||i.chunk;let s=lt(Y(dt(this.id),t.id));s.startsWith("../")||(s="./"+s),r.renderFinalResolution(n,`'${s}'`,e)}}else if(i instanceof yt){let t=i.id;i.renormalizeRenderPath&&((t=lt(Y(dt(this.id),i.renderPath))).startsWith("../")||(t="./"+t)),r.renderFinalResolution(n,`'${t}'`,e)}else r.renderFinalResolution(n,i,e)}finaliseImportMetas(e){for(const[t,n]of this.renderedModuleSources)for(const r of t.importMetas)r.renderFinalMechanism(n,this.id,e,this.graph.pluginDriver)}getChunkDependencyDeclarations(e){const t=new Map;for(let e of this.getExportNames()){let n,r,i=!1;if("*"===e[0])n=this.graph.moduleById.get(e.substr(1)),r=e="*";else{const t=this.exportNames[e],s=t.module;if(!s||s.chunk===this)continue;s instanceof uh?(r=(n=s.chunk).getVariableExportName(t),i=t.isReassigned):(n=s,r=t.name,i=!0)}let s=t.get(n);s||t.set(n,s=[]),s.push({imported:r,reexported:e,needsLiveBinding:i})}const n=new Set,r=[];for(const i of this.dependencies){const s=[];for(const e of this.imports){const t=e instanceof to?e.getOriginalVariable():e;(e.module instanceof uh?e.module.chunk!==i:e.module!==i)||n.has(t)||(n.add(t),s.push({imported:e.module instanceof yt?e.name:e.module.chunk.getVariableExportName(e),local:e.getName()}))}const o=t.get(i);let a,h,u=!0;i instanceof yt?(a=i.exportsNames||i.exportsNamespace,h="default"in i.declarations):(a=!0,h=!1,u="default"!==i.exportMode);let c=void 0,l=void 0;i instanceof yt&&(c=i.renderPath,"umd"!==e.format&&"iife"!==e.format||(l=Ah(i,e.globals,this.graph,a||h))),r.push({exportsDefault:h,exportsNames:a,globalName:l,id:c,imports:s.length>0?s:null,isChunk:i instanceof wh,name:i.variableName,namedExportsMode:u,reexports:o})}return r}getChunkExportDeclarations(){const e=[];for(const t of this.getExportNames()){if("*"===t[0])continue;const n=this.exportNames[t],r=n.module;if(r&&r.chunk!==this)continue;let i=!1,s=!1;if(n instanceof Et){n.init===Ce&&(s=!0);for(const e of n.declarations)if(e.parent instanceof Js||e instanceof eo&&e.declaration instanceof Js){i=!0;break}}else n instanceof lo&&(i=!0);const o=n.getName();e.push({exported:"*"===t?o:t,hoisted:i,local:o,uninitialized:s})}return e}inlineChunkDependencies(e,t){for(const n of e.dependencies)if(n instanceof yt)-1===this.dependencies.indexOf(n)&&this.dependencies.push(n);else{if(n===this||-1!==this.dependencies.indexOf(n))continue;n.isEmpty||this.dependencies.push(n),t&&this.inlineChunkDependencies(n,!0)}}prepareDynamicImports(){for(const e of this.orderedModules)for(const{node:t,resolution:n}of e.dynamicImports)if(t.included)if(n instanceof uh)if(n.chunk===this){const e=n.getOrCreateNamespace();t.setResolution("named",e)}else t.setResolution(n.chunk.exportMode);else t.setResolution("auto")}setExternalRenderPaths(e,t){for(const n of this.dependencies.concat(this.dynamicDependencies))n instanceof yt&&n.setRenderPath(e,t)}setIdentifierRenderResolutions(e){for(const t of this.getExportNames()){const n=this.exportNames[t];n&&(n instanceof so&&(this.needsExportsShim=!0),n.exportName=t,"es"===e.format||"system"===e.format||!n.isReassigned||n.isId||n instanceof to&&n.hasId?n.setRenderNames(null,null):n.setRenderNames("exports",t))}const t=new Set;this.needsExportsShim&&t.add(no),"es"!==e.format&&(t.add("exports"),"cjs"===e.format&&t.add(ro).add("require").add("module").add("__filename").add("__dirname")),dh(this.orderedModules,this.dependencies,this.imports,t,e.format,!1!==e.interop,this.graph.preserveModules)}setUpChunkImportsAndExportsForModule(e){for(const t of e.imports)t.module.chunk!==this&&(this.imports.add(t),t.module instanceof uh&&t.module.chunk.exports.add(t));if(e.isEntryPoint||e.dynamicallyImportedBy.some(e=>e.chunk!==this)){const t=e.getExportNamesByVariable();for(const e of t.keys()){this.exports.add(e);const t=e.module;t&&t.chunk&&t.chunk!==this&&t.chunk.exports.add(e)}}if(e.getOrCreateNamespace().included)for(const t of Object.keys(e.reexports)){const n=e.reexports[t],r=n.module.getVariableForExportName(n.localName);r.module.chunk!==this&&(this.imports.add(r),r.module instanceof uh&&r.module.chunk.exports.add(r))}for(const{node:t,resolution:n}of e.dynamicImports)t.included&&n instanceof uh&&n.chunk===this&&n.getOrCreateNamespace().include()}}var Ih={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Ph="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Ch={5:Ph,6:Ph+" const class extends export import super"},kh=/^in(stanceof)?$/,$h="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Nh="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",Rh=new RegExp("["+$h+"]"),Oh=new RegExp("["+$h+Nh+"]");$h=Nh=null;var Mh=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,190,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,26,230,43,117,63,32,0,257,0,11,39,8,0,22,0,12,39,3,3,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,68,12,0,67,12,65,1,31,6129,15,754,9486,286,82,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,60,67,1213,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],Dh=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,280,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239];function Th(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}}function Lh(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&Rh.test(String.fromCharCode(e)):!1!==t&&Th(e,Mh)))}function Vh(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&Oh.test(String.fromCharCode(e)):!1!==t&&(Th(e,Mh)||Th(e,Dh)))))}var Bh=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function zh(e,t){return new Bh(e,{beforeExpr:!0,binop:t})}var jh={beforeExpr:!0},Wh={startsExpr:!0},Uh={};function Fh(e,t){return void 0===t&&(t={}),t.keyword=e,Uh[e]=new Bh(e,t)}var qh={num:new Bh("num",Wh),regexp:new Bh("regexp",Wh),string:new Bh("string",Wh),name:new Bh("name",Wh),eof:new Bh("eof"),bracketL:new Bh("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Bh("]"),braceL:new Bh("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Bh("}"),parenL:new Bh("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Bh(")"),comma:new Bh(",",jh),semi:new Bh(";",jh),colon:new Bh(":",jh),dot:new Bh("."),question:new Bh("?",jh),arrow:new Bh("=>",jh),template:new Bh("template"),invalidTemplate:new Bh("invalidTemplate"),ellipsis:new Bh("...",jh),backQuote:new Bh("`",Wh),dollarBraceL:new Bh("${",{beforeExpr:!0,startsExpr:!0}),eq:new Bh("=",{beforeExpr:!0,isAssign:!0}),assign:new Bh("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Bh("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Bh("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:zh("||",1),logicalAND:zh("&&",2),bitwiseOR:zh("|",3),bitwiseXOR:zh("^",4),bitwiseAND:zh("&",5),equality:zh("==/!=/===/!==",6),relational:zh("</>/<=/>=",7),bitShift:zh("<</>>/>>>",8),plusMin:new Bh("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:zh("%",10),star:zh("*",10),slash:zh("/",10),starstar:new Bh("**",{beforeExpr:!0}),_break:Fh("break"),_case:Fh("case",jh),_catch:Fh("catch"),_continue:Fh("continue"),_debugger:Fh("debugger"),_default:Fh("default",jh),_do:Fh("do",{isLoop:!0,beforeExpr:!0}),_else:Fh("else",jh),_finally:Fh("finally"),_for:Fh("for",{isLoop:!0}),_function:Fh("function",Wh),_if:Fh("if"),_return:Fh("return",jh),_switch:Fh("switch"),_throw:Fh("throw",jh),_try:Fh("try"),_var:Fh("var"),_const:Fh("const"),_while:Fh("while",{isLoop:!0}),_with:Fh("with"),_new:Fh("new",{beforeExpr:!0,startsExpr:!0}),_this:Fh("this",Wh),_super:Fh("super",Wh),_class:Fh("class",Wh),_extends:Fh("extends",jh),_export:Fh("export"),_import:Fh("import"),_null:Fh("null",Wh),_true:Fh("true",Wh),_false:Fh("false",Wh),_in:Fh("in",{beforeExpr:!0,binop:7}),_instanceof:Fh("instanceof",{beforeExpr:!0,binop:7}),_typeof:Fh("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Fh("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Fh("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Gh=/\r\n?|\n|\u2028|\u2029/,Hh=new RegExp(Gh.source,"g");function Kh(e,t){return 10===e||13===e||!t&&(8232===e||8233===e)}var Yh=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Xh=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Qh=Object.prototype,Jh=Qh.hasOwnProperty,Zh=Qh.toString;function eu(e,t){return Jh.call(e,t)}var tu=Array.isArray||function(e){return"[object Array]"===Zh.call(e)};function nu(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var ru=function(e,t){this.line=e,this.column=t};ru.prototype.offset=function(e){return new ru(this.line,this.column+e)};var iu=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function su(e,t){for(var n=1,r=0;;){Hh.lastIndex=r;var i=Hh.exec(e);if(!(i&&i.index<t))return new ru(n,t-r);++n,r=i.index+i[0].length}}var ou={ecmaVersion:9,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function au(e){var t={};for(var n in ou)t[n]=e&&eu(e,n)?e[n]:ou[n];if(t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),tu(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return tu(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,s,o,a){var h={type:n?"Block":"Line",value:r,start:i,end:s};e.locations&&(h.loc=new iu(this,o,a)),e.ranges&&(h.range=[i,s]),t.push(h)}}(t,t.onComment)),t}var hu=2,uu=1|hu,cu=4,lu=8;function pu(e,t){return hu|(e?cu:0)|(t?lu:0)}var du=function(e,t,n){this.options=e=au(e),this.sourceFile=e.sourceFile,this.keywords=nu(Ch[e.ecmaVersion>=6?6:5]);var r="";if(!e.allowReserved){for(var i=e.ecmaVersion;!(r=Ih[i]);i--);"module"===e.sourceType&&(r+=" await")}this.reservedWords=nu(r);var s=(r?r+" ":"")+Ih.strict;this.reservedWordsStrict=nu(s),this.reservedWordsStrictBind=nu(s+" "+Ih.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Gh).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=qh.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},fu={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};du.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},fu.inFunction.get=function(){return(this.currentVarScope().flags&hu)>0},fu.inGenerator.get=function(){return(this.currentVarScope().flags&lu)>0},fu.inAsync.get=function(){return(this.currentVarScope().flags&cu)>0},fu.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},fu.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},fu.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},du.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&hu)>0},du.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},du.parse=function(e,t){return new this(t,e).parse()},du.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},du.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(du.prototype,fu);var mu=du.prototype,gu=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)")/;function yu(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}mu.strictDirective=function(e){for(;;){Xh.lastIndex=e,e+=Xh.exec(this.input)[0].length;var t=gu.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2]))return!0;e+=t[0].length,Xh.lastIndex=e,e+=Xh.exec(this.input)[0].length,";"===this.input[e]&&e++}},mu.eat=function(e){return this.type===e&&(this.next(),!0)},mu.isContextual=function(e){return this.type===qh.name&&this.value===e&&!this.containsEsc},mu.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},mu.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},mu.canInsertSemicolon=function(){return this.type===qh.eof||this.type===qh.braceR||Gh.test(this.input.slice(this.lastTokEnd,this.start))},mu.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},mu.semicolon=function(){this.eat(qh.semi)||this.insertSemicolon()||this.unexpected()},mu.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},mu.expect=function(e){this.eat(e)||this.unexpected()},mu.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},mu.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},mu.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},mu.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},mu.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var xu=du.prototype;xu.parseTopLevel=function(e){var t={};for(e.body||(e.body=[]);this.type!==qh.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var s=i[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),this.options.ecmaVersion>=6&&(e.sourceType=this.options.sourceType),this.finishNode(e,"Program")};var vu={kind:"loop"},Eu={kind:"switch"};xu.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Xh.lastIndex=this.pos;var t=Xh.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(91===r)return!0;if(e)return!1;if(123===r)return!0;if(Lh(r,!0)){for(var i=n+1;Vh(this.input.charCodeAt(i),!0);)++i;var s=this.input.slice(n,i);if(!kh.test(s))return!0}return!1},xu.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Xh.lastIndex=this.pos;var e=Xh.exec(this.input),t=this.pos+e[0].length;return!(Gh.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!==this.input.length&&Vh(this.input.charAt(t+8)))},xu.parseStatement=function(e,t,n){var r,i=this.type,s=this.startNode();switch(this.isLet(e)&&(i=qh._var,r="let"),i){case qh._break:case qh._continue:return this.parseBreakContinueStatement(s,i.keyword);case qh._debugger:return this.parseDebuggerStatement(s);case qh._do:return this.parseDoStatement(s);case qh._for:return this.parseForStatement(s);case qh._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case qh._class:return e&&this.unexpected(),this.parseClass(s,!0);case qh._if:return this.parseIfStatement(s);case qh._return:return this.parseReturnStatement(s);case qh._switch:return this.parseSwitchStatement(s);case qh._throw:return this.parseThrowStatement(s);case qh._try:return this.parseTryStatement(s);case qh._const:case qh._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(s,r);case qh._while:return this.parseWhileStatement(s);case qh._with:return this.parseWithStatement(s);case qh.braceL:return this.parseBlock(!0,s);case qh.semi:return this.parseEmptyStatement(s);case qh._export:case qh._import:return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===qh._import?this.parseImport(s):this.parseExport(s,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var o=this.value,a=this.parseExpression();return i===qh.name&&"Identifier"===a.type&&this.eat(qh.colon)?this.parseLabeledStatement(s,o,a,e):this.parseExpressionStatement(s,a)}},xu.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(qh.semi)||this.insertSemicolon()?e.label=null:this.type!==qh.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(n||"loop"===i.kind))break;if(e.label&&n)break}}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},xu.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},xu.parseDoStatement=function(e){return this.next(),this.labels.push(vu),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(qh._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(qh.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},xu.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(vu),this.enterScope(0),this.expect(qh.parenL),this.type===qh.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===qh._var||this.type===qh._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),!(this.type===qh._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==r.declarations.length||"var"!==i&&r.declarations[0].init?(t>-1&&this.unexpected(t),this.parseFor(e,r)):(this.options.ecmaVersion>=9&&(this.type===qh._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r))}var s=new yu,o=this.parseExpression(!0,s);return this.type===qh._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===qh._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(o,!1,s),this.checkLVal(o),this.parseForIn(e,o)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,o))},xu.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,bu|(n?0:Au),!1,t)},xu.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(qh._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},xu.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(qh.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},xu.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(qh.braceL),this.labels.push(Eu),this.enterScope(0);for(var n=!1;this.type!==qh.braceR;)if(this.type===qh._case||this.type===qh._default){var r=this.type===qh._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(qh.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},xu.parseThrowStatement=function(e){return this.next(),Gh.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var _u=[];xu.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===qh._catch){var t=this.startNode();if(this.next(),this.eat(qh.parenL)){t.param=this.parseBindingAtom();var n="Identifier"===t.param.type;this.enterScope(n?32:0),this.checkLVal(t.param,n?4:2),this.expect(qh.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(qh._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},xu.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},xu.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(vu),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},xu.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},xu.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},xu.parseLabeledStatement=function(e,t,n,r){for(var i=0,s=this.labels;i<s.length;i+=1){s[i].name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var o=this.type.isLoop?"loop":this.type===qh._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var h=this.labels[a];if(h.statementStart!==e.start)break;h.statementStart=this.start,h.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},xu.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},xu.parseBlock=function(e,t){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(qh.braceL),e&&this.enterScope(0);!this.eat(qh.braceR);){var n=this.parseStatement(null);t.body.push(n)}return e&&this.exitScope(),this.finishNode(t,"BlockStatement")},xu.parseFor=function(e,t){return e.init=t,this.expect(qh.semi),e.test=this.type===qh.semi?null:this.parseExpression(),this.expect(qh.semi),e.update=this.type===qh.parenR?null:this.parseExpression(),this.expect(qh.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},xu.parseForIn=function(e,t){var n=this.type===qh._in?"ForInStatement":"ForOfStatement";return this.next(),"ForInStatement"===n&&("AssignmentPattern"===t.type||"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(this.strict||"Identifier"!==t.declarations[0].id.type))&&this.raise(t.start,"Invalid assignment in for-in loop head"),e.left=t,e.right="ForInStatement"===n?this.parseExpression():this.parseMaybeAssign(),this.expect(qh.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n)},xu.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(qh.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===qh._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||t&&(this.type===qh._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(qh.comma))break}return e},xu.parseVarId=function(e,t){"const"!==t&&"let"!==t||!this.isContextual("let")||this.raiseRecoverable(this.start,"let is disallowed as a lexically bound name"),e.id=this.parseBindingAtom(),this.checkLVal(e.id,"var"===t?1:2,!1)};var bu=1,Au=2;xu.parseFunction=function(e,t,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===qh.star&&t&Au&&this.unexpected(),e.generator=this.eat(qh.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&bu&&(e.id=4&t&&this.type!==qh.name?null:this.parseIdent(),!e.id||t&Au||this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(pu(e.async,e.generator)),t&bu||(e.id=this.type===qh.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(e,t&bu?"FunctionDeclaration":"FunctionExpression")},xu.parseFunctionParams=function(e){this.expect(qh.parenL),e.params=this.parseBindingList(qh.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},xu.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.startNode(),i=!1;for(r.body=[],this.expect(qh.braceL);!this.eat(qh.braceR);){var s=this.parseClassElement(null!==e.superClass);s&&(r.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind&&(i&&this.raise(s.start,"Duplicate constructor in the same class"),i=!0))}return e.body=this.finishNode(r,"ClassBody"),this.strict=n,this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},xu.parseClassElement=function(e){var t=this;if(this.eat(qh.semi))return null;var n=this.startNode(),r=function(e,r){void 0===r&&(r=!1);var i=t.start,s=t.startLoc;return!!t.eatContextual(e)&&(!(t.type===qh.parenL||r&&t.canInsertSemicolon())||(n.key&&t.unexpected(),n.computed=!1,n.key=t.startNodeAt(i,s),n.key.name=e,t.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=r("static");var i=this.eat(qh.star),s=!1;i||(this.options.ecmaVersion>=8&&r("async",!0)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(qh.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var o=n.key,a=!1;return n.computed||n.static||!("Identifier"===o.type&&"constructor"===o.name||"Literal"===o.type&&"constructor"===o.value)?n.static&&"Identifier"===o.type&&"prototype"===o.name&&this.raise(o.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(o.start,"Constructor can't have get/set modifier"),i&&this.raise(o.start,"Constructor can't be a generator"),s&&this.raise(o.start,"Constructor can't be an async method"),n.kind="constructor",a=e),this.parseClassMethod(n,i,s,a),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},xu.parseClassMethod=function(e,t,n,r){return e.value=this.parseMethod(t,n,r),this.finishNode(e,"MethodDefinition")},xu.parseClassId=function(e,t){this.type===qh.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},xu.parseClassSuper=function(e){e.superClass=this.eat(qh._extends)?this.parseExprSubscripts():null},xu.parseExport=function(e,t){if(this.next(),this.eat(qh.star))return this.expectContextual("from"),this.type!==qh.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(qh._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===qh._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,4|bu,!1,n)}else if(this.type===qh._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==qh.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var s=0,o=e.specifiers;s<o.length;s+=1){var a=o[s];this.checkUnreserved(a.local),this.checkLocalExport(a.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},xu.checkExport=function(e,t,n){e&&(eu(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},xu.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t.name,t.start);else if("ObjectPattern"===n)for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.checkPatternExport(e,s)}else if("ArrayPattern"===n)for(var o=0,a=t.elements;o<a.length;o+=1){var h=a[o];h&&this.checkPatternExport(e,h)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===n&&this.checkPatternExport(e,t.expression)},xu.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},xu.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},xu.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(qh.braceL);!this.eat(qh.braceR);){if(n)n=!1;else if(this.expect(qh.comma),this.afterTrailingComma(qh.braceR))break;var r=this.startNode();r.local=this.parseIdent(!0),r.exported=this.eatContextual("as")?this.parseIdent(!0):r.local,this.checkExport(e,r.exported.name,r.exported.start),t.push(this.finishNode(r,"ExportSpecifier"))}return t},xu.parseImport=function(e){return this.next(),this.type===qh.string?(e.specifiers=_u,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===qh.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},xu.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===qh.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLVal(n.local,2),e.push(this.finishNode(n,"ImportDefaultSpecifier")),!this.eat(qh.comma))return e}if(this.type===qh.star){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLVal(r.local,2),e.push(this.finishNode(r,"ImportNamespaceSpecifier")),e}for(this.expect(qh.braceL);!this.eat(qh.braceR);){if(t)t=!1;else if(this.expect(qh.comma),this.afterTrailingComma(qh.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLVal(i.local,2),e.push(this.finishNode(i,"ImportSpecifier"))}return e},xu.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},xu.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var Su=du.prototype;Su.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.toAssignable(s,t),"RestElement"!==s.type||"ArrayPattern"!==s.argument.type&&"ObjectPattern"!==s.argument.type||this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},Su.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var s=e[n-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},Su.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},Su.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==qh.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Su.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case qh.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(qh.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case qh.braceL:return this.parseObj(!0)}return this.parseIdent()},Su.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(qh.comma),t&&this.type===qh.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===qh.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),r.push(s),this.type===qh.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}return r},Su.parseBindingListItem=function(e){return e},Su.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(qh.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},Su.checkLVal=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(t?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(eu(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),0!==t&&5!==t&&this.declareName(e.name,t,e.start);break;case"MemberExpression":t&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.checkLVal(s,t,n)}break;case"Property":this.checkLVal(e.value,t,n);break;case"ArrayPattern":for(var o=0,a=e.elements;o<a.length;o+=1){var h=a[o];h&&this.checkLVal(h,t,n)}break;case"AssignmentPattern":this.checkLVal(e.left,t,n);break;case"RestElement":this.checkLVal(e.argument,t,n);break;case"ParenthesizedExpression":this.checkLVal(e.expression,t,n);break;default:this.raise(e.start,(t?"Binding":"Assigning to")+" rvalue")}};var wu=du.prototype;wu.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===s&&(t.proto&&(n&&n.doubleProto<0?n.doubleProto=i.start:this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var o=t[r="$"+r];if(o)("init"===s?this.strict&&o.init||o.get||o.set:o.init||o[s])&&this.raiseRecoverable(i.start,"Redefinition of property");else o=t[r]={init:!1,get:!1,set:!1};o[s]=!0}}},wu.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===qh.comma){var s=this.startNodeAt(n,r);for(s.expressions=[i];this.eat(qh.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return i},wu.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,s=-1,o=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,o=t.shorthandAssign,t.parenthesizedAssign=t.trailingComma=t.shorthandAssign=-1):(t=new yu,r=!0);var a=this.start,h=this.startLoc;this.type!==qh.parenL&&this.type!==qh.name||(this.potentialArrowAt=this.start);var u=this.parseMaybeConditional(e,t);if(n&&(u=n.call(this,u,a,h)),this.type.isAssign){var c=this.startNodeAt(a,h);return c.operator=this.value,c.left=this.type===qh.eq?this.toAssignable(u,!1,t):u,r||yu.call(t),t.shorthandAssign=-1,this.checkLVal(u),this.next(),c.right=this.parseMaybeAssign(e),this.finishNode(c,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),o>-1&&(t.shorthandAssign=o),u},wu.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(qh.question)){var s=this.startNodeAt(n,r);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(qh.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return i},wu.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)?i:i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},wu.parseExprOp=function(e,t,n,r,i){var s=this.type.binop;if(null!=s&&(!i||this.type!==qh._in)&&s>r){var o=this.type===qh.logicalOR||this.type===qh.logicalAND,a=this.value;this.next();var h=this.start,u=this.startLoc,c=this.parseExprOp(this.parseMaybeUnary(null,!1),h,u,s,i),l=this.buildBinary(t,n,e,c,a,o);return this.parseExprOp(l,t,n,r,i)}return e},wu.buildBinary=function(e,t,n,r,i,s){var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")},wu.parseMaybeUnary=function(e,t){var n,r=this.start,i=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))n=this.parseAwait(),t=!0;else if(this.type.prefix){var s=this.startNode(),o=this.type===qh.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),o?this.checkLVal(s.argument):this.strict&&"delete"===s.operator&&"Identifier"===s.argument.type?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):t=!0,n=this.finishNode(s,o?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var a=this.startNodeAt(r,i);a.operator=this.value,a.prefix=!1,a.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(a,"UpdateExpression")}}return!t&&this.eat(qh.starstar)?this.buildBinary(r,i,n,this.parseMaybeUnary(null,!1),"**",!1):n},wu.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,r=this.parseExprAtom(e),i="ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(e)||i)return r;var s=this.parseSubscripts(r,t,n);return e&&"MemberExpression"===s.type&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1)),s},wu.parseSubscripts=function(e,t,n,r){for(var i=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(e.start,e.end);;){var s=this.parseSubscript(e,t,n,r,i);if(s===e||"ArrowFunctionExpression"===s.type)return s;e=s}},wu.parseSubscript=function(e,t,n,r,i){var s=this.eat(qh.bracketL);if(s||this.eat(qh.dot)){var o=this.startNodeAt(t,n);o.object=e,o.property=s?this.parseExpression():this.parseIdent(!0),o.computed=!!s,s&&this.expect(qh.bracketR),e=this.finishNode(o,"MemberExpression")}else if(!r&&this.eat(qh.parenL)){var a=new yu,h=this.yieldPos,u=this.awaitPos,c=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var l=this.parseExprList(qh.parenR,this.options.ecmaVersion>=8,!1,a);if(i&&!this.canInsertSemicolon()&&this.eat(qh.arrow))return this.checkPatternErrors(a,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=u,this.awaitIdentPos=c,this.parseArrowExpression(this.startNodeAt(t,n),l,!0);this.checkExpressionErrors(a,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=u||this.awaitPos,this.awaitIdentPos=c||this.awaitIdentPos;var p=this.startNodeAt(t,n);p.callee=e,p.arguments=l,e=this.finishNode(p,"CallExpression")}else if(this.type===qh.backQuote){var d=this.startNodeAt(t,n);d.tag=e,d.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(d,"TaggedTemplateExpression")}return e},wu.parseExprAtom=function(e){this.type===qh.slash&&this.readRegexp();var t,n=this.potentialArrowAt===this.start;switch(this.type){case qh._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),t=this.startNode(),this.next(),this.type!==qh.parenL||this.allowDirectSuper||this.raise(t.start,"super() call outside constructor of a subclass"),this.type!==qh.dot&&this.type!==qh.bracketL&&this.type!==qh.parenL&&this.unexpected(),this.finishNode(t,"Super");case qh._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case qh.name:var r=this.start,i=this.startLoc,s=this.containsEsc,o=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(qh._function))return this.parseFunction(this.startNodeAt(r,i),0,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(qh.arrow))return this.parseArrowExpression(this.startNodeAt(r,i),[o],!1);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===qh.name&&!s)return o=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(qh.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,i),[o],!0)}return o;case qh.regexp:var a=this.value;return(t=this.parseLiteral(a.value)).regex={pattern:a.pattern,flags:a.flags},t;case qh.num:case qh.string:return this.parseLiteral(this.value);case qh._null:case qh._true:case qh._false:return(t=this.startNode()).value=this.type===qh._null?null:this.type===qh._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case qh.parenL:var h=this.start,u=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=h),e.parenthesizedBind<0&&(e.parenthesizedBind=h)),u;case qh.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(qh.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case qh.braceL:return this.parseObj(!1,e);case qh._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case qh._class:return this.parseClass(this.startNode(),!1);case qh._new:return this.parseNew();case qh.backQuote:return this.parseTemplate();default:this.unexpected()}},wu.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(t,"Literal")},wu.parseParenExpression=function(){this.expect(qh.parenL);var e=this.parseExpression();return this.expect(qh.parenR),e},wu.parseParenAndDistinguishExpression=function(e){var t,n=this.start,r=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,o=this.start,a=this.startLoc,h=[],u=!0,c=!1,l=new yu,p=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==qh.parenR;){if(u?u=!1:this.expect(qh.comma),i&&this.afterTrailingComma(qh.parenR,!0)){c=!0;break}if(this.type===qh.ellipsis){s=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===qh.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}h.push(this.parseMaybeAssign(!1,l,this.parseParenItem))}var f=this.start,m=this.startLoc;if(this.expect(qh.parenR),e&&!this.canInsertSemicolon()&&this.eat(qh.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=d,this.parseParenArrowList(n,r,h);h.length&&!c||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(l,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=d||this.awaitPos,h.length>1?((t=this.startNodeAt(o,a)).expressions=h,this.finishNodeAt(t,"SequenceExpression",f,m)):t=h[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(n,r);return g.expression=t,this.finishNode(g,"ParenthesizedExpression")}return t},wu.parseParenItem=function(e){return e},wu.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var Iu=[];wu.parseNew=function(){var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(qh.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),("target"!==e.property.name||n)&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is new.target"),this.inNonArrowFunction()||this.raiseRecoverable(e.start,"new.target can only be used in functions"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),this.eat(qh.parenL)?e.arguments=this.parseExprList(qh.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Iu,this.finishNode(e,"NewExpression")},wu.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===qh.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===qh.backQuote,this.finishNode(n,"TemplateElement")},wu.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===qh.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(qh.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(qh.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},wu.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===qh.name||this.type===qh.num||this.type===qh.string||this.type===qh.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===qh.star)&&!Gh.test(this.input.slice(this.lastTokEnd,this.start))},wu.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(qh.braceR);){if(r)r=!1;else if(this.expect(qh.comma),this.afterTrailingComma(qh.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},wu.parseProperty=function(e,t){var n,r,i,s,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(qh.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===qh.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(this.type===qh.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),o.argument=this.parseMaybeAssign(!1,t),this.type===qh.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,s=this.startLoc),e||(n=this.eat(qh.star)));var a=this.containsEsc;return this.parsePropertyName(o),!e&&!a&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(qh.star),this.parsePropertyName(o,t)):r=!1,this.parsePropertyValue(o,e,n,r,i,s,t,a),this.finishNode(o,"Property")},wu.parsePropertyValue=function(e,t,n,r,i,s,o,a){if((n||r)&&this.type===qh.colon&&this.unexpected(),this.eat(qh.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===qh.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===qh.comma||this.type===qh.braceR)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,s,e.key):this.type===qh.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var h="get"===e.kind?0:1;if(e.value.params.length!==h){var u=e.value.start;"get"===e.kind?this.raiseRecoverable(u,"getter should have no params"):this.raiseRecoverable(u,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},wu.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(qh.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(qh.bracketR),e.key;e.computed=!1}return e.key=this.type===qh.num||this.type===qh.string?this.parseExprAtom():this.parseIdent(!0)},wu.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},wu.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|pu(t,r.generator)|(n?128:0)),this.expect(qh.parenL),r.params=this.parseBindingList(qh.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(r,"FunctionExpression")},wu.parseArrowExpression=function(e,t,n){var r=this.yieldPos,i=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|pu(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=r,this.awaitPos=i,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")},wu.parseFunctionBody=function(e,t,n){var r=t&&this.type!==qh.braceL,i=this.strict,s=!1;if(r)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);i&&!o||(s=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var a=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!i&&!s&&!t&&!n&&this.isSimpleParamList(e.params)),e.body=this.parseBlock(!1),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=a}this.exitScope(),this.strict&&e.id&&this.checkLVal(e.id,5),this.strict=i},wu.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){if("Identifier"!==n[t].type)return!1}return!0},wu.checkParams=function(e,t){for(var n={},r=0,i=e.params;r<i.length;r+=1){var s=i[r];this.checkLVal(s,1,t?null:n)}},wu.parseExprList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(qh.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===qh.comma?o=null:this.type===qh.ellipsis?(o=this.parseSpread(r),r&&this.type===qh.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},wu.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;(this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,n).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},wu.parseIdent=function(e,t){var n=this.startNode();return e&&"never"===this.options.allowReserved&&(e=!1),this.type===qh.name?n.name=this.value:this.type.keyword?(n.name=this.type.keyword,"class"!==n.name&&"function"!==n.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(),this.finishNode(n,"Identifier"),e||(this.checkUnreserved(n),"await"!==n.name||this.awaitIdentPos||(this.awaitIdentPos=n.start)),n},wu.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===qh.semi||this.canInsertSemicolon()||this.type!==qh.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(qh.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},wu.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0),this.finishNode(e,"AwaitExpression")};var Pu=du.prototype;Pu.raise=function(e,t){var n=su(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},Pu.raiseRecoverable=Pu.raise,Pu.curPosition=function(){if(this.options.locations)return new ru(this.curLine,this.pos-this.lineStart)};var Cu=du.prototype,ku=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};Cu.enterScope=function(e){this.scopeStack.push(new ku(e))},Cu.exitScope=function(){this.scopeStack.pop()},Cu.treatFunctionsAsVarInScope=function(e){return e.flags&hu||!this.inModule&&1&e.flags},Cu.declareName=function(e,t,n){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t){this.currentScope().lexical.push(e)}else if(3===t){var s=this.currentScope();r=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var a=this.scopeStack[o];if(a.lexical.indexOf(e)>-1&&!(32&a.flags&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){r=!0;break}if(a.var.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e],a.flags&uu)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},Cu.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},Cu.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Cu.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&uu)return t}},Cu.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&uu&&!(16&t.flags))return t}};var $u=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new iu(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Nu=du.prototype;function Ru(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}Nu.startNode=function(){return new $u(this,this.start,this.startLoc)},Nu.startNodeAt=function(e,t){return new $u(this,e,t)},Nu.finishNode=function(e,t){return Ru.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Nu.finishNodeAt=function(e,t,n,r){return Ru.call(this,e,t,n,r)};var Ou=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},Mu={b_stat:new Ou("{",!1),b_expr:new Ou("{",!0),b_tmpl:new Ou("${",!1),p_stat:new Ou("(",!1),p_expr:new Ou("(",!0),q_tmpl:new Ou("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Ou("function",!1),f_expr:new Ou("function",!0),f_expr_gen:new Ou("function",!0,!1,null,!0),f_gen:new Ou("function",!1,!1,null,!0)},Du=du.prototype;Du.initialContext=function(){return[Mu.b_stat]},Du.braceIsBlock=function(e){var t=this.curContext();return t===Mu.f_expr||t===Mu.f_stat||(e!==qh.colon||t!==Mu.b_stat&&t!==Mu.b_expr?e===qh._return||e===qh.name&&this.exprAllowed?Gh.test(this.input.slice(this.lastTokEnd,this.start)):e===qh._else||e===qh.semi||e===qh.eof||e===qh.parenR||e===qh.arrow||(e===qh.braceL?t===Mu.b_stat:e!==qh._var&&e!==qh._const&&e!==qh.name&&!this.exprAllowed):!t.isExpr)},Du.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},Du.updateContext=function(e){var t,n=this.type;n.keyword&&e===qh.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},qh.parenR.updateContext=qh.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===Mu.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},qh.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Mu.b_stat:Mu.b_expr),this.exprAllowed=!0},qh.dollarBraceL.updateContext=function(){this.context.push(Mu.b_tmpl),this.exprAllowed=!0},qh.parenL.updateContext=function(e){var t=e===qh._if||e===qh._for||e===qh._with||e===qh._while;this.context.push(t?Mu.p_stat:Mu.p_expr),this.exprAllowed=!0},qh.incDec.updateContext=function(){},qh._function.updateContext=qh._class.updateContext=function(e){!e.beforeExpr||e===qh.semi||e===qh._else||e===qh._return&&Gh.test(this.input.slice(this.lastTokEnd,this.start))||(e===qh.colon||e===qh.braceL)&&this.curContext()===Mu.b_stat?this.context.push(Mu.f_stat):this.context.push(Mu.f_expr),this.exprAllowed=!1},qh.backQuote.updateContext=function(){this.curContext()===Mu.q_tmpl?this.context.pop():this.context.push(Mu.q_tmpl),this.exprAllowed=!1},qh.star.updateContext=function(e){if(e===qh._function){var t=this.context.length-1;this.context[t]===Mu.f_expr?this.context[t]=Mu.f_expr_gen:this.context[t]=Mu.f_gen}this.exprAllowed=!0},qh.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==qh.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Tu="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Lu={9:Tu,10:Tu+" Extended_Pictographic"},Vu="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Bu="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",zu={9:Bu,10:Bu+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd"},ju={};function Wu(e){var t=ju[e]={binary:nu(Lu[e]+" "+Vu),nonBinary:{General_Category:nu(Vu),Script:nu(zu[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}Wu(9),Wu(10);var Uu=du.prototype,Fu=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.unicodeProperties=ju[e.options.ecmaVersion>=10?10:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function qu(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function Gu(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Hu(e){return e>=65&&e<=90||e>=97&&e<=122}function Ku(e){return Hu(e)||95===e}function Yu(e){return Ku(e)||Xu(e)}function Xu(e){return e>=48&&e<=57}function Qu(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ju(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Zu(e){return e>=48&&e<=55}Fu.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},Fu.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Fu.prototype.at=function(e){var t=this.source,n=t.length;if(e>=n)return-1;var r=t.charCodeAt(e);return!this.switchU||r<=55295||r>=57344||e+1>=n?r:(r<<10)+t.charCodeAt(e+1)-56613888},Fu.prototype.nextIndex=function(e){var t=this.source,n=t.length;if(e>=n)return n;var r=t.charCodeAt(e);return!this.switchU||r<=55295||r>=57344||e+1>=n?e+1:e+2},Fu.prototype.current=function(){return this.at(this.pos)},Fu.prototype.lookahead=function(){return this.at(this.nextIndex(this.pos))},Fu.prototype.advance=function(){this.pos=this.nextIndex(this.pos)},Fu.prototype.eat=function(e){return this.current()===e&&(this.advance(),!0)},Uu.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);-1===t.indexOf(i)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(i,r+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},Uu.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},Uu.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];-1===e.groupNames.indexOf(r)&&e.raise("Invalid named capture referenced")}},Uu.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Uu.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Uu.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!(e.switchU?!this.regexp_eatAtom(e):!this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},Uu.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},Uu.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Uu.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Uu.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},Uu.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Uu.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Uu.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},Uu.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Uu.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Uu.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Uu.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Gu(t)&&(e.lastIntValue=t,e.advance(),!0)},Uu.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!Gu(n);)e.advance();return e.pos!==t},Uu.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},Uu.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},Uu.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Uu.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=qu(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=qu(e.lastIntValue);return!0}return!1},Uu.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=e.current();return e.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e)&&(n=e.lastIntValue),function(e){return Lh(e,!0)||36===e||95===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Uu.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=e.current();return e.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e)&&(n=e.lastIntValue),function(e){return Vh(e,!0)||36===e||95===e||8204===e||8205===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},Uu.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Uu.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},Uu.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Uu.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Uu.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Uu.regexp_eatZero=function(e){return 48===e.current()&&!Xu(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Uu.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Uu.regexp_eatControlLetter=function(e){var t=e.current();return!!Hu(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Uu.regexp_eatRegExpUnicodeEscapeSequence=function(e){var t,n=e.pos;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(e.switchU&&r>=55296&&r<=56319){var i=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=1024*(r-55296)+(s-56320)+65536,!0}e.pos=i,e.lastIntValue=r}return!0}if(e.switchU&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((t=e.lastIntValue)>=0&&t<=1114111))return!0;e.switchU&&e.raise("Invalid unicode escape"),e.pos=n}return!1},Uu.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},Uu.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},Uu.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},Uu.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},Uu.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){eu(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},Uu.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},Uu.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Ku(t=e.current());)e.lastStringValue+=qu(t),e.advance();return""!==e.lastStringValue},Uu.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Yu(t=e.current());)e.lastStringValue+=qu(t),e.advance();return""!==e.lastStringValue},Uu.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Uu.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},Uu.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},Uu.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||Zu(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},Uu.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Uu.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Xu(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},Uu.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Uu.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Xu(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},Uu.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Qu(n=e.current());)e.lastIntValue=16*e.lastIntValue+Ju(n),e.advance();return e.pos!==t},Uu.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},Uu.regexp_eatOctalDigit=function(e){var t=e.current();return Zu(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Uu.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Qu(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Ju(i),e.advance()}return!0};var ec=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new iu(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},tc=du.prototype;function nc(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}tc.next=function(){this.options.onToken&&this.options.onToken(new ec(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},tc.getToken=function(){return this.next(),new ec(this)},"undefined"!=typeof Symbol&&(tc[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===qh.eof,value:t}}}}),tc.curContext=function(){return this.context[this.context.length-1]},tc.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(qh.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},tc.readToken=function(e){return Lh(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},tc.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},tc.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(Hh.lastIndex=n;(e=Hh.exec(this.input))&&e.index<this.pos;)++this.curLine,this.lineStart=e.index+e[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,r),n,this.pos,t,this.curPosition())},tc.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Kh(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},tc.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&Yh.test(String.fromCharCode(e))))break e;++this.pos}}},tc.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},tc.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(qh.ellipsis)):(++this.pos,this.finishToken(qh.dot))},tc.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(qh.assign,2):this.finishOp(qh.slash,1)},tc.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?qh.star:qh.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=qh.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(qh.assign,n+1):this.finishOp(r,n)},tc.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.finishOp(124===e?qh.logicalOR:qh.logicalAND,2):61===t?this.finishOp(qh.assign,2):this.finishOp(124===e?qh.bitwiseOR:qh.bitwiseAND,1)},tc.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(qh.assign,2):this.finishOp(qh.bitwiseXOR,1)},tc.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!Gh.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(qh.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(qh.assign,2):this.finishOp(qh.plusMin,1)},tc.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(qh.assign,n+1):this.finishOp(qh.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(qh.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},tc.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(qh.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(qh.arrow)):this.finishOp(61===e?qh.eq:qh.prefix,1)},tc.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(qh.parenL);case 41:return++this.pos,this.finishToken(qh.parenR);case 59:return++this.pos,this.finishToken(qh.semi);case 44:return++this.pos,this.finishToken(qh.comma);case 91:return++this.pos,this.finishToken(qh.bracketL);case 93:return++this.pos,this.finishToken(qh.bracketR);case 123:return++this.pos,this.finishToken(qh.braceL);case 125:return++this.pos,this.finishToken(qh.braceR);case 58:return++this.pos,this.finishToken(qh.colon);case 63:return++this.pos,this.finishToken(qh.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(qh.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(qh.prefix,1)}this.raise(this.pos,"Unexpected character '"+nc(e)+"'")},tc.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},tc.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Gh.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var s=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(s);var a=this.regexpState||(this.regexpState=new Fu(this));a.reset(n,i,o),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var h=null;try{h=new RegExp(i,o)}catch(e){}return this.finishToken(qh.regexp,{pattern:i,flags:o,value:h})},tc.readInt=function(e,t){for(var n=this.pos,r=0,i=0,s=null==t?1/0:t;i<s;++i){var o=this.input.charCodeAt(this.pos),a=void 0;if((a=o>=97?o-97+10:o>=65?o-65+10:o>=48&&o<=57?o-48:1/0)>=e)break;++this.pos,r=r*e+a}return this.pos===n||null!=t&&this.pos-n!==t?null:r},tc.readRadixNumber=function(e){this.pos+=2;var t=this.readInt(e);return null==t&&this.raise(this.start+2,"Expected number in radix "+e),Lh(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(qh.num,t)},tc.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number"),n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1);var r=this.input.charCodeAt(this.pos);46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),Lh(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i=this.input.slice(t,this.pos),s=n?parseInt(i,8):parseFloat(i);return this.finishToken(qh.num,s)},tc.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},tc.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):(Kh(r,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(qh.string,t)};var rc={};tc.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==rc)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},tc.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw rc;this.raise(e,t)},tc.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==qh.template&&this.type!==qh.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(qh.template,e)):36===n?(this.pos+=2,this.finishToken(qh.dollarBraceL)):(++this.pos,this.finishToken(qh.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Kh(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},tc.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(qh.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},tc.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return nc(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return Kh(t)?"":String.fromCharCode(t)}},tc.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},tc.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Vh(i,r))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?Lh:Vh)(o,r)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=nc(o),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},tc.readWord=function(){var e=this.readWord1(),t=qh.name;return this.keywords.test(e)&&(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+e),t=Uh[e]),this.finishToken(t,e)};var ic=function(e){return e&&e.default||e}(Object.freeze({version:"6.1.1",parse:function(e,t){return du.parse(e,t)},parseExpressionAt:function(e,t,n){return du.parseExpressionAt(e,t,n)},tokenizer:function(e,t){return du.tokenizer(e,t)},Parser:du,defaultOptions:ou,Position:ru,SourceLocation:iu,getLineInfo:su,Node:$u,TokenType:Bh,tokTypes:qh,keywordTypes:Uh,TokContext:Ou,tokContexts:Mu,isIdentifierChar:Vh,isIdentifierStart:Lh,Token:ec,isNewLine:Kh,lineBreak:Gh,lineBreakG:Hh,nonASCIIwhitespace:Yh}));const sc=ic.tokTypes,oc=ic.isIdentifierStart;var ac=function(e){return class extends e{parseLiteral(e){const t=super.parseLiteral(e);return 110==t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=this.getNumberInput(t.start,t.end)),t}readRadixNumber(e){let t=this.pos;this.pos+=2;let n=this.readInt(e);if(null===n&&this.raise(this.start+2,`Expected number in radix ${e}`),110==this.input.charCodeAt(this.pos)){let e=this.getNumberInput(t,this.pos);n="undefined"!=typeof BigInt?BigInt(e):null,++this.pos}else oc(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");return this.finishToken(sc.num,n)}readNumber(e){let t=this.pos;if(e)return super.readNumber(e);if(48===this.input.charCodeAt(t)&&110!==this.input.charCodeAt(t+1))return super.readNumber(e);if(null===this.readInt(10)&&this.raise(t,"Invalid number"),110!=this.input.charCodeAt(this.pos))return this.pos=t,super.readNumber(e);let n=this.getNumberInput(t,this.pos),r="undefined"!=typeof BigInt?BigInt(n):null;return++this.pos,this.finishToken(sc.num,r)}getNumberInput(e,t){return super.getNumberInput?super.getNumberInput(e,t):this.input.slice(e,t)}}};const hc="Import";function uc(e){return class extends e{parseStatement(e,t,n){return this.type===qh._import&&function(){return/^(\s|\/\/.*|\/\*[^]*?\*\/)*\(/.test(this.input.slice(this.pos))}.call(this)?this.parseExpressionStatement(this.startNode(),this.parseExpression()):super.parseStatement(e,t,n)}parseExprAtom(e){return this.type===qh._import?function(){const e=this.startNode();return this.next(),this.type!==qh.parenL&&this.unexpected(),this.finishNode(e,hc)}.call(this):super.parseExprAtom(e)}}}qh._import.startsExpr=!0;const cc=ic.tokTypes,lc=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,pc=e=>{lc.lastIndex=e.pos;let t=lc.exec(e.input),n=e.pos+t[0].length;return"."===e.input.slice(n,n+1)};var dc=function(e){return class extends e{parseExprAtom(e){if(this.type!==cc._import||!pc(this))return super.parseExprAtom(e);this.options.allowImportExportEverywhere||this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'");let t=this.startNode();return t.meta=this.parseIdent(!0),this.expect(cc.dot),t.property=this.parseIdent(!0),"meta"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is import.meta"),this.containsEsc&&this.raiseRecoverable(t.property.start,'"meta" in import.meta must not contain escape sequences'),this.finishNode(t,"MetaProperty")}parseStatement(e,t,n){if(this.type!==cc._import||!pc(this))return super.parseStatement(e,t,n);let r=this.startNode(),i=this.parseExpression();return this.parseExpressionStatement(r,i)}}};class fc extends Ze{constructor(){super("undefined")}getLiteralValueAtPath(){}}class mc extends _t{constructor(){super(),this.variables.set("undefined",new fc)}findVariable(e){let t=this.variables.get(e);return t||(t=new lo(e),this.variables.set(e,t)),t}}const gc=()=>({paths:Object.create(null),tracked:!1,unknownPath:null});class yc{constructor(){this.entityPaths=new Map}track(e,t){let n=this.entityPaths.get(e);n||(n=gc(),this.entityPaths.set(e,n));let r,i=0;for(;i<t.length;){const e=t[i];"string"==typeof e?(r=n.paths[e])||(r=gc(),n.paths[e]=r):(r=n.unknownPath)||(r=gc(),n.unknownPath=r),n=r,i++}const s=n.tracked;return n.tracked=!0,s}}function xc(e,t,n,r){return new(n||(n=Promise))(function(i,s){function o(e){try{h(r.next(e))}catch(e){s(e)}}function a(e){try{h(r.throw(e))}catch(e){s(e)}}function h(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(o,a)}h((r=r.apply(e,t||[])).next())})}function vc(e,t,n){let r;do{const e=k();r?e.update(r):e.update(n),r=e.digest("hex").substr(0,8)}while(t.has(r));return t.set(r,e),r}function Ec(e,t,n){return void 0===e.source&&Io(function(e){return{code:Co.ASSET_SOURCE_MISSING,message:`Plugin error creating asset "${e.name}" - no asset source set.`}}(e)),e.fileName?e.fileName:_h(Eh(n,"assetFileNames",t=>{switch(t){case"hash":const n=k();return n.update(t),n.update(":"),n.update(e.source),n.digest("hex").substr(0,8);case"name":return e.name.substr(0,e.name.length-ft(e.name).length);case"extname":return ft(e.name);case"ext":return ft(e.name).substr(1)}}),t)}function _c(e,t,n){return{emitAsset(r,i){"string"==typeof r&&wo(r)||Io(function(e){return{code:Co.INVALID_ASSET_NAME,message:`Plugin error creating asset, name "${e}" is not a plain (non relative or absolute URL) string name.`}}(r));const s={name:r,source:i,fileName:void 0};return t&&void 0!==i&&bc(s,t,n),vc(s,e,r)},setAssetSource(r,i){const s=e.get(r);return s?void 0!==s.source?Io(function(e){return{code:Co.ASSET_SOURCE_ALREADY_SET,message:`Plugin error - Unable to set the source for asset "${e.name}", source already set.`}}(s)):"string"==typeof i||i?(s.source=i,void(t&&bc(s,t,n))):Io(function(e){return{code:Co.ASSET_SOURCE_MISSING,message:`Plugin error creating asset "${e.name}", setAssetSource call without a source.`}}(s)):Io(function(e){return{code:Co.ASSET_NOT_FOUND,message:`Plugin error - Unable to set the source for unknown asset "${e}".`}}(r))},getAssetFileName(t){const n=e.get(t);return n?void 0===n.fileName?Io(function(e){return{code:Co.ASSET_NOT_FINALISED,message:`Plugin error - Unable to get file name for asset "${e.name}". Ensure that the source is set and that generate is called first.`}}(n)):n.fileName:Io(function(e){return{code:Co.ASSET_NOT_FOUND,message:`Plugin error - Unable to get file name for unknown asset "${e}".`}}(t))}}}function bc(e,t,n){const r=Ec(e,t,n);e.fileName=r,t[r]={fileName:r,isAsset:!0,source:e.source}}var Ac;!function(e){e[e.LOAD_AND_PARSE=0]="LOAD_AND_PARSE",e[e.ANALYSE=1]="ANALYSE",e[e.GENERATE=2]="GENERATE"}(Ac||(Ac={}));const Sc="at position ",wc=[{active:!0,deprecated:"ongenerate",replacement:"generateBundle"},{active:!0,deprecated:"onwrite",replacement:"generateBundle/writeBundle"},{active:!0,deprecated:"transformBundle",replacement:"renderChunk"},{active:!0,deprecated:"transformChunk",replacement:"renderChunk"},{active:!1,deprecated:"resolveAssetUrl",replacement:"resolveFileUrl"}];function Ic(e,n,r,i){!function(e,t){for(const{active:n,deprecated:r,replacement:i}of wc)for(const s of e)r in s&&t.warnDeprecation({message:`The "${r}" hook used by plugin ${s.name} is deprecated. The "${i}" hook should be used instead.`,plugin:s.name},n)}(n.plugins,e);const s=[...n.plugins,(o=n.preserveSymlinks,{name:"Rollup Core",resolveId:xa(o),load:e=>fa(e),resolveFileUrl:({relativePath:e,format:t})=>Sa[t](e),resolveImportMeta(e,{chunkId:t,format:n}){const r=ba[n]&&ba[n](e,t);if(r)return r}})];var o;const{emitAsset:a,getAssetFileName:h,setAssetSource:u}=_c(e.assetsById),c=new Set;let l=!1;const p=s.map((n,s)=>{let o,p=!0;if("string"!=typeof n.cacheKey&&(n.name.startsWith(Sc)||c.has(n.name)?p=!1:c.add(n.name)),!l&&(n.load||n.transform||n.transformBundle||n.transformChunk)&&(l=!0),r)if(p){const e=n.cacheKey||n.name;o=function(e){return{has(t){const n=e[t];return!!n&&(n[0]=0,!0)},get(t){const n=e[t];if(n)return n[0]=0,n[1]},set(t,n){e[t]=[0,n]},delete:t=>delete e[t]}}(r[e]||(r[e]=Object.create(null)))}else o=kc(n.name);else o=Pc;const d={addWatchFile(t){e.phase>=Ac.GENERATE&&this.error({code:Co.INVALID_ROLLUP_PHASE,message:"Cannot call addWatchFile after the build has finished."}),e.watchFiles[t]=!0},cache:o,emitAsset:a,emitChunk(t,n){return e.phase>Ac.LOAD_AND_PARSE&&this.error({code:Co.INVALID_ROLLUP_PHASE,message:"Cannot call emitChunk after module loading has finished."}),m.emitChunk(t,n)},error:e=>("string"==typeof e&&(e={message:e}),e.code&&(e.pluginCode=e.code),e.code="PLUGIN_ERROR",e.plugin=n.name,Io(e)),getAssetFileName:h,getChunkFileName:t=>e.moduleLoader.getChunkFileName(t),getModuleInfo(t){const n=e.moduleById.get(t);if(null==n)throw new Error(`Unable to find module ${t}`);return{hasModuleSideEffects:n.moduleSideEffects,id:n.id,importedIds:n instanceof yt?[]:n.sources.map(e=>n.resolvedIds[e].id),isEntry:n instanceof uh&&n.isEntryPoint,isExternal:n instanceof yt}},isExternal:(()=>{let t=!1;return(r,i,s=!1)=>(t||(t=!0,e.warnDeprecation({message:`The "this.isExternal" plugin context function used by plugin ${n.name} is deprecated. The "this.resolve" plugin context function should be used instead.`,plugin:n.name},!1)),e.moduleLoader.isExternal(r,i,s))})(),meta:{rollupVersion:t},get moduleIds(){return e.moduleById.keys()},parse:e.contextParse,resolve:(t,n,r)=>e.moduleLoader.resolveId(t,n,r&&r.skipSelf?s:null),resolveId:(()=>{let t=!1;return(r,i)=>(t||(t=!0,e.warnDeprecation({message:`The "this.resolveId" plugin context function used by plugin ${n.name} is deprecated. The "this.resolve" plugin context function should be used instead.`,plugin:n.name},!1)),e.moduleLoader.resolveId(r,i).then(e=>e&&e.id))})(),setAssetSource:u,warn(t){"string"==typeof t&&(t={message:t}),t.code&&(t.pluginCode=t.code),t.code="PLUGIN_WARNING",t.plugin=n.name,e.warn(t)},watcher:i?(()=>{let e=!1;function t(t,n){return e||(d.warn({code:"PLUGIN_WATCHER_DEPRECATED",message:"this.watcher usage is deprecated in plugins. Use the watchChange plugin hook and this.addWatchFile() instead."}),e=!0),i.on(t,n)}return Object.assign({},i,{addListener:t,on:t})})():void 0};return d});function d(e,t,n,r=!1,i){const o=s[n];let a=p[n];const h=o[e];if(h){if(i&&(!(a=i(a,o))||a===p[n]))throw new Error("Internal Rollup error: hookContext must return a new context object.");try{if("function"!=typeof h){if(r)return h;Io({code:"INVALID_PLUGIN_HOOK",message:`Error running plugin hook ${e} for ${o.name}, expected a function hook.`})}return h.apply(a,t)}catch(t){"string"==typeof t&&(t={message:t}),"PLUGIN_ERROR"!==t.code&&(t.code&&(t.pluginCode=t.code),t.code="PLUGIN_ERROR"),t.plugin=o.name,t.hook=e,Io(t)}}}function f(e,t,n,r=!1,i){const o=s[n];let a=p[n];const h=o[e];if(h){if(i&&(!(a=i(a,o))||a===p[n]))throw new Error("Internal Rollup error: hookContext must return a new context object.");return Promise.resolve().then(()=>{if("function"!=typeof h){if(r)return h;Io({code:"INVALID_PLUGIN_HOOK",message:`Error running plugin hook ${e} for ${o.name}, expected a function hook.`})}return h.apply(a,t)}).catch(t=>{"string"==typeof t&&(t={message:t}),"PLUGIN_ERROR"!==t.code&&(t.code&&(t.pluginCode=t.code),t.code="PLUGIN_ERROR"),t.plugin=o.name,t.hook=e,Io(t)})}}const m={emitAsset:a,emitChunk:(t,n)=>e.moduleLoader.addEntryModuleAndGetReferenceId({alias:n&&n.name||null,unresolvedId:t}),getAssetFileName:h,hasLoadersOrTransforms:l,hookSeq(e,t,n){let r=Promise.resolve();for(let i=0;i<s.length;i++)r=r.then(()=>f(e,t,i,!1,n));return r},hookSeqSync(e,t,n){for(let r=0;r<s.length;r++)d(e,t,r,!1,n)},hookFirst(e,t,n,r){let i=Promise.resolve();for(let o=0;o<s.length;o++)r!==o&&(i=i.then(r=>null!=r?r:f(e,t,o,!1,n)));return i},hookFirstSync(e,t,n){for(let r=0;r<s.length;r++){const i=d(e,t,r,!1,n);if(null!=i)return i}return null},hookParallel(e,t,n){const r=[];for(let i=0;i<s.length;i++){const s=f(e,t,i,!1,n);s&&r.push(s)}return Promise.all(r).then(()=>{})},hookReduceArg0(e,[t,...n],r,i){let o=Promise.resolve(t);for(let t=0;t<s.length;t++)o=o.then(o=>{const a=f(e,[o,...n],t,!1,i);return a?a.then(e=>r.call(p[t],o,e,s[t])):o});return o},hookReduceArg0Sync(e,[t,...n],r,i){for(let o=0;o<s.length;o++){const a=d(e,[t,...n],o,!1,i);t=r.call(p[o],t,a,s[o])}return t},hookReduceValue(e,t,n,r,i){let o=Promise.resolve(t);for(let t=0;t<s.length;t++)o=o.then(o=>{const a=f(e,n,t,!0,i);return a?a.then(e=>r.call(p[t],o,e,s[t])):o});return o}};return m}const Pc={has:()=>!1,get(){},set(){},delete:()=>!1};function Cc(e){e.startsWith(Sc)?Io({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."}):Io({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${e} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}const kc=e=>({has:()=>(Cc(e),!1),get(){Cc(e)},set(){Cc(e)},delete:()=>(Cc(e),!1)});function $c(e,t){return ct(t)?gt(e,"..",t):t}function Nc(e){if(!0===e)return()=>!0;if("function"==typeof e)return(t,...n)=>!t.startsWith("\0")&&e(t,...n)||!1;if(e){const t=new Set(Array.isArray(e)?e:e?[e]:[]);return e=>t.has(e)}return()=>!1}function Rc(e,t,n){if("boolean"==typeof e)return()=>e;if("no-external"===e)return(e,t)=>!t;if("function"==typeof e)return(t,n)=>!!t.startsWith("\0")||!1!==e(t,n);if(Array.isArray(e)){const t=new Set(e);return e=>t.has(e)}var r,i;e&&n.warn((r="treeshake.moduleSideEffects",i='please use one of false, "no-external", a function or an array',{code:Co.INVALID_OPTION,message:`Invalid value for option "${r}" - ${i}.`}));const s=Nc(t);return(e,t)=>!(t&&s(e))}class Oc{constructor(e,t,n,r,i,s,o){this.entriesByReferenceId=new Map,this.entryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.manualChunkModules={},this.loadEntryModule=({alias:e,unresolvedId:t},n)=>this.pluginDriver.hookFirst("resolveId",[t,void 0]).then(r=>{if(!1===r||r&&"object"==typeof r&&r.external)return Io(function(e){return{code:Co.UNRESOLVED_ENTRY,message:`Entry module cannot be external (${So(e)}).`}}(t));const i=r&&"object"==typeof r?r.id:r;return"string"==typeof i?this.fetchModule(i,void 0,!0,n).then(t=>{if(null!==e){if(null!==t.chunkAlias&&t.chunkAlias!==e)return Io($o(t.id,e,t.chunkAlias));t.chunkAlias=e}return t}):Io(function(e){return{code:Co.UNRESOLVED_ENTRY,message:`Could not resolve entry module (${So(e)}).`}}(t))}),this.graph=e,this.modulesById=t,this.pluginDriver=n,this.isExternal=Nc(r),this.hasModuleSideEffects=Rc(s,o,e),this.getManualChunk="function"==typeof i?i:()=>null}addEntryModuleAndGetReferenceId(e){const t={module:null,name:e.unresolvedId},n=vc(t,this.entriesByReferenceId,e.unresolvedId);return this.addEntryModules([e],!1).then(({newEntryModules:[e]})=>{t.module=e}).catch(()=>{}),n}addEntryModules(e,t){const n=Promise.all(e.map(e=>this.loadEntryModule(e,!0))).then(e=>{for(const n of e){n.isUserDefinedEntryPoint=n.isUserDefinedEntryPoint||t,this.entryModules.find(e=>e.id===n.id)||this.entryModules.push(n)}return e});return this.awaitLoadModulesPromise(n).then(e=>({entryModules:this.entryModules,manualChunkModulesByAlias:this.manualChunkModules,newEntryModules:e}))}addManualChunks(e){const t=[];for(const n of Object.keys(e)){const r=e[n];for(const e of r)t.push({alias:null,unresolvedId:e,manualChunkAlias:n})}const n=Promise.all(t.map(e=>this.loadEntryModule(e,!1))).then(e=>{for(let n=0;n<e.length;n++)this.addToManualChunk(t[n].manualChunkAlias,e[n])});return this.awaitLoadModulesPromise(n)}getChunkFileName(e){const t=this.entriesByReferenceId.get(e);if(!t)return Io((n=e,{code:Co.CHUNK_NOT_FOUND,message:`Plugin error - Unable to get file name for unknown chunk "${n}".`}));var n;const r=t.module&&(t.module.facadeChunk?t.module.facadeChunk.id:t.module.chunk.id);return r||Io((i=t,{code:Co.CHUNK_NOT_GENERATED,message:`Plugin error - Unable to get file name for chunk "${i.name}". Ensure that generate is called first.`}));var i}resolveId(e,t,n){return xc(this,void 0,void 0,function*(){return this.normalizeResolveIdResult(!this.isExternal(e,t,!1)&&(yield this.pluginDriver.hookFirst("resolveId",[e,t],null,n)),t,e)})}addToManualChunk(e,t){null!==t.manualChunkAlias&&t.manualChunkAlias!==e&&Io($o(t.id,e,t.manualChunkAlias)),t.manualChunkAlias=e,this.manualChunkModules[e]||(this.manualChunkModules[e]=[]),this.manualChunkModules[e].push(t)}awaitLoadModulesPromise(e){this.latestLoadModulesPromise=Promise.all([e,this.latestLoadModulesPromise]);const t=()=>{const e=this.latestLoadModulesPromise;return e.then(()=>{if(this.latestLoadModulesPromise!==e)return t()})};return t().then(()=>e)}fetchAllDependencies(e){const t=Promise.all(e.getDynamicImportExpressions().map((t,n)=>this.resolveDynamicImport(e,t,e.id).then(t=>{if(null===t)return;const r=e.dynamicImports[n];if("string"!=typeof t)return this.fetchResolvedDependency(So(t.id),e.id,t).then(e=>{r.resolution=e});r.resolution=t})));return t.catch(()=>{}),Promise.all(e.sources.map(t=>this.resolveAndFetchDependency(e,t))).then(()=>t)}fetchModule(e,t,n,r){const i=this.modulesById.get(e);if(i){if(i instanceof yt)throw new Error(`Cannot fetch external module ${e}`);return i.isEntryPoint=i.isEntryPoint||r,Promise.resolve(i)}const s=new uh(this.graph,e,n,r);this.modulesById.set(e,s);const o=this.getManualChunk(e);return"string"==typeof o&&this.addToManualChunk(o,s),th("load modules",3),Promise.resolve(this.pluginDriver.hookFirst("load",[e])).catch(n=>{nh("load modules",3);let r=`Could not load ${e}`;throw t&&(r+=` (imported by ${t})`),r+=`: ${n.message}`,n.message=r,n}).then(t=>(nh("load modules",3),"string"==typeof t?{code:t}:t&&"object"==typeof t&&"string"==typeof t.code?t:Io(function(e){return{code:Co.BAD_LOADER,message:`Error loading ${So(e)}: plugin load hook should return a string, a { code, map } object, or nothing/null`}}(e)))).then(t=>{const n=this.graph.cachedModules.get(e);if(n&&!n.customTransformCache&&n.originalCode===t.code){if(n.transformAssets)for(const{name:e,source:t}of n.transformAssets)this.pluginDriver.emitAsset(e,t);if(n.transformChunks)for(const{id:e,options:t}of n.transformChunks)this.pluginDriver.emitChunk(e,t);return n}return"boolean"==typeof t.moduleSideEffects&&(s.moduleSideEffects=t.moduleSideEffects),function(e,t,n){const r=n.id,i=[],s="string"==typeof t.map?JSON.parse(t.map):t.map;s&&"string"==typeof s.mappings&&(s.mappings=O(s.mappings));const o=e.pluginDriver.emitAsset,a=t.code;let h,u,c=t.ast;const l=[];let p,d,f=!1,m=null;const g=t.code;let y;return e.pluginDriver.hookReduceArg0("transform",[g,r],function(t,s,o){if(!f&&p.used&&(f=!0),f){if(s&&"object"==typeof s&&Array.isArray(s.dependencies))for(const t of s.dependencies){const n=gt(dt(r),t);e.watchFiles[n]||(e.watchFiles[n]=!0)}}else if(u.length&&(n.transformAssets=u),l.length&&(n.transformChunks=l),s&&"object"==typeof s&&Array.isArray(s.dependencies)){d.warnedTransformDependencies||e.warnDeprecation(`Returning "dependencies" from the "transform" hook as done by plugin ${o.name} is deprecated. The "this.addWatchFile" plugin context function should be used instead.`,!0),d.warnedTransformDependencies=!0,h||(h=[]);for(const e of s.dependencies)h.push(gt(dt(r),e))}if("string"==typeof s)s={ast:void 0,code:s,map:void 0};else{if(!s||"object"!=typeof s)return t;"string"==typeof s.map&&(s.map=JSON.parse(s.map)),"boolean"==typeof s.moduleSideEffects&&(m=s.moduleSideEffects)}return s.map&&"string"==typeof s.map.mappings&&(s.map.mappings=O(s.map.mappings)),null!==s.map&&i.push(s.map||{missing:!0,plugin:o.name}),c=s.ast,s.code},(t,n)=>{let i;return(d=n).cacheKey?f=!0:p=function(e){const t={used:!1,cache:void 0};return t.cache={has:n=>(t.used=!0,e.has(n)),get:n=>(t.used=!0,e.get(n)),set:(n,r)=>(t.used=!0,e.set(n,r)),delete:n=>(t.used=!0,e.delete(n))},t}(t.cache),({assets:u,emitAsset:i}=function(e,t){const n=[];return{assets:n,emitAsset:(r,i)=>{const s=t(r,i),o=e.get(s);return n.push({fileName:void 0,name:o.name,source:o.source}),s}}}(e.assetsById,o)),Object.assign({},t,{cache:p?p.cache:t.cache,warn(e,n){"string"==typeof e&&(e={message:e}),n&&Po(e,n,g,r),e.id=r,e.hook="transform",t.warn(e)},error:(e,n)=>("string"==typeof e&&(e={message:e}),n&&Po(e,n,g,r),e.id=r,e.hook="transform",t.error(e)),emitAsset:i,emitChunk:(t,n)=>(l.push({id:t,options:n}),e.pluginDriver.emitChunk(t,n)),addWatchFile(e){h||(h=[]),h.push(e),t.addWatchFile(e)},setAssetSource(e,n){if(t.setAssetSource(e,n),!f&&!y)try{this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitAsset with a source, or call setAssetSource in another hook."})}catch(e){y=e}}})}).catch(e=>{"string"==typeof e&&(e={message:e}),"PLUGIN_ERROR"!==e.code&&(e.code&&(e.pluginCode=e.code),e.code="PLUGIN_ERROR"),e.id=r,Io(e)}).then(e=>{if(!f&&y)throw y;return{ast:c,code:e,customTransformCache:f,moduleSideEffects:m,originalCode:a,originalSourcemap:s,sourcemapChain:i,transformDependencies:h}})}(this.graph,t,s)}).then(t=>(s.setSource(t),this.modulesById.set(e,s),this.fetchAllDependencies(s).then(()=>{for(const e in s.exports)"default"!==e&&(s.exportsAll[e]=s.id);return s.exportAllSources.forEach(e=>{const t=s.resolvedIds[e].id,n=this.modulesById.get(t);if(!(n instanceof yt))for(const e in n.exportsAll)e in s.exportsAll?this.graph.warn(No(e,s,n)):s.exportsAll[e]=n.exportsAll[e]}),s})))}fetchResolvedDependency(e,t,n){if(n.external){this.modulesById.has(n.id)||this.modulesById.set(n.id,new yt(this.graph,n.id,n.moduleSideEffects));const r=this.modulesById.get(n.id);return r instanceof yt?Promise.resolve(r):Io(function(e,t){return{code:Co.INVALID_EXTERNAL_ID,message:`'${e}' is imported as an external by ${So(t)}, but is already an existing non-external module id.`}}(e,t))}return this.fetchModule(n.id,t,n.moduleSideEffects,!1)}handleMissingImports(e,t,n){return null===e?(ct(t)&&Io(function(e,t){return{code:Co.UNRESOLVED_IMPORT,message:`Could not resolve '${e}' from ${So(t)}`}}(t,n)),this.graph.warn(function(e,t){return{code:Co.UNRESOLVED_IMPORT,importer:So(t),message:`'${e}' is imported by ${So(t)}, but could not be resolved – treating it as an external dependency`,source:e,url:"https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency"}}(t,n)),{external:!0,id:t,moduleSideEffects:this.hasModuleSideEffects(t,!0)}):e}normalizeResolveIdResult(e,t,n){let r="",i=!1,s=null;if(e)"object"==typeof e?(r=e.id,e.external&&(i=!0),"boolean"==typeof e.moduleSideEffects&&(s=e.moduleSideEffects)):(this.isExternal(e,t,!0)&&(i=!0),r=i?$c(t,e):e);else{if(r=$c(t,n),!1!==e&&!this.isExternal(r,t,!0))return null;i=!0}return{external:i,id:r,moduleSideEffects:"boolean"==typeof s?s:this.hasModuleSideEffects(r,i)}}resolveAndFetchDependency(e,t){return xc(this,void 0,void 0,function*(){return this.fetchResolvedDependency(t,e.id,e.resolvedIds[t]=e.resolvedIds[t]||this.handleMissingImports(yield this.resolveId(t,e.id),t,e.id))})}resolveDynamicImport(e,t,n){return xc(this,void 0,void 0,function*(){const r=yield this.pluginDriver.hookFirst("resolveDynamicImport",[t,n]);return"string"!=typeof t?"string"==typeof r?r:r?Object.assign({external:!1,moduleSideEffects:!0},r):null:null==r?e.resolvedIds[t]=e.resolvedIds[t]||this.handleMissingImports(yield this.resolveId(t,e.id),t,e.id):this.handleMissingImports(this.normalizeResolveIdResult(r,n,t),t,n)})}}const Mc=97,Dc=48;function Tc(e){return e<10?String.fromCharCode(Dc+e):String.fromCharCode(Mc+(e-10))}function Lc(e){let t="";for(let n=0;n<e.length;n++){const r=e[n];t+=Tc(r>>4),t+=Tc(15&r)}return t}function Vc(e){const t=new Uint8Array(e);for(let e=0;e<t.length;e++)t[e]=512*Math.random();return t}function Bc(e){return"string"==typeof e?[{alias:null,unresolvedId:e}]:Array.isArray(e)?e.map(e=>({alias:null,unresolvedId:e})):Object.keys(e).map(t=>({alias:t,unresolvedId:e[t]}))}class zc{constructor(e,t){if(this.assetsById=new Map,this.curChunkIndex=0,this.moduleById=new Map,this.needsTreeshakingPass=!1,this.phase=Ac.LOAD_AND_PARSE,this.watchFiles=Object.create(null),this.externalModules=[],this.modules=[],this.onwarn=e.onwarn||function(){const e=Object.create(null);return t=>{const n=t.toString();n in e||(console.error(n),e[n]=!0)}}(),this.curChunkIndex=0,this.deoptimizationTracker=new yc,this.cachedModules=new Map,e.cache&&e.cache.modules)for(const t of e.cache.modules)this.cachedModules.set(t.id,t);if(!1!==e.cache){this.pluginCache=e.cache&&e.cache.plugins||Object.create(null);for(const e in this.pluginCache){const t=this.pluginCache[e];for(const e of Object.keys(t))t[e][0]++}}if(this.preserveModules=e.preserveModules,this.strictDeprecations=e.strictDeprecations,this.cacheExpiry=e.experimentalCacheExpiry,!1!==e.treeshake&&(this.treeshakingOptions=e.treeshake?{annotations:!1!==e.treeshake.annotations,moduleSideEffects:e.treeshake.moduleSideEffects,propertyReadSideEffects:!1!==e.treeshake.propertyReadSideEffects,pureExternalModules:e.treeshake.pureExternalModules,tryCatchDeoptimization:!1!==e.treeshake.tryCatchDeoptimization}:{annotations:!0,moduleSideEffects:!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0},void 0!==this.treeshakingOptions.pureExternalModules&&this.warnDeprecation('The "treeshake.pureExternalModules" option is deprecated. The "treeshake.moduleSideEffects" option should be used instead. "treeshake.pureExternalModules: true" is equivalent to "treeshake.moduleSideEffects: \'no-external\'"',!1)),this.contextParse=(e,t={})=>this.acornParser.parse(e,Object.assign({},oh,t,this.acornOptions)),this.pluginDriver=Ic(this,e,this.pluginCache,t),t){const e=e=>this.pluginDriver.hookSeqSync("watchChange",[e]);t.on("change",e),t.once("restart",()=>{t.removeListener("change",e)})}this.shimMissingExports=e.shimMissingExports,this.scope=new mc,this.context=String(e.context);const n=e.moduleContext;if("function"==typeof n)this.getModuleContext=e=>n(e)||this.context;else if("object"==typeof n){const e=new Map;for(const t in n)e.set(gt(t),n[t]);this.getModuleContext=t=>e.get(t)||this.context}else this.getModuleContext=()=>this.context;this.acornOptions=e.acorn||{};const r=[];r.push(uc),r.push(dc),r.push(ac),e.experimentalTopLevelAwait&&(this.acornOptions.allowAwaitOutsideFunction=!0);const i=e.acornInjectPlugins;r.push(...Array.isArray(i)?i:i?[i]:[]),this.acornParser=du.extend(...r),this.moduleLoader=new Oc(this,this.moduleById,this.pluginDriver,e.external,"function"==typeof e.manualChunks&&e.manualChunks,this.treeshakingOptions?this.treeshakingOptions.moduleSideEffects:null,!!this.treeshakingOptions&&this.treeshakingOptions.pureExternalModules)}build(e,t,n){return th("parse modules",2),Promise.all([this.moduleLoader.addEntryModules(Bc(e),!0),t&&"object"==typeof t&&this.moduleLoader.addManualChunks(t)]).then(([{entryModules:e,manualChunkModulesByAlias:t}])=>{if(0===e.length)throw new Error("You must supply options.input to rollup");for(const e of this.moduleById.values())e instanceof uh?(this.modules.push(e),this.watchFiles[e.id]=!0):this.externalModules.push(e);if(nh("parse modules",2),this.phase=Ac.ANALYSE,th("analyse dependency graph",2),this.link(e),nh("analyse dependency graph",2),th("mark included statements",2),n&&e.length>1)throw new Error("Internal Error: can only inline dynamic imports for single-file builds.");for(const t of e)t.includeAllExports();this.includeMarked(this.modules);for(const e of this.externalModules)e.warnUnusedImports();nh("mark included statements",2),th("generate chunks",2),this.preserveModules||n||function(e,t){let n,r,i;const s=new Set,o=[],a=e=>{n.manualChunkAlias?(e.manualChunkAlias=n.manualChunkAlias,e.entryPointsHash=r):function(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]^t[n]}(e.entryPointsHash,r);for(const t of e.dependencies)t instanceof yt||i.has(t.id)||(i.add(t.id),s.has(t.id)||t.manualChunkAlias||a(t));for(const{resolution:t}of e.dynamicImports)t instanceof uh&&t.dynamicallyImportedBy.length>0&&!t.manualChunkAlias&&o.push(t)};if(t)for(const e of Object.keys(t))for(n of(r=Vc(10),t[e]))i=new Set(n.id),a(n);for(n of e)s.add(n.id),r=Vc(10),i=new Set(n.id),n.manualChunkAlias||a(n);for(n of o)s.has(n.id)||(s.add(n.id),r=Vc(10),i=new Set(n.id),a(n))}(e,t);let r=[];if(this.preserveModules)for(const e of this.modules){const t=new wh(this,[e]);!e.isEntryPoint&&t.isEmpty||(t.entryModules=[e]),r.push(t)}else{const e={};for(const t of this.modules){const n=Lc(t.entryPointsHash),r=e[n];r?r.push(t):e[n]=[t]}for(const t in e){const n=e[t];yh(n);const i=new wh(this,n);r.push(i)}}for(const e of r)e.link();r=r.filter(Sh);const i=[];for(const e of r)for(const t of e.generateFacades())i.push(t);return nh("generate chunks",2),this.phase=Ac.GENERATE,r.concat(i)})}finaliseAssets(e){const t=Object.create(null);return this.assetsById.forEach(n=>{void 0!==n.source&&bc(n,t,e)}),t}getCache(){for(const e in this.pluginCache){const t=this.pluginCache[e];let n=!0;for(const e of Object.keys(t))t[e][0]>=this.cacheExpiry?delete t[e]:n=!1;n&&delete this.pluginCache[e]}return{modules:this.modules.map(e=>e.toJSON()),plugins:this.pluginCache}}includeMarked(e){if(this.treeshakingOptions){let t=1;do{th(`treeshaking pass ${t}`,3),this.needsTreeshakingPass=!1;for(const t of e)t.isExecuted&&t.include();nh(`treeshaking pass ${t++}`,3)}while(this.needsTreeshakingPass)}else for(const t of e)t.includeAllInBundle()}warn(e){e.toString=()=>{let t="";return e.plugin&&(t+=`(${e.plugin} plugin) `),e.loc&&(t+=`${So(e.loc.file)} (${e.loc.line}:${e.loc.column}) `),t+=e.message},this.onwarn(e)}warnDeprecation(e,t){if(t||this.strictDeprecations){const t=ko(e);if(this.strictDeprecations)return Io(t);this.warn(t)}}link(e){for(const e of this.modules)e.linkDependencies();const{orderedModules:t,cyclePaths:n}=function(e){let t=0;const n=[],r={},i=[],s=[],o={},a=e=>{if(!r[e.id]){if(e instanceof yt)return e.execIndex=t++,void(r[e.id]=!0);for(const t of e.dependencies)t.id in o?r[t.id]||n.push(xh(t.id,e.id,o)):(o[t.id]=e.id,a(t));for(const{resolution:t}of e.dynamicImports)t instanceof uh&&-1===s.indexOf(t)&&s.push(t);e.execIndex=t++,r[e.id]=!0,i.push(e)}};for(const t of e)o[t.id]||(o[t.id]=null,a(t));for(const e of s)o[e.id]||(o[e.id]=null,a(e));return{orderedModules:i,cyclePaths:n}}(e);for(const e of n)this.warn({code:"CIRCULAR_DEPENDENCY",importer:e[0],message:`Circular dependency: ${e.join(" -> ")}`});this.modules=t;for(const e of this.modules)e.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(const e of this.modules)for(const t of Object.keys(e.importDescriptions)){const n=e.importDescriptions[t];"*"===n.name||n.module.getVariableForExportName(n.name)||e.warn({code:"NON_EXISTENT_EXPORT",message:`Non-existent export '${n.name}' is imported from ${So(n.module.id)}`,name:n.name,source:n.module.id},n.start)}}}function jc(e){switch(typeof e){case"function":return e();case"string":return e;default:return""}}const Wc=(e,t)=>t?`${e}\n${t}`:e,Uc=(e,t)=>t?`${e}\n\n${t}`:e;function Fc(e,t){Io({code:"INVALID_EXPORT_OPTION",message:`'${e}' was specified for output.exports, but entry module has following exports: ${t.join(", ")}`})}function qc(e,{exports:t,name:n,format:r}){const i=e.getExportNames();return"default"===t?1===i.length&&"default"===i[0]||Fc("default",i):"none"===t&&i.length&&Fc("none",i),t&&"auto"!==t||(0===i.length?t="none":1===i.length&&"default"===i[0]?t="default":(null!==e.facadeModule&&e.facadeModule.isEntryPoint&&"es"!==r&&-1!==i.indexOf("default")&&e.graph.warn({code:"MIXED_EXPORTS",message:`Using named and default exports together. Consumers of your bundle will have to use ${n||"bundle"}['default'] to access the default export, which may not be what you want. Use \`output.exports: 'named'\` to disable this warning`,url:"https://rollupjs.org/guide/en/#output-exports"}),t="named")),/(?:default|named|none)/.test(t)||Io({code:"INVALID_EXPORT_OPTION",message:"output.exports must be 'default', 'named', 'none', 'auto', or left unspecified (defaults to 'auto')",url:"https://rollupjs.org/guide/en/#output-exports"}),t}const Gc=(e,t)=>(n,r)=>void 0!==t[n]?t[n]:void 0!==e[n]?e[n]:r,Hc=e=>e&&"object"!=typeof e?{}:e,Kc=(e,t,n)=>{const r=Hc(t[n]),i=Hc(e[n]);return void 0!==r?r&&i?Object.assign({},i,r):r:i},Yc=(e,t,n=(e=>{"string"==typeof e?console.warn(e):console.warn(e.message)}))=>t.silent?()=>{}:e.onwarn?t=>e.onwarn(t,n):n,Xc=(e,t)=>{const n=e.external;return"function"==typeof n?(e,...r)=>n(e,...r)||-1!==t.external.indexOf(e):("string"==typeof e.external?[n]:Array.isArray(n)?n:[]).concat(t.external)},Qc={c:"config",d:"dir",e:"external",f:"format",g:"globals",h:"help",i:"input",m:"sourcemap",n:"name",o:"file",v:"version",w:"watch"};function Jc({config:e={},command:t={},defaultOnWarnHandler:n}){const r=function(e){const t=e.external&&"string"==typeof e.external?e.external.split(","):[];return Object.assign({},e,{external:t,globals:"string"==typeof e.globals?e.globals.split(",").reduce((e,n)=>{const[r,i]=n.split(":");return e[r]=i,-1===t.indexOf(r)&&t.push(r),e},Object.create(null)):void 0})}(t),i=function(e,t={external:[],globals:void 0},n){const r=Gc(e,t),i={acorn:e.acorn,acornInjectPlugins:e.acornInjectPlugins,cache:r("cache"),chunkGroupingSize:r("chunkGroupingSize",5e3),context:e.context,experimentalCacheExpiry:r("experimentalCacheExpiry",10),experimentalOptimizeChunks:r("experimentalOptimizeChunks"),experimentalTopLevelAwait:r("experimentalTopLevelAwait"),external:Xc(e,t),inlineDynamicImports:r("inlineDynamicImports",!1),input:r("input",[]),manualChunks:r("manualChunks"),moduleContext:e.moduleContext,onwarn:Yc(e,t,n),perf:r("perf",!1),plugins:e.plugins,preserveModules:r("preserveModules"),preserveSymlinks:r("preserveSymlinks"),shimMissingExports:r("shimMissingExports"),strictDeprecations:r("strictDeprecations",!1),treeshake:Kc(e,t,"treeshake"),watch:e.watch};i.cache&&i.cache.cache&&(i.cache=i.cache.cache);return i}(e,r,n);r.output&&Object.assign(r,r.output);const s=e.output,o=Array.isArray(s)?s:s?[s]:[];0===o.length&&o.push({});const a=o.map(e=>(function(e,t={}){const n=Gc(e,t);let r=n("format");switch(r){case"esm":case"module":r="es";break;case"commonjs":r="cjs"}return{amd:Object.assign({},e.amd,t.amd),assetFileNames:n("assetFileNames"),banner:n("banner"),chunkFileNames:n("chunkFileNames"),compact:n("compact",!1),dir:n("dir"),dynamicImportFunction:n("dynamicImportFunction"),entryFileNames:n("entryFileNames"),esModule:n("esModule",!0),exports:n("exports"),extend:n("extend"),file:n("file"),footer:n("footer"),format:"esm"===r?"es":r,freeze:n("freeze",!0),globals:n("globals"),indent:n("indent",!0),interop:n("interop",!0),intro:n("intro"),name:n("name"),namespaceToStringTag:n("namespaceToStringTag",!1),noConflict:n("noConflict"),outro:n("outro"),paths:n("paths"),preferConst:n("preferConst"),sourcemap:n("sourcemap"),sourcemapExcludeSources:n("sourcemapExcludeSources"),sourcemapFile:n("sourcemapFile"),sourcemapPathTransform:n("sourcemapPathTransform"),strict:n("strict",!0)}})(e,r)),h=[],u=Object.keys(i);Zc(h,Object.keys(e),u,"input option",/^output$/);const c=Object.keys(a[0]);Zc(h,a.reduce((e,t)=>e.concat(Object.keys(t)),[]),c,"output option");const l=c.filter(e=>"sourcemapPathTransform"!==e);return Zc(h,Object.keys(r),u.concat(l,Object.keys(Qc),"config","environment","silent"),"CLI flag",/^_|output|(config.*)$/),{inputOptions:i,optionError:h.length>0?h.join("\n"):null,outputOptions:a}}function Zc(e,t,n,r,i=/$./){const s=t.filter(e=>-1===n.indexOf(e)&&!i.test(e));s.length>0&&e.push(`Unknown ${r}: ${s.join(", ")}. Allowed options: ${n.sort().join(", ")}`)}const el={get(){throw new Error("bundle.generate(...) now returns a Promise instead of a { code, map } object")}};function tl(e,n){return n.options&&n.options.call({meta:{rollupVersion:t}},e)||e}function nl(e){return Array.isArray(e)?e.filter(Boolean):e?[e]:[]}let rl;var il;function sl(e){return e.isAsset?il.ASSET:e.isEntry?il.ENTRY_CHUNK:il.SECONDARY_CHUNK}function ol(e){return{output:Object.keys(e).map(t=>e[t]).sort((e,t)=>{const n=sl(e),r=sl(t);return n===r?0:n<r?-1:1})}}function al(e){return!0===e.isAsset}!function(e){e[e.ENTRY_CHUNK=0]="ENTRY_CHUNK",e[e.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",e[e.ASSET=2]="ASSET"}(il||(il={})),e.VERSION=t,e.rollup=function(e){try{const t=function(e){if(!e)throw new Error("You must supply an options object to rollup");let{inputOptions:t,optionError:n}=Jc({config:e});n&&t.onwarn({message:n,code:"UNKNOWN_OPTION"}),(t=nl(t.plugins).reduce(tl,t)).plugins=nl(t.plugins);for(let e=0;e<t.plugins.length;e++){const n=t.plugins[e];n.name||(n.name=`${Sc}${e+1}`)}return t.inlineDynamicImports?(t.preserveModules&&Io({code:"INVALID_OPTION",message:'"preserveModules" does not support the "inlineDynamicImports" option.'}),t.manualChunks&&Io({code:"INVALID_OPTION",message:'"manualChunks" option is not supported for "inlineDynamicImports".'}),t.experimentalOptimizeChunks&&Io({code:"INVALID_OPTION",message:'"experimentalOptimizeChunks" option is not supported for "inlineDynamicImports".'}),(t.input instanceof Array&&t.input.length>1||"object"==typeof t.input&&Object.keys(t.input).length>1)&&Io({code:"INVALID_OPTION",message:'Multiple inputs are not supported for "inlineDynamicImports".'})):t.preserveModules&&(t.manualChunks&&Io({code:"INVALID_OPTION",message:'"preserveModules" does not support the "manualChunks" option.'}),t.experimentalOptimizeChunks&&Io({code:"INVALID_OPTION",message:'"preserveModules" does not support the "experimentalOptimizeChunks" option.'})),t}(e);sh(t);const n=new zc(t,rl);rl=void 0;const r=!1!==e.cache;return delete t.cache,delete e.cache,th("BUILD",1),n.pluginDriver.hookParallel("buildStart",[t]).then(()=>n.build(t.input,t.manualChunks,t.inlineDynamicImports)).then(e=>n.pluginDriver.hookParallel("buildEnd",[]).then(()=>e),e=>n.pluginDriver.hookParallel("buildEnd",[e]).then(()=>{throw e})).then(e=>{nh("BUILD",1);let i=!1;function s(r){return function(e,t,n,r){if(!t)throw new Error("You must supply an options object");const i=Jc({config:{output:Object.assign({},t,t.output,e.output)}});if(i.optionError)throw new Error(i.optionError);const s=i.outputOptions[0],o=r.hookReduceArg0Sync("outputOptions",[s],(e,t)=>t||e);var a;return"es6"===(a=o).format&&Io(ko({message:'The "es6" output format is deprecated – use "esm" instead',url:"https://rollupjs.org/guide/en/#output-format"})),["amd","cjs","system","es","iife","umd"].indexOf(a.format)<0&&Io({message:'You must specify "output.format", which can be one of "amd", "cjs", "system", "esm", "iife" or "umd".',url:"https://rollupjs.org/guide/en/#output-format"}),"string"==typeof o.file&&("string"==typeof o.dir&&Io({code:"INVALID_OPTION",message:'You must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks.'}),e.preserveModules&&Io({code:"INVALID_OPTION",message:'You must set "output.dir" instead of "output.file" when using the "preserveModules" option.'}),"object"!=typeof e.input||Array.isArray(e.input)||Io({code:"INVALID_OPTION",message:'You must set "output.dir" instead of "output.file" when providing named inputs.'})),n&&("umd"!==o.format&&"iife"!==o.format||Io({code:"INVALID_OPTION",message:"UMD and IIFE output formats are not supported for code-splitting builds."}),"string"==typeof o.file&&Io({code:"INVALID_OPTION",message:'You must set "output.dir" instead of "output.file" when generating multiple chunks.'})),o}(t,r,e.length>1,n.pluginDriver)}function o(r,s){th("GENERATE",1);const o=r.assetFileNames||"assets/[name]-[hash][extname]",a=n.finaliseAssets(o),h=function(e){if(0===e.length)return"/";if(1===e.length)return dt(e[0]);const t=e.slice(1).reduce((e,t)=>{const n=t.split(/\/+|\\+/);let r;for(r=0;e[r]===n[r]&&r<Math.min(e.length,n.length);r++);return e.slice(0,r)},e[0].split(/\/+|\\+/));return t.length>1?t.join("/"):"/"}(function(e){const t=[];for(const n of e)for(const e of n.entryModules)ut(e.id)&&t.push(e.id);return t}(e));return n.pluginDriver.hookParallel("renderStart",[]).then(()=>(function(e,t){const n=e.pluginDriver;return Promise.all([n.hookReduceValue("banner",jc(t.banner),[],Wc),n.hookReduceValue("footer",jc(t.footer),[],Wc),n.hookReduceValue("intro",jc(t.intro),[],Uc),n.hookReduceValue("outro",jc(t.outro),[],Uc)]).then(([e,t,n,r])=>(n&&(n+="\n\n"),r&&(r=`\n\n${r}`),e.length&&(e+="\n"),t.length&&(t="\n"+t),{intro:n,outro:r,banner:e,footer:t})).catch(e=>{Io({code:"ADDON_ERROR",message:`Could not retrieve ${e.hook}. Check configuration of plugin ${e.plugin}.\n\tError Message: ${e.message}`})})})(n,r)).then(s=>{for(const n of e)t.preserveModules||n.generateInternalExports(r),n.facadeModule&&n.facadeModule.isEntryPoint&&(n.exportMode=qc(n,r));for(const t of e)t.preRender(r,h);!i&&t.experimentalOptimizeChunks&&(function(e,t,n,r){for(let i=0;i<e.length;i++){const s=e[i],o=[];if(s.visitStaticDependenciesUntilCondition(e=>{e instanceof wh&&o.push(e)}),o.length<2)continue;let a=1,h=!0,u=void 0,c=o[0],l=o[1];const p=e=>!(null!==e.facadeModule||null!==e.manualChunkAlias||!l||null!==l.facadeModule||e.getRenderedSourceLength()>n);do{if(h){p(c)&&(h=!1);continue}let s=n-u.getRenderedSourceLength()-c.getRenderedSourceLength();if(s<=0){p(c)||(h=!0);continue}const d=new Set;c.visitStaticDependenciesUntilCondition(e=>d.add(e));const f=new Set([c,u]);if(u.visitStaticDependenciesUntilCondition(e=>e!==c&&e!==u&&!d.has(e)&&(e instanceof yt||(s-=e.getRenderedSourceLength())<=0||void f.add(e)))){p(c)||(h=!0);continue}if(c.visitStaticDependenciesUntilCondition(e=>!f.has(e)&&(e instanceof yt||(s-=e.getRenderedSourceLength())<=0||void 0))){p(c)||(h=!0);continue}const m=e.indexOf(c);m<=i&&i--,e.splice(m,1),u.merge(c,e,t,r),o.splice(--a,1),c=u,l&&!p(l)&&(h=!0)}while(u=c,c=l,l=o[++a],c)}}(e,r,t.chunkGroupingSize,h),i=!0),function(e,t,n,r,i){const s={},[o,a]=e.reduce(([e,t],n)=>((n.facadeModule&&n.facadeModule.isUserDefinedEntryPoint?e:t).push(n),[e,t]),[[],[]]),h=o.concat(a);for(let e=0;e<h.length;e++){const o=h[e];if(n.file)o.id=pt(n.file);else if(t.preserveModules)o.generateIdPreserveModules(r,s);else{let e,t;o.facadeModule&&o.facadeModule.isUserDefinedEntryPoint?(e=n.entryFileNames||"[name].js",t="output.entryFileNames"):(e=n.chunkFileNames||"[name]-[hash].js",t="output.chunkFileNames"),o.generateId(e,t,i,n,s)}s[o.id]=!0}}(e,t,r,h,s);for(let t=0;t<e.length;t++){const n=e[t],r=n.facadeModule;a[n.id]={code:void 0,dynamicImports:n.getDynamicImportIds(),exports:n.getExportNames(),facadeModuleId:r&&r.id,fileName:n.id,imports:n.getImportIds(),isDynamicEntry:null!==r&&r.dynamicallyImportedBy.length>0,isEntry:null!==r&&r.isEntryPoint,map:void 0,modules:n.renderedModules,get name(){return n.getChunkName()}}}return Promise.all(e.map(e=>{const t=a[e.id];return e.render(r,s,t).then(e=>(t.code=e.code,t.map=e.map,n.pluginDriver.hookParallel("ongenerate",[Object.assign({bundle:t},r),t])))})).then(()=>{})}).catch(e=>n.pluginDriver.hookParallel("renderError",[e]).then(()=>{throw e})).then(()=>{const e=new Map(n.assetsById),t=_c(e,a,o);return n.pluginDriver.hookSeq("generateBundle",[r,a,s],e=>Object.assign({},e,t)).then(()=>{e.forEach(e=>{void 0===e.fileName&&bc(e,a,o)})})}).then(()=>(nh("GENERATE",1),a))}const a={cache:r?n.getCache():void 0,generate:e=>{const t=o(s(e),!1).then(e=>ol(e));return Object.defineProperty(t,"code",el),Object.defineProperty(t,"map",el),t},watchFiles:Object.keys(n.watchFiles),write:e=>{const r=s(e);return r.dir||r.file||Io({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.'}),o(r,!0).then(e=>{let i=0;for(const t of Object.keys(e))if(!e[t].isAsset&&++i>1)break;return i>1&&(r.sourcemapFile&&Io({code:"INVALID_OPTION",message:'"output.sourcemapFile" is only supported for single-file builds.'}),"string"==typeof r.file&&Io({code:"INVALID_OPTION",message:'When building multiple chunks, the "output.dir" option must be used, not "output.file".'+("string"!=typeof t.input||!0===t.inlineDynamicImports?"":' To inline dynamic imports, set the "inlineDynamicImports" option.')})),Promise.all(Object.keys(e).map(t=>(function(e,t,n,r){const i=gt(r.dir||dt(r.file),n.fileName);let s,o;if(al(n))o=n.source;else if(o=n.code,r.sourcemap&&n.map){let e;"inline"===r.sourcemap?e=n.map.toUrl():(e=`${pt(n.fileName)}.map`,s=ga(`${i}.map`,n.map.toString())),o+=`//# ${Ua}=${e}\n`}return ga(i,o).then(()=>s).then(()=>!al(n)&&e.pluginDriver.hookSeq("onwrite",[Object.assign({bundle:t},r),n])).then(()=>{})})(n,a,e[t],r))).then(()=>n.pluginDriver.hookParallel("writeBundle",[e])).then(()=>ol(e))})}};return!0===t.perf&&(a.getTimings=eh),a})}catch(e){return Promise.reject(e)}},Object.defineProperty(e,"__esModule",{value:!0})});
|
|
11
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).rollup={})}(this,function(e){"use strict";var t="1.17.0",n=r;function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e){return 1===e.length?"0"+e:e}function a(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}r.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var h={inherits:function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}),toArray:function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),s=0;s<e.length;s+=2)n.push(parseInt(e[s]+e[s+1],16))}else for(var r=0,s=0;s<e.length;s++){var o=e.charCodeAt(s);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):i(e,s)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++s)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(s=0;s<e.length;s++)n[s]=0|e[s];return n},toHex:function(e){for(var t="",n=0;n<e.length;n++)t+=o(e[n].toString(16));return t},htonl:s,toHex32:function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=a(i.toString(16))}return n},zero2:o,zero8:a,join32:function(e,t,r,i){var s=r-t;n(s%4==0);for(var o=new Array(s/4),a=0,h=t;a<o.length;a++,h+=4){var u;u="big"===i?e[h]<<24|e[h+1]<<16|e[h+2]<<8|e[h+3]:e[h+3]<<24|e[h+2]<<16|e[h+1]<<8|e[h],o[a]=u>>>0}return o},split32:function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var s=e[r];"big"===t?(n[i]=s>>>24,n[i+1]=s>>>16&255,n[i+2]=s>>>8&255,n[i+3]=255&s):(n[i+3]=s>>>24,n[i+2]=s>>>16&255,n[i+1]=s>>>8&255,n[i]=255&s)}return n},rotr32:function(e,t){return e>>>t|e<<32-t},rotl32:function(e,t){return e<<t|e>>>32-t},sum32:function(e,t){return e+t>>>0},sum32_3:function(e,t,n){return e+t+n>>>0},sum32_4:function(e,t,n,r){return e+t+n+r>>>0},sum32_5:function(e,t,n,r,i){return e+t+n+r+i>>>0},sum64:function(e,t,n,r){var i=e[t],s=r+e[t+1]>>>0,o=(s<r?1:0)+n+i;e[t]=o>>>0,e[t+1]=s},sum64_hi:function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},sum64_lo:function(e,t,n,r){return t+r>>>0},sum64_4_hi:function(e,t,n,r,i,s,o,a){var h=0,u=t;return h+=(u=u+r>>>0)<t?1:0,h+=(u=u+s>>>0)<s?1:0,e+n+i+o+(h+=(u=u+a>>>0)<a?1:0)>>>0},sum64_4_lo:function(e,t,n,r,i,s,o,a){return t+r+s+a>>>0},sum64_5_hi:function(e,t,n,r,i,s,o,a,h,u){var c=0,l=t;return c+=(l=l+r>>>0)<t?1:0,c+=(l=l+s>>>0)<s?1:0,c+=(l=l+a>>>0)<a?1:0,e+n+i+o+h+(c+=(l=l+u>>>0)<u?1:0)>>>0},sum64_5_lo:function(e,t,n,r,i,s,o,a,h,u){return t+r+s+a+u>>>0},rotr64_hi:function(e,t,n){return(t<<32-n|e>>>n)>>>0},rotr64_lo:function(e,t,n){return(e<<32-n|t>>>n)>>>0},shr64_hi:function(e,t,n){return e>>>n},shr64_lo:function(e,t,n){return(e<<32-n|t>>>n)>>>0}};function u(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var c=u;u.prototype.update=function(e,t){if(e=h.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=h.join32(e,0,e.length-n,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},u.prototype.digest=function(e){return this.update(this._pad()),n(null===this.pending),this._digest(e)},u.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var s=8;s<this.padLength;s++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,s=8;s<this.padLength;s++)r[i++]=0;return r};var l={BlockHash:c},p=h.rotr32;function d(e,t,n){return e&t^~e&n}function f(e,t,n){return e&t^e&n^t&n}function m(e,t,n){return e^t^n}var g={ft_1:function(e,t,n,r){return 0===e?d(t,n,r):1===e||3===e?m(t,n,r):2===e?f(t,n,r):void 0},ch32:d,maj32:f,p32:m,s0_256:function(e){return p(e,2)^p(e,13)^p(e,22)},s1_256:function(e){return p(e,6)^p(e,11)^p(e,25)},g0_256:function(e){return p(e,7)^p(e,18)^e>>>3},g1_256:function(e){return p(e,17)^p(e,19)^e>>>10}},y=h.sum32,v=h.sum32_4,x=h.sum32_5,E=g.ch32,_=g.maj32,b=g.s0_256,A=g.s1_256,S=g.g0_256,w=g.g1_256,I=l.BlockHash,P=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function C(){if(!(this instanceof C))return new C;I.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=P,this.W=new Array(64)}h.inherits(C,I);var k=C;C.blockSize=512,C.outSize=256,C.hmacStrength=192,C.padLength=64,C.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=v(w(r[i-2]),r[i-7],S(r[i-15]),r[i-16]);var s=this.h[0],o=this.h[1],a=this.h[2],h=this.h[3],u=this.h[4],c=this.h[5],l=this.h[6],p=this.h[7];for(n(this.k.length===r.length),i=0;i<r.length;i++){var d=x(p,A(u),E(u,c,l),this.k[i],r[i]),f=y(b(s),_(s,o,a));p=l,l=c,c=u,u=y(h,d),h=a,a=o,o=s,s=y(d,f)}this.h[0]=y(this.h[0],s),this.h[1]=y(this.h[1],o),this.h[2]=y(this.h[2],a),this.h[3]=y(this.h[3],h),this.h[4]=y(this.h[4],u),this.h[5]=y(this.h[5],c),this.h[6]=y(this.h[6],l),this.h[7]=y(this.h[7],p)},C.prototype._digest=function(e){return"hex"===e?h.toHex32(this.h,"big"):h.split32(this.h,"big")};for(var $={},N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",R=0;R<N.length;R++)$[N.charCodeAt(R)]=R;function O(e){var t="";e=e<0?-e<<1|1:e<<1;do{var n=31&e;(e>>>=5)>0&&(n|=32),t+=N[n]}while(e>0);return t}var M=function(e,t,n){this.start=e,this.end=t,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};M.prototype.appendLeft=function(e){this.outro+=e},M.prototype.appendRight=function(e){this.intro=this.intro+e},M.prototype.clone=function(){var e=new M(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e},M.prototype.contains=function(e){return this.start<e&&e<this.end},M.prototype.eachNext=function(e){for(var t=this;t;)e(t),t=t.next},M.prototype.eachPrevious=function(e){for(var t=this;t;)e(t),t=t.previous},M.prototype.edit=function(e,t,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=t,this.edited=!0,this},M.prototype.prependLeft=function(e){this.outro=e+this.outro},M.prototype.prependRight=function(e){this.intro=e+this.intro},M.prototype.split=function(e){var t=e-this.start,n=this.original.slice(0,t),r=this.original.slice(t);this.original=n;var i=new M(e,this.end,r);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i},M.prototype.toString=function(){return this.intro+this.content+this.outro},M.prototype.trimEnd=function(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&this.split(this.start+t.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),!!this.intro.length||void 0)},M.prototype.trimStart=function(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var t=this.content.replace(e,"");return t.length?(t!==this.content&&(this.split(this.end-t.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),!!this.outro.length||void 0)};var D=function(){throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?D=function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"function"==typeof Buffer&&(D=function(e){return Buffer.from(e,"utf-8").toString("base64")});var T=function(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=function(e){for(var t=0,n=0,r=0,i=0,s="",o=0;o<e.length;o++){var a=e[o];if(o>0&&(s+=";"),0!==a.length){for(var h=0,u=[],c=0,l=a;c<l.length;c++){var p=l[c],d=O(p[0]-h);h=p[0],p.length>1&&(d+=O(p[1]-t)+O(p[2]-n)+O(p[3]-r),t=p[1],n=p[2],r=p[3]),5===p.length&&(d+=O(p[4]-i),i=p[4]),u.push(d)}s+=u.join(",")}}return s}(e.mappings)};function L(e){var t=e.split("\n"),n=t.filter(function(e){return/^\t+/.test(e)}),r=t.filter(function(e){return/^ {2,}/.test(e)});if(0===n.length&&0===r.length)return null;if(n.length>=r.length)return"\t";var i=r.reduce(function(e,t){var n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return new Array(i+1).join(" ")}function V(e,t){var n=e.split(/[\/\\]/),r=t.split(/[\/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length)for(var i=n.length;i--;)n[i]="..";return n.concat(r).join("/")}T.prototype.toString=function(){return JSON.stringify(this)},T.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+D(this.toString())};var B=Object.prototype.toString;function z(e){return"[object Object]"===B.call(e)}function j(e){for(var t=e.split("\n"),n=[],r=0,i=0;r<t.length;r++)n.push(i),i+=t[r].length+1;return function(e){for(var t=0,r=n.length;t<r;){var i=t+r>>1;e<n[i]?r=i:t=i+1}var s=t-1;return{line:s,column:e-n[s]}}}var W=function(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};W.prototype.addEdit=function(e,t,n,r){if(t.length){var i=[this.generatedCodeColumn,e,n.line,n.column];r>=0&&i.push(r),this.rawSegments.push(i)}else this.pending&&this.rawSegments.push(this.pending);this.advance(t),this.pending=null},W.prototype.addUneditedChunk=function(e,t,n,r,i){for(var s=t.start,o=!0;s<t.end;)(this.hires||o||i[s])&&this.rawSegments.push([this.generatedCodeColumn,e,r.line,r.column]),"\n"===n[s]?(r.line+=1,r.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0):(r.column+=1,this.generatedCodeColumn+=1),s+=1,o=!1;this.pending=[this.generatedCodeColumn,e,r.line,r.column]},W.prototype.advance=function(e){if(e){var t=e.split("\n");if(t.length>1){for(var n=0;n<t.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}};var U="\n",F={insertLeft:!1,insertRight:!1,storeName:!1},q=function(e,t){void 0===t&&(t={});var n=new M(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:{}},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:L(e)}}),this.byStart[0]=n,this.byEnd[e.length]=n};q.prototype.addSourcemapLocation=function(e){this.sourcemapLocations[e]=!0},q.prototype.append=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.outro+=e,this},q.prototype.appendLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.appendLeft(t):this.intro+=t,this},q.prototype.appendRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.appendRight(t):this.outro+=t,this},q.prototype.clone=function(){for(var e=new q(this.original,{filename:this.filename}),t=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=t.clone();t;){e.byStart[n.start]=n,e.byEnd[n.end]=n;var r=t.next,i=r&&r.clone();i&&(n.next=i,i.previous=n,n=i),t=r}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),Object.keys(this.sourcemapLocations).forEach(function(t){e.sourcemapLocations[t]=!0}),e},q.prototype.generateDecodedMap=function(e){var t=this;e=e||{};var n=Object.keys(this.storedNames),r=new W(e.hires),i=j(this.original);return this.intro&&r.advance(this.intro),this.firstChunk.eachNext(function(e){var s=i(e.start);e.intro.length&&r.advance(e.intro),e.edited?r.addEdit(0,e.content,s,e.storeName?n.indexOf(e.original):-1):r.addUneditedChunk(0,e,t.original,s,t.sourcemapLocations),e.outro.length&&r.advance(e.outro)}),{file:e.file?e.file.split(/[\/\\]/).pop():null,sources:[e.source?V(e.file||"",e.source):null],sourcesContent:e.includeContent?[this.original]:[null],names:n,mappings:r.raw}},q.prototype.generateMap=function(e){return new T(this.generateDecodedMap(e))},q.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},q.prototype.indent=function(e,t){var n=/^[^\r\n]/gm;if(z(e)&&(t=e,e=void 0),""===(e=void 0!==e?e:this.indentStr||"\t"))return this;var r={};(t=t||{}).exclude&&("number"==typeof t.exclude[0]?[t.exclude]:t.exclude).forEach(function(e){for(var t=e[0];t<e[1];t+=1)r[t]=!0});var i=!1!==t.indentStart,s=function(t){return i?""+e+t:(i=!0,t)};this.intro=this.intro.replace(n,s);for(var o=0,a=this.firstChunk;a;){var h=a.end;if(a.edited)r[o]||(a.content=a.content.replace(n,s),a.content.length&&(i="\n"===a.content[a.content.length-1]));else for(o=a.start;o<h;){if(!r[o]){var u=this.original[o];"\n"===u?i=!0:"\r"!==u&&i&&(i=!1,o===a.start?a.prependRight(e):(this._splitChunk(a,o),(a=a.next).prependRight(e)))}o+=1}o=a.end,a=a.next}return this.outro=this.outro.replace(n,s),this},q.prototype.insert=function(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},q.prototype.insertLeft=function(e,t){return F.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),F.insertLeft=!0),this.appendLeft(e,t)},q.prototype.insertRight=function(e,t){return F.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),F.insertRight=!0),this.prependRight(e,t)},q.prototype.move=function(e,t,n){if(n>=e&&n<=t)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(t),this._split(n);var r=this.byStart[e],i=this.byEnd[t],s=r.previous,o=i.next,a=this.byStart[n];if(!a&&i===this.lastChunk)return this;var h=a?a.previous:this.lastChunk;return s&&(s.next=o),o&&(o.previous=s),h&&(h.next=r),a&&(a.previous=i),r.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=h,i.next=a||null,h||(this.firstChunk=r),a||(this.lastChunk=i),this},q.prototype.overwrite=function(e,t,n,r){if("string"!=typeof n)throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(t>this.original.length)throw new Error("end is out of bounds");if(e===t)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(e),this._split(t),!0===r&&(F.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),F.storeName=!0),r={storeName:!0});var i=void 0!==r&&r.storeName,s=void 0!==r&&r.contentOnly;if(i){var o=this.original.slice(e,t);this.storedNames[o]=!0}var a=this.byStart[e],h=this.byEnd[t];if(a){if(t>a.end&&a.next!==this.byStart[a.end])throw new Error("Cannot overwrite across a split point");if(a.edit(n,i,s),a!==h){for(var u=a.next;u!==h;)u.edit("",!1),u=u.next;u.edit("",!1)}}else{var c=new M(e,t,"").edit(n,i);h.next=c,c.previous=h}return this},q.prototype.prepend=function(e){if("string"!=typeof e)throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this},q.prototype.prependLeft=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byEnd[e];return n?n.prependLeft(t):this.intro=t+this.intro,this},q.prototype.prependRight=function(e,t){if("string"!=typeof t)throw new TypeError("inserted content must be a string");this._split(e);var n=this.byStart[e];return n?n.prependRight(t):this.outro=t+this.outro,this},q.prototype.remove=function(e,t){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;if(e===t)return this;if(e<0||t>this.original.length)throw new Error("Character is out of bounds");if(e>t)throw new Error("end must be greater than start");this._split(e),this._split(t);for(var n=this.byStart[e];n;)n.intro="",n.outro="",n.edit(""),n=t>n.end?this.byStart[n.end]:null;return this},q.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""},q.prototype.lastLine=function(){var e=this.outro.lastIndexOf(U);if(-1!==e)return this.outro.substr(e+1);var t=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(-1!==(e=n.outro.lastIndexOf(U)))return n.outro.substr(e+1)+t;t=n.outro+t}if(n.content.length>0){if(-1!==(e=n.content.lastIndexOf(U)))return n.content.substr(e+1)+t;t=n.content+t}if(n.intro.length>0){if(-1!==(e=n.intro.lastIndexOf(U)))return n.intro.substr(e+1)+t;t=n.intro+t}}while(n=n.previous);return-1!==(e=this.intro.lastIndexOf(U))?this.intro.substr(e+1)+t:this.intro+t},q.prototype.slice=function(e,t){for(void 0===e&&(e=0),void 0===t&&(t=this.original.length);e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length;for(var n="",r=this.firstChunk;r&&(r.start>e||r.end<=e);){if(r.start<t&&r.end>=t)return n;r=r.next}if(r&&r.edited&&r.start!==e)throw new Error("Cannot use replaced character "+e+" as slice start anchor.");for(var i=r;r;){!r.intro||i===r&&r.start!==e||(n+=r.intro);var s=r.start<t&&r.end>=t;if(s&&r.edited&&r.end!==t)throw new Error("Cannot use replaced character "+t+" as slice end anchor.");var o=i===r?e-r.start:0,a=s?r.content.length+t-r.end:r.content.length;if(n+=r.content.slice(o,a),!r.outro||s&&r.end!==t||(n+=r.outro),s)break;r=r.next}return n},q.prototype.snip=function(e,t){var n=this.clone();return n.remove(0,e),n.remove(t,n.original.length),n},q.prototype._split=function(e){if(!this.byStart[e]&&!this.byEnd[e])for(var t=this.lastSearchedChunk,n=e>t.end;t;){if(t.contains(e))return this._splitChunk(t,e);t=n?this.byStart[t.end]:this.byEnd[t.start]}},q.prototype._splitChunk=function(e,t){if(e.edited&&e.content.length){var n=j(this.original)(t);throw new Error("Cannot split a chunk that has already been edited ("+n.line+":"+n.column+' – "'+e.original+'")')}var r=e.split(t);return this.byEnd[t]=e,this.byStart[t]=r,this.byEnd[r.end]=r,e===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=e,!0},q.prototype.toString=function(){for(var e=this.intro,t=this.firstChunk;t;)e+=t.toString(),t=t.next;return e+this.outro},q.prototype.isEmpty=function(){var e=this.firstChunk;do{if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1}while(e=e.next);return!0},q.prototype.length=function(){var e=this.firstChunk,t=0;do{t+=e.intro.length+e.content.length+e.outro.length}while(e=e.next);return t},q.prototype.trimLines=function(){return this.trim("[\\r\\n]")},q.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},q.prototype.trimEndAborted=function(e){var t=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var n=this.lastChunk;do{var r=n.end,i=n.trimEnd(t);if(n.end!==r&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.previous}while(n);return!1},q.prototype.trimEnd=function(e){return this.trimEndAborted(e),this},q.prototype.trimStartAborted=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var n=this.firstChunk;do{var r=n.end,i=n.trimStart(t);if(n.end!==r&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.next}while(n);return!1},q.prototype.trimStart=function(e){return this.trimStartAborted(e),this};var G=Object.prototype.hasOwnProperty,H=function(e){void 0===e&&(e={}),this.intro=e.intro||"",this.separator=void 0!==e.separator?e.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};function K(e,t){const n=e.split(/[\/\\]/).filter(Boolean),r=t.split(/[\/\\]/).filter(Boolean);for("."===n[0]&&n.shift(),"."===r[0]&&r.shift();n[0]&&r[0]&&n[0]===r[0];)n.shift(),r.shift();for(;".."===r[0]&&n.length>0;)r.shift(),n.pop();for(;n.pop();)r.unshift("..");return r.join("/")}H.prototype.addSource=function(e){if(e instanceof q)return this.addSource({content:e,filename:e.filename,separator:this.separator});if(!z(e)||!e.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach(function(t){G.call(e,t)||(e[t]=e.content[t])}),void 0===e.separator&&(e.separator=this.separator),e.filename)if(G.call(this.uniqueSourceIndexByFilename,e.filename)){var t=this.uniqueSources[this.uniqueSourceIndexByFilename[e.filename]];if(e.content.original!==t.content)throw new Error("Illegal source: same filename ("+e.filename+"), different contents")}else this.uniqueSourceIndexByFilename[e.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:e.filename,content:e.content.original});return this.sources.push(e),this},H.prototype.append=function(e,t){return this.addSource({content:new q(e),separator:t&&t.separator||""}),this},H.prototype.clone=function(){var e=new H({intro:this.intro,separator:this.separator});return this.sources.forEach(function(t){e.addSource({filename:t.filename,content:t.content.clone(),separator:t.separator})}),e},H.prototype.generateDecodedMap=function(e){var t=this;void 0===e&&(e={});var n=[];this.sources.forEach(function(e){Object.keys(e.content.storedNames).forEach(function(e){~n.indexOf(e)||n.push(e)})});var r=new W(e.hires);return this.intro&&r.advance(this.intro),this.sources.forEach(function(e,i){i>0&&r.advance(t.separator);var s=e.filename?t.uniqueSourceIndexByFilename[e.filename]:-1,o=e.content,a=j(o.original);o.intro&&r.advance(o.intro),o.firstChunk.eachNext(function(t){var i=a(t.start);t.intro.length&&r.advance(t.intro),e.filename?t.edited?r.addEdit(s,t.content,i,t.storeName?n.indexOf(t.original):-1):r.addUneditedChunk(s,t,o.original,i,o.sourcemapLocations):r.advance(t.content),t.outro.length&&r.advance(t.outro)}),o.outro&&r.advance(o.outro)}),{file:e.file?e.file.split(/[\/\\]/).pop():null,sources:this.uniqueSources.map(function(t){return e.file?V(e.file,t.filename):t.filename}),sourcesContent:this.uniqueSources.map(function(t){return e.includeContent?t.content:null}),names:n,mappings:r.raw}},H.prototype.generateMap=function(e){return new T(this.generateDecodedMap(e))},H.prototype.getIndentString=function(){var e={};return this.sources.forEach(function(t){var n=t.content.indentStr;null!==n&&(e[n]||(e[n]=0),e[n]+=1)}),Object.keys(e).sort(function(t,n){return e[t]-e[n]})[0]||"\t"},H.prototype.indent=function(e){var t=this;if(arguments.length||(e=this.getIndentString()),""===e)return this;var n=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach(function(r,i){var s=void 0!==r.separator?r.separator:t.separator,o=n||i>0&&/\r?\n$/.test(s);r.content.indent(e,{exclude:r.indentExclusionRanges,indentStart:o}),n="\n"===r.content.lastChar()}),this.intro&&(this.intro=e+this.intro.replace(/^[^\n]/gm,function(t,n){return n>0?e+t:t})),this},H.prototype.prepend=function(e){return this.intro=e+this.intro,this},H.prototype.toString=function(){var e=this,t=this.sources.map(function(t,n){var r=void 0!==t.separator?t.separator:e.separator;return(n>0?r:"")+t.content.toString()}).join("");return this.intro+t},H.prototype.isEmpty=function(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some(function(e){return!e.content.isEmpty()})},H.prototype.length=function(){return this.sources.reduce(function(e,t){return e+t.content.length()},this.intro.length)},H.prototype.trimLines=function(){return this.trim("[\\r\\n]")},H.prototype.trim=function(e){return this.trimStart(e).trimEnd(e)},H.prototype.trimStart=function(e){var t=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(t,""),!this.intro){var n,r=0;do{if(!(n=this.sources[r++]))break}while(!n.content.trimStartAborted(e))}return this},H.prototype.trimEnd=function(e){var t,n=new RegExp((e||"\\s")+"+$"),r=this.sources.length-1;do{if(!(t=this.sources[r--])){this.intro=this.intro.replace(n,"");break}}while(!t.content.trimEndAborted(e));return this};const Y=Object.create(null),X="BlockStatement",Q="CallExpression",J="ExportAllDeclaration",Z="ExpressionStatement",ee="FunctionExpression",te="Identifier",ne="ImportDefaultSpecifier",re="ImportNamespaceSpecifier",ie="Program",se="Property",oe="ReturnStatement",ae="VariableDeclaration";function he(e,t,n,r){if(t.remove(n,r),e.annotations)for(const r of e.annotations){if(!(r.start<n))return;t.remove(r.start,r.end)}}function ue(e,t){if(e.annotations||e.parent.type!==Z||(e=e.parent),e.annotations)for(const n of e.annotations)t.remove(n.start,n.end)}const ce={isNoStatement:!0};function le(e,t,n=0){let r,i;for(r=e.indexOf(t,n);;){if(-1===(n=e.indexOf("/",n))||n>r)return r;if(i=e.charCodeAt(++n),++n,47===i){if(0===(n=e.indexOf("\n",n)+1))return-1;n>r&&(r=e.indexOf(t,n))}else 42===i&&(n=e.indexOf("*/",n)+2)>r&&(r=e.indexOf(t,n))}}function pe(e,t=0){let n,r;for(n=e.indexOf("\n",t);;){if(-1===(t=e.indexOf("/",t))||t>n)return n;if(47===(r=e.charCodeAt(++t)))return n;++t,42===r&&(t=e.indexOf("*/",t)+2)>n&&(n=e.indexOf("\n",t))}}function de(e,t,n,r,i){if(0===e.length)return;let s,o,a,h,u=e[0],c=!u.included||u.needsBoundaries;c&&(h=n+pe(t.original.slice(n,u.start))+1);for(let n=1;n<=e.length;n++)s=u,o=h,a=c,c=void 0!==(u=e[n])&&(!u.included||u.needsBoundaries),a||c?(h=s.end+pe(t.original.slice(s.end,void 0===u?r:u.start))+1,s.included?a?s.render(t,i,{end:h,start:o}):s.render(t,i):he(s,t,o,h)):s.render(t,i)}function fe(e,t,n,r){const i=[];let s,o,a,h,u,c=n-1;for(let r=0;r<e.length;r++){for(o=e[r],void 0!==s&&(c=s.end+le(t.original.slice(s.end,o.start),",")),a=h=c+2+pe(t.original.slice(c+1,o.start));32===(u=t.original.charCodeAt(a))||9===u||10===u||13===u;)a++;void 0!==s&&i.push({contentEnd:h,end:a,node:s,separator:c,start:n}),s=o,n=a}return i.push({contentEnd:r,end:r,node:s,separator:null,start:n}),i}const me="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$",ge=64;function ye(e){let t="";do{const n=e%ge;e=Math.floor(e/ge),t=me[n]+t}while(0!==e);return t}const ve=Object.assign(Object.create(null),{await:!0,break:!0,case:!0,catch:!0,class:!0,const:!0,continue:!0,debugger:!0,default:!0,delete:!0,do:!0,else:!0,enum:!0,eval:!0,export:!0,extends:!0,false:!0,finally:!0,for:!0,function:!0,if:!0,implements:!0,import:!0,in:!0,instanceof:!0,interface:!0,let:!0,new:!0,null:!0,package:!0,private:!0,protected:!0,public:!0,return:!0,static:!0,super:!0,switch:!0,this:!0,throw:!0,true:!0,try:!0,typeof:!0,undefined:!0,var:!0,void:!0,while:!0,with:!0,yield:!0});function xe(e,t){let n=e,r=1;for(;t.has(n)||ve[n];)n=`${e}$${ye(r++)}`;return t.add(n),n}class Ee{static create(e){return new this(e)}constructor({withNew:e=!1,args:t=[],callIdentifier:n}={}){this.withNew=e,this.args=t,this.callIdentifier=n}equals(e){return e&&this.callIdentifier===e.callIdentifier}}const _e={UNKNOWN_KEY:!0},be=[],Ae=[_e];function Se(e,t=null){return Object.create(t,e)}const we={UNKNOWN_VALUE:!0},Ie={deoptimizePath:()=>{},getLiteralValueAtPath:()=>we,getReturnExpressionWhenCalledAtPath:()=>Ie,hasEffectsWhenAccessedAtPath:e=>e.length>0,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:()=>!0,include:()=>{},includeCallArguments(e){for(const t of e)t.include(!1)},included:!0,toString:()=>"[[UNKNOWN]]"},Pe={deoptimizePath:()=>{},getLiteralValueAtPath:()=>void 0,getReturnExpressionWhenCalledAtPath:()=>Ie,hasEffectsWhenAccessedAtPath:e=>e.length>0,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:()=>!0,include:()=>{},includeCallArguments(){},included:!0,toString:()=>"undefined"},Ce={value:{returns:null,returnsPrimitive:Ie,callsArgs:null,mutatesSelf:!0}},ke={value:{returns:null,returnsPrimitive:Ie,callsArgs:[0],mutatesSelf:!1}};class $e{constructor(){this.included=!1}deoptimizePath(){}getLiteralValueAtPath(){return we}getReturnExpressionWhenCalledAtPath(e){return 1===e.length?Qe(Ge,e[0]):Ie}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,n){return 1!==e.length||Xe(Ge,e[0],this.included,t,n)}include(){this.included=!0}includeCallArguments(e){for(const t of e)t.include(!1)}toString(){return"[[UNKNOWN ARRAY]]"}}const Ne={value:{callsArgs:null,mutatesSelf:!1,returns:$e,returnsPrimitive:null}},Re={value:{callsArgs:null,mutatesSelf:!0,returns:$e,returnsPrimitive:null}},Oe={value:{callsArgs:[0],mutatesSelf:!1,returns:$e,returnsPrimitive:null}},Me={value:{callsArgs:[0],mutatesSelf:!0,returns:$e,returnsPrimitive:null}},De={deoptimizePath:()=>{},getLiteralValueAtPath:()=>we,getReturnExpressionWhenCalledAtPath:e=>1===e.length?Qe(He,e[0]):Ie,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:e=>{if(1===e.length){const t=e[0];return"string"!=typeof t||!He[t]}return!0},include:()=>{},includeCallArguments(e){for(const t of e)t.include(!1)},included:!0,toString:()=>"[[UNKNOWN BOOLEAN]]"},Te={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:De}},Le={value:{callsArgs:[0],mutatesSelf:!1,returns:null,returnsPrimitive:De}},Ve={deoptimizePath:()=>{},getLiteralValueAtPath:()=>we,getReturnExpressionWhenCalledAtPath:e=>1===e.length?Qe(Ke,e[0]):Ie,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:e=>{if(1===e.length){const t=e[0];return"string"!=typeof t||!Ke[t]}return!0},include:()=>{},includeCallArguments(e){for(const t of e)t.include(!1)},included:!0,toString:()=>"[[UNKNOWN NUMBER]]"},Be={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:Ve}},ze={value:{callsArgs:null,mutatesSelf:!0,returns:null,returnsPrimitive:Ve}},je={value:{callsArgs:[0],mutatesSelf:!1,returns:null,returnsPrimitive:Ve}},We={deoptimizePath:()=>{},getLiteralValueAtPath:()=>we,getReturnExpressionWhenCalledAtPath:e=>1===e.length?Qe(Ye,e[0]):Ie,hasEffectsWhenAccessedAtPath:e=>e.length>1,hasEffectsWhenAssignedAtPath:e=>e.length>0,hasEffectsWhenCalledAtPath:(e,t,n)=>1!==e.length||Xe(Ye,e[0],!0,t,n),include:()=>{},includeCallArguments(e){for(const t of e)t.include(!1)},included:!0,toString:()=>"[[UNKNOWN STRING]]"},Ue={value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:We}};class Fe{constructor(){this.included=!1}deoptimizePath(){}getLiteralValueAtPath(){return we}getReturnExpressionWhenCalledAtPath(e){return 1===e.length?Qe(qe,e[0]):Ie}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,n){return 1!==e.length||Xe(qe,e[0],this.included,t,n)}include(){this.included=!0}includeCallArguments(e){for(const t of e)t.include(!1)}toString(){return"[[UNKNOWN OBJECT]]"}}const qe=Se({hasOwnProperty:Te,isPrototypeOf:Te,propertyIsEnumerable:Te,toLocaleString:Ue,toString:Ue,valueOf:{value:{callsArgs:null,mutatesSelf:!1,returns:null,returnsPrimitive:Ie}}}),Ge=Se({concat:Ne,copyWithin:Re,every:Le,fill:Re,filter:Oe,find:ke,findIndex:je,forEach:ke,includes:Te,indexOf:Be,join:Ue,lastIndexOf:Be,map:Oe,pop:Ce,push:ze,reduce:ke,reduceRight:ke,reverse:Re,shift:Ce,slice:Ne,some:Le,sort:Me,splice:Re,unshift:ze},qe),He=Se({valueOf:Te},qe),Ke=Se({toExponential:Ue,toFixed:Ue,toLocaleString:Ue,toPrecision:Ue,valueOf:Be},qe),Ye=Se({charAt:Ue,charCodeAt:Be,codePointAt:Be,concat:Ue,endsWith:Te,includes:Te,indexOf:Be,lastIndexOf:Be,localeCompare:Be,match:Te,normalize:Ue,padEnd:Ue,padStart:Ue,repeat:Ue,replace:{value:{callsArgs:[1],mutatesSelf:!1,returns:null,returnsPrimitive:We}},search:Be,slice:Ue,split:Ne,startsWith:Te,substr:Ue,substring:Ue,toLocaleLowerCase:Ue,toLocaleUpperCase:Ue,toLowerCase:Ue,toUpperCase:Ue,trim:Ue,valueOf:Ue},qe);function Xe(e,t,n,r,i){if("string"!=typeof t||!e[t])return!0;if(e[t].mutatesSelf&&n)return!0;if(!e[t].callsArgs)return!1;for(const n of e[t].callsArgs)if(r.args[n]&&r.args[n].hasEffectsWhenCalledAtPath(be,Ee.create({args:[],callIdentifier:{},withNew:!1}),i.getHasEffectsWhenCalledOptions()))return!0;return!1}function Qe(e,t){return"string"==typeof t&&e[t]?null!==e[t].returnsPrimitive?e[t].returnsPrimitive:new e[t].returns:Ie}class Je{constructor(e){this.alwaysRendered=!1,this.exportName=null,this.included=!1,this.isId=!1,this.isReassigned=!1,this.renderBaseName=null,this.renderName=null,this.safeExportName=null,this.name=e}addReference(e){}deoptimizePath(e){}getBaseVariableName(){return this.renderBaseName||this.renderName||this.name}getLiteralValueAtPath(e,t,n){return we}getName(){const e=this.renderName||this.name;return this.renderBaseName?`${this.renderBaseName}.${e}`:e}getReturnExpressionWhenCalledAtPath(e,t,n){return Ie}hasEffectsWhenAccessedAtPath(e,t){return e.length>0}hasEffectsWhenAssignedAtPath(e,t){return!0}hasEffectsWhenCalledAtPath(e,t,n){return!0}include(){this.included=!0}includeCallArguments(e){for(const t of e)t.include(!1)}markCalledFromTryStatement(){}setRenderNames(e,t){this.renderBaseName=e,this.renderName=t}setSafeName(e){this.renderName=e}toString(){return this.name}}class Ze extends Je{constructor(e,t){super(t),this.module=e,this.isNamespace="*"===t,this.referenced=!1}addReference(e){this.referenced=!0,"default"!==this.name&&"*"!==this.name||this.module.suggestName(e.name)}include(){this.included||(this.included=!0,this.module.used=!0)}}const et="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public".split(" "),tt="Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "),nt=Object.create(null);et.concat(tt).forEach(e=>nt[e]=!0);const rt=/[^$_a-zA-Z0-9]/g,it=e=>/\d/.test(e[0]);function st(e){return e=e.replace(/-(\w)/g,(e,t)=>t.toUpperCase()).replace(rt,"_"),(it(e)||nt[e])&&(e=`_${e}`),e}const ot=/^(?:\/|(?:[A-Za-z]:)?[\\|\/])/,at=/^\.?\.\//;function ht(e){return ot.test(e)}function ut(e){return at.test(e)}function ct(e){return e.replace(/\\/g,"/")}function lt(e){return e.split(/(\/|\\)/).pop()}function pt(e){const t=/(\/|\\)[^\/\\]*$/.exec(e);if(!t)return".";const n=e.slice(0,-t[0].length);return n||"/"}function dt(e){const t=/\.[^.]+$/.exec(lt(e));return t?t[0]:""}function ft(e,t){const n=e.split(/[\/\\]/).filter(Boolean),r=t.split(/[\/\\]/).filter(Boolean);for("."===n[0]&&n.shift(),"."===r[0]&&r.shift();n[0]&&r[0]&&n[0]===r[0];)n.shift(),r.shift();for(;".."===r[0]&&n.length>0;)r.shift(),n.pop();for(;n.pop();)r.unshift("..");return r.join("/")}function mt(...e){let t=e.shift().split(/[\/\\]/);return e.forEach(e=>{if(ht(e))t=e.split(/[\/\\]/);else{const n=e.split(/[\/\\]/);for(;"."===n[0]||".."===n[0];){".."===n.shift()&&t.pop()}t.push.apply(t,n)}}),t.join("/")}class gt{constructor(e,t,n){this.exportsNames=!1,this.exportsNamespace=!1,this.mostCommonSuggestion=0,this.reexported=!1,this.renderPath=void 0,this.renormalizeRenderPath=!1,this.used=!1,this.graph=e,this.id=t,this.execIndex=1/0,this.moduleSideEffects=n;const r=t.split(/[\\\/]/);this.variableName=st(r.pop()),this.nameSuggestions=Object.create(null),this.declarations=Object.create(null),this.exportedVariables=new Map}getVariableForExportName(e,t){"*"===e?this.exportsNamespace=!0:"default"!==e&&(this.exportsNames=!0);let n=this.declarations[e];return n||(this.declarations[e]=n=new Ze(this,e),this.exportedVariables.set(n,e),n)}setRenderPath(e,t){return this.renderPath="",e.paths&&(this.renderPath="function"==typeof e.paths?e.paths(this.id):e.paths[this.id]),this.renderPath||(ht(this.id)?(this.renderPath=ct(ft(t,this.id)),this.renormalizeRenderPath=!0):this.renderPath=this.id),this.renderPath}suggestName(e){this.nameSuggestions[e]||(this.nameSuggestions[e]=0),this.nameSuggestions[e]+=1,this.nameSuggestions[e]>this.mostCommonSuggestion&&(this.mostCommonSuggestion=this.nameSuggestions[e],this.variableName=e)}warnUnusedImports(){const e=Object.keys(this.declarations).filter(e=>{if("*"===e)return!1;const t=this.declarations[e];return!t.included&&!this.reexported&&!t.referenced});if(0===e.length)return;const t=1===e.length?`'${e[0]}' is`:`${e.slice(0,-1).map(e=>`'${e}'`).join(", ")} and '${e.slice(-1)}' are`;this.graph.warn({code:"UNUSED_EXTERNAL_IMPORT",message:`${t} imported from external module '${this.id}' but never used`,names:e,source:this.id})}}function yt(e){e.isExecuted=!0;const t=[e],n=new Set;for(const e of t)for(const r of e.dependencies)r instanceof gt||r.isExecuted||!r.moduleSideEffects||n.has(r.id)||(r.isExecuted=!0,n.add(r.id),t.push(r))}const vt=7;class xt extends Je{constructor(e,t,n,r){super(e),this.additionalInitializers=null,this.calledFromTryStatement=!1,this.expressionsToBeDeoptimized=[],this.declarations=t?[t]:[],this.init=n,this.deoptimizationTracker=r.deoptimizationTracker,this.module=r.module}addDeclaration(e,t){this.declarations.push(e),null===this.additionalInitializers&&(this.additionalInitializers=null===this.init?[]:[this.init],this.init=Ie,this.isReassigned=!0),null!==t&&this.additionalInitializers.push(t)}consolidateInitializers(){if(null!==this.additionalInitializers){for(const e of this.additionalInitializers)e.deoptimizePath(Ae);this.additionalInitializers=null}}deoptimizePath(e){if(!(e.length>vt||this.isReassigned||this.deoptimizationTracker.track(this,e)))if(0===e.length){if(!this.isReassigned){this.isReassigned=!0;for(const e of this.expressionsToBeDeoptimized)e.deoptimizeCache();this.init&&this.init.deoptimizePath(Ae)}}else this.init&&this.init.deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.isReassigned||!this.init||e.length>vt||t.isTracked(this.init,e)?we:(this.expressionsToBeDeoptimized.push(n),this.init.getLiteralValueAtPath(e,t.track(this.init,e),n))}getReturnExpressionWhenCalledAtPath(e,t,n){return this.isReassigned||!this.init||e.length>vt||t.isTracked(this.init,e)?Ie:(this.expressionsToBeDeoptimized.push(n),this.init.getReturnExpressionWhenCalledAtPath(e,t.track(this.init,e),n))}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(this.isReassigned||e.length>vt||this.init&&!t.hasNodeBeenAccessedAtPath(e,this.init)&&this.init.hasEffectsWhenAccessedAtPath(e,t.addAccessedNodeAtPath(e,this.init)))}hasEffectsWhenAssignedAtPath(e,t){return!!(this.included||e.length>vt)||0!==e.length&&(this.isReassigned||this.init&&!t.hasNodeBeenAssignedAtPath(e,this.init)&&this.init.hasEffectsWhenAssignedAtPath(e,t.addAssignedNodeAtPath(e,this.init)))}hasEffectsWhenCalledAtPath(e,t,n){return e.length>vt||(this.isReassigned||this.init&&!n.hasNodeBeenCalledAtPathWithOptions(e,this.init,t)&&this.init.hasEffectsWhenCalledAtPath(e,t,n.addCalledNodeAtPathWithOptions(e,this.init,t)))}include(){if(!this.included){this.included=!0,this.module.isExecuted||yt(this.module);for(const e of this.declarations){e.included||e.include(!1);let t=e.parent;for(;!t.included&&(t.included=!0,t.type!==ie);)t=t.parent}}}includeCallArguments(e){if(this.isReassigned)for(const t of e)t.include(!1);else this.init&&this.init.includeCallArguments(e)}markCalledFromTryStatement(){this.calledFromTryStatement=!0}}class Et{constructor(){this.children=[],this.variables=new Map}addDeclaration(e,t,n=null,r){const i=e.name;let s=this.variables.get(i);return s?s.addDeclaration(e,n):(s=new xt(e.name,e,n||Pe,t),this.variables.set(i,s)),s}contains(e){return this.variables.has(e)}findVariable(e){throw new Error("Internal Error: findVariable needs to be implemented by a subclass")}}class _t extends Et{constructor(e){super(),this.accessedOutsideVariables=new Map,this.parent=e,e.children.push(this)}addAccessedGlobalsByFormat(e){let t=this.accessedGlobalVariablesByFormat;t||(t=this.accessedGlobalVariablesByFormat=new Map);for(const n of Object.keys(e)){let r=t.get(n);r||(r=new Set,t.set(n,r));for(const t of e[n])r.add(t)}this.parent instanceof _t&&this.parent.addAccessedGlobalsByFormat(e)}addNamespaceMemberAccess(e,t){this.accessedOutsideVariables.set(e,t),this.parent instanceof _t&&this.parent.addNamespaceMemberAccess(e,t)}addReturnExpression(e){this.parent instanceof _t&&this.parent.addReturnExpression(e)}contains(e){return this.variables.has(e)||this.parent.contains(e)}deconflict(e){const t=new Set;for(const n of this.accessedOutsideVariables.values())n.included&&(t.add(n.getBaseVariableName()),n.exportName&&"system"===e&&t.add("exports"));const n=this.accessedGlobalVariablesByFormat&&this.accessedGlobalVariablesByFormat.get(e);if(n)for(const e of n)t.add(e);for(const[e,n]of this.variables)(n.included||n.alwaysRendered)&&n.setSafeName(xe(e,t));for(const t of this.children)t.deconflict(e)}findLexicalBoundary(){return this.parent instanceof _t?this.parent.findLexicalBoundary():this}findVariable(e){const t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;const n=this.parent.findVariable(e);return this.accessedOutsideVariables.set(e,n),n}}function bt(e,t,n){if("number"==typeof n)throw new Error("locate takes a { startIndex, offsetLine, offsetColumn } object as the third argument");return function(e,t){void 0===t&&(t={});var n=t.offsetLine||0,r=t.offsetColumn||0,i=e.split("\n"),s=0,o=i.map(function(e,t){var n=s+e.length+1,r={start:s,end:n,line:t};return s=n,r}),a=0;function h(e,t){return e.start<=t&&t<e.end}function u(e,t){return{line:n+e.line,column:r+t-e.start,character:t}}return function(t,n){"string"==typeof t&&(t=e.indexOf(t,n||0));for(var r=o[a],i=t>=r.end?1:-1;r;){if(h(r,t))return u(r,t);r=o[a+=i]}}}(e,n)(t,n&&n.startIndex)}var At=5,St=1<<At,wt=St-1,It={};function Pt(e){e&&(e.value=!0)}function Ct(){}function kt(e){return void 0===e.size&&(e.size=e.__iterate(Nt)),e.size}function $t(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?kt(e)+t:t}function Nt(){return!0}function Rt(e,t,n){return(0===e&&!Tt(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function Ot(e,t){return Dt(e,t,0)}function Mt(e,t){return Dt(e,t,t)}function Dt(e,t,n){return void 0===e?n:Tt(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function Tt(e){return e<0||0===e&&1/e==-1/0}var Lt="@@__IMMUTABLE_ITERABLE__@@";function Vt(e){return Boolean(e&&e[Lt])}var Bt="@@__IMMUTABLE_KEYED__@@";function zt(e){return Boolean(e&&e[Bt])}var jt="@@__IMMUTABLE_INDEXED__@@";function Wt(e){return Boolean(e&&e[jt])}function Ut(e){return zt(e)||Wt(e)}var Ft=function(e){return Vt(e)?e:yn(e)},qt=function(e){function t(e){return zt(e)?e:vn(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Ft),Gt=function(e){function t(e){return Wt(e)?e:xn(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Ft),Ht=function(e){function t(e){return Vt(e)&&!Ut(e)?e:En(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Ft);Ft.Keyed=qt,Ft.Indexed=Gt,Ft.Set=Ht;var Kt="@@__IMMUTABLE_SEQ__@@";function Yt(e){return Boolean(e&&e[Kt])}var Xt="@@__IMMUTABLE_RECORD__@@";function Qt(e){return Boolean(e&&e[Xt])}function Jt(e){return Vt(e)||Qt(e)}var Zt="@@__IMMUTABLE_ORDERED__@@";function en(e){return Boolean(e&&e[Zt])}var tn=0,nn=1,rn=2,sn="function"==typeof Symbol&&Symbol.iterator,on="@@iterator",an=sn||on,hn=function(e){this.next=e};function un(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function cn(){return{value:void 0,done:!0}}function ln(e){return!!fn(e)}function pn(e){return e&&"function"==typeof e.next}function dn(e){var t=fn(e);return t&&t.call(e)}function fn(e){var t=e&&(sn&&e[sn]||e[on]);if("function"==typeof t)return t}hn.prototype.toString=function(){return"[Iterator]"},hn.KEYS=tn,hn.VALUES=nn,hn.ENTRIES=rn,hn.prototype.inspect=hn.prototype.toSource=function(){return this.toString()},hn.prototype[an]=function(){return this};var mn=Object.prototype.hasOwnProperty;function gn(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var yn=function(e){function t(e){return null==e?wn():Jt(e)?e.toSeq():function(e){var t=Cn(e);if(t)return t;if("object"==typeof e)return new bn(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var s=n[t?r-++i:i++];if(!1===e(s[1],s[0],this))break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new hn(function(){if(i===r)return{value:void 0,done:!0};var s=n[t?r-++i:i++];return un(e,s[0],s[1])})}return this.__iteratorUncached(e,t)},t}(Ft),vn=function(e){function t(e){return null==e?wn().toKeyedSeq():Vt(e)?zt(e)?e.toSeq():e.fromEntrySeq():Qt(e)?e.toSeq():In(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(yn),xn=function(e){function t(e){return null==e?wn():Vt(e)?zt(e)?e.entrySeq():e.toIndexedSeq():Qt(e)?e.toSeq().entrySeq():Pn(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(yn),En=function(e){function t(e){return(Vt(e)&&!Ut(e)?e:xn(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(yn);yn.isSeq=Yt,yn.Keyed=vn,yn.Set=En,yn.Indexed=xn,yn.prototype[Kt]=!0;var _n=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[$t(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var s=t?r-++i:i++;if(!1===e(n[s],s,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new hn(function(){if(i===r)return{value:void 0,done:!0};var s=t?r-++i:i++;return un(e,s,n[s])})},t}(xn),bn=function(e){function t(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return mn.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,s=0;s!==i;){var o=r[t?i-++s:s++];if(!1===e(n[o],o,this))break}return s},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,s=0;return new hn(function(){if(s===i)return{value:void 0,done:!0};var o=r[t?i-++s:s++];return un(e,o,n[o])})},t}(vn);bn.prototype[Zt]=!0;var An,Sn=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=dn(this._collection),r=0;if(pn(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=dn(this._collection);if(!pn(n))return new hn(cn);var r=0;return new hn(function(){var t=n.next();return t.done?t:un(e,r++,t.value)})},t}(xn);function wn(){return An||(An=new _n([]))}function In(e){var t=Array.isArray(e)?new _n(e):ln(e)?new Sn(e):void 0;if(t)return t.fromEntrySeq();if("object"==typeof e)return new bn(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function Pn(e){var t=Cn(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function Cn(e){return gn(e)?new _n(e):ln(e)?new Sn(e):void 0}var kn="@@__IMMUTABLE_MAP__@@";function $n(e){return Boolean(e&&e[kn])}function Nn(e){return $n(e)&&en(e)}function Rn(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function On(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(Rn(e)&&Rn(t)&&e.equals(t))}var Mn="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Dn(e){return e>>>1&1073741824|3221225471&e}var Tn=Object.prototype.valueOf;function Ln(e){switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return Dn(t)}(e);case"string":return e.length>qn?function(e){var t=Kn[e];void 0===t&&(t=Vn(e),Hn===Gn&&(Hn=0,Kn={}),Hn++,Kn[e]=t);return t}(e):Vn(e);case"object":case"function":return null===e?1108378658:"function"==typeof e.hashCode?Dn(e.hashCode(e)):(e.valueOf!==Tn&&"function"==typeof e.valueOf&&(e=e.valueOf(e)),function(e){var t;if(Wn&&void 0!==(t=jn.get(e)))return t;if(void 0!==(t=e[Fn]))return t;if(!zn){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Fn]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}t=++Un,1073741824&Un&&(Un=0);if(Wn)jn.set(e,t);else{if(void 0!==Bn&&!1===Bn(e))throw new Error("Non-extensible objects are not allowed as keys.");if(zn)Object.defineProperty(e,Fn,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Fn]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Fn]=t}}return t}(e));case"undefined":return 1108378659;default:if("function"==typeof e.toString)return Vn(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function Vn(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Dn(t)}var Bn=Object.isExtensible,zn=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var jn,Wn="function"==typeof WeakMap;Wn&&(jn=new WeakMap);var Un=0,Fn="__immutablehash__";"function"==typeof Symbol&&(Fn=Symbol(Fn));var qn=16,Gn=255,Hn=0,Kn={},Yn=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=tr(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=er(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t,r){return e(t,r,n)},t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(vn);Yn.prototype[Zt]=!0;var Xn=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&kt(this),this._iter.__iterate(function(i){return e(i,t?n.size-++r:r++,n)},t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(nn,t),i=0;return t&&kt(this),new hn(function(){var s=r.next();return s.done?s:un(e,t?n.size-++i:i++,s.value,s)})},t}(xn),Qn=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(nn,t);return new hn(function(){var t=n.next();return t.done?t:un(e,t.value,t.value,t)})},t}(En),Jn=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){pr(t);var r=Vt(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(nn,t);return new hn(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){pr(r);var i=Vt(r);return un(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},t}(vn);function Zn(e){var t=fr(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=mr,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===rn){var r=e.__iterator(t,n);return new hn(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===nn?tn:nn,n)},t}function er(e,t,n){var r=fr(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var s=e.get(r,It);return s===It?i:t.call(n,s,r,e)},r.__iterateUncached=function(r,i){var s=this;return e.__iterate(function(e,i,o){return!1!==r(t.call(n,e,i,o),i,s)},i)},r.__iteratorUncached=function(r,i){var s=e.__iterator(rn,i);return new hn(function(){var i=s.next();if(i.done)return i;var o=i.value,a=o[0];return un(r,a,t.call(n,o[1],a,e),i)})},r}function tr(e,t){var n=this,r=fr(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Zn(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=mr,r.__iterate=function(n,r){var i=this,s=0;return r&&kt(e),e.__iterate(function(e,o){return n(e,t?o:r?i.size-++s:s++,i)},!r)},r.__iterator=function(r,i){var s=0;i&&kt(e);var o=e.__iterator(rn,!i);return new hn(function(){var e=o.next();if(e.done)return e;var a=e.value;return un(r,t?a[0]:i?n.size-++s:s++,a[1],e)})},r}function nr(e,t,n,r){var i=fr(e);return r&&(i.has=function(r){var i=e.get(r,It);return i!==It&&!!t.call(n,i,r,e)},i.get=function(r,i){var s=e.get(r,It);return s!==It&&t.call(n,s,r,e)?s:i}),i.__iterateUncached=function(i,s){var o=this,a=0;return e.__iterate(function(e,s,h){if(t.call(n,e,s,h))return a++,i(e,r?s:a-1,o)},s),a},i.__iteratorUncached=function(i,s){var o=e.__iterator(rn,s),a=0;return new hn(function(){for(;;){var s=o.next();if(s.done)return s;var h=s.value,u=h[0],c=h[1];if(t.call(n,c,u,e))return un(i,r?u:a++,c,s)}})},i}function rr(e,t,n,r){var i=e.size;if(Rt(t,n,i))return e;var s=Ot(t,i),o=Mt(n,i);if(s!=s||o!=o)return rr(e.toSeq().cacheResult(),t,n,r);var a,h=o-s;h==h&&(a=h<0?0:h);var u=fr(e);return u.size=0===a?a:e.size&&a||void 0,!r&&Yt(e)&&a>=0&&(u.get=function(t,n){return(t=$t(this,t))>=0&&t<a?e.get(t+s,n):n}),u.__iterateUncached=function(t,n){var i=this;if(0===a)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,h=!0,u=0;return e.__iterate(function(e,n){if(!h||!(h=o++<s))return u++,!1!==t(e,r?n:u-1,i)&&u!==a}),u},u.__iteratorUncached=function(t,n){if(0!==a&&n)return this.cacheResult().__iterator(t,n);if(0===a)return new hn(cn);var i=e.__iterator(t,n),o=0,h=0;return new hn(function(){for(;o++<s;)i.next();if(++h>a)return{value:void 0,done:!0};var e=i.next();return r||t===nn||e.done?e:un(t,h-1,t===tn?void 0:e.value[1],e)})},u}function ir(e,t,n,r){var i=fr(e);return i.__iterateUncached=function(i,s){var o=this;if(s)return this.cacheResult().__iterate(i,s);var a=!0,h=0;return e.__iterate(function(e,s,u){if(!a||!(a=t.call(n,e,s,u)))return h++,i(e,r?s:h-1,o)}),h},i.__iteratorUncached=function(i,s){var o=this;if(s)return this.cacheResult().__iterator(i,s);var a=e.__iterator(rn,s),h=!0,u=0;return new hn(function(){var e,s,c;do{if((e=a.next()).done)return r||i===nn?e:un(i,u++,i===tn?void 0:e.value[1],e);var l=e.value;s=l[0],c=l[1],h&&(h=t.call(n,c,s,o))}while(h);return i===rn?e:un(i,s,c,e)})},i}function sr(e,t){var n=zt(e),r=[e].concat(t).map(function(e){return Vt(e)?n&&(e=qt(e)):e=n?In(e):Pn(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===r.length)return e;if(1===r.length){var i=r[0];if(i===e||n&&zt(i)||Wt(e)&&Wt(i))return i}var s=new _n(r);return n?s=s.toKeyedSeq():Wt(e)||(s=s.toSetSeq()),(s=s.flatten(!0)).size=r.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),s}function or(e,t,n){var r=fr(e);return r.__iterateUncached=function(i,s){if(s)return this.cacheResult().__iterate(i,s);var o=0,a=!1;return function e(h,u){h.__iterate(function(s,h){return(!t||u<t)&&Vt(s)?e(s,u+1):(o++,!1===i(s,n?h:o-1,r)&&(a=!0)),!a},s)}(e,0),o},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var s=e.__iterator(r,i),o=[],a=0;return new hn(function(){for(;s;){var e=s.next();if(!1===e.done){var h=e.value;if(r===rn&&(h=h[1]),t&&!(o.length<t)||!Vt(h))return n?e:un(r,a++,h,e);o.push(s),s=h.__iterator(r,i)}else s=o.pop()}return{value:void 0,done:!0}})},r}function ar(e,t,n){t||(t=gr);var r=zt(e),i=0,s=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).valueSeq().toArray();return s.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){s[t].length=2}:function(e,t){s[t]=e[1]}),r?vn(s):Wt(e)?xn(s):En(s)}function hr(e,t,n){if(t||(t=gr),n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return ur(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return ur(t,e,n)?n:e})}function ur(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function cr(e,t,n,r){var i=fr(e),s=new _n(n).map(function(e){return e.size});return i.size=r?s.max():s.min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(nn,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var s=n.map(function(e){return e=Ft(e),dn(i?e.reverse():e)}),o=0,a=!1;return new hn(function(){var n;return a||(n=s.map(function(e){return e.next()}),a=r?n.every(function(e){return e.done}):n.some(function(e){return e.done})),a?{value:void 0,done:!0}:un(e,o++,t.apply(null,n.map(function(e){return e.value})))})},i}function lr(e,t){return e===t?e:Yt(e)?t:e.constructor(t)}function pr(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function dr(e){return zt(e)?qt:Wt(e)?Gt:Ht}function fr(e){return Object.create((zt(e)?vn:Wt(e)?xn:En).prototype)}function mr(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):yn.prototype.cacheResult.call(this)}function gr(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function yr(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function vr(e,t){if(!e)throw new Error(t)}function xr(e){vr(e!==1/0,"Cannot perform this action with an infinite size.")}function Er(e){if(gn(e)&&"string"!=typeof e)return e;if(en(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function _r(e){return e&&("function"!=typeof e.constructor||"Object"===e.constructor.name)}function br(e){return"object"==typeof e&&(Jt(e)||Array.isArray(e)||_r(e))}function Ar(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function Sr(e,t){return Jt(e)?e.has(t):br(e)&&mn.call(e,t)}function wr(e,t,n){return Jt(e)?e.get(t,n):Sr(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function Ir(e){if(Array.isArray(e))return yr(e);var t={};for(var n in e)mn.call(e,n)&&(t[n]=e[n]);return t}function Pr(e,t){if(!br(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Jt(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!mn.call(e,t))return e;var n=Ir(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function Cr(e,t,n){if(!br(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Jt(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(mn.call(e,t)&&n===e[t])return e;var r=Ir(e);return r[t]=n,r}function kr(e,t,n,r){r||(r=n,n=void 0);var i=function e(t,n,r,i,s,o){var a=n===It;if(i===r.length){var h=a?s:n,u=o(h);return u===h?n:u}if(!a&&!br(n))throw new TypeError("Cannot update within non-data-structure value in path ["+r.slice(0,i).map(Ar)+"]: "+n);var c=r[i];var l=a?It:wr(n,c,It);var p=e(l===It?t:Jt(l),l,r,i+1,s,o);return p===l?n:p===It?Pr(n,c):Cr(a?t?hi():{}:n,c,p)}(Jt(e),e,Er(t),0,n,r);return i===It?n:i}function $r(e,t,n){return kr(e,t,It,function(){return n})}function Nr(e,t){return $r(this,e,t)}function Rr(e,t){return kr(e,t,function(){return It})}function Or(e){return Rr(this,e)}function Mr(e,t,n,r){return kr(e,[t],n,r)}function Dr(e,t,n){return 1===arguments.length?e(this):Mr(this,e,t,n)}function Tr(e,t,n){return kr(this,e,t,n)}function Lr(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Br(this,e)}function Vr(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return Br(this,t,e)}function Br(e,t,n){for(var r=[],i=0;i<t.length;i++){var s=qt(t[i]);0!==s.size&&r.push(s)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations(function(e){for(var t=n?function(t,r){Mr(e,r,It,function(e){return e===It?t:n(e,t,r)})}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)}):e.constructor(r[0])}function zr(e,t,n){return jr(e,t,function(e){return function t(n,r,i){return br(n)&&br(r)?jr(n,[r],t):e?e(n,r,i):r}}(n))}function jr(e,t,n){if(!br(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(Jt(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,s=r?Gt:qt,o=r?function(t){i===e&&(i=Ir(i)),i.push(t)}:function(t,r){var s=mn.call(i,r),o=s&&n?n(i[r],t,r):t;s&&o===i[r]||(i===e&&(i=Ir(i)),i[r]=o)},a=0;a<t.length;a++)s(t[a]).forEach(o);return i}function Wr(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return zr(this,e)}function Ur(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return zr(this,t,e)}function Fr(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return kr(this,e,hi(),function(e){return jr(e,t)})}function qr(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return kr(this,e,hi(),function(e){return zr(e,t)})}function Gr(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Hr(){return this.__ownerID?this:this.__ensureOwner(new Ct)}function Kr(){return this.__ensureOwner()}function Yr(){return this.__altered}Xn.prototype.cacheResult=Yn.prototype.cacheResult=Qn.prototype.cacheResult=Jn.prototype.cacheResult=mr;var Xr=function(e){function t(t){return null==t?hi():$n(t)&&!en(t)?t:hi().withMutations(function(n){var r=e(t);xr(r.size),r.forEach(function(e,t){return n.set(t,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return hi().withMutations(function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return ui(this,e,t)},t.prototype.remove=function(e){return ui(this,e,It)},t.prototype.deleteAll=function(e){var t=Ft(e);return 0===t.size?this:this.withMutations(function(e){t.forEach(function(t){return e.remove(t)})})},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):hi()},t.prototype.sort=function(e){return Mi(ar(this,e))},t.prototype.sortBy=function(e,t){return Mi(ar(this,t,e))},t.prototype.map=function(e,t){return this.withMutations(function(n){n.forEach(function(r,i){n.set(i,e.call(t,r,i,n))})})},t.prototype.__iterator=function(e,t){return new ii(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?ai(this.size,this._root,e,this.__hash):0===this.size?hi():(this.__ownerID=e,this.__altered=!1,this)},t}(qt);Xr.isMap=$n;var Qr=Xr.prototype;Qr[kn]=!0,Qr.delete=Qr.remove,Qr.removeAll=Qr.deleteAll,Qr.setIn=Nr,Qr.removeIn=Qr.deleteIn=Or,Qr.update=Dr,Qr.updateIn=Tr,Qr.merge=Qr.concat=Lr,Qr.mergeWith=Vr,Qr.mergeDeep=Wr,Qr.mergeDeepWith=Ur,Qr.mergeIn=Fr,Qr.mergeDeepIn=qr,Qr.withMutations=Gr,Qr.wasAltered=Yr,Qr.asImmutable=Kr,Qr["@@transducer/init"]=Qr.asMutable=Hr,Qr["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},Qr["@@transducer/result"]=function(e){return e.asImmutable()};var Jr=function(e,t){this.ownerID=e,this.entries=t};Jr.prototype.get=function(e,t,n,r){for(var i=this.entries,s=0,o=i.length;s<o;s++)if(On(n,i[s][0]))return i[s][1];return r},Jr.prototype.update=function(e,t,n,r,i,s,o){for(var a=i===It,h=this.entries,u=0,c=h.length;u<c&&!On(r,h[u][0]);u++);var l=u<c;if(l?h[u][1]===i:a)return this;if(Pt(o),(a||!l)&&Pt(s),!a||1!==h.length){if(!l&&!a&&h.length>=mi)return function(e,t,n,r){e||(e=new Ct);for(var i=new ni(e,Ln(n),[n,r]),s=0;s<t.length;s++){var o=t[s];i=i.update(e,0,void 0,o[0],o[1])}return i}(e,h,r,i);var p=e&&e===this.ownerID,d=p?h:yr(h);return l?a?u===c-1?d.pop():d[u]=d.pop():d[u]=[r,i]:d.push([r,i]),p?(this.entries=d,this):new Jr(e,d)}};var Zr=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};Zr.prototype.get=function(e,t,n,r){void 0===t&&(t=Ln(n));var i=1<<((0===e?t:t>>>e)&wt),s=this.bitmap;return 0==(s&i)?r:this.nodes[di(s&i-1)].get(e+At,t,n,r)},Zr.prototype.update=function(e,t,n,r,i,s,o){void 0===n&&(n=Ln(r));var a=(0===t?n:n>>>t)&wt,h=1<<a,u=this.bitmap,c=0!=(u&h);if(!c&&i===It)return this;var l=di(u&h-1),p=this.nodes,d=c?p[l]:void 0,f=ci(d,e,t+At,n,r,i,s,o);if(f===d)return this;if(!c&&f&&p.length>=gi)return function(e,t,n,r,i){for(var s=0,o=new Array(St),a=0;0!==n;a++,n>>>=1)o[a]=1&n?t[s++]:void 0;return o[r]=i,new ei(e,s+1,o)}(e,p,u,a,f);if(c&&!f&&2===p.length&&li(p[1^l]))return p[1^l];if(c&&f&&1===p.length&&li(f))return f;var m=e&&e===this.ownerID,g=c?f?u:u^h:u|h,y=c?f?fi(p,l,f,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),s=0,o=0;o<r;o++)o===t&&(s=1),i[o]=e[o+s];return i}(p,l,m):function(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var s=new Array(i),o=0,a=0;a<i;a++)a===t?(s[a]=n,o=-1):s[a]=e[a+o];return s}(p,l,f,m);return m?(this.bitmap=g,this.nodes=y,this):new Zr(e,g,y)};var ei=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};ei.prototype.get=function(e,t,n,r){void 0===t&&(t=Ln(n));var i=(0===e?t:t>>>e)&wt,s=this.nodes[i];return s?s.get(e+At,t,n,r):r},ei.prototype.update=function(e,t,n,r,i,s,o){void 0===n&&(n=Ln(r));var a=(0===t?n:n>>>t)&wt,h=i===It,u=this.nodes,c=u[a];if(h&&!c)return this;var l=ci(c,e,t+At,n,r,i,s,o);if(l===c)return this;var p=this.count;if(c){if(!l&&--p<yi)return function(e,t,n,r){for(var i=0,s=0,o=new Array(n),a=0,h=1,u=t.length;a<u;a++,h<<=1){var c=t[a];void 0!==c&&a!==r&&(i|=h,o[s++]=c)}return new Zr(e,i,o)}(e,u,p,a)}else p++;var d=e&&e===this.ownerID,f=fi(u,a,l,d);return d?(this.count=p,this.nodes=f,this):new ei(e,p,f)};var ti=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};ti.prototype.get=function(e,t,n,r){for(var i=this.entries,s=0,o=i.length;s<o;s++)if(On(n,i[s][0]))return i[s][1];return r},ti.prototype.update=function(e,t,n,r,i,s,o){void 0===n&&(n=Ln(r));var a=i===It;if(n!==this.keyHash)return a?this:(Pt(o),Pt(s),pi(this,e,t,n,[r,i]));for(var h=this.entries,u=0,c=h.length;u<c&&!On(r,h[u][0]);u++);var l=u<c;if(l?h[u][1]===i:a)return this;if(Pt(o),(a||!l)&&Pt(s),a&&2===c)return new ni(e,this.keyHash,h[1^u]);var p=e&&e===this.ownerID,d=p?h:yr(h);return l?a?u===c-1?d.pop():d[u]=d.pop():d[u]=[r,i]:d.push([r,i]),p?(this.entries=d,this):new ti(e,this.keyHash,d)};var ni=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};ni.prototype.get=function(e,t,n,r){return On(n,this.entry[0])?this.entry[1]:r},ni.prototype.update=function(e,t,n,r,i,s,o){var a=i===It,h=On(r,this.entry[0]);return(h?i===this.entry[1]:a)?this:(Pt(o),a?void Pt(s):h?e&&e===this.ownerID?(this.entry[1]=i,this):new ni(e,this.keyHash,[r,i]):(Pt(s),pi(this,e,t,Ln(r),[r,i])))},Jr.prototype.iterate=ti.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Zr.prototype.iterate=ei.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var s=n[t?i-r:r];if(s&&!1===s.iterate(e,t))return!1}},ni.prototype.iterate=function(e,t){return e(this.entry)};var ri,ii=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&oi(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(0===r)return si(e,n.entry)}else if(n.entries){if(r<=(i=n.entries.length-1))return si(e,n.entries[this._reverse?i-r:r])}else if(r<=(i=n.nodes.length-1)){var s=n.nodes[this._reverse?i-r:r];if(s){if(s.entry)return si(e,s.entry);t=this._stack=oi(s,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(hn);function si(e,t){return un(e,t[0],t[1])}function oi(e,t){return{node:e,index:0,__prev:t}}function ai(e,t,n,r){var i=Object.create(Qr);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function hi(){return ri||(ri=ai(0))}function ui(e,t,n){var r,i;if(e._root){var s={value:!1},o={value:!1};if(r=ci(e._root,e.__ownerID,0,void 0,t,n,s,o),!o.value)return e;i=e.size+(s.value?n===It?-1:1:0)}else{if(n===It)return e;i=1,r=new Jr(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?ai(i,r):hi()}function ci(e,t,n,r,i,s,o,a){return e?e.update(t,n,r,i,s,o,a):s===It?e:(Pt(a),Pt(o),new ni(t,r,[i,s]))}function li(e){return e.constructor===ni||e.constructor===ti}function pi(e,t,n,r,i){if(e.keyHash===r)return new ti(t,r,[e.entry,i]);var s,o=(0===n?e.keyHash:e.keyHash>>>n)&wt,a=(0===n?r:r>>>n)&wt,h=o===a?[pi(e,t,n+At,r,i)]:(s=new ni(t,r,i),o<a?[e,s]:[s,e]);return new Zr(t,1<<o|1<<a,h)}function di(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function fi(e,t,n,r){var i=r?e:yr(e);return i[t]=n,i}var mi=St/4,gi=St/2,yi=St/4,vi="@@__IMMUTABLE_LIST__@@";function xi(e){return Boolean(e&&e[vi])}var Ei=function(e){function t(t){var n=Pi();if(null==t)return n;if(xi(t))return t;var r=e(t),i=r.size;return 0===i?n:(xr(i),i>0&&i<St?Ii(0,i,At,null,new bi(r.toArray())):n.withMutations(function(e){e.setSize(i),r.forEach(function(t,n){return e.set(n,t)})}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=$t(this,e))>=0&&e<this.size){var n=$i(this,e+=this._origin);return n&&n.array[e&wt]}return t},t.prototype.set=function(e,t){return function(e,t,n){if((t=$t(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Ni(e,t).set(0,n):Ni(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,s={value:!1};t>=Ri(e._capacity)?r=Ci(r,e.__ownerID,0,t,n,s):i=Ci(i,e.__ownerID,e._level,t,n,s);if(!s.value)return e;if(e.__ownerID)return e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return Ii(e._origin,e._capacity,e._level,i,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=At,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Pi()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Ni(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},t.prototype.pop=function(){return Ni(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){Ni(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},t.prototype.shift=function(){return Ni(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],s=e("string"!=typeof i&&ln(i)?i:[i]);0!==s.size&&n.push(s)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations(function(e){n.forEach(function(t){return t.forEach(function(t){return e.push(t)})})}):this.constructor(n[0])},t.prototype.setSize=function(e){return Ni(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,r))})},t.prototype.slice=function(e,t){var n=this.size;return Rt(e,t,n)?this:Ni(this,Ot(e,n),Mt(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=wi(this,t);return new hn(function(){var i=r();return i===Si?{value:void 0,done:!0}:un(e,t?--n:n++,i)})},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,i=wi(this,t);(n=i())!==Si&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ii(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?Pi():(this.__ownerID=e,this.__altered=!1,this)},t}(Gt);Ei.isList=xi;var _i=Ei.prototype;_i[vi]=!0,_i.delete=_i.remove,_i.merge=_i.concat,_i.setIn=Nr,_i.deleteIn=_i.removeIn=Or,_i.update=Dr,_i.updateIn=Tr,_i.mergeIn=Fr,_i.mergeDeepIn=qr,_i.withMutations=Gr,_i.wasAltered=Yr,_i.asImmutable=Kr,_i["@@transducer/init"]=_i.asMutable=Hr,_i["@@transducer/step"]=function(e,t){return e.push(t)},_i["@@transducer/result"]=function(e){return e.asImmutable()};var bi=function(e,t){this.array=e,this.ownerID=t};bi.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&wt;if(r>=this.array.length)return new bi([],e);var i,s=0===r;if(t>0){var o=this.array[r];if((i=o&&o.removeBefore(e,t-At,n))===o&&s)return this}if(s&&!i)return this;var a=ki(this,e);if(!s)for(var h=0;h<r;h++)a.array[h]=void 0;return i&&(a.array[r]=i),a},bi.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&wt;if(i>=this.array.length)return this;if(t>0){var s=this.array[i];if((r=s&&s.removeAfter(e,t-At,n))===s&&i===this.array.length-1)return this}var o=ki(this,e);return o.array.splice(i+1),r&&(o.array[i]=r),o};var Ai,Si={};function wi(e,t){var n=e._origin,r=e._capacity,i=Ri(r),s=e._tail;return o(e._root,e._level,0);function o(e,a,h){return 0===a?function(e,o){var a=o===i?s&&s.array:e&&e.array,h=o>n?0:n-o,u=r-o;u>St&&(u=St);return function(){if(h===u)return Si;var e=t?--u:h++;return a&&a[e]}}(e,h):function(e,i,s){var a,h=e&&e.array,u=s>n?0:n-s>>i,c=1+(r-s>>i);c>St&&(c=St);return function(){for(;;){if(a){var e=a();if(e!==Si)return e;a=null}if(u===c)return Si;var n=t?--c:u++;a=o(h&&h[n],i-At,s+(n<<i))}}}(e,a,h)}}function Ii(e,t,n,r,i,s,o){var a=Object.create(_i);return a.size=t-e,a._origin=e,a._capacity=t,a._level=n,a._root=r,a._tail=i,a.__ownerID=s,a.__hash=o,a.__altered=!1,a}function Pi(){return Ai||(Ai=Ii(0,0,At))}function Ci(e,t,n,r,i,s){var o,a=r>>>n&wt,h=e&&a<e.array.length;if(!h&&void 0===i)return e;if(n>0){var u=e&&e.array[a],c=Ci(u,t,n-At,r,i,s);return c===u?e:((o=ki(e,t)).array[a]=c,o)}return h&&e.array[a]===i?e:(s&&Pt(s),o=ki(e,t),void 0===i&&a===o.array.length-1?o.array.pop():o.array[a]=i,o)}function ki(e,t){return t&&e&&t===e.ownerID?e:new bi(e?e.array.slice():[],t)}function $i(e,t){if(t>=Ri(e._capacity))return e._tail;if(t<1<<e._level+At){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&wt],r-=At;return n}}function Ni(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new Ct,i=e._origin,s=e._capacity,o=i+t,a=void 0===n?s:n<0?s+n:i+n;if(o===i&&a===s)return e;if(o>=a)return e.clear();for(var h=e._level,u=e._root,c=0;o+c<0;)u=new bi(u&&u.array.length?[void 0,u]:[],r),c+=1<<(h+=At);c&&(o+=c,i+=c,a+=c,s+=c);for(var l=Ri(s),p=Ri(a);p>=1<<h+At;)u=new bi(u&&u.array.length?[u]:[],r),h+=At;var d=e._tail,f=p<l?$i(e,a-1):p>l?new bi([],r):d;if(d&&p>l&&o<s&&d.array.length){for(var m=u=ki(u,r),g=h;g>At;g-=At){var y=l>>>g&wt;m=m.array[y]=ki(m.array[y],r)}m.array[l>>>At&wt]=d}if(a<s&&(f=f&&f.removeAfter(r,0,a)),o>=p)o-=p,a-=p,h=At,u=null,f=f&&f.removeBefore(r,0,o);else if(o>i||p<l){for(c=0;u;){var v=o>>>h&wt;if(v!==p>>>h&wt)break;v&&(c+=(1<<h)*v),h-=At,u=u.array[v]}u&&o>i&&(u=u.removeBefore(r,h,o-c)),u&&p<l&&(u=u.removeAfter(r,h,p-c)),c&&(o-=c,a-=c)}return e.__ownerID?(e.size=a-o,e._origin=o,e._capacity=a,e._level=h,e._root=u,e._tail=f,e.__hash=void 0,e.__altered=!0,e):Ii(o,a,h,u,f)}function Ri(e){return e<St?0:e-1>>>At<<At}var Oi,Mi=function(e){function t(e){return null==e?Ti():Nn(e)?e:Ti().withMutations(function(t){var n=qt(e);xr(n.size),n.forEach(function(e,n){return t.set(n,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ti()},t.prototype.set=function(e,t){return Li(this,e,t)},t.prototype.remove=function(e){return Li(this,e,It)},t.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Di(t,n,e,this.__hash):0===this.size?Ti():(this.__ownerID=e,this._map=t,this._list=n,this)},t}(Xr);function Di(e,t,n,r){var i=Object.create(Mi.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function Ti(){return Oi||(Oi=Di(hi(),Pi()))}function Li(e,t,n){var r,i,s=e._map,o=e._list,a=s.get(t),h=void 0!==a;if(n===It){if(!h)return e;o.size>=St&&o.size>=2*s.size?(r=(i=o.filter(function(e,t){return void 0!==e&&a!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=s.remove(t),i=a===o.size-1?o.pop():o.set(a,void 0))}else if(h){if(n===o.get(a)[1])return e;r=s,i=o.set(a,[t,n])}else r=s.set(t,o.size),i=o.set(o.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Di(r,i)}Mi.isOrderedMap=Nn,Mi.prototype[Zt]=!0,Mi.prototype.delete=Mi.prototype.remove;var Vi="@@__IMMUTABLE_STACK__@@";function Bi(e){return Boolean(e&&e[Vi])}var zi=function(e){function t(e){return null==e?Fi():Bi(e)?e:Fi().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=$t(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ui(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&Bi(t))return t;xr(t.size);var n=this.size,r=this._head;return t.__iterate(function(e){n++,r={value:e,next:r}},!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):Ui(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Fi()},t.prototype.slice=function(t,n){if(Rt(t,n,this.size))return this;var r=Ot(t,this.size);if(Mt(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,s=this._head;r--;)s=s.next;return this.__ownerID?(this.size=i,this._head=s,this.__hash=void 0,this.__altered=!0,this):Ui(i,s)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ui(this.size,this._head,e,this.__hash):0===this.size?Fi():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new _n(this.toArray()).__iterate(function(t,r){return e(t,r,n)},t);for(var r=0,i=this._head;i&&!1!==e(i.value,r++,this);)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new _n(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new hn(function(){if(r){var t=r.value;return r=r.next,un(e,n++,t)}return{value:void 0,done:!0}})},t}(Gt);zi.isStack=Bi;var ji,Wi=zi.prototype;function Ui(e,t,n,r){var i=Object.create(Wi);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Fi(){return ji||(ji=Ui(0))}Wi[Vi]=!0,Wi.shift=Wi.pop,Wi.unshift=Wi.push,Wi.unshiftAll=Wi.pushAll,Wi.withMutations=Gr,Wi.wasAltered=Yr,Wi.asImmutable=Kr,Wi["@@transducer/init"]=Wi.asMutable=Hr,Wi["@@transducer/step"]=function(e,t){return e.unshift(t)},Wi["@@transducer/result"]=function(e){return e.asImmutable()};var qi="@@__IMMUTABLE_SET__@@";function Gi(e){return Boolean(e&&e[qi])}function Hi(e){return Gi(e)&&en(e)}function Ki(e,t){if(e===t)return!0;if(!Vt(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||zt(e)!==zt(t)||Wt(e)!==Wt(t)||en(e)!==en(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!Ut(e);if(en(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&On(i[1],e)&&(n||On(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var s=e;e=t,t=s}var o=!0,a=t.__iterate(function(t,r){if(n?!e.has(t):i?!On(t,e.get(r,It)):!On(e.get(r,It),t))return o=!1,!1});return o&&e.size===a}function Yi(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Xi(e){if(!e||"object"!=typeof e)return e;if(!Vt(e)){if(!br(e))return e;e=yn(e)}if(zt(e)){var t={};return e.__iterate(function(e,n){t[n]=Xi(e)}),t}var n=[];return e.__iterate(function(e){n.push(Xi(e))}),n}var Qi=function(e){function t(t){return null==t?ns():Gi(t)&&!en(t)?t:ns().withMutations(function(n){var r=e(t);xr(r.size),r.forEach(function(e){return n.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(qt(e).keySeq())},t.intersect=function(e){return(e=Ft(e).toArray()).length?Zi.intersect.apply(t(e.pop()),e):ns()},t.union=function(e){return(e=Ft(e).toArray()).length?Zi.union.apply(t(e.pop()),e):ns()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return es(this,this._map.set(e,e))},t.prototype.remove=function(e){return es(this,this._map.remove(e))},t.prototype.clear=function(){return es(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=[],i=[];return this.forEach(function(s){var o=e.call(t,s,s,n);o!==s&&(r.push(s),i.push(o))}),this.withMutations(function(e){r.forEach(function(t){return e.remove(t)}),i.forEach(function(t){return e.add(t)})})},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(n){for(var r=0;r<t.length;r++)e(t[r]).forEach(function(e){return n.add(e)})}):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.every(function(t){return t.includes(e)})||r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.sort=function(e){return Es(ar(this,e))},t.prototype.sortBy=function(e,t){return Es(ar(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(Ht);Qi.isSet=Gi;var Ji,Zi=Qi.prototype;function es(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function ts(e,t){var n=Object.create(Zi);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function ns(){return Ji||(Ji=ts(hi()))}Zi[qi]=!0,Zi.delete=Zi.remove,Zi.merge=Zi.concat=Zi.union,Zi.withMutations=Gr,Zi.asImmutable=Kr,Zi["@@transducer/init"]=Zi.asMutable=Hr,Zi["@@transducer/step"]=function(e,t){return e.add(t)},Zi["@@transducer/result"]=function(e){return e.asImmutable()},Zi.__empty=ns,Zi.__make=ts;var rs,is=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(vr(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(rs)return rs;rs=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+$t(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return Rt(e,n,this.size)?this:(e=Ot(e,this.size),(n=Mt(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,s=0;s!==n&&!1!==e(i,t?n-++s:s++,this);)i+=t?-r:r;return s},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,s=0;return new hn(function(){if(s===n)return{value:void 0,done:!0};var o=i;return i+=t?-r:r,un(e,t?n-++s:s++,o)})},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:Ki(this,e)},t}(xn);function ss(e,t,n){for(var r=Er(t),i=0;i!==r.length;)if((e=wr(e,r[i++],It))===It)return n;return e}function os(e,t){return ss(this,e,t)}function as(e,t){return ss(e,t,It)!==It}function hs(){xr(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e}Ft.isIterable=Vt,Ft.isKeyed=zt,Ft.isIndexed=Wt,Ft.isAssociative=Ut,Ft.isOrdered=en,Ft.Iterator=hn,Yi(Ft,{toArray:function(){xr(this.size);var e=new Array(this.size||0),t=zt(this),n=0;return this.__iterate(function(r,i){e[n++]=t?[i,r]:r}),e},toIndexedSeq:function(){return new Xn(this)},toJS:function(){return Xi(this)},toKeyedSeq:function(){return new Yn(this,!0)},toMap:function(){return Xr(this.toKeyedSeq())},toObject:hs,toOrderedMap:function(){return Mi(this.toKeyedSeq())},toOrderedSet:function(){return Es(zt(this)?this.valueSeq():this)},toSet:function(){return Qi(zt(this)?this.valueSeq():this)},toSetSeq:function(){return new Qn(this)},toSeq:function(){return Wt(this)?this.toIndexedSeq():zt(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return zi(zt(this)?this.valueSeq():this)},toList:function(){return Ei(zt(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return lr(this,sr(this,e))},includes:function(e){return this.some(function(t){return On(t,e)})},entries:function(){return this.__iterator(rn)},every:function(e,t){xr(this.size);var n=!0;return this.__iterate(function(r,i,s){if(!e.call(t,r,i,s))return n=!1,!1}),n},filter:function(e,t){return lr(this,nr(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return xr(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){xr(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""}),t},keys:function(){return this.__iterator(tn)},map:function(e,t){return lr(this,er(this,e,t))},reduce:function(e,t,n){return ps(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return ps(this,e,t,n,arguments.length<2,!0)},reverse:function(){return lr(this,tr(this,!0))},slice:function(e,t){return lr(this,rr(this,e,t,!0))},some:function(e,t){return!this.every(ms(e),t)},sort:function(e){return lr(this,ar(this,e))},values:function(){return this.__iterator(nn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return kt(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Xr().asMutable();return e.__iterate(function(i,s){r.update(t.call(n,i,s,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return Ki(this,e)},entrySeq:function(){var e=this;if(e._cache)return new _n(e._cache);var t=e.toSeq().map(fs).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(ms(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,s){if(e.call(t,n,i,s))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(Nt,null,e)},flatMap:function(e,t){return lr(this,function(e,t,n){var r=dr(e);return e.toSeq().map(function(i,s){return r(t.call(n,i,s,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return lr(this,or(this,e,!0))},fromEntrySeq:function(){return new Jn(this)},get:function(e,t){return this.find(function(t,n){return On(n,e)},void 0,t)},getIn:os,groupBy:function(e,t){return function(e,t,n){var r=zt(e),i=(en(e)?Mi():Xr()).asMutable();e.__iterate(function(s,o){i.update(t.call(n,s,o,e),function(e){return(e=e||[]).push(r?[o,s]:s),e})});var s=dr(e);return i.map(function(t){return lr(e,s(t))}).asImmutable()}(this,e,t)},has:function(e){return this.get(e,It)!==It},hasIn:function(e){return as(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:Ft(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:Ft(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return On(t,e)})},keySeq:function(){return this.toSeq().map(ds).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return hr(this,e)},maxBy:function(e,t){return hr(this,t,e)},min:function(e){return hr(this,e?gs(e):vs)},minBy:function(e,t){return hr(this,t?gs(t):vs,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return lr(this,ir(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(ms(e),t)},sortBy:function(e,t){return lr(this,ar(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return lr(this,function(e,t,n){var r=fr(e);return r.__iterateUncached=function(r,i){var s=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return e.__iterate(function(e,i,a){return t.call(n,e,i,a)&&++o&&r(e,i,s)}),o},r.__iteratorUncached=function(r,i){var s=this;if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(rn,i),a=!0;return new hn(function(){if(!a)return{value:void 0,done:!0};var e=o.next();if(e.done)return e;var i=e.value,h=i[0],u=i[1];return t.call(n,u,h,s)?r===rn?e:un(r,h,u,e):(a=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(ms(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=en(e),n=zt(e),r=t?1:0;return function(e,t){return t=Mn(t,3432918353),t=Mn(t<<15|t>>>-15,461845907),t=Mn(t<<13|t>>>-13,5),t=Mn((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Dn((t=Mn(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+xs(Ln(e),Ln(t))|0}:function(e,t){r=r+xs(Ln(e),Ln(t))|0}:t?function(e){r=31*r+Ln(e)|0}:function(e){r=r+Ln(e)|0}),r)}(this))}});var us=Ft.prototype;us[Lt]=!0,us[an]=us.values,us.toJSON=us.toArray,us.__toStringMapper=Ar,us.inspect=us.toSource=function(){return this.toString()},us.chain=us.flatMap,us.contains=us.includes,Yi(qt,{flip:function(){return lr(this,Zn(this))},mapEntries:function(e,t){var n=this,r=0;return lr(this,this.toSeq().map(function(i,s){return e.call(t,[s,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return lr(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var cs=qt.prototype;cs[Bt]=!0,cs[an]=us.entries,cs.toJSON=hs,cs.__toStringMapper=function(e,t){return Ar(t)+": "+Ar(e)},Yi(Gt,{toKeyedSeq:function(){return new Yn(this,!1)},filter:function(e,t){return lr(this,nr(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return lr(this,tr(this,!1))},slice:function(e,t){return lr(this,rr(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=Ot(e,e<0?this.count():this.size);var r=this.slice(0,e);return lr(this,1===n?r:r.concat(yr(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return lr(this,or(this,e,!1))},get:function(e,t){return(e=$t(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=$t(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return lr(this,function(e,t){var n=fr(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,s=0;return e.__iterate(function(e){return(!s||!1!==n(t,s++,i))&&!1!==n(e,s++,i)},r),s},n.__iteratorUncached=function(n,r){var i,s=e.__iterator(nn,r),o=0;return new hn(function(){return(!i||o%2)&&(i=s.next()).done?i:o%2?un(n,o++,t):un(n,o++,i.value,i)})},n}(this,e))},interleave:function(){var e=[this].concat(yr(arguments)),t=cr(this.toSeq(),xn.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),lr(this,n)},keySeq:function(){return is(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return lr(this,ir(this,e,t,!1))},zip:function(){var e=[this].concat(yr(arguments));return lr(this,cr(this,ys,e))},zipAll:function(){var e=[this].concat(yr(arguments));return lr(this,cr(this,ys,e,!0))},zipWith:function(e){var t=yr(arguments);return t[0]=this,lr(this,cr(this,e,t))}});var ls=Gt.prototype;function ps(e,t,n,r,i,s){return xr(e.size),e.__iterate(function(e,s,o){i?(i=!1,n=e):n=t.call(r,n,e,s,o)},s),n}function ds(e,t){return t}function fs(e,t){return[t,e]}function ms(e){return function(){return!e.apply(this,arguments)}}function gs(e){return function(){return-e.apply(this,arguments)}}function ys(){return yr(arguments)}function vs(e,t){return e<t?1:e>t?-1:0}function xs(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}ls[jt]=!0,ls[Zt]=!0,Yi(Ht,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),Ht.prototype.has=us.includes,Ht.prototype.contains=Ht.prototype.includes,Yi(vn,qt.prototype),Yi(xn,Gt.prototype),Yi(En,Ht.prototype);var Es=function(e){function t(e){return null==e?Ss():Hi(e)?e:Ss().withMutations(function(t){var n=Ht(e);xr(n.size),n.forEach(function(e){return t.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(qt(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Qi);Es.isOrderedSet=Hi;var _s,bs=Es.prototype;function As(e,t){var n=Object.create(bs);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Ss(){return _s||(_s=As(Ti()))}bs[Zt]=!0,bs.zip=ls.zip,bs.zipWith=ls.zipWith,bs.__empty=Ss,bs.__make=As;var ws=function(e,t){var n,r=function(s){var o=this;if(s instanceof r)return s;if(!(this instanceof r))return new r(s);if(!n){n=!0;var a=Object.keys(e),h=i._indices={};i._name=t,i._keys=a,i._defaultValues=e;for(var u=0;u<a.length;u++){var c=a[u];h[c]=u,i[c]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+ks(this)+' with property "'+c+'" since that property name is part of the Record API.'):Ns(i,c)}}this.__ownerID=void 0,this._values=Ei().withMutations(function(e){e.setSize(o._keys.length),qt(s).forEach(function(t,n){e.set(o._indices[n],t===o._defaultValues[n]?void 0:t)})})},i=r.prototype=Object.create(Ps);return i.constructor=r,t&&(r.displayName=t),r};ws.prototype.toString=function(){for(var e,t=ks(this)+" { ",n=this._keys,r=0,i=n.length;r!==i;r++)t+=(r?", ":"")+(e=n[r])+": "+Ar(this.get(e));return t+" }"},ws.prototype.equals=function(e){return this===e||e&&this._keys===e._keys&&$s(this).equals($s(e))},ws.prototype.hashCode=function(){return $s(this).hashCode()},ws.prototype.has=function(e){return this._indices.hasOwnProperty(e)},ws.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},ws.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return Cs(this,n)}return this},ws.prototype.remove=function(e){return this.set(e)},ws.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:Cs(this,e)},ws.prototype.wasAltered=function(){return this._values.wasAltered()},ws.prototype.toSeq=function(){return $s(this)},ws.prototype.toJS=function(){return Xi(this)},ws.prototype.entries=function(){return this.__iterator(rn)},ws.prototype.__iterator=function(e,t){return $s(this).__iterator(e,t)},ws.prototype.__iterate=function(e,t){return $s(this).__iterate(e,t)},ws.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?Cs(this,t,e):(this.__ownerID=e,this._values=t,this)},ws.isRecord=Qt,ws.getDescriptiveName=ks;var Is,Ps=ws.prototype;function Cs(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function ks(e){return e.constructor.displayName||e.constructor.name||"Record"}function $s(e){return In(e._keys.map(function(t){return[t,e.get(t)]}))}function Ns(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){vr(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}function Rs(e,t){return zt(t)?t.toMap():t.toList()}Ps[Xt]=!0,Ps.delete=Ps.remove,Ps.deleteIn=Ps.removeIn=Or,Ps.getIn=os,Ps.hasIn=us.hasIn,Ps.merge=Lr,Ps.mergeWith=Vr,Ps.mergeIn=Fr,Ps.mergeDeep=Wr,Ps.mergeDeepWith=Ur,Ps.mergeDeepIn=qr,Ps.setIn=Nr,Ps.update=Dr,Ps.updateIn=Tr,Ps.withMutations=Gr,Ps.asMutable=Hr,Ps.asImmutable=Kr,Ps[an]=Ps.entries,Ps.toJSON=Ps.toObject=us.toObject,Ps.inspect=Ps.toSource=function(){return this.toString()};var Os,Ms={version:"4.0.0-rc.11",Collection:Ft,Iterable:Ft,Seq:yn,Map:Xr,OrderedMap:Mi,List:Ei,Stack:zi,Set:Qi,OrderedSet:Es,Record:ws,Range:is,Repeat:function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(Is)return Is;Is=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return On(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return Rt(e,n,r)?this:new t(this._value,Mt(n,r)-Ot(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return On(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return On(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,i=0;return new hn(function(){return i===r?{value:void 0,done:!0}:un(e,t?r-++i:i++,n._value)})},t.prototype.equals=function(e){return e instanceof t?On(this._value,e._value):Ki(e)},t}(xn),is:On,fromJS:function(e,t){return function e(t,n,r,i,s,o){var a=Array.isArray(r)?xn:_r(r)?vn:null;if(a){if(~t.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");t.push(r),s&&""!==i&&s.push(i);var h=n.call(o,i,a(r).map(function(i,o){return e(t,n,i,o,s,r)}),s&&s.slice());return t.pop(),s&&s.pop(),h}return r}([],t||Rs,e,"",t&&t.length>2?[]:void 0,{"":e})},hash:Ln,isImmutable:Jt,isCollection:Vt,isKeyed:zt,isIndexed:Wt,isAssociative:Ut,isOrdered:en,isValueObject:Rn,isSeq:Yt,isList:xi,isMap:$n,isOrderedMap:Nn,isStack:Bi,isSet:Gi,isOrderedSet:Hi,isRecord:Qt,get:wr,getIn:ss,has:Sr,hasIn:as,merge:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return jr(e,t)},mergeDeep:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return zr(e,t)},mergeWith:function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return jr(t,n,e)},mergeDeepWith:function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return zr(t,n,e)},remove:Pr,removeIn:Rr,set:Cr,setIn:$r,update:Mr,updateIn:kr};!function(e){e[e.IGNORED_LABELS=0]="IGNORED_LABELS",e[e.ACCESSED_NODES=1]="ACCESSED_NODES",e[e.ASSIGNED_NODES=2]="ASSIGNED_NODES",e[e.IGNORE_BREAK_STATEMENTS=3]="IGNORE_BREAK_STATEMENTS",e[e.IGNORE_RETURN_AWAIT_YIELD=4]="IGNORE_RETURN_AWAIT_YIELD",e[e.NODES_CALLED_AT_PATH_WITH_OPTIONS=5]="NODES_CALLED_AT_PATH_WITH_OPTIONS",e[e.REPLACED_VARIABLE_INITS=6]="REPLACED_VARIABLE_INITS",e[e.RETURN_EXPRESSIONS_ACCESSED_AT_PATH=7]="RETURN_EXPRESSIONS_ACCESSED_AT_PATH",e[e.RETURN_EXPRESSIONS_ASSIGNED_AT_PATH=8]="RETURN_EXPRESSIONS_ASSIGNED_AT_PATH",e[e.RETURN_EXPRESSIONS_CALLED_AT_PATH=9]="RETURN_EXPRESSIONS_CALLED_AT_PATH"}(Os||(Os={}));const Ds={};class Ts{static create(){return new this(Ms.Map())}constructor(e){this.optionValues=e}addAccessedNodeAtPath(e,t){return this.setIn([Os.ACCESSED_NODES,t,...e,Ds],!0)}addAccessedReturnExpressionAtPath(e,t){return this.setIn([Os.RETURN_EXPRESSIONS_ACCESSED_AT_PATH,t,...e,Ds],!0)}addAssignedNodeAtPath(e,t){return this.setIn([Os.ASSIGNED_NODES,t,...e,Ds],!0)}addAssignedReturnExpressionAtPath(e,t){return this.setIn([Os.RETURN_EXPRESSIONS_ASSIGNED_AT_PATH,t,...e,Ds],!0)}addCalledNodeAtPathWithOptions(e,t,n){return this.setIn([Os.NODES_CALLED_AT_PATH_WITH_OPTIONS,t,...e,Ds,n],!0)}addCalledReturnExpressionAtPath(e,t){return this.setIn([Os.RETURN_EXPRESSIONS_CALLED_AT_PATH,t,...e,Ds],!0)}getHasEffectsWhenCalledOptions(){return this.setIgnoreReturnAwaitYield().setIgnoreBreakStatements(!1).setIgnoreNoLabels()}getReplacedVariableInit(e){return this.optionValues.getIn([Os.REPLACED_VARIABLE_INITS,e])}hasNodeBeenAccessedAtPath(e,t){return this.optionValues.getIn([Os.ACCESSED_NODES,t,...e,Ds])}hasNodeBeenAssignedAtPath(e,t){return this.optionValues.getIn([Os.ASSIGNED_NODES,t,...e,Ds])}hasNodeBeenCalledAtPathWithOptions(e,t,n){const r=this.optionValues.getIn([Os.NODES_CALLED_AT_PATH_WITH_OPTIONS,t,...e,Ds]);return r&&r.find((e,t)=>t.equals(n))}hasReturnExpressionBeenAccessedAtPath(e,t){return this.optionValues.getIn([Os.RETURN_EXPRESSIONS_ACCESSED_AT_PATH,t,...e,Ds])}hasReturnExpressionBeenAssignedAtPath(e,t){return this.optionValues.getIn([Os.RETURN_EXPRESSIONS_ASSIGNED_AT_PATH,t,...e,Ds])}hasReturnExpressionBeenCalledAtPath(e,t){return this.optionValues.getIn([Os.RETURN_EXPRESSIONS_CALLED_AT_PATH,t,...e,Ds])}ignoreBreakStatements(){return this.get(Os.IGNORE_BREAK_STATEMENTS)}ignoreLabel(e){return this.optionValues.getIn([Os.IGNORED_LABELS,e])}ignoreReturnAwaitYield(){return this.get(Os.IGNORE_RETURN_AWAIT_YIELD)}replaceVariableInit(e,t){return this.setIn([Os.REPLACED_VARIABLE_INITS,e],t)}setIgnoreBreakStatements(e=!0){return this.set(Os.IGNORE_BREAK_STATEMENTS,e)}setIgnoreLabel(e){return this.setIn([Os.IGNORED_LABELS,e],!0)}setIgnoreNoLabels(){return this.remove(Os.IGNORED_LABELS)}setIgnoreReturnAwaitYield(e=!0){return this.set(Os.IGNORE_RETURN_AWAIT_YIELD,e)}get(e){return this.optionValues.get(e)}remove(e){return new Ts(this.optionValues.remove(e))}set(e,t){return new Ts(this.optionValues.set(e,t))}setIn(e,t){return new Ts(this.optionValues.setIn(e,t))}}const Ls={Literal:[],Program:["body"]};const Vs="variables",Bs=Ts.create();class zs{constructor(e,t,n){this.included=!1,this.keys=Ls[e.type]||function(e){return Ls[e.type]=Object.keys(e).filter(t=>"object"==typeof e[t]),Ls[e.type]}(e),this.parent=t,this.context=t.context,this.createScope(n),this.parseNode(e),this.initialise(),this.context.magicString.addSourcemapLocation(this.start),this.context.magicString.addSourcemapLocation(this.end)}bind(){for(const e of this.keys){const t=this[e];if(null!==t&&"annotations"!==e)if(Array.isArray(t))for(const e of t)null!==e&&e.bind();else t.bind()}}createScope(e){this.scope=e}declare(e,t){return[]}deoptimizePath(e){}getLiteralValueAtPath(e,t,n){return we}getReturnExpressionWhenCalledAtPath(e,t,n){return Ie}hasEffects(e){for(const t of this.keys){const n=this[t];if(null!==n&&"annotations"!==t)if(Array.isArray(n)){for(const t of n)if(null!==t&&t.hasEffects(e))return!0}else if(n.hasEffects(e))return!0}return!1}hasEffectsWhenAccessedAtPath(e,t){return e.length>0}hasEffectsWhenAssignedAtPath(e,t){return!0}hasEffectsWhenCalledAtPath(e,t,n){return!0}include(e){this.included=!0;for(const t of this.keys){const n=this[t];if(null!==n&&"annotations"!==t)if(Array.isArray(n))for(const t of n)null!==t&&t.include(e);else n.include(e)}}includeCallArguments(e){for(const t of e)t.include(!1)}includeWithAllDeclaredVariables(e){this.include(e)}initialise(){}insertSemicolon(e){";"!==e.original[this.end-1]&&e.appendLeft(this.end,";")}locate(){const e=bt(this.context.code,this.start,{offsetLine:1});return e.file=this.context.fileName,e.toString=()=>JSON.stringify(e),e}parseNode(e){for(const t of Object.keys(e)){if(this.hasOwnProperty(t))continue;const n=e[t];if("object"!=typeof n||null===n||"annotations"===t)this[t]=n;else if(Array.isArray(n)){this[t]=[];for(const e of n)this[t].push(null===e?null:new(this.context.nodeConstructors[e.type]||this.context.nodeConstructors.UnknownNode)(e,this,this.scope))}else this[t]=new(this.context.nodeConstructors[n.type]||this.context.nodeConstructors.UnknownNode)(n,this,this.scope)}}render(e,t){for(const n of this.keys){const r=this[n];if(null!==r&&"annotations"!==n)if(Array.isArray(r))for(const n of r)null!==n&&n.render(e,t);else r.render(e,t)}}shouldBeIncluded(){return this.included||this.hasEffects(Bs)}toString(){return this.context.code.slice(this.start,this.end)}}class js extends zs{createScope(e){this.scope=new _t(e)}hasEffectsWhenAccessedAtPath(e,t){return e.length>1}hasEffectsWhenAssignedAtPath(e,t){return e.length>1}hasEffectsWhenCalledAtPath(e,t,n){return this.body.hasEffectsWhenCalledAtPath(e,t,n)||null!==this.superClass&&this.superClass.hasEffectsWhenCalledAtPath(e,t,n)}initialise(){null!==this.id&&this.id.declare("class",this)}}class Ws extends js{initialise(){super.initialise(),null!==this.id&&(this.id.variable.isId=!0)}parseNode(e){null!==e.id&&(this.id=new this.context.nodeConstructors.Identifier(e.id,this,this.scope.parent)),super.parseNode(e)}render(e,t){"system"===t.format&&this.id&&this.id.variable.exportName&&e.appendLeft(this.end,` exports('${this.id.variable.exportName}', ${this.id.variable.getName()});`),super.render(e,t)}}class Us extends xt{constructor(e){super("arguments",null,Ie,e)}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenAssignedAtPath(){return!0}hasEffectsWhenCalledAtPath(){return!0}}class Fs extends xt{constructor(e){super("this",null,null,e)}_getInit(e){return e.getReplacedVariableInit(this)||Ie}getLiteralValueAtPath(){return we}hasEffectsWhenAccessedAtPath(e,t){return this._getInit(t).hasEffectsWhenAccessedAtPath(e,t)||super.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return this._getInit(t).hasEffectsWhenAssignedAtPath(e,t)||super.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,n){return this._getInit(n).hasEffectsWhenCalledAtPath(e,t,n)||super.hasEffectsWhenCalledAtPath(e,t,n)}}class qs extends _t{constructor(e,t){super(e),this.parameters=[],this.hasRest=!1,this.context=t,this.hoistedBodyVarScope=new _t(this)}addParameterDeclaration(e){const t=e.name;let n=this.hoistedBodyVarScope.variables.get(t);return n?n.addDeclaration(e,null):n=new xt(t,e,Ie,this.context),this.variables.set(t,n),n}addParameterVariables(e,t){this.parameters=e;for(const t of e)for(const e of t)e.alwaysRendered=!0;this.hasRest=t}includeCallArguments(e){let t=!1,n=!1;const r=this.hasRest&&this.parameters[this.parameters.length-1];for(let i=e.length-1;i>=0;i--){const s=this.parameters[i]||r,o=e[i];if(s){t=!1;for(const e of s)e.included&&(n=!0),e.calledFromTryStatement&&(t=!0)}!n&&o.shouldBeIncluded()&&(n=!0),n&&o.include(t)}}}class Gs extends qs{constructor(){super(...arguments),this.returnExpression=null,this.returnExpressions=[]}addReturnExpression(e){this.returnExpressions.push(e)}getReturnExpression(){return null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression}updateReturnExpression(){if(1===this.returnExpressions.length)this.returnExpression=this.returnExpressions[0];else{this.returnExpression=Ie;for(const e of this.returnExpressions)e.deoptimizePath(Ae)}}}class Hs extends Gs{constructor(e,t){super(e,t),this.variables.set("arguments",this.argumentsVariable=new Us(t)),this.variables.set("this",this.thisVariable=new Fs(t))}findLexicalBoundary(){return this}getOptionsWhenCalledWith({withNew:e},t){return t.replaceVariableInit(this.thisVariable,e?new Fe:Ie)}includeCallArguments(e){if(super.includeCallArguments(e),this.argumentsVariable.included)for(const t of e)t.included||t.include(!1)}}class Ks extends zs{constructor(){super(...arguments),this.variable=null,this.bound=!1}addExportedVariables(e){null!==this.variable&&this.variable.exportName&&e.push(this.variable)}bind(){this.bound||(this.bound=!0,null===this.variable&&function e(t,n){if("MemberExpression"===t.type)return!t.computed&&e(t.object,t);if("Identifier"===t.type){if(!n)return!0;switch(n.type){case"MemberExpression":return n.computed||t===n.object;case"MethodDefinition":return n.computed;case"Property":return n.computed||t===n.value;case"ExportSpecifier":return t===n.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}return!1}(this,this.parent)&&(this.variable=this.scope.findVariable(this.name),this.variable.addReference(this)),null!==this.variable&&this.variable instanceof xt&&null!==this.variable.additionalInitializers&&this.variable.consolidateInitializers())}declare(e,t){let n;switch(e){case"var":case"function":n=this.scope.addDeclaration(this,this.context,t,!0);break;case"let":case"const":case"class":n=this.scope.addDeclaration(this,this.context,t,!1);break;case"parameter":n=this.scope.addParameterDeclaration(this);break;default:throw new Error(`Unexpected identifier kind ${e}.`)}return[this.variable=n]}deoptimizePath(e){this.bound||this.bind(),null!==this.variable&&(0===e.length&&this.name in this.context.importDescriptions&&!this.scope.contains(this.name)&&this.disallowImportReassignment(),this.variable.deoptimizePath(e))}getLiteralValueAtPath(e,t,n){return this.bound||this.bind(),null!==this.variable?this.variable.getLiteralValueAtPath(e,t,n):we}getReturnExpressionWhenCalledAtPath(e,t,n){return this.bound||this.bind(),null!==this.variable?this.variable.getReturnExpressionWhenCalledAtPath(e,t,n):Ie}hasEffectsWhenAccessedAtPath(e,t){return null!==this.variable&&this.variable.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return!this.variable||this.variable.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,n){return!this.variable||this.variable.hasEffectsWhenCalledAtPath(e,t,n)}include(){this.included||(this.included=!0,null!==this.variable&&this.context.includeVariable(this.variable))}includeCallArguments(e){this.variable&&this.variable.includeCallArguments(e)}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:r,isShorthandProperty:i}=Y){if(this.variable){const t=this.variable.getName();t!==this.name&&(e.overwrite(this.start,this.end,t,{contentOnly:!0,storeName:!0}),i&&e.prependRight(this.start,`${this.name}: `)),"eval"===t&&n===Q&&r&&e.appendRight(this.start,"0, ")}}disallowImportReassignment(){this.context.error({code:"ILLEGAL_REASSIGNMENT",message:`Illegal reassignment to import '${this.name}'`},this.start)}}class Ys extends zs{constructor(){super(...arguments),this.declarationInit=null}addExportedVariables(e){this.argument.addExportedVariables(e)}bind(){super.bind(),null!==this.declarationInit&&this.declarationInit.deoptimizePath([_e,_e])}declare(e,t){return this.declarationInit=t,this.argument.declare(e,Ie)}deoptimizePath(e){0===e.length&&this.argument.deoptimizePath(be)}hasEffectsWhenAssignedAtPath(e,t){return e.length>0||this.argument.hasEffectsWhenAssignedAtPath(be,t)}}class Xs extends zs{constructor(){super(...arguments),this.isPrototypeDeoptimized=!1}createScope(e){this.scope=new Hs(e,this.context)}deoptimizePath(e){1===e.length&&("prototype"===e[0]?this.isPrototypeDeoptimized=!0:e[0]===_e&&(this.isPrototypeDeoptimized=!0,this.scope.getReturnExpression().deoptimizePath(Ae)))}getReturnExpressionWhenCalledAtPath(e){return 0===e.length?this.scope.getReturnExpression():Ie}hasEffects(e){return null!==this.id&&this.id.hasEffects(e)}hasEffectsWhenAccessedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0]||this.isPrototypeDeoptimized)}hasEffectsWhenAssignedAtPath(e){return!(e.length<=1)&&(e.length>2||"prototype"!==e[0]||this.isPrototypeDeoptimized)}hasEffectsWhenCalledAtPath(e,t,n){if(e.length>0)return!0;const r=this.scope.getOptionsWhenCalledWith(t,n);for(const e of this.params)if(e.hasEffects(r))return!0;return this.body.hasEffects(r)}include(e){this.included=!0,this.body.include(e),this.id&&this.id.include();const t=this.scope.argumentsVariable.included;for(const n of this.params)n instanceof Ks&&!t||n.include(e)}includeCallArguments(e){this.scope.includeCallArguments(e)}initialise(){null!==this.id&&this.id.declare("function",this),this.scope.addParameterVariables(this.params.map(e=>e.declare("parameter",Ie)),this.params[this.params.length-1]instanceof Ys),this.body.addImplicitReturnExpressionToScope()}parseNode(e){this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope.hoistedBodyVarScope),super.parseNode(e)}}Xs.prototype.preventChildBlockScope=!0;class Qs extends Xs{initialise(){super.initialise(),null!==this.id&&(this.id.variable.isId=!0)}parseNode(e){null!==e.id&&(this.id=new this.context.nodeConstructors.Identifier(e.id,this,this.scope.parent)),super.parseNode(e)}}const Js=/\s/;class Zs extends zs{include(e){super.include(e),e&&this.context.includeVariable(this.variable)}initialise(){const e=this.declaration;this.declarationName=e.id&&e.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this.declarationName||this.context.getModuleName(),this,this.context),this.context.addExport(this)}render(e,t,{start:n,end:r}=Y){const i=function(e,t=0){for(t=le(e,"default",t)+7;Js.test(e[t]);)t++;return t}(e.original,this.start);if(this.declaration instanceof Qs)this.renderNamedDeclaration(e,i,"function",null===this.declaration.id,t);else if(this.declaration instanceof Ws)this.renderNamedDeclaration(e,i,"class",null===this.declaration.id,t);else{if(this.variable.getOriginalVariable()!==this.variable)return void("system"===t.format&&this.variable.exportName?e.overwrite(n,r,`exports('${this.variable.exportName}', ${this.variable.getName()});`):he(this,e,n,r));if(!this.variable.included)return e.remove(this.start,i),this.declaration.render(e,t,{isCalleeOfRenderedParent:!1,renderedParentType:Z}),void(";"!==e.original[this.end-1]&&e.appendLeft(this.end,";"));this.renderVariableDeclaration(e,i,t)}this.declaration.render(e,t)}renderNamedDeclaration(e,t,n,r,i){const s=this.variable.getName();e.remove(this.start,t),r&&e.appendLeft(function(e,t,n=0){const r=le(e,t,n)+t.length;e=e.slice(r,le(e,"{",r));const i=le(e,"*");return-1===i?r:r+i+1}(e.original,n,t),` ${s}`),"system"===i.format&&this.declaration instanceof Ws&&this.variable.exportName&&e.appendLeft(this.end,` exports('${this.variable.exportName}', ${s});`)}renderVariableDeclaration(e,t,n){const r="system"===n.format&&this.variable.exportName?`exports('${this.variable.exportName}', `:"";e.overwrite(this.start,t,`${n.varOrConst} ${this.variable.getName()} = ${r}`);const i=59===e.original.charCodeAt(this.end-1);r?e.appendRight(i?this.end-1:this.end,")"+(i?"":";")):i||e.appendLeft(this.end,";")}}Zs.prototype.needsBoundaries=!0;class eo extends xt{constructor(e,t,n){super(e,t,t.declaration,n),this.hasId=!1,this.originalId=null,this.originalVariable=null;const r=t.declaration;(r instanceof Qs||r instanceof Ws)&&r.id?(this.hasId=!0,this.originalId=r.id):r instanceof Ks&&(this.originalId=r)}addReference(e){this.hasId||(this.name=e.name)}getAssignedVariableName(){return this.originalId&&this.originalId.name||null}getName(){const e=this.getOriginalVariable();return e===this?super.getName():e.getName()}getOriginalVariable(){if(null===this.originalVariable)if(!this.originalId||!this.hasId&&this.originalId.variable.isReassigned)this.originalVariable=this;else{const e=this.originalId.variable;this.originalVariable=e instanceof eo?e.getOriginalVariable():e}return this.originalVariable}setRenderNames(e,t){const n=this.getOriginalVariable();n===this?super.setRenderNames(e,t):n.setRenderNames(e,t)}setSafeName(e){const t=this.getOriginalVariable();t===this?super.setSafeName(e):t.setSafeName(e)}}eo.prototype.getBaseVariableName=eo.prototype.getName;const to="_missingExportShim",no="_interopDefault",ro="_interopNamespace";class io extends Je{constructor(e){super(to),this.module=e}}const so=["Array.isArray","Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape","Object","Object.create","Object.getNotifier","Object.getOwn","Object.getOwnPropertyDescriptor","Object.getOwnPropertyNames","Object.getOwnPropertySymbols","Object.getPrototypeOf","Object.is","Object.isExtensible","Object.isFrozen","Object.isSealed","Object.keys","Boolean","Number","Number.isFinite","Number.isInteger","Number.isNaN","Number.isSafeInteger","Number.parseFloat","Number.parseInt","Symbol","Symbol.for","Symbol.keyFor","Math.abs","Math.acos","Math.acosh","Math.asin","Math.asinh","Math.atan","Math.atan2","Math.atanh","Math.cbrt","Math.ceil","Math.clz32","Math.cos","Math.cosh","Math.exp","Math.expm1","Math.floor","Math.fround","Math.hypot","Math.imul","Math.log","Math.log10","Math.log1p","Math.log2","Math.max","Math.min","Math.pow","Math.random","Math.round","Math.sign","Math.sin","Math.sinh","Math.sqrt","Math.tan","Math.tanh","Math.trunc","Date","Date.UTC","Date.now","Date.parse","String","String.fromCharCode","String.fromCodePoint","String.raw","RegExp","Map","Set","WeakMap","WeakSet","ArrayBuffer","ArrayBuffer.isView","DataView","Promise.all","Promise.race","Promise.resolve","Intl.Collator","Intl.Collator.supportedLocalesOf","Intl.DateTimeFormat","Intl.DateTimeFormat.supportedLocalesOf","Intl.NumberFormat","Intl.NumberFormat.supportedLocalesOf"],oo="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" ");for(const e of oo)so.push(e,`${e}.from`,`${e}.of`);const ao="Int8x16 Int16x8 Int32x4 Float32x4 Float64x2".split(" "),ho="abs add and bool check div equal extractLane fromFloat32x4 fromFloat32x4Bits fromFloat64x2 fromFloat64x2Bits fromInt16x8Bits fromInt32x4 fromInt32x4Bits fromInt8x16Bits greaterThan greaterThanOrEqual lessThan lessThanOrEqual load max maxNum min minNum mul neg not notEqual or reciprocalApproximation reciprocalSqrtApproximation replaceLane select selectBits shiftLeftByScalar shiftRightArithmeticByScalar shiftRightLogicalByScalar shuffle splat sqrt store sub swizzle xor".split(" ");for(const e of ao){const t=`SIMD.${e}`;so.push(t);for(const e of ho)so.push(`${t}.${e}`)}var uo=new Set(so);class co extends Je{hasEffectsWhenAccessedAtPath(e){return e.length>0&&!this.isPureFunctionMember(e)&&!("Reflect"===this.name&&1===e.length)}hasEffectsWhenCalledAtPath(e){return!uo.has([this.name,...e].join("."))}isPureFunctionMember(e){return uo.has([this.name,...e].join("."))||e.length>=1&&uo.has([this.name,...e.slice(0,-1)].join("."))||e.length>=2&&uo.has([this.name,...e.slice(0,-2)].join("."))&&"prototype"===e[e.length-2]}}class lo extends Je{constructor(e){super(e.getModuleName()),this.memberVariables=Object.create(null),this.containsExternalNamespace=!1,this.referencedEarly=!1,this.references=[],this.context=e,this.module=e.module;for(const e of this.context.getExports().concat(this.context.getReexports()))"*"===e[0]&&e.length>1&&(this.containsExternalNamespace=!0),this.memberVariables[e]=this.context.traceExport(e)}addReference(e){this.references.push(e),this.name=e.name}deoptimizePath(){for(const e in this.memberVariables)this.memberVariables[e].deoptimizePath(Ae)}include(){if(!this.included){this.containsExternalNamespace&&this.context.error({code:"NAMESPACE_CANNOT_CONTAIN_EXTERNAL",id:this.module.id,message:`Cannot create an explicit namespace object for module "${this.context.getModuleName()}" because it contains a reexported external namespace`},void 0),this.included=!0;for(const e of this.references)if(e.context.getModuleExecIndex()<=this.context.getModuleExecIndex()){this.referencedEarly=!0;break}if(this.context.preserveModules)for(const e of Object.keys(this.memberVariables))this.memberVariables[e].include();else for(const e of Object.keys(this.memberVariables))this.context.includeVariable(this.memberVariables[e])}}renderBlock(e){const t=e.compact?"":" ",n=e.compact?"":"\n",r=e.indent,i=Object.keys(this.memberVariables).map(n=>{const i=this.memberVariables[n];if(this.referencedEarly||i.isReassigned)return`${r}get ${n}${t}()${t}{${t}return ${i.getName()}${e.compact?"":";"}${t}}`;const s=ve[n]?`'${n}'`:n;return`${r}${s}: ${i.getName()}`}),s=this.getName(),o=e.freeze?"/*#__PURE__*/Object.freeze":"";let a=`${e.varOrConst} ${s} = ${e.namespaceToStringTag?`{${n}${i.join(`,${n}`)}${n}};`:`${o}({${n}${i.join(`,${n}`)}${n}});`}`;return e.namespaceToStringTag&&(a+=`${n}if${t}(typeof Symbol${t}!==${t}'undefined'${t}&&${t}Symbol.toStringTag)${n}`,a+=`${r}Object.defineProperty(${s},${t}Symbol.toStringTag,${t}{${t}value:${t}'Module'${t}});${n}`,a+=`else${n||" "}`,a+=`${r}Object.defineProperty(${s},${t}'toString',${t}{${t}value:${t}function${t}()${t}{${t}return${t}'[object Module]'${e.compact?";":""}${t}}${t}});${n}`,a+=`${o}(${s});`),"system"===e.format&&this.exportName&&(a+=`${n}exports('${this.exportName}',${t}${s});`),a}renderFirst(){return this.referencedEarly}}lo.prototype.isNamespace=!0;const po="Object.defineProperty(exports, '__esModule', { value: true });",fo="Object.defineProperty(exports,'__esModule',{value:true});";function mo(e,t,n,r,i,s,o="return "){const a=i?"":" ",h=i?"":"\n";if(!n){let n;return e.some(e=>"default"===e.exported&&(n=e.local,!0)),n||t.some(e=>!!e.reexports&&e.reexports.some(t=>"default"===t.reexported&&(n=e.namedExportsMode?`${e.name}.${t.imported}`:e.name,!0))),`${o}${n};`}let u="";return t.forEach(({name:e,reexports:t})=>{t&&n&&t.forEach(t=>{"*"===t.reexported&&(!i&&u&&(u+="\n"),u+=`Object.keys(${e}).forEach(function${a}(k)${a}{${h}`+`${s}if${a}(k${a}!==${a}'default')${a}Object.defineProperty(exports,${a}k,${a}{${h}`+`${s}${s}enumerable:${a}true,${h}`+`${s}${s}get:${a}function${a}()${a}{${h}`+`${s}${s}${s}return ${e}[k];${h}`+`${s}${s}}${h}${s}});${h}});`)})}),t.forEach(({name:e,imports:t,reexports:o,isChunk:c,namedExportsMode:l})=>{o&&n&&o.forEach(n=>{if("default"!==n.imported||c)if("*"!==n.imported){u&&!i&&(u+="\n");const t="default"!==n.imported||l?`${e}.${n.imported}`:e;u+=n.needsLiveBinding?`Object.defineProperty(exports,${a}'${n.reexported}',${a}{${h}`+`${s}enumerable:${a}true,${h}`+`${s}get:${a}function${a}()${a}{${h}`+`${s}${s}return ${t};${h}${s}}${h}});`:`exports.${n.reexported}${a}=${a}${t};`}else"*"!==n.reexported&&(u&&!i&&(u+="\n"),u+=`exports.${n.reexported}${a}=${a}${e};`);else{const s=t&&t.some(e=>"default"!==e.imported)||o&&o.some(e=>"default"!==e.imported&&"*"!==e.imported),h=o&&o.some(e=>"default"===e.imported&&"default"===e.reexported);u&&!i&&(u+="\n"),u+=s||h?`exports.${n.reexported}${a}=${a}${e}${!1!==r?"__default":".default"};`:`exports.${n.reexported}${a}=${a}${e};`}})}),e.forEach(e=>{const t=`exports.${e.exported}`,n=e.local;t!==n&&(u&&!i&&(u+="\n"),u+=`${t}${a}=${a}${n};`)}),u}function go(e,t,n){return e.map(({name:e,exportsNames:r,exportsDefault:i,namedExportsMode:s})=>{if(s)return i&&!1!==t.interop?r?t.compact?`${n} ${e}__default='default'in ${e}?${e}['default']:${e};`:`${n} ${e}__default = 'default' in ${e} ? ${e}['default'] : ${e};`:t.compact?`${e}=${e}&&${e}.hasOwnProperty('default')?${e}['default']:${e};`:`${e} = ${e} && ${e}.hasOwnProperty('default') ? ${e}['default'] : ${e};`:null}).filter(Boolean).join(t.compact?"":"\n")}function yo(e,t,n){return`function ${ro}(e)${e}{${t}`+`${n}if${e}(e${e}&&${e}e.__esModule)${e}{${e}return e;${e}}${e}else${e}{${t}`+`${n}${n}var n${e}=${e}{};${t}`+`${n}${n}if${e}(e)${e}{${t}`+`${n}${n}${n}Object.keys(e).forEach(function${e}(k)${e}{${t}`+`${n}${n}${n}${n}var d${e}=${e}Object.getOwnPropertyDescriptor(e,${e}k);${t}`+`${n}${n}${n}${n}Object.defineProperty(n,${e}k,${e}d.get${e}?${e}d${e}:${e}{${t}`+`${n}${n}${n}${n}${n}enumerable:${e}true,${t}`+`${n}${n}${n}${n}${n}get:${e}function${e}()${e}{${t}`+`${n}${n}${n}${n}${n}${n}return e[k];${t}`+`${n}${n}${n}${n}${n}}${t}`+`${n}${n}${n}${n}});${t}`+`${n}${n}${n}});${t}`+`${n}${n}}${t}`+`${n}${n}n['default']${e}=${e}e;${t}`+`${n}${n}return n;${t}`+`${n}}${t}`+`}${t}${t}`}const vo={assert:!0,buffer:!0,console:!0,constants:!0,domain:!0,events:!0,http:!0,https:!0,os:!0,path:!0,process:!0,punycode:!0,querystring:!0,stream:!0,string_decoder:!0,timers:!0,tty:!0,url:!0,util:!0,vm:!0,zlib:!0};function xo(e,t){const n=t.map(({id:e})=>e).filter(e=>e in vo);n.length&&e({code:"MISSING_NODE_BUILTINS",message:`Creating a browser bundle that depends on Node.js built-in ${1===n.length?`module ('${n[0]}')`:`modules (${n.slice(0,-1).map(e=>`'${e}'`).join(", ")} and '${n.slice(-1)}')`}. You might need to include https://www.npmjs.com/package/rollup-plugin-node-builtins`,modules:n})}function Eo(e){return e.replace(/^\t+/,e=>e.split("\t").join(" "))}function _o(e,t,n){let r=e.split("\n");const i=Math.max(0,t-3);let s=Math.min(t+2,r.length);for(r=r.slice(i,s);!/\S/.test(r[r.length-1]);)r.pop(),s-=1;const o=String(s).length;return r.map((e,r)=>{const s=i+r+1===t;let a=String(r+i+1);for(;a.length<o;)a=` ${a}`;if(s){const t=function(e){let t="";for(;e--;)t+=" ";return t}(o+2+Eo(e.slice(0,n)).length)+"^";return`${a}: ${Eo(e)}\n${t}`}return`${a}: ${Eo(e)}`}).join("\n")}function bo(e){const t=lt(e);return t.substr(0,t.length-dt(e).length)}function Ao(e){return"undefined"!=typeof process&&ht(e)?ft(process.cwd(),e):e}function So(e){return!("/"===e[0]||"."===e[1]&&("/"===e[2]||"."===e[2]&&"/"===e[3]))}function wo(e,t){throw e instanceof Error==!1&&(e=Object.assign(new Error(e.message),e)),t&&Object.assign(e,t),e}function Io(e,t,n,r){if("object"==typeof t){const{line:n,column:i}=t;e.loc={file:r,line:n,column:i}}else{e.pos=t;const{line:i,column:s}=bt(n,t,{offsetLine:1});e.loc={file:r,line:i,column:s}}if(void 0===e.frame){const{line:t,column:r}=e.loc;e.frame=_o(n,t,r)}}var Po;function Co(e){return Object.assign({code:Po.DEPRECATED_FEATURE},"string"==typeof e?{message:e}:e)}function ko(e,t,n){return{code:Po.INVALID_CHUNK,message:`Cannot assign ${Ao(e)} to the "${t}" chunk as it is already in the "${n}" chunk.`}}function $o(e,t,n){return{code:Po.NAMESPACE_CONFLICT,message:`Conflicting namespaces: ${Ao(t.id)} re-exports '${e}' from both ${Ao(t.exportsAll[e])} and ${Ao(n.exportsAll[e])} (will be ignored)`,name:e,reexporter:t.id,sources:[t.exportsAll[e],n.exportsAll[e]]}}!function(e){e.ASSET_NOT_FINALISED="ASSET_NOT_FINALISED",e.ASSET_NOT_FOUND="ASSET_NOT_FOUND",e.ASSET_SOURCE_ALREADY_SET="ASSET_SOURCE_ALREADY_SET",e.ASSET_SOURCE_MISSING="ASSET_SOURCE_MISSING",e.BAD_LOADER="BAD_LOADER",e.CHUNK_NOT_FOUND="CHUNK_NOT_FOUND",e.CHUNK_NOT_GENERATED="CHUNK_NOT_GENERATED",e.DEPRECATED_FEATURE="DEPRECATED_FEATURE",e.INVALID_ASSET_NAME="INVALID_ASSET_NAME",e.INVALID_CHUNK="INVALID_CHUNK",e.INVALID_EXTERNAL_ID="INVALID_EXTERNAL_ID",e.INVALID_OPTION="INVALID_OPTION",e.INVALID_PLUGIN_HOOK="INVALID_PLUGIN_HOOK",e.INVALID_ROLLUP_PHASE="INVALID_ROLLUP_PHASE",e.NAMESPACE_CONFLICT="NAMESPACE_CONFLICT",e.UNRESOLVED_ENTRY="UNRESOLVED_ENTRY",e.UNRESOLVED_IMPORT="UNRESOLVED_IMPORT"}(Po||(Po={}));const No=/^[a-zA-Z$_][a-zA-Z0-9$_]*$/;function Ro(e){return No.test(e)?`.${e}`:`['${e}']`}function Oo(e){return e.split(".").map(Ro).join("")}function Mo(e,t,n,r,i){const s=r?"":" ",o=e.split(".");n&&(o[0]=("function"==typeof n?n(o[0]):n[o[0]])||o[0]);const a=o.pop();let h=t,u=o.map(e=>(h+=Ro(e),`${h}${s}=${s}${h}${s}||${s}{}`)).concat(`${h}${Ro(a)}`).join(`,${s}`).concat(`${s}=${s}${i}`);return o.length>0&&(u=`(${u})`),u}function Do(e){let t=e.length;for(;t--;){const n=e[t];if(n.exportsDefault||n.exportsNames)return e.slice(0,t+1)}return[]}const To=e=>`this${Oo(e)}`;const Lo=(e,t,n,r,i)=>e?`${i}${r}${t} _starExcludes${n}=${n}{${n}${Array.from(e).join(`:${n}1,${n}`)}${e.size?`:${n}1`:""}${n}};`:"",Vo=(e,t,n,r)=>e.length?`${r}${n}var ${e.join(`,${t}`)};`:"";function Bo(e,t,n,r){return 0===e.length?"":1===e.length?`${n}${n}${n}exports('${e[0].name}',${t}${e[0].value});${r}${r}`:`${n}${n}${n}exports({${r}`+e.map(({name:e,value:r})=>`${n}${n}${n}${n}${e}:${t}${r}`).join(`,${r}`)+`${r}${n}${n}${n}});${r}${r}`}const zo=(e,t,n,r)=>Bo(e.filter(e=>e.hoisted||e.uninitialized).map(e=>({name:e.exported,value:e.uninitialized?"void 0":e.local})),t,n,r),jo=(e,t,n,r)=>Bo(e.filter(e=>e.local===to).map(e=>({name:e.exported,value:to})),t,n,r);function Wo(e,t){return e?`${t}${Oo(e)}`:"null"}var Uo={system:function(e,{accessedGlobals:t,dependencies:n,exports:r,hasExports:i,indentString:s,intro:o,outro:a,usesTopLevelAwait:h,varOrConst:u},c){const l=c.compact?"":"\n",p=c.compact?"":" ",d=n.map(e=>`'${e.id}'`),f=[];let m;const g=[];n.forEach(({imports:e,reexports:t})=>{const i=[];if(e&&e.forEach(e=>{f.push(e.local),"*"===e.imported?i.push(`${e.local}${p}=${p}module;`):i.push(`${e.local}${p}=${p}module.${e.imported};`)}),t){let e=!1;t.length>1||1===t.length&&("*"===t[0].reexported||"*"===t[0].imported)?(t.forEach(t=>{"*"===t.reexported&&(m||(m=function({dependencies:e,exports:t}){const n=new Set(t.map(e=>e.exported));return n.has("default")||n.add("default"),e.forEach(({reexports:e})=>{e&&e.forEach(e=>{"*"===e.imported||n.has(e.reexported)||n.add(e.reexported)})}),n}({dependencies:n,exports:r})),e||(i.push(`${u} _setter${p}=${p}{};`),e=!0),i.push(`for${p}(var _$p${p}in${p}module)${p}{`),i.push(`${s}if${p}(!_starExcludes[_$p])${p}_setter[_$p]${p}=${p}module[_$p];`),i.push("}"))}),t.forEach(e=>{"*"===e.imported&&"*"!==e.reexported&&i.push(`exports('${e.reexported}',${p}module);`)}),t.forEach(t=>{"*"!==t.reexported&&"*"!==t.imported&&(e||(i.push(`${u} _setter${p}=${p}{};`),e=!0),i.push(`_setter.${t.reexported}${p}=${p}module.${t.imported};`))}),e&&i.push("exports(_setter);")):t.forEach(e=>{i.push(`exports('${e.reexported}',${p}module.${e.imported});`)})}g.push(i.join(`${l}${s}${s}${s}`))});const y=c.name?`'${c.name}',${p}`:"",v=t.has("module")?`exports,${p}module`:i?"exports":"";let x=`System.register(${y}[`+d.join(`,${p}`)+`],${p}function${p}(${v})${p}{${l}${s}'use strict';`+Lo(m,u,p,s,l)+Vo(f,p,s,l)+`${l}${s}return${p}{${g.length?`${l}${s}${s}setters:${p}[${g.map(e=>e?`function${p}(module)${p}{${l}${s}${s}${s}${e}${l}${s}${s}}`:`function${p}()${p}{}`).join(`,${p}`)}],`:""}${l}`;x+=`${s}${s}execute:${p}${h?`async${p}`:""}function${p}()${p}{${l}${l}`+zo(r,p,s,l);const E=`${l}${l}`+jo(r,p,s,l)+`${s}${s}}${l}${s}}${c.compact?"":";"}${l}});`;return o&&e.prepend(o),a&&e.append(a),e.indent(`${s}${s}${s}`).append(E).prepend(x)},amd:function(e,{accessedGlobals:t,dependencies:n,exports:r,hasExports:i,indentString:s,intro:o,isEntryModuleFacade:a,namedExportsMode:h,outro:u,varOrConst:c,warn:l},p){xo(l,n);const d=n.map(e=>`'${function(e){return"."===e[0]&&e.endsWith(".js")?e.slice(0,-3):e}(e.id)}'`),f=n.map(e=>e.name),m=p.compact?"":"\n",g=p.compact?"":" ";h&&i&&(f.unshift("exports"),d.unshift("'exports'")),t.has("require")&&(f.unshift("require"),d.unshift("'require'")),t.has("module")&&(f.unshift("module"),d.unshift("'module'"));const y=p.amd||{},v=(y.id?`'${y.id}',${g}`:"")+(d.length?`[${d.join(`,${g}`)}],${g}`:""),x=!1!==p.strict?`${g}'use strict';`:"",E=`${y.define||"define"}(${v}function${g}(${f.join(`,${g}`)})${g}{${x}${m}${m}`,_=go(n,p,c);_&&e.prepend(_+m+m),t.has(ro)&&e.prepend(yo(g,m,s)),o&&e.prepend(o);const b=mo(r,n,h,p.interop,p.compact,s);return b&&e.append(m+m+b),h&&i&&a&&p.esModule&&e.append(`${m}${m}${p.compact?fo:po}`),u&&e.append(u),e.indent(s).append(m+m+"});").prepend(E)},cjs:function(e,{accessedGlobals:t,dependencies:n,exports:r,hasExports:i,indentString:s,intro:o,isEntryModuleFacade:a,namedExportsMode:h,outro:u,varOrConst:c},l){const p=l.compact?"":"\n",d=l.compact?"":" ";o=(!1===l.strict?o:`'use strict';${p}${p}${o}`)+(h&&i&&a&&l.esModule?`${l.compact?fo:po}${p}${p}`:"");let f=!1;const m=!1!==l.interop;let g,y=!1;g="";for(const{id:e,namedExportsMode:t,isChunk:r,name:i,reexports:s,imports:o,exportsNames:a,exportsDefault:h}of n)s||o?(g+=l.compact&&y?",":`${g?`;${p}`:""}${c} `,y=!0,m&&!r&&h&&t?(f=!0,g+=a?`${i}${d}=${d}require('${e}')${l.compact?",":`;\n${c} `}${i}__default${d}=${d}${no}(${i})`:`${i}${d}=${d}${no}(require('${e}'))`):g+=`${i}${d}=${d}require('${e}')`):(g&&(g+=!l.compact||y?`;${p}`:","),y=!1,g+=`require('${e}')`);if(g&&(g+=";"),f){const e=l.compact?"e":"ex";o+=`function ${no}${d}(${e})${d}{${d}return${d}`+`(${e}${d}&&${d}(typeof ${e}${d}===${d}'object')${d}&&${d}'default'${d}in ${e})${d}`+`?${d}${e}['default']${d}:${d}${e}${l.compact?"":"; "}}${p}${p}`}t.has(ro)&&(o+=yo(d,p,s)),g&&(o+=g+p+p);const v=mo(r,n,h,l.interop,l.compact,s,`module.exports${d}=${d}`);return e.prepend(o),v&&e.append(p+p+v),u&&e.append(u),e},es:function(e,{intro:t,outro:n,dependencies:r,exports:i},s){const o=s.compact?"":" ",a=s.compact?"":"\n",h=r.map(({id:e,reexports:t,imports:n,name:r})=>{if(!t&&!n)return`import${o}'${e}';`;let i="";if(n){const t=n.find(e=>"default"===e.imported),r=n.find(e=>"*"===e.imported);r&&(i+=`import${o}*${o}as ${r.local} from${o}'${e}';`,n.length>1&&(i+=a)),t&&1===n.length?i+=`import ${t.local} from${o}'${e}';`:(!r||n.length>1)&&(i+=`import ${t?`${t.local},${o}`:""}{${o}${n.filter(e=>e!==t&&e!==r).map(e=>e.imported===e.local?e.imported:`${e.imported} as ${e.local}`).join(`,${o}`)}${o}}${o}from${o}'${e}';`)}if(t){n&&(i+=a);const s=t.find(e=>"*"===e.reexported),h=t.find(e=>"*"===e.imported&&"*"!==e.reexported);if(s){if(i+=`export${o}*${o}from${o}'${e}';`,1===t.length)return i;i+=a}if(h){if(n&&n.some(e=>"*"===e.imported&&e.local===r)||(i+=`import${o}*${o}as ${r} from${o}'${e}';${a}`),i+=`export${o}{${o}${r===h.reexported?r:`${r} as ${h.reexported}`} };`,t.length===(s?2:1))return i;i+=a}i+=`export${o}{${o}${t.filter(e=>e!==s&&e!==h).map(e=>e.imported===e.reexported?e.imported:`${e.imported} as ${e.reexported}`).join(`,${o}`)}${o}}${o}from${o}'${e}';`}return i}).join(a);h&&(t+=h+a+a),t&&e.prepend(t);const u=[],c=[];return i.forEach(e=>{"default"===e.exported?u.push(`export default ${e.local};`):c.push(e.exported===e.local?e.local:`${e.local} as ${e.exported}`)}),c.length&&u.push(`export${o}{${o}${c.join(`,${o}`)}${o}};`),u.length&&e.append(a+a+u.join(a).trim()),n&&e.append(n),e.trim()},iife:function(e,{dependencies:t,exports:n,hasExports:r,indentString:i,intro:s,namedExportsMode:o,outro:a,varOrConst:h,warn:u},c){const l=c.compact?"":" ",p=c.compact?"":"\n",{extend:d,name:f}=c,m=f&&-1!==f.indexOf("."),g=!d&&!m;var y;f&&g&&(it(y=f)||nt[y]||rt.test(y))&&wo({code:"ILLEGAL_IDENTIFIER_AS_NAME",message:`Given name (${f}) is not legal JS identifier. If you need this you can try --extend option`}),xo(u,t);const v=Do(t),x=v.map(e=>e.globalName||"null"),E=v.map(e=>e.name);r&&!f&&wo({code:"INVALID_OPTION",message:'You must supply "output.name" for IIFE bundles.'}),o&&r&&(d?(x.unshift(`${To(f)}${l}=${l}${To(f)}${l}||${l}{}`),E.unshift("exports")):(x.unshift("{}"),E.unshift("exports")));const _=!1!==c.strict?`${i}'use strict';${p}${p}`:"";let b=`(function${l}(${E.join(`,${l}`)})${l}{${p}${_}`;!r||d&&o||(b=(g?`${h} ${f}`:To(f))+`${l}=${l}${b}`),m&&r&&(b=function(e,t,n,r){const i=e.split(".");n&&(i[0]=("function"==typeof n?n(i[0]):n[i[0]])||i[0]);const s=r?"":" ";i.pop();let o=t;return i.map(e=>(o+=Ro(e),`${o}${s}=${s}${o}${s}||${s}{}${r?"":";"}`)).join(r?",":"\n")+(r&&i.length?";":"\n")}(f,"this",c.globals,c.compact)+b);let A=`${p}${p}}(${x.join(`,${l}`)}));`;!d&&o&&r&&(A=`${p}${p}${i}return exports;${A}`);const S=go(t,c,h);S&&e.prepend(S+p+p),s&&e.prepend(s);const w=mo(n,t,o,c.interop,c.compact,i);return w&&e.append(p+p+w),a&&e.append(a),e.indent(i).prepend(b).append(A)},umd:function(e,{dependencies:t,exports:n,hasExports:r,indentString:i,intro:s,namedExportsMode:o,outro:a,varOrConst:h,warn:u},c){const l=c.compact?"":" ",p=c.compact?"":"\n",d=c.compact?"f":"factory",f=c.compact?"g":"global";r&&!c.name&&wo({code:"INVALID_OPTION",message:'You must supply "output.name" for UMD bundles.'}),xo(u,t);const m=t.map(e=>`'${e.id}'`),g=t.map(e=>`require('${e.id}')`),y=Do(t),v=y.map(e=>Wo(e.globalName,f)),x=y.map(e=>e.name);o&&(r||!0===c.noConflict)&&(m.unshift("'exports'"),g.unshift("exports"),v.unshift(Mo(c.name,f,c.globals,c.compact,`${c.extend?`${Wo(c.name,f)}${l}||${l}`:""}{}`)),x.unshift("exports"));const E=c.amd||{},_=(E.id?`'${E.id}',${l}`:"")+(m.length?`[${m.join(`,${l}`)}],${l}`:""),b=E.define||"define",A=!o&&r?`module.exports${l}=${l}`:"",S=!1!==c.strict?`${l}'use strict';${p}`:"";let w;if(!0===c.noConflict){const e=c.compact?"e":"exports";let t;!o&&r?t=`var ${e}${l}=${l}${Mo(c.name,f,c.globals,c.compact,`${d}(${v.join(`,${l}`)})`)};`:o&&(t=`var ${e}${l}=${l}${v.shift()};${p}`+`${i}${i}${d}(${[e].concat(v).join(`,${l}`)});`),w=`(function${l}()${l}{${p}`+`${i}${i}var current${l}=${l}${function(e,t,n){const r=e.split(".");let i=t;return r.map(e=>(i+=Ro(e),i)).join(`${n}&&${n}`)}(c.name,f,l)};${p}`+`${i}${i}${t}${p}`+`${i}${i}${e}.noConflict${l}=${l}function${l}()${l}{${l}`+`${Wo(c.name,f)}${l}=${l}current;${l}return ${e}${c.compact?"":"; "}};${p}`+`${i}}())`}else w=`${d}(${v.join(`,${l}`)})`,!o&&r&&(w=Mo(c.name,f,c.globals,c.compact,w));const I=r||!0===c.noConflict&&o||v.length>0,P=I?`this,${l}`:"",C=I?`(${f}${l}=${l}${f}${l}||${l}self,${l}`:"",k=I?")":"",$=`(function${l}(${I?`${f},${l}`:""}${d})${l}{${p}`+(I?`${i}typeof exports${l}===${l}'object'${l}&&${l}typeof module${l}!==${l}'undefined'${l}?`+`${l}${A}${d}(${g.join(`,${l}`)})${l}:${p}`:"")+`${i}typeof ${b}${l}===${l}'function'${l}&&${l}${b}.amd${l}?${l}${b}(${_}${d})${l}:${p}`+`${i}${C}${w}${k};${p}`+`}(${P}function${l}(${x.join(", ")})${l}{${S}${p}`,N=p+p+"}));",R=go(t,c,h);R&&e.prepend(R+p+p),s&&e.prepend(s);const O=mo(n,t,o,c.interop,c.compact,i);return O&&e.append(p+p+O),o&&r&&c.esModule&&e.append(p+p+(c.compact?fo:po)),a&&e.append(a),e.trim().indent(i).append(N).prepend($)}};const Fo={ArrayPattern(e,t){for(const n of t.elements)n&&Fo[n.type](e,n)},AssignmentPattern(e,t){Fo[t.left.type](e,t.left)},Identifier(e,t){e.push(t.name)},MemberExpression(){},ObjectPattern(e,t){for(const n of t.properties)"RestElement"===n.type?Fo.RestElement(e,n):Fo[n.value.type](e,n.value)},RestElement(e,t){Fo[t.argument.type](e,t.argument)}},qo=function(e){const t=[];return Fo[e.type](t,e),t};class Go extends _t{addDeclaration(e,t,n=null,r=!1){return r?this.parent.addDeclaration(e,t,Ie,!0):super.addDeclaration(e,t,n,!1)}}class Ho extends zs{addImplicitReturnExpressionToScope(){const e=this.body[this.body.length-1];e&&e.type===oe||this.scope.addReturnExpression(Ie)}createScope(e){this.scope=this.parent.preventChildBlockScope?e:new Go(e)}hasEffects(e){for(const t of this.body)if(t.hasEffects(e))return!0;return!1}include(e){this.included=!0;for(const t of this.body)(e||t.shouldBeIncluded())&&t.include(e)}render(e,t){this.body.length?de(this.body,e,this.start+1,this.end-1,t):super.render(e,t)}}class Ko extends zs{createScope(e){this.scope=new Gs(e,this.context)}deoptimizePath(e){1===e.length&&e[0]===_e&&this.scope.getReturnExpression().deoptimizePath(Ae)}getReturnExpressionWhenCalledAtPath(e){return 0===e.length?this.scope.getReturnExpression():Ie}hasEffects(e){return!1}hasEffectsWhenAccessedAtPath(e,t){return e.length>1}hasEffectsWhenAssignedAtPath(e,t){return e.length>1}hasEffectsWhenCalledAtPath(e,t,n){if(e.length>0)return!0;for(const e of this.params)if(e.hasEffects(n))return!0;return this.body.hasEffects(n)}include(e){this.included=!0,this.body.include(e);for(const t of this.params)t instanceof Ks||t.include(e)}includeCallArguments(e){this.scope.includeCallArguments(e)}initialise(){this.scope.addParameterVariables(this.params.map(e=>e.declare("parameter",Ie)),this.params[this.params.length-1]instanceof Ys),this.body instanceof Ho?this.body.addImplicitReturnExpressionToScope():this.scope.addReturnExpression(this.body)}parseNode(e){e.body.type===X&&(this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope.hoistedBodyVarScope)),super.parseNode(e)}}function Yo(e){return 1===e.length?`exports('${e[0].safeExportName||e[0].exportName}', ${e[0].getName()});`:`exports({${e.map(e=>`${e.safeExportName||e.exportName}: ${e.getName()}`).join(", ")}});`}Ko.prototype.preventChildBlockScope=!0;const Xo={};class Qo{constructor(e=Ms.Map()){this.entityPaths=e}isTracked(e,t){return this.entityPaths.getIn([e,...t,Xo])}track(e,t){return new Qo(this.entityPaths.setIn([e,...t,Xo],!0))}}const Jo=new Qo;class Zo extends zs{initialise(){this.directive&&"use strict"!==this.directive&&this.parent.type===ie&&this.context.warn({code:"MODULE_LEVEL_DIRECTIVE",message:`Module level directives cause errors when bundled, '${this.directive}' was ignored.`},this.start)}render(e,t){super.render(e,t),this.included&&this.insertSemicolon(e)}shouldBeIncluded(){return this.directive&&"use strict"!==this.directive?this.parent.type!==ie:super.shouldBeIncluded()}}const ea={"!=":(e,t)=>e!=t,"!==":(e,t)=>e!==t,"%":(e,t)=>e%t,"&":(e,t)=>e&t,"*":(e,t)=>e*t,"**":(e,t)=>Math.pow(e,t),"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"<":(e,t)=>e<t,"<<":(e,t)=>e<<t,"<=":(e,t)=>e<=t,"==":(e,t)=>e==t,"===":(e,t)=>e===t,">":(e,t)=>e>t,">=":(e,t)=>e>=t,">>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t,"^":(e,t)=>e^t,in:()=>we,instanceof:()=>we,"|":(e,t)=>e|t};class ta extends qs{addDeclaration(e,t,n=null,r=!1){return r?this.parent.addDeclaration(e,t,n,!0):super.addDeclaration(e,t,n,!1)}}class na extends zs{createScope(e){this.scope=new ta(e,this.context)}initialise(){this.param&&this.param.declare("parameter",Ie)}parseNode(e){this.body=new this.context.nodeConstructors.BlockStatement(e.body,this,this.scope),super.parseNode(e)}}na.prototype.preventChildBlockScope=!0;class ra{constructor(e){this.included=!1,this.expressions=e}deoptimizePath(e){for(const t of this.expressions)t.deoptimizePath(e)}getLiteralValueAtPath(){return we}getReturnExpressionWhenCalledAtPath(e,t,n){return new ra(this.expressions.map(r=>r.getReturnExpressionWhenCalledAtPath(e,t,n)))}hasEffectsWhenAccessedAtPath(e,t){for(const n of this.expressions)if(n.hasEffectsWhenAccessedAtPath(e,t))return!0;return!1}hasEffectsWhenAssignedAtPath(e,t){for(const n of this.expressions)if(n.hasEffectsWhenAssignedAtPath(e,t))return!0;return!1}hasEffectsWhenCalledAtPath(e,t,n){for(const r of this.expressions)if(r.hasEffectsWhenCalledAtPath(e,t,n))return!0;return!1}include(){}includeCallArguments(e){for(const t of this.expressions)t.includeCallArguments(e)}}class ia extends zs{hasEffects(){return!1}initialise(){this.context.addExport(this)}render(e,t,{start:n,end:r}=Y){e.remove(n,r)}}ia.prototype.needsBoundaries=!0;class sa extends zs{bind(){null!==this.declaration&&this.declaration.bind()}hasEffects(e){return null!==this.declaration&&this.declaration.hasEffects(e)}initialise(){this.context.addExport(this)}render(e,t,{start:n,end:r}=Y){null===this.declaration?e.remove(n,r):(e.remove(this.start,this.declaration.start),this.declaration.render(e,t,{start:n,end:r}))}}sa.prototype.needsBoundaries=!0;class oa extends zs{bind(){}hasEffects(){return!1}initialise(){this.context.addImport(this)}render(e,t,{start:n,end:r}=Y){e.remove(n,r)}}oa.prototype.needsBoundaries=!0;class aa extends zs{getLiteralValueAtPath(e){return e.length>0||null===this.value&&110!==this.context.code.charCodeAt(this.start)||"bigint"==typeof this.value||47===this.context.code.charCodeAt(this.start)?we:this.value}getReturnExpressionWhenCalledAtPath(e){return 1!==e.length?Ie:Qe(this.members,e[0])}hasEffectsWhenAccessedAtPath(e){return null===this.value?e.length>0:e.length>1}hasEffectsWhenAssignedAtPath(e){return e.length>0}hasEffectsWhenCalledAtPath(e,t,n){return 1!==e.length||Xe(this.members,e[0],this.included,t,n)}initialise(){this.members=function(e){switch(typeof e){case"boolean":return He;case"number":return Ke;case"string":return Ye;default:return Object.create(null)}}(this.value)}render(e,t){"string"==typeof this.value&&e.indentExclusionRanges.push([this.start+1,this.end-1])}}function ha(e){return e.computed?function(e){if(e instanceof aa)return String(e.value);return null}(e.property):e.property.name}class ua extends zs{constructor(){super(...arguments),this.variable=null,this.bound=!1,this.expressionsToBeDeoptimized=[],this.replacement=null}addExportedVariables(){}bind(){if(this.bound)return;this.bound=!0;const e=function e(t){const n=t.propertyKey,r=t.object;if("string"==typeof n){if(r instanceof Ks)return[{key:r.name,pos:r.start},{key:n,pos:t.property.start}];if(r instanceof ua){const i=e(r);return i&&[...i,{key:n,pos:t.property.start}]}}return null}(this),t=e&&this.scope.findVariable(e[0].key);if(t&&t.isNamespace){const n=this.resolveNamespaceVariables(t,e.slice(1));n?"string"==typeof n?this.replacement=n:(n instanceof Ze&&n.module&&n.module.suggestName(e[0].key),this.variable=n,this.scope.addNamespaceMemberAccess(function(e){let t=e[0].key;for(let n=1;n<e.length;n++)t+="."+e[n].key;return t}(e),n)):super.bind()}else super.bind(),null===this.propertyKey&&this.analysePropertyKey()}deoptimizeCache(){for(const e of this.expressionsToBeDeoptimized)e.deoptimizeCache()}deoptimizePath(e){this.bound||this.bind(),0===e.length&&this.disallowNamespaceReassignment(),this.variable?this.variable.deoptimizePath(e):(null===this.propertyKey&&this.analysePropertyKey(),this.object.deoptimizePath([this.propertyKey,...e]))}getLiteralValueAtPath(e,t,n){return this.bound||this.bind(),null!==this.variable?this.variable.getLiteralValueAtPath(e,t,n):(null===this.propertyKey&&this.analysePropertyKey(),this.expressionsToBeDeoptimized.push(n),this.object.getLiteralValueAtPath([this.propertyKey,...e],t,n))}getReturnExpressionWhenCalledAtPath(e,t,n){return this.bound||this.bind(),null!==this.variable?this.variable.getReturnExpressionWhenCalledAtPath(e,t,n):(null===this.propertyKey&&this.analysePropertyKey(),this.expressionsToBeDeoptimized.push(n),this.object.getReturnExpressionWhenCalledAtPath([this.propertyKey,...e],t,n))}hasEffects(e){return this.property.hasEffects(e)||this.object.hasEffects(e)||this.context.propertyReadSideEffects&&this.object.hasEffectsWhenAccessedAtPath([this.propertyKey],e)}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null!==this.variable?this.variable.hasEffectsWhenAccessedAtPath(e,t):this.object.hasEffectsWhenAccessedAtPath([this.propertyKey,...e],t))}hasEffectsWhenAssignedAtPath(e,t){return null!==this.variable?this.variable.hasEffectsWhenAssignedAtPath(e,t):this.object.hasEffectsWhenAssignedAtPath([this.propertyKey,...e],t)}hasEffectsWhenCalledAtPath(e,t,n){return null!==this.variable?this.variable.hasEffectsWhenCalledAtPath(e,t,n):this.object.hasEffectsWhenCalledAtPath([this.propertyKey,...e],t,n)}include(e){this.included||(this.included=!0,null!==this.variable&&this.context.includeVariable(this.variable)),this.object.include(e),this.property.include(e)}includeCallArguments(e){this.variable?this.variable.includeCallArguments(e):super.includeCallArguments(e)}initialise(){this.propertyKey=ha(this)}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:r}=Y){const i=n===Q&&r;if(this.variable||this.replacement){let t=this.variable?this.variable.getName():this.replacement;i&&(t="0, "+t),e.overwrite(this.start,this.end,t,{contentOnly:!0,storeName:!0})}else i&&e.appendRight(this.start,"0, "),super.render(e,t)}analysePropertyKey(){this.propertyKey=_e;const e=this.property.getLiteralValueAtPath(be,Jo,this);this.propertyKey=e===we?_e:String(e)}disallowNamespaceReassignment(){this.object instanceof Ks&&this.scope.findVariable(this.object.name).isNamespace&&this.context.error({code:"ILLEGAL_NAMESPACE_REASSIGNMENT",message:`Illegal reassignment to import '${this.object.name}'`},this.start)}resolveNamespaceVariables(e,t){if(0===t.length)return e;if(!e.isNamespace)return null;const n=t[0].key,r=e instanceof Ze?e.module.getVariableForExportName(n):e.context.traceExport(n);if(!r){const r=e instanceof Ze?e.module.id:e.context.fileName;return this.context.warn({code:"MISSING_EXPORT",exporter:Ao(r),importer:Ao(this.context.fileName),message:`'${n}' is not exported by '${Ao(r)}'`,missing:n,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module-"},t[0].pos),"undefined"}return this.resolveNamespaceVariables(r,t.slice(1))}}const ca=e=>(...t)=>{throw new Error(`Cannot use fs.${e} inside browser`)},la=ca("lstatSync"),pa=ca("readdirSync"),da=ca("readFile"),fa=ca("realpathSync"),ma=ca("writeFile");function ga(e,t){try{const n=la(e);if(!t&&n.isSymbolicLink())return ga(fa(e),t);if(t&&n.isSymbolicLink()||n.isFile()){const t=lt(e);if(-1!==pa(pt(e)).indexOf(t))return e}}catch(e){}}function ya(e){return function(t,n){return"undefined"==typeof process&&wo({code:"MISSING_PROCESS",message:"It looks like you're using Rollup in a non-Node.js environment. This means you must supply a plugin with custom resolveId and load functions",url:"https://rollupjs.org/guide/en/#a-simple-example"}),void 0===n||ht(t)||"."===t[0]?function(e,t){let n=ga(e,t);return n||((n=ga(e+".mjs",t))?n:n=ga(e+".js",t))}(mt(n?pt(n):mt(),t),e):null}}const va=(e,t="URL")=>`new ${t}(${e}).href`,xa=e=>`(document.currentScript && document.currentScript.src || new URL('${e}', document.baseURI).href)`,Ea=e=>(t,n)=>{const r=e(n);return null===t?`({ url: ${r} })`:"url"===t?r:"undefined"},_a={amd:Ea(()=>va("module.uri, document.baseURI")),cjs:Ea(e=>`(typeof document === 'undefined' ? ${va("'file:' + __filename","(require('u' + 'rl').URL)")} : ${xa(e)})`),iife:Ea(e=>xa(e)),system:e=>null===e?"module.meta":`module.meta.${e}`,umd:Ea(e=>`(typeof document === 'undefined' ? ${va("'file:' + __filename","(require('u' + 'rl').URL)")} : ${xa(e)})`)},ba=e=>va(`'${e}', document.currentScript && document.currentScript.src || document.baseURI`),Aa={amd:e=>va(`require.toUrl('${e}'), document.baseURI`),cjs:e=>`(typeof document === 'undefined' ? ${va(`'file:' + __dirname + '/${e}'`,"(require('u' + 'rl').URL)")} : ${ba(e)})`,es:e=>va(`'${e}', import.meta.url`),iife:e=>ba(e),system:e=>va(`'${e}', module.meta.url`),umd:e=>`(typeof document === 'undefined' ? ${va(`'file:' + __dirname + '/${e}'`,"(require('u' + 'rl').URL)")} : ${ba(e)})`},Sa={amd:["document","module","URL"],cjs:["document","require","URL"],iife:["document","URL"],system:["module"],umd:["document","require","URL"]},wa={amd:["document","require","URL"],cjs:["document","require","URL"],iife:["document","URL"],system:["module","URL"],umd:["document","require","URL"]},Ia="ROLLUP_ASSET_URL_",Pa="ROLLUP_CHUNK_URL_";class Ca extends zs{bind(){super.bind(),this.argument.deoptimizePath([_e,_e])}}class ka extends zs{hasEffects(e){for(const t of this.body)if(t.hasEffects(e))return!0;return!1}include(e){this.included=!0;for(const t of this.body)(e||t.shouldBeIncluded())&&t.include(e)}render(e,t){this.body.length?de(this.body,e,this.start,this.end,t):super.render(e,t)}}class $a extends zs{getLiteralValueAtPath(e){return e.length>0||1!==this.quasis.length?we:this.quasis[0].value.cooked}render(e,t){e.indentExclusionRanges.push([this.start,this.end]),super.render(e,t)}}class Na extends _t{constructor(e,t){super(e),this.context=t,this.variables.set("this",new xt("this",null,Pe,t))}addExportDefaultDeclaration(e,t,n){const r=new eo(e,t,n);return this.variables.set("default",r),r}addNamespaceMemberAccess(e,t){t instanceof co&&this.accessedOutsideVariables.set(t.name,t)}deconflict(e){for(const t of this.children)t.deconflict(e)}findLexicalBoundary(){return this}findVariable(e){const t=this.variables.get(e)||this.accessedOutsideVariables.get(e);if(t)return t;const n=this.context.traceVariable(e)||this.parent.findVariable(e);return n instanceof co&&this.accessedOutsideVariables.set(e,n),n}}const Ra={"!":e=>!e,"+":e=>+e,"-":e=>-e,delete:()=>we,typeof:e=>typeof e,void:()=>void 0,"~":e=>~e};function Oa(e){return null!==e.renderBaseName&&null!==e.exportName&&e.isReassigned}const Ma={ArrayExpression:class extends zs{bind(){super.bind();for(const e of this.elements)null!==e&&e.deoptimizePath(Ae)}getReturnExpressionWhenCalledAtPath(e){return 1!==e.length?Ie:Qe(Ge,e[0])}hasEffectsWhenAccessedAtPath(e){return e.length>1}hasEffectsWhenCalledAtPath(e,t,n){return 1!==e.length||Xe(Ge,e[0],this.included,t,n)}},ArrayPattern:class extends zs{addExportedVariables(e){for(const t of this.elements)null!==t&&t.addExportedVariables(e)}declare(e,t){const n=[];for(const t of this.elements)null!==t&&n.push(...t.declare(e,Ie));return n}deoptimizePath(e){if(0===e.length)for(const t of this.elements)null!==t&&t.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){if(e.length>0)return!0;for(const e of this.elements)if(null!==e&&e.hasEffectsWhenAssignedAtPath(be,t))return!0;return!1}},ArrowFunctionExpression:Ko,AssignmentExpression:class extends zs{bind(){super.bind(),this.left.deoptimizePath(be),this.right.deoptimizePath(Ae)}hasEffects(e){return this.right.hasEffects(e)||this.left.hasEffects(e)||this.left.hasEffectsWhenAssignedAtPath(be,e)}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.right.hasEffectsWhenAccessedAtPath(e,t)}render(e,t){if(this.left.render(e,t),this.right.render(e,t),"system"===t.format)if(this.left.variable&&this.left.variable.exportName)e.prependLeft(e.original.indexOf("=",this.left.end)+1,` exports('${this.left.variable.exportName}',`),e.appendLeft(this.right.end,")");else if("addExportedVariables"in this.left){const t=[];this.left.addExportedVariables(t),t.length>0&&(e.prependRight(this.start,`function (v) {${Yo(t)} return v;} (`),e.appendLeft(this.end,")"))}}},AssignmentPattern:class extends zs{addExportedVariables(e){this.left.addExportedVariables(e)}bind(){super.bind(),this.left.deoptimizePath(be),this.right.deoptimizePath(Ae)}declare(e,t){return this.left.declare(e,t)}deoptimizePath(e){0===e.length&&this.left.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){return e.length>0||this.left.hasEffectsWhenAssignedAtPath(be,t)}render(e,t,{isShorthandProperty:n}=Y){this.left.render(e,t,{isShorthandProperty:n}),this.right.render(e,t)}},AwaitExpression:class extends zs{hasEffects(e){return super.hasEffects(e)||!e.ignoreReturnAwaitYield()}include(e){e:if(!this.included&&!this.context.usesTopLevelAwait){let e=this.parent;do{if(e instanceof Xs||e instanceof Ko)break e}while(e=e.parent);this.context.usesTopLevelAwait=!0}super.include(e)}render(e,t){super.render(e,t)}},BinaryExpression:class extends zs{deoptimizeCache(){}getLiteralValueAtPath(e,t,n){if(e.length>0)return we;const r=this.left.getLiteralValueAtPath(be,t,n);if(r===we)return we;const i=this.right.getLiteralValueAtPath(be,t,n);if(i===we)return we;const s=ea[this.operator];return s?s(r,i):we}hasEffects(e){return"+"===this.operator&&this.parent instanceof Zo&&""===this.left.getLiteralValueAtPath(be,Jo,this)||super.hasEffects(e)}hasEffectsWhenAccessedAtPath(e,t){return e.length>1}},BlockStatement:Ho,BreakStatement:class extends zs{hasEffects(e){return super.hasEffects(e)||!e.ignoreBreakStatements()||null!==this.label&&!e.ignoreLabel(this.label.name)}},CallExpression:class extends zs{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.returnExpression=null}bind(){super.bind(),this.callee instanceof Ks&&(this.scope.findVariable(this.callee.name).isNamespace&&this.context.error({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${this.callee.name}')`},this.start),"eval"===this.callee.name&&this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://rollupjs.org/guide/en/#avoiding-eval"},this.start)),null===this.returnExpression&&(this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(be,Jo,this));for(const e of this.arguments)e.deoptimizePath(Ae)}deoptimizeCache(){if(this.returnExpression!==Ie){this.returnExpression=Ie;for(const e of this.expressionsToBeDeoptimized)e.deoptimizeCache()}}deoptimizePath(e){e.length>0&&!this.context.deoptimizationTracker.track(this,e)&&(null===this.returnExpression&&(this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(be,Jo,this)),this.returnExpression.deoptimizePath(e))}getLiteralValueAtPath(e,t,n){return null===this.returnExpression&&(this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(be,t,this)),this.returnExpression===Ie||t.isTracked(this.returnExpression,e)?we:(this.expressionsToBeDeoptimized.push(n),this.returnExpression.getLiteralValueAtPath(e,t.track(this.returnExpression,e),n))}getReturnExpressionWhenCalledAtPath(e,t,n){return null===this.returnExpression&&(this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(be,t,this)),this.returnExpression===Ie||t.isTracked(this.returnExpression,e)?Ie:(this.expressionsToBeDeoptimized.push(n),this.returnExpression.getReturnExpressionWhenCalledAtPath(e,t.track(this.returnExpression,e),n))}hasEffects(e){for(const t of this.arguments)if(t.hasEffects(e))return!0;return(!this.context.annotations||!this.annotatedPure)&&(this.callee.hasEffects(e)||this.callee.hasEffectsWhenCalledAtPath(be,this.callOptions,e.getHasEffectsWhenCalledOptions()))}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&!t.hasReturnExpressionBeenAccessedAtPath(e,this)&&this.returnExpression.hasEffectsWhenAccessedAtPath(e,t.addAccessedReturnExpressionAtPath(e,this))}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||!t.hasReturnExpressionBeenAssignedAtPath(e,this)&&this.returnExpression.hasEffectsWhenAssignedAtPath(e,t.addAssignedReturnExpressionAtPath(e,this))}hasEffectsWhenCalledAtPath(e,t,n){return!n.hasReturnExpressionBeenCalledAtPath(e,this)&&this.returnExpression.hasEffectsWhenCalledAtPath(e,t,n.addCalledReturnExpressionAtPath(e,this))}include(e){e?(super.include(e),e===Vs&&this.callee instanceof Ks&&this.callee.variable&&this.callee.variable.markCalledFromTryStatement()):(this.included=!0,this.callee.include(!1)),this.callee.includeCallArguments(this.arguments),this.returnExpression.included||this.returnExpression.include(!1)}initialise(){this.callOptions=Ee.create({args:this.arguments,callIdentifier:this,withNew:!1})}render(e,t,{renderedParentType:n}=Y){if(this.callee.render(e,t),this.arguments.length>0)if(this.arguments[this.arguments.length-1].included)for(const n of this.arguments)n.render(e,t);else{let n=this.arguments.length-2;for(;n>=0&&!this.arguments[n].included;)n--;if(n>=0){for(let r=0;r<=n;r++)this.arguments[r].render(e,t);e.remove(le(e.original,",",this.arguments[n].end),this.end-1)}else e.remove(le(e.original,"(",this.callee.end)+1,this.end-1)}n===Z&&this.callee.type===ee&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}},CatchClause:na,ClassBody:class extends zs{hasEffectsWhenCalledAtPath(e,t,n){return e.length>0||null!==this.classConstructor&&this.classConstructor.hasEffectsWhenCalledAtPath(be,t,n)}initialise(){for(const e of this.body)if("constructor"===e.kind)return void(this.classConstructor=e);this.classConstructor=null}},ClassDeclaration:Ws,ClassExpression:class extends js{},ConditionalExpression:class extends zs{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.unusedBranch=null,this.usedBranch=null}bind(){super.bind(),this.isBranchResolutionAnalysed||this.analyseBranchResolution()}deoptimizeCache(){if(null!==this.usedBranch){this.usedBranch=null,this.unusedBranch.deoptimizePath(Ae);for(const e of this.expressionsToBeDeoptimized)e.deoptimizeCache()}}deoptimizePath(e){e.length>0&&(this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?(this.consequent.deoptimizePath(e),this.alternate.deoptimizePath(e)):this.usedBranch.deoptimizePath(e))}getLiteralValueAtPath(e,t,n){return this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?we:(this.expressionsToBeDeoptimized.push(n),this.usedBranch.getLiteralValueAtPath(e,t,n))}getReturnExpressionWhenCalledAtPath(e,t,n){return this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?new ra([this.consequent.getReturnExpressionWhenCalledAtPath(e,t,n),this.alternate.getReturnExpressionWhenCalledAtPath(e,t,n)]):(this.expressionsToBeDeoptimized.push(n),this.usedBranch.getReturnExpressionWhenCalledAtPath(e,t,n))}hasEffects(e){return!!this.test.hasEffects(e)||(null===this.usedBranch?this.consequent.hasEffects(e)||this.alternate.hasEffects(e):this.usedBranch.hasEffects(e))}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null===this.usedBranch?this.consequent.hasEffectsWhenAccessedAtPath(e,t)||this.alternate.hasEffectsWhenAccessedAtPath(e,t):this.usedBranch.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||(null===this.usedBranch?this.consequent.hasEffectsWhenAssignedAtPath(e,t)||this.alternate.hasEffectsWhenAssignedAtPath(e,t):this.usedBranch.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,n){return null===this.usedBranch?this.consequent.hasEffectsWhenCalledAtPath(e,t,n)||this.alternate.hasEffectsWhenCalledAtPath(e,t,n):this.usedBranch.hasEffectsWhenCalledAtPath(e,t,n)}include(e){this.included=!0,e||null===this.usedBranch||this.test.shouldBeIncluded()?(this.test.include(e),this.consequent.include(e),this.alternate.include(e)):this.usedBranch.include(e)}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:r}=Y){if(this.test.included)super.render(e,t);else{const i=le(e.original,":",this.consequent.end);if(this.consequent.included){const t=le(e.original,"?",this.test.end);e.remove(this.start,t+1),e.remove(i,this.end)}else e.remove(this.start,i+1);ue(this,e),this.usedBranch.render(e,t,{isCalleeOfRenderedParent:n?r:this.parent.callee===this,renderedParentType:n||this.parent.type})}}analyseBranchResolution(){this.isBranchResolutionAnalysed=!0;const e=this.test.getLiteralValueAtPath(be,Jo,this);e!==we&&(e?(this.usedBranch=this.consequent,this.unusedBranch=this.alternate):(this.usedBranch=this.alternate,this.unusedBranch=this.consequent))}},DoWhileStatement:class extends zs{hasEffects(e){return this.test.hasEffects(e)||this.body.hasEffects(e.setIgnoreBreakStatements())}},EmptyStatement:class extends zs{hasEffects(){return!1}},ExportAllDeclaration:ia,ExportDefaultDeclaration:Zs,ExportNamedDeclaration:sa,ExpressionStatement:Zo,ForInStatement:class extends zs{bind(){this.left.bind(),this.left.deoptimizePath(be),this.right.bind(),this.body.bind()}createScope(e){this.scope=new Go(e)}hasEffects(e){return this.left&&(this.left.hasEffects(e)||this.left.hasEffectsWhenAssignedAtPath(be,e))||this.right&&this.right.hasEffects(e)||this.body.hasEffects(e.setIgnoreBreakStatements())}include(e){this.included=!0,this.left.includeWithAllDeclaredVariables(e),this.left.deoptimizePath(be),this.right.include(e),this.body.include(e)}render(e,t){this.left.render(e,t,ce),this.right.render(e,t,ce),this.body.render(e,t)}},ForOfStatement:class extends zs{bind(){this.left.bind(),this.left.deoptimizePath(be),this.right.bind(),this.body.bind()}createScope(e){this.scope=new Go(e)}hasEffects(e){return this.left&&(this.left.hasEffects(e)||this.left.hasEffectsWhenAssignedAtPath(be,e))||this.right&&this.right.hasEffects(e)||this.body.hasEffects(e.setIgnoreBreakStatements())}include(e){this.included=!0,this.left.includeWithAllDeclaredVariables(e),this.left.deoptimizePath(be),this.right.include(e),this.body.include(e)}render(e,t){this.left.render(e,t,ce),this.right.render(e,t,ce),this.body.render(e,t)}},ForStatement:class extends zs{createScope(e){this.scope=new Go(e)}hasEffects(e){return this.init&&this.init.hasEffects(e)||this.test&&this.test.hasEffects(e)||this.update&&this.update.hasEffects(e)||this.body.hasEffects(e.setIgnoreBreakStatements())}render(e,t){this.init&&this.init.render(e,t,ce),this.test&&this.test.render(e,t,ce),this.update&&this.update.render(e,t,ce),this.body.render(e,t)}},FunctionDeclaration:Qs,FunctionExpression:class extends Xs{},Identifier:Ks,IfStatement:class extends zs{constructor(){super(...arguments),this.isTestValueAnalysed=!1}bind(){super.bind(),this.isTestValueAnalysed||(this.testValue=we,this.isTestValueAnalysed=!0,this.testValue=this.test.getLiteralValueAtPath(be,Jo,this))}deoptimizeCache(){this.testValue=we}hasEffects(e){return!!this.test.hasEffects(e)||(this.testValue===we?this.consequent.hasEffects(e)||null!==this.alternate&&this.alternate.hasEffects(e):this.testValue?this.consequent.hasEffects(e):null!==this.alternate&&this.alternate.hasEffects(e))}include(e){if(this.included=!0,e)return this.test.include(e),this.consequent.include(e),void(null!==this.alternate&&this.alternate.include(e));const t=this.testValue===we;(t||this.test.shouldBeIncluded())&&this.test.include(!1),(t||this.testValue)&&this.consequent.shouldBeIncluded()&&this.consequent.include(!1),null===this.alternate||!t&&this.testValue||!this.alternate.shouldBeIncluded()||this.alternate.include(!1)}render(e,t){if(this.test.included||(this.testValue?null!==this.alternate&&this.alternate.included:this.consequent.included))this.test.included?this.test.render(e,t):e.overwrite(this.test.start,this.test.end,this.testValue?"true":"false"),this.consequent.included?this.consequent.render(e,t):e.overwrite(this.consequent.start,this.consequent.end,";"),null!==this.alternate&&(this.alternate.included?this.alternate.render(e,t):e.remove(this.consequent.end,this.alternate.end));else{const n=this.testValue?this.consequent:this.alternate;e.remove(this.start,n.start),e.remove(n.end,this.end),ue(this,e),n.render(e,t)}}},Import:class extends zs{constructor(){super(...arguments),this.exportMode="auto"}include(){this.included||(this.included=!0,this.context.includeDynamicImport(this))}initialise(){this.context.addDynamicImport(this)}render(e,t){if(this.inlineNamespace){const n=t.compact?"":" ",r=t.compact?"":";";return void e.overwrite(this.parent.start,this.parent.end,`Promise.resolve().then(function${n}()${n}{${n}return ${this.inlineNamespace.getName()}${r}${n}})`)}const n=this.getDynamicImportMechanism(t);n&&(e.overwrite(this.parent.start,le(e.original,"(",this.parent.callee.end)+1,n.left),e.overwrite(this.parent.end-1,this.parent.end,n.right))}renderFinalResolution(e,t,n){this.included&&("amd"===n&&t.startsWith("'.")&&t.endsWith(".js'")&&(t=t.slice(0,-4)+"'"),e.overwrite(this.parent.arguments[0].start,this.parent.arguments[0].end,t))}setResolution(e,t){this.exportMode=e,t?this.inlineNamespace=t:(this.scope.addAccessedGlobalsByFormat({amd:["require"],cjs:["require"],system:["module"]}),"auto"===e&&this.scope.addAccessedGlobalsByFormat({amd:[ro],cjs:[ro]}))}getDynamicImportMechanism(e){switch(e.format){case"cjs":{const t=e.compact?"":" ",n=e.compact?"c":"resolve";switch(this.exportMode){case"default":return{left:`new Promise(function${t}(${n})${t}{${t}${n}({${t}'default':${t}require(`,right:`)${t}});${t}})`};case"auto":return{left:`new Promise(function${t}(${n})${t}{${t}${n}(${ro}(require(`,right:`)));${t}})`};default:return{left:`new Promise(function${t}(${n})${t}{${t}${n}(require(`,right:`));${t}})`}}}case"amd":{const t=e.compact?"":" ",n=e.compact?"c":"resolve",r=e.compact?"e":"reject";return{left:`new Promise(function${t}(${n},${t}${r})${t}{${t}require([`,right:`],${t}${"default"===this.exportMode?`function${t}(m)${t}{${t}${n}({${t}'default':${t}m${t}});${t}}`:"auto"===this.exportMode?`function${t}(m)${t}{${t}${n}(${ro}(m));${t}}`:n},${t}${r})${t}})`}}case"system":return{left:"module.import(",right:")"};case"es":if(e.dynamicImportFunction)return{left:`${e.dynamicImportFunction}(`,right:")"}}return null}},ImportDeclaration:oa,LabeledStatement:class extends zs{hasEffects(e){return this.body.hasEffects(e.setIgnoreLabel(this.label.name).setIgnoreBreakStatements())}},Literal:aa,LogicalExpression:class extends zs{constructor(){super(...arguments),this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.unusedBranch=null,this.usedBranch=null}bind(){super.bind(),this.isBranchResolutionAnalysed||this.analyseBranchResolution()}deoptimizeCache(){if(null!==this.usedBranch){this.usedBranch=null,this.unusedBranch.deoptimizePath(Ae);for(const e of this.expressionsToBeDeoptimized)e.deoptimizeCache()}}deoptimizePath(e){e.length>0&&(this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?(this.left.deoptimizePath(e),this.right.deoptimizePath(e)):this.usedBranch.deoptimizePath(e))}getLiteralValueAtPath(e,t,n){return this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?we:(this.expressionsToBeDeoptimized.push(n),this.usedBranch.getLiteralValueAtPath(e,t,n))}getReturnExpressionWhenCalledAtPath(e,t,n){return this.isBranchResolutionAnalysed||this.analyseBranchResolution(),null===this.usedBranch?new ra([this.left.getReturnExpressionWhenCalledAtPath(e,t,n),this.right.getReturnExpressionWhenCalledAtPath(e,t,n)]):(this.expressionsToBeDeoptimized.push(n),this.usedBranch.getReturnExpressionWhenCalledAtPath(e,t,n))}hasEffects(e){return null===this.usedBranch?this.left.hasEffects(e)||this.right.hasEffects(e):this.usedBranch.hasEffects(e)}hasEffectsWhenAccessedAtPath(e,t){return 0!==e.length&&(null===this.usedBranch?this.left.hasEffectsWhenAccessedAtPath(e,t)||this.right.hasEffectsWhenAccessedAtPath(e,t):this.usedBranch.hasEffectsWhenAccessedAtPath(e,t))}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||(null===this.usedBranch?this.left.hasEffectsWhenAssignedAtPath(e,t)||this.right.hasEffectsWhenAssignedAtPath(e,t):this.usedBranch.hasEffectsWhenAssignedAtPath(e,t))}hasEffectsWhenCalledAtPath(e,t,n){return null===this.usedBranch?this.left.hasEffectsWhenCalledAtPath(e,t,n)||this.right.hasEffectsWhenCalledAtPath(e,t,n):this.usedBranch.hasEffectsWhenCalledAtPath(e,t,n)}include(e){this.included=!0,e||null===this.usedBranch||this.unusedBranch.shouldBeIncluded()?(this.left.include(e),this.right.include(e)):this.usedBranch.include(e)}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:r}=Y){if(this.left.included&&this.right.included)super.render(e,t);else{const i=le(e.original,this.operator,this.left.end);this.right.included?e.remove(this.start,i+2):e.remove(i,this.end),ue(this,e),this.usedBranch.render(e,t,{isCalleeOfRenderedParent:n?r:this.parent.callee===this,renderedParentType:n||this.parent.type})}}analyseBranchResolution(){this.isBranchResolutionAnalysed=!0;const e=this.left.getLiteralValueAtPath(be,Jo,this);e!==we&&(("||"===this.operator?e:!e)?(this.usedBranch=this.left,this.unusedBranch=this.right):(this.usedBranch=this.right,this.unusedBranch=this.left))}},MemberExpression:ua,MetaProperty:class extends zs{hasEffectsWhenAccessedAtPath(e){return e.length>1}include(){if(!this.included){this.included=!0;const e=this.parent,t=this.metaProperty=e instanceof ua&&"string"==typeof e.propertyKey?e.propertyKey:null;t&&("url"===t?this.scope.addAccessedGlobalsByFormat(Sa):(t.startsWith(Ia)||t.startsWith(Pa))&&this.scope.addAccessedGlobalsByFormat(wa))}}initialise(){"import"===this.meta.name&&this.context.addImportMeta(this)}renderFinalMechanism(e,t,n,r){if(!this.included)return;const i=this.parent,s=this.metaProperty;if(s&&(s.startsWith(Ia)||s.startsWith(Pa))){let o,a=null,h=null;s.startsWith(Ia)?(a=s.substr(Ia.length),o=this.context.getAssetFileName(a)):(h=s.substr(Pa.length),o=this.context.getChunkFileName(h));const u=ct(ft(pt(t),o));let c;return null!==a&&(c=r.hookFirstSync("resolveAssetUrl",[{assetFileName:o,chunkId:t,format:n,moduleId:this.context.module.id,relativeAssetPath:u}])),c||(c=r.hookFirstSync("resolveFileUrl",[{assetReferenceId:a,chunkId:t,chunkReferenceId:h,fileName:o,format:n,moduleId:this.context.module.id,relativePath:u}])),void e.overwrite(i.start,i.end,c,{contentOnly:!0})}const o=r.hookFirstSync("resolveImportMeta",[s,{chunkId:t,format:n,moduleId:this.context.module.id}]);"string"==typeof o&&(i instanceof ua?e.overwrite(i.start,i.end,o,{contentOnly:!0}):e.overwrite(this.start,this.end,o,{contentOnly:!0}))}},MethodDefinition:class extends zs{hasEffects(e){return this.key.hasEffects(e)}hasEffectsWhenCalledAtPath(e,t,n){return e.length>0||this.value.hasEffectsWhenCalledAtPath(be,t,n)}},NewExpression:class extends zs{bind(){super.bind();for(const e of this.arguments)e.deoptimizePath(Ae)}hasEffects(e){for(const t of this.arguments)if(t.hasEffects(e))return!0;return!this.annotatedPure&&this.callee.hasEffectsWhenCalledAtPath(be,this.callOptions,e.getHasEffectsWhenCalledOptions())}hasEffectsWhenAccessedAtPath(e,t){return e.length>1}initialise(){this.callOptions=Ee.create({args:this.arguments,callIdentifier:this,withNew:!0})}},ObjectExpression:class extends zs{constructor(){super(...arguments),this.deoptimizedPaths=new Set,this.expressionsToBeDeoptimized=new Map,this.hasUnknownDeoptimizedProperty=!1,this.propertyMap=null,this.unmatchablePropertiesRead=[],this.unmatchablePropertiesWrite=[]}bind(){super.bind(),null===this.propertyMap&&this.buildPropertyMap()}deoptimizeCache(){this.hasUnknownDeoptimizedProperty||this.deoptimizeAllProperties()}deoptimizePath(e){if(this.hasUnknownDeoptimizedProperty)return;if(null===this.propertyMap&&this.buildPropertyMap(),0===e.length)return void this.deoptimizeAllProperties();const t=e[0];if(1===e.length){if("string"!=typeof t)return void this.deoptimizeAllProperties();if(!this.deoptimizedPaths.has(t)){this.deoptimizedPaths.add(t);const e=this.expressionsToBeDeoptimized.get(t);if(e)for(const t of e)t.deoptimizeCache()}}const n=1===e.length?Ae:e.slice(1);for(const e of"string"==typeof t?this.propertyMap[t]?this.propertyMap[t].propertiesRead:[]:this.properties)e.deoptimizePath(n)}getLiteralValueAtPath(e,t,n){null===this.propertyMap&&this.buildPropertyMap();const r=e[0];if(0===e.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof r||this.deoptimizedPaths.has(r))return we;if(1===e.length&&!this.propertyMap[r]&&!qe[r]&&0===this.unmatchablePropertiesRead.length){const e=this.expressionsToBeDeoptimized.get(r);return void(e?e.push(n):this.expressionsToBeDeoptimized.set(r,[n]))}if(!this.propertyMap[r]||null===this.propertyMap[r].exactMatchRead||this.propertyMap[r].propertiesRead.length>1)return we;const i=this.expressionsToBeDeoptimized.get(r);return i?i.push(n):this.expressionsToBeDeoptimized.set(r,[n]),this.propertyMap[r].exactMatchRead.getLiteralValueAtPath(e.slice(1),t,n)}getReturnExpressionWhenCalledAtPath(e,t,n){null===this.propertyMap&&this.buildPropertyMap();const r=e[0];if(0===e.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof r||this.deoptimizedPaths.has(r))return Ie;if(1===e.length&&qe[r]&&0===this.unmatchablePropertiesRead.length&&(!this.propertyMap[r]||null===this.propertyMap[r].exactMatchRead))return Qe(qe,r);if(!this.propertyMap[r]||null===this.propertyMap[r].exactMatchRead||this.propertyMap[r].propertiesRead.length>1)return Ie;const i=this.expressionsToBeDeoptimized.get(r);return i?i.push(n):this.expressionsToBeDeoptimized.set(r,[n]),this.propertyMap[r].exactMatchRead.getReturnExpressionWhenCalledAtPath(e.slice(1),t,n)}hasEffectsWhenAccessedAtPath(e,t){if(0===e.length)return!1;const n=e[0];if(e.length>1&&(this.hasUnknownDeoptimizedProperty||"string"!=typeof n||this.deoptimizedPaths.has(n)||!this.propertyMap[n]||null===this.propertyMap[n].exactMatchRead))return!0;const r=e.slice(1);for(const e of"string"!=typeof n?this.properties:this.propertyMap[n]?this.propertyMap[n].propertiesRead:[])if(e.hasEffectsWhenAccessedAtPath(r,t))return!0;return!1}hasEffectsWhenAssignedAtPath(e,t){if(0===e.length)return!1;const n=e[0];if(e.length>1&&(this.hasUnknownDeoptimizedProperty||"string"!=typeof n||this.deoptimizedPaths.has(n)||!this.propertyMap[n]||null===this.propertyMap[n].exactMatchRead))return!0;const r=e.slice(1);for(const i of"string"!=typeof n?this.properties:e.length>1?this.propertyMap[n].propertiesRead:this.propertyMap[n]?this.propertyMap[n].propertiesSet:[])if(i.hasEffectsWhenAssignedAtPath(r,t))return!0;return!1}hasEffectsWhenCalledAtPath(e,t,n){const r=e[0];if(0===e.length||this.hasUnknownDeoptimizedProperty||"string"!=typeof r||this.deoptimizedPaths.has(r)||(this.propertyMap[r]?!this.propertyMap[r].exactMatchRead:e.length>1||!qe[r]))return!0;const i=e.slice(1);for(const e of this.propertyMap[r]?this.propertyMap[r].propertiesRead:[])if(e.hasEffectsWhenCalledAtPath(i,t,n))return!0;return!(1!==e.length||!qe[r])&&Xe(qe,r,this.included,t,n)}render(e,t,{renderedParentType:n}=Y){super.render(e,t),n===Z&&(e.appendRight(this.start,"("),e.prependLeft(this.end,")"))}buildPropertyMap(){this.propertyMap=Object.create(null);for(let e=this.properties.length-1;e>=0;e--){const t=this.properties[e];if(t instanceof Ca){this.unmatchablePropertiesRead.push(t);continue}const n="get"!==t.kind,r="set"!==t.kind;let i;if(t.computed){const e=t.key.getLiteralValueAtPath(be,Jo,this);if(e===we){r?this.unmatchablePropertiesRead.push(t):this.unmatchablePropertiesWrite.push(t);continue}i=String(e)}else i=t.key instanceof Ks?t.key.name:String(t.key.value);const s=this.propertyMap[i];s?(r&&null===s.exactMatchRead&&(s.exactMatchRead=t,s.propertiesRead.push(t,...this.unmatchablePropertiesRead)),n&&!r&&null===s.exactMatchWrite&&(s.exactMatchWrite=t,s.propertiesSet.push(t,...this.unmatchablePropertiesWrite))):this.propertyMap[i]={exactMatchRead:r?t:null,exactMatchWrite:n?t:null,propertiesRead:r?[t,...this.unmatchablePropertiesRead]:[],propertiesSet:n&&!r?[t,...this.unmatchablePropertiesWrite]:[]}}}deoptimizeAllProperties(){this.hasUnknownDeoptimizedProperty=!0;for(const e of this.properties)e.deoptimizePath(Ae);for(const e of this.expressionsToBeDeoptimized.values())for(const t of e)t.deoptimizeCache()}},ObjectPattern:class extends zs{addExportedVariables(e){for(const t of this.properties)t.type===se?t.value.addExportedVariables(e):t.argument.addExportedVariables(e)}declare(e,t){const n=[];for(const r of this.properties)n.push(...r.declare(e,t));return n}deoptimizePath(e){if(0===e.length)for(const t of this.properties)t.deoptimizePath(e)}hasEffectsWhenAssignedAtPath(e,t){if(e.length>0)return!0;for(const e of this.properties)if(e.hasEffectsWhenAssignedAtPath(be,t))return!0;return!1}},Program:ka,Property:class extends zs{constructor(){super(...arguments),this.declarationInit=null,this.returnExpression=null}bind(){super.bind(),"get"===this.kind&&null===this.returnExpression&&this.updateReturnExpression(),null!==this.declarationInit&&this.declarationInit.deoptimizePath([_e,_e])}declare(e,t){return this.declarationInit=t,this.value.declare(e,Ie)}deoptimizeCache(){throw new Error("Unexpected deoptimization")}deoptimizePath(e){"get"===this.kind?e.length>0&&(null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression.deoptimizePath(e)):"set"!==this.kind&&this.value.deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return"set"===this.kind?we:"get"===this.kind?(null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression.getLiteralValueAtPath(e,t,n)):this.value.getLiteralValueAtPath(e,t,n)}getReturnExpressionWhenCalledAtPath(e,t,n){return"set"===this.kind?Ie:"get"===this.kind?(null===this.returnExpression&&this.updateReturnExpression(),this.returnExpression.getReturnExpressionWhenCalledAtPath(e,t,n)):this.value.getReturnExpressionWhenCalledAtPath(e,t,n)}hasEffects(e){return this.key.hasEffects(e)||this.value.hasEffects(e)}hasEffectsWhenAccessedAtPath(e,t){return"get"===this.kind?this.value.hasEffectsWhenCalledAtPath(be,this.accessorCallOptions,t.getHasEffectsWhenCalledOptions())||e.length>0&&this.returnExpression.hasEffectsWhenAccessedAtPath(e,t):this.value.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return"get"===this.kind?0===e.length||this.returnExpression.hasEffectsWhenAssignedAtPath(e,t):"set"===this.kind?e.length>0||this.value.hasEffectsWhenCalledAtPath(be,this.accessorCallOptions,t.getHasEffectsWhenCalledOptions()):this.value.hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,n){return"get"===this.kind?this.returnExpression.hasEffectsWhenCalledAtPath(e,t,n):this.value.hasEffectsWhenCalledAtPath(e,t,n)}initialise(){this.accessorCallOptions=Ee.create({callIdentifier:this,withNew:!1})}render(e,t){this.shorthand||this.key.render(e,t),this.value.render(e,t,{isShorthandProperty:this.shorthand})}updateReturnExpression(){this.returnExpression=Ie,this.returnExpression=this.value.getReturnExpressionWhenCalledAtPath(be,Jo,this)}},RestElement:Ys,ReturnStatement:class extends zs{hasEffects(e){return!e.ignoreReturnAwaitYield()||null!==this.argument&&this.argument.hasEffects(e)}initialise(){this.scope.addReturnExpression(this.argument||Ie)}render(e,t){this.argument&&(this.argument.render(e,t),this.argument.start===this.start+6&&e.prependLeft(this.start+6," "))}},SequenceExpression:class extends zs{deoptimizePath(e){e.length>0&&this.expressions[this.expressions.length-1].deoptimizePath(e)}getLiteralValueAtPath(e,t,n){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(e,t,n)}hasEffects(e){for(const t of this.expressions)if(t.hasEffects(e))return!0;return!1}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.expressions[this.expressions.length-1].hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return 0===e.length||this.expressions[this.expressions.length-1].hasEffectsWhenAssignedAtPath(e,t)}hasEffectsWhenCalledAtPath(e,t,n){return this.expressions[this.expressions.length-1].hasEffectsWhenCalledAtPath(e,t,n)}include(e){this.included=!0;for(let t=0;t<this.expressions.length-1;t++){const n=this.expressions[t];(e||n.shouldBeIncluded())&&n.include(e)}this.expressions[this.expressions.length-1].include(e)}render(e,t,{renderedParentType:n,isCalleeOfRenderedParent:r}=Y){let i=0;for(const{node:s,start:o,end:a}of fe(this.expressions,e,this.start,this.end))s.included?(i++,s===this.expressions[this.expressions.length-1]&&1===i?s.render(e,t,{isCalleeOfRenderedParent:n?r:this.parent.callee===this,renderedParentType:n||this.parent.type}):s.render(e,t)):he(s,e,o,a)}},SpreadElement:Ca,SwitchCase:class extends zs{include(e){this.included=!0,this.test&&this.test.include(e);for(const t of this.consequent)(e||t.shouldBeIncluded())&&t.include(e)}render(e,t){if(this.consequent.length){this.test&&this.test.render(e,t);const n=this.test?this.test.end:le(e.original,"default",this.start)+7,r=le(e.original,":",n)+1;de(this.consequent,e,r,this.end,t)}else super.render(e,t)}},SwitchStatement:class extends zs{createScope(e){this.scope=new Go(e)}hasEffects(e){return super.hasEffects(e.setIgnoreBreakStatements())}},TaggedTemplateExpression:class extends zs{bind(){super.bind(),this.tag.type===te&&(this.scope.findVariable(this.tag.name).isNamespace&&this.context.error({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${this.tag.name}')`},this.start),"eval"===this.tag.name&&this.context.warn({code:"EVAL",message:"Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification",url:"https://rollupjs.org/guide/en/#avoiding-eval"},this.start))}hasEffects(e){return super.hasEffects(e)||this.tag.hasEffectsWhenCalledAtPath(be,this.callOptions,e.getHasEffectsWhenCalledOptions())}initialise(){this.callOptions=Ee.create({callIdentifier:this,withNew:!1})}},TemplateElement:class extends zs{hasEffects(e){return!1}},TemplateLiteral:$a,ThisExpression:class extends zs{bind(){super.bind(),this.variable=this.scope.findVariable("this")}hasEffectsWhenAccessedAtPath(e,t){return e.length>0&&this.variable.hasEffectsWhenAccessedAtPath(e,t)}hasEffectsWhenAssignedAtPath(e,t){return this.variable.hasEffectsWhenAssignedAtPath(e,t)}initialise(){this.alias=this.scope.findLexicalBoundary()instanceof Na?this.context.moduleContext:null,"undefined"===this.alias&&this.context.warn({code:"THIS_IS_UNDEFINED",message:"The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten",url:"https://rollupjs.org/guide/en/#error-this-is-undefined"},this.start)}render(e,t){null!==this.alias&&e.overwrite(this.start,this.end,this.alias,{contentOnly:!1,storeName:!0})}},ThrowStatement:class extends zs{hasEffects(e){return!0}},TryStatement:class extends zs{constructor(){super(...arguments),this.directlyIncluded=!1}hasEffects(e){return this.block.body.length>0||null!==this.handler&&this.handler.hasEffects(e)||null!==this.finalizer&&this.finalizer.hasEffects(e)}include(e){this.directlyIncluded&&this.context.tryCatchDeoptimization||(this.included=!0,this.directlyIncluded=!0,this.block.include(this.context.tryCatchDeoptimization?Vs:e)),null!==this.handler&&this.handler.include(e),null!==this.finalizer&&this.finalizer.include(e)}},UnaryExpression:class extends zs{bind(){super.bind(),"delete"===this.operator&&this.argument.deoptimizePath(be)}getLiteralValueAtPath(e,t,n){if(e.length>0)return we;const r=this.argument.getLiteralValueAtPath(be,t,n);return r===we?we:Ra[this.operator](r)}hasEffects(e){return this.argument.hasEffects(e)||"delete"===this.operator&&this.argument.hasEffectsWhenAssignedAtPath(be,e)}hasEffectsWhenAccessedAtPath(e,t){return"void"===this.operator?e.length>0:e.length>1}},UnknownNode:class extends zs{hasEffects(e){return!0}include(){super.include(!0)}},UpdateExpression:class extends zs{bind(){super.bind(),this.argument.deoptimizePath(be),this.argument instanceof Ks&&(this.scope.findVariable(this.argument.name).isReassigned=!0)}hasEffects(e){return this.argument.hasEffects(e)||this.argument.hasEffectsWhenAssignedAtPath(be,e)}hasEffectsWhenAccessedAtPath(e,t){return e.length>1}render(e,t){this.argument.render(e,t);const n=this.argument.variable;if("system"===t.format&&n&&n.exportName){const t=n.getName();if(this.prefix)e.overwrite(this.start,this.end,`exports('${n.exportName}', ${this.operator}${t})`);else{let r;switch(this.operator){case"++":r=`${t} + 1`;break;case"--":r=`${t} - 1`}e.overwrite(this.start,this.end,`(exports('${n.exportName}', ${r}), ${t}${this.operator})`)}}}},VariableDeclaration:class extends zs{deoptimizePath(e){for(const e of this.declarations)e.deoptimizePath(be)}hasEffectsWhenAssignedAtPath(e,t){return!1}include(e){this.included=!0;for(const t of this.declarations)(e||t.shouldBeIncluded())&&t.include(e)}includeWithAllDeclaredVariables(e){this.included=!0;for(const t of this.declarations)t.include(e)}initialise(){for(const e of this.declarations)e.declareDeclarator(this.kind)}render(e,t,n=Y){if(function(e){for(const t of e){if(!t.included)return!1;if(t.id.type===te){if(t.id.variable.exportName)return!1}else{const e=[];if(t.id.addExportedVariables(e),e.length>0)return!1}}return!0}(this.declarations)){for(const n of this.declarations)n.render(e,t);n.isNoStatement||59===e.original.charCodeAt(this.end-1)||e.appendLeft(this.end,";")}else this.renderReplacedDeclarations(e,t,n)}renderDeclarationEnd(e,t,n,r,i,s,o){59===e.original.charCodeAt(this.end-1)&&e.remove(this.end-1,this.end),s&&(t+=";"),null!==n?(10!==e.original.charCodeAt(r-1)||10!==e.original.charCodeAt(this.end)&&13!==e.original.charCodeAt(this.end)||(r--,13===e.original.charCodeAt(r)&&r--),r===n+1?e.overwrite(n,i,t):(e.overwrite(n,n+1,t),e.remove(r,i))):e.appendLeft(i,t),o.length>0&&e.appendLeft(i," "+Yo(o))}renderReplacedDeclarations(e,t,{start:n=this.start,end:r=this.end,isNoStatement:i}){const s=fe(this.declarations,e,this.start+this.kind.length,this.end-(59===e.original.charCodeAt(this.end-1)?1:0));let o,a,h=(a=/\n\s*$/.test(e.slice(this.start,s[0].start))?this.start+this.kind.length:s[0].start)-1;e.remove(this.start,h);let u,c,l=!1,p=!1,d="";const f=[];for(const{node:n,start:r,separator:i,contentEnd:m,end:g}of s)!n.included||n.id instanceof Ks&&Oa(n.id.variable)&&null===n.init?e.remove(r,g):(u="",c="",n.id instanceof Ks&&Oa(n.id.variable)?(p&&(d+=";"),l=!1):("system"===t.format&&null!==n.init&&(n.id.type!==te?n.id.addExportedVariables(f):n.id.variable.exportName&&(e.prependLeft(e.original.indexOf("=",n.id.end)+1,` exports('${n.id.variable.safeExportName||n.id.variable.exportName}',`),c+=")")),l?d+=",":(p&&(d+=";"),u+=`${this.kind} `,l=!0)),a===h+1?e.overwrite(h,a,d+u):(e.overwrite(h,h+1,d),e.appendLeft(a,u)),n.render(e,t),o=m,a=g,p=!0,h=i,d=c);p?this.renderDeclarationEnd(e,d,h,o,a,!i,f):e.remove(n,r)}},VariableDeclarator:class extends zs{declareDeclarator(e){this.id.declare(e,this.init||Pe)}deoptimizePath(e){this.id.deoptimizePath(e)}render(e,t){null===this.init||this.init.included?super.render(e,t):(e.remove(this.id.end,this.end),this.id.render(e,t))}},WhileStatement:class extends zs{hasEffects(e){return this.test.hasEffects(e)||this.body.hasEffects(e.setIgnoreBreakStatements())}},YieldExpression:class extends zs{bind(){super.bind(),null!==this.argument&&this.argument.deoptimizePath(Ae)}hasEffects(e){return!e.ignoreReturnAwaitYield()||null!==this.argument&&this.argument.hasEffects(e)}render(e,t){this.argument&&(this.argument.render(e,t),this.argument.start===this.start+5&&e.prependLeft(this.start+5," "))}}};function Da(e,t,n){n(e,t)}function Ta(e,t,n){}var La={};function Va(e,t,n=e.type){let r=t.commentNodes[t.commentIndex];for(;r&&e.start>=r.end;)Ba(e,r),r=t.commentNodes[++t.commentIndex];r&&r.end<=e.end&&La[n](e,t,Va)}function Ba(e,t){e.annotations?e.annotations.push(t):e.annotations=[t],"ExpressionStatement"===e.type&&(e=e.expression),"CallExpression"!==e.type&&"NewExpression"!==e.type||(e.annotatedPure=!0)}La.Program=La.BlockStatement=function(e,t,n){for(var r=0,i=e.body;r<i.length;r+=1){n(i[r],t,"Statement")}},La.Statement=Da,La.EmptyStatement=Ta,La.ExpressionStatement=La.ParenthesizedExpression=function(e,t,n){return n(e.expression,t,"Expression")},La.IfStatement=function(e,t,n){n(e.test,t,"Expression"),n(e.consequent,t,"Statement"),e.alternate&&n(e.alternate,t,"Statement")},La.LabeledStatement=function(e,t,n){return n(e.body,t,"Statement")},La.BreakStatement=La.ContinueStatement=Ta,La.WithStatement=function(e,t,n){n(e.object,t,"Expression"),n(e.body,t,"Statement")},La.SwitchStatement=function(e,t,n){n(e.discriminant,t,"Expression");for(var r=0,i=e.cases;r<i.length;r+=1){var s=i[r];s.test&&n(s.test,t,"Expression");for(var o=0,a=s.consequent;o<a.length;o+=1){n(a[o],t,"Statement")}}},La.SwitchCase=function(e,t,n){e.test&&n(e.test,t,"Expression");for(var r=0,i=e.consequent;r<i.length;r+=1){n(i[r],t,"Statement")}},La.ReturnStatement=La.YieldExpression=La.AwaitExpression=function(e,t,n){e.argument&&n(e.argument,t,"Expression")},La.ThrowStatement=La.SpreadElement=function(e,t,n){return n(e.argument,t,"Expression")},La.TryStatement=function(e,t,n){n(e.block,t,"Statement"),e.handler&&n(e.handler,t),e.finalizer&&n(e.finalizer,t,"Statement")},La.CatchClause=function(e,t,n){e.param&&n(e.param,t,"Pattern"),n(e.body,t,"Statement")},La.WhileStatement=La.DoWhileStatement=function(e,t,n){n(e.test,t,"Expression"),n(e.body,t,"Statement")},La.ForStatement=function(e,t,n){e.init&&n(e.init,t,"ForInit"),e.test&&n(e.test,t,"Expression"),e.update&&n(e.update,t,"Expression"),n(e.body,t,"Statement")},La.ForInStatement=La.ForOfStatement=function(e,t,n){n(e.left,t,"ForInit"),n(e.right,t,"Expression"),n(e.body,t,"Statement")},La.ForInit=function(e,t,n){"VariableDeclaration"===e.type?n(e,t):n(e,t,"Expression")},La.DebuggerStatement=Ta,La.FunctionDeclaration=function(e,t,n){return n(e,t,"Function")},La.VariableDeclaration=function(e,t,n){for(var r=0,i=e.declarations;r<i.length;r+=1){n(i[r],t)}},La.VariableDeclarator=function(e,t,n){n(e.id,t,"Pattern"),e.init&&n(e.init,t,"Expression")},La.Function=function(e,t,n){e.id&&n(e.id,t,"Pattern");for(var r=0,i=e.params;r<i.length;r+=1){n(i[r],t,"Pattern")}n(e.body,t,e.expression?"Expression":"Statement")},La.Pattern=function(e,t,n){"Identifier"===e.type?n(e,t,"VariablePattern"):"MemberExpression"===e.type?n(e,t,"MemberPattern"):n(e,t)},La.VariablePattern=Ta,La.MemberPattern=Da,La.RestElement=function(e,t,n){return n(e.argument,t,"Pattern")},La.ArrayPattern=function(e,t,n){for(var r=0,i=e.elements;r<i.length;r+=1){var s=i[r];s&&n(s,t,"Pattern")}},La.ObjectPattern=function(e,t,n){for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];"Property"===s.type?(s.computed&&n(s.key,t,"Expression"),n(s.value,t,"Pattern")):"RestElement"===s.type&&n(s.argument,t,"Pattern")}},La.Expression=Da,La.ThisExpression=La.Super=La.MetaProperty=Ta,La.ArrayExpression=function(e,t,n){for(var r=0,i=e.elements;r<i.length;r+=1){var s=i[r];s&&n(s,t,"Expression")}},La.ObjectExpression=function(e,t,n){for(var r=0,i=e.properties;r<i.length;r+=1){n(i[r],t)}},La.FunctionExpression=La.ArrowFunctionExpression=La.FunctionDeclaration,La.SequenceExpression=function(e,t,n){for(var r=0,i=e.expressions;r<i.length;r+=1){n(i[r],t,"Expression")}},La.TemplateLiteral=function(e,t,n){for(var r=0,i=e.quasis;r<i.length;r+=1){n(i[r],t)}for(var s=0,o=e.expressions;s<o.length;s+=1){n(o[s],t,"Expression")}},La.TemplateElement=Ta,La.UnaryExpression=La.UpdateExpression=function(e,t,n){n(e.argument,t,"Expression")},La.BinaryExpression=La.LogicalExpression=function(e,t,n){n(e.left,t,"Expression"),n(e.right,t,"Expression")},La.AssignmentExpression=La.AssignmentPattern=function(e,t,n){n(e.left,t,"Pattern"),n(e.right,t,"Expression")},La.ConditionalExpression=function(e,t,n){n(e.test,t,"Expression"),n(e.consequent,t,"Expression"),n(e.alternate,t,"Expression")},La.NewExpression=La.CallExpression=function(e,t,n){if(n(e.callee,t,"Expression"),e.arguments)for(var r=0,i=e.arguments;r<i.length;r+=1){n(i[r],t,"Expression")}},La.MemberExpression=function(e,t,n){n(e.object,t,"Expression"),e.computed&&n(e.property,t,"Expression")},La.ExportNamedDeclaration=La.ExportDefaultDeclaration=function(e,t,n){e.declaration&&n(e.declaration,t,"ExportNamedDeclaration"===e.type||e.declaration.id?"Statement":"Expression"),e.source&&n(e.source,t,"Expression")},La.ExportAllDeclaration=function(e,t,n){n(e.source,t,"Expression")},La.ImportDeclaration=function(e,t,n){for(var r=0,i=e.specifiers;r<i.length;r+=1){n(i[r],t)}n(e.source,t,"Expression")},La.ImportSpecifier=La.ImportDefaultSpecifier=La.ImportNamespaceSpecifier=La.Identifier=La.Literal=La.Import=Ta,La.TaggedTemplateExpression=function(e,t,n){n(e.tag,t,"Expression"),n(e.quasi,t,"Expression")},La.ClassDeclaration=La.ClassExpression=function(e,t,n){return n(e,t,"Class")},La.Class=function(e,t,n){e.id&&n(e.id,t,"Pattern"),e.superClass&&n(e.superClass,t,"Expression"),n(e.body,t)},La.ClassBody=function(e,t,n){for(var r=0,i=e.body;r<i.length;r+=1){n(i[r],t)}},La.MethodDefinition=La.Property=function(e,t,n){e.computed&&n(e.key,t,"Expression"),n(e.value,t,"Expression")};const za=/[@#]__PURE__/,ja=e=>za.test(e.text);let Wa="sourceMa";Wa+="ppingURL";const Ua=new RegExp(`^#\\s+${Wa}=.+\\n?`),Fa=()=>{};let qa=()=>[0,0],Ga=()=>0,Ha=()=>0,Ka={};const Ya=e=>1e3*e[0]+e[1]/1e6;function Xa(e,t){switch(t){case 1:return`# ${e}`;case 2:return`## ${e}`;case 3:return e;default:return`${" ".repeat(t-4)}- ${e}`}}function Qa(e,t=3){e=Xa(e,t),Ka.hasOwnProperty(e)||(Ka[e]={memory:0,startMemory:void 0,startTime:void 0,time:0,totalMemory:0});const n=Ha();Ka[e].startTime=qa(),Ka[e].startMemory=n}function Ja(e,t=3){if(e=Xa(e,t),Ka.hasOwnProperty(e)){const t=Ha();Ka[e].time+=Ga(Ka[e].startTime),Ka[e].totalMemory=Math.max(Ka[e].totalMemory,t),Ka[e].memory+=t-Ka[e].startMemory}}function Za(){const e={};return Object.keys(Ka).forEach(t=>{e[t]=[Ka[t].time,Ka[t].memory,Ka[t].totalMemory]}),e}let eh=Fa,th=Fa;const nh={load:!0,ongenerate:!0,onwrite:!0,resolveDynamicImport:!0,resolveId:!0,transform:!0,transformBundle:!0};function rh(e,t){const n={};for(const r of Object.keys(e))if(!0===nh[r]){let i=`plugin ${t}`;e.name&&(i+=` (${e.name})`),i+=` - ${r}`,n[r]=function(){eh(i,4);const t=e[r].apply(this===n?e:this,arguments);return th(i,4),t&&"function"==typeof t.then&&(eh(`${i} (async)`,4),t.then(()=>th(`${i} (async)`,4))),t}}else n[r]=e[r];return n}function ih(e){e.perf?(Ka={},"undefined"!=typeof process&&"function"==typeof process.hrtime?(qa=process.hrtime.bind(process),Ga=e=>Ya(process.hrtime(e))):"undefined"!=typeof performance&&"function"==typeof performance.now&&(qa=()=>[performance.now(),0],Ga=e=>performance.now()-e[0]),"undefined"!=typeof process&&"function"==typeof process.memoryUsage&&(Ha=()=>process.memoryUsage().heapUsed),eh=Qa,th=Ja,e.plugins=e.plugins.map(rh)):(eh=Fa,th=Fa)}const sh={ecmaVersion:2019,preserveParens:!1,sourceType:"module"};function oh(e,t,n,r){t.error({code:"MISSING_EXPORT",message:`'${e}' is not exported by ${Ao(n)}`,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module-"},r)}const ah={identifier:null,localName:to};class hh{constructor(e,t,n,r){this.chunkAlias=null,this.comments=[],this.dependencies=[],this.dynamicallyImportedBy=[],this.dynamicDependencies=[],this.dynamicImports=[],this.entryPointsHash=new Uint8Array(10),this.execIndex=1/0,this.exportAllModules=null,this.exportAllSources=[],this.exports=Object.create(null),this.exportsAll=Object.create(null),this.exportShimVariable=new io(this),this.facadeChunk=null,this.importDescriptions=Object.create(null),this.importMetas=[],this.imports=new Set,this.isExecuted=!1,this.isUserDefinedEntryPoint=!1,this.manualChunkAlias=null,this.reexports=Object.create(null),this.sources=[],this.usesTopLevelAwait=!1,this.namespaceVariable=void 0,this.transformDependencies=null,this.id=t,this.graph=e,this.excludeFromSourcemap=/\0/.test(t),this.context=e.getModuleContext(t),this.moduleSideEffects=n,this.isEntryPoint=r}basename(){const e=lt(this.id),t=dt(this.id);return st(t?e.slice(0,-t.length):e)}bindReferences(){this.ast.bind()}error(e,t){if(void 0!==t){e.pos=t;let n=bt(this.code,t,{offsetLine:1});try{n=function(e,t){const n=e.filter(e=>e.mappings);for(;n.length>0;){const e=n.pop(),r=e.mappings[t.line-1];let i=!1;if(void 0!==r)for(const n of r)if(n[0]>=t.column){if(1===n.length)break;t={column:n[3],line:n[2]+1,name:5===n.length?e.names[n[4]]:void 0,source:e.sources[n[1]]},i=!0;break}if(!i)throw new Error("Can't resolve original location of error.")}return t}(this.sourcemapChain,n)}catch(e){this.warn({code:"SOURCEMAP_ERROR",loc:{column:n.column,file:this.id,line:n.line},message:`Error when using sourcemap for reporting an error: ${e.message}`,pos:t},void 0)}e.loc={column:n.column,file:this.id,line:n.line},e.frame=_o(this.originalCode,n.line,n.column)}wo(e)}getAllExportNames(){if(this.allExportNames)return this.allExportNames;const e=this.allExportNames=new Set;for(const t of Object.keys(this.exports))e.add(t);for(const t of Object.keys(this.reexports))e.add(t);for(const t of this.exportAllModules)if(t instanceof gt)e.add(`*${t.id}`);else for(const n of t.getAllExportNames())"default"!==n&&e.add(n);return e}getDynamicImportExpressions(){return this.dynamicImports.map(({node:e})=>{const t=e.parent.arguments[0];return t instanceof $a&&1===t.quasis.length&&t.quasis[0].value.cooked?t.quasis[0].value.cooked:t instanceof aa&&"string"==typeof t.value?t.value:t})}getExportNamesByVariable(){const e=new Map;for(const t of this.getAllExportNames()){const n=this.getVariableForExportName(t);if(!n||!(n.included||n instanceof Ze))continue;const r=e.get(n);r?r.push(t):e.set(n,[t])}return e}getExports(){return Object.keys(this.exports)}getOrCreateNamespace(){return this.namespaceVariable||(this.namespaceVariable=new lo(this.astContext))}getReexports(){if(this.transitiveReexports)return this.transitiveReexports;this.transitiveReexports=[];const e=new Set;for(const t in this.reexports)e.add(t);for(const t of this.exportAllModules)if(t instanceof gt)e.add(`*${t.id}`);else for(const n of t.getExports().concat(t.getReexports()))"default"!==n&&e.add(n);return this.transitiveReexports=Array.from(e)}getRenderedExports(){const e=[],t=[];for(const n in this.exports){const r=this.getVariableForExportName(n);(r&&r.included?e:t).push(n)}return{renderedExports:e,removedExports:t}}getTransitiveDependencies(){return this.dependencies.concat(this.getReexports().map(e=>this.getVariableForExportName(e).module))}getVariableForExportName(e,t){if("*"===e[0]){if(1===e.length)return this.getOrCreateNamespace();return this.graph.moduleById.get(e.slice(1)).getVariableForExportName("*")}const n=this.reexports[e];if(n){const e=n.module.getVariableForExportName(n.localName);return e||oh(n.localName,this,n.module.id,n.start),e}const r=this.exports[e];if(r){if(r===ah)return this.exportShimVariable;const e=r.localName;return this.traceVariable(e)||this.graph.scope.findVariable(e)}if("default"!==e)for(const t of this.exportAllModules){const n=t.getVariableForExportName(e,!0);if(n)return n}if(this.graph.shimMissingExports&&!t)return this.shimMissingExport(e),this.exportShimVariable}include(){this.ast.shouldBeIncluded()&&this.ast.include(!1)}includeAllExports(){this.isExecuted||(this.graph.needsTreeshakingPass=!0,yt(this));for(const e of this.getExports()){const t=this.getVariableForExportName(e);t.deoptimizePath(Ae),t.included||(t.include(),this.graph.needsTreeshakingPass=!0)}for(const e of this.getReexports()){const t=this.getVariableForExportName(e);t.deoptimizePath(Ae),t.included||(t.include(),this.graph.needsTreeshakingPass=!0),t instanceof Ze&&(t.module.reexported=!0)}}includeAllInBundle(){this.ast.include(!0)}isIncluded(){return this.ast.included||this.namespaceVariable&&this.namespaceVariable.included}linkDependencies(){for(const e of this.sources){const t=this.resolvedIds[e].id;if(t){const e=this.graph.moduleById.get(t);this.dependencies.push(e)}}for(const{resolution:e}of this.dynamicImports)(e instanceof hh||e instanceof gt)&&this.dynamicDependencies.push(e);this.addModulesToSpecifiers(this.importDescriptions),this.addModulesToSpecifiers(this.reexports),this.exportAllModules=this.exportAllSources.map(e=>{const t=this.resolvedIds[e].id;return this.graph.moduleById.get(t)}).sort((e,t)=>{const n=e instanceof gt;return n===t instanceof gt?0:n?1:-1})}render(e){const t=this.magicString.clone();return this.ast.render(t,e),this.usesTopLevelAwait=this.astContext.usesTopLevelAwait,t}setSource({ast:e,code:t,customTransformCache:n,moduleSideEffects:r,originalCode:i,originalSourcemap:s,resolvedIds:o,sourcemapChain:a,transformAssets:h,transformChunks:u,transformDependencies:c}){var l;this.code=t,this.originalCode=i,this.originalSourcemap=s,this.sourcemapChain=a,h&&(this.transformAssets=h),u&&(this.transformChunks=u),this.transformDependencies=c,this.customTransformCache=n,"boolean"==typeof r&&(this.moduleSideEffects=r),eh("generate ast",3),this.esTreeAst=e||function(e,t,n){try{return t.parse(e.code,Object.assign({},sh,n,{onComment:(t,n,r,i)=>e.comments.push({block:t,text:n,start:r,end:i})}))}catch(t){let n=t.message.replace(/ \(\d+:\d+\)$/,"");e.id.endsWith(".json")?n+=" (Note that you need rollup-plugin-json to import JSON files)":e.id.endsWith(".js")||(n+=" (Note that you need plugins to import files that are not JavaScript)"),e.error({code:"PARSE_ERROR",message:n},t.pos)}}(this,this.graph.acornParser,this.graph.acornOptions),l=this.comments,Va(this.esTreeAst,{commentIndex:0,commentNodes:l.filter(ja)}),th("generate ast",3),this.resolvedIds=o||Object.create(null);const p=this.id;this.magicString=new q(t,{filename:this.excludeFromSourcemap?null:p,indentExclusionRanges:[]}),this.removeExistingSourceMap(),eh("analyse ast",3),this.astContext={addDynamicImport:this.addDynamicImport.bind(this),addExport:this.addExport.bind(this),addImport:this.addImport.bind(this),addImportMeta:this.addImportMeta.bind(this),annotations:this.graph.treeshakingOptions&&this.graph.treeshakingOptions.annotations,code:t,deoptimizationTracker:this.graph.deoptimizationTracker,error:this.error.bind(this),fileName:p,getAssetFileName:this.graph.pluginDriver.getAssetFileName,getChunkFileName:this.graph.moduleLoader.getChunkFileName.bind(this.graph.moduleLoader),getExports:this.getExports.bind(this),getModuleExecIndex:()=>this.execIndex,getModuleName:this.basename.bind(this),getReexports:this.getReexports.bind(this),importDescriptions:this.importDescriptions,includeDynamicImport:this.includeDynamicImport.bind(this),includeVariable:this.includeVariable.bind(this),isCrossChunkImport:e=>e.module.chunk!==this.chunk,magicString:this.magicString,module:this,moduleContext:this.context,nodeConstructors:Ma,preserveModules:this.graph.preserveModules,propertyReadSideEffects:!this.graph.treeshakingOptions||this.graph.treeshakingOptions.propertyReadSideEffects,traceExport:this.getVariableForExportName.bind(this),traceVariable:this.traceVariable.bind(this),treeshake:!!this.graph.treeshakingOptions,tryCatchDeoptimization:!this.graph.treeshakingOptions||this.graph.treeshakingOptions.tryCatchDeoptimization,usesTopLevelAwait:!1,warn:this.warn.bind(this)},this.scope=new Na(this.graph.scope,this.astContext),this.ast=new ka(this.esTreeAst,{type:"Module",context:this.astContext},this.scope),th("analyse ast",3)}toJSON(){return{ast:this.esTreeAst,code:this.code,customTransformCache:this.customTransformCache,dependencies:this.dependencies.map(e=>e.id),id:this.id,moduleSideEffects:this.moduleSideEffects,originalCode:this.originalCode,originalSourcemap:this.originalSourcemap,resolvedIds:this.resolvedIds,sourcemapChain:this.sourcemapChain,transformAssets:this.transformAssets,transformChunks:this.transformChunks,transformDependencies:this.transformDependencies}}traceVariable(e){const t=this.scope.variables.get(e);if(t)return t;if(e in this.importDescriptions){const t=this.importDescriptions[e],n=t.module;if(n instanceof hh&&"*"===t.name)return n.getOrCreateNamespace();const r=n.getVariableForExportName(t.name);return r||oh(t.name,this,n.id,t.start),r}return null}warn(e,t){if(void 0!==t){e.pos=t;const{line:n,column:r}=bt(this.code,t,{offsetLine:1});e.loc={file:this.id,line:n,column:r},e.frame=_o(this.code,n,r)}e.id=this.id,this.graph.warn(e)}addDynamicImport(e){this.dynamicImports.push({node:e,resolution:null})}addExport(e){const t=e.source&&e.source.value;if(t)if(-1===this.sources.indexOf(t)&&this.sources.push(t),e.type===J)this.exportAllSources.push(t);else for(const n of e.specifiers){const e=n.exported.name;(this.exports[e]||this.reexports[e])&&this.error({code:"DUPLICATE_EXPORT",message:`A module cannot have multiple exports with the same name ('${e}')`},n.start),this.reexports[e]={localName:n.local.name,module:null,source:t,start:n.start}}else if(e instanceof Zs)this.exports.default&&this.error({code:"DUPLICATE_EXPORT",message:"A module can only have one default export"},e.start),this.exports.default={identifier:e.variable.getAssignedVariableName(),localName:"default"};else if(e.declaration){const t=e.declaration;if(t.type===ae)for(const e of t.declarations)for(const t of qo(e.id))this.exports[t]={identifier:null,localName:t};else{const e=t.id.name;this.exports[e]={identifier:null,localName:e}}}else for(const t of e.specifiers){const e=t.local.name,n=t.exported.name;(this.exports[n]||this.reexports[n])&&this.error({code:"DUPLICATE_EXPORT",message:`A module cannot have multiple exports with the same name ('${n}')`},t.start),this.exports[n]={identifier:null,localName:e}}}addImport(e){const t=e.source.value;-1===this.sources.indexOf(t)&&this.sources.push(t);for(const n of e.specifiers){const e=n.local.name;this.importDescriptions[e]&&this.error({code:"DUPLICATE_IMPORT",message:`Duplicated import '${e}'`},n.start);const r=n.type===ne,i=n.type===re,s=r?"default":i?"*":n.imported.name;this.importDescriptions[e]={source:t,start:n.start,name:s,module:null}}}addImportMeta(e){this.importMetas.push(e)}addModulesToSpecifiers(e){for(const t of Object.keys(e)){const n=e[t],r=this.resolvedIds[n.source].id;n.module=this.graph.moduleById.get(r)}}includeDynamicImport(e){const t=this.dynamicImports.find(t=>t.node===e).resolution;t instanceof hh&&(t.dynamicallyImportedBy.push(this),t.includeAllExports())}includeVariable(e){const t=e.module;e.included||(e.include(),this.graph.needsTreeshakingPass=!0),t&&t!==this&&this.imports.add(e)}removeExistingSourceMap(){for(const e of this.comments)!e.block&&Ua.test(e.text)&&this.magicString.remove(e.start,e.end)}shimMissingExport(e){this.exports[e]||(this.graph.warn({code:"SHIMMED_EXPORT",exporter:Ao(this.id),exportName:e,message:`Missing export "${e}" has been shimmed in module ${Ao(this.id)}.`}),this.exports[e]=ah)}}class uh{constructor(e,t){this.isOriginal=!0,this.filename=e,this.content=t}traceSegment(e,t,n){return{line:e,column:t,name:n,source:this}}}class ch{constructor(e,t){this.sources=t,this.names=e.names,this.mappings=e.mappings}traceMappings(){const e=[],t=[],n=[],r=[];for(const i of this.mappings){const s=[];for(const r of i){if(1==r.length)continue;const i=this.sources[r[1]];if(!i)continue;const o=i.traceSegment(r[2],r[3],5===r.length?this.names[r[4]]:"");if(o){let i=e.lastIndexOf(o.source.filename);-1===i?(i=e.length,e.push(o.source.filename),t[i]=o.source.content):null==t[i]?t[i]=o.source.content:null!=o.source.content&&t[i]!==o.source.content&&wo({message:`Multiple conflicting contents for sourcemap source ${o.source.filename}`});const a=[r[0],i,o.line,o.column];if(o.name){let e=n.indexOf(o.name);-1===e&&(e=n.length,n.push(o.name)),a[4]=e}s.push(a)}}r.push(s)}return{sources:e,sourcesContent:t,names:n,mappings:r}}traceSegment(e,t,n){const r=this.mappings[e];if(!r)return null;let i=0,s=r.length-1;for(;i<=s;){const e=i+s>>1,o=r[e];if(o[0]===t){if(1==o.length)return null;const e=this.sources[o[1]];return e?e.traceSegment(o[2],o[3],5===o.length?this.names[o[4]]:n):null}o[0]>t?s=e-1:i=e+1}return null}}function lh(e){return function(t,n){return n.mappings?new ch(n,[t]):(e.warn({code:"SOURCEMAP_BROKEN",message:`Sourcemap is likely to be incorrect: a plugin${n.plugin?` ('${n.plugin}')`:""} was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,plugin:n.plugin,url:"https://rollupjs.org/guide/en/#warning-sourcemap-is-likely-to-be-incorrect"}),new ch({mappings:[],names:[]},[t]))}}function ph(e,t,n,r,i){let s;if(n){const t=n.sources,r=n.sourcesContent||[],i=pt(e)||".",o=n.sourceRoot||".",a=t.map((e,t)=>new uh(mt(i,o,e),r[t]));s=new ch(n,a)}else s=new uh(e,t);return r.reduce(i,s)}const dh={amd:gh,cjs:gh,es:mh,iife:gh,system:mh,umd:gh};function fh(e,t,n,r,i,s,o){!function(e,t,n){for(const r of t){const t=r.scope;for(const[n,r]of t.accessedOutsideVariables)r.included&&e.add(n);const i=t.accessedGlobalVariablesByFormat&&t.accessedGlobalVariablesByFormat.get(n);if(i)for(const t of i)e.add(t)}}(r,e,i),function(e,t){for(const n of t){for(const t of n.scope.variables.values())t.included&&!(t.renderBaseName||t instanceof eo&&t.getOriginalVariable()!==t)&&t.setRenderNames(null,xe(t.name,e));const t=n.getOrCreateNamespace();t.included&&t.setRenderNames(null,xe(t.name,e))}}(r,e),dh[i](r,n,t,s,o);for(const t of e)t.scope.deconflict(i)}function mh(e,t,n,r){for(const n of t){const t=n.module,i=n.name;let s;s=t instanceof gt&&("*"===i||"default"===i)?"default"===i&&r&&t.exportsNamespace?t.variableName+"__default":t.variableName:i,n.setRenderNames(null,xe(s,e))}}function gh(e,t,n,r,i){for(const t of n)t.variableName=xe(t.variableName,e);for(const e of t){const t=e.module;if(t instanceof gt){const n=e.name;"default"===n&&r&&(t.exportsNamespace||t.exportsNames)?e.setRenderNames(null,t.variableName+"__default"):"*"===n||"default"===n?e.setRenderNames(null,t.variableName):e.setRenderNames(t.variableName,null)}else{const n=t.chunk;"default"===n.exportMode||i&&e.isNamespace?e.setRenderNames(null,n.variableName):e.setRenderNames(n.variableName,n.getVariableExportName(e))}}}const yh=(e,t)=>e.execIndex>t.execIndex?1:-1;function vh(e){e.sort(yh)}function xh(e,t,n){const r=[Ao(e)];let i=t;for(;i!==e&&(r.push(Ao(i)),i=n[i]););return r.push(r[0]),r.reverse(),r}function Eh(e){const t=e.split("\n"),n=t.filter(e=>/^\t+/.test(e)),r=t.filter(e=>/^ {2,}/.test(e));if(0===n.length&&0===r.length)return null;if(n.length>=r.length)return"\t";const i=r.reduce((e,t)=>{const n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return new Array(i+1).join(" ")}function _h(e){if(!e)return null;if("string"==typeof e&&(e=JSON.parse(e)),""===e.mappings)return{mappings:[],names:[],sources:[],version:3};let t;return t="string"==typeof e.mappings?function(e){for(var t=0,n=0,r=0,i=0,s=0,o=[],a=[],h=[],u=0,c=0,l=0,p=0,d=e.length;u<d;u++){var f=e.charCodeAt(u);if(44===f)h.length&&a.push(h),h=[],c=0;else if(59===f)h.length&&a.push(h),h=[],c=0,o.push(a),a=[],t=0;else{var m=$[f];if(void 0===m)throw new Error("Invalid character ("+String.fromCharCode(f)+")");var g=32&m;if(p+=(m&=31)<<l,g)l+=5;else{var y=1&p;p>>>=1,y&&0==(p=-p)&&(p=-2147483648),0==c?(t+=p,h.push(t)):1===c?(n+=p,h.push(n)):2===c?(r+=p,h.push(r)):3===c?(i+=p,h.push(i)):4===c&&(s+=p,h.push(s)),c++,p=l=0}}}return h.length&&a.push(h),o.push(a),o}(e.mappings):e.mappings,Object.assign({},e,{mappings:t})}function bh(e,t,n){return So(e)||wo({code:"INVALID_PATTERN",message:`Invalid output pattern "${e}" for ${t}, cannot be an absolute or relative URL or path.`}),e.replace(/\[(\w+)\]/g,(e,r)=>{const i=n(r);return void 0===i&&wo({code:"INVALID_PATTERN_REPLACEMENT",message:`"${r}" is not a valid substitution name in output option ${t} pattern.`}),So(i)||wo({code:"INVALID_PATTERN_REPLACEMENT",message:`Invalid replacement "${i}" for "${r}" in ${t} pattern, must be a plain path name.`}),i})}function Ah(e,t){if(e in t==!1)return e;const n=dt(e);e=e.substr(0,e.length-n.length);let r,i=1;for(;t[r=e+ ++i+n];);return r}function Sh(e){return e.replace(/[\0?*]/g,"_")}function wh(e,t,n,r){let i;return"function"==typeof t?i=t(e.id):t&&(i=t[e.id]),i||(r?(n.warn({code:"MISSING_GLOBAL_NAME",guess:e.variableName,message:`No name was provided for external module '${e.id}' in output.globals – guessing '${e.variableName}'`,source:e.id}),e.variableName):void 0)}function Ih(e){return!e.isEmpty||e.entryModules.length>0||null!==e.manualChunkAlias}class Ph{constructor(e,t){this.entryModules=[],this.exportMode="named",this.facadeModule=null,this.id=void 0,this.indentString=void 0,this.manualChunkAlias=null,this.usedModules=void 0,this.dependencies=void 0,this.dynamicDependencies=void 0,this.exportNames=Object.create(null),this.exports=new Set,this.imports=new Set,this.needsExportsShim=!1,this.renderedDeclarations=void 0,this.renderedHash=void 0,this.renderedModuleSources=new Map,this.renderedSource=null,this.renderedSourceLength=void 0,this.sortedExportNames=null,this.graph=e,this.orderedModules=t,this.execIndex=t.length>0?t[0].execIndex:1/0,this.isEmpty=!0;for(const e of t)this.isEmpty&&e.isIncluded()&&(this.isEmpty=!1),e.manualChunkAlias&&(this.manualChunkAlias=e.manualChunkAlias),e.chunk=this,(e.isEntryPoint||e.dynamicallyImportedBy.some(e=>-1===t.indexOf(e)))&&this.entryModules.push(e);const n=this.entryModules[0];this.variableName=n?st(lt(n.chunkAlias||n.manualChunkAlias||bo(n.id))):"__chunk_"+ ++e.curChunkIndex}static generateFacade(e,t){const n=new Ph(e,[]);n.dependencies=[t.chunk],n.dynamicDependencies=[],n.facadeModule=t,t.facadeChunk=n;for(const e of t.getAllExportNames()){const r=t.getVariableForExportName(e);n.exports.add(r),n.exportNames[e]=r}return n}canModuleBeFacade(e,t){if(this.manualChunkAlias&&t&&this.manualChunkAlias!==t)return!1;for(const t of this.exports)if(!e.has(t))return!1;return!0}generateFacades(){const e=[];for(const t of this.entryModules){if(!this.facadeModule){const e=t.getExportNamesByVariable();if(this.graph.preserveModules||this.canModuleBeFacade(e,t.chunkAlias)){this.facadeModule=t;for(const[t,n]of e)for(const e of n)this.exportNames[e]=t;continue}}e.push(Ph.generateFacade(this.graph,t))}return e}generateId(e,t,n,r,i){this.id=Ah(bh(e,t,e=>{switch(e){case"format":return"es"===r.format?"esm":r.format;case"hash":return this.computeContentHashWithDependencies(n,r);case"name":return this.getChunkName()}}),i)}generateIdPreserveModules(e,t){const n=Sh(this.orderedModules[0].id);this.id=Ah(ct(ht(this.orderedModules[0].id)?K(e,n):"_virtual/"+lt(n)),t)}generateInternalExports(e){if(null!==this.facadeModule)return;const t="system"===e.format||"es"===e.format||e.compact;let n,r=0;if(this.exportNames=Object.create(null),this.sortedExportNames=null,t)for(const e of this.exports){const t=e.name[0];if(this.exportNames[t]){do{49===(n=ye(++r)).charCodeAt(0)&&(n=ye(r+=9*Math.pow(64,n.length-1)))}while(ve[n]||this.exportNames[n]);this.exportNames[n]=e}else this.exportNames[t]=e}else for(const e of this.exports){for(r=0,n=e.name;this.exportNames[n];)n=e.name+"$"+ ++r;this.exportNames[n]=e}}getChunkName(){return this.chunkName||(this.chunkName=this.computeChunkName())}getDynamicImportIds(){return this.dynamicDependencies.map(e=>e.id).filter(Boolean)}getExportNames(){return this.sortedExportNames||(this.sortedExportNames=Object.keys(this.exportNames).sort())}getImportIds(){return this.dependencies.map(e=>e.id)}getRenderedHash(){if(this.renderedHash)return this.renderedHash;if(!this.renderedSource)return"";const e=k();return e.update(this.renderedSource.toString()),e.update(this.getExportNames().map(e=>{const t=this.exportNames[e];return`${Ao(t.module.id).replace(/\\/g,"/")}:${t.name}:${e}`}).join(",")),this.renderedHash=e.digest("hex")}getRenderedSourceLength(){return void 0!==this.renderedSourceLength?this.renderedSourceLength:this.renderedSourceLength=this.renderedSource.length()}getVariableExportName(e){if(this.graph.preserveModules&&e instanceof lo)return"*";for(const t of Object.keys(this.exportNames))if(this.exportNames[t]===e)return t;throw new Error(`Internal Error: Could not find export name for variable ${e.name}.`)}link(){const e=new Set,t=new Set;for(const n of this.orderedModules)this.addDependenciesToChunk(n.getTransitiveDependencies(),e),this.addDependenciesToChunk(n.dynamicDependencies,t),this.setUpChunkImportsAndExportsForModule(n);this.dependencies=Array.from(e),this.dynamicDependencies=Array.from(t)}merge(e,t,n,r){if(null!==this.facadeModule||null!==e.facadeModule)throw new Error("Internal error: Code splitting chunk merges not supported for facades");for(const t of e.orderedModules)t.chunk=this,this.orderedModules.push(t);for(const t of e.imports)this.imports.has(t)||t.module.chunk===this||this.imports.add(t);for(const t of e.exports)this.exports.has(t)||this.exports.add(t);const i=this.exportNames;this.generateInternalExports(n);const s=(e,t)=>{if(e.imports)for(const n of e.imports)n.imported=this.getVariableExportName(t[n.imported]);if(e.reexports)for(const n of e.reexports)n.imported=this.getVariableExportName(t[n.imported])},o=(e,t)=>{t.imports&&(e.imports?e.imports=e.imports.concat(t.imports):e.imports=t.imports),t.reexports&&(e.reexports?e.reexports=e.reexports.concat(t.reexports):e.reexports=t.reexports),!e.exportsNames&&t.exportsNames&&(e.exportsNames=!0),!e.exportsDefault&&t.exportsDefault&&(e.exportsDefault=!0),e.name=this.variableName};for(const n of t){let t=void 0;for(let r=0;r<n.dependencies.length;r++){const a=n.dependencies[r];if(a!==e&&a!==this||!t)a===e?(n.dependencies[r]=this,s(t=n.renderedDeclarations.dependencies[r],e.exportNames)):a===this&&s(t=n.renderedDeclarations.dependencies[r],i);else{const h=n.renderedDeclarations.dependencies[r];s(h,a===e?e.exportNames:i),o(t,h),n.renderedDeclarations.dependencies.splice(r,1),n.dependencies.splice(r--,1)}}}this.preRender(n,r)}preRender(e,t){eh("render modules",3);const n=new H({separator:e.compact?"":"\n\n"});this.usedModules=[],this.indentString=e.compact?"":function(e,t){if(!0!==t.indent)return t.indent||"";for(let t=0;t<e.length;t++){const n=Eh(e[t].originalCode);if(null!==n)return n}return"\t"}(this.orderedModules,e);const r=e.compact?"":"\n",i=e.compact?"":" ",s={compact:e.compact,dynamicImportFunction:e.dynamicImportFunction,format:e.format,freeze:!1!==e.freeze,indent:this.indentString,namespaceToStringTag:!0===e.namespaceToStringTag,varOrConst:e.preferConst?"const":"var"};for(const{module:e}of this.imports){const t=e instanceof hh?e.chunk:e;-1===this.dependencies.indexOf(t)&&this.dependencies.push(t)}if(!this.graph.preserveModules&&null!==this.facadeModule)for(const e of this.dependencies)e instanceof Ph&&this.inlineChunkDependencies(e,!0);for(let e=0;e<this.dependencies.length;e++){const t=this.dependencies[e];t instanceof Ph&&t.isEmpty&&(this.dependencies.splice(e--,1),this.inlineChunkDependencies(t,!1))}vh(this.dependencies),this.prepareDynamicImports(),this.setIdentifierRenderResolutions(e);let o="";const a=this.renderedModules=Object.create(null);for(const t of this.orderedModules){let i=0;if(t.isIncluded()){const a=t.render(s).trim();e.compact&&-1!==a.lastLine().indexOf("//")&&a.append("\n");const h=t.getOrCreateNamespace();if((h.included||a.length()>0)&&(i=a.length(),this.renderedModuleSources.set(t,a),n.addSource(a),this.usedModules.push(t),h.included&&!this.graph.preserveModules)){const e=h.renderBlock(s);h.renderFirst()?o+=r+e:n.addSource(new q(e))}}const{renderedExports:h,removedExports:u}=t.getRenderedExports();a[t.id]={originalLength:t.originalCode.length,removedExports:u,renderedExports:h,renderedLength:i}}o&&n.prepend(o+r+r),this.needsExportsShim&&n.prepend(`${r}${s.varOrConst} ${to}${i}=${i}void 0;${r}${r}`),e.compact?this.renderedSource=n:this.renderedSource=n.trim(),this.renderedSourceLength=void 0,this.renderedHash=void 0,0===this.getExportNames().length&&0===this.getImportIds().length&&this.isEmpty&&this.graph.warn({code:"EMPTY_BUNDLE",message:"Generated an empty bundle"}),this.setExternalRenderPaths(e,t),this.renderedDeclarations={dependencies:this.getChunkDependencyDeclarations(e),exports:"none"===this.exportMode?[]:this.getChunkExportDeclarations()},th("render modules",3)}render(e,t,n){if(eh("render format",3),!this.renderedSource)throw new Error("Internal error: Chunk render called before preRender");const r=e.format,i=Uo[r];i||wo({code:"INVALID_OPTION",message:`Invalid format: ${r} - valid options are ${Object.keys(Uo).join(", ")}.`}),e.dynamicImportFunction&&"es"!==r&&this.graph.warn({code:"INVALID_OPTION",message:'"output.dynamicImportFunction" is ignored for formats other than "esm".'});for(let e=0;e<this.dependencies.length;e++){const t=this.dependencies[e];if(t instanceof gt&&!t.renormalizeRenderPath)continue;const n=this.renderedDeclarations.dependencies[e],r=t instanceof gt?n.id:t.id;let i=this.id?ct(K(pt(this.id),r)):r;i.startsWith("../")||(i="./"+i),t instanceof Ph&&(n.namedExportsMode="default"!==t.exportMode),n.id=i}this.finaliseDynamicImports(r),this.finaliseImportMetas(r);const s=0!==this.renderedDeclarations.exports.length||this.renderedDeclarations.dependencies.some(e=>e.reexports&&0!==e.reexports.length);let o=!1;const a=new Set;for(const e of this.orderedModules){e.usesTopLevelAwait&&(o=!0);const t=e.scope.accessedGlobalVariablesByFormat,n=t&&t.get(r);if(n)for(const e of n)a.add(e)}o&&"es"!==r&&"system"!==r&&wo({code:"INVALID_TLA_FORMAT",message:`Module format ${r} does not support top-level await. Use the "es" or "system" output formats rather.`});const h=i(this.renderedSource,{accessedGlobals:a,dependencies:this.renderedDeclarations.dependencies,exports:this.renderedDeclarations.exports,hasExports:s,indentString:this.indentString,intro:t.intro,isEntryModuleFacade:null!==this.facadeModule&&this.facadeModule.isEntryPoint,namedExportsMode:"default"!==this.exportMode,outro:t.outro,usesTopLevelAwait:o,varOrConst:e.preferConst?"const":"var",warn:this.graph.warn.bind(this.graph)},e);t.banner&&h.prepend(t.banner),t.footer&&h.append(t.footer);const u=h.toString();th("render format",3);let c=null;const l=[];return function({graph:e,chunk:t,renderChunk:n,code:r,sourcemapChain:i,options:s}){const o=(e,t,n)=>{if(null==t)return e;if("string"==typeof t&&(t={code:t,map:void 0}),null!==t.map){const e=_h(t.map);i.push(e||{missing:!0,plugin:n.name})}return t.code};let a=!1,h=!0;return e.pluginDriver.hookReduceArg0("renderChunk",[r,n,s],o).then(n=>(h=!1,e.pluginDriver.hookReduceArg0("transformChunk",[n,s,t],o))).then(n=>(a=!0,e.pluginDriver.hookReduceArg0("transformBundle",[n,s,t],o))).catch(e=>{if(h)throw e;return wo(e,{code:a?"BAD_BUNDLE_TRANSFORMER":"BAD_CHUNK_TRANSFORMER",message:`Error transforming ${(a?"bundle":"chunk")+(e.plugin?` with '${e.plugin}' plugin`:"")}: ${e.message}`,plugin:e.plugin})})}({chunk:this,code:u,graph:this.graph,options:e,renderChunk:n,sourcemapChain:l}).then(t=>{if(e.sourcemap){let t;if(eh("sourcemap",3),t=e.file?mt(e.sourcemapFile||e.file):e.dir?mt(e.dir,this.id):mt(this.id),this.graph.pluginDriver.hasLoadersOrTransforms){const n=h.generateDecodedMap({});c=function(e,t,n,r,i,s){const o=lh(e.graph),a=r.filter(e=>!e.excludeFromSourcemap).map(e=>ph(e.id,e.originalCode,e.originalSourcemap,e.sourcemapChain,o));let h=new ch(n,a);h=i.reduce(o,h);let{sources:u,sourcesContent:c,names:l,mappings:p}=h.traceMappings();if(t){const e=pt(t);u=u.map(t=>ft(e,t)),t=lt(t)}return new T({file:t,sources:u,sourcesContent:c=s?null:c,names:l,mappings:p})}(this,t,n,this.usedModules,l,e.sourcemapExcludeSources)}else c=h.generateMap({file:t,includeContent:!e.sourcemapExcludeSources});c.sources=c.sources.map(t=>ct(e.sourcemapPathTransform?e.sourcemapPathTransform(t):t)),th("sourcemap",3)}return!0!==e.compact&&"\n"!==t[t.length-1]&&(t+="\n"),{code:t,map:c}})}visitDependencies(e){const t=[this],n=new Set;for(const r of t)if(e(r),!(r instanceof gt))for(const e of r.dependencies.concat(r.dynamicDependencies))n.has(e)||(n.add(e),t.push(e))}visitStaticDependenciesUntilCondition(e){const t=new Set;return function n(r){if(!t.has(r)){if(t.add(r),r instanceof Ph)for(const e of r.dependencies)if(n(e))return!0;return!0===e(r)}}(this)}addDependenciesToChunk(e,t){for(const n of e){if(n.chunk===this)continue;let e;if(n instanceof hh)e=n.chunk;else{if(!n.used&&!n.moduleSideEffects)continue;e=n}t.add(e)}}computeChunkName(){if(this.manualChunkAlias)return Sh(this.manualChunkAlias);if(null!==this.facadeModule)return Sh(this.facadeModule.chunkAlias||bo(this.facadeModule.id));for(const e of this.orderedModules)if(e.chunkAlias)return Sh(e.chunkAlias);return"chunk"}computeContentHashWithDependencies(e,t){const n=k();return n.update([e.intro,e.outro,e.banner,e.footer].map(e=>e||"").join(":")),n.update(t.format),this.visitDependencies(e=>{e instanceof gt?n.update(":"+e.renderPath):n.update(e.getRenderedHash())}),n.digest("hex").substr(0,8)}finaliseDynamicImports(e){for(const[t,n]of this.renderedModuleSources)for(const{node:r,resolution:i}of t.dynamicImports)if(i)if(i instanceof hh){if(i.chunk!==this&&Ih(i.chunk)){const t=i.facadeChunk||i.chunk;let s=ct(K(pt(this.id),t.id));s.startsWith("../")||(s="./"+s),r.renderFinalResolution(n,`'${s}'`,e)}}else if(i instanceof gt){let t=i.id;i.renormalizeRenderPath&&((t=ct(K(pt(this.id),i.renderPath))).startsWith("../")||(t="./"+t)),r.renderFinalResolution(n,`'${t}'`,e)}else r.renderFinalResolution(n,i,e)}finaliseImportMetas(e){for(const[t,n]of this.renderedModuleSources)for(const r of t.importMetas)r.renderFinalMechanism(n,this.id,e,this.graph.pluginDriver)}getChunkDependencyDeclarations(e){const t=new Map;for(let e of this.getExportNames()){let n,r,i=!1;if("*"===e[0])n=this.graph.moduleById.get(e.substr(1)),r=e="*";else{const t=this.exportNames[e],s=t.module;if(!s||s.chunk===this)continue;s instanceof hh?(r=(n=s.chunk).getVariableExportName(t),i=t.isReassigned):(n=s,r=t.name,i=!0)}let s=t.get(n);s||t.set(n,s=[]),s.push({imported:r,reexported:e,needsLiveBinding:i})}const n=new Set,r=[];for(const i of this.dependencies){const s=[];for(const e of this.imports){const t=e instanceof eo?e.getOriginalVariable():e;(e.module instanceof hh?e.module.chunk!==i:e.module!==i)||n.has(t)||(n.add(t),s.push({imported:e.module instanceof gt?e.name:e.module.chunk.getVariableExportName(e),local:e.getName()}))}const o=t.get(i);let a,h,u=!0;i instanceof gt?(a=i.exportsNames||i.exportsNamespace,h="default"in i.declarations):(a=!0,h=!1,u="default"!==i.exportMode);let c=void 0,l=void 0;i instanceof gt&&(c=i.renderPath,"umd"!==e.format&&"iife"!==e.format||(l=wh(i,e.globals,this.graph,a||h))),r.push({exportsDefault:h,exportsNames:a,globalName:l,id:c,imports:s.length>0?s:null,isChunk:i instanceof Ph,name:i.variableName,namedExportsMode:u,reexports:o})}return r}getChunkExportDeclarations(){const e=[];for(const t of this.getExportNames()){if("*"===t[0])continue;const n=this.exportNames[t],r=n.module;if(r&&r.chunk!==this)continue;let i=!1,s=!1;if(n instanceof xt){n.init===Pe&&(s=!0);for(const e of n.declarations)if(e.parent instanceof Qs||e instanceof Zs&&e.declaration instanceof Qs){i=!0;break}}else n instanceof co&&(i=!0);const o=n.getName();e.push({exported:"*"===t?o:t,hoisted:i,local:o,uninitialized:s})}return e}inlineChunkDependencies(e,t){for(const n of e.dependencies)if(n instanceof gt)-1===this.dependencies.indexOf(n)&&this.dependencies.push(n);else{if(n===this||-1!==this.dependencies.indexOf(n))continue;n.isEmpty||this.dependencies.push(n),t&&this.inlineChunkDependencies(n,!0)}}prepareDynamicImports(){for(const e of this.orderedModules)for(const{node:t,resolution:n}of e.dynamicImports)if(t.included)if(n instanceof hh)if(n.chunk===this){const e=n.getOrCreateNamespace();t.setResolution("named",e)}else t.setResolution(n.chunk.exportMode);else t.setResolution("auto")}setExternalRenderPaths(e,t){for(const n of this.dependencies.concat(this.dynamicDependencies))n instanceof gt&&n.setRenderPath(e,t)}setIdentifierRenderResolutions(e){for(const t of this.getExportNames()){const n=this.exportNames[t];n&&(n instanceof io&&(this.needsExportsShim=!0),n.exportName=t,"es"===e.format||"system"===e.format||!n.isReassigned||n.isId||n instanceof eo&&n.hasId?n.setRenderNames(null,null):n.setRenderNames("exports",t))}const t=new Set;this.needsExportsShim&&t.add(to),"es"!==e.format&&(t.add("exports"),"cjs"===e.format&&t.add(no).add("require").add("module").add("__filename").add("__dirname")),fh(this.orderedModules,this.dependencies,this.imports,t,e.format,!1!==e.interop,this.graph.preserveModules)}setUpChunkImportsAndExportsForModule(e){for(const t of e.imports)t.module.chunk!==this&&(this.imports.add(t),t.module instanceof hh&&t.module.chunk.exports.add(t));if(e.isEntryPoint||e.dynamicallyImportedBy.some(e=>e.chunk!==this)){const t=e.getExportNamesByVariable();for(const e of t.keys()){this.exports.add(e);const t=e.module;t&&t.chunk&&t.chunk!==this&&t.chunk.exports.add(e)}}if(e.getOrCreateNamespace().included)for(const t of Object.keys(e.reexports)){const n=e.reexports[t],r=n.module.getVariableForExportName(n.localName);r.module.chunk!==this&&(this.imports.add(r),r.module instanceof hh&&r.module.chunk.exports.add(r))}for(const{node:t,resolution:n}of e.dynamicImports)t.included&&n instanceof hh&&n.chunk===this&&n.getOrCreateNamespace().include()}}var Ch={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},kh="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",$h={5:kh,6:kh+" const class extends export import super"},Nh=/^in(stanceof)?$/,Rh="aab5bac0-d6d8-f6f8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Oh="b7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",Mh=new RegExp("["+Rh+"]"),Dh=new RegExp("["+Rh+Oh+"]");Rh=Oh=null;var Th=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,155,22,13,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,0,33,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,0,161,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,754,9486,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],Lh=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,232,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,792487,239];function Vh(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}}function Bh(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&Mh.test(String.fromCharCode(e)):!1!==t&&Vh(e,Th)))}function zh(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&Dh.test(String.fromCharCode(e)):!1!==t&&(Vh(e,Th)||Vh(e,Lh)))))}var jh=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function Wh(e,t){return new jh(e,{beforeExpr:!0,binop:t})}var Uh={beforeExpr:!0},Fh={startsExpr:!0},qh={};function Gh(e,t){return void 0===t&&(t={}),t.keyword=e,qh[e]=new jh(e,t)}var Hh={num:new jh("num",Fh),regexp:new jh("regexp",Fh),string:new jh("string",Fh),name:new jh("name",Fh),eof:new jh("eof"),bracketL:new jh("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new jh("]"),braceL:new jh("{",{beforeExpr:!0,startsExpr:!0}),braceR:new jh("}"),parenL:new jh("(",{beforeExpr:!0,startsExpr:!0}),parenR:new jh(")"),comma:new jh(",",Uh),semi:new jh(";",Uh),colon:new jh(":",Uh),dot:new jh("."),question:new jh("?",Uh),arrow:new jh("=>",Uh),template:new jh("template"),invalidTemplate:new jh("invalidTemplate"),ellipsis:new jh("...",Uh),backQuote:new jh("`",Fh),dollarBraceL:new jh("${",{beforeExpr:!0,startsExpr:!0}),eq:new jh("=",{beforeExpr:!0,isAssign:!0}),assign:new jh("_=",{beforeExpr:!0,isAssign:!0}),incDec:new jh("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new jh("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Wh("||",1),logicalAND:Wh("&&",2),bitwiseOR:Wh("|",3),bitwiseXOR:Wh("^",4),bitwiseAND:Wh("&",5),equality:Wh("==/!=/===/!==",6),relational:Wh("</>/<=/>=",7),bitShift:Wh("<</>>/>>>",8),plusMin:new jh("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Wh("%",10),star:Wh("*",10),slash:Wh("/",10),starstar:new jh("**",{beforeExpr:!0}),_break:Gh("break"),_case:Gh("case",Uh),_catch:Gh("catch"),_continue:Gh("continue"),_debugger:Gh("debugger"),_default:Gh("default",Uh),_do:Gh("do",{isLoop:!0,beforeExpr:!0}),_else:Gh("else",Uh),_finally:Gh("finally"),_for:Gh("for",{isLoop:!0}),_function:Gh("function",Fh),_if:Gh("if"),_return:Gh("return",Uh),_switch:Gh("switch"),_throw:Gh("throw",Uh),_try:Gh("try"),_var:Gh("var"),_const:Gh("const"),_while:Gh("while",{isLoop:!0}),_with:Gh("with"),_new:Gh("new",{beforeExpr:!0,startsExpr:!0}),_this:Gh("this",Fh),_super:Gh("super",Fh),_class:Gh("class",Fh),_extends:Gh("extends",Uh),_export:Gh("export"),_import:Gh("import",Fh),_null:Gh("null",Fh),_true:Gh("true",Fh),_false:Gh("false",Fh),_in:Gh("in",{beforeExpr:!0,binop:7}),_instanceof:Gh("instanceof",{beforeExpr:!0,binop:7}),_typeof:Gh("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Gh("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Gh("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Kh=/\r\n?|\n|\u2028|\u2029/,Yh=new RegExp(Kh.source,"g");function Xh(e,t){return 10===e||13===e||!t&&(8232===e||8233===e)}var Qh=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Jh=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Zh=Object.prototype,eu=Zh.hasOwnProperty,tu=Zh.toString;function nu(e,t){return eu.call(e,t)}var ru=Array.isArray||function(e){return"[object Array]"===tu.call(e)};function iu(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var su=function(e,t){this.line=e,this.column=t};su.prototype.offset=function(e){return new su(this.line,this.column+e)};var ou=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function au(e,t){for(var n=1,r=0;;){Yh.lastIndex=r;var i=Yh.exec(e);if(!(i&&i.index<t))return new su(n,t-r);++n,r=i.index+i[0].length}}var hu={ecmaVersion:9,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function uu(e){var t={};for(var n in hu)t[n]=e&&nu(e,n)?e[n]:hu[n];if(t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),ru(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return ru(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,s,o,a){var h={type:n?"Block":"Line",value:r,start:i,end:s};e.locations&&(h.loc=new ou(this,o,a)),e.ranges&&(h.range=[i,s]),t.push(h)}}(t,t.onComment)),t}var cu=2,lu=1|cu,pu=4,du=8;function fu(e,t){return cu|(e?pu:0)|(t?du:0)}var mu=function(e,t,n){this.options=e=uu(e),this.sourceFile=e.sourceFile,this.keywords=iu($h[e.ecmaVersion>=6?6:5]);var r="";if(!e.allowReserved){for(var i=e.ecmaVersion;!(r=Ch[i]);i--);"module"===e.sourceType&&(r+=" await")}this.reservedWords=iu(r);var s=(r?r+" ":"")+Ch.strict;this.reservedWordsStrict=iu(s),this.reservedWordsStrictBind=iu(s+" "+Ch.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Kh).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=Hh.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},gu={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};mu.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},gu.inFunction.get=function(){return(this.currentVarScope().flags&cu)>0},gu.inGenerator.get=function(){return(this.currentVarScope().flags&du)>0},gu.inAsync.get=function(){return(this.currentVarScope().flags&pu)>0},gu.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},gu.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},gu.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},mu.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&cu)>0},mu.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},mu.parse=function(e,t){return new this(t,e).parse()},mu.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},mu.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(mu.prototype,gu);var yu=mu.prototype,vu=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)")/;function xu(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}yu.strictDirective=function(e){for(;;){Jh.lastIndex=e,e+=Jh.exec(this.input)[0].length;var t=vu.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2]))return!0;e+=t[0].length,Jh.lastIndex=e,e+=Jh.exec(this.input)[0].length,";"===this.input[e]&&e++}},yu.eat=function(e){return this.type===e&&(this.next(),!0)},yu.isContextual=function(e){return this.type===Hh.name&&this.value===e&&!this.containsEsc},yu.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},yu.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},yu.canInsertSemicolon=function(){return this.type===Hh.eof||this.type===Hh.braceR||Kh.test(this.input.slice(this.lastTokEnd,this.start))},yu.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},yu.semicolon=function(){this.eat(Hh.semi)||this.insertSemicolon()||this.unexpected()},yu.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},yu.expect=function(e){this.eat(e)||this.unexpected()},yu.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},yu.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},yu.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},yu.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},yu.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var Eu=mu.prototype;Eu.parseTopLevel=function(e){var t={};for(e.body||(e.body=[]);this.type!==Hh.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var s=i[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),this.options.ecmaVersion>=6&&(e.sourceType=this.options.sourceType),this.finishNode(e,"Program")};var _u={kind:"loop"},bu={kind:"switch"};Eu.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Jh.lastIndex=this.pos;var t=Jh.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(91===r)return!0;if(e)return!1;if(123===r)return!0;if(Bh(r,!0)){for(var i=n+1;zh(this.input.charCodeAt(i),!0);)++i;var s=this.input.slice(n,i);if(!Nh.test(s))return!0}return!1},Eu.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Jh.lastIndex=this.pos;var e=Jh.exec(this.input),t=this.pos+e[0].length;return!(Kh.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!==this.input.length&&zh(this.input.charAt(t+8)))},Eu.parseStatement=function(e,t,n){var r,i=this.type,s=this.startNode();switch(this.isLet(e)&&(i=Hh._var,r="let"),i){case Hh._break:case Hh._continue:return this.parseBreakContinueStatement(s,i.keyword);case Hh._debugger:return this.parseDebuggerStatement(s);case Hh._do:return this.parseDoStatement(s);case Hh._for:return this.parseForStatement(s);case Hh._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case Hh._class:return e&&this.unexpected(),this.parseClass(s,!0);case Hh._if:return this.parseIfStatement(s);case Hh._return:return this.parseReturnStatement(s);case Hh._switch:return this.parseSwitchStatement(s);case Hh._throw:return this.parseThrowStatement(s);case Hh._try:return this.parseTryStatement(s);case Hh._const:case Hh._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(s,r);case Hh._while:return this.parseWhileStatement(s);case Hh._with:return this.parseWithStatement(s);case Hh.braceL:return this.parseBlock(!0,s);case Hh.semi:return this.parseEmptyStatement(s);case Hh._export:case Hh._import:if(this.options.ecmaVersion>10&&i===Hh._import){Jh.lastIndex=this.pos;var o=Jh.exec(this.input),a=this.pos+o[0].length;if(40===this.input.charCodeAt(a))return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===Hh._import?this.parseImport(s):this.parseExport(s,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var h=this.value,u=this.parseExpression();return i===Hh.name&&"Identifier"===u.type&&this.eat(Hh.colon)?this.parseLabeledStatement(s,h,u,e):this.parseExpressionStatement(s,u)}},Eu.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(Hh.semi)||this.insertSemicolon()?e.label=null:this.type!==Hh.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(n||"loop"===i.kind))break;if(e.label&&n)break}}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},Eu.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},Eu.parseDoStatement=function(e){return this.next(),this.labels.push(_u),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(Hh._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(Hh.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},Eu.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(_u),this.enterScope(0),this.expect(Hh.parenL),this.type===Hh.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===Hh._var||this.type===Hh._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===Hh._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===Hh._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var s=new xu,o=this.parseExpression(!0,s);return this.type===Hh._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===Hh._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(o,!1,s),this.checkLVal(o),this.parseForIn(e,o)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,o))},Eu.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Su|(n?0:wu),!1,t)},Eu.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(Hh._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},Eu.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Hh.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},Eu.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(Hh.braceL),this.labels.push(bu),this.enterScope(0);for(var n=!1;this.type!==Hh.braceR;)if(this.type===Hh._case||this.type===Hh._default){var r=this.type===Hh._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(Hh.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},Eu.parseThrowStatement=function(e){return this.next(),Kh.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Au=[];Eu.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===Hh._catch){var t=this.startNode();if(this.next(),this.eat(Hh.parenL)){t.param=this.parseBindingAtom();var n="Identifier"===t.param.type;this.enterScope(n?32:0),this.checkLVal(t.param,n?4:2),this.expect(Hh.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(Hh._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},Eu.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},Eu.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(_u),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},Eu.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},Eu.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},Eu.parseLabeledStatement=function(e,t,n,r){for(var i=0,s=this.labels;i<s.length;i+=1){s[i].name===t&&this.raise(n.start,"Label '"+t+"' is already declared")}for(var o=this.type.isLoop?"loop":this.type===Hh._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var h=this.labels[a];if(h.statementStart!==e.start)break;h.statementStart=this.start,h.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},Eu.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},Eu.parseBlock=function(e,t){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(Hh.braceL),e&&this.enterScope(0);!this.eat(Hh.braceR);){var n=this.parseStatement(null);t.body.push(n)}return e&&this.exitScope(),this.finishNode(t,"BlockStatement")},Eu.parseFor=function(e,t){return e.init=t,this.expect(Hh.semi),e.test=this.type===Hh.semi?null:this.parseExpression(),this.expect(Hh.semi),e.update=this.type===Hh.parenR?null:this.parseExpression(),this.expect(Hh.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},Eu.parseForIn=function(e,t){var n=this.type===Hh._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)?this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===t.type&&this.raise(t.start,"Invalid left-hand side in for-loop"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(Hh.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},Eu.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(Hh.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===Hh._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||t&&(this.type===Hh._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(Hh.comma))break}return e},Eu.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"var"===t?1:2,!1)};var Su=1,wu=2;Eu.parseFunction=function(e,t,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===Hh.star&&t&wu&&this.unexpected(),e.generator=this.eat(Hh.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Su&&(e.id=4&t&&this.type!==Hh.name?null:this.parseIdent(),!e.id||t&wu||this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(fu(e.async,e.generator)),t&Su||(e.id=this.type===Hh.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(e,t&Su?"FunctionDeclaration":"FunctionExpression")},Eu.parseFunctionParams=function(e){this.expect(Hh.parenL),e.params=this.parseBindingList(Hh.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Eu.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.startNode(),i=!1;for(r.body=[],this.expect(Hh.braceL);!this.eat(Hh.braceR);){var s=this.parseClassElement(null!==e.superClass);s&&(r.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind&&(i&&this.raise(s.start,"Duplicate constructor in the same class"),i=!0))}return e.body=this.finishNode(r,"ClassBody"),this.strict=n,this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},Eu.parseClassElement=function(e){var t=this;if(this.eat(Hh.semi))return null;var n=this.startNode(),r=function(e,r){void 0===r&&(r=!1);var i=t.start,s=t.startLoc;return!!t.eatContextual(e)&&(!(t.type===Hh.parenL||r&&t.canInsertSemicolon())||(n.key&&t.unexpected(),n.computed=!1,n.key=t.startNodeAt(i,s),n.key.name=e,t.finishNode(n.key,"Identifier"),!1))};n.kind="method",n.static=r("static");var i=this.eat(Hh.star),s=!1;i||(this.options.ecmaVersion>=8&&r("async",!0)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(Hh.star)):r("get")?n.kind="get":r("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var o=n.key,a=!1;return n.computed||n.static||!("Identifier"===o.type&&"constructor"===o.name||"Literal"===o.type&&"constructor"===o.value)?n.static&&"Identifier"===o.type&&"prototype"===o.name&&this.raise(o.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(o.start,"Constructor can't have get/set modifier"),i&&this.raise(o.start,"Constructor can't be a generator"),s&&this.raise(o.start,"Constructor can't be an async method"),n.kind="constructor",a=e),this.parseClassMethod(n,i,s,a),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},Eu.parseClassMethod=function(e,t,n,r){return e.value=this.parseMethod(t,n,r),this.finishNode(e,"MethodDefinition")},Eu.parseClassId=function(e,t){this.type===Hh.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},Eu.parseClassSuper=function(e){e.superClass=this.eat(Hh._extends)?this.parseExprSubscripts():null},Eu.parseExport=function(e,t){if(this.next(),this.eat(Hh.star))return this.expectContextual("from"),this.type!==Hh.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(Hh._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===Hh._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,4|Su,!1,n)}else if(this.type===Hh._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==Hh.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var s=0,o=e.specifiers;s<o.length;s+=1){var a=o[s];this.checkUnreserved(a.local),this.checkLocalExport(a.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},Eu.checkExport=function(e,t,n){e&&(nu(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},Eu.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t.name,t.start);else if("ObjectPattern"===n)for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.checkPatternExport(e,s)}else if("ArrayPattern"===n)for(var o=0,a=t.elements;o<a.length;o+=1){var h=a[o];h&&this.checkPatternExport(e,h)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===n&&this.checkPatternExport(e,t.expression)},Eu.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},Eu.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},Eu.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(Hh.braceL);!this.eat(Hh.braceR);){if(n)n=!1;else if(this.expect(Hh.comma),this.afterTrailingComma(Hh.braceR))break;var r=this.startNode();r.local=this.parseIdent(!0),r.exported=this.eatContextual("as")?this.parseIdent(!0):r.local,this.checkExport(e,r.exported.name,r.exported.start),t.push(this.finishNode(r,"ExportSpecifier"))}return t},Eu.parseImport=function(e){return this.next(),this.type===Hh.string?(e.specifiers=Au,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===Hh.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},Eu.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===Hh.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLVal(n.local,2),e.push(this.finishNode(n,"ImportDefaultSpecifier")),!this.eat(Hh.comma))return e}if(this.type===Hh.star){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLVal(r.local,2),e.push(this.finishNode(r,"ImportNamespaceSpecifier")),e}for(this.expect(Hh.braceL);!this.eat(Hh.braceR);){if(t)t=!1;else if(this.expect(Hh.comma),this.afterTrailingComma(Hh.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLVal(i.local,2),e.push(this.finishNode(i,"ImportSpecifier"))}return e},Eu.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},Eu.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var Iu=mu.prototype;Iu.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.toAssignable(s,t),"RestElement"!==s.type||"ArrayPattern"!==s.argument.type&&"ObjectPattern"!==s.argument.type||this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},Iu.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var s=e[n-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},Iu.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},Iu.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==Hh.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Iu.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case Hh.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(Hh.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case Hh.braceL:return this.parseObj(!0)}return this.parseIdent()},Iu.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(Hh.comma),t&&this.type===Hh.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===Hh.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),r.push(s),this.type===Hh.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}return r},Iu.parseBindingListItem=function(e){return e},Iu.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(Hh.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},Iu.checkLVal=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Identifier":2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(t?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(nu(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),0!==t&&5!==t&&this.declareName(e.name,t,e.start);break;case"MemberExpression":t&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.checkLVal(s,t,n)}break;case"Property":this.checkLVal(e.value,t,n);break;case"ArrayPattern":for(var o=0,a=e.elements;o<a.length;o+=1){var h=a[o];h&&this.checkLVal(h,t,n)}break;case"AssignmentPattern":this.checkLVal(e.left,t,n);break;case"RestElement":this.checkLVal(e.argument,t,n);break;case"ParenthesizedExpression":this.checkLVal(e.expression,t,n);break;default:this.raise(e.start,(t?"Binding":"Assigning to")+" rvalue")}};var Pu=mu.prototype;Pu.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===s&&(t.proto&&(n&&n.doubleProto<0?n.doubleProto=i.start:this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var o=t[r="$"+r];if(o)("init"===s?this.strict&&o.init||o.get||o.set:o.init||o[s])&&this.raiseRecoverable(i.start,"Redefinition of property");else o=t[r]={init:!1,get:!1,set:!1};o[s]=!0}}},Pu.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===Hh.comma){var s=this.startNodeAt(n,r);for(s.expressions=[i];this.eat(Hh.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return i},Pu.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,s=-1,o=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,o=t.shorthandAssign,t.parenthesizedAssign=t.trailingComma=t.shorthandAssign=-1):(t=new xu,r=!0);var a=this.start,h=this.startLoc;this.type!==Hh.parenL&&this.type!==Hh.name||(this.potentialArrowAt=this.start);var u=this.parseMaybeConditional(e,t);if(n&&(u=n.call(this,u,a,h)),this.type.isAssign){var c=this.startNodeAt(a,h);return c.operator=this.value,c.left=this.type===Hh.eq?this.toAssignable(u,!1,t):u,r||xu.call(t),t.shorthandAssign=-1,this.checkLVal(u),this.next(),c.right=this.parseMaybeAssign(e),this.finishNode(c,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),o>-1&&(t.shorthandAssign=o),u},Pu.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(Hh.question)){var s=this.startNodeAt(n,r);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(Hh.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return i},Pu.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)?i:i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},Pu.parseExprOp=function(e,t,n,r,i){var s=this.type.binop;if(null!=s&&(!i||this.type!==Hh._in)&&s>r){var o=this.type===Hh.logicalOR||this.type===Hh.logicalAND,a=this.value;this.next();var h=this.start,u=this.startLoc,c=this.parseExprOp(this.parseMaybeUnary(null,!1),h,u,s,i),l=this.buildBinary(t,n,e,c,a,o);return this.parseExprOp(l,t,n,r,i)}return e},Pu.buildBinary=function(e,t,n,r,i,s){var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")},Pu.parseMaybeUnary=function(e,t){var n,r=this.start,i=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))n=this.parseAwait(),t=!0;else if(this.type.prefix){var s=this.startNode(),o=this.type===Hh.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),o?this.checkLVal(s.argument):this.strict&&"delete"===s.operator&&"Identifier"===s.argument.type?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):t=!0,n=this.finishNode(s,o?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var a=this.startNodeAt(r,i);a.operator=this.value,a.prefix=!1,a.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(a,"UpdateExpression")}}return!t&&this.eat(Hh.starstar)?this.buildBinary(r,i,n,this.parseMaybeUnary(null,!1),"**",!1):n},Pu.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,r=this.parseExprAtom(e),i="ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(e)||i)return r;var s=this.parseSubscripts(r,t,n);return e&&"MemberExpression"===s.type&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1)),s},Pu.parseSubscripts=function(e,t,n,r){for(var i=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(e.start,e.end);;){var s=this.parseSubscript(e,t,n,r,i);if(s===e||"ArrowFunctionExpression"===s.type)return s;e=s}},Pu.parseSubscript=function(e,t,n,r,i){var s=this.eat(Hh.bracketL);if(s||this.eat(Hh.dot)){var o=this.startNodeAt(t,n);o.object=e,o.property=s?this.parseExpression():this.parseIdent(!0),o.computed=!!s,s&&this.expect(Hh.bracketR),e=this.finishNode(o,"MemberExpression")}else if(!r&&this.eat(Hh.parenL)){var a=new xu,h=this.yieldPos,u=this.awaitPos,c=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var l=this.parseExprList(Hh.parenR,this.options.ecmaVersion>=8&&"Import"!==e.type,!1,a);if(i&&!this.canInsertSemicolon()&&this.eat(Hh.arrow))return this.checkPatternErrors(a,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=u,this.awaitIdentPos=c,this.parseArrowExpression(this.startNodeAt(t,n),l,!0);this.checkExpressionErrors(a,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=u||this.awaitPos,this.awaitIdentPos=c||this.awaitIdentPos;var p=this.startNodeAt(t,n);if(p.callee=e,p.arguments=l,"Import"===p.callee.type){1!==p.arguments.length&&this.raise(p.start,"import() requires exactly one argument");var d=p.arguments[0];d&&"SpreadElement"===d.type&&this.raise(d.start,"... is not allowed in import()")}e=this.finishNode(p,"CallExpression")}else if(this.type===Hh.backQuote){var f=this.startNodeAt(t,n);f.tag=e,f.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(f,"TaggedTemplateExpression")}return e},Pu.parseExprAtom=function(e){this.type===Hh.slash&&this.readRegexp();var t,n=this.potentialArrowAt===this.start;switch(this.type){case Hh._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),t=this.startNode(),this.next(),this.type!==Hh.parenL||this.allowDirectSuper||this.raise(t.start,"super() call outside constructor of a subclass"),this.type!==Hh.dot&&this.type!==Hh.bracketL&&this.type!==Hh.parenL&&this.unexpected(),this.finishNode(t,"Super");case Hh._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case Hh.name:var r=this.start,i=this.startLoc,s=this.containsEsc,o=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(Hh._function))return this.parseFunction(this.startNodeAt(r,i),0,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(Hh.arrow))return this.parseArrowExpression(this.startNodeAt(r,i),[o],!1);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===Hh.name&&!s)return o=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(Hh.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,i),[o],!0)}return o;case Hh.regexp:var a=this.value;return(t=this.parseLiteral(a.value)).regex={pattern:a.pattern,flags:a.flags},t;case Hh.num:case Hh.string:return this.parseLiteral(this.value);case Hh._null:case Hh._true:case Hh._false:return(t=this.startNode()).value=this.type===Hh._null?null:this.type===Hh._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case Hh.parenL:var h=this.start,u=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=h),e.parenthesizedBind<0&&(e.parenthesizedBind=h)),u;case Hh.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(Hh.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case Hh.braceL:return this.parseObj(!1,e);case Hh._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case Hh._class:return this.parseClass(this.startNode(),!1);case Hh._new:return this.parseNew();case Hh.backQuote:return this.parseTemplate();case Hh._import:return this.options.ecmaVersion>10?this.parseDynamicImport():this.unexpected();default:this.unexpected()}},Pu.parseDynamicImport=function(){var e=this.startNode();return this.next(),this.type!==Hh.parenL&&this.unexpected(),this.finishNode(e,"Import")},Pu.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1)),this.next(),this.finishNode(t,"Literal")},Pu.parseParenExpression=function(){this.expect(Hh.parenL);var e=this.parseExpression();return this.expect(Hh.parenR),e},Pu.parseParenAndDistinguishExpression=function(e){var t,n=this.start,r=this.startLoc,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,o=this.start,a=this.startLoc,h=[],u=!0,c=!1,l=new xu,p=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==Hh.parenR;){if(u?u=!1:this.expect(Hh.comma),i&&this.afterTrailingComma(Hh.parenR,!0)){c=!0;break}if(this.type===Hh.ellipsis){s=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===Hh.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}h.push(this.parseMaybeAssign(!1,l,this.parseParenItem))}var f=this.start,m=this.startLoc;if(this.expect(Hh.parenR),e&&!this.canInsertSemicolon()&&this.eat(Hh.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=d,this.parseParenArrowList(n,r,h);h.length&&!c||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(l,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=d||this.awaitPos,h.length>1?((t=this.startNodeAt(o,a)).expressions=h,this.finishNodeAt(t,"SequenceExpression",f,m)):t=h[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(n,r);return g.expression=t,this.finishNode(g,"ParenthesizedExpression")}return t},Pu.parseParenItem=function(e){return e},Pu.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var Cu=[];Pu.parseNew=function(){var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(Hh.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),("target"!==e.property.name||n)&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is new.target"),this.inNonArrowFunction()||this.raiseRecoverable(e.start,"new.target can only be used in functions"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),this.options.ecmaVersion>10&&"Import"===e.callee.type&&this.raise(e.callee.start,"Cannot use new with import(...)"),this.eat(Hh.parenL)?e.arguments=this.parseExprList(Hh.parenR,this.options.ecmaVersion>=8&&"Import"!==e.callee.type,!1):e.arguments=Cu,this.finishNode(e,"NewExpression")},Pu.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===Hh.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===Hh.backQuote,this.finishNode(n,"TemplateElement")},Pu.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===Hh.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Hh.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(Hh.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},Pu.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===Hh.name||this.type===Hh.num||this.type===Hh.string||this.type===Hh.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Hh.star)&&!Kh.test(this.input.slice(this.lastTokEnd,this.start))},Pu.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(Hh.braceR);){if(r)r=!1;else if(this.expect(Hh.comma),this.afterTrailingComma(Hh.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},Pu.parseProperty=function(e,t){var n,r,i,s,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(Hh.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===Hh.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(this.type===Hh.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),o.argument=this.parseMaybeAssign(!1,t),this.type===Hh.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,s=this.startLoc),e||(n=this.eat(Hh.star)));var a=this.containsEsc;return this.parsePropertyName(o),!e&&!a&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(Hh.star),this.parsePropertyName(o,t)):r=!1,this.parsePropertyValue(o,e,n,r,i,s,t,a),this.finishNode(o,"Property")},Pu.parsePropertyValue=function(e,t,n,r,i,s,o,a){if((n||r)&&this.type===Hh.colon&&this.unexpected(),this.eat(Hh.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===Hh.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===Hh.comma||this.type===Hh.braceR)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,s,e.key):this.type===Hh.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var h="get"===e.kind?0:1;if(e.value.params.length!==h){var u=e.value.start;"get"===e.kind?this.raiseRecoverable(u,"getter should have no params"):this.raiseRecoverable(u,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},Pu.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(Hh.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(Hh.bracketR),e.key;e.computed=!1}return e.key=this.type===Hh.num||this.type===Hh.string?this.parseExprAtom():this.parseIdent(!0)},Pu.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Pu.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|fu(t,r.generator)|(n?128:0)),this.expect(Hh.parenL),r.params=this.parseBindingList(Hh.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(r,"FunctionExpression")},Pu.parseArrowExpression=function(e,t,n){var r=this.yieldPos,i=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|fu(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=r,this.awaitPos=i,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")},Pu.parseFunctionBody=function(e,t,n){var r=t&&this.type!==Hh.braceL,i=this.strict,s=!1;if(r)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);i&&!o||(s=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var a=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!i&&!s&&!t&&!n&&this.isSimpleParamList(e.params)),e.body=this.parseBlock(!1),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=a}this.exitScope(),this.strict&&e.id&&this.checkLVal(e.id,5),this.strict=i},Pu.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){if("Identifier"!==n[t].type)return!1}return!0},Pu.checkParams=function(e,t){for(var n={},r=0,i=e.params;r<i.length;r+=1){var s=i[r];this.checkLVal(s,1,t?null:n)}},Pu.parseExprList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(Hh.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===Hh.comma?o=null:this.type===Hh.ellipsis?(o=this.parseSpread(r),r&&this.type===Hh.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},Pu.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;(this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,n).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},Pu.parseIdent=function(e,t){var n=this.startNode();return e&&"never"===this.options.allowReserved&&(e=!1),this.type===Hh.name?n.name=this.value:this.type.keyword?(n.name=this.type.keyword,"class"!==n.name&&"function"!==n.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(),this.finishNode(n,"Identifier"),e||(this.checkUnreserved(n),"await"!==n.name||this.awaitIdentPos||(this.awaitIdentPos=n.start)),n},Pu.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===Hh.semi||this.canInsertSemicolon()||this.type!==Hh.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(Hh.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},Pu.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0),this.finishNode(e,"AwaitExpression")};var ku=mu.prototype;ku.raise=function(e,t){var n=au(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},ku.raiseRecoverable=ku.raise,ku.curPosition=function(){if(this.options.locations)return new su(this.curLine,this.pos-this.lineStart)};var $u=mu.prototype,Nu=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};$u.enterScope=function(e){this.scopeStack.push(new Nu(e))},$u.exitScope=function(){this.scopeStack.pop()},$u.treatFunctionsAsVarInScope=function(e){return e.flags&cu||!this.inModule&&1&e.flags},$u.declareName=function(e,t,n){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t){this.currentScope().lexical.push(e)}else if(3===t){var s=this.currentScope();r=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var a=this.scopeStack[o];if(a.lexical.indexOf(e)>-1&&!(32&a.flags&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){r=!0;break}if(a.var.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e],a.flags&lu)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},$u.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},$u.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},$u.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&lu)return t}},$u.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&lu&&!(16&t.flags))return t}};var Ru=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new ou(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Ou=mu.prototype;function Mu(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}Ou.startNode=function(){return new Ru(this,this.start,this.startLoc)},Ou.startNodeAt=function(e,t){return new Ru(this,e,t)},Ou.finishNode=function(e,t){return Mu.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Ou.finishNodeAt=function(e,t,n,r){return Mu.call(this,e,t,n,r)};var Du=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},Tu={b_stat:new Du("{",!1),b_expr:new Du("{",!0),b_tmpl:new Du("${",!1),p_stat:new Du("(",!1),p_expr:new Du("(",!0),q_tmpl:new Du("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Du("function",!1),f_expr:new Du("function",!0),f_expr_gen:new Du("function",!0,!1,null,!0),f_gen:new Du("function",!1,!1,null,!0)},Lu=mu.prototype;Lu.initialContext=function(){return[Tu.b_stat]},Lu.braceIsBlock=function(e){var t=this.curContext();return t===Tu.f_expr||t===Tu.f_stat||(e!==Hh.colon||t!==Tu.b_stat&&t!==Tu.b_expr?e===Hh._return||e===Hh.name&&this.exprAllowed?Kh.test(this.input.slice(this.lastTokEnd,this.start)):e===Hh._else||e===Hh.semi||e===Hh.eof||e===Hh.parenR||e===Hh.arrow||(e===Hh.braceL?t===Tu.b_stat:e!==Hh._var&&e!==Hh._const&&e!==Hh.name&&!this.exprAllowed):!t.isExpr)},Lu.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},Lu.updateContext=function(e){var t,n=this.type;n.keyword&&e===Hh.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},Hh.parenR.updateContext=Hh.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===Tu.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},Hh.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Tu.b_stat:Tu.b_expr),this.exprAllowed=!0},Hh.dollarBraceL.updateContext=function(){this.context.push(Tu.b_tmpl),this.exprAllowed=!0},Hh.parenL.updateContext=function(e){var t=e===Hh._if||e===Hh._for||e===Hh._with||e===Hh._while;this.context.push(t?Tu.p_stat:Tu.p_expr),this.exprAllowed=!0},Hh.incDec.updateContext=function(){},Hh._function.updateContext=Hh._class.updateContext=function(e){!e.beforeExpr||e===Hh.semi||e===Hh._else||e===Hh._return&&Kh.test(this.input.slice(this.lastTokEnd,this.start))||(e===Hh.colon||e===Hh.braceL)&&this.curContext()===Tu.b_stat?this.context.push(Tu.f_stat):this.context.push(Tu.f_expr),this.exprAllowed=!1},Hh.backQuote.updateContext=function(){this.curContext()===Tu.q_tmpl?this.context.pop():this.context.push(Tu.q_tmpl),this.exprAllowed=!1},Hh.star.updateContext=function(e){if(e===Hh._function){var t=this.context.length-1;this.context[t]===Tu.f_expr?this.context[t]=Tu.f_expr_gen:this.context[t]=Tu.f_gen}this.exprAllowed=!0},Hh.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==Hh.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Vu="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Bu={9:Vu,10:Vu+" Extended_Pictographic"},zu="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ju="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Wu={9:ju,10:ju+" Dogra Dogr Elymaic Elym Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Old_Sogdian Sogo Sogdian Sogd Wancho Wcho"},Uu={};function Fu(e){var t=Uu[e]={binary:iu(Bu[e]+" "+zu),nonBinary:{General_Category:iu(zu),Script:iu(Wu[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}Fu(9),Fu(10);var qu=mu.prototype,Gu=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Uu[e.options.ecmaVersion>=10?10:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function Hu(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function Ku(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Yu(e){return e>=65&&e<=90||e>=97&&e<=122}function Xu(e){return Yu(e)||95===e}function Qu(e){return Xu(e)||Ju(e)}function Ju(e){return e>=48&&e<=57}function Zu(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ec(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function tc(e){return e>=48&&e<=55}Gu.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},Gu.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Gu.prototype.at=function(e){var t=this.source,n=t.length;if(e>=n)return-1;var r=t.charCodeAt(e);return!this.switchU||r<=55295||r>=57344||e+1>=n?r:(r<<10)+t.charCodeAt(e+1)-56613888},Gu.prototype.nextIndex=function(e){var t=this.source,n=t.length;if(e>=n)return n;var r=t.charCodeAt(e);return!this.switchU||r<=55295||r>=57344||e+1>=n?e+1:e+2},Gu.prototype.current=function(){return this.at(this.pos)},Gu.prototype.lookahead=function(){return this.at(this.nextIndex(this.pos))},Gu.prototype.advance=function(){this.pos=this.nextIndex(this.pos)},Gu.prototype.eat=function(e){return this.current()===e&&(this.advance(),!0)},qu.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);-1===t.indexOf(i)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(i,r+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},qu.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},qu.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];-1===e.groupNames.indexOf(r)&&e.raise("Invalid named capture referenced")}},qu.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},qu.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},qu.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!(e.switchU?!this.regexp_eatAtom(e):!this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},qu.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},qu.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},qu.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},qu.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},qu.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},qu.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},qu.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},qu.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},qu.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},qu.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},qu.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Ku(t)&&(e.lastIntValue=t,e.advance(),!0)},qu.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!Ku(n);)e.advance();return e.pos!==t},qu.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},qu.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},qu.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},qu.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Hu(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Hu(e.lastIntValue);return!0}return!1},qu.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=e.current();return e.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e)&&(n=e.lastIntValue),function(e){return Bh(e,!0)||36===e||95===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},qu.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=e.current();return e.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e)&&(n=e.lastIntValue),function(e){return zh(e,!0)||36===e||95===e||8204===e||8205===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},qu.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},qu.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},qu.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},qu.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},qu.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},qu.regexp_eatZero=function(e){return 48===e.current()&&!Ju(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},qu.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},qu.regexp_eatControlLetter=function(e){var t=e.current();return!!Yu(t)&&(e.lastIntValue=t%32,e.advance(),!0)},qu.regexp_eatRegExpUnicodeEscapeSequence=function(e){var t,n=e.pos;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(e.switchU&&r>=55296&&r<=56319){var i=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=1024*(r-55296)+(s-56320)+65536,!0}e.pos=i,e.lastIntValue=r}return!0}if(e.switchU&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((t=e.lastIntValue)>=0&&t<=1114111))return!0;e.switchU&&e.raise("Invalid unicode escape"),e.pos=n}return!1},qu.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},qu.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},qu.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},qu.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},qu.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){nu(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},qu.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},qu.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Xu(t=e.current());)e.lastStringValue+=Hu(t),e.advance();return""!==e.lastStringValue},qu.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Qu(t=e.current());)e.lastStringValue+=Hu(t),e.advance();return""!==e.lastStringValue},qu.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},qu.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},qu.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},qu.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||tc(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},qu.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},qu.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Ju(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},qu.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},qu.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Ju(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},qu.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Zu(n=e.current());)e.lastIntValue=16*e.lastIntValue+ec(n),e.advance();return e.pos!==t},qu.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},qu.regexp_eatOctalDigit=function(e){var t=e.current();return tc(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},qu.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Zu(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+ec(i),e.advance()}return!0};var nc=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new ou(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},rc=mu.prototype;function ic(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}rc.next=function(){this.options.onToken&&this.options.onToken(new nc(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},rc.getToken=function(){return this.next(),new nc(this)},"undefined"!=typeof Symbol&&(rc[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===Hh.eof,value:t}}}}),rc.curContext=function(){return this.context[this.context.length-1]},rc.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(Hh.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},rc.readToken=function(e){return Bh(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},rc.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},rc.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(Yh.lastIndex=n;(e=Yh.exec(this.input))&&e.index<this.pos;)++this.curLine,this.lineStart=e.index+e[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,r),n,this.pos,t,this.curPosition())},rc.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Xh(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},rc.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&Qh.test(String.fromCharCode(e))))break e;++this.pos}}},rc.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},rc.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(Hh.ellipsis)):(++this.pos,this.finishToken(Hh.dot))},rc.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(Hh.assign,2):this.finishOp(Hh.slash,1)},rc.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?Hh.star:Hh.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=Hh.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(Hh.assign,n+1):this.finishOp(r,n)},rc.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.finishOp(124===e?Hh.logicalOR:Hh.logicalAND,2):61===t?this.finishOp(Hh.assign,2):this.finishOp(124===e?Hh.bitwiseOR:Hh.bitwiseAND,1)},rc.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(Hh.assign,2):this.finishOp(Hh.bitwiseXOR,1)},rc.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!Kh.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(Hh.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(Hh.assign,2):this.finishOp(Hh.plusMin,1)},rc.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(Hh.assign,n+1):this.finishOp(Hh.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(Hh.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},rc.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(Hh.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(Hh.arrow)):this.finishOp(61===e?Hh.eq:Hh.prefix,1)},rc.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Hh.parenL);case 41:return++this.pos,this.finishToken(Hh.parenR);case 59:return++this.pos,this.finishToken(Hh.semi);case 44:return++this.pos,this.finishToken(Hh.comma);case 91:return++this.pos,this.finishToken(Hh.bracketL);case 93:return++this.pos,this.finishToken(Hh.bracketR);case 123:return++this.pos,this.finishToken(Hh.braceL);case 125:return++this.pos,this.finishToken(Hh.braceR);case 58:return++this.pos,this.finishToken(Hh.colon);case 63:return++this.pos,this.finishToken(Hh.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(Hh.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(Hh.prefix,1)}this.raise(this.pos,"Unexpected character '"+ic(e)+"'")},rc.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},rc.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Kh.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var s=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(s);var a=this.regexpState||(this.regexpState=new Gu(this));a.reset(n,i,o),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var h=null;try{h=new RegExp(i,o)}catch(e){}return this.finishToken(Hh.regexp,{pattern:i,flags:o,value:h})},rc.readInt=function(e,t){for(var n=this.pos,r=0,i=0,s=null==t?1/0:t;i<s;++i){var o=this.input.charCodeAt(this.pos),a=void 0;if((a=o>=97?o-97+10:o>=65?o-65+10:o>=48&&o<=57?o-48:1/0)>=e)break;++this.pos,r=r*e+a}return this.pos===n||null!=t&&this.pos-n!==t?null:r},rc.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n="undefined"!=typeof BigInt?BigInt(this.input.slice(t,this.pos)):null,++this.pos):Bh(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Hh.num,n)},rc.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number"),n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var i=this.input.slice(t,this.pos),s="undefined"!=typeof BigInt?BigInt(i):null;return++this.pos,Bh(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Hh.num,s)}46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),Bh(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=this.input.slice(t,this.pos),a=n?parseInt(o,8):parseFloat(o);return this.finishToken(Hh.num,a)},rc.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},rc.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):(Xh(r,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(Hh.string,t)};var sc={};rc.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==sc)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},rc.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw sc;this.raise(e,t)},rc.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==Hh.template&&this.type!==Hh.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(Hh.template,e)):36===n?(this.pos+=2,this.finishToken(Hh.dollarBraceL)):(++this.pos,this.finishToken(Hh.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Xh(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},rc.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(Hh.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},rc.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ic(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return Xh(t)?"":String.fromCharCode(t)}},rc.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},rc.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(zh(i,r))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?Bh:zh)(o,r)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=ic(o),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},rc.readWord=function(){var e=this.readWord1(),t=Hh.name;return this.keywords.test(e)&&(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+e),t=qh[e]),this.finishToken(t,e)};var oc=function(e){return e&&e.default||e}(Object.freeze({Node:Ru,Parser:mu,Position:su,SourceLocation:ou,TokContext:Du,Token:nc,TokenType:jh,defaultOptions:hu,getLineInfo:au,isIdentifierChar:zh,isIdentifierStart:Bh,isNewLine:Xh,keywordTypes:qh,lineBreak:Kh,lineBreakG:Yh,nonASCIIwhitespace:Qh,parse:function(e,t){return mu.parse(e,t)},parseExpressionAt:function(e,t,n){return mu.parseExpressionAt(e,t,n)},tokContexts:Tu,tokTypes:Hh,tokenizer:function(e,t){return mu.tokenizer(e,t)},version:"6.2.0"}));const ac=oc.tokTypes,hc=oc.isIdentifierStart;var uc=function(e){return class extends e{parseLiteral(e){const t=super.parseLiteral(e);return 110==t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=this.getNumberInput(t.start,t.end)),t}readRadixNumber(e){let t=this.pos;this.pos+=2;let n=this.readInt(e);if(null===n&&this.raise(this.start+2,`Expected number in radix ${e}`),110==this.input.charCodeAt(this.pos)){let e=this.getNumberInput(t,this.pos);n="undefined"!=typeof BigInt?BigInt(e):null,++this.pos}else hc(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");return this.finishToken(ac.num,n)}readNumber(e){let t=this.pos;if(e)return super.readNumber(e);if(48===this.input.charCodeAt(t)&&110!==this.input.charCodeAt(t+1))return super.readNumber(e);if(null===this.readInt(10)&&this.raise(t,"Invalid number"),110!=this.input.charCodeAt(this.pos))return this.pos=t,super.readNumber(e);let n=this.getNumberInput(t,this.pos),r="undefined"!=typeof BigInt?BigInt(n):null;return++this.pos,this.finishToken(ac.num,r)}getNumberInput(e,t){return super.getNumberInput?super.getNumberInput(e,t):this.input.slice(e,t)}}};const cc="Import";function lc(e){return class extends e{parseStatement(e,t,n){return this.type===Hh._import&&function(){return/^(\s|\/\/.*|\/\*[^]*?\*\/)*\(/.test(this.input.slice(this.pos))}.call(this)?this.parseExpressionStatement(this.startNode(),this.parseExpression()):super.parseStatement(e,t,n)}parseExprAtom(e){return this.type===Hh._import?function(){const e=this.startNode();return this.next(),this.type!==Hh.parenL&&this.unexpected(),this.finishNode(e,cc)}.call(this):super.parseExprAtom(e)}}}Hh._import.startsExpr=!0;const pc=oc.tokTypes,dc=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,fc=e=>{dc.lastIndex=e.pos;let t=dc.exec(e.input),n=e.pos+t[0].length;return"."===e.input.slice(n,n+1)};var mc=function(e){return class extends e{parseExprAtom(e){if(this.type!==pc._import||!fc(this))return super.parseExprAtom(e);this.options.allowImportExportEverywhere||this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'");let t=this.startNode();return t.meta=this.parseIdent(!0),this.expect(pc.dot),t.property=this.parseIdent(!0),"meta"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is import.meta"),this.containsEsc&&this.raiseRecoverable(t.property.start,'"meta" in import.meta must not contain escape sequences'),this.finishNode(t,"MetaProperty")}parseStatement(e,t,n){if(this.type!==pc._import||!fc(this))return super.parseStatement(e,t,n);let r=this.startNode(),i=this.parseExpression();return this.parseExpressionStatement(r,i)}}};class gc extends Je{constructor(){super("undefined")}getLiteralValueAtPath(){}}class yc extends Et{constructor(){super(),this.variables.set("undefined",new gc)}findVariable(e){let t=this.variables.get(e);return t||(t=new co(e),this.variables.set(e,t)),t}}const vc=()=>({paths:Object.create(null),tracked:!1,unknownPath:null});class xc{constructor(){this.entityPaths=new Map}track(e,t){let n=this.entityPaths.get(e);n||(n=vc(),this.entityPaths.set(e,n));let r,i=0;for(;i<t.length;){const e=t[i];"string"==typeof e?(r=n.paths[e])||(r=vc(),n.paths[e]=r):(r=n.unknownPath)||(r=vc(),n.unknownPath=r),n=r,i++}const s=n.tracked;return n.tracked=!0,s}}function Ec(e,t,n,r){return new(n||(n=Promise))(function(i,s){function o(e){try{h(r.next(e))}catch(e){s(e)}}function a(e){try{h(r.throw(e))}catch(e){s(e)}}function h(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(o,a)}h((r=r.apply(e,t||[])).next())})}function _c(e,t,n){let r;do{const e=k();r?e.update(r):e.update(n),r=e.digest("hex").substr(0,8)}while(t.has(r));return t.set(r,e),r}function bc(e,t,n){return void 0===e.source&&wo(function(e){return{code:Po.ASSET_SOURCE_MISSING,message:`Plugin error creating asset "${e.name}" - no asset source set.`}}(e)),e.fileName?e.fileName:Ah(bh(n,"assetFileNames",t=>{switch(t){case"hash":const n=k();return n.update(t),n.update(":"),n.update(e.source),n.digest("hex").substr(0,8);case"name":return e.name.substr(0,e.name.length-dt(e.name).length);case"extname":return dt(e.name);case"ext":return dt(e.name).substr(1)}}),t)}function Ac(e,t,n){return{emitAsset(r,i){"string"==typeof r&&So(r)||wo(function(e){return{code:Po.INVALID_ASSET_NAME,message:`Plugin error creating asset, name "${e}" is not a plain (non relative or absolute URL) string name.`}}(r));const s={name:r,source:i,fileName:void 0};return t&&void 0!==i&&Sc(s,t,n),_c(s,e,r)},setAssetSource(r,i){const s=e.get(r);return s?void 0!==s.source?wo(function(e){return{code:Po.ASSET_SOURCE_ALREADY_SET,message:`Plugin error - Unable to set the source for asset "${e.name}", source already set.`}}(s)):"string"==typeof i||i?(s.source=i,void(t&&Sc(s,t,n))):wo(function(e){return{code:Po.ASSET_SOURCE_MISSING,message:`Plugin error creating asset "${e.name}", setAssetSource call without a source.`}}(s)):wo(function(e){return{code:Po.ASSET_NOT_FOUND,message:`Plugin error - Unable to set the source for unknown asset "${e}".`}}(r))},getAssetFileName(t){const n=e.get(t);return n?void 0===n.fileName?wo(function(e){return{code:Po.ASSET_NOT_FINALISED,message:`Plugin error - Unable to get file name for asset "${e.name}". Ensure that the source is set and that generate is called first.`}}(n)):n.fileName:wo(function(e){return{code:Po.ASSET_NOT_FOUND,message:`Plugin error - Unable to get file name for unknown asset "${e}".`}}(t))}}}function Sc(e,t,n){const r=bc(e,t,n);e.fileName=r,t[r]={fileName:r,isAsset:!0,source:e.source}}var wc;!function(e){e[e.LOAD_AND_PARSE=0]="LOAD_AND_PARSE",e[e.ANALYSE=1]="ANALYSE",e[e.GENERATE=2]="GENERATE"}(wc||(wc={}));const Ic="at position ",Pc=[{active:!0,deprecated:"ongenerate",replacement:"generateBundle"},{active:!0,deprecated:"onwrite",replacement:"generateBundle/writeBundle"},{active:!0,deprecated:"transformBundle",replacement:"renderChunk"},{active:!0,deprecated:"transformChunk",replacement:"renderChunk"},{active:!1,deprecated:"resolveAssetUrl",replacement:"resolveFileUrl"}];function Cc(e,n,r,i){!function(e,t){for(const{active:n,deprecated:r,replacement:i}of Pc)for(const s of e)r in s&&t.warnDeprecation({message:`The "${r}" hook used by plugin ${s.name} is deprecated. The "${i}" hook should be used instead.`,plugin:s.name},n)}(n.plugins,e);const s=[...n.plugins,(o=n.preserveSymlinks,{name:"Rollup Core",resolveId:ya(o),load:e=>da(e),resolveFileUrl:({relativePath:e,format:t})=>Aa[t](e),resolveImportMeta(e,{chunkId:t,format:n}){const r=_a[n]&&_a[n](e,t);if(r)return r}})];var o;const{emitAsset:a,getAssetFileName:h,setAssetSource:u}=Ac(e.assetsById),c=new Set;let l=!1;const p=s.map((n,s)=>{let o,p=!0;if("string"!=typeof n.cacheKey&&(n.name.startsWith(Ic)||c.has(n.name)?p=!1:c.add(n.name)),!l&&(n.load||n.transform||n.transformBundle||n.transformChunk)&&(l=!0),r)if(p){const e=n.cacheKey||n.name;o=function(e){return{has(t){const n=e[t];return!!n&&(n[0]=0,!0)},get(t){const n=e[t];if(n)return n[0]=0,n[1]},set(t,n){e[t]=[0,n]},delete:t=>delete e[t]}}(r[e]||(r[e]=Object.create(null)))}else o=Nc(n.name);else o=kc;const d={addWatchFile(t){e.phase>=wc.GENERATE&&this.error({code:Po.INVALID_ROLLUP_PHASE,message:"Cannot call addWatchFile after the build has finished."}),e.watchFiles[t]=!0},cache:o,emitAsset:a,emitChunk(t,n){return e.phase>wc.LOAD_AND_PARSE&&this.error({code:Po.INVALID_ROLLUP_PHASE,message:"Cannot call emitChunk after module loading has finished."}),m.emitChunk(t,n)},error:e=>("string"==typeof e&&(e={message:e}),e.code&&(e.pluginCode=e.code),e.code="PLUGIN_ERROR",e.plugin=n.name,wo(e)),getAssetFileName:h,getChunkFileName:t=>e.moduleLoader.getChunkFileName(t),getModuleInfo(t){const n=e.moduleById.get(t);if(null==n)throw new Error(`Unable to find module ${t}`);return{hasModuleSideEffects:n.moduleSideEffects,id:n.id,importedIds:n instanceof gt?[]:n.sources.map(e=>n.resolvedIds[e].id),isEntry:n instanceof hh&&n.isEntryPoint,isExternal:n instanceof gt}},isExternal:(()=>{let t=!1;return(r,i,s=!1)=>(t||(t=!0,e.warnDeprecation({message:`The "this.isExternal" plugin context function used by plugin ${n.name} is deprecated. The "this.resolve" plugin context function should be used instead.`,plugin:n.name},!1)),e.moduleLoader.isExternal(r,i,s))})(),meta:{rollupVersion:t},get moduleIds(){return e.moduleById.keys()},parse:e.contextParse,resolve:(t,n,r)=>e.moduleLoader.resolveId(t,n,r&&r.skipSelf?s:null),resolveId:(()=>{let t=!1;return(r,i)=>(t||(t=!0,e.warnDeprecation({message:`The "this.resolveId" plugin context function used by plugin ${n.name} is deprecated. The "this.resolve" plugin context function should be used instead.`,plugin:n.name},!1)),e.moduleLoader.resolveId(r,i).then(e=>e&&e.id))})(),setAssetSource:u,warn(t){"string"==typeof t&&(t={message:t}),t.code&&(t.pluginCode=t.code),t.code="PLUGIN_WARNING",t.plugin=n.name,e.warn(t)},watcher:i?(()=>{let e=!1;function t(t,n){return e||(d.warn({code:"PLUGIN_WATCHER_DEPRECATED",message:"this.watcher usage is deprecated in plugins. Use the watchChange plugin hook and this.addWatchFile() instead."}),e=!0),i.on(t,n)}return Object.assign({},i,{addListener:t,on:t})})():void 0};return d});function d(e,t,n,r=!1,i){const o=s[n];let a=p[n];const h=o[e];if(h){if(i&&(!(a=i(a,o))||a===p[n]))throw new Error("Internal Rollup error: hookContext must return a new context object.");try{if("function"!=typeof h){if(r)return h;wo({code:"INVALID_PLUGIN_HOOK",message:`Error running plugin hook ${e} for ${o.name}, expected a function hook.`})}return h.apply(a,t)}catch(t){"string"==typeof t&&(t={message:t}),"PLUGIN_ERROR"!==t.code&&(t.code&&(t.pluginCode=t.code),t.code="PLUGIN_ERROR"),t.plugin=o.name,t.hook=e,wo(t)}}}function f(e,t,n,r=!1,i){const o=s[n];let a=p[n];const h=o[e];if(h){if(i&&(!(a=i(a,o))||a===p[n]))throw new Error("Internal Rollup error: hookContext must return a new context object.");return Promise.resolve().then(()=>{if("function"!=typeof h){if(r)return h;wo({code:"INVALID_PLUGIN_HOOK",message:`Error running plugin hook ${e} for ${o.name}, expected a function hook.`})}return h.apply(a,t)}).catch(t=>{"string"==typeof t&&(t={message:t}),"PLUGIN_ERROR"!==t.code&&(t.code&&(t.pluginCode=t.code),t.code="PLUGIN_ERROR"),t.plugin=o.name,t.hook=e,wo(t)})}}const m={emitAsset:a,emitChunk:(t,n)=>e.moduleLoader.addEntryModuleAndGetReferenceId({alias:n&&n.name||null,unresolvedId:t}),getAssetFileName:h,hasLoadersOrTransforms:l,hookSeq(e,t,n){let r=Promise.resolve();for(let i=0;i<s.length;i++)r=r.then(()=>f(e,t,i,!1,n));return r},hookSeqSync(e,t,n){for(let r=0;r<s.length;r++)d(e,t,r,!1,n)},hookFirst(e,t,n,r){let i=Promise.resolve();for(let o=0;o<s.length;o++)r!==o&&(i=i.then(r=>null!=r?r:f(e,t,o,!1,n)));return i},hookFirstSync(e,t,n){for(let r=0;r<s.length;r++){const i=d(e,t,r,!1,n);if(null!=i)return i}return null},hookParallel(e,t,n){const r=[];for(let i=0;i<s.length;i++){const s=f(e,t,i,!1,n);s&&r.push(s)}return Promise.all(r).then(()=>{})},hookReduceArg0(e,[t,...n],r,i){let o=Promise.resolve(t);for(let t=0;t<s.length;t++)o=o.then(o=>{const a=f(e,[o,...n],t,!1,i);return a?a.then(e=>r.call(p[t],o,e,s[t])):o});return o},hookReduceArg0Sync(e,[t,...n],r,i){for(let o=0;o<s.length;o++){const a=d(e,[t,...n],o,!1,i);t=r.call(p[o],t,a,s[o])}return t},hookReduceValue(e,t,n,r,i){let o=Promise.resolve(t);for(let t=0;t<s.length;t++)o=o.then(o=>{const a=f(e,n,t,!0,i);return a?a.then(e=>r.call(p[t],o,e,s[t])):o});return o}};return m}const kc={has:()=>!1,get(){},set(){},delete:()=>!1};function $c(e){e.startsWith(Ic)?wo({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."}):wo({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${e} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}const Nc=e=>({has:()=>($c(e),!1),get(){$c(e)},set(){$c(e)},delete:()=>($c(e),!1)});function Rc(e,t,n){const r=n.id,i=[];let s=null===t.map?null:_h(t.map);const o=e.pluginDriver.emitAsset,a=t.code;let h,u,c=t.ast;const l=[];let p,d,f=!1,m=null;const g=t.code;let y;return e.pluginDriver.hookReduceArg0("transform",[g,r],function(t,s,o){if(!f&&p.used&&(f=!0),f){if(s&&"object"==typeof s&&Array.isArray(s.dependencies))for(const t of s.dependencies){const n=mt(pt(r),t);e.watchFiles[n]||(e.watchFiles[n]=!0)}}else if(u.length&&(n.transformAssets=u),l.length&&(n.transformChunks=l),s&&"object"==typeof s&&Array.isArray(s.dependencies)){d.warnedTransformDependencies||e.warnDeprecation(`Returning "dependencies" from the "transform" hook as done by plugin ${o.name} is deprecated. The "this.addWatchFile" plugin context function should be used instead.`,!0),d.warnedTransformDependencies=!0,h||(h=[]);for(const e of s.dependencies)h.push(mt(pt(r),e))}if("string"==typeof s)s={ast:void 0,code:s,map:void 0};else{if(!s||"object"!=typeof s)return t;"string"==typeof s.map&&(s.map=JSON.parse(s.map)),"boolean"==typeof s.moduleSideEffects&&(m=s.moduleSideEffects)}if(null!==s.map){const e=_h(s.map);i.push(e||{missing:!0,plugin:o.name})}return c=s.ast,s.code},(t,n)=>{let c;return(d=n).cacheKey?f=!0:p=function(e){const t={used:!1,cache:void 0};return t.cache={has:n=>(t.used=!0,e.has(n)),get:n=>(t.used=!0,e.get(n)),set:(n,r)=>(t.used=!0,e.set(n,r)),delete:n=>(t.used=!0,e.delete(n))},t}(t.cache),({assets:u,emitAsset:c}=function(e,t){const n=[];return{assets:n,emitAsset:(r,i)=>{const s=t(r,i),o=e.get(s);return n.push({fileName:void 0,name:o.name,source:o.source}),s}}}(e.assetsById,o)),Object.assign({},t,{cache:p?p.cache:t.cache,warn(e,n){"string"==typeof e&&(e={message:e}),n&&Io(e,n,g,r),e.id=r,e.hook="transform",t.warn(e)},error:(e,n)=>("string"==typeof e&&(e={message:e}),n&&Io(e,n,g,r),e.id=r,e.hook="transform",t.error(e)),emitAsset:c,emitChunk:(t,n)=>(l.push({id:t,options:n}),e.pluginDriver.emitChunk(t,n)),addWatchFile(e){h||(h=[]),h.push(e),t.addWatchFile(e)},setAssetSource(e,n){if(t.setAssetSource(e,n),!f&&!y)try{this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitAsset with a source, or call setAssetSource in another hook."})}catch(e){y=e}},getCombinedSourcemap(){const t=function(e,t,n,r,i){if(!i.length)return r;const s=ph(t,n,r,i,lh(e)).traceMappings();return Object.assign({version:3},s)}(e,r,a,s,i);if(!t){return new q(a).generateMap({includeContent:!0,hires:!0,source:r})}return s!==t&&(s=t,i.length=0),new T(Object.assign({},t,{file:null,sourcesContent:t.sourcesContent}))}})}).catch(e=>{"string"==typeof e&&(e={message:e}),"PLUGIN_ERROR"!==e.code&&(e.code&&(e.pluginCode=e.code),e.code="PLUGIN_ERROR"),e.id=r,wo(e)}).then(e=>{if(!f&&y)throw y;return{ast:c,code:e,customTransformCache:f,moduleSideEffects:m,originalCode:a,originalSourcemap:s,sourcemapChain:i,transformDependencies:h}})}function Oc(e,t){return ut(t)?mt(e,"..",t):t}function Mc(e){if(!0===e)return()=>!0;if("function"==typeof e)return(t,...n)=>!t.startsWith("\0")&&e(t,...n)||!1;if(e){const t=new Set(Array.isArray(e)?e:e?[e]:[]);return e=>t.has(e)}return()=>!1}function Dc(e,t,n){if("boolean"==typeof e)return()=>e;if("no-external"===e)return(e,t)=>!t;if("function"==typeof e)return(t,n)=>!!t.startsWith("\0")||!1!==e(t,n);if(Array.isArray(e)){const t=new Set(e);return e=>t.has(e)}var r,i;e&&n.warn((r="treeshake.moduleSideEffects",i='please use one of false, "no-external", a function or an array',{code:Po.INVALID_OPTION,message:`Invalid value for option "${r}" - ${i}.`}));const s=Mc(t);return(e,t)=>!(t&&s(e))}class Tc{constructor(e,t,n,r,i,s,o){this.entriesByReferenceId=new Map,this.entryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.manualChunkModules={},this.loadEntryModule=({alias:e,unresolvedId:t},n)=>this.pluginDriver.hookFirst("resolveId",[t,void 0]).then(r=>{if(!1===r||r&&"object"==typeof r&&r.external)return wo(function(e){return{code:Po.UNRESOLVED_ENTRY,message:`Entry module cannot be external (${Ao(e)}).`}}(t));const i=r&&"object"==typeof r?r.id:r;return"string"==typeof i?this.fetchModule(i,void 0,!0,n).then(t=>{if(null!==e){if(null!==t.chunkAlias&&t.chunkAlias!==e)return wo(ko(t.id,e,t.chunkAlias));t.chunkAlias=e}return t}):wo(function(e){return{code:Po.UNRESOLVED_ENTRY,message:`Could not resolve entry module (${Ao(e)}).`}}(t))}),this.graph=e,this.modulesById=t,this.pluginDriver=n,this.isExternal=Mc(r),this.hasModuleSideEffects=Dc(s,o,e),this.getManualChunk="function"==typeof i?i:()=>null}addEntryModuleAndGetReferenceId(e){const t={module:null,name:e.unresolvedId},n=_c(t,this.entriesByReferenceId,e.unresolvedId);return this.addEntryModules([e],!1).then(({newEntryModules:[e]})=>{t.module=e}).catch(()=>{}),n}addEntryModules(e,t){const n=Promise.all(e.map(e=>this.loadEntryModule(e,!0))).then(e=>{for(const n of e){n.isUserDefinedEntryPoint=n.isUserDefinedEntryPoint||t,this.entryModules.find(e=>e.id===n.id)||this.entryModules.push(n)}return e});return this.awaitLoadModulesPromise(n).then(e=>({entryModules:this.entryModules,manualChunkModulesByAlias:this.manualChunkModules,newEntryModules:e}))}addManualChunks(e){const t=[];for(const n of Object.keys(e)){const r=e[n];for(const e of r)t.push({alias:null,unresolvedId:e,manualChunkAlias:n})}const n=Promise.all(t.map(e=>this.loadEntryModule(e,!1))).then(e=>{for(let n=0;n<e.length;n++)this.addToManualChunk(t[n].manualChunkAlias,e[n])});return this.awaitLoadModulesPromise(n)}getChunkFileName(e){const t=this.entriesByReferenceId.get(e);if(!t)return wo((n=e,{code:Po.CHUNK_NOT_FOUND,message:`Plugin error - Unable to get file name for unknown chunk "${n}".`}));var n;const r=t.module&&(t.module.facadeChunk?t.module.facadeChunk.id:t.module.chunk.id);return r||wo((i=t,{code:Po.CHUNK_NOT_GENERATED,message:`Plugin error - Unable to get file name for chunk "${i.name}". Ensure that generate is called first.`}));var i}resolveId(e,t,n){return Ec(this,void 0,void 0,function*(){return this.normalizeResolveIdResult(!this.isExternal(e,t,!1)&&(yield this.pluginDriver.hookFirst("resolveId",[e,t],null,n)),t,e)})}addToManualChunk(e,t){null!==t.manualChunkAlias&&t.manualChunkAlias!==e&&wo(ko(t.id,e,t.manualChunkAlias)),t.manualChunkAlias=e,this.manualChunkModules[e]||(this.manualChunkModules[e]=[]),this.manualChunkModules[e].push(t)}awaitLoadModulesPromise(e){this.latestLoadModulesPromise=Promise.all([e,this.latestLoadModulesPromise]);const t=()=>{const e=this.latestLoadModulesPromise;return e.then(()=>{if(this.latestLoadModulesPromise!==e)return t()})};return t().then(()=>e)}fetchAllDependencies(e){const t=Promise.all(e.getDynamicImportExpressions().map((t,n)=>this.resolveDynamicImport(e,t,e.id).then(t=>{if(null===t)return;const r=e.dynamicImports[n];if("string"!=typeof t)return this.fetchResolvedDependency(Ao(t.id),e.id,t).then(e=>{r.resolution=e});r.resolution=t})));return t.catch(()=>{}),Promise.all(e.sources.map(t=>this.resolveAndFetchDependency(e,t))).then(()=>t)}fetchModule(e,t,n,r){const i=this.modulesById.get(e);if(i){if(i instanceof gt)throw new Error(`Cannot fetch external module ${e}`);return i.isEntryPoint=i.isEntryPoint||r,Promise.resolve(i)}const s=new hh(this.graph,e,n,r);this.modulesById.set(e,s);const o=this.getManualChunk(e);return"string"==typeof o&&this.addToManualChunk(o,s),eh("load modules",3),Promise.resolve(this.pluginDriver.hookFirst("load",[e])).catch(n=>{th("load modules",3);let r=`Could not load ${e}`;throw t&&(r+=` (imported by ${t})`),r+=`: ${n.message}`,n.message=r,n}).then(t=>(th("load modules",3),"string"==typeof t?{code:t}:t&&"object"==typeof t&&"string"==typeof t.code?t:wo(function(e){return{code:Po.BAD_LOADER,message:`Error loading ${Ao(e)}: plugin load hook should return a string, a { code, map } object, or nothing/null`}}(e)))).then(t=>{const n=this.graph.cachedModules.get(e);if(n&&!n.customTransformCache&&n.originalCode===t.code){if(n.transformAssets)for(const{name:e,source:t}of n.transformAssets)this.pluginDriver.emitAsset(e,t);if(n.transformChunks)for(const{id:e,options:t}of n.transformChunks)this.pluginDriver.emitChunk(e,t);return n}return"boolean"==typeof t.moduleSideEffects&&(s.moduleSideEffects=t.moduleSideEffects),Rc(this.graph,t,s)}).then(t=>(s.setSource(t),this.modulesById.set(e,s),this.fetchAllDependencies(s).then(()=>{for(const e in s.exports)"default"!==e&&(s.exportsAll[e]=s.id);return s.exportAllSources.forEach(e=>{const t=s.resolvedIds[e].id,n=this.modulesById.get(t);if(!(n instanceof gt))for(const e in n.exportsAll)e in s.exportsAll?this.graph.warn($o(e,s,n)):s.exportsAll[e]=n.exportsAll[e]}),s})))}fetchResolvedDependency(e,t,n){if(n.external){this.modulesById.has(n.id)||this.modulesById.set(n.id,new gt(this.graph,n.id,n.moduleSideEffects));const r=this.modulesById.get(n.id);return r instanceof gt?Promise.resolve(r):wo(function(e,t){return{code:Po.INVALID_EXTERNAL_ID,message:`'${e}' is imported as an external by ${Ao(t)}, but is already an existing non-external module id.`}}(e,t))}return this.fetchModule(n.id,t,n.moduleSideEffects,!1)}handleMissingImports(e,t,n){return null===e?(ut(t)&&wo(function(e,t){return{code:Po.UNRESOLVED_IMPORT,message:`Could not resolve '${e}' from ${Ao(t)}`}}(t,n)),this.graph.warn(function(e,t){return{code:Po.UNRESOLVED_IMPORT,importer:Ao(t),message:`'${e}' is imported by ${Ao(t)}, but could not be resolved – treating it as an external dependency`,source:e,url:"https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency"}}(t,n)),{external:!0,id:t,moduleSideEffects:this.hasModuleSideEffects(t,!0)}):e}normalizeResolveIdResult(e,t,n){let r="",i=!1,s=null;if(e)"object"==typeof e?(r=e.id,e.external&&(i=!0),"boolean"==typeof e.moduleSideEffects&&(s=e.moduleSideEffects)):(this.isExternal(e,t,!0)&&(i=!0),r=i?Oc(t,e):e);else{if(r=Oc(t,n),!1!==e&&!this.isExternal(r,t,!0))return null;i=!0}return{external:i,id:r,moduleSideEffects:"boolean"==typeof s?s:this.hasModuleSideEffects(r,i)}}resolveAndFetchDependency(e,t){return Ec(this,void 0,void 0,function*(){return this.fetchResolvedDependency(t,e.id,e.resolvedIds[t]=e.resolvedIds[t]||this.handleMissingImports(yield this.resolveId(t,e.id),t,e.id))})}resolveDynamicImport(e,t,n){return Ec(this,void 0,void 0,function*(){const r=yield this.pluginDriver.hookFirst("resolveDynamicImport",[t,n]);return"string"!=typeof t?"string"==typeof r?r:r?Object.assign({external:!1,moduleSideEffects:!0},r):null:null==r?e.resolvedIds[t]=e.resolvedIds[t]||this.handleMissingImports(yield this.resolveId(t,e.id),t,e.id):this.handleMissingImports(this.normalizeResolveIdResult(r,n,t),t,n)})}}const Lc=97,Vc=48;function Bc(e){return e<10?String.fromCharCode(Vc+e):String.fromCharCode(Lc+(e-10))}function zc(e){let t="";for(let n=0;n<e.length;n++){const r=e[n];t+=Bc(r>>4),t+=Bc(15&r)}return t}function jc(e){const t=new Uint8Array(e);for(let e=0;e<t.length;e++)t[e]=512*Math.random();return t}function Wc(e){return"string"==typeof e?[{alias:null,unresolvedId:e}]:Array.isArray(e)?e.map(e=>({alias:null,unresolvedId:e})):Object.keys(e).map(t=>({alias:t,unresolvedId:e[t]}))}class Uc{constructor(e,t){if(this.assetsById=new Map,this.curChunkIndex=0,this.moduleById=new Map,this.needsTreeshakingPass=!1,this.phase=wc.LOAD_AND_PARSE,this.watchFiles=Object.create(null),this.externalModules=[],this.modules=[],this.onwarn=e.onwarn||function(){const e=Object.create(null);return t=>{const n=t.toString();n in e||(console.error(n),e[n]=!0)}}(),this.curChunkIndex=0,this.deoptimizationTracker=new xc,this.cachedModules=new Map,e.cache&&e.cache.modules)for(const t of e.cache.modules)this.cachedModules.set(t.id,t);if(!1!==e.cache){this.pluginCache=e.cache&&e.cache.plugins||Object.create(null);for(const e in this.pluginCache){const t=this.pluginCache[e];for(const e of Object.keys(t))t[e][0]++}}if(this.preserveModules=e.preserveModules,this.strictDeprecations=e.strictDeprecations,this.cacheExpiry=e.experimentalCacheExpiry,!1!==e.treeshake&&(this.treeshakingOptions=e.treeshake?{annotations:!1!==e.treeshake.annotations,moduleSideEffects:e.treeshake.moduleSideEffects,propertyReadSideEffects:!1!==e.treeshake.propertyReadSideEffects,pureExternalModules:e.treeshake.pureExternalModules,tryCatchDeoptimization:!1!==e.treeshake.tryCatchDeoptimization}:{annotations:!0,moduleSideEffects:!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0},void 0!==this.treeshakingOptions.pureExternalModules&&this.warnDeprecation('The "treeshake.pureExternalModules" option is deprecated. The "treeshake.moduleSideEffects" option should be used instead. "treeshake.pureExternalModules: true" is equivalent to "treeshake.moduleSideEffects: \'no-external\'"',!1)),this.contextParse=(e,t={})=>this.acornParser.parse(e,Object.assign({},sh,t,this.acornOptions)),this.pluginDriver=Cc(this,e,this.pluginCache,t),t){const e=e=>this.pluginDriver.hookSeqSync("watchChange",[e]);t.on("change",e),t.once("restart",()=>{t.removeListener("change",e)})}this.shimMissingExports=e.shimMissingExports,this.scope=new yc,this.context=String(e.context);const n=e.moduleContext;if("function"==typeof n)this.getModuleContext=e=>n(e)||this.context;else if("object"==typeof n){const e=new Map;for(const t in n)e.set(mt(t),n[t]);this.getModuleContext=t=>e.get(t)||this.context}else this.getModuleContext=()=>this.context;this.acornOptions=e.acorn||{};const r=[];r.push(lc),r.push(mc),r.push(uc),e.experimentalTopLevelAwait&&(this.acornOptions.allowAwaitOutsideFunction=!0);const i=e.acornInjectPlugins;r.push(...Array.isArray(i)?i:i?[i]:[]),this.acornParser=mu.extend(...r),this.moduleLoader=new Tc(this,this.moduleById,this.pluginDriver,e.external,"function"==typeof e.manualChunks&&e.manualChunks,this.treeshakingOptions?this.treeshakingOptions.moduleSideEffects:null,!!this.treeshakingOptions&&this.treeshakingOptions.pureExternalModules)}build(e,t,n){return eh("parse modules",2),Promise.all([this.moduleLoader.addEntryModules(Wc(e),!0),t&&"object"==typeof t&&this.moduleLoader.addManualChunks(t)]).then(([{entryModules:e,manualChunkModulesByAlias:t}])=>{if(0===e.length)throw new Error("You must supply options.input to rollup");for(const e of this.moduleById.values())e instanceof hh?(this.modules.push(e),this.watchFiles[e.id]=!0):this.externalModules.push(e);if(th("parse modules",2),this.phase=wc.ANALYSE,eh("analyse dependency graph",2),this.link(e),th("analyse dependency graph",2),eh("mark included statements",2),n&&e.length>1)throw new Error("Internal Error: can only inline dynamic imports for single-file builds.");for(const t of e)t.includeAllExports();this.includeMarked(this.modules);for(const e of this.externalModules)e.warnUnusedImports();th("mark included statements",2),eh("generate chunks",2),this.preserveModules||n||function(e,t){let n,r,i;const s=new Set,o=[],a=e=>{n.manualChunkAlias?(e.manualChunkAlias=n.manualChunkAlias,e.entryPointsHash=r):function(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]^t[n]}(e.entryPointsHash,r);for(const t of e.dependencies)t instanceof gt||i.has(t.id)||(i.add(t.id),s.has(t.id)||t.manualChunkAlias||a(t));for(const{resolution:t}of e.dynamicImports)t instanceof hh&&t.dynamicallyImportedBy.length>0&&!t.manualChunkAlias&&o.push(t)};if(t)for(const e of Object.keys(t))for(n of(r=jc(10),t[e]))i=new Set(n.id),a(n);for(n of e)s.add(n.id),r=jc(10),i=new Set(n.id),n.manualChunkAlias||a(n);for(n of o)s.has(n.id)||(s.add(n.id),r=jc(10),i=new Set(n.id),a(n))}(e,t);let r=[];if(this.preserveModules)for(const e of this.modules){const t=new Ph(this,[e]);!e.isEntryPoint&&t.isEmpty||(t.entryModules=[e]),r.push(t)}else{const e={};for(const t of this.modules){const n=zc(t.entryPointsHash),r=e[n];r?r.push(t):e[n]=[t]}for(const t in e){const n=e[t];vh(n);const i=new Ph(this,n);r.push(i)}}for(const e of r)e.link();r=r.filter(Ih);const i=[];for(const e of r)for(const t of e.generateFacades())i.push(t);return th("generate chunks",2),this.phase=wc.GENERATE,r.concat(i)})}finaliseAssets(e){const t=Object.create(null);return this.assetsById.forEach(n=>{void 0!==n.source&&Sc(n,t,e)}),t}getCache(){for(const e in this.pluginCache){const t=this.pluginCache[e];let n=!0;for(const e of Object.keys(t))t[e][0]>=this.cacheExpiry?delete t[e]:n=!1;n&&delete this.pluginCache[e]}return{modules:this.modules.map(e=>e.toJSON()),plugins:this.pluginCache}}includeMarked(e){if(this.treeshakingOptions){let t=1;do{eh(`treeshaking pass ${t}`,3),this.needsTreeshakingPass=!1;for(const t of e)t.isExecuted&&t.include();th(`treeshaking pass ${t++}`,3)}while(this.needsTreeshakingPass)}else for(const t of e)t.includeAllInBundle()}warn(e){e.toString=()=>{let t="";return e.plugin&&(t+=`(${e.plugin} plugin) `),e.loc&&(t+=`${Ao(e.loc.file)} (${e.loc.line}:${e.loc.column}) `),t+=e.message},this.onwarn(e)}warnDeprecation(e,t){if(t||this.strictDeprecations){const t=Co(e);if(this.strictDeprecations)return wo(t);this.warn(t)}}link(e){for(const e of this.modules)e.linkDependencies();const{orderedModules:t,cyclePaths:n}=function(e){let t=0;const n=[],r={},i=[],s=[],o={},a=e=>{if(!r[e.id]){if(e instanceof gt)return e.execIndex=t++,void(r[e.id]=!0);for(const t of e.dependencies)t.id in o?r[t.id]||n.push(xh(t.id,e.id,o)):(o[t.id]=e.id,a(t));for(const{resolution:t}of e.dynamicImports)t instanceof hh&&-1===s.indexOf(t)&&s.push(t);e.execIndex=t++,r[e.id]=!0,i.push(e)}};for(const t of e)o[t.id]||(o[t.id]=null,a(t));for(const e of s)o[e.id]||(o[e.id]=null,a(e));return{orderedModules:i,cyclePaths:n}}(e);for(const e of n)this.warn({code:"CIRCULAR_DEPENDENCY",importer:e[0],message:`Circular dependency: ${e.join(" -> ")}`});this.modules=t;for(const e of this.modules)e.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(const e of this.modules)for(const t of Object.keys(e.importDescriptions)){const n=e.importDescriptions[t];"*"===n.name||n.module.getVariableForExportName(n.name)||e.warn({code:"NON_EXISTENT_EXPORT",message:`Non-existent export '${n.name}' is imported from ${Ao(n.module.id)}`,name:n.name,source:n.module.id},n.start)}}}function Fc(e){switch(typeof e){case"function":return e();case"string":return e;default:return""}}const qc=(e,t)=>t?`${e}\n${t}`:e,Gc=(e,t)=>t?`${e}\n\n${t}`:e;function Hc(e,t){wo({code:"INVALID_EXPORT_OPTION",message:`'${e}' was specified for output.exports, but entry module has following exports: ${t.join(", ")}`})}function Kc(e,{exports:t,name:n,format:r}){const i=e.getExportNames();return"default"===t?1===i.length&&"default"===i[0]||Hc("default",i):"none"===t&&i.length&&Hc("none",i),t&&"auto"!==t||(0===i.length?t="none":1===i.length&&"default"===i[0]?t="default":(null!==e.facadeModule&&e.facadeModule.isEntryPoint&&"es"!==r&&-1!==i.indexOf("default")&&e.graph.warn({code:"MIXED_EXPORTS",message:`Using named and default exports together. Consumers of your bundle will have to use ${n||"bundle"}['default'] to access the default export, which may not be what you want. Use \`output.exports: 'named'\` to disable this warning`,url:"https://rollupjs.org/guide/en/#output-exports"}),t="named")),/(?:default|named|none)/.test(t)||wo({code:"INVALID_EXPORT_OPTION",message:"output.exports must be 'default', 'named', 'none', 'auto', or left unspecified (defaults to 'auto')",url:"https://rollupjs.org/guide/en/#output-exports"}),t}const Yc=(e,t)=>(n,r)=>void 0!==t[n]?t[n]:void 0!==e[n]?e[n]:r,Xc=e=>e&&"object"!=typeof e?{}:e,Qc=(e,t,n)=>{const r=Xc(t[n]),i=Xc(e[n]);return void 0!==r?r&&i?Object.assign({},i,r):r:i},Jc=(e,t=(e=>{"string"==typeof e?console.warn(e):console.warn(e.message)}))=>e.onwarn?n=>e.onwarn(n,t):t,Zc=(e,t)=>{const n=e.external;return"function"==typeof n?(e,...r)=>n(e,...r)||-1!==t.external.indexOf(e):("string"==typeof e.external?[n]:Array.isArray(n)?n:[]).concat(t.external)},el={c:"config",d:"dir",e:"external",f:"format",g:"globals",h:"help",i:"input",m:"sourcemap",n:"name",o:"file",v:"version",w:"watch"};function tl({config:e={},command:t={},defaultOnWarnHandler:n}){const r=function(e){const t=e.external&&"string"==typeof e.external?e.external.split(","):[];return Object.assign({},e,{external:t,globals:"string"==typeof e.globals?e.globals.split(",").reduce((e,n)=>{const[r,i]=n.split(":");return e[r]=i,-1===t.indexOf(r)&&t.push(r),e},Object.create(null)):void 0})}(t),i=function(e,t={external:[],globals:void 0},n){const r=Yc(e,t),i={acorn:e.acorn,acornInjectPlugins:e.acornInjectPlugins,cache:r("cache"),chunkGroupingSize:r("chunkGroupingSize",5e3),context:e.context,experimentalCacheExpiry:r("experimentalCacheExpiry",10),experimentalOptimizeChunks:r("experimentalOptimizeChunks"),experimentalTopLevelAwait:r("experimentalTopLevelAwait"),external:Zc(e,t),inlineDynamicImports:r("inlineDynamicImports",!1),input:r("input",[]),manualChunks:r("manualChunks"),moduleContext:e.moduleContext,onwarn:Jc(e,n),perf:r("perf",!1),plugins:e.plugins,preserveModules:r("preserveModules"),preserveSymlinks:r("preserveSymlinks"),shimMissingExports:r("shimMissingExports"),strictDeprecations:r("strictDeprecations",!1),treeshake:Qc(e,t,"treeshake"),watch:e.watch};i.cache&&i.cache.cache&&(i.cache=i.cache.cache);return i}(e,r,n);r.output&&Object.assign(r,r.output);const s=e.output,o=Array.isArray(s)?s:s?[s]:[];0===o.length&&o.push({});const a=o.map(e=>(function(e,t={}){const n=Yc(e,t);let r=n("format");switch(r){case"esm":case"module":r="es";break;case"commonjs":r="cjs"}return{amd:Object.assign({},e.amd,t.amd),assetFileNames:n("assetFileNames"),banner:n("banner"),chunkFileNames:n("chunkFileNames"),compact:n("compact",!1),dir:n("dir"),dynamicImportFunction:n("dynamicImportFunction"),entryFileNames:n("entryFileNames"),esModule:n("esModule",!0),exports:n("exports"),extend:n("extend"),file:n("file"),footer:n("footer"),format:"esm"===r?"es":r,freeze:n("freeze",!0),globals:n("globals"),indent:n("indent",!0),interop:n("interop",!0),intro:n("intro"),name:n("name"),namespaceToStringTag:n("namespaceToStringTag",!1),noConflict:n("noConflict"),outro:n("outro"),paths:n("paths"),preferConst:n("preferConst"),sourcemap:n("sourcemap"),sourcemapExcludeSources:n("sourcemapExcludeSources"),sourcemapFile:n("sourcemapFile"),sourcemapPathTransform:n("sourcemapPathTransform"),strict:n("strict",!0)}})(e,r)),h=[],u=Object.keys(i);nl(h,Object.keys(e),u,"input option",/^output$/);const c=Object.keys(a[0]);nl(h,a.reduce((e,t)=>e.concat(Object.keys(t)),[]),c,"output option");const l=c.filter(e=>"sourcemapPathTransform"!==e);return nl(h,Object.keys(r),u.concat(l,Object.keys(el),"config","environment","silent"),"CLI flag",/^_|output|(config.*)$/),{inputOptions:i,optionError:h.length>0?h.join("\n"):null,outputOptions:a}}function nl(e,t,n,r,i=/$./){const s=t.filter(e=>-1===n.indexOf(e)&&!i.test(e));s.length>0&&e.push(`Unknown ${r}: ${s.join(", ")}. Allowed options: ${n.sort().join(", ")}`)}const rl={get(){throw new Error("bundle.generate(...) now returns a Promise instead of a { code, map } object")}};function il(e,n){return n.options&&n.options.call({meta:{rollupVersion:t}},e)||e}function sl(e){return Array.isArray(e)?e.filter(Boolean):e?[e]:[]}let ol;var al;function hl(e){return e.isAsset?al.ASSET:e.isEntry?al.ENTRY_CHUNK:al.SECONDARY_CHUNK}function ul(e){return{output:Object.keys(e).map(t=>e[t]).sort((e,t)=>{const n=hl(e),r=hl(t);return n===r?0:n<r?-1:1})}}function cl(e){return!0===e.isAsset}!function(e){e[e.ENTRY_CHUNK=0]="ENTRY_CHUNK",e[e.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",e[e.ASSET=2]="ASSET"}(al||(al={})),e.VERSION=t,e.rollup=function(e){try{const t=function(e){if(!e)throw new Error("You must supply an options object to rollup");let{inputOptions:t,optionError:n}=tl({config:e});n&&t.onwarn({message:n,code:"UNKNOWN_OPTION"}),(t=sl(t.plugins).reduce(il,t)).plugins=sl(t.plugins);for(let e=0;e<t.plugins.length;e++){const n=t.plugins[e];n.name||(n.name=`${Ic}${e+1}`)}return t.inlineDynamicImports?(t.preserveModules&&wo({code:"INVALID_OPTION",message:'"preserveModules" does not support the "inlineDynamicImports" option.'}),t.manualChunks&&wo({code:"INVALID_OPTION",message:'"manualChunks" option is not supported for "inlineDynamicImports".'}),t.experimentalOptimizeChunks&&wo({code:"INVALID_OPTION",message:'"experimentalOptimizeChunks" option is not supported for "inlineDynamicImports".'}),(t.input instanceof Array&&t.input.length>1||"object"==typeof t.input&&Object.keys(t.input).length>1)&&wo({code:"INVALID_OPTION",message:'Multiple inputs are not supported for "inlineDynamicImports".'})):t.preserveModules&&(t.manualChunks&&wo({code:"INVALID_OPTION",message:'"preserveModules" does not support the "manualChunks" option.'}),t.experimentalOptimizeChunks&&wo({code:"INVALID_OPTION",message:'"preserveModules" does not support the "experimentalOptimizeChunks" option.'})),t}(e);ih(t);const n=new Uc(t,ol);ol=void 0;const r=!1!==e.cache;return delete t.cache,delete e.cache,eh("BUILD",1),n.pluginDriver.hookParallel("buildStart",[t]).then(()=>n.build(t.input,t.manualChunks,t.inlineDynamicImports)).then(e=>n.pluginDriver.hookParallel("buildEnd",[]).then(()=>e),e=>n.pluginDriver.hookParallel("buildEnd",[e]).then(()=>{throw e})).then(e=>{th("BUILD",1);let i=!1;function s(r){return function(e,t,n,r){if(!t)throw new Error("You must supply an options object");const i=tl({config:{output:Object.assign({},t,t.output,e.output)}});if(i.optionError)throw new Error(i.optionError);const s=i.outputOptions[0],o=r.hookReduceArg0Sync("outputOptions",[s],(e,t)=>t||e);var a;return"es6"===(a=o).format&&wo(Co({message:'The "es6" output format is deprecated – use "esm" instead',url:"https://rollupjs.org/guide/en/#output-format"})),["amd","cjs","system","es","iife","umd"].indexOf(a.format)<0&&wo({message:'You must specify "output.format", which can be one of "amd", "cjs", "system", "esm", "iife" or "umd".',url:"https://rollupjs.org/guide/en/#output-format"}),"string"==typeof o.file&&("string"==typeof o.dir&&wo({code:"INVALID_OPTION",message:'You must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks.'}),e.preserveModules&&wo({code:"INVALID_OPTION",message:'You must set "output.dir" instead of "output.file" when using the "preserveModules" option.'}),"object"!=typeof e.input||Array.isArray(e.input)||wo({code:"INVALID_OPTION",message:'You must set "output.dir" instead of "output.file" when providing named inputs.'})),n&&("umd"!==o.format&&"iife"!==o.format||wo({code:"INVALID_OPTION",message:"UMD and IIFE output formats are not supported for code-splitting builds."}),"string"==typeof o.file&&wo({code:"INVALID_OPTION",message:'You must set "output.dir" instead of "output.file" when generating multiple chunks.'})),o}(t,r,e.length>1,n.pluginDriver)}function o(r,s){eh("GENERATE",1);const o=r.assetFileNames||"assets/[name]-[hash][extname]",a=n.finaliseAssets(o),h=function(e){if(0===e.length)return"/";if(1===e.length)return pt(e[0]);const t=e.slice(1).reduce((e,t)=>{const n=t.split(/\/+|\\+/);let r;for(r=0;e[r]===n[r]&&r<Math.min(e.length,n.length);r++);return e.slice(0,r)},e[0].split(/\/+|\\+/));return t.length>1?t.join("/"):"/"}(function(e){const t=[];for(const n of e)for(const e of n.entryModules)ht(e.id)&&t.push(e.id);return t}(e));return n.pluginDriver.hookParallel("renderStart",[]).then(()=>(function(e,t){const n=e.pluginDriver;return Promise.all([n.hookReduceValue("banner",Fc(t.banner),[],qc),n.hookReduceValue("footer",Fc(t.footer),[],qc),n.hookReduceValue("intro",Fc(t.intro),[],Gc),n.hookReduceValue("outro",Fc(t.outro),[],Gc)]).then(([e,t,n,r])=>(n&&(n+="\n\n"),r&&(r=`\n\n${r}`),e.length&&(e+="\n"),t.length&&(t="\n"+t),{intro:n,outro:r,banner:e,footer:t})).catch(e=>{wo({code:"ADDON_ERROR",message:`Could not retrieve ${e.hook}. Check configuration of plugin ${e.plugin}.\n\tError Message: ${e.message}`})})})(n,r)).then(s=>{for(const n of e)t.preserveModules||n.generateInternalExports(r),n.facadeModule&&n.facadeModule.isEntryPoint&&(n.exportMode=Kc(n,r));for(const t of e)t.preRender(r,h);!i&&t.experimentalOptimizeChunks&&(function(e,t,n,r){for(let i=0;i<e.length;i++){const s=e[i],o=[];if(s.visitStaticDependenciesUntilCondition(e=>{e instanceof Ph&&o.push(e)}),o.length<2)continue;let a=1,h=!0,u=void 0,c=o[0],l=o[1];const p=e=>!(null!==e.facadeModule||null!==e.manualChunkAlias||!l||null!==l.facadeModule||e.getRenderedSourceLength()>n);do{if(h){p(c)&&(h=!1);continue}let s=n-u.getRenderedSourceLength()-c.getRenderedSourceLength();if(s<=0){p(c)||(h=!0);continue}const d=new Set;c.visitStaticDependenciesUntilCondition(e=>d.add(e));const f=new Set([c,u]);if(u.visitStaticDependenciesUntilCondition(e=>e!==c&&e!==u&&!d.has(e)&&(e instanceof gt||(s-=e.getRenderedSourceLength())<=0||void f.add(e)))){p(c)||(h=!0);continue}if(c.visitStaticDependenciesUntilCondition(e=>!f.has(e)&&(e instanceof gt||(s-=e.getRenderedSourceLength())<=0||void 0))){p(c)||(h=!0);continue}const m=e.indexOf(c);m<=i&&i--,e.splice(m,1),u.merge(c,e,t,r),o.splice(--a,1),c=u,l&&!p(l)&&(h=!0)}while(u=c,c=l,l=o[++a],c)}}(e,r,t.chunkGroupingSize,h),i=!0),function(e,t,n,r,i){const s={},[o,a]=e.reduce(([e,t],n)=>((n.facadeModule&&n.facadeModule.isUserDefinedEntryPoint?e:t).push(n),[e,t]),[[],[]]),h=o.concat(a);for(let e=0;e<h.length;e++){const o=h[e];if(n.file)o.id=lt(n.file);else if(t.preserveModules)o.generateIdPreserveModules(r,s);else{let e,t;o.facadeModule&&o.facadeModule.isUserDefinedEntryPoint?(e=n.entryFileNames||"[name].js",t="output.entryFileNames"):(e=n.chunkFileNames||"[name]-[hash].js",t="output.chunkFileNames"),o.generateId(e,t,i,n,s)}s[o.id]=!0}}(e,t,r,h,s);for(let t=0;t<e.length;t++){const n=e[t],r=n.facadeModule;a[n.id]={code:void 0,dynamicImports:n.getDynamicImportIds(),exports:n.getExportNames(),facadeModuleId:r&&r.id,fileName:n.id,imports:n.getImportIds(),isDynamicEntry:null!==r&&r.dynamicallyImportedBy.length>0,isEntry:null!==r&&r.isEntryPoint,map:void 0,modules:n.renderedModules,get name(){return n.getChunkName()}}}return Promise.all(e.map(e=>{const t=a[e.id];return e.render(r,s,t).then(e=>(t.code=e.code,t.map=e.map,n.pluginDriver.hookParallel("ongenerate",[Object.assign({bundle:t},r),t])))})).then(()=>{})}).catch(e=>n.pluginDriver.hookParallel("renderError",[e]).then(()=>{throw e})).then(()=>{const e=new Map(n.assetsById),t=Ac(e,a,o);return n.pluginDriver.hookSeq("generateBundle",[r,a,s],e=>Object.assign({},e,t)).then(()=>{e.forEach(e=>{void 0===e.fileName&&Sc(e,a,o)})})}).then(()=>(th("GENERATE",1),a))}const a={cache:r?n.getCache():void 0,generate:e=>{const t=o(s(e),!1).then(e=>ul(e));return Object.defineProperty(t,"code",rl),Object.defineProperty(t,"map",rl),t},watchFiles:Object.keys(n.watchFiles),write:e=>{const r=s(e);return r.dir||r.file||wo({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.'}),o(r,!0).then(e=>{let i=0;for(const t of Object.keys(e))if(!e[t].isAsset&&++i>1)break;return i>1&&(r.sourcemapFile&&wo({code:"INVALID_OPTION",message:'"output.sourcemapFile" is only supported for single-file builds.'}),"string"==typeof r.file&&wo({code:"INVALID_OPTION",message:'When building multiple chunks, the "output.dir" option must be used, not "output.file".'+("string"!=typeof t.input||!0===t.inlineDynamicImports?"":' To inline dynamic imports, set the "inlineDynamicImports" option.')})),Promise.all(Object.keys(e).map(t=>(function(e,t,n,r){const i=mt(r.dir||pt(r.file),n.fileName);let s,o;if(cl(n))o=n.source;else if(o=n.code,r.sourcemap&&n.map){let e;"inline"===r.sourcemap?e=n.map.toUrl():(e=`${lt(n.fileName)}.map`,s=ma(`${i}.map`,n.map.toString())),o+=`//# ${Wa}=${e}\n`}return ma(i,o).then(()=>s).then(()=>!cl(n)&&e.pluginDriver.hookSeq("onwrite",[Object.assign({bundle:t},r),n])).then(()=>{})})(n,a,e[t],r))).then(()=>n.pluginDriver.hookParallel("writeBundle",[e])).then(()=>ul(e))})}};return!0===t.perf&&(a.getTimings=Za),a})}catch(e){return Promise.reject(e)}},Object.defineProperty(e,"__esModule",{value:!0})});
|