sveld 0.28.0 → 0.29.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/README.md +558 -132
- package/lib/ComponentParser.d.ts +48 -5
- package/lib/index.js +145 -145
- package/package.json +4 -3
package/lib/index.js
CHANGED
|
@@ -1,184 +1,184 @@
|
|
|
1
|
-
import{createRequire as PW}from"node:module";var OW=Object.create;var{getPrototypeOf:RW,defineProperty:V3,getOwnPropertyNames:CW}=Object;var _W=Object.prototype.hasOwnProperty;function IW(Z){return this[Z]}var DW,TW,F8=(Z,q,J)=>{var Q=Z!=null&&typeof Z==="object";if(Q){var Y=q?DW??=new WeakMap:TW??=new WeakMap,z=Y.get(Z);if(z)return z}J=Z!=null?OW(RW(Z)):{};let X=q||!Z||!Z.__esModule?V3(J,"default",{value:Z,enumerable:!0}):J;for(let V of CW(Z))if(!_W.call(X,V))V3(X,V,{get:IW.bind(Z,V),enumerable:!0});if(Q)Y.set(Z,X);return X};var U1=(Z,q)=>()=>(q||Z((q={exports:{}}).exports,q),q.exports);var AW=(Z,q)=>()=>(Z&&(q=Z(Z=0)),q);var a1=PW(import.meta.url);var M3=U1((lR,H3)=>{var{builtinModules:oW}=a1("module"),tW=["sys"];H3.exports=(oW||(process.binding?Object.keys(process.binding("natives")):[])||[]).filter((Z)=>!/^_|^(internal|v8|node-inspect)\/|\//.test(Z)&&!tW.includes(Z)).sort()});var L3=U1((cR,F3)=>{var eW=M3(),ZK=new Set(eW);F3.exports=(Z)=>{if(typeof Z!=="string")throw TypeError("Expected a string");if(Z.startsWith("node:"))Z=Z.slice(5);let q=Z.indexOf("/");if(q!==-1&&q!==Z.length-1)Z=Z.slice(0,q);return ZK.has(Z)}});var R3=U1((pR,O3)=>{var qK=function(q){return JK(q)&&!QK(q)};function JK(Z){return!!Z&&typeof Z==="object"}function QK(Z){var q=Object.prototype.toString.call(Z);return q==="[object RegExp]"||q==="[object Date]"||XK(Z)}var YK=typeof Symbol==="function"&&Symbol.for,zK=YK?Symbol.for("react.element"):60103;function XK(Z){return Z.$$typeof===zK}function VK(Z){return Array.isArray(Z)?[]:{}}function E6(Z,q){return q.clone!==!1&&q.isMergeableObject(Z)?h8(VK(Z),Z,q):Z}function WK(Z,q,J){return Z.concat(q).map(function(Q){return E6(Q,J)})}function KK(Z,q){if(!q.customMerge)return h8;var J=q.customMerge(Z);return typeof J==="function"?J:h8}function GK(Z){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(Z).filter(function(q){return Object.propertyIsEnumerable.call(Z,q)}):[]}function N3(Z){return Object.keys(Z).concat(GK(Z))}function w3(Z,q){try{return q in Z}catch(J){return!1}}function $K(Z,q){return w3(Z,q)&&!(Object.hasOwnProperty.call(Z,q)&&Object.propertyIsEnumerable.call(Z,q))}function UK(Z,q,J){var Q={};if(J.isMergeableObject(Z))N3(Z).forEach(function(Y){Q[Y]=E6(Z[Y],J)});return N3(q).forEach(function(Y){if($K(Z,Y))return;if(w3(Z,Y)&&J.isMergeableObject(q[Y]))Q[Y]=KK(Y,J)(Z[Y],q[Y],J);else Q[Y]=E6(q[Y],J)}),Q}function h8(Z,q,J){J=J||{},J.arrayMerge=J.arrayMerge||WK,J.isMergeableObject=J.isMergeableObject||qK,J.cloneUnlessOtherwiseSpecified=E6;var Q=Array.isArray(q),Y=Array.isArray(Z),z=Q===Y;if(!z)return E6(q,J);else if(Q)return J.arrayMerge(Z,q,J);else return UK(Z,q,J)}h8.all=function(q,J){if(!Array.isArray(q))throw Error("first argument should be an array");return q.reduce(function(Q,Y){return h8(Q,Y,J)},{})};var jK=h8;O3.exports=jK});var _3=U1((iR,C3)=>{var BK=/(?:^\s*|[}{\(\);,\n]\s*)(import\s+['"]|(import|module)\s+[^"'\(\)\n;]+\s+from\s+['"]|export\s+(\*|\{|default|function|var|const|let|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*))/,HK=/(?:^\s*|[}{\(\);,\n]\s*)(export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)"))/;C3.exports=function(Z){return BK.test(Z)||HK.test(Z)}});var a7=U1((nR,I3)=>{var MK=a1("os");I3.exports=MK.homedir||function(){var q=process.env.HOME,J=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;if(process.platform==="win32")return process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||q||null;if(process.platform==="darwin")return q||(J?"/Users/"+J:null);if(process.platform==="linux")return q||(process.getuid()===0?"/root":J?"/home/"+J:null);return q||null}});var s7=U1((aR,D3)=>{D3.exports=function(){var Z=Error.prepareStackTrace;Error.prepareStackTrace=function(J,Q){return Q};var q=Error().stack;return Error.prepareStackTrace=Z,q[2].getFileName()}});var T3=U1((sR,b6)=>{var FK=process.platform==="win32",LK=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,r7={};function NK(Z){return LK.exec(Z).slice(1)}r7.parse=function(Z){if(typeof Z!=="string")throw TypeError("Parameter 'pathString' must be a string, not "+typeof Z);var q=NK(Z);if(!q||q.length!==5)throw TypeError("Invalid path '"+Z+"'");return{root:q[1],dir:q[0]===q[1]?q[0]:q[0].slice(0,-1),base:q[2],ext:q[4],name:q[3]}};var wK=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,o7={};function OK(Z){return wK.exec(Z).slice(1)}o7.parse=function(Z){if(typeof Z!=="string")throw TypeError("Parameter 'pathString' must be a string, not "+typeof Z);var q=OK(Z);if(!q||q.length!==5)throw TypeError("Invalid path '"+Z+"'");return{root:q[1],dir:q[0].slice(0,-1),base:q[2],ext:q[4],name:q[3]}};if(FK)b6.exports=r7.parse;else b6.exports=o7.parse;b6.exports.posix=o7.parse;b6.exports.win32=r7.parse});var t7=U1((rR,y3)=>{var S3=a1("path"),A3=S3.parse||T3(),P3=function(q,J){var Q="/";if(/^([A-Za-z]:)/.test(q))Q="";else if(/^\\\\/.test(q))Q="\\\\";var Y=[q],z=A3(q);while(z.dir!==Y[Y.length-1])Y.push(z.dir),z=A3(z.dir);return Y.reduce(function(X,V){return X.concat(J.map(function(W){return S3.resolve(Q,V,W)}))},[])};y3.exports=function(q,J,Q){var Y=J&&J.moduleDirectory?[].concat(J.moduleDirectory):["node_modules"];if(J&&typeof J.paths==="function")return J.paths(Q,q,function(){return P3(q,Y)},J);var z=P3(q,Y);return J&&J.paths?z.concat(J.paths):z}});var e7=U1((oR,E3)=>{E3.exports=function(Z,q){return q||{}}});var k3=U1((tR,x3)=>{var RK="Function.prototype.bind called on incompatible ",CK=Object.prototype.toString,_K=Math.max,IK="[object Function]",b3=function(q,J){var Q=[];for(var Y=0;Y<q.length;Y+=1)Q[Y]=q[Y];for(var z=0;z<J.length;z+=1)Q[z+q.length]=J[z];return Q},DK=function(q,J){var Q=[];for(var Y=J||0,z=0;Y<q.length;Y+=1,z+=1)Q[z]=q[Y];return Q},TK=function(Z,q){var J="";for(var Q=0;Q<Z.length;Q+=1)if(J+=Z[Q],Q+1<Z.length)J+=q;return J};x3.exports=function(q){var J=this;if(typeof J!=="function"||CK.apply(J)!==IK)throw TypeError(RK+J);var Q=DK(arguments,1),Y,z=function(){if(this instanceof Y){var G=J.apply(this,b3(Q,arguments));if(Object(G)===G)return G;return this}return J.apply(q,b3(Q,arguments))},X=_K(0,J.length-Q.length),V=[];for(var W=0;W<X;W++)V[W]="$"+W;if(Y=Function("binder","return function ("+TK(V,",")+"){ return binder.apply(this,arguments); }")(z),J.prototype){var K=function(){};K.prototype=J.prototype,Y.prototype=new K,K.prototype=null}return Y}});var f3=U1((eR,v3)=>{var AK=k3();v3.exports=Function.prototype.bind||AK});var g3=U1((ZC,h3)=>{var PK=Function.prototype.call,SK=Object.prototype.hasOwnProperty,yK=f3();h3.exports=yK.call(PK,SK)});var m3=U1((qC,EK)=>{EK.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":[">= 22.13 && < 23",">= 23.4"],_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var x6=U1((JC,l3)=>{var bK=g3();function xK(Z,q){var J=Z.split("."),Q=q.split(" "),Y=Q.length>1?Q[0]:"=",z=(Q.length>1?Q[1]:Q[0]).split(".");for(var X=0;X<3;++X){var V=parseInt(J[X]||0,10),W=parseInt(z[X]||0,10);if(V===W)continue;if(Y==="<")return V<W;if(Y===">=")return V>=W;return!1}return Y===">="}function u3(Z,q){var J=q.split(/ ?&& ?/);if(J.length===0)return!1;for(var Q=0;Q<J.length;++Q)if(!xK(Z,J[Q]))return!1;return!0}function kK(Z,q){if(typeof q==="boolean")return q;var J=typeof Z>"u"?process.versions&&process.versions.node:Z;if(typeof J!=="string")throw TypeError(typeof Z>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(q&&typeof q==="object"){for(var Q=0;Q<q.length;++Q)if(u3(J,q[Q]))return!0;return!1}return u3(J,q)}var d3=m3();l3.exports=function(q,J){return bK(d3,q)&&kK(J,d3[q])}});var i3=U1((QC,p3)=>{var N8=a1("fs"),vK=a7(),f1=a1("path"),fK=s7(),hK=t7(),gK=e7(),mK=x6(),uK=process.platform!=="win32"&&N8.realpath&&typeof N8.realpath.native==="function"?N8.realpath.native:N8.realpath,c3=vK(),dK=function(){return[f1.join(c3,".node_modules"),f1.join(c3,".node_libraries")]},lK=function(q,J){N8.stat(q,function(Q,Y){if(!Q)return J(null,Y.isFile()||Y.isFIFO());if(Q.code==="ENOENT"||Q.code==="ENOTDIR")return J(null,!1);return J(Q)})},cK=function(q,J){N8.stat(q,function(Q,Y){if(!Q)return J(null,Y.isDirectory());if(Q.code==="ENOENT"||Q.code==="ENOTDIR")return J(null,!1);return J(Q)})},pK=function(q,J){uK(q,function(Q,Y){if(Q&&Q.code!=="ENOENT")J(Q);else J(null,Q?q:Y)})},k6=function(q,J,Q,Y){if(Q&&Q.preserveSymlinks===!1)q(J,Y);else Y(null,J)},iK=function(q,J,Q){q(J,function(Y,z){if(Y)Q(Y);else try{var X=JSON.parse(z);Q(null,X)}catch(V){Q(null)}})},nK=function(q,J,Q){var Y=hK(J,Q,q);for(var z=0;z<Y.length;z++)Y[z]=f1.join(Y[z],q);return Y};p3.exports=function(q,J,Q){var Y=Q,z=J;if(typeof J==="function")Y=z,z={};if(typeof q!=="string"){var X=TypeError("Path must be a string.");return process.nextTick(function(){Y(X)})}z=gK(q,z);var V=z.isFile||lK,W=z.isDirectory||cK,K=z.readFile||N8.readFile,G=z.realpath||pK,F=z.readPackage||iK;if(z.readFile&&z.readPackage){var M=TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){Y(M)})}var B=z.packageIterator,H=z.extensions||[".js"],N=z.includeCoreModules!==!1,C=z.basedir||f1.dirname(fK()),A=z.filename||C;z.paths=z.paths||dK();var S=f1.resolve(C);k6(G,S,z,function(j,x){if(j)Y(j);else g(x)});var T;function g(j){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(q)){if(T=f1.resolve(j,q),q==="."||q===".."||q.slice(-1)==="/")T+="/";if(/\/$/.test(q)&&T===j)R(T,z.package,f);else u(T,z.package,f)}else if(N&&mK(q))return Y(null,q);else I(q,j,function(x,k,y){if(x)Y(x);else if(k)return k6(G,k,z,function(L,l){if(L)Y(L);else Y(null,l,y)});else{var $=Error("Cannot find module '"+q+"' from '"+A+"'");$.code="MODULE_NOT_FOUND",Y($)}})}function f(j,x,k){if(j)Y(j);else if(x)Y(null,x,k);else R(T,function(y,$,L){if(y)Y(y);else if($)k6(G,$,z,function(v,s){if(v)Y(v);else Y(null,s,L)});else{var l=Error("Cannot find module '"+q+"' from '"+A+"'");l.code="MODULE_NOT_FOUND",Y(l)}})}function u(j,x,k){var y=x,$=k;if(typeof y==="function")$=y,y=void 0;var L=[""].concat(H);l(L,j,y);function l(v,s,o){if(v.length===0)return $(null,void 0,o);var Q1=s+v[0],N1=o;if(N1)O1(null,N1);else E(f1.dirname(Q1),O1);function O1(a,m,M1){if(N1=m,a)return $(a);if(M1&&N1&&z.pathFilter){var p=f1.relative(M1,Q1),D=p.slice(0,p.length-v[0].length),b=z.pathFilter(N1,s,D);if(b)return l([""].concat(H.slice()),f1.resolve(M1,b),N1)}V(Q1,w1)}function w1(a,m){if(a)return $(a);if(m)return $(null,Q1,N1);l(v.slice(1),s,N1)}}}function E(j,x){if(j===""||j==="/")return x(null);if(process.platform==="win32"&&/^\w:[/\\]*$/.test(j))return x(null);if(/[/\\]node_modules[/\\]*$/.test(j))return x(null);k6(G,j,z,function(k,y){if(k)return E(f1.dirname(j),x);var $=f1.join(y,"package.json");V($,function(L,l){if(!l)return E(f1.dirname(j),x);F(K,$,function(v,s){if(v)x(v);var o=s;if(o&&z.packageFilter)o=z.packageFilter(o,$);x(null,o,j)})})})}function R(j,x,k){var y=k,$=x;if(typeof $==="function")y=$,$=z.package;k6(G,j,z,function(L,l){if(L)return y(L);var v=f1.join(l,"package.json");V(v,function(s,o){if(s)return y(s);if(!o)return u(f1.join(j,"index"),$,y);F(K,v,function(Q1,N1){if(Q1)return y(Q1);var O1=N1;if(O1&&z.packageFilter)O1=z.packageFilter(O1,v);if(O1&&O1.main){if(typeof O1.main!=="string"){var w1=TypeError("package “"+O1.name+"” `main` must be a string");return w1.code="INVALID_PACKAGE_MAIN",y(w1)}if(O1.main==="."||O1.main==="./")O1.main="index";u(f1.resolve(j,O1.main),O1,function(a,m,M1){if(a)return y(a);if(m)return y(null,m,M1);if(!M1)return u(f1.join(j,"index"),M1,y);var p=f1.resolve(j,M1.main);R(p,M1,function(D,b,_){if(D)return y(D);if(b)return y(null,b,_);u(f1.join(j,"index"),_,y)})});return}u(f1.join(j,"/index"),O1,y)})})})}function P(j,x){if(x.length===0)return j(null,void 0);var k=x[0];W(f1.dirname(k),y);function y(l,v){if(l)return j(l);if(!v)return P(j,x.slice(1));u(k,z.package,$)}function $(l,v,s){if(l)return j(l);if(v)return j(null,v,s);R(k,z.package,L)}function L(l,v,s){if(l)return j(l);if(v)return j(null,v,s);P(j,x.slice(1))}}function I(j,x,k){var y=function(){return nK(j,x,z)};P(k,B?B(j,x,y,z):y())}}});var n3=U1((YC,aK)=>{aK.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":">= 23.4",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var o3=U1((zC,r3)=>{var sK=x6(),a3=n3(),s3={};for(v6 in a3)if(Object.prototype.hasOwnProperty.call(a3,v6))s3[v6]=sK(v6);var v6;r3.exports=s3});var e3=U1((XC,t3)=>{var rK=x6();t3.exports=function(q){return rK(q)}});var JJ=U1((VC,qJ)=>{var oK=x6(),w8=a1("fs"),t1=a1("path"),tK=a7(),eK=s7(),ZG=t7(),qG=e7(),JG=process.platform!=="win32"&&w8.realpathSync&&typeof w8.realpathSync.native==="function"?w8.realpathSync.native:w8.realpathSync,ZJ=tK(),QG=function(){return[t1.join(ZJ,".node_modules"),t1.join(ZJ,".node_libraries")]},YG=function(q){try{var J=w8.statSync(q,{throwIfNoEntry:!1})}catch(Q){if(Q&&(Q.code==="ENOENT"||Q.code==="ENOTDIR"))return!1;throw Q}return!!J&&(J.isFile()||J.isFIFO())},zG=function(q){try{var J=w8.statSync(q,{throwIfNoEntry:!1})}catch(Q){if(Q&&(Q.code==="ENOENT"||Q.code==="ENOTDIR"))return!1;throw Q}return!!J&&J.isDirectory()},XG=function(q){try{return JG(q)}catch(J){if(J.code!=="ENOENT")throw J}return q},f6=function(q,J,Q){if(Q&&Q.preserveSymlinks===!1)return q(J);return J},VG=function(q,J){var Q=q(J);try{var Y=JSON.parse(Q);return Y}catch(z){}},WG=function(q,J,Q){var Y=ZG(J,Q,q);for(var z=0;z<Y.length;z++)Y[z]=t1.join(Y[z],q);return Y};qJ.exports=function(q,J){if(typeof q!=="string")throw TypeError("Path must be a string.");var Q=qG(q,J),Y=Q.isFile||YG,z=Q.readFileSync||w8.readFileSync,X=Q.isDirectory||zG,V=Q.realpathSync||XG,W=Q.readPackageSync||VG;if(Q.readFileSync&&Q.readPackageSync)throw TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var K=Q.packageIterator,G=Q.extensions||[".js"],F=Q.includeCoreModules!==!1,M=Q.basedir||t1.dirname(eK()),B=Q.filename||M;Q.paths=Q.paths||QG();var H=f6(V,t1.resolve(M),Q);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(q)){var N=t1.resolve(H,q);if(q==="."||q===".."||q.slice(-1)==="/")N+="/";var C=T(N)||f(N);if(C)return f6(V,C,Q)}else if(F&&oK(q))return q;else{var A=u(q,H);if(A)return f6(V,A,Q)}var S=Error("Cannot find module '"+q+"' from '"+B+"'");throw S.code="MODULE_NOT_FOUND",S;function T(E){var R=g(t1.dirname(E));if(R&&R.dir&&R.pkg&&Q.pathFilter){var P=t1.relative(R.dir,E),I=Q.pathFilter(R.pkg,E,P);if(I)E=t1.resolve(R.dir,I)}if(Y(E))return E;for(var j=0;j<G.length;j++){var x=E+G[j];if(Y(x))return x}}function g(E){if(E===""||E==="/")return;if(process.platform==="win32"&&/^\w:[/\\]*$/.test(E))return;if(/[/\\]node_modules[/\\]*$/.test(E))return;var R=t1.join(f6(V,E,Q),"package.json");if(!Y(R))return g(t1.dirname(E));var P=W(z,R);if(P&&Q.packageFilter)P=Q.packageFilter(P,E);return{pkg:P,dir:E}}function f(E){var R=t1.join(f6(V,E,Q),"/package.json");if(Y(R)){try{var P=W(z,R)}catch(k){}if(P&&Q.packageFilter)P=Q.packageFilter(P,E);if(P&&P.main){if(typeof P.main!=="string"){var I=TypeError("package “"+P.name+"” `main` must be a string");throw I.code="INVALID_PACKAGE_MAIN",I}if(P.main==="."||P.main==="./")P.main="index";try{var j=T(t1.resolve(E,P.main));if(j)return j;var x=f(t1.resolve(E,P.main));if(x)return x}catch(k){}}}return T(t1.join(E,"/index"))}function u(E,R){var P=function(){return WG(E,R,Q)},I=K?K(E,R,P,Q):P();for(var j=0;j<I.length;j++){var x=I[j];if(X(t1.dirname(x))){var k=T(x);if(k)return k;var y=f(x);if(y)return y}}}}});var YJ=U1((WC,QJ)=>{var a0=i3();a0.core=o3();a0.isCore=e3();a0.sync=JJ();QJ.exports=a0});var h6=U1((KC,XJ)=>{var KG=a1("path"),zJ={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},GG={...zJ,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"},$G={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};XJ.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:$G,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:KG.sep,extglobChars(Z){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${Z.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(Z){return Z===!0?GG:zJ}}});var s0=U1((LG)=>{var UG=a1("path"),jG=process.platform==="win32",{REGEX_BACKSLASH:BG,REGEX_REMOVE_BACKSLASH:HG,REGEX_SPECIAL_CHARS:MG,REGEX_SPECIAL_CHARS_GLOBAL:FG}=h6();LG.isObject=(Z)=>Z!==null&&typeof Z==="object"&&!Array.isArray(Z);LG.hasRegexChars=(Z)=>MG.test(Z);LG.isRegexChar=(Z)=>Z.length===1&&LG.hasRegexChars(Z);LG.escapeRegex=(Z)=>Z.replace(FG,"\\$1");LG.toPosixSlashes=(Z)=>Z.replace(BG,"/");LG.removeBackslashes=(Z)=>{return Z.replace(HG,(q)=>{return q==="\\"?"":q})};LG.supportsLookbehinds=()=>{let Z=process.version.slice(1).split(".").map(Number);if(Z.length===3&&Z[0]>=9||Z[0]===8&&Z[1]>=10)return!0;return!1};LG.isWindows=(Z)=>{if(Z&&typeof Z.windows==="boolean")return Z.windows;return jG===!0||UG.sep==="\\"};LG.escapeLast=(Z,q,J)=>{let Q=Z.lastIndexOf(q,J);if(Q===-1)return Z;if(Z[Q-1]==="\\")return LG.escapeLast(Z,q,Q-1);return`${Z.slice(0,Q)}\\${Z.slice(Q)}`};LG.removePrefix=(Z,q={})=>{let J=Z;if(J.startsWith("./"))J=J.slice(2),q.prefix="./";return J};LG.wrapOutput=(Z,q={},J={})=>{let Q=J.contains?"":"^",Y=J.contains?"":"$",z=`${Q}(?:${Z})${Y}`;if(q.negated===!0)z=`(?:^(?!${z}).*$)`;return z}});var MJ=U1(($C,HJ)=>{var KJ=s0(),{CHAR_ASTERISK:Z9,CHAR_AT:AG,CHAR_BACKWARD_SLASH:g6,CHAR_COMMA:PG,CHAR_DOT:q9,CHAR_EXCLAMATION_MARK:J9,CHAR_FORWARD_SLASH:BJ,CHAR_LEFT_CURLY_BRACE:Q9,CHAR_LEFT_PARENTHESES:Y9,CHAR_LEFT_SQUARE_BRACKET:SG,CHAR_PLUS:yG,CHAR_QUESTION_MARK:GJ,CHAR_RIGHT_CURLY_BRACE:EG,CHAR_RIGHT_PARENTHESES:$J,CHAR_RIGHT_SQUARE_BRACKET:bG}=h6(),UJ=(Z)=>{return Z===BJ||Z===g6},jJ=(Z)=>{if(Z.isPrefix!==!0)Z.depth=Z.isGlobstar?1/0:1},xG=(Z,q)=>{let J=q||{},Q=Z.length-1,Y=J.parts===!0||J.scanToEnd===!0,z=[],X=[],V=[],W=Z,K=-1,G=0,F=0,M=!1,B=!1,H=!1,N=!1,C=!1,A=!1,S=!1,T=!1,g=!1,f=!1,u=0,E,R,P={value:"",depth:0,isGlob:!1},I=()=>K>=Q,j=()=>W.charCodeAt(K+1),x=()=>{return E=R,W.charCodeAt(++K)};while(K<Q){R=x();let l;if(R===g6){if(S=P.backslashes=!0,R=x(),R===Q9)A=!0;continue}if(A===!0||R===Q9){u++;while(I()!==!0&&(R=x())){if(R===g6){S=P.backslashes=!0,x();continue}if(R===Q9){u++;continue}if(A!==!0&&R===q9&&(R=x())===q9){if(M=P.isBrace=!0,H=P.isGlob=!0,f=!0,Y===!0)continue;break}if(A!==!0&&R===PG){if(M=P.isBrace=!0,H=P.isGlob=!0,f=!0,Y===!0)continue;break}if(R===EG){if(u--,u===0){A=!1,M=P.isBrace=!0,f=!0;break}}}if(Y===!0)continue;break}if(R===BJ){if(z.push(K),X.push(P),P={value:"",depth:0,isGlob:!1},f===!0)continue;if(E===q9&&K===G+1){G+=2;continue}F=K+1;continue}if(J.noext!==!0){if((R===yG||R===AG||R===Z9||R===GJ||R===J9)===!0&&j()===Y9){if(H=P.isGlob=!0,N=P.isExtglob=!0,f=!0,R===J9&&K===G)g=!0;if(Y===!0){while(I()!==!0&&(R=x())){if(R===g6){S=P.backslashes=!0,R=x();continue}if(R===$J){H=P.isGlob=!0,f=!0;break}}continue}break}}if(R===Z9){if(E===Z9)C=P.isGlobstar=!0;if(H=P.isGlob=!0,f=!0,Y===!0)continue;break}if(R===GJ){if(H=P.isGlob=!0,f=!0,Y===!0)continue;break}if(R===SG){while(I()!==!0&&(l=x())){if(l===g6){S=P.backslashes=!0,x();continue}if(l===bG){B=P.isBracket=!0,H=P.isGlob=!0,f=!0;break}}if(Y===!0)continue;break}if(J.nonegate!==!0&&R===J9&&K===G){T=P.negated=!0,G++;continue}if(J.noparen!==!0&&R===Y9){if(H=P.isGlob=!0,Y===!0){while(I()!==!0&&(R=x())){if(R===Y9){S=P.backslashes=!0,R=x();continue}if(R===$J){f=!0;break}}continue}break}if(H===!0){if(f=!0,Y===!0)continue;break}}if(J.noext===!0)N=!1,H=!1;let k=W,y="",$="";if(G>0)y=W.slice(0,G),W=W.slice(G),F-=G;if(k&&H===!0&&F>0)k=W.slice(0,F),$=W.slice(F);else if(H===!0)k="",$=W;else k=W;if(k&&k!==""&&k!=="/"&&k!==W){if(UJ(k.charCodeAt(k.length-1)))k=k.slice(0,-1)}if(J.unescape===!0){if($)$=KJ.removeBackslashes($);if(k&&S===!0)k=KJ.removeBackslashes(k)}let L={prefix:y,input:Z,start:G,base:k,glob:$,isBrace:M,isBracket:B,isGlob:H,isExtglob:N,isGlobstar:C,negated:T,negatedExtglob:g};if(J.tokens===!0){if(L.maxDepth=0,!UJ(R))X.push(P);L.tokens=X}if(J.parts===!0||J.tokens===!0){let l;for(let v=0;v<z.length;v++){let s=l?l+1:G,o=z[v],Q1=Z.slice(s,o);if(J.tokens){if(v===0&&G!==0)X[v].isPrefix=!0,X[v].value=y;else X[v].value=Q1;jJ(X[v]),L.maxDepth+=X[v].depth}if(v!==0||Q1!=="")V.push(Q1);l=o}if(l&&l+1<Z.length){let v=Z.slice(l+1);if(V.push(v),J.tokens)X[X.length-1].value=v,jJ(X[X.length-1]),L.maxDepth+=X[X.length-1].depth}L.slashes=z,L.parts=V}return L};HJ.exports=xG});var NJ=U1((UC,LJ)=>{var r0=h6(),K5=s0(),{MAX_LENGTH:o0,POSIX_REGEX_SOURCE:kG,REGEX_NON_SPECIAL_CHARS:vG,REGEX_SPECIAL_CHARS_BACKREF:fG,REPLACEMENTS:FJ}=r0,hG=(Z,q)=>{if(typeof q.expandRange==="function")return q.expandRange(...Z,q);Z.sort();let J=`[${Z.join("-")}]`;try{new RegExp(J)}catch(Q){return Z.map((Y)=>K5.escapeRegex(Y)).join("..")}return J},g8=(Z,q)=>{return`Missing ${Z}: "${q}" - use "\\\\${q}" to match literal characters`},z9=(Z,q)=>{if(typeof Z!=="string")throw TypeError("Expected a string");Z=FJ[Z]||Z;let J={...q},Q=typeof J.maxLength==="number"?Math.min(o0,J.maxLength):o0,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);let z={type:"bos",value:"",output:J.prepend||""},X=[z],V=J.capture?"":"?:",W=K5.isWindows(q),K=r0.globChars(W),G=r0.extglobChars(K),{DOT_LITERAL:F,PLUS_LITERAL:M,SLASH_LITERAL:B,ONE_CHAR:H,DOTS_SLASH:N,NO_DOT:C,NO_DOT_SLASH:A,NO_DOTS_SLASH:S,QMARK:T,QMARK_NO_DOT:g,STAR:f,START_ANCHOR:u}=K,E=(D)=>{return`(${V}(?:(?!${u}${D.dot?N:F}).)*?)`},R=J.dot?"":C,P=J.dot?T:g,I=J.bash===!0?E(J):f;if(J.capture)I=`(${I})`;if(typeof J.noext==="boolean")J.noextglob=J.noext;let j={input:Z,index:-1,start:0,dot:J.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:X};Z=K5.removePrefix(Z,j),Y=Z.length;let x=[],k=[],y=[],$=z,L,l=()=>j.index===Y-1,v=j.peek=(D=1)=>Z[j.index+D],s=j.advance=()=>Z[++j.index]||"",o=()=>Z.slice(j.index+1),Q1=(D="",b=0)=>{j.consumed+=D,j.index+=b},N1=(D)=>{j.output+=D.output!=null?D.output:D.value,Q1(D.value)},O1=()=>{let D=1;while(v()==="!"&&(v(2)!=="("||v(3)==="?"))s(),j.start++,D++;if(D%2===0)return!1;return j.negated=!0,j.start++,!0},w1=(D)=>{j[D]++,y.push(D)},a=(D)=>{j[D]--,y.pop()},m=(D)=>{if($.type==="globstar"){let b=j.braces>0&&(D.type==="comma"||D.type==="brace"),_=D.extglob===!0||x.length&&(D.type==="pipe"||D.type==="paren");if(D.type!=="slash"&&D.type!=="paren"&&!b&&!_)j.output=j.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=I,j.output+=$.output}if(x.length&&D.type!=="paren")x[x.length-1].inner+=D.value;if(D.value||D.output)N1(D);if($&&$.type==="text"&&D.type==="text"){$.value+=D.value,$.output=($.output||"")+D.value;return}D.prev=$,X.push(D),$=D},M1=(D,b)=>{let _={...G[b],conditions:1,inner:""};_.prev=$,_.parens=j.parens,_.output=j.output;let h=(J.capture?"(":"")+_.open;w1("parens"),m({type:D,value:b,output:j.output?"":H}),m({type:"paren",extglob:!0,value:s(),output:h}),x.push(_)},p=(D)=>{let b=D.close+(J.capture?")":""),_;if(D.type==="negate"){let h=I;if(D.inner&&D.inner.length>1&&D.inner.includes("/"))h=E(J);if(h!==I||l()||/^\)+$/.test(o()))b=D.close=`)$))${h}`;if(D.inner.includes("*")&&(_=o())&&/^\.[^\\/.]+$/.test(_)){let c=z9(_,{...q,fastpaths:!1}).output;b=D.close=`)${c})${h})`}if(D.prev.type==="bos")j.negatedExtglob=!0}m({type:"paren",extglob:!0,value:L,output:b}),a("parens")};if(J.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let D=!1,b=Z.replace(fG,(_,h,c,r,e,p1)=>{if(r==="\\")return D=!0,_;if(r==="?"){if(h)return h+r+(e?T.repeat(e.length):"");if(p1===0)return P+(e?T.repeat(e.length):"");return T.repeat(c.length)}if(r===".")return F.repeat(c.length);if(r==="*"){if(h)return h+r+(e?I:"");return I}return h?_:`\\${_}`});if(D===!0)if(J.unescape===!0)b=b.replace(/\\/g,"");else b=b.replace(/\\+/g,(_)=>{return _.length%2===0?"\\\\":_?"\\":""});if(b===Z&&J.contains===!0)return j.output=Z,j;return j.output=K5.wrapOutput(b,j,q),j}while(!l()){if(L=s(),L==="\x00")continue;if(L==="\\"){let _=v();if(_==="/"&&J.bash!==!0)continue;if(_==="."||_===";")continue;if(!_){L+="\\",m({type:"text",value:L});continue}let h=/^\\+/.exec(o()),c=0;if(h&&h[0].length>2){if(c=h[0].length,j.index+=c,c%2!==0)L+="\\"}if(J.unescape===!0)L=s();else L+=s();if(j.brackets===0){m({type:"text",value:L});continue}}if(j.brackets>0&&(L!=="]"||$.value==="["||$.value==="[^")){if(J.posix!==!1&&L===":"){let _=$.value.slice(1);if(_.includes("[")){if($.posix=!0,_.includes(":")){let h=$.value.lastIndexOf("["),c=$.value.slice(0,h),r=$.value.slice(h+2),e=kG[r];if(e){if($.value=c+e,j.backtrack=!0,s(),!z.output&&X.indexOf($)===1)z.output=H;continue}}}}if(L==="["&&v()!==":"||L==="-"&&v()==="]")L=`\\${L}`;if(L==="]"&&($.value==="["||$.value==="[^"))L=`\\${L}`;if(J.posix===!0&&L==="!"&&$.value==="[")L="^";$.value+=L,N1({value:L});continue}if(j.quotes===1&&L!=='"'){L=K5.escapeRegex(L),$.value+=L,N1({value:L});continue}if(L==='"'){if(j.quotes=j.quotes===1?0:1,J.keepQuotes===!0)m({type:"text",value:L});continue}if(L==="("){w1("parens"),m({type:"paren",value:L});continue}if(L===")"){if(j.parens===0&&J.strictBrackets===!0)throw SyntaxError(g8("opening","("));let _=x[x.length-1];if(_&&j.parens===_.parens+1){p(x.pop());continue}m({type:"paren",value:L,output:j.parens?")":"\\)"}),a("parens");continue}if(L==="["){if(J.nobracket===!0||!o().includes("]")){if(J.nobracket!==!0&&J.strictBrackets===!0)throw SyntaxError(g8("closing","]"));L=`\\${L}`}else w1("brackets");m({type:"bracket",value:L});continue}if(L==="]"){if(J.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){m({type:"text",value:L,output:`\\${L}`});continue}if(j.brackets===0){if(J.strictBrackets===!0)throw SyntaxError(g8("opening","["));m({type:"text",value:L,output:`\\${L}`});continue}a("brackets");let _=$.value.slice(1);if($.posix!==!0&&_[0]==="^"&&!_.includes("/"))L=`/${L}`;if($.value+=L,N1({value:L}),J.literalBrackets===!1||K5.hasRegexChars(_))continue;let h=K5.escapeRegex($.value);if(j.output=j.output.slice(0,-$.value.length),J.literalBrackets===!0){j.output+=h,$.value=h;continue}$.value=`(${V}${h}|${$.value})`,j.output+=$.value;continue}if(L==="{"&&J.nobrace!==!0){w1("braces");let _={type:"brace",value:L,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};k.push(_),m(_);continue}if(L==="}"){let _=k[k.length-1];if(J.nobrace===!0||!_){m({type:"text",value:L,output:L});continue}let h=")";if(_.dots===!0){let c=X.slice(),r=[];for(let e=c.length-1;e>=0;e--){if(X.pop(),c[e].type==="brace")break;if(c[e].type!=="dots")r.unshift(c[e].value)}h=hG(r,J),j.backtrack=!0}if(_.comma!==!0&&_.dots!==!0){let c=j.output.slice(0,_.outputIndex),r=j.tokens.slice(_.tokensIndex);_.value=_.output="\\{",L=h="\\}",j.output=c;for(let e of r)j.output+=e.output||e.value}m({type:"brace",value:L,output:h}),a("braces"),k.pop();continue}if(L==="|"){if(x.length>0)x[x.length-1].conditions++;m({type:"text",value:L});continue}if(L===","){let _=L,h=k[k.length-1];if(h&&y[y.length-1]==="braces")h.comma=!0,_="|";m({type:"comma",value:L,output:_});continue}if(L==="/"){if($.type==="dot"&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",X.pop(),$=z;continue}m({type:"slash",value:L,output:B});continue}if(L==="."){if(j.braces>0&&$.type==="dot"){if($.value===".")$.output=F;let _=k[k.length-1];$.type="dots",$.output+=L,$.value+=L,_.dots=!0;continue}if(j.braces+j.parens===0&&$.type!=="bos"&&$.type!=="slash"){m({type:"text",value:L,output:F});continue}m({type:"dot",value:L,output:F});continue}if(L==="?"){if(!($&&$.value==="(")&&J.noextglob!==!0&&v()==="("&&v(2)!=="?"){M1("qmark",L);continue}if($&&$.type==="paren"){let h=v(),c=L;if(h==="<"&&!K5.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if($.value==="("&&!/[!=<:]/.test(h)||h==="<"&&!/<([!=]|\w+>)/.test(o()))c=`\\${L}`;m({type:"text",value:L,output:c});continue}if(J.dot!==!0&&($.type==="slash"||$.type==="bos")){m({type:"qmark",value:L,output:g});continue}m({type:"qmark",value:L,output:T});continue}if(L==="!"){if(J.noextglob!==!0&&v()==="("){if(v(2)!=="?"||!/[!=<:]/.test(v(3))){M1("negate",L);continue}}if(J.nonegate!==!0&&j.index===0){O1();continue}}if(L==="+"){if(J.noextglob!==!0&&v()==="("&&v(2)!=="?"){M1("plus",L);continue}if($&&$.value==="("||J.regex===!1){m({type:"plus",value:L,output:M});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||j.parens>0){m({type:"plus",value:L});continue}m({type:"plus",value:M});continue}if(L==="@"){if(J.noextglob!==!0&&v()==="("&&v(2)!=="?"){m({type:"at",extglob:!0,value:L,output:""});continue}m({type:"text",value:L});continue}if(L!=="*"){if(L==="$"||L==="^")L=`\\${L}`;let _=vG.exec(o());if(_)L+=_[0],j.index+=_[0].length;m({type:"text",value:L});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=L,$.output=I,j.backtrack=!0,j.globstar=!0,Q1(L);continue}let D=o();if(J.noextglob!==!0&&/^\([^?]/.test(D)){M1("star",L);continue}if($.type==="star"){if(J.noglobstar===!0){Q1(L);continue}let _=$.prev,h=_.prev,c=_.type==="slash"||_.type==="bos",r=h&&(h.type==="star"||h.type==="globstar");if(J.bash===!0&&(!c||D[0]&&D[0]!=="/")){m({type:"star",value:L,output:""});continue}let e=j.braces>0&&(_.type==="comma"||_.type==="brace"),p1=x.length&&(_.type==="pipe"||_.type==="paren");if(!c&&_.type!=="paren"&&!e&&!p1){m({type:"star",value:L,output:""});continue}while(D.slice(0,3)==="/**"){let g1=Z[j.index+4];if(g1&&g1!=="/")break;D=D.slice(3),Q1("/**",3)}if(_.type==="bos"&&l()){$.type="globstar",$.value+=L,$.output=E(J),j.output=$.output,j.globstar=!0,Q1(L);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&!r&&l()){j.output=j.output.slice(0,-(_.output+$.output).length),_.output=`(?:${_.output}`,$.type="globstar",$.output=E(J)+(J.strictSlashes?")":"|$)"),$.value+=L,j.globstar=!0,j.output+=_.output+$.output,Q1(L);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&D[0]==="/"){let g1=D[1]!==void 0?"|$":"";j.output=j.output.slice(0,-(_.output+$.output).length),_.output=`(?:${_.output}`,$.type="globstar",$.output=`${E(J)}${B}|${B}${g1})`,$.value+=L,j.output+=_.output+$.output,j.globstar=!0,Q1(L+s()),m({type:"slash",value:"/",output:""});continue}if(_.type==="bos"&&D[0]==="/"){$.type="globstar",$.value+=L,$.output=`(?:^|${B}|${E(J)}${B})`,j.output=$.output,j.globstar=!0,Q1(L+s()),m({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-$.output.length),$.type="globstar",$.output=E(J),$.value+=L,j.output+=$.output,j.globstar=!0,Q1(L);continue}let b={type:"star",value:L,output:I};if(J.bash===!0){if(b.output=".*?",$.type==="bos"||$.type==="slash")b.output=R+b.output;m(b);continue}if($&&($.type==="bracket"||$.type==="paren")&&J.regex===!0){b.output=L,m(b);continue}if(j.index===j.start||$.type==="slash"||$.type==="dot"){if($.type==="dot")j.output+=A,$.output+=A;else if(J.dot===!0)j.output+=S,$.output+=S;else j.output+=R,$.output+=R;if(v()!=="*")j.output+=H,$.output+=H}m(b)}while(j.brackets>0){if(J.strictBrackets===!0)throw SyntaxError(g8("closing","]"));j.output=K5.escapeLast(j.output,"["),a("brackets")}while(j.parens>0){if(J.strictBrackets===!0)throw SyntaxError(g8("closing",")"));j.output=K5.escapeLast(j.output,"("),a("parens")}while(j.braces>0){if(J.strictBrackets===!0)throw SyntaxError(g8("closing","}"));j.output=K5.escapeLast(j.output,"{"),a("braces")}if(J.strictSlashes!==!0&&($.type==="star"||$.type==="bracket"))m({type:"maybe_slash",value:"",output:`${B}?`});if(j.backtrack===!0){j.output="";for(let D of j.tokens)if(j.output+=D.output!=null?D.output:D.value,D.suffix)j.output+=D.suffix}return j};z9.fastpaths=(Z,q)=>{let J={...q},Q=typeof J.maxLength==="number"?Math.min(o0,J.maxLength):o0,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);Z=FJ[Z]||Z;let z=K5.isWindows(q),{DOT_LITERAL:X,SLASH_LITERAL:V,ONE_CHAR:W,DOTS_SLASH:K,NO_DOT:G,NO_DOTS:F,NO_DOTS_SLASH:M,STAR:B,START_ANCHOR:H}=r0.globChars(z),N=J.dot?F:G,C=J.dot?M:G,A=J.capture?"":"?:",S={negated:!1,prefix:""},T=J.bash===!0?".*?":B;if(J.capture)T=`(${T})`;let g=(R)=>{if(R.noglobstar===!0)return T;return`(${A}(?:(?!${H}${R.dot?K:X}).)*?)`},f=(R)=>{switch(R){case"*":return`${N}${W}${T}`;case".*":return`${X}${W}${T}`;case"*.*":return`${N}${T}${X}${W}${T}`;case"*/*":return`${N}${T}${V}${W}${C}${T}`;case"**":return N+g(J);case"**/*":return`(?:${N}${g(J)}${V})?${C}${W}${T}`;case"**/*.*":return`(?:${N}${g(J)}${V})?${C}${T}${X}${W}${T}`;case"**/.*":return`(?:${N}${g(J)}${V})?${X}${W}${T}`;default:{let P=/^(.*?)\.(\w+)$/.exec(R);if(!P)return;let I=f(P[1]);if(!I)return;return I+X+P[2]}}},u=K5.removePrefix(Z,S),E=f(u);if(E&&J.strictSlashes!==!0)E+=`${V}?`;return E};LJ.exports=z9});var OJ=U1((jC,wJ)=>{var gG=a1("path"),mG=MJ(),X9=NJ(),V9=s0(),uG=h6(),dG=(Z)=>Z&&typeof Z==="object"&&!Array.isArray(Z),b1=(Z,q,J=!1)=>{if(Array.isArray(Z)){let G=Z.map((M)=>b1(M,q,J));return(M)=>{for(let B of G){let H=B(M);if(H)return H}return!1}}let Q=dG(Z)&&Z.tokens&&Z.input;if(Z===""||typeof Z!=="string"&&!Q)throw TypeError("Expected pattern to be a non-empty string");let Y=q||{},z=V9.isWindows(q),X=Q?b1.compileRe(Z,q):b1.makeRe(Z,q,!1,!0),V=X.state;delete X.state;let W=()=>!1;if(Y.ignore){let G={...q,ignore:null,onMatch:null,onResult:null};W=b1(Y.ignore,G,J)}let K=(G,F=!1)=>{let{isMatch:M,match:B,output:H}=b1.test(G,X,q,{glob:Z,posix:z}),N={glob:Z,state:V,regex:X,posix:z,input:G,output:H,match:B,isMatch:M};if(typeof Y.onResult==="function")Y.onResult(N);if(M===!1)return N.isMatch=!1,F?N:!1;if(W(G)){if(typeof Y.onIgnore==="function")Y.onIgnore(N);return N.isMatch=!1,F?N:!1}if(typeof Y.onMatch==="function")Y.onMatch(N);return F?N:!0};if(J)K.state=V;return K};b1.test=(Z,q,J,{glob:Q,posix:Y}={})=>{if(typeof Z!=="string")throw TypeError("Expected input to be a string");if(Z==="")return{isMatch:!1,output:""};let z=J||{},X=z.format||(Y?V9.toPosixSlashes:null),V=Z===Q,W=V&&X?X(Z):Z;if(V===!1)W=X?X(Z):Z,V=W===Q;if(V===!1||z.capture===!0)if(z.matchBase===!0||z.basename===!0)V=b1.matchBase(Z,q,J,Y);else V=q.exec(W);return{isMatch:Boolean(V),match:V,output:W}};b1.matchBase=(Z,q,J,Q=V9.isWindows(J))=>{return(q instanceof RegExp?q:b1.makeRe(q,J)).test(gG.basename(Z))};b1.isMatch=(Z,q,J)=>b1(q,J)(Z);b1.parse=(Z,q)=>{if(Array.isArray(Z))return Z.map((J)=>b1.parse(J,q));return X9(Z,{...q,fastpaths:!1})};b1.scan=(Z,q)=>mG(Z,q);b1.compileRe=(Z,q,J=!1,Q=!1)=>{if(J===!0)return Z.output;let Y=q||{},z=Y.contains?"":"^",X=Y.contains?"":"$",V=`${z}(?:${Z.output})${X}`;if(Z&&Z.negated===!0)V=`^(?!${V}).*$`;let W=b1.toRegex(V,q);if(Q===!0)W.state=Z;return W};b1.makeRe=(Z,q={},J=!1,Q=!1)=>{if(!Z||typeof Z!=="string")throw TypeError("Expected a non-empty string");let Y={negated:!1,fastpaths:!0};if(q.fastpaths!==!1&&(Z[0]==="."||Z[0]==="*"))Y.output=X9.fastpaths(Z,q);if(!Y.output)Y=X9(Z,q);return b1.compileRe(Y,q,J,Q)};b1.toRegex=(Z,q)=>{try{let J=q||{};return new RegExp(Z,J.flags||(J.nocase?"i":""))}catch(J){if(q&&q.debug===!0)throw J;return/$^/}};b1.constants=uG;wJ.exports=b1});import VZ,{resolve as $5,basename as z8,extname as J8,dirname as x5,relative as WZ,win32 as IC,posix as DC,isAbsolute as TC}from"path";import KZ from"process";import{performance as tQ}from"perf_hooks";import{createHash as M$}from"crypto";import{promises as D8}from"fs";import{EventEmitter as F$}from"events";function L$(Z){var q=[],J=[],Q=[0,0,0,0,0],Y=0;for(var z=0,X=0,V=0;z<Z.length;z++){var W=Z.charCodeAt(z);if(W===44)F9(J,Q,Y),Y=0;else if(W===59)F9(J,Q,Y),Y=0,q.push(J),J=[],Q[0]=0;else{var K=eQ[W];if(K===void 0)throw Error("Invalid character ("+String.fromCharCode(W)+")");var G=K&32;if(K&=31,V+=K<<X,G)X+=5;else{var F=V&1;if(V>>>=1,F)V=V===0?-2147483648:-V;Q[Y]+=V,Y++,V=X=0}}}return F9(J,Q,Y),q.push(J),q}function F9(Z,q,J){if(J===4)Z.push([q[0],q[1],q[2],q[3]]);else if(J===5)Z.push([q[0],q[1],q[2],q[3],q[4]]);else if(J===1)Z.push([q[0]])}function N$(Z){var q=0,J=0,Q=0,Y=0,z="";for(var X=0;X<Z.length;X++){var V=Z[X];if(X>0)z+=";";if(V.length===0)continue;var W=0,K=[];for(var G=0,F=V;G<F.length;G++){var M=F[G],B=u6(M[0]-W);if(W=M[0],M.length>1)B+=u6(M[1]-q)+u6(M[2]-J)+u6(M[3]-Q),q=M[1],J=M[2],Q=M[3];if(M.length===5)B+=u6(M[4]-Y),Y=M[4];K.push(B)}z+=K.join(",")}return z}function u6(Z){var q="";Z=Z<0?-Z<<1|1:Z<<1;do{var J=Z&31;if(Z>>>=5,Z>0)J|=32;q+=f9[J]}while(Z>0);return q}class L4{constructor(Z){this.bits=Z instanceof L4?Z.bits.slice():[]}add(Z){this.bits[Z>>5]|=1<<(Z&31)}has(Z){return!!(this.bits[Z>>5]&1<<(Z&31))}}class Z0{constructor(Z,q,J){this.start=Z,this.end=q,this.original=J,this.intro="",this.outro="",this.content=J,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})}appendLeft(Z){this.outro+=Z}appendRight(Z){this.intro=this.intro+Z}clone(){let Z=new Z0(this.start,this.end,this.original);return Z.intro=this.intro,Z.outro=this.outro,Z.content=this.content,Z.storeName=this.storeName,Z.edited=this.edited,Z}contains(Z){return this.start<Z&&Z<this.end}eachNext(Z){let q=this;while(q)Z(q),q=q.next}eachPrevious(Z){let q=this;while(q)Z(q),q=q.previous}edit(Z,q,J){if(this.content=Z,!J)this.intro="",this.outro="";return this.storeName=q,this.edited=!0,this}prependLeft(Z){this.outro=Z+this.outro}prependRight(Z){this.intro=Z+this.intro}split(Z){let q=Z-this.start,J=this.original.slice(0,q),Q=this.original.slice(q);this.original=J;let Y=new Z0(Z,this.end,Q);if(Y.outro=this.outro,this.outro="",this.end=Z,this.edited)Y.edit("",!1),this.content="";else this.content=J;if(Y.next=this.next,Y.next)Y.next.previous=Y;return Y.previous=this,this.next=Y,Y}toString(){return this.intro+this.content+this.outro}trimEnd(Z){if(this.outro=this.outro.replace(Z,""),this.outro.length)return!0;let q=this.content.replace(Z,"");if(q.length){if(q!==this.content)this.split(this.start+q.length).edit("",void 0,!0);return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(Z,""),this.intro.length)return!0}trimStart(Z){if(this.intro=this.intro.replace(Z,""),this.intro.length)return!0;let q=this.content.replace(Z,"");if(q.length){if(q!==this.content)this.split(this.end-q.length),this.edit("",void 0,!0);return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(Z,""),this.outro.length)return!0}}class B0{constructor(Z){this.version=3,this.file=Z.file,this.sources=Z.sources,this.sourcesContent=Z.sourcesContent,this.names=Z.names,this.mappings=N$(Z.mappings)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+h9(this.toString())}}function w$(Z){let q=Z.split(`
|
|
2
|
-
`),J
|
|
3
|
-
`),
|
|
4
|
-
`)Q.line+=1,Q.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,
|
|
5
|
-
`);if(
|
|
6
|
-
`}}else{
|
|
7
|
-
`)Y=!0;else if(K!=="\r"&&Y)if(Y=!1,
|
|
8
|
-
`,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}}addSource(Z){if(Z instanceof P8)return this.addSource({content:Z,filename:Z.filename,separator:this.separator});if(!
|
|
9
|
-
`;if(this.sources.forEach((
|
|
10
|
-
`}),this.intro)this.intro=Z+this.intro.replace(/^[^\n]/gm,(
|
|
11
|
-
`),
|
|
12
|
-
`),Y=Math.max(0,
|
|
13
|
-
${
|
|
14
|
-
`)}function
|
|
15
|
-
Either change the import in ${V1(Q)} to point directly to the exporting module or do not use "preserveModules" to ensure these modules end up in the same chunk.`,reexporter:J}}function f$(Z){return{code:K1.ASSET_NOT_FOUND,message:`Plugin error - Unable to set the source for unknown asset "${Z}".`}}function h$(Z){return{code:K1.ASSET_SOURCE_ALREADY_SET,message:`Unable to set the source for asset "${Z}", source already set.`}}function g$(Z){return{code:K1.ASSET_SOURCE_MISSING,message:`Plugin error creating asset "${Z}" - no asset source set.`}}function m$(Z){return{code:K1.BAD_LOADER,message:`Error loading ${V1(Z)}: plugin load hook should return a string, a { code, map } object, or nothing/null`}}function u$(Z){return{code:K1.DEPRECATED_FEATURE,...typeof Z==="string"?{message:Z}:Z}}function d$(Z){return{code:K1.FILE_NOT_FOUND,message:`Plugin error - Unable to get file name for unknown file "${Z}".`}}function l$(Z){return{code:K1.FILE_NAME_CONFLICT,message:`The emitted file "${Z}" overwrites a previously emitted file of the same name.`}}function c$(Z,q){return{code:K1.INPUT_HOOK_IN_OUTPUT_PLUGIN,message:`The "${q}" hook used by the output plugin ${Z} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}}function p$(Z,q,J){return{code:K1.INVALID_CHUNK,message:`Cannot assign ${V1(Z)} to the "${q}" chunk as it is already in the "${J}" chunk.`}}function i$(Z){return{code:K1.INVALID_EXPORT_OPTION,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${Z}"`,url:"https://rollupjs.org/guide/en/#outputexports"}}function oJ(Z,q,J){return{code:"INVALID_EXPORT_OPTION",message:`"${Z}" was specified for "output.exports", but entry module "${V1(J)}" has the following exports: ${q.join(", ")}`}}function n$(Z,q){return{code:K1.INVALID_EXTERNAL_ID,message:`'${Z}' is imported as an external by ${V1(q)}, but is already an existing non-external module id.`}}function h1(Z,q,J,Q){return{code:K1.INVALID_OPTION,message:`Invalid value ${Q!==void 0?`${JSON.stringify(Q)} `:""}for option "${Z}" - ${J}.`,url:`https://rollupjs.org/guide/en/#${q}`}}function a$(Z,q){return{code:K1.INVALID_PLUGIN_HOOK,hook:Z,message:`Error running plugin hook ${Z} for plugin ${q}, expected a string, a function hook or an object with a "handler" string or function.`,plugin:q}}function s$(Z,q){return{code:K1.INVALID_PLUGIN_HOOK,hook:Z,message:`Error running plugin hook ${Z} for plugin ${q}, expected a function hook or an object with a "handler" function.`,plugin:q}}function r$(){return{code:K1.INVALID_ROLLUP_PHASE,message:"Cannot call addWatchFile after the build has finished."}}function o$(){return{code:K1.INVALID_ROLLUP_PHASE,message:"Cannot emit chunks after module loading has finished."}}function tJ(Z,q,J){return{code:K1.MISSING_EXPORT,message:`'${Z}' is not exported by ${V1(J)}, imported by ${V1(q)}`,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"}}function t$(Z,q){return{code:K1.MISSING_IMPLICIT_DEPENDANT,message:`Module "${V1(Z)}" that should be implicitly loaded before "${V1(q)}" cannot be external.`}}function e$(Z,q){return{code:K1.MISSING_IMPLICIT_DEPENDANT,message:`Module "${V1(Z)}" that should be implicitly loaded before "${V1(q)}" could not be resolved.`}}function ZU(Z){let q=Array.from(Z.implicitlyLoadedBefore,(J)=>V1(J.id)).sort();return{code:K1.MISSING_IMPLICIT_DEPENDANT,message:`Module "${V1(Z.id)}" that should be implicitly loaded before ${X8(q)} is not included in the module graph. Either it was not imported by an included module or only via a tree-shaken dynamic import, or no imported bindings were used and it had otherwise no side-effects.`}}function qU(Z,q){return{code:K1.MIXED_EXPORTS,id:Z,message:`Entry module "${V1(Z)}" is using named and default exports together. Consumers of your bundle will have to use \`${q||"chunk"}["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/#outputexports"}}function JU(Z,q,J){return{code:K1.NAMESPACE_CONFLICT,message:`Conflicting namespaces: "${V1(q)}" re-exports "${Z}" from one of the modules ${X8(J.map((Q)=>V1(Q)))} (will be ignored)`,name:Z,reexporter:q,sources:J}}function QU(Z,q,J,Q){return{code:K1.AMBIGUOUS_EXTERNAL_NAMESPACES,message:`Ambiguous external namespace resolution: "${V1(q)}" re-exports "${Z}" from one of the external modules ${X8(Q.map((Y)=>V1(Y)))}, guessing "${V1(J)}".`,name:Z,reexporter:q,sources:Q}}function YU(Z){return{code:K1.NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE,message:`The plugin "${Z}" returned a "map" or "ast" without returning a "code". This will be ignored.`}}function zU(Z){let q=V1(Z);return{code:K1.PREFER_NAMED_EXPORTS,id:Z,message:`Entry module "${q}" is implicitly using "default" export mode, which means for CommonJS output that its default export is assigned to "module.exports". For many tools, such CommonJS output will not be interchangeable with the original ES module. If this is intended, explicitly set "output.exports" to either "auto" or "default", otherwise you might want to consider changing the signature of "${q}" to use named exports only.`,url:"https://rollupjs.org/guide/en/#outputexports"}}function XU(Z,q){return{code:K1.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT,id:Z,message:`Module "${V1(Z)}" that is marked with 'syntheticNamedExports: ${JSON.stringify(q)}' needs ${typeof q==="string"&&q!=="default"?`an explicit export named "${q}"`:"a default export"} that does not reexport an unresolved named export of the same module.`}}function eJ(Z,q,J){let Q=J?"reexport":"import";return{code:K1.UNEXPECTED_NAMED_IMPORT,id:Z,message:`The named export "${q}" was ${Q}ed from the external module ${V1(Z)} even though its interop type is "defaultOnly". Either remove or change this ${Q} or change the value of the "output.interop" option.`,url:"https://rollupjs.org/guide/en/#outputinterop"}}function VU(Z){return{code:K1.UNEXPECTED_NAMED_IMPORT,id:Z,message:`There was a namespace "*" reexport from the external module ${V1(Z)} even though its interop type is "defaultOnly". This will be ignored as namespace reexports only reexport named exports. If this is not intended, either remove or change this reexport or change the value of the "output.interop" option.`,url:"https://rollupjs.org/guide/en/#outputinterop"}}function WU(Z){return{code:K1.UNRESOLVED_ENTRY,message:`Entry module cannot be external (${V1(Z)}).`}}function KU(Z){return{code:K1.UNRESOLVED_ENTRY,message:`Could not resolve entry module (${V1(Z)}).`}}function GU(Z,q){return{code:K1.UNRESOLVED_IMPORT,message:`Could not resolve '${Z}' from ${V1(q)}`}}function $U(Z,q){return{code:K1.UNRESOLVED_IMPORT,importer:V1(q),message:`'${Z}' is imported by ${V1(q)}, but could not be resolved – treating it as an external dependency`,source:Z,url:"https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency"}}function UU(Z,q){return{code:K1.EXTERNAL_SYNTHETIC_EXPORTS,importer:V1(q),message:`External '${Z}' can not have 'syntheticNamedExports' enabled.`,source:Z}}function n5(Z){return{code:K1.VALIDATION_ERROR,message:Z}}function ZQ(){return{code:K1.ALREADY_CLOSED,message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}}function U5(Z,q,J){K6(Z,q,J.onwarn,J.strictDeprecations)}function K6(Z,q,J,Q){if(q||Q){let Y=u$(Z);if(Q)return Z1(Y);J(Y)}}function HU(Z){if(zY(Z))return!1;return!YY.test(Z)}function FZ(Z){if(Z=Z.replace(/-(\w)/g,(q,J)=>J.toUpperCase()).replace(YY,"_"),zY(Z))Z=`_${Z}`;return Z||"_"}class D1{constructor(Z,q,J,Q,Y){this.options=Z,this.id=q,this.renormalizeRenderPath=Y,this.declarations=new Map,this.defaultVariableName="",this.dynamicImporters=[],this.execIndex=1/0,this.exportedVariables=new Map,this.importers=[],this.mostCommonSuggestion=0,this.nameSuggestions=new Map,this.namespaceVariableName="",this.reexported=!1,this.renderPath=void 0,this.used=!1,this.variableName="",this.suggestedVariableName=FZ(q.split(/[\\/]/).pop());let{importers:z,dynamicImporters:X}=this,V=this.info={ast:null,code:null,dynamicallyImportedIdResolutions:i8,dynamicallyImportedIds:i8,get dynamicImporters(){return X.sort()},hasDefaultExport:null,get hasModuleSideEffects(){return U5("Accessing ModuleInfo.hasModuleSideEffects from plugins is deprecated. Please use ModuleInfo.moduleSideEffects instead.",!1,Z),V.moduleSideEffects},id:q,implicitlyLoadedAfterOneOf:i8,implicitlyLoadedBefore:i8,importedIdResolutions:i8,importedIds:i8,get importers(){return z.sort()},isEntry:!1,isExternal:!0,isIncluded:null,meta:Q,moduleSideEffects:J,syntheticNamedExports:!1};Object.defineProperty(this.info,"hasModuleSideEffects",{enumerable:!1})}getVariableForExportName(Z){let q=this.declarations.get(Z);if(q)return[q];let J=new Q0(this,Z);return this.declarations.set(Z,J),this.exportedVariables.set(J,Z),[J]}setRenderPath(Z,q){if(this.renderPath=typeof Z.paths==="function"?Z.paths(this.id):Z.paths[this.id],!this.renderPath)this.renderPath=this.renormalizeRenderPath?Y0(WZ(q,this.id)):this.id}suggestName(Z){var q;let J=((q=this.nameSuggestions.get(Z))!==null&&q!==void 0?q:0)+1;if(this.nameSuggestions.set(Z,J),J>this.mostCommonSuggestion)this.mostCommonSuggestion=J,this.suggestedVariableName=Z}warnUnusedImports(){let Z=Array.from(this.declarations).filter(([Q,Y])=>Q!=="*"&&!Y.included&&!this.reexported&&!Y.referenced).map(([Q])=>Q);if(Z.length===0)return;let q=new Set;for(let Q of Z)for(let Y of this.declarations.get(Q).module.importers)q.add(Y);let J=[...q];this.options.onwarn({code:"UNUSED_EXTERNAL_IMPORT",message:`${X8(Z,["is","are"])} imported from external module "${this.id}" but never used in ${X8(J.map((Q)=>V1(Q)))}.`,names:Z,source:this.id,sources:J})}}function MU(Z){return Z&&Z.__esModule&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z}function c9(){return{brokenFlow:l4,includedCallArguments:new Set,includedLabels:new Set}}function c4(){return{accessed:new J0,assigned:new J0,brokenFlow:l4,called:new w4,ignore:{breaks:!1,continues:!1,labels:new Set,returnYield:!1},includedLabels:new Set,instantiated:new w4,replacedVariableInits:new Map}}function p4(Z,q=null){return Object.create(q,Z)}function oU(Z){switch(typeof Z){case"boolean":return p9;case"number":return i9;case"string":return z0}return Object.create(null)}function M0(Z,q,J,Q){var Y,z;if(typeof q!=="string"||!Z[q])return!0;return((z=(Y=Z[q]).hasEffectsWhenCalled)===null||z===void 0?void 0:z.call(Y,J,Q))||!1}function F0(Z,q){if(typeof q!=="string"||!Z[q])return Y1;return Z[q].returns}function IZ(Z,q,J){J(Z,q)}function E8(Z,q,J){}function LY(Z,q,J=Z.type){let{annotations:Q}=q,Y=Q[q.annotationIndex];while(Y&&Z.start>=Y.end)$j(Z,Y,q.code),Y=Q[++q.annotationIndex];if(Y&&Y.end<=Z.end){i[J](Z,q,LY);while((Y=Q[q.annotationIndex])&&Y.end<=Z.end)++q.annotationIndex,I4(Z,Y,!1)}}function $j(Z,q,J){let Q=[],Y,z=J.slice(q.end,Z.start);if(J4(z,Gj)){let X=Z.start;while(!0){switch(Q.push(Z),Z.type){case w5:case eU:Z=Z.expression;continue;case Vj:if(J4(J.slice(X,Z.start),_9)){Z=Z.expressions[0];continue}Y=!0;break;case Zj:if(J4(J.slice(X,Z.start),_9)){Z=Z.test;continue}Y=!0;break;case Qj:case tU:if(J4(J.slice(X,Z.start),_9)){Z=Z.left;continue}Y=!0;break;case BY:case Yj:break;default:Y=!0}break}}else Y=!0;if(Y)I4(Z,q,!1);else for(let X of Q)I4(X,q,!0)}function J4(Z,q){let J;while((J=q.exec(Z))!==null){if(J[0]==="/"){let Q=Z.charCodeAt(q.lastIndex);if(Q===42){q.lastIndex=Z.indexOf("*/",q.lastIndex+1)+2;continue}else if(Q===47){q.lastIndex=Z.indexOf(`
|
|
16
|
-
`,
|
|
17
|
-
`,
|
|
18
|
-
`,Q);while(!0){if(Q=Z.indexOf("/",Q),Q===-1||Q>
|
|
19
|
-
`,Q)}}function L0(Z,q,J,Q,Y){let z,X,V,W,K=Z[0],G=!K.included||K.needsBoundaries;if(G)W=J+D4(q.original.slice(J,K.start))[1];for(let F=1;F<=Z.length;F++)if(z=K,X=W,V=G,K=Z[F],G=K===void 0?!1:!K.included||K.needsBoundaries,V||G)if(W=z.end+D4(q.original.slice(z.end,K===void 0?Q:K.start))[1],z.included)V?z.render(q,Y,{end:W,start:X}):z.render(q,Y);else yZ(z,q,X,W);else z.render(q,Y)}function IY(Z,q,J,Q){let Y=[],z,X,V,W,K,G=J-1;for(let F=0;F<Z.length;F++){if(X=Z[F],z!==void 0)G=z.end+o1(q.original.slice(z.end,X.start),",");V=W=G+1+D4(q.original.slice(G+1,X.start))[1];while(K=q.original.charCodeAt(V),K===32||K===9||K===10||K===13)V++;if(z!==void 0)Y.push({contentEnd:W,end:V,node:z,separator:G,start:J});z=X,J=V}return Y.push({contentEnd:Q,end:Q,node:z,separator:null,start:J}),Y}function a4(Z,q,J){while(!0){let[Q,Y]=D4(Z.original.slice(q,J));if(Q===-1)break;Z.remove(q+Q,q+=Y)}}function b8(Z,{exportNamesByVariable:q,snippets:{_:J,getObject:Q,getPropertyAccess:Y}},z=""){if(Z.length===1&&q.get(Z[0]).length===1){let X=Z[0];return`exports('${q.get(X)}',${J}${X.getName(Y)}${z})`}else{let X=[];for(let V of Z)for(let W of q.get(V))X.push([W,V.getName(Y)+z]);return`exports(${Q(X,{lineBreakIndent:null})})`}}function xZ(Z,q,J,Q,{exportNamesByVariable:Y,snippets:{_:z}}){Q.prependRight(q,`exports('${Y.get(Z)}',${z}`),Q.appendLeft(J,")")}function wj(Z,q,J,Q,Y,z){let{_:X,getDirectReturnIifeLeft:V}=z.snippets;Y.prependRight(q,V(["v"],`${b8(Z,z)},${X}v`,{needsArrowReturnParens:!0,needsWrappedFunction:Q})),Y.appendLeft(J,")")}function DY(Z,q,J,Q,Y,z){let{_:X,getPropertyAccess:V}=z.snippets;if(Y.appendLeft(J,`,${X}${b8([Z],z)},${X}${Z.getName(V)}`),Q)Y.prependRight(q,"("),Y.appendLeft(J,")")}function Oj(Z,q,J,Q,Y,z,X){let{_:V}=z.snippets;if(Y.prependRight(q,`${b8([Z],z,X)},${V}`),Q)Y.prependRight(q,"("),Y.appendLeft(J,")")}function xY(Z,q,J){if(J.arguments.length>0)if(J.arguments[J.arguments.length-1].included)for(let Q of J.arguments)Q.render(Z,q);else{let Q=J.arguments.length-2;while(Q>=0&&!J.arguments[Q].included)Q--;if(Q>=0){for(let Y=0;Y<=Q;Y++)J.arguments[Y].render(Z,q);Z.remove(o1(Z.original,",",J.arguments[Q].end),J.end-1)}else Z.remove(o1(Z.original,"(",J.callee.end)+1,J.end-1)}}function Cj(Z){return Z.computed?_j(Z.property):Z.property.name}function _j(Z){if(Z instanceof z6)return String(Z.value);return null}function kY(Z){let{propertyKey:q,object:J}=Z;if(typeof q==="string"){if(J instanceof d1)return[{key:J.name,pos:J.start},{key:q,pos:Z.property.start}];if(J instanceof y8){let Q=kY(J);return Q&&[...Q,{key:q,pos:Z.property.start}]}}return null}function Ij(Z){let q=Z[0].key;for(let J=1;J<Z.length;J++)q+="."+Z[J].key;return q}function vY(Z,q,J){if(q.length===0)return Z;if(!Z.isNamespace||Z instanceof Q0)return null;let Q=q[0].key,Y=Z.context.traceExport(Q);if(!Y){let z=Z.context.fileName;return J.warn({code:"MISSING_EXPORT",exporter:V1(z),importer:V1(J.fileName),message:`'${Q}' is not exported by '${V1(z)}'`,missing:Q,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"},q[0].pos),"undefined"}return vY(Y,q.slice(1),J)}function Dj(Z,q){return W8(Z,o1(Z,"default",q)+7)}function Tj(Z,q,J,Q){let Y=o1(Z,q,Q)+q.length;Z=Z.slice(Y,o1(Z,J,Y));let z=o1(Z,"*");if(z===-1)return Y;return Y+z+1}function K0(Z){return Z([["value","'Module'"]],{lineBreakIndent:null})}function _Q(Z,q,J){return q==="external"?R0[String(J(Z instanceof D1?Z.id:null))]:q==="default"?W0:null}function A2(Z,q){return Z.renderBaseName!==null&&q.has(Z)&&Z.isReassigned}function hj(Z,q){for(let J of Z){if(!J.id.included)return!1;if(J.id.type===HY){if(q.has(J.id.variable))return!1}else{let Q=[];if(J.id.addExportedVariables(Q,q),Q.length>0)return!1}}return!0}function gj(Z,q,J){var Q;let Y=null;if(q.format==="system"){for(let{node:z}of Z)if(z.id instanceof d1&&z.init&&J.length===0&&((Q=q.exportNamesByVariable.get(z.id.variable))===null||Q===void 0?void 0:Q.length)===1)Y=z.id.variable,J.push(Y);else z.id.addExportedVariables(J,q.exportNamesByVariable);if(J.length>1)Y=null;else if(Y)J.length=0}return Y}function J6(Z){return Z.id}function mj(Z,q){let J=Z.filter((Q)=>!!Q.mappings);Z:while(J.length>0){let Y=J.pop().mappings[q.line-1];if(Y){let z=Y.filter((V)=>V.length>1),X=z[z.length-1];for(let V of z)if(V[0]>=q.column||V===X){q={column:V[3],line:V[2]+1};continue Z}}throw Error("Can't resolve original location of error.")}return q}function b2(Z,q){switch(q){case 1:return`# ${Z}`;case 2:return`## ${Z}`;case 3:return Z;default:return`${" ".repeat(q-4)}- ${Z}`}}function uj(Z,q=3){Z=b2(Z,q);let J=KZ.memoryUsage().heapUsed,Q=tQ.now(),Y=G0.get(Z);if(Y===void 0)G0.set(Z,{memory:0,startMemory:J,startTime:Q,time:0,totalMemory:0});else Y.startMemory=J,Y.startTime=Q}function dj(Z,q=3){Z=b2(Z,q);let J=G0.get(Z);if(J!==void 0){let Q=KZ.memoryUsage().heapUsed;J.memory+=Q-J.startMemory,J.time+=tQ.now()-J.startTime,J.totalMemory=Math.max(J.totalMemory,Q)}}function lj(){let Z={};for(let[q,{memory:J,time:Q,totalMemory:Y}]of G0)Z[q]=[Q,J,Y];return Z}function pj(Z,q){for(let J of cj)if(J in Z){let Q=`plugin ${q}`;if(Z.name)Q+=` (${Z.name})`;Q+=` - ${J}`;let Y=Z[J];Z[J]=function(...z){s1(Q,4);let X=Y.apply(this,z);if(i1(Q,4),X&&typeof X.then==="function")return s1(`${Q} (async)`,4),X.then((V)=>{return i1(`${Q} (async)`,4),V});return X}}return Z}function ij(Z){if(Z.perf)G0=new Map,s1=uj,i1=dj,Z.plugins=Z.plugins.map(pj);else s1=S4,i1=S4}function j4(Z){Z.isExecuted=!0;let q=[Z],J=new Set;for(let Q of q)for(let Y of[...Q.dependencies,...Q.implicitlyLoadedBefore])if(!(Y instanceof D1)&&!Y.isExecuted&&(Y.info.moduleSideEffects||Q.implicitlyLoadedBefore.has(Y))&&!J.has(Y.id))Y.isExecuted=!0,J.add(Y.id),q.push(Y)}function P9(Z,q,J,Q,Y=new Map){let z=Y.get(q);if(z){if(z.has(Z))return Q?[null]:Z1(k$(q,Z.id));z.add(Z)}else Y.set(q,new Set([Z]));return Z.getVariableForExportName(q,{importerForSideEffects:J,isExportAllSearch:Q,searchedNamesAndModules:Y})}function nj(Z,q){let J=k5(q.sideEffectDependenciesByVariable,Z,()=>new Set),Q=Z,Y=new Set([Q]);while(!0){let z=Q.module;if(Q=Q instanceof f5?Q.getDirectOriginalVariable():Q instanceof G5?Q.syntheticNamespace:null,!Q||Y.has(Q))break;Y.add(Q),J.add(z);let X=z.sideEffectDependenciesByVariable.get(Q);if(X)for(let V of X)J.add(V)}return J}class A1{constructor(Z,q,J,Q,Y,z,X){this.graph=Z,this.id=q,this.options=J,this.alternativeReexportModules=new Map,this.chunkFileNames=new Set,this.chunkNames=[],this.cycles=new Set,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicImporters=[],this.dynamicImports=[],this.execIndex=1/0,this.implicitlyLoadedAfter=new Set,this.implicitlyLoadedBefore=new Set,this.importDescriptions=new Map,this.importMetas=[],this.importedFromNotTreeshaken=!1,this.importers=[],this.includedDynamicImporters=[],this.includedImports=new Set,this.isExecuted=!1,this.isUserDefinedEntryPoint=!1,this.needsExportShim=!1,this.sideEffectDependenciesByVariable=new Map,this.sources=new Set,this.usesTopLevelAwait=!1,this.allExportNames=null,this.ast=null,this.exportAllModules=[],this.exportAllSources=new Set,this.exportNamesByVariable=null,this.exportShimVariable=new E2(this),this.exports=new Map,this.namespaceReexportsByName=new Map,this.reexportDescriptions=new Map,this.relevantDependencies=null,this.syntheticExports=new Map,this.syntheticNamespace=null,this.transformDependencies=[],this.transitiveReexports=null,this.excludeFromSourcemap=/\0/.test(q),this.context=J.moduleContext(q),this.preserveSignature=this.options.preserveEntrySignatures;let V=this,{dynamicImports:W,dynamicImporters:K,implicitlyLoadedAfter:G,implicitlyLoadedBefore:F,importers:M,reexportDescriptions:B,sources:H}=this;this.info={ast:null,code:null,get dynamicallyImportedIdResolutions(){return W.map(({argument:N})=>typeof N==="string"&&V.resolvedIds[N]).filter(Boolean)},get dynamicallyImportedIds(){return W.map(({id:N})=>N).filter((N)=>N!=null)},get dynamicImporters(){return K.sort()},get hasDefaultExport(){if(!V.ast)return null;return V.exports.has("default")||B.has("default")},get hasModuleSideEffects(){return U5("Accessing ModuleInfo.hasModuleSideEffects from plugins is deprecated. Please use ModuleInfo.moduleSideEffects instead.",!1,J),this.moduleSideEffects},id:q,get implicitlyLoadedAfterOneOf(){return Array.from(G,J6).sort()},get implicitlyLoadedBefore(){return Array.from(F,J6).sort()},get importedIdResolutions(){return Array.from(H,(N)=>V.resolvedIds[N]).filter(Boolean)},get importedIds(){return Array.from(H,(N)=>{var C;return(C=V.resolvedIds[N])===null||C===void 0?void 0:C.id}).filter(Boolean)},get importers(){return M.sort()},isEntry:Q,isExternal:!1,get isIncluded(){if(Z.phase!==Y8.GENERATE)return null;return V.isIncluded()},meta:{...X},moduleSideEffects:Y,syntheticNamedExports:z},Object.defineProperty(this.info,"hasModuleSideEffects",{enumerable:!1})}basename(){let Z=z8(this.id),q=J8(this.id);return FZ(q?Z.slice(0,-q.length):Z)}bindReferences(){this.ast.bind()}error(Z,q){return this.addLocationToLogProps(Z,q),Z1(Z)}getAllExportNames(){if(this.allExportNames)return this.allExportNames;this.allExportNames=new Set([...this.exports.keys(),...this.reexportDescriptions.keys()]);for(let Z of this.exportAllModules){if(Z instanceof D1){this.allExportNames.add(`*${Z.id}`);continue}for(let q of Z.getAllExportNames())if(q!=="default")this.allExportNames.add(q)}if(typeof this.info.syntheticNamedExports==="string")this.allExportNames.delete(this.info.syntheticNamedExports);return this.allExportNames}getDependenciesToBeIncluded(){if(this.relevantDependencies)return this.relevantDependencies;this.relevantDependencies=new Set;let Z=new Set,q=new Set,J=new Set(this.includedImports);if(this.info.isEntry||this.includedDynamicImporters.length>0||this.namespace.included||this.implicitlyLoadedAfter.size>0)for(let Q of[...this.getReexports(),...this.getExports()]){let[Y]=this.getVariableForExportName(Q);if(Y)J.add(Y)}for(let Q of J){let Y=this.sideEffectDependenciesByVariable.get(Q);if(Y)for(let z of Y)q.add(z);if(Q instanceof G5)Q=Q.getBaseVariable();else if(Q instanceof f5)Q=Q.getOriginalVariable();Z.add(Q.module)}if(!this.options.treeshake||this.info.moduleSideEffects==="no-treeshake")for(let Q of this.dependencies)this.relevantDependencies.add(Q);else this.addRelevantSideEffectDependencies(this.relevantDependencies,Z,q);for(let Q of Z)this.relevantDependencies.add(Q);return this.relevantDependencies}getExportNamesByVariable(){if(this.exportNamesByVariable)return this.exportNamesByVariable;let Z=new Map;for(let q of this.getAllExportNames()){let[J]=this.getVariableForExportName(q);if(J instanceof f5)J=J.getOriginalVariable();if(!J||!(J.included||J instanceof Q0))continue;let Q=Z.get(J);if(Q)Q.push(q);else Z.set(J,[q])}return this.exportNamesByVariable=Z}getExports(){return Array.from(this.exports.keys())}getReexports(){if(this.transitiveReexports)return this.transitiveReexports;this.transitiveReexports=[];let Z=new Set(this.reexportDescriptions.keys());for(let q of this.exportAllModules)if(q instanceof D1)Z.add(`*${q.id}`);else for(let J of[...q.getReexports(),...q.getExports()])if(J!=="default")Z.add(J);return this.transitiveReexports=[...Z]}getRenderedExports(){let Z=[],q=[];for(let J of this.exports.keys()){let[Q]=this.getVariableForExportName(J);(Q&&Q.included?Z:q).push(J)}return{removedExports:q,renderedExports:Z}}getSyntheticNamespace(){if(this.syntheticNamespace===null)this.syntheticNamespace=void 0,[this.syntheticNamespace]=this.getVariableForExportName(typeof this.info.syntheticNamedExports==="string"?this.info.syntheticNamedExports:"default",{onlyExplicit:!0});if(!this.syntheticNamespace)return Z1(XU(this.id,this.info.syntheticNamedExports));return this.syntheticNamespace}getVariableForExportName(Z,{importerForSideEffects:q,isExportAllSearch:J,onlyExplicit:Q,searchedNamesAndModules:Y}=s6){var z;if(Z[0]==="*"){if(Z.length===1)return[this.namespace];return this.graph.modulesById.get(Z.slice(1)).getVariableForExportName("*")}let X=this.reexportDescriptions.get(Z);if(X){let[W]=P9(X.module,X.localName,q,!1,Y);if(!W)return this.error(tJ(X.localName,this.id,X.module.id),X.start);if(q)AQ(W,q,this);return[W]}let V=this.exports.get(Z);if(V){if(V===TQ)return[this.exportShimVariable];let W=V.localName,K=this.traceVariable(W,{importerForSideEffects:q,searchedNamesAndModules:Y});if(q)k5(q.sideEffectDependenciesByVariable,K,()=>new Set).add(this),AQ(K,q,this);return[K]}if(Q)return[null];if(Z!=="default"){let W=(z=this.namespaceReexportsByName.get(Z))!==null&&z!==void 0?z:this.getVariableFromNamespaceReexports(Z,q,Y);if(this.namespaceReexportsByName.set(Z,W),W[0])return W}if(this.info.syntheticNamedExports)return[k5(this.syntheticExports,Z,()=>new G5(this.astContext,Z,this.getSyntheticNamespace()))];if(!J){if(this.options.shimMissingExports)return this.shimMissingExport(Z),[this.exportShimVariable]}return[null]}hasEffects(){return this.info.moduleSideEffects==="no-treeshake"||this.ast.included&&this.ast.hasEffects(c4())}include(){let Z=c9();if(this.ast.shouldBeIncluded(Z))this.ast.include(Z,!1)}includeAllExports(Z){if(!this.isExecuted)j4(this),this.graph.needsTreeshakingPass=!0;for(let q of this.exports.keys())if(Z||q!==this.info.syntheticNamedExports){let J=this.getVariableForExportName(q)[0];if(J.deoptimizePath(_1),!J.included)this.includeVariable(J)}for(let q of this.getReexports()){let[J]=this.getVariableForExportName(q);if(J){if(J.deoptimizePath(_1),!J.included)this.includeVariable(J);if(J instanceof Q0)J.module.reexported=!0}}if(Z)this.namespace.setMergedNamespaces(this.includeAndGetAdditionalMergedNamespaces())}includeAllInBundle(){this.ast.include(c9(),!0),this.includeAllExports(!1)}isIncluded(){return this.ast.included||this.namespace.included||this.importedFromNotTreeshaken}linkImports(){this.addModulesToImportDescriptions(this.importDescriptions),this.addModulesToImportDescriptions(this.reexportDescriptions);let Z=[];for(let q of this.exportAllSources){let J=this.graph.modulesById.get(this.resolvedIds[q].id);if(J instanceof D1){Z.push(J);continue}this.exportAllModules.push(J)}this.exportAllModules.push(...Z)}render(Z){let q=this.magicString.clone();return this.ast.render(q,Z),this.usesTopLevelAwait=this.astContext.usesTopLevelAwait,q}setSource({ast:Z,code:q,customTransformCache:J,originalCode:Q,originalSourcemap:Y,resolvedIds:z,sourcemapChain:X,transformDependencies:V,transformFiles:W,...K}){if(this.info.code=q,this.originalCode=Q,this.originalSourcemap=Y,this.sourcemapChain=X,W)this.transformFiles=W;if(this.transformDependencies=V,this.customTransformCache=J,this.updateOptions(K),s1("generate ast",3),!Z)Z=this.tryParse();i1("generate ast",3),this.resolvedIds=z||Object.create(null);let G=this.id;this.magicString=new P8(q,{filename:this.excludeFromSourcemap?null:G,indentExclusionRanges:[]}),s1("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),code:q,deoptimizationTracker:this.graph.deoptimizationTracker,error:this.error.bind(this),fileName:G,getExports:this.getExports.bind(this),getModuleExecIndex:()=>this.execIndex,getModuleName:this.basename.bind(this),getNodeConstructor:(F)=>DQ[F]||DQ.UnknownNode,getReexports:this.getReexports.bind(this),importDescriptions:this.importDescriptions,includeAllExports:()=>this.includeAllExports(!0),includeDynamicImport:this.includeDynamicImport.bind(this),includeVariableInModule:this.includeVariableInModule.bind(this),magicString:this.magicString,module:this,moduleContext:this.context,options:this.options,requestTreeshakingPass:()=>this.graph.needsTreeshakingPass=!0,traceExport:(F)=>this.getVariableForExportName(F)[0],traceVariable:this.traceVariable.bind(this),usesTopLevelAwait:!1,warn:this.warn.bind(this)},this.scope=new aZ(this.graph.scope,this.astContext),this.namespace=new q6(this.astContext),this.ast=new cZ(Z,{context:this.astContext,type:"Module"},this.scope),this.info.ast=Z,i1("analyse ast",3)}toJSON(){return{ast:this.ast.esTreeNode,code:this.info.code,customTransformCache:this.customTransformCache,dependencies:Array.from(this.dependencies,J6),id:this.id,meta:this.info.meta,moduleSideEffects:this.info.moduleSideEffects,originalCode:this.originalCode,originalSourcemap:this.originalSourcemap,resolvedIds:this.resolvedIds,sourcemapChain:this.sourcemapChain,syntheticNamedExports:this.info.syntheticNamedExports,transformDependencies:this.transformDependencies,transformFiles:this.transformFiles}}traceVariable(Z,{importerForSideEffects:q,isExportAllSearch:J,searchedNamesAndModules:Q}=s6){let Y=this.scope.variables.get(Z);if(Y)return Y;let z=this.importDescriptions.get(Z);if(z){let X=z.module;if(X instanceof A1&&z.name==="*")return X.namespace;let[V]=P9(X,z.name,q||this,J,Q);if(!V)return this.error(tJ(z.name,this.id,X.id),z.start);return V}return null}tryParse(){try{return this.graph.contextParse(this.info.code)}catch(Z){let q=Z.message.replace(/ \(\d+:\d+\)$/,"");if(this.id.endsWith(".json"))q+=" (Note that you need @rollup/plugin-json to import JSON files)";else if(!this.id.endsWith(".js"))q+=" (Note that you need plugins to import files that are not JavaScript)";return this.error({code:"PARSE_ERROR",message:q,parserError:Z},Z.pos)}}updateOptions({meta:Z,moduleSideEffects:q,syntheticNamedExports:J}){if(q!=null)this.info.moduleSideEffects=q;if(J!=null)this.info.syntheticNamedExports=J;if(Z!=null)Object.assign(this.info.meta,Z)}warn(Z,q){this.addLocationToLogProps(Z,q),this.options.onwarn(Z)}addDynamicImport(Z){let q=Z.source;if(q instanceof iZ){if(q.quasis.length===1&&q.quasis[0].value.cooked)q=q.quasis[0].value.cooked}else if(q instanceof z6&&typeof q.value==="string")q=q.value;this.dynamicImports.push({argument:q,id:null,node:Z,resolution:null})}addExport(Z){if(Z instanceof w0)this.exports.set("default",{identifier:Z.variable.getAssignedVariableName(),localName:"default"});else if(Z instanceof t4){let q=Z.source.value;if(this.sources.add(q),Z.exported){let J=Z.exported.name;this.reexportDescriptions.set(J,{localName:"*",module:null,source:q,start:Z.start})}else this.exportAllSources.add(q)}else if(Z.source instanceof z6){let q=Z.source.value;this.sources.add(q);for(let J of Z.specifiers){let Q=J.exported.name;this.reexportDescriptions.set(Q,{localName:J.local.name,module:null,source:q,start:J.start})}}else if(Z.declaration){let q=Z.declaration;if(q instanceof sZ)for(let J of q.declarations)for(let Q of nU(J.id))this.exports.set(Q,{identifier:null,localName:Q});else{let J=q.id.name;this.exports.set(J,{identifier:null,localName:J})}}else for(let q of Z.specifiers){let J=q.local.name,Q=q.exported.name;this.exports.set(Q,{identifier:null,localName:J})}}addImport(Z){let q=Z.source.value;this.sources.add(q);for(let J of Z.specifiers){let Q=J.type===qj,Y=J.type===Jj,z=Q?"default":Y?"*":J.imported.name;this.importDescriptions.set(J.local.name,{module:null,name:z,source:q,start:J.start})}}addImportMeta(Z){this.importMetas.push(Z)}addLocationToLogProps(Z,q){Z.id=this.id,Z.pos=q;let J=this.info.code,Q=QY(J,q,{offsetLine:1});if(Q){let{column:Y,line:z}=Q;try{({column:Y,line:z}=mj(this.sourcemapChain,{column:Y,line:z})),J=this.originalCode}catch(X){this.options.onwarn({code:"SOURCEMAP_ERROR",id:this.id,loc:{column:Y,file:this.id,line:z},message:`Error when using sourcemap for reporting an error: ${X.message}`,pos:q})}O4(Z,{column:Y,line:z},J,this.id)}}addModulesToImportDescriptions(Z){for(let q of Z.values()){let{id:J}=this.resolvedIds[q.source];q.module=this.graph.modulesById.get(J)}}addRelevantSideEffectDependencies(Z,q,J){let Q=new Set,Y=(z)=>{for(let X of z){if(Q.has(X))continue;if(Q.add(X),q.has(X)){Z.add(X);continue}if(!(X.info.moduleSideEffects||J.has(X)))continue;if(X instanceof D1||X.hasEffects()){Z.add(X);continue}Y(X.dependencies)}};Y(this.dependencies),Y(J)}getVariableFromNamespaceReexports(Z,q,J){let Q=null,Y=new Map,z=new Set;for(let X of this.exportAllModules){if(X.info.syntheticNamedExports===Z)continue;let[V,W]=P9(X,Z,q,!0,aj(J));if(X instanceof D1||W)z.add(V);else if(V instanceof G5){if(!Q)Q=V}else if(V)Y.set(V,X)}if(Y.size>0){let X=[...Y],V=X[0][0];if(X.length===1)return[V];return this.options.onwarn(JU(Z,this.id,X.map(([,W])=>W.id))),[null]}if(z.size>0){let X=[...z],V=X[0];if(X.length>1)this.options.onwarn(QU(Z,this.id,V.module.id,X.map((W)=>W.module.id)));return[V,!0]}if(Q)return[Q];return[null]}includeAndGetAdditionalMergedNamespaces(){let Z=new Set,q=new Set;for(let J of[this,...this.exportAllModules])if(J instanceof D1){let[Q]=J.getVariableForExportName("*");Q.include(),this.includedImports.add(Q),Z.add(Q)}else if(J.info.syntheticNamedExports){let Q=J.getSyntheticNamespace();Q.include(),this.includedImports.add(Q),q.add(Q)}return[...q,...Z]}includeDynamicImport(Z){let q=this.dynamicImports.find((J)=>J.node===Z).resolution;if(q instanceof A1)q.includedDynamicImporters.push(this),q.includeAllExports(!0)}includeVariable(Z){if(!Z.included){Z.include(),this.graph.needsTreeshakingPass=!0;let q=Z.module;if(q instanceof A1){if(!q.isExecuted)j4(q);if(q!==this){let J=nj(Z,this);for(let Q of J)if(!Q.isExecuted)j4(Q)}}}}includeVariableInModule(Z){this.includeVariable(Z);let q=Z.module;if(q&&q!==this)this.includedImports.add(Z)}shimMissingExport(Z){this.options.onwarn({code:"SHIMMED_EXPORT",exporter:V1(this.id),exportName:Z,message:`Missing export "${Z}" has been shimmed in module ${V1(this.id)}.`}),this.exports.set(Z,TQ)}}function AQ(Z,q,J){if(Z.module instanceof A1&&Z.module!==J){let Q=Z.module.cycles;if(Q.size>0){let Y=J.cycles;for(let z of Y)if(Q.has(z)){q.alternativeReexportModules.set(Z,J);break}}}}function x2(Z){return Z.endsWith(".js")?Z.slice(0,-3):Z}function k2(Z,q){if(Z.autoId)return`${Z.basePath?Z.basePath+"/":""}${x2(q)}`;return Z.id||""}function Z7(Z,q,J,Q,Y,z,X,V="return "){let{_:W,cnst:K,getDirectReturnFunction:G,getFunctionIntro:F,getPropertyAccess:M,n:B,s:H}=Y;if(!J)return`${B}${B}${V}${sj(Z,q,Q,X,M)};`;let N="";for(let{defaultVariableName:C,id:A,isChunk:S,name:T,namedExportsMode:g,namespaceVariableName:f,reexports:u}of q)if(u&&J){for(let E of u)if(E.reexported!=="*"){let R=v2(T,E.imported,g,S,C,f,Q,A,X,M);if(N)N+=B;if(E.imported!=="*"&&E.needsLiveBinding){let[P,I]=G([],{functionReturn:!0,lineBreakIndent:null,name:null});N+=`Object.defineProperty(exports,${W}'${E.reexported}',${W}{${B}${z}enumerable:${W}true,${B}${z}get:${W}${P}${R}${I}${B}});`}else N+=`exports${M(E.reexported)}${W}=${W}${R};`}}for(let{exported:C,local:A}of Z){let S=`exports${M(C)}`,T=A;if(S!==T){if(N)N+=B;N+=`${S}${W}=${W}${T};`}}for(let{name:C,reexports:A}of q)if(A&&J){for(let S of A)if(S.reexported==="*"){if(N)N+=B;let T=`{${B}${z}if${W}(k${W}!==${W}'default'${W}&&${W}!exports.hasOwnProperty(k))${W}${rj(C,S.needsLiveBinding,z,Y)}${H}${B}}`;N+=K==="var"&&S.needsLiveBinding?`Object.keys(${C}).forEach(${F(["k"],{isAsync:!1,name:null})}${T});`:`for${W}(${K} k in ${C})${W}${T}`}}if(N)return`${B}${B}${N}`;return""}function sj(Z,q,J,Q,Y){if(Z.length>0)return Z[0].local;else for(let{defaultVariableName:z,id:X,isChunk:V,name:W,namedExportsMode:K,namespaceVariableName:G,reexports:F}of q)if(F)return v2(W,F[0].imported,K,V,z,G,J,X,Q,Y)}function v2(Z,q,J,Q,Y,z,X,V,W,K){if(q==="default"){if(!Q){let G=String(X(V)),F=O0[G]?Y:Z;return e4(G,W)?`${F}${K("default")}`:F}return J?`${Z}${K("default")}`:Z}if(q==="*")return(Q?!J:R0[String(X(V))])?z:Z;return`${Z}${K(q)}`}function PQ(Z){return Z([["value","true"]],{lineBreakIndent:null})}function q7(Z,q,J,{_:Q,getObject:Y}){if(Z){if(q){if(J)return`Object.defineProperties(exports,${Q}${Y([["__esModule",PQ(Y)],[null,`[Symbol.toStringTag]:${Q}${K0(Y)}`]],{lineBreakIndent:null})});`;return`Object.defineProperty(exports,${Q}'__esModule',${Q}${PQ(Y)});`}if(J)return`Object.defineProperty(exports,${Q}Symbol.toStringTag,${Q}${K0(Y)});`}return""}function J7(Z,q,J,Q,Y,z,X,V){let{_:W,cnst:K,n:G}=V,F=new Set,M=[],B=(H,N,C)=>{F.add(N),M.push(`${K} ${H}${W}=${W}/*#__PURE__*/${N}(${C});`)};for(let{defaultVariableName:H,imports:N,id:C,isChunk:A,name:S,namedExportsMode:T,namespaceVariableName:g,reexports:f}of Z)if(A){for(let{imported:u,reexported:E}of[...N||[],...f||[]])if(u==="*"&&E!=="*"){if(!T)B(g,W0,S);break}}else{let u=String(q(C)),E=!1,R=!1;for(let{imported:P,reexported:I}of[...N||[],...f||[]]){let j,x;if(P==="default"){if(!E){if(E=!0,H!==g)x=H,j=O0[u]}}else if(P==="*"&&I!=="*"){if(!R)R=!0,j=R0[u],x=g}if(j)B(x,j,S)}}return`${lZ(F,z,X,V,J,Q,Y)}${M.length>0?`${M.join(G)}${G}${G}`:""}`}function oj(Z){return Z.endsWith(".js")?Z:Z+".js"}function f2(Z,q){if(Z[0]!==".")return Z;return q?oj(Z):x2(Z)}function rZ(Z,q){let J=q.map(({id:Q})=>Q).filter((Q)=>(Q in tj));if(!J.length)return;Z({code:"MISSING_NODE_BUILTINS",message:`Creating a browser bundle that depends on Node.js built-in modules (${X8(J)}). You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`,modules:J})}function ej(Z,{accessedGlobals:q,dependencies:J,exports:Q,hasExports:Y,id:z,indent:X,intro:V,isEntryFacade:W,isModuleFacade:K,namedExportsMode:G,outro:F,snippets:M,warn:B},{amd:H,esModule:N,externalLiveBindings:C,freeze:A,interop:S,namespaceToStringTag:T,strict:g}){rZ(B,J);let f=J.map(($)=>`'${f2($.id,H.forceJsExtensionForImports)}'`),u=J.map(($)=>$.name),{n:E,getNonArrowFunctionIntro:R,_:P}=M;if(G&&Y)u.unshift("exports"),f.unshift("'exports'");if(q.has("require"))u.unshift("require"),f.unshift("'require'");if(q.has("module"))u.unshift("module"),f.unshift("'module'");let I=k2(H,z),j=(I?`'${I}',${P}`:"")+(f.length?`[${f.join(`,${P}`)}],${P}`:""),x=g?`${P}'use strict';`:"";Z.prepend(`${V}${J7(J,S,C,A,T,q,X,M)}`);let k=Z7(Q,J,G,S,M,X,C),y=q7(G&&Y,W&&N,K&&T,M);if(y)y=E+E+y;return Z.append(`${k}${y}${F}`),Z.indent(X).prepend(`${H.define}(${j}(${R(u,{isAsync:!1,name:null})}{${x}${E}${E}`).append(`${E}${E}}));`)}function ZB(Z,{accessedGlobals:q,dependencies:J,exports:Q,hasExports:Y,indent:z,intro:X,isEntryFacade:V,isModuleFacade:W,namedExportsMode:K,outro:G,snippets:F},{compact:M,esModule:B,externalLiveBindings:H,freeze:N,interop:C,namespaceToStringTag:A,strict:S}){let{_:T,n:g}=F,f=S?`'use strict';${g}${g}`:"",u=q7(K&&Y,V&&B,W&&A,F);if(u)u+=g+g;let E=qB(J,F,M),R=J7(J,C,H,N,A,q,z,F);Z.prepend(`${f}${X}${u}${E}${R}`);let P=Z7(Q,J,K,C,F,z,H,`module.exports${T}=${T}`);return Z.append(`${P}${G}`)}function qB(Z,{_:q,cnst:J,n:Q},Y){let z="",X=!1;for(let{id:V,name:W,reexports:K,imports:G}of Z)if(!K&&!G){if(z)z+=Y&&!X?",":`;${Q}`;X=!1,z+=`require('${V}')`}else z+=Y&&X?",":`${z?`;${Q}`:""}${J} `,X=!0,z+=`${W}${q}=${q}require('${V}')`;if(z)return`${z};${Q}${Q}`;return""}function JB(Z,{accessedGlobals:q,indent:J,intro:Q,outro:Y,dependencies:z,exports:X,snippets:V},{externalLiveBindings:W,freeze:K,namespaceToStringTag:G}){let{_:F,n:M}=V,B=QB(z,F);if(B.length>0)Q+=B.join(M)+M+M;if(Q+=lZ(null,q,J,V,W,K,G),Q)Z.prepend(Q);let H=YB(X,V);if(H.length)Z.append(M+M+H.join(M).trim());if(Y)Z.append(Y);return Z.trim()}function QB(Z,q){let J=[];for(let{id:Q,reexports:Y,imports:z,name:X}of Z){if(!Y&&!z){J.push(`import${q}'${Q}';`);continue}if(z){let V=null,W=null,K=[];for(let G of z)if(G.imported==="default")V=G;else if(G.imported==="*")W=G;else K.push(G);if(W)J.push(`import${q}*${q}as ${W.local} from${q}'${Q}';`);if(V&&K.length===0)J.push(`import ${V.local} from${q}'${Q}';`);else if(K.length>0)J.push(`import ${V?`${V.local},${q}`:""}{${q}${K.map((G)=>{if(G.imported===G.local)return G.imported;else return`${G.imported} as ${G.local}`}).join(`,${q}`)}${q}}${q}from${q}'${Q}';`)}if(Y){let V=null,W=[],K=[];for(let G of Y)if(G.reexported==="*")V=G;else if(G.imported==="*")W.push(G);else K.push(G);if(V)J.push(`export${q}*${q}from${q}'${Q}';`);if(W.length>0){if(!z||!z.some((G)=>G.imported==="*"&&G.local===X))J.push(`import${q}*${q}as ${X} from${q}'${Q}';`);for(let G of W)J.push(`export${q}{${q}${X===G.reexported?X:`${X} as ${G.reexported}`} };`)}if(K.length>0)J.push(`export${q}{${q}${K.map((G)=>{if(G.imported===G.reexported)return G.imported;else return`${G.imported} as ${G.reexported}`}).join(`,${q}`)}${q}}${q}from${q}'${Q}';`)}}return J}function YB(Z,{_:q,cnst:J}){let Q=[],Y=[];for(let z of Z){if(z.expression)Q.push(`${J} ${z.local}${q}=${q}${z.expression};`);Y.push(z.exported===z.local?z.local:`${z.local} as ${z.exported}`)}if(Y.length)Q.push(`export${q}{${q}${Y.join(`,${q}`)}${q}};`);return Q}function zB(Z,q,J,{_:Q,getPropertyAccess:Y,s:z},X){let V=Z.split(".");V[0]=(typeof J==="function"?J(V[0]):J[V[0]])||V[0],V.pop();let W=q;return V.map((K)=>{return W+=Y(K),`${W}${Q}=${Q}${W}${Q}||${Q}{}${z}`}).join(X?",":`
|
|
20
|
-
`)+(
|
|
21
|
-
`)}function S9(Z,q,J,Q,{_:Y,getPropertyAccess:z}){let X=Z.split(".");X[0]=(typeof J==="function"?J(X[0]):J[X[0]])||X[0];let V=X.pop(),W=q,K=X.map((G)=>{return W+=z(G),`${W}${Y}=${Y}${W}${Y}||${Y}{}`}).concat(`${W}${z(V)}`).join(`,${Y}`)+`${Y}=${Y}${Q}`;if(X.length>0)K=`(${K})`;return K}function h2(Z){let q=Z.length;while(q--){let{imports:J,reexports:Q}=Z[q];if(J||Q)return Z.slice(0,q+1)}return[]}function XB(Z,{accessedGlobals:q,dependencies:J,exports:Q,hasExports:Y,indent:z,intro:X,namedExportsMode:V,outro:W,snippets:K,warn:G},{compact:F,esModule:M,extend:B,freeze:H,externalLiveBindings:N,globals:C,interop:A,name:S,namespaceToStringTag:T,strict:g}){let{_:f,getNonArrowFunctionIntro:u,getPropertyAccess:E,n:R}=K,P=S&&S.includes("."),I=!B&&!P;if(S&&I&&!HU(S))return Z1({code:"ILLEGAL_IDENTIFIER_AS_NAME",message:`Given name "${S}" is not a legal JS identifier. If you need this, you can try "output.extend: true".`});rZ(G,J);let j=h2(J),x=j.map((o)=>o.globalName||"null"),k=j.map((o)=>o.name);if(Y&&!S)G({code:"MISSING_NAME_OPTION_FOR_IIFE_EXPORT",message:'If you do not supply "output.name", you may not be able to access the exports of an IIFE bundle.'});if(V&&Y)if(B)x.unshift(`this${B4(S,E)}${f}=${f}this${B4(S,E)}${f}||${f}{}`),k.unshift("exports");else x.unshift("{}"),k.unshift("exports");let y=g?`${z}'use strict';${R}`:"",$=J7(J,A,N,H,T,q,z,K);Z.prepend(`${X}${$}`);let L=`(${u(k,{isAsync:!1,name:null})}{${R}${y}${R}`;if(Y){if(S&&!(B&&V))L=(I?`var ${S}`:`this${B4(S,E)}`)+`${f}=${f}${L}`;if(P)L=zB(S,"this",C,K,F)+L}let l=`${R}${R}})(${x.join(`,${f}`)});`;if(Y&&!B&&V)l=`${R}${R}${z}return exports;${l}`;let v=Z7(Q,J,V,A,K,z,N),s=q7(V&&Y,M,T,K);if(s)s=R+R+s;return Z.append(`${v}${s}${W}`),Z.indent(z).prepend(L).append(l)}function VB(Z,{accessedGlobals:q,dependencies:J,exports:Q,hasExports:Y,indent:z,intro:X,snippets:V,outro:W,usesTopLevelAwait:K},{externalLiveBindings:G,freeze:F,name:M,namespaceToStringTag:B,strict:H,systemNullSetters:N}){let{_:C,getFunctionIntro:A,getNonArrowFunctionIntro:S,n:T,s:g}=V,{importBindings:f,setters:u,starExcludes:E}=WB(J,Q,z,V),R=M?`'${M}',${C}`:"",P=q.has("module")?["exports","module"]:Y?["exports"]:[],I=`System.register(${R}[`+J.map(({id:x})=>`'${x}'`).join(`,${C}`)+`],${C}(${S(P,{isAsync:!1,name:null})}{${T}${z}${H?"'use strict';":""}`+GB(E,z,V)+$B(f,z,V)+`${T}${z}return${C}{${u.length?`${T}${z}${z}setters:${C}[${u.map((x)=>x?`${A(["module"],{isAsync:!1,name:null})}{${T}${z}${z}${z}${x}${T}${z}${z}}`:N?"null":`${A([],{isAsync:!1,name:null})}{}`).join(`,${C}`)}],`:""}${T}`;I+=`${z}${z}execute:${C}(${S([],{isAsync:K,name:null})}{${T}${T}`;let j=`${z}${z}})${T}${z}}${g}${T}}));`;return Z.prepend(X+lZ(null,q,z,V,G,F,B)+UB(Q,z,V)),Z.append(`${W}${T}${T}`+jB(Q,z,V)+BB(Q,z,V)),Z.indent(`${z}${z}${z}`).append(j).prepend(I)}function WB(Z,q,J,{_:Q,cnst:Y,getObject:z,getPropertyAccess:X,n:V}){let W=[],K=[],G=null;for(let{imports:F,reexports:M}of Z){let B=[];if(F)for(let H of F)if(W.push(H.local),H.imported==="*")B.push(`${H.local}${Q}=${Q}module;`);else B.push(`${H.local}${Q}=${Q}module${X(H.imported)};`);if(M){let H=[],N=!1;for(let{imported:C,reexported:A}of M)if(A==="*")N=!0;else H.push([A,C==="*"?"module":`module${X(C)}`]);if(H.length>1||N){let C=z(H,{lineBreakIndent:null});if(N){if(!G)G=KB({dependencies:Z,exports:q});B.push(`${Y} setter${Q}=${Q}${C};`,`for${Q}(${Y} name in module)${Q}{`,`${J}if${Q}(!_starExcludes[name])${Q}setter[name]${Q}=${Q}module[name];`,"}","exports(setter);")}else B.push(`exports(${C});`)}else{let[C,A]=H[0];B.push(`exports('${C}',${Q}${A});`)}}K.push(B.join(`${V}${J}${J}${J}`))}return{importBindings:W,setters:K,starExcludes:G}}function oZ(Z,q,{_:J,n:Q}){if(Z.length===0)return"";if(Z.length===1)return`exports('${Z[0].name}',${J}${Z[0].value});${Q}${Q}`;return`exports({${Q}`+Z.map(({name:Y,value:z})=>`${q}${Y}:${J}${z}`).join(`,${Q}`)+`${Q}});${Q}${Q}`}function y9(Z,q,J){if(!Z)return"null";return`${q}${B4(Z,J)}`}function HB(Z,q,{_:J,getPropertyAccess:Q}){let Y=q;return Z.split(".").map((z)=>Y+=Q(z)).join(`${J}&&${J}`)}function MB(Z,{accessedGlobals:q,dependencies:J,exports:Q,hasExports:Y,id:z,indent:X,intro:V,namedExportsMode:W,outro:K,snippets:G,warn:F},{amd:M,compact:B,esModule:H,extend:N,externalLiveBindings:C,freeze:A,interop:S,name:T,namespaceToStringTag:g,globals:f,noConflict:u,strict:E}){let{_:R,cnst:P,getFunctionIntro:I,getNonArrowFunctionIntro:j,getPropertyAccess:x,n:k,s:y}=G,$=B?"f":"factory",L=B?"g":"global";if(Y&&!T)return Z1({code:"MISSING_NAME_OPTION_FOR_IIFE_EXPORT",message:'You must supply "output.name" for UMD bundles that have exports so that the exports are accessible in environments without a module loader.'});rZ(F,J);let l=J.map((W5)=>`'${f2(W5.id,M.forceJsExtensionForImports)}'`),v=J.map((W5)=>`require('${W5.id}')`),s=h2(J),o=s.map((W5)=>y9(W5.globalName,L,x)),Q1=s.map((W5)=>W5.name);if(W&&(Y||u))l.unshift("'exports'"),v.unshift("exports"),o.unshift(S9(T,L,f,`${N?`${y9(T,L,x)}${R}||${R}`:""}{}`,G)),Q1.unshift("exports");let N1=k2(M,z),O1=(N1?`'${N1}',${R}`:"")+(l.length?`[${l.join(`,${R}`)}],${R}`:""),w1=M.define,a=!W&&Y?`module.exports${R}=${R}`:"",m=E?`${R}'use strict';${k}`:"",M1;if(u){let W5=B?"e":"exports",h7;if(!W&&Y)h7=`${P} ${W5}${R}=${R}${S9(T,L,f,`${$}(${o.join(`,${R}`)})`,G)};`;else{let wW=o.shift();h7=`${P} ${W5}${R}=${R}${wW};${k}${X}${X}${$}(${[W5].concat(o).join(`,${R}`)});`}M1=`(${I([],{isAsync:!1,name:null})}{${k}${X}${X}${P} current${R}=${R}${HB(T,L,G)};${k}${X}${X}${h7}${k}${X}${X}${W5}.noConflict${R}=${R}${I([],{isAsync:!1,name:null})}{${R}${y9(T,L,x)}${R}=${R}current;${R}return ${W5}${y}${R}};${k}${X}})()`}else if(M1=`${$}(${o.join(`,${R}`)})`,!W&&Y)M1=S9(T,L,f,M1,G);let p=Y||u&&W||o.length>0,D=[$];if(p)D.unshift(L);let b=p?`this,${R}`:"",_=p?`(${L}${R}=${R}typeof globalThis${R}!==${R}'undefined'${R}?${R}globalThis${R}:${R}${L}${R}||${R}self,${R}`:"",h=p?")":"",c=p?`${X}typeof exports${R}===${R}'object'${R}&&${R}typeof module${R}!==${R}'undefined'${R}?${R}${a}${$}(${v.join(`,${R}`)})${R}:${k}`:"",r=`(${j(D,{isAsync:!1,name:null})}{${k}`+c+`${X}typeof ${w1}${R}===${R}'function'${R}&&${R}${w1}.amd${R}?${R}${w1}(${O1}${$})${R}:${k}${X}${_}${M1}${h};${k}})(${b}(${j(Q1,{isAsync:!1,name:null})}{${m}${k}`,e=k+k+"}));";Z.prepend(`${V}${J7(J,S,C,A,g,q,X,G)}`);let p1=Z7(Q,J,W,S,G,X,C),g1=q7(W&&Y,H,g,G);if(g1)g1=k+k+g1;return Z.append(`${p1}${g1}${K}`),Z.trim().indent(X).append(e).prepend(r)}class ZZ{constructor(Z,q){this.isOriginal=!0,this.filename=Z,this.content=q}traceSegment(Z,q,J){return{column:q,line:Z,name:J,source:this}}}class $0{constructor(Z,q){this.sources=q,this.names=Z.names,this.mappings=Z.mappings}traceMappings(){let Z=[],q=new Map,J=[],Q=[],Y=new Map,z=[];for(let X of this.mappings){let V=[];for(let W of X){if(W.length===1)continue;let K=this.sources[W[1]];if(!K)continue;let G=K.traceSegment(W[2],W[3],W.length===5?this.names[W[4]]:"");if(G){let{column:F,line:M,name:B,source:{content:H,filename:N}}=G,C=q.get(N);if(C===void 0)C=Z.length,Z.push(N),q.set(N,C),J[C]=H;else if(J[C]==null)J[C]=H;else if(H!=null&&J[C]!==H)return Z1({message:`Multiple conflicting contents for sourcemap source ${N}`});let A=[W[0],C,M,F];if(B){let S=Y.get(B);if(S===void 0)S=Q.length,Q.push(B),Y.set(B,S);A[4]=S}V.push(A)}}z.push(V)}return{mappings:z,names:Q,sources:Z,sourcesContent:J}}traceSegment(Z,q,J){let Q=this.mappings[Z];if(!Q)return null;let Y=0,z=Q.length-1;while(Y<=z){let X=Y+z>>1,V=Q[X];if(V[0]===q||Y===z){if(V.length==1)return null;let W=this.sources[V[1]];if(!W)return null;return W.traceSegment(V[2],V[3],V.length===5?this.names[V[4]]:J)}if(V[0]>q)z=X-1;else Y=X+1}return null}}function g2(Z){return function(J,Q){if(Q.mappings)return new $0(Q,[J]);return Z({code:"SOURCEMAP_BROKEN",message:`Sourcemap is likely to be incorrect: a plugin (${Q.plugin}) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,plugin:Q.plugin,url:"https://rollupjs.org/guide/en/#warning-sourcemap-is-likely-to-be-incorrect"}),new $0({mappings:[],names:[]},[J])}}function m2(Z,q,J,Q,Y){let z;if(!J)z=new ZZ(Z,q);else{let X=J.sources,V=J.sourcesContent||[],W=x5(Z)||".",K=J.sourceRoot||".",G=X.map((F,M)=>new ZZ($5(W,K,F),V[M]));z=new $0(J,G)}return Q.reduce(Y,z)}function LB(Z,q,J,Q,Y,z){let X=g2(z),V=J.filter((H)=>!H.excludeFromSourcemap).map((H)=>m2(H.id,H.originalCode,H.originalSourcemap,H.sourcemapChain,X)),W=new $0(q,V),K=Q.reduce(X,W),{sources:G,sourcesContent:F,names:M,mappings:B}=K.traceMappings();if(Z){let H=x5(Z);G=G.map((N)=>WZ(H,N)),Z=z8(Z)}return F=Y?null:F,new B0({file:Z,mappings:B,names:M,sources:G,sourcesContent:F})}function NB(Z,q,J,Q,Y){if(!Q.length)return J;return{version:3,...m2(Z,q,J,Q,g2(Y)).traceMappings()}}function OB(Z,q,J,Q,Y,z,X,V,W,K,G,F,M){let B=Z.slice().reverse();for(let H of B)H.scope.addUsedOutsideNames(Q,Y,G,F);RB(Q,B,M),wB[Y](Q,J,q,z,X,V,W,K);for(let H of B)H.scope.deconflict(Y,G,F)}function SQ(Z,q,J,Q,Y,z,X,V){for(let W of J.dependencies)if(Y||W instanceof D1)W.variableName=b5(W.suggestedVariableName,Z);for(let W of q){let{module:K,name:G}=W;if(W.isNamespace&&(Y||K instanceof D1))W.setRenderNames(null,(K instanceof D1?K:X.get(K)).variableName);else if(K instanceof D1&&G==="default")W.setRenderNames(null,b5([...K.exportedVariables].some(([F,M])=>M==="*"&&F.included)?K.suggestedVariableName+"__default":K.suggestedVariableName,Z));else W.setRenderNames(null,b5(G,Z))}for(let W of V)W.setRenderNames(null,b5(W.name,Z))}function V4(Z,q,{deconflictedDefault:J,deconflictedNamespace:Q,dependencies:Y},z,X,V,W){for(let K of Y)K.variableName=b5(K.suggestedVariableName,Z);for(let K of Q)K.namespaceVariableName=b5(`${K.suggestedVariableName}__namespace`,Z);for(let K of J)if(Q.has(K)&&Aj(String(z(K.id)),V))K.defaultVariableName=K.namespaceVariableName;else K.defaultVariableName=b5(`${K.suggestedVariableName}__default`,Z);for(let K of q){let G=K.module;if(G instanceof D1){let F=K.name;if(F==="default"){let M=String(z(G.id)),B=O0[M]?G.defaultVariableName:G.variableName;if(e4(M,V))K.setRenderNames(B,"default");else K.setRenderNames(null,B)}else if(F==="*")K.setRenderNames(null,R0[String(z(G.id))]?G.namespaceVariableName:G.variableName);else K.setRenderNames(G.variableName,null)}else{let F=W.get(G);if(X&&K.isNamespace)K.setRenderNames(null,F.exportMode==="default"?F.namespaceVariableName:F.variableName);else if(F.exportMode==="default")K.setRenderNames(null,F.variableName);else K.setRenderNames(F.variableName,F.getVariableExportName(K))}}}function RB(Z,q,J){for(let Q of q){for(let Y of Q.scope.variables.values())if(Y.included&&!(Y.renderBaseName||Y instanceof f5&&Y.getOriginalVariable()!==Y))Y.setRenderNames(null,b5(Y.name,Z));if(J.has(Q)){let Y=Q.namespace;Y.setRenderNames(null,b5(Y.name,Z))}}}function W4(Z){if(!Z.match(CB))return Z;return Z.replace(IB,"\\\\").replace(_B,"\\$1")}function DB(Z,q,J){let Q=0;for(let Y of Z){let[z]=Y.name;if(q.has(z))do if(z=a9(++Q),z.charCodeAt(0)===49)Q+=9*64**(z.length-1),z=a9(Q);while(g4.has(z)||q.has(z));q.set(z,Y),J.set(Y,[z])}}function TB(Z,q,J){for(let Q of Z){let Y=0,z=Q.name;while(q.has(z))z=Q.name+"$"+ ++Y;q.set(z,Q),J.set(Q,[z])}}function AB(Z,{exports:q,name:J,format:Q},Y,z,X){let V=Z.getExportNames();if(q==="default"){if(V.length!==1||V[0]!=="default")return Z1(oJ("default",V,z))}else if(q==="none"&&V.length)return Z1(oJ("none",V,z));if(q==="auto")if(V.length===0)q="none";else if(V.length===1&&V[0]==="default"){if(Q==="cjs"&&Y.has("exports"))X(zU(z));q="default"}else{if(Q!=="es"&&Q!=="system"&&V.includes("default"))X(qU(z,J));q="named"}return q}function PB(Z){let q=Z.split(`
|
|
22
|
-
`),J=q.filter((z)=>/^\t+/.test(z)),Q=q.filter((z)=>/^ {2,}/.test(z));if(J.length===0&&Q.length===0)return null;if(J.length>=Q.length)return"\t";let Y=Q.reduce((z,X)=>{let V=/^ +/.exec(X)[0].length;return Math.min(V,z)},1/0);return Array(Y+1).join(" ")}function SB(Z,q){if(q.indent!==!0)return q.indent;for(let J of Z){let Q=PB(J.originalCode);if(Q!==null)return Q}return"\t"}function yB(Z,q,J){let Q=[],Y=new Set;for(let X=q.length-1;X>=0;X--){let V=q[X];if(!Y.has(V)){let W=[];u2(V,W,Y,Z,J),Q.unshift(W)}}let z=new Set;for(let X of Q)for(let V of X)z.add(V);return z}function u2(Z,q,J,Q,Y){let z=Z.getDependenciesToBeIncluded();for(let X of z){if(X instanceof D1){q.push(X);continue}let V=Y.get(X);if(V!==Q){q.push(V);continue}if(!J.has(X))J.add(X),u2(X,q,J,Q,Y)}}function qZ(Z){if(!Z)return null;if(typeof Z==="string")Z=JSON.parse(Z);if(Z.mappings==="")return{mappings:[],names:[],sources:[],version:3};let q=typeof Z.mappings==="string"?L$(Z.mappings):Z.mappings;return{...Z,mappings:q}}function EB({code:Z,options:q,outputPluginDriver:J,renderChunk:Q,sourcemapChain:Y}){let z=(X,V,W)=>{if(V==null)return X;if(typeof V==="string")V={code:V,map:void 0};if(V.map!==null){let K=qZ(V.map);Y.push(K||{missing:!0,plugin:W.name})}return V.code};return J.hookReduceArg0("renderChunk",[Z,Q,q],z)}function H4(Z,q,J){if(d9(Z))return Z1(n5(`Invalid pattern "${Z}" for "${q}", patterns can be neither absolute nor relative paths. If you want your files to be stored in a subdirectory, write its name without a leading slash like this: subdirectory/pattern.`));return Z.replace(/\[(\w+)\]/g,(Q,Y)=>{if(!J.hasOwnProperty(Y))return Z1(n5(`"[${Y}]" is not a valid placeholder in "${q}" pattern.`));let z=J[Y]();if(d9(z))return Z1(n5(`Invalid substitution "${z}" for placeholder "[${Y}]" in "${q}" pattern, can be neither absolute nor relative path.`));return z})}function JZ(Z,{[tZ]:q}){if(!q.has(Z.toLowerCase()))return Z;let J=J8(Z);Z=Z.substring(0,Z.length-J.length);let Q,Y=1;while(q.has((Q=Z+ ++Y+J).toLowerCase()));return Q}function xB(Z,q,J,Q){let Y=typeof q==="function"?q(Z.id):q[Z.id];if(Y)return Y;if(J)return Q({code:"MISSING_GLOBAL_NAME",guess:Z.variableName,message:`No name was provided for external module '${Z.id}' in output.globals – guessing '${Z.variableName}'`,source:Z.id}),Z.variableName}class _8{constructor(Z,q,J,Q,Y,z,X,V,W,K){this.orderedModules=Z,this.inputOptions=q,this.outputOptions=J,this.unsetOptions=Q,this.pluginDriver=Y,this.modulesById=z,this.chunkByModule=X,this.facadeChunkByModule=V,this.includedNamespaces=W,this.manualChunkAlias=K,this.entryModules=[],this.exportMode="named",this.facadeModule=null,this.id=null,this.namespaceVariableName="",this.needsExportsShim=!1,this.variableName="",this.accessedGlobalsByScope=new Map,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicEntryModules=[],this.dynamicName=null,this.exportNamesByVariable=new Map,this.exports=new Set,this.exportsByName=new Map,this.fileName=null,this.implicitEntryModules=[],this.implicitlyLoadedBefore=new Set,this.imports=new Set,this.includedReexportsByModule=new Map,this.indentString=void 0,this.isEmpty=!0,this.name=null,this.renderedDependencies=null,this.renderedExports=null,this.renderedHash=void 0,this.renderedModuleSources=new Map,this.renderedModules=Object.create(null),this.renderedSource=null,this.sortedExportNames=null,this.strictFacade=!1,this.usedModules=void 0,this.execIndex=Z.length>0?Z[0].execIndex:1/0;let G=new Set(Z);for(let F of Z){if(F.namespace.included)W.add(F);if(this.isEmpty&&F.isIncluded())this.isEmpty=!1;if(F.info.isEntry||J.preserveModules)this.entryModules.push(F);for(let M of F.includedDynamicImporters)if(!G.has(M)){if(this.dynamicEntryModules.push(F),F.info.syntheticNamedExports&&!J.preserveModules)W.add(F),this.exports.add(F.namespace)}if(F.implicitlyLoadedAfter.size>0)this.implicitEntryModules.push(F)}this.suggestedVariableName=FZ(this.generateVariableName())}static generateFacade(Z,q,J,Q,Y,z,X,V,W,K){let G=new _8([],Z,q,J,Q,Y,z,X,V,null);if(G.assignFacadeName(K,W),!X.has(W))X.set(W,G);for(let F of W.getDependenciesToBeIncluded())G.dependencies.add(F instanceof A1?z.get(F):F);if(!G.dependencies.has(z.get(W))&&W.info.moduleSideEffects&&W.hasEffects())G.dependencies.add(z.get(W));return G.ensureReexportsAreAvailableForModule(W),G.facadeModule=W,G.strictFacade=!0,G}canModuleBeFacade(Z,q){let J=Z.getExportNamesByVariable();for(let Q of this.exports)if(!J.has(Q)){if(J.size===0&&Z.isUserDefinedEntryPoint&&Z.preserveSignature==="strict"&&this.unsetOptions.has("preserveEntrySignatures"))this.inputOptions.onwarn({code:"EMPTY_FACADE",id:Z.id,message:`To preserve the export signature of the entry module "${V1(Z.id)}", an empty facade chunk was created. This often happens when creating a bundle for a web app where chunks are placed in script tags and exports are ignored. In this case it is recommended to set "preserveEntrySignatures: false" to avoid this and reduce the number of chunks. Otherwise if this is intentional, set "preserveEntrySignatures: 'strict'" explicitly to silence this warning.`,url:"https://rollupjs.org/guide/en/#preserveentrysignatures"});return!1}for(let Q of q)if(!(J.has(Q)||Q.module===Z))return!1;return!0}generateExports(){this.sortedExportNames=null;let Z=new Set(this.exports);if(this.facadeModule!==null&&(this.facadeModule.preserveSignature!==!1||this.strictFacade)){let q=this.facadeModule.getExportNamesByVariable();for(let[J,Q]of q){this.exportNamesByVariable.set(J,[...Q]);for(let Y of Q)this.exportsByName.set(Y,J);Z.delete(J)}}if(this.outputOptions.minifyInternalExports)DB(Z,this.exportsByName,this.exportNamesByVariable);else TB(Z,this.exportsByName,this.exportNamesByVariable);if(this.outputOptions.preserveModules||this.facadeModule&&this.facadeModule.info.isEntry)this.exportMode=AB(this,this.outputOptions,this.unsetOptions,this.facadeModule.id,this.inputOptions.onwarn)}generateFacades(){var Z;let q=[],J=new Set([...this.entryModules,...this.implicitEntryModules]),Q=new Set(this.dynamicEntryModules.map(({namespace:Y})=>Y));for(let Y of J)if(Y.preserveSignature)for(let z of Y.getExportNamesByVariable().keys())Q.add(z);for(let Y of J){let z=Array.from(new Set(Y.chunkNames.filter(({isUserDefined:X})=>X).map(({name:X})=>X)),(X)=>({name:X}));if(z.length===0&&Y.isUserDefinedEntryPoint)z.push({});if(z.push(...Array.from(Y.chunkFileNames,(X)=>({fileName:X}))),z.length===0)z.push({});if(!this.facadeModule){let X=Y.preserveSignature==="strict"||Y.preserveSignature==="exports-only"&&Y.getExportNamesByVariable().size!==0;if(!X||this.outputOptions.preserveModules||this.canModuleBeFacade(Y,Q)){if(this.facadeModule=Y,this.facadeChunkByModule.set(Y,this),Y.preserveSignature)this.strictFacade=X;this.assignFacadeName(z.shift(),Y)}}for(let X of z)q.push(_8.generateFacade(this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.modulesById,this.chunkByModule,this.facadeChunkByModule,this.includedNamespaces,Y,X))}for(let Y of this.dynamicEntryModules){if(Y.info.syntheticNamedExports)continue;if(!this.facadeModule&&this.canModuleBeFacade(Y,Q))this.facadeModule=Y,this.facadeChunkByModule.set(Y,this),this.strictFacade=!0,this.dynamicName=E9(Y);else if(this.facadeModule===Y&&!this.strictFacade&&this.canModuleBeFacade(Y,Q))this.strictFacade=!0;else if(!((Z=this.facadeChunkByModule.get(Y))===null||Z===void 0?void 0:Z.strictFacade))this.includedNamespaces.add(Y),this.exports.add(Y.namespace)}if(!this.outputOptions.preserveModules)this.addNecessaryImportsForFacades();return q}generateId(Z,q,J,Q){if(this.fileName!==null)return this.fileName;let[Y,z]=this.facadeModule&&this.facadeModule.isUserDefinedEntryPoint?[q.entryFileNames,"output.entryFileNames"]:[q.chunkFileNames,"output.chunkFileNames"];return JZ(H4(typeof Y==="function"?Y(this.getChunkInfo()):Y,z,{format:()=>q.format,hash:()=>Q?this.computeContentHashWithDependencies(Z,q,J):"[hash]",name:()=>this.getChunkName()}),J)}generateIdPreserveModules(Z,q,J,Q){let[{id:Y}]=this.orderedModules,z=this.outputOptions.sanitizeFileName(Y.split(kB,1)[0]),X,V=Q.has("entryFileNames")?"[name][assetExtname].js":q.entryFileNames,W=typeof V==="function"?V(this.getChunkInfo()):V;if(V8(z)){let K=x5(z),G=J8(z),F=H4(W,"output.entryFileNames",{assetExtname:()=>yQ.includes(G)?"":G,ext:()=>G.substring(1),extname:()=>G,format:()=>q.format,name:()=>this.getChunkName()}),M=`${K}/${F}`,{preserveModulesRoot:B}=q;if(B&&$5(M).startsWith(B))X=M.slice(B.length).replace(/^[\\/]/,"");else X=jZ(Z,M)}else{let K=J8(z);X=`_virtual/${H4(W,"output.entryFileNames",{assetExtname:()=>yQ.includes(K)?"":K,ext:()=>K.substring(1),extname:()=>K,format:()=>q.format,name:()=>$4(z)})}`}return JZ(Y0(X),J)}getChunkInfo(){let Z=this.facadeModule,q=this.getChunkName.bind(this);return{exports:this.getExportNames(),facadeModuleId:Z&&Z.id,isDynamicEntry:this.dynamicEntryModules.length>0,isEntry:Z!==null&&Z.info.isEntry,isImplicitEntry:this.implicitEntryModules.length>0,modules:this.renderedModules,get name(){return q()},type:"chunk"}}getChunkInfoWithFileNames(){return Object.assign(this.getChunkInfo(),{code:void 0,dynamicImports:Array.from(this.dynamicDependencies,J6),fileName:this.id,implicitlyLoadedBefore:Array.from(this.implicitlyLoadedBefore,J6),importedBindings:this.getImportedBindingsPerDependency(),imports:Array.from(this.dependencies,J6),map:void 0,referencedFiles:this.getReferencedFiles()})}getChunkName(){var Z;return(Z=this.name)!==null&&Z!==void 0?Z:this.name=this.outputOptions.sanitizeFileName(this.getFallbackChunkName())}getExportNames(){var Z;return(Z=this.sortedExportNames)!==null&&Z!==void 0?Z:this.sortedExportNames=Array.from(this.exportsByName.keys()).sort()}getRenderedHash(){if(this.renderedHash)return this.renderedHash;let Z=y4(),q=this.pluginDriver.hookReduceValueSync("augmentChunkHash","",[this.getChunkInfo()],(J,Q)=>{if(Q)J+=Q;return J});return Z.update(q),Z.update(this.renderedSource.toString()),Z.update(this.getExportNames().map((J)=>{let Q=this.exportsByName.get(J);return`${V1(Q.module.id).replace(/\\/g,"/")}:${Q.name}:${J}`}).join(",")),this.renderedHash=Z.digest("hex")}getVariableExportName(Z){if(this.outputOptions.preserveModules&&Z instanceof q6)return"*";return this.exportNamesByVariable.get(Z)[0]}link(){this.dependencies=yB(this,this.orderedModules,this.chunkByModule);for(let Z of this.orderedModules)this.addDependenciesToChunk(Z.dynamicDependencies,this.dynamicDependencies),this.addDependenciesToChunk(Z.implicitlyLoadedBefore,this.implicitlyLoadedBefore),this.setUpChunkImportsAndExportsForModule(Z)}preRender(Z,q,J){let{_:Q,getPropertyAccess:Y,n:z}=J,X=new UZ({separator:`${z}${z}`});this.usedModules=[],this.indentString=SB(this.orderedModules,Z);let V={dynamicImportFunction:Z.dynamicImportFunction,exportNamesByVariable:this.exportNamesByVariable,format:Z.format,freeze:Z.freeze,indent:this.indentString,namespaceToStringTag:Z.namespaceToStringTag,outputPluginDriver:this.pluginDriver,snippets:J};if(Z.hoistTransitiveImports&&!this.outputOptions.preserveModules&&this.facadeModule!==null){for(let G of this.dependencies)if(G instanceof _8)this.inlineChunkDependencies(G)}this.prepareModulesForRendering(J),this.setIdentifierRenderResolutions(Z);let W="",K=this.renderedModules;for(let G of this.orderedModules){let F=0;if(G.isIncluded()||this.includedNamespaces.has(G)){let N=G.render(V).trim();if(F=N.length(),F){if(Z.compact&&N.lastLine().includes("//"))N.append(`
|
|
23
|
-
`);this.renderedModuleSources.set(
|
|
24
|
-
`)
|
|
25
|
-
`;return{code:
|
|
1
|
+
import{createRequire as iW}from"node:module";var hW=Object.create;var{getPrototypeOf:gW,defineProperty:jJ,getOwnPropertyNames:mW}=Object;var uW=Object.prototype.hasOwnProperty;function dW(Z){return this[Z]}var lW,cW,F8=(Z,J,q)=>{var Q=Z!=null&&typeof Z==="object";if(Q){var Y=J?lW??=new WeakMap:cW??=new WeakMap,X=Y.get(Z);if(X)return X}q=Z!=null?hW(gW(Z)):{};let z=J||!Z||!Z.__esModule?jJ(q,"default",{value:Z,enumerable:!0}):q;for(let V of mW(Z))if(!uW.call(z,V))jJ(z,V,{get:dW.bind(Z,V),enumerable:!0});if(Q)Y.set(Z,z);return z};var U1=(Z,J)=>()=>(J||Z((J={exports:{}}).exports,J),J.exports);var pW=(Z,J)=>()=>(Z&&(J=Z(Z=0)),J);var a1=iW(import.meta.url);var CJ=U1((uC,RJ)=>{var{builtinModules:MK}=a1("module"),HK=["sys"];RJ.exports=(MK||(process.binding?Object.keys(process.binding("natives")):[])||[]).filter((Z)=>!/^_|^(internal|v8|node-inspect)\/|\//.test(Z)&&!HK.includes(Z)).sort()});var _J=U1((dC,IJ)=>{var FK=CJ(),LK=new Set(FK);IJ.exports=(Z)=>{if(typeof Z!=="string")throw TypeError("Expected a string");if(Z.startsWith("node:"))Z=Z.slice(5);let J=Z.indexOf("/");if(J!==-1&&J!==Z.length-1)Z=Z.slice(0,J);return LK.has(Z)}});var PJ=U1((lC,AJ)=>{var wK=function(J){return OK(J)&&!NK(J)};function OK(Z){return!!Z&&typeof Z==="object"}function NK(Z){var J=Object.prototype.toString.call(Z);return J==="[object RegExp]"||J==="[object Date]"||IK(Z)}var RK=typeof Symbol==="function"&&Symbol.for,CK=RK?Symbol.for("react.element"):60103;function IK(Z){return Z.$$typeof===CK}function _K(Z){return Array.isArray(Z)?[]:{}}function b6(Z,J){return J.clone!==!1&&J.isMergeableObject(Z)?m8(_K(Z),Z,J):Z}function DK(Z,J,q){return Z.concat(J).map(function(Q){return b6(Q,q)})}function TK(Z,J){if(!J.customMerge)return m8;var q=J.customMerge(Z);return typeof q==="function"?q:m8}function AK(Z){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(Z).filter(function(J){return Object.propertyIsEnumerable.call(Z,J)}):[]}function DJ(Z){return Object.keys(Z).concat(AK(Z))}function TJ(Z,J){try{return J in Z}catch(q){return!1}}function PK(Z,J){return TJ(Z,J)&&!(Object.hasOwnProperty.call(Z,J)&&Object.propertyIsEnumerable.call(Z,J))}function SK(Z,J,q){var Q={};if(q.isMergeableObject(Z))DJ(Z).forEach(function(Y){Q[Y]=b6(Z[Y],q)});return DJ(J).forEach(function(Y){if(PK(Z,Y))return;if(TJ(Z,Y)&&q.isMergeableObject(J[Y]))Q[Y]=TK(Y,q)(Z[Y],J[Y],q);else Q[Y]=b6(J[Y],q)}),Q}function m8(Z,J,q){q=q||{},q.arrayMerge=q.arrayMerge||DK,q.isMergeableObject=q.isMergeableObject||wK,q.cloneUnlessOtherwiseSpecified=b6;var Q=Array.isArray(J),Y=Array.isArray(Z),X=Q===Y;if(!X)return b6(J,q);else if(Q)return q.arrayMerge(Z,J,q);else return SK(Z,J,q)}m8.all=function(J,q){if(!Array.isArray(J))throw Error("first argument should be an array");return J.reduce(function(Q,Y){return m8(Q,Y,q)},{})};var yK=m8;AJ.exports=yK});var yJ=U1((cC,SJ)=>{var EK=/(?:^\s*|[}{\(\);,\n]\s*)(import\s+['"]|(import|module)\s+[^"'\(\)\n;]+\s+from\s+['"]|export\s+(\*|\{|default|function|var|const|let|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*))/,bK=/(?:^\s*|[}{\(\);,\n]\s*)(export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)"))/;SJ.exports=function(Z){return EK.test(Z)||bK.test(Z)}});var o7=U1((pC,EJ)=>{var xK=a1("os");EJ.exports=xK.homedir||function(){var J=process.env.HOME,q=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;if(process.platform==="win32")return process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||J||null;if(process.platform==="darwin")return J||(q?"/Users/"+q:null);if(process.platform==="linux")return J||(process.getuid()===0?"/root":q?"/home/"+q:null);return J||null}});var t7=U1((iC,bJ)=>{bJ.exports=function(){var Z=Error.prepareStackTrace;Error.prepareStackTrace=function(q,Q){return Q};var J=Error().stack;return Error.prepareStackTrace=Z,J[2].getFileName()}});var xJ=U1((nC,x6)=>{var kK=process.platform==="win32",fK=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,e7={};function vK(Z){return fK.exec(Z).slice(1)}e7.parse=function(Z){if(typeof Z!=="string")throw TypeError("Parameter 'pathString' must be a string, not "+typeof Z);var J=vK(Z);if(!J||J.length!==5)throw TypeError("Invalid path '"+Z+"'");return{root:J[1],dir:J[0]===J[1]?J[0]:J[0].slice(0,-1),base:J[2],ext:J[4],name:J[3]}};var hK=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,Z9={};function gK(Z){return hK.exec(Z).slice(1)}Z9.parse=function(Z){if(typeof Z!=="string")throw TypeError("Parameter 'pathString' must be a string, not "+typeof Z);var J=gK(Z);if(!J||J.length!==5)throw TypeError("Invalid path '"+Z+"'");return{root:J[1],dir:J[0].slice(0,-1),base:J[2],ext:J[4],name:J[3]}};if(kK)x6.exports=e7.parse;else x6.exports=Z9.parse;x6.exports.posix=Z9.parse;x6.exports.win32=e7.parse});var J9=U1((aC,hJ)=>{var vJ=a1("path"),kJ=vJ.parse||xJ(),mK=/^([A-Za-z]:)/,uK=/^\\\\/,fJ=function(J,q){var Q="/";if(mK.test(J))Q="";else if(uK.test(J))Q="\\\\";var Y=[J],X=kJ(J);while(X.dir!==Y[Y.length-1])Y.push(X.dir),X=kJ(X.dir);return Y.reduce(function(z,V){return z.concat(q.map(function(W){return vJ.resolve(Q,V,W)}))},[])};hJ.exports=function(J,q,Q){var Y=q&&q.moduleDirectory?[].concat(q.moduleDirectory):["node_modules"];if(q&&typeof q.paths==="function")return q.paths(Q,J,function(){return fJ(J,Y)},q);var X=fJ(J,Y);return q&&q.paths?X.concat(q.paths):X}});var q9=U1((sC,gJ)=>{gJ.exports=function(Z,J){return J||{}}});var dJ=U1((rC,uJ)=>{var dK="Function.prototype.bind called on incompatible ",lK=Object.prototype.toString,cK=Math.max,pK="[object Function]",mJ=function(J,q){var Q=[];for(var Y=0;Y<J.length;Y+=1)Q[Y]=J[Y];for(var X=0;X<q.length;X+=1)Q[X+J.length]=q[X];return Q},iK=function(J,q){var Q=[];for(var Y=q||0,X=0;Y<J.length;Y+=1,X+=1)Q[X]=J[Y];return Q},nK=function(Z,J){var q="";for(var Q=0;Q<Z.length;Q+=1)if(q+=Z[Q],Q+1<Z.length)q+=J;return q};uJ.exports=function(J){var q=this;if(typeof q!=="function"||lK.apply(q)!==pK)throw TypeError(dK+q);var Q=iK(arguments,1),Y,X=function(){if(this instanceof Y){var $=q.apply(this,mJ(Q,arguments));if(Object($)===$)return $;return this}return q.apply(J,mJ(Q,arguments))},z=cK(0,q.length-Q.length),V=[];for(var W=0;W<z;W++)V[W]="$"+W;if(Y=Function("binder","return function ("+nK(V,",")+"){ return binder.apply(this,arguments); }")(X),q.prototype){var K=function(){};K.prototype=q.prototype,Y.prototype=new K,K.prototype=null}return Y}});var cJ=U1((oC,lJ)=>{var aK=dJ();lJ.exports=Function.prototype.bind||aK});var iJ=U1((tC,pJ)=>{var sK=Function.prototype.call,rK=Object.prototype.hasOwnProperty,oK=cJ();pJ.exports=oK.call(sK,rK)});var nJ=U1((eC,tK)=>{tK.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":[">= 22.13 && < 23",">= 23.4"],_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var k6=U1((ZI,rJ)=>{var eK=iJ();function Z$(Z,J){var q=Z.split("."),Q=J.split(" "),Y=Q.length>1?Q[0]:"=",X=(Q.length>1?Q[1]:Q[0]).split(".");for(var z=0;z<3;++z){var V=parseInt(q[z]||0,10),W=parseInt(X[z]||0,10);if(V===W)continue;if(Y==="<")return V<W;if(Y===">=")return V>=W;return!1}return Y===">="}function aJ(Z,J){var q=J.split(/ ?&& ?/);if(q.length===0)return!1;for(var Q=0;Q<q.length;++Q)if(!Z$(Z,q[Q]))return!1;return!0}function J$(Z,J){if(typeof J==="boolean")return J;var q=typeof Z>"u"?process.versions&&process.versions.node:Z;if(typeof q!=="string")throw TypeError(typeof Z>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(J&&typeof J==="object"){for(var Q=0;Q<J.length;++Q)if(aJ(q,J[Q]))return!0;return!1}return aJ(q,J)}var sJ=nJ();rJ.exports=function(J,q){return eK(sJ,J)&&J$(q,sJ[J])}});var eJ=U1((JI,tJ)=>{var w8=a1("fs"),q$=o7(),g1=a1("path"),Q$=t7(),Y$=J9(),X$=q9(),z$=k6(),V$=process.platform!=="win32"&&w8.realpath&&typeof w8.realpath.native==="function"?w8.realpath.native:w8.realpath,W$=/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/,K$=/^\w:[/\\]*$/,$$=/[/\\]node_modules[/\\]*$/,oJ=q$(),G$=function(){return[g1.join(oJ,".node_modules"),g1.join(oJ,".node_libraries")]},U$=function(J,q){w8.stat(J,function(Q,Y){if(!Q)return q(null,Y.isFile()||Y.isFIFO());if(Q.code==="ENOENT"||Q.code==="ENOTDIR")return q(null,!1);return q(Q)})},j$=function(J,q){w8.stat(J,function(Q,Y){if(!Q)return q(null,Y.isDirectory());if(Q.code==="ENOENT"||Q.code==="ENOTDIR")return q(null,!1);return q(Q)})},B$=function(J,q){V$(J,function(Q,Y){if(Q&&Q.code!=="ENOENT")q(Q);else q(null,Q?J:Y)})},f6=function(J,q,Q,Y){if(Q&&Q.preserveSymlinks===!1)J(q,Y);else Y(null,q)},M$=function(J,q,Q){J(q,function(Y,X){if(Y)Q(Y);else try{var z=JSON.parse(X);Q(null,z)}catch(V){Q(null)}})},H$=function(J,q,Q){var Y=Y$(q,Q,J);for(var X=0;X<Y.length;X++)Y[X]=g1.join(Y[X],J);return Y};tJ.exports=function(J,q,Q){var Y=Q,X=q;if(typeof q==="function")Y=X,X={};if(typeof J!=="string"){var z=TypeError("Path must be a string.");return process.nextTick(function(){Y(z)})}X=X$(J,X);var V=X.isFile||U$,W=X.isDirectory||j$,K=X.readFile||w8.readFile,$=X.realpath||B$,H=X.readPackage||M$;if(X.readFile&&X.readPackage){var M=TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){Y(M)})}var O=X.packageIterator,j=X.extensions||[".js"],L=X.includeCoreModules!==!1,I=X.basedir||g1.dirname(Q$()),y=X.filename||I;X.paths=X.paths||G$();var _=g1.resolve(I);f6($,_,X,function(B,b){if(B)Y(B);else g(b)});var T;function g(B){if(W$.test(J)){if(T=g1.resolve(B,J),J==="."||J===".."||J.slice(-1)==="/")T+="/";if(J.slice(-1)==="/"&&T===B)N(T,X.package,h);else u(T,X.package,h)}else if(L&&z$(J))return Y(null,J);else A(J,B,function(b,k,S){if(b)Y(b);else if(k)return f6($,k,X,function(F,d){if(F)Y(F);else Y(null,d,S)});else{var G=Error("Cannot find module '"+J+"' from '"+y+"'");G.code="MODULE_NOT_FOUND",Y(G)}})}function h(B,b,k){if(B)Y(B);else if(b)Y(null,b,k);else N(T,function(S,G,F){if(S)Y(S);else if(G)f6($,G,X,function(f,o){if(f)Y(f);else Y(null,o,F)});else{var d=Error("Cannot find module '"+J+"' from '"+y+"'");d.code="MODULE_NOT_FOUND",Y(d)}})}function u(B,b,k){var S=b,G=k;if(typeof S==="function")G=S,S=void 0;var F=[""].concat(j);d(F,B,S);function d(f,o,t){if(f.length===0)return G(null,void 0,t);var Q1=o+f[0],N1=t;if(N1)R1(null,N1);else E(g1.dirname(Q1),R1);function R1(s,m,L1){if(N1=m,s)return G(s);if(L1&&N1&&X.pathFilter){var p=g1.relative(L1,Q1),D=p.slice(0,p.length-f[0].length),x=X.pathFilter(N1,o,D);if(x)return d([""].concat(j.slice()),g1.resolve(L1,x),N1)}V(Q1,F1)}function F1(s,m){if(s)return G(s);if(m)return G(null,Q1,N1);d(f.slice(1),o,N1)}}}function E(B,b){if(B===""||B==="/")return b(null);if(process.platform==="win32"&&K$.test(B))return b(null);if($$.test(B))return b(null);f6($,B,X,function(k,S){if(k)return E(g1.dirname(B),b);var G=g1.join(S,"package.json");V(G,function(F,d){if(!d)return E(g1.dirname(B),b);H(K,G,function(f,o){if(f)b(f);var t=o;if(t&&X.packageFilter)t=X.packageFilter(t,G);b(null,t,B)})})})}function N(B,b,k){var S=k,G=b;if(typeof G==="function")S=G,G=X.package;f6($,B,X,function(F,d){if(F)return S(F);var f=g1.join(d,"package.json");V(f,function(o,t){if(o)return S(o);if(!t)return u(g1.join(B,"index"),G,S);H(K,f,function(Q1,N1){if(Q1)return S(Q1);var R1=N1;if(R1&&X.packageFilter)R1=X.packageFilter(R1,f);if(R1&&R1.main){if(typeof R1.main!=="string"){var F1=TypeError("package “"+R1.name+"” `main` must be a string");return F1.code="INVALID_PACKAGE_MAIN",S(F1)}if(R1.main==="."||R1.main==="./")R1.main="index";u(g1.resolve(B,R1.main),R1,function(s,m,L1){if(s)return S(s);if(m)return S(null,m,L1);if(!L1)return u(g1.join(B,"index"),L1,S);var p=g1.resolve(B,L1.main);N(p,L1,function(D,x,C){if(D)return S(D);if(x)return S(null,x,C);u(g1.join(B,"index"),C,S)})});return}u(g1.join(B,"/index"),R1,S)})})})}function P(B,b){if(b.length===0)return B(null,void 0);var k=b[0];W(g1.dirname(k),S);function S(d,f){if(d)return B(d);if(!f)return P(B,b.slice(1));u(k,X.package,G)}function G(d,f,o){if(d)return B(d);if(f)return B(null,f,o);N(k,X.package,F)}function F(d,f,o){if(d)return B(d);if(f)return B(null,f,o);P(B,b.slice(1))}}function A(B,b,k){var S=function(){return H$(B,b,X)};P(k,O?O(B,b,S,X):S())}}});var Zq=U1((qI,F$)=>{F$.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":[">= 22.13 && < 23",">= 23.4"],_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Yq=U1((QI,Qq)=>{var L$=k6(),Jq=Zq(),qq={};for(v6 in Jq)if(Object.prototype.hasOwnProperty.call(Jq,v6))qq[v6]=L$(v6);var v6;Qq.exports=qq});var zq=U1((YI,Xq)=>{var w$=k6();Xq.exports=function(J){return w$(J)}});var Kq=U1((XI,Wq)=>{var O$=k6(),O8=a1("fs"),t1=a1("path"),N$=o7(),R$=t7(),C$=J9(),I$=q9(),_$=process.platform!=="win32"&&O8.realpathSync&&typeof O8.realpathSync.native==="function"?O8.realpathSync.native:O8.realpathSync,D$=/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/,T$=/^\w:[/\\]*$/,A$=/[/\\]node_modules[/\\]*$/,Vq=N$(),P$=function(){return[t1.join(Vq,".node_modules"),t1.join(Vq,".node_libraries")]},S$=function(J){try{var q=O8.statSync(J,{throwIfNoEntry:!1})}catch(Q){if(Q&&(Q.code==="ENOENT"||Q.code==="ENOTDIR"))return!1;throw Q}return!!q&&(q.isFile()||q.isFIFO())},y$=function(J){try{var q=O8.statSync(J,{throwIfNoEntry:!1})}catch(Q){if(Q&&(Q.code==="ENOENT"||Q.code==="ENOTDIR"))return!1;throw Q}return!!q&&q.isDirectory()},E$=function(J){try{return _$(J)}catch(q){if(q.code!=="ENOENT")throw q}return J},h6=function(J,q,Q){if(Q&&Q.preserveSymlinks===!1)return J(q);return q},b$=function(J,q){var Q=J(q);try{var Y=JSON.parse(Q);return Y}catch(X){}},x$=function(J,q,Q){var Y=C$(q,Q,J);for(var X=0;X<Y.length;X++)Y[X]=t1.join(Y[X],J);return Y};Wq.exports=function(J,q){if(typeof J!=="string")throw TypeError("Path must be a string.");var Q=I$(J,q),Y=Q.isFile||S$,X=Q.readFileSync||O8.readFileSync,z=Q.isDirectory||y$,V=Q.realpathSync||E$,W=Q.readPackageSync||b$;if(Q.readFileSync&&Q.readPackageSync)throw TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var K=Q.packageIterator,$=Q.extensions||[".js"],H=Q.includeCoreModules!==!1,M=Q.basedir||t1.dirname(R$()),O=Q.filename||M;Q.paths=Q.paths||P$();var j=h6(V,t1.resolve(M),Q);if(D$.test(J)){var L=t1.resolve(j,J);if(J==="."||J===".."||J.slice(-1)==="/")L+="/";var I=T(L)||h(L);if(I)return h6(V,I,Q)}else if(H&&O$(J))return J;else{var y=u(J,j);if(y)return h6(V,y,Q)}var _=Error("Cannot find module '"+J+"' from '"+O+"'");throw _.code="MODULE_NOT_FOUND",_;function T(E){var N=g(t1.dirname(E));if(N&&N.dir&&N.pkg&&Q.pathFilter){var P=t1.relative(N.dir,E),A=Q.pathFilter(N.pkg,E,P);if(A)E=t1.resolve(N.dir,A)}if(Y(E))return E;for(var B=0;B<$.length;B++){var b=E+$[B];if(Y(b))return b}}function g(E){if(E===""||E==="/")return;if(process.platform==="win32"&&T$.test(E))return;if(A$.test(E))return;var N=t1.join(h6(V,E,Q),"package.json");if(!Y(N))return g(t1.dirname(E));var P=W(X,N);if(P&&Q.packageFilter)P=Q.packageFilter(P,E);return{pkg:P,dir:E}}function h(E){var N=t1.join(h6(V,E,Q),"/package.json");if(Y(N)){try{var P=W(X,N)}catch(k){}if(P&&Q.packageFilter)P=Q.packageFilter(P,E);if(P&&P.main){if(typeof P.main!=="string"){var A=TypeError("package “"+P.name+"” `main` must be a string");throw A.code="INVALID_PACKAGE_MAIN",A}if(P.main==="."||P.main==="./")P.main="index";try{var B=T(t1.resolve(E,P.main));if(B)return B;var b=h(t1.resolve(E,P.main));if(b)return b}catch(k){}}}return T(t1.join(E,"/index"))}function u(E,N){var P=function(){return x$(E,N,Q)},A=K?K(E,N,P,Q):P();for(var B=0;B<A.length;B++){var b=A[B];if(z(t1.dirname(b))){var k=T(b);if(k)return k;var S=h(b);if(S)return S}}}}});var Gq=U1((zI,$q)=>{var e0=eJ();e0.core=Yq();e0.isCore=zq();e0.sync=Kq();$q.exports=e0});var g6=U1((VI,jq)=>{var k$=a1("path"),Uq={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},f$={...Uq,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"},v$={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};jq.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:v$,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:k$.sep,extglobChars(Z){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${Z.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(Z){return Z===!0?f$:Uq}}});var Z4=U1((c$)=>{var h$=a1("path"),g$=process.platform==="win32",{REGEX_BACKSLASH:m$,REGEX_REMOVE_BACKSLASH:u$,REGEX_SPECIAL_CHARS:d$,REGEX_SPECIAL_CHARS_GLOBAL:l$}=g6();c$.isObject=(Z)=>Z!==null&&typeof Z==="object"&&!Array.isArray(Z);c$.hasRegexChars=(Z)=>d$.test(Z);c$.isRegexChar=(Z)=>Z.length===1&&c$.hasRegexChars(Z);c$.escapeRegex=(Z)=>Z.replace(l$,"\\$1");c$.toPosixSlashes=(Z)=>Z.replace(m$,"/");c$.removeBackslashes=(Z)=>{return Z.replace(u$,(J)=>{return J==="\\"?"":J})};c$.supportsLookbehinds=()=>{let Z=process.version.slice(1).split(".").map(Number);if(Z.length===3&&Z[0]>=9||Z[0]===8&&Z[1]>=10)return!0;return!1};c$.isWindows=(Z)=>{if(Z&&typeof Z.windows==="boolean")return Z.windows;return g$===!0||h$.sep==="\\"};c$.escapeLast=(Z,J,q)=>{let Q=Z.lastIndexOf(J,q);if(Q===-1)return Z;if(Z[Q-1]==="\\")return c$.escapeLast(Z,J,Q-1);return`${Z.slice(0,Q)}\\${Z.slice(Q)}`};c$.removePrefix=(Z,J={})=>{let q=Z;if(q.startsWith("./"))q=q.slice(2),J.prefix="./";return q};c$.wrapOutput=(Z,J={},q={})=>{let Q=q.contains?"":"^",Y=q.contains?"":"$",X=`${Q}(?:${Z})${Y}`;if(J.negated===!0)X=`(?:^(?!${X}).*$)`;return X}});var Cq=U1((KI,Rq)=>{var Hq=Z4(),{CHAR_ASTERISK:Q9,CHAR_AT:ZG,CHAR_BACKWARD_SLASH:m6,CHAR_COMMA:JG,CHAR_DOT:Y9,CHAR_EXCLAMATION_MARK:X9,CHAR_FORWARD_SLASH:Nq,CHAR_LEFT_CURLY_BRACE:z9,CHAR_LEFT_PARENTHESES:V9,CHAR_LEFT_SQUARE_BRACKET:qG,CHAR_PLUS:QG,CHAR_QUESTION_MARK:Fq,CHAR_RIGHT_CURLY_BRACE:YG,CHAR_RIGHT_PARENTHESES:Lq,CHAR_RIGHT_SQUARE_BRACKET:XG}=g6(),wq=(Z)=>{return Z===Nq||Z===m6},Oq=(Z)=>{if(Z.isPrefix!==!0)Z.depth=Z.isGlobstar?1/0:1},zG=(Z,J)=>{let q=J||{},Q=Z.length-1,Y=q.parts===!0||q.scanToEnd===!0,X=[],z=[],V=[],W=Z,K=-1,$=0,H=0,M=!1,O=!1,j=!1,L=!1,I=!1,y=!1,_=!1,T=!1,g=!1,h=!1,u=0,E,N,P={value:"",depth:0,isGlob:!1},A=()=>K>=Q,B=()=>W.charCodeAt(K+1),b=()=>{return E=N,W.charCodeAt(++K)};while(K<Q){N=b();let d;if(N===m6){if(_=P.backslashes=!0,N=b(),N===z9)y=!0;continue}if(y===!0||N===z9){u++;while(A()!==!0&&(N=b())){if(N===m6){_=P.backslashes=!0,b();continue}if(N===z9){u++;continue}if(y!==!0&&N===Y9&&(N=b())===Y9){if(M=P.isBrace=!0,j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(y!==!0&&N===JG){if(M=P.isBrace=!0,j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===YG){if(u--,u===0){y=!1,M=P.isBrace=!0,h=!0;break}}}if(Y===!0)continue;break}if(N===Nq){if(X.push(K),z.push(P),P={value:"",depth:0,isGlob:!1},h===!0)continue;if(E===Y9&&K===$+1){$+=2;continue}H=K+1;continue}if(q.noext!==!0){if((N===QG||N===ZG||N===Q9||N===Fq||N===X9)===!0&&B()===V9){if(j=P.isGlob=!0,L=P.isExtglob=!0,h=!0,N===X9&&K===$)g=!0;if(Y===!0){while(A()!==!0&&(N=b())){if(N===m6){_=P.backslashes=!0,N=b();continue}if(N===Lq){j=P.isGlob=!0,h=!0;break}}continue}break}}if(N===Q9){if(E===Q9)I=P.isGlobstar=!0;if(j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===Fq){if(j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===qG){while(A()!==!0&&(d=b())){if(d===m6){_=P.backslashes=!0,b();continue}if(d===XG){O=P.isBracket=!0,j=P.isGlob=!0,h=!0;break}}if(Y===!0)continue;break}if(q.nonegate!==!0&&N===X9&&K===$){T=P.negated=!0,$++;continue}if(q.noparen!==!0&&N===V9){if(j=P.isGlob=!0,Y===!0){while(A()!==!0&&(N=b())){if(N===V9){_=P.backslashes=!0,N=b();continue}if(N===Lq){h=!0;break}}continue}break}if(j===!0){if(h=!0,Y===!0)continue;break}}if(q.noext===!0)L=!1,j=!1;let k=W,S="",G="";if($>0)S=W.slice(0,$),W=W.slice($),H-=$;if(k&&j===!0&&H>0)k=W.slice(0,H),G=W.slice(H);else if(j===!0)k="",G=W;else k=W;if(k&&k!==""&&k!=="/"&&k!==W){if(wq(k.charCodeAt(k.length-1)))k=k.slice(0,-1)}if(q.unescape===!0){if(G)G=Hq.removeBackslashes(G);if(k&&_===!0)k=Hq.removeBackslashes(k)}let F={prefix:S,input:Z,start:$,base:k,glob:G,isBrace:M,isBracket:O,isGlob:j,isExtglob:L,isGlobstar:I,negated:T,negatedExtglob:g};if(q.tokens===!0){if(F.maxDepth=0,!wq(N))z.push(P);F.tokens=z}if(q.parts===!0||q.tokens===!0){let d;for(let f=0;f<X.length;f++){let o=d?d+1:$,t=X[f],Q1=Z.slice(o,t);if(q.tokens){if(f===0&&$!==0)z[f].isPrefix=!0,z[f].value=S;else z[f].value=Q1;Oq(z[f]),F.maxDepth+=z[f].depth}if(f!==0||Q1!=="")V.push(Q1);d=t}if(d&&d+1<Z.length){let f=Z.slice(d+1);if(V.push(f),q.tokens)z[z.length-1].value=f,Oq(z[z.length-1]),F.maxDepth+=z[z.length-1].depth}F.slashes=X,F.parts=V}return F};Rq.exports=zG});var Aq=U1(($I,Tq)=>{var u6=g6(),e1=Z4(),{MAX_LENGTH:J4,POSIX_REGEX_SOURCE:VG,REGEX_NON_SPECIAL_CHARS:WG,REGEX_SPECIAL_CHARS_BACKREF:KG,REPLACEMENTS:Iq}=u6,$G=(Z,J)=>{if(typeof J.expandRange==="function")return J.expandRange(...Z,J);Z.sort();let q=`[${Z.join("-")}]`;try{new RegExp(q)}catch(Q){return Z.map((Y)=>e1.escapeRegex(Y)).join("..")}return q},u8=(Z,J)=>{return`Missing ${Z}: "${J}" - use "\\\\${J}" to match literal characters`},_q=(Z)=>{let J=[],q=0,Q=0,Y=0,X="",z=!1;for(let V of Z){if(z===!0){X+=V,z=!1;continue}if(V==="\\"){X+=V,z=!0;continue}if(V==='"'){Y=Y===1?0:1,X+=V;continue}if(Y===0){if(V==="[")q++;else if(V==="]"&&q>0)q--;else if(q===0){if(V==="(")Q++;else if(V===")"&&Q>0)Q--;else if(V==="|"&&Q===0){J.push(X),X="";continue}}}X+=V}return J.push(X),J},GG=(Z)=>{let J=!1;for(let q of Z){if(J===!0){J=!1;continue}if(q==="\\"){J=!0;continue}if(/[?*+@!()[\]{}]/.test(q))return!1}return!0},Dq=(Z)=>{let J=Z.trim(),q=!0;while(q===!0)if(q=!1,/^@\([^\\()[\]{}|]+\)$/.test(J))J=J.slice(2,-1),q=!0;if(!GG(J))return;return J.replace(/\\(.)/g,"$1")},UG=(Z)=>{let J=Z.map(Dq).filter(Boolean);for(let q=0;q<J.length;q++)for(let Q=q+1;Q<J.length;Q++){let Y=J[q],X=J[Q],z=Y[0];if(!z||Y!==z.repeat(Y.length)||X!==z.repeat(X.length))continue;if(Y===X||Y.startsWith(X)||X.startsWith(Y))return!0}return!1},W9=(Z,J=!0)=>{if(Z[0]!=="+"&&Z[0]!=="*"||Z[1]!=="(")return;let q=0,Q=0,Y=0,X=!1;for(let z=1;z<Z.length;z++){let V=Z[z];if(X===!0){X=!1;continue}if(V==="\\"){X=!0;continue}if(V==='"'){Y=Y===1?0:1;continue}if(Y===1)continue;if(V==="["){q++;continue}if(V==="]"&&q>0){q--;continue}if(q>0)continue;if(V==="("){Q++;continue}if(V===")"){if(Q--,Q===0){if(J===!0&&z!==Z.length-1)return;return{type:Z[0],body:Z.slice(2,z),end:z}}}}},jG=(Z)=>{let J=0,q=[];while(J<Z.length){let Y=W9(Z.slice(J),!1);if(!Y||Y.type!=="*")return;let X=_q(Y.body).map((V)=>V.trim());if(X.length!==1)return;let z=Dq(X[0]);if(!z||z.length!==1)return;q.push(z),J+=Y.end+1}if(q.length<1)return;return`${q.length===1?e1.escapeRegex(q[0]):`[${q.map((Y)=>e1.escapeRegex(Y)).join("")}]`}*`},BG=(Z)=>{let J=0,q=Z.trim(),Q=W9(q);while(Q)J++,q=Q.body.trim(),Q=W9(q);return J},MG=(Z,J)=>{if(J.maxExtglobRecursion===!1)return{risky:!1};let q=typeof J.maxExtglobRecursion==="number"?J.maxExtglobRecursion:u6.DEFAULT_MAX_EXTGLOB_RECURSION,Q=_q(Z).map((Y)=>Y.trim());if(Q.length>1){if(Q.some((Y)=>Y==="")||Q.some((Y)=>/^[*?]+$/.test(Y))||UG(Q))return{risky:!0}}for(let Y of Q){let X=jG(Y);if(X)return{risky:!0,safeOutput:X};if(BG(Y)>q)return{risky:!0}}return{risky:!1}},K9=(Z,J)=>{if(typeof Z!=="string")throw TypeError("Expected a string");Z=Iq[Z]||Z;let q={...J},Q=typeof q.maxLength==="number"?Math.min(J4,q.maxLength):J4,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);let X={type:"bos",value:"",output:q.prepend||""},z=[X],V=q.capture?"":"?:",W=e1.isWindows(J),K=u6.globChars(W),$=u6.extglobChars(K),{DOT_LITERAL:H,PLUS_LITERAL:M,SLASH_LITERAL:O,ONE_CHAR:j,DOTS_SLASH:L,NO_DOT:I,NO_DOT_SLASH:y,NO_DOTS_SLASH:_,QMARK:T,QMARK_NO_DOT:g,STAR:h,START_ANCHOR:u}=K,E=(D)=>{return`(${V}(?:(?!${u}${D.dot?L:H}).)*?)`},N=q.dot?"":I,P=q.dot?T:g,A=q.bash===!0?E(q):h;if(q.capture)A=`(${A})`;if(typeof q.noext==="boolean")q.noextglob=q.noext;let B={input:Z,index:-1,start:0,dot:q.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:z};Z=e1.removePrefix(Z,B),Y=Z.length;let b=[],k=[],S=[],G=X,F,d=()=>B.index===Y-1,f=B.peek=(D=1)=>Z[B.index+D],o=B.advance=()=>Z[++B.index]||"",t=()=>Z.slice(B.index+1),Q1=(D="",x=0)=>{B.consumed+=D,B.index+=x},N1=(D)=>{B.output+=D.output!=null?D.output:D.value,Q1(D.value)},R1=()=>{let D=1;while(f()==="!"&&(f(2)!=="("||f(3)==="?"))o(),B.start++,D++;if(D%2===0)return!1;return B.negated=!0,B.start++,!0},F1=(D)=>{B[D]++,S.push(D)},s=(D)=>{B[D]--,S.pop()},m=(D)=>{if(G.type==="globstar"){let x=B.braces>0&&(D.type==="comma"||D.type==="brace"),C=D.extglob===!0||b.length&&(D.type==="pipe"||D.type==="paren");if(D.type!=="slash"&&D.type!=="paren"&&!x&&!C)B.output=B.output.slice(0,-G.output.length),G.type="star",G.value="*",G.output=A,B.output+=G.output}if(b.length&&D.type!=="paren")b[b.length-1].inner+=D.value;if(D.value||D.output)N1(D);if(G&&G.type==="text"&&D.type==="text"){G.value+=D.value,G.output=(G.output||"")+D.value;return}D.prev=G,z.push(D),G=D},L1=(D,x)=>{let C={...$[x],conditions:1,inner:""};C.prev=G,C.parens=B.parens,C.output=B.output,C.startIndex=B.index,C.tokensIndex=z.length;let v=(q.capture?"(":"")+C.open;F1("parens"),m({type:D,value:x,output:B.output?"":j}),m({type:"paren",extglob:!0,value:o(),output:v}),b.push(C)},p=(D)=>{let x=Z.slice(D.startIndex,B.index+1),C=Z.slice(D.startIndex+2,B.index),v=MG(C,q);if((D.type==="plus"||D.type==="star")&&v.risky){let i=v.safeOutput?(D.output?"":j)+(q.capture?`(${v.safeOutput})`:v.safeOutput):void 0,B1=z[D.tokensIndex];B1.type="text",B1.value=x,B1.output=i||e1.escapeRegex(x);for(let _1=D.tokensIndex+1;_1<z.length;_1++)z[_1].value="",z[_1].output="",delete z[_1].suffix;B.output=D.output+B1.output,B.backtrack=!0,m({type:"paren",extglob:!0,value:F,output:""}),s("parens");return}let c=D.close+(q.capture?")":""),n;if(D.type==="negate"){let i=A;if(D.inner&&D.inner.length>1&&D.inner.includes("/"))i=E(q);if(i!==A||d()||/^\)+$/.test(t()))c=D.close=`)$))${i}`;if(D.inner.includes("*")&&(n=t())&&/^\.[^\\/.]+$/.test(n)){let B1=K9(n,{...J,fastpaths:!1}).output;c=D.close=`)${B1})${i})`}if(D.prev.type==="bos")B.negatedExtglob=!0}m({type:"paren",extglob:!0,value:F,output:c}),s("parens")};if(q.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let D=!1,x=Z.replace(KG,(C,v,c,n,i,B1)=>{if(n==="\\")return D=!0,C;if(n==="?"){if(v)return v+n+(i?T.repeat(i.length):"");if(B1===0)return P+(i?T.repeat(i.length):"");return T.repeat(c.length)}if(n===".")return H.repeat(c.length);if(n==="*"){if(v)return v+n+(i?A:"");return A}return v?C:`\\${C}`});if(D===!0)if(q.unescape===!0)x=x.replace(/\\/g,"");else x=x.replace(/\\+/g,(C)=>{return C.length%2===0?"\\\\":C?"\\":""});if(x===Z&&q.contains===!0)return B.output=Z,B;return B.output=e1.wrapOutput(x,B,J),B}while(!d()){if(F=o(),F==="\x00")continue;if(F==="\\"){let C=f();if(C==="/"&&q.bash!==!0)continue;if(C==="."||C===";")continue;if(!C){F+="\\",m({type:"text",value:F});continue}let v=/^\\+/.exec(t()),c=0;if(v&&v[0].length>2){if(c=v[0].length,B.index+=c,c%2!==0)F+="\\"}if(q.unescape===!0)F=o();else F+=o();if(B.brackets===0){m({type:"text",value:F});continue}}if(B.brackets>0&&(F!=="]"||G.value==="["||G.value==="[^")){if(q.posix!==!1&&F===":"){let C=G.value.slice(1);if(C.includes("[")){if(G.posix=!0,C.includes(":")){let v=G.value.lastIndexOf("["),c=G.value.slice(0,v),n=G.value.slice(v+2),i=VG[n];if(i){if(G.value=c+i,B.backtrack=!0,o(),!X.output&&z.indexOf(G)===1)X.output=j;continue}}}}if(F==="["&&f()!==":"||F==="-"&&f()==="]")F=`\\${F}`;if(F==="]"&&(G.value==="["||G.value==="[^"))F=`\\${F}`;if(q.posix===!0&&F==="!"&&G.value==="[")F="^";G.value+=F,N1({value:F});continue}if(B.quotes===1&&F!=='"'){F=e1.escapeRegex(F),G.value+=F,N1({value:F});continue}if(F==='"'){if(B.quotes=B.quotes===1?0:1,q.keepQuotes===!0)m({type:"text",value:F});continue}if(F==="("){F1("parens"),m({type:"paren",value:F});continue}if(F===")"){if(B.parens===0&&q.strictBrackets===!0)throw SyntaxError(u8("opening","("));let C=b[b.length-1];if(C&&B.parens===C.parens+1){p(b.pop());continue}m({type:"paren",value:F,output:B.parens?")":"\\)"}),s("parens");continue}if(F==="["){if(q.nobracket===!0||!t().includes("]")){if(q.nobracket!==!0&&q.strictBrackets===!0)throw SyntaxError(u8("closing","]"));F=`\\${F}`}else F1("brackets");m({type:"bracket",value:F});continue}if(F==="]"){if(q.nobracket===!0||G&&G.type==="bracket"&&G.value.length===1){m({type:"text",value:F,output:`\\${F}`});continue}if(B.brackets===0){if(q.strictBrackets===!0)throw SyntaxError(u8("opening","["));m({type:"text",value:F,output:`\\${F}`});continue}s("brackets");let C=G.value.slice(1);if(G.posix!==!0&&C[0]==="^"&&!C.includes("/"))F=`/${F}`;if(G.value+=F,N1({value:F}),q.literalBrackets===!1||e1.hasRegexChars(C))continue;let v=e1.escapeRegex(G.value);if(B.output=B.output.slice(0,-G.value.length),q.literalBrackets===!0){B.output+=v,G.value=v;continue}G.value=`(${V}${v}|${G.value})`,B.output+=G.value;continue}if(F==="{"&&q.nobrace!==!0){F1("braces");let C={type:"brace",value:F,output:"(",outputIndex:B.output.length,tokensIndex:B.tokens.length};k.push(C),m(C);continue}if(F==="}"){let C=k[k.length-1];if(q.nobrace===!0||!C){m({type:"text",value:F,output:F});continue}let v=")";if(C.dots===!0){let c=z.slice(),n=[];for(let i=c.length-1;i>=0;i--){if(z.pop(),c[i].type==="brace")break;if(c[i].type!=="dots")n.unshift(c[i].value)}v=$G(n,q),B.backtrack=!0}if(C.comma!==!0&&C.dots!==!0){let c=B.output.slice(0,C.outputIndex),n=B.tokens.slice(C.tokensIndex);C.value=C.output="\\{",F=v="\\}",B.output=c;for(let i of n)B.output+=i.output||i.value}m({type:"brace",value:F,output:v}),s("braces"),k.pop();continue}if(F==="|"){if(b.length>0)b[b.length-1].conditions++;m({type:"text",value:F});continue}if(F===","){let C=F,v=k[k.length-1];if(v&&S[S.length-1]==="braces")v.comma=!0,C="|";m({type:"comma",value:F,output:C});continue}if(F==="/"){if(G.type==="dot"&&B.index===B.start+1){B.start=B.index+1,B.consumed="",B.output="",z.pop(),G=X;continue}m({type:"slash",value:F,output:O});continue}if(F==="."){if(B.braces>0&&G.type==="dot"){if(G.value===".")G.output=H;let C=k[k.length-1];G.type="dots",G.output+=F,G.value+=F,C.dots=!0;continue}if(B.braces+B.parens===0&&G.type!=="bos"&&G.type!=="slash"){m({type:"text",value:F,output:H});continue}m({type:"dot",value:F,output:H});continue}if(F==="?"){if(!(G&&G.value==="(")&&q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("qmark",F);continue}if(G&&G.type==="paren"){let v=f(),c=F;if(v==="<"&&!e1.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(G.value==="("&&!/[!=<:]/.test(v)||v==="<"&&!/<([!=]|\w+>)/.test(t()))c=`\\${F}`;m({type:"text",value:F,output:c});continue}if(q.dot!==!0&&(G.type==="slash"||G.type==="bos")){m({type:"qmark",value:F,output:g});continue}m({type:"qmark",value:F,output:T});continue}if(F==="!"){if(q.noextglob!==!0&&f()==="("){if(f(2)!=="?"||!/[!=<:]/.test(f(3))){L1("negate",F);continue}}if(q.nonegate!==!0&&B.index===0){R1();continue}}if(F==="+"){if(q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("plus",F);continue}if(G&&G.value==="("||q.regex===!1){m({type:"plus",value:F,output:M});continue}if(G&&(G.type==="bracket"||G.type==="paren"||G.type==="brace")||B.parens>0){m({type:"plus",value:F});continue}m({type:"plus",value:M});continue}if(F==="@"){if(q.noextglob!==!0&&f()==="("&&f(2)!=="?"){m({type:"at",extglob:!0,value:F,output:""});continue}m({type:"text",value:F});continue}if(F!=="*"){if(F==="$"||F==="^")F=`\\${F}`;let C=WG.exec(t());if(C)F+=C[0],B.index+=C[0].length;m({type:"text",value:F});continue}if(G&&(G.type==="globstar"||G.star===!0)){G.type="star",G.star=!0,G.value+=F,G.output=A,B.backtrack=!0,B.globstar=!0,Q1(F);continue}let D=t();if(q.noextglob!==!0&&/^\([^?]/.test(D)){L1("star",F);continue}if(G.type==="star"){if(q.noglobstar===!0){Q1(F);continue}let C=G.prev,v=C.prev,c=C.type==="slash"||C.type==="bos",n=v&&(v.type==="star"||v.type==="globstar");if(q.bash===!0&&(!c||D[0]&&D[0]!=="/")){m({type:"star",value:F,output:""});continue}let i=B.braces>0&&(C.type==="comma"||C.type==="brace"),B1=b.length&&(C.type==="pipe"||C.type==="paren");if(!c&&C.type!=="paren"&&!i&&!B1){m({type:"star",value:F,output:""});continue}while(D.slice(0,3)==="/**"){let _1=Z[B.index+4];if(_1&&_1!=="/")break;D=D.slice(3),Q1("/**",3)}if(C.type==="bos"&&d()){G.type="globstar",G.value+=F,G.output=E(q),B.output=G.output,B.globstar=!0,Q1(F);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&!n&&d()){B.output=B.output.slice(0,-(C.output+G.output).length),C.output=`(?:${C.output}`,G.type="globstar",G.output=E(q)+(q.strictSlashes?")":"|$)"),G.value+=F,B.globstar=!0,B.output+=C.output+G.output,Q1(F);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&D[0]==="/"){let _1=D[1]!==void 0?"|$":"";B.output=B.output.slice(0,-(C.output+G.output).length),C.output=`(?:${C.output}`,G.type="globstar",G.output=`${E(q)}${O}|${O}${_1})`,G.value+=F,B.output+=C.output+G.output,B.globstar=!0,Q1(F+o()),m({type:"slash",value:"/",output:""});continue}if(C.type==="bos"&&D[0]==="/"){G.type="globstar",G.value+=F,G.output=`(?:^|${O}|${E(q)}${O})`,B.output=G.output,B.globstar=!0,Q1(F+o()),m({type:"slash",value:"/",output:""});continue}B.output=B.output.slice(0,-G.output.length),G.type="globstar",G.output=E(q),G.value+=F,B.output+=G.output,B.globstar=!0,Q1(F);continue}let x={type:"star",value:F,output:A};if(q.bash===!0){if(x.output=".*?",G.type==="bos"||G.type==="slash")x.output=N+x.output;m(x);continue}if(G&&(G.type==="bracket"||G.type==="paren")&&q.regex===!0){x.output=F,m(x);continue}if(B.index===B.start||G.type==="slash"||G.type==="dot"){if(G.type==="dot")B.output+=y,G.output+=y;else if(q.dot===!0)B.output+=_,G.output+=_;else B.output+=N,G.output+=N;if(f()!=="*")B.output+=j,G.output+=j}m(x)}while(B.brackets>0){if(q.strictBrackets===!0)throw SyntaxError(u8("closing","]"));B.output=e1.escapeLast(B.output,"["),s("brackets")}while(B.parens>0){if(q.strictBrackets===!0)throw SyntaxError(u8("closing",")"));B.output=e1.escapeLast(B.output,"("),s("parens")}while(B.braces>0){if(q.strictBrackets===!0)throw SyntaxError(u8("closing","}"));B.output=e1.escapeLast(B.output,"{"),s("braces")}if(q.strictSlashes!==!0&&(G.type==="star"||G.type==="bracket"))m({type:"maybe_slash",value:"",output:`${O}?`});if(B.backtrack===!0){B.output="";for(let D of B.tokens)if(B.output+=D.output!=null?D.output:D.value,D.suffix)B.output+=D.suffix}return B};K9.fastpaths=(Z,J)=>{let q={...J},Q=typeof q.maxLength==="number"?Math.min(J4,q.maxLength):J4,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);Z=Iq[Z]||Z;let X=e1.isWindows(J),{DOT_LITERAL:z,SLASH_LITERAL:V,ONE_CHAR:W,DOTS_SLASH:K,NO_DOT:$,NO_DOTS:H,NO_DOTS_SLASH:M,STAR:O,START_ANCHOR:j}=u6.globChars(X),L=q.dot?H:$,I=q.dot?M:$,y=q.capture?"":"?:",_={negated:!1,prefix:""},T=q.bash===!0?".*?":O;if(q.capture)T=`(${T})`;let g=(N)=>{if(N.noglobstar===!0)return T;return`(${y}(?:(?!${j}${N.dot?K:z}).)*?)`},h=(N)=>{switch(N){case"*":return`${L}${W}${T}`;case".*":return`${z}${W}${T}`;case"*.*":return`${L}${T}${z}${W}${T}`;case"*/*":return`${L}${T}${V}${W}${I}${T}`;case"**":return L+g(q);case"**/*":return`(?:${L}${g(q)}${V})?${I}${W}${T}`;case"**/*.*":return`(?:${L}${g(q)}${V})?${I}${T}${z}${W}${T}`;case"**/.*":return`(?:${L}${g(q)}${V})?${z}${W}${T}`;default:{let P=/^(.*?)\.(\w+)$/.exec(N);if(!P)return;let A=h(P[1]);if(!A)return;return A+z+P[2]}}},u=e1.removePrefix(Z,_),E=h(u);if(E&&q.strictSlashes!==!0)E+=`${V}?`;return E};Tq.exports=K9});var Sq=U1((GI,Pq)=>{var HG=a1("path"),FG=Cq(),$9=Aq(),G9=Z4(),LG=g6(),wG=(Z)=>Z&&typeof Z==="object"&&!Array.isArray(Z),k1=(Z,J,q=!1)=>{if(Array.isArray(Z)){let $=Z.map((M)=>k1(M,J,q));return(M)=>{for(let O of $){let j=O(M);if(j)return j}return!1}}let Q=wG(Z)&&Z.tokens&&Z.input;if(Z===""||typeof Z!=="string"&&!Q)throw TypeError("Expected pattern to be a non-empty string");let Y=J||{},X=G9.isWindows(J),z=Q?k1.compileRe(Z,J):k1.makeRe(Z,J,!1,!0),V=z.state;delete z.state;let W=()=>!1;if(Y.ignore){let $={...J,ignore:null,onMatch:null,onResult:null};W=k1(Y.ignore,$,q)}let K=($,H=!1)=>{let{isMatch:M,match:O,output:j}=k1.test($,z,J,{glob:Z,posix:X}),L={glob:Z,state:V,regex:z,posix:X,input:$,output:j,match:O,isMatch:M};if(typeof Y.onResult==="function")Y.onResult(L);if(M===!1)return L.isMatch=!1,H?L:!1;if(W($)){if(typeof Y.onIgnore==="function")Y.onIgnore(L);return L.isMatch=!1,H?L:!1}if(typeof Y.onMatch==="function")Y.onMatch(L);return H?L:!0};if(q)K.state=V;return K};k1.test=(Z,J,q,{glob:Q,posix:Y}={})=>{if(typeof Z!=="string")throw TypeError("Expected input to be a string");if(Z==="")return{isMatch:!1,output:""};let X=q||{},z=X.format||(Y?G9.toPosixSlashes:null),V=Z===Q,W=V&&z?z(Z):Z;if(V===!1)W=z?z(Z):Z,V=W===Q;if(V===!1||X.capture===!0)if(X.matchBase===!0||X.basename===!0)V=k1.matchBase(Z,J,q,Y);else V=J.exec(W);return{isMatch:Boolean(V),match:V,output:W}};k1.matchBase=(Z,J,q,Q=G9.isWindows(q))=>{return(J instanceof RegExp?J:k1.makeRe(J,q)).test(HG.basename(Z))};k1.isMatch=(Z,J,q)=>k1(J,q)(Z);k1.parse=(Z,J)=>{if(Array.isArray(Z))return Z.map((q)=>k1.parse(q,J));return $9(Z,{...J,fastpaths:!1})};k1.scan=(Z,J)=>FG(Z,J);k1.compileRe=(Z,J,q=!1,Q=!1)=>{if(q===!0)return Z.output;let Y=J||{},X=Y.contains?"":"^",z=Y.contains?"":"$",V=`${X}(?:${Z.output})${z}`;if(Z&&Z.negated===!0)V=`^(?!${V}).*$`;let W=k1.toRegex(V,J);if(Q===!0)W.state=Z;return W};k1.makeRe=(Z,J={},q=!1,Q=!1)=>{if(!Z||typeof Z!=="string")throw TypeError("Expected a non-empty string");let Y={negated:!1,fastpaths:!0};if(J.fastpaths!==!1&&(Z[0]==="."||Z[0]==="*"))Y.output=$9.fastpaths(Z,J);if(!Y.output)Y=$9(Z,J);return k1.compileRe(Y,J,q,Q)};k1.toRegex=(Z,J)=>{try{let q=J||{};return new RegExp(Z,q.flags||(q.nocase?"i":""))}catch(q){if(J&&J.debug===!0)throw q;return/$^/}};k1.constants=LG;Pq.exports=k1});import GZ,{resolve as U5,basename as z8,extname as Q8,dirname as f5,relative as UZ,win32 as CI,posix as II,isAbsolute as _I,join as nG}from"path";import jZ from"process";import{performance as K2}from"perf_hooks";import{createHash as aG}from"crypto";import{promises as D8}from"fs";import{EventEmitter as sG}from"events";function rG(Z){var J=[],q=[],Q=[0,0,0,0,0],Y=0;for(var X=0,z=0,V=0;X<Z.length;X++){var W=Z.charCodeAt(X);if(W===44)N9(q,Q,Y),Y=0;else if(W===59)N9(q,Q,Y),Y=0,J.push(q),q=[],Q[0]=0;else{var K=$2[W];if(K===void 0)throw Error("Invalid character ("+String.fromCharCode(W)+")");var $=K&32;if(K&=31,V+=K<<z,$)z+=5;else{var H=V&1;if(V>>>=1,H)V=V===0?-2147483648:-V;Q[Y]+=V,Y++,V=z=0}}}return N9(q,Q,Y),J.push(q),J}function N9(Z,J,q){if(q===4)Z.push([J[0],J[1],J[2],J[3]]);else if(q===5)Z.push([J[0],J[1],J[2],J[3],J[4]]);else if(q===1)Z.push([J[0]])}function oG(Z){var J=0,q=0,Q=0,Y=0,X="";for(var z=0;z<Z.length;z++){var V=Z[z];if(z>0)X+=";";if(V.length===0)continue;var W=0,K=[];for(var $=0,H=V;$<H.length;$++){var M=H[$],O=l6(M[0]-W);if(W=M[0],M.length>1)O+=l6(M[1]-J)+l6(M[2]-q)+l6(M[3]-Q),J=M[1],q=M[2],Q=M[3];if(M.length===5)O+=l6(M[4]-Y),Y=M[4];K.push(O)}X+=K.join(",")}return X}function l6(Z){var J="";Z=Z<0?-Z<<1|1:Z<<1;do{var q=Z&31;if(Z>>>=5,Z>0)q|=32;J+=u9[q]}while(Z>0);return J}class R4{constructor(Z){this.bits=Z instanceof R4?Z.bits.slice():[]}add(Z){this.bits[Z>>5]|=1<<(Z&31)}has(Z){return!!(this.bits[Z>>5]&1<<(Z&31))}}class q0{constructor(Z,J,q){this.start=Z,this.end=J,this.original=q,this.intro="",this.outro="",this.content=q,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})}appendLeft(Z){this.outro+=Z}appendRight(Z){this.intro=this.intro+Z}clone(){let Z=new q0(this.start,this.end,this.original);return Z.intro=this.intro,Z.outro=this.outro,Z.content=this.content,Z.storeName=this.storeName,Z.edited=this.edited,Z}contains(Z){return this.start<Z&&Z<this.end}eachNext(Z){let J=this;while(J)Z(J),J=J.next}eachPrevious(Z){let J=this;while(J)Z(J),J=J.previous}edit(Z,J,q){if(this.content=Z,!q)this.intro="",this.outro="";return this.storeName=J,this.edited=!0,this}prependLeft(Z){this.outro=Z+this.outro}prependRight(Z){this.intro=Z+this.intro}split(Z){let J=Z-this.start,q=this.original.slice(0,J),Q=this.original.slice(J);this.original=q;let Y=new q0(Z,this.end,Q);if(Y.outro=this.outro,this.outro="",this.end=Z,this.edited)Y.edit("",!1),this.content="";else this.content=q;if(Y.next=this.next,Y.next)Y.next.previous=Y;return Y.previous=this,this.next=Y,Y}toString(){return this.intro+this.content+this.outro}trimEnd(Z){if(this.outro=this.outro.replace(Z,""),this.outro.length)return!0;let J=this.content.replace(Z,"");if(J.length){if(J!==this.content)this.split(this.start+J.length).edit("",void 0,!0);return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(Z,""),this.intro.length)return!0}trimStart(Z){if(this.intro=this.intro.replace(Z,""),this.intro.length)return!0;let J=this.content.replace(Z,"");if(J.length){if(J!==this.content)this.split(this.end-J.length),this.edit("",void 0,!0);return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(Z,""),this.outro.length)return!0}}class H0{constructor(Z){this.version=3,this.file=Z.file,this.sources=Z.sources,this.sourcesContent=Z.sourcesContent,this.names=Z.names,this.mappings=oG(Z.mappings)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+d9(this.toString())}}function tG(Z){let J=Z.split(`
|
|
2
|
+
`),q=J.filter((X)=>/^\t+/.test(X)),Q=J.filter((X)=>/^ {2,}/.test(X));if(q.length===0&&Q.length===0)return null;if(q.length>=Q.length)return"\t";let Y=Q.reduce((X,z)=>{let V=/^ +/.exec(z)[0].length;return Math.min(V,X)},1/0);return Array(Y+1).join(" ")}function G2(Z,J){let q=Z.split(/[/\\]/),Q=J.split(/[/\\]/);q.pop();while(q[0]===Q[0])q.shift(),Q.shift();if(q.length){let Y=q.length;while(Y--)q[Y]=".."}return q.concat(Q).join("/")}function U2(Z){return eG.call(Z)==="[object Object]"}function l9(Z){let J=Z.split(`
|
|
3
|
+
`),q=[];for(let Q=0,Y=0;Q<J.length;Q++)q.push(Y),Y+=J[Q].length+1;return function(Y){let X=0,z=q.length;while(X<z){let K=X+z>>1;if(Y<q[K])z=K;else X=K+1}let V=X-1,W=Y-q[V];return{line:V,column:W}}}class MZ{constructor(Z){this.hires=Z,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(Z,J,q,Q){if(J.length){let Y=[this.generatedCodeColumn,Z,q.line,q.column];if(Q>=0)Y.push(Q);this.rawSegments.push(Y)}else if(this.pending)this.rawSegments.push(this.pending);this.advance(J),this.pending=null}addUneditedChunk(Z,J,q,Q,Y){let X=J.start,z=!0;while(X<J.end){if(this.hires||z||Y.has(X))this.rawSegments.push([this.generatedCodeColumn,Z,Q.line,Q.column]);if(q[X]===`
|
|
4
|
+
`)Q.line+=1,Q.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,z=!0;else Q.column+=1,this.generatedCodeColumn+=1,z=!1;X+=1}this.pending=null}advance(Z){if(!Z)return;let J=Z.split(`
|
|
5
|
+
`);if(J.length>1){for(let q=0;q<J.length-1;q++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=J[J.length-1].length}}class P8{constructor(Z,J={}){let q=new q0(0,Z.length,Z);Object.defineProperties(this,{original:{writable:!0,value:Z},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:q},lastChunk:{writable:!0,value:q},lastSearchedChunk:{writable:!0,value:q},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:J.filename},indentExclusionRanges:{writable:!0,value:J.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new R4},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:tG(Z)}}),this.byStart[0]=q,this.byEnd[Z.length]=q}addSourcemapLocation(Z){this.sourcemapLocations.add(Z)}append(Z){if(typeof Z!=="string")throw TypeError("outro content must be a string");return this.outro+=Z,this}appendLeft(Z,J){if(typeof J!=="string")throw TypeError("inserted content must be a string");this._split(Z);let q=this.byEnd[Z];if(q)q.appendLeft(J);else this.intro+=J;return this}appendRight(Z,J){if(typeof J!=="string")throw TypeError("inserted content must be a string");this._split(Z);let q=this.byStart[Z];if(q)q.appendRight(J);else this.outro+=J;return this}clone(){let Z=new P8(this.original,{filename:this.filename}),J=this.firstChunk,q=Z.firstChunk=Z.lastSearchedChunk=J.clone();while(J){Z.byStart[q.start]=q,Z.byEnd[q.end]=q;let Q=J.next,Y=Q&&Q.clone();if(Y)q.next=Y,Y.previous=q,q=Y;J=Q}if(Z.lastChunk=q,this.indentExclusionRanges)Z.indentExclusionRanges=this.indentExclusionRanges.slice();return Z.sourcemapLocations=new R4(this.sourcemapLocations),Z.intro=this.intro,Z.outro=this.outro,Z}generateDecodedMap(Z){Z=Z||{};let J=0,q=Object.keys(this.storedNames),Q=new MZ(Z.hires),Y=l9(this.original);if(this.intro)Q.advance(this.intro);return this.firstChunk.eachNext((X)=>{let z=Y(X.start);if(X.intro.length)Q.advance(X.intro);if(X.edited)Q.addEdit(J,X.content,z,X.storeName?q.indexOf(X.original):-1);else Q.addUneditedChunk(J,X,this.original,z,this.sourcemapLocations);if(X.outro.length)Q.advance(X.outro)}),{file:Z.file?Z.file.split(/[/\\]/).pop():null,sources:[Z.source?G2(Z.file||"",Z.source):null],sourcesContent:Z.includeContent?[this.original]:[null],names:q,mappings:Q.raw}}generateMap(Z){return new H0(this.generateDecodedMap(Z))}getIndentString(){return this.indentStr===null?"\t":this.indentStr}indent(Z,J){let q=/^[^\r\n]/gm;if(U2(Z))J=Z,Z=void 0;if(Z=Z!==void 0?Z:this.indentStr||"\t",Z==="")return this;J=J||{};let Q={};if(J.exclude)(typeof J.exclude[0]==="number"?[J.exclude]:J.exclude).forEach((K)=>{for(let $=K[0];$<K[1];$+=1)Q[$]=!0});let Y=J.indentStart!==!1,X=(W)=>{if(Y)return`${Z}${W}`;return Y=!0,W};this.intro=this.intro.replace(q,X);let z=0,V=this.firstChunk;while(V){let W=V.end;if(V.edited){if(!Q[z]){if(V.content=V.content.replace(q,X),V.content.length)Y=V.content[V.content.length-1]===`
|
|
6
|
+
`}}else{z=V.start;while(z<W){if(!Q[z]){let K=this.original[z];if(K===`
|
|
7
|
+
`)Y=!0;else if(K!=="\r"&&Y)if(Y=!1,z===V.start)V.prependRight(Z);else this._splitChunk(V,z),V=V.next,V.prependRight(Z)}z+=1}}z=V.end,V=V.next}return this.outro=this.outro.replace(q,X),this}insert(){throw Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(Z,J){if(!n8.insertLeft)console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),n8.insertLeft=!0;return this.appendLeft(Z,J)}insertRight(Z,J){if(!n8.insertRight)console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),n8.insertRight=!0;return this.prependRight(Z,J)}move(Z,J,q){if(q>=Z&&q<=J)throw Error("Cannot move a selection inside itself");this._split(Z),this._split(J),this._split(q);let Q=this.byStart[Z],Y=this.byEnd[J],X=Q.previous,z=Y.next,V=this.byStart[q];if(!V&&Y===this.lastChunk)return this;let W=V?V.previous:this.lastChunk;if(X)X.next=z;if(z)z.previous=X;if(W)W.next=Q;if(V)V.previous=Y;if(!Q.previous)this.firstChunk=Y.next;if(!Y.next)this.lastChunk=Q.previous,this.lastChunk.next=null;if(Q.previous=W,Y.next=V||null,!W)this.firstChunk=Q;if(!V)this.lastChunk=Y;return this}overwrite(Z,J,q,Q){if(typeof q!=="string")throw TypeError("replacement content must be a string");while(Z<0)Z+=this.original.length;while(J<0)J+=this.original.length;if(J>this.original.length)throw Error("end is out of bounds");if(Z===J)throw Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");if(this._split(Z),this._split(J),Q===!0){if(!n8.storeName)console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),n8.storeName=!0;Q={storeName:!0}}let Y=Q!==void 0?Q.storeName:!1,X=Q!==void 0?Q.contentOnly:!1;if(Y){let W=this.original.slice(Z,J);Object.defineProperty(this.storedNames,W,{writable:!0,value:!0,enumerable:!0})}let z=this.byStart[Z],V=this.byEnd[J];if(z){let W=z;while(W!==V){if(W.next!==this.byStart[W.end])throw Error("Cannot overwrite across a split point");W=W.next,W.edit("",!1)}z.edit(q,Y,X)}else{let W=new q0(Z,J,"").edit(q,Y);V.next=W,W.previous=V}return this}prepend(Z){if(typeof Z!=="string")throw TypeError("outro content must be a string");return this.intro=Z+this.intro,this}prependLeft(Z,J){if(typeof J!=="string")throw TypeError("inserted content must be a string");this._split(Z);let q=this.byEnd[Z];if(q)q.prependLeft(J);else this.intro=J+this.intro;return this}prependRight(Z,J){if(typeof J!=="string")throw TypeError("inserted content must be a string");this._split(Z);let q=this.byStart[Z];if(q)q.prependRight(J);else this.outro=J+this.outro;return this}remove(Z,J){while(Z<0)Z+=this.original.length;while(J<0)J+=this.original.length;if(Z===J)return this;if(Z<0||J>this.original.length)throw Error("Character is out of bounds");if(Z>J)throw Error("end must be greater than start");this._split(Z),this._split(J);let q=this.byStart[Z];while(q)q.intro="",q.outro="",q.edit(""),q=J>q.end?this.byStart[q.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let Z=this.lastChunk;do{if(Z.outro.length)return Z.outro[Z.outro.length-1];if(Z.content.length)return Z.content[Z.content.length-1];if(Z.intro.length)return Z.intro[Z.intro.length-1]}while(Z=Z.previous);if(this.intro.length)return this.intro[this.intro.length-1];return""}lastLine(){let Z=this.outro.lastIndexOf(c6);if(Z!==-1)return this.outro.substr(Z+1);let J=this.outro,q=this.lastChunk;do{if(q.outro.length>0){if(Z=q.outro.lastIndexOf(c6),Z!==-1)return q.outro.substr(Z+1)+J;J=q.outro+J}if(q.content.length>0){if(Z=q.content.lastIndexOf(c6),Z!==-1)return q.content.substr(Z+1)+J;J=q.content+J}if(q.intro.length>0){if(Z=q.intro.lastIndexOf(c6),Z!==-1)return q.intro.substr(Z+1)+J;J=q.intro+J}}while(q=q.previous);if(Z=this.intro.lastIndexOf(c6),Z!==-1)return this.intro.substr(Z+1)+J;return this.intro+J}slice(Z=0,J=this.original.length){while(Z<0)Z+=this.original.length;while(J<0)J+=this.original.length;let q="",Q=this.firstChunk;while(Q&&(Q.start>Z||Q.end<=Z)){if(Q.start<J&&Q.end>=J)return q;Q=Q.next}if(Q&&Q.edited&&Q.start!==Z)throw Error(`Cannot use replaced character ${Z} as slice start anchor.`);let Y=Q;while(Q){if(Q.intro&&(Y!==Q||Q.start===Z))q+=Q.intro;let X=Q.start<J&&Q.end>=J;if(X&&Q.edited&&Q.end!==J)throw Error(`Cannot use replaced character ${J} as slice end anchor.`);let z=Y===Q?Z-Q.start:0,V=X?Q.content.length+J-Q.end:Q.content.length;if(q+=Q.content.slice(z,V),Q.outro&&(!X||Q.end===J))q+=Q.outro;if(X)break;Q=Q.next}return q}snip(Z,J){let q=this.clone();return q.remove(0,Z),q.remove(J,q.original.length),q}_split(Z){if(this.byStart[Z]||this.byEnd[Z])return;let J=this.lastSearchedChunk,q=Z>J.end;while(J){if(J.contains(Z))return this._splitChunk(J,Z);J=q?this.byStart[J.end]:this.byEnd[J.start]}}_splitChunk(Z,J){if(Z.edited&&Z.content.length){let Q=l9(this.original)(J);throw Error(`Cannot split a chunk that has already been edited (${Q.line}:${Q.column} – "${Z.original}")`)}let q=Z.split(J);if(this.byEnd[J]=Z,this.byStart[J]=q,this.byEnd[q.end]=q,Z===this.lastChunk)this.lastChunk=q;return this.lastSearchedChunk=Z,!0}toString(){let Z=this.intro,J=this.firstChunk;while(J)Z+=J.toString(),J=J.next;return Z+this.outro}isEmpty(){let Z=this.firstChunk;do if(Z.intro.length&&Z.intro.trim()||Z.content.length&&Z.content.trim()||Z.outro.length&&Z.outro.trim())return!1;while(Z=Z.next);return!0}length(){let Z=this.firstChunk,J=0;do J+=Z.intro.length+Z.content.length+Z.outro.length;while(Z=Z.next);return J}trimLines(){return this.trim("[\\r\\n]")}trim(Z){return this.trimStart(Z).trimEnd(Z)}trimEndAborted(Z){let J=new RegExp((Z||"\\s")+"+$");if(this.outro=this.outro.replace(J,""),this.outro.length)return!0;let q=this.lastChunk;do{let Q=q.end,Y=q.trimEnd(J);if(q.end!==Q){if(this.lastChunk===q)this.lastChunk=q.next;this.byEnd[q.end]=q,this.byStart[q.next.start]=q.next,this.byEnd[q.next.end]=q.next}if(Y)return!0;q=q.previous}while(q);return!1}trimEnd(Z){return this.trimEndAborted(Z),this}trimStartAborted(Z){let J=new RegExp("^"+(Z||"\\s")+"+");if(this.intro=this.intro.replace(J,""),this.intro.length)return!0;let q=this.firstChunk;do{let Q=q.end,Y=q.trimStart(J);if(q.end!==Q){if(q===this.lastChunk)this.lastChunk=q.next;this.byEnd[q.end]=q,this.byStart[q.next.start]=q.next,this.byEnd[q.next.end]=q.next}if(Y)return!0;q=q.next}while(q);return!1}trimStart(Z){return this.trimStartAborted(Z),this}hasChanged(){return this.original!==this.toString()}replace(Z,J){function q(Y,X){if(typeof J==="string")return J.replace(/\$(\$|&|\d+)/g,(z,V)=>{if(V==="$")return"$";if(V==="&")return Y[0];if(+V<Y.length)return Y[+V];return`$${V}`});else return J(...Y,Y.index,X,Y.groups)}function Q(Y,X){let z,V=[];while(z=Y.exec(X))V.push(z);return V}if(typeof Z!=="string"&&Z.global)Q(Z,this.original).forEach((X)=>{if(X.index!=null)this.overwrite(X.index,X.index+X[0].length,q(X,this.original))});else{let Y=this.original.match(Z);if(Y&&Y.index!=null)this.overwrite(Y.index,Y.index+Y[0].length,q(Y,this.original))}return this}}class HZ{constructor(Z={}){this.intro=Z.intro||"",this.separator=Z.separator!==void 0?Z.separator:`
|
|
8
|
+
`,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}}addSource(Z){if(Z instanceof P8)return this.addSource({content:Z,filename:Z.filename,separator:this.separator});if(!U2(Z)||!Z.content)throw 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((J)=>{if(!YQ.call(Z,J))Z[J]=Z.content[J]}),Z.separator===void 0)Z.separator=this.separator;if(Z.filename)if(!YQ.call(this.uniqueSourceIndexByFilename,Z.filename))this.uniqueSourceIndexByFilename[Z.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:Z.filename,content:Z.content.original});else{let J=this.uniqueSources[this.uniqueSourceIndexByFilename[Z.filename]];if(Z.content.original!==J.content)throw Error(`Illegal source: same filename (${Z.filename}), different contents`)}return this.sources.push(Z),this}append(Z,J){return this.addSource({content:new P8(Z),separator:J&&J.separator||""}),this}clone(){let Z=new HZ({intro:this.intro,separator:this.separator});return this.sources.forEach((J)=>{Z.addSource({filename:J.filename,content:J.content.clone(),separator:J.separator})}),Z}generateDecodedMap(Z={}){let J=[];this.sources.forEach((Q)=>{Object.keys(Q.content.storedNames).forEach((Y)=>{if(!~J.indexOf(Y))J.push(Y)})});let q=new MZ(Z.hires);if(this.intro)q.advance(this.intro);return this.sources.forEach((Q,Y)=>{if(Y>0)q.advance(this.separator);let X=Q.filename?this.uniqueSourceIndexByFilename[Q.filename]:-1,z=Q.content,V=l9(z.original);if(z.intro)q.advance(z.intro);if(z.firstChunk.eachNext((W)=>{let K=V(W.start);if(W.intro.length)q.advance(W.intro);if(Q.filename)if(W.edited)q.addEdit(X,W.content,K,W.storeName?J.indexOf(W.original):-1);else q.addUneditedChunk(X,W,z.original,K,z.sourcemapLocations);else q.advance(W.content);if(W.outro.length)q.advance(W.outro)}),z.outro)q.advance(z.outro)}),{file:Z.file?Z.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map((Q)=>{return Z.file?G2(Z.file,Q.filename):Q.filename}),sourcesContent:this.uniqueSources.map((Q)=>{return Z.includeContent?Q.content:null}),names:J,mappings:q.raw}}generateMap(Z){return new H0(this.generateDecodedMap(Z))}getIndentString(){let Z={};return this.sources.forEach((J)=>{let q=J.content.indentStr;if(q===null)return;if(!Z[q])Z[q]=0;Z[q]+=1}),Object.keys(Z).sort((J,q)=>{return Z[J]-Z[q]})[0]||"\t"}indent(Z){if(!arguments.length)Z=this.getIndentString();if(Z==="")return this;let J=!this.intro||this.intro.slice(-1)===`
|
|
9
|
+
`;if(this.sources.forEach((q,Q)=>{let Y=q.separator!==void 0?q.separator:this.separator,X=J||Q>0&&/\r?\n$/.test(Y);q.content.indent(Z,{exclude:q.indentExclusionRanges,indentStart:X}),J=q.content.lastChar()===`
|
|
10
|
+
`}),this.intro)this.intro=Z+this.intro.replace(/^[^\n]/gm,(q,Q)=>{return Q>0?Z+q:q});return this}prepend(Z){return this.intro=Z+this.intro,this}toString(){let Z=this.sources.map((J,q)=>{let Q=J.separator!==void 0?J.separator:this.separator;return(q>0?Q:"")+J.content.toString()}).join("");return this.intro+Z}isEmpty(){if(this.intro.length&&this.intro.trim())return!1;if(this.sources.some((Z)=>!Z.content.isEmpty()))return!1;return!0}length(){return this.sources.reduce((Z,J)=>Z+J.content.length(),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(Z){return this.trimStart(Z).trimEnd(Z)}trimStart(Z){let J=new RegExp("^"+(Z||"\\s")+"+");if(this.intro=this.intro.replace(J,""),!this.intro){let q,Q=0;do if(q=this.sources[Q++],!q)break;while(!q.content.trimStartAborted(Z))}return this}trimEnd(Z){let J=new RegExp((Z||"\\s")+"+$"),q,Q=this.sources.length-1;do if(q=this.sources[Q--],!q){this.intro=this.intro.replace(J,"");break}while(!q.content.trimEndAborted(Z));return this}}function FZ(Z,J){let q=Z.split(XQ).filter(Boolean),Q=J.split(XQ).filter(Boolean);if(q[0]===".")q.shift();if(Q[0]===".")Q.shift();while(q[0]&&Q[0]&&q[0]===Q[0])q.shift(),Q.shift();while(Q[0]===".."&&q.length>0)Q.shift(),q.pop();while(q.pop())Q.unshift("..");return Q.join("/")}function v5(Z,J,q){let Q=Z.get(J);if(Q)return Q;let Y=q();return Z.set(J,Y),Y}class Y0{constructor(){this.entityPaths=Object.create(null,{[q6]:{value:new Set}})}trackEntityAtPathAndGetIfTracked(Z,J){let q=this.getEntities(Z);if(q.has(J))return!0;return q.add(J),!1}withTrackedEntityAtPath(Z,J,q,Q){let Y=this.getEntities(Z);if(Y.has(J))return Q;Y.add(J);let X=q();return Y.delete(J),X}getEntities(Z){let J=this.entityPaths;for(let q of Z)J=J[q]=J[q]||Object.create(null,{[q6]:{value:new Set}});return J[q6]}}class I4{constructor(){this.entityPaths=Object.create(null,{[q6]:{value:new Map}})}trackEntityAtPathAndGetIfTracked(Z,J,q){let Q=this.entityPaths;for(let X of Z)Q=Q[X]=Q[X]||Object.create(null,{[q6]:{value:new Map}});let Y=v5(Q[q6],J,()=>new Set);if(Y.has(q))return!0;return Y.add(q),!1}}class B5{constructor(){this.included=!1}deoptimizePath(Z){}deoptimizeThisOnInteractionAtPath({thisArg:Z},J,q){Z.deoptimizePath(D1)}getLiteralValueAtPath(Z,J,q){return x1}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){return Y1}hasEffectsOnInteractionAtPath(Z,J,q){return!0}include(Z,J,q){this.included=!0}includeCallArguments(Z,J){for(let q of J)q.include(Z,!1)}shouldBeIncluded(Z){return!0}}function qU(Z,J){if(J===void 0)J={};var q=J.offsetLine||0,Q=J.offsetColumn||0,Y=Z.split(`
|
|
11
|
+
`),X=0,z=Y.map(function(H,M){var O=X+H.length+1,j={start:X,end:O,line:M};return X=O,j}),V=0;function W(H,M){return H.start<=M&&M<H.end}function K(H,M){return{line:q+H.line,column:Q+M-H.start,character:M}}function $(H,M){if(typeof H==="string")H=Z.indexOf(H,M||0);var O=z[V],j=H>=O.end?1:-1;while(O){if(W(O,H))return K(O,H);V+=j,O=z[V]}}return $}function B2(Z,J,q){if(typeof q==="number")throw Error("locate takes a { startIndex, offsetLine, offsetColumn } object as the third argument");return qU(Z,q)(J,q&&q.startIndex)}function QU(Z){let J="";while(Z--)J+=" ";return J}function R9(Z){return Z.replace(/^\t+/,(J)=>J.split("\t").join(" "))}function YU(Z,J,q){let Q=Z.split(`
|
|
12
|
+
`),Y=Math.max(0,J-3),X=Math.min(J+2,Q.length);Q=Q.slice(Y,X);while(!/\S/.test(Q[Q.length-1]))Q.pop(),X-=1;let z=String(X).length;return Q.map((V,W)=>{let K=Y+W+1===J,$=String(W+Y+1);while($.length<z)$=` ${$}`;if(K){let H=QU(z+2+R9(V.slice(0,q)).length)+"^";return`${$}: ${R9(V)}
|
|
13
|
+
${H}`}return`${$}: ${R9(V)}`}).join(`
|
|
14
|
+
`)}function V8(Z,J){let q=Z.length<=1,Q=Z.map((X)=>`"${X}"`),Y=q?Q[0]:`${Q.slice(0,-1).join(", ")} and ${Q.slice(-1)[0]}`;if(J)Y+=` ${q?J[0]:J[1]}`;return Y}function s5(Z){return XU.test(Z)}function OZ(Z){return zU.test(Z)}function z0(Z){return Z.replace(VU,"/")}function M4(Z){let J=z8(Z);return J.substring(0,J.length-Q8(Z).length)}function V1(Z){if(!s5(Z))return Z;return FZ(U5(),Z)}function i9(Z){return Z[0]==="/"||Z[0]==="."&&(Z[1]==="/"||Z[1]===".")||s5(Z)}function X4(Z,J,q,Q){let Y=z0(FZ(f5(Z),J));if(q&&Y.endsWith(".js"))Y=Y.slice(0,-3);if(Q){if(Y==="")return"../"+z8(J);if(WU.test(Y))return Y.split("/").concat(["..",z8(J)]).join("/")}return!Y?".":Y.startsWith("..")?Y:"./"+Y}function e(Z){if(!(Z instanceof Error))Z=Object.assign(Error(Z.message),Z);throw Z}function _4(Z,J,q,Q){if(typeof J==="object"){let{line:Y,column:X}=J;Z.loc={column:X,file:Q,line:Y}}else{Z.pos=J;let{line:Y,column:X}=B2(q,J,{offsetLine:1});Z.loc={column:X,file:Q,line:Y}}if(Z.frame===void 0){let{line:Y,column:X}=Z.loc;Z.frame=YU(q,Y,X)}}function KU(Z){return{code:W1.ASSET_NOT_FINALISED,message:`Plugin error - Unable to get file name for asset "${Z}". Ensure that the source is set and that generate is called first.`}}function $U(){return{code:W1.CANNOT_EMIT_FROM_OPTIONS_HOOK,message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'}}function GU(Z){return{code:W1.CHUNK_NOT_GENERATED,message:`Plugin error - Unable to get file name for chunk "${Z}". Ensure that generate is called first.`}}function UU({fileName:Z,code:J},q){let Q={code:W1.CHUNK_INVALID,message:`Chunk "${Z}" is not valid JavaScript: ${q.message}.`};return _4(Q,q.loc,J,Z),Q}function jU(Z,J){return{code:W1.CIRCULAR_REEXPORT,id:J,message:`"${Z}" cannot be exported from ${V1(J)} as it is a reexport that references itself.`}}function BU(Z,J,q,Q){return{code:W1.CYCLIC_CROSS_CHUNK_REEXPORT,exporter:J,importer:Q,message:`Export "${Z}" of module ${V1(J)} was reexported through module ${V1(q)} while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
|
|
15
|
+
Either change the import in ${V1(Q)} to point directly to the exporting module or do not use "preserveModules" to ensure these modules end up in the same chunk.`,reexporter:q}}function MU(Z){return{code:W1.ASSET_NOT_FOUND,message:`Plugin error - Unable to set the source for unknown asset "${Z}".`}}function HU(Z){return{code:W1.ASSET_SOURCE_ALREADY_SET,message:`Unable to set the source for asset "${Z}", source already set.`}}function FU(Z){return{code:W1.ASSET_SOURCE_MISSING,message:`Plugin error creating asset "${Z}" - no asset source set.`}}function LU(Z){return{code:W1.BAD_LOADER,message:`Error loading ${V1(Z)}: plugin load hook should return a string, a { code, map } object, or nothing/null`}}function wU(Z){return{code:W1.DEPRECATED_FEATURE,...typeof Z==="string"?{message:Z}:Z}}function OU(Z){return{code:W1.FILE_NOT_FOUND,message:`Plugin error - Unable to get file name for unknown file "${Z}".`}}function NU(Z){return{code:W1.FILE_NAME_CONFLICT,message:`The emitted file "${Z}" overwrites a previously emitted file of the same name.`}}function zQ(Z){return{code:W1.FILE_NAME_OUTSIDE_OUTPUT_DIRECTORY,message:`The output file name "${Z}" is not contained in the output directory. Make sure all file names are relative paths without ".." segments.`}}function RU(Z,J){return{code:W1.INPUT_HOOK_IN_OUTPUT_PLUGIN,message:`The "${J}" hook used by the output plugin ${Z} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}}function CU(Z,J,q){return{code:W1.INVALID_CHUNK,message:`Cannot assign ${V1(Z)} to the "${J}" chunk as it is already in the "${q}" chunk.`}}function IU(Z){return{code:W1.INVALID_EXPORT_OPTION,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${Z}"`,url:"https://rollupjs.org/guide/en/#outputexports"}}function VQ(Z,J,q){return{code:"INVALID_EXPORT_OPTION",message:`"${Z}" was specified for "output.exports", but entry module "${V1(q)}" has the following exports: ${J.join(", ")}`}}function _U(Z,J){return{code:W1.INVALID_EXTERNAL_ID,message:`'${Z}' is imported as an external by ${V1(J)}, but is already an existing non-external module id.`}}function m1(Z,J,q,Q){return{code:W1.INVALID_OPTION,message:`Invalid value ${Q!==void 0?`${JSON.stringify(Q)} `:""}for option "${Z}" - ${q}.`,url:`https://rollupjs.org/guide/en/#${J}`}}function DU(Z,J){return{code:W1.INVALID_PLUGIN_HOOK,hook:Z,message:`Error running plugin hook ${Z} for plugin ${J}, expected a string, a function hook or an object with a "handler" string or function.`,plugin:J}}function TU(Z,J){return{code:W1.INVALID_PLUGIN_HOOK,hook:Z,message:`Error running plugin hook ${Z} for plugin ${J}, expected a function hook or an object with a "handler" function.`,plugin:J}}function AU(){return{code:W1.INVALID_ROLLUP_PHASE,message:"Cannot call addWatchFile after the build has finished."}}function PU(){return{code:W1.INVALID_ROLLUP_PHASE,message:"Cannot emit chunks after module loading has finished."}}function WQ(Z,J,q){return{code:W1.MISSING_EXPORT,message:`'${Z}' is not exported by ${V1(q)}, imported by ${V1(J)}`,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"}}function SU(Z,J){return{code:W1.MISSING_IMPLICIT_DEPENDANT,message:`Module "${V1(Z)}" that should be implicitly loaded before "${V1(J)}" cannot be external.`}}function yU(Z,J){return{code:W1.MISSING_IMPLICIT_DEPENDANT,message:`Module "${V1(Z)}" that should be implicitly loaded before "${V1(J)}" could not be resolved.`}}function EU(Z){let J=Array.from(Z.implicitlyLoadedBefore,(q)=>V1(q.id)).sort();return{code:W1.MISSING_IMPLICIT_DEPENDANT,message:`Module "${V1(Z.id)}" that should be implicitly loaded before ${V8(J)} is not included in the module graph. Either it was not imported by an included module or only via a tree-shaken dynamic import, or no imported bindings were used and it had otherwise no side-effects.`}}function bU(Z,J){return{code:W1.MIXED_EXPORTS,id:Z,message:`Entry module "${V1(Z)}" is using named and default exports together. Consumers of your bundle will have to use \`${J||"chunk"}["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/#outputexports"}}function xU(Z,J,q){return{code:W1.NAMESPACE_CONFLICT,message:`Conflicting namespaces: "${V1(J)}" re-exports "${Z}" from one of the modules ${V8(q.map((Q)=>V1(Q)))} (will be ignored)`,name:Z,reexporter:J,sources:q}}function kU(Z,J,q,Q){return{code:W1.AMBIGUOUS_EXTERNAL_NAMESPACES,message:`Ambiguous external namespace resolution: "${V1(J)}" re-exports "${Z}" from one of the external modules ${V8(Q.map((Y)=>V1(Y)))}, guessing "${V1(q)}".`,name:Z,reexporter:J,sources:Q}}function fU(Z){return{code:W1.NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE,message:`The plugin "${Z}" returned a "map" or "ast" without returning a "code". This will be ignored.`}}function vU(Z){let J=V1(Z);return{code:W1.PREFER_NAMED_EXPORTS,id:Z,message:`Entry module "${J}" is implicitly using "default" export mode, which means for CommonJS output that its default export is assigned to "module.exports". For many tools, such CommonJS output will not be interchangeable with the original ES module. If this is intended, explicitly set "output.exports" to either "auto" or "default", otherwise you might want to consider changing the signature of "${J}" to use named exports only.`,url:"https://rollupjs.org/guide/en/#outputexports"}}function hU(Z,J){return{code:W1.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT,id:Z,message:`Module "${V1(Z)}" that is marked with 'syntheticNamedExports: ${JSON.stringify(J)}' needs ${typeof J==="string"&&J!=="default"?`an explicit export named "${J}"`:"a default export"} that does not reexport an unresolved named export of the same module.`}}function KQ(Z,J,q){let Q=q?"reexport":"import";return{code:W1.UNEXPECTED_NAMED_IMPORT,id:Z,message:`The named export "${J}" was ${Q}ed from the external module ${V1(Z)} even though its interop type is "defaultOnly". Either remove or change this ${Q} or change the value of the "output.interop" option.`,url:"https://rollupjs.org/guide/en/#outputinterop"}}function gU(Z){return{code:W1.UNEXPECTED_NAMED_IMPORT,id:Z,message:`There was a namespace "*" reexport from the external module ${V1(Z)} even though its interop type is "defaultOnly". This will be ignored as namespace reexports only reexport named exports. If this is not intended, either remove or change this reexport or change the value of the "output.interop" option.`,url:"https://rollupjs.org/guide/en/#outputinterop"}}function mU(Z){return{code:W1.UNRESOLVED_ENTRY,message:`Entry module cannot be external (${V1(Z)}).`}}function uU(Z){return{code:W1.UNRESOLVED_ENTRY,message:`Could not resolve entry module (${V1(Z)}).`}}function dU(Z,J){return{code:W1.UNRESOLVED_IMPORT,message:`Could not resolve '${Z}' from ${V1(J)}`}}function lU(Z,J){return{code:W1.UNRESOLVED_IMPORT,importer:V1(J),message:`'${Z}' is imported by ${V1(J)}, but could not be resolved – treating it as an external dependency`,source:Z,url:"https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency"}}function cU(Z,J){return{code:W1.EXTERNAL_SYNTHETIC_EXPORTS,importer:V1(J),message:`External '${Z}' can not have 'syntheticNamedExports' enabled.`,source:Z}}function n5(Z){return{code:W1.VALIDATION_ERROR,message:Z}}function $Q(){return{code:W1.ALREADY_CLOSED,message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}}function j5(Z,J,q){G6(Z,J,q.onwarn,q.strictDeprecations)}function G6(Z,J,q,Q){if(J||Q){let Y=wU(Z);if(Q)return e(Y);q(Y)}}function nU(Z){if(H2(Z))return!1;return!M2.test(Z)}function NZ(Z){if(Z=Z.replace(/-(\w)/g,(J,q)=>q.toUpperCase()).replace(M2,"_"),H2(Z))Z=`_${Z}`;return Z||"_"}class A1{constructor(Z,J,q,Q,Y){this.options=Z,this.id=J,this.renormalizeRenderPath=Y,this.declarations=new Map,this.defaultVariableName="",this.dynamicImporters=[],this.execIndex=1/0,this.exportedVariables=new Map,this.importers=[],this.mostCommonSuggestion=0,this.nameSuggestions=new Map,this.namespaceVariableName="",this.reexported=!1,this.renderPath=void 0,this.used=!1,this.variableName="",this.suggestedVariableName=NZ(J.split(/[\\/]/).pop());let{importers:X,dynamicImporters:z}=this,V=this.info={ast:null,code:null,dynamicallyImportedIdResolutions:a8,dynamicallyImportedIds:a8,get dynamicImporters(){return z.sort()},hasDefaultExport:null,get hasModuleSideEffects(){return j5("Accessing ModuleInfo.hasModuleSideEffects from plugins is deprecated. Please use ModuleInfo.moduleSideEffects instead.",!1,Z),V.moduleSideEffects},id:J,implicitlyLoadedAfterOneOf:a8,implicitlyLoadedBefore:a8,importedIdResolutions:a8,importedIds:a8,get importers(){return X.sort()},isEntry:!1,isExternal:!0,isIncluded:null,meta:Q,moduleSideEffects:q,syntheticNamedExports:!1};Object.defineProperty(this.info,"hasModuleSideEffects",{enumerable:!1})}getVariableForExportName(Z){let J=this.declarations.get(Z);if(J)return[J];let q=new X0(this,Z);return this.declarations.set(Z,q),this.exportedVariables.set(q,Z),[q]}setRenderPath(Z,J){if(this.renderPath=typeof Z.paths==="function"?Z.paths(this.id):Z.paths[this.id],!this.renderPath)this.renderPath=this.renormalizeRenderPath?z0(UZ(J,this.id)):this.id}suggestName(Z){var J;let q=((J=this.nameSuggestions.get(Z))!==null&&J!==void 0?J:0)+1;if(this.nameSuggestions.set(Z,q),q>this.mostCommonSuggestion)this.mostCommonSuggestion=q,this.suggestedVariableName=Z}warnUnusedImports(){let Z=Array.from(this.declarations).filter(([Q,Y])=>Q!=="*"&&!Y.included&&!this.reexported&&!Y.referenced).map(([Q])=>Q);if(Z.length===0)return;let J=new Set;for(let Q of Z)for(let Y of this.declarations.get(Q).module.importers)J.add(Y);let q=[...J];this.options.onwarn({code:"UNUSED_EXTERNAL_IMPORT",message:`${V8(Z,["is","are"])} imported from external module "${this.id}" but never used in ${V8(q.map((Q)=>V1(Q)))}.`,names:Z,source:this.id,sources:q})}}function aU(Z){return Z&&Z.__esModule&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z}function a9(){return{brokenFlow:n4,includedCallArguments:new Set,includedLabels:new Set}}function a4(){return{accessed:new Y0,assigned:new Y0,brokenFlow:n4,called:new I4,ignore:{breaks:!1,continues:!1,labels:new Set,returnYield:!1},includedLabels:new Set,instantiated:new I4,replacedVariableInits:new Map}}function s4(Z,J=null){return Object.create(J,Z)}function Pj(Z){switch(typeof Z){case"boolean":return s9;case"number":return r9;case"string":return V0}return Object.create(null)}function L0(Z,J,q,Q){var Y,X;if(typeof J!=="string"||!Z[J])return!0;return((X=(Y=Z[J]).hasEffectsWhenCalled)===null||X===void 0?void 0:X.call(Y,q,Q))||!1}function w0(Z,J){if(typeof J!=="string"||!Z[J])return Y1;return Z[J].returns}function PZ(Z,J,q){q(Z,J)}function E8(Z,J,q){}function P2(Z,J,q=Z.type){let{annotations:Q}=J,Y=Q[J.annotationIndex];while(Y&&Z.start>=Y.end)lj(Z,Y,J.code),Y=Q[++J.annotationIndex];if(Y&&Y.end<=Z.end){a[q](Z,J,P2);while((Y=Q[J.annotationIndex])&&Y.end<=Z.end)++J.annotationIndex,P4(Z,Y,!1)}}function lj(Z,J,q){let Q=[],Y,X=q.slice(J.end,Z.start);if(z4(X,dj)){let z=Z.start;while(!0){switch(Q.push(Z),Z.type){case N5:case yj:Z=Z.expression;continue;case gj:if(z4(q.slice(z,Z.start),A9)){Z=Z.expressions[0];continue}Y=!0;break;case Ej:if(z4(q.slice(z,Z.start),A9)){Z=Z.test;continue}Y=!0;break;case kj:case Sj:if(z4(q.slice(z,Z.start),A9)){Z=Z.left;continue}Y=!0;break;case _2:case fj:break;default:Y=!0}break}}else Y=!0;if(Y)P4(Z,J,!1);else for(let z of Q)P4(z,J,!0)}function z4(Z,J){let q;while((q=J.exec(Z))!==null){if(q[0]==="/"){let Q=Z.charCodeAt(J.lastIndex);if(Q===42){J.lastIndex=Z.indexOf("*/",J.lastIndex+1)+2;continue}else if(Q===47){J.lastIndex=Z.indexOf(`
|
|
16
|
+
`,J.lastIndex+1)+1;continue}}return J.lastIndex=0,!1}return!0}function pj(Z,J,q){let Q=[],Y=[];for(let X of Z)if(cj.test(X.value))Q.push(X);else if(uj.test(X.value))Y.push(X);for(let X of Y)P4(J,X,!1);P2(J,{annotationIndex:0,annotations:Q,code:q})}function P4(Z,J,q){let Q=q?T2:A2,Y=Z[Q];if(Y)Y.push(J);else Z[Q]=[J]}function ij(Z){return o9[Z.type]=Object.keys(Z).filter((J)=>typeof Z[J]==="object"&&J.charCodeAt(0)!==95),o9[Z.type]}function t9(Z){let J="";do{let q=Z%_Q;Z=Math.floor(Z/_Q),J=rj[q]+J}while(Z!==0);return J}function k5(Z,J){let q=Z,Q=1;while(J.has(q)||l4.has(q))q=`${Z}$${t9(Q++)}`;return J.add(q),q}class EZ{constructor(){this.children=[],this.variables=new Map}addDeclaration(Z,J,q,Q){let Y=Z.name,X=this.variables.get(Y);if(X)X.addDeclaration(Z,q);else X=new S5(Z.name,Z,q||F0,J),this.variables.set(Y,X);return X}contains(Z){return this.variables.has(Z)}findVariable(Z){throw Error("Internal Error: findVariable needs to be implemented by a subclass")}}function x2(Z,J){if(Z.type==="MemberExpression")return!Z.computed&&x2(Z.object,Z);if(Z.type==="Identifier"){if(!J)return!0;switch(J.type){case"MemberExpression":return J.computed||Z===J.object;case"MethodDefinition":return J.computed;case"PropertyDefinition":return J.computed||Z===J.value;case"Property":return J.computed||Z===J.value;case"ExportSpecifier":case"ImportSpecifier":return Z===J.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}return!1}function W4(Z){let J=e9;for(let q of Z){if(typeof q!=="string")return null;if(J=J[q],!J)return null}return J[u1]}function TQ(Z){while(Z&&!/^Program|Function/.test(Z.type))Z=Z.parent;return Z}function kZ(Z,J,q,Q){if(J.remove(q,Q),Z.annotations)for(let Y of Z.annotations)if(Y.start<q)J.remove(Y.start,Y.end);else return}function k2(Z,J){if(!Z.annotations&&Z.parent.type===N5)Z=Z.parent;if(Z.annotations)for(let q of Z.annotations)J.remove(q.start,q.end)}function o1(Z,J,q=0){let Q,Y;Q=Z.indexOf(J,q);while(!0){if(q=Z.indexOf("/",q),q===-1||q>=Q)return Q;if(Y=Z.charCodeAt(++q),++q,q=Y===47?Z.indexOf(`
|
|
17
|
+
`,q)+1:Z.indexOf("*/",q)+2,q>Q)Q=Z.indexOf(J,q)}}function W8(Z,J){return AQ.lastIndex=J,AQ.exec(Z).index}function S4(Z){let J,q,Q=0;J=Z.indexOf(`
|
|
18
|
+
`,Q);while(!0){if(Q=Z.indexOf("/",Q),Q===-1||Q>J)return[J,J+1];if(q=Z.charCodeAt(Q+1),q===47)return[Q,J+1];if(Q=Z.indexOf("*/",Q+3)+2,Q>J)J=Z.indexOf(`
|
|
19
|
+
`,Q)}}function O0(Z,J,q,Q,Y){let X,z,V,W,K=Z[0],$=!K.included||K.needsBoundaries;if($)W=q+S4(J.original.slice(q,K.start))[1];for(let H=1;H<=Z.length;H++)if(X=K,z=W,V=$,K=Z[H],$=K===void 0?!1:!K.included||K.needsBoundaries,V||$)if(W=X.end+S4(J.original.slice(X.end,K===void 0?Q:K.start))[1],X.included)V?X.render(J,Y,{end:W,start:z}):X.render(J,Y);else kZ(X,J,z,W);else X.render(J,Y)}function f2(Z,J,q,Q){let Y=[],X,z,V,W,K,$=q-1;for(let H=0;H<Z.length;H++){if(z=Z[H],X!==void 0)$=X.end+o1(J.original.slice(X.end,z.start),",");V=W=$+1+S4(J.original.slice($+1,z.start))[1];while(K=J.original.charCodeAt(V),K===32||K===9||K===10||K===13)V++;if(X!==void 0)Y.push({contentEnd:W,end:V,node:X,separator:$,start:q});X=z,q=V}return Y.push({contentEnd:Q,end:Q,node:X,separator:null,start:q}),Y}function t4(Z,J,q){while(!0){let[Q,Y]=S4(Z.original.slice(J,q));if(Q===-1)break;Z.remove(J+Q,J+=Y)}}function b8(Z,{exportNamesByVariable:J,snippets:{_:q,getObject:Q,getPropertyAccess:Y}},X=""){if(Z.length===1&&J.get(Z[0]).length===1){let z=Z[0];return`exports('${J.get(z)}',${q}${z.getName(Y)}${X})`}else{let z=[];for(let V of Z)for(let W of J.get(V))z.push([W,V.getName(Y)+X]);return`exports(${Q(z,{lineBreakIndent:null})})`}}function hZ(Z,J,q,Q,{exportNamesByVariable:Y,snippets:{_:X}}){Q.prependRight(J,`exports('${Y.get(Z)}',${X}`),Q.appendLeft(q,")")}function tj(Z,J,q,Q,Y,X){let{_:z,getDirectReturnIifeLeft:V}=X.snippets;Y.prependRight(J,V(["v"],`${b8(Z,X)},${z}v`,{needsArrowReturnParens:!0,needsWrappedFunction:Q})),Y.appendLeft(q,")")}function v2(Z,J,q,Q,Y,X){let{_:z,getPropertyAccess:V}=X.snippets;if(Y.appendLeft(q,`,${z}${b8([Z],X)},${z}${Z.getName(V)}`),Q)Y.prependRight(J,"("),Y.appendLeft(q,")")}function ej(Z,J,q,Q,Y,X,z){let{_:V}=X.snippets;if(Y.prependRight(J,`${b8([Z],X,z)},${V}`),Q)Y.prependRight(J,"("),Y.appendLeft(q,")")}function p2(Z,J,q){if(q.arguments.length>0)if(q.arguments[q.arguments.length-1].included)for(let Q of q.arguments)Q.render(Z,J);else{let Q=q.arguments.length-2;while(Q>=0&&!q.arguments[Q].included)Q--;if(Q>=0){for(let Y=0;Y<=Q;Y++)q.arguments[Y].render(Z,J);Z.remove(o1(Z.original,",",q.arguments[Q].end),q.end-1)}else Z.remove(o1(Z.original,"(",q.callee.end)+1,q.end-1)}}function JB(Z){return Z.computed?qB(Z.property):Z.property.name}function qB(Z){if(Z instanceof V6)return String(Z.value);return null}function i2(Z){let{propertyKey:J,object:q}=Z;if(typeof J==="string"){if(q instanceof l1)return[{key:q.name,pos:q.start},{key:J,pos:Z.property.start}];if(q instanceof y8){let Q=i2(q);return Q&&[...Q,{key:J,pos:Z.property.start}]}}return null}function QB(Z){let J=Z[0].key;for(let q=1;q<Z.length;q++)J+="."+Z[q].key;return J}function n2(Z,J,q){if(J.length===0)return Z;if(!Z.isNamespace||Z instanceof X0)return null;let Q=J[0].key,Y=Z.context.traceExport(Q);if(!Y){let X=Z.context.fileName;return q.warn({code:"MISSING_EXPORT",exporter:V1(X),importer:V1(q.fileName),message:`'${Q}' is not exported by '${V1(X)}'`,missing:Q,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"},J[0].pos),"undefined"}return n2(Y,J.slice(1),q)}function YB(Z,J){return W8(Z,o1(Z,"default",J)+7)}function XB(Z,J,q,Q){let Y=o1(Z,J,Q)+J.length;Z=Z.slice(Y,o1(Z,q,Y));let X=o1(Z,"*");if(X===-1)return Y;return Y+X+1}function G0(Z){return Z([["value","'Module'"]],{lineBreakIndent:null})}function xQ(Z,J,q){return J==="external"?I0[String(q(Z instanceof A1?Z.id:null))]:J==="default"?$0:null}function gY(Z,J){return Z.renderBaseName!==null&&J.has(Z)&&Z.isReassigned}function HB(Z,J){for(let q of Z){if(!q.id.included)return!1;if(q.id.type===D2){if(J.has(q.id.variable))return!1}else{let Q=[];if(q.id.addExportedVariables(Q,J),Q.length>0)return!1}}return!0}function FB(Z,J,q){var Q;let Y=null;if(J.format==="system"){for(let{node:X}of Z)if(X.id instanceof l1&&X.init&&q.length===0&&((Q=J.exportNamesByVariable.get(X.id.variable))===null||Q===void 0?void 0:Q.length)===1)Y=X.id.variable,q.push(Y);else X.id.addExportedVariables(q,J.exportNamesByVariable);if(q.length>1)Y=null;else if(Y)q.length=0}return Y}function Y6(Z){return Z.id}function LB(Z,J){let q=Z.filter((Q)=>!!Q.mappings);Z:while(q.length>0){let Y=q.pop().mappings[J.line-1];if(Y){let X=Y.filter((V)=>V.length>1),z=X[X.length-1];for(let V of X)if(V[0]>=J.column||V===z){J={column:V[3],line:V[2]+1};continue Z}}throw Error("Can't resolve original location of error.")}return J}function cY(Z,J){switch(J){case 1:return`# ${Z}`;case 2:return`## ${Z}`;case 3:return Z;default:return`${" ".repeat(J-4)}- ${Z}`}}function wB(Z,J=3){Z=cY(Z,J);let q=jZ.memoryUsage().heapUsed,Q=K2.now(),Y=U0.get(Z);if(Y===void 0)U0.set(Z,{memory:0,startMemory:q,startTime:Q,time:0,totalMemory:0});else Y.startMemory=q,Y.startTime=Q}function OB(Z,J=3){Z=cY(Z,J);let q=U0.get(Z);if(q!==void 0){let Q=jZ.memoryUsage().heapUsed;q.memory+=Q-q.startMemory,q.time+=K2.now()-q.startTime,q.totalMemory=Math.max(q.totalMemory,Q)}}function NB(){let Z={};for(let[J,{memory:q,time:Q,totalMemory:Y}]of U0)Z[J]=[Q,q,Y];return Z}function CB(Z,J){for(let q of RB)if(q in Z){let Q=`plugin ${J}`;if(Z.name)Q+=` (${Z.name})`;Q+=` - ${q}`;let Y=Z[q];Z[q]=function(...X){s1(Q,4);let z=Y.apply(this,X);if(i1(Q,4),z&&typeof z.then==="function")return s1(`${Q} (async)`,4),z.then((V)=>{return i1(`${Q} (async)`,4),V});return z}}return Z}function IB(Z){if(Z.perf)U0=new Map,s1=wB,i1=OB,Z.plugins=Z.plugins.map(CB);else s1=x4,i1=x4}function F4(Z){Z.isExecuted=!0;let J=[Z],q=new Set;for(let Q of J)for(let Y of[...Q.dependencies,...Q.implicitlyLoadedBefore])if(!(Y instanceof A1)&&!Y.isExecuted&&(Y.info.moduleSideEffects||Q.implicitlyLoadedBefore.has(Y))&&!q.has(Y.id))Y.isExecuted=!0,q.add(Y.id),J.push(Y)}function b9(Z,J,q,Q,Y=new Map){let X=Y.get(J);if(X){if(X.has(Z))return Q?[null]:e(jU(J,Z.id));X.add(Z)}else Y.set(J,new Set([Z]));return Z.getVariableForExportName(J,{importerForSideEffects:q,isExportAllSearch:Q,searchedNamesAndModules:Y})}function _B(Z,J){let q=v5(J.sideEffectDependenciesByVariable,Z,()=>new Set),Q=Z,Y=new Set([Q]);while(!0){let X=Q.module;if(Q=Q instanceof g5?Q.getDirectOriginalVariable():Q instanceof G5?Q.syntheticNamespace:null,!Q||Y.has(Q))break;Y.add(Q),q.add(X);let z=X.sideEffectDependenciesByVariable.get(Q);if(z)for(let V of z)q.add(V)}return q}class S1{constructor(Z,J,q,Q,Y,X,z){this.graph=Z,this.id=J,this.options=q,this.alternativeReexportModules=new Map,this.chunkFileNames=new Set,this.chunkNames=[],this.cycles=new Set,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicImporters=[],this.dynamicImports=[],this.execIndex=1/0,this.implicitlyLoadedAfter=new Set,this.implicitlyLoadedBefore=new Set,this.importDescriptions=new Map,this.importMetas=[],this.importedFromNotTreeshaken=!1,this.importers=[],this.includedDynamicImporters=[],this.includedImports=new Set,this.isExecuted=!1,this.isUserDefinedEntryPoint=!1,this.needsExportShim=!1,this.sideEffectDependenciesByVariable=new Map,this.sources=new Set,this.usesTopLevelAwait=!1,this.allExportNames=null,this.ast=null,this.exportAllModules=[],this.exportAllSources=new Set,this.exportNamesByVariable=null,this.exportShimVariable=new lY(this),this.exports=new Map,this.namespaceReexportsByName=new Map,this.reexportDescriptions=new Map,this.relevantDependencies=null,this.syntheticExports=new Map,this.syntheticNamespace=null,this.transformDependencies=[],this.transitiveReexports=null,this.excludeFromSourcemap=/\0/.test(J),this.context=q.moduleContext(J),this.preserveSignature=this.options.preserveEntrySignatures;let V=this,{dynamicImports:W,dynamicImporters:K,implicitlyLoadedAfter:$,implicitlyLoadedBefore:H,importers:M,reexportDescriptions:O,sources:j}=this;this.info={ast:null,code:null,get dynamicallyImportedIdResolutions(){return W.map(({argument:L})=>typeof L==="string"&&V.resolvedIds[L]).filter(Boolean)},get dynamicallyImportedIds(){return W.map(({id:L})=>L).filter((L)=>L!=null)},get dynamicImporters(){return K.sort()},get hasDefaultExport(){if(!V.ast)return null;return V.exports.has("default")||O.has("default")},get hasModuleSideEffects(){return j5("Accessing ModuleInfo.hasModuleSideEffects from plugins is deprecated. Please use ModuleInfo.moduleSideEffects instead.",!1,q),this.moduleSideEffects},id:J,get implicitlyLoadedAfterOneOf(){return Array.from($,Y6).sort()},get implicitlyLoadedBefore(){return Array.from(H,Y6).sort()},get importedIdResolutions(){return Array.from(j,(L)=>V.resolvedIds[L]).filter(Boolean)},get importedIds(){return Array.from(j,(L)=>{var I;return(I=V.resolvedIds[L])===null||I===void 0?void 0:I.id}).filter(Boolean)},get importers(){return M.sort()},isEntry:Q,isExternal:!1,get isIncluded(){if(Z.phase!==X8.GENERATE)return null;return V.isIncluded()},meta:{...z},moduleSideEffects:Y,syntheticNamedExports:X},Object.defineProperty(this.info,"hasModuleSideEffects",{enumerable:!1})}basename(){let Z=z8(this.id),J=Q8(this.id);return NZ(J?Z.slice(0,-J.length):Z)}bindReferences(){this.ast.bind()}error(Z,J){return this.addLocationToLogProps(Z,J),e(Z)}getAllExportNames(){if(this.allExportNames)return this.allExportNames;this.allExportNames=new Set([...this.exports.keys(),...this.reexportDescriptions.keys()]);for(let Z of this.exportAllModules){if(Z instanceof A1){this.allExportNames.add(`*${Z.id}`);continue}for(let J of Z.getAllExportNames())if(J!=="default")this.allExportNames.add(J)}if(typeof this.info.syntheticNamedExports==="string")this.allExportNames.delete(this.info.syntheticNamedExports);return this.allExportNames}getDependenciesToBeIncluded(){if(this.relevantDependencies)return this.relevantDependencies;this.relevantDependencies=new Set;let Z=new Set,J=new Set,q=new Set(this.includedImports);if(this.info.isEntry||this.includedDynamicImporters.length>0||this.namespace.included||this.implicitlyLoadedAfter.size>0)for(let Q of[...this.getReexports(),...this.getExports()]){let[Y]=this.getVariableForExportName(Q);if(Y)q.add(Y)}for(let Q of q){let Y=this.sideEffectDependenciesByVariable.get(Q);if(Y)for(let X of Y)J.add(X);if(Q instanceof G5)Q=Q.getBaseVariable();else if(Q instanceof g5)Q=Q.getOriginalVariable();Z.add(Q.module)}if(!this.options.treeshake||this.info.moduleSideEffects==="no-treeshake")for(let Q of this.dependencies)this.relevantDependencies.add(Q);else this.addRelevantSideEffectDependencies(this.relevantDependencies,Z,J);for(let Q of Z)this.relevantDependencies.add(Q);return this.relevantDependencies}getExportNamesByVariable(){if(this.exportNamesByVariable)return this.exportNamesByVariable;let Z=new Map;for(let J of this.getAllExportNames()){let[q]=this.getVariableForExportName(J);if(q instanceof g5)q=q.getOriginalVariable();if(!q||!(q.included||q instanceof X0))continue;let Q=Z.get(q);if(Q)Q.push(J);else Z.set(q,[J])}return this.exportNamesByVariable=Z}getExports(){return Array.from(this.exports.keys())}getReexports(){if(this.transitiveReexports)return this.transitiveReexports;this.transitiveReexports=[];let Z=new Set(this.reexportDescriptions.keys());for(let J of this.exportAllModules)if(J instanceof A1)Z.add(`*${J.id}`);else for(let q of[...J.getReexports(),...J.getExports()])if(q!=="default")Z.add(q);return this.transitiveReexports=[...Z]}getRenderedExports(){let Z=[],J=[];for(let q of this.exports.keys()){let[Q]=this.getVariableForExportName(q);(Q&&Q.included?Z:J).push(q)}return{removedExports:J,renderedExports:Z}}getSyntheticNamespace(){if(this.syntheticNamespace===null)this.syntheticNamespace=void 0,[this.syntheticNamespace]=this.getVariableForExportName(typeof this.info.syntheticNamedExports==="string"?this.info.syntheticNamedExports:"default",{onlyExplicit:!0});if(!this.syntheticNamespace)return e(hU(this.id,this.info.syntheticNamedExports));return this.syntheticNamespace}getVariableForExportName(Z,{importerForSideEffects:J,isExportAllSearch:q,onlyExplicit:Q,searchedNamesAndModules:Y}=o6){var X;if(Z[0]==="*"){if(Z.length===1)return[this.namespace];return this.graph.modulesById.get(Z.slice(1)).getVariableForExportName("*")}let z=this.reexportDescriptions.get(Z);if(z){let[W]=b9(z.module,z.localName,J,!1,Y);if(!W)return this.error(WQ(z.localName,this.id,z.module.id),z.start);if(J)hQ(W,J,this);return[W]}let V=this.exports.get(Z);if(V){if(V===vQ)return[this.exportShimVariable];let W=V.localName,K=this.traceVariable(W,{importerForSideEffects:J,searchedNamesAndModules:Y});if(J)v5(J.sideEffectDependenciesByVariable,K,()=>new Set).add(this),hQ(K,J,this);return[K]}if(Q)return[null];if(Z!=="default"){let W=(X=this.namespaceReexportsByName.get(Z))!==null&&X!==void 0?X:this.getVariableFromNamespaceReexports(Z,J,Y);if(this.namespaceReexportsByName.set(Z,W),W[0])return W}if(this.info.syntheticNamedExports)return[v5(this.syntheticExports,Z,()=>new G5(this.astContext,Z,this.getSyntheticNamespace()))];if(!q){if(this.options.shimMissingExports)return this.shimMissingExport(Z),[this.exportShimVariable]}return[null]}hasEffects(){return this.info.moduleSideEffects==="no-treeshake"||this.ast.included&&this.ast.hasEffects(a4())}include(){let Z=a9();if(this.ast.shouldBeIncluded(Z))this.ast.include(Z,!1)}includeAllExports(Z){if(!this.isExecuted)F4(this),this.graph.needsTreeshakingPass=!0;for(let J of this.exports.keys())if(Z||J!==this.info.syntheticNamedExports){let q=this.getVariableForExportName(J)[0];if(q.deoptimizePath(D1),!q.included)this.includeVariable(q)}for(let J of this.getReexports()){let[q]=this.getVariableForExportName(J);if(q){if(q.deoptimizePath(D1),!q.included)this.includeVariable(q);if(q instanceof X0)q.module.reexported=!0}}if(Z)this.namespace.setMergedNamespaces(this.includeAndGetAdditionalMergedNamespaces())}includeAllInBundle(){this.ast.include(a9(),!0),this.includeAllExports(!1)}isIncluded(){return this.ast.included||this.namespace.included||this.importedFromNotTreeshaken}linkImports(){this.addModulesToImportDescriptions(this.importDescriptions),this.addModulesToImportDescriptions(this.reexportDescriptions);let Z=[];for(let J of this.exportAllSources){let q=this.graph.modulesById.get(this.resolvedIds[J].id);if(q instanceof A1){Z.push(q);continue}this.exportAllModules.push(q)}this.exportAllModules.push(...Z)}render(Z){let J=this.magicString.clone();return this.ast.render(J,Z),this.usesTopLevelAwait=this.astContext.usesTopLevelAwait,J}setSource({ast:Z,code:J,customTransformCache:q,originalCode:Q,originalSourcemap:Y,resolvedIds:X,sourcemapChain:z,transformDependencies:V,transformFiles:W,...K}){if(this.info.code=J,this.originalCode=Q,this.originalSourcemap=Y,this.sourcemapChain=z,W)this.transformFiles=W;if(this.transformDependencies=V,this.customTransformCache=q,this.updateOptions(K),s1("generate ast",3),!Z)Z=this.tryParse();i1("generate ast",3),this.resolvedIds=X||Object.create(null);let $=this.id;this.magicString=new P8(J,{filename:this.excludeFromSourcemap?null:$,indentExclusionRanges:[]}),s1("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),code:J,deoptimizationTracker:this.graph.deoptimizationTracker,error:this.error.bind(this),fileName:$,getExports:this.getExports.bind(this),getModuleExecIndex:()=>this.execIndex,getModuleName:this.basename.bind(this),getNodeConstructor:(H)=>fQ[H]||fQ.UnknownNode,getReexports:this.getReexports.bind(this),importDescriptions:this.importDescriptions,includeAllExports:()=>this.includeAllExports(!0),includeDynamicImport:this.includeDynamicImport.bind(this),includeVariableInModule:this.includeVariableInModule.bind(this),magicString:this.magicString,module:this,moduleContext:this.context,options:this.options,requestTreeshakingPass:()=>this.graph.needsTreeshakingPass=!0,traceExport:(H)=>this.getVariableForExportName(H)[0],traceVariable:this.traceVariable.bind(this),usesTopLevelAwait:!1,warn:this.warn.bind(this)},this.scope=new tZ(this.graph.scope,this.astContext),this.namespace=new Q6(this.astContext),this.ast=new aZ(Z,{context:this.astContext,type:"Module"},this.scope),this.info.ast=Z,i1("analyse ast",3)}toJSON(){return{ast:this.ast.esTreeNode,code:this.info.code,customTransformCache:this.customTransformCache,dependencies:Array.from(this.dependencies,Y6),id:this.id,meta:this.info.meta,moduleSideEffects:this.info.moduleSideEffects,originalCode:this.originalCode,originalSourcemap:this.originalSourcemap,resolvedIds:this.resolvedIds,sourcemapChain:this.sourcemapChain,syntheticNamedExports:this.info.syntheticNamedExports,transformDependencies:this.transformDependencies,transformFiles:this.transformFiles}}traceVariable(Z,{importerForSideEffects:J,isExportAllSearch:q,searchedNamesAndModules:Q}=o6){let Y=this.scope.variables.get(Z);if(Y)return Y;let X=this.importDescriptions.get(Z);if(X){let z=X.module;if(z instanceof S1&&X.name==="*")return z.namespace;let[V]=b9(z,X.name,J||this,q,Q);if(!V)return this.error(WQ(X.name,this.id,z.id),X.start);return V}return null}tryParse(){try{return this.graph.contextParse(this.info.code)}catch(Z){let J=Z.message.replace(/ \(\d+:\d+\)$/,"");if(this.id.endsWith(".json"))J+=" (Note that you need @rollup/plugin-json to import JSON files)";else if(!this.id.endsWith(".js"))J+=" (Note that you need plugins to import files that are not JavaScript)";return this.error({code:"PARSE_ERROR",message:J,parserError:Z},Z.pos)}}updateOptions({meta:Z,moduleSideEffects:J,syntheticNamedExports:q}){if(J!=null)this.info.moduleSideEffects=J;if(q!=null)this.info.syntheticNamedExports=q;if(Z!=null)Object.assign(this.info.meta,Z)}warn(Z,J){this.addLocationToLogProps(Z,J),this.options.onwarn(Z)}addDynamicImport(Z){let J=Z.source;if(J instanceof rZ){if(J.quasis.length===1&&J.quasis[0].value.cooked)J=J.quasis[0].value.cooked}else if(J instanceof V6&&typeof J.value==="string")J=J.value;this.dynamicImports.push({argument:J,id:null,node:Z,resolution:null})}addExport(Z){if(Z instanceof R0)this.exports.set("default",{identifier:Z.variable.getAssignedVariableName(),localName:"default"});else if(Z instanceof q7){let J=Z.source.value;if(this.sources.add(J),Z.exported){let q=Z.exported.name;this.reexportDescriptions.set(q,{localName:"*",module:null,source:J,start:Z.start})}else this.exportAllSources.add(J)}else if(Z.source instanceof V6){let J=Z.source.value;this.sources.add(J);for(let q of Z.specifiers){let Q=q.exported.name;this.reexportDescriptions.set(Q,{localName:q.local.name,module:null,source:J,start:q.start})}}else if(Z.declaration){let J=Z.declaration;if(J instanceof eZ)for(let q of J.declarations)for(let Q of _j(q.id))this.exports.set(Q,{identifier:null,localName:Q});else{let q=J.id.name;this.exports.set(q,{identifier:null,localName:q})}}else for(let J of Z.specifiers){let q=J.local.name,Q=J.exported.name;this.exports.set(Q,{identifier:null,localName:q})}}addImport(Z){let J=Z.source.value;this.sources.add(J);for(let q of Z.specifiers){let Q=q.type===bj,Y=q.type===xj,X=Q?"default":Y?"*":q.imported.name;this.importDescriptions.set(q.local.name,{module:null,name:X,source:J,start:q.start})}}addImportMeta(Z){this.importMetas.push(Z)}addLocationToLogProps(Z,J){Z.id=this.id,Z.pos=J;let q=this.info.code,Q=B2(q,J,{offsetLine:1});if(Q){let{column:Y,line:X}=Q;try{({column:Y,line:X}=LB(this.sourcemapChain,{column:Y,line:X})),q=this.originalCode}catch(z){this.options.onwarn({code:"SOURCEMAP_ERROR",id:this.id,loc:{column:Y,file:this.id,line:X},message:`Error when using sourcemap for reporting an error: ${z.message}`,pos:J})}_4(Z,{column:Y,line:X},q,this.id)}}addModulesToImportDescriptions(Z){for(let J of Z.values()){let{id:q}=this.resolvedIds[J.source];J.module=this.graph.modulesById.get(q)}}addRelevantSideEffectDependencies(Z,J,q){let Q=new Set,Y=(X)=>{for(let z of X){if(Q.has(z))continue;if(Q.add(z),J.has(z)){Z.add(z);continue}if(!(z.info.moduleSideEffects||q.has(z)))continue;if(z instanceof A1||z.hasEffects()){Z.add(z);continue}Y(z.dependencies)}};Y(this.dependencies),Y(q)}getVariableFromNamespaceReexports(Z,J,q){let Q=null,Y=new Map,X=new Set;for(let z of this.exportAllModules){if(z.info.syntheticNamedExports===Z)continue;let[V,W]=b9(z,Z,J,!0,DB(q));if(z instanceof A1||W)X.add(V);else if(V instanceof G5){if(!Q)Q=V}else if(V)Y.set(V,z)}if(Y.size>0){let z=[...Y],V=z[0][0];if(z.length===1)return[V];return this.options.onwarn(xU(Z,this.id,z.map(([,W])=>W.id))),[null]}if(X.size>0){let z=[...X],V=z[0];if(z.length>1)this.options.onwarn(kU(Z,this.id,V.module.id,z.map((W)=>W.module.id)));return[V,!0]}if(Q)return[Q];return[null]}includeAndGetAdditionalMergedNamespaces(){let Z=new Set,J=new Set;for(let q of[this,...this.exportAllModules])if(q instanceof A1){let[Q]=q.getVariableForExportName("*");Q.include(),this.includedImports.add(Q),Z.add(Q)}else if(q.info.syntheticNamedExports){let Q=q.getSyntheticNamespace();Q.include(),this.includedImports.add(Q),J.add(Q)}return[...J,...Z]}includeDynamicImport(Z){let J=this.dynamicImports.find((q)=>q.node===Z).resolution;if(J instanceof S1)J.includedDynamicImporters.push(this),J.includeAllExports(!0)}includeVariable(Z){if(!Z.included){Z.include(),this.graph.needsTreeshakingPass=!0;let J=Z.module;if(J instanceof S1){if(!J.isExecuted)F4(J);if(J!==this){let q=_B(Z,this);for(let Q of q)if(!Q.isExecuted)F4(Q)}}}}includeVariableInModule(Z){this.includeVariable(Z);let J=Z.module;if(J&&J!==this)this.includedImports.add(Z)}shimMissingExport(Z){this.options.onwarn({code:"SHIMMED_EXPORT",exporter:V1(this.id),exportName:Z,message:`Missing export "${Z}" has been shimmed in module ${V1(this.id)}.`}),this.exports.set(Z,vQ)}}function hQ(Z,J,q){if(Z.module instanceof S1&&Z.module!==q){let Q=Z.module.cycles;if(Q.size>0){let Y=q.cycles;for(let X of Y)if(Q.has(X)){J.alternativeReexportModules.set(Z,q);break}}}}function pY(Z){return Z.endsWith(".js")?Z.slice(0,-3):Z}function iY(Z,J){if(Z.autoId)return`${Z.basePath?Z.basePath+"/":""}${pY(J)}`;return Z.id||""}function Y7(Z,J,q,Q,Y,X,z,V="return "){let{_:W,cnst:K,getDirectReturnFunction:$,getFunctionIntro:H,getPropertyAccess:M,n:O,s:j}=Y;if(!q)return`${O}${O}${V}${TB(Z,J,Q,z,M)};`;let L="";for(let{defaultVariableName:I,id:y,isChunk:_,name:T,namedExportsMode:g,namespaceVariableName:h,reexports:u}of J)if(u&&q){for(let E of u)if(E.reexported!=="*"){let N=nY(T,E.imported,g,_,I,h,Q,y,z,M);if(L)L+=O;if(E.imported!=="*"&&E.needsLiveBinding){let[P,A]=$([],{functionReturn:!0,lineBreakIndent:null,name:null});L+=`Object.defineProperty(exports,${W}'${E.reexported}',${W}{${O}${X}enumerable:${W}true,${O}${X}get:${W}${P}${N}${A}${O}});`}else L+=`exports${M(E.reexported)}${W}=${W}${N};`}}for(let{exported:I,local:y}of Z){let _=`exports${M(I)}`,T=y;if(_!==T){if(L)L+=O;L+=`${_}${W}=${W}${T};`}}for(let{name:I,reexports:y}of J)if(y&&q){for(let _ of y)if(_.reexported==="*"){if(L)L+=O;let T=`{${O}${X}if${W}(k${W}!==${W}'default'${W}&&${W}!exports.hasOwnProperty(k))${W}${AB(I,_.needsLiveBinding,X,Y)}${j}${O}}`;L+=K==="var"&&_.needsLiveBinding?`Object.keys(${I}).forEach(${H(["k"],{isAsync:!1,name:null})}${T});`:`for${W}(${K} k in ${I})${W}${T}`}}if(L)return`${O}${O}${L}`;return""}function TB(Z,J,q,Q,Y){if(Z.length>0)return Z[0].local;else for(let{defaultVariableName:X,id:z,isChunk:V,name:W,namedExportsMode:K,namespaceVariableName:$,reexports:H}of J)if(H)return nY(W,H[0].imported,K,V,X,$,q,z,Q,Y)}function nY(Z,J,q,Q,Y,X,z,V,W,K){if(J==="default"){if(!Q){let $=String(z(V)),H=C0[$]?Y:Z;return Q7($,W)?`${H}${K("default")}`:H}return q?`${Z}${K("default")}`:Z}if(J==="*")return(Q?!q:I0[String(z(V))])?X:Z;return`${Z}${K(J)}`}function gQ(Z){return Z([["value","true"]],{lineBreakIndent:null})}function X7(Z,J,q,{_:Q,getObject:Y}){if(Z){if(J){if(q)return`Object.defineProperties(exports,${Q}${Y([["__esModule",gQ(Y)],[null,`[Symbol.toStringTag]:${Q}${G0(Y)}`]],{lineBreakIndent:null})});`;return`Object.defineProperty(exports,${Q}'__esModule',${Q}${gQ(Y)});`}if(q)return`Object.defineProperty(exports,${Q}Symbol.toStringTag,${Q}${G0(Y)});`}return""}function z7(Z,J,q,Q,Y,X,z,V){let{_:W,cnst:K,n:$}=V,H=new Set,M=[],O=(j,L,I)=>{H.add(L),M.push(`${K} ${j}${W}=${W}/*#__PURE__*/${L}(${I});`)};for(let{defaultVariableName:j,imports:L,id:I,isChunk:y,name:_,namedExportsMode:T,namespaceVariableName:g,reexports:h}of Z)if(y){for(let{imported:u,reexported:E}of[...L||[],...h||[]])if(u==="*"&&E!=="*"){if(!T)O(g,$0,_);break}}else{let u=String(J(I)),E=!1,N=!1;for(let{imported:P,reexported:A}of[...L||[],...h||[]]){let B,b;if(P==="default"){if(!E){if(E=!0,j!==g)b=j,B=C0[u]}}else if(P==="*"&&A!=="*"){if(!N)N=!0,B=I0[u],b=g}if(B)O(b,B,_)}}return`${nZ(H,X,z,V,q,Q,Y)}${M.length>0?`${M.join($)}${$}${$}`:""}`}function PB(Z){return Z.endsWith(".js")?Z:Z+".js"}function aY(Z,J){if(Z[0]!==".")return Z;return J?PB(Z):pY(Z)}function Z3(Z,J){let q=J.map(({id:Q})=>Q).filter((Q)=>(Q in SB));if(!q.length)return;Z({code:"MISSING_NODE_BUILTINS",message:`Creating a browser bundle that depends on Node.js built-in modules (${V8(q)}). You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`,modules:q})}function yB(Z,{accessedGlobals:J,dependencies:q,exports:Q,hasExports:Y,id:X,indent:z,intro:V,isEntryFacade:W,isModuleFacade:K,namedExportsMode:$,outro:H,snippets:M,warn:O},{amd:j,esModule:L,externalLiveBindings:I,freeze:y,interop:_,namespaceToStringTag:T,strict:g}){Z3(O,q);let h=q.map((G)=>`'${aY(G.id,j.forceJsExtensionForImports)}'`),u=q.map((G)=>G.name),{n:E,getNonArrowFunctionIntro:N,_:P}=M;if($&&Y)u.unshift("exports"),h.unshift("'exports'");if(J.has("require"))u.unshift("require"),h.unshift("'require'");if(J.has("module"))u.unshift("module"),h.unshift("'module'");let A=iY(j,X),B=(A?`'${A}',${P}`:"")+(h.length?`[${h.join(`,${P}`)}],${P}`:""),b=g?`${P}'use strict';`:"";Z.prepend(`${V}${z7(q,_,I,y,T,J,z,M)}`);let k=Y7(Q,q,$,_,M,z,I),S=X7($&&Y,W&&L,K&&T,M);if(S)S=E+E+S;return Z.append(`${k}${S}${H}`),Z.indent(z).prepend(`${j.define}(${B}(${N(u,{isAsync:!1,name:null})}{${b}${E}${E}`).append(`${E}${E}}));`)}function EB(Z,{accessedGlobals:J,dependencies:q,exports:Q,hasExports:Y,indent:X,intro:z,isEntryFacade:V,isModuleFacade:W,namedExportsMode:K,outro:$,snippets:H},{compact:M,esModule:O,externalLiveBindings:j,freeze:L,interop:I,namespaceToStringTag:y,strict:_}){let{_:T,n:g}=H,h=_?`'use strict';${g}${g}`:"",u=X7(K&&Y,V&&O,W&&y,H);if(u)u+=g+g;let E=bB(q,H,M),N=z7(q,I,j,L,y,J,X,H);Z.prepend(`${h}${z}${u}${E}${N}`);let P=Y7(Q,q,K,I,H,X,j,`module.exports${T}=${T}`);return Z.append(`${P}${$}`)}function bB(Z,{_:J,cnst:q,n:Q},Y){let X="",z=!1;for(let{id:V,name:W,reexports:K,imports:$}of Z)if(!K&&!$){if(X)X+=Y&&!z?",":`;${Q}`;z=!1,X+=`require('${V}')`}else X+=Y&&z?",":`${X?`;${Q}`:""}${q} `,z=!0,X+=`${W}${J}=${J}require('${V}')`;if(X)return`${X};${Q}${Q}`;return""}function xB(Z,{accessedGlobals:J,indent:q,intro:Q,outro:Y,dependencies:X,exports:z,snippets:V},{externalLiveBindings:W,freeze:K,namespaceToStringTag:$}){let{_:H,n:M}=V,O=kB(X,H);if(O.length>0)Q+=O.join(M)+M+M;if(Q+=nZ(null,J,q,V,W,K,$),Q)Z.prepend(Q);let j=fB(z,V);if(j.length)Z.append(M+M+j.join(M).trim());if(Y)Z.append(Y);return Z.trim()}function kB(Z,J){let q=[];for(let{id:Q,reexports:Y,imports:X,name:z}of Z){if(!Y&&!X){q.push(`import${J}'${Q}';`);continue}if(X){let V=null,W=null,K=[];for(let $ of X)if($.imported==="default")V=$;else if($.imported==="*")W=$;else K.push($);if(W)q.push(`import${J}*${J}as ${W.local} from${J}'${Q}';`);if(V&&K.length===0)q.push(`import ${V.local} from${J}'${Q}';`);else if(K.length>0)q.push(`import ${V?`${V.local},${J}`:""}{${J}${K.map(($)=>{if($.imported===$.local)return $.imported;else return`${$.imported} as ${$.local}`}).join(`,${J}`)}${J}}${J}from${J}'${Q}';`)}if(Y){let V=null,W=[],K=[];for(let $ of Y)if($.reexported==="*")V=$;else if($.imported==="*")W.push($);else K.push($);if(V)q.push(`export${J}*${J}from${J}'${Q}';`);if(W.length>0){if(!X||!X.some(($)=>$.imported==="*"&&$.local===z))q.push(`import${J}*${J}as ${z} from${J}'${Q}';`);for(let $ of W)q.push(`export${J}{${J}${z===$.reexported?z:`${z} as ${$.reexported}`} };`)}if(K.length>0)q.push(`export${J}{${J}${K.map(($)=>{if($.imported===$.reexported)return $.imported;else return`${$.imported} as ${$.reexported}`}).join(`,${J}`)}${J}}${J}from${J}'${Q}';`)}}return q}function fB(Z,{_:J,cnst:q}){let Q=[],Y=[];for(let X of Z){if(X.expression)Q.push(`${q} ${X.local}${J}=${J}${X.expression};`);Y.push(X.exported===X.local?X.local:`${X.local} as ${X.exported}`)}if(Y.length)Q.push(`export${J}{${J}${Y.join(`,${J}`)}${J}};`);return Q}function vB(Z,J,q,{_:Q,getPropertyAccess:Y,s:X},z){let V=Z.split(".");V[0]=(typeof q==="function"?q(V[0]):q[V[0]])||V[0],V.pop();let W=J;return V.map((K)=>{return W+=Y(K),`${W}${Q}=${Q}${W}${Q}||${Q}{}${X}`}).join(z?",":`
|
|
20
|
+
`)+(z&&V.length?";":`
|
|
21
|
+
`)}function x9(Z,J,q,Q,{_:Y,getPropertyAccess:X}){let z=Z.split(".");z[0]=(typeof q==="function"?q(z[0]):q[z[0]])||z[0];let V=z.pop(),W=J,K=z.map(($)=>{return W+=X($),`${W}${Y}=${Y}${W}${Y}||${Y}{}`}).concat(`${W}${X(V)}`).join(`,${Y}`)+`${Y}=${Y}${Q}`;if(z.length>0)K=`(${K})`;return K}function sY(Z){let J=Z.length;while(J--){let{imports:q,reexports:Q}=Z[J];if(q||Q)return Z.slice(0,J+1)}return[]}function hB(Z,{accessedGlobals:J,dependencies:q,exports:Q,hasExports:Y,indent:X,intro:z,namedExportsMode:V,outro:W,snippets:K,warn:$},{compact:H,esModule:M,extend:O,freeze:j,externalLiveBindings:L,globals:I,interop:y,name:_,namespaceToStringTag:T,strict:g}){let{_:h,getNonArrowFunctionIntro:u,getPropertyAccess:E,n:N}=K,P=_&&_.includes("."),A=!O&&!P;if(_&&A&&!nU(_))return e({code:"ILLEGAL_IDENTIFIER_AS_NAME",message:`Given name "${_}" is not a legal JS identifier. If you need this, you can try "output.extend: true".`});Z3($,q);let B=sY(q),b=B.map((t)=>t.globalName||"null"),k=B.map((t)=>t.name);if(Y&&!_)$({code:"MISSING_NAME_OPTION_FOR_IIFE_EXPORT",message:'If you do not supply "output.name", you may not be able to access the exports of an IIFE bundle.'});if(V&&Y)if(O)b.unshift(`this${L4(_,E)}${h}=${h}this${L4(_,E)}${h}||${h}{}`),k.unshift("exports");else b.unshift("{}"),k.unshift("exports");let S=g?`${X}'use strict';${N}`:"",G=z7(q,y,L,j,T,J,X,K);Z.prepend(`${z}${G}`);let F=`(${u(k,{isAsync:!1,name:null})}{${N}${S}${N}`;if(Y){if(_&&!(O&&V))F=(A?`var ${_}`:`this${L4(_,E)}`)+`${h}=${h}${F}`;if(P)F=vB(_,"this",I,K,H)+F}let d=`${N}${N}})(${b.join(`,${h}`)});`;if(Y&&!O&&V)d=`${N}${N}${X}return exports;${d}`;let f=Y7(Q,q,V,y,K,X,L),o=X7(V&&Y,M,T,K);if(o)o=N+N+o;return Z.append(`${f}${o}${W}`),Z.indent(X).prepend(F).append(d)}function gB(Z,{accessedGlobals:J,dependencies:q,exports:Q,hasExports:Y,indent:X,intro:z,snippets:V,outro:W,usesTopLevelAwait:K},{externalLiveBindings:$,freeze:H,name:M,namespaceToStringTag:O,strict:j,systemNullSetters:L}){let{_:I,getFunctionIntro:y,getNonArrowFunctionIntro:_,n:T,s:g}=V,{importBindings:h,setters:u,starExcludes:E}=mB(q,Q,X,V),N=M?`'${M}',${I}`:"",P=J.has("module")?["exports","module"]:Y?["exports"]:[],A=`System.register(${N}[`+q.map(({id:b})=>`'${b}'`).join(`,${I}`)+`],${I}(${_(P,{isAsync:!1,name:null})}{${T}${X}${j?"'use strict';":""}`+dB(E,X,V)+lB(h,X,V)+`${T}${X}return${I}{${u.length?`${T}${X}${X}setters:${I}[${u.map((b)=>b?`${y(["module"],{isAsync:!1,name:null})}{${T}${X}${X}${X}${b}${T}${X}${X}}`:L?"null":`${y([],{isAsync:!1,name:null})}{}`).join(`,${I}`)}],`:""}${T}`;A+=`${X}${X}execute:${I}(${_([],{isAsync:K,name:null})}{${T}${T}`;let B=`${X}${X}})${T}${X}}${g}${T}}));`;return Z.prepend(z+nZ(null,J,X,V,$,H,O)+cB(Q,X,V)),Z.append(`${W}${T}${T}`+pB(Q,X,V)+iB(Q,X,V)),Z.indent(`${X}${X}${X}`).append(B).prepend(A)}function mB(Z,J,q,{_:Q,cnst:Y,getObject:X,getPropertyAccess:z,n:V}){let W=[],K=[],$=null;for(let{imports:H,reexports:M}of Z){let O=[];if(H)for(let j of H)if(W.push(j.local),j.imported==="*")O.push(`${j.local}${Q}=${Q}module;`);else O.push(`${j.local}${Q}=${Q}module${z(j.imported)};`);if(M){let j=[],L=!1;for(let{imported:I,reexported:y}of M)if(y==="*")L=!0;else j.push([y,I==="*"?"module":`module${z(I)}`]);if(j.length>1||L){let I=X(j,{lineBreakIndent:null});if(L){if(!$)$=uB({dependencies:Z,exports:J});O.push(`${Y} setter${Q}=${Q}${I};`,`for${Q}(${Y} name in module)${Q}{`,`${q}if${Q}(!_starExcludes[name])${Q}setter[name]${Q}=${Q}module[name];`,"}","exports(setter);")}else O.push(`exports(${I});`)}else{let[I,y]=j[0];O.push(`exports('${I}',${Q}${y});`)}}K.push(O.join(`${V}${q}${q}${q}`))}return{importBindings:W,setters:K,starExcludes:$}}function J3(Z,J,{_:q,n:Q}){if(Z.length===0)return"";if(Z.length===1)return`exports('${Z[0].name}',${q}${Z[0].value});${Q}${Q}`;return`exports({${Q}`+Z.map(({name:Y,value:X})=>`${J}${Y}:${q}${X}`).join(`,${Q}`)+`${Q}});${Q}${Q}`}function k9(Z,J,q){if(!Z)return"null";return`${J}${L4(Z,q)}`}function nB(Z,J,{_:q,getPropertyAccess:Q}){let Y=J;return Z.split(".").map((X)=>Y+=Q(X)).join(`${q}&&${q}`)}function aB(Z,{accessedGlobals:J,dependencies:q,exports:Q,hasExports:Y,id:X,indent:z,intro:V,namedExportsMode:W,outro:K,snippets:$,warn:H},{amd:M,compact:O,esModule:j,extend:L,externalLiveBindings:I,freeze:y,interop:_,name:T,namespaceToStringTag:g,globals:h,noConflict:u,strict:E}){let{_:N,cnst:P,getFunctionIntro:A,getNonArrowFunctionIntro:B,getPropertyAccess:b,n:k,s:S}=$,G=O?"f":"factory",F=O?"g":"global";if(Y&&!T)return e({code:"MISSING_NAME_OPTION_FOR_IIFE_EXPORT",message:'You must supply "output.name" for UMD bundles that have exports so that the exports are accessible in environments without a module loader.'});Z3(H,q);let d=q.map(($5)=>`'${aY($5.id,M.forceJsExtensionForImports)}'`),f=q.map(($5)=>`require('${$5.id}')`),o=sY(q),t=o.map(($5)=>k9($5.globalName,F,b)),Q1=o.map(($5)=>$5.name);if(W&&(Y||u))d.unshift("'exports'"),f.unshift("exports"),t.unshift(x9(T,F,h,`${L?`${k9(T,F,b)}${N}||${N}`:""}{}`,$)),Q1.unshift("exports");let N1=iY(M,X),R1=(N1?`'${N1}',${N}`:"")+(d.length?`[${d.join(`,${N}`)}],${N}`:""),F1=M.define,s=!W&&Y?`module.exports${N}=${N}`:"",m=E?`${N}'use strict';${k}`:"",L1;if(u){let $5=O?"e":"exports",m7;if(!W&&Y)m7=`${P} ${$5}${N}=${N}${x9(T,F,h,`${G}(${t.join(`,${N}`)})`,$)};`;else{let vW=t.shift();m7=`${P} ${$5}${N}=${N}${vW};${k}${z}${z}${G}(${[$5].concat(t).join(`,${N}`)});`}L1=`(${A([],{isAsync:!1,name:null})}{${k}${z}${z}${P} current${N}=${N}${nB(T,F,$)};${k}${z}${z}${m7}${k}${z}${z}${$5}.noConflict${N}=${N}${A([],{isAsync:!1,name:null})}{${N}${k9(T,F,b)}${N}=${N}current;${N}return ${$5}${S}${N}};${k}${z}})()`}else if(L1=`${G}(${t.join(`,${N}`)})`,!W&&Y)L1=x9(T,F,h,L1,$);let p=Y||u&&W||t.length>0,D=[G];if(p)D.unshift(F);let x=p?`this,${N}`:"",C=p?`(${F}${N}=${N}typeof globalThis${N}!==${N}'undefined'${N}?${N}globalThis${N}:${N}${F}${N}||${N}self,${N}`:"",v=p?")":"",c=p?`${z}typeof exports${N}===${N}'object'${N}&&${N}typeof module${N}!==${N}'undefined'${N}?${N}${s}${G}(${f.join(`,${N}`)})${N}:${k}`:"",n=`(${B(D,{isAsync:!1,name:null})}{${k}`+c+`${z}typeof ${F1}${N}===${N}'function'${N}&&${N}${F1}.amd${N}?${N}${F1}(${R1}${G})${N}:${k}${z}${C}${L1}${v};${k}})(${x}(${B(Q1,{isAsync:!1,name:null})}{${m}${k}`,i=k+k+"}));";Z.prepend(`${V}${z7(q,_,I,y,g,J,z,$)}`);let B1=Y7(Q,q,W,_,$,z,I),_1=X7(W&&Y,j,g,$);if(_1)_1=k+k+_1;return Z.append(`${B1}${_1}${K}`),Z.trim().indent(z).append(i).prepend(n)}class YZ{constructor(Z,J){this.isOriginal=!0,this.filename=Z,this.content=J}traceSegment(Z,J,q){return{column:J,line:Z,name:q,source:this}}}class j0{constructor(Z,J){this.sources=J,this.names=Z.names,this.mappings=Z.mappings}traceMappings(){let Z=[],J=new Map,q=[],Q=[],Y=new Map,X=[];for(let z of this.mappings){let V=[];for(let W of z){if(W.length===1)continue;let K=this.sources[W[1]];if(!K)continue;let $=K.traceSegment(W[2],W[3],W.length===5?this.names[W[4]]:"");if($){let{column:H,line:M,name:O,source:{content:j,filename:L}}=$,I=J.get(L);if(I===void 0)I=Z.length,Z.push(L),J.set(L,I),q[I]=j;else if(q[I]==null)q[I]=j;else if(j!=null&&q[I]!==j)return e({message:`Multiple conflicting contents for sourcemap source ${L}`});let y=[W[0],I,M,H];if(O){let _=Y.get(O);if(_===void 0)_=Q.length,Q.push(O),Y.set(O,_);y[4]=_}V.push(y)}}X.push(V)}return{mappings:X,names:Q,sources:Z,sourcesContent:q}}traceSegment(Z,J,q){let Q=this.mappings[Z];if(!Q)return null;let Y=0,X=Q.length-1;while(Y<=X){let z=Y+X>>1,V=Q[z];if(V[0]===J||Y===X){if(V.length==1)return null;let W=this.sources[V[1]];if(!W)return null;return W.traceSegment(V[2],V[3],V.length===5?this.names[V[4]]:q)}if(V[0]>J)X=z-1;else Y=z+1}return null}}function rY(Z){return function(q,Q){if(Q.mappings)return new j0(Q,[q]);return Z({code:"SOURCEMAP_BROKEN",message:`Sourcemap is likely to be incorrect: a plugin (${Q.plugin}) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,plugin:Q.plugin,url:"https://rollupjs.org/guide/en/#warning-sourcemap-is-likely-to-be-incorrect"}),new j0({mappings:[],names:[]},[q])}}function oY(Z,J,q,Q,Y){let X;if(!q)X=new YZ(Z,J);else{let z=q.sources,V=q.sourcesContent||[],W=f5(Z)||".",K=q.sourceRoot||".",$=z.map((H,M)=>new YZ(U5(W,K,H),V[M]));X=new j0(q,$)}return Q.reduce(Y,X)}function rB(Z,J,q,Q,Y,X){let z=rY(X),V=q.filter((j)=>!j.excludeFromSourcemap).map((j)=>oY(j.id,j.originalCode,j.originalSourcemap,j.sourcemapChain,z)),W=new j0(J,V),K=Q.reduce(z,W),{sources:$,sourcesContent:H,names:M,mappings:O}=K.traceMappings();if(Z){let j=f5(Z);$=$.map((L)=>UZ(j,L)),Z=z8(Z)}return H=Y?null:H,new H0({file:Z,mappings:O,names:M,sources:$,sourcesContent:H})}function oB(Z,J,q,Q,Y){if(!Q.length)return q;return{version:3,...oY(Z,J,q,Q,rY(Y)).traceMappings()}}function eB(Z,J,q,Q,Y,X,z,V,W,K,$,H,M){let O=Z.slice().reverse();for(let j of O)j.scope.addUsedOutsideNames(Q,Y,$,H);ZM(Q,O,M),tB[Y](Q,q,J,X,z,V,W,K);for(let j of O)j.scope.deconflict(Y,$,H)}function mQ(Z,J,q,Q,Y,X,z,V){for(let W of q.dependencies)if(Y||W instanceof A1)W.variableName=k5(W.suggestedVariableName,Z);for(let W of J){let{module:K,name:$}=W;if(W.isNamespace&&(Y||K instanceof A1))W.setRenderNames(null,(K instanceof A1?K:z.get(K)).variableName);else if(K instanceof A1&&$==="default")W.setRenderNames(null,k5([...K.exportedVariables].some(([H,M])=>M==="*"&&H.included)?K.suggestedVariableName+"__default":K.suggestedVariableName,Z));else W.setRenderNames(null,k5($,Z))}for(let W of V)W.setRenderNames(null,k5(W.name,Z))}function G4(Z,J,{deconflictedDefault:q,deconflictedNamespace:Q,dependencies:Y},X,z,V,W){for(let K of Y)K.variableName=k5(K.suggestedVariableName,Z);for(let K of Q)K.namespaceVariableName=k5(`${K.suggestedVariableName}__namespace`,Z);for(let K of q)if(Q.has(K)&&zB(String(X(K.id)),V))K.defaultVariableName=K.namespaceVariableName;else K.defaultVariableName=k5(`${K.suggestedVariableName}__default`,Z);for(let K of J){let $=K.module;if($ instanceof A1){let H=K.name;if(H==="default"){let M=String(X($.id)),O=C0[M]?$.defaultVariableName:$.variableName;if(Q7(M,V))K.setRenderNames(O,"default");else K.setRenderNames(null,O)}else if(H==="*")K.setRenderNames(null,I0[String(X($.id))]?$.namespaceVariableName:$.variableName);else K.setRenderNames($.variableName,null)}else{let H=W.get($);if(z&&K.isNamespace)K.setRenderNames(null,H.exportMode==="default"?H.namespaceVariableName:H.variableName);else if(H.exportMode==="default")K.setRenderNames(null,H.variableName);else K.setRenderNames(H.variableName,H.getVariableExportName(K))}}}function ZM(Z,J,q){for(let Q of J){for(let Y of Q.scope.variables.values())if(Y.included&&!(Y.renderBaseName||Y instanceof g5&&Y.getOriginalVariable()!==Y))Y.setRenderNames(null,k5(Y.name,Z));if(q.has(Q)){let Y=Q.namespace;Y.setRenderNames(null,k5(Y.name,Z))}}}function U4(Z){if(!Z.match(JM))return Z;return Z.replace(QM,"\\\\").replace(qM,"\\$1")}function YM(Z,J,q){let Q=0;for(let Y of Z){let[X]=Y.name;if(J.has(X))do if(X=t9(++Q),X.charCodeAt(0)===49)Q+=9*64**(X.length-1),X=t9(Q);while(l4.has(X)||J.has(X));J.set(X,Y),q.set(Y,[X])}}function XM(Z,J,q){for(let Q of Z){let Y=0,X=Q.name;while(J.has(X))X=Q.name+"$"+ ++Y;J.set(X,Q),q.set(Q,[X])}}function zM(Z,{exports:J,name:q,format:Q},Y,X,z){let V=Z.getExportNames();if(J==="default"){if(V.length!==1||V[0]!=="default")return e(VQ("default",V,X))}else if(J==="none"&&V.length)return e(VQ("none",V,X));if(J==="auto")if(V.length===0)J="none";else if(V.length===1&&V[0]==="default"){if(Q==="cjs"&&Y.has("exports"))z(vU(X));J="default"}else{if(Q!=="es"&&Q!=="system"&&V.includes("default"))z(bU(X,q));J="named"}return J}function VM(Z){let J=Z.split(`
|
|
22
|
+
`),q=J.filter((X)=>/^\t+/.test(X)),Q=J.filter((X)=>/^ {2,}/.test(X));if(q.length===0&&Q.length===0)return null;if(q.length>=Q.length)return"\t";let Y=Q.reduce((X,z)=>{let V=/^ +/.exec(z)[0].length;return Math.min(V,X)},1/0);return Array(Y+1).join(" ")}function WM(Z,J){if(J.indent!==!0)return J.indent;for(let q of Z){let Q=VM(q.originalCode);if(Q!==null)return Q}return"\t"}function KM(Z,J,q){let Q=[],Y=new Set;for(let z=J.length-1;z>=0;z--){let V=J[z];if(!Y.has(V)){let W=[];tY(V,W,Y,Z,q),Q.unshift(W)}}let X=new Set;for(let z of Q)for(let V of z)X.add(V);return X}function tY(Z,J,q,Q,Y){let X=Z.getDependenciesToBeIncluded();for(let z of X){if(z instanceof A1){J.push(z);continue}let V=Y.get(z);if(V!==Q){J.push(V);continue}if(!q.has(z))q.add(z),tY(z,J,q,Q,Y)}}function XZ(Z){if(!Z)return null;if(typeof Z==="string")Z=JSON.parse(Z);if(Z.mappings==="")return{mappings:[],names:[],sources:[],version:3};let J=typeof Z.mappings==="string"?rG(Z.mappings):Z.mappings;return{...Z,mappings:J}}function $M({code:Z,options:J,outputPluginDriver:q,renderChunk:Q,sourcemapChain:Y}){let X=(z,V,W)=>{if(V==null)return z;if(typeof V==="string")V={code:V,map:void 0};if(V.map!==null){let K=XZ(V.map);Y.push(K||{missing:!0,plugin:W.name})}return V.code};return q.hookReduceArg0("renderChunk",[Z,Q,J],X)}function w4(Z,J,q){if(i9(Z))return e(n5(`Invalid pattern "${Z}" for "${J}", patterns can be neither absolute nor relative paths. If you want your files to be stored in a subdirectory, write its name without a leading slash like this: subdirectory/pattern.`));return Z.replace(/\[(\w+)\]/g,(Q,Y)=>{if(!q.hasOwnProperty(Y))return e(n5(`"[${Y}]" is not a valid placeholder in "${J}" pattern.`));let X=q[Y]();if(i9(X))return e(n5(`Invalid substitution "${X}" for placeholder "[${Y}]" in "${J}" pattern, can be neither absolute nor relative path.`));return X})}function zZ(Z,{[q3]:J}){if(!J.has(Z.toLowerCase()))return Z;let q=Q8(Z);Z=Z.substring(0,Z.length-q.length);let Q,Y=1;while(J.has((Q=Z+ ++Y+q).toLowerCase()));return Q}function UM(Z,J,q,Q){let Y=typeof J==="function"?J(Z.id):J[Z.id];if(Y)return Y;if(q)return Q({code:"MISSING_GLOBAL_NAME",guess:Z.variableName,message:`No name was provided for external module '${Z.id}' in output.globals – guessing '${Z.variableName}'`,source:Z.id}),Z.variableName}class I8{constructor(Z,J,q,Q,Y,X,z,V,W,K){this.orderedModules=Z,this.inputOptions=J,this.outputOptions=q,this.unsetOptions=Q,this.pluginDriver=Y,this.modulesById=X,this.chunkByModule=z,this.facadeChunkByModule=V,this.includedNamespaces=W,this.manualChunkAlias=K,this.entryModules=[],this.exportMode="named",this.facadeModule=null,this.id=null,this.namespaceVariableName="",this.needsExportsShim=!1,this.variableName="",this.accessedGlobalsByScope=new Map,this.dependencies=new Set,this.dynamicDependencies=new Set,this.dynamicEntryModules=[],this.dynamicName=null,this.exportNamesByVariable=new Map,this.exports=new Set,this.exportsByName=new Map,this.fileName=null,this.implicitEntryModules=[],this.implicitlyLoadedBefore=new Set,this.imports=new Set,this.includedReexportsByModule=new Map,this.indentString=void 0,this.isEmpty=!0,this.name=null,this.renderedDependencies=null,this.renderedExports=null,this.renderedHash=void 0,this.renderedModuleSources=new Map,this.renderedModules=Object.create(null),this.renderedSource=null,this.sortedExportNames=null,this.strictFacade=!1,this.usedModules=void 0,this.execIndex=Z.length>0?Z[0].execIndex:1/0;let $=new Set(Z);for(let H of Z){if(H.namespace.included)W.add(H);if(this.isEmpty&&H.isIncluded())this.isEmpty=!1;if(H.info.isEntry||q.preserveModules)this.entryModules.push(H);for(let M of H.includedDynamicImporters)if(!$.has(M)){if(this.dynamicEntryModules.push(H),H.info.syntheticNamedExports&&!q.preserveModules)W.add(H),this.exports.add(H.namespace)}if(H.implicitlyLoadedAfter.size>0)this.implicitEntryModules.push(H)}this.suggestedVariableName=NZ(this.generateVariableName())}static generateFacade(Z,J,q,Q,Y,X,z,V,W,K){let $=new I8([],Z,J,q,Q,Y,X,z,V,null);if($.assignFacadeName(K,W),!z.has(W))z.set(W,$);for(let H of W.getDependenciesToBeIncluded())$.dependencies.add(H instanceof S1?X.get(H):H);if(!$.dependencies.has(X.get(W))&&W.info.moduleSideEffects&&W.hasEffects())$.dependencies.add(X.get(W));return $.ensureReexportsAreAvailableForModule(W),$.facadeModule=W,$.strictFacade=!0,$}canModuleBeFacade(Z,J){let q=Z.getExportNamesByVariable();for(let Q of this.exports)if(!q.has(Q)){if(q.size===0&&Z.isUserDefinedEntryPoint&&Z.preserveSignature==="strict"&&this.unsetOptions.has("preserveEntrySignatures"))this.inputOptions.onwarn({code:"EMPTY_FACADE",id:Z.id,message:`To preserve the export signature of the entry module "${V1(Z.id)}", an empty facade chunk was created. This often happens when creating a bundle for a web app where chunks are placed in script tags and exports are ignored. In this case it is recommended to set "preserveEntrySignatures: false" to avoid this and reduce the number of chunks. Otherwise if this is intentional, set "preserveEntrySignatures: 'strict'" explicitly to silence this warning.`,url:"https://rollupjs.org/guide/en/#preserveentrysignatures"});return!1}for(let Q of J)if(!(q.has(Q)||Q.module===Z))return!1;return!0}generateExports(){this.sortedExportNames=null;let Z=new Set(this.exports);if(this.facadeModule!==null&&(this.facadeModule.preserveSignature!==!1||this.strictFacade)){let J=this.facadeModule.getExportNamesByVariable();for(let[q,Q]of J){this.exportNamesByVariable.set(q,[...Q]);for(let Y of Q)this.exportsByName.set(Y,q);Z.delete(q)}}if(this.outputOptions.minifyInternalExports)YM(Z,this.exportsByName,this.exportNamesByVariable);else XM(Z,this.exportsByName,this.exportNamesByVariable);if(this.outputOptions.preserveModules||this.facadeModule&&this.facadeModule.info.isEntry)this.exportMode=zM(this,this.outputOptions,this.unsetOptions,this.facadeModule.id,this.inputOptions.onwarn)}generateFacades(){var Z;let J=[],q=new Set([...this.entryModules,...this.implicitEntryModules]),Q=new Set(this.dynamicEntryModules.map(({namespace:Y})=>Y));for(let Y of q)if(Y.preserveSignature)for(let X of Y.getExportNamesByVariable().keys())Q.add(X);for(let Y of q){let X=Array.from(new Set(Y.chunkNames.filter(({isUserDefined:z})=>z).map(({name:z})=>z)),(z)=>({name:z}));if(X.length===0&&Y.isUserDefinedEntryPoint)X.push({});if(X.push(...Array.from(Y.chunkFileNames,(z)=>({fileName:z}))),X.length===0)X.push({});if(!this.facadeModule){let z=Y.preserveSignature==="strict"||Y.preserveSignature==="exports-only"&&Y.getExportNamesByVariable().size!==0;if(!z||this.outputOptions.preserveModules||this.canModuleBeFacade(Y,Q)){if(this.facadeModule=Y,this.facadeChunkByModule.set(Y,this),Y.preserveSignature)this.strictFacade=z;this.assignFacadeName(X.shift(),Y)}}for(let z of X)J.push(I8.generateFacade(this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.modulesById,this.chunkByModule,this.facadeChunkByModule,this.includedNamespaces,Y,z))}for(let Y of this.dynamicEntryModules){if(Y.info.syntheticNamedExports)continue;if(!this.facadeModule&&this.canModuleBeFacade(Y,Q))this.facadeModule=Y,this.facadeChunkByModule.set(Y,this),this.strictFacade=!0,this.dynamicName=f9(Y);else if(this.facadeModule===Y&&!this.strictFacade&&this.canModuleBeFacade(Y,Q))this.strictFacade=!0;else if(!((Z=this.facadeChunkByModule.get(Y))===null||Z===void 0?void 0:Z.strictFacade))this.includedNamespaces.add(Y),this.exports.add(Y.namespace)}if(!this.outputOptions.preserveModules)this.addNecessaryImportsForFacades();return J}generateId(Z,J,q,Q){if(this.fileName!==null)return this.fileName;let[Y,X]=this.facadeModule&&this.facadeModule.isUserDefinedEntryPoint?[J.entryFileNames,"output.entryFileNames"]:[J.chunkFileNames,"output.chunkFileNames"];return zZ(w4(typeof Y==="function"?Y(this.getChunkInfo()):Y,X,{format:()=>J.format,hash:()=>Q?this.computeContentHashWithDependencies(Z,J,q):"[hash]",name:()=>this.getChunkName()}),q)}generateIdPreserveModules(Z,J,q,Q){let[{id:Y}]=this.orderedModules,X=this.outputOptions.sanitizeFileName(Y.split(jM,1)[0]),z,V=Q.has("entryFileNames")?"[name][assetExtname].js":J.entryFileNames,W=typeof V==="function"?V(this.getChunkInfo()):V;if(s5(X)){let K=f5(X),$=Q8(X),H=w4(W,"output.entryFileNames",{assetExtname:()=>uQ.includes($)?"":$,ext:()=>$.substring(1),extname:()=>$,format:()=>J.format,name:()=>this.getChunkName()}),M=`${K}/${H}`,{preserveModulesRoot:O}=J;if(O&&U5(M).startsWith(O))z=M.slice(O.length).replace(/^[\\/]/,"");else z=FZ(Z,M)}else{let K=Q8(X);z=`_virtual/${w4(W,"output.entryFileNames",{assetExtname:()=>uQ.includes(K)?"":K,ext:()=>K.substring(1),extname:()=>K,format:()=>J.format,name:()=>M4(X)})}`}return zZ(z0(z),q)}getChunkInfo(){let Z=this.facadeModule,J=this.getChunkName.bind(this);return{exports:this.getExportNames(),facadeModuleId:Z&&Z.id,isDynamicEntry:this.dynamicEntryModules.length>0,isEntry:Z!==null&&Z.info.isEntry,isImplicitEntry:this.implicitEntryModules.length>0,modules:this.renderedModules,get name(){return J()},type:"chunk"}}getChunkInfoWithFileNames(){return Object.assign(this.getChunkInfo(),{code:void 0,dynamicImports:Array.from(this.dynamicDependencies,Y6),fileName:this.id,implicitlyLoadedBefore:Array.from(this.implicitlyLoadedBefore,Y6),importedBindings:this.getImportedBindingsPerDependency(),imports:Array.from(this.dependencies,Y6),map:void 0,referencedFiles:this.getReferencedFiles()})}getChunkName(){var Z;return(Z=this.name)!==null&&Z!==void 0?Z:this.name=this.outputOptions.sanitizeFileName(this.getFallbackChunkName())}getExportNames(){var Z;return(Z=this.sortedExportNames)!==null&&Z!==void 0?Z:this.sortedExportNames=Array.from(this.exportsByName.keys()).sort()}getRenderedHash(){if(this.renderedHash)return this.renderedHash;let Z=k4(),J=this.pluginDriver.hookReduceValueSync("augmentChunkHash","",[this.getChunkInfo()],(q,Q)=>{if(Q)q+=Q;return q});return Z.update(J),Z.update(this.renderedSource.toString()),Z.update(this.getExportNames().map((q)=>{let Q=this.exportsByName.get(q);return`${V1(Q.module.id).replace(/\\/g,"/")}:${Q.name}:${q}`}).join(",")),this.renderedHash=Z.digest("hex")}getVariableExportName(Z){if(this.outputOptions.preserveModules&&Z instanceof Q6)return"*";return this.exportNamesByVariable.get(Z)[0]}link(){this.dependencies=KM(this,this.orderedModules,this.chunkByModule);for(let Z of this.orderedModules)this.addDependenciesToChunk(Z.dynamicDependencies,this.dynamicDependencies),this.addDependenciesToChunk(Z.implicitlyLoadedBefore,this.implicitlyLoadedBefore),this.setUpChunkImportsAndExportsForModule(Z)}preRender(Z,J,q){let{_:Q,getPropertyAccess:Y,n:X}=q,z=new HZ({separator:`${X}${X}`});this.usedModules=[],this.indentString=WM(this.orderedModules,Z);let V={dynamicImportFunction:Z.dynamicImportFunction,exportNamesByVariable:this.exportNamesByVariable,format:Z.format,freeze:Z.freeze,indent:this.indentString,namespaceToStringTag:Z.namespaceToStringTag,outputPluginDriver:this.pluginDriver,snippets:q};if(Z.hoistTransitiveImports&&!this.outputOptions.preserveModules&&this.facadeModule!==null){for(let $ of this.dependencies)if($ instanceof I8)this.inlineChunkDependencies($)}this.prepareModulesForRendering(q),this.setIdentifierRenderResolutions(Z);let W="",K=this.renderedModules;for(let $ of this.orderedModules){let H=0;if($.isIncluded()||this.includedNamespaces.has($)){let L=$.render(V).trim();if(H=L.length(),H){if(Z.compact&&L.lastLine().includes("//"))L.append(`
|
|
23
|
+
`);this.renderedModuleSources.set($,L),z.addSource(L),this.usedModules.push($)}let I=$.namespace;if(this.includedNamespaces.has($)&&!this.outputOptions.preserveModules){let y=I.renderBlock(V);if(I.renderFirst())W+=X+y;else z.addSource(new P8(y))}}let{renderedExports:M,removedExports:O}=$.getRenderedExports(),{renderedModuleSources:j}=this;K[$.id]={get code(){var L,I;return(I=(L=j.get($))===null||L===void 0?void 0:L.toString())!==null&&I!==void 0?I:null},originalLength:$.originalCode.length,removedExports:O,renderedExports:M,renderedLength:H}}if(W)z.prepend(W+X+X);if(this.needsExportsShim)z.prepend(`${X}${q.cnst} ${K6}${Q}=${Q}void 0;${X}${X}`);if(Z.compact)this.renderedSource=z;else this.renderedSource=z.trim();if(this.renderedHash=void 0,this.isEmpty&&this.getExportNames().length===0&&this.dependencies.size===0){let $=this.getChunkName();this.inputOptions.onwarn({chunkName:$,code:"EMPTY_BUNDLE",message:`Generated an empty chunk: "${$}"`})}this.setExternalRenderPaths(Z,J),this.renderedDependencies=this.getChunkDependencyDeclarations(Z,Y),this.renderedExports=this.exportMode==="none"?[]:this.getChunkExportDeclarations(Z.format,Y)}async render(Z,J,q,Q){s1("render format",2);let Y=Z.format,X=sB[Y];if(Z.dynamicImportFunction&&Y!=="es")this.inputOptions.onwarn(m1("output.dynamicImportFunction","outputdynamicImportFunction",'this option is ignored for formats other than "es"'));for(let j of this.dependencies){let L=this.renderedDependencies.get(j);if(j instanceof A1){let I=j.renderPath;L.id=U4(j.renormalizeRenderPath?X4(this.id,I,!1,!1):I)}else L.namedExportsMode=j.exportMode!=="default",L.id=U4(X4(this.id,j.id,!1,!0))}this.finaliseDynamicImports(Z,Q),this.finaliseImportMetas(Y,Q);let z=this.renderedExports.length!==0||[...this.renderedDependencies.values()].some((j)=>j.reexports&&j.reexports.length!==0),V=null,W=new Set;for(let j of this.orderedModules){if(j.usesTopLevelAwait)V=j.id;let L=this.accessedGlobalsByScope.get(j.scope);if(L)for(let I of L)W.add(I)}if(V!==null&&Y!=="es"&&Y!=="system")return e({code:"INVALID_TLA_FORMAT",id:V,message:`Module format ${Y} does not support top-level await. Use the "es" or "system" output formats rather.`});if(!this.id)throw Error("Internal Error: expecting chunk id");let K=X(this.renderedSource,{accessedGlobals:W,dependencies:[...this.renderedDependencies.values()],exports:this.renderedExports,hasExports:z,id:this.id,indent:this.indentString,intro:J.intro,isEntryFacade:this.outputOptions.preserveModules||this.facadeModule!==null&&this.facadeModule.info.isEntry,isModuleFacade:this.facadeModule!==null,namedExportsMode:this.exportMode!=="default",outro:J.outro,snippets:Q,usesTopLevelAwait:V!==null,warn:this.inputOptions.onwarn},Z);if(J.banner)K.prepend(J.banner);if(J.footer)K.append(J.footer);let $=K.toString();i1("render format",2);let H=null,M=[],O=await $M({code:$,options:Z,outputPluginDriver:this.pluginDriver,renderChunk:q,sourcemapChain:M});if(Z.sourcemap){s1("sourcemap",2);let j;if(Z.file)j=U5(Z.sourcemapFile||Z.file);else if(Z.dir)j=U5(Z.dir,this.id);else j=U5(this.id);let L=K.generateDecodedMap({});H=rB(j,L,this.usedModules,M,Z.sourcemapExcludeSources,this.inputOptions.onwarn),H.sources=H.sources.map((I)=>{let{sourcemapPathTransform:y}=Z;if(y){let _=y(I,`${j}.map`);if(typeof _!=="string")e(n5("sourcemapPathTransform function must return a string."));return _}return I}).map(z0),i1("sourcemap",2)}if(!Z.compact&&O[O.length-1]!==`
|
|
24
|
+
`)O+=`
|
|
25
|
+
`;return{code:O,map:H}}addDependenciesToChunk(Z,J){for(let q of Z)if(q instanceof S1){let Q=this.chunkByModule.get(q);if(Q&&Q!==this)J.add(Q)}else J.add(q)}addNecessaryImportsForFacades(){for(let[Z,J]of this.includedReexportsByModule)if(this.includedNamespaces.has(Z))for(let q of J)this.imports.add(q)}assignFacadeName({fileName:Z,name:J},q){if(Z)this.fileName=Z;else this.name=this.outputOptions.sanitizeFileName(J||f9(q))}checkCircularDependencyImport(Z,J){let q=Z.module;if(q instanceof S1){let Q=this.chunkByModule.get(q),Y;do if(Y=J.alternativeReexportModules.get(Z),Y){let X=this.chunkByModule.get(Y);if(X&&X!==Q)this.inputOptions.onwarn(BU(q.getExportNamesByVariable().get(Z)[0],q.id,Y.id,J.id));J=Y}while(Y)}}computeContentHashWithDependencies(Z,J,q){let Q=k4();Q.update([Z.intro,Z.outro,Z.banner,Z.footer].join(":")),Q.update(J.format);let Y=new Set([this]);for(let X of Y){if(X instanceof A1)Q.update(`:${X.renderPath}`);else Q.update(X.getRenderedHash()),Q.update(X.generateId(Z,J,q,!1));if(X instanceof A1)continue;for(let z of[...X.dependencies,...X.dynamicDependencies])Y.add(z)}return Q.digest("hex").substr(0,8)}ensureReexportsAreAvailableForModule(Z){let J=[],q=Z.getExportNamesByVariable();for(let Q of q.keys()){let Y=Q instanceof G5,X=Y?Q.getBaseVariable():Q;if(!(X instanceof Q6&&this.outputOptions.preserveModules)){this.checkCircularDependencyImport(X,Z);let z=X.module;if(z instanceof S1){let V=this.chunkByModule.get(z);if(V&&V!==this){if(V.exports.add(X),J.push(X),Y)this.imports.add(X)}}}}if(J.length)this.includedReexportsByModule.set(Z,J)}finaliseDynamicImports(Z,J){let q=Z.format==="amd"&&!Z.amd.forceJsExtensionForImports;for(let[Q,Y]of this.renderedModuleSources)for(let{node:X,resolution:z}of Q.dynamicImports){let V=this.chunkByModule.get(z),W=this.facadeChunkByModule.get(z);if(!z||!X.included||V===this)continue;let K=z instanceof S1?`'${U4(X4(this.id,(W||V).id,q,!0))}'`:z instanceof A1?`'${U4(z.renormalizeRenderPath?X4(this.id,z.renderPath,q,!1):z.renderPath)}'`:z;X.renderFinalResolution(Y,K,z instanceof S1&&!(W===null||W===void 0?void 0:W.strictFacade)&&V.exportNamesByVariable.get(z.namespace)[0],J)}}finaliseImportMetas(Z,J){for(let[q,Q]of this.renderedModuleSources)for(let Y of q.importMetas)Y.renderFinalMechanism(Q,this.id,Z,J,this.pluginDriver)}generateVariableName(){if(this.manualChunkAlias)return this.manualChunkAlias;let Z=this.entryModules[0]||this.implicitEntryModules[0]||this.dynamicEntryModules[0]||this.orderedModules[this.orderedModules.length-1];if(Z)return f9(Z);return"chunk"}getChunkDependencyDeclarations(Z,J){let q=this.getImportSpecifiers(J),Q=this.getReexportSpecifiers(),Y=new Map;for(let X of this.dependencies){let z=q.get(X)||null,V=Q.get(X)||null,W=X instanceof A1||X.exportMode!=="default";Y.set(X,{defaultVariableName:X.defaultVariableName,globalName:X instanceof A1&&(Z.format==="umd"||Z.format==="iife")&&UM(X,Z.globals,(z||V)!==null,this.inputOptions.onwarn),id:void 0,imports:z,isChunk:X instanceof I8,name:X.variableName,namedExportsMode:W,namespaceVariableName:X.namespaceVariableName,reexports:V})}return Y}getChunkExportDeclarations(Z,J){let q=[];for(let Q of this.getExportNames()){if(Q[0]==="*")continue;let Y=this.exportsByName.get(Q);if(!(Y instanceof G5)){let W=Y.module;if(W&&this.chunkByModule.get(W)!==this)continue}let X=null,z=!1,V=Y.getName(J);if(Y instanceof S5){for(let W of Y.declarations)if(W.parent instanceof W6||W instanceof R0&&W.declaration instanceof W6){z=!0;break}}else if(Y instanceof G5){if(X=V,Z==="es")V=Y.renderName}q.push({exported:Q,expression:X,hoisted:z,local:V})}return q}getDependenciesToBeDeconflicted(Z,J,q){let Q=new Set,Y=new Set,X=new Set;for(let z of[...this.exportNamesByVariable.keys(),...this.imports])if(Z||z.isNamespace){let V=z.module;if(V instanceof A1){if(Q.add(V),Z){if(z.name==="default"){if(C0[String(q(V.id))])Y.add(V)}else if(z.name==="*"){if(I0[String(q(V.id))])X.add(V)}}}else{let W=this.chunkByModule.get(V);if(W!==this){if(Q.add(W),Z&&W.exportMode==="default"&&z.isNamespace)X.add(W)}}}if(J)for(let z of this.dependencies)Q.add(z);return{deconflictedDefault:Y,deconflictedNamespace:X,dependencies:Q}}getFallbackChunkName(){if(this.manualChunkAlias)return this.manualChunkAlias;if(this.dynamicName)return this.dynamicName;if(this.fileName)return M4(this.fileName);return M4(this.orderedModules[this.orderedModules.length-1].id)}getImportSpecifiers(Z){let{interop:J}=this.outputOptions,q=new Map;for(let Q of this.imports){let Y=Q.module,X,z;if(Y instanceof A1){if(X=Y,z=Q.name,z!=="default"&&z!=="*"&&J(Y.id)==="defaultOnly")return e(KQ(Y.id,z,!1))}else X=this.chunkByModule.get(Y),z=X.getVariableExportName(Q);v5(q,X,()=>[]).push({imported:z,local:Q.getName(Z)})}return q}getImportedBindingsPerDependency(){let Z={};for(let[J,q]of this.renderedDependencies){let Q=new Set;if(q.imports)for(let{imported:Y}of q.imports)Q.add(Y);if(q.reexports)for(let{imported:Y}of q.reexports)Q.add(Y);Z[J.id]=[...Q]}return Z}getReexportSpecifiers(){let{externalLiveBindings:Z,interop:J}=this.outputOptions,q=new Map;for(let Q of this.getExportNames()){let Y,X,z=!1;if(Q[0]==="*"){let V=Q.substring(1);if(J(V)==="defaultOnly")this.inputOptions.onwarn(gU(V));z=Z,Y=this.modulesById.get(V),X=Q="*"}else{let V=this.exportsByName.get(Q);if(V instanceof G5)continue;let W=V.module;if(W instanceof S1){if(Y=this.chunkByModule.get(W),Y===this)continue;X=Y.getVariableExportName(V),z=V.isReassigned}else{if(Y=W,X=V.name,X!=="default"&&X!=="*"&&J(W.id)==="defaultOnly")return e(KQ(W.id,X,!0));z=Z&&(X!=="default"||Q7(String(J(W.id)),!0))}}v5(q,Y,()=>[]).push({imported:X,needsLiveBinding:z,reexported:Q})}return q}getReferencedFiles(){let Z=[];for(let J of this.orderedModules)for(let q of J.importMetas){let Q=q.getReferencedFileName(this.pluginDriver);if(Q)Z.push(Q)}return Z}inlineChunkDependencies(Z){for(let J of Z.dependencies){if(this.dependencies.has(J))continue;if(this.dependencies.add(J),J instanceof I8)this.inlineChunkDependencies(J)}}prepareModulesForRendering(Z){var J;let q=this.accessedGlobalsByScope;for(let Q of this.orderedModules){for(let{node:Y,resolution:X}of Q.dynamicImports)if(Y.included)if(X instanceof S1){let z=this.chunkByModule.get(X);if(z===this)Y.setInternalResolution(X.namespace);else Y.setExternalResolution(((J=this.facadeChunkByModule.get(X))===null||J===void 0?void 0:J.exportMode)||z.exportMode,X,this.outputOptions,Z,this.pluginDriver,q)}else Y.setExternalResolution("external",X,this.outputOptions,Z,this.pluginDriver,q);for(let Y of Q.importMetas)Y.addAccessedGlobals(this.outputOptions.format,q);if(this.includedNamespaces.has(Q)&&!this.outputOptions.preserveModules)Q.namespace.prepare(q)}}setExternalRenderPaths(Z,J){for(let q of[...this.dependencies,...this.dynamicDependencies])if(q instanceof A1)q.setRenderPath(Z,J)}setIdentifierRenderResolutions({format:Z,interop:J,namespaceToStringTag:q}){let Q=new Set;for(let X of this.getExportNames()){let z=this.exportsByName.get(X);if(Z!=="es"&&Z!=="system"&&z.isReassigned&&!z.isId)z.setRenderNames("exports",X);else if(z instanceof G5)Q.add(z);else z.setRenderNames(null,null)}for(let X of this.orderedModules)if(X.needsExportShim){this.needsExportsShim=!0;break}let Y=new Set(["Object","Promise"]);if(this.needsExportsShim)Y.add(K6);if(q)Y.add("Symbol");switch(Z){case"system":Y.add("module").add("exports");break;case"es":break;case"cjs":Y.add("module").add("require").add("__filename").add("__dirname");default:Y.add("exports");for(let X of QZ)Y.add(X)}eB(this.orderedModules,this.getDependenciesToBeDeconflicted(Z!=="es"&&Z!=="system",Z==="amd"||Z==="umd"||Z==="iife",J),this.imports,Y,Z,J,this.outputOptions.preserveModules,this.outputOptions.externalLiveBindings,this.chunkByModule,Q,this.exportNamesByVariable,this.accessedGlobalsByScope,this.includedNamespaces)}setUpChunkImportsAndExportsForModule(Z){let J=new Set(Z.includedImports);if(!this.outputOptions.preserveModules){if(this.includedNamespaces.has(Z)){let q=Z.namespace.getMemberVariables();for(let Q of Object.values(q))J.add(Q)}}for(let q of J){if(q instanceof g5)q=q.getOriginalVariable();if(q instanceof G5)q=q.getBaseVariable();let Q=this.chunkByModule.get(q.module);if(Q!==this){if(this.imports.add(q),!(q instanceof Q6&&this.outputOptions.preserveModules)&&q.module instanceof S1)Q.exports.add(q),this.checkCircularDependencyImport(q,Z)}}if(this.includedNamespaces.has(Z)||Z.info.isEntry&&Z.preserveSignature!==!1||Z.includedDynamicImporters.some((q)=>this.chunkByModule.get(q)!==this))this.ensureReexportsAreAvailableForModule(Z);for(let{node:q,resolution:Q}of Z.dynamicImports)if(q.included&&Q instanceof S1&&this.chunkByModule.get(Q)===this&&!this.includedNamespaces.has(Q))this.includedNamespaces.add(Q),this.ensureReexportsAreAvailableForModule(Q)}}function f9(Z){var J,q,Q,Y;return(Y=(q=(J=Z.chunkNames.find(({isUserDefined:X})=>X))===null||J===void 0?void 0:J.name)!==null&&q!==void 0?q:(Q=Z.chunkNames[0])===null||Q===void 0?void 0:Q.name)!==null&&Y!==void 0?Y:M4(Z.id)}async function BM(Z,J){try{let[q,Q,Y,X]=await Promise.all([J.hookReduceValue("banner",Z.banner(),[],dQ),J.hookReduceValue("footer",Z.footer(),[],dQ),J.hookReduceValue("intro",Z.intro(),[],lQ),J.hookReduceValue("outro",Z.outro(),[],lQ)]);if(Y)Y+=`
|
|
26
26
|
|
|
27
|
-
`;if(
|
|
27
|
+
`;if(X)X=`
|
|
28
28
|
|
|
29
|
-
${
|
|
29
|
+
${X}`;if(q.length)q+=`
|
|
30
30
|
`;if(Q.length)Q=`
|
|
31
|
-
`+Q;return{banner:
|
|
32
|
-
Error Message: ${
|
|
33
|
-
`,s:";"},W=
|
|
34
|
-
Defaulting to 2020, but this will stop working in the future.`);q.ecmaVersion=11}else if(q.ecmaVersion>=2015)q.ecmaVersion-=2009;if(q.allowReserved==null)q.allowReserved=q.ecmaVersion<5;if(hQ(q.onToken)){var Q=q.onToken;q.onToken=function(Y){return Q.push(Y)}}if(hQ(q.onComment))q.onComment=VH(q,q.onComment);return q}function VH(Z,q){return function(J,Q,Y,z,X,V){var W={type:J?"Block":"Line",value:Q,start:Y,end:z};if(Z.locations)W.loc=new Q7(this,X,V);if(Z.ranges)W.range=[Y,z];q.push(W)}}function Qq(Z,q){return U6|(Z?Zq:0)|(q?r2:0)}function $H(Z,q){var J=q.key.name,Q=Z[J],Y="true";if(q.type==="MethodDefinition"&&(q.kind==="get"||q.kind==="set"))Y=(q.static?"s":"i")+q.kind;if(Q==="iget"&&Y==="iset"||Q==="iset"&&Y==="iget"||Q==="sget"&&Y==="sset"||Q==="sset"&&Y==="sget")return Z[J]="true",!1;else if(!Q)return Z[J]=Y,!1;else return!0}function b4(Z,q){var{computed:J,key:Q}=Z;return!J&&(Q.type==="Identifier"&&Q.name===q||Q.type==="Literal"&&Q.value===q)}function Yz(Z){return Z.type==="MemberExpression"&&Z.property.type==="PrivateIdentifier"||Z.type==="ChainExpression"&&Yz(Z.expression)}function zz(Z,q,J,Q){if(Z.type=q,Z.end=J,this.options.locations)Z.loc.end=Q;if(this.options.ranges)Z.range[1]=J;return Z}function LH(Z){var q=Bz[Z]={binary:I8(HH[Z]+" "+mQ),nonBinary:{General_Category:I8(mQ),Script:I8(FH[Z])}};q.nonBinary.Script_Extensions=q.nonBinary.Script,q.nonBinary.gc=q.nonBinary.General_Category,q.nonBinary.sc=q.nonBinary.Script,q.nonBinary.scx=q.nonBinary.Script_Extensions}function Hz(Z){return Z===36||Z>=40&&Z<=43||Z===46||Z===63||Z>=91&&Z<=94||Z>=123&&Z<=125}function NH(Z){return s5(Z,!0)||Z===36||Z===95}function wH(Z){return W6(Z,!0)||Z===36||Z===95||Z===8204||Z===8205}function Mz(Z){return Z>=65&&Z<=90||Z>=97&&Z<=122}function OH(Z){return Z>=0&&Z<=1114111}function RH(Z){return Z===100||Z===68||Z===115||Z===83||Z===119||Z===87}function Fz(Z){return Mz(Z)||Z===95}function CH(Z){return Fz(Z)||X7(Z)}function X7(Z){return Z>=48&&Z<=57}function Lz(Z){return Z>=48&&Z<=57||Z>=65&&Z<=70||Z>=97&&Z<=102}function Nz(Z){if(Z>=65&&Z<=70)return 10+(Z-65);if(Z>=97&&Z<=102)return 10+(Z-97);return Z-48}function wz(Z){return Z>=48&&Z<=55}function _H(Z,q){if(q)return parseInt(Z,8);return parseFloat(Z.replace(/_/g,""))}function Oz(Z){if(typeof BigInt!=="function")return null;return BigInt(Z.replace(/_/g,""))}function DH(Z,q,J,Q,Y,z,X){let V=null,W=null;if(Y){V=new Set;for(let K of Y)if(Z===K.source&&q===K.importer)V.add(K.plugin);W=(K,G)=>({...K,resolve:(F,M,{custom:B,isEntry:H,skipSelf:N}=n1)=>{return Q(F,M,B,H,N?[...Y,{importer:M,plugin:G,source:F}]:Y)}})}return J.hookFirst("resolveId",[Z,q,{custom:z,isEntry:X}],W,V)}async function uQ(Z,q,J,Q,Y,z,X,V){let W=await DH(Z,q,Q,Y,z,X,V);if(W!=null)return W;if(q!==void 0&&!V8(Z)&&Z[0]!==".")return null;return TH(q?$5(x5(q),Z):$5(Z),J)}async function TH(Z,q){var J,Q;return(Q=(J=await F4(Z,q))!==null&&J!==void 0?J:await F4(Z+".mjs",q))!==null&&Q!==void 0?Q:await F4(Z+".js",q)}async function F4(Z,q){try{let J=await D8.lstat(Z);if(!q&&J.isSymbolicLink())return await F4(await D8.realpath(Z),q);if(q&&J.isSymbolicLink()||J.isFile()){let Q=z8(Z);if((await D8.readdir(x5(Z))).includes(Q))return Z}}catch(J){}}function k4(Z,q,{hook:J,id:Q}={}){if(typeof Z==="string")Z={message:Z};if(Z.code&&Z.code!==K1.PLUGIN_ERROR)Z.pluginCode=Z.code;if(Z.code=K1.PLUGIN_ERROR,Z.plugin=q,J)Z.hook=J;if(Q)Z.id=Q;return Z1(Z)}function PH(Z,q){for(let{active:J,deprecated:Q,replacement:Y}of AH)for(let z of Z)if(Q in z)U5({message:`The "${Q}" hook used by plugin ${z.name} is deprecated. The "${Y}" hook should be used instead.`,plugin:z.name},J,q)}function SH(Z){return{delete(q){return delete Z[q]},get(q){let J=Z[q];if(!J)return;return J[0]=0,J[1]},has(q){let J=Z[q];if(!J)return!1;return J[0]=0,!0},set(q,J){Z[q]=[0,J]}}}function yH(Z,q){return{delete(J){return q(),Z.delete(J)},get(J){return q(),Z.get(J)},has(J){return q(),Z.has(J)},set(J,Q){return q(),Z.set(J,Q)}}}function K4(Z){if(Z.startsWith(Vq)||Z.startsWith(Wq))return Z1({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."});return Z1({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${Z} 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).`})}function bH(Z){return{delete(){return K4(Z)},get(){return K4(Z)},has(){return K4(Z)},set(){return K4(Z)}}}async function xH(Z,q,J,Q){let Y=q.id,z=[],X=Z.map===null?null:qZ(Z.map),V=Z.code,W=Z.ast,K=[],G=[],F=!1,M=()=>F=!0,B="",H=Z.code;function N(A,S,T){let g,f;if(typeof S==="string")g=S;else if(S&&typeof S==="object"){if(q.updateOptions(S),S.code==null){if(S.map||S.ast)Q(YU(T.name));return A}({code:g,map:f,ast:W}=S)}else return A;if(f!==null)z.push(qZ(typeof f==="string"?JSON.parse(f):f)||{missing:!0,plugin:T.name});return g}let C;try{C=await J.hookReduceArg0("transform",[H,Y],N,(A,S)=>{return B=S.name,{...A,addWatchFile(T){K.push(T),A.addWatchFile(T)},cache:F?A.cache:yH(A.cache,M),emitAsset(T,g){return G.push({name:T,source:g,type:"asset"}),A.emitAsset(T,g)},emitChunk(T,g){return G.push({id:T,name:g&&g.name,type:"chunk"}),A.emitChunk(T,g)},emitFile(T){return G.push(T),J.emitFile(T)},error(T,g){if(typeof T==="string")T={message:T};if(g)O4(T,g,H,Y);return T.id=Y,T.hook="transform",A.error(T)},getCombinedSourcemap(){let T=NB(Y,V,X,z,Q);if(!T)return new P8(V).generateMap({hires:!0,includeContent:!0,source:Y});if(X!==T)X=T,z.length=0;return new B0({...T,file:null,sourcesContent:T.sourcesContent})},setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},warn(T,g){if(typeof T==="string")T={message:T};if(g)O4(T,g,H,Y);T.id=Y,T.hook="transform",A.warn(T)}}})}catch(A){k4(A,B,{hook:"transform",id:Y})}if(!F){if(G.length)q.transformFiles=G}return{ast:W,code:C,customTransformCache:F,originalCode:V,originalSourcemap:X,sourcemapChain:z,transformDependencies:K}}class Cz{constructor(Z,q,J,Q){this.graph=Z,this.modulesById=q,this.options=J,this.pluginDriver=Q,this.implicitEntryModules=new Set,this.indexedEntryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.moduleLoadPromises=new Map,this.modulesWithLoadedDependencies=new Set,this.nextChunkNamePriority=0,this.nextEntryModuleIndex=0,this.resolveId=async(Y,z,X,V,W=null)=>{return this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(this.options.external(Y,z,!1)?!1:await uQ(Y,z,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,W,X,typeof V==="boolean"?V:!z),z,Y))},this.hasModuleSideEffects=J.treeshake?J.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(Z){let q=this.extendLoadModulesPromise(Promise.all(Z.map((J)=>this.loadEntryModule(J,!1,void 0,null))));return await this.awaitLoadModulesPromise(),q}async addEntryModules(Z,q){let J=this.nextEntryModuleIndex;this.nextEntryModuleIndex+=Z.length;let Q=this.nextChunkNamePriority;this.nextChunkNamePriority+=Z.length;let Y=await this.extendLoadModulesPromise(Promise.all(Z.map(({id:z,importer:X})=>this.loadEntryModule(z,!0,X,null))).then((z)=>{for(let X=0;X<z.length;X++){let V=z[X];V.isUserDefinedEntryPoint=V.isUserDefinedEntryPoint||q,lQ(V,Z[X],q,Q+X);let W=this.indexedEntryModules.find((K)=>K.module===V);if(!W)this.indexedEntryModules.push({index:J+X,module:V});else W.index=Math.min(W.index,J+X)}return this.indexedEntryModules.sort(({index:X},{index:V})=>X>V?1:-1),z}));return await this.awaitLoadModulesPromise(),{entryModules:this.indexedEntryModules.map(({module:z})=>z),implicitEntryModules:[...this.implicitEntryModules],newEntryModules:Y}}async emitChunk({fileName:Z,id:q,importer:J,name:Q,implicitlyLoadedAfterOneOf:Y,preserveSignature:z}){let X={fileName:Z||null,id:q,importer:J,name:Q||null},V=Y?await this.addEntryWithImplicitDependants(X,Y):(await this.addEntryModules([X],!1)).newEntryModules[0];if(z!=null)V.preserveSignature=z;return V}async preloadModule(Z){return(await this.fetchModule(this.getResolvedIdWithDefaults(Z),void 0,!1,Z.resolveDependencies?k9:!0)).info}addEntryWithImplicitDependants(Z,q){let J=this.nextChunkNamePriority++;return this.extendLoadModulesPromise(this.loadEntryModule(Z.id,!1,Z.importer,null).then(async(Q)=>{if(lQ(Q,Z,!1,J),!Q.info.isEntry){this.implicitEntryModules.add(Q);let Y=await Promise.all(q.map((z)=>this.loadEntryModule(z,!1,Z.importer,Q.id)));for(let z of Y)Q.implicitlyLoadedAfter.add(z);for(let z of Q.implicitlyLoadedAfter)z.implicitlyLoadedBefore.add(Q)}return Q}))}async addModuleSource(Z,q,J){s1("load modules",3);let Q;try{Q=await this.graph.fileOperationQueue.run(async()=>{var X;return(X=await this.pluginDriver.hookFirst("load",[Z]))!==null&&X!==void 0?X:await D8.readFile(Z,"utf8")})}catch(X){i1("load modules",3);let V=`Could not load ${Z}`;if(q)V+=` (imported by ${V1(q)})`;throw V+=`: ${X.message}`,X.message=V,X}i1("load modules",3);let Y=typeof Q==="string"?{code:Q}:Q!=null&&typeof Q==="object"&&typeof Q.code==="string"?Q:Z1(m$(Z)),z=this.graph.cachedModules.get(Z);if(z&&!z.customTransformCache&&z.originalCode===Y.code&&!await this.pluginDriver.hookFirst("shouldTransformCachedModule",[{ast:z.ast,code:z.code,id:z.id,meta:z.meta,moduleSideEffects:z.moduleSideEffects,resolvedSources:z.resolvedIds,syntheticNamedExports:z.syntheticNamedExports}])){if(z.transformFiles)for(let X of z.transformFiles)this.pluginDriver.emitFile(X);J.setSource(z)}else J.updateOptions(Y),J.setSource(await xH(Y,J,this.pluginDriver,this.options.onwarn))}async awaitLoadModulesPromise(){let Z;do Z=this.latestLoadModulesPromise,await Z;while(Z!==this.latestLoadModulesPromise)}extendLoadModulesPromise(Z){return this.latestLoadModulesPromise=Promise.all([Z,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch(()=>{}),Z}async fetchDynamicDependencies(Z,q){let J=await Promise.all(q.map((Q)=>Q.then(async([Y,z])=>{if(z===null)return null;if(typeof z==="string")return Y.resolution=z,null;return Y.resolution=await this.fetchResolvedDependency(V1(z.id),Z.id,z)})));for(let Q of J)if(Q)Z.dynamicDependencies.add(Q),Q.dynamicImporters.push(Z.id)}async fetchModule({id:Z,meta:q,moduleSideEffects:J,syntheticNamedExports:Q},Y,z,X){let V=this.modulesById.get(Z);if(V instanceof A1)return await this.handleExistingModule(V,z,X),V;let W=new A1(this.graph,Z,this.options,z,J,Q,q);this.modulesById.set(Z,W),this.graph.watchFiles[Z]=!0;let K=this.addModuleSource(Z,Y,W).then(()=>[this.getResolveStaticDependencyPromises(W),this.getResolveDynamicImportPromises(W),G]),G=cQ(K).then(()=>this.pluginDriver.hookParallel("moduleParsed",[W.info]));G.catch(()=>{}),this.moduleLoadPromises.set(W,K);let F=await K;if(!X)await this.fetchModuleDependencies(W,...F);else if(X===k9)await G;return W}async fetchModuleDependencies(Z,q,J,Q){if(this.modulesWithLoadedDependencies.has(Z))return;this.modulesWithLoadedDependencies.add(Z),await Promise.all([this.fetchStaticDependencies(Z,q),this.fetchDynamicDependencies(Z,J)]),Z.linkImports(),await Q}fetchResolvedDependency(Z,q,J){if(J.external){let{external:Q,id:Y,moduleSideEffects:z,meta:X}=J;if(!this.modulesById.has(Y))this.modulesById.set(Y,new D1(this.options,Y,z,X,Q!=="absolute"&&V8(Y)));let V=this.modulesById.get(Y);if(!(V instanceof D1))return Z1(n$(Z,q));return Promise.resolve(V)}return this.fetchModule(J,q,!1,!1)}async fetchStaticDependencies(Z,q){for(let J of await Promise.all(q.map((Q)=>Q.then(([Y,z])=>this.fetchResolvedDependency(Y,Z.id,z)))))Z.dependencies.add(J),J.importers.push(Z.id);if(!this.options.treeshake||Z.info.moduleSideEffects==="no-treeshake"){for(let J of Z.dependencies)if(J instanceof A1)J.importedFromNotTreeshaken=!0}}getNormalizedResolvedIdWithoutDefaults(Z,q,J){let{makeAbsoluteExternalsRelative:Q}=this.options;if(Z){if(typeof Z==="object"){let X=Z.external||this.options.external(Z.id,q,!0);return{...Z,external:X&&(X==="relative"||!V8(Z.id)||X===!0&&v9(Z.id,J,Q)||"absolute")}}let z=this.options.external(Z,q,!0);return{external:z&&(v9(Z,J,Q)||"absolute"),id:z&&Q?dQ(Z,q):Z}}let Y=Q?dQ(J,q):J;if(Z!==!1&&!this.options.external(Y,q,!0))return null;return{external:v9(Y,J,Q)||"absolute",id:Y}}getResolveDynamicImportPromises(Z){return Z.dynamicImports.map(async(q)=>{let J=await this.resolveDynamicImport(Z,typeof q.argument==="string"?q.argument:q.argument.esTreeNode,Z.id);if(J&&typeof J==="object")q.id=J.id;return[q,J]})}getResolveStaticDependencyPromises(Z){return Array.from(Z.sources,async(q)=>[q,Z.resolvedIds[q]=Z.resolvedIds[q]||this.handleResolveId(await this.resolveId(q,Z.id,s6,!1),q,Z.id)])}getResolvedIdWithDefaults(Z){var q,J;if(!Z)return null;let Q=Z.external||!1;return{external:Q,id:Z.id,meta:Z.meta||{},moduleSideEffects:(q=Z.moduleSideEffects)!==null&&q!==void 0?q:this.hasModuleSideEffects(Z.id,!!Q),syntheticNamedExports:(J=Z.syntheticNamedExports)!==null&&J!==void 0?J:!1}}async handleExistingModule(Z,q,J){let Q=this.moduleLoadPromises.get(Z);if(J)return J===k9?cQ(Q):Q;if(q){Z.info.isEntry=!0,this.implicitEntryModules.delete(Z);for(let Y of Z.implicitlyLoadedAfter)Y.implicitlyLoadedBefore.delete(Z);Z.implicitlyLoadedAfter.clear()}return this.fetchModuleDependencies(Z,...await Q)}handleResolveId(Z,q,J){if(Z===null){if(MZ(q))return Z1(GU(q,J));return this.options.onwarn($U(q,J)),{external:!0,id:q,meta:{},moduleSideEffects:this.hasModuleSideEffects(q,!0),syntheticNamedExports:!1}}else if(Z.external&&Z.syntheticNamedExports)this.options.onwarn(UU(q,J));return Z}async loadEntryModule(Z,q,J,Q){let Y=await uQ(Z,J,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,null,s6,!0);if(Y==null)return Z1(Q===null?KU(Z):e$(Z,Q));if(Y===!1||typeof Y==="object"&&Y.external)return Z1(Q===null?WU(Z):t$(Z,Q));return this.fetchModule(this.getResolvedIdWithDefaults(typeof Y==="object"?Y:{id:Y}),void 0,q,!1)}async resolveDynamicImport(Z,q,J){var Q,Y;let z=await this.pluginDriver.hookFirst("resolveDynamicImport",[q,J]);if(typeof q!=="string"){if(typeof z==="string")return z;if(!z)return null;return{external:!1,moduleSideEffects:!0,...z}}if(z==null)return(Q=(Y=Z.resolvedIds)[q])!==null&&Q!==void 0?Q:Y[q]=this.handleResolveId(await this.resolveId(q,Z.id,s6,!1),q,Z.id);return this.handleResolveId(this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(z,J,q)),q,J)}}function dQ(Z,q){return MZ(Z)?q?$5(q,"..",Z):$5(Z):Z}function lQ(Z,{fileName:q,name:J},Q,Y){var z;if(q!==null)Z.chunkFileNames.add(q);else if(J!==null){let X=0;while(((z=Z.chunkNames[X])===null||z===void 0?void 0:z.priority)<Y)X++;Z.chunkNames.splice(X,0,{isUserDefined:Q,name:J,priority:Y})}}function v9(Z,q,J){return J===!0||J==="ifRelativeSource"&&MZ(q)||!V8(Z)}async function cQ(Z){let[q,J]=await Z;return Promise.all([...q,...J])}function kH(Z,q,J,Q){let Y=J.sanitizeFileName(Z||"asset");return JZ(H4(typeof J.assetFileNames==="function"?J.assetFileNames({name:Z,source:q,type:"asset"}):J.assetFileNames,"output.assetFileNames",{ext:()=>J8(Y).substring(1),extname:()=>J8(Y),hash(){return y4().update(Y).update(":").update(q).digest("hex").substring(0,8)},name:()=>Y.substring(0,Y.length-J8(Y).length)}),Q)}function pQ(Z,q,J){let Q=Z.toLowerCase();if(q[tZ].has(Q))J(l$(Z));else q[Z]=d2}function vH(Z){return Boolean(Z&&(Z.type==="asset"||Z.type==="chunk"))}function fH(Z){let q=Z.fileName||Z.name;return!q||typeof q==="string"&&!d9(q)}function iQ(Z,q,J){if(!(typeof Z==="string"||Z instanceof Uint8Array)){let Q=q.fileName||q.name||J;return Z1(n5(`Could not set source for ${typeof Q==="string"?`asset "${Q}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return Z}function hH(Z,q){if(typeof Z.fileName!=="string")return Z1(y$(Z.name||q));return Z.fileName}function gH(Z,q){var J;let Q=Z.fileName||Z.module&&((J=q===null||q===void 0?void 0:q.get(Z.module))===null||J===void 0?void 0:J.id);if(!Q)return Z1(b$(Z.fileName||Z.name));return Q}class Iz{constructor(Z,q,J){this.graph=Z,this.options=q,this.bundle=null,this.facadeChunkByModule=null,this.outputOptions=null,this.assertAssetsFinalized=()=>{for(let[Q,Y]of this.filesByReferenceId)if(Y.type==="asset"&&typeof Y.fileName!=="string")return Z1(g$(Y.name||Q))},this.emitFile=(Q)=>{if(!vH(Q))return Z1(n5(`Emitted files must be of type "asset" or "chunk", received "${Q&&Q.type}".`));if(!fH(Q))return Z1(n5(`The "fileName" or "name" properties of emitted files must be strings that are neither absolute nor relative paths, received "${Q.fileName||Q.name}".`));if(Q.type==="chunk")return this.emitChunk(Q);return this.emitAsset(Q)},this.getFileName=(Q)=>{let Y=this.filesByReferenceId.get(Q);if(!Y)return Z1(d$(Q));if(Y.type==="chunk")return gH(Y,this.facadeChunkByModule);return hH(Y,Q)},this.setAssetSource=(Q,Y)=>{let z=this.filesByReferenceId.get(Q);if(!z)return Z1(f$(Q));if(z.type!=="asset")return Z1(n5(`Asset sources can only be set for emitted assets but "${Q}" is an emitted chunk.`));if(z.source!==void 0)return Z1(h$(z.name||Q));let X=iQ(Y,z,Q);if(this.bundle)this.finalizeAsset(z,X,Q,this.bundle);else z.source=X},this.setOutputBundle=(Q,Y,z)=>{this.outputOptions=Y,this.bundle=Q,this.facadeChunkByModule=z;for(let{fileName:X}of this.filesByReferenceId.values())if(X)pQ(X,Q,this.options.onwarn);for(let[X,V]of this.filesByReferenceId)if(V.type==="asset"&&V.source!==void 0)this.finalizeAsset(V,V.source,X,Q)},this.filesByReferenceId=J?new Map(J.filesByReferenceId):new Map}assignReferenceId(Z,q){let J;do J=y4().update(J||q).digest("hex").substring(0,8);while(this.filesByReferenceId.has(J));return this.filesByReferenceId.set(J,Z),J}emitAsset(Z){let q=typeof Z.source<"u"?iQ(Z.source,Z,null):void 0,J={fileName:Z.fileName,name:Z.name,source:q,type:"asset"},Q=this.assignReferenceId(J,Z.fileName||Z.name||Z.type);if(this.bundle){if(Z.fileName)pQ(Z.fileName,this.bundle,this.options.onwarn);if(q!==void 0)this.finalizeAsset(J,q,Q,this.bundle)}return Q}emitChunk(Z){if(this.graph.phase>Y8.LOAD_AND_PARSE)return Z1(o$());if(typeof Z.id!=="string")return Z1(n5(`Emitted chunks need to have a valid string id, received "${Z.id}"`));let q={fileName:Z.fileName,module:null,name:Z.name||Z.id,type:"chunk"};return this.graph.moduleLoader.emitChunk(Z).then((J)=>q.module=J).catch(()=>{}),this.assignReferenceId(q,Z.id)}finalizeAsset(Z,q,J,Q){let Y=Z.fileName||mH(Q,q)||kH(Z.name,q,this.outputOptions,Q),z={...Z,fileName:Y,source:q};this.filesByReferenceId.set(J,z);let{options:X}=this;Q[Y]={fileName:Y,get isAsset(){return U5(`Accessing "isAsset" on files in the bundle is deprecated, please use "type === 'asset'" instead`,!0,X),!0},name:Z.name,source:q,type:"asset"}}}function mH(Z,q){for(let[J,Q]of Object.entries(Z))if(Q.type==="asset"&&uH(q,Q.source))return J;return null}function uH(Z,q){if(typeof Z==="string")return Z===q;if(typeof q==="string")return!1;if("equals"in Z)return Z.equals(q);if(Z.length!==q.length)return!1;for(let J=0;J<Z.length;J++)if(Z[J]!==q[J])return!1;return!0}function s8(Z,q,J,Q,Y,z){let X=!1;return(...V)=>{if(!X)X=!0,U5({message:`The "this.${q}" plugin context function used by plugin ${Q} is deprecated. The "this.${J}" plugin context function should be used instead.`,plugin:Q},Y,z);return Z(...V)}}function dH(Z,q,J,Q,Y,z){let X=!0;if(typeof Z.cacheKey!=="string")if(Z.name.startsWith(Vq)||Z.name.startsWith(Wq)||z.has(Z.name))X=!1;else z.add(Z.name);let V;if(!q)V=EH;else if(X){let W=Z.cacheKey||Z.name;V=SH(q[W]||(q[W]=Object.create(null)))}else V=bH(Z.name);return{addWatchFile(W){if(J.phase>=Y8.GENERATE)return this.error(r$());J.watchFiles[W]=!0},cache:V,emitAsset:s8((W,K)=>Y.emitFile({name:W,source:K,type:"asset"}),"emitAsset","emitFile",Z.name,!0,Q),emitChunk:s8((W,K)=>Y.emitFile({id:W,name:K&&K.name,type:"chunk"}),"emitChunk","emitFile",Z.name,!0,Q),emitFile:Y.emitFile.bind(Y),error(W){return k4(W,Z.name)},getAssetFileName:s8(Y.getFileName,"getAssetFileName","getFileName",Z.name,!0,Q),getChunkFileName:s8(Y.getFileName,"getChunkFileName","getFileName",Z.name,!0,Q),getFileName:Y.getFileName,getModuleIds:()=>J.modulesById.keys(),getModuleInfo:J.getModuleInfo,getWatchFiles:()=>Object.keys(J.watchFiles),isExternal:s8((W,K,G=!1)=>Q.external(W,K,G),"isExternal","resolve",Z.name,!0,Q),load(W){return J.moduleLoader.preloadModule(W)},meta:{rollupVersion:GZ,watchMode:J.watchMode},get moduleIds(){function*W(){U5({message:`Accessing "this.moduleIds" on the plugin context by plugin ${Z.name} is deprecated. The "this.getModuleIds" plugin context function should be used instead.`,plugin:Z.name},!1,Q),yield*K}let K=J.modulesById.keys();return W()},parse:J.contextParse.bind(J),resolve(W,K,{custom:G,isEntry:F,skipSelf:M}=n1){return J.moduleLoader.resolveId(W,K,G,F,M?[{importer:K,plugin:Z,source:W}]:null)},resolveId:s8((W,K)=>J.moduleLoader.resolveId(W,K,n1,void 0).then((G)=>G&&G.id),"resolveId","resolve",Z.name,!0,Q),setAssetSource:Y.setAssetSource,warn(W){if(typeof W==="string")W={message:W};if(W.code)W.pluginCode=W.code;W.code="PLUGIN_WARNING",W.plugin=Z.name,Q.onwarn(W)}}}class Kq{constructor(Z,q,J,Q,Y){this.graph=Z,this.options=q,this.pluginCache=Q,this.sortedPlugins=new Map,this.unfulfilledActions=new Set,PH(J,q),this.fileEmitter=new Iz(Z,q,Y&&Y.fileEmitter),this.emitFile=this.fileEmitter.emitFile.bind(this.fileEmitter),this.getFileName=this.fileEmitter.getFileName.bind(this.fileEmitter),this.finaliseAssets=this.fileEmitter.assertAssetsFinalized.bind(this.fileEmitter),this.setOutputBundle=this.fileEmitter.setOutputBundle.bind(this.fileEmitter),this.plugins=J.concat(Y?Y.plugins:[]);let z=new Set;if(this.pluginContexts=new Map(this.plugins.map((X)=>[X,dH(X,Q,Z,q,this.fileEmitter,z)])),Y){for(let X of J)for(let V of cH)if(V in X)q.onwarn(c$(X.name,V))}}createOutputPluginDriver(Z){return new Kq(this.graph,this.options,Z,this.pluginCache,this)}getUnfulfilledHookActions(){return this.unfulfilledActions}hookFirst(Z,q,J,Q){let Y=Promise.resolve(null);for(let z of this.getSortedPlugins(Z)){if(Q&&Q.has(z))continue;Y=Y.then((X)=>{if(X!=null)return X;return this.runHook(Z,q,z,J)})}return Y}hookFirstSync(Z,q,J){for(let Q of this.getSortedPlugins(Z)){let Y=this.runHookSync(Z,q,Q,J);if(Y!=null)return Y}return null}async hookParallel(Z,q,J){let Q=[];for(let Y of this.getSortedPlugins(Z))if(Y[Z].sequential)await Promise.all(Q),Q.length=0,await this.runHook(Z,q,Y,J);else Q.push(this.runHook(Z,q,Y,J));await Promise.all(Q)}hookReduceArg0(Z,[q,...J],Q,Y){let z=Promise.resolve(q);for(let X of this.getSortedPlugins(Z))z=z.then((V)=>this.runHook(Z,[V,...J],X,Y).then((W)=>Q.call(this.pluginContexts.get(X),V,W,X)));return z}hookReduceArg0Sync(Z,[q,...J],Q,Y){for(let z of this.getSortedPlugins(Z)){let X=[q,...J],V=this.runHookSync(Z,X,z,Y);q=Q.call(this.pluginContexts.get(z),q,V,z)}return q}async hookReduceValue(Z,q,J,Q){let Y=[],z=[];for(let X of this.getSortedPlugins(Z,iH))if(X[Z].sequential)Y.push(...await Promise.all(z)),z.length=0,Y.push(await this.runHook(Z,J,X));else z.push(this.runHook(Z,J,X));return Y.push(...await Promise.all(z)),Y.reduce(Q,await q)}hookReduceValueSync(Z,q,J,Q,Y){let z=q;for(let X of this.getSortedPlugins(Z)){let V=this.runHookSync(Z,J,X,Y);z=Q.call(this.pluginContexts.get(X),z,V,X)}return z}hookSeq(Z,q,J){let Q=Promise.resolve();for(let Y of this.getSortedPlugins(Z))Q=Q.then(()=>this.runHook(Z,q,Y,J));return Q.then(nH)}getSortedPlugins(Z,q){return k5(this.sortedPlugins,Z,()=>Dz(Z,this.plugins,q))}runHook(Z,q,J,Q){let Y=J[Z],z=typeof Y==="object"?Y.handler:Y,X=this.pluginContexts.get(J);if(Q)X=Q(X,J);let V=null;return Promise.resolve().then(()=>{if(typeof z!=="function")return z;let W=z.apply(X,q);if(!(W===null||W===void 0?void 0:W.then))return W;return V=[J.name,Z,q],this.unfulfilledActions.add(V),Promise.resolve(W).then((K)=>{return this.unfulfilledActions.delete(V),K})}).catch((W)=>{if(V!==null)this.unfulfilledActions.delete(V);return k4(W,J.name,{hook:Z})})}runHookSync(Z,q,J,Q){let Y=J[Z],z=typeof Y==="object"?Y.handler:Y,X=this.pluginContexts.get(J);if(Q)X=Q(X,J);try{return z.apply(X,q)}catch(V){return k4(V,J.name,{hook:Z})}}}function Dz(Z,q,J=pH){let Q=[],Y=[],z=[];for(let X of q){let V=X[Z];if(V){if(typeof V==="object"){if(J(V.handler,Z,X),V.order==="pre"){Q.push(X);continue}if(V.order==="post"){z.push(X);continue}}else J(V,Z,X);Y.push(X)}}return[...Q,...Y,...z]}function pH(Z,q,J){if(typeof Z!=="function")Z1(s$(q,J.name))}function iH(Z,q,J){if(typeof Z!=="string"&&typeof Z!=="function")return Z1(a$(q,J.name))}function nH(){}class Tz{constructor(Z){this.maxParallel=Z,this.queue=[],this.workerCount=0}run(Z){return new Promise((q,J)=>{this.queue.push({reject:J,resolve:q,task:Z}),this.work()})}async work(){if(this.workerCount>=this.maxParallel)return;this.workerCount++;let Z;while(Z=this.queue.shift()){let{reject:q,resolve:J,task:Q}=Z;try{let Y=await Q();J(Y)}catch(Y){q(Y)}}this.workerCount--}}function aH(Z){if(Array.isArray(Z))return Z.map((q)=>({fileName:null,id:q,implicitlyLoadedAfter:[],importer:void 0,name:null}));return Object.entries(Z).map(([q,J])=>({fileName:null,id:J,implicitlyLoadedAfter:[],importer:void 0,name:q}))}class Az{constructor(Z,q){var J,Q;if(this.options=Z,this.cachedModules=new Map,this.deoptimizationTracker=new J0,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.phase=Y8.LOAD_AND_PARSE,this.scope=new _z,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=(Y)=>{let z=this.modulesById.get(Y);if(!z)return null;return z.info},Z.cache!==!1){if((J=Z.cache)===null||J===void 0?void 0:J.modules)for(let Y of Z.cache.modules)this.cachedModules.set(Y.id,Y);this.pluginCache=((Q=Z.cache)===null||Q===void 0?void 0:Q.plugins)||Object.create(null);for(let Y in this.pluginCache){let z=this.pluginCache[Y];for(let X of Object.values(z))X[0]++}}if(q){this.watchMode=!0;let Y=(...X)=>this.pluginDriver.hookParallel("watchChange",X),z=()=>this.pluginDriver.hookParallel("closeWatcher",[]);q.onCurrentAwaited("change",Y),q.onCurrentAwaited("close",z)}this.pluginDriver=new Kq(this,Z,Z.plugins,this.pluginCache),this.acornParser=l1.extend(...Z.acornInjectPlugins),this.moduleLoader=new Cz(this,this.modulesById,this.options,this.pluginDriver),this.fileOperationQueue=new Tz(Z.maxParallelFileOps)}async build(){s1("generate module graph",2),await this.generateModuleGraph(),i1("generate module graph",2),s1("sort modules",2),this.phase=Y8.ANALYSE,this.sortModules(),i1("sort modules",2),s1("mark included statements",2),this.includeStatements(),i1("mark included statements",2),this.phase=Y8.GENERATE}contextParse(Z,q={}){let J=q.onComment,Q=[];if(J&&typeof J=="function")q.onComment=(z,X,V,W,...K)=>{return Q.push({end:W,start:V,type:z?"Block":"Line",value:X}),J.call(q,z,X,V,W,...K)};else q.onComment=Q;let Y=this.acornParser.parse(Z,{...this.options.acorn,...q});if(typeof J=="object")J.push(...Q);return q.onComment=J,jj(Q,Y,Z),Y}getCache(){for(let Z in this.pluginCache){let q=this.pluginCache[Z],J=!0;for(let[Q,Y]of Object.entries(q))if(Y[0]>=this.options.experimentalCacheExpiry)delete q[Q];else J=!1;if(J)delete this.pluginCache[Z]}return{modules:this.modules.map((Z)=>Z.toJSON()),plugins:this.pluginCache}}async generateModuleGraph(){if({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules(aH(this.options.input),!0),this.entryModules.length===0)throw Error("You must supply options.input to rollup");for(let Z of this.modulesById.values())if(Z instanceof A1)this.modules.push(Z);else this.externalModules.push(Z)}includeStatements(){for(let Z of[...this.entryModules,...this.implicitEntryModules])j4(Z);if(this.options.treeshake){let Z=1;do{s1(`treeshaking pass ${Z}`,3),this.needsTreeshakingPass=!1;for(let q of this.modules)if(q.isExecuted)if(q.info.moduleSideEffects==="no-treeshake")q.includeAllInBundle();else q.include();if(Z===1){for(let q of[...this.entryModules,...this.implicitEntryModules])if(q.preserveSignature!==!1)q.includeAllExports(!1),this.needsTreeshakingPass=!0}i1(`treeshaking pass ${Z++}`,3)}while(this.needsTreeshakingPass)}else for(let Z of this.modules)Z.includeAllInBundle();for(let Z of this.externalModules)Z.warnUnusedImports();for(let Z of this.implicitEntryModules)for(let q of Z.implicitlyLoadedAfter)if(!(q.info.isEntry||q.isIncluded()))Z1(ZU(q))}sortModules(){let{orderedModules:Z,cyclePaths:q}=pB(this.entryModules);for(let J of q)this.options.onwarn({code:"CIRCULAR_DEPENDENCY",cycle:J,importer:J[0],message:`Circular dependency: ${J.join(" -> ")}`});this.modules=Z;for(let J of this.modules)J.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(let Z of this.modules)for(let q of Z.importDescriptions.values())if(q.name!=="*"&&!q.module.getVariableForExportName(q.name)[0])Z.warn({code:"NON_EXISTENT_EXPORT",message:`Non-existent export '${q.name}' is imported from ${V1(q.module.id)}`,name:q.name,source:q.module.id},q.start)}}function B6(Z){if(Array.isArray(Z))return Z.filter(Boolean);if(Z)return[Z];return[]}function sH([Z,q,J]){let Q=`(${Z}) ${q}`,Y=JSON.stringify;switch(q){case"resolveId":return`${Q} ${Y(J[0])} ${Y(J[1])}`;case"load":return`${Q} ${Y(J[0])}`;case"transform":return`${Q} ${Y(J[1])}`;case"shouldTransformCachedModule":return`${Q} ${Y(J[0].id)}`;case"moduleParsed":return`${Q} ${Y(J[0].id)}`}return Q}async function Pz(Z,q){let J,Q=new Promise((z,X)=>{J=()=>{let V=Z.getUnfulfilledHookActions();X(Error(`Unexpected early exit. This happens when Promises returned by plugins cannot resolve. Unfinished hook action(s) on exit:
|
|
35
|
-
`+[...V].map(
|
|
36
|
-
`)))},
|
|
37
|
-
`}return Promise.all([D8.writeFile(
|
|
38
|
-
`,p8,sJ,rJ,u1,N4,q0,G1,_1,R$,m9,Z6,r1,E1,JY,Y1,S1=0,v5=1,T1=2,BZ,C$,HZ,u9,h4,G8,Q0,n1,s6,i8,T$,A$,P$,S$,K1,jU,g4,YY,BU=(Z)=>/\d/.test(Z[0]),zY=(Z)=>BU(Z)||g4.has(Z)||Z==="arguments",XY,m4,FU,y5="\\\\/",qQ,p5="\\.",LU="\\+",NU="\\?",u4="\\/",wU="(?=.)",VY="[^/]",LZ,WY,NZ,OU,RU,CU,_U,IU,DU,KY,TU,AU,d4,JQ,N9,PU,i6,SU,w9,O9,GY,R9,C9,yU,EU,QQ,bU,YQ,xU,zQ=(Z)=>{return Z===GY||Z===i6},XQ=(Z)=>{if(Z.isPrefix!==!0)Z.depth=Z.isGlobstar?1/0:1},kU=(Z,q)=>{let J=q||{},Q=Z.length-1,Y=J.parts===!0||J.scanToEnd===!0,z=[],X=[],V=[],W=Z,K=-1,G=0,F=0,M=!1,B=!1,H=!1,N=!1,C=!1,A=!1,S=!1,T=!1,g=!1,f=!1,u=0,E,R,P={value:"",depth:0,isGlob:!1},I=()=>K>=Q,j=()=>W.charCodeAt(K+1),x=()=>{return E=R,W.charCodeAt(++K)};while(K<Q){R=x();let l;if(R===i6){if(S=P.backslashes=!0,R=x(),R===R9)A=!0;continue}if(A===!0||R===R9){u++;while(I()!==!0&&(R=x())){if(R===i6){S=P.backslashes=!0,x();continue}if(R===R9){u++;continue}if(A!==!0&&R===w9&&(R=x())===w9){if(M=P.isBrace=!0,H=P.isGlob=!0,f=!0,Y===!0)continue;break}if(A!==!0&&R===SU){if(M=P.isBrace=!0,H=P.isGlob=!0,f=!0,Y===!0)continue;break}if(R===bU){if(u--,u===0){A=!1,M=P.isBrace=!0,f=!0;break}}}if(Y===!0)continue;break}if(R===GY){if(z.push(K),X.push(P),P={value:"",depth:0,isGlob:!1},f===!0)continue;if(E===w9&&K===G+1){G+=2;continue}F=K+1;continue}if(J.noext!==!0){if((R===EU||R===PU||R===N9||R===QQ||R===O9)===!0&&j()===C9){if(H=P.isGlob=!0,N=P.isExtglob=!0,f=!0,R===O9&&K===G)g=!0;if(Y===!0){while(I()!==!0&&(R=x())){if(R===i6){S=P.backslashes=!0,R=x();continue}if(R===YQ){H=P.isGlob=!0,f=!0;break}}continue}break}}if(R===N9){if(E===N9)C=P.isGlobstar=!0;if(H=P.isGlob=!0,f=!0,Y===!0)continue;break}if(R===QQ){if(H=P.isGlob=!0,f=!0,Y===!0)continue;break}if(R===yU){while(I()!==!0&&(l=x())){if(l===i6){S=P.backslashes=!0,x();continue}if(l===xU){B=P.isBracket=!0,H=P.isGlob=!0,f=!0;break}}if(Y===!0)continue;break}if(J.nonegate!==!0&&R===O9&&K===G){T=P.negated=!0,G++;continue}if(J.noparen!==!0&&R===C9){if(H=P.isGlob=!0,Y===!0){while(I()!==!0&&(R=x())){if(R===C9){S=P.backslashes=!0,R=x();continue}if(R===YQ){f=!0;break}}continue}break}if(H===!0){if(f=!0,Y===!0)continue;break}}if(J.noext===!0)N=!1,H=!1;let k=W,y="",$="";if(G>0)y=W.slice(0,G),W=W.slice(G),F-=G;if(k&&H===!0&&F>0)k=W.slice(0,F),$=W.slice(F);else if(H===!0)k="",$=W;else k=W;if(k&&k!==""&&k!=="/"&&k!==W){if(zQ(k.charCodeAt(k.length-1)))k=k.slice(0,-1)}if(J.unescape===!0){if($)$=JQ.removeBackslashes($);if(k&&S===!0)k=JQ.removeBackslashes(k)}let L={prefix:y,input:Z,start:G,base:k,glob:$,isBrace:M,isBracket:B,isGlob:H,isExtglob:N,isGlobstar:C,negated:T,negatedExtglob:g};if(J.tokens===!0){if(L.maxDepth=0,!zQ(R))X.push(P);L.tokens=X}if(J.parts===!0||J.tokens===!0){let l;for(let v=0;v<z.length;v++){let s=l?l+1:G,o=z[v],Q1=Z.slice(s,o);if(J.tokens){if(v===0&&G!==0)X[v].isPrefix=!0,X[v].value=y;else X[v].value=Q1;XQ(X[v]),L.maxDepth+=X[v].depth}if(v!==0||Q1!=="")V.push(Q1);l=o}if(l&&l+1<Z.length){let v=Z.slice(l+1);if(V.push(v),J.tokens)X[X.length-1].value=v,XQ(X[X.length-1]),L.maxDepth+=X[X.length-1].depth}L.slashes=z,L.parts=V}return L},vU,R4,L5,C4,fU,hU,gU,$Y,mU=(Z,q)=>{if(typeof q.expandRange==="function")return q.expandRange(...Z,q);return Z.sort(),`[${Z.join("-")}]`},n8=(Z,q)=>{return`Missing ${Z}: "${q}" - use "\\\\${q}" to match literal characters`},wZ=(Z,q)=>{if(typeof Z!=="string")throw TypeError("Expected a string");Z=$Y[Z]||Z;let J={...q},Q=typeof J.maxLength==="number"?Math.min(C4,J.maxLength):C4,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);let z={type:"bos",value:"",output:J.prepend||""},X=[z],V=J.capture?"":"?:",W=L5.isWindows(q),K=R4.globChars(W),G=R4.extglobChars(K),{DOT_LITERAL:F,PLUS_LITERAL:M,SLASH_LITERAL:B,ONE_CHAR:H,DOTS_SLASH:N,NO_DOT:C,NO_DOT_SLASH:A,NO_DOTS_SLASH:S,QMARK:T,QMARK_NO_DOT:g,STAR:f,START_ANCHOR:u}=K,E=(D)=>{return`(${V}(?:(?!${u}${D.dot?N:F}).)*?)`},R=J.dot?"":C,P=J.dot?T:g,I=J.bash===!0?E(J):f;if(J.capture)I=`(${I})`;if(typeof J.noext==="boolean")J.noextglob=J.noext;let j={input:Z,index:-1,start:0,dot:J.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:X};Z=L5.removePrefix(Z,j),Y=Z.length;let x=[],k=[],y=[],$=z,L,l=()=>j.index===Y-1,v=j.peek=(D=1)=>Z[j.index+D],s=j.advance=()=>Z[++j.index]||"",o=()=>Z.slice(j.index+1),Q1=(D="",b=0)=>{j.consumed+=D,j.index+=b},N1=(D)=>{j.output+=D.output!=null?D.output:D.value,Q1(D.value)},O1=()=>{let D=1;while(v()==="!"&&(v(2)!=="("||v(3)==="?"))s(),j.start++,D++;if(D%2===0)return!1;return j.negated=!0,j.start++,!0},w1=(D)=>{j[D]++,y.push(D)},a=(D)=>{j[D]--,y.pop()},m=(D)=>{if($.type==="globstar"){let b=j.braces>0&&(D.type==="comma"||D.type==="brace"),_=D.extglob===!0||x.length&&(D.type==="pipe"||D.type==="paren");if(D.type!=="slash"&&D.type!=="paren"&&!b&&!_)j.output=j.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=I,j.output+=$.output}if(x.length&&D.type!=="paren")x[x.length-1].inner+=D.value;if(D.value||D.output)N1(D);if($&&$.type==="text"&&D.type==="text"){$.value+=D.value,$.output=($.output||"")+D.value;return}D.prev=$,X.push(D),$=D},M1=(D,b)=>{let _={...G[b],conditions:1,inner:""};_.prev=$,_.parens=j.parens,_.output=j.output;let h=(J.capture?"(":"")+_.open;w1("parens"),m({type:D,value:b,output:j.output?"":H}),m({type:"paren",extglob:!0,value:s(),output:h}),x.push(_)},p=(D)=>{let b=D.close+(J.capture?")":""),_;if(D.type==="negate"){let h=I;if(D.inner&&D.inner.length>1&&D.inner.includes("/"))h=E(J);if(h!==I||l()||/^\)+$/.test(o()))b=D.close=`)$))${h}`;if(D.inner.includes("*")&&(_=o())&&/^\.[^\\/.]+$/.test(_)){let c=wZ(_,{...q,fastpaths:!1}).output;b=D.close=`)${c})${h})`}if(D.prev.type==="bos")j.negatedExtglob=!0}m({type:"paren",extglob:!0,value:L,output:b}),a("parens")};if(J.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let D=!1,b=Z.replace(gU,(_,h,c,r,e,p1)=>{if(r==="\\")return D=!0,_;if(r==="?"){if(h)return h+r+(e?T.repeat(e.length):"");if(p1===0)return P+(e?T.repeat(e.length):"");return T.repeat(c.length)}if(r===".")return F.repeat(c.length);if(r==="*"){if(h)return h+r+(e?I:"");return I}return h?_:`\\${_}`});if(D===!0)if(J.unescape===!0)b=b.replace(/\\/g,"");else b=b.replace(/\\+/g,(_)=>{return _.length%2===0?"\\\\":_?"\\":""});if(b===Z&&J.contains===!0)return j.output=Z,j;return j.output=L5.wrapOutput(b,j,q),j}while(!l()){if(L=s(),L==="\x00")continue;if(L==="\\"){let _=v();if(_==="/"&&J.bash!==!0)continue;if(_==="."||_===";")continue;if(!_){L+="\\",m({type:"text",value:L});continue}let h=/^\\+/.exec(o()),c=0;if(h&&h[0].length>2){if(c=h[0].length,j.index+=c,c%2!==0)L+="\\"}if(J.unescape===!0)L=s();else L+=s();if(j.brackets===0){m({type:"text",value:L});continue}}if(j.brackets>0&&(L!=="]"||$.value==="["||$.value==="[^")){if(J.posix!==!1&&L===":"){let _=$.value.slice(1);if(_.includes("[")){if($.posix=!0,_.includes(":")){let h=$.value.lastIndexOf("["),c=$.value.slice(0,h),r=$.value.slice(h+2),e=fU[r];if(e){if($.value=c+e,j.backtrack=!0,s(),!z.output&&X.indexOf($)===1)z.output=H;continue}}}}if(L==="["&&v()!==":"||L==="-"&&v()==="]")L=`\\${L}`;if(L==="]"&&($.value==="["||$.value==="[^"))L=`\\${L}`;if(J.posix===!0&&L==="!"&&$.value==="[")L="^";$.value+=L,N1({value:L});continue}if(j.quotes===1&&L!=='"'){L=L5.escapeRegex(L),$.value+=L,N1({value:L});continue}if(L==='"'){if(j.quotes=j.quotes===1?0:1,J.keepQuotes===!0)m({type:"text",value:L});continue}if(L==="("){w1("parens"),m({type:"paren",value:L});continue}if(L===")"){if(j.parens===0&&J.strictBrackets===!0)throw SyntaxError(n8("opening","("));let _=x[x.length-1];if(_&&j.parens===_.parens+1){p(x.pop());continue}m({type:"paren",value:L,output:j.parens?")":"\\)"}),a("parens");continue}if(L==="["){if(J.nobracket===!0||!o().includes("]")){if(J.nobracket!==!0&&J.strictBrackets===!0)throw SyntaxError(n8("closing","]"));L=`\\${L}`}else w1("brackets");m({type:"bracket",value:L});continue}if(L==="]"){if(J.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){m({type:"text",value:L,output:`\\${L}`});continue}if(j.brackets===0){if(J.strictBrackets===!0)throw SyntaxError(n8("opening","["));m({type:"text",value:L,output:`\\${L}`});continue}a("brackets");let _=$.value.slice(1);if($.posix!==!0&&_[0]==="^"&&!_.includes("/"))L=`/${L}`;if($.value+=L,N1({value:L}),J.literalBrackets===!1||L5.hasRegexChars(_))continue;let h=L5.escapeRegex($.value);if(j.output=j.output.slice(0,-$.value.length),J.literalBrackets===!0){j.output+=h,$.value=h;continue}$.value=`(${V}${h}|${$.value})`,j.output+=$.value;continue}if(L==="{"&&J.nobrace!==!0){w1("braces");let _={type:"brace",value:L,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};k.push(_),m(_);continue}if(L==="}"){let _=k[k.length-1];if(J.nobrace===!0||!_){m({type:"text",value:L,output:L});continue}let h=")";if(_.dots===!0){let c=X.slice(),r=[];for(let e=c.length-1;e>=0;e--){if(X.pop(),c[e].type==="brace")break;if(c[e].type!=="dots")r.unshift(c[e].value)}h=mU(r,J),j.backtrack=!0}if(_.comma!==!0&&_.dots!==!0){let c=j.output.slice(0,_.outputIndex),r=j.tokens.slice(_.tokensIndex);_.value=_.output="\\{",L=h="\\}",j.output=c;for(let e of r)j.output+=e.output||e.value}m({type:"brace",value:L,output:h}),a("braces"),k.pop();continue}if(L==="|"){if(x.length>0)x[x.length-1].conditions++;m({type:"text",value:L});continue}if(L===","){let _=L,h=k[k.length-1];if(h&&y[y.length-1]==="braces")h.comma=!0,_="|";m({type:"comma",value:L,output:_});continue}if(L==="/"){if($.type==="dot"&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",X.pop(),$=z;continue}m({type:"slash",value:L,output:B});continue}if(L==="."){if(j.braces>0&&$.type==="dot"){if($.value===".")$.output=F;let _=k[k.length-1];$.type="dots",$.output+=L,$.value+=L,_.dots=!0;continue}if(j.braces+j.parens===0&&$.type!=="bos"&&$.type!=="slash"){m({type:"text",value:L,output:F});continue}m({type:"dot",value:L,output:F});continue}if(L==="?"){if(!($&&$.value==="(")&&J.noextglob!==!0&&v()==="("&&v(2)!=="?"){M1("qmark",L);continue}if($&&$.type==="paren"){let h=v(),c=L;if(h==="<"&&!L5.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if($.value==="("&&!/[!=<:]/.test(h)||h==="<"&&!/<([!=]|\w+>)/.test(o()))c=`\\${L}`;m({type:"text",value:L,output:c});continue}if(J.dot!==!0&&($.type==="slash"||$.type==="bos")){m({type:"qmark",value:L,output:g});continue}m({type:"qmark",value:L,output:T});continue}if(L==="!"){if(J.noextglob!==!0&&v()==="("){if(v(2)!=="?"||!/[!=<:]/.test(v(3))){M1("negate",L);continue}}if(J.nonegate!==!0&&j.index===0){O1();continue}}if(L==="+"){if(J.noextglob!==!0&&v()==="("&&v(2)!=="?"){M1("plus",L);continue}if($&&$.value==="("||J.regex===!1){m({type:"plus",value:L,output:M});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||j.parens>0){m({type:"plus",value:L});continue}m({type:"plus",value:M});continue}if(L==="@"){if(J.noextglob!==!0&&v()==="("&&v(2)!=="?"){m({type:"at",extglob:!0,value:L,output:""});continue}m({type:"text",value:L});continue}if(L!=="*"){if(L==="$"||L==="^")L=`\\${L}`;let _=hU.exec(o());if(_)L+=_[0],j.index+=_[0].length;m({type:"text",value:L});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=L,$.output=I,j.backtrack=!0,j.globstar=!0,Q1(L);continue}let D=o();if(J.noextglob!==!0&&/^\([^?]/.test(D)){M1("star",L);continue}if($.type==="star"){if(J.noglobstar===!0){Q1(L);continue}let _=$.prev,h=_.prev,c=_.type==="slash"||_.type==="bos",r=h&&(h.type==="star"||h.type==="globstar");if(J.bash===!0&&(!c||D[0]&&D[0]!=="/")){m({type:"star",value:L,output:""});continue}let e=j.braces>0&&(_.type==="comma"||_.type==="brace"),p1=x.length&&(_.type==="pipe"||_.type==="paren");if(!c&&_.type!=="paren"&&!e&&!p1){m({type:"star",value:L,output:""});continue}while(D.slice(0,3)==="/**"){let g1=Z[j.index+4];if(g1&&g1!=="/")break;D=D.slice(3),Q1("/**",3)}if(_.type==="bos"&&l()){$.type="globstar",$.value+=L,$.output=E(J),j.output=$.output,j.globstar=!0,Q1(L);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&!r&&l()){j.output=j.output.slice(0,-(_.output+$.output).length),_.output=`(?:${_.output}`,$.type="globstar",$.output=E(J)+(J.strictSlashes?")":"|$)"),$.value+=L,j.globstar=!0,j.output+=_.output+$.output,Q1(L);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&D[0]==="/"){let g1=D[1]!==void 0?"|$":"";j.output=j.output.slice(0,-(_.output+$.output).length),_.output=`(?:${_.output}`,$.type="globstar",$.output=`${E(J)}${B}|${B}${g1})`,$.value+=L,j.output+=_.output+$.output,j.globstar=!0,Q1(L+s()),m({type:"slash",value:"/",output:""});continue}if(_.type==="bos"&&D[0]==="/"){$.type="globstar",$.value+=L,$.output=`(?:^|${B}|${E(J)}${B})`,j.output=$.output,j.globstar=!0,Q1(L+s()),m({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-$.output.length),$.type="globstar",$.output=E(J),$.value+=L,j.output+=$.output,j.globstar=!0,Q1(L);continue}let b={type:"star",value:L,output:I};if(J.bash===!0){if(b.output=".*?",$.type==="bos"||$.type==="slash")b.output=R+b.output;m(b);continue}if($&&($.type==="bracket"||$.type==="paren")&&J.regex===!0){b.output=L,m(b);continue}if(j.index===j.start||$.type==="slash"||$.type==="dot"){if($.type==="dot")j.output+=A,$.output+=A;else if(J.dot===!0)j.output+=S,$.output+=S;else j.output+=R,$.output+=R;if(v()!=="*")j.output+=H,$.output+=H}m(b)}while(j.brackets>0){if(J.strictBrackets===!0)throw SyntaxError(n8("closing","]"));j.output=L5.escapeLast(j.output,"["),a("brackets")}while(j.parens>0){if(J.strictBrackets===!0)throw SyntaxError(n8("closing",")"));j.output=L5.escapeLast(j.output,"("),a("parens")}while(j.braces>0){if(J.strictBrackets===!0)throw SyntaxError(n8("closing","}"));j.output=L5.escapeLast(j.output,"{"),a("braces")}if(J.strictSlashes!==!0&&($.type==="star"||$.type==="bracket"))m({type:"maybe_slash",value:"",output:`${B}?`});if(j.backtrack===!0){j.output="";for(let D of j.tokens)if(j.output+=D.output!=null?D.output:D.value,D.suffix)j.output+=D.suffix}return j},uU,dU,lU,l9,OZ,cU,pU=(Z)=>Z&&typeof Z==="object"&&!Array.isArray(Z),x1=(Z,q,J=!1)=>{if(Array.isArray(Z)){let G=Z.map((M)=>x1(M,q,J));return(M)=>{for(let B of G){let H=B(M);if(H)return H}return!1}}let Q=pU(Z)&&Z.tokens&&Z.input;if(Z===""||typeof Z!=="string"&&!Q)throw TypeError("Expected pattern to be a non-empty string");let Y=q||{},z=OZ.isWindows(q),X=Q?x1.compileRe(Z,q):x1.makeRe(Z,q,!1,!0),V=X.state;delete X.state;let W=()=>!1;if(Y.ignore){let G={...q,ignore:null,onMatch:null,onResult:null};W=x1(Y.ignore,G,J)}let K=(G,F=!1)=>{let{isMatch:M,match:B,output:H}=x1.test(G,X,q,{glob:Z,posix:z}),N={glob:Z,state:V,regex:X,posix:z,input:G,output:H,match:B,isMatch:M};if(typeof Y.onResult==="function")Y.onResult(N);if(M===!1)return N.isMatch=!1,F?N:!1;if(W(G)){if(typeof Y.onIgnore==="function")Y.onIgnore(N);return N.isMatch=!1,F?N:!1}if(typeof Y.onMatch==="function")Y.onMatch(N);return F?N:!0};if(J)K.state=V;return K},iU,bC,o8,nU=function(q){let J=[];return o8[q.type](J,q),J},aU="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",sU="arguments 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",rU,l4=0,Q6=1,S8=2,H0,t8,RZ,T8,G6,e8,CZ,j1,VQ,_Z,p9,i9,z0,i,UY="ArrowFunctionExpression",tU="BinaryExpression",jY="BlockStatement",BY="CallExpression",eU="ChainExpression",Zj="ConditionalExpression",w5="ExpressionStatement",HY="Identifier",qj="ImportDefaultSpecifier",Jj="ImportNamespaceSpecifier",Qj="LogicalExpression",Yj="NewExpression",_4="Program",zj="Property",Xj="ReturnStatement",Vj="SequenceExpression",DZ="sourceMa",Wj="[ \\f\\r\\t\\v\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]",Kj,MY="_rollupAnnotations",FY="_rollupRemoved",Gj,_9,Uj,n9,NY="variables",t,Y6,e1,U4,r6,WQ,wY,l6,z5,KQ=(Z)=>typeof Z==="string"&&/^\d+$/.test(Z),Hj,Q8,TZ,GQ,$Q,Mj,Q4,I9,UQ,jQ,BQ,R8,D9,Fj,i4,OY,RY,A5,Lj="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$",HQ=64,T5,PZ,SZ,m1,E5,C8,d,n,MQ,U,q5,c5,a8,s9,n4,Nj,d1,A8,LQ,$8,N0,X0,EZ,s4,bZ,kZ,TY,AY,PY,vZ,SY,r4,yY,Rj,EY,bY,z6,c6=7,y8,fZ,fY,hY,gY,mY,uY,dY,hZ,T4,lY,gZ,V0,cY,o4,pY,iY,nY,aY,t4,X6,w0,mZ,sY,rY,oY,tY,eY,r9,NQ,uZ,dZ,Z2,A4="_interopDefault",o9="_interopDefaultLegacy",o6="_interopNamespace",n6="_interopNamespaceDefault",W0="_interopNamespaceDefaultOnly",P4="_mergeNamespaces",O0,e4=(Z,q)=>Z==="esModule"||q&&(Z==="auto"||Z==="true"),R0,Aj=(Z,q)=>e4(Z,q)&&O0[Z]===A4,lZ=(Z,q,J,Q,Y,z,X)=>{let V=new Set(Z);for(let W of e9)if(q.has(W))V.add(W);return e9.map((W)=>V.has(W)?q2[W](J,Q,Y,z,X,V):"").join("")},q2,wQ=({_:Z,getObject:q})=>`e${Z}:${Z}${q([["default","e"]],{lineBreakIndent:null})}`,OQ=({_:Z,getPropertyAccess:q})=>`e${q("default")}${Z}:${Z}e`,RQ=(Z,q,J,Q,Y,z)=>{let{_:X,cnst:V,getObject:W,getPropertyAccess:K,n:G,s:F}=J,M=`{${G}`+(Q?yj:Q2)(Z,q+Z+Z,J)+`${q}${Z}}`;return`${q}${V} n${X}=${X}Object.create(null${z?`,${X}{${X}[Symbol.toStringTag]:${X}${K0(W)}${X}}`:""});${G}${q}if${X}(e)${X}{${G}${q}${Z}${Pj(M,!Q,J)}${G}${q}}${G}${q}n${K("default")}${X}=${X}e;${G}${q}return ${t9(Y,"n")}${F}${G}`},Pj=(Z,q,{_:J,cnst:Q,getFunctionIntro:Y,s:z})=>Q!=="var"||q?`for${J}(${Q} k in e)${J}${Z}`:`Object.keys(e).forEach(${Y(["k"],{isAsync:!1,name:null})}${Z})${z}`,Sj=(Z,q,J,{_:Q,cnst:Y,getDirectReturnFunction:z,getFunctionIntro:X,n:V})=>{if(q){let[W,K]=z(["e"],{functionReturn:!1,lineBreakIndent:{base:J,t:J},name:null});return`m.forEach(${W}e${Q}&&${Q}typeof e${Q}!==${Q}'string'${Q}&&${Q}!Array.isArray(e)${Q}&&${Q}Object.keys(e).forEach(${X(["k"],{isAsync:!1,name:null})}${Z})${K});`}return`for${Q}(var i${Q}=${Q}0;${Q}i${Q}<${Q}m.length;${Q}i++)${Q}{${V}${J}${J}${Y} e${Q}=${Q}m[i];${V}${J}${J}if${Q}(typeof e${Q}!==${Q}'string'${Q}&&${Q}!Array.isArray(e))${Q}{${Q}for${Q}(${Y} k in e)${Q}${Z}${Q}}${V}${J}}`},yj=(Z,q,J)=>{let{_:Q,n:Y}=J;return`${q}if${Q}(k${Q}!==${Q}'default')${Q}{${Y}`+J2(Z,q+Z,J)+`${q}}${Y}`},J2=(Z,q,{_:J,cnst:Q,getDirectReturnFunction:Y,n:z})=>{let[X,V]=Y([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${q}${Q} d${J}=${J}Object.getOwnPropertyDescriptor(e,${J}k);${z}${q}Object.defineProperty(n,${J}k,${J}d.get${J}?${J}d${J}:${J}{${z}${q}${Z}enumerable:${J}true,${z}${q}${Z}get:${J}${X}e[k]${V}${z}${q}});${z}`},Ej=(Z,q,{_:J,cnst:Q,getDirectReturnFunction:Y,n:z})=>{let[X,V]=Y([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${q}${Q} d${J}=${J}Object.getOwnPropertyDescriptor(e,${J}k);${z}${q}if${J}(d)${J}{${z}${q}${Z}Object.defineProperty(n,${J}k,${J}d.get${J}?${J}d${J}:${J}{${z}${q}${Z}${Z}enumerable:${J}true,${z}${q}${Z}${Z}get:${J}${X}e[k]${V}${z}${q}${Z}});${z}${q}}${z}`},Q2=(Z,q,{_:J,n:Q})=>`${q}n[k]${J}=${J}e[k];${Q}`,t9=(Z,q)=>Z?`Object.freeze(${q})`:q,CQ=(Z,q,{_:J,getObject:Q})=>Z?`Object.defineProperty(${q},${J}Symbol.toStringTag,${J}${K0(Q)})`:q,e9,Y2,bj,z2,X2,V2,W2,p6="ROLLUP_ASSET_URL_",z4="ROLLUP_CHUNK_URL_",q8="ROLLUP_FILE_URL_",K2,xj,kj,i5=(Z,q="URL")=>`new ${q}(${Z}).href`,T9=(Z,q=!1)=>i5(`'${Z}', ${q?"typeof document === 'undefined' ? location.href : ":""}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`),X4=(Z)=>(q,{chunkId:J})=>{let Q=Z(J);return q===null?`({ url: ${Q} })`:q==="url"?Q:"undefined"},A9=(Z,q=!1)=>`${q?"typeof document === 'undefined' ? location.href : ":""}(document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('${Z}', document.baseURI).href)`,vj,IQ,G2,$2,U2,cZ,j2,B2,H2,M2,F2,L2,pZ,N2,w2,O2,iZ,nZ,f5,aZ,R2,C2,_2,fj,I2,D2,T2,sZ,P2,S2,y2,DQ,V6="_missingExportShim",E2,q6,G5,Y8,S4=()=>{},G0,s1,i1,cj,TQ,aj=(Z)=>Z&&new Map(Array.from(Z,([q,J])=>[q,new Set(J)])),rj=(Z,q,J,{_:Q,getDirectReturnFunction:Y,n:z})=>{if(q){let[X,V]=Y([],{functionReturn:!0,lineBreakIndent:null,name:null});return`Object.defineProperty(exports,${Q}k,${Q}{${z}${J}${J}enumerable:${Q}true,${z}${J}${J}get:${Q}${X}${Z}[k]${V}${z}${J}})`}return`exports[k]${Q}=${Q}${Z}[k]`},tj,B4=(Z,q)=>Z.split(".").map(q).join(""),KB=({dependencies:Z,exports:q})=>{let J=new Set(q.map((Q)=>Q.exported));J.add("default");for(let{reexports:Q}of Z)if(Q){for(let Y of Q)if(Y.reexported!=="*")J.add(Y.reexported)}return J},GB=(Z,q,{_:J,cnst:Q,getObject:Y,n:z})=>Z?`${z}${q}${Q} _starExcludes${J}=${J}${Y([...Z].map((X)=>[X,"1"]),{lineBreakIndent:{base:q,t:q}})};`:"",$B=(Z,q,{_:J,n:Q})=>Z.length?`${Q}${q}var ${Z.join(`,${J}`)};`:"",UB=(Z,q,J)=>oZ(Z.filter((Q)=>Q.hoisted).map((Q)=>({name:Q.exported,value:Q.local})),q,J),jB=(Z,q,J)=>oZ(Z.filter((Q)=>Q.expression).map((Q)=>({name:Q.exported,value:Q.local})),q,J),BB=(Z,q,J)=>oZ(Z.filter((Q)=>Q.local===V6).map((Q)=>({name:Q.exported,value:V6})),q,J),FB,y4=()=>M$("sha256"),wB,CB,_B,IB,tZ,d2,bB=(Z)=>{let q=new Set;return new Proxy(Z,{deleteProperty(J,Q){if(typeof Q==="string")q.delete(Q.toLowerCase());return Reflect.deleteProperty(J,Q)},get(J,Q){if(Q===tZ)return q;return Reflect.get(J,Q)},set(J,Q,Y){if(typeof Q==="string")q.add(Q.toLowerCase());return Reflect.set(J,Q,Y)}})},yQ,kB,EQ=(Z,q)=>q?`${Z}
|
|
39
|
-
${
|
|
31
|
+
`+Q;return{banner:q,footer:Q,intro:Y,outro:X}}catch(q){return e({code:"ADDON_ERROR",message:`Could not retrieve ${q.hook}. Check configuration of plugin ${q.plugin}.
|
|
32
|
+
Error Message: ${q.message}`})}}function MM(Z,J){let q=[],Q=new Set(J.keys()),Y=Object.create(null);for(let[M,O]of J){let j=Y[O]=Y[O]||[];HM(M,j,Q)}for(let[M,O]of Object.entries(Y))q.push({alias:M,modules:O});let X=new Map,{dependentEntryPointsByModule:z,dynamicEntryModules:V}=FM(Z),W=LM(z,V),K=new Set(Z);function $(M,O){let j=new Set([M]);for(let L of j){let I=v5(X,L,()=>new Set);if(O&&H(O,z.get(L)))continue;else I.add(M);for(let y of L.getDependenciesToBeIncluded())if(!(y instanceof A1||Q.has(y)))j.add(y)}}function H(M,O){let j=new Set(M);for(let L of j)if(!O.has(L)){if(K.has(L))return!1;let I=W.get(L);for(let y of I)j.add(y)}return!0}for(let M of Z)if(!Q.has(M))$(M,null);for(let M of V)if(!Q.has(M))$(M,W.get(M));return q.push(...wM([...Z,...V],X)),q}function HM(Z,J,q){let Q=new Set([Z]);for(let Y of Q){q.add(Y),J.push(Y);for(let X of Y.dependencies)if(!(X instanceof A1||q.has(X)))Q.add(X)}}function FM(Z){let J=new Set,q=new Map,Q=new Set(Z);for(let Y of Q){let X=new Set([Y]);for(let z of X){v5(q,z,()=>new Set).add(Y);for(let V of z.getDependenciesToBeIncluded())if(!(V instanceof A1))X.add(V);for(let{resolution:V}of z.dynamicImports)if(V instanceof S1&&V.includedDynamicImporters.length>0)J.add(V),Q.add(V);for(let V of z.implicitlyLoadedBefore)J.add(V),Q.add(V)}}return{dependentEntryPointsByModule:q,dynamicEntryModules:J}}function LM(Z,J){let q=new Map;for(let Q of J){let Y=v5(q,Q,()=>new Set);for(let X of[...Q.includedDynamicImporters,...Q.implicitlyLoadedAfter])for(let z of Z.get(X))Y.add(z)}return q}function wM(Z,J){let q=Object.create(null);for(let[Q,Y]of J){let X="";for(let V of Z)X+=Y.has(V)?"X":"_";let z=q[X];if(z)z.push(Q);else q[X]=[Q]}return Object.values(q).map((Q)=>({alias:null,modules:Q}))}function OM(Z){if(Z.length===0)return"/";if(Z.length===1)return f5(Z[0]);let J=Z.slice(1).reduce((q,Q)=>{let Y=Q.split(/\/+|\\+/),X;for(X=0;q[X]===Y[X]&&X<Math.min(q.length,Y.length);X++);return q.slice(0,X)},Z[0].split(/\/+|\\+/));return J.length>1?J.join("/"):"/"}function RM(Z){Z.sort(NM)}function CM(Z){let J=0,q=[],Q=new Set,Y=new Set,X=new Map,z=[],V=(W)=>{if(W instanceof S1){for(let K of W.dependencies){if(X.has(K)){if(!Q.has(K))q.push(IM(K,W,X));continue}X.set(K,W),V(K)}for(let K of W.implicitlyLoadedBefore)Y.add(K);for(let{resolution:K}of W.dynamicImports)if(K instanceof S1)Y.add(K);z.push(W)}W.execIndex=J++,Q.add(W)};for(let W of Z)if(!X.has(W))X.set(W,null),V(W);for(let W of Y)if(!X.has(W))X.set(W,null),V(W);return{cyclePaths:q,orderedModules:z}}function IM(Z,J,q){let Q=Symbol(Z.id),Y=[V1(Z.id)],X=J;Z.cycles.add(Q);while(X!==Z)X.cycles.add(Q),Y.push(V1(X.id)),X=q.get(X);return Y.push(Y[0]),Y.reverse(),Y}function _M({compact:Z,generatedCode:{arrowFunctions:J,constBindings:q,objectShorthand:Q,reservedNamesAsProps:Y}}){let{_:X,n:z,s:V}=Z?{_:"",n:"",s:""}:{_:" ",n:`
|
|
33
|
+
`,s:";"},W=q?"const":"var",K=(O,{isAsync:j,name:L})=>`${j?"async ":""}function${L?` ${L}`:""}${X}(${O.join(`,${X}`)})${X}`,$=J?(O,{isAsync:j,name:L})=>{let I=O.length===1,y=j?`async${I?" ":X}`:"";return`${L?`${W} ${L}${X}=${X}`:""}${y}${I?O[0]:`(${O.join(`,${X}`)})`}${X}=>${X}`}:K,H=(O,{functionReturn:j,lineBreakIndent:L,name:I})=>[`${$(O,{isAsync:!1,name:I})}${J?L?`${z}${L.base}${L.t}`:"":`{${L?`${z}${L.base}${L.t}`:X}${j?"return ":""}`}`,J?`${I?";":""}${L?`${z}${L.base}`:""}`:`${V}${L?`${z}${L.base}`:X}}`],M=Y?(O)=>pQ.test(O):(O)=>!l4.has(O)&&pQ.test(O);return{_:X,cnst:W,getDirectReturnFunction:H,getDirectReturnIifeLeft:(O,j,{needsArrowReturnParens:L,needsWrappedFunction:I})=>{let[y,_]=H(O,{functionReturn:!0,lineBreakIndent:null,name:null});return`${cQ(`${y}${cQ(j,J&&L)}${_}`,J||I)}(`},getFunctionIntro:$,getNonArrowFunctionIntro:K,getObject(O,{lineBreakIndent:j}){let L=j?`${z}${j.base}${j.t}`:X;return`{${O.map(([I,y])=>{if(I===null)return`${L}${y}`;let _=!M(I);return I===y&&Q&&!_?L+I:`${L}${_?`'${I}'`:I}:${X}${y}`}).join(",")}${O.length===0?"":j?`${z}${j.base}`:X}}`},getPropertyAccess:(O)=>M(O)?`.${O}`:`[${JSON.stringify(O)}]`,n:z,s:V}}class ZX{constructor(Z,J,q,Q,Y){this.outputOptions=Z,this.unsetOptions=J,this.inputOptions=q,this.pluginDriver=Q,this.graph=Y,this.facadeChunkByModule=new Map,this.includedNamespaces=new Set}async generate(Z){s1("GENERATE",1);let J=Object.create(null),q=GM(J);this.pluginDriver.setOutputBundle(q,this.outputOptions,this.facadeChunkByModule);try{await this.pluginDriver.hookParallel("renderStart",[this.outputOptions,this.inputOptions]),s1("generate chunks",2);let Q=await this.generateChunks();if(Q.length>1)TM(this.outputOptions,this.inputOptions.onwarn);let Y=OM(DM(Q));i1("generate chunks",2),s1("render modules",2);let X=await BM(this.outputOptions,this.pluginDriver),z=_M(this.outputOptions);this.prerenderChunks(Q,Y,z),i1("render modules",2),await this.addFinalizedChunksToBundle(Q,Y,X,q,z)}catch(Q){throw await this.pluginDriver.hookParallel("renderError",[Q]),Q}return await this.pluginDriver.hookSeq("generateBundle",[this.outputOptions,q,Z]),this.finaliseAssets(q),AM(q),i1("GENERATE",1),J}async addFinalizedChunksToBundle(Z,J,q,Q,Y){this.assignChunkIds(Z,J,q,Q);for(let X of Z)Q[X.id]=X.getChunkInfoWithFileNames();await Promise.all(Z.map(async(X)=>{let z=Q[X.id];Object.assign(z,await X.render(this.outputOptions,q,z,Y))}))}async addManualChunks(Z){let J=new Map,q=await Promise.all(Object.entries(Z).map(async([Q,Y])=>({alias:Q,entries:await this.graph.moduleLoader.addAdditionalModules(Y)})));for(let{alias:Q,entries:Y}of q)for(let X of Y)nQ(Q,X,J);return J}assignChunkIds(Z,J,q,Q){let Y=[],X=[];for(let V of Z)(V.facadeModule&&V.facadeModule.isUserDefinedEntryPoint?Y:X).push(V);let z=Y.concat(X);for(let V of z){if(this.outputOptions.file)V.id=z8(this.outputOptions.file);else if(this.outputOptions.preserveModules)V.id=V.generateIdPreserveModules(J,this.outputOptions,Q,this.unsetOptions);else V.id=V.generateId(q,this.outputOptions,Q,!0);Q[V.id]=eY}}assignManualChunks(Z){let J=[],q={getModuleIds:()=>this.graph.modulesById.keys(),getModuleInfo:this.graph.getModuleInfo};for(let Y of this.graph.modulesById.values())if(Y instanceof S1){let X=Z(Y.id,q);if(typeof X==="string")J.push([X,Y])}J.sort(([Y],[X])=>Y>X?1:Y<X?-1:0);let Q=new Map;for(let[Y,X]of J)nQ(Y,X,Q);return Q}finaliseAssets(Z){for(let J of Object.values(Z)){if(!J.type)j5('A plugin is directly adding properties to the bundle object in the "generateBundle" hook. This is deprecated and will be removed in a future Rollup version, please use "this.emitFile" instead.',!0,this.inputOptions),J.type="asset";if(this.outputOptions.validate&&"code"in J)try{this.graph.contextParse(J.code,{allowHashBang:!0,ecmaVersion:"latest"})}catch(q){this.inputOptions.onwarn(UU(J,q))}}this.pluginDriver.finaliseAssets()}async generateChunks(){let{manualChunks:Z}=this.outputOptions,J=typeof Z==="object"?await this.addManualChunks(Z):this.assignManualChunks(Z),q=[],Q=new Map;for(let{alias:X,modules:z}of this.outputOptions.inlineDynamicImports?[{alias:null,modules:iQ(this.graph.modulesById)}]:this.outputOptions.preserveModules?iQ(this.graph.modulesById).map((V)=>({alias:null,modules:[V]})):MM(this.graph.entryModules,J)){RM(z);let V=new I8(z,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,Q,this.facadeChunkByModule,this.includedNamespaces,X);q.push(V);for(let W of z)Q.set(W,V)}for(let X of q)X.link();let Y=[];for(let X of q)Y.push(...X.generateFacades());return[...q,...Y]}prerenderChunks(Z,J,q){for(let Q of Z)Q.generateExports();for(let Q of Z)Q.preRender(this.outputOptions,J,q)}}function DM(Z){let J=[];for(let q of Z)for(let Q of q.entryModules)if(s5(Q.id))J.push(Q.id);return J}function TM(Z,J){if(Z.format==="umd"||Z.format==="iife")return e(m1("output.format","outputformat","UMD and IIFE output formats are not supported for code-splitting builds",Z.format));if(typeof Z.file==="string")return e(m1("output.file","outputdir",'when building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option'));if(Z.sourcemapFile)return e(m1("output.sourcemapFile","outputsourcemapfile",'"output.sourcemapFile" is only supported for single-file builds'));if(!Z.amd.autoId&&Z.amd.id)J(m1("output.amd.id","outputamd",'this option is only properly supported for single-file builds. Use "output.amd.autoId" and "output.amd.basePath" instead'))}function iQ(Z){return[...Z.values()].filter((J)=>J instanceof S1&&(J.isIncluded()||J.info.isEntry||J.includedDynamicImporters.length>0))}function nQ(Z,J,q){let Q=q.get(J);if(typeof Q==="string"&&Q!==Z)return e(CU(J.id,Z,Q));q.set(J,Z)}function aQ(Z){let J=nG(Z).replace(/\\/g,"/");return J===".."||J.startsWith("../")||J==="."||s5(J)}function AM(Z){for(let[J,q]of Object.entries(Z)){if(aQ(J))return e(zQ(J));if(q.type!=="placeholder"){let{fileName:Q}=q;if(Q!==J&&aQ(Q))return e(zQ(Q))}}}function VZ(Z,J){var q=65536;for(var Q=0;Q<J.length;Q+=2){if(q+=J[Q],q>Z)return!1;if(q+=J[Q+1],q>=Z)return!0}}function r5(Z,J){if(Z<65)return Z===36;if(Z<91)return!0;if(Z<97)return Z===95;if(Z<123)return!0;if(Z<=65535)return Z>=170&&bM.test(String.fromCharCode(Z));if(J===!1)return!1;return VZ(Z,JX)}function $6(Z,J){if(Z<48)return Z===36;if(Z<58)return!0;if(Z<65)return!1;if(Z<91)return!0;if(Z<97)return Z===95;if(Z<123)return!0;if(Z<=65535)return Z>=170&&xM.test(String.fromCharCode(Z));if(J===!1)return!1;return VZ(Z,JX)||VZ(Z,PM)}function F5(Z,J){return new C1(Z,{beforeExpr:!0,binop:J})}function w1(Z,J){if(J===void 0)J={};return J.keyword=Z,Q3[Z]=new C1(Z,J)}function j6(Z){return Z===10||Z===13||Z===8232||Z===8233}function QX(Z,J,q){if(q===void 0)q=Z.length;for(var Q=J;Q<q;Q++){var Y=Z.charCodeAt(Q);if(j6(Y))return Q<q-1&&Y===13&&Z.charCodeAt(Q+1)===10?Q+2:Q+1}return-1}function _8(Z){return new RegExp("^(?:"+Z.replace(/ /g,"|")+")$")}function K8(Z){if(Z<=65535)return String.fromCharCode(Z);return Z-=65536,String.fromCharCode((Z>>10)+55296,(Z&1023)+56320)}function zX(Z,J){for(var q=1,Q=0;;){var Y=QX(Z,Q,J);if(Y<0)return new B0(q,J-Q);++q,Q=Y}}function gM(Z){var J={};for(var q in WZ)J[q]=Z&&_0(Z,q)?Z[q]:WZ[q];if(J.ecmaVersion==="latest")J.ecmaVersion=1e8;else if(J.ecmaVersion==null){if(!rQ&&typeof console==="object"&&console.warn)rQ=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
34
|
+
Defaulting to 2020, but this will stop working in the future.`);J.ecmaVersion=11}else if(J.ecmaVersion>=2015)J.ecmaVersion-=2009;if(J.allowReserved==null)J.allowReserved=J.ecmaVersion<5;if(sQ(J.onToken)){var Q=J.onToken;J.onToken=function(Y){return Q.push(Y)}}if(sQ(J.onComment))J.onComment=mM(J,J.onComment);return J}function mM(Z,J){return function(q,Q,Y,X,z,V){var W={type:q?"Block":"Line",value:Q,start:Y,end:X};if(Z.locations)W.loc=new V7(this,z,V);if(Z.ranges)W.range=[Y,X];J.push(W)}}function V3(Z,J){return B6|(Z?Y3:0)|(J?VX:0)}function cM(Z,J){var q=J.key.name,Q=Z[q],Y="true";if(J.type==="MethodDefinition"&&(J.kind==="get"||J.kind==="set"))Y=(J.static?"s":"i")+J.kind;if(Q==="iget"&&Y==="iset"||Q==="iset"&&Y==="iget"||Q==="sget"&&Y==="sset"||Q==="sset"&&Y==="sget")return Z[q]="true",!1;else if(!Q)return Z[q]=Y,!1;else return!0}function v4(Z,J){var{computed:q,key:Q}=Z;return!q&&(Q.type==="Identifier"&&Q.name===J||Q.type==="Literal"&&Q.value===J)}function MX(Z){return Z.type==="MemberExpression"&&Z.property.type==="PrivateIdentifier"||Z.type==="ChainExpression"&&MX(Z.expression)}function HX(Z,J,q,Q){if(Z.type=J,Z.end=q,this.options.locations)Z.loc.end=Q;if(this.options.ranges)Z.range[1]=q;return Z}function oM(Z){var J=_X[Z]={binary:_8(aM[Z]+" "+oQ),nonBinary:{General_Category:_8(oQ),Script:_8(rM[Z])}};J.nonBinary.Script_Extensions=J.nonBinary.Script,J.nonBinary.gc=J.nonBinary.General_Category,J.nonBinary.sc=J.nonBinary.Script,J.nonBinary.scx=J.nonBinary.Script_Extensions}function DX(Z){return Z===36||Z>=40&&Z<=43||Z===46||Z===63||Z>=91&&Z<=94||Z>=123&&Z<=125}function tM(Z){return r5(Z,!0)||Z===36||Z===95}function eM(Z){return $6(Z,!0)||Z===36||Z===95||Z===8204||Z===8205}function TX(Z){return Z>=65&&Z<=90||Z>=97&&Z<=122}function ZH(Z){return Z>=0&&Z<=1114111}function JH(Z){return Z===100||Z===68||Z===115||Z===83||Z===119||Z===87}function AX(Z){return TX(Z)||Z===95}function qH(Z){return AX(Z)||$7(Z)}function $7(Z){return Z>=48&&Z<=57}function PX(Z){return Z>=48&&Z<=57||Z>=65&&Z<=70||Z>=97&&Z<=102}function SX(Z){if(Z>=65&&Z<=70)return 10+(Z-65);if(Z>=97&&Z<=102)return 10+(Z-97);return Z-48}function yX(Z){return Z>=48&&Z<=55}function QH(Z,J){if(J)return parseInt(Z,8);return parseFloat(Z.replace(/_/g,""))}function EX(Z){if(typeof BigInt!=="function")return null;return BigInt(Z.replace(/_/g,""))}function XH(Z,J,q,Q,Y,X,z){let V=null,W=null;if(Y){V=new Set;for(let K of Y)if(Z===K.source&&J===K.importer)V.add(K.plugin);W=(K,$)=>({...K,resolve:(H,M,{custom:O,isEntry:j,skipSelf:L}=n1)=>{return Q(H,M,O,j,L?[...Y,{importer:M,plugin:$,source:H}]:Y)}})}return q.hookFirst("resolveId",[Z,J,{custom:X,isEntry:z}],W,V)}async function tQ(Z,J,q,Q,Y,X,z,V){let W=await XH(Z,J,Q,Y,X,z,V);if(W!=null)return W;if(J!==void 0&&!s5(Z)&&Z[0]!==".")return null;return zH(J?U5(f5(J),Z):U5(Z),q)}async function zH(Z,J){var q,Q;return(Q=(q=await N4(Z,J))!==null&&q!==void 0?q:await N4(Z+".mjs",J))!==null&&Q!==void 0?Q:await N4(Z+".js",J)}async function N4(Z,J){try{let q=await D8.lstat(Z);if(!J&&q.isSymbolicLink())return await N4(await D8.realpath(Z),J);if(J&&q.isSymbolicLink()||q.isFile()){let Q=z8(Z);if((await D8.readdir(f5(Z))).includes(Q))return Z}}catch(q){}}function g4(Z,J,{hook:q,id:Q}={}){if(typeof Z==="string")Z={message:Z};if(Z.code&&Z.code!==W1.PLUGIN_ERROR)Z.pluginCode=Z.code;if(Z.code=W1.PLUGIN_ERROR,Z.plugin=J,q)Z.hook=q;if(Q)Z.id=Q;return e(Z)}function WH(Z,J){for(let{active:q,deprecated:Q,replacement:Y}of VH)for(let X of Z)if(Q in X)j5({message:`The "${Q}" hook used by plugin ${X.name} is deprecated. The "${Y}" hook should be used instead.`,plugin:X.name},q,J)}function KH(Z){return{delete(J){return delete Z[J]},get(J){let q=Z[J];if(!q)return;return q[0]=0,q[1]},has(J){let q=Z[J];if(!q)return!1;return q[0]=0,!0},set(J,q){Z[J]=[0,q]}}}function $H(Z,J){return{delete(q){return J(),Z.delete(q)},get(q){return J(),Z.get(q)},has(q){return J(),Z.has(q)},set(q,Q){return J(),Z.set(q,Q)}}}function j4(Z){if(Z.startsWith(G3)||Z.startsWith(U3))return e({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."});return e({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${Z} 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).`})}function UH(Z){return{delete(){return j4(Z)},get(){return j4(Z)},has(){return j4(Z)},set(){return j4(Z)}}}async function jH(Z,J,q,Q){let Y=J.id,X=[],z=Z.map===null?null:XZ(Z.map),V=Z.code,W=Z.ast,K=[],$=[],H=!1,M=()=>H=!0,O="",j=Z.code;function L(y,_,T){let g,h;if(typeof _==="string")g=_;else if(_&&typeof _==="object"){if(J.updateOptions(_),_.code==null){if(_.map||_.ast)Q(fU(T.name));return y}({code:g,map:h,ast:W}=_)}else return y;if(h!==null)X.push(XZ(typeof h==="string"?JSON.parse(h):h)||{missing:!0,plugin:T.name});return g}let I;try{I=await q.hookReduceArg0("transform",[j,Y],L,(y,_)=>{return O=_.name,{...y,addWatchFile(T){K.push(T),y.addWatchFile(T)},cache:H?y.cache:$H(y.cache,M),emitAsset(T,g){return $.push({name:T,source:g,type:"asset"}),y.emitAsset(T,g)},emitChunk(T,g){return $.push({id:T,name:g&&g.name,type:"chunk"}),y.emitChunk(T,g)},emitFile(T){return $.push(T),q.emitFile(T)},error(T,g){if(typeof T==="string")T={message:T};if(g)_4(T,g,j,Y);return T.id=Y,T.hook="transform",y.error(T)},getCombinedSourcemap(){let T=oB(Y,V,z,X,Q);if(!T)return new P8(V).generateMap({hires:!0,includeContent:!0,source:Y});if(z!==T)z=T,X.length=0;return new H0({...T,file:null,sourcesContent:T.sourcesContent})},setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},warn(T,g){if(typeof T==="string")T={message:T};if(g)_4(T,g,j,Y);T.id=Y,T.hook="transform",y.warn(T)}}})}catch(y){g4(y,O,{hook:"transform",id:Y})}if(!H){if($.length)J.transformFiles=$}return{ast:W,code:I,customTransformCache:H,originalCode:V,originalSourcemap:z,sourcemapChain:X,transformDependencies:K}}class xX{constructor(Z,J,q,Q){this.graph=Z,this.modulesById=J,this.options=q,this.pluginDriver=Q,this.implicitEntryModules=new Set,this.indexedEntryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.moduleLoadPromises=new Map,this.modulesWithLoadedDependencies=new Set,this.nextChunkNamePriority=0,this.nextEntryModuleIndex=0,this.resolveId=async(Y,X,z,V,W=null)=>{return this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(this.options.external(Y,X,!1)?!1:await tQ(Y,X,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,W,z,typeof V==="boolean"?V:!X),X,Y))},this.hasModuleSideEffects=q.treeshake?q.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(Z){let J=this.extendLoadModulesPromise(Promise.all(Z.map((q)=>this.loadEntryModule(q,!1,void 0,null))));return await this.awaitLoadModulesPromise(),J}async addEntryModules(Z,J){let q=this.nextEntryModuleIndex;this.nextEntryModuleIndex+=Z.length;let Q=this.nextChunkNamePriority;this.nextChunkNamePriority+=Z.length;let Y=await this.extendLoadModulesPromise(Promise.all(Z.map(({id:X,importer:z})=>this.loadEntryModule(X,!0,z,null))).then((X)=>{for(let z=0;z<X.length;z++){let V=X[z];V.isUserDefinedEntryPoint=V.isUserDefinedEntryPoint||J,Z2(V,Z[z],J,Q+z);let W=this.indexedEntryModules.find((K)=>K.module===V);if(!W)this.indexedEntryModules.push({index:q+z,module:V});else W.index=Math.min(W.index,q+z)}return this.indexedEntryModules.sort(({index:z},{index:V})=>z>V?1:-1),X}));return await this.awaitLoadModulesPromise(),{entryModules:this.indexedEntryModules.map(({module:X})=>X),implicitEntryModules:[...this.implicitEntryModules],newEntryModules:Y}}async emitChunk({fileName:Z,id:J,importer:q,name:Q,implicitlyLoadedAfterOneOf:Y,preserveSignature:X}){let z={fileName:Z||null,id:J,importer:q,name:Q||null},V=Y?await this.addEntryWithImplicitDependants(z,Y):(await this.addEntryModules([z],!1)).newEntryModules[0];if(X!=null)V.preserveSignature=X;return V}async preloadModule(Z){return(await this.fetchModule(this.getResolvedIdWithDefaults(Z),void 0,!1,Z.resolveDependencies?g9:!0)).info}addEntryWithImplicitDependants(Z,J){let q=this.nextChunkNamePriority++;return this.extendLoadModulesPromise(this.loadEntryModule(Z.id,!1,Z.importer,null).then(async(Q)=>{if(Z2(Q,Z,!1,q),!Q.info.isEntry){this.implicitEntryModules.add(Q);let Y=await Promise.all(J.map((X)=>this.loadEntryModule(X,!1,Z.importer,Q.id)));for(let X of Y)Q.implicitlyLoadedAfter.add(X);for(let X of Q.implicitlyLoadedAfter)X.implicitlyLoadedBefore.add(Q)}return Q}))}async addModuleSource(Z,J,q){s1("load modules",3);let Q;try{Q=await this.graph.fileOperationQueue.run(async()=>{var z;return(z=await this.pluginDriver.hookFirst("load",[Z]))!==null&&z!==void 0?z:await D8.readFile(Z,"utf8")})}catch(z){i1("load modules",3);let V=`Could not load ${Z}`;if(J)V+=` (imported by ${V1(J)})`;throw V+=`: ${z.message}`,z.message=V,z}i1("load modules",3);let Y=typeof Q==="string"?{code:Q}:Q!=null&&typeof Q==="object"&&typeof Q.code==="string"?Q:e(LU(Z)),X=this.graph.cachedModules.get(Z);if(X&&!X.customTransformCache&&X.originalCode===Y.code&&!await this.pluginDriver.hookFirst("shouldTransformCachedModule",[{ast:X.ast,code:X.code,id:X.id,meta:X.meta,moduleSideEffects:X.moduleSideEffects,resolvedSources:X.resolvedIds,syntheticNamedExports:X.syntheticNamedExports}])){if(X.transformFiles)for(let z of X.transformFiles)this.pluginDriver.emitFile(z);q.setSource(X)}else q.updateOptions(Y),q.setSource(await jH(Y,q,this.pluginDriver,this.options.onwarn))}async awaitLoadModulesPromise(){let Z;do Z=this.latestLoadModulesPromise,await Z;while(Z!==this.latestLoadModulesPromise)}extendLoadModulesPromise(Z){return this.latestLoadModulesPromise=Promise.all([Z,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch(()=>{}),Z}async fetchDynamicDependencies(Z,J){let q=await Promise.all(J.map((Q)=>Q.then(async([Y,X])=>{if(X===null)return null;if(typeof X==="string")return Y.resolution=X,null;return Y.resolution=await this.fetchResolvedDependency(V1(X.id),Z.id,X)})));for(let Q of q)if(Q)Z.dynamicDependencies.add(Q),Q.dynamicImporters.push(Z.id)}async fetchModule({id:Z,meta:J,moduleSideEffects:q,syntheticNamedExports:Q},Y,X,z){let V=this.modulesById.get(Z);if(V instanceof S1)return await this.handleExistingModule(V,X,z),V;let W=new S1(this.graph,Z,this.options,X,q,Q,J);this.modulesById.set(Z,W),this.graph.watchFiles[Z]=!0;let K=this.addModuleSource(Z,Y,W).then(()=>[this.getResolveStaticDependencyPromises(W),this.getResolveDynamicImportPromises(W),$]),$=J2(K).then(()=>this.pluginDriver.hookParallel("moduleParsed",[W.info]));$.catch(()=>{}),this.moduleLoadPromises.set(W,K);let H=await K;if(!z)await this.fetchModuleDependencies(W,...H);else if(z===g9)await $;return W}async fetchModuleDependencies(Z,J,q,Q){if(this.modulesWithLoadedDependencies.has(Z))return;this.modulesWithLoadedDependencies.add(Z),await Promise.all([this.fetchStaticDependencies(Z,J),this.fetchDynamicDependencies(Z,q)]),Z.linkImports(),await Q}fetchResolvedDependency(Z,J,q){if(q.external){let{external:Q,id:Y,moduleSideEffects:X,meta:z}=q;if(!this.modulesById.has(Y))this.modulesById.set(Y,new A1(this.options,Y,X,z,Q!=="absolute"&&s5(Y)));let V=this.modulesById.get(Y);if(!(V instanceof A1))return e(_U(Z,J));return Promise.resolve(V)}return this.fetchModule(q,J,!1,!1)}async fetchStaticDependencies(Z,J){for(let q of await Promise.all(J.map((Q)=>Q.then(([Y,X])=>this.fetchResolvedDependency(Y,Z.id,X)))))Z.dependencies.add(q),q.importers.push(Z.id);if(!this.options.treeshake||Z.info.moduleSideEffects==="no-treeshake"){for(let q of Z.dependencies)if(q instanceof S1)q.importedFromNotTreeshaken=!0}}getNormalizedResolvedIdWithoutDefaults(Z,J,q){let{makeAbsoluteExternalsRelative:Q}=this.options;if(Z){if(typeof Z==="object"){let z=Z.external||this.options.external(Z.id,J,!0);return{...Z,external:z&&(z==="relative"||!s5(Z.id)||z===!0&&m9(Z.id,q,Q)||"absolute")}}let X=this.options.external(Z,J,!0);return{external:X&&(m9(Z,q,Q)||"absolute"),id:X&&Q?eQ(Z,J):Z}}let Y=Q?eQ(q,J):q;if(Z!==!1&&!this.options.external(Y,J,!0))return null;return{external:m9(Y,q,Q)||"absolute",id:Y}}getResolveDynamicImportPromises(Z){return Z.dynamicImports.map(async(J)=>{let q=await this.resolveDynamicImport(Z,typeof J.argument==="string"?J.argument:J.argument.esTreeNode,Z.id);if(q&&typeof q==="object")J.id=q.id;return[J,q]})}getResolveStaticDependencyPromises(Z){return Array.from(Z.sources,async(J)=>[J,Z.resolvedIds[J]=Z.resolvedIds[J]||this.handleResolveId(await this.resolveId(J,Z.id,o6,!1),J,Z.id)])}getResolvedIdWithDefaults(Z){var J,q;if(!Z)return null;let Q=Z.external||!1;return{external:Q,id:Z.id,meta:Z.meta||{},moduleSideEffects:(J=Z.moduleSideEffects)!==null&&J!==void 0?J:this.hasModuleSideEffects(Z.id,!!Q),syntheticNamedExports:(q=Z.syntheticNamedExports)!==null&&q!==void 0?q:!1}}async handleExistingModule(Z,J,q){let Q=this.moduleLoadPromises.get(Z);if(q)return q===g9?J2(Q):Q;if(J){Z.info.isEntry=!0,this.implicitEntryModules.delete(Z);for(let Y of Z.implicitlyLoadedAfter)Y.implicitlyLoadedBefore.delete(Z);Z.implicitlyLoadedAfter.clear()}return this.fetchModuleDependencies(Z,...await Q)}handleResolveId(Z,J,q){if(Z===null){if(OZ(J))return e(dU(J,q));return this.options.onwarn(lU(J,q)),{external:!0,id:J,meta:{},moduleSideEffects:this.hasModuleSideEffects(J,!0),syntheticNamedExports:!1}}else if(Z.external&&Z.syntheticNamedExports)this.options.onwarn(cU(J,q));return Z}async loadEntryModule(Z,J,q,Q){let Y=await tQ(Z,q,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,null,o6,!0);if(Y==null)return e(Q===null?uU(Z):yU(Z,Q));if(Y===!1||typeof Y==="object"&&Y.external)return e(Q===null?mU(Z):SU(Z,Q));return this.fetchModule(this.getResolvedIdWithDefaults(typeof Y==="object"?Y:{id:Y}),void 0,J,!1)}async resolveDynamicImport(Z,J,q){var Q,Y;let X=await this.pluginDriver.hookFirst("resolveDynamicImport",[J,q]);if(typeof J!=="string"){if(typeof X==="string")return X;if(!X)return null;return{external:!1,moduleSideEffects:!0,...X}}if(X==null)return(Q=(Y=Z.resolvedIds)[J])!==null&&Q!==void 0?Q:Y[J]=this.handleResolveId(await this.resolveId(J,Z.id,o6,!1),J,Z.id);return this.handleResolveId(this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(X,q,J)),J,q)}}function eQ(Z,J){return OZ(Z)?J?U5(J,"..",Z):U5(Z):Z}function Z2(Z,{fileName:J,name:q},Q,Y){var X;if(J!==null)Z.chunkFileNames.add(J);else if(q!==null){let z=0;while(((X=Z.chunkNames[z])===null||X===void 0?void 0:X.priority)<Y)z++;Z.chunkNames.splice(z,0,{isUserDefined:Q,name:q,priority:Y})}}function m9(Z,J,q){return q===!0||q==="ifRelativeSource"&&OZ(J)||!s5(Z)}async function J2(Z){let[J,q]=await Z;return Promise.all([...J,...q])}function BH(Z,J,q,Q){let Y=q.sanitizeFileName(Z||"asset");return zZ(w4(typeof q.assetFileNames==="function"?q.assetFileNames({name:Z,source:J,type:"asset"}):q.assetFileNames,"output.assetFileNames",{ext:()=>Q8(Y).substring(1),extname:()=>Q8(Y),hash(){return k4().update(Y).update(":").update(J).digest("hex").substring(0,8)},name:()=>Y.substring(0,Y.length-Q8(Y).length)}),Q)}function q2(Z,J,q){let Q=Z.toLowerCase();if(J[q3].has(Q))q(NU(Z));else J[Z]=eY}function MH(Z){return Boolean(Z&&(Z.type==="asset"||Z.type==="chunk"))}function HH(Z){let J=Z.fileName||Z.name;return!J||typeof J==="string"&&!i9(J)}function Q2(Z,J,q){if(!(typeof Z==="string"||Z instanceof Uint8Array)){let Q=J.fileName||J.name||q;return e(n5(`Could not set source for ${typeof Q==="string"?`asset "${Q}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return Z}function FH(Z,J){if(typeof Z.fileName!=="string")return e(KU(Z.name||J));return Z.fileName}function LH(Z,J){var q;let Q=Z.fileName||Z.module&&((q=J===null||J===void 0?void 0:J.get(Z.module))===null||q===void 0?void 0:q.id);if(!Q)return e(GU(Z.fileName||Z.name));return Q}class fX{constructor(Z,J,q){this.graph=Z,this.options=J,this.bundle=null,this.facadeChunkByModule=null,this.outputOptions=null,this.assertAssetsFinalized=()=>{for(let[Q,Y]of this.filesByReferenceId)if(Y.type==="asset"&&typeof Y.fileName!=="string")return e(FU(Y.name||Q))},this.emitFile=(Q)=>{if(!MH(Q))return e(n5(`Emitted files must be of type "asset" or "chunk", received "${Q&&Q.type}".`));if(!HH(Q))return e(n5(`The "fileName" or "name" properties of emitted files must be strings that are neither absolute nor relative paths, received "${Q.fileName||Q.name}".`));if(Q.type==="chunk")return this.emitChunk(Q);return this.emitAsset(Q)},this.getFileName=(Q)=>{let Y=this.filesByReferenceId.get(Q);if(!Y)return e(OU(Q));if(Y.type==="chunk")return LH(Y,this.facadeChunkByModule);return FH(Y,Q)},this.setAssetSource=(Q,Y)=>{let X=this.filesByReferenceId.get(Q);if(!X)return e(MU(Q));if(X.type!=="asset")return e(n5(`Asset sources can only be set for emitted assets but "${Q}" is an emitted chunk.`));if(X.source!==void 0)return e(HU(X.name||Q));let z=Q2(Y,X,Q);if(this.bundle)this.finalizeAsset(X,z,Q,this.bundle);else X.source=z},this.setOutputBundle=(Q,Y,X)=>{this.outputOptions=Y,this.bundle=Q,this.facadeChunkByModule=X;for(let{fileName:z}of this.filesByReferenceId.values())if(z)q2(z,Q,this.options.onwarn);for(let[z,V]of this.filesByReferenceId)if(V.type==="asset"&&V.source!==void 0)this.finalizeAsset(V,V.source,z,Q)},this.filesByReferenceId=q?new Map(q.filesByReferenceId):new Map}assignReferenceId(Z,J){let q;do q=k4().update(q||J).digest("hex").substring(0,8);while(this.filesByReferenceId.has(q));return this.filesByReferenceId.set(q,Z),q}emitAsset(Z){let J=typeof Z.source<"u"?Q2(Z.source,Z,null):void 0,q={fileName:Z.fileName,name:Z.name,source:J,type:"asset"},Q=this.assignReferenceId(q,Z.fileName||Z.name||Z.type);if(this.bundle){if(Z.fileName)q2(Z.fileName,this.bundle,this.options.onwarn);if(J!==void 0)this.finalizeAsset(q,J,Q,this.bundle)}return Q}emitChunk(Z){if(this.graph.phase>X8.LOAD_AND_PARSE)return e(PU());if(typeof Z.id!=="string")return e(n5(`Emitted chunks need to have a valid string id, received "${Z.id}"`));let J={fileName:Z.fileName,module:null,name:Z.name||Z.id,type:"chunk"};return this.graph.moduleLoader.emitChunk(Z).then((q)=>J.module=q).catch(()=>{}),this.assignReferenceId(J,Z.id)}finalizeAsset(Z,J,q,Q){let Y=Z.fileName||wH(Q,J)||BH(Z.name,J,this.outputOptions,Q),X={...Z,fileName:Y,source:J};this.filesByReferenceId.set(q,X);let{options:z}=this;Q[Y]={fileName:Y,get isAsset(){return j5(`Accessing "isAsset" on files in the bundle is deprecated, please use "type === 'asset'" instead`,!0,z),!0},name:Z.name,source:J,type:"asset"}}}function wH(Z,J){for(let[q,Q]of Object.entries(Z))if(Q.type==="asset"&&OH(J,Q.source))return q;return null}function OH(Z,J){if(typeof Z==="string")return Z===J;if(typeof J==="string")return!1;if("equals"in Z)return Z.equals(J);if(Z.length!==J.length)return!1;for(let q=0;q<Z.length;q++)if(Z[q]!==J[q])return!1;return!0}function o8(Z,J,q,Q,Y,X){let z=!1;return(...V)=>{if(!z)z=!0,j5({message:`The "this.${J}" plugin context function used by plugin ${Q} is deprecated. The "this.${q}" plugin context function should be used instead.`,plugin:Q},Y,X);return Z(...V)}}function NH(Z,J,q,Q,Y,X){let z=!0;if(typeof Z.cacheKey!=="string")if(Z.name.startsWith(G3)||Z.name.startsWith(U3)||X.has(Z.name))z=!1;else X.add(Z.name);let V;if(!J)V=GH;else if(z){let W=Z.cacheKey||Z.name;V=KH(J[W]||(J[W]=Object.create(null)))}else V=UH(Z.name);return{addWatchFile(W){if(q.phase>=X8.GENERATE)return this.error(AU());q.watchFiles[W]=!0},cache:V,emitAsset:o8((W,K)=>Y.emitFile({name:W,source:K,type:"asset"}),"emitAsset","emitFile",Z.name,!0,Q),emitChunk:o8((W,K)=>Y.emitFile({id:W,name:K&&K.name,type:"chunk"}),"emitChunk","emitFile",Z.name,!0,Q),emitFile:Y.emitFile.bind(Y),error(W){return g4(W,Z.name)},getAssetFileName:o8(Y.getFileName,"getAssetFileName","getFileName",Z.name,!0,Q),getChunkFileName:o8(Y.getFileName,"getChunkFileName","getFileName",Z.name,!0,Q),getFileName:Y.getFileName,getModuleIds:()=>q.modulesById.keys(),getModuleInfo:q.getModuleInfo,getWatchFiles:()=>Object.keys(q.watchFiles),isExternal:o8((W,K,$=!1)=>Q.external(W,K,$),"isExternal","resolve",Z.name,!0,Q),load(W){return q.moduleLoader.preloadModule(W)},meta:{rollupVersion:BZ,watchMode:q.watchMode},get moduleIds(){function*W(){j5({message:`Accessing "this.moduleIds" on the plugin context by plugin ${Z.name} is deprecated. The "this.getModuleIds" plugin context function should be used instead.`,plugin:Z.name},!1,Q),yield*K}let K=q.modulesById.keys();return W()},parse:q.contextParse.bind(q),resolve(W,K,{custom:$,isEntry:H,skipSelf:M}=n1){return q.moduleLoader.resolveId(W,K,$,H,M?[{importer:K,plugin:Z,source:W}]:null)},resolveId:o8((W,K)=>q.moduleLoader.resolveId(W,K,n1,void 0).then(($)=>$&&$.id),"resolveId","resolve",Z.name,!0,Q),setAssetSource:Y.setAssetSource,warn(W){if(typeof W==="string")W={message:W};if(W.code)W.pluginCode=W.code;W.code="PLUGIN_WARNING",W.plugin=Z.name,Q.onwarn(W)}}}class j3{constructor(Z,J,q,Q,Y){this.graph=Z,this.options=J,this.pluginCache=Q,this.sortedPlugins=new Map,this.unfulfilledActions=new Set,WH(q,J),this.fileEmitter=new fX(Z,J,Y&&Y.fileEmitter),this.emitFile=this.fileEmitter.emitFile.bind(this.fileEmitter),this.getFileName=this.fileEmitter.getFileName.bind(this.fileEmitter),this.finaliseAssets=this.fileEmitter.assertAssetsFinalized.bind(this.fileEmitter),this.setOutputBundle=this.fileEmitter.setOutputBundle.bind(this.fileEmitter),this.plugins=q.concat(Y?Y.plugins:[]);let X=new Set;if(this.pluginContexts=new Map(this.plugins.map((z)=>[z,NH(z,Q,Z,J,this.fileEmitter,X)])),Y){for(let z of q)for(let V of CH)if(V in z)J.onwarn(RU(z.name,V))}}createOutputPluginDriver(Z){return new j3(this.graph,this.options,Z,this.pluginCache,this)}getUnfulfilledHookActions(){return this.unfulfilledActions}hookFirst(Z,J,q,Q){let Y=Promise.resolve(null);for(let X of this.getSortedPlugins(Z)){if(Q&&Q.has(X))continue;Y=Y.then((z)=>{if(z!=null)return z;return this.runHook(Z,J,X,q)})}return Y}hookFirstSync(Z,J,q){for(let Q of this.getSortedPlugins(Z)){let Y=this.runHookSync(Z,J,Q,q);if(Y!=null)return Y}return null}async hookParallel(Z,J,q){let Q=[];for(let Y of this.getSortedPlugins(Z))if(Y[Z].sequential)await Promise.all(Q),Q.length=0,await this.runHook(Z,J,Y,q);else Q.push(this.runHook(Z,J,Y,q));await Promise.all(Q)}hookReduceArg0(Z,[J,...q],Q,Y){let X=Promise.resolve(J);for(let z of this.getSortedPlugins(Z))X=X.then((V)=>this.runHook(Z,[V,...q],z,Y).then((W)=>Q.call(this.pluginContexts.get(z),V,W,z)));return X}hookReduceArg0Sync(Z,[J,...q],Q,Y){for(let X of this.getSortedPlugins(Z)){let z=[J,...q],V=this.runHookSync(Z,z,X,Y);J=Q.call(this.pluginContexts.get(X),J,V,X)}return J}async hookReduceValue(Z,J,q,Q){let Y=[],X=[];for(let z of this.getSortedPlugins(Z,_H))if(z[Z].sequential)Y.push(...await Promise.all(X)),X.length=0,Y.push(await this.runHook(Z,q,z));else X.push(this.runHook(Z,q,z));return Y.push(...await Promise.all(X)),Y.reduce(Q,await J)}hookReduceValueSync(Z,J,q,Q,Y){let X=J;for(let z of this.getSortedPlugins(Z)){let V=this.runHookSync(Z,q,z,Y);X=Q.call(this.pluginContexts.get(z),X,V,z)}return X}hookSeq(Z,J,q){let Q=Promise.resolve();for(let Y of this.getSortedPlugins(Z))Q=Q.then(()=>this.runHook(Z,J,Y,q));return Q.then(DH)}getSortedPlugins(Z,J){return v5(this.sortedPlugins,Z,()=>vX(Z,this.plugins,J))}runHook(Z,J,q,Q){let Y=q[Z],X=typeof Y==="object"?Y.handler:Y,z=this.pluginContexts.get(q);if(Q)z=Q(z,q);let V=null;return Promise.resolve().then(()=>{if(typeof X!=="function")return X;let W=X.apply(z,J);if(!(W===null||W===void 0?void 0:W.then))return W;return V=[q.name,Z,J],this.unfulfilledActions.add(V),Promise.resolve(W).then((K)=>{return this.unfulfilledActions.delete(V),K})}).catch((W)=>{if(V!==null)this.unfulfilledActions.delete(V);return g4(W,q.name,{hook:Z})})}runHookSync(Z,J,q,Q){let Y=q[Z],X=typeof Y==="object"?Y.handler:Y,z=this.pluginContexts.get(q);if(Q)z=Q(z,q);try{return X.apply(z,J)}catch(V){return g4(V,q.name,{hook:Z})}}}function vX(Z,J,q=IH){let Q=[],Y=[],X=[];for(let z of J){let V=z[Z];if(V){if(typeof V==="object"){if(q(V.handler,Z,z),V.order==="pre"){Q.push(z);continue}if(V.order==="post"){X.push(z);continue}}else q(V,Z,z);Y.push(z)}}return[...Q,...Y,...X]}function IH(Z,J,q){if(typeof Z!=="function")e(TU(J,q.name))}function _H(Z,J,q){if(typeof Z!=="string"&&typeof Z!=="function")return e(DU(J,q.name))}function DH(){}class hX{constructor(Z){this.maxParallel=Z,this.queue=[],this.workerCount=0}run(Z){return new Promise((J,q)=>{this.queue.push({reject:q,resolve:J,task:Z}),this.work()})}async work(){if(this.workerCount>=this.maxParallel)return;this.workerCount++;let Z;while(Z=this.queue.shift()){let{reject:J,resolve:q,task:Q}=Z;try{let Y=await Q();q(Y)}catch(Y){J(Y)}}this.workerCount--}}function TH(Z){if(Array.isArray(Z))return Z.map((J)=>({fileName:null,id:J,implicitlyLoadedAfter:[],importer:void 0,name:null}));return Object.entries(Z).map(([J,q])=>({fileName:null,id:q,implicitlyLoadedAfter:[],importer:void 0,name:J}))}class gX{constructor(Z,J){var q,Q;if(this.options=Z,this.cachedModules=new Map,this.deoptimizationTracker=new Y0,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.phase=X8.LOAD_AND_PARSE,this.scope=new kX,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=(Y)=>{let X=this.modulesById.get(Y);if(!X)return null;return X.info},Z.cache!==!1){if((q=Z.cache)===null||q===void 0?void 0:q.modules)for(let Y of Z.cache.modules)this.cachedModules.set(Y.id,Y);this.pluginCache=((Q=Z.cache)===null||Q===void 0?void 0:Q.plugins)||Object.create(null);for(let Y in this.pluginCache){let X=this.pluginCache[Y];for(let z of Object.values(X))z[0]++}}if(J){this.watchMode=!0;let Y=(...z)=>this.pluginDriver.hookParallel("watchChange",z),X=()=>this.pluginDriver.hookParallel("closeWatcher",[]);J.onCurrentAwaited("change",Y),J.onCurrentAwaited("close",X)}this.pluginDriver=new j3(this,Z,Z.plugins,this.pluginCache),this.acornParser=c1.extend(...Z.acornInjectPlugins),this.moduleLoader=new xX(this,this.modulesById,this.options,this.pluginDriver),this.fileOperationQueue=new hX(Z.maxParallelFileOps)}async build(){s1("generate module graph",2),await this.generateModuleGraph(),i1("generate module graph",2),s1("sort modules",2),this.phase=X8.ANALYSE,this.sortModules(),i1("sort modules",2),s1("mark included statements",2),this.includeStatements(),i1("mark included statements",2),this.phase=X8.GENERATE}contextParse(Z,J={}){let q=J.onComment,Q=[];if(q&&typeof q=="function")J.onComment=(X,z,V,W,...K)=>{return Q.push({end:W,start:V,type:X?"Block":"Line",value:z}),q.call(J,X,z,V,W,...K)};else J.onComment=Q;let Y=this.acornParser.parse(Z,{...this.options.acorn,...J});if(typeof q=="object")q.push(...Q);return J.onComment=q,pj(Q,Y,Z),Y}getCache(){for(let Z in this.pluginCache){let J=this.pluginCache[Z],q=!0;for(let[Q,Y]of Object.entries(J))if(Y[0]>=this.options.experimentalCacheExpiry)delete J[Q];else q=!1;if(q)delete this.pluginCache[Z]}return{modules:this.modules.map((Z)=>Z.toJSON()),plugins:this.pluginCache}}async generateModuleGraph(){if({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules(TH(this.options.input),!0),this.entryModules.length===0)throw Error("You must supply options.input to rollup");for(let Z of this.modulesById.values())if(Z instanceof S1)this.modules.push(Z);else this.externalModules.push(Z)}includeStatements(){for(let Z of[...this.entryModules,...this.implicitEntryModules])F4(Z);if(this.options.treeshake){let Z=1;do{s1(`treeshaking pass ${Z}`,3),this.needsTreeshakingPass=!1;for(let J of this.modules)if(J.isExecuted)if(J.info.moduleSideEffects==="no-treeshake")J.includeAllInBundle();else J.include();if(Z===1){for(let J of[...this.entryModules,...this.implicitEntryModules])if(J.preserveSignature!==!1)J.includeAllExports(!1),this.needsTreeshakingPass=!0}i1(`treeshaking pass ${Z++}`,3)}while(this.needsTreeshakingPass)}else for(let Z of this.modules)Z.includeAllInBundle();for(let Z of this.externalModules)Z.warnUnusedImports();for(let Z of this.implicitEntryModules)for(let J of Z.implicitlyLoadedAfter)if(!(J.info.isEntry||J.isIncluded()))e(EU(J))}sortModules(){let{orderedModules:Z,cyclePaths:J}=CM(this.entryModules);for(let q of J)this.options.onwarn({code:"CIRCULAR_DEPENDENCY",cycle:q,importer:q[0],message:`Circular dependency: ${q.join(" -> ")}`});this.modules=Z;for(let q of this.modules)q.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(let Z of this.modules)for(let J of Z.importDescriptions.values())if(J.name!=="*"&&!J.module.getVariableForExportName(J.name)[0])Z.warn({code:"NON_EXISTENT_EXPORT",message:`Non-existent export '${J.name}' is imported from ${V1(J.module.id)}`,name:J.name,source:J.module.id},J.start)}}function H6(Z){if(Array.isArray(Z))return Z.filter(Boolean);if(Z)return[Z];return[]}function AH([Z,J,q]){let Q=`(${Z}) ${J}`,Y=JSON.stringify;switch(J){case"resolveId":return`${Q} ${Y(q[0])} ${Y(q[1])}`;case"load":return`${Q} ${Y(q[0])}`;case"transform":return`${Q} ${Y(q[1])}`;case"shouldTransformCachedModule":return`${Q} ${Y(q[0].id)}`;case"moduleParsed":return`${Q} ${Y(q[0].id)}`}return Q}async function mX(Z,J){let q,Q=new Promise((X,z)=>{q=()=>{let V=Z.getUnfulfilledHookActions();z(Error(`Unexpected early exit. This happens when Promises returned by plugins cannot resolve. Unfinished hook action(s) on exit:
|
|
35
|
+
`+[...V].map(AH).join(`
|
|
36
|
+
`)))},u4.once(m4,q)}),Y=await Promise.race([J(),Q]);return u4.off(m4,q),Y}function uX(Z,J,q,Q,Y=/$./){let X=new Set(J),z=Object.keys(Z).filter((V)=>!(X.has(V)||Y.test(V)));if(z.length>0)Q({code:"UNKNOWN_OPTION",message:`Unknown ${q}: ${z.join(", ")}. Allowed options: ${[...X].sort().join(", ")}`})}function bH(Z){var J,q,Q;let Y=new Set,X=(J=Z.context)!==null&&J!==void 0?J:"undefined",z=xH(Z),V=Z.strictDeprecations||!1,W=uH(Z,z,V),K={acorn:kH(Z),acornInjectPlugins:fH(Z),cache:vH(Z),context:X,experimentalCacheExpiry:(q=Z.experimentalCacheExpiry)!==null&&q!==void 0?q:10,external:cX(Z.external),inlineDynamicImports:hH(Z,z,V),input:gH(Z),makeAbsoluteExternalsRelative:(Q=Z.makeAbsoluteExternalsRelative)!==null&&Q!==void 0?Q:!0,manualChunks:mH(Z,z,V),maxParallelFileOps:W,maxParallelFileReads:W,moduleContext:dH(Z,X),onwarn:z,perf:Z.perf||!1,plugins:H6(Z.plugins),preserveEntrySignatures:lH(Z,Y),preserveModules:cH(Z,z,V),preserveSymlinks:Z.preserveSymlinks||!1,shimMissingExports:Z.shimMissingExports||!1,strictDeprecations:V,treeshake:pH(Z,z,V)};return uX(Z,[...Object.keys(K),"watch"],"input options",K.onwarn,/^(output)$/),{options:K,unsetOptions:Y}}function aH(Z){let J=nH.exec(Z),q=J?J[0]:"";return q+Z.substr(q.length).replace(iH,"_")}function sH(Z){try{new URL(Z)}catch(J){return!1}return!0}function rH(Z,J,q){var Q,Y,X,z,V,W,K;let $=new Set(q),H=Z.compact||!1,M=tH(Z),O=eH(Z,J),j=ZF(Z,O,J),L=oH(Z,j,J),I=JF(Z,J),y=WF(Z,I),_={amd:QF(Z),assetFileNames:(Q=Z.assetFileNames)!==null&&Q!==void 0?Q:"assets/[name]-[hash][extname]",banner:B4(Z,"banner"),chunkFileNames:(Y=Z.chunkFileNames)!==null&&Y!==void 0?Y:"[name]-[hash].js",compact:H,dir:YF(Z,L),dynamicImportFunction:XF(Z,J),entryFileNames:zF(Z,$),esModule:(X=Z.esModule)!==null&&X!==void 0?X:!0,exports:VF(Z,$),extend:Z.extend||!1,externalLiveBindings:(z=Z.externalLiveBindings)!==null&&z!==void 0?z:!0,file:L,footer:B4(Z,"footer"),format:M,freeze:(V=Z.freeze)!==null&&V!==void 0?V:!0,generatedCode:y,globals:Z.globals||{},hoistTransitiveImports:(W=Z.hoistTransitiveImports)!==null&&W!==void 0?W:!0,indent:KF(Z,H),inlineDynamicImports:O,interop:$F(Z,J),intro:B4(Z,"intro"),manualChunks:GF(Z,O,j,J),minifyInternalExports:UF(Z,M,H),name:Z.name,namespaceToStringTag:jF(Z,y,J),noConflict:Z.noConflict||!1,outro:B4(Z,"outro"),paths:Z.paths||{},plugins:H6(Z.plugins),preferConst:I,preserveModules:j,preserveModulesRoot:qF(Z),sanitizeFileName:typeof Z.sanitizeFileName==="function"?Z.sanitizeFileName:Z.sanitizeFileName===!1?(T)=>T:aH,sourcemap:Z.sourcemap||!1,sourcemapBaseUrl:BF(Z),sourcemapExcludeSources:Z.sourcemapExcludeSources||!1,sourcemapFile:Z.sourcemapFile,sourcemapPathTransform:Z.sourcemapPathTransform,strict:(K=Z.strict)!==null&&K!==void 0?K:!0,systemNullSetters:Z.systemNullSetters||!1,validate:Z.validate||!1};return uX(Z,Object.keys(_),"output options",J.onwarn),{options:_,unsetOptions:$}}function VF(Z,J){let q=Z.exports;if(q==null)J.add("exports");else if(!["default","named","none","auto"].includes(q))return e(IU(q));return q||"auto"}function B3(Z){return MF(Z,null)}async function MF(Z,J){let{options:q,unsetOptions:Q}=await HF(Z,J!==null);IB(q);let Y=new gX(q,J),X=Z.cache!==!1;delete q.cache,delete Z.cache,s1("BUILD",1),await mX(Y.pluginDriver,async()=>{try{await Y.pluginDriver.hookParallel("buildStart",[q]),await Y.build()}catch(V){let W=Object.keys(Y.watchFiles);if(W.length>0)V.watchFiles=W;throw await Y.pluginDriver.hookParallel("buildEnd",[V]),await Y.pluginDriver.hookParallel("closeBundle",[]),V}await Y.pluginDriver.hookParallel("buildEnd",[])}),i1("BUILD",1);let z={cache:X?Y.getCache():void 0,async close(){if(z.closed)return;z.closed=!0,await Y.pluginDriver.hookParallel("closeBundle",[])},closed:!1,async generate(V){if(z.closed)return e($Q());return V2(!1,q,Q,V,Y)},watchFiles:Object.keys(Y.watchFiles),async write(V){if(z.closed)return e($Q());return V2(!0,q,Q,V,Y)}};if(q.perf)z.getTimings=NB;return z}async function HF(Z,J){if(!Z)throw Error("You must supply an options object to rollup");let q=vX("options",H6(Z.plugins)),{options:Q,unsetOptions:Y}=bH(await q.reduce(FF(J),Promise.resolve(Z)));return pX(Q.plugins,G3),{options:Q,unsetOptions:Y}}function FF(Z){return async(J,q)=>{return await("handler"in q.options?q.options.handler:q.options).call({meta:{rollupVersion:BZ,watchMode:Z}},await J)||J}}function pX(Z,J){Z.forEach((q,Q)=>{if(!q.name)q.name=`${J}${Q+1}`})}function V2(Z,J,q,Q,Y){let{options:X,outputPluginDriver:z,unsetOptions:V}=LF(Q,Y.pluginDriver,J,q);return mX(z,async()=>{let K=await new ZX(X,V,J,z,Y).generate(Z);if(Z){if(!X.dir&&!X.file)return e({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.'});await Promise.all(Object.values(K).map(($)=>Y.fileOperationQueue.run(()=>NF($,X)))),await z.hookParallel("writeBundle",[X,K])}return OF(K)})}function LF(Z,J,q,Q){if(!Z)throw Error("You must supply an options object");let Y=H6(Z.plugins);pX(Y,U3);let X=J.createOutputPluginDriver(Y);return{...wF(q,Q,Z,X),outputPluginDriver:X}}function wF(Z,J,q,Q){return rH(Q.hookReduceArg0Sync("outputOptions",[q.output||q],(Y,X)=>X||Y,(Y)=>{let X=()=>Y.error($U());return{...Y,emitFile:X,setAssetSource:X}}),Z,J)}function OF(Z){return{output:Object.values(Z).filter((J)=>Object.keys(J).length>0).sort((J,q)=>W2(J)-W2(q))}}function W2(Z){if(Z.type==="asset")return J0.ASSET;if(Z.isEntry)return J0.ENTRY_CHUNK;return J0.SECONDARY_CHUNK}async function NF(Z,J){let q=U5(J.dir||f5(J.file),Z.fileName);await D8.mkdir(f5(q),{recursive:!0});let Q,Y;if(Z.type==="asset")Y=Z.source;else if(Y=Z.code,J.sourcemap&&Z.map){let X;if(J.sourcemap==="inline")X=Z.map.toUrl();else{let{sourcemapBaseUrl:z}=J,V=`${z8(Z.fileName)}.map`;X=z?new URL(V,z).toString():V,Q=D8.writeFile(`${q}.map`,Z.map.toString())}if(J.sourcemap!=="hidden")Y+=`//# ${SZ}=${X}
|
|
37
|
+
`}return Promise.all([D8.writeFile(q,Y),Q])}var BZ="2.80.0",$2,u9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",t8,d9=()=>{throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")},eG,c6=`
|
|
38
|
+
`,n8,YQ,XQ,d1,C4,Q0,$1,D1,ZU,c9,q6,r1,x1,j2,Y1,E1=0,h5=1,P1=2,LZ,JU,wZ,p9,d4,$8,X0,n1,o6,a8,XU,zU,VU,WU,W1,pU,l4,M2,iU=(Z)=>/\d/.test(Z[0]),H2=(Z)=>iU(Z)||l4.has(Z)||Z==="arguments",F2,c4,sU,b5="\\\\/",GQ,p5="\\.",rU="\\+",oU="\\?",p4="\\/",tU="(?=.)",L2="[^/]",RZ,w2,CZ,eU,Zj,Jj,qj,Qj,Yj,O2,Xj,zj,i4,UQ,C9,Vj,a6,Wj,I9,_9,N2,D9,T9,Kj,$j,jQ,Gj,BQ,Uj,MQ=(Z)=>{return Z===N2||Z===a6},HQ=(Z)=>{if(Z.isPrefix!==!0)Z.depth=Z.isGlobstar?1/0:1},jj=(Z,J)=>{let q=J||{},Q=Z.length-1,Y=q.parts===!0||q.scanToEnd===!0,X=[],z=[],V=[],W=Z,K=-1,$=0,H=0,M=!1,O=!1,j=!1,L=!1,I=!1,y=!1,_=!1,T=!1,g=!1,h=!1,u=0,E,N,P={value:"",depth:0,isGlob:!1},A=()=>K>=Q,B=()=>W.charCodeAt(K+1),b=()=>{return E=N,W.charCodeAt(++K)};while(K<Q){N=b();let d;if(N===a6){if(_=P.backslashes=!0,N=b(),N===D9)y=!0;continue}if(y===!0||N===D9){u++;while(A()!==!0&&(N=b())){if(N===a6){_=P.backslashes=!0,b();continue}if(N===D9){u++;continue}if(y!==!0&&N===I9&&(N=b())===I9){if(M=P.isBrace=!0,j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(y!==!0&&N===Wj){if(M=P.isBrace=!0,j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===Gj){if(u--,u===0){y=!1,M=P.isBrace=!0,h=!0;break}}}if(Y===!0)continue;break}if(N===N2){if(X.push(K),z.push(P),P={value:"",depth:0,isGlob:!1},h===!0)continue;if(E===I9&&K===$+1){$+=2;continue}H=K+1;continue}if(q.noext!==!0){if((N===$j||N===Vj||N===C9||N===jQ||N===_9)===!0&&B()===T9){if(j=P.isGlob=!0,L=P.isExtglob=!0,h=!0,N===_9&&K===$)g=!0;if(Y===!0){while(A()!==!0&&(N=b())){if(N===a6){_=P.backslashes=!0,N=b();continue}if(N===BQ){j=P.isGlob=!0,h=!0;break}}continue}break}}if(N===C9){if(E===C9)I=P.isGlobstar=!0;if(j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===jQ){if(j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===Kj){while(A()!==!0&&(d=b())){if(d===a6){_=P.backslashes=!0,b();continue}if(d===Uj){O=P.isBracket=!0,j=P.isGlob=!0,h=!0;break}}if(Y===!0)continue;break}if(q.nonegate!==!0&&N===_9&&K===$){T=P.negated=!0,$++;continue}if(q.noparen!==!0&&N===T9){if(j=P.isGlob=!0,Y===!0){while(A()!==!0&&(N=b())){if(N===T9){_=P.backslashes=!0,N=b();continue}if(N===BQ){h=!0;break}}continue}break}if(j===!0){if(h=!0,Y===!0)continue;break}}if(q.noext===!0)L=!1,j=!1;let k=W,S="",G="";if($>0)S=W.slice(0,$),W=W.slice($),H-=$;if(k&&j===!0&&H>0)k=W.slice(0,H),G=W.slice(H);else if(j===!0)k="",G=W;else k=W;if(k&&k!==""&&k!=="/"&&k!==W){if(MQ(k.charCodeAt(k.length-1)))k=k.slice(0,-1)}if(q.unescape===!0){if(G)G=UQ.removeBackslashes(G);if(k&&_===!0)k=UQ.removeBackslashes(k)}let F={prefix:S,input:Z,start:$,base:k,glob:G,isBrace:M,isBracket:O,isGlob:j,isExtglob:L,isGlobstar:I,negated:T,negatedExtglob:g};if(q.tokens===!0){if(F.maxDepth=0,!MQ(N))z.push(P);F.tokens=z}if(q.parts===!0||q.tokens===!0){let d;for(let f=0;f<X.length;f++){let o=d?d+1:$,t=X[f],Q1=Z.slice(o,t);if(q.tokens){if(f===0&&$!==0)z[f].isPrefix=!0,z[f].value=S;else z[f].value=Q1;HQ(z[f]),F.maxDepth+=z[f].depth}if(f!==0||Q1!=="")V.push(Q1);d=t}if(d&&d+1<Z.length){let f=Z.slice(d+1);if(V.push(f),q.tokens)z[z.length-1].value=f,HQ(z[z.length-1]),F.maxDepth+=z[z.length-1].depth}F.slashes=X,F.parts=V}return F},Bj,D4,w5,T4,Mj,Hj,Fj,R2,Lj=(Z,J)=>{if(typeof J.expandRange==="function")return J.expandRange(...Z,J);return Z.sort(),`[${Z.join("-")}]`},s8=(Z,J)=>{return`Missing ${Z}: "${J}" - use "\\\\${J}" to match literal characters`},IZ=(Z,J)=>{if(typeof Z!=="string")throw TypeError("Expected a string");Z=R2[Z]||Z;let q={...J},Q=typeof q.maxLength==="number"?Math.min(T4,q.maxLength):T4,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);let X={type:"bos",value:"",output:q.prepend||""},z=[X],V=q.capture?"":"?:",W=w5.isWindows(J),K=D4.globChars(W),$=D4.extglobChars(K),{DOT_LITERAL:H,PLUS_LITERAL:M,SLASH_LITERAL:O,ONE_CHAR:j,DOTS_SLASH:L,NO_DOT:I,NO_DOT_SLASH:y,NO_DOTS_SLASH:_,QMARK:T,QMARK_NO_DOT:g,STAR:h,START_ANCHOR:u}=K,E=(D)=>{return`(${V}(?:(?!${u}${D.dot?L:H}).)*?)`},N=q.dot?"":I,P=q.dot?T:g,A=q.bash===!0?E(q):h;if(q.capture)A=`(${A})`;if(typeof q.noext==="boolean")q.noextglob=q.noext;let B={input:Z,index:-1,start:0,dot:q.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:z};Z=w5.removePrefix(Z,B),Y=Z.length;let b=[],k=[],S=[],G=X,F,d=()=>B.index===Y-1,f=B.peek=(D=1)=>Z[B.index+D],o=B.advance=()=>Z[++B.index]||"",t=()=>Z.slice(B.index+1),Q1=(D="",x=0)=>{B.consumed+=D,B.index+=x},N1=(D)=>{B.output+=D.output!=null?D.output:D.value,Q1(D.value)},R1=()=>{let D=1;while(f()==="!"&&(f(2)!=="("||f(3)==="?"))o(),B.start++,D++;if(D%2===0)return!1;return B.negated=!0,B.start++,!0},F1=(D)=>{B[D]++,S.push(D)},s=(D)=>{B[D]--,S.pop()},m=(D)=>{if(G.type==="globstar"){let x=B.braces>0&&(D.type==="comma"||D.type==="brace"),C=D.extglob===!0||b.length&&(D.type==="pipe"||D.type==="paren");if(D.type!=="slash"&&D.type!=="paren"&&!x&&!C)B.output=B.output.slice(0,-G.output.length),G.type="star",G.value="*",G.output=A,B.output+=G.output}if(b.length&&D.type!=="paren")b[b.length-1].inner+=D.value;if(D.value||D.output)N1(D);if(G&&G.type==="text"&&D.type==="text"){G.value+=D.value,G.output=(G.output||"")+D.value;return}D.prev=G,z.push(D),G=D},L1=(D,x)=>{let C={...$[x],conditions:1,inner:""};C.prev=G,C.parens=B.parens,C.output=B.output;let v=(q.capture?"(":"")+C.open;F1("parens"),m({type:D,value:x,output:B.output?"":j}),m({type:"paren",extglob:!0,value:o(),output:v}),b.push(C)},p=(D)=>{let x=D.close+(q.capture?")":""),C;if(D.type==="negate"){let v=A;if(D.inner&&D.inner.length>1&&D.inner.includes("/"))v=E(q);if(v!==A||d()||/^\)+$/.test(t()))x=D.close=`)$))${v}`;if(D.inner.includes("*")&&(C=t())&&/^\.[^\\/.]+$/.test(C)){let c=IZ(C,{...J,fastpaths:!1}).output;x=D.close=`)${c})${v})`}if(D.prev.type==="bos")B.negatedExtglob=!0}m({type:"paren",extglob:!0,value:F,output:x}),s("parens")};if(q.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let D=!1,x=Z.replace(Fj,(C,v,c,n,i,B1)=>{if(n==="\\")return D=!0,C;if(n==="?"){if(v)return v+n+(i?T.repeat(i.length):"");if(B1===0)return P+(i?T.repeat(i.length):"");return T.repeat(c.length)}if(n===".")return H.repeat(c.length);if(n==="*"){if(v)return v+n+(i?A:"");return A}return v?C:`\\${C}`});if(D===!0)if(q.unescape===!0)x=x.replace(/\\/g,"");else x=x.replace(/\\+/g,(C)=>{return C.length%2===0?"\\\\":C?"\\":""});if(x===Z&&q.contains===!0)return B.output=Z,B;return B.output=w5.wrapOutput(x,B,J),B}while(!d()){if(F=o(),F==="\x00")continue;if(F==="\\"){let C=f();if(C==="/"&&q.bash!==!0)continue;if(C==="."||C===";")continue;if(!C){F+="\\",m({type:"text",value:F});continue}let v=/^\\+/.exec(t()),c=0;if(v&&v[0].length>2){if(c=v[0].length,B.index+=c,c%2!==0)F+="\\"}if(q.unescape===!0)F=o();else F+=o();if(B.brackets===0){m({type:"text",value:F});continue}}if(B.brackets>0&&(F!=="]"||G.value==="["||G.value==="[^")){if(q.posix!==!1&&F===":"){let C=G.value.slice(1);if(C.includes("[")){if(G.posix=!0,C.includes(":")){let v=G.value.lastIndexOf("["),c=G.value.slice(0,v),n=G.value.slice(v+2),i=Mj[n];if(i){if(G.value=c+i,B.backtrack=!0,o(),!X.output&&z.indexOf(G)===1)X.output=j;continue}}}}if(F==="["&&f()!==":"||F==="-"&&f()==="]")F=`\\${F}`;if(F==="]"&&(G.value==="["||G.value==="[^"))F=`\\${F}`;if(q.posix===!0&&F==="!"&&G.value==="[")F="^";G.value+=F,N1({value:F});continue}if(B.quotes===1&&F!=='"'){F=w5.escapeRegex(F),G.value+=F,N1({value:F});continue}if(F==='"'){if(B.quotes=B.quotes===1?0:1,q.keepQuotes===!0)m({type:"text",value:F});continue}if(F==="("){F1("parens"),m({type:"paren",value:F});continue}if(F===")"){if(B.parens===0&&q.strictBrackets===!0)throw SyntaxError(s8("opening","("));let C=b[b.length-1];if(C&&B.parens===C.parens+1){p(b.pop());continue}m({type:"paren",value:F,output:B.parens?")":"\\)"}),s("parens");continue}if(F==="["){if(q.nobracket===!0||!t().includes("]")){if(q.nobracket!==!0&&q.strictBrackets===!0)throw SyntaxError(s8("closing","]"));F=`\\${F}`}else F1("brackets");m({type:"bracket",value:F});continue}if(F==="]"){if(q.nobracket===!0||G&&G.type==="bracket"&&G.value.length===1){m({type:"text",value:F,output:`\\${F}`});continue}if(B.brackets===0){if(q.strictBrackets===!0)throw SyntaxError(s8("opening","["));m({type:"text",value:F,output:`\\${F}`});continue}s("brackets");let C=G.value.slice(1);if(G.posix!==!0&&C[0]==="^"&&!C.includes("/"))F=`/${F}`;if(G.value+=F,N1({value:F}),q.literalBrackets===!1||w5.hasRegexChars(C))continue;let v=w5.escapeRegex(G.value);if(B.output=B.output.slice(0,-G.value.length),q.literalBrackets===!0){B.output+=v,G.value=v;continue}G.value=`(${V}${v}|${G.value})`,B.output+=G.value;continue}if(F==="{"&&q.nobrace!==!0){F1("braces");let C={type:"brace",value:F,output:"(",outputIndex:B.output.length,tokensIndex:B.tokens.length};k.push(C),m(C);continue}if(F==="}"){let C=k[k.length-1];if(q.nobrace===!0||!C){m({type:"text",value:F,output:F});continue}let v=")";if(C.dots===!0){let c=z.slice(),n=[];for(let i=c.length-1;i>=0;i--){if(z.pop(),c[i].type==="brace")break;if(c[i].type!=="dots")n.unshift(c[i].value)}v=Lj(n,q),B.backtrack=!0}if(C.comma!==!0&&C.dots!==!0){let c=B.output.slice(0,C.outputIndex),n=B.tokens.slice(C.tokensIndex);C.value=C.output="\\{",F=v="\\}",B.output=c;for(let i of n)B.output+=i.output||i.value}m({type:"brace",value:F,output:v}),s("braces"),k.pop();continue}if(F==="|"){if(b.length>0)b[b.length-1].conditions++;m({type:"text",value:F});continue}if(F===","){let C=F,v=k[k.length-1];if(v&&S[S.length-1]==="braces")v.comma=!0,C="|";m({type:"comma",value:F,output:C});continue}if(F==="/"){if(G.type==="dot"&&B.index===B.start+1){B.start=B.index+1,B.consumed="",B.output="",z.pop(),G=X;continue}m({type:"slash",value:F,output:O});continue}if(F==="."){if(B.braces>0&&G.type==="dot"){if(G.value===".")G.output=H;let C=k[k.length-1];G.type="dots",G.output+=F,G.value+=F,C.dots=!0;continue}if(B.braces+B.parens===0&&G.type!=="bos"&&G.type!=="slash"){m({type:"text",value:F,output:H});continue}m({type:"dot",value:F,output:H});continue}if(F==="?"){if(!(G&&G.value==="(")&&q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("qmark",F);continue}if(G&&G.type==="paren"){let v=f(),c=F;if(v==="<"&&!w5.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(G.value==="("&&!/[!=<:]/.test(v)||v==="<"&&!/<([!=]|\w+>)/.test(t()))c=`\\${F}`;m({type:"text",value:F,output:c});continue}if(q.dot!==!0&&(G.type==="slash"||G.type==="bos")){m({type:"qmark",value:F,output:g});continue}m({type:"qmark",value:F,output:T});continue}if(F==="!"){if(q.noextglob!==!0&&f()==="("){if(f(2)!=="?"||!/[!=<:]/.test(f(3))){L1("negate",F);continue}}if(q.nonegate!==!0&&B.index===0){R1();continue}}if(F==="+"){if(q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("plus",F);continue}if(G&&G.value==="("||q.regex===!1){m({type:"plus",value:F,output:M});continue}if(G&&(G.type==="bracket"||G.type==="paren"||G.type==="brace")||B.parens>0){m({type:"plus",value:F});continue}m({type:"plus",value:M});continue}if(F==="@"){if(q.noextglob!==!0&&f()==="("&&f(2)!=="?"){m({type:"at",extglob:!0,value:F,output:""});continue}m({type:"text",value:F});continue}if(F!=="*"){if(F==="$"||F==="^")F=`\\${F}`;let C=Hj.exec(t());if(C)F+=C[0],B.index+=C[0].length;m({type:"text",value:F});continue}if(G&&(G.type==="globstar"||G.star===!0)){G.type="star",G.star=!0,G.value+=F,G.output=A,B.backtrack=!0,B.globstar=!0,Q1(F);continue}let D=t();if(q.noextglob!==!0&&/^\([^?]/.test(D)){L1("star",F);continue}if(G.type==="star"){if(q.noglobstar===!0){Q1(F);continue}let C=G.prev,v=C.prev,c=C.type==="slash"||C.type==="bos",n=v&&(v.type==="star"||v.type==="globstar");if(q.bash===!0&&(!c||D[0]&&D[0]!=="/")){m({type:"star",value:F,output:""});continue}let i=B.braces>0&&(C.type==="comma"||C.type==="brace"),B1=b.length&&(C.type==="pipe"||C.type==="paren");if(!c&&C.type!=="paren"&&!i&&!B1){m({type:"star",value:F,output:""});continue}while(D.slice(0,3)==="/**"){let _1=Z[B.index+4];if(_1&&_1!=="/")break;D=D.slice(3),Q1("/**",3)}if(C.type==="bos"&&d()){G.type="globstar",G.value+=F,G.output=E(q),B.output=G.output,B.globstar=!0,Q1(F);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&!n&&d()){B.output=B.output.slice(0,-(C.output+G.output).length),C.output=`(?:${C.output}`,G.type="globstar",G.output=E(q)+(q.strictSlashes?")":"|$)"),G.value+=F,B.globstar=!0,B.output+=C.output+G.output,Q1(F);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&D[0]==="/"){let _1=D[1]!==void 0?"|$":"";B.output=B.output.slice(0,-(C.output+G.output).length),C.output=`(?:${C.output}`,G.type="globstar",G.output=`${E(q)}${O}|${O}${_1})`,G.value+=F,B.output+=C.output+G.output,B.globstar=!0,Q1(F+o()),m({type:"slash",value:"/",output:""});continue}if(C.type==="bos"&&D[0]==="/"){G.type="globstar",G.value+=F,G.output=`(?:^|${O}|${E(q)}${O})`,B.output=G.output,B.globstar=!0,Q1(F+o()),m({type:"slash",value:"/",output:""});continue}B.output=B.output.slice(0,-G.output.length),G.type="globstar",G.output=E(q),G.value+=F,B.output+=G.output,B.globstar=!0,Q1(F);continue}let x={type:"star",value:F,output:A};if(q.bash===!0){if(x.output=".*?",G.type==="bos"||G.type==="slash")x.output=N+x.output;m(x);continue}if(G&&(G.type==="bracket"||G.type==="paren")&&q.regex===!0){x.output=F,m(x);continue}if(B.index===B.start||G.type==="slash"||G.type==="dot"){if(G.type==="dot")B.output+=y,G.output+=y;else if(q.dot===!0)B.output+=_,G.output+=_;else B.output+=N,G.output+=N;if(f()!=="*")B.output+=j,G.output+=j}m(x)}while(B.brackets>0){if(q.strictBrackets===!0)throw SyntaxError(s8("closing","]"));B.output=w5.escapeLast(B.output,"["),s("brackets")}while(B.parens>0){if(q.strictBrackets===!0)throw SyntaxError(s8("closing",")"));B.output=w5.escapeLast(B.output,"("),s("parens")}while(B.braces>0){if(q.strictBrackets===!0)throw SyntaxError(s8("closing","}"));B.output=w5.escapeLast(B.output,"{"),s("braces")}if(q.strictSlashes!==!0&&(G.type==="star"||G.type==="bracket"))m({type:"maybe_slash",value:"",output:`${O}?`});if(B.backtrack===!0){B.output="";for(let D of B.tokens)if(B.output+=D.output!=null?D.output:D.value,D.suffix)B.output+=D.suffix}return B},wj,Oj,Nj,n9,_Z,Rj,Cj=(Z)=>Z&&typeof Z==="object"&&!Array.isArray(Z),f1=(Z,J,q=!1)=>{if(Array.isArray(Z)){let $=Z.map((M)=>f1(M,J,q));return(M)=>{for(let O of $){let j=O(M);if(j)return j}return!1}}let Q=Cj(Z)&&Z.tokens&&Z.input;if(Z===""||typeof Z!=="string"&&!Q)throw TypeError("Expected pattern to be a non-empty string");let Y=J||{},X=_Z.isWindows(J),z=Q?f1.compileRe(Z,J):f1.makeRe(Z,J,!1,!0),V=z.state;delete z.state;let W=()=>!1;if(Y.ignore){let $={...J,ignore:null,onMatch:null,onResult:null};W=f1(Y.ignore,$,q)}let K=($,H=!1)=>{let{isMatch:M,match:O,output:j}=f1.test($,z,J,{glob:Z,posix:X}),L={glob:Z,state:V,regex:z,posix:X,input:$,output:j,match:O,isMatch:M};if(typeof Y.onResult==="function")Y.onResult(L);if(M===!1)return L.isMatch=!1,H?L:!1;if(W($)){if(typeof Y.onIgnore==="function")Y.onIgnore(L);return L.isMatch=!1,H?L:!1}if(typeof Y.onMatch==="function")Y.onMatch(L);return H?L:!0};if(q)K.state=V;return K},Ij,yI,e8,_j=function(J){let q=[];return e8[J.type](q,J),q},Dj="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",Tj="arguments 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",Aj,n4=0,X6=1,S8=2,F0,Z6,DZ,T8,U6,J6,TZ,j1,FQ,AZ,s9,r9,V0,a,C2="ArrowFunctionExpression",Sj="BinaryExpression",I2="BlockStatement",_2="CallExpression",yj="ChainExpression",Ej="ConditionalExpression",N5="ExpressionStatement",D2="Identifier",bj="ImportDefaultSpecifier",xj="ImportNamespaceSpecifier",kj="LogicalExpression",fj="NewExpression",A4="Program",vj="Property",hj="ReturnStatement",gj="SequenceExpression",SZ="sourceMa",mj="[ \\f\\r\\t\\v\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]",uj,T2="_rollupAnnotations",A2="_rollupRemoved",dj,A9,cj,o9,S2="variables",Z1,z6,Z5,H4,t6,LQ,y2,p6,V5,wQ=(Z)=>typeof Z==="string"&&/^\d+$/.test(Z),nj,Y8,yZ,OQ,NQ,aj,V4,P9,RQ,CQ,IQ,R8,S9,sj,r4,E2,b2,S5,rj="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$",_Q=64,P5,bZ,xZ,u1,x5,C8,l,r,DQ,U,Q5,c5,r8,e9,o4,oj,l1,A8,AQ,G8,N0,W0,fZ,e4,vZ,gZ,h2,g2,m2,mZ,u2,Z7,d2,ZB,l2,c2,V6,i6=7,y8,uZ,a2,s2,r2,o2,t2,e2,dZ,y4,ZY,lZ,K0,JY,J7,qY,QY,YY,XY,q7,W6,R0,cZ,zY,VY,WY,KY,$Y,ZZ,PQ,pZ,iZ,GY,E4="_interopDefault",JZ="_interopDefaultLegacy",e6="_interopNamespace",s6="_interopNamespaceDefault",$0="_interopNamespaceDefaultOnly",b4="_mergeNamespaces",C0,Q7=(Z,J)=>Z==="esModule"||J&&(Z==="auto"||Z==="true"),I0,zB=(Z,J)=>Q7(Z,J)&&C0[Z]===E4,nZ=(Z,J,q,Q,Y,X,z)=>{let V=new Set(Z);for(let W of QZ)if(J.has(W))V.add(W);return QZ.map((W)=>V.has(W)?UY[W](q,Q,Y,X,z,V):"").join("")},UY,SQ=({_:Z,getObject:J})=>`e${Z}:${Z}${J([["default","e"]],{lineBreakIndent:null})}`,yQ=({_:Z,getPropertyAccess:J})=>`e${J("default")}${Z}:${Z}e`,EQ=(Z,J,q,Q,Y,X)=>{let{_:z,cnst:V,getObject:W,getPropertyAccess:K,n:$,s:H}=q,M=`{${$}`+(Q?KB:BY)(Z,J+Z+Z,q)+`${J}${Z}}`;return`${J}${V} n${z}=${z}Object.create(null${X?`,${z}{${z}[Symbol.toStringTag]:${z}${G0(W)}${z}}`:""});${$}${J}if${z}(e)${z}{${$}${J}${Z}${VB(M,!Q,q)}${$}${J}}${$}${J}n${K("default")}${z}=${z}e;${$}${J}return ${qZ(Y,"n")}${H}${$}`},VB=(Z,J,{_:q,cnst:Q,getFunctionIntro:Y,s:X})=>Q!=="var"||J?`for${q}(${Q} k in e)${q}${Z}`:`Object.keys(e).forEach(${Y(["k"],{isAsync:!1,name:null})}${Z})${X}`,WB=(Z,J,q,{_:Q,cnst:Y,getDirectReturnFunction:X,getFunctionIntro:z,n:V})=>{if(J){let[W,K]=X(["e"],{functionReturn:!1,lineBreakIndent:{base:q,t:q},name:null});return`m.forEach(${W}e${Q}&&${Q}typeof e${Q}!==${Q}'string'${Q}&&${Q}!Array.isArray(e)${Q}&&${Q}Object.keys(e).forEach(${z(["k"],{isAsync:!1,name:null})}${Z})${K});`}return`for${Q}(var i${Q}=${Q}0;${Q}i${Q}<${Q}m.length;${Q}i++)${Q}{${V}${q}${q}${Y} e${Q}=${Q}m[i];${V}${q}${q}if${Q}(typeof e${Q}!==${Q}'string'${Q}&&${Q}!Array.isArray(e))${Q}{${Q}for${Q}(${Y} k in e)${Q}${Z}${Q}}${V}${q}}`},KB=(Z,J,q)=>{let{_:Q,n:Y}=q;return`${J}if${Q}(k${Q}!==${Q}'default')${Q}{${Y}`+jY(Z,J+Z,q)+`${J}}${Y}`},jY=(Z,J,{_:q,cnst:Q,getDirectReturnFunction:Y,n:X})=>{let[z,V]=Y([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${J}${Q} d${q}=${q}Object.getOwnPropertyDescriptor(e,${q}k);${X}${J}Object.defineProperty(n,${q}k,${q}d.get${q}?${q}d${q}:${q}{${X}${J}${Z}enumerable:${q}true,${X}${J}${Z}get:${q}${z}e[k]${V}${X}${J}});${X}`},$B=(Z,J,{_:q,cnst:Q,getDirectReturnFunction:Y,n:X})=>{let[z,V]=Y([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${J}${Q} d${q}=${q}Object.getOwnPropertyDescriptor(e,${q}k);${X}${J}if${q}(d)${q}{${X}${J}${Z}Object.defineProperty(n,${q}k,${q}d.get${q}?${q}d${q}:${q}{${X}${J}${Z}${Z}enumerable:${q}true,${X}${J}${Z}${Z}get:${q}${z}e[k]${V}${X}${J}${Z}});${X}${J}}${X}`},BY=(Z,J,{_:q,n:Q})=>`${J}n[k]${q}=${q}e[k];${Q}`,qZ=(Z,J)=>Z?`Object.freeze(${J})`:J,bQ=(Z,J,{_:q,getObject:Q})=>Z?`Object.defineProperty(${J},${q}Symbol.toStringTag,${q}${G0(Q)})`:J,QZ,MY,GB,HY,FY,LY,wY,n6="ROLLUP_ASSET_URL_",K4="ROLLUP_CHUNK_URL_",q8="ROLLUP_FILE_URL_",OY,UB,jB,i5=(Z,J="URL")=>`new ${J}(${Z}).href`,y9=(Z,J=!1)=>i5(`'${Z}', ${J?"typeof document === 'undefined' ? location.href : ":""}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`),$4=(Z)=>(J,{chunkId:q})=>{let Q=Z(q);return J===null?`({ url: ${Q} })`:J==="url"?Q:"undefined"},E9=(Z,J=!1)=>`${J?"typeof document === 'undefined' ? location.href : ":""}(document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('${Z}', document.baseURI).href)`,BB,kQ,NY,RY,CY,aZ,IY,_Y,DY,TY,AY,PY,sZ,SY,yY,EY,rZ,oZ,g5,tZ,bY,xY,kY,MB,fY,vY,hY,eZ,mY,uY,dY,fQ,K6="_missingExportShim",lY,Q6,G5,X8,x4=()=>{},U0,s1,i1,RB,vQ,DB=(Z)=>Z&&new Map(Array.from(Z,([J,q])=>[J,new Set(q)])),AB=(Z,J,q,{_:Q,getDirectReturnFunction:Y,n:X})=>{if(J){let[z,V]=Y([],{functionReturn:!0,lineBreakIndent:null,name:null});return`Object.defineProperty(exports,${Q}k,${Q}{${X}${q}${q}enumerable:${Q}true,${X}${q}${q}get:${Q}${z}${Z}[k]${V}${X}${q}})`}return`exports[k]${Q}=${Q}${Z}[k]`},SB,L4=(Z,J)=>Z.split(".").map(J).join(""),uB=({dependencies:Z,exports:J})=>{let q=new Set(J.map((Q)=>Q.exported));q.add("default");for(let{reexports:Q}of Z)if(Q){for(let Y of Q)if(Y.reexported!=="*")q.add(Y.reexported)}return q},dB=(Z,J,{_:q,cnst:Q,getObject:Y,n:X})=>Z?`${X}${J}${Q} _starExcludes${q}=${q}${Y([...Z].map((z)=>[z,"1"]),{lineBreakIndent:{base:J,t:J}})};`:"",lB=(Z,J,{_:q,n:Q})=>Z.length?`${Q}${J}var ${Z.join(`,${q}`)};`:"",cB=(Z,J,q)=>J3(Z.filter((Q)=>Q.hoisted).map((Q)=>({name:Q.exported,value:Q.local})),J,q),pB=(Z,J,q)=>J3(Z.filter((Q)=>Q.expression).map((Q)=>({name:Q.exported,value:Q.local})),J,q),iB=(Z,J,q)=>J3(Z.filter((Q)=>Q.local===K6).map((Q)=>({name:Q.exported,value:K6})),J,q),sB,k4=()=>aG("sha256"),tB,JM,qM,QM,q3,eY,GM=(Z)=>{let J=new Set;return new Proxy(Z,{deleteProperty(q,Q){if(typeof Q==="string")J.delete(Q.toLowerCase());return Reflect.deleteProperty(q,Q)},get(q,Q){if(Q===q3)return J;return Reflect.get(q,Q)},set(q,Q,Y){if(typeof Q==="string")J.add(Q.toLowerCase());return Reflect.set(q,Q,Y)}})},uQ,jM,dQ=(Z,J)=>J?`${Z}
|
|
39
|
+
${J}`:Z,lQ=(Z,J)=>J?`${Z}
|
|
40
40
|
|
|
41
|
-
${
|
|
42
|
-
`,Q-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(O5).length;else this.pos=this.lineStart=0,this.curLine=1;if(this.type=O.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=q.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&q.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(j0),this.regexpState=null,this.privateNameStack=[]},h5,J5,WH,Y7=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1},X1,zq,KH,GH,t6=1,zZ=2,Qz=4,P5,D5=function(q,J,Q,Y,z){this.token=q,this.isExpr=!!J,this.preserveSpace=!!Q,this.override=Y,this.generator=!!z},P1,j6,$1,UH,x4,U8,jH=function(q){this.flags=q,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1},z7=function(q,J,Q){if(this.type="",this.start=J,this.end=0,q.options.locations)this.loc=new Q7(q,Q);if(q.options.directSourceFile)this.sourceFile=q.options.directSourceFile;if(q.options.ranges)this.range=[J,0]},I0,Xz="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",Vz,Wz,Kz,BH,HH,mQ="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",Gz="Adlam Adlm 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 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",$z,Uz,jz,MH,FH,Bz,XZ,a6,M4,z1,r5=function(q){this.parser=q,this.validFlags="gim"+(q.options.ecmaVersion>=6?"uy":"")+(q.options.ecmaVersion>=9?"s":"")+(q.options.ecmaVersion>=13?"d":""),this.unicodeProperties=Bz[q.options.ecmaVersion>=13?13:q.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=[]},Xq=function(q){if(this.type=q.type,this.value=q.value,this.start=q.start,this.end=q.end,q.options.locations)this.loc=new Q7(q,q.startLoc,q.endLoc);if(q.options.ranges)this.range=[q.start,q.end]},B1,Rz,IH="8.7.1",Vq="at position ",Wq="at output position ",AH,EH,k9="resolveDependencies",_z,lH,cH,v4="beforeExit",f4,nQ=(Z)=>console.warn(Z.message||Z),rH,oH,tH=(Z)=>Z&&typeof Z==="object"?Z:{},eH=(Z,q,J)=>(Q)=>{if(typeof Q==="string"){let Y=Z[Q];if(Y)return Y;Z1(h1(q,Ez(q),`valid values are ${J}${X8(Object.keys(Z))}. You can also supply an object for more fine-grained control`,Q))}return tH(Q)},yz=(Z,q,J,Q)=>{let Y=Z===null||Z===void 0?void 0:Z.preset;if(Y){let z=q[Y];if(z)return{...z,...Z};else Z1(h1(`${J}.preset`,Ez(J),`valid values are ${X8(Object.keys(q))}`,Y))}return eH(q,J,Q)(Z)},Ez=(Z)=>Z.split(".").join("").toLowerCase(),qM=(Z)=>{let{onwarn:q}=Z;return q?(J)=>{J.toString=()=>{let Q="";if(J.plugin)Q+=`(${J.plugin} plugin) `;if(J.loc)Q+=`${V1(J.loc.file)} (${J.loc.line}:${J.loc.column}) `;return Q+=J.message,Q},q(J,nQ)}:nQ},JM=(Z)=>({allowAwaitOutsideFunction:!0,ecmaVersion:"latest",preserveParens:!1,sourceType:"module",...Z.acorn}),QM=(Z)=>B6(Z.acornInjectPlugins),YM=(Z)=>{var q;return((q=Z.cache)===null||q===void 0?void 0:q.cache)||Z.cache},bz=(Z)=>{if(Z===!0)return()=>!0;if(typeof Z==="function")return(q,...J)=>!q.startsWith("\x00")&&Z(q,...J)||!1;if(Z){let q=new Set,J=[];for(let Q of B6(Z))if(Q instanceof RegExp)J.push(Q);else q.add(Q);return(Q,...Y)=>q.has(Q)||J.some((z)=>z.test(Q))}return()=>!1},zM=(Z,q,J)=>{let Q=Z.inlineDynamicImports;if(Q)K6('The "inlineDynamicImports" option is deprecated. Use the "output.inlineDynamicImports" option instead.',!1,q,J);return Q},XM=(Z)=>{let q=Z.input;return q==null?[]:typeof q==="string"?[q]:q},VM=(Z,q,J)=>{let Q=Z.manualChunks;if(Q)K6('The "manualChunks" option is deprecated. Use the "output.manualChunks" option instead.',!1,q,J);return Q},WM=(Z,q,J)=>{var Q;let Y=Z.maxParallelFileReads;if(typeof Y==="number")K6('The "maxParallelFileReads" option is deprecated. Use the "maxParallelFileOps" option instead.',!1,q,J);let z=(Q=Z.maxParallelFileOps)!==null&&Q!==void 0?Q:Y;if(typeof z==="number"){if(z<=0)return 1/0;return z}return 20},KM=(Z,q)=>{let J=Z.moduleContext;if(typeof J==="function")return(Q)=>{var Y;return(Y=J(Q))!==null&&Y!==void 0?Y:q};if(J){let Q=Object.create(null);for(let[Y,z]of Object.entries(J))Q[$5(Y)]=z;return(Y)=>Q[Y]||q}return()=>q},GM=(Z,q)=>{let J=Z.preserveEntrySignatures;if(J==null)q.add("preserveEntrySignatures");return J!==null&&J!==void 0?J:"strict"},$M=(Z,q,J)=>{let Q=Z.preserveModules;if(Q)K6('The "preserveModules" option is deprecated. Use the "output.preserveModules" option instead.',!1,q,J);return Q},UM=(Z,q,J)=>{let Q=Z.treeshake;if(Q===!1)return!1;let Y=yz(Z.treeshake,rH,"treeshake","false, true, ");if(typeof Y.pureExternalModules<"u")K6(`The "treeshake.pureExternalModules" option is deprecated. The "treeshake.moduleSideEffects" option should be used instead. "treeshake.pureExternalModules: true" is equivalent to "treeshake.moduleSideEffects: 'no-external'"`,!0,q,J);return{annotations:Y.annotations!==!1,correctVarValueBeforeDeclaration:Y.correctVarValueBeforeDeclaration===!0,moduleSideEffects:typeof Q==="object"&&Q.pureExternalModules?aQ(Q.moduleSideEffects,Q.pureExternalModules):aQ(Y.moduleSideEffects,void 0),propertyReadSideEffects:Y.propertyReadSideEffects==="always"?"always":Y.propertyReadSideEffects!==!1,tryCatchDeoptimization:Y.tryCatchDeoptimization!==!1,unknownGlobalSideEffects:Y.unknownGlobalSideEffects!==!1}},aQ=(Z,q)=>{if(typeof Z==="boolean")return()=>Z;if(Z==="no-external")return(Q,Y)=>!Y;if(typeof Z==="function")return(Q,Y)=>!Q.startsWith("\x00")?Z(Q,Y)!==!1:!0;if(Array.isArray(Z)){let Q=new Set(Z);return(Y)=>Q.has(Y)}if(Z)Z1(h1("treeshake.moduleSideEffects","treeshake",'please use one of false, "no-external", a function or an array'));let J=bz(q);return(Q,Y)=>!(Y&&J(Q))},jM,BM,LM=(Z,q,J)=>{let{file:Q}=Z;if(typeof Q==="string"){if(q)return Z1(h1("output.file","outputdir",'you must set "output.dir" instead of "output.file" when using the "output.preserveModules" option'));if(!Array.isArray(J.input))return Z1(h1("output.file","outputdir",'you must set "output.dir" instead of "output.file" when providing named inputs'))}return Q},NM=(Z)=>{let q=Z.format;switch(q){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return q;default:return Z1({message:'You must specify "output.format", which can be one of "amd", "cjs", "system", "es", "iife" or "umd".',url:"https://rollupjs.org/guide/en/#outputformat"})}},wM=(Z,q)=>{var J;let Q=((J=Z.inlineDynamicImports)!==null&&J!==void 0?J:q.inlineDynamicImports)||!1,{input:Y}=q;if(Q&&(Array.isArray(Y)?Y:Object.keys(Y)).length>1)return Z1(h1("output.inlineDynamicImports","outputinlinedynamicimports",'multiple inputs are not supported when "output.inlineDynamicImports" is true'));return Q},OM=(Z,q,J)=>{var Q;let Y=((Q=Z.preserveModules)!==null&&Q!==void 0?Q:J.preserveModules)||!1;if(Y){if(q)return Z1(h1("output.inlineDynamicImports","outputinlinedynamicimports",'this option is not supported for "output.preserveModules"'));if(J.preserveEntrySignatures===!1)return Z1(h1("preserveEntrySignatures","preserveentrysignatures",'setting this option to false is not supported for "output.preserveModules"'))}return Y},RM=(Z,q)=>{let J=Z.preferConst;if(J!=null)U5('The "output.preferConst" option is deprecated. Use the "output.generatedCode.constBindings" option instead.',!1,q);return!!J},CM=(Z)=>{let{preserveModulesRoot:q}=Z;if(q===null||q===void 0)return;return $5(q)},_M=(Z)=>{let q={autoId:!1,basePath:"",define:"define",forceJsExtensionForImports:!1,...Z.amd};if((q.autoId||q.basePath)&&q.id)return Z1(h1("output.amd.id","outputamd",'this option cannot be used together with "output.amd.autoId"/"output.amd.basePath"'));if(q.basePath&&!q.autoId)return Z1(h1("output.amd.basePath","outputamd",'this option only works with "output.amd.autoId"'));let J;if(q.autoId)J={autoId:!0,basePath:q.basePath,define:q.define,forceJsExtensionForImports:q.forceJsExtensionForImports};else J={autoId:!1,define:q.define,forceJsExtensionForImports:q.forceJsExtensionForImports,id:q.id};return J},G4=(Z,q)=>{let J=Z[q];if(typeof J==="function")return J;return()=>J||""},IM=(Z,q)=>{let{dir:J}=Z;if(typeof J==="string"&&typeof q==="string")return Z1(h1("output.dir","outputdir",'you must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks'));return J},DM=(Z,q)=>{let J=Z.dynamicImportFunction;if(J)U5('The "output.dynamicImportFunction" option is deprecated. Use the "renderDynamicImport" plugin hook instead.',!1,q);return J},TM=(Z,q)=>{let J=Z.entryFileNames;if(J==null)q.add("entryFileNames");return J!==null&&J!==void 0?J:"[name].js"},PM=(Z,q)=>{let J=yz(Z.generatedCode,oH,"output.generatedCode","");return{arrowFunctions:J.arrowFunctions===!0,constBindings:J.constBindings===!0||q,objectShorthand:J.objectShorthand===!0,reservedNamesAsProps:J.reservedNamesAsProps===!0,symbols:J.symbols===!0}},SM=(Z,q)=>{if(q)return"";let J=Z.indent;return J===!1?"":J!==null&&J!==void 0?J:!0},sQ,yM=(Z,q)=>{let J=Z.interop,Q=new Set,Y=(z)=>{if(!Q.has(z)){if(Q.add(z),!sQ.has(z))return Z1(h1("output.interop","outputinterop",`use one of ${Array.from(sQ,(X)=>JSON.stringify(X)).join(", ")}`,z));if(typeof z==="boolean")U5({message:`The boolean value "${z}" for the "output.interop" option is deprecated. Use ${z?'"auto"':'"esModule", "default" or "defaultOnly"'} instead.`,url:"https://rollupjs.org/guide/en/#outputinterop"},!1,q)}return z};if(typeof J==="function"){let z=Object.create(null),X=null;return(V)=>V===null?X||Y(X=J(V)):(V in z)?z[V]:Y(z[V]=J(V))}return J===void 0?()=>!0:()=>Y(J)},EM=(Z,q,J,Q)=>{let Y=Z.manualChunks||Q.manualChunks;if(Y){if(q)return Z1(h1("output.manualChunks","outputmanualchunks",'this option is not supported for "output.inlineDynamicImports"'));if(J)return Z1(h1("output.manualChunks","outputmanualchunks",'this option is not supported for "output.preserveModules"'))}return Y||{}},bM=(Z,q,J)=>{var Q;return(Q=Z.minifyInternalExports)!==null&&Q!==void 0?Q:J||q==="es"||q==="system"},xM=(Z,q,J)=>{let Q=Z.namespaceToStringTag;if(Q!=null)return U5('The "output.namespaceToStringTag" option is deprecated. Use the "output.generatedCode.symbols" option instead.',!1,J),Q;return q.symbols||!1},kM=(Z)=>{let{sourcemapBaseUrl:q}=Z;if(q){if(MM(q))return q;return Z1(h1("output.sourcemapBaseUrl","outputsourcemapbaseurl",`must be a valid URL, received ${JSON.stringify(q)}`))}},e6;var kz=AW(()=>{eQ={};for(r8=0;r8<f9.length;r8++)eQ[f9.charCodeAt(r8)]=r8;if(typeof window<"u"&&typeof window.btoa==="function")h9=(Z)=>window.btoa(unescape(encodeURIComponent(Z)));else if(typeof Buffer==="function")h9=(Z)=>Buffer.from(Z,"utf-8").toString("base64");O$=Object.prototype.toString;p8={insertLeft:!1,insertRight:!1,storeName:!1};sJ=Object.prototype.hasOwnProperty;rJ=/[/\\]/;u1=Symbol("Unknown Key"),N4=Symbol("Unknown Non-Accessor Key"),q0=Symbol("Unknown Integer"),G1=[],_1=[u1],R$=[N4],m9=[q0],Z6=Symbol("Entities");r1=new J0;E1=Symbol("Unknown Value"),JY=Symbol("Unknown Truthy Value");Y1=new class extends j5{},BZ={thisArg:null,type:S1},C$=[Y1],HZ={args:C$,thisArg:null,type:v5},u9=[],h4={args:u9,thisArg:null,type:T1,withNew:!1};G8=class G8 extends j5{constructor(Z){super();this.name=Z,this.alwaysRendered=!1,this.initReached=!1,this.isId=!1,this.isReassigned=!1,this.kind=null,this.renderBaseName=null,this.renderName=null}addReference(Z){}getBaseVariableName(){return this.renderBaseName||this.renderName||this.name}getName(Z){let q=this.renderName||this.name;return this.renderBaseName?`${this.renderBaseName}${Z(q)}`:q}hasEffectsOnInteractionAtPath(Z,{type:q},J){return q!==S1||Z.length>0}include(){this.included=!0}markCalledFromTryStatement(){}setRenderNames(Z,q){this.renderBaseName=Z,this.renderName=q}};Q0=class Q0 extends G8{constructor(Z,q){super(q);this.referenced=!1,this.module=Z,this.isNamespace=q==="*"}addReference(Z){if(this.referenced=!0,this.name==="default"||this.name==="*")this.module.suggestName(Z.name)}hasEffectsOnInteractionAtPath(Z,{type:q}){return q!==S1||Z.length>(this.isNamespace?1:0)}include(){if(!this.included)this.included=!0,this.module.used=!0}};n1=Object.freeze(Object.create(null)),s6=Object.freeze({}),i8=Object.freeze([]);T$=/^(?:\/|(?:[A-Za-z]:)?[\\|/])/,A$=/^\.?\.(\/|$)/;P$=/\\/g;S$=/^(\.\.\/)*\.\.$/;(function(Z){Z.ALREADY_CLOSED="ALREADY_CLOSED",Z.ASSET_NOT_FINALISED="ASSET_NOT_FINALISED",Z.ASSET_NOT_FOUND="ASSET_NOT_FOUND",Z.ASSET_SOURCE_ALREADY_SET="ASSET_SOURCE_ALREADY_SET",Z.ASSET_SOURCE_MISSING="ASSET_SOURCE_MISSING",Z.BAD_LOADER="BAD_LOADER",Z.CANNOT_EMIT_FROM_OPTIONS_HOOK="CANNOT_EMIT_FROM_OPTIONS_HOOK",Z.CHUNK_NOT_GENERATED="CHUNK_NOT_GENERATED",Z.CHUNK_INVALID="CHUNK_INVALID",Z.CIRCULAR_REEXPORT="CIRCULAR_REEXPORT",Z.CYCLIC_CROSS_CHUNK_REEXPORT="CYCLIC_CROSS_CHUNK_REEXPORT",Z.DEPRECATED_FEATURE="DEPRECATED_FEATURE",Z.EXTERNAL_SYNTHETIC_EXPORTS="EXTERNAL_SYNTHETIC_EXPORTS",Z.FILE_NAME_CONFLICT="FILE_NAME_CONFLICT",Z.FILE_NOT_FOUND="FILE_NOT_FOUND",Z.INPUT_HOOK_IN_OUTPUT_PLUGIN="INPUT_HOOK_IN_OUTPUT_PLUGIN",Z.INVALID_CHUNK="INVALID_CHUNK",Z.INVALID_EXPORT_OPTION="INVALID_EXPORT_OPTION",Z.INVALID_EXTERNAL_ID="INVALID_EXTERNAL_ID",Z.INVALID_OPTION="INVALID_OPTION",Z.INVALID_PLUGIN_HOOK="INVALID_PLUGIN_HOOK",Z.INVALID_ROLLUP_PHASE="INVALID_ROLLUP_PHASE",Z.MISSING_EXPORT="MISSING_EXPORT",Z.MISSING_IMPLICIT_DEPENDANT="MISSING_IMPLICIT_DEPENDANT",Z.MIXED_EXPORTS="MIXED_EXPORTS",Z.NAMESPACE_CONFLICT="NAMESPACE_CONFLICT",Z.AMBIGUOUS_EXTERNAL_NAMESPACES="AMBIGUOUS_EXTERNAL_NAMESPACES",Z.NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE="NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",Z.PLUGIN_ERROR="PLUGIN_ERROR",Z.PREFER_NAMED_EXPORTS="PREFER_NAMED_EXPORTS",Z.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT="SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT",Z.UNEXPECTED_NAMED_IMPORT="UNEXPECTED_NAMED_IMPORT",Z.UNRESOLVED_ENTRY="UNRESOLVED_ENTRY",Z.UNRESOLVED_IMPORT="UNRESOLVED_IMPORT",Z.VALIDATION_ERROR="VALIDATION_ERROR"})(K1||(K1={}));jU=new Set(["await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","eval","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","NaN","new","null","package","private","protected","public","return","static","super","switch","this","throw","true","try","typeof","undefined","var","void","while","with","yield"]),g4=jU,YY=/[^$_a-zA-Z0-9]/g;XY={exports:{}},m4={},FU=VZ,qQ=`[^${y5}]`,LZ=`(?:${u4}|$)`,WY=`(?:^|${u4})`,NZ=`${p5}{1,2}${LZ}`,OU=`(?!${p5})`,RU=`(?!${WY}${NZ})`,CU=`(?!${p5}{0,1}${LZ})`,_U=`(?!${NZ})`,IU=`[^.${u4}]`,DU=`${VY}*?`,KY={DOT_LITERAL:p5,PLUS_LITERAL:LU,QMARK_LITERAL:NU,SLASH_LITERAL:u4,ONE_CHAR:wU,QMARK:VY,END_ANCHOR:LZ,DOTS_SLASH:NZ,NO_DOT:OU,NO_DOTS:RU,NO_DOT_SLASH:CU,NO_DOTS_SLASH:_U,QMARK_NO_DOT:IU,STAR:DU,START_ANCHOR:WY},TU={...KY,SLASH_LITERAL:`[${y5}]`,QMARK:qQ,STAR:`${qQ}*?`,DOTS_SLASH:`${p5}{1,2}(?:[${y5}]|$)`,NO_DOT:`(?!${p5})`,NO_DOTS:`(?!(?:^|[${y5}])${p5}{1,2}(?:[${y5}]|$))`,NO_DOT_SLASH:`(?!${p5}{0,1}(?:[${y5}]|$))`,NO_DOTS_SLASH:`(?!${p5}{1,2}(?:[${y5}]|$))`,QMARK_NO_DOT:`[^.${y5}]`,START_ANCHOR:`(?:^|[${y5}])`,END_ANCHOR:`(?:[${y5}]|$)`},AU={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},d4={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:AU,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:FU.sep,extglobChars(Z){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${Z.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(Z){return Z===!0?TU:KY}};(function(Z){let q=VZ,J=process.platform==="win32",{REGEX_BACKSLASH:Q,REGEX_REMOVE_BACKSLASH:Y,REGEX_SPECIAL_CHARS:z,REGEX_SPECIAL_CHARS_GLOBAL:X}=d4;Z.isObject=(V)=>V!==null&&typeof V==="object"&&!Array.isArray(V),Z.hasRegexChars=(V)=>z.test(V),Z.isRegexChar=(V)=>V.length===1&&Z.hasRegexChars(V),Z.escapeRegex=(V)=>V.replace(X,"\\$1"),Z.toPosixSlashes=(V)=>V.replace(Q,"/"),Z.removeBackslashes=(V)=>{return V.replace(Y,(W)=>{return W==="\\"?"":W})},Z.supportsLookbehinds=()=>{let V=process.version.slice(1).split(".").map(Number);if(V.length===3&&V[0]>=9||V[0]===8&&V[1]>=10)return!0;return!1},Z.isWindows=(V)=>{if(V&&typeof V.windows==="boolean")return V.windows;return J===!0||q.sep==="\\"},Z.escapeLast=(V,W,K)=>{let G=V.lastIndexOf(W,K);if(G===-1)return V;if(V[G-1]==="\\")return Z.escapeLast(V,W,G-1);return`${V.slice(0,G)}\\${V.slice(G)}`},Z.removePrefix=(V,W={})=>{let K=V;if(K.startsWith("./"))K=K.slice(2),W.prefix="./";return K},Z.wrapOutput=(V,W={},K={})=>{let G=K.contains?"":"^",F=K.contains?"":"$",M=`${G}(?:${V})${F}`;if(W.negated===!0)M=`(?:^(?!${M}).*$)`;return M}})(m4);JQ=m4,{CHAR_ASTERISK:N9,CHAR_AT:PU,CHAR_BACKWARD_SLASH:i6,CHAR_COMMA:SU,CHAR_DOT:w9,CHAR_EXCLAMATION_MARK:O9,CHAR_FORWARD_SLASH:GY,CHAR_LEFT_CURLY_BRACE:R9,CHAR_LEFT_PARENTHESES:C9,CHAR_LEFT_SQUARE_BRACKET:yU,CHAR_PLUS:EU,CHAR_QUESTION_MARK:QQ,CHAR_RIGHT_CURLY_BRACE:bU,CHAR_RIGHT_PARENTHESES:YQ,CHAR_RIGHT_SQUARE_BRACKET:xU}=d4,vU=kU,R4=d4,L5=m4,{MAX_LENGTH:C4,POSIX_REGEX_SOURCE:fU,REGEX_NON_SPECIAL_CHARS:hU,REGEX_SPECIAL_CHARS_BACKREF:gU,REPLACEMENTS:$Y}=R4;wZ.fastpaths=(Z,q)=>{let J={...q},Q=typeof J.maxLength==="number"?Math.min(C4,J.maxLength):C4,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);Z=$Y[Z]||Z;let z=L5.isWindows(q),{DOT_LITERAL:X,SLASH_LITERAL:V,ONE_CHAR:W,DOTS_SLASH:K,NO_DOT:G,NO_DOTS:F,NO_DOTS_SLASH:M,STAR:B,START_ANCHOR:H}=R4.globChars(z),N=J.dot?F:G,C=J.dot?M:G,A=J.capture?"":"?:",S={negated:!1,prefix:""},T=J.bash===!0?".*?":B;if(J.capture)T=`(${T})`;let g=(R)=>{if(R.noglobstar===!0)return T;return`(${A}(?:(?!${H}${R.dot?K:X}).)*?)`},f=(R)=>{switch(R){case"*":return`${N}${W}${T}`;case".*":return`${X}${W}${T}`;case"*.*":return`${N}${T}${X}${W}${T}`;case"*/*":return`${N}${T}${V}${W}${C}${T}`;case"**":return N+g(J);case"**/*":return`(?:${N}${g(J)}${V})?${C}${W}${T}`;case"**/*.*":return`(?:${N}${g(J)}${V})?${C}${T}${X}${W}${T}`;case"**/.*":return`(?:${N}${g(J)}${V})?${X}${W}${T}`;default:{let P=/^(.*?)\.(\w+)$/.exec(R);if(!P)return;let I=f(P[1]);if(!I)return;return I+X+P[2]}}},u=L5.removePrefix(Z,S),E=f(u);if(E&&J.strictSlashes!==!0)E+=`${V}?`;return E};uU=wZ,dU=VZ,lU=vU,l9=uU,OZ=m4,cU=d4;x1.test=(Z,q,J,{glob:Q,posix:Y}={})=>{if(typeof Z!=="string")throw TypeError("Expected input to be a string");if(Z==="")return{isMatch:!1,output:""};let z=J||{},X=z.format||(Y?OZ.toPosixSlashes:null),V=Z===Q,W=V&&X?X(Z):Z;if(V===!1)W=X?X(Z):Z,V=W===Q;if(V===!1||z.capture===!0)if(z.matchBase===!0||z.basename===!0)V=x1.matchBase(Z,q,J,Y);else V=q.exec(W);return{isMatch:Boolean(V),match:V,output:W}};x1.matchBase=(Z,q,J,Q=OZ.isWindows(J))=>{return(q instanceof RegExp?q:x1.makeRe(q,J)).test(dU.basename(Z))};x1.isMatch=(Z,q,J)=>x1(q,J)(Z);x1.parse=(Z,q)=>{if(Array.isArray(Z))return Z.map((J)=>x1.parse(J,q));return l9(Z,{...q,fastpaths:!1})};x1.scan=(Z,q)=>lU(Z,q);x1.compileRe=(Z,q,J=!1,Q=!1)=>{if(J===!0)return Z.output;let Y=q||{},z=Y.contains?"":"^",X=Y.contains?"":"$",V=`${z}(?:${Z.output})${X}`;if(Z&&Z.negated===!0)V=`^(?!${V}).*$`;let W=x1.toRegex(V,q);if(Q===!0)W.state=Z;return W};x1.makeRe=(Z,q={},J=!1,Q=!1)=>{if(!Z||typeof Z!=="string")throw TypeError("Expected a non-empty string");let Y={negated:!1,fastpaths:!0};if(q.fastpaths!==!1&&(Z[0]==="."||Z[0]==="*"))Y.output=l9.fastpaths(Z,q);if(!Y.output)Y=l9(Z,q);return x1.compileRe(Y,q,J,Q)};x1.toRegex=(Z,q)=>{try{let J=q||{};return new RegExp(Z,J.flags||(J.nocase?"i":""))}catch(J){if(q&&q.debug===!0)throw J;return/$^/}};x1.constants=cU;iU=x1;(function(Z){Z.exports=iU})(XY);bC=MU(XY.exports),o8={ArrayPattern(Z,q){for(let J of q.elements)if(J)o8[J.type](Z,J)},AssignmentPattern(Z,q){o8[q.left.type](Z,q.left)},Identifier(Z,q){Z.push(q.name)},MemberExpression(){},ObjectPattern(Z,q){for(let J of q.properties)if(J.type==="RestElement")o8.RestElement(Z,J);else o8[J.value.type](Z,J.value)},RestElement(Z,q){o8[q.argument.type](Z,q.argument)}},rU=new Set(`${aU} ${sU}`.split(" "));rU.add("");H0=new class extends j5{getLiteralValueAtPath(){return}},t8={value:{hasEffectsWhenCalled:null,returns:Y1}},RZ=new class extends j5{getReturnExpressionWhenCalledAtPath(q){if(q.length===1)return F0(p9,q[0]);return Y1}hasEffectsOnInteractionAtPath(q,J,Q){if(J.type===S1)return q.length>1;if(J.type===T1&&q.length===1)return M0(p9,q[0],J,Q);return!0}},T8={value:{hasEffectsWhenCalled:null,returns:RZ}},G6=new class extends j5{getReturnExpressionWhenCalledAtPath(q){if(q.length===1)return F0(i9,q[0]);return Y1}hasEffectsOnInteractionAtPath(q,J,Q){if(J.type===S1)return q.length>1;if(J.type===T1&&q.length===1)return M0(i9,q[0],J,Q);return!0}},e8={value:{hasEffectsWhenCalled:null,returns:G6}},CZ=new class extends j5{getReturnExpressionWhenCalledAtPath(q){if(q.length===1)return F0(z0,q[0]);return Y1}hasEffectsOnInteractionAtPath(q,J,Q){if(J.type===S1)return q.length>1;if(J.type===T1&&q.length===1)return M0(z0,q[0],J,Q);return!0}},j1={value:{hasEffectsWhenCalled:null,returns:CZ}},VQ={value:{hasEffectsWhenCalled({args:Z},q){let J=Z[1];return Z.length<2||typeof J.getLiteralValueAtPath(G1,r1,{deoptimizeCache(){}})==="symbol"&&J.hasEffectsOnInteractionAtPath(G1,h4,q)},returns:CZ}},_Z=p4({hasOwnProperty:T8,isPrototypeOf:T8,propertyIsEnumerable:T8,toLocaleString:j1,toString:j1,valueOf:t8}),p9=p4({valueOf:T8},_Z),i9=p4({toExponential:j1,toFixed:j1,toLocaleString:j1,toPrecision:j1,valueOf:e8},_Z),z0=p4({anchor:j1,at:t8,big:j1,blink:j1,bold:j1,charAt:j1,charCodeAt:e8,codePointAt:t8,concat:j1,endsWith:T8,fixed:j1,fontcolor:j1,fontsize:j1,includes:T8,indexOf:e8,italics:j1,lastIndexOf:e8,link:j1,localeCompare:e8,match:t8,matchAll:t8,normalize:j1,padEnd:j1,padStart:j1,repeat:j1,replace:VQ,replaceAll:VQ,search:e8,slice:j1,small:j1,split:t8,startsWith:T8,strike:j1,sub:j1,substr:j1,substring:j1,sup:j1,toLocaleLowerCase:j1,toLocaleUpperCase:j1,toLowerCase:j1,toString:j1,toUpperCase:j1,trim:j1,trimEnd:j1,trimLeft:j1,trimRight:j1,trimStart:j1,valueOf:j1},_Z);i={};i.Program=i.BlockStatement=i.StaticBlock=function(Z,q,J){for(var Q=0,Y=Z.body;Q<Y.length;Q+=1){var z=Y[Q];J(z,q,"Statement")}};i.Statement=IZ;i.EmptyStatement=E8;i.ExpressionStatement=i.ParenthesizedExpression=i.ChainExpression=function(Z,q,J){return J(Z.expression,q,"Expression")};i.IfStatement=function(Z,q,J){if(J(Z.test,q,"Expression"),J(Z.consequent,q,"Statement"),Z.alternate)J(Z.alternate,q,"Statement")};i.LabeledStatement=function(Z,q,J){return J(Z.body,q,"Statement")};i.BreakStatement=i.ContinueStatement=E8;i.WithStatement=function(Z,q,J){J(Z.object,q,"Expression"),J(Z.body,q,"Statement")};i.SwitchStatement=function(Z,q,J){J(Z.discriminant,q,"Expression");for(var Q=0,Y=Z.cases;Q<Y.length;Q+=1){var z=Y[Q];if(z.test)J(z.test,q,"Expression");for(var X=0,V=z.consequent;X<V.length;X+=1){var W=V[X];J(W,q,"Statement")}}};i.SwitchCase=function(Z,q,J){if(Z.test)J(Z.test,q,"Expression");for(var Q=0,Y=Z.consequent;Q<Y.length;Q+=1){var z=Y[Q];J(z,q,"Statement")}};i.ReturnStatement=i.YieldExpression=i.AwaitExpression=function(Z,q,J){if(Z.argument)J(Z.argument,q,"Expression")};i.ThrowStatement=i.SpreadElement=function(Z,q,J){return J(Z.argument,q,"Expression")};i.TryStatement=function(Z,q,J){if(J(Z.block,q,"Statement"),Z.handler)J(Z.handler,q);if(Z.finalizer)J(Z.finalizer,q,"Statement")};i.CatchClause=function(Z,q,J){if(Z.param)J(Z.param,q,"Pattern");J(Z.body,q,"Statement")};i.WhileStatement=i.DoWhileStatement=function(Z,q,J){J(Z.test,q,"Expression"),J(Z.body,q,"Statement")};i.ForStatement=function(Z,q,J){if(Z.init)J(Z.init,q,"ForInit");if(Z.test)J(Z.test,q,"Expression");if(Z.update)J(Z.update,q,"Expression");J(Z.body,q,"Statement")};i.ForInStatement=i.ForOfStatement=function(Z,q,J){J(Z.left,q,"ForInit"),J(Z.right,q,"Expression"),J(Z.body,q,"Statement")};i.ForInit=function(Z,q,J){if(Z.type==="VariableDeclaration")J(Z,q);else J(Z,q,"Expression")};i.DebuggerStatement=E8;i.FunctionDeclaration=function(Z,q,J){return J(Z,q,"Function")};i.VariableDeclaration=function(Z,q,J){for(var Q=0,Y=Z.declarations;Q<Y.length;Q+=1){var z=Y[Q];J(z,q)}};i.VariableDeclarator=function(Z,q,J){if(J(Z.id,q,"Pattern"),Z.init)J(Z.init,q,"Expression")};i.Function=function(Z,q,J){if(Z.id)J(Z.id,q,"Pattern");for(var Q=0,Y=Z.params;Q<Y.length;Q+=1){var z=Y[Q];J(z,q,"Pattern")}J(Z.body,q,Z.expression?"Expression":"Statement")};i.Pattern=function(Z,q,J){if(Z.type==="Identifier")J(Z,q,"VariablePattern");else if(Z.type==="MemberExpression")J(Z,q,"MemberPattern");else J(Z,q)};i.VariablePattern=E8;i.MemberPattern=IZ;i.RestElement=function(Z,q,J){return J(Z.argument,q,"Pattern")};i.ArrayPattern=function(Z,q,J){for(var Q=0,Y=Z.elements;Q<Y.length;Q+=1){var z=Y[Q];if(z)J(z,q,"Pattern")}};i.ObjectPattern=function(Z,q,J){for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var z=Y[Q];if(z.type==="Property"){if(z.computed)J(z.key,q,"Expression");J(z.value,q,"Pattern")}else if(z.type==="RestElement")J(z.argument,q,"Pattern")}};i.Expression=IZ;i.ThisExpression=i.Super=i.MetaProperty=E8;i.ArrayExpression=function(Z,q,J){for(var Q=0,Y=Z.elements;Q<Y.length;Q+=1){var z=Y[Q];if(z)J(z,q,"Expression")}};i.ObjectExpression=function(Z,q,J){for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var z=Y[Q];J(z,q)}};i.FunctionExpression=i.ArrowFunctionExpression=i.FunctionDeclaration;i.SequenceExpression=function(Z,q,J){for(var Q=0,Y=Z.expressions;Q<Y.length;Q+=1){var z=Y[Q];J(z,q,"Expression")}};i.TemplateLiteral=function(Z,q,J){for(var Q=0,Y=Z.quasis;Q<Y.length;Q+=1){var z=Y[Q];J(z,q)}for(var X=0,V=Z.expressions;X<V.length;X+=1){var W=V[X];J(W,q,"Expression")}};i.TemplateElement=E8;i.UnaryExpression=i.UpdateExpression=function(Z,q,J){J(Z.argument,q,"Expression")};i.BinaryExpression=i.LogicalExpression=function(Z,q,J){J(Z.left,q,"Expression"),J(Z.right,q,"Expression")};i.AssignmentExpression=i.AssignmentPattern=function(Z,q,J){J(Z.left,q,"Pattern"),J(Z.right,q,"Expression")};i.ConditionalExpression=function(Z,q,J){J(Z.test,q,"Expression"),J(Z.consequent,q,"Expression"),J(Z.alternate,q,"Expression")};i.NewExpression=i.CallExpression=function(Z,q,J){if(J(Z.callee,q,"Expression"),Z.arguments)for(var Q=0,Y=Z.arguments;Q<Y.length;Q+=1){var z=Y[Q];J(z,q,"Expression")}};i.MemberExpression=function(Z,q,J){if(J(Z.object,q,"Expression"),Z.computed)J(Z.property,q,"Expression")};i.ExportNamedDeclaration=i.ExportDefaultDeclaration=function(Z,q,J){if(Z.declaration)J(Z.declaration,q,Z.type==="ExportNamedDeclaration"||Z.declaration.id?"Statement":"Expression");if(Z.source)J(Z.source,q,"Expression")};i.ExportAllDeclaration=function(Z,q,J){if(Z.exported)J(Z.exported,q);J(Z.source,q,"Expression")};i.ImportDeclaration=function(Z,q,J){for(var Q=0,Y=Z.specifiers;Q<Y.length;Q+=1){var z=Y[Q];J(z,q)}J(Z.source,q,"Expression")};i.ImportExpression=function(Z,q,J){J(Z.source,q,"Expression")};i.ImportSpecifier=i.ImportDefaultSpecifier=i.ImportNamespaceSpecifier=i.Identifier=i.PrivateIdentifier=i.Literal=E8;i.TaggedTemplateExpression=function(Z,q,J){J(Z.tag,q,"Expression"),J(Z.quasi,q,"Expression")};i.ClassDeclaration=i.ClassExpression=function(Z,q,J){return J(Z,q,"Class")};i.Class=function(Z,q,J){if(Z.id)J(Z.id,q,"Pattern");if(Z.superClass)J(Z.superClass,q,"Expression");J(Z.body,q)};i.ClassBody=function(Z,q,J){for(var Q=0,Y=Z.body;Q<Y.length;Q+=1){var z=Y[Q];J(z,q)}};i.MethodDefinition=i.PropertyDefinition=i.Property=function(Z,q,J){if(Z.computed)J(Z.key,q,"Expression");if(Z.value)J(Z.value,q,"Expression")};DZ+="ppingURL";Kj=new RegExp(`^#${Wj}+${DZ}=.+`);Gj=/[^\s(]/g,_9=/\S/g;Uj=/[@#]__PURE__/;n9={Literal:[],Program:["body"]};t=class t extends j5{constructor(Z,q,J){super();this.deoptimized=!1,this.esTreeNode=Z,this.keys=n9[Z.type]||Bj(Z),this.parent=q,this.context=q.context,this.createScope(J),this.parseNode(Z),this.initialise(),this.context.magicString.addSourcemapLocation(this.start),this.context.magicString.addSourcemapLocation(this.end)}addExportedVariables(Z,q){}bind(){for(let Z of this.keys){let q=this[Z];if(q===null)continue;if(Array.isArray(q))for(let J of q)J===null||J===void 0||J.bind();else q.bind()}}createScope(Z){this.scope=Z}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();for(let q of this.keys){let J=this[q];if(J===null)continue;if(Array.isArray(J)){for(let Q of J)if(Q===null||Q===void 0?void 0:Q.hasEffects(Z))return!0}else if(J.hasEffects(Z))return!0}return!1}hasEffectsAsAssignmentTarget(Z,q){return this.hasEffects(Z)||this.hasEffectsOnInteractionAtPath(G1,this.assignmentInteraction,Z)}include(Z,q,J){if(!this.deoptimized)this.applyDeoptimizations();this.included=!0;for(let Q of this.keys){let Y=this[Q];if(Y===null)continue;if(Array.isArray(Y))for(let z of Y)z===null||z===void 0||z.include(Z,q);else Y.include(Z,q)}}includeAsAssignmentTarget(Z,q,J){this.include(Z,q)}initialise(){}insertSemicolon(Z){if(Z.original[this.end-1]!==";")Z.appendLeft(this.end,";")}parseNode(Z){for(let[q,J]of Object.entries(Z)){if(this.hasOwnProperty(q))continue;if(q.charCodeAt(0)===95){if(q===MY)this.annotations=J;else if(q===FY)for(let{start:Q,end:Y}of J)this.context.magicString.remove(Q,Y)}else if(typeof J!=="object"||J===null)this[q]=J;else if(Array.isArray(J)){this[q]=[];for(let Q of J)this[q].push(Q===null?null:new(this.context.getNodeConstructor(Q.type))(Q,this,this.scope))}else this[q]=new(this.context.getNodeConstructor(J.type))(J,this,this.scope)}}render(Z,q){for(let J of this.keys){let Q=this[J];if(Q===null)continue;if(Array.isArray(Q))for(let Y of Q)Y===null||Y===void 0||Y.render(Z,q);else Q.render(Z,q)}}setAssignedValue(Z){this.assignmentInteraction={args:[Z],thisArg:null,type:v5}}shouldBeIncluded(Z){return this.included||!Z.brokenFlow&&this.hasEffects(c4())}applyDeoptimizations(){this.deoptimized=!0;for(let Z of this.keys){let q=this[Z];if(q===null)continue;if(Array.isArray(q))for(let J of q)J===null||J===void 0||J.deoptimizePath(_1);else q.deoptimizePath(_1)}this.context.requestTreeshakingPass()}};Y6=class Y6 extends t{deoptimizeThisOnInteractionAtPath(Z,q,J){if(q.length>0)this.argument.deoptimizeThisOnInteractionAtPath(Z,[u1,...q],J)}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();let{propertyReadSideEffects:q}=this.context.options.treeshake;return this.argument.hasEffects(Z)||q&&(q==="always"||this.argument.hasEffectsOnInteractionAtPath(_1,BZ,Z))}applyDeoptimizations(){this.deoptimized=!0,this.argument.deoptimizePath([u1,u1]),this.context.requestTreeshakingPass()}};e1=class e1 extends j5{constructor(Z){super();this.description=Z}deoptimizeThisOnInteractionAtPath({type:Z,thisArg:q},J){if(Z===T1&&J.length===0&&this.description.mutatesSelfAsArray)q.deoptimizePath(m9)}getReturnExpressionWhenCalledAtPath(Z,{thisArg:q}){if(Z.length>0)return Y1;return this.description.returnsPrimitive||(this.description.returns==="self"?q||Y1:this.description.returns())}hasEffectsOnInteractionAtPath(Z,q,J){var Q,Y;let{type:z}=q;if(Z.length>(z===S1?1:0))return!0;if(z===T1){if(this.description.mutatesSelfAsArray===!0&&((Q=q.thisArg)===null||Q===void 0?void 0:Q.hasEffectsOnInteractionAtPath(m9,HZ,J)))return!0;if(this.description.callsArgs){for(let X of this.description.callsArgs)if((Y=q.args[X])===null||Y===void 0?void 0:Y.hasEffectsOnInteractionAtPath(G1,h4,J))return!0}}return!1}};U4=[new e1({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:RZ})],r6=[new e1({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:CZ})],WQ=[new e1({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:G6})],wY=[new e1({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Y1})],l6=/^\d+$/;z5=class z5 extends j5{constructor(Z,q,J=!1){super();if(this.prototypeExpression=q,this.immutable=J,this.allProperties=[],this.deoptimizedPaths=Object.create(null),this.expressionsToBeDeoptimizedByKey=Object.create(null),this.gettersByKey=Object.create(null),this.hasLostTrack=!1,this.hasUnknownDeoptimizedInteger=!1,this.hasUnknownDeoptimizedProperty=!1,this.propertiesAndGettersByKey=Object.create(null),this.propertiesAndSettersByKey=Object.create(null),this.settersByKey=Object.create(null),this.thisParametersToBeDeoptimized=new Set,this.unknownIntegerProps=[],this.unmatchableGetters=[],this.unmatchablePropertiesAndGetters=[],this.unmatchableSetters=[],Array.isArray(Z))this.buildPropertyMaps(Z);else{this.propertiesAndGettersByKey=this.propertiesAndSettersByKey=Z;for(let Q of Object.values(Z))this.allProperties.push(...Q)}}deoptimizeAllProperties(Z){var q;let J=this.hasLostTrack||this.hasUnknownDeoptimizedProperty;if(Z)this.hasUnknownDeoptimizedProperty=!0;else this.hasLostTrack=!0;if(J)return;for(let Q of Object.values(this.propertiesAndGettersByKey).concat(Object.values(this.settersByKey)))for(let Y of Q)Y.deoptimizePath(_1);(q=this.prototypeExpression)===null||q===void 0||q.deoptimizePath([u1,u1]),this.deoptimizeCachedEntities()}deoptimizeIntegerProperties(){if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||this.hasUnknownDeoptimizedInteger)return;this.hasUnknownDeoptimizedInteger=!0;for(let[Z,q]of Object.entries(this.propertiesAndGettersByKey))if(l6.test(Z))for(let J of q)J.deoptimizePath(_1);this.deoptimizeCachedIntegerEntities()}deoptimizePath(Z){var q;if(this.hasLostTrack||this.immutable)return;let J=Z[0];if(Z.length===1){if(typeof J!=="string"){if(J===q0)return this.deoptimizeIntegerProperties();return this.deoptimizeAllProperties(J===N4)}if(!this.deoptimizedPaths[J]){this.deoptimizedPaths[J]=!0;let Y=this.expressionsToBeDeoptimizedByKey[J];if(Y)for(let z of Y)z.deoptimizeCache()}}let Q=Z.length===1?_1:Z.slice(1);for(let Y of typeof J==="string"?(this.propertiesAndGettersByKey[J]||this.unmatchablePropertiesAndGetters).concat(this.settersByKey[J]||this.unmatchableSetters):this.allProperties)Y.deoptimizePath(Q);(q=this.prototypeExpression)===null||q===void 0||q.deoptimizePath(Z.length===1?[...Z,u1]:Z)}deoptimizeThisOnInteractionAtPath(Z,q,J){var Q;let[Y,...z]=q;if(this.hasLostTrack||(Z.type===T1||q.length>1)&&(this.hasUnknownDeoptimizedProperty||typeof Y==="string"&&this.deoptimizedPaths[Y])){Z.thisArg.deoptimizePath(_1);return}let[X,V,W]=Z.type===T1||q.length>1?[this.propertiesAndGettersByKey,this.propertiesAndGettersByKey,this.unmatchablePropertiesAndGetters]:Z.type===S1?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(typeof Y==="string"){if(X[Y]){let K=V[Y];if(K)for(let G of K)G.deoptimizeThisOnInteractionAtPath(Z,z,J);if(!this.immutable)this.thisParametersToBeDeoptimized.add(Z.thisArg);return}for(let K of W)K.deoptimizeThisOnInteractionAtPath(Z,z,J);if(l6.test(Y))for(let K of this.unknownIntegerProps)K.deoptimizeThisOnInteractionAtPath(Z,z,J)}else{for(let K of Object.values(V).concat([W]))for(let G of K)G.deoptimizeThisOnInteractionAtPath(Z,z,J);for(let K of this.unknownIntegerProps)K.deoptimizeThisOnInteractionAtPath(Z,z,J)}if(!this.immutable)this.thisParametersToBeDeoptimized.add(Z.thisArg);(Q=this.prototypeExpression)===null||Q===void 0||Q.deoptimizeThisOnInteractionAtPath(Z,q,J)}getLiteralValueAtPath(Z,q,J){if(Z.length===0)return JY;let Q=Z[0],Y=this.getMemberExpressionAndTrackDeopt(Q,J);if(Y)return Y.getLiteralValueAtPath(Z.slice(1),q,J);if(this.prototypeExpression)return this.prototypeExpression.getLiteralValueAtPath(Z,q,J);if(Z.length===1)return;return E1}getReturnExpressionWhenCalledAtPath(Z,q,J,Q){if(Z.length===0)return Y1;let[Y,...z]=Z,X=this.getMemberExpressionAndTrackDeopt(Y,Q);if(X)return X.getReturnExpressionWhenCalledAtPath(z,q,J,Q);if(this.prototypeExpression)return this.prototypeExpression.getReturnExpressionWhenCalledAtPath(Z,q,J,Q);return Y1}hasEffectsOnInteractionAtPath(Z,q,J){let[Q,...Y]=Z;if(Y.length||q.type===T1){let W=this.getMemberExpression(Q);if(W)return W.hasEffectsOnInteractionAtPath(Y,q,J);if(this.prototypeExpression)return this.prototypeExpression.hasEffectsOnInteractionAtPath(Z,q,J);return!0}if(Q===N4)return!1;if(this.hasLostTrack)return!0;let[z,X,V]=q.type===S1?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(typeof Q==="string"){if(z[Q]){let W=X[Q];if(W){for(let K of W)if(K.hasEffectsOnInteractionAtPath(Y,q,J))return!0}return!1}for(let W of V)if(W.hasEffectsOnInteractionAtPath(Y,q,J))return!0}else for(let W of Object.values(X).concat([V]))for(let K of W)if(K.hasEffectsOnInteractionAtPath(Y,q,J))return!0;if(this.prototypeExpression)return this.prototypeExpression.hasEffectsOnInteractionAtPath(Z,q,J);return!1}buildPropertyMaps(Z){let{allProperties:q,propertiesAndGettersByKey:J,propertiesAndSettersByKey:Q,settersByKey:Y,gettersByKey:z,unknownIntegerProps:X,unmatchablePropertiesAndGetters:V,unmatchableGetters:W,unmatchableSetters:K}=this,G=[];for(let F=Z.length-1;F>=0;F--){let{key:M,kind:B,property:H}=Z[F];if(q.push(H),typeof M!=="string"){if(M===q0){X.push(H);continue}if(B==="set")K.push(H);if(B==="get")W.push(H);if(B!=="get")G.push(H);if(B!=="set")V.push(H)}else if(B==="set"){if(!Q[M])Q[M]=[H,...G],Y[M]=[H,...K]}else if(B==="get"){if(!J[M])J[M]=[H,...V],z[M]=[H,...W]}else{if(!Q[M])Q[M]=[H,...G];if(!J[M])J[M]=[H,...V]}}}deoptimizeCachedEntities(){for(let Z of Object.values(this.expressionsToBeDeoptimizedByKey))for(let q of Z)q.deoptimizeCache();for(let Z of this.thisParametersToBeDeoptimized)Z.deoptimizePath(_1)}deoptimizeCachedIntegerEntities(){for(let[Z,q]of Object.entries(this.expressionsToBeDeoptimizedByKey))if(l6.test(Z))for(let J of q)J.deoptimizeCache();for(let Z of this.thisParametersToBeDeoptimized)Z.deoptimizePath(m9)}getMemberExpression(Z){if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||typeof Z!=="string"||this.hasUnknownDeoptimizedInteger&&l6.test(Z)||this.deoptimizedPaths[Z])return Y1;let q=this.propertiesAndGettersByKey[Z];if((q===null||q===void 0?void 0:q.length)===1)return q[0];if(q||this.unmatchablePropertiesAndGetters.length>0||this.unknownIntegerProps.length&&l6.test(Z))return Y1;return null}getMemberExpressionAndTrackDeopt(Z,q){if(typeof Z!=="string")return Y1;let J=this.getMemberExpression(Z);if(!(J===Y1||this.immutable))(this.expressionsToBeDeoptimizedByKey[Z]=this.expressionsToBeDeoptimizedByKey[Z]||[]).push(q);return J}};Hj=new class extends j5{deoptimizeThisOnInteractionAtPath({type:q,thisArg:J},Q){if(q===T1&&Q.length===1&&!KQ(Q[0]))J.deoptimizePath(_1)}getLiteralValueAtPath(q){return q.length===1&&KQ(q[0])?void 0:E1}hasEffectsOnInteractionAtPath(q,{type:J}){return q.length>1||J===T1}},Q8=new z5({__proto__:null,hasOwnProperty:U4,isPrototypeOf:U4,propertyIsEnumerable:U4,toLocaleString:r6,toString:r6,valueOf:wY},Hj,!0),TZ=[{key:q0,kind:"init",property:Y1},{key:"length",kind:"init",property:G6}],GQ=[new e1({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:RZ})],$Q=[new e1({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:G6})],Mj=[new e1({callsArgs:null,mutatesSelfAsArray:!0,returns:()=>new z5(TZ,i4),returnsPrimitive:null})],Q4=[new e1({callsArgs:null,mutatesSelfAsArray:"deopt-only",returns:()=>new z5(TZ,i4),returnsPrimitive:null})],I9=[new e1({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:()=>new z5(TZ,i4),returnsPrimitive:null})],UQ=[new e1({callsArgs:null,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:G6})],jQ=[new e1({callsArgs:null,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:Y1})],BQ=[new e1({callsArgs:null,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Y1})],R8=[new e1({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Y1})],D9=[new e1({callsArgs:null,mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],Fj=[new e1({callsArgs:[0],mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],i4=new z5({__proto__:null,at:BQ,concat:Q4,copyWithin:D9,entries:Q4,every:GQ,fill:D9,filter:I9,find:R8,findIndex:$Q,findLast:R8,findLastIndex:$Q,flat:Q4,flatMap:I9,forEach:R8,group:R8,groupToMap:R8,includes:U4,indexOf:WQ,join:r6,keys:wY,lastIndexOf:WQ,map:I9,pop:jQ,push:UQ,reduce:R8,reduceRight:R8,reverse:D9,shift:jQ,slice:Q4,some:GQ,sort:Fj,splice:Mj,toLocaleString:r6,toString:r6,unshift:UQ,values:BQ},Q8,!0);OY=class OY extends t{constructor(){super(...arguments);this.objectEntity=null}deoptimizePath(Z){this.getObjectEntity().deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,J){this.getObjectEntity().deoptimizeThisOnInteractionAtPath(Z,q,J)}getLiteralValueAtPath(Z,q,J){return this.getObjectEntity().getLiteralValueAtPath(Z,q,J)}getReturnExpressionWhenCalledAtPath(Z,q,J,Q){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(Z,q,J,Q)}hasEffectsOnInteractionAtPath(Z,q,J){return this.getObjectEntity().hasEffectsOnInteractionAtPath(Z,q,J)}applyDeoptimizations(){this.deoptimized=!0;let Z=!1;for(let q=0;q<this.elements.length;q++){let J=this.elements[q];if(J){if(Z||J instanceof Y6)Z=!0,J.deoptimizePath(_1)}}this.context.requestTreeshakingPass()}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let Z=[{key:"length",kind:"init",property:G6}],q=!1;for(let J=0;J<this.elements.length;J++){let Q=this.elements[J];if(q||Q instanceof Y6){if(Q)q=!0,Z.unshift({key:q0,kind:"init",property:Q})}else if(!Q)Z.push({key:String(J),kind:"init",property:H0});else Z.push({key:String(J),kind:"init",property:Q})}return this.objectEntity=new z5(Z,i4)}};RY=class RY extends t{addExportedVariables(Z,q){for(let J of this.elements)J===null||J===void 0||J.addExportedVariables(Z,q)}declare(Z){let q=[];for(let J of this.elements)if(J!==null)q.push(...J.declare(Z,Y1));return q}deoptimizePath(){for(let Z of this.elements)Z===null||Z===void 0||Z.deoptimizePath(G1)}hasEffectsOnInteractionAtPath(Z,q,J){for(let Q of this.elements)if(Q===null||Q===void 0?void 0:Q.hasEffectsOnInteractionAtPath(G1,q,J))return!0;return!1}markDeclarationReached(){for(let Z of this.elements)Z===null||Z===void 0||Z.markDeclarationReached()}};A5=class A5 extends G8{constructor(Z,q,J,Q){super(Z);this.calledFromTryStatement=!1,this.additionalInitializers=null,this.expressionsToBeDeoptimized=[],this.declarations=q?[q]:[],this.init=J,this.deoptimizationTracker=Q.deoptimizationTracker,this.module=Q.module}addDeclaration(Z,q){this.declarations.push(Z);let J=this.markInitializersForDeoptimization();if(q!==null)J.push(q)}consolidateInitializers(){if(this.additionalInitializers!==null){for(let Z of this.additionalInitializers)Z.deoptimizePath(_1);this.additionalInitializers=null}}deoptimizePath(Z){var q,J;if(this.isReassigned||this.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(Z,this))return;if(Z.length===0){if(!this.isReassigned){this.isReassigned=!0;let Q=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[];for(let Y of Q)Y.deoptimizeCache();(q=this.init)===null||q===void 0||q.deoptimizePath(_1)}}else(J=this.init)===null||J===void 0||J.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,J){if(this.isReassigned||!this.init)return Z.thisArg.deoptimizePath(_1);J.withTrackedEntityAtPath(q,this.init,()=>this.init.deoptimizeThisOnInteractionAtPath(Z,q,J),void 0)}getLiteralValueAtPath(Z,q,J){if(this.isReassigned||!this.init)return E1;return q.withTrackedEntityAtPath(Z,this.init,()=>{return this.expressionsToBeDeoptimized.push(J),this.init.getLiteralValueAtPath(Z,q,J)},E1)}getReturnExpressionWhenCalledAtPath(Z,q,J,Q){if(this.isReassigned||!this.init)return Y1;return J.withTrackedEntityAtPath(Z,this.init,()=>{return this.expressionsToBeDeoptimized.push(Q),this.init.getReturnExpressionWhenCalledAtPath(Z,q,J,Q)},Y1)}hasEffectsOnInteractionAtPath(Z,q,J){switch(q.type){case S1:if(this.isReassigned)return!0;return this.init&&!J.accessed.trackEntityAtPathAndGetIfTracked(Z,this)&&this.init.hasEffectsOnInteractionAtPath(Z,q,J);case v5:if(this.included)return!0;if(Z.length===0)return!1;if(this.isReassigned)return!0;return this.init&&!J.assigned.trackEntityAtPathAndGetIfTracked(Z,this)&&this.init.hasEffectsOnInteractionAtPath(Z,q,J);case T1:if(this.isReassigned)return!0;return this.init&&!(q.withNew?J.instantiated:J.called).trackEntityAtPathAndGetIfTracked(Z,q.args,this)&&this.init.hasEffectsOnInteractionAtPath(Z,q,J)}}include(){if(!this.included){this.included=!0;for(let Z of this.declarations){if(!Z.included)Z.include(c9(),!1);let q=Z.parent;while(!q.included){if(q.included=!0,q.type===_4)break;q=q.parent}}}}includeCallArguments(Z,q){if(this.isReassigned||this.init&&Z.includedCallArguments.has(this.init))for(let J of q)J.include(Z,!1);else if(this.init)Z.includedCallArguments.add(this.init),this.init.includeCallArguments(Z,q),Z.includedCallArguments.delete(this.init)}markCalledFromTryStatement(){this.calledFromTryStatement=!0}markInitializersForDeoptimization(){if(this.additionalInitializers===null)this.additionalInitializers=this.init===null?[]:[this.init],this.init=Y1,this.isReassigned=!0;return this.additionalInitializers}};T5=class T5 extends AZ{constructor(Z){super();this.accessedOutsideVariables=new Map,this.parent=Z,Z.children.push(this)}addAccessedDynamicImport(Z){if((this.accessedDynamicImports||(this.accessedDynamicImports=new Set)).add(Z),this.parent instanceof T5)this.parent.addAccessedDynamicImport(Z)}addAccessedGlobals(Z,q){let J=q.get(this)||new Set;for(let Q of Z)J.add(Q);if(q.set(this,J),this.parent instanceof T5)this.parent.addAccessedGlobals(Z,q)}addNamespaceMemberAccess(Z,q){this.accessedOutsideVariables.set(Z,q),this.parent.addNamespaceMemberAccess(Z,q)}addReturnExpression(Z){this.parent instanceof T5&&this.parent.addReturnExpression(Z)}addUsedOutsideNames(Z,q,J,Q){for(let z of this.accessedOutsideVariables.values())if(z.included){if(Z.add(z.getBaseVariableName()),q==="system"&&J.has(z))Z.add("exports")}let Y=Q.get(this);if(Y)for(let z of Y)Z.add(z)}contains(Z){return this.variables.has(Z)||this.parent.contains(Z)}deconflict(Z,q,J){let Q=new Set;if(this.addUsedOutsideNames(Q,Z,q,J),this.accessedDynamicImports){for(let Y of this.accessedDynamicImports)if(Y.inlineNamespace)Q.add(Y.inlineNamespace.getBaseVariableName())}for(let[Y,z]of this.variables)if(z.included||z.alwaysRendered)z.setRenderNames(null,b5(Y,Q));for(let Y of this.children)Y.deconflict(Z,q,J)}findLexicalBoundary(){return this.parent.findLexicalBoundary()}findVariable(Z){let q=this.variables.get(Z)||this.accessedOutsideVariables.get(Z);if(q)return q;let J=this.parent.findVariable(Z);return this.accessedOutsideVariables.set(Z,J),J}};PZ=class PZ extends T5{constructor(Z,q){super(Z);this.parameters=[],this.hasRest=!1,this.context=q,this.hoistedBodyVarScope=new T5(this)}addParameterDeclaration(Z){let q=Z.name,J=this.hoistedBodyVarScope.variables.get(q);if(J)J.addDeclaration(Z,null);else J=new A5(q,Z,Y1,this.context);return this.variables.set(q,J),J}addParameterVariables(Z,q){this.parameters=Z;for(let J of Z)for(let Q of J)Q.alwaysRendered=!0;this.hasRest=q}includeCallArguments(Z,q){let J=!1,Q=!1,Y=this.hasRest&&this.parameters[this.parameters.length-1];for(let z of q)if(z instanceof Y6){for(let X of q)X.include(Z,!1);break}for(let z=q.length-1;z>=0;z--){let X=this.parameters[z]||Y,V=q[z];if(X)if(J=!1,X.length===0)Q=!0;else for(let W of X){if(W.included)Q=!0;if(W.calledFromTryStatement)J=!0}if(!Q&&V.shouldBeIncluded(Z))Q=!0;if(Q)V.include(Z,J)}}};SZ=class SZ extends PZ{constructor(){super(...arguments);this.returnExpression=null,this.returnExpressions=[]}addReturnExpression(Z){this.returnExpressions.push(Z)}getReturnExpression(){if(this.returnExpression===null)this.updateReturnExpression();return this.returnExpression}updateReturnExpression(){if(this.returnExpressions.length===1)this.returnExpression=this.returnExpressions[0];else{this.returnExpression=Y1;for(let Z of this.returnExpressions)Z.deoptimizePath(_1)}}};m1=Symbol("Value Properties"),E5={hasEffectsWhenCalled(){return!1}},C8={hasEffectsWhenCalled(){return!0}},d={__proto__:null,[m1]:C8},n={__proto__:null,[m1]:E5},MQ={__proto__:null,[m1]:{hasEffectsWhenCalled({args:Z},q){return!Z.length||Z[0].hasEffectsOnInteractionAtPath(R$,HZ,q)}}},U={__proto__:null,[m1]:C8,prototype:d},q5={__proto__:null,[m1]:E5,prototype:d},c5={__proto__:null,[m1]:E5,from:n,of:n,prototype:d},a8={__proto__:null,[m1]:E5,supportedLocalesOf:q5},s9={global:d,globalThis:d,self:d,window:d,__proto__:null,[m1]:C8,Array:{__proto__:null,[m1]:C8,from:d,isArray:n,of:n,prototype:d},ArrayBuffer:{__proto__:null,[m1]:E5,isView:n,prototype:d},Atomics:d,BigInt:U,BigInt64Array:U,BigUint64Array:U,Boolean:q5,constructor:U,DataView:q5,Date:{__proto__:null,[m1]:E5,now:n,parse:n,prototype:d,UTC:n},decodeURI:n,decodeURIComponent:n,encodeURI:n,encodeURIComponent:n,Error:q5,escape:n,eval:d,EvalError:q5,Float32Array:c5,Float64Array:c5,Function:U,hasOwnProperty:d,Infinity:d,Int16Array:c5,Int32Array:c5,Int8Array:c5,isFinite:n,isNaN:n,isPrototypeOf:d,JSON:d,Map:q5,Math:{__proto__:null,[m1]:C8,abs:n,acos:n,acosh:n,asin:n,asinh:n,atan:n,atan2:n,atanh:n,cbrt:n,ceil:n,clz32:n,cos:n,cosh:n,exp:n,expm1:n,floor:n,fround:n,hypot:n,imul:n,log:n,log10:n,log1p:n,log2:n,max:n,min:n,pow:n,random:n,round:n,sign:n,sin:n,sinh:n,sqrt:n,tan:n,tanh:n,trunc:n},NaN:d,Number:{__proto__:null,[m1]:E5,isFinite:n,isInteger:n,isNaN:n,isSafeInteger:n,parseFloat:n,parseInt:n,prototype:d},Object:{__proto__:null,[m1]:E5,create:n,defineProperty:MQ,defineProperties:MQ,getOwnPropertyDescriptor:n,getOwnPropertyNames:n,getOwnPropertySymbols:n,getPrototypeOf:n,hasOwn:n,is:n,isExtensible:n,isFrozen:n,isSealed:n,keys:n,fromEntries:n,entries:n,prototype:d},parseFloat:n,parseInt:n,Promise:{__proto__:null,[m1]:C8,all:d,prototype:d,race:d,reject:d,resolve:d},propertyIsEnumerable:d,Proxy:d,RangeError:q5,ReferenceError:q5,Reflect:d,RegExp:q5,Set:q5,SharedArrayBuffer:U,String:{__proto__:null,[m1]:E5,fromCharCode:n,fromCodePoint:n,prototype:d,raw:n},Symbol:{__proto__:null,[m1]:E5,for:n,keyFor:n,prototype:d},SyntaxError:q5,toLocaleString:d,toString:d,TypeError:q5,Uint16Array:c5,Uint32Array:c5,Uint8Array:c5,Uint8ClampedArray:c5,unescape:n,URIError:q5,valueOf:d,WeakMap:q5,WeakSet:q5,clearInterval:U,clearTimeout:U,console:d,Intl:{__proto__:null,[m1]:C8,Collator:a8,DateTimeFormat:a8,ListFormat:a8,NumberFormat:a8,PluralRules:a8,RelativeTimeFormat:a8},setInterval:U,setTimeout:U,TextDecoder:U,TextEncoder:U,URL:U,URLSearchParams:U,AbortController:U,AbortSignal:U,addEventListener:d,alert:d,AnalyserNode:U,Animation:U,AnimationEvent:U,applicationCache:d,ApplicationCache:U,ApplicationCacheErrorEvent:U,atob:d,Attr:U,Audio:U,AudioBuffer:U,AudioBufferSourceNode:U,AudioContext:U,AudioDestinationNode:U,AudioListener:U,AudioNode:U,AudioParam:U,AudioProcessingEvent:U,AudioScheduledSourceNode:U,AudioWorkletNode:U,BarProp:U,BaseAudioContext:U,BatteryManager:U,BeforeUnloadEvent:U,BiquadFilterNode:U,Blob:U,BlobEvent:U,blur:d,BroadcastChannel:U,btoa:d,ByteLengthQueuingStrategy:U,Cache:U,caches:d,CacheStorage:U,cancelAnimationFrame:d,cancelIdleCallback:d,CanvasCaptureMediaStreamTrack:U,CanvasGradient:U,CanvasPattern:U,CanvasRenderingContext2D:U,ChannelMergerNode:U,ChannelSplitterNode:U,CharacterData:U,clientInformation:d,ClipboardEvent:U,close:d,closed:d,CloseEvent:U,Comment:U,CompositionEvent:U,confirm:d,ConstantSourceNode:U,ConvolverNode:U,CountQueuingStrategy:U,createImageBitmap:d,Credential:U,CredentialsContainer:U,crypto:d,Crypto:U,CryptoKey:U,CSS:U,CSSConditionRule:U,CSSFontFaceRule:U,CSSGroupingRule:U,CSSImportRule:U,CSSKeyframeRule:U,CSSKeyframesRule:U,CSSMediaRule:U,CSSNamespaceRule:U,CSSPageRule:U,CSSRule:U,CSSRuleList:U,CSSStyleDeclaration:U,CSSStyleRule:U,CSSStyleSheet:U,CSSSupportsRule:U,CustomElementRegistry:U,customElements:d,CustomEvent:U,DataTransfer:U,DataTransferItem:U,DataTransferItemList:U,defaultstatus:d,defaultStatus:d,DelayNode:U,DeviceMotionEvent:U,DeviceOrientationEvent:U,devicePixelRatio:d,dispatchEvent:d,document:d,Document:U,DocumentFragment:U,DocumentType:U,DOMError:U,DOMException:U,DOMImplementation:U,DOMMatrix:U,DOMMatrixReadOnly:U,DOMParser:U,DOMPoint:U,DOMPointReadOnly:U,DOMQuad:U,DOMRect:U,DOMRectReadOnly:U,DOMStringList:U,DOMStringMap:U,DOMTokenList:U,DragEvent:U,DynamicsCompressorNode:U,Element:U,ErrorEvent:U,Event:U,EventSource:U,EventTarget:U,external:d,fetch:d,File:U,FileList:U,FileReader:U,find:d,focus:d,FocusEvent:U,FontFace:U,FontFaceSetLoadEvent:U,FormData:U,frames:d,GainNode:U,Gamepad:U,GamepadButton:U,GamepadEvent:U,getComputedStyle:d,getSelection:d,HashChangeEvent:U,Headers:U,history:d,History:U,HTMLAllCollection:U,HTMLAnchorElement:U,HTMLAreaElement:U,HTMLAudioElement:U,HTMLBaseElement:U,HTMLBodyElement:U,HTMLBRElement:U,HTMLButtonElement:U,HTMLCanvasElement:U,HTMLCollection:U,HTMLContentElement:U,HTMLDataElement:U,HTMLDataListElement:U,HTMLDetailsElement:U,HTMLDialogElement:U,HTMLDirectoryElement:U,HTMLDivElement:U,HTMLDListElement:U,HTMLDocument:U,HTMLElement:U,HTMLEmbedElement:U,HTMLFieldSetElement:U,HTMLFontElement:U,HTMLFormControlsCollection:U,HTMLFormElement:U,HTMLFrameElement:U,HTMLFrameSetElement:U,HTMLHeadElement:U,HTMLHeadingElement:U,HTMLHRElement:U,HTMLHtmlElement:U,HTMLIFrameElement:U,HTMLImageElement:U,HTMLInputElement:U,HTMLLabelElement:U,HTMLLegendElement:U,HTMLLIElement:U,HTMLLinkElement:U,HTMLMapElement:U,HTMLMarqueeElement:U,HTMLMediaElement:U,HTMLMenuElement:U,HTMLMetaElement:U,HTMLMeterElement:U,HTMLModElement:U,HTMLObjectElement:U,HTMLOListElement:U,HTMLOptGroupElement:U,HTMLOptionElement:U,HTMLOptionsCollection:U,HTMLOutputElement:U,HTMLParagraphElement:U,HTMLParamElement:U,HTMLPictureElement:U,HTMLPreElement:U,HTMLProgressElement:U,HTMLQuoteElement:U,HTMLScriptElement:U,HTMLSelectElement:U,HTMLShadowElement:U,HTMLSlotElement:U,HTMLSourceElement:U,HTMLSpanElement:U,HTMLStyleElement:U,HTMLTableCaptionElement:U,HTMLTableCellElement:U,HTMLTableColElement:U,HTMLTableElement:U,HTMLTableRowElement:U,HTMLTableSectionElement:U,HTMLTemplateElement:U,HTMLTextAreaElement:U,HTMLTimeElement:U,HTMLTitleElement:U,HTMLTrackElement:U,HTMLUListElement:U,HTMLUnknownElement:U,HTMLVideoElement:U,IDBCursor:U,IDBCursorWithValue:U,IDBDatabase:U,IDBFactory:U,IDBIndex:U,IDBKeyRange:U,IDBObjectStore:U,IDBOpenDBRequest:U,IDBRequest:U,IDBTransaction:U,IDBVersionChangeEvent:U,IdleDeadline:U,IIRFilterNode:U,Image:U,ImageBitmap:U,ImageBitmapRenderingContext:U,ImageCapture:U,ImageData:U,indexedDB:d,innerHeight:d,innerWidth:d,InputEvent:U,IntersectionObserver:U,IntersectionObserverEntry:U,isSecureContext:d,KeyboardEvent:U,KeyframeEffect:U,length:d,localStorage:d,location:d,Location:U,locationbar:d,matchMedia:d,MediaDeviceInfo:U,MediaDevices:U,MediaElementAudioSourceNode:U,MediaEncryptedEvent:U,MediaError:U,MediaKeyMessageEvent:U,MediaKeySession:U,MediaKeyStatusMap:U,MediaKeySystemAccess:U,MediaList:U,MediaQueryList:U,MediaQueryListEvent:U,MediaRecorder:U,MediaSettingsRange:U,MediaSource:U,MediaStream:U,MediaStreamAudioDestinationNode:U,MediaStreamAudioSourceNode:U,MediaStreamEvent:U,MediaStreamTrack:U,MediaStreamTrackEvent:U,menubar:d,MessageChannel:U,MessageEvent:U,MessagePort:U,MIDIAccess:U,MIDIConnectionEvent:U,MIDIInput:U,MIDIInputMap:U,MIDIMessageEvent:U,MIDIOutput:U,MIDIOutputMap:U,MIDIPort:U,MimeType:U,MimeTypeArray:U,MouseEvent:U,moveBy:d,moveTo:d,MutationEvent:U,MutationObserver:U,MutationRecord:U,name:d,NamedNodeMap:U,NavigationPreloadManager:U,navigator:d,Navigator:U,NetworkInformation:U,Node:U,NodeFilter:d,NodeIterator:U,NodeList:U,Notification:U,OfflineAudioCompletionEvent:U,OfflineAudioContext:U,offscreenBuffering:d,OffscreenCanvas:U,open:d,openDatabase:d,Option:U,origin:d,OscillatorNode:U,outerHeight:d,outerWidth:d,PageTransitionEvent:U,pageXOffset:d,pageYOffset:d,PannerNode:U,parent:d,Path2D:U,PaymentAddress:U,PaymentRequest:U,PaymentRequestUpdateEvent:U,PaymentResponse:U,performance:d,Performance:U,PerformanceEntry:U,PerformanceLongTaskTiming:U,PerformanceMark:U,PerformanceMeasure:U,PerformanceNavigation:U,PerformanceNavigationTiming:U,PerformanceObserver:U,PerformanceObserverEntryList:U,PerformancePaintTiming:U,PerformanceResourceTiming:U,PerformanceTiming:U,PeriodicWave:U,Permissions:U,PermissionStatus:U,personalbar:d,PhotoCapabilities:U,Plugin:U,PluginArray:U,PointerEvent:U,PopStateEvent:U,postMessage:d,Presentation:U,PresentationAvailability:U,PresentationConnection:U,PresentationConnectionAvailableEvent:U,PresentationConnectionCloseEvent:U,PresentationConnectionList:U,PresentationReceiver:U,PresentationRequest:U,print:d,ProcessingInstruction:U,ProgressEvent:U,PromiseRejectionEvent:U,prompt:d,PushManager:U,PushSubscription:U,PushSubscriptionOptions:U,queueMicrotask:d,RadioNodeList:U,Range:U,ReadableStream:U,RemotePlayback:U,removeEventListener:d,Request:U,requestAnimationFrame:d,requestIdleCallback:d,resizeBy:d,ResizeObserver:U,ResizeObserverEntry:U,resizeTo:d,Response:U,RTCCertificate:U,RTCDataChannel:U,RTCDataChannelEvent:U,RTCDtlsTransport:U,RTCIceCandidate:U,RTCIceTransport:U,RTCPeerConnection:U,RTCPeerConnectionIceEvent:U,RTCRtpReceiver:U,RTCRtpSender:U,RTCSctpTransport:U,RTCSessionDescription:U,RTCStatsReport:U,RTCTrackEvent:U,screen:d,Screen:U,screenLeft:d,ScreenOrientation:U,screenTop:d,screenX:d,screenY:d,ScriptProcessorNode:U,scroll:d,scrollbars:d,scrollBy:d,scrollTo:d,scrollX:d,scrollY:d,SecurityPolicyViolationEvent:U,Selection:U,ServiceWorker:U,ServiceWorkerContainer:U,ServiceWorkerRegistration:U,sessionStorage:d,ShadowRoot:U,SharedWorker:U,SourceBuffer:U,SourceBufferList:U,speechSynthesis:d,SpeechSynthesisEvent:U,SpeechSynthesisUtterance:U,StaticRange:U,status:d,statusbar:d,StereoPannerNode:U,stop:d,Storage:U,StorageEvent:U,StorageManager:U,styleMedia:d,StyleSheet:U,StyleSheetList:U,SubtleCrypto:U,SVGAElement:U,SVGAngle:U,SVGAnimatedAngle:U,SVGAnimatedBoolean:U,SVGAnimatedEnumeration:U,SVGAnimatedInteger:U,SVGAnimatedLength:U,SVGAnimatedLengthList:U,SVGAnimatedNumber:U,SVGAnimatedNumberList:U,SVGAnimatedPreserveAspectRatio:U,SVGAnimatedRect:U,SVGAnimatedString:U,SVGAnimatedTransformList:U,SVGAnimateElement:U,SVGAnimateMotionElement:U,SVGAnimateTransformElement:U,SVGAnimationElement:U,SVGCircleElement:U,SVGClipPathElement:U,SVGComponentTransferFunctionElement:U,SVGDefsElement:U,SVGDescElement:U,SVGDiscardElement:U,SVGElement:U,SVGEllipseElement:U,SVGFEBlendElement:U,SVGFEColorMatrixElement:U,SVGFEComponentTransferElement:U,SVGFECompositeElement:U,SVGFEConvolveMatrixElement:U,SVGFEDiffuseLightingElement:U,SVGFEDisplacementMapElement:U,SVGFEDistantLightElement:U,SVGFEDropShadowElement:U,SVGFEFloodElement:U,SVGFEFuncAElement:U,SVGFEFuncBElement:U,SVGFEFuncGElement:U,SVGFEFuncRElement:U,SVGFEGaussianBlurElement:U,SVGFEImageElement:U,SVGFEMergeElement:U,SVGFEMergeNodeElement:U,SVGFEMorphologyElement:U,SVGFEOffsetElement:U,SVGFEPointLightElement:U,SVGFESpecularLightingElement:U,SVGFESpotLightElement:U,SVGFETileElement:U,SVGFETurbulenceElement:U,SVGFilterElement:U,SVGForeignObjectElement:U,SVGGElement:U,SVGGeometryElement:U,SVGGradientElement:U,SVGGraphicsElement:U,SVGImageElement:U,SVGLength:U,SVGLengthList:U,SVGLinearGradientElement:U,SVGLineElement:U,SVGMarkerElement:U,SVGMaskElement:U,SVGMatrix:U,SVGMetadataElement:U,SVGMPathElement:U,SVGNumber:U,SVGNumberList:U,SVGPathElement:U,SVGPatternElement:U,SVGPoint:U,SVGPointList:U,SVGPolygonElement:U,SVGPolylineElement:U,SVGPreserveAspectRatio:U,SVGRadialGradientElement:U,SVGRect:U,SVGRectElement:U,SVGScriptElement:U,SVGSetElement:U,SVGStopElement:U,SVGStringList:U,SVGStyleElement:U,SVGSVGElement:U,SVGSwitchElement:U,SVGSymbolElement:U,SVGTextContentElement:U,SVGTextElement:U,SVGTextPathElement:U,SVGTextPositioningElement:U,SVGTitleElement:U,SVGTransform:U,SVGTransformList:U,SVGTSpanElement:U,SVGUnitTypes:U,SVGUseElement:U,SVGViewElement:U,TaskAttributionTiming:U,Text:U,TextEvent:U,TextMetrics:U,TextTrack:U,TextTrackCue:U,TextTrackCueList:U,TextTrackList:U,TimeRanges:U,toolbar:d,top:d,Touch:U,TouchEvent:U,TouchList:U,TrackEvent:U,TransitionEvent:U,TreeWalker:U,UIEvent:U,ValidityState:U,visualViewport:d,VisualViewport:U,VTTCue:U,WaveShaperNode:U,WebAssembly:d,WebGL2RenderingContext:U,WebGLActiveInfo:U,WebGLBuffer:U,WebGLContextEvent:U,WebGLFramebuffer:U,WebGLProgram:U,WebGLQuery:U,WebGLRenderbuffer:U,WebGLRenderingContext:U,WebGLSampler:U,WebGLShader:U,WebGLShaderPrecisionFormat:U,WebGLSync:U,WebGLTexture:U,WebGLTransformFeedback:U,WebGLUniformLocation:U,WebGLVertexArrayObject:U,WebSocket:U,WheelEvent:U,Window:U,Worker:U,WritableStream:U,XMLDocument:U,XMLHttpRequest:U,XMLHttpRequestEventTarget:U,XMLHttpRequestUpload:U,XMLSerializer:U,XPathEvaluator:U,XPathExpression:U,XPathResult:U,XSLTProcessor:U};for(let Z of["window","global","self","globalThis"])s9[Z]=s9;n4=class n4 extends G8{constructor(){super(...arguments);this.isReassigned=!0}getLiteralValueAtPath(Z,q,J){return Y4([this.name,...Z])?JY:E1}hasEffectsOnInteractionAtPath(Z,q,J){switch(q.type){case S1:if(Z.length===0)return this.name!=="undefined"&&!Y4([this.name]);return!Y4([this.name,...Z].slice(0,-1));case v5:return!0;case T1:{let Q=Y4([this.name,...Z]);return!Q||Q.hasEffectsWhenCalled(q,J)}}}};Nj={__proto__:null,class:!0,const:!0,let:!0,var:!0};d1=class d1 extends t{constructor(){super(...arguments);this.variable=null,this.isTDZAccess=null}addExportedVariables(Z,q){if(q.has(this.variable))Z.push(this.variable)}bind(){if(!this.variable&&CY(this,this.parent))this.variable=this.scope.findVariable(this.name),this.variable.addReference(this)}declare(Z,q){let J,{treeshake:Q}=this.context.options;switch(Z){case"var":if(J=this.scope.addDeclaration(this,this.context,q,!0),Q&&Q.correctVarValueBeforeDeclaration)J.markInitializersForDeoptimization();break;case"function":J=this.scope.addDeclaration(this,this.context,q,!1);break;case"let":case"const":case"class":J=this.scope.addDeclaration(this,this.context,q,!1);break;case"parameter":J=this.scope.addParameterDeclaration(this);break;default:throw Error(`Internal Error: Unexpected identifier kind ${Z}.`)}return J.kind=Z,[this.variable=J]}deoptimizePath(Z){var q;if(Z.length===0&&!this.scope.contains(this.name))this.disallowImportReassignment();(q=this.variable)===null||q===void 0||q.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,J){this.variable.deoptimizeThisOnInteractionAtPath(Z,q,J)}getLiteralValueAtPath(Z,q,J){return this.getVariableRespectingTDZ().getLiteralValueAtPath(Z,q,J)}getReturnExpressionWhenCalledAtPath(Z,q,J,Q){return this.getVariableRespectingTDZ().getReturnExpressionWhenCalledAtPath(Z,q,J,Q)}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();if(this.isPossibleTDZ()&&this.variable.kind!=="var")return!0;return this.context.options.treeshake.unknownGlobalSideEffects&&this.variable instanceof n4&&this.variable.hasEffectsOnInteractionAtPath(G1,BZ,Z)}hasEffectsOnInteractionAtPath(Z,q,J){switch(q.type){case S1:return this.variable!==null&&this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(Z,q,J);case v5:return(Z.length>0?this.getVariableRespectingTDZ():this.variable).hasEffectsOnInteractionAtPath(Z,q,J);case T1:return this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(Z,q,J)}}include(){if(!this.deoptimized)this.applyDeoptimizations();if(!this.included){if(this.included=!0,this.variable!==null)this.context.includeVariableInModule(this.variable)}}includeCallArguments(Z,q){this.variable.includeCallArguments(Z,q)}isPossibleTDZ(){if(this.isTDZAccess!==null)return this.isTDZAccess;if(!(this.variable instanceof A5)||!this.variable.kind||!(this.variable.kind in Nj))return this.isTDZAccess=!1;let Z;if(this.variable.declarations&&this.variable.declarations.length===1&&(Z=this.variable.declarations[0])&&this.start<Z.start&&FQ(this)===FQ(Z))return this.isTDZAccess=!0;if(!this.variable.initReached)return this.isTDZAccess=!0;return this.isTDZAccess=!1}markDeclarationReached(){this.variable.initReached=!0}render(Z,{snippets:{getPropertyAccess:q}},{renderedParentType:J,isCalleeOfRenderedParent:Q,isShorthandProperty:Y}=n1){if(this.variable){let z=this.variable.getName(q);if(z!==this.name){if(Z.overwrite(this.start,this.end,z,{contentOnly:!0,storeName:!0}),Y)Z.prependRight(this.start,`${this.name}: `)}if(z==="eval"&&J===BY&&Q)Z.appendRight(this.start,"0, ")}}applyDeoptimizations(){if(this.deoptimized=!0,this.variable instanceof A5)this.variable.consolidateInitializers(),this.context.requestTreeshakingPass()}disallowImportReassignment(){return this.context.error({code:"ILLEGAL_REASSIGNMENT",message:`Illegal reassignment to import '${this.name}'`},this.start)}getVariableRespectingTDZ(){if(this.isPossibleTDZ())return Y1;return this.variable}};A8={isNoStatement:!0};LQ=/\S/g;$8=class $8 extends T5{addDeclaration(Z,q,J,Q){if(Q){let Y=this.parent.addDeclaration(Z,q,J,Q);return Y.markInitializersForDeoptimization(),Y}else return super.addDeclaration(Z,q,J,!1)}};N0=class N0 extends t{initialise(){if(this.directive&&this.directive!=="use strict"&&this.parent.type===_4)this.context.warn({code:"MODULE_LEVEL_DIRECTIVE",message:`Module level directives cause errors when bundled, '${this.directive}' was ignored.`},this.start)}render(Z,q){if(super.render(Z,q),this.included)this.insertSemicolon(Z)}shouldBeIncluded(Z){if(this.directive&&this.directive!=="use strict")return this.parent.type!==_4;return super.shouldBeIncluded(Z)}applyDeoptimizations(){}};X0=class X0 extends t{constructor(){super(...arguments);this.directlyIncluded=!1}addImplicitReturnExpressionToScope(){let Z=this.body[this.body.length-1];if(!Z||Z.type!==Xj)this.scope.addReturnExpression(Y1)}createScope(Z){this.scope=this.parent.preventChildBlockScope?Z:new $8(Z)}hasEffects(Z){if(this.deoptimizeBody)return!0;for(let q of this.body){if(Z.brokenFlow)break;if(q.hasEffects(Z))return!0}return!1}include(Z,q){if(!(this.deoptimizeBody&&this.directlyIncluded)){if(this.included=!0,this.directlyIncluded=!0,this.deoptimizeBody)q=!0;for(let J of this.body)if(q||J.shouldBeIncluded(Z))J.include(Z,q)}}initialise(){let Z=this.body[0];this.deoptimizeBody=Z instanceof N0&&Z.directive==="use asm"}render(Z,q){if(this.body.length)L0(this.body,Z,this.start+1,this.end-1,q);else super.render(Z,q)}};EZ=class EZ extends t{constructor(){super(...arguments);this.declarationInit=null}addExportedVariables(Z,q){this.argument.addExportedVariables(Z,q)}declare(Z,q){return this.declarationInit=q,this.argument.declare(Z,Y1)}deoptimizePath(Z){Z.length===0&&this.argument.deoptimizePath(G1)}hasEffectsOnInteractionAtPath(Z,q,J){return Z.length>0||this.argument.hasEffectsOnInteractionAtPath(G1,q,J)}markDeclarationReached(){this.argument.markDeclarationReached()}applyDeoptimizations(){if(this.deoptimized=!0,this.declarationInit!==null)this.declarationInit.deoptimizePath([u1,u1]),this.context.requestTreeshakingPass()}};s4=class s4 extends t{constructor(){super(...arguments);this.objectEntity=null,this.deoptimizedReturn=!1}deoptimizePath(Z){if(this.getObjectEntity().deoptimizePath(Z),Z.length===1&&Z[0]===u1)this.scope.getReturnExpression().deoptimizePath(_1)}deoptimizeThisOnInteractionAtPath(Z,q,J){if(q.length>0)this.getObjectEntity().deoptimizeThisOnInteractionAtPath(Z,q,J)}getLiteralValueAtPath(Z,q,J){return this.getObjectEntity().getLiteralValueAtPath(Z,q,J)}getReturnExpressionWhenCalledAtPath(Z,q,J,Q){if(Z.length>0)return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(Z,q,J,Q);if(this.async){if(!this.deoptimizedReturn)this.deoptimizedReturn=!0,this.scope.getReturnExpression().deoptimizePath(_1),this.context.requestTreeshakingPass();return Y1}return this.scope.getReturnExpression()}hasEffectsOnInteractionAtPath(Z,q,J){if(Z.length>0||q.type!==T1)return this.getObjectEntity().hasEffectsOnInteractionAtPath(Z,q,J);if(this.async){let{propertyReadSideEffects:Q}=this.context.options.treeshake,Y=this.scope.getReturnExpression();if(Y.hasEffectsOnInteractionAtPath(["then"],h4,J)||Q&&(Q==="always"||Y.hasEffectsOnInteractionAtPath(["then"],BZ,J)))return!0}for(let Q of this.params)if(Q.hasEffects(J))return!0;return!1}include(Z,q){if(!this.deoptimized)this.applyDeoptimizations();this.included=!0;let{brokenFlow:J}=Z;Z.brokenFlow=l4,this.body.include(Z,q),Z.brokenFlow=J}includeCallArguments(Z,q){this.scope.includeCallArguments(Z,q)}initialise(){if(this.scope.addParameterVariables(this.params.map((Z)=>Z.declare("parameter",Y1)),this.params[this.params.length-1]instanceof EZ),this.body instanceof X0)this.body.addImplicitReturnExpressionToScope();else this.scope.addReturnExpression(this.body)}parseNode(Z){if(Z.body.type===jY)this.body=new X0(Z.body,this,this.scope.hoistedBodyVarScope);super.parseNode(Z)}applyDeoptimizations(){}};s4.prototype.preventChildBlockScope=!0;bZ=class bZ extends s4{constructor(){super(...arguments);this.objectEntity=null}createScope(Z){this.scope=new SZ(Z,this.context)}hasEffects(){if(!this.deoptimized)this.applyDeoptimizations();return!1}hasEffectsOnInteractionAtPath(Z,q,J){if(super.hasEffectsOnInteractionAtPath(Z,q,J))return!0;if(q.type===T1){let{ignore:Q,brokenFlow:Y}=J;if(J.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0},this.body.hasEffects(J))return!0;J.ignore=Q,J.brokenFlow=Y}return!1}include(Z,q){super.include(Z,q);for(let J of this.params)if(!(J instanceof d1))J.include(Z,q)}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;return this.objectEntity=new z5([],Q8)}};kZ=class kZ extends t{addExportedVariables(Z,q){for(let J of this.properties)if(J.type===zj)J.value.addExportedVariables(Z,q);else J.argument.addExportedVariables(Z,q)}declare(Z,q){let J=[];for(let Q of this.properties)J.push(...Q.declare(Z,q));return J}deoptimizePath(Z){if(Z.length===0)for(let q of this.properties)q.deoptimizePath(Z)}hasEffectsOnInteractionAtPath(Z,q,J){for(let Q of this.properties)if(Q.hasEffectsOnInteractionAtPath(G1,q,J))return!0;return!1}markDeclarationReached(){for(let Z of this.properties)Z.markDeclarationReached()}};TY=class TY extends t{hasEffects(Z){let{deoptimized:q,left:J,right:Q}=this;if(!q)this.applyDeoptimizations();return Q.hasEffects(Z)||J.hasEffectsAsAssignmentTarget(Z,this.operator!=="=")}hasEffectsOnInteractionAtPath(Z,q,J){return this.right.hasEffectsOnInteractionAtPath(Z,q,J)}include(Z,q){let{deoptimized:J,left:Q,right:Y,operator:z}=this;if(!J)this.applyDeoptimizations();if(this.included=!0,q||z!=="="||Q.included||Q.hasEffectsAsAssignmentTarget(c4(),!1))Q.includeAsAssignmentTarget(Z,q,z!=="=");Y.include(Z,q)}initialise(){this.left.setAssignedValue(this.right)}render(Z,q,{preventASI:J,renderedParentType:Q,renderedSurroundingElement:Y}=n1){let{left:z,right:X,start:V,end:W,parent:K}=this;if(z.included)z.render(Z,q),X.render(Z,q);else{let G=W8(Z.original,o1(Z.original,"=",z.end)+1);if(Z.remove(V,G),J)a4(Z,G,X.start);X.render(Z,q,{renderedParentType:Q||K.type,renderedSurroundingElement:Y||K.type})}if(q.format==="system")if(z instanceof d1){let G=z.variable,F=q.exportNamesByVariable.get(G);if(F){if(F.length===1)xZ(G,V,W,Z,q);else DY(G,V,W,K.type!==w5,Z,q);return}}else{let G=[];if(z.addExportedVariables(G,q.exportNamesByVariable),G.length>0){wj(G,V,W,Y===w5,Z,q);return}}if(z.included&&z instanceof kZ&&(Y===w5||Y===UY))Z.appendRight(V,"("),Z.prependLeft(W,")")}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(G1),this.right.deoptimizePath(_1),this.context.requestTreeshakingPass()}};AY=class AY extends t{addExportedVariables(Z,q){this.left.addExportedVariables(Z,q)}declare(Z,q){return this.left.declare(Z,q)}deoptimizePath(Z){Z.length===0&&this.left.deoptimizePath(Z)}hasEffectsOnInteractionAtPath(Z,q,J){return Z.length>0||this.left.hasEffectsOnInteractionAtPath(G1,q,J)}markDeclarationReached(){this.left.markDeclarationReached()}render(Z,q,{isShorthandProperty:J}=n1){this.left.render(Z,q,{isShorthandProperty:J}),this.right.render(Z,q)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(G1),this.right.deoptimizePath(_1),this.context.requestTreeshakingPass()}};PY=class PY extends A5{constructor(Z){super("arguments",null,Y1,Z)}hasEffectsOnInteractionAtPath(Z,{type:q}){return q!==S1||Z.length>1}};vZ=class vZ extends A5{constructor(Z){super("this",null,null,Z);this.deoptimizedPaths=[],this.entitiesToBeDeoptimized=new Set,this.thisDeoptimizationList=[],this.thisDeoptimizations=new w4}addEntityToBeDeoptimized(Z){for(let q of this.deoptimizedPaths)Z.deoptimizePath(q);for(let{interaction:q,path:J}of this.thisDeoptimizationList)Z.deoptimizeThisOnInteractionAtPath(q,J,r1);this.entitiesToBeDeoptimized.add(Z)}deoptimizePath(Z){if(Z.length===0||this.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(Z,this))return;this.deoptimizedPaths.push(Z);for(let q of this.entitiesToBeDeoptimized)q.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q){let J={interaction:Z,path:q};if(!this.thisDeoptimizations.trackEntityAtPathAndGetIfTracked(q,Z.type,Z.thisArg)){for(let Q of this.entitiesToBeDeoptimized)Q.deoptimizeThisOnInteractionAtPath(Z,q,r1);this.thisDeoptimizationList.push(J)}}hasEffectsOnInteractionAtPath(Z,q,J){return this.getInit(J).hasEffectsOnInteractionAtPath(Z,q,J)||super.hasEffectsOnInteractionAtPath(Z,q,J)}getInit(Z){return Z.replacedVariableInits.get(this)||Y1}};SY=class SY extends SZ{constructor(Z,q){super(Z,q);this.variables.set("arguments",this.argumentsVariable=new PY(q)),this.variables.set("this",this.thisVariable=new vZ(q))}findLexicalBoundary(){return this}includeCallArguments(Z,q){if(super.includeCallArguments(Z,q),this.argumentsVariable.included){for(let J of q)if(!J.included)J.include(Z,!1)}}};r4=class r4 extends s4{constructor(){super(...arguments);this.objectEntity=null}createScope(Z){this.scope=new SY(Z,this.context)}deoptimizeThisOnInteractionAtPath(Z,q,J){if(super.deoptimizeThisOnInteractionAtPath(Z,q,J),Z.type===T1&&q.length===0)this.scope.thisVariable.addEntityToBeDeoptimized(Z.thisArg)}hasEffects(Z){var q;if(!this.deoptimized)this.applyDeoptimizations();return!!((q=this.id)===null||q===void 0?void 0:q.hasEffects(Z))}hasEffectsOnInteractionAtPath(Z,q,J){if(super.hasEffectsOnInteractionAtPath(Z,q,J))return!0;if(q.type===T1){let Q=J.replacedVariableInits.get(this.scope.thisVariable);J.replacedVariableInits.set(this.scope.thisVariable,q.withNew?new z5(Object.create(null),Q8):Y1);let{brokenFlow:Y,ignore:z}=J;if(J.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0},this.body.hasEffects(J))return!0;if(J.brokenFlow=Y,Q)J.replacedVariableInits.set(this.scope.thisVariable,Q);else J.replacedVariableInits.delete(this.scope.thisVariable);J.ignore=z}return!1}include(Z,q){var J;super.include(Z,q),(J=this.id)===null||J===void 0||J.include();let Q=this.scope.argumentsVariable.included;for(let Y of this.params)if(!(Y instanceof d1)||Q)Y.include(Z,q)}initialise(){var Z;super.initialise(),(Z=this.id)===null||Z===void 0||Z.declare("function",this)}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;return this.objectEntity=new z5([{key:"prototype",kind:"init",property:new z5([],Q8)}],Q8)}};yY=class yY extends t{hasEffects(){if(!this.deoptimized)this.applyDeoptimizations();return!0}include(Z,q){if(!this.deoptimized)this.applyDeoptimizations();if(!this.included){this.included=!0;Z:if(!this.context.usesTopLevelAwait){let J=this.parent;do if(J instanceof r4||J instanceof bZ)break Z;while(J=J.parent);this.context.usesTopLevelAwait=!0}}this.argument.include(Z,q)}};Rj={"!=":(Z,q)=>Z!=q,"!==":(Z,q)=>Z!==q,"%":(Z,q)=>Z%q,"&":(Z,q)=>Z&q,"*":(Z,q)=>Z*q,"**":(Z,q)=>Z**q,"+":(Z,q)=>Z+q,"-":(Z,q)=>Z-q,"/":(Z,q)=>Z/q,"<":(Z,q)=>Z<q,"<<":(Z,q)=>Z<<q,"<=":(Z,q)=>Z<=q,"==":(Z,q)=>Z==q,"===":(Z,q)=>Z===q,">":(Z,q)=>Z>q,">=":(Z,q)=>Z>=q,">>":(Z,q)=>Z>>q,">>>":(Z,q)=>Z>>>q,"^":(Z,q)=>Z^q,"|":(Z,q)=>Z|q};EY=class EY extends t{deoptimizeCache(){}getLiteralValueAtPath(Z,q,J){if(Z.length>0)return E1;let Q=this.left.getLiteralValueAtPath(G1,q,J);if(typeof Q==="symbol")return E1;let Y=this.right.getLiteralValueAtPath(G1,q,J);if(typeof Y==="symbol")return E1;let z=Rj[this.operator];if(!z)return E1;return z(Q,Y)}hasEffects(Z){if(this.operator==="+"&&this.parent instanceof N0&&this.left.getLiteralValueAtPath(G1,r1,this)==="")return!0;return super.hasEffects(Z)}hasEffectsOnInteractionAtPath(Z,{type:q}){return q!==S1||Z.length>1}render(Z,q,{renderedSurroundingElement:J}=n1){this.left.render(Z,q,{renderedSurroundingElement:J}),this.right.render(Z,q)}};bY=class bY extends t{hasEffects(Z){if(this.label){if(!Z.ignore.labels.has(this.label.name))return!0;Z.includedLabels.add(this.label.name),Z.brokenFlow=S8}else{if(!Z.ignore.breaks)return!0;Z.brokenFlow=Q6}return!1}include(Z){if(this.included=!0,this.label)this.label.include(),Z.includedLabels.add(this.label.name);Z.brokenFlow=this.label?S8:Q6}};z6=class z6 extends t{deoptimizeThisOnInteractionAtPath(){}getLiteralValueAtPath(Z){if(Z.length>0||this.value===null&&this.context.code.charCodeAt(this.start)!==110||typeof this.value==="bigint"||this.context.code.charCodeAt(this.start)===47)return E1;return this.value}getReturnExpressionWhenCalledAtPath(Z){if(Z.length!==1)return Y1;return F0(this.members,Z[0])}hasEffectsOnInteractionAtPath(Z,q,J){switch(q.type){case S1:return Z.length>(this.value===null?0:1);case v5:return!0;case T1:return Z.length!==1||M0(this.members,Z[0],q,J)}}initialise(){this.members=oU(this.value)}parseNode(Z){this.value=Z.value,this.regex=Z.regex,super.parseNode(Z)}render(Z){if(typeof this.value==="string")Z.indentExclusionRanges.push([this.start+1,this.end-1])}};y8=class y8 extends t{constructor(){super(...arguments);this.variable=null,this.assignmentDeoptimized=!1,this.bound=!1,this.expressionsToBeDeoptimized=[],this.replacement=null}bind(){this.bound=!0;let Z=kY(this),q=Z&&this.scope.findVariable(Z[0].key);if(q&&q.isNamespace){let J=vY(q,Z.slice(1),this.context);if(!J)super.bind();else if(typeof J==="string")this.replacement=J;else this.variable=J,this.scope.addNamespaceMemberAccess(Ij(Z),J)}else super.bind()}deoptimizeCache(){let Z=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[],this.propertyKey=u1,this.object.deoptimizePath(_1);for(let q of Z)q.deoptimizeCache()}deoptimizePath(Z){if(Z.length===0)this.disallowNamespaceReassignment();if(this.variable)this.variable.deoptimizePath(Z);else if(!this.replacement){if(Z.length<c6){let q=this.getPropertyKey();this.object.deoptimizePath([q===u1?N4:q,...Z])}}}deoptimizeThisOnInteractionAtPath(Z,q,J){if(this.variable)this.variable.deoptimizeThisOnInteractionAtPath(Z,q,J);else if(!this.replacement)if(q.length<c6)this.object.deoptimizeThisOnInteractionAtPath(Z,[this.getPropertyKey(),...q],J);else Z.thisArg.deoptimizePath(_1)}getLiteralValueAtPath(Z,q,J){if(this.variable)return this.variable.getLiteralValueAtPath(Z,q,J);if(this.replacement)return E1;if(this.expressionsToBeDeoptimized.push(J),Z.length<c6)return this.object.getLiteralValueAtPath([this.getPropertyKey(),...Z],q,J);return E1}getReturnExpressionWhenCalledAtPath(Z,q,J,Q){if(this.variable)return this.variable.getReturnExpressionWhenCalledAtPath(Z,q,J,Q);if(this.replacement)return Y1;if(this.expressionsToBeDeoptimized.push(Q),Z.length<c6)return this.object.getReturnExpressionWhenCalledAtPath([this.getPropertyKey(),...Z],q,J,Q);return Y1}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();return this.property.hasEffects(Z)||this.object.hasEffects(Z)||this.hasAccessEffect(Z)}hasEffectsAsAssignmentTarget(Z,q){if(q&&!this.deoptimized)this.applyDeoptimizations();if(!this.assignmentDeoptimized)this.applyAssignmentDeoptimization();return this.property.hasEffects(Z)||this.object.hasEffects(Z)||q&&this.hasAccessEffect(Z)||this.hasEffectsOnInteractionAtPath(G1,this.assignmentInteraction,Z)}hasEffectsOnInteractionAtPath(Z,q,J){if(this.variable)return this.variable.hasEffectsOnInteractionAtPath(Z,q,J);if(this.replacement)return!0;if(Z.length<c6)return this.object.hasEffectsOnInteractionAtPath([this.getPropertyKey(),...Z],q,J);return!0}include(Z,q){if(!this.deoptimized)this.applyDeoptimizations();this.includeProperties(Z,q)}includeAsAssignmentTarget(Z,q,J){if(!this.assignmentDeoptimized)this.applyAssignmentDeoptimization();if(J)this.include(Z,q);else this.includeProperties(Z,q)}includeCallArguments(Z,q){if(this.variable)this.variable.includeCallArguments(Z,q);else super.includeCallArguments(Z,q)}initialise(){this.propertyKey=Cj(this),this.accessInteraction={thisArg:this.object,type:S1}}render(Z,q,{renderedParentType:J,isCalleeOfRenderedParent:Q,renderedSurroundingElement:Y}=n1){if(this.variable||this.replacement){let{snippets:{getPropertyAccess:z}}=q,X=this.variable?this.variable.getName(z):this.replacement;if(J&&Q)X="0, "+X;Z.overwrite(this.start,this.end,X,{contentOnly:!0,storeName:!0})}else{if(J&&Q)Z.appendRight(this.start,"0, ");this.object.render(Z,q,{renderedSurroundingElement:Y}),this.property.render(Z,q)}}setAssignedValue(Z){this.assignmentInteraction={args:[Z],thisArg:this.object,type:v5}}applyDeoptimizations(){this.deoptimized=!0;let{propertyReadSideEffects:Z}=this.context.options.treeshake;if(this.bound&&Z&&!(this.variable||this.replacement)){let q=this.getPropertyKey();this.object.deoptimizeThisOnInteractionAtPath(this.accessInteraction,[q],r1),this.context.requestTreeshakingPass()}}applyAssignmentDeoptimization(){this.assignmentDeoptimized=!0;let{propertyReadSideEffects:Z}=this.context.options.treeshake;if(this.bound&&Z&&!(this.variable||this.replacement))this.object.deoptimizeThisOnInteractionAtPath(this.assignmentInteraction,[this.getPropertyKey()],r1),this.context.requestTreeshakingPass()}disallowNamespaceReassignment(){if(this.object instanceof d1){if(this.scope.findVariable(this.object.name).isNamespace){if(this.variable)this.context.includeVariableInModule(this.variable);this.context.warn({code:"ILLEGAL_NAMESPACE_REASSIGNMENT",message:`Illegal reassignment to import '${this.object.name}'`},this.start)}}}getPropertyKey(){if(this.propertyKey===null){this.propertyKey=u1;let Z=this.property.getLiteralValueAtPath(G1,r1,this);return this.propertyKey=typeof Z==="symbol"?u1:String(Z)}return this.propertyKey}hasAccessEffect(Z){let{propertyReadSideEffects:q}=this.context.options.treeshake;return!(this.variable||this.replacement)&&q&&(q==="always"||this.object.hasEffectsOnInteractionAtPath([this.getPropertyKey()],this.accessInteraction,Z))}includeProperties(Z,q){if(!this.included){if(this.included=!0,this.variable)this.context.includeVariableInModule(this.variable)}this.object.include(Z,q),this.property.include(Z,q)}};fZ=class fZ extends t{constructor(){super(...arguments);this.returnExpression=null,this.deoptimizableDependentExpressions=[],this.expressionsToBeDeoptimized=new Set}deoptimizeCache(){if(this.returnExpression!==Y1){this.returnExpression=Y1;for(let Z of this.deoptimizableDependentExpressions)Z.deoptimizeCache();for(let Z of this.expressionsToBeDeoptimized)Z.deoptimizePath(_1)}}deoptimizePath(Z){if(Z.length===0||this.context.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(Z,this))return;let q=this.getReturnExpression();if(q!==Y1)q.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,J){let Q=this.getReturnExpression(J);if(Q===Y1)Z.thisArg.deoptimizePath(_1);else J.withTrackedEntityAtPath(q,Q,()=>{this.expressionsToBeDeoptimized.add(Z.thisArg),Q.deoptimizeThisOnInteractionAtPath(Z,q,J)},void 0)}getLiteralValueAtPath(Z,q,J){let Q=this.getReturnExpression(q);if(Q===Y1)return E1;return q.withTrackedEntityAtPath(Z,Q,()=>{return this.deoptimizableDependentExpressions.push(J),Q.getLiteralValueAtPath(Z,q,J)},E1)}getReturnExpressionWhenCalledAtPath(Z,q,J,Q){let Y=this.getReturnExpression(J);if(this.returnExpression===Y1)return Y1;return J.withTrackedEntityAtPath(Z,Y,()=>{return this.deoptimizableDependentExpressions.push(Q),Y.getReturnExpressionWhenCalledAtPath(Z,q,J,Q)},Y1)}hasEffectsOnInteractionAtPath(Z,q,J){let{type:Q}=q;if(Q===T1){if((q.withNew?J.instantiated:J.called).trackEntityAtPathAndGetIfTracked(Z,q.args,this))return!1}else if((Q===v5?J.assigned:J.accessed).trackEntityAtPathAndGetIfTracked(Z,this))return!1;return this.getReturnExpression().hasEffectsOnInteractionAtPath(Z,q,J)}};fY=class fY extends fZ{bind(){if(super.bind(),this.callee instanceof d1){if(this.scope.findVariable(this.callee.name).isNamespace)this.context.warn({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${this.callee.name}')`},this.start);if(this.callee.name==="eval")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)}this.interaction={args:this.arguments,thisArg:this.callee instanceof y8&&!this.callee.variable?this.callee.object:null,type:T1,withNew:!1}}hasEffects(Z){try{for(let q of this.arguments)if(q.hasEffects(Z))return!0;if(this.context.options.treeshake.annotations&&this.annotations)return!1;return this.callee.hasEffects(Z)||this.callee.hasEffectsOnInteractionAtPath(G1,this.interaction,Z)}finally{if(!this.deoptimized)this.applyDeoptimizations()}}include(Z,q){if(!this.deoptimized)this.applyDeoptimizations();if(q){if(super.include(Z,q),q===NY&&this.callee instanceof d1&&this.callee.variable)this.callee.variable.markCalledFromTryStatement()}else this.included=!0,this.callee.include(Z,!1);this.callee.includeCallArguments(Z,this.arguments)}render(Z,q,{renderedSurroundingElement:J}=n1){this.callee.render(Z,q,{isCalleeOfRenderedParent:!0,renderedSurroundingElement:J}),xY(Z,q,this)}applyDeoptimizations(){if(this.deoptimized=!0,this.interaction.thisArg)this.callee.deoptimizeThisOnInteractionAtPath(this.interaction,G1,r1);for(let Z of this.arguments)Z.deoptimizePath(_1);this.context.requestTreeshakingPass()}getReturnExpression(Z=r1){if(this.returnExpression===null)return this.returnExpression=Y1,this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(G1,this.interaction,Z,this);return this.returnExpression}};hY=class hY extends PZ{addDeclaration(Z,q,J,Q){let Y=this.variables.get(Z.name);if(Y)return this.parent.addDeclaration(Z,q,H0,Q),Y.addDeclaration(Z,J),Y;return this.parent.addDeclaration(Z,q,J,Q)}};gY=class gY extends t{createScope(Z){this.scope=new hY(Z,this.context)}parseNode(Z){let{param:q}=Z;if(q)this.param=new(this.context.getNodeConstructor(q.type))(q,this,this.scope),this.param.declare("parameter",Y1);super.parseNode(Z)}};mY=class mY extends t{};uY=class uY extends T5{constructor(Z,q,J){super(Z);this.variables.set("this",this.thisVariable=new A5("this",null,q,J)),this.instanceScope=new T5(this),this.instanceScope.variables.set("this",new vZ(J))}findLexicalBoundary(){return this}};dY=class dY extends t{createScope(Z){this.scope=new uY(Z,this.parent,this.context)}include(Z,q){this.included=!0,this.context.includeVariableInModule(this.scope.thisVariable);for(let J of this.body)J.include(Z,q)}parseNode(Z){let q=this.body=[];for(let J of Z.body)q.push(new(this.context.getNodeConstructor(J.type))(J,this,J.static?this.scope:this.scope.instanceScope));super.parseNode(Z)}applyDeoptimizations(){}};hZ=class hZ extends t{constructor(){super(...arguments);this.accessedValue=null}deoptimizeCache(){}deoptimizePath(Z){this.getAccessedValue().deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,J){if(Z.type===S1&&this.kind==="get"&&q.length===0)return this.value.deoptimizeThisOnInteractionAtPath({args:u9,thisArg:Z.thisArg,type:T1,withNew:!1},G1,J);if(Z.type===v5&&this.kind==="set"&&q.length===0)return this.value.deoptimizeThisOnInteractionAtPath({args:Z.args,thisArg:Z.thisArg,type:T1,withNew:!1},G1,J);this.getAccessedValue().deoptimizeThisOnInteractionAtPath(Z,q,J)}getLiteralValueAtPath(Z,q,J){return this.getAccessedValue().getLiteralValueAtPath(Z,q,J)}getReturnExpressionWhenCalledAtPath(Z,q,J,Q){return this.getAccessedValue().getReturnExpressionWhenCalledAtPath(Z,q,J,Q)}hasEffects(Z){return this.key.hasEffects(Z)}hasEffectsOnInteractionAtPath(Z,q,J){if(this.kind==="get"&&q.type===S1&&Z.length===0)return this.value.hasEffectsOnInteractionAtPath(G1,{args:u9,thisArg:q.thisArg,type:T1,withNew:!1},J);if(this.kind==="set"&&q.type===v5)return this.value.hasEffectsOnInteractionAtPath(G1,{args:q.args,thisArg:q.thisArg,type:T1,withNew:!1},J);return this.getAccessedValue().hasEffectsOnInteractionAtPath(Z,q,J)}applyDeoptimizations(){}getAccessedValue(){if(this.accessedValue===null)if(this.kind==="get")return this.accessedValue=Y1,this.accessedValue=this.value.getReturnExpressionWhenCalledAtPath(G1,h4,r1,this);else return this.accessedValue=this.value;return this.accessedValue}};T4=class T4 extends hZ{applyDeoptimizations(){}};lY=class lY extends j5{constructor(Z,q){super();this.object=Z,this.key=q}deoptimizePath(Z){this.object.deoptimizePath([this.key,...Z])}deoptimizeThisOnInteractionAtPath(Z,q,J){this.object.deoptimizeThisOnInteractionAtPath(Z,[this.key,...q],J)}getLiteralValueAtPath(Z,q,J){return this.object.getLiteralValueAtPath([this.key,...Z],q,J)}getReturnExpressionWhenCalledAtPath(Z,q,J,Q){return this.object.getReturnExpressionWhenCalledAtPath([this.key,...Z],q,J,Q)}hasEffectsOnInteractionAtPath(Z,q,J){return this.object.hasEffectsOnInteractionAtPath([this.key,...Z],q,J)}};gZ=class gZ extends t{constructor(){super(...arguments);this.objectEntity=null}createScope(Z){this.scope=new T5(Z)}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(Z){this.getObjectEntity().deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,J){this.getObjectEntity().deoptimizeThisOnInteractionAtPath(Z,q,J)}getLiteralValueAtPath(Z,q,J){return this.getObjectEntity().getLiteralValueAtPath(Z,q,J)}getReturnExpressionWhenCalledAtPath(Z,q,J,Q){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(Z,q,J,Q)}hasEffects(Z){var q,J;if(!this.deoptimized)this.applyDeoptimizations();let Q=((q=this.superClass)===null||q===void 0?void 0:q.hasEffects(Z))||this.body.hasEffects(Z);return(J=this.id)===null||J===void 0||J.markDeclarationReached(),Q||super.hasEffects(Z)}hasEffectsOnInteractionAtPath(Z,q,J){var Q;if(q.type===T1&&Z.length===0)return!q.withNew||(this.classConstructor!==null?this.classConstructor.hasEffectsOnInteractionAtPath(Z,q,J):(Q=this.superClass)===null||Q===void 0?void 0:Q.hasEffectsOnInteractionAtPath(Z,q,J))||!1;else return this.getObjectEntity().hasEffectsOnInteractionAtPath(Z,q,J)}include(Z,q){var J;if(!this.deoptimized)this.applyDeoptimizations();if(this.included=!0,(J=this.superClass)===null||J===void 0||J.include(Z,q),this.body.include(Z,q),this.id)this.id.markDeclarationReached(),this.id.include()}initialise(){var Z;(Z=this.id)===null||Z===void 0||Z.declare("class",this);for(let q of this.body.body)if(q instanceof T4&&q.kind==="constructor"){this.classConstructor=q;return}this.classConstructor=null}applyDeoptimizations(){this.deoptimized=!0;for(let Z of this.body.body)if(!(Z.static||Z instanceof T4&&Z.kind==="constructor"))Z.deoptimizePath(_1);this.context.requestTreeshakingPass()}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let Z=[],q=[];for(let J of this.body.body){let Q=J.static?Z:q,Y=J.kind;if(Q===q&&!Y)continue;let z=Y==="set"||Y==="get"?Y:"init",X;if(J.computed){let V=J.key.getLiteralValueAtPath(G1,r1,this);if(typeof V==="symbol"){Q.push({key:u1,kind:z,property:J});continue}else X=String(V)}else X=J.key instanceof d1?J.key.name:String(J.key.value);Q.push({key:X,kind:z,property:J})}return Z.unshift({key:"prototype",kind:"init",property:new z5(q,this.superClass?new lY(this.superClass,"prototype"):Q8)}),this.objectEntity=new z5(Z,this.superClass||Q8)}};V0=class V0 extends gZ{initialise(){if(super.initialise(),this.id!==null)this.id.variable.isId=!0}parseNode(Z){if(Z.id!==null)this.id=new d1(Z.id,this,this.scope.parent);super.parseNode(Z)}render(Z,q){let{exportNamesByVariable:J,format:Q,snippets:{_:Y}}=q;if(Q==="system"&&this.id&&J.has(this.id.variable))Z.appendLeft(this.end,`${Y}${b8([this.id.variable],q)};`);super.render(Z,q)}};cY=class cY extends gZ{render(Z,q,{renderedSurroundingElement:J}=n1){if(super.render(Z,q),J===w5)Z.appendRight(this.start,"("),Z.prependLeft(this.end,")")}};o4=class o4 extends j5{constructor(Z){super();this.expressions=Z,this.included=!1}deoptimizePath(Z){for(let q of this.expressions)q.deoptimizePath(Z)}getReturnExpressionWhenCalledAtPath(Z,q,J,Q){return new o4(this.expressions.map((Y)=>Y.getReturnExpressionWhenCalledAtPath(Z,q,J,Q)))}hasEffectsOnInteractionAtPath(Z,q,J){for(let Q of this.expressions)if(Q.hasEffectsOnInteractionAtPath(Z,q,J))return!0;return!1}};pY=class pY extends t{constructor(){super(...arguments);this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.usedBranch=null}deoptimizeCache(){if(this.usedBranch!==null){let Z=this.usedBranch===this.consequent?this.alternate:this.consequent;this.usedBranch=null,Z.deoptimizePath(_1);for(let q of this.expressionsToBeDeoptimized)q.deoptimizeCache()}}deoptimizePath(Z){let q=this.getUsedBranch();if(!q)this.consequent.deoptimizePath(Z),this.alternate.deoptimizePath(Z);else q.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,J){this.consequent.deoptimizeThisOnInteractionAtPath(Z,q,J),this.alternate.deoptimizeThisOnInteractionAtPath(Z,q,J)}getLiteralValueAtPath(Z,q,J){let Q=this.getUsedBranch();if(!Q)return E1;return this.expressionsToBeDeoptimized.push(J),Q.getLiteralValueAtPath(Z,q,J)}getReturnExpressionWhenCalledAtPath(Z,q,J,Q){let Y=this.getUsedBranch();if(!Y)return new o4([this.consequent.getReturnExpressionWhenCalledAtPath(Z,q,J,Q),this.alternate.getReturnExpressionWhenCalledAtPath(Z,q,J,Q)]);return this.expressionsToBeDeoptimized.push(Q),Y.getReturnExpressionWhenCalledAtPath(Z,q,J,Q)}hasEffects(Z){if(this.test.hasEffects(Z))return!0;let q=this.getUsedBranch();if(!q)return this.consequent.hasEffects(Z)||this.alternate.hasEffects(Z);return q.hasEffects(Z)}hasEffectsOnInteractionAtPath(Z,q,J){let Q=this.getUsedBranch();if(!Q)return this.consequent.hasEffectsOnInteractionAtPath(Z,q,J)||this.alternate.hasEffectsOnInteractionAtPath(Z,q,J);return Q.hasEffectsOnInteractionAtPath(Z,q,J)}include(Z,q){this.included=!0;let J=this.getUsedBranch();if(q||this.test.shouldBeIncluded(Z)||J===null)this.test.include(Z,q),this.consequent.include(Z,q),this.alternate.include(Z,q);else J.include(Z,q)}includeCallArguments(Z,q){let J=this.getUsedBranch();if(!J)this.consequent.includeCallArguments(Z,q),this.alternate.includeCallArguments(Z,q);else J.includeCallArguments(Z,q)}render(Z,q,{isCalleeOfRenderedParent:J,preventASI:Q,renderedParentType:Y,renderedSurroundingElement:z}=n1){let X=this.getUsedBranch();if(!this.test.included){let V=o1(Z.original,":",this.consequent.end),W=W8(Z.original,(this.consequent.included?o1(Z.original,"?",this.test.end):V)+1);if(Q)a4(Z,W,X.start);if(Z.remove(this.start,W),this.consequent.included)Z.remove(V,this.end);_Y(this,Z),X.render(Z,q,{isCalleeOfRenderedParent:J,preventASI:!0,renderedParentType:Y||this.parent.type,renderedSurroundingElement:z||this.parent.type})}else this.test.render(Z,q,{renderedSurroundingElement:z}),this.consequent.render(Z,q),this.alternate.render(Z,q)}getUsedBranch(){if(this.isBranchResolutionAnalysed)return this.usedBranch;this.isBranchResolutionAnalysed=!0;let Z=this.test.getLiteralValueAtPath(G1,r1,this);return typeof Z==="symbol"?null:this.usedBranch=Z?this.consequent:this.alternate}};iY=class iY extends t{hasEffects(Z){if(this.label){if(!Z.ignore.labels.has(this.label.name))return!0;Z.includedLabels.add(this.label.name),Z.brokenFlow=S8}else{if(!Z.ignore.continues)return!0;Z.brokenFlow=Q6}return!1}include(Z){if(this.included=!0,this.label)this.label.include(),Z.includedLabels.add(this.label.name);Z.brokenFlow=this.label?S8:Q6}};nY=class nY extends t{hasEffects(Z){if(this.test.hasEffects(Z))return!0;let{brokenFlow:q,ignore:{breaks:J,continues:Q}}=Z;if(Z.ignore.breaks=!0,Z.ignore.continues=!0,this.body.hasEffects(Z))return!0;return Z.ignore.breaks=J,Z.ignore.continues=Q,Z.brokenFlow=q,!1}include(Z,q){this.included=!0,this.test.include(Z,q);let{brokenFlow:J}=Z;this.body.include(Z,q,{asSingleStatement:!0}),Z.brokenFlow=J}};aY=class aY extends t{hasEffects(){return!1}};t4=class t4 extends t{hasEffects(){return!1}initialise(){this.context.addExport(this)}render(Z,q,J){Z.remove(J.start,J.end)}applyDeoptimizations(){}};t4.prototype.needsBoundaries=!0;X6=class X6 extends r4{initialise(){if(super.initialise(),this.id!==null)this.id.variable.isId=!0}parseNode(Z){if(Z.id!==null)this.id=new d1(Z.id,this,this.scope.parent);super.parseNode(Z)}};w0=class w0 extends t{include(Z,q){if(super.include(Z,q),q)this.context.includeVariableInModule(this.variable)}initialise(){let Z=this.declaration;this.declarationName=Z.id&&Z.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this.declarationName||this.context.getModuleName(),this,this.context),this.context.addExport(this)}render(Z,q,J){let{start:Q,end:Y}=J,z=Dj(Z.original,this.start);if(this.declaration instanceof X6)this.renderNamedDeclaration(Z,z,"function","(",this.declaration.id===null,q);else if(this.declaration instanceof V0)this.renderNamedDeclaration(Z,z,"class","{",this.declaration.id===null,q);else if(this.variable.getOriginalVariable()!==this.variable){yZ(this,Z,Q,Y);return}else if(this.variable.included)this.renderVariableDeclaration(Z,z,q);else{if(Z.remove(this.start,z),this.declaration.render(Z,q,{renderedSurroundingElement:w5}),Z.original[this.end-1]!==";")Z.appendLeft(this.end,";");return}this.declaration.render(Z,q)}applyDeoptimizations(){}renderNamedDeclaration(Z,q,J,Q,Y,z){let{exportNamesByVariable:X,format:V,snippets:{getPropertyAccess:W}}=z,K=this.variable.getName(W);if(Z.remove(this.start,q),Y)Z.appendLeft(Tj(Z.original,J,Q,q),` ${K}`);if(V==="system"&&this.declaration instanceof V0&&X.has(this.variable))Z.appendLeft(this.end,` ${b8([this.variable],z)};`)}renderVariableDeclaration(Z,q,{format:J,exportNamesByVariable:Q,snippets:{cnst:Y,getPropertyAccess:z}}){let X=Z.original.charCodeAt(this.end-1)===59,V=J==="system"&&Q.get(this.variable);if(V)Z.overwrite(this.start,q,`${Y} ${this.variable.getName(z)} = exports('${V[0]}', `),Z.appendRight(X?this.end-1:this.end,")"+(X?"":";"));else if(Z.overwrite(this.start,q,`${Y} ${this.variable.getName(z)} = `),!X)Z.appendLeft(this.end,";")}};w0.prototype.needsBoundaries=!0;mZ=class mZ extends t{bind(){var Z;(Z=this.declaration)===null||Z===void 0||Z.bind()}hasEffects(Z){var q;return!!((q=this.declaration)===null||q===void 0?void 0:q.hasEffects(Z))}initialise(){this.context.addExport(this)}render(Z,q,J){let{start:Q,end:Y}=J;if(this.declaration===null)Z.remove(Q,Y);else Z.remove(this.start,this.declaration.start),this.declaration.render(Z,q,{end:Y,start:Q})}applyDeoptimizations(){}};mZ.prototype.needsBoundaries=!0;sY=class sY extends t{applyDeoptimizations(){}};rY=class rY extends t{createScope(Z){this.scope=new $8(Z)}hasEffects(Z){let{deoptimized:q,left:J,right:Q}=this;if(!q)this.applyDeoptimizations();if(J.hasEffectsAsAssignmentTarget(Z,!1)||Q.hasEffects(Z))return!0;let{brokenFlow:Y,ignore:{breaks:z,continues:X}}=Z;if(Z.ignore.breaks=!0,Z.ignore.continues=!0,this.body.hasEffects(Z))return!0;return Z.ignore.breaks=z,Z.ignore.continues=X,Z.brokenFlow=Y,!1}include(Z,q){let{body:J,deoptimized:Q,left:Y,right:z}=this;if(!Q)this.applyDeoptimizations();this.included=!0,Y.includeAsAssignmentTarget(Z,q||!0,!1),z.include(Z,q);let{brokenFlow:X}=Z;J.include(Z,q,{asSingleStatement:!0}),Z.brokenFlow=X}initialise(){this.left.setAssignedValue(Y1)}render(Z,q){if(this.left.render(Z,q,A8),this.right.render(Z,q,A8),Z.original.charCodeAt(this.right.start-1)===110)Z.prependLeft(this.right.start," ");this.body.render(Z,q)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(G1),this.context.requestTreeshakingPass()}};oY=class oY extends t{createScope(Z){this.scope=new $8(Z)}hasEffects(){if(!this.deoptimized)this.applyDeoptimizations();return!0}include(Z,q){let{body:J,deoptimized:Q,left:Y,right:z}=this;if(!Q)this.applyDeoptimizations();this.included=!0,Y.includeAsAssignmentTarget(Z,q||!0,!1),z.include(Z,q);let{brokenFlow:X}=Z;J.include(Z,q,{asSingleStatement:!0}),Z.brokenFlow=X}initialise(){this.left.setAssignedValue(Y1)}render(Z,q){if(this.left.render(Z,q,A8),this.right.render(Z,q,A8),Z.original.charCodeAt(this.right.start-1)===102)Z.prependLeft(this.right.start," ");this.body.render(Z,q)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(G1),this.context.requestTreeshakingPass()}};tY=class tY extends t{createScope(Z){this.scope=new $8(Z)}hasEffects(Z){var q,J,Q;if(((q=this.init)===null||q===void 0?void 0:q.hasEffects(Z))||((J=this.test)===null||J===void 0?void 0:J.hasEffects(Z))||((Q=this.update)===null||Q===void 0?void 0:Q.hasEffects(Z)))return!0;let{brokenFlow:Y,ignore:{breaks:z,continues:X}}=Z;if(Z.ignore.breaks=!0,Z.ignore.continues=!0,this.body.hasEffects(Z))return!0;return Z.ignore.breaks=z,Z.ignore.continues=X,Z.brokenFlow=Y,!1}include(Z,q){var J,Q,Y;this.included=!0,(J=this.init)===null||J===void 0||J.include(Z,q,{asSingleStatement:!0}),(Q=this.test)===null||Q===void 0||Q.include(Z,q);let{brokenFlow:z}=Z;(Y=this.update)===null||Y===void 0||Y.include(Z,q),this.body.include(Z,q,{asSingleStatement:!0}),Z.brokenFlow=z}render(Z,q){var J,Q,Y;(J=this.init)===null||J===void 0||J.render(Z,q,A8),(Q=this.test)===null||Q===void 0||Q.render(Z,q,A8),(Y=this.update)===null||Y===void 0||Y.render(Z,q,A8),this.body.render(Z,q)}};eY=class eY extends r4{render(Z,q,{renderedSurroundingElement:J}=n1){if(super.render(Z,q),J===w5)Z.appendRight(this.start,"("),Z.prependLeft(this.end,")")}};r9=class r9 extends $8{constructor(){super(...arguments);this.hoistedDeclarations=[]}addDeclaration(Z,q,J,Q){return this.hoistedDeclarations.push(Z),super.addDeclaration(Z,q,J,Q)}};NQ=Symbol("unset");uZ=class uZ extends t{constructor(){super(...arguments);this.testValue=NQ}deoptimizeCache(){this.testValue=E1}hasEffects(Z){var q;if(this.test.hasEffects(Z))return!0;let J=this.getTestValue();if(typeof J==="symbol"){let{brokenFlow:Q}=Z;if(this.consequent.hasEffects(Z))return!0;let Y=Z.brokenFlow;if(Z.brokenFlow=Q,this.alternate===null)return!1;if(this.alternate.hasEffects(Z))return!0;return Z.brokenFlow=Z.brokenFlow<Y?Z.brokenFlow:Y,!1}return J?this.consequent.hasEffects(Z):!!((q=this.alternate)===null||q===void 0?void 0:q.hasEffects(Z))}include(Z,q){if(this.included=!0,q)this.includeRecursively(q,Z);else{let J=this.getTestValue();if(typeof J==="symbol")this.includeUnknownTest(Z);else this.includeKnownTest(Z,J)}}parseNode(Z){if(this.consequentScope=new r9(this.scope),this.consequent=new(this.context.getNodeConstructor(Z.consequent.type))(Z.consequent,this,this.consequentScope),Z.alternate)this.alternateScope=new r9(this.scope),this.alternate=new(this.context.getNodeConstructor(Z.alternate.type))(Z.alternate,this,this.alternateScope);super.parseNode(Z)}render(Z,q){let{snippets:{getPropertyAccess:J}}=q,Q=this.getTestValue(),Y=[],z=this.test.included,X=!this.context.options.treeshake;if(z)this.test.render(Z,q);else Z.remove(this.start,this.consequent.start);if(this.consequent.included&&(X||typeof Q==="symbol"||Q))this.consequent.render(Z,q);else Z.overwrite(this.consequent.start,this.consequent.end,z?";":""),Y.push(...this.consequentScope.hoistedDeclarations);if(this.alternate)if(this.alternate.included&&(X||typeof Q==="symbol"||!Q)){if(z){if(Z.original.charCodeAt(this.alternate.start-1)===101)Z.prependLeft(this.alternate.start," ")}else Z.remove(this.consequent.end,this.alternate.start);this.alternate.render(Z,q)}else{if(z&&this.shouldKeepAlternateBranch())Z.overwrite(this.alternate.start,this.end,";");else Z.remove(this.consequent.end,this.end);Y.push(...this.alternateScope.hoistedDeclarations)}this.renderHoistedDeclarations(Y,Z,J)}applyDeoptimizations(){}getTestValue(){if(this.testValue===NQ)return this.testValue=this.test.getLiteralValueAtPath(G1,r1,this);return this.testValue}includeKnownTest(Z,q){var J;if(this.test.shouldBeIncluded(Z))this.test.include(Z,!1);if(q&&this.consequent.shouldBeIncluded(Z))this.consequent.include(Z,!1,{asSingleStatement:!0});if(!q&&((J=this.alternate)===null||J===void 0?void 0:J.shouldBeIncluded(Z)))this.alternate.include(Z,!1,{asSingleStatement:!0})}includeRecursively(Z,q){var J;this.test.include(q,Z),this.consequent.include(q,Z),(J=this.alternate)===null||J===void 0||J.include(q,Z)}includeUnknownTest(Z){var q;this.test.include(Z,!1);let{brokenFlow:J}=Z,Q=l4;if(this.consequent.shouldBeIncluded(Z))this.consequent.include(Z,!1,{asSingleStatement:!0}),Q=Z.brokenFlow,Z.brokenFlow=J;if((q=this.alternate)===null||q===void 0?void 0:q.shouldBeIncluded(Z))this.alternate.include(Z,!1,{asSingleStatement:!0}),Z.brokenFlow=Z.brokenFlow<Q?Z.brokenFlow:Q}renderHoistedDeclarations(Z,q,J){let Q=[...new Set(Z.map((Y)=>{let z=Y.variable;return z.included?z.getName(J):""}))].filter(Boolean).join(", ");if(Q){let Y=this.parent.type,z=Y!==_4&&Y!==jY;if(q.prependRight(this.start,`${z?"{ ":""}var ${Q}; `),z)q.appendLeft(this.end," }")}}shouldKeepAlternateBranch(){let Z=this.parent;do{if(Z instanceof uZ&&Z.alternate)return!0;if(Z instanceof X0)return!1;Z=Z.parent}while(Z);return!1}};dZ=class dZ extends t{bind(){}hasEffects(){return!1}initialise(){this.context.addImport(this)}render(Z,q,J){Z.remove(J.start,J.end)}applyDeoptimizations(){}};dZ.prototype.needsBoundaries=!0;Z2=class Z2 extends t{applyDeoptimizations(){}};O0={auto:A4,default:null,defaultOnly:null,esModule:null,false:null,true:o9},R0={auto:o6,default:n6,defaultOnly:W0,esModule:null,false:null,true:o6},q2={[o9](Z,q,J){let{_:Q,getDirectReturnFunction:Y,n:z}=q,[X,V]=Y(["e"],{functionReturn:!0,lineBreakIndent:null,name:o9});return`${X}e${Q}&&${Q}typeof e${Q}===${Q}'object'${Q}&&${Q}'default'${Q}in e${Q}?${Q}${J?wQ(q):OQ(q)}${V}${z}${z}`},[A4](Z,q,J){let{_:Q,getDirectReturnFunction:Y,n:z}=q,[X,V]=Y(["e"],{functionReturn:!0,lineBreakIndent:null,name:A4});return`${X}e${Q}&&${Q}e.__esModule${Q}?${Q}${J?wQ(q):OQ(q)}${V}${z}${z}`},[W0](Z,q,J,Q,Y){let{getDirectReturnFunction:z,getObject:X,n:V}=q,[W,K]=z(["e"],{functionReturn:!0,lineBreakIndent:null,name:W0});return`${W}${t9(Q,CQ(Y,X([["__proto__","null"],["default","e"]],{lineBreakIndent:null}),q))}${K}${V}${V}`},[n6](Z,q,J,Q,Y){let{_:z,n:X}=q;return`function ${n6}(e)${z}{${X}`+RQ(Z,Z,q,J,Q,Y)+`}${X}${X}`},[o6](Z,q,J,Q,Y,z){let{_:X,getDirectReturnFunction:V,n:W}=q;if(z.has(n6)){let[K,G]=V(["e"],{functionReturn:!0,lineBreakIndent:null,name:o6});return`${K}e${X}&&${X}e.__esModule${X}?${X}e${X}:${X}${n6}(e)${G}${W}${W}`}return`function ${o6}(e)${X}{${W}${Z}if${X}(e${X}&&${X}e.__esModule)${X}return e;${W}`+RQ(Z,Z,q,J,Q,Y)+`}${W}${W}`},[P4](Z,q,J,Q,Y){let{_:z,cnst:X,n:V}=q,W=X==="var"&&J;return`function ${P4}(n, m)${z}{${V}${Z}${Sj(`{${V}${Z}${Z}${Z}if${z}(k${z}!==${z}'default'${z}&&${z}!(k in n))${z}{${V}`+(J?W?J2:Ej:Q2)(Z,Z+Z+Z+Z,q)+`${Z}${Z}${Z}}${V}${Z}${Z}}`,W,Z,q)}${V}${Z}return ${t9(Q,CQ(Y,"n",q))};${V}}${V}${V}`}},e9=Object.keys(q2);Y2=class Y2 extends t{constructor(){super(...arguments);this.inlineNamespace=null,this.mechanism=null,this.resolution=null}hasEffects(){return!0}include(Z,q){if(!this.included)this.included=!0,this.context.includeDynamicImport(this),this.scope.addAccessedDynamicImport(this);this.source.include(Z,q)}initialise(){this.context.addDynamicImport(this)}render(Z,q){if(this.inlineNamespace){let{snippets:{getDirectReturnFunction:J,getPropertyAccess:Q}}=q,[Y,z]=J([],{functionReturn:!0,lineBreakIndent:null,name:null});Z.overwrite(this.start,this.end,`Promise.resolve().then(${Y}${this.inlineNamespace.getName(Q)}${z})`,{contentOnly:!0});return}if(this.mechanism)Z.overwrite(this.start,o1(Z.original,"(",this.start+6)+1,this.mechanism.left,{contentOnly:!0}),Z.overwrite(this.end-1,this.end,this.mechanism.right,{contentOnly:!0});this.source.render(Z,q)}renderFinalResolution(Z,q,J,{getDirectReturnFunction:Q}){if(Z.overwrite(this.source.start,this.source.end,q),J){let[Y,z]=Q(["n"],{functionReturn:!0,lineBreakIndent:null,name:null});Z.prependLeft(this.end,`.then(${Y}n.${J}${z})`)}}setExternalResolution(Z,q,J,Q,Y,z){let{format:X}=J;this.inlineNamespace=null,this.resolution=q;let V=[...bj[X]||[]],W;if({helper:W,mechanism:this.mechanism}=this.getDynamicImportMechanismAndHelper(q,Z,J,Q,Y),W)V.push(W);if(V.length>0)this.scope.addAccessedGlobals(V,z)}setInternalResolution(Z){this.inlineNamespace=Z}applyDeoptimizations(){}getDynamicImportMechanismAndHelper(Z,q,{compact:J,dynamicImportFunction:Q,format:Y,generatedCode:{arrowFunctions:z},interop:X},{_:V,getDirectReturnFunction:W,getDirectReturnIifeLeft:K},G){let F=G.hookFirstSync("renderDynamicImport",[{customResolution:typeof this.resolution==="string"?this.resolution:null,format:Y,moduleId:this.context.module.id,targetModuleId:this.resolution&&typeof this.resolution!=="string"?this.resolution.id:null}]);if(F)return{helper:null,mechanism:F};let M=!this.resolution||typeof this.resolution==="string";switch(Y){case"cjs":{let B=_Q(Z,q,X),H="require(",N=")";if(B)H=`/*#__PURE__*/${B}(${H}`,N+=")";let[C,A]=W([],{functionReturn:!0,lineBreakIndent:null,name:null});if(H=`Promise.resolve().then(${C}${H}`,N+=`${A})`,!z&&M)H=K(["t"],`${H}t${N}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),N=")";return{helper:B,mechanism:{left:H,right:N}}}case"amd":{let B=J?"c":"resolve",H=J?"e":"reject",N=_Q(Z,q,X),[C,A]=W(["m"],{functionReturn:!1,lineBreakIndent:null,name:null}),S=N?`${C}${B}(/*#__PURE__*/${N}(m))${A}`:B,[T,g]=W([B,H],{functionReturn:!1,lineBreakIndent:null,name:null}),f=`new Promise(${T}require([`,u=`],${V}${S},${V}${H})${g})`;if(!z&&M)f=K(["t"],`${f}t${u}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),u=")";return{helper:N,mechanism:{left:f,right:u}}}case"system":return{helper:null,mechanism:{left:"module.import(",right:")"}};case"es":if(Q)return{helper:null,mechanism:{left:`${Q}(`,right:")"}}}return{helper:null,mechanism:null}}};bj={amd:["require"],cjs:["require"],system:["module"]};z2=class z2 extends t{applyDeoptimizations(){}};X2=class X2 extends t{applyDeoptimizations(){}};V2=class V2 extends t{hasEffects(Z){let q=Z.brokenFlow;if(Z.ignore.labels.add(this.label.name),this.body.hasEffects(Z))return!0;if(Z.ignore.labels.delete(this.label.name),Z.includedLabels.has(this.label.name))Z.includedLabels.delete(this.label.name),Z.brokenFlow=q;return!1}include(Z,q){this.included=!0;let J=Z.brokenFlow;if(this.body.include(Z,q),q||Z.includedLabels.has(this.label.name))this.label.include(),Z.includedLabels.delete(this.label.name),Z.brokenFlow=J}render(Z,q){if(this.label.included)this.label.render(Z,q);else Z.remove(this.start,W8(Z.original,o1(Z.original,":",this.label.end)+1));this.body.render(Z,q)}};W2=class W2 extends t{constructor(){super(...arguments);this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.usedBranch=null}deoptimizeCache(){if(this.usedBranch){let Z=this.usedBranch===this.left?this.right:this.left;this.usedBranch=null,Z.deoptimizePath(_1);for(let q of this.expressionsToBeDeoptimized)q.deoptimizeCache();this.context.requestTreeshakingPass()}}deoptimizePath(Z){let q=this.getUsedBranch();if(!q)this.left.deoptimizePath(Z),this.right.deoptimizePath(Z);else q.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,J){this.left.deoptimizeThisOnInteractionAtPath(Z,q,J),this.right.deoptimizeThisOnInteractionAtPath(Z,q,J)}getLiteralValueAtPath(Z,q,J){let Q=this.getUsedBranch();if(!Q)return E1;return this.expressionsToBeDeoptimized.push(J),Q.getLiteralValueAtPath(Z,q,J)}getReturnExpressionWhenCalledAtPath(Z,q,J,Q){let Y=this.getUsedBranch();if(!Y)return new o4([this.left.getReturnExpressionWhenCalledAtPath(Z,q,J,Q),this.right.getReturnExpressionWhenCalledAtPath(Z,q,J,Q)]);return this.expressionsToBeDeoptimized.push(Q),Y.getReturnExpressionWhenCalledAtPath(Z,q,J,Q)}hasEffects(Z){if(this.left.hasEffects(Z))return!0;if(this.getUsedBranch()!==this.left)return this.right.hasEffects(Z);return!1}hasEffectsOnInteractionAtPath(Z,q,J){let Q=this.getUsedBranch();if(!Q)return this.left.hasEffectsOnInteractionAtPath(Z,q,J)||this.right.hasEffectsOnInteractionAtPath(Z,q,J);return Q.hasEffectsOnInteractionAtPath(Z,q,J)}include(Z,q){this.included=!0;let J=this.getUsedBranch();if(q||J===this.right&&this.left.shouldBeIncluded(Z)||!J)this.left.include(Z,q),this.right.include(Z,q);else J.include(Z,q)}render(Z,q,{isCalleeOfRenderedParent:J,preventASI:Q,renderedParentType:Y,renderedSurroundingElement:z}=n1){if(!this.left.included||!this.right.included){let X=o1(Z.original,this.operator,this.left.end);if(this.right.included){let V=W8(Z.original,X+2);if(Z.remove(this.start,V),Q)a4(Z,V,this.right.start)}else Z.remove(X,this.end);_Y(this,Z),this.getUsedBranch().render(Z,q,{isCalleeOfRenderedParent:J,preventASI:Q,renderedParentType:Y||this.parent.type,renderedSurroundingElement:z||this.parent.type})}else this.left.render(Z,q,{preventASI:Q,renderedSurroundingElement:z}),this.right.render(Z,q)}getUsedBranch(){if(!this.isBranchResolutionAnalysed){this.isBranchResolutionAnalysed=!0;let Z=this.left.getLiteralValueAtPath(G1,r1,this);if(typeof Z==="symbol")return null;else this.usedBranch=this.operator==="||"&&Z||this.operator==="&&"&&!Z||this.operator==="??"&&Z!=null?this.left:this.right}return this.usedBranch}};K2=class K2 extends t{addAccessedGlobals(Z,q){let J=this.metaProperty,Q=(J&&(J.startsWith(q8)||J.startsWith(p6)||J.startsWith(z4))?kj:xj)[Z];if(Q.length>0)this.scope.addAccessedGlobals(Q,q)}getReferencedFileName(Z){let q=this.metaProperty;if(q&&q.startsWith(q8))return Z.getFileName(q.substring(q8.length));return null}hasEffects(){return!1}hasEffectsOnInteractionAtPath(Z,{type:q}){return Z.length>1||q!==S1}include(){if(!this.included){if(this.included=!0,this.meta.name==="import"){this.context.addImportMeta(this);let Z=this.parent;this.metaProperty=Z instanceof y8&&typeof Z.propertyKey==="string"?Z.propertyKey:null}}}renderFinalMechanism(Z,q,J,Q,Y){var z;let X=this.parent,V=this.metaProperty;if(V&&(V.startsWith(q8)||V.startsWith(p6)||V.startsWith(z4))){let K=null,G=null,F=null,M;if(V.startsWith(q8))K=V.substring(q8.length),M=Y.getFileName(K);else if(V.startsWith(p6))U5(`Using the "${p6}" prefix to reference files is deprecated. Use the "${q8}" prefix instead.`,!0,this.context.options),G=V.substring(p6.length),M=Y.getFileName(G);else U5(`Using the "${z4}" prefix to reference files is deprecated. Use the "${q8}" prefix instead.`,!0,this.context.options),F=V.substring(z4.length),M=Y.getFileName(F);let B=Y0(WZ(x5(q),M)),H;if(G!==null)H=Y.hookFirstSync("resolveAssetUrl",[{assetFileName:M,chunkId:q,format:J,moduleId:this.context.module.id,relativeAssetPath:B}]);if(!H)H=Y.hookFirstSync("resolveFileUrl",[{assetReferenceId:G,chunkId:q,chunkReferenceId:F,fileName:M,format:J,moduleId:this.context.module.id,referenceId:K||G||F,relativePath:B}])||vj[J](B);Z.overwrite(X.start,X.end,H,{contentOnly:!0});return}let W=Y.hookFirstSync("resolveImportMeta",[V,{chunkId:q,format:J,moduleId:this.context.module.id}])||((z=IQ[J])===null||z===void 0?void 0:z.call(IQ,V,{chunkId:q,snippets:Q}));if(typeof W==="string")if(X instanceof y8)Z.overwrite(X.start,X.end,W,{contentOnly:!0});else Z.overwrite(this.start,this.end,W,{contentOnly:!0})}};xj={amd:["document","module","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module"],umd:["document","require","URL"]},kj={amd:["document","require","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module","URL"],umd:["document","require","URL"]},vj={amd:(Z)=>{if(Z[0]!==".")Z="./"+Z;return i5(`require.toUrl('${Z}'), document.baseURI`)},cjs:(Z)=>`(typeof document === 'undefined' ? ${i5(`'file:' + __dirname + '/${Z}'`,"(require('u' + 'rl').URL)")} : ${T9(Z)})`,es:(Z)=>i5(`'${Z}', import.meta.url`),iife:(Z)=>T9(Z),system:(Z)=>i5(`'${Z}', module.meta.url`),umd:(Z)=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${i5(`'file:' + __dirname + '/${Z}'`,"(require('u' + 'rl').URL)")} : ${T9(Z,!0)})`},IQ={amd:X4(()=>i5("module.uri, document.baseURI")),cjs:X4((Z)=>`(typeof document === 'undefined' ? ${i5("'file:' + __filename","(require('u' + 'rl').URL)")} : ${A9(Z)})`),iife:X4((Z)=>A9(Z)),system:(Z,{snippets:{getPropertyAccess:q}})=>Z===null?"module.meta":`module.meta${q(Z)}`,umd:X4((Z)=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${i5("'file:' + __filename","(require('u' + 'rl').URL)")} : ${A9(Z,!0)})`)};G2=class G2 extends t{hasEffects(Z){try{for(let q of this.arguments)if(q.hasEffects(Z))return!0;if(this.context.options.treeshake.annotations&&this.annotations)return!1;return this.callee.hasEffects(Z)||this.callee.hasEffectsOnInteractionAtPath(G1,this.interaction,Z)}finally{if(!this.deoptimized)this.applyDeoptimizations()}}hasEffectsOnInteractionAtPath(Z,{type:q}){return Z.length>0||q!==S1}include(Z,q){if(!this.deoptimized)this.applyDeoptimizations();if(q)super.include(Z,q);else this.included=!0,this.callee.include(Z,!1);this.callee.includeCallArguments(Z,this.arguments)}initialise(){this.interaction={args:this.arguments,thisArg:null,type:T1,withNew:!0}}render(Z,q){this.callee.render(Z,q),xY(Z,q,this)}applyDeoptimizations(){this.deoptimized=!0;for(let Z of this.arguments)Z.deoptimizePath(_1);this.context.requestTreeshakingPass()}};$2=class $2 extends t{constructor(){super(...arguments);this.objectEntity=null}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(Z){this.getObjectEntity().deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,J){this.getObjectEntity().deoptimizeThisOnInteractionAtPath(Z,q,J)}getLiteralValueAtPath(Z,q,J){return this.getObjectEntity().getLiteralValueAtPath(Z,q,J)}getReturnExpressionWhenCalledAtPath(Z,q,J,Q){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(Z,q,J,Q)}hasEffectsOnInteractionAtPath(Z,q,J){return this.getObjectEntity().hasEffectsOnInteractionAtPath(Z,q,J)}render(Z,q,{renderedSurroundingElement:J}=n1){if(super.render(Z,q),J===w5||J===UY)Z.appendRight(this.start,"("),Z.prependLeft(this.end,")")}applyDeoptimizations(){}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let Z=Q8,q=[];for(let J of this.properties){if(J instanceof Y6){q.push({key:u1,kind:"init",property:J});continue}let Q;if(J.computed){let Y=J.key.getLiteralValueAtPath(G1,r1,this);if(typeof Y==="symbol"){q.push({key:u1,kind:J.kind,property:J});continue}else Q=String(Y)}else if(Q=J.key instanceof d1?J.key.name:String(J.key.value),Q==="__proto__"&&J.kind==="init"){Z=J.value instanceof z6&&J.value.value===null?null:J.value;continue}q.push({key:Q,kind:J.kind,property:J})}return this.objectEntity=new z5(q,Z)}};U2=class U2 extends t{};cZ=class cZ extends t{constructor(){super(...arguments);this.hasCachedEffect=!1}hasEffects(Z){if(this.hasCachedEffect)return!0;for(let q of this.body)if(q.hasEffects(Z))return this.hasCachedEffect=!0;return!1}include(Z,q){this.included=!0;for(let J of this.body)if(q||J.shouldBeIncluded(Z))J.include(Z,q)}render(Z,q){if(this.body.length)L0(this.body,Z,this.start,this.end,q);else super.render(Z,q)}applyDeoptimizations(){}};j2=class j2 extends hZ{constructor(){super(...arguments);this.declarationInit=null}declare(Z,q){return this.declarationInit=q,this.value.declare(Z,Y1)}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();let q=this.context.options.treeshake.propertyReadSideEffects;return this.parent.type==="ObjectPattern"&&q==="always"||this.key.hasEffects(Z)||this.value.hasEffects(Z)}markDeclarationReached(){this.value.markDeclarationReached()}render(Z,q){if(!this.shorthand)this.key.render(Z,q);this.value.render(Z,q,{isShorthandProperty:this.shorthand})}applyDeoptimizations(){if(this.deoptimized=!0,this.declarationInit!==null)this.declarationInit.deoptimizePath([u1,u1]),this.context.requestTreeshakingPass()}};B2=class B2 extends t{deoptimizePath(Z){var q;(q=this.value)===null||q===void 0||q.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,J){var Q;(Q=this.value)===null||Q===void 0||Q.deoptimizeThisOnInteractionAtPath(Z,q,J)}getLiteralValueAtPath(Z,q,J){return this.value?this.value.getLiteralValueAtPath(Z,q,J):E1}getReturnExpressionWhenCalledAtPath(Z,q,J,Q){return this.value?this.value.getReturnExpressionWhenCalledAtPath(Z,q,J,Q):Y1}hasEffects(Z){var q;return this.key.hasEffects(Z)||this.static&&!!((q=this.value)===null||q===void 0?void 0:q.hasEffects(Z))}hasEffectsOnInteractionAtPath(Z,q,J){return!this.value||this.value.hasEffectsOnInteractionAtPath(Z,q,J)}applyDeoptimizations(){}};H2=class H2 extends t{hasEffects(Z){var q;if(!Z.ignore.returnYield||((q=this.argument)===null||q===void 0?void 0:q.hasEffects(Z)))return!0;return Z.brokenFlow=S8,!1}include(Z,q){var J;this.included=!0,(J=this.argument)===null||J===void 0||J.include(Z,q),Z.brokenFlow=S8}initialise(){this.scope.addReturnExpression(this.argument||Y1)}render(Z,q){if(this.argument){if(this.argument.render(Z,q,{preventASI:!0}),this.argument.start===this.start+6)Z.prependLeft(this.start+6," ")}}};M2=class M2 extends t{deoptimizePath(Z){this.expressions[this.expressions.length-1].deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,J){this.expressions[this.expressions.length-1].deoptimizeThisOnInteractionAtPath(Z,q,J)}getLiteralValueAtPath(Z,q,J){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(Z,q,J)}hasEffects(Z){for(let q of this.expressions)if(q.hasEffects(Z))return!0;return!1}hasEffectsOnInteractionAtPath(Z,q,J){return this.expressions[this.expressions.length-1].hasEffectsOnInteractionAtPath(Z,q,J)}include(Z,q){this.included=!0;let J=this.expressions[this.expressions.length-1];for(let Q of this.expressions)if(q||Q===J&&!(this.parent instanceof N0)||Q.shouldBeIncluded(Z))Q.include(Z,q)}render(Z,q,{renderedParentType:J,isCalleeOfRenderedParent:Q,preventASI:Y}=n1){let z=0,X=null,V=this.expressions[this.expressions.length-1];for(let{node:W,separator:K,start:G,end:F}of IY(this.expressions,Z,this.start,this.end)){if(!W.included){yZ(W,Z,G,F);continue}if(z++,X=K,z===1&&Y)a4(Z,G,W.start);if(z===1){let M=J||this.parent.type;W.render(Z,q,{isCalleeOfRenderedParent:Q&&W===V,renderedParentType:M,renderedSurroundingElement:M})}else W.render(Z,q)}if(X)Z.remove(X,this.end)}};F2=class F2 extends t{createScope(Z){this.scope=new $8(Z)}hasEffects(Z){for(let q of this.body)if(q.hasEffects(Z))return!0;return!1}include(Z,q){this.included=!0;for(let J of this.body)if(q||J.shouldBeIncluded(Z))J.include(Z,q)}render(Z,q){if(this.body.length)L0(this.body,Z,this.start+1,this.end-1,q);else super.render(Z,q)}};L2=class L2 extends t{bind(){this.variable=this.scope.findVariable("this")}deoptimizePath(Z){this.variable.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,J){this.variable.deoptimizeThisOnInteractionAtPath(Z,q,J)}include(){if(!this.included)this.included=!0,this.context.includeVariableInModule(this.variable)}};pZ=class pZ extends t{hasEffects(Z){var q;if((q=this.test)===null||q===void 0?void 0:q.hasEffects(Z))return!0;for(let J of this.consequent){if(Z.brokenFlow)break;if(J.hasEffects(Z))return!0}return!1}include(Z,q){var J;this.included=!0,(J=this.test)===null||J===void 0||J.include(Z,q);for(let Q of this.consequent)if(q||Q.shouldBeIncluded(Z))Q.include(Z,q)}render(Z,q,J){if(this.consequent.length){this.test&&this.test.render(Z,q);let Q=this.test?this.test.end:o1(Z.original,"default",this.start)+7,Y=o1(Z.original,":",Q)+1;L0(this.consequent,Z,Y,J.end,q)}else super.render(Z,q)}};pZ.prototype.needsBoundaries=!0;N2=class N2 extends t{createScope(Z){this.scope=new $8(Z)}hasEffects(Z){if(this.discriminant.hasEffects(Z))return!0;let{brokenFlow:q,ignore:{breaks:J}}=Z,Q=1/0;Z.ignore.breaks=!0;for(let Y of this.cases){if(Y.hasEffects(Z))return!0;Q=Z.brokenFlow<Q?Z.brokenFlow:Q,Z.brokenFlow=q}if(this.defaultCase!==null&&Q!==Q6)Z.brokenFlow=Q;return Z.ignore.breaks=J,!1}include(Z,q){this.included=!0,this.discriminant.include(Z,q);let{brokenFlow:J}=Z,Q=1/0,Y=q||this.defaultCase!==null&&this.defaultCase<this.cases.length-1;for(let z=this.cases.length-1;z>=0;z--){let X=this.cases[z];if(X.included)Y=!0;if(!Y){let V=c4();V.ignore.breaks=!0,Y=X.hasEffects(V)}if(Y)X.include(Z,q),Q=Q<Z.brokenFlow?Q:Z.brokenFlow,Z.brokenFlow=J;else Q=J}if(Y&&this.defaultCase!==null&&Q!==Q6)Z.brokenFlow=Q}initialise(){for(let Z=0;Z<this.cases.length;Z++)if(this.cases[Z].test===null){this.defaultCase=Z;return}this.defaultCase=null}render(Z,q){if(this.discriminant.render(Z,q),this.cases.length>0)L0(this.cases,Z,this.cases[0].start,this.end-1,q)}};w2=class w2 extends fZ{bind(){if(super.bind(),this.tag.type===HY){let Z=this.tag.name;if(this.scope.findVariable(Z).isNamespace)this.context.warn({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${Z}')`},this.start)}}hasEffects(Z){try{for(let q of this.quasi.expressions)if(q.hasEffects(Z))return!0;return this.tag.hasEffects(Z)||this.tag.hasEffectsOnInteractionAtPath(G1,this.interaction,Z)}finally{if(!this.deoptimized)this.applyDeoptimizations()}}include(Z,q){if(!this.deoptimized)this.applyDeoptimizations();if(q)super.include(Z,q);else this.included=!0,this.tag.include(Z,q),this.quasi.include(Z,q);this.tag.includeCallArguments(Z,this.interaction.args);let J=this.getReturnExpression();if(!J.included)J.include(Z,!1)}initialise(){this.interaction={args:[Y1,...this.quasi.expressions],thisArg:this.tag instanceof y8&&!this.tag.variable?this.tag.object:null,type:T1,withNew:!1}}render(Z,q){this.tag.render(Z,q,{isCalleeOfRenderedParent:!0}),this.quasi.render(Z,q)}applyDeoptimizations(){if(this.deoptimized=!0,this.interaction.thisArg)this.tag.deoptimizeThisOnInteractionAtPath(this.interaction,G1,r1);for(let Z of this.quasi.expressions)Z.deoptimizePath(_1);this.context.requestTreeshakingPass()}getReturnExpression(Z=r1){if(this.returnExpression===null)return this.returnExpression=Y1,this.returnExpression=this.tag.getReturnExpressionWhenCalledAtPath(G1,this.interaction,Z,this);return this.returnExpression}};O2=class O2 extends t{bind(){}hasEffects(){return!1}include(){this.included=!0}parseNode(Z){this.value=Z.value,super.parseNode(Z)}render(){}};iZ=class iZ extends t{deoptimizeThisOnInteractionAtPath(){}getLiteralValueAtPath(Z){if(Z.length>0||this.quasis.length!==1)return E1;return this.quasis[0].value.cooked}getReturnExpressionWhenCalledAtPath(Z){if(Z.length!==1)return Y1;return F0(z0,Z[0])}hasEffectsOnInteractionAtPath(Z,q,J){if(q.type===S1)return Z.length>1;if(q.type===T1&&Z.length===1)return M0(z0,Z[0],q,J);return!0}render(Z,q){Z.indentExclusionRanges.push([this.start,this.end]),super.render(Z,q)}};nZ=class nZ extends G8{constructor(){super("undefined")}getLiteralValueAtPath(){return}};f5=class f5 extends A5{constructor(Z,q,J){super(Z,q,q.declaration,J);this.hasId=!1,this.originalId=null,this.originalVariable=null;let Q=q.declaration;if((Q instanceof X6||Q instanceof V0)&&Q.id)this.hasId=!0,this.originalId=Q.id;else if(Q instanceof d1)this.originalId=Q}addReference(Z){if(!this.hasId)this.name=Z.name}getAssignedVariableName(){return this.originalId&&this.originalId.name||null}getBaseVariableName(){let Z=this.getOriginalVariable();if(Z===this)return super.getBaseVariableName();else return Z.getBaseVariableName()}getDirectOriginalVariable(){return this.originalId&&(this.hasId||!(this.originalId.isPossibleTDZ()||this.originalId.variable.isReassigned||this.originalId.variable instanceof nZ||("syntheticNamespace"in this.originalId.variable)))?this.originalId.variable:null}getName(Z){let q=this.getOriginalVariable();if(q===this)return super.getName(Z);else return q.getName(Z)}getOriginalVariable(){if(this.originalVariable)return this.originalVariable;let Z=this,q,J=new Set;do J.add(Z),q=Z,Z=q.getDirectOriginalVariable();while(Z instanceof f5&&!J.has(Z));return this.originalVariable=Z||q}};aZ=class aZ extends T5{constructor(Z,q){super(Z);this.context=q,this.variables.set("this",new A5("this",null,H0,q))}addExportDefaultDeclaration(Z,q,J){let Q=new f5(Z,q,J);return this.variables.set("default",Q),Q}addNamespaceMemberAccess(){}deconflict(Z,q,J){for(let Q of this.children)Q.deconflict(Z,q,J)}findLexicalBoundary(){return this}findVariable(Z){let q=this.variables.get(Z)||this.accessedOutsideVariables.get(Z);if(q)return q;let J=this.context.traceVariable(Z)||this.parent.findVariable(Z);if(J instanceof n4)this.accessedOutsideVariables.set(Z,J);return J}};R2=class R2 extends t{bind(){this.variable=this.scope.findVariable("this")}deoptimizePath(Z){this.variable.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,q,J){this.variable.deoptimizeThisOnInteractionAtPath(Z.thisArg===this?{...Z,thisArg:this.variable}:Z,q,J)}hasEffectsOnInteractionAtPath(Z,q,J){if(Z.length===0)return q.type!==S1;return this.variable.hasEffectsOnInteractionAtPath(Z,q,J)}include(){if(!this.included)this.included=!0,this.context.includeVariableInModule(this.variable)}initialise(){if(this.alias=this.scope.findLexicalBoundary()instanceof aZ?this.context.moduleContext:null,this.alias==="undefined")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(Z){if(this.alias!==null)Z.overwrite(this.start,this.end,this.alias,{contentOnly:!1,storeName:!0})}};C2=class C2 extends t{hasEffects(){return!0}include(Z,q){this.included=!0,this.argument.include(Z,q),Z.brokenFlow=S8}render(Z,q){if(this.argument.render(Z,q,{preventASI:!0}),this.argument.start===this.start+5)Z.prependLeft(this.start+5," ")}};_2=class _2 extends t{constructor(){super(...arguments);this.directlyIncluded=!1,this.includedLabelsAfterBlock=null}hasEffects(Z){var q;return(this.context.options.treeshake.tryCatchDeoptimization?this.block.body.length>0:this.block.hasEffects(Z))||!!((q=this.finalizer)===null||q===void 0?void 0:q.hasEffects(Z))}include(Z,q){var J,Q;let Y=(J=this.context.options.treeshake)===null||J===void 0?void 0:J.tryCatchDeoptimization,{brokenFlow:z}=Z;if(!this.directlyIncluded||!Y){if(this.included=!0,this.directlyIncluded=!0,this.block.include(Z,Y?NY:q),Z.includedLabels.size>0)this.includedLabelsAfterBlock=[...Z.includedLabels];Z.brokenFlow=z}else if(this.includedLabelsAfterBlock)for(let X of this.includedLabelsAfterBlock)Z.includedLabels.add(X);if(this.handler!==null)this.handler.include(Z,q),Z.brokenFlow=z;(Q=this.finalizer)===null||Q===void 0||Q.include(Z,q)}};fj={"!":(Z)=>!Z,"+":(Z)=>+Z,"-":(Z)=>-Z,delete:()=>E1,typeof:(Z)=>typeof Z,void:()=>{return},"~":(Z)=>~Z};I2=class I2 extends t{getLiteralValueAtPath(Z,q,J){if(Z.length>0)return E1;let Q=this.argument.getLiteralValueAtPath(G1,q,J);if(typeof Q==="symbol")return E1;return fj[this.operator](Q)}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();if(this.operator==="typeof"&&this.argument instanceof d1)return!1;return this.argument.hasEffects(Z)||this.operator==="delete"&&this.argument.hasEffectsOnInteractionAtPath(G1,HZ,Z)}hasEffectsOnInteractionAtPath(Z,{type:q}){return q!==S1||Z.length>(this.operator==="void"?0:1)}applyDeoptimizations(){if(this.deoptimized=!0,this.operator==="delete")this.argument.deoptimizePath(G1),this.context.requestTreeshakingPass()}};D2=class D2 extends t{hasEffects(){return!0}include(Z){super.include(Z,!0)}};T2=class T2 extends t{hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();return this.argument.hasEffectsAsAssignmentTarget(Z,!0)}hasEffectsOnInteractionAtPath(Z,{type:q}){return Z.length>1||q!==S1}include(Z,q){if(!this.deoptimized)this.applyDeoptimizations();this.included=!0,this.argument.includeAsAssignmentTarget(Z,q,!0)}initialise(){this.argument.setAssignedValue(Y1)}render(Z,q){let{exportNamesByVariable:J,format:Q,snippets:{_:Y}}=q;if(this.argument.render(Z,q),Q==="system"){let z=this.argument.variable,X=J.get(z);if(X)if(this.prefix)if(X.length===1)xZ(z,this.start,this.end,Z,q);else DY(z,this.start,this.end,this.parent.type!==w5,Z,q);else{let V=this.operator[0];Oj(z,this.start,this.end,this.parent.type!==w5,Z,q,`${Y}${V}${Y}1`)}}}applyDeoptimizations(){if(this.deoptimized=!0,this.argument.deoptimizePath(G1),this.argument instanceof d1){let Z=this.scope.findVariable(this.argument.name);Z.isReassigned=!0}this.context.requestTreeshakingPass()}};sZ=class sZ extends t{deoptimizePath(){for(let Z of this.declarations)Z.deoptimizePath(G1)}hasEffectsOnInteractionAtPath(){return!1}include(Z,q,{asSingleStatement:J}=n1){this.included=!0;for(let Q of this.declarations){if(q||Q.shouldBeIncluded(Z))Q.include(Z,q);if(J)Q.id.include(Z,q)}}initialise(){for(let Z of this.declarations)Z.declareDeclarator(this.kind)}render(Z,q,J=n1){if(hj(this.declarations,q.exportNamesByVariable)){for(let Q of this.declarations)Q.render(Z,q);if(!J.isNoStatement&&Z.original.charCodeAt(this.end-1)!==59)Z.appendLeft(this.end,";")}else this.renderReplacedDeclarations(Z,q)}applyDeoptimizations(){}renderDeclarationEnd(Z,q,J,Q,Y,z,X){if(Z.original.charCodeAt(this.end-1)===59)Z.remove(this.end-1,this.end);if(q+=";",J!==null){if(Z.original.charCodeAt(Q-1)===10&&(Z.original.charCodeAt(this.end)===10||Z.original.charCodeAt(this.end)===13)){if(Q--,Z.original.charCodeAt(Q)===13)Q--}if(Q===J+1)Z.overwrite(J,Y,q);else Z.overwrite(J,J+1,q),Z.remove(Q,Y)}else Z.appendLeft(Y,q);if(z.length>0)Z.appendLeft(Y,` ${b8(z,X)};`)}renderReplacedDeclarations(Z,q){let J=IY(this.declarations,Z,this.start+this.kind.length,this.end-(Z.original.charCodeAt(this.end-1)===59?1:0)),Q,Y;Y=W8(Z.original,this.start+this.kind.length);let z=Y-1;Z.remove(this.start,z);let X=!1,V=!1,W="",K,G,F=[],M=gj(J,q,F);for(let{node:B,start:H,separator:N,contentEnd:C,end:A}of J){if(!B.included){Z.remove(H,A);continue}if(B.render(Z,q),K="",G="",!B.id.included||B.id instanceof d1&&A2(B.id.variable,q.exportNamesByVariable)){if(V)W+=";";X=!1}else{if(M&&M===B.id.variable){let S=o1(Z.original,"=",B.id.end);xZ(M,W8(Z.original,S+1),N===null?C:N,Z,q)}if(X)W+=",";else{if(V)W+=";";K+=`${this.kind} `,X=!0}}if(Y===z+1)Z.overwrite(z,Y,W+K);else Z.overwrite(z,z+1,W),Z.appendLeft(Y,K);Q=C,Y=A,V=!0,z=N,W=G}this.renderDeclarationEnd(Z,W,z,Q,Y,F,q)}};P2=class P2 extends t{declareDeclarator(Z){this.id.declare(Z,this.init||H0)}deoptimizePath(Z){this.id.deoptimizePath(Z)}hasEffects(Z){var q;let J=(q=this.init)===null||q===void 0?void 0:q.hasEffects(Z);return this.id.markDeclarationReached(),J||this.id.hasEffects(Z)}include(Z,q){var J;if(this.included=!0,(J=this.init)===null||J===void 0||J.include(Z,q),this.id.markDeclarationReached(),q||this.id.shouldBeIncluded(Z))this.id.include(Z,q)}render(Z,q){let{exportNamesByVariable:J,snippets:{_:Q}}=q,Y=this.id.included;if(Y)this.id.render(Z,q);else{let z=o1(Z.original,"=",this.id.end);Z.remove(this.start,W8(Z.original,z+1))}if(this.init)this.init.render(Z,q,Y?n1:{renderedSurroundingElement:w5});else if(this.id instanceof d1&&A2(this.id.variable,J))Z.appendLeft(this.end,`${Q}=${Q}void 0`)}applyDeoptimizations(){}};S2=class S2 extends t{hasEffects(Z){if(this.test.hasEffects(Z))return!0;let{brokenFlow:q,ignore:{breaks:J,continues:Q}}=Z;if(Z.ignore.breaks=!0,Z.ignore.continues=!0,this.body.hasEffects(Z))return!0;return Z.ignore.breaks=J,Z.ignore.continues=Q,Z.brokenFlow=q,!1}include(Z,q){this.included=!0,this.test.include(Z,q);let{brokenFlow:J}=Z;this.body.include(Z,q,{asSingleStatement:!0}),Z.brokenFlow=J}};y2=class y2 extends t{hasEffects(Z){var q;if(!this.deoptimized)this.applyDeoptimizations();return!(Z.ignore.returnYield&&!((q=this.argument)===null||q===void 0?void 0:q.hasEffects(Z)))}render(Z,q){if(this.argument){if(this.argument.render(Z,q,{preventASI:!0}),this.argument.start===this.start+5)Z.prependLeft(this.start+5," ")}}};DQ={ArrayExpression:OY,ArrayPattern:RY,ArrowFunctionExpression:bZ,AssignmentExpression:TY,AssignmentPattern:AY,AwaitExpression:yY,BinaryExpression:EY,BlockStatement:X0,BreakStatement:bY,CallExpression:fY,CatchClause:gY,ChainExpression:mY,ClassBody:dY,ClassDeclaration:V0,ClassExpression:cY,ConditionalExpression:pY,ContinueStatement:iY,DoWhileStatement:nY,EmptyStatement:aY,ExportAllDeclaration:t4,ExportDefaultDeclaration:w0,ExportNamedDeclaration:mZ,ExportSpecifier:sY,ExpressionStatement:N0,ForInStatement:rY,ForOfStatement:oY,ForStatement:tY,FunctionDeclaration:X6,FunctionExpression:eY,Identifier:d1,IfStatement:uZ,ImportDeclaration:dZ,ImportDefaultSpecifier:Z2,ImportExpression:Y2,ImportNamespaceSpecifier:z2,ImportSpecifier:X2,LabeledStatement:V2,Literal:z6,LogicalExpression:W2,MemberExpression:y8,MetaProperty:K2,MethodDefinition:T4,NewExpression:G2,ObjectExpression:$2,ObjectPattern:kZ,PrivateIdentifier:U2,Program:cZ,Property:j2,PropertyDefinition:B2,RestElement:EZ,ReturnStatement:H2,SequenceExpression:M2,SpreadElement:Y6,StaticBlock:F2,Super:L2,SwitchCase:pZ,SwitchStatement:N2,TaggedTemplateExpression:w2,TemplateElement:O2,TemplateLiteral:iZ,ThisExpression:R2,ThrowStatement:C2,TryStatement:_2,UnaryExpression:I2,UnknownNode:D2,UpdateExpression:T2,VariableDeclaration:sZ,VariableDeclarator:P2,WhileStatement:S2,YieldExpression:y2};E2=class E2 extends G8{constructor(Z){super(V6);this.module=Z}include(){super.include(),this.module.needsExportShim=!0}};q6=class q6 extends G8{constructor(Z){super(Z.getModuleName());this.memberVariables=null,this.mergedNamespaces=[],this.referencedEarly=!1,this.references=[],this.context=Z,this.module=Z.module}addReference(Z){this.references.push(Z),this.name=Z.name}getMemberVariables(){if(this.memberVariables)return this.memberVariables;let Z=Object.create(null);for(let q of this.context.getExports().concat(this.context.getReexports()))if(q[0]!=="*"&&q!==this.module.info.syntheticNamedExports){let J=this.context.traceExport(q);if(J)Z[q]=J}return this.memberVariables=Z}include(){this.included=!0,this.context.includeAllExports()}prepare(Z){if(this.mergedNamespaces.length>0)this.module.scope.addAccessedGlobals([P4],Z)}renderBlock(Z){let{exportNamesByVariable:q,format:J,freeze:Q,indent:Y,namespaceToStringTag:z,snippets:{_:X,cnst:V,getObject:W,getPropertyAccess:K,n:G,s:F}}=Z,M=this.getMemberVariables(),B=Object.entries(M).map(([C,A])=>{if(this.referencedEarly||A.isReassigned)return[null,`get ${C}${X}()${X}{${X}return ${A.getName(K)}${F}${X}}`];return[C,A.getName(K)]});B.unshift([null,`__proto__:${X}null`]);let H=W(B,{lineBreakIndent:{base:"",t:Y}});if(this.mergedNamespaces.length>0){let C=this.mergedNamespaces.map((A)=>A.getName(K));H=`/*#__PURE__*/${P4}(${H},${X}[${C.join(`,${X}`)}])`}else{if(z)H=`/*#__PURE__*/Object.defineProperty(${H},${X}Symbol.toStringTag,${X}${K0(W)})`;if(Q)H=`/*#__PURE__*/Object.freeze(${H})`}let N=this.getName(K);if(H=`${V} ${N}${X}=${X}${H};`,J==="system"&&q.has(this))H+=`${G}${b8([this],Z)};`;return H}renderFirst(){return this.referencedEarly}setMergedNamespaces(Z){this.mergedNamespaces=Z;let q=this.context.getModuleExecIndex();for(let J of this.references)if(J.context.getModuleExecIndex()<=q){this.referencedEarly=!0;break}}};q6.prototype.isNamespace=!0;G5=class G5 extends G8{constructor(Z,q,J){super(q);this.baseVariable=null,this.context=Z,this.module=Z.module,this.syntheticNamespace=J}getBaseVariable(){if(this.baseVariable)return this.baseVariable;let Z=this.syntheticNamespace;while(Z instanceof f5||Z instanceof G5){if(Z instanceof f5){let q=Z.getOriginalVariable();if(q===Z)break;Z=q}if(Z instanceof G5)Z=Z.syntheticNamespace}return this.baseVariable=Z}getBaseVariableName(){return this.syntheticNamespace.getBaseVariableName()}getName(Z){return`${this.syntheticNamespace.getName(Z)}${Z(this.name)}`}include(){this.included=!0,this.context.includeVariableInModule(this.syntheticNamespace)}setRenderNames(Z,q){super.setRenderNames(Z,q)}};(function(Z){Z[Z.LOAD_AND_PARSE=0]="LOAD_AND_PARSE",Z[Z.ANALYSE=1]="ANALYSE",Z[Z.GENERATE=2]="GENERATE"})(Y8||(Y8={}));G0=new Map;s1=S4,i1=S4,cj=["load","resolveDynamicImport","resolveId","transform"];TQ={identifier:null,localName:V6};tj={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};FB={amd:ej,cjs:ZB,es:JB,iife:XB,system:VB,umd:MB};wB={amd:V4,cjs:V4,es:SQ,iife:V4,system:SQ,umd:V4};CB=/[\\'\r\n\u2028\u2029]/,_B=/(['\r\n\u2028\u2029])/g,IB=/\\/g;tZ=Symbol("bundleKeys"),d2={type:"placeholder"};yQ=[".js",".jsx",".ts",".tsx"];kB=/[?#]/;kQ=/^(?!\d)[\w$]+$/;rB=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,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,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,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,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239],c2=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,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,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,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,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,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,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,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,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938],b9={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"},tB={5:x9,"5module":x9+" export import",6:x9+" const class extends export import super"},eB=/^in(stanceof)?$/,ZH=new RegExp("["+p2+"]"),qH=new RegExp("["+p2+oB+"]");F5={beforeExpr:!0},Y5={startsExpr:!0},eZ={};O={num:new R1("num",Y5),regexp:new R1("regexp",Y5),string:new R1("string",Y5),name:new R1("name",Y5),privateId:new R1("privateId",Y5),eof:new R1("eof"),bracketL:new R1("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new R1("]"),braceL:new R1("{",{beforeExpr:!0,startsExpr:!0}),braceR:new R1("}"),parenL:new R1("(",{beforeExpr:!0,startsExpr:!0}),parenR:new R1(")"),comma:new R1(",",F5),semi:new R1(";",F5),colon:new R1(":",F5),dot:new R1("."),question:new R1("?",F5),questionDot:new R1("?."),arrow:new R1("=>",F5),template:new R1("template"),invalidTemplate:new R1("invalidTemplate"),ellipsis:new R1("...",F5),backQuote:new R1("`",Y5),dollarBraceL:new R1("${",{beforeExpr:!0,startsExpr:!0}),eq:new R1("=",{beforeExpr:!0,isAssign:!0}),assign:new R1("_=",{beforeExpr:!0,isAssign:!0}),incDec:new R1("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new R1("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:M5("||",1),logicalAND:M5("&&",2),bitwiseOR:M5("|",3),bitwiseXOR:M5("^",4),bitwiseAND:M5("&",5),equality:M5("==/!=/===/!==",6),relational:M5("</>/<=/>=",7),bitShift:M5("<</>>/>>>",8),plusMin:new R1("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:M5("%",10),star:M5("*",10),slash:M5("/",10),starstar:new R1("**",{beforeExpr:!0}),coalesce:M5("??",1),_break:F1("break"),_case:F1("case",F5),_catch:F1("catch"),_continue:F1("continue"),_debugger:F1("debugger"),_default:F1("default",F5),_do:F1("do",{isLoop:!0,beforeExpr:!0}),_else:F1("else",F5),_finally:F1("finally"),_for:F1("for",{isLoop:!0}),_function:F1("function",Y5),_if:F1("if"),_return:F1("return",F5),_switch:F1("switch"),_throw:F1("throw",F5),_try:F1("try"),_var:F1("var"),_const:F1("const"),_while:F1("while",{isLoop:!0}),_with:F1("with"),_new:F1("new",{beforeExpr:!0,startsExpr:!0}),_this:F1("this",Y5),_super:F1("super",Y5),_class:F1("class",Y5),_extends:F1("extends",F5),_export:F1("export"),_import:F1("import",Y5),_null:F1("null",Y5),_true:F1("true",Y5),_false:F1("false",Y5),_in:F1("in",{beforeExpr:!0,binop:7}),_instanceof:F1("instanceof",{beforeExpr:!0,binop:7}),_typeof:F1("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:F1("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:F1("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},O5=/\r\n?|\n|\u2028|\u2029/,JH=new RegExp(O5.source,"g");n2=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,N5=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,a2=Object.prototype,QH=a2.hasOwnProperty,YH=a2.toString,C0=Object.hasOwn||function(Z,q){return QH.call(Z,q)},hQ=Array.isArray||function(Z){return YH.call(Z)==="[object Array]"};zH=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;U0.prototype.offset=function(q){return new U0(this.line,this.column+q)};YZ={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};Jq=j0|U6|_0;h5={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};l1.prototype.parse=function(){var q=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(q)};h5.inFunction.get=function(){return(this.currentVarScope().flags&U6)>0};h5.inGenerator.get=function(){return(this.currentVarScope().flags&r2)>0&&!this.currentVarScope().inClassFieldInit};h5.inAsync.get=function(){return(this.currentVarScope().flags&Zq)>0&&!this.currentVarScope().inClassFieldInit};h5.canAwait.get=function(){for(var Z=this.scopeStack.length-1;Z>=0;Z--){var q=this.scopeStack[Z];if(q.inClassFieldInit||q.flags&_0)return!1;if(q.flags&U6)return(q.flags&Zq)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};h5.allowSuper.get=function(){var Z=this.currentThisScope(),q=Z.flags,J=Z.inClassFieldInit;return(q&qq)>0||J||this.options.allowSuperOutsideMethod};h5.allowDirectSuper.get=function(){return(this.currentThisScope().flags&e2)>0};h5.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};h5.allowNewDotTarget.get=function(){var Z=this.currentThisScope(),q=Z.flags,J=Z.inClassFieldInit;return(q&(U6|_0))>0||J};h5.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&_0)>0};l1.extend=function(){var q=[],J=arguments.length;while(J--)q[J]=arguments[J];var Q=this;for(var Y=0;Y<q.length;Y++)Q=q[Y](Q);return Q};l1.parse=function(q,J){return new this(J,q).parse()};l1.parseExpressionAt=function(q,J,Q){var Y=new this(Q,q,J);return Y.nextToken(),Y.parseExpression()};l1.tokenizer=function(q,J){return new this(J,q)};Object.defineProperties(l1.prototype,h5);J5=l1.prototype,WH=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;J5.strictDirective=function(Z){if(this.options.ecmaVersion<5)return!1;for(;;){N5.lastIndex=Z,Z+=N5.exec(this.input)[0].length;var q=WH.exec(this.input.slice(Z));if(!q)return!1;if((q[1]||q[2])==="use strict"){N5.lastIndex=Z+q[0].length;var J=N5.exec(this.input),Q=J.index+J[0].length,Y=this.input.charAt(Q);return Y===";"||Y==="}"||O5.test(J[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(Y)||Y==="!"&&this.input.charAt(Q+1)==="=")}if(Z+=q[0].length,N5.lastIndex=Z,Z+=N5.exec(this.input)[0].length,this.input[Z]===";")Z++}};J5.eat=function(Z){if(this.type===Z)return this.next(),!0;else return!1};J5.isContextual=function(Z){return this.type===O.name&&this.value===Z&&!this.containsEsc};J5.eatContextual=function(Z){if(!this.isContextual(Z))return!1;return this.next(),!0};J5.expectContextual=function(Z){if(!this.eatContextual(Z))this.unexpected()};J5.canInsertSemicolon=function(){return this.type===O.eof||this.type===O.braceR||O5.test(this.input.slice(this.lastTokEnd,this.start))};J5.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};J5.semicolon=function(){if(!this.eat(O.semi)&&!this.insertSemicolon())this.unexpected()};J5.afterTrailingComma=function(Z,q){if(this.type===Z){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!q)this.next();return!0}};J5.expect=function(Z){this.eat(Z)||this.unexpected()};J5.unexpected=function(Z){this.raise(Z!=null?Z:this.start,"Unexpected token")};J5.checkPatternErrors=function(Z,q){if(!Z)return;if(Z.trailingComma>-1)this.raiseRecoverable(Z.trailingComma,"Comma is not permitted after the rest element");var J=q?Z.parenthesizedAssign:Z.parenthesizedBind;if(J>-1)this.raiseRecoverable(J,"Parenthesized pattern")};J5.checkExpressionErrors=function(Z,q){if(!Z)return!1;var{shorthandAssign:J,doubleProto:Q}=Z;if(!q)return J>=0||Q>=0;if(J>=0)this.raise(J,"Shorthand property assignments are valid only in destructuring patterns");if(Q>=0)this.raiseRecoverable(Q,"Redefinition of __proto__ property")};J5.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos))this.raise(this.yieldPos,"Yield expression cannot be a default value");if(this.awaitPos)this.raise(this.awaitPos,"Await expression cannot be a default value")};J5.isSimpleAssignTarget=function(Z){if(Z.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(Z.expression);return Z.type==="Identifier"||Z.type==="MemberExpression"};X1=l1.prototype;X1.parseTopLevel=function(Z){var q=Object.create(null);if(!Z.body)Z.body=[];while(this.type!==O.eof){var J=this.parseStatement(null,!0,q);Z.body.push(J)}if(this.inModule)for(var Q=0,Y=Object.keys(this.undefinedExports);Q<Y.length;Q+=1){var z=Y[Q];this.raiseRecoverable(this.undefinedExports[z].start,"Export '"+z+"' is not defined")}return this.adaptDirectivePrologue(Z.body),this.next(),Z.sourceType=this.options.sourceType,this.finishNode(Z,"Program")};zq={kind:"loop"},KH={kind:"switch"};X1.isLet=function(Z){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;N5.lastIndex=this.pos;var q=N5.exec(this.input),J=this.pos+q[0].length,Q=this.input.charCodeAt(J);if(Q===91||Q===92||Q>55295&&Q<56320)return!0;if(Z)return!1;if(Q===123)return!0;if(s5(Q,!0)){var Y=J+1;while(W6(Q=this.input.charCodeAt(Y),!0))++Y;if(Q===92||Q>55295&&Q<56320)return!0;var z=this.input.slice(J,Y);if(!eB.test(z))return!0}return!1};X1.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;N5.lastIndex=this.pos;var Z=N5.exec(this.input),q=this.pos+Z[0].length,J;return!O5.test(this.input.slice(this.pos,q))&&this.input.slice(q,q+8)==="function"&&(q+8===this.input.length||!(W6(J=this.input.charCodeAt(q+8))||J>55295&&J<56320))};X1.parseStatement=function(Z,q,J){var Q=this.type,Y=this.startNode(),z;if(this.isLet(Z))Q=O._var,z="let";switch(Q){case O._break:case O._continue:return this.parseBreakContinueStatement(Y,Q.keyword);case O._debugger:return this.parseDebuggerStatement(Y);case O._do:return this.parseDoStatement(Y);case O._for:return this.parseForStatement(Y);case O._function:if(Z&&(this.strict||Z!=="if"&&Z!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(Y,!1,!Z);case O._class:if(Z)this.unexpected();return this.parseClass(Y,!0);case O._if:return this.parseIfStatement(Y);case O._return:return this.parseReturnStatement(Y);case O._switch:return this.parseSwitchStatement(Y);case O._throw:return this.parseThrowStatement(Y);case O._try:return this.parseTryStatement(Y);case O._const:case O._var:if(z=z||this.value,Z&&z!=="var")this.unexpected();return this.parseVarStatement(Y,z);case O._while:return this.parseWhileStatement(Y);case O._with:return this.parseWithStatement(Y);case O.braceL:return this.parseBlock(!0,Y);case O.semi:return this.parseEmptyStatement(Y);case O._export:case O._import:if(this.options.ecmaVersion>10&&Q===O._import){N5.lastIndex=this.pos;var X=N5.exec(this.input),V=this.pos+X[0].length,W=this.input.charCodeAt(V);if(W===40||W===46)return this.parseExpressionStatement(Y,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!q)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return Q===O._import?this.parseImport(Y):this.parseExport(Y,J);default:if(this.isAsyncFunction()){if(Z)this.unexpected();return this.next(),this.parseFunctionStatement(Y,!0,!Z)}var K=this.value,G=this.parseExpression();if(Q===O.name&&G.type==="Identifier"&&this.eat(O.colon))return this.parseLabeledStatement(Y,K,G,Z);else return this.parseExpressionStatement(Y,G)}};X1.parseBreakContinueStatement=function(Z,q){var J=q==="break";if(this.next(),this.eat(O.semi)||this.insertSemicolon())Z.label=null;else if(this.type!==O.name)this.unexpected();else Z.label=this.parseIdent(),this.semicolon();var Q=0;for(;Q<this.labels.length;++Q){var Y=this.labels[Q];if(Z.label==null||Y.name===Z.label.name){if(Y.kind!=null&&(J||Y.kind==="loop"))break;if(Z.label&&J)break}}if(Q===this.labels.length)this.raise(Z.start,"Unsyntactic "+q);return this.finishNode(Z,J?"BreakStatement":"ContinueStatement")};X1.parseDebuggerStatement=function(Z){return this.next(),this.semicolon(),this.finishNode(Z,"DebuggerStatement")};X1.parseDoStatement=function(Z){if(this.next(),this.labels.push(zq),Z.body=this.parseStatement("do"),this.labels.pop(),this.expect(O._while),Z.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(O.semi);else this.semicolon();return this.finishNode(Z,"DoWhileStatement")};X1.parseForStatement=function(Z){this.next();var q=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(zq),this.enterScope(0),this.expect(O.parenL),this.type===O.semi){if(q>-1)this.unexpected(q);return this.parseFor(Z,null)}var J=this.isLet();if(this.type===O._var||this.type===O._const||J){var Q=this.startNode(),Y=J?"let":this.value;if(this.next(),this.parseVar(Q,!0,Y),this.finishNode(Q,"VariableDeclaration"),(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&Q.declarations.length===1){if(this.options.ecmaVersion>=9)if(this.type===O._in){if(q>-1)this.unexpected(q)}else Z.await=q>-1;return this.parseForIn(Z,Q)}if(q>-1)this.unexpected(q);return this.parseFor(Z,Q)}var z=this.isContextual("let"),X=!1,V=new Y7,W=this.parseExpression(q>-1?"await":!0,V);if(this.type===O._in||(X=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(this.options.ecmaVersion>=9)if(this.type===O._in){if(q>-1)this.unexpected(q)}else Z.await=q>-1;if(z&&X)this.raise(W.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(W,!1,V),this.checkLValPattern(W),this.parseForIn(Z,W)}else this.checkExpressionErrors(V,!0);if(q>-1)this.unexpected(q);return this.parseFor(Z,W)};X1.parseFunctionStatement=function(Z,q,J){return this.next(),this.parseFunction(Z,t6|(J?0:zZ),!1,q)};X1.parseIfStatement=function(Z){return this.next(),Z.test=this.parseParenExpression(),Z.consequent=this.parseStatement("if"),Z.alternate=this.eat(O._else)?this.parseStatement("if"):null,this.finishNode(Z,"IfStatement")};X1.parseReturnStatement=function(Z){if(!this.inFunction&&!this.options.allowReturnOutsideFunction)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(O.semi)||this.insertSemicolon())Z.argument=null;else Z.argument=this.parseExpression(),this.semicolon();return this.finishNode(Z,"ReturnStatement")};X1.parseSwitchStatement=function(Z){this.next(),Z.discriminant=this.parseParenExpression(),Z.cases=[],this.expect(O.braceL),this.labels.push(KH),this.enterScope(0);var q;for(var J=!1;this.type!==O.braceR;)if(this.type===O._case||this.type===O._default){var Q=this.type===O._case;if(q)this.finishNode(q,"SwitchCase");if(Z.cases.push(q=this.startNode()),q.consequent=[],this.next(),Q)q.test=this.parseExpression();else{if(J)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");J=!0,q.test=null}this.expect(O.colon)}else{if(!q)this.unexpected();q.consequent.push(this.parseStatement(null))}if(this.exitScope(),q)this.finishNode(q,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(Z,"SwitchStatement")};X1.parseThrowStatement=function(Z){if(this.next(),O5.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return Z.argument=this.parseExpression(),this.semicolon(),this.finishNode(Z,"ThrowStatement")};GH=[];X1.parseTryStatement=function(Z){if(this.next(),Z.block=this.parseBlock(),Z.handler=null,this.type===O._catch){var q=this.startNode();if(this.next(),this.eat(O.parenL)){q.param=this.parseBindingAtom();var J=q.param.type==="Identifier";this.enterScope(J?t2:0),this.checkLValPattern(q.param,J?qz:a5),this.expect(O.parenR)}else{if(this.options.ecmaVersion<10)this.unexpected();q.param=null,this.enterScope(0)}q.body=this.parseBlock(!1),this.exitScope(),Z.handler=this.finishNode(q,"CatchClause")}if(Z.finalizer=this.eat(O._finally)?this.parseBlock():null,!Z.handler&&!Z.finalizer)this.raise(Z.start,"Missing catch or finally clause");return this.finishNode(Z,"TryStatement")};X1.parseVarStatement=function(Z,q){return this.next(),this.parseVar(Z,!1,q),this.semicolon(),this.finishNode(Z,"VariableDeclaration")};X1.parseWhileStatement=function(Z){return this.next(),Z.test=this.parseParenExpression(),this.labels.push(zq),Z.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(Z,"WhileStatement")};X1.parseWithStatement=function(Z){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),Z.object=this.parseParenExpression(),Z.body=this.parseStatement("with"),this.finishNode(Z,"WithStatement")};X1.parseEmptyStatement=function(Z){return this.next(),this.finishNode(Z,"EmptyStatement")};X1.parseLabeledStatement=function(Z,q,J,Q){for(var Y=0,z=this.labels;Y<z.length;Y+=1){var X=z[Y];if(X.name===q)this.raise(J.start,"Label '"+q+"' is already declared")}var V=this.type.isLoop?"loop":this.type===O._switch?"switch":null;for(var W=this.labels.length-1;W>=0;W--){var K=this.labels[W];if(K.statementStart===Z.start)K.statementStart=this.start,K.kind=V;else break}return this.labels.push({name:q,kind:V,statementStart:this.start}),Z.body=this.parseStatement(Q?Q.indexOf("label")===-1?Q+"label":Q:"label"),this.labels.pop(),Z.label=J,this.finishNode(Z,"LabeledStatement")};X1.parseExpressionStatement=function(Z,q){return Z.expression=q,this.semicolon(),this.finishNode(Z,"ExpressionStatement")};X1.parseBlock=function(Z,q,J){if(Z===void 0)Z=!0;if(q===void 0)q=this.startNode();if(q.body=[],this.expect(O.braceL),Z)this.enterScope(0);while(this.type!==O.braceR){var Q=this.parseStatement(null);q.body.push(Q)}if(J)this.strict=!1;if(this.next(),Z)this.exitScope();return this.finishNode(q,"BlockStatement")};X1.parseFor=function(Z,q){return Z.init=q,this.expect(O.semi),Z.test=this.type===O.semi?null:this.parseExpression(),this.expect(O.semi),Z.update=this.type===O.parenR?null:this.parseExpression(),this.expect(O.parenR),Z.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(Z,"ForStatement")};X1.parseForIn=function(Z,q){var J=this.type===O._in;if(this.next(),q.type==="VariableDeclaration"&&q.declarations[0].init!=null&&(!J||this.options.ecmaVersion<8||this.strict||q.kind!=="var"||q.declarations[0].id.type!=="Identifier"))this.raise(q.start,(J?"for-in":"for-of")+" loop variable declaration may not have an initializer");return Z.left=q,Z.right=J?this.parseExpression():this.parseMaybeAssign(),this.expect(O.parenR),Z.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(Z,J?"ForInStatement":"ForOfStatement")};X1.parseVar=function(Z,q,J){Z.declarations=[],Z.kind=J;for(;;){var Q=this.startNode();if(this.parseVarId(Q,J),this.eat(O.eq))Q.init=this.parseMaybeAssign(q);else if(J==="const"&&!(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(Q.id.type!=="Identifier"&&!(q&&(this.type===O._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else Q.init=null;if(Z.declarations.push(this.finishNode(Q,"VariableDeclarator")),!this.eat(O.comma))break}return Z};X1.parseVarId=function(Z,q){Z.id=this.parseBindingAtom(),this.checkLValPattern(Z.id,q==="var"?Yq:a5,!1)};X1.parseFunction=function(Z,q,J,Q,Y){if(this.initFunction(Z),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Q){if(this.type===O.star&&q&zZ)this.unexpected();Z.generator=this.eat(O.star)}if(this.options.ecmaVersion>=8)Z.async=!!Q;if(q&t6){if(Z.id=q&Qz&&this.type!==O.name?null:this.parseIdent(),Z.id&&!(q&zZ))this.checkLValSimple(Z.id,this.strict||Z.generator||Z.async?this.treatFunctionsAsVar?Yq:a5:Zz)}var z=this.yieldPos,X=this.awaitPos,V=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Qq(Z.async,Z.generator)),!(q&t6))Z.id=this.type===O.name?this.parseIdent():null;return this.parseFunctionParams(Z),this.parseFunctionBody(Z,J,!1,Y),this.yieldPos=z,this.awaitPos=X,this.awaitIdentPos=V,this.finishNode(Z,q&t6?"FunctionDeclaration":"FunctionExpression")};X1.parseFunctionParams=function(Z){this.expect(O.parenL),Z.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};X1.parseClass=function(Z,q){this.next();var J=this.strict;this.strict=!0,this.parseClassId(Z,q),this.parseClassSuper(Z);var Q=this.enterClassBody(),Y=this.startNode(),z=!1;Y.body=[],this.expect(O.braceL);while(this.type!==O.braceR){var X=this.parseClassElement(Z.superClass!==null);if(X){if(Y.body.push(X),X.type==="MethodDefinition"&&X.kind==="constructor"){if(z)this.raise(X.start,"Duplicate constructor in the same class");z=!0}else if(X.key&&X.key.type==="PrivateIdentifier"&&$H(Q,X))this.raiseRecoverable(X.key.start,"Identifier '#"+X.key.name+"' has already been declared")}}return this.strict=J,this.next(),Z.body=this.finishNode(Y,"ClassBody"),this.exitClassBody(),this.finishNode(Z,q?"ClassDeclaration":"ClassExpression")};X1.parseClassElement=function(Z){if(this.eat(O.semi))return null;var q=this.options.ecmaVersion,J=this.startNode(),Q="",Y=!1,z=!1,X="method",V=!1;if(this.eatContextual("static")){if(q>=13&&this.eat(O.braceL))return this.parseClassStaticBlock(J),J;if(this.isClassElementNameStart()||this.type===O.star)V=!0;else Q="static"}if(J.static=V,!Q&&q>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===O.star)&&!this.canInsertSemicolon())z=!0;else Q="async";if(!Q&&(q>=9||!z)&&this.eat(O.star))Y=!0;if(!Q&&!z&&!Y){var W=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())X=W;else Q=W}if(Q)J.computed=!1,J.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),J.key.name=Q,this.finishNode(J.key,"Identifier");else this.parseClassElementName(J);if(q<13||this.type===O.parenL||X!=="method"||Y||z){var K=!J.static&&b4(J,"constructor"),G=K&&Z;if(K&&X!=="method")this.raise(J.key.start,"Constructor can't have get/set modifier");J.kind=K?"constructor":X,this.parseClassMethod(J,Y,z,G)}else this.parseClassField(J);return J};X1.isClassElementNameStart=function(){return this.type===O.name||this.type===O.privateId||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword};X1.parseClassElementName=function(Z){if(this.type===O.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");Z.computed=!1,Z.key=this.parsePrivateIdent()}else this.parsePropertyName(Z)};X1.parseClassMethod=function(Z,q,J,Q){var Y=Z.key;if(Z.kind==="constructor"){if(q)this.raise(Y.start,"Constructor can't be a generator");if(J)this.raise(Y.start,"Constructor can't be an async method")}else if(Z.static&&b4(Z,"prototype"))this.raise(Y.start,"Classes may not have a static property named prototype");var z=Z.value=this.parseMethod(q,J,Q);if(Z.kind==="get"&&z.params.length!==0)this.raiseRecoverable(z.start,"getter should have no params");if(Z.kind==="set"&&z.params.length!==1)this.raiseRecoverable(z.start,"setter should have exactly one param");if(Z.kind==="set"&&z.params[0].type==="RestElement")this.raiseRecoverable(z.params[0].start,"Setter cannot use rest params");return this.finishNode(Z,"MethodDefinition")};X1.parseClassField=function(Z){if(b4(Z,"constructor"))this.raise(Z.key.start,"Classes can't have a field named 'constructor'");else if(Z.static&&b4(Z,"prototype"))this.raise(Z.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(O.eq)){var q=this.currentThisScope(),J=q.inClassFieldInit;q.inClassFieldInit=!0,Z.value=this.parseMaybeAssign(),q.inClassFieldInit=J}else Z.value=null;return this.semicolon(),this.finishNode(Z,"PropertyDefinition")};X1.parseClassStaticBlock=function(Z){Z.body=[];var q=this.labels;this.labels=[],this.enterScope(_0|qq);while(this.type!==O.braceR){var J=this.parseStatement(null);Z.body.push(J)}return this.next(),this.exitScope(),this.labels=q,this.finishNode(Z,"StaticBlock")};X1.parseClassId=function(Z,q){if(this.type===O.name){if(Z.id=this.parseIdent(),q)this.checkLValSimple(Z.id,a5,!1)}else{if(q===!0)this.unexpected();Z.id=null}};X1.parseClassSuper=function(Z){Z.superClass=this.eat(O._extends)?this.parseExprSubscripts(!1):null};X1.enterClassBody=function(){var Z={declared:Object.create(null),used:[]};return this.privateNameStack.push(Z),Z.declared};X1.exitClassBody=function(){var Z=this.privateNameStack.pop(),q=Z.declared,J=Z.used,Q=this.privateNameStack.length,Y=Q===0?null:this.privateNameStack[Q-1];for(var z=0;z<J.length;++z){var X=J[z];if(!C0(q,X.name))if(Y)Y.used.push(X);else this.raiseRecoverable(X.start,"Private field '#"+X.name+"' must be declared in an enclosing class")}};X1.parseExport=function(Z,q){if(this.next(),this.eat(O.star)){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))Z.exported=this.parseModuleExportName(),this.checkExport(q,Z.exported,this.lastTokStart);else Z.exported=null;if(this.expectContextual("from"),this.type!==O.string)this.unexpected();return Z.source=this.parseExprAtom(),this.semicolon(),this.finishNode(Z,"ExportAllDeclaration")}if(this.eat(O._default)){this.checkExport(q,"default",this.lastTokStart);var J;if(this.type===O._function||(J=this.isAsyncFunction())){var Q=this.startNode();if(this.next(),J)this.next();Z.declaration=this.parseFunction(Q,t6|Qz,!1,J)}else if(this.type===O._class){var Y=this.startNode();Z.declaration=this.parseClass(Y,"nullableID")}else Z.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(Z,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement()){if(Z.declaration=this.parseStatement(null),Z.declaration.type==="VariableDeclaration")this.checkVariableExport(q,Z.declaration.declarations);else this.checkExport(q,Z.declaration.id,Z.declaration.id.start);Z.specifiers=[],Z.source=null}else{if(Z.declaration=null,Z.specifiers=this.parseExportSpecifiers(q),this.eatContextual("from")){if(this.type!==O.string)this.unexpected();Z.source=this.parseExprAtom()}else{for(var z=0,X=Z.specifiers;z<X.length;z+=1){var V=X[z];if(this.checkUnreserved(V.local),this.checkLocalExport(V.local),V.local.type==="Literal")this.raise(V.local.start,"A string literal cannot be used as an exported binding without `from`.")}Z.source=null}this.semicolon()}return this.finishNode(Z,"ExportNamedDeclaration")};X1.checkExport=function(Z,q,J){if(!Z)return;if(typeof q!=="string")q=q.type==="Identifier"?q.name:q.value;if(C0(Z,q))this.raiseRecoverable(J,"Duplicate export '"+q+"'");Z[q]=!0};X1.checkPatternExport=function(Z,q){var J=q.type;if(J==="Identifier")this.checkExport(Z,q,q.start);else if(J==="ObjectPattern")for(var Q=0,Y=q.properties;Q<Y.length;Q+=1){var z=Y[Q];this.checkPatternExport(Z,z)}else if(J==="ArrayPattern")for(var X=0,V=q.elements;X<V.length;X+=1){var W=V[X];if(W)this.checkPatternExport(Z,W)}else if(J==="Property")this.checkPatternExport(Z,q.value);else if(J==="AssignmentPattern")this.checkPatternExport(Z,q.left);else if(J==="RestElement")this.checkPatternExport(Z,q.argument);else if(J==="ParenthesizedExpression")this.checkPatternExport(Z,q.expression)};X1.checkVariableExport=function(Z,q){if(!Z)return;for(var J=0,Q=q;J<Q.length;J+=1){var Y=Q[J];this.checkPatternExport(Z,Y.id)}};X1.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};X1.parseExportSpecifiers=function(Z){var q=[],J=!0;this.expect(O.braceL);while(!this.eat(O.braceR)){if(!J){if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break}else J=!1;var Q=this.startNode();Q.local=this.parseModuleExportName(),Q.exported=this.eatContextual("as")?this.parseModuleExportName():Q.local,this.checkExport(Z,Q.exported,Q.exported.start),q.push(this.finishNode(Q,"ExportSpecifier"))}return q};X1.parseImport=function(Z){if(this.next(),this.type===O.string)Z.specifiers=GH,Z.source=this.parseExprAtom();else Z.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),Z.source=this.type===O.string?this.parseExprAtom():this.unexpected();return this.semicolon(),this.finishNode(Z,"ImportDeclaration")};X1.parseImportSpecifiers=function(){var Z=[],q=!0;if(this.type===O.name){var J=this.startNode();if(J.local=this.parseIdent(),this.checkLValSimple(J.local,a5),Z.push(this.finishNode(J,"ImportDefaultSpecifier")),!this.eat(O.comma))return Z}if(this.type===O.star){var Q=this.startNode();return this.next(),this.expectContextual("as"),Q.local=this.parseIdent(),this.checkLValSimple(Q.local,a5),Z.push(this.finishNode(Q,"ImportNamespaceSpecifier")),Z}this.expect(O.braceL);while(!this.eat(O.braceR)){if(!q){if(this.expect(O.comma),this.afterTrailingComma(O.braceR))break}else q=!1;var Y=this.startNode();if(Y.imported=this.parseModuleExportName(),this.eatContextual("as"))Y.local=this.parseIdent();else this.checkUnreserved(Y.imported),Y.local=Y.imported;this.checkLValSimple(Y.local,a5),Z.push(this.finishNode(Y,"ImportSpecifier"))}return Z};X1.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===O.string){var Z=this.parseLiteral(this.value);if(zH.test(Z.value))this.raise(Z.start,"An export name cannot include a lone surrogate.");return Z}return this.parseIdent(!0)};X1.adaptDirectivePrologue=function(Z){for(var q=0;q<Z.length&&this.isDirectiveCandidate(Z[q]);++q)Z[q].directive=Z[q].expression.raw.slice(1,-1)};X1.isDirectiveCandidate=function(Z){return Z.type==="ExpressionStatement"&&Z.expression.type==="Literal"&&typeof Z.expression.value==="string"&&(this.input[Z.start]==='"'||this.input[Z.start]==="'")};P5=l1.prototype;P5.toAssignable=function(Z,q,J){if(this.options.ecmaVersion>=6&&Z)switch(Z.type){case"Identifier":if(this.inAsync&&Z.name==="await")this.raise(Z.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(Z.type="ObjectPattern",J)this.checkPatternErrors(J,!0);for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var z=Y[Q];if(this.toAssignable(z,q),z.type==="RestElement"&&(z.argument.type==="ArrayPattern"||z.argument.type==="ObjectPattern"))this.raise(z.argument.start,"Unexpected token")}break;case"Property":if(Z.kind!=="init")this.raise(Z.key.start,"Object pattern can't contain getter or setter");this.toAssignable(Z.value,q);break;case"ArrayExpression":if(Z.type="ArrayPattern",J)this.checkPatternErrors(J,!0);this.toAssignableList(Z.elements,q);break;case"SpreadElement":if(Z.type="RestElement",this.toAssignable(Z.argument,q),Z.argument.type==="AssignmentPattern")this.raise(Z.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(Z.operator!=="=")this.raise(Z.left.end,"Only '=' operator can be used for specifying default value.");Z.type="AssignmentPattern",delete Z.operator,this.toAssignable(Z.left,q);break;case"ParenthesizedExpression":this.toAssignable(Z.expression,q,J);break;case"ChainExpression":this.raiseRecoverable(Z.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!q)break;default:this.raise(Z.start,"Assigning to rvalue")}else if(J)this.checkPatternErrors(J,!0);return Z};P5.toAssignableList=function(Z,q){var J=Z.length;for(var Q=0;Q<J;Q++){var Y=Z[Q];if(Y)this.toAssignable(Y,q)}if(J){var z=Z[J-1];if(this.options.ecmaVersion===6&&q&&z&&z.type==="RestElement"&&z.argument.type!=="Identifier")this.unexpected(z.argument.start)}return Z};P5.parseSpread=function(Z){var q=this.startNode();return this.next(),q.argument=this.parseMaybeAssign(!1,Z),this.finishNode(q,"SpreadElement")};P5.parseRestBinding=function(){var Z=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==O.name)this.unexpected();return Z.argument=this.parseBindingAtom(),this.finishNode(Z,"RestElement")};P5.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case O.bracketL:var Z=this.startNode();return this.next(),Z.elements=this.parseBindingList(O.bracketR,!0,!0),this.finishNode(Z,"ArrayPattern");case O.braceL:return this.parseObj(!0)}return this.parseIdent()};P5.parseBindingList=function(Z,q,J){var Q=[],Y=!0;while(!this.eat(Z)){if(Y)Y=!1;else this.expect(O.comma);if(q&&this.type===O.comma)Q.push(null);else if(J&&this.afterTrailingComma(Z))break;else if(this.type===O.ellipsis){var z=this.parseRestBinding();if(this.parseBindingListItem(z),Q.push(z),this.type===O.comma)this.raise(this.start,"Comma is not permitted after the rest element");this.expect(Z);break}else{var X=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(X),Q.push(X)}}return Q};P5.parseBindingListItem=function(Z){return Z};P5.parseMaybeDefault=function(Z,q,J){if(J=J||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(O.eq))return J;var Q=this.startNodeAt(Z,q);return Q.left=J,Q.right=this.parseMaybeAssign(),this.finishNode(Q,"AssignmentPattern")};P5.checkLValSimple=function(Z,q,J){if(q===void 0)q=E4;var Q=q!==E4;switch(Z.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(Z.name))this.raiseRecoverable(Z.start,(Q?"Binding ":"Assigning to ")+Z.name+" in strict mode");if(Q){if(q===a5&&Z.name==="let")this.raiseRecoverable(Z.start,"let is disallowed as a lexically bound name");if(J){if(C0(J,Z.name))this.raiseRecoverable(Z.start,"Argument name clash");J[Z.name]=!0}if(q!==Jz)this.declareName(Z.name,q,Z.start)}break;case"ChainExpression":this.raiseRecoverable(Z.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(Q)this.raiseRecoverable(Z.start,"Binding member expression");break;case"ParenthesizedExpression":if(Q)this.raiseRecoverable(Z.start,"Binding parenthesized expression");return this.checkLValSimple(Z.expression,q,J);default:this.raise(Z.start,(Q?"Binding":"Assigning to")+" rvalue")}};P5.checkLValPattern=function(Z,q,J){if(q===void 0)q=E4;switch(Z.type){case"ObjectPattern":for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var z=Y[Q];this.checkLValInnerPattern(z,q,J)}break;case"ArrayPattern":for(var X=0,V=Z.elements;X<V.length;X+=1){var W=V[X];if(W)this.checkLValInnerPattern(W,q,J)}break;default:this.checkLValSimple(Z,q,J)}};P5.checkLValInnerPattern=function(Z,q,J){if(q===void 0)q=E4;switch(Z.type){case"Property":this.checkLValInnerPattern(Z.value,q,J);break;case"AssignmentPattern":this.checkLValPattern(Z.left,q,J);break;case"RestElement":this.checkLValPattern(Z.argument,q,J);break;default:this.checkLValPattern(Z,q,J)}};P1={b_stat:new D5("{",!1),b_expr:new D5("{",!0),b_tmpl:new D5("${",!1),p_stat:new D5("(",!1),p_expr:new D5("(",!0),q_tmpl:new D5("`",!0,!0,function(Z){return Z.tryReadTemplateToken()}),f_stat:new D5("function",!1),f_expr:new D5("function",!0),f_expr_gen:new D5("function",!0,!1,null,!0),f_gen:new D5("function",!1,!1,null,!0)},j6=l1.prototype;j6.initialContext=function(){return[P1.b_stat]};j6.curContext=function(){return this.context[this.context.length-1]};j6.braceIsBlock=function(Z){var q=this.curContext();if(q===P1.f_expr||q===P1.f_stat)return!0;if(Z===O.colon&&(q===P1.b_stat||q===P1.b_expr))return!q.isExpr;if(Z===O._return||Z===O.name&&this.exprAllowed)return O5.test(this.input.slice(this.lastTokEnd,this.start));if(Z===O._else||Z===O.semi||Z===O.eof||Z===O.parenR||Z===O.arrow)return!0;if(Z===O.braceL)return q===P1.b_stat;if(Z===O._var||Z===O._const||Z===O.name)return!1;return!this.exprAllowed};j6.inGeneratorContext=function(){for(var Z=this.context.length-1;Z>=1;Z--){var q=this.context[Z];if(q.token==="function")return q.generator}return!1};j6.updateContext=function(Z){var q,J=this.type;if(J.keyword&&Z===O.dot)this.exprAllowed=!1;else if(q=J.updateContext)q.call(this,Z);else this.exprAllowed=J.beforeExpr};j6.overrideContext=function(Z){if(this.curContext()!==Z)this.context[this.context.length-1]=Z};O.parenR.updateContext=O.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var Z=this.context.pop();if(Z===P1.b_stat&&this.curContext().token==="function")Z=this.context.pop();this.exprAllowed=!Z.isExpr};O.braceL.updateContext=function(Z){this.context.push(this.braceIsBlock(Z)?P1.b_stat:P1.b_expr),this.exprAllowed=!0};O.dollarBraceL.updateContext=function(){this.context.push(P1.b_tmpl),this.exprAllowed=!0};O.parenL.updateContext=function(Z){var q=Z===O._if||Z===O._for||Z===O._with||Z===O._while;this.context.push(q?P1.p_stat:P1.p_expr),this.exprAllowed=!0};O.incDec.updateContext=function(){};O._function.updateContext=O._class.updateContext=function(Z){if(Z.beforeExpr&&Z!==O._else&&!(Z===O.semi&&this.curContext()!==P1.p_stat)&&!(Z===O._return&&O5.test(this.input.slice(this.lastTokEnd,this.start)))&&!((Z===O.colon||Z===O.braceL)&&this.curContext()===P1.b_stat))this.context.push(P1.f_expr);else this.context.push(P1.f_stat);this.exprAllowed=!1};O.backQuote.updateContext=function(){if(this.curContext()===P1.q_tmpl)this.context.pop();else this.context.push(P1.q_tmpl);this.exprAllowed=!1};O.star.updateContext=function(Z){if(Z===O._function){var q=this.context.length-1;if(this.context[q]===P1.f_expr)this.context[q]=P1.f_expr_gen;else this.context[q]=P1.f_gen}this.exprAllowed=!0};O.name.updateContext=function(Z){var q=!1;if(this.options.ecmaVersion>=6&&Z!==O.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())q=!0}this.exprAllowed=q};$1=l1.prototype;$1.checkPropClash=function(Z,q,J){if(this.options.ecmaVersion>=9&&Z.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(Z.computed||Z.method||Z.shorthand))return;var Q=Z.key,Y;switch(Q.type){case"Identifier":Y=Q.name;break;case"Literal":Y=String(Q.value);break;default:return}var z=Z.kind;if(this.options.ecmaVersion>=6){if(Y==="__proto__"&&z==="init"){if(q.proto)if(J){if(J.doubleProto<0)J.doubleProto=Q.start}else this.raiseRecoverable(Q.start,"Redefinition of __proto__ property");q.proto=!0}return}Y="$"+Y;var X=q[Y];if(X){var V;if(z==="init")V=this.strict&&X.init||X.get||X.set;else V=X.init||X[z];if(V)this.raiseRecoverable(Q.start,"Redefinition of property")}else X=q[Y]={init:!1,get:!1,set:!1};X[z]=!0};$1.parseExpression=function(Z,q){var J=this.start,Q=this.startLoc,Y=this.parseMaybeAssign(Z,q);if(this.type===O.comma){var z=this.startNodeAt(J,Q);z.expressions=[Y];while(this.eat(O.comma))z.expressions.push(this.parseMaybeAssign(Z,q));return this.finishNode(z,"SequenceExpression")}return Y};$1.parseMaybeAssign=function(Z,q,J){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(Z);else this.exprAllowed=!1;var Q=!1,Y=-1,z=-1,X=-1;if(q)Y=q.parenthesizedAssign,z=q.trailingComma,X=q.doubleProto,q.parenthesizedAssign=q.trailingComma=-1;else q=new Y7,Q=!0;var V=this.start,W=this.startLoc;if(this.type===O.parenL||this.type===O.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=Z==="await";var K=this.parseMaybeConditional(Z,q);if(J)K=J.call(this,K,V,W);if(this.type.isAssign){var G=this.startNodeAt(V,W);if(G.operator=this.value,this.type===O.eq)K=this.toAssignable(K,!1,q);if(!Q)q.parenthesizedAssign=q.trailingComma=q.doubleProto=-1;if(q.shorthandAssign>=K.start)q.shorthandAssign=-1;if(this.type===O.eq)this.checkLValPattern(K);else this.checkLValSimple(K);if(G.left=K,this.next(),G.right=this.parseMaybeAssign(Z),X>-1)q.doubleProto=X;return this.finishNode(G,"AssignmentExpression")}else if(Q)this.checkExpressionErrors(q,!0);if(Y>-1)q.parenthesizedAssign=Y;if(z>-1)q.trailingComma=z;return K};$1.parseMaybeConditional=function(Z,q){var J=this.start,Q=this.startLoc,Y=this.parseExprOps(Z,q);if(this.checkExpressionErrors(q))return Y;if(this.eat(O.question)){var z=this.startNodeAt(J,Q);return z.test=Y,z.consequent=this.parseMaybeAssign(),this.expect(O.colon),z.alternate=this.parseMaybeAssign(Z),this.finishNode(z,"ConditionalExpression")}return Y};$1.parseExprOps=function(Z,q){var J=this.start,Q=this.startLoc,Y=this.parseMaybeUnary(q,!1,!1,Z);if(this.checkExpressionErrors(q))return Y;return Y.start===J&&Y.type==="ArrowFunctionExpression"?Y:this.parseExprOp(Y,J,Q,-1,Z)};$1.parseExprOp=function(Z,q,J,Q,Y){var z=this.type.binop;if(z!=null&&(!Y||this.type!==O._in)){if(z>Q){var X=this.type===O.logicalOR||this.type===O.logicalAND,V=this.type===O.coalesce;if(V)z=O.logicalAND.binop;var W=this.value;this.next();var K=this.start,G=this.startLoc,F=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,Y),K,G,z,Y),M=this.buildBinary(q,J,Z,F,W,X||V);if(X&&this.type===O.coalesce||V&&(this.type===O.logicalOR||this.type===O.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(M,q,J,Q,Y)}}return Z};$1.buildBinary=function(Z,q,J,Q,Y,z){if(Q.type==="PrivateIdentifier")this.raise(Q.start,"Private identifier can only be left side of binary expression");var X=this.startNodeAt(Z,q);return X.left=J,X.operator=Y,X.right=Q,this.finishNode(X,z?"LogicalExpression":"BinaryExpression")};$1.parseMaybeUnary=function(Z,q,J,Q){var Y=this.start,z=this.startLoc,X;if(this.isContextual("await")&&this.canAwait)X=this.parseAwait(Q),q=!0;else if(this.type.prefix){var V=this.startNode(),W=this.type===O.incDec;if(V.operator=this.value,V.prefix=!0,this.next(),V.argument=this.parseMaybeUnary(null,!0,W,Q),this.checkExpressionErrors(Z,!0),W)this.checkLValSimple(V.argument);else if(this.strict&&V.operator==="delete"&&V.argument.type==="Identifier")this.raiseRecoverable(V.start,"Deleting local variable in strict mode");else if(V.operator==="delete"&&Yz(V.argument))this.raiseRecoverable(V.start,"Private fields can not be deleted");else q=!0;X=this.finishNode(V,W?"UpdateExpression":"UnaryExpression")}else if(!q&&this.type===O.privateId){if(Q||this.privateNameStack.length===0)this.unexpected();if(X=this.parsePrivateIdent(),this.type!==O._in)this.unexpected()}else{if(X=this.parseExprSubscripts(Z,Q),this.checkExpressionErrors(Z))return X;while(this.type.postfix&&!this.canInsertSemicolon()){var K=this.startNodeAt(Y,z);K.operator=this.value,K.prefix=!1,K.argument=X,this.checkLValSimple(X),this.next(),X=this.finishNode(K,"UpdateExpression")}}if(!J&&this.eat(O.starstar))if(q)this.unexpected(this.lastTokStart);else return this.buildBinary(Y,z,X,this.parseMaybeUnary(null,!1,!1,Q),"**",!1);else return X};$1.parseExprSubscripts=function(Z,q){var J=this.start,Q=this.startLoc,Y=this.parseExprAtom(Z,q);if(Y.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return Y;var z=this.parseSubscripts(Y,J,Q,!1,q);if(Z&&z.type==="MemberExpression"){if(Z.parenthesizedAssign>=z.start)Z.parenthesizedAssign=-1;if(Z.parenthesizedBind>=z.start)Z.parenthesizedBind=-1;if(Z.trailingComma>=z.start)Z.trailingComma=-1}return z};$1.parseSubscripts=function(Z,q,J,Q,Y){var z=this.options.ecmaVersion>=8&&Z.type==="Identifier"&&Z.name==="async"&&this.lastTokEnd===Z.end&&!this.canInsertSemicolon()&&Z.end-Z.start===5&&this.potentialArrowAt===Z.start,X=!1;while(!0){var V=this.parseSubscript(Z,q,J,Q,z,X,Y);if(V.optional)X=!0;if(V===Z||V.type==="ArrowFunctionExpression"){if(X){var W=this.startNodeAt(q,J);W.expression=V,V=this.finishNode(W,"ChainExpression")}return V}Z=V}};$1.parseSubscript=function(Z,q,J,Q,Y,z,X){var V=this.options.ecmaVersion>=11,W=V&&this.eat(O.questionDot);if(Q&&W)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var K=this.eat(O.bracketL);if(K||W&&this.type!==O.parenL&&this.type!==O.backQuote||this.eat(O.dot)){var G=this.startNodeAt(q,J);if(G.object=Z,K)G.property=this.parseExpression(),this.expect(O.bracketR);else if(this.type===O.privateId&&Z.type!=="Super")G.property=this.parsePrivateIdent();else G.property=this.parseIdent(this.options.allowReserved!=="never");if(G.computed=!!K,V)G.optional=W;Z=this.finishNode(G,"MemberExpression")}else if(!Q&&this.eat(O.parenL)){var F=new Y7,M=this.yieldPos,B=this.awaitPos,H=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var N=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1,F);if(Y&&!W&&!this.canInsertSemicolon()&&this.eat(O.arrow)){if(this.checkPatternErrors(F,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=M,this.awaitPos=B,this.awaitIdentPos=H,this.parseArrowExpression(this.startNodeAt(q,J),N,!0,X)}this.checkExpressionErrors(F,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=B||this.awaitPos,this.awaitIdentPos=H||this.awaitIdentPos;var C=this.startNodeAt(q,J);if(C.callee=Z,C.arguments=N,V)C.optional=W;Z=this.finishNode(C,"CallExpression")}else if(this.type===O.backQuote){if(W||z)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var A=this.startNodeAt(q,J);A.tag=Z,A.quasi=this.parseTemplate({isTagged:!0}),Z=this.finishNode(A,"TaggedTemplateExpression")}return Z};$1.parseExprAtom=function(Z,q){if(this.type===O.slash)this.readRegexp();var J,Q=this.potentialArrowAt===this.start;switch(this.type){case O._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(J=this.startNode(),this.next(),this.type===O.parenL&&!this.allowDirectSuper)this.raise(J.start,"super() call outside constructor of a subclass");if(this.type!==O.dot&&this.type!==O.bracketL&&this.type!==O.parenL)this.unexpected();return this.finishNode(J,"Super");case O._this:return J=this.startNode(),this.next(),this.finishNode(J,"ThisExpression");case O.name:var Y=this.start,z=this.startLoc,X=this.containsEsc,V=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!X&&V.name==="async"&&!this.canInsertSemicolon()&&this.eat(O._function))return this.overrideContext(P1.f_expr),this.parseFunction(this.startNodeAt(Y,z),0,!1,!0,q);if(Q&&!this.canInsertSemicolon()){if(this.eat(O.arrow))return this.parseArrowExpression(this.startNodeAt(Y,z),[V],!1,q);if(this.options.ecmaVersion>=8&&V.name==="async"&&this.type===O.name&&!X&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(V=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(O.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(Y,z),[V],!0,q)}}return V;case O.regexp:var W=this.value;return J=this.parseLiteral(W.value),J.regex={pattern:W.pattern,flags:W.flags},J;case O.num:case O.string:return this.parseLiteral(this.value);case O._null:case O._true:case O._false:return J=this.startNode(),J.value=this.type===O._null?null:this.type===O._true,J.raw=this.type.keyword,this.next(),this.finishNode(J,"Literal");case O.parenL:var K=this.start,G=this.parseParenAndDistinguishExpression(Q,q);if(Z){if(Z.parenthesizedAssign<0&&!this.isSimpleAssignTarget(G))Z.parenthesizedAssign=K;if(Z.parenthesizedBind<0)Z.parenthesizedBind=K}return G;case O.bracketL:return J=this.startNode(),this.next(),J.elements=this.parseExprList(O.bracketR,!0,!0,Z),this.finishNode(J,"ArrayExpression");case O.braceL:return this.overrideContext(P1.b_expr),this.parseObj(!1,Z);case O._function:return J=this.startNode(),this.next(),this.parseFunction(J,0);case O._class:return this.parseClass(this.startNode(),!1);case O._new:return this.parseNew();case O.backQuote:return this.parseTemplate();case O._import:if(this.options.ecmaVersion>=11)return this.parseExprImport();else return this.unexpected();default:this.unexpected()}};$1.parseExprImport=function(){var Z=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");var q=this.parseIdent(!0);switch(this.type){case O.parenL:return this.parseDynamicImport(Z);case O.dot:return Z.meta=q,this.parseImportMeta(Z);default:this.unexpected()}};$1.parseDynamicImport=function(Z){if(this.next(),Z.source=this.parseMaybeAssign(),!this.eat(O.parenR)){var q=this.start;if(this.eat(O.comma)&&this.eat(O.parenR))this.raiseRecoverable(q,"Trailing comma is not allowed in import()");else this.unexpected(q)}return this.finishNode(Z,"ImportExpression")};$1.parseImportMeta=function(Z){this.next();var q=this.containsEsc;if(Z.property=this.parseIdent(!0),Z.property.name!=="meta")this.raiseRecoverable(Z.property.start,"The only valid meta property for import is 'import.meta'");if(q)this.raiseRecoverable(Z.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(Z.start,"Cannot use 'import.meta' outside a module");return this.finishNode(Z,"MetaProperty")};$1.parseLiteral=function(Z){var q=this.startNode();if(q.value=Z,q.raw=this.input.slice(this.start,this.end),q.raw.charCodeAt(q.raw.length-1)===110)q.bigint=q.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(q,"Literal")};$1.parseParenExpression=function(){this.expect(O.parenL);var Z=this.parseExpression();return this.expect(O.parenR),Z};$1.parseParenAndDistinguishExpression=function(Z,q){var J=this.start,Q=this.startLoc,Y,z=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var X=this.start,V=this.startLoc,W=[],K=!0,G=!1,F=new Y7,M=this.yieldPos,B=this.awaitPos,H;this.yieldPos=0,this.awaitPos=0;while(this.type!==O.parenR)if(K?K=!1:this.expect(O.comma),z&&this.afterTrailingComma(O.parenR,!0)){G=!0;break}else if(this.type===O.ellipsis){if(H=this.start,W.push(this.parseParenItem(this.parseRestBinding())),this.type===O.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else W.push(this.parseMaybeAssign(!1,F,this.parseParenItem));var N=this.lastTokEnd,C=this.lastTokEndLoc;if(this.expect(O.parenR),Z&&!this.canInsertSemicolon()&&this.eat(O.arrow))return this.checkPatternErrors(F,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=M,this.awaitPos=B,this.parseParenArrowList(J,Q,W,q);if(!W.length||G)this.unexpected(this.lastTokStart);if(H)this.unexpected(H);if(this.checkExpressionErrors(F,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=B||this.awaitPos,W.length>1)Y=this.startNodeAt(X,V),Y.expressions=W,this.finishNodeAt(Y,"SequenceExpression",N,C);else Y=W[0]}else Y=this.parseParenExpression();if(this.options.preserveParens){var A=this.startNodeAt(J,Q);return A.expression=Y,this.finishNode(A,"ParenthesizedExpression")}else return Y};$1.parseParenItem=function(Z){return Z};$1.parseParenArrowList=function(Z,q,J,Q){return this.parseArrowExpression(this.startNodeAt(Z,q),J,!1,Q)};UH=[];$1.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var Z=this.startNode(),q=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(O.dot)){Z.meta=q;var J=this.containsEsc;if(Z.property=this.parseIdent(!0),Z.property.name!=="target")this.raiseRecoverable(Z.property.start,"The only valid meta property for new is 'new.target'");if(J)this.raiseRecoverable(Z.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(Z.start,"'new.target' can only be used in functions and class static block");return this.finishNode(Z,"MetaProperty")}var Q=this.start,Y=this.startLoc,z=this.type===O._import;if(Z.callee=this.parseSubscripts(this.parseExprAtom(),Q,Y,!0,!1),z&&Z.callee.type==="ImportExpression")this.raise(Q,"Cannot use new with import()");if(this.eat(O.parenL))Z.arguments=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1);else Z.arguments=UH;return this.finishNode(Z,"NewExpression")};$1.parseTemplateElement=function(Z){var q=Z.isTagged,J=this.startNode();if(this.type===O.invalidTemplate){if(!q)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");J.value={raw:this.value,cooked:null}}else J.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
43
|
-
`),cooked:this.value};return this.next(),J.tail=this.type===O.backQuote,this.finishNode(J,"TemplateElement")};$1.parseTemplate=function(Z){if(Z===void 0)Z={};var q=Z.isTagged;if(q===void 0)q=!1;var J=this.startNode();this.next(),J.expressions=[];var Q=this.parseTemplateElement({isTagged:q});J.quasis=[Q];while(!Q.tail){if(this.type===O.eof)this.raise(this.pos,"Unterminated template literal");this.expect(O.dollarBraceL),J.expressions.push(this.parseExpression()),this.expect(O.braceR),J.quasis.push(Q=this.parseTemplateElement({isTagged:q}))}return this.next(),this.finishNode(J,"TemplateLiteral")};$1.isAsyncProp=function(Z){return!Z.computed&&Z.key.type==="Identifier"&&Z.key.name==="async"&&(this.type===O.name||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===O.star)&&!O5.test(this.input.slice(this.lastTokEnd,this.start))};$1.parseObj=function(Z,q){var J=this.startNode(),Q=!0,Y={};J.properties=[],this.next();while(!this.eat(O.braceR)){if(!Q){if(this.expect(O.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(O.braceR))break}else Q=!1;var z=this.parseProperty(Z,q);if(!Z)this.checkPropClash(z,Y,q);J.properties.push(z)}return this.finishNode(J,Z?"ObjectPattern":"ObjectExpression")};$1.parseProperty=function(Z,q){var J=this.startNode(),Q,Y,z,X;if(this.options.ecmaVersion>=9&&this.eat(O.ellipsis)){if(Z){if(J.argument=this.parseIdent(!1),this.type===O.comma)this.raise(this.start,"Comma is not permitted after the rest element");return this.finishNode(J,"RestElement")}if(this.type===O.parenL&&q){if(q.parenthesizedAssign<0)q.parenthesizedAssign=this.start;if(q.parenthesizedBind<0)q.parenthesizedBind=this.start}if(J.argument=this.parseMaybeAssign(!1,q),this.type===O.comma&&q&&q.trailingComma<0)q.trailingComma=this.start;return this.finishNode(J,"SpreadElement")}if(this.options.ecmaVersion>=6){if(J.method=!1,J.shorthand=!1,Z||q)z=this.start,X=this.startLoc;if(!Z)Q=this.eat(O.star)}var V=this.containsEsc;if(this.parsePropertyName(J),!Z&&!V&&this.options.ecmaVersion>=8&&!Q&&this.isAsyncProp(J))Y=!0,Q=this.options.ecmaVersion>=9&&this.eat(O.star),this.parsePropertyName(J,q);else Y=!1;return this.parsePropertyValue(J,Z,Q,Y,z,X,q,V),this.finishNode(J,"Property")};$1.parsePropertyValue=function(Z,q,J,Q,Y,z,X,V){if((J||Q)&&this.type===O.colon)this.unexpected();if(this.eat(O.colon))Z.value=q?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,X),Z.kind="init";else if(this.options.ecmaVersion>=6&&this.type===O.parenL){if(q)this.unexpected();Z.kind="init",Z.method=!0,Z.value=this.parseMethod(J,Q)}else if(!q&&!V&&this.options.ecmaVersion>=5&&!Z.computed&&Z.key.type==="Identifier"&&(Z.key.name==="get"||Z.key.name==="set")&&(this.type!==O.comma&&this.type!==O.braceR&&this.type!==O.eq)){if(J||Q)this.unexpected();Z.kind=Z.key.name,this.parsePropertyName(Z),Z.value=this.parseMethod(!1);var W=Z.kind==="get"?0:1;if(Z.value.params.length!==W){var K=Z.value.start;if(Z.kind==="get")this.raiseRecoverable(K,"getter should have no params");else this.raiseRecoverable(K,"setter should have exactly one param")}else if(Z.kind==="set"&&Z.value.params[0].type==="RestElement")this.raiseRecoverable(Z.value.params[0].start,"Setter cannot use rest params")}else if(this.options.ecmaVersion>=6&&!Z.computed&&Z.key.type==="Identifier"){if(J||Q)this.unexpected();if(this.checkUnreserved(Z.key),Z.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=Y;if(Z.kind="init",q)Z.value=this.parseMaybeDefault(Y,z,this.copyNode(Z.key));else if(this.type===O.eq&&X){if(X.shorthandAssign<0)X.shorthandAssign=this.start;Z.value=this.parseMaybeDefault(Y,z,this.copyNode(Z.key))}else Z.value=this.copyNode(Z.key);Z.shorthand=!0}else this.unexpected()};$1.parsePropertyName=function(Z){if(this.options.ecmaVersion>=6)if(this.eat(O.bracketL))return Z.computed=!0,Z.key=this.parseMaybeAssign(),this.expect(O.bracketR),Z.key;else Z.computed=!1;return Z.key=this.type===O.num||this.type===O.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};$1.initFunction=function(Z){if(Z.id=null,this.options.ecmaVersion>=6)Z.generator=Z.expression=!1;if(this.options.ecmaVersion>=8)Z.async=!1};$1.parseMethod=function(Z,q,J){var Q=this.startNode(),Y=this.yieldPos,z=this.awaitPos,X=this.awaitIdentPos;if(this.initFunction(Q),this.options.ecmaVersion>=6)Q.generator=Z;if(this.options.ecmaVersion>=8)Q.async=!!q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Qq(q,Q.generator)|qq|(J?e2:0)),this.expect(O.parenL),Q.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Q,!1,!0,!1),this.yieldPos=Y,this.awaitPos=z,this.awaitIdentPos=X,this.finishNode(Q,"FunctionExpression")};$1.parseArrowExpression=function(Z,q,J,Q){var Y=this.yieldPos,z=this.awaitPos,X=this.awaitIdentPos;if(this.enterScope(Qq(J,!1)|o2),this.initFunction(Z),this.options.ecmaVersion>=8)Z.async=!!J;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,Z.params=this.toAssignableList(q,!0),this.parseFunctionBody(Z,!0,!1,Q),this.yieldPos=Y,this.awaitPos=z,this.awaitIdentPos=X,this.finishNode(Z,"ArrowFunctionExpression")};$1.parseFunctionBody=function(Z,q,J,Q){var Y=q&&this.type!==O.braceL,z=this.strict,X=!1;if(Y)Z.body=this.parseMaybeAssign(Q),Z.expression=!0,this.checkParams(Z,!1);else{var V=this.options.ecmaVersion>=7&&!this.isSimpleParamList(Z.params);if(!z||V){if(X=this.strictDirective(this.end),X&&V)this.raiseRecoverable(Z.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var W=this.labels;if(this.labels=[],X)this.strict=!0;if(this.checkParams(Z,!z&&!X&&!q&&!J&&this.isSimpleParamList(Z.params)),this.strict&&Z.id)this.checkLValSimple(Z.id,Jz);Z.body=this.parseBlock(!1,void 0,X&&!z),Z.expression=!1,this.adaptDirectivePrologue(Z.body.body),this.labels=W}this.exitScope()};$1.isSimpleParamList=function(Z){for(var q=0,J=Z;q<J.length;q+=1){var Q=J[q];if(Q.type!=="Identifier")return!1}return!0};$1.checkParams=function(Z,q){var J=Object.create(null);for(var Q=0,Y=Z.params;Q<Y.length;Q+=1){var z=Y[Q];this.checkLValInnerPattern(z,Yq,q?null:J)}};$1.parseExprList=function(Z,q,J,Q){var Y=[],z=!0;while(!this.eat(Z)){if(!z){if(this.expect(O.comma),q&&this.afterTrailingComma(Z))break}else z=!1;var X=void 0;if(J&&this.type===O.comma)X=null;else if(this.type===O.ellipsis){if(X=this.parseSpread(Q),Q&&this.type===O.comma&&Q.trailingComma<0)Q.trailingComma=this.start}else X=this.parseMaybeAssign(!1,Q);Y.push(X)}return Y};$1.checkUnreserved=function(Z){var{start:q,end:J,name:Q}=Z;if(this.inGenerator&&Q==="yield")this.raiseRecoverable(q,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&Q==="await")this.raiseRecoverable(q,"Cannot use 'await' as identifier inside an async function");if(this.currentThisScope().inClassFieldInit&&Q==="arguments")this.raiseRecoverable(q,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(Q==="arguments"||Q==="await"))this.raise(q,"Cannot use "+Q+" in class static initialization block");if(this.keywords.test(Q))this.raise(q,"Unexpected keyword '"+Q+"'");if(this.options.ecmaVersion<6&&this.input.slice(q,J).indexOf("\\")!==-1)return;var Y=this.strict?this.reservedWordsStrict:this.reservedWords;if(Y.test(Q)){if(!this.inAsync&&Q==="await")this.raiseRecoverable(q,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(q,"The keyword '"+Q+"' is reserved")}};$1.parseIdent=function(Z,q){var J=this.startNode();if(this.type===O.name)J.name=this.value;else if(this.type.keyword){if(J.name=this.type.keyword,(J.name==="class"||J.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop()}else this.unexpected();if(this.next(!!Z),this.finishNode(J,"Identifier"),!Z){if(this.checkUnreserved(J),J.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=J.start}return J};$1.parsePrivateIdent=function(){var Z=this.startNode();if(this.type===O.privateId)Z.name=this.value;else this.unexpected();if(this.next(),this.finishNode(Z,"PrivateIdentifier"),this.privateNameStack.length===0)this.raise(Z.start,"Private field '#"+Z.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(Z);return Z};$1.parseYield=function(Z){if(!this.yieldPos)this.yieldPos=this.start;var q=this.startNode();if(this.next(),this.type===O.semi||this.canInsertSemicolon()||this.type!==O.star&&!this.type.startsExpr)q.delegate=!1,q.argument=null;else q.delegate=this.eat(O.star),q.argument=this.parseMaybeAssign(Z);return this.finishNode(q,"YieldExpression")};$1.parseAwait=function(Z){if(!this.awaitPos)this.awaitPos=this.start;var q=this.startNode();return this.next(),q.argument=this.parseMaybeUnary(null,!0,!1,Z),this.finishNode(q,"AwaitExpression")};x4=l1.prototype;x4.raise=function(Z,q){var J=s2(this.input,Z);q+=" ("+J.line+":"+J.column+")";var Q=SyntaxError(q);throw Q.pos=Z,Q.loc=J,Q.raisedAt=this.pos,Q};x4.raiseRecoverable=x4.raise;x4.curPosition=function(){if(this.options.locations)return new U0(this.curLine,this.pos-this.lineStart)};U8=l1.prototype;U8.enterScope=function(Z){this.scopeStack.push(new jH(Z))};U8.exitScope=function(){this.scopeStack.pop()};U8.treatFunctionsAsVarInScope=function(Z){return Z.flags&U6||!this.inModule&&Z.flags&j0};U8.declareName=function(Z,q,J){var Q=!1;if(q===a5){var Y=this.currentScope();if(Q=Y.lexical.indexOf(Z)>-1||Y.functions.indexOf(Z)>-1||Y.var.indexOf(Z)>-1,Y.lexical.push(Z),this.inModule&&Y.flags&j0)delete this.undefinedExports[Z]}else if(q===qz){var z=this.currentScope();z.lexical.push(Z)}else if(q===Zz){var X=this.currentScope();if(this.treatFunctionsAsVar)Q=X.lexical.indexOf(Z)>-1;else Q=X.lexical.indexOf(Z)>-1||X.var.indexOf(Z)>-1;X.functions.push(Z)}else for(var V=this.scopeStack.length-1;V>=0;--V){var W=this.scopeStack[V];if(W.lexical.indexOf(Z)>-1&&!(W.flags&t2&&W.lexical[0]===Z)||!this.treatFunctionsAsVarInScope(W)&&W.functions.indexOf(Z)>-1){Q=!0;break}if(W.var.push(Z),this.inModule&&W.flags&j0)delete this.undefinedExports[Z];if(W.flags&Jq)break}if(Q)this.raiseRecoverable(J,"Identifier '"+Z+"' has already been declared")};U8.checkLocalExport=function(Z){if(this.scopeStack[0].lexical.indexOf(Z.name)===-1&&this.scopeStack[0].var.indexOf(Z.name)===-1)this.undefinedExports[Z.name]=Z};U8.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};U8.currentVarScope=function(){for(var Z=this.scopeStack.length-1;;Z--){var q=this.scopeStack[Z];if(q.flags&Jq)return q}};U8.currentThisScope=function(){for(var Z=this.scopeStack.length-1;;Z--){var q=this.scopeStack[Z];if(q.flags&Jq&&!(q.flags&o2))return q}};I0=l1.prototype;I0.startNode=function(){return new z7(this,this.start,this.startLoc)};I0.startNodeAt=function(Z,q){return new z7(this,Z,q)};I0.finishNode=function(Z,q){return zz.call(this,Z,q,this.lastTokEnd,this.lastTokEndLoc)};I0.finishNodeAt=function(Z,q,J,Q){return zz.call(this,Z,q,J,Q)};I0.copyNode=function(Z){var q=new z7(this,Z.start,this.startLoc);for(var J in Z)q[J]=Z[J];return q};Vz=Xz+" Extended_Pictographic",Wz=Vz,Kz=Wz+" EBase EComp EMod EPres ExtPict",BH=Kz,HH={9:Xz,10:Vz,11:Wz,12:Kz,13:BH},$z=Gz+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Uz=$z+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",jz=Uz+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",MH=jz+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",FH={9:Gz,10:$z,11:Uz,12:jz,13:MH},Bz={};for(a6=0,M4=[9,10,11,12,13];a6<M4.length;a6+=1)XZ=M4[a6],LH(XZ);z1=l1.prototype;r5.prototype.reset=function(q,J,Q){var Y=Q.indexOf("u")!==-1;this.start=q|0,this.source=J+"",this.flags=Q,this.switchU=Y&&this.parser.options.ecmaVersion>=6,this.switchN=Y&&this.parser.options.ecmaVersion>=9};r5.prototype.raise=function(q){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+q)};r5.prototype.at=function(q,J){if(J===void 0)J=!1;var Q=this.source,Y=Q.length;if(q>=Y)return-1;var z=Q.charCodeAt(q);if(!(J||this.switchU)||z<=55295||z>=57344||q+1>=Y)return z;var X=Q.charCodeAt(q+1);return X>=56320&&X<=57343?(z<<10)+X-56613888:z};r5.prototype.nextIndex=function(q,J){if(J===void 0)J=!1;var Q=this.source,Y=Q.length;if(q>=Y)return Y;var z=Q.charCodeAt(q),X;if(!(J||this.switchU)||z<=55295||z>=57344||q+1>=Y||(X=Q.charCodeAt(q+1))<56320||X>57343)return q+1;return q+2};r5.prototype.current=function(q){if(q===void 0)q=!1;return this.at(this.pos,q)};r5.prototype.lookahead=function(q){if(q===void 0)q=!1;return this.at(this.nextIndex(this.pos,q),q)};r5.prototype.advance=function(q){if(q===void 0)q=!1;this.pos=this.nextIndex(this.pos,q)};r5.prototype.eat=function(q,J){if(J===void 0)J=!1;if(this.current(J)===q)return this.advance(J),!0;return!1};z1.validateRegExpFlags=function(Z){var{validFlags:q,flags:J}=Z;for(var Q=0;Q<J.length;Q++){var Y=J.charAt(Q);if(q.indexOf(Y)===-1)this.raise(Z.start,"Invalid regular expression flag");if(J.indexOf(Y,Q+1)>-1)this.raise(Z.start,"Duplicate regular expression flag")}};z1.validateRegExpPattern=function(Z){if(this.regexp_pattern(Z),!Z.switchN&&this.options.ecmaVersion>=9&&Z.groupNames.length>0)Z.switchN=!0,this.regexp_pattern(Z)};z1.regexp_pattern=function(Z){if(Z.pos=0,Z.lastIntValue=0,Z.lastStringValue="",Z.lastAssertionIsQuantifiable=!1,Z.numCapturingParens=0,Z.maxBackReference=0,Z.groupNames.length=0,Z.backReferenceNames.length=0,this.regexp_disjunction(Z),Z.pos!==Z.source.length){if(Z.eat(41))Z.raise("Unmatched ')'");if(Z.eat(93)||Z.eat(125))Z.raise("Lone quantifier brackets")}if(Z.maxBackReference>Z.numCapturingParens)Z.raise("Invalid escape");for(var q=0,J=Z.backReferenceNames;q<J.length;q+=1){var Q=J[q];if(Z.groupNames.indexOf(Q)===-1)Z.raise("Invalid named capture referenced")}};z1.regexp_disjunction=function(Z){this.regexp_alternative(Z);while(Z.eat(124))this.regexp_alternative(Z);if(this.regexp_eatQuantifier(Z,!0))Z.raise("Nothing to repeat");if(Z.eat(123))Z.raise("Lone quantifier brackets")};z1.regexp_alternative=function(Z){while(Z.pos<Z.source.length&&this.regexp_eatTerm(Z));};z1.regexp_eatTerm=function(Z){if(this.regexp_eatAssertion(Z)){if(Z.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(Z)){if(Z.switchU)Z.raise("Invalid quantifier")}return!0}if(Z.switchU?this.regexp_eatAtom(Z):this.regexp_eatExtendedAtom(Z))return this.regexp_eatQuantifier(Z),!0;return!1};z1.regexp_eatAssertion=function(Z){var q=Z.pos;if(Z.lastAssertionIsQuantifiable=!1,Z.eat(94)||Z.eat(36))return!0;if(Z.eat(92)){if(Z.eat(66)||Z.eat(98))return!0;Z.pos=q}if(Z.eat(40)&&Z.eat(63)){var J=!1;if(this.options.ecmaVersion>=9)J=Z.eat(60);if(Z.eat(61)||Z.eat(33)){if(this.regexp_disjunction(Z),!Z.eat(41))Z.raise("Unterminated group");return Z.lastAssertionIsQuantifiable=!J,!0}}return Z.pos=q,!1};z1.regexp_eatQuantifier=function(Z,q){if(q===void 0)q=!1;if(this.regexp_eatQuantifierPrefix(Z,q))return Z.eat(63),!0;return!1};z1.regexp_eatQuantifierPrefix=function(Z,q){return Z.eat(42)||Z.eat(43)||Z.eat(63)||this.regexp_eatBracedQuantifier(Z,q)};z1.regexp_eatBracedQuantifier=function(Z,q){var J=Z.pos;if(Z.eat(123)){var Q=0,Y=-1;if(this.regexp_eatDecimalDigits(Z)){if(Q=Z.lastIntValue,Z.eat(44)&&this.regexp_eatDecimalDigits(Z))Y=Z.lastIntValue;if(Z.eat(125)){if(Y!==-1&&Y<Q&&!q)Z.raise("numbers out of order in {} quantifier");return!0}}if(Z.switchU&&!q)Z.raise("Incomplete quantifier");Z.pos=J}return!1};z1.regexp_eatAtom=function(Z){return this.regexp_eatPatternCharacters(Z)||Z.eat(46)||this.regexp_eatReverseSolidusAtomEscape(Z)||this.regexp_eatCharacterClass(Z)||this.regexp_eatUncapturingGroup(Z)||this.regexp_eatCapturingGroup(Z)};z1.regexp_eatReverseSolidusAtomEscape=function(Z){var q=Z.pos;if(Z.eat(92)){if(this.regexp_eatAtomEscape(Z))return!0;Z.pos=q}return!1};z1.regexp_eatUncapturingGroup=function(Z){var q=Z.pos;if(Z.eat(40)){if(Z.eat(63)&&Z.eat(58)){if(this.regexp_disjunction(Z),Z.eat(41))return!0;Z.raise("Unterminated group")}Z.pos=q}return!1};z1.regexp_eatCapturingGroup=function(Z){if(Z.eat(40)){if(this.options.ecmaVersion>=9)this.regexp_groupSpecifier(Z);else if(Z.current()===63)Z.raise("Invalid group");if(this.regexp_disjunction(Z),Z.eat(41))return Z.numCapturingParens+=1,!0;Z.raise("Unterminated group")}return!1};z1.regexp_eatExtendedAtom=function(Z){return Z.eat(46)||this.regexp_eatReverseSolidusAtomEscape(Z)||this.regexp_eatCharacterClass(Z)||this.regexp_eatUncapturingGroup(Z)||this.regexp_eatCapturingGroup(Z)||this.regexp_eatInvalidBracedQuantifier(Z)||this.regexp_eatExtendedPatternCharacter(Z)};z1.regexp_eatInvalidBracedQuantifier=function(Z){if(this.regexp_eatBracedQuantifier(Z,!0))Z.raise("Nothing to repeat");return!1};z1.regexp_eatSyntaxCharacter=function(Z){var q=Z.current();if(Hz(q))return Z.lastIntValue=q,Z.advance(),!0;return!1};z1.regexp_eatPatternCharacters=function(Z){var q=Z.pos,J=0;while((J=Z.current())!==-1&&!Hz(J))Z.advance();return Z.pos!==q};z1.regexp_eatExtendedPatternCharacter=function(Z){var q=Z.current();if(q!==-1&&q!==36&&!(q>=40&&q<=43)&&q!==46&&q!==63&&q!==91&&q!==94&&q!==124)return Z.advance(),!0;return!1};z1.regexp_groupSpecifier=function(Z){if(Z.eat(63)){if(this.regexp_eatGroupName(Z)){if(Z.groupNames.indexOf(Z.lastStringValue)!==-1)Z.raise("Duplicate capture group name");Z.groupNames.push(Z.lastStringValue);return}Z.raise("Invalid group")}};z1.regexp_eatGroupName=function(Z){if(Z.lastStringValue="",Z.eat(60)){if(this.regexp_eatRegExpIdentifierName(Z)&&Z.eat(62))return!0;Z.raise("Invalid capture group name")}return!1};z1.regexp_eatRegExpIdentifierName=function(Z){if(Z.lastStringValue="",this.regexp_eatRegExpIdentifierStart(Z)){Z.lastStringValue+=K8(Z.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(Z))Z.lastStringValue+=K8(Z.lastIntValue);return!0}return!1};z1.regexp_eatRegExpIdentifierStart=function(Z){var q=Z.pos,J=this.options.ecmaVersion>=11,Q=Z.current(J);if(Z.advance(J),Q===92&&this.regexp_eatRegExpUnicodeEscapeSequence(Z,J))Q=Z.lastIntValue;if(NH(Q))return Z.lastIntValue=Q,!0;return Z.pos=q,!1};z1.regexp_eatRegExpIdentifierPart=function(Z){var q=Z.pos,J=this.options.ecmaVersion>=11,Q=Z.current(J);if(Z.advance(J),Q===92&&this.regexp_eatRegExpUnicodeEscapeSequence(Z,J))Q=Z.lastIntValue;if(wH(Q))return Z.lastIntValue=Q,!0;return Z.pos=q,!1};z1.regexp_eatAtomEscape=function(Z){if(this.regexp_eatBackReference(Z)||this.regexp_eatCharacterClassEscape(Z)||this.regexp_eatCharacterEscape(Z)||Z.switchN&&this.regexp_eatKGroupName(Z))return!0;if(Z.switchU){if(Z.current()===99)Z.raise("Invalid unicode escape");Z.raise("Invalid escape")}return!1};z1.regexp_eatBackReference=function(Z){var q=Z.pos;if(this.regexp_eatDecimalEscape(Z)){var J=Z.lastIntValue;if(Z.switchU){if(J>Z.maxBackReference)Z.maxBackReference=J;return!0}if(J<=Z.numCapturingParens)return!0;Z.pos=q}return!1};z1.regexp_eatKGroupName=function(Z){if(Z.eat(107)){if(this.regexp_eatGroupName(Z))return Z.backReferenceNames.push(Z.lastStringValue),!0;Z.raise("Invalid named reference")}return!1};z1.regexp_eatCharacterEscape=function(Z){return this.regexp_eatControlEscape(Z)||this.regexp_eatCControlLetter(Z)||this.regexp_eatZero(Z)||this.regexp_eatHexEscapeSequence(Z)||this.regexp_eatRegExpUnicodeEscapeSequence(Z,!1)||!Z.switchU&&this.regexp_eatLegacyOctalEscapeSequence(Z)||this.regexp_eatIdentityEscape(Z)};z1.regexp_eatCControlLetter=function(Z){var q=Z.pos;if(Z.eat(99)){if(this.regexp_eatControlLetter(Z))return!0;Z.pos=q}return!1};z1.regexp_eatZero=function(Z){if(Z.current()===48&&!X7(Z.lookahead()))return Z.lastIntValue=0,Z.advance(),!0;return!1};z1.regexp_eatControlEscape=function(Z){var q=Z.current();if(q===116)return Z.lastIntValue=9,Z.advance(),!0;if(q===110)return Z.lastIntValue=10,Z.advance(),!0;if(q===118)return Z.lastIntValue=11,Z.advance(),!0;if(q===102)return Z.lastIntValue=12,Z.advance(),!0;if(q===114)return Z.lastIntValue=13,Z.advance(),!0;return!1};z1.regexp_eatControlLetter=function(Z){var q=Z.current();if(Mz(q))return Z.lastIntValue=q%32,Z.advance(),!0;return!1};z1.regexp_eatRegExpUnicodeEscapeSequence=function(Z,q){if(q===void 0)q=!1;var J=Z.pos,Q=q||Z.switchU;if(Z.eat(117)){if(this.regexp_eatFixedHexDigits(Z,4)){var Y=Z.lastIntValue;if(Q&&Y>=55296&&Y<=56319){var z=Z.pos;if(Z.eat(92)&&Z.eat(117)&&this.regexp_eatFixedHexDigits(Z,4)){var X=Z.lastIntValue;if(X>=56320&&X<=57343)return Z.lastIntValue=(Y-55296)*1024+(X-56320)+65536,!0}Z.pos=z,Z.lastIntValue=Y}return!0}if(Q&&Z.eat(123)&&this.regexp_eatHexDigits(Z)&&Z.eat(125)&&OH(Z.lastIntValue))return!0;if(Q)Z.raise("Invalid unicode escape");Z.pos=J}return!1};z1.regexp_eatIdentityEscape=function(Z){if(Z.switchU){if(this.regexp_eatSyntaxCharacter(Z))return!0;if(Z.eat(47))return Z.lastIntValue=47,!0;return!1}var q=Z.current();if(q!==99&&(!Z.switchN||q!==107))return Z.lastIntValue=q,Z.advance(),!0;return!1};z1.regexp_eatDecimalEscape=function(Z){Z.lastIntValue=0;var q=Z.current();if(q>=49&&q<=57){do Z.lastIntValue=10*Z.lastIntValue+(q-48),Z.advance();while((q=Z.current())>=48&&q<=57);return!0}return!1};z1.regexp_eatCharacterClassEscape=function(Z){var q=Z.current();if(RH(q))return Z.lastIntValue=-1,Z.advance(),!0;if(Z.switchU&&this.options.ecmaVersion>=9&&(q===80||q===112)){if(Z.lastIntValue=-1,Z.advance(),Z.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(Z)&&Z.eat(125))return!0;Z.raise("Invalid property name")}return!1};z1.regexp_eatUnicodePropertyValueExpression=function(Z){var q=Z.pos;if(this.regexp_eatUnicodePropertyName(Z)&&Z.eat(61)){var J=Z.lastStringValue;if(this.regexp_eatUnicodePropertyValue(Z)){var Q=Z.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(Z,J,Q),!0}}if(Z.pos=q,this.regexp_eatLoneUnicodePropertyNameOrValue(Z)){var Y=Z.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(Z,Y),!0}return!1};z1.regexp_validateUnicodePropertyNameAndValue=function(Z,q,J){if(!C0(Z.unicodeProperties.nonBinary,q))Z.raise("Invalid property name");if(!Z.unicodeProperties.nonBinary[q].test(J))Z.raise("Invalid property value")};z1.regexp_validateUnicodePropertyNameOrValue=function(Z,q){if(!Z.unicodeProperties.binary.test(q))Z.raise("Invalid property name")};z1.regexp_eatUnicodePropertyName=function(Z){var q=0;Z.lastStringValue="";while(Fz(q=Z.current()))Z.lastStringValue+=K8(q),Z.advance();return Z.lastStringValue!==""};z1.regexp_eatUnicodePropertyValue=function(Z){var q=0;Z.lastStringValue="";while(CH(q=Z.current()))Z.lastStringValue+=K8(q),Z.advance();return Z.lastStringValue!==""};z1.regexp_eatLoneUnicodePropertyNameOrValue=function(Z){return this.regexp_eatUnicodePropertyValue(Z)};z1.regexp_eatCharacterClass=function(Z){if(Z.eat(91)){if(Z.eat(94),this.regexp_classRanges(Z),Z.eat(93))return!0;Z.raise("Unterminated character class")}return!1};z1.regexp_classRanges=function(Z){while(this.regexp_eatClassAtom(Z)){var q=Z.lastIntValue;if(Z.eat(45)&&this.regexp_eatClassAtom(Z)){var J=Z.lastIntValue;if(Z.switchU&&(q===-1||J===-1))Z.raise("Invalid character class");if(q!==-1&&J!==-1&&q>J)Z.raise("Range out of order in character class")}}};z1.regexp_eatClassAtom=function(Z){var q=Z.pos;if(Z.eat(92)){if(this.regexp_eatClassEscape(Z))return!0;if(Z.switchU){var J=Z.current();if(J===99||wz(J))Z.raise("Invalid class escape");Z.raise("Invalid escape")}Z.pos=q}var Q=Z.current();if(Q!==93)return Z.lastIntValue=Q,Z.advance(),!0;return!1};z1.regexp_eatClassEscape=function(Z){var q=Z.pos;if(Z.eat(98))return Z.lastIntValue=8,!0;if(Z.switchU&&Z.eat(45))return Z.lastIntValue=45,!0;if(!Z.switchU&&Z.eat(99)){if(this.regexp_eatClassControlLetter(Z))return!0;Z.pos=q}return this.regexp_eatCharacterClassEscape(Z)||this.regexp_eatCharacterEscape(Z)};z1.regexp_eatClassControlLetter=function(Z){var q=Z.current();if(X7(q)||q===95)return Z.lastIntValue=q%32,Z.advance(),!0;return!1};z1.regexp_eatHexEscapeSequence=function(Z){var q=Z.pos;if(Z.eat(120)){if(this.regexp_eatFixedHexDigits(Z,2))return!0;if(Z.switchU)Z.raise("Invalid escape");Z.pos=q}return!1};z1.regexp_eatDecimalDigits=function(Z){var q=Z.pos,J=0;Z.lastIntValue=0;while(X7(J=Z.current()))Z.lastIntValue=10*Z.lastIntValue+(J-48),Z.advance();return Z.pos!==q};z1.regexp_eatHexDigits=function(Z){var q=Z.pos,J=0;Z.lastIntValue=0;while(Lz(J=Z.current()))Z.lastIntValue=16*Z.lastIntValue+Nz(J),Z.advance();return Z.pos!==q};z1.regexp_eatLegacyOctalEscapeSequence=function(Z){if(this.regexp_eatOctalDigit(Z)){var q=Z.lastIntValue;if(this.regexp_eatOctalDigit(Z)){var J=Z.lastIntValue;if(q<=3&&this.regexp_eatOctalDigit(Z))Z.lastIntValue=q*64+J*8+Z.lastIntValue;else Z.lastIntValue=q*8+J}else Z.lastIntValue=q;return!0}return!1};z1.regexp_eatOctalDigit=function(Z){var q=Z.current();if(wz(q))return Z.lastIntValue=q-48,Z.advance(),!0;return Z.lastIntValue=0,!1};z1.regexp_eatFixedHexDigits=function(Z,q){var J=Z.pos;Z.lastIntValue=0;for(var Q=0;Q<q;++Q){var Y=Z.current();if(!Lz(Y))return Z.pos=J,!1;Z.lastIntValue=16*Z.lastIntValue+Nz(Y),Z.advance()}return!0};B1=l1.prototype;B1.next=function(Z){if(!Z&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new Xq(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};B1.getToken=function(){return this.next(),new Xq(this)};if(typeof Symbol<"u")B1[Symbol.iterator]=function(){var Z=this;return{next:function(){var q=Z.getToken();return{done:q.type===O.eof,value:q}}}};B1.nextToken=function(){var Z=this.curContext();if(!Z||!Z.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(O.eof);if(Z.override)return Z.override(this);else this.readToken(this.fullCharCodeAtPos())};B1.readToken=function(Z){if(s5(Z,this.options.ecmaVersion>=6)||Z===92)return this.readWord();return this.getTokenFromCode(Z)};B1.fullCharCodeAtPos=function(){var Z=this.input.charCodeAt(this.pos);if(Z<=55295||Z>=56320)return Z;var q=this.input.charCodeAt(this.pos+1);return q<=56319||q>=57344?Z:(Z<<10)+q-56613888};B1.skipBlockComment=function(){var Z=this.options.onComment&&this.curPosition(),q=this.pos,J=this.input.indexOf("*/",this.pos+=2);if(J===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=J+2,this.options.locations)for(var Q=void 0,Y=q;(Q=i2(this.input,Y,this.pos))>-1;)++this.curLine,Y=this.lineStart=Q;if(this.options.onComment)this.options.onComment(!0,this.input.slice(q+2,J),q,this.pos,Z,this.curPosition())};B1.skipLineComment=function(Z){var q=this.pos,J=this.options.onComment&&this.curPosition(),Q=this.input.charCodeAt(this.pos+=Z);while(this.pos<this.input.length&&!$6(Q))Q=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(q+Z,this.pos),q,this.pos,J,this.curPosition())};B1.skipSpace=function(){Z:while(this.pos<this.input.length){var Z=this.input.charCodeAt(this.pos);switch(Z){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10)++this.pos;case 10:case 8232:case 8233:if(++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 Z}break;default:if(Z>8&&Z<14||Z>=5760&&n2.test(String.fromCharCode(Z)))++this.pos;else break Z}}};B1.finishToken=function(Z,q){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var J=this.type;this.type=Z,this.value=q,this.updateContext(J)};B1.readToken_dot=function(){var Z=this.input.charCodeAt(this.pos+1);if(Z>=48&&Z<=57)return this.readNumber(!0);var q=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&Z===46&&q===46)return this.pos+=3,this.finishToken(O.ellipsis);else return++this.pos,this.finishToken(O.dot)};B1.readToken_slash=function(){var Z=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(Z===61)return this.finishOp(O.assign,2);return this.finishOp(O.slash,1)};B1.readToken_mult_modulo_exp=function(Z){var q=this.input.charCodeAt(this.pos+1),J=1,Q=Z===42?O.star:O.modulo;if(this.options.ecmaVersion>=7&&Z===42&&q===42)++J,Q=O.starstar,q=this.input.charCodeAt(this.pos+2);if(q===61)return this.finishOp(O.assign,J+1);return this.finishOp(Q,J)};B1.readToken_pipe_amp=function(Z){var q=this.input.charCodeAt(this.pos+1);if(q===Z){if(this.options.ecmaVersion>=12){var J=this.input.charCodeAt(this.pos+2);if(J===61)return this.finishOp(O.assign,3)}return this.finishOp(Z===124?O.logicalOR:O.logicalAND,2)}if(q===61)return this.finishOp(O.assign,2);return this.finishOp(Z===124?O.bitwiseOR:O.bitwiseAND,1)};B1.readToken_caret=function(){var Z=this.input.charCodeAt(this.pos+1);if(Z===61)return this.finishOp(O.assign,2);return this.finishOp(O.bitwiseXOR,1)};B1.readToken_plus_min=function(Z){var q=this.input.charCodeAt(this.pos+1);if(q===Z){if(q===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||O5.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(O.incDec,2)}if(q===61)return this.finishOp(O.assign,2);return this.finishOp(O.plusMin,1)};B1.readToken_lt_gt=function(Z){var q=this.input.charCodeAt(this.pos+1),J=1;if(q===Z){if(J=Z===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+J)===61)return this.finishOp(O.assign,J+1);return this.finishOp(O.bitShift,J)}if(q===33&&Z===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45)return this.skipLineComment(4),this.skipSpace(),this.nextToken();if(q===61)J=2;return this.finishOp(O.relational,J)};B1.readToken_eq_excl=function(Z){var q=this.input.charCodeAt(this.pos+1);if(q===61)return this.finishOp(O.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(Z===61&&q===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(O.arrow);return this.finishOp(Z===61?O.eq:O.prefix,1)};B1.readToken_question=function(){var Z=this.options.ecmaVersion;if(Z>=11){var q=this.input.charCodeAt(this.pos+1);if(q===46){var J=this.input.charCodeAt(this.pos+2);if(J<48||J>57)return this.finishOp(O.questionDot,2)}if(q===63){if(Z>=12){var Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(O.assign,3)}return this.finishOp(O.coalesce,2)}}return this.finishOp(O.question,1)};B1.readToken_numberSign=function(){var Z=this.options.ecmaVersion,q=35;if(Z>=13){if(++this.pos,q=this.fullCharCodeAtPos(),s5(q,!0)||q===92)return this.finishToken(O.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+K8(q)+"'")};B1.getTokenFromCode=function(Z){switch(Z){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(O.parenL);case 41:return++this.pos,this.finishToken(O.parenR);case 59:return++this.pos,this.finishToken(O.semi);case 44:return++this.pos,this.finishToken(O.comma);case 91:return++this.pos,this.finishToken(O.bracketL);case 93:return++this.pos,this.finishToken(O.bracketR);case 123:return++this.pos,this.finishToken(O.braceL);case 125:return++this.pos,this.finishToken(O.braceR);case 58:return++this.pos,this.finishToken(O.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(O.backQuote);case 48:var q=this.input.charCodeAt(this.pos+1);if(q===120||q===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(q===111||q===79)return this.readRadixNumber(8);if(q===98||q===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(Z);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(Z);case 124:case 38:return this.readToken_pipe_amp(Z);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(Z);case 60:case 62:return this.readToken_lt_gt(Z);case 61:case 33:return this.readToken_eq_excl(Z);case 63:return this.readToken_question();case 126:return this.finishOp(O.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+K8(Z)+"'")};B1.finishOp=function(Z,q){var J=this.input.slice(this.pos,this.pos+q);return this.pos+=q,this.finishToken(Z,J)};B1.readRegexp=function(){var Z,q,J=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(J,"Unterminated regular expression");var Q=this.input.charAt(this.pos);if(O5.test(Q))this.raise(J,"Unterminated regular expression");if(!Z){if(Q==="[")q=!0;else if(Q==="]"&&q)q=!1;else if(Q==="/"&&!q)break;Z=Q==="\\"}else Z=!1;++this.pos}var Y=this.input.slice(J,this.pos);++this.pos;var z=this.pos,X=this.readWord1();if(this.containsEsc)this.unexpected(z);var V=this.regexpState||(this.regexpState=new r5(this));V.reset(J,Y,X),this.validateRegExpFlags(V),this.validateRegExpPattern(V);var W=null;try{W=new RegExp(Y,X)}catch(K){}return this.finishToken(O.regexp,{pattern:Y,flags:X,value:W})};B1.readInt=function(Z,q,J){var Q=this.options.ecmaVersion>=12&&q===void 0,Y=J&&this.input.charCodeAt(this.pos)===48,z=this.pos,X=0,V=0;for(var W=0,K=q==null?1/0:q;W<K;++W,++this.pos){var G=this.input.charCodeAt(this.pos),F=void 0;if(Q&&G===95){if(Y)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(V===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(W===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");V=G;continue}if(G>=97)F=G-97+10;else if(G>=65)F=G-65+10;else if(G>=48&&G<=57)F=G-48;else F=1/0;if(F>=Z)break;V=G,X=X*Z+F}if(Q&&V===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===z||q!=null&&this.pos-z!==q)return null;return X};B1.readRadixNumber=function(Z){var q=this.pos;this.pos+=2;var J=this.readInt(Z);if(J==null)this.raise(this.start+2,"Expected number in radix "+Z);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)J=Oz(this.input.slice(q,this.pos)),++this.pos;else if(s5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(O.num,J)};B1.readNumber=function(Z){var q=this.pos;if(!Z&&this.readInt(10,void 0,!0)===null)this.raise(q,"Invalid number");var J=this.pos-q>=2&&this.input.charCodeAt(q)===48;if(J&&this.strict)this.raise(q,"Invalid number");var Q=this.input.charCodeAt(this.pos);if(!J&&!Z&&this.options.ecmaVersion>=11&&Q===110){var Y=Oz(this.input.slice(q,this.pos));if(++this.pos,s5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(O.num,Y)}if(J&&/[89]/.test(this.input.slice(q,this.pos)))J=!1;if(Q===46&&!J)++this.pos,this.readInt(10),Q=this.input.charCodeAt(this.pos);if((Q===69||Q===101)&&!J){if(Q=this.input.charCodeAt(++this.pos),Q===43||Q===45)++this.pos;if(this.readInt(10)===null)this.raise(q,"Invalid number")}if(s5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var z=_H(this.input.slice(q,this.pos),J);return this.finishToken(O.num,z)};B1.readCodePoint=function(){var Z=this.input.charCodeAt(this.pos),q;if(Z===123){if(this.options.ecmaVersion<6)this.unexpected();var J=++this.pos;if(q=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,q>1114111)this.invalidStringToken(J,"Code point out of bounds")}else q=this.readHexChar(4);return q};B1.readString=function(Z){var q="",J=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var Q=this.input.charCodeAt(this.pos);if(Q===Z)break;if(Q===92)q+=this.input.slice(J,this.pos),q+=this.readEscapedChar(!1),J=this.pos;else if(Q===8232||Q===8233){if(this.options.ecmaVersion<10)this.raise(this.start,"Unterminated string constant");if(++this.pos,this.options.locations)this.curLine++,this.lineStart=this.pos}else{if($6(Q))this.raise(this.start,"Unterminated string constant");++this.pos}}return q+=this.input.slice(J,this.pos++),this.finishToken(O.string,q)};Rz={};B1.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(Z){if(Z===Rz)this.readInvalidTemplateToken();else throw Z}this.inTemplateElement=!1};B1.invalidStringToken=function(Z,q){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Rz;else this.raise(Z,q)};B1.readTmplToken=function(){var Z="",q=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var J=this.input.charCodeAt(this.pos);if(J===96||J===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===O.template||this.type===O.invalidTemplate))if(J===36)return this.pos+=2,this.finishToken(O.dollarBraceL);else return++this.pos,this.finishToken(O.backQuote);return Z+=this.input.slice(q,this.pos),this.finishToken(O.template,Z)}if(J===92)Z+=this.input.slice(q,this.pos),Z+=this.readEscapedChar(!0),q=this.pos;else if($6(J)){switch(Z+=this.input.slice(q,this.pos),++this.pos,J){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:Z+=`
|
|
44
|
-
`;break;default:Z+=String.fromCharCode(
|
|
45
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return K8(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(Z){var J=this.pos-1;return this.invalidStringToken(J,"Invalid escape sequence in template string"),null}default:if(q>=48&&q<=55){var Q=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],Y=parseInt(Q,8);if(Y>255)Q=Q.slice(0,-1),Y=parseInt(Q,8);if(this.pos+=Q.length-1,q=this.input.charCodeAt(this.pos),(Q!=="0"||q===56||q===57)&&(this.strict||Z))this.invalidStringToken(this.pos-1-Q.length,Z?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(Y)}if($6(q))return"";return String.fromCharCode(q)}};B1.readHexChar=function(Z){var q=this.pos,J=this.readInt(16,Z);if(J===null)this.invalidStringToken(q,"Bad character escape sequence");return J};B1.readWord1=function(){this.containsEsc=!1;var Z="",q=!0,J=this.pos,Q=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var Y=this.fullCharCodeAtPos();if(W6(Y,Q))this.pos+=Y<=65535?1:2;else if(Y===92){this.containsEsc=!0,Z+=this.input.slice(J,this.pos);var z=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var X=this.readCodePoint();if(!(q?s5:W6)(X,Q))this.invalidStringToken(z,"Invalid Unicode escape");Z+=K8(X),J=this.pos}else break;q=!1}return Z+this.input.slice(J,this.pos)};B1.readWord=function(){var Z=this.readWord1(),q=O.name;if(this.keywords.test(Z))q=eZ[Z];return this.finishToken(q,Z)};l1.acorn={Parser:l1,version:IH,defaultOptions:YZ,Position:U0,SourceLocation:Q7,getLineInfo:s2,Node:z7,TokenType:R1,tokTypes:O,keywordTypes:eZ,TokContext:D5,tokContexts:P1,isIdentifierChar:W6,isIdentifierStart:s5,Token:Xq,isNewLine:$6,lineBreak:O5,lineBreakG:JH,nonASCIIwhitespace:n2};AH=[{active:!0,deprecated:"resolveAssetUrl",replacement:"resolveFileUrl"}];EH={delete(){return!1},get(){return},has(){return!1},set(){}};_z=class _z extends AZ{constructor(){super();this.parent=null,this.variables.set("undefined",new nZ)}findVariable(Z){let q=this.variables.get(Z);if(!q)q=new n4(Z),this.variables.set(Z,q);return q}};lH={buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1},cH=Object.keys(lH);f4=new F$;f4.setMaxListeners(0);KZ.on(v4,()=>f4.emit(v4));rH={recommended:{annotations:!0,correctVarValueBeforeDeclaration:!1,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!1},safest:{annotations:!0,correctVarValueBeforeDeclaration:!0,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0},smallest:{annotations:!0,correctVarValueBeforeDeclaration:!1,moduleSideEffects:()=>!1,propertyReadSideEffects:!1,tryCatchDeoptimization:!1,unknownGlobalSideEffects:!1}},oH={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}};jM=/[\x00-\x1F\x7F<>*#"{}|^[\]`;?:&=+$,]/g,BM=/^[a-z]:/i;sQ=new Set(["auto","esModule","default","defaultOnly",!0,!1]);(function(Z){Z[Z.ENTRY_CHUNK=0]="ENTRY_CHUNK",Z[Z.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",Z[Z.ASSET=2]="ASSET"})(e6||(e6={}))});var mz=U1((pM)=>{function vz(Z,q,J){throw Error(J?`No known conditions for "${q}" specifier in "${Z}" package`:`Missing "${q}" specifier in "${Z}" package`)}function fz(Z,q,J,Q){let Y,z,X=Uq(Z,J),V=function(K){let G=new Set(["default",...K.conditions||[]]);return K.unsafe||G.add(K.require?"require":"import"),K.unsafe||G.add(K.browser?"browser":"node"),G}(Q||{}),W=q[X];if(W===void 0){let K,G,F,M;for(M in q)G&&M.length<G.length||(M[M.length-1]==="/"&&X.startsWith(M)?(z=X.substring(M.length),G=M):M.length>1&&(F=M.indexOf("*",1),~F&&(K=RegExp("^"+M.substring(0,F)+"(.*)"+M.substring(1+F)+"$").exec(X),K&&K[1]&&(z=K[1],G=M))));W=q[G]}return W||vz(Z,X),Y=$q(W,V),Y||vz(Z,X,1),z&&function(K,G){let F,M=0,B=K.length,H=/[*]/g,N=/[/]$/;for(;M<B;M++)K[M]=H.test(F=K[M])?F.replace(H,G):N.test(F)?F+G:F}(Y,z),Y}function Uq(Z,q,J){if(Z===q||q===".")return".";let Q=Z+"/",Y=Q.length,z=q.slice(0,Y)===Q,X=z?q.slice(Y):q;return X[0]==="#"?X:z||!J?X.slice(0,2)==="./"?X:"./"+X:X}function $q(Z,q,J){if(Z){if(typeof Z=="string")return J&&J.add(Z),[Z];let Q,Y;if(Array.isArray(Z)){for(Y=J||new Set,Q=0;Q<Z.length;Q++)$q(Z[Q],q,Y);if(!J&&Y.size)return[...Y]}else for(Q in Z)if(q.has(Q))return $q(Z[Q],q,J)}}function lM(Z,q={}){let J,Q=0,Y=q.browser,z=q.fields||["module","main"],X=typeof Y=="string";for(Y&&!z.includes("browser")&&(z.unshift("browser"),X&&(Y=Uq(Z.name,Y,!0)));Q<z.length;Q++)if(J=Z[z[Q]]){if(typeof J=="string");else{if(typeof J!="object"||z[Q]!="browser")continue;if(X&&(J=J[Y],J==null))return Y}return typeof J=="string"?"./"+J.replace(/^\.?\//,""):J}}function hz(Z,q,J){let Q,Y=Z.exports;if(Y){if(typeof Y=="string")Y={".":Y};else for(Q in Y){Q[0]!=="."&&(Y={".":Y});break}return fz(Z.name,Y,q||".",J)}}function gz(Z,q,J){if(Z.imports)return fz(Z.name,Z.imports,q,J)}function cM(Z,q,J){return(q=Uq(Z.name,q||"."))[0]==="#"?gz(Z,q,J):hz(Z,q,J)}pM.exports=hz;pM.imports=gz;pM.legacy=lM;pM.resolve=cM});var D0=U1((mC,dz)=>{var rM=a1("path"),uz={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},oM={...uz,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"},tM={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};dz.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:tM,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:rM.sep,extglobChars(Z){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${Z.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(Z){return Z===!0?oM:uz}}});var V7=U1((zF)=>{var eM=a1("path"),ZF=process.platform==="win32",{REGEX_BACKSLASH:qF,REGEX_REMOVE_BACKSLASH:JF,REGEX_SPECIAL_CHARS:QF,REGEX_SPECIAL_CHARS_GLOBAL:YF}=D0();zF.isObject=(Z)=>Z!==null&&typeof Z==="object"&&!Array.isArray(Z);zF.hasRegexChars=(Z)=>QF.test(Z);zF.isRegexChar=(Z)=>Z.length===1&&zF.hasRegexChars(Z);zF.escapeRegex=(Z)=>Z.replace(YF,"\\$1");zF.toPosixSlashes=(Z)=>Z.replace(qF,"/");zF.removeBackslashes=(Z)=>{return Z.replace(JF,(q)=>{return q==="\\"?"":q})};zF.supportsLookbehinds=()=>{let Z=process.version.slice(1).split(".").map(Number);if(Z.length===3&&Z[0]>=9||Z[0]===8&&Z[1]>=10)return!0;return!1};zF.isWindows=(Z)=>{if(Z&&typeof Z.windows==="boolean")return Z.windows;return ZF===!0||eM.sep==="\\"};zF.escapeLast=(Z,q,J)=>{let Q=Z.lastIndexOf(q,J);if(Q===-1)return Z;if(Z[Q-1]==="\\")return zF.escapeLast(Z,q,Q-1);return`${Z.slice(0,Q)}\\${Z.slice(Q)}`};zF.removePrefix=(Z,q={})=>{let J=Z;if(J.startsWith("./"))J=J.slice(2),q.prefix="./";return J};zF.wrapOutput=(Z,q={},J={})=>{let Q=J.contains?"":"^",Y=J.contains?"":"$",z=`${Q}(?:${Z})${Y}`;if(q.negated===!0)z=`(?:^(?!${z}).*$)`;return z}});var tz=U1((dC,oz)=>{var pz=V7(),{CHAR_ASTERISK:jq,CHAR_AT:HF,CHAR_BACKWARD_SLASH:T0,CHAR_COMMA:MF,CHAR_DOT:Bq,CHAR_EXCLAMATION_MARK:Hq,CHAR_FORWARD_SLASH:rz,CHAR_LEFT_CURLY_BRACE:Mq,CHAR_LEFT_PARENTHESES:Fq,CHAR_LEFT_SQUARE_BRACKET:FF,CHAR_PLUS:LF,CHAR_QUESTION_MARK:iz,CHAR_RIGHT_CURLY_BRACE:NF,CHAR_RIGHT_PARENTHESES:nz,CHAR_RIGHT_SQUARE_BRACKET:wF}=D0(),az=(Z)=>{return Z===rz||Z===T0},sz=(Z)=>{if(Z.isPrefix!==!0)Z.depth=Z.isGlobstar?1/0:1},OF=(Z,q)=>{let J=q||{},Q=Z.length-1,Y=J.parts===!0||J.scanToEnd===!0,z=[],X=[],V=[],W=Z,K=-1,G=0,F=0,M=!1,B=!1,H=!1,N=!1,C=!1,A=!1,S=!1,T=!1,g=!1,f=!1,u=0,E,R,P={value:"",depth:0,isGlob:!1},I=()=>K>=Q,j=()=>W.charCodeAt(K+1),x=()=>{return E=R,W.charCodeAt(++K)};while(K<Q){R=x();let l;if(R===T0){if(S=P.backslashes=!0,R=x(),R===Mq)A=!0;continue}if(A===!0||R===Mq){u++;while(I()!==!0&&(R=x())){if(R===T0){S=P.backslashes=!0,x();continue}if(R===Mq){u++;continue}if(A!==!0&&R===Bq&&(R=x())===Bq){if(M=P.isBrace=!0,H=P.isGlob=!0,f=!0,Y===!0)continue;break}if(A!==!0&&R===MF){if(M=P.isBrace=!0,H=P.isGlob=!0,f=!0,Y===!0)continue;break}if(R===NF){if(u--,u===0){A=!1,M=P.isBrace=!0,f=!0;break}}}if(Y===!0)continue;break}if(R===rz){if(z.push(K),X.push(P),P={value:"",depth:0,isGlob:!1},f===!0)continue;if(E===Bq&&K===G+1){G+=2;continue}F=K+1;continue}if(J.noext!==!0){if((R===LF||R===HF||R===jq||R===iz||R===Hq)===!0&&j()===Fq){if(H=P.isGlob=!0,N=P.isExtglob=!0,f=!0,R===Hq&&K===G)g=!0;if(Y===!0){while(I()!==!0&&(R=x())){if(R===T0){S=P.backslashes=!0,R=x();continue}if(R===nz){H=P.isGlob=!0,f=!0;break}}continue}break}}if(R===jq){if(E===jq)C=P.isGlobstar=!0;if(H=P.isGlob=!0,f=!0,Y===!0)continue;break}if(R===iz){if(H=P.isGlob=!0,f=!0,Y===!0)continue;break}if(R===FF){while(I()!==!0&&(l=x())){if(l===T0){S=P.backslashes=!0,x();continue}if(l===wF){B=P.isBracket=!0,H=P.isGlob=!0,f=!0;break}}if(Y===!0)continue;break}if(J.nonegate!==!0&&R===Hq&&K===G){T=P.negated=!0,G++;continue}if(J.noparen!==!0&&R===Fq){if(H=P.isGlob=!0,Y===!0){while(I()!==!0&&(R=x())){if(R===Fq){S=P.backslashes=!0,R=x();continue}if(R===nz){f=!0;break}}continue}break}if(H===!0){if(f=!0,Y===!0)continue;break}}if(J.noext===!0)N=!1,H=!1;let k=W,y="",$="";if(G>0)y=W.slice(0,G),W=W.slice(G),F-=G;if(k&&H===!0&&F>0)k=W.slice(0,F),$=W.slice(F);else if(H===!0)k="",$=W;else k=W;if(k&&k!==""&&k!=="/"&&k!==W){if(az(k.charCodeAt(k.length-1)))k=k.slice(0,-1)}if(J.unescape===!0){if($)$=pz.removeBackslashes($);if(k&&S===!0)k=pz.removeBackslashes(k)}let L={prefix:y,input:Z,start:G,base:k,glob:$,isBrace:M,isBracket:B,isGlob:H,isExtglob:N,isGlobstar:C,negated:T,negatedExtglob:g};if(J.tokens===!0){if(L.maxDepth=0,!az(R))X.push(P);L.tokens=X}if(J.parts===!0||J.tokens===!0){let l;for(let v=0;v<z.length;v++){let s=l?l+1:G,o=z[v],Q1=Z.slice(s,o);if(J.tokens){if(v===0&&G!==0)X[v].isPrefix=!0,X[v].value=y;else X[v].value=Q1;sz(X[v]),L.maxDepth+=X[v].depth}if(v!==0||Q1!=="")V.push(Q1);l=o}if(l&&l+1<Z.length){let v=Z.slice(l+1);if(V.push(v),J.tokens)X[X.length-1].value=v,sz(X[X.length-1]),L.maxDepth+=X[X.length-1].depth}L.slashes=z,L.parts=V}return L};oz.exports=OF});var qX=U1((lC,ZX)=>{var W7=D0(),B5=V7(),{MAX_LENGTH:K7,POSIX_REGEX_SOURCE:RF,REGEX_NON_SPECIAL_CHARS:CF,REGEX_SPECIAL_CHARS_BACKREF:_F,REPLACEMENTS:ez}=W7,IF=(Z,q)=>{if(typeof q.expandRange==="function")return q.expandRange(...Z,q);Z.sort();let J=`[${Z.join("-")}]`;try{new RegExp(J)}catch(Q){return Z.map((Y)=>B5.escapeRegex(Y)).join("..")}return J},H6=(Z,q)=>{return`Missing ${Z}: "${q}" - use "\\\\${q}" to match literal characters`},Lq=(Z,q)=>{if(typeof Z!=="string")throw TypeError("Expected a string");Z=ez[Z]||Z;let J={...q},Q=typeof J.maxLength==="number"?Math.min(K7,J.maxLength):K7,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);let z={type:"bos",value:"",output:J.prepend||""},X=[z],V=J.capture?"":"?:",W=B5.isWindows(q),K=W7.globChars(W),G=W7.extglobChars(K),{DOT_LITERAL:F,PLUS_LITERAL:M,SLASH_LITERAL:B,ONE_CHAR:H,DOTS_SLASH:N,NO_DOT:C,NO_DOT_SLASH:A,NO_DOTS_SLASH:S,QMARK:T,QMARK_NO_DOT:g,STAR:f,START_ANCHOR:u}=K,E=(D)=>{return`(${V}(?:(?!${u}${D.dot?N:F}).)*?)`},R=J.dot?"":C,P=J.dot?T:g,I=J.bash===!0?E(J):f;if(J.capture)I=`(${I})`;if(typeof J.noext==="boolean")J.noextglob=J.noext;let j={input:Z,index:-1,start:0,dot:J.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:X};Z=B5.removePrefix(Z,j),Y=Z.length;let x=[],k=[],y=[],$=z,L,l=()=>j.index===Y-1,v=j.peek=(D=1)=>Z[j.index+D],s=j.advance=()=>Z[++j.index]||"",o=()=>Z.slice(j.index+1),Q1=(D="",b=0)=>{j.consumed+=D,j.index+=b},N1=(D)=>{j.output+=D.output!=null?D.output:D.value,Q1(D.value)},O1=()=>{let D=1;while(v()==="!"&&(v(2)!=="("||v(3)==="?"))s(),j.start++,D++;if(D%2===0)return!1;return j.negated=!0,j.start++,!0},w1=(D)=>{j[D]++,y.push(D)},a=(D)=>{j[D]--,y.pop()},m=(D)=>{if($.type==="globstar"){let b=j.braces>0&&(D.type==="comma"||D.type==="brace"),_=D.extglob===!0||x.length&&(D.type==="pipe"||D.type==="paren");if(D.type!=="slash"&&D.type!=="paren"&&!b&&!_)j.output=j.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=I,j.output+=$.output}if(x.length&&D.type!=="paren")x[x.length-1].inner+=D.value;if(D.value||D.output)N1(D);if($&&$.type==="text"&&D.type==="text"){$.value+=D.value,$.output=($.output||"")+D.value;return}D.prev=$,X.push(D),$=D},M1=(D,b)=>{let _={...G[b],conditions:1,inner:""};_.prev=$,_.parens=j.parens,_.output=j.output;let h=(J.capture?"(":"")+_.open;w1("parens"),m({type:D,value:b,output:j.output?"":H}),m({type:"paren",extglob:!0,value:s(),output:h}),x.push(_)},p=(D)=>{let b=D.close+(J.capture?")":""),_;if(D.type==="negate"){let h=I;if(D.inner&&D.inner.length>1&&D.inner.includes("/"))h=E(J);if(h!==I||l()||/^\)+$/.test(o()))b=D.close=`)$))${h}`;if(D.inner.includes("*")&&(_=o())&&/^\.[^\\/.]+$/.test(_)){let c=Lq(_,{...q,fastpaths:!1}).output;b=D.close=`)${c})${h})`}if(D.prev.type==="bos")j.negatedExtglob=!0}m({type:"paren",extglob:!0,value:L,output:b}),a("parens")};if(J.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let D=!1,b=Z.replace(_F,(_,h,c,r,e,p1)=>{if(r==="\\")return D=!0,_;if(r==="?"){if(h)return h+r+(e?T.repeat(e.length):"");if(p1===0)return P+(e?T.repeat(e.length):"");return T.repeat(c.length)}if(r===".")return F.repeat(c.length);if(r==="*"){if(h)return h+r+(e?I:"");return I}return h?_:`\\${_}`});if(D===!0)if(J.unescape===!0)b=b.replace(/\\/g,"");else b=b.replace(/\\+/g,(_)=>{return _.length%2===0?"\\\\":_?"\\":""});if(b===Z&&J.contains===!0)return j.output=Z,j;return j.output=B5.wrapOutput(b,j,q),j}while(!l()){if(L=s(),L==="\x00")continue;if(L==="\\"){let _=v();if(_==="/"&&J.bash!==!0)continue;if(_==="."||_===";")continue;if(!_){L+="\\",m({type:"text",value:L});continue}let h=/^\\+/.exec(o()),c=0;if(h&&h[0].length>2){if(c=h[0].length,j.index+=c,c%2!==0)L+="\\"}if(J.unescape===!0)L=s();else L+=s();if(j.brackets===0){m({type:"text",value:L});continue}}if(j.brackets>0&&(L!=="]"||$.value==="["||$.value==="[^")){if(J.posix!==!1&&L===":"){let _=$.value.slice(1);if(_.includes("[")){if($.posix=!0,_.includes(":")){let h=$.value.lastIndexOf("["),c=$.value.slice(0,h),r=$.value.slice(h+2),e=RF[r];if(e){if($.value=c+e,j.backtrack=!0,s(),!z.output&&X.indexOf($)===1)z.output=H;continue}}}}if(L==="["&&v()!==":"||L==="-"&&v()==="]")L=`\\${L}`;if(L==="]"&&($.value==="["||$.value==="[^"))L=`\\${L}`;if(J.posix===!0&&L==="!"&&$.value==="[")L="^";$.value+=L,N1({value:L});continue}if(j.quotes===1&&L!=='"'){L=B5.escapeRegex(L),$.value+=L,N1({value:L});continue}if(L==='"'){if(j.quotes=j.quotes===1?0:1,J.keepQuotes===!0)m({type:"text",value:L});continue}if(L==="("){w1("parens"),m({type:"paren",value:L});continue}if(L===")"){if(j.parens===0&&J.strictBrackets===!0)throw SyntaxError(H6("opening","("));let _=x[x.length-1];if(_&&j.parens===_.parens+1){p(x.pop());continue}m({type:"paren",value:L,output:j.parens?")":"\\)"}),a("parens");continue}if(L==="["){if(J.nobracket===!0||!o().includes("]")){if(J.nobracket!==!0&&J.strictBrackets===!0)throw SyntaxError(H6("closing","]"));L=`\\${L}`}else w1("brackets");m({type:"bracket",value:L});continue}if(L==="]"){if(J.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){m({type:"text",value:L,output:`\\${L}`});continue}if(j.brackets===0){if(J.strictBrackets===!0)throw SyntaxError(H6("opening","["));m({type:"text",value:L,output:`\\${L}`});continue}a("brackets");let _=$.value.slice(1);if($.posix!==!0&&_[0]==="^"&&!_.includes("/"))L=`/${L}`;if($.value+=L,N1({value:L}),J.literalBrackets===!1||B5.hasRegexChars(_))continue;let h=B5.escapeRegex($.value);if(j.output=j.output.slice(0,-$.value.length),J.literalBrackets===!0){j.output+=h,$.value=h;continue}$.value=`(${V}${h}|${$.value})`,j.output+=$.value;continue}if(L==="{"&&J.nobrace!==!0){w1("braces");let _={type:"brace",value:L,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};k.push(_),m(_);continue}if(L==="}"){let _=k[k.length-1];if(J.nobrace===!0||!_){m({type:"text",value:L,output:L});continue}let h=")";if(_.dots===!0){let c=X.slice(),r=[];for(let e=c.length-1;e>=0;e--){if(X.pop(),c[e].type==="brace")break;if(c[e].type!=="dots")r.unshift(c[e].value)}h=IF(r,J),j.backtrack=!0}if(_.comma!==!0&&_.dots!==!0){let c=j.output.slice(0,_.outputIndex),r=j.tokens.slice(_.tokensIndex);_.value=_.output="\\{",L=h="\\}",j.output=c;for(let e of r)j.output+=e.output||e.value}m({type:"brace",value:L,output:h}),a("braces"),k.pop();continue}if(L==="|"){if(x.length>0)x[x.length-1].conditions++;m({type:"text",value:L});continue}if(L===","){let _=L,h=k[k.length-1];if(h&&y[y.length-1]==="braces")h.comma=!0,_="|";m({type:"comma",value:L,output:_});continue}if(L==="/"){if($.type==="dot"&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",X.pop(),$=z;continue}m({type:"slash",value:L,output:B});continue}if(L==="."){if(j.braces>0&&$.type==="dot"){if($.value===".")$.output=F;let _=k[k.length-1];$.type="dots",$.output+=L,$.value+=L,_.dots=!0;continue}if(j.braces+j.parens===0&&$.type!=="bos"&&$.type!=="slash"){m({type:"text",value:L,output:F});continue}m({type:"dot",value:L,output:F});continue}if(L==="?"){if(!($&&$.value==="(")&&J.noextglob!==!0&&v()==="("&&v(2)!=="?"){M1("qmark",L);continue}if($&&$.type==="paren"){let h=v(),c=L;if(h==="<"&&!B5.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if($.value==="("&&!/[!=<:]/.test(h)||h==="<"&&!/<([!=]|\w+>)/.test(o()))c=`\\${L}`;m({type:"text",value:L,output:c});continue}if(J.dot!==!0&&($.type==="slash"||$.type==="bos")){m({type:"qmark",value:L,output:g});continue}m({type:"qmark",value:L,output:T});continue}if(L==="!"){if(J.noextglob!==!0&&v()==="("){if(v(2)!=="?"||!/[!=<:]/.test(v(3))){M1("negate",L);continue}}if(J.nonegate!==!0&&j.index===0){O1();continue}}if(L==="+"){if(J.noextglob!==!0&&v()==="("&&v(2)!=="?"){M1("plus",L);continue}if($&&$.value==="("||J.regex===!1){m({type:"plus",value:L,output:M});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||j.parens>0){m({type:"plus",value:L});continue}m({type:"plus",value:M});continue}if(L==="@"){if(J.noextglob!==!0&&v()==="("&&v(2)!=="?"){m({type:"at",extglob:!0,value:L,output:""});continue}m({type:"text",value:L});continue}if(L!=="*"){if(L==="$"||L==="^")L=`\\${L}`;let _=CF.exec(o());if(_)L+=_[0],j.index+=_[0].length;m({type:"text",value:L});continue}if($&&($.type==="globstar"||$.star===!0)){$.type="star",$.star=!0,$.value+=L,$.output=I,j.backtrack=!0,j.globstar=!0,Q1(L);continue}let D=o();if(J.noextglob!==!0&&/^\([^?]/.test(D)){M1("star",L);continue}if($.type==="star"){if(J.noglobstar===!0){Q1(L);continue}let _=$.prev,h=_.prev,c=_.type==="slash"||_.type==="bos",r=h&&(h.type==="star"||h.type==="globstar");if(J.bash===!0&&(!c||D[0]&&D[0]!=="/")){m({type:"star",value:L,output:""});continue}let e=j.braces>0&&(_.type==="comma"||_.type==="brace"),p1=x.length&&(_.type==="pipe"||_.type==="paren");if(!c&&_.type!=="paren"&&!e&&!p1){m({type:"star",value:L,output:""});continue}while(D.slice(0,3)==="/**"){let g1=Z[j.index+4];if(g1&&g1!=="/")break;D=D.slice(3),Q1("/**",3)}if(_.type==="bos"&&l()){$.type="globstar",$.value+=L,$.output=E(J),j.output=$.output,j.globstar=!0,Q1(L);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&!r&&l()){j.output=j.output.slice(0,-(_.output+$.output).length),_.output=`(?:${_.output}`,$.type="globstar",$.output=E(J)+(J.strictSlashes?")":"|$)"),$.value+=L,j.globstar=!0,j.output+=_.output+$.output,Q1(L);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&D[0]==="/"){let g1=D[1]!==void 0?"|$":"";j.output=j.output.slice(0,-(_.output+$.output).length),_.output=`(?:${_.output}`,$.type="globstar",$.output=`${E(J)}${B}|${B}${g1})`,$.value+=L,j.output+=_.output+$.output,j.globstar=!0,Q1(L+s()),m({type:"slash",value:"/",output:""});continue}if(_.type==="bos"&&D[0]==="/"){$.type="globstar",$.value+=L,$.output=`(?:^|${B}|${E(J)}${B})`,j.output=$.output,j.globstar=!0,Q1(L+s()),m({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-$.output.length),$.type="globstar",$.output=E(J),$.value+=L,j.output+=$.output,j.globstar=!0,Q1(L);continue}let b={type:"star",value:L,output:I};if(J.bash===!0){if(b.output=".*?",$.type==="bos"||$.type==="slash")b.output=R+b.output;m(b);continue}if($&&($.type==="bracket"||$.type==="paren")&&J.regex===!0){b.output=L,m(b);continue}if(j.index===j.start||$.type==="slash"||$.type==="dot"){if($.type==="dot")j.output+=A,$.output+=A;else if(J.dot===!0)j.output+=S,$.output+=S;else j.output+=R,$.output+=R;if(v()!=="*")j.output+=H,$.output+=H}m(b)}while(j.brackets>0){if(J.strictBrackets===!0)throw SyntaxError(H6("closing","]"));j.output=B5.escapeLast(j.output,"["),a("brackets")}while(j.parens>0){if(J.strictBrackets===!0)throw SyntaxError(H6("closing",")"));j.output=B5.escapeLast(j.output,"("),a("parens")}while(j.braces>0){if(J.strictBrackets===!0)throw SyntaxError(H6("closing","}"));j.output=B5.escapeLast(j.output,"{"),a("braces")}if(J.strictSlashes!==!0&&($.type==="star"||$.type==="bracket"))m({type:"maybe_slash",value:"",output:`${B}?`});if(j.backtrack===!0){j.output="";for(let D of j.tokens)if(j.output+=D.output!=null?D.output:D.value,D.suffix)j.output+=D.suffix}return j};Lq.fastpaths=(Z,q)=>{let J={...q},Q=typeof J.maxLength==="number"?Math.min(K7,J.maxLength):K7,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);Z=ez[Z]||Z;let z=B5.isWindows(q),{DOT_LITERAL:X,SLASH_LITERAL:V,ONE_CHAR:W,DOTS_SLASH:K,NO_DOT:G,NO_DOTS:F,NO_DOTS_SLASH:M,STAR:B,START_ANCHOR:H}=W7.globChars(z),N=J.dot?F:G,C=J.dot?M:G,A=J.capture?"":"?:",S={negated:!1,prefix:""},T=J.bash===!0?".*?":B;if(J.capture)T=`(${T})`;let g=(R)=>{if(R.noglobstar===!0)return T;return`(${A}(?:(?!${H}${R.dot?K:X}).)*?)`},f=(R)=>{switch(R){case"*":return`${N}${W}${T}`;case".*":return`${X}${W}${T}`;case"*.*":return`${N}${T}${X}${W}${T}`;case"*/*":return`${N}${T}${V}${W}${C}${T}`;case"**":return N+g(J);case"**/*":return`(?:${N}${g(J)}${V})?${C}${W}${T}`;case"**/*.*":return`(?:${N}${g(J)}${V})?${C}${T}${X}${W}${T}`;case"**/.*":return`(?:${N}${g(J)}${V})?${X}${W}${T}`;default:{let P=/^(.*?)\.(\w+)$/.exec(R);if(!P)return;let I=f(P[1]);if(!I)return;return I+X+P[2]}}},u=B5.removePrefix(Z,S),E=f(u);if(E&&J.strictSlashes!==!0)E+=`${V}?`;return E};ZX.exports=Lq});var QX=U1((cC,JX)=>{var DF=a1("path"),TF=tz(),Nq=qX(),wq=V7(),AF=D0(),PF=(Z)=>Z&&typeof Z==="object"&&!Array.isArray(Z),k1=(Z,q,J=!1)=>{if(Array.isArray(Z)){let G=Z.map((M)=>k1(M,q,J));return(M)=>{for(let B of G){let H=B(M);if(H)return H}return!1}}let Q=PF(Z)&&Z.tokens&&Z.input;if(Z===""||typeof Z!=="string"&&!Q)throw TypeError("Expected pattern to be a non-empty string");let Y=q||{},z=wq.isWindows(q),X=Q?k1.compileRe(Z,q):k1.makeRe(Z,q,!1,!0),V=X.state;delete X.state;let W=()=>!1;if(Y.ignore){let G={...q,ignore:null,onMatch:null,onResult:null};W=k1(Y.ignore,G,J)}let K=(G,F=!1)=>{let{isMatch:M,match:B,output:H}=k1.test(G,X,q,{glob:Z,posix:z}),N={glob:Z,state:V,regex:X,posix:z,input:G,output:H,match:B,isMatch:M};if(typeof Y.onResult==="function")Y.onResult(N);if(M===!1)return N.isMatch=!1,F?N:!1;if(W(G)){if(typeof Y.onIgnore==="function")Y.onIgnore(N);return N.isMatch=!1,F?N:!1}if(typeof Y.onMatch==="function")Y.onMatch(N);return F?N:!0};if(J)K.state=V;return K};k1.test=(Z,q,J,{glob:Q,posix:Y}={})=>{if(typeof Z!=="string")throw TypeError("Expected input to be a string");if(Z==="")return{isMatch:!1,output:""};let z=J||{},X=z.format||(Y?wq.toPosixSlashes:null),V=Z===Q,W=V&&X?X(Z):Z;if(V===!1)W=X?X(Z):Z,V=W===Q;if(V===!1||z.capture===!0)if(z.matchBase===!0||z.basename===!0)V=k1.matchBase(Z,q,J,Y);else V=q.exec(W);return{isMatch:Boolean(V),match:V,output:W}};k1.matchBase=(Z,q,J,Q=wq.isWindows(J))=>{return(q instanceof RegExp?q:k1.makeRe(q,J)).test(DF.basename(Z))};k1.isMatch=(Z,q,J)=>k1(q,J)(Z);k1.parse=(Z,q)=>{if(Array.isArray(Z))return Z.map((J)=>k1.parse(J,q));return Nq(Z,{...q,fastpaths:!1})};k1.scan=(Z,q)=>TF(Z,q);k1.compileRe=(Z,q,J=!1,Q=!1)=>{if(J===!0)return Z.output;let Y=q||{},z=Y.contains?"":"^",X=Y.contains?"":"$",V=`${z}(?:${Z.output})${X}`;if(Z&&Z.negated===!0)V=`^(?!${V}).*$`;let W=k1.toRegex(V,q);if(Q===!0)W.state=Z;return W};k1.makeRe=(Z,q={},J=!1,Q=!1)=>{if(!Z||typeof Z!=="string")throw TypeError("Expected a non-empty string");let Y={negated:!1,fastpaths:!0};if(q.fastpaths!==!1&&(Z[0]==="."||Z[0]==="*"))Y.output=Nq.fastpaths(Z,q);if(!Y.output)Y=Nq(Z,q);return k1.compileRe(Y,q,J,Q)};k1.toRegex=(Z,q)=>{try{let J=q||{};return new RegExp(Z,J.flags||(J.nocase?"i":""))}catch(J){if(q&&q.debug===!0)throw J;return/$^/}};k1.constants=AF;JX.exports=k1});var UX=U1(($X)=>{Object.defineProperty($X,"__esModule",{value:!0});var N6=a1("path"),SF=QX();function yF(Z){return Z&&typeof Z==="object"&&"default"in Z?Z:{default:Z}}var EF=yF(SF),zX=function(q,J=".js"){let Q=`${q}`;if(!N6.extname(q))Q+=J;return Q};class L6{constructor(){L6.prototype.__init.call(this),L6.prototype.__init2.call(this),L6.prototype.__init3.call(this),L6.prototype.__init4.call(this)}__init(){this.should_skip=!1}__init2(){this.should_remove=!1}__init3(){this.replacement=null}__init4(){this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(Z)=>this.replacement=Z}}replace(Z,q,J,Q){if(Z)if(J!==null)Z[q][J]=Q;else Z[q]=Q}remove(Z,q,J){if(Z)if(J!==null)Z[q].splice(J,1);else delete Z[q]}}class XX extends L6{constructor(Z){super();this.enter=Z.enter,this.leave=Z.leave}visit(Z,q,J,Q,Y,z){if(Z){if(J){let X=this.should_skip,V=this.should_remove,W=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,J.call(this.context,Z,q,Y,z),this.replacement)Z=this.replacement,this.replace(q,Y,z,Z);if(this.should_remove)this.remove(q,Y,z);let K=this.should_skip,G=this.should_remove;if(this.should_skip=X,this.should_remove=V,this.replacement=W,K)return Z;if(G)return null}for(let X in Z){let V=Z[X];if(typeof V!=="object")continue;else if(Array.isArray(V)){for(let W=0;W<V.length;W+=1)if(V[W]!==null&&typeof V[W].type==="string"){if(!this.visit(V[W],Z,J,Q,X,W))W--}}else if(V!==null&&typeof V.type==="string")this.visit(V,Z,J,Q,X,null)}if(Q){let X=this.replacement,V=this.should_remove;if(this.replacement=null,this.should_remove=!1,Q.call(this.context,Z,q,Y,z),this.replacement)Z=this.replacement,this.replace(q,Y,z,Z);if(this.should_remove)this.remove(q,Y,z);let W=this.should_remove;if(this.replacement=X,this.should_remove=V,W)return null}}return Z}}function bF(Z,q){return new XX(q).visit(Z,null,q.enter,q.leave)}var M6={ArrayPattern(Z,q){for(let J of q.elements)if(J)M6[J.type](Z,J)},AssignmentPattern(Z,q){M6[q.left.type](Z,q.left)},Identifier(Z,q){Z.push(q.name)},MemberExpression(){},ObjectPattern(Z,q){for(let J of q.properties)if(J.type==="RestElement")M6.RestElement(Z,J);else M6[J.value.type](Z,J.value)},RestElement(Z,q){M6[q.argument.type](Z,q.argument)}},G7=function(q){let J=[];return M6[q.type](J,q),J},xF={const:!0,let:!0};class F6{constructor(Z={}){if(this.parent=Z.parent,this.isBlockScope=!!Z.block,this.declarations=Object.create(null),Z.params)Z.params.forEach((q)=>{G7(q).forEach((J)=>{this.declarations[J]=!0})})}addDeclaration(Z,q,J){if(!q&&this.isBlockScope)this.parent.addDeclaration(Z,q,J);else if(Z.id)G7(Z.id).forEach((Q)=>{this.declarations[Q]=!0})}contains(Z){return this.declarations[Z]||(this.parent?this.parent.contains(Z):!1)}}var VX=function(q,J="scope"){let Q=new F6;return bF(q,{enter(Y,z){let X=Y;if(/(Function|Class)Declaration/.test(X.type))Q.addDeclaration(X,!1,!1);if(X.type==="VariableDeclaration"){let{kind:W}=X,K=xF[W];X.declarations.forEach((G)=>{Q.addDeclaration(G,K,!0)})}let V;if(/Function/.test(X.type)){let W=X;if(V=new F6({parent:Q,block:!1,params:W.params}),W.type==="FunctionExpression"&&W.id)V.addDeclaration(W,!1,!1)}if(/For(In|Of)?Statement/.test(X.type))V=new F6({parent:Q,block:!0});if(X.type==="BlockStatement"&&!/Function/.test(z.type))V=new F6({parent:Q,block:!0});if(X.type==="CatchClause")V=new F6({parent:Q,params:X.param?[X.param]:[],block:!0});if(V)Object.defineProperty(X,J,{value:V,configurable:!0}),Q=V},leave(Y){if(Y[J])Q=Q.parent}}),Q};function kF(Z){return Array.isArray(Z)}function YX(Z){if(kF(Z))return Z;if(Z==null)return[];return[Z]}var w6=function(q){return q.split(N6.win32.sep).join(N6.posix.sep)};function vF(Z,q){if(q===!1||N6.isAbsolute(Z)||Z.startsWith("*"))return w6(Z);let J=w6(N6.resolve(q||"")).replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return N6.posix.join(J,w6(Z))}var WX=function(q,J,Q){let Y=Q&&Q.resolve,z=(W)=>W instanceof RegExp?W:{test:(K)=>{let G=vF(W,Y);return EF.default(G,{dot:!0})(K)}},X=YX(q).map(z),V=YX(J).map(z);return function(K){if(typeof K!=="string")return!1;if(/\0/.test(K))return!1;let G=w6(K);for(let F=0;F<V.length;++F)if(V[F].test(G))return!1;for(let F=0;F<X.length;++F)if(X[F].test(G))return!0;return!X.length}},fF="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",hF="arguments 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",KX=new Set(`${fF} ${hF}`.split(" "));KX.add("");var U7=function(q){let J=q.replace(/-(\w)/g,(Q,Y)=>Y.toUpperCase()).replace(/[^$_a-zA-Z0-9]/g,"_");if(/\d/.test(J[0])||KX.has(J))J=`_${J}`;return J||"_"};function $7(Z){return(JSON.stringify(Z)||"undefined").replace(/[\u2028\u2029]/g,(q)=>`\\u${`000${q.charCodeAt(0).toString(16)}`.slice(-4)}`)}function gF(Z,q,J){let Q="[",Y=q?`
|
|
46
|
-
${
|
|
47
|
-
${
|
|
48
|
-
${
|
|
49
|
-
${
|
|
50
|
-
`,
|
|
41
|
+
${J}`:Z,NM=(Z,J)=>Z.execIndex>J.execIndex?1:-1,cQ=(Z,J)=>J?`(${Z})`:Z,pQ,PM,JX,SM="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",qX="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",v9,h9="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",yM,EM,bM,xM,C1=function(J,q){if(q===void 0)q={};this.label=J,this.keyword=q.keyword,this.beforeExpr=!!q.beforeExpr,this.startsExpr=!!q.startsExpr,this.isLoop=!!q.isLoop,this.isAssign=!!q.isAssign,this.prefix=!!q.prefix,this.postfix=!!q.postfix,this.binop=q.binop||null,this.updateContext=null},L5,z5,Q3,R,R5,kM,YX,O5,XX,fM,vM,_0,sQ,hM,B0=function(J,q){this.line=J,this.column=q},V7=function(J,q,Q){if(this.start=q,this.end=Q,J.sourceFile!==null)this.source=J.sourceFile},WZ,rQ=!1,M0=1,B6=2,Y3=4,VX=8,WX=16,KX=32,X3=64,$X=128,D0=256,z3,f4=0,W3=1,a5=2,GX=3,UX=4,jX=5,c1=function(J,q,Q){this.options=J=gM(J),this.sourceFile=J.sourceFile,this.keywords=_8(yM[J.ecmaVersion>=6?6:J.sourceType==="module"?"5module":5]);var Y="";if(J.allowReserved!==!0){if(Y=v9[J.ecmaVersion>=6?6:J.ecmaVersion===5?5:3],J.sourceType==="module")Y+=" await"}this.reservedWords=_8(Y);var X=(Y?Y+" ":"")+v9.strict;if(this.reservedWordsStrict=_8(X),this.reservedWordsStrictBind=_8(X+" "+v9.strictBind),this.input=String(q),this.containsEsc=!1,Q)this.pos=Q,this.lineStart=this.input.lastIndexOf(`
|
|
42
|
+
`,Q-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(R5).length;else this.pos=this.lineStart=0,this.curLine=1;if(this.type=R.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=J.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&J.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(M0),this.regexpState=null,this.privateNameStack=[]},m5,Y5,uM,W7=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1},z1,K3,dM,lM,Z0=1,KZ=2,BX=4,y5,A5=function(J,q,Q,Y,X){this.token=J,this.isExpr=!!q,this.preserveSpace=!!Q,this.override=Y,this.generator=!!X},y1,M6,G1,pM,h4,U8,iM=function(J){this.flags=J,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1},K7=function(J,q,Q){if(this.type="",this.start=q,this.end=0,J.options.locations)this.loc=new V7(J,Q);if(J.options.directSourceFile)this.sourceFile=J.options.directSourceFile;if(J.options.ranges)this.range=[q,0]},T0,FX="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",LX,wX,OX,nM,aM,oQ="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",NX="Adlam Adlm 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 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",RX,CX,IX,sM,rM,_X,$Z,r6,O4,X1,o5=function(J){this.parser=J,this.validFlags="gim"+(J.options.ecmaVersion>=6?"uy":"")+(J.options.ecmaVersion>=9?"s":"")+(J.options.ecmaVersion>=13?"d":""),this.unicodeProperties=_X[J.options.ecmaVersion>=13?13:J.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=[]},$3=function(J){if(this.type=J.type,this.value=J.value,this.start=J.start,this.end=J.end,J.options.locations)this.loc=new V7(J,J.startLoc,J.endLoc);if(J.options.ranges)this.range=[J.start,J.end]},H1,bX,YH="8.7.1",G3="at position ",U3="at output position ",VH,GH,g9="resolveDependencies",kX,RH,CH,m4="beforeExit",u4,Y2=(Z)=>console.warn(Z.message||Z),PH,SH,yH=(Z)=>Z&&typeof Z==="object"?Z:{},EH=(Z,J,q)=>(Q)=>{if(typeof Q==="string"){let Y=Z[Q];if(Y)return Y;e(m1(J,lX(J),`valid values are ${q}${V8(Object.keys(Z))}. You can also supply an object for more fine-grained control`,Q))}return yH(Q)},dX=(Z,J,q,Q)=>{let Y=Z===null||Z===void 0?void 0:Z.preset;if(Y){let X=J[Y];if(X)return{...X,...Z};else e(m1(`${q}.preset`,lX(q),`valid values are ${V8(Object.keys(J))}`,Y))}return EH(J,q,Q)(Z)},lX=(Z)=>Z.split(".").join("").toLowerCase(),xH=(Z)=>{let{onwarn:J}=Z;return J?(q)=>{q.toString=()=>{let Q="";if(q.plugin)Q+=`(${q.plugin} plugin) `;if(q.loc)Q+=`${V1(q.loc.file)} (${q.loc.line}:${q.loc.column}) `;return Q+=q.message,Q},J(q,Y2)}:Y2},kH=(Z)=>({allowAwaitOutsideFunction:!0,ecmaVersion:"latest",preserveParens:!1,sourceType:"module",...Z.acorn}),fH=(Z)=>H6(Z.acornInjectPlugins),vH=(Z)=>{var J;return((J=Z.cache)===null||J===void 0?void 0:J.cache)||Z.cache},cX=(Z)=>{if(Z===!0)return()=>!0;if(typeof Z==="function")return(J,...q)=>!J.startsWith("\x00")&&Z(J,...q)||!1;if(Z){let J=new Set,q=[];for(let Q of H6(Z))if(Q instanceof RegExp)q.push(Q);else J.add(Q);return(Q,...Y)=>J.has(Q)||q.some((X)=>X.test(Q))}return()=>!1},hH=(Z,J,q)=>{let Q=Z.inlineDynamicImports;if(Q)G6('The "inlineDynamicImports" option is deprecated. Use the "output.inlineDynamicImports" option instead.',!1,J,q);return Q},gH=(Z)=>{let J=Z.input;return J==null?[]:typeof J==="string"?[J]:J},mH=(Z,J,q)=>{let Q=Z.manualChunks;if(Q)G6('The "manualChunks" option is deprecated. Use the "output.manualChunks" option instead.',!1,J,q);return Q},uH=(Z,J,q)=>{var Q;let Y=Z.maxParallelFileReads;if(typeof Y==="number")G6('The "maxParallelFileReads" option is deprecated. Use the "maxParallelFileOps" option instead.',!1,J,q);let X=(Q=Z.maxParallelFileOps)!==null&&Q!==void 0?Q:Y;if(typeof X==="number"){if(X<=0)return 1/0;return X}return 20},dH=(Z,J)=>{let q=Z.moduleContext;if(typeof q==="function")return(Q)=>{var Y;return(Y=q(Q))!==null&&Y!==void 0?Y:J};if(q){let Q=Object.create(null);for(let[Y,X]of Object.entries(q))Q[U5(Y)]=X;return(Y)=>Q[Y]||J}return()=>J},lH=(Z,J)=>{let q=Z.preserveEntrySignatures;if(q==null)J.add("preserveEntrySignatures");return q!==null&&q!==void 0?q:"strict"},cH=(Z,J,q)=>{let Q=Z.preserveModules;if(Q)G6('The "preserveModules" option is deprecated. Use the "output.preserveModules" option instead.',!1,J,q);return Q},pH=(Z,J,q)=>{let Q=Z.treeshake;if(Q===!1)return!1;let Y=dX(Z.treeshake,PH,"treeshake","false, true, ");if(typeof Y.pureExternalModules<"u")G6(`The "treeshake.pureExternalModules" option is deprecated. The "treeshake.moduleSideEffects" option should be used instead. "treeshake.pureExternalModules: true" is equivalent to "treeshake.moduleSideEffects: 'no-external'"`,!0,J,q);return{annotations:Y.annotations!==!1,correctVarValueBeforeDeclaration:Y.correctVarValueBeforeDeclaration===!0,moduleSideEffects:typeof Q==="object"&&Q.pureExternalModules?X2(Q.moduleSideEffects,Q.pureExternalModules):X2(Y.moduleSideEffects,void 0),propertyReadSideEffects:Y.propertyReadSideEffects==="always"?"always":Y.propertyReadSideEffects!==!1,tryCatchDeoptimization:Y.tryCatchDeoptimization!==!1,unknownGlobalSideEffects:Y.unknownGlobalSideEffects!==!1}},X2=(Z,J)=>{if(typeof Z==="boolean")return()=>Z;if(Z==="no-external")return(Q,Y)=>!Y;if(typeof Z==="function")return(Q,Y)=>!Q.startsWith("\x00")?Z(Q,Y)!==!1:!0;if(Array.isArray(Z)){let Q=new Set(Z);return(Y)=>Q.has(Y)}if(Z)e(m1("treeshake.moduleSideEffects","treeshake",'please use one of false, "no-external", a function or an array'));let q=cX(J);return(Q,Y)=>!(Y&&q(Q))},iH,nH,oH=(Z,J,q)=>{let{file:Q}=Z;if(typeof Q==="string"){if(J)return e(m1("output.file","outputdir",'you must set "output.dir" instead of "output.file" when using the "output.preserveModules" option'));if(!Array.isArray(q.input))return e(m1("output.file","outputdir",'you must set "output.dir" instead of "output.file" when providing named inputs'))}return Q},tH=(Z)=>{let J=Z.format;switch(J){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return J;default:return e({message:'You must specify "output.format", which can be one of "amd", "cjs", "system", "es", "iife" or "umd".',url:"https://rollupjs.org/guide/en/#outputformat"})}},eH=(Z,J)=>{var q;let Q=((q=Z.inlineDynamicImports)!==null&&q!==void 0?q:J.inlineDynamicImports)||!1,{input:Y}=J;if(Q&&(Array.isArray(Y)?Y:Object.keys(Y)).length>1)return e(m1("output.inlineDynamicImports","outputinlinedynamicimports",'multiple inputs are not supported when "output.inlineDynamicImports" is true'));return Q},ZF=(Z,J,q)=>{var Q;let Y=((Q=Z.preserveModules)!==null&&Q!==void 0?Q:q.preserveModules)||!1;if(Y){if(J)return e(m1("output.inlineDynamicImports","outputinlinedynamicimports",'this option is not supported for "output.preserveModules"'));if(q.preserveEntrySignatures===!1)return e(m1("preserveEntrySignatures","preserveentrysignatures",'setting this option to false is not supported for "output.preserveModules"'))}return Y},JF=(Z,J)=>{let q=Z.preferConst;if(q!=null)j5('The "output.preferConst" option is deprecated. Use the "output.generatedCode.constBindings" option instead.',!1,J);return!!q},qF=(Z)=>{let{preserveModulesRoot:J}=Z;if(J===null||J===void 0)return;return U5(J)},QF=(Z)=>{let J={autoId:!1,basePath:"",define:"define",forceJsExtensionForImports:!1,...Z.amd};if((J.autoId||J.basePath)&&J.id)return e(m1("output.amd.id","outputamd",'this option cannot be used together with "output.amd.autoId"/"output.amd.basePath"'));if(J.basePath&&!J.autoId)return e(m1("output.amd.basePath","outputamd",'this option only works with "output.amd.autoId"'));let q;if(J.autoId)q={autoId:!0,basePath:J.basePath,define:J.define,forceJsExtensionForImports:J.forceJsExtensionForImports};else q={autoId:!1,define:J.define,forceJsExtensionForImports:J.forceJsExtensionForImports,id:J.id};return q},B4=(Z,J)=>{let q=Z[J];if(typeof q==="function")return q;return()=>q||""},YF=(Z,J)=>{let{dir:q}=Z;if(typeof q==="string"&&typeof J==="string")return e(m1("output.dir","outputdir",'you must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks'));return q},XF=(Z,J)=>{let q=Z.dynamicImportFunction;if(q)j5('The "output.dynamicImportFunction" option is deprecated. Use the "renderDynamicImport" plugin hook instead.',!1,J);return q},zF=(Z,J)=>{let q=Z.entryFileNames;if(q==null)J.add("entryFileNames");return q!==null&&q!==void 0?q:"[name].js"},WF=(Z,J)=>{let q=dX(Z.generatedCode,SH,"output.generatedCode","");return{arrowFunctions:q.arrowFunctions===!0,constBindings:q.constBindings===!0||J,objectShorthand:q.objectShorthand===!0,reservedNamesAsProps:q.reservedNamesAsProps===!0,symbols:q.symbols===!0}},KF=(Z,J)=>{if(J)return"";let q=Z.indent;return q===!1?"":q!==null&&q!==void 0?q:!0},z2,$F=(Z,J)=>{let q=Z.interop,Q=new Set,Y=(X)=>{if(!Q.has(X)){if(Q.add(X),!z2.has(X))return e(m1("output.interop","outputinterop",`use one of ${Array.from(z2,(z)=>JSON.stringify(z)).join(", ")}`,X));if(typeof X==="boolean")j5({message:`The boolean value "${X}" for the "output.interop" option is deprecated. Use ${X?'"auto"':'"esModule", "default" or "defaultOnly"'} instead.`,url:"https://rollupjs.org/guide/en/#outputinterop"},!1,J)}return X};if(typeof q==="function"){let X=Object.create(null),z=null;return(V)=>V===null?z||Y(z=q(V)):(V in X)?X[V]:Y(X[V]=q(V))}return q===void 0?()=>!0:()=>Y(q)},GF=(Z,J,q,Q)=>{let Y=Z.manualChunks||Q.manualChunks;if(Y){if(J)return e(m1("output.manualChunks","outputmanualchunks",'this option is not supported for "output.inlineDynamicImports"'));if(q)return e(m1("output.manualChunks","outputmanualchunks",'this option is not supported for "output.preserveModules"'))}return Y||{}},UF=(Z,J,q)=>{var Q;return(Q=Z.minifyInternalExports)!==null&&Q!==void 0?Q:q||J==="es"||J==="system"},jF=(Z,J,q)=>{let Q=Z.namespaceToStringTag;if(Q!=null)return j5('The "output.namespaceToStringTag" option is deprecated. Use the "output.generatedCode.symbols" option instead.',!1,q),Q;return J.symbols||!1},BF=(Z)=>{let{sourcemapBaseUrl:J}=Z;if(J){if(sH(J))return J;return e(m1("output.sourcemapBaseUrl","outputsourcemapbaseurl",`must be a valid URL, received ${JSON.stringify(J)}`))}},J0;var iX=pW(()=>{$2={};for(t8=0;t8<u9.length;t8++)$2[u9.charCodeAt(t8)]=t8;if(typeof window<"u"&&typeof window.btoa==="function")d9=(Z)=>window.btoa(unescape(encodeURIComponent(Z)));else if(typeof Buffer==="function")d9=(Z)=>Buffer.from(Z,"utf-8").toString("base64");eG=Object.prototype.toString;n8={insertLeft:!1,insertRight:!1,storeName:!1};YQ=Object.prototype.hasOwnProperty;XQ=/[/\\]/;d1=Symbol("Unknown Key"),C4=Symbol("Unknown Non-Accessor Key"),Q0=Symbol("Unknown Integer"),$1=[],D1=[d1],ZU=[C4],c9=[Q0],q6=Symbol("Entities");r1=new Y0;x1=Symbol("Unknown Value"),j2=Symbol("Unknown Truthy Value");Y1=new class extends B5{},LZ={thisArg:null,type:E1},JU=[Y1],wZ={args:JU,thisArg:null,type:h5},p9=[],d4={args:p9,thisArg:null,type:P1,withNew:!1};$8=class $8 extends B5{constructor(Z){super();this.name=Z,this.alwaysRendered=!1,this.initReached=!1,this.isId=!1,this.isReassigned=!1,this.kind=null,this.renderBaseName=null,this.renderName=null}addReference(Z){}getBaseVariableName(){return this.renderBaseName||this.renderName||this.name}getName(Z){let J=this.renderName||this.name;return this.renderBaseName?`${this.renderBaseName}${Z(J)}`:J}hasEffectsOnInteractionAtPath(Z,{type:J},q){return J!==E1||Z.length>0}include(){this.included=!0}markCalledFromTryStatement(){}setRenderNames(Z,J){this.renderBaseName=Z,this.renderName=J}};X0=class X0 extends $8{constructor(Z,J){super(J);this.referenced=!1,this.module=Z,this.isNamespace=J==="*"}addReference(Z){if(this.referenced=!0,this.name==="default"||this.name==="*")this.module.suggestName(Z.name)}hasEffectsOnInteractionAtPath(Z,{type:J}){return J!==E1||Z.length>(this.isNamespace?1:0)}include(){if(!this.included)this.included=!0,this.module.used=!0}};n1=Object.freeze(Object.create(null)),o6=Object.freeze({}),a8=Object.freeze([]);XU=/^(?:\/|(?:[A-Za-z]:)?[\\|/])/,zU=/^\.?\.(\/|$)/;VU=/\\/g;WU=/^(\.\.\/)*\.\.$/;(function(Z){Z.ALREADY_CLOSED="ALREADY_CLOSED",Z.ASSET_NOT_FINALISED="ASSET_NOT_FINALISED",Z.ASSET_NOT_FOUND="ASSET_NOT_FOUND",Z.ASSET_SOURCE_ALREADY_SET="ASSET_SOURCE_ALREADY_SET",Z.ASSET_SOURCE_MISSING="ASSET_SOURCE_MISSING",Z.BAD_LOADER="BAD_LOADER",Z.CANNOT_EMIT_FROM_OPTIONS_HOOK="CANNOT_EMIT_FROM_OPTIONS_HOOK",Z.CHUNK_NOT_GENERATED="CHUNK_NOT_GENERATED",Z.CHUNK_INVALID="CHUNK_INVALID",Z.CIRCULAR_REEXPORT="CIRCULAR_REEXPORT",Z.CYCLIC_CROSS_CHUNK_REEXPORT="CYCLIC_CROSS_CHUNK_REEXPORT",Z.DEPRECATED_FEATURE="DEPRECATED_FEATURE",Z.EXTERNAL_SYNTHETIC_EXPORTS="EXTERNAL_SYNTHETIC_EXPORTS",Z.FILE_NAME_CONFLICT="FILE_NAME_CONFLICT",Z.FILE_NAME_OUTSIDE_OUTPUT_DIRECTORY="FILE_NAME_OUTSIDE_OUTPUT_DIRECTORY",Z.FILE_NOT_FOUND="FILE_NOT_FOUND",Z.INPUT_HOOK_IN_OUTPUT_PLUGIN="INPUT_HOOK_IN_OUTPUT_PLUGIN",Z.INVALID_CHUNK="INVALID_CHUNK",Z.INVALID_EXPORT_OPTION="INVALID_EXPORT_OPTION",Z.INVALID_EXTERNAL_ID="INVALID_EXTERNAL_ID",Z.INVALID_OPTION="INVALID_OPTION",Z.INVALID_PLUGIN_HOOK="INVALID_PLUGIN_HOOK",Z.INVALID_ROLLUP_PHASE="INVALID_ROLLUP_PHASE",Z.MISSING_EXPORT="MISSING_EXPORT",Z.MISSING_IMPLICIT_DEPENDANT="MISSING_IMPLICIT_DEPENDANT",Z.MIXED_EXPORTS="MIXED_EXPORTS",Z.NAMESPACE_CONFLICT="NAMESPACE_CONFLICT",Z.AMBIGUOUS_EXTERNAL_NAMESPACES="AMBIGUOUS_EXTERNAL_NAMESPACES",Z.NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE="NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",Z.PLUGIN_ERROR="PLUGIN_ERROR",Z.PREFER_NAMED_EXPORTS="PREFER_NAMED_EXPORTS",Z.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT="SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT",Z.UNEXPECTED_NAMED_IMPORT="UNEXPECTED_NAMED_IMPORT",Z.UNRESOLVED_ENTRY="UNRESOLVED_ENTRY",Z.UNRESOLVED_IMPORT="UNRESOLVED_IMPORT",Z.VALIDATION_ERROR="VALIDATION_ERROR"})(W1||(W1={}));pU=new Set(["await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","eval","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","NaN","new","null","package","private","protected","public","return","static","super","switch","this","throw","true","try","typeof","undefined","var","void","while","with","yield"]),l4=pU,M2=/[^$_a-zA-Z0-9]/g;F2={exports:{}},c4={},sU=GZ,GQ=`[^${b5}]`,RZ=`(?:${p4}|$)`,w2=`(?:^|${p4})`,CZ=`${p5}{1,2}${RZ}`,eU=`(?!${p5})`,Zj=`(?!${w2}${CZ})`,Jj=`(?!${p5}{0,1}${RZ})`,qj=`(?!${CZ})`,Qj=`[^.${p4}]`,Yj=`${L2}*?`,O2={DOT_LITERAL:p5,PLUS_LITERAL:rU,QMARK_LITERAL:oU,SLASH_LITERAL:p4,ONE_CHAR:tU,QMARK:L2,END_ANCHOR:RZ,DOTS_SLASH:CZ,NO_DOT:eU,NO_DOTS:Zj,NO_DOT_SLASH:Jj,NO_DOTS_SLASH:qj,QMARK_NO_DOT:Qj,STAR:Yj,START_ANCHOR:w2},Xj={...O2,SLASH_LITERAL:`[${b5}]`,QMARK:GQ,STAR:`${GQ}*?`,DOTS_SLASH:`${p5}{1,2}(?:[${b5}]|$)`,NO_DOT:`(?!${p5})`,NO_DOTS:`(?!(?:^|[${b5}])${p5}{1,2}(?:[${b5}]|$))`,NO_DOT_SLASH:`(?!${p5}{0,1}(?:[${b5}]|$))`,NO_DOTS_SLASH:`(?!${p5}{1,2}(?:[${b5}]|$))`,QMARK_NO_DOT:`[^.${b5}]`,START_ANCHOR:`(?:^|[${b5}])`,END_ANCHOR:`(?:[${b5}]|$)`},zj={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},i4={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:zj,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:sU.sep,extglobChars(Z){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${Z.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(Z){return Z===!0?Xj:O2}};(function(Z){let J=GZ,q=process.platform==="win32",{REGEX_BACKSLASH:Q,REGEX_REMOVE_BACKSLASH:Y,REGEX_SPECIAL_CHARS:X,REGEX_SPECIAL_CHARS_GLOBAL:z}=i4;Z.isObject=(V)=>V!==null&&typeof V==="object"&&!Array.isArray(V),Z.hasRegexChars=(V)=>X.test(V),Z.isRegexChar=(V)=>V.length===1&&Z.hasRegexChars(V),Z.escapeRegex=(V)=>V.replace(z,"\\$1"),Z.toPosixSlashes=(V)=>V.replace(Q,"/"),Z.removeBackslashes=(V)=>{return V.replace(Y,(W)=>{return W==="\\"?"":W})},Z.supportsLookbehinds=()=>{let V=process.version.slice(1).split(".").map(Number);if(V.length===3&&V[0]>=9||V[0]===8&&V[1]>=10)return!0;return!1},Z.isWindows=(V)=>{if(V&&typeof V.windows==="boolean")return V.windows;return q===!0||J.sep==="\\"},Z.escapeLast=(V,W,K)=>{let $=V.lastIndexOf(W,K);if($===-1)return V;if(V[$-1]==="\\")return Z.escapeLast(V,W,$-1);return`${V.slice(0,$)}\\${V.slice($)}`},Z.removePrefix=(V,W={})=>{let K=V;if(K.startsWith("./"))K=K.slice(2),W.prefix="./";return K},Z.wrapOutput=(V,W={},K={})=>{let $=K.contains?"":"^",H=K.contains?"":"$",M=`${$}(?:${V})${H}`;if(W.negated===!0)M=`(?:^(?!${M}).*$)`;return M}})(c4);UQ=c4,{CHAR_ASTERISK:C9,CHAR_AT:Vj,CHAR_BACKWARD_SLASH:a6,CHAR_COMMA:Wj,CHAR_DOT:I9,CHAR_EXCLAMATION_MARK:_9,CHAR_FORWARD_SLASH:N2,CHAR_LEFT_CURLY_BRACE:D9,CHAR_LEFT_PARENTHESES:T9,CHAR_LEFT_SQUARE_BRACKET:Kj,CHAR_PLUS:$j,CHAR_QUESTION_MARK:jQ,CHAR_RIGHT_CURLY_BRACE:Gj,CHAR_RIGHT_PARENTHESES:BQ,CHAR_RIGHT_SQUARE_BRACKET:Uj}=i4,Bj=jj,D4=i4,w5=c4,{MAX_LENGTH:T4,POSIX_REGEX_SOURCE:Mj,REGEX_NON_SPECIAL_CHARS:Hj,REGEX_SPECIAL_CHARS_BACKREF:Fj,REPLACEMENTS:R2}=D4;IZ.fastpaths=(Z,J)=>{let q={...J},Q=typeof q.maxLength==="number"?Math.min(T4,q.maxLength):T4,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);Z=R2[Z]||Z;let X=w5.isWindows(J),{DOT_LITERAL:z,SLASH_LITERAL:V,ONE_CHAR:W,DOTS_SLASH:K,NO_DOT:$,NO_DOTS:H,NO_DOTS_SLASH:M,STAR:O,START_ANCHOR:j}=D4.globChars(X),L=q.dot?H:$,I=q.dot?M:$,y=q.capture?"":"?:",_={negated:!1,prefix:""},T=q.bash===!0?".*?":O;if(q.capture)T=`(${T})`;let g=(N)=>{if(N.noglobstar===!0)return T;return`(${y}(?:(?!${j}${N.dot?K:z}).)*?)`},h=(N)=>{switch(N){case"*":return`${L}${W}${T}`;case".*":return`${z}${W}${T}`;case"*.*":return`${L}${T}${z}${W}${T}`;case"*/*":return`${L}${T}${V}${W}${I}${T}`;case"**":return L+g(q);case"**/*":return`(?:${L}${g(q)}${V})?${I}${W}${T}`;case"**/*.*":return`(?:${L}${g(q)}${V})?${I}${T}${z}${W}${T}`;case"**/.*":return`(?:${L}${g(q)}${V})?${z}${W}${T}`;default:{let P=/^(.*?)\.(\w+)$/.exec(N);if(!P)return;let A=h(P[1]);if(!A)return;return A+z+P[2]}}},u=w5.removePrefix(Z,_),E=h(u);if(E&&q.strictSlashes!==!0)E+=`${V}?`;return E};wj=IZ,Oj=GZ,Nj=Bj,n9=wj,_Z=c4,Rj=i4;f1.test=(Z,J,q,{glob:Q,posix:Y}={})=>{if(typeof Z!=="string")throw TypeError("Expected input to be a string");if(Z==="")return{isMatch:!1,output:""};let X=q||{},z=X.format||(Y?_Z.toPosixSlashes:null),V=Z===Q,W=V&&z?z(Z):Z;if(V===!1)W=z?z(Z):Z,V=W===Q;if(V===!1||X.capture===!0)if(X.matchBase===!0||X.basename===!0)V=f1.matchBase(Z,J,q,Y);else V=J.exec(W);return{isMatch:Boolean(V),match:V,output:W}};f1.matchBase=(Z,J,q,Q=_Z.isWindows(q))=>{return(J instanceof RegExp?J:f1.makeRe(J,q)).test(Oj.basename(Z))};f1.isMatch=(Z,J,q)=>f1(J,q)(Z);f1.parse=(Z,J)=>{if(Array.isArray(Z))return Z.map((q)=>f1.parse(q,J));return n9(Z,{...J,fastpaths:!1})};f1.scan=(Z,J)=>Nj(Z,J);f1.compileRe=(Z,J,q=!1,Q=!1)=>{if(q===!0)return Z.output;let Y=J||{},X=Y.contains?"":"^",z=Y.contains?"":"$",V=`${X}(?:${Z.output})${z}`;if(Z&&Z.negated===!0)V=`^(?!${V}).*$`;let W=f1.toRegex(V,J);if(Q===!0)W.state=Z;return W};f1.makeRe=(Z,J={},q=!1,Q=!1)=>{if(!Z||typeof Z!=="string")throw TypeError("Expected a non-empty string");let Y={negated:!1,fastpaths:!0};if(J.fastpaths!==!1&&(Z[0]==="."||Z[0]==="*"))Y.output=n9.fastpaths(Z,J);if(!Y.output)Y=n9(Z,J);return f1.compileRe(Y,J,q,Q)};f1.toRegex=(Z,J)=>{try{let q=J||{};return new RegExp(Z,q.flags||(q.nocase?"i":""))}catch(q){if(J&&J.debug===!0)throw q;return/$^/}};f1.constants=Rj;Ij=f1;(function(Z){Z.exports=Ij})(F2);yI=aU(F2.exports),e8={ArrayPattern(Z,J){for(let q of J.elements)if(q)e8[q.type](Z,q)},AssignmentPattern(Z,J){e8[J.left.type](Z,J.left)},Identifier(Z,J){Z.push(J.name)},MemberExpression(){},ObjectPattern(Z,J){for(let q of J.properties)if(q.type==="RestElement")e8.RestElement(Z,q);else e8[q.value.type](Z,q.value)},RestElement(Z,J){e8[J.argument.type](Z,J.argument)}},Aj=new Set(`${Dj} ${Tj}`.split(" "));Aj.add("");F0=new class extends B5{getLiteralValueAtPath(){return}},Z6={value:{hasEffectsWhenCalled:null,returns:Y1}},DZ=new class extends B5{getReturnExpressionWhenCalledAtPath(J){if(J.length===1)return w0(s9,J[0]);return Y1}hasEffectsOnInteractionAtPath(J,q,Q){if(q.type===E1)return J.length>1;if(q.type===P1&&J.length===1)return L0(s9,J[0],q,Q);return!0}},T8={value:{hasEffectsWhenCalled:null,returns:DZ}},U6=new class extends B5{getReturnExpressionWhenCalledAtPath(J){if(J.length===1)return w0(r9,J[0]);return Y1}hasEffectsOnInteractionAtPath(J,q,Q){if(q.type===E1)return J.length>1;if(q.type===P1&&J.length===1)return L0(r9,J[0],q,Q);return!0}},J6={value:{hasEffectsWhenCalled:null,returns:U6}},TZ=new class extends B5{getReturnExpressionWhenCalledAtPath(J){if(J.length===1)return w0(V0,J[0]);return Y1}hasEffectsOnInteractionAtPath(J,q,Q){if(q.type===E1)return J.length>1;if(q.type===P1&&J.length===1)return L0(V0,J[0],q,Q);return!0}},j1={value:{hasEffectsWhenCalled:null,returns:TZ}},FQ={value:{hasEffectsWhenCalled({args:Z},J){let q=Z[1];return Z.length<2||typeof q.getLiteralValueAtPath($1,r1,{deoptimizeCache(){}})==="symbol"&&q.hasEffectsOnInteractionAtPath($1,d4,J)},returns:TZ}},AZ=s4({hasOwnProperty:T8,isPrototypeOf:T8,propertyIsEnumerable:T8,toLocaleString:j1,toString:j1,valueOf:Z6}),s9=s4({valueOf:T8},AZ),r9=s4({toExponential:j1,toFixed:j1,toLocaleString:j1,toPrecision:j1,valueOf:J6},AZ),V0=s4({anchor:j1,at:Z6,big:j1,blink:j1,bold:j1,charAt:j1,charCodeAt:J6,codePointAt:Z6,concat:j1,endsWith:T8,fixed:j1,fontcolor:j1,fontsize:j1,includes:T8,indexOf:J6,italics:j1,lastIndexOf:J6,link:j1,localeCompare:J6,match:Z6,matchAll:Z6,normalize:j1,padEnd:j1,padStart:j1,repeat:j1,replace:FQ,replaceAll:FQ,search:J6,slice:j1,small:j1,split:Z6,startsWith:T8,strike:j1,sub:j1,substr:j1,substring:j1,sup:j1,toLocaleLowerCase:j1,toLocaleUpperCase:j1,toLowerCase:j1,toString:j1,toUpperCase:j1,trim:j1,trimEnd:j1,trimLeft:j1,trimRight:j1,trimStart:j1,valueOf:j1},AZ);a={};a.Program=a.BlockStatement=a.StaticBlock=function(Z,J,q){for(var Q=0,Y=Z.body;Q<Y.length;Q+=1){var X=Y[Q];q(X,J,"Statement")}};a.Statement=PZ;a.EmptyStatement=E8;a.ExpressionStatement=a.ParenthesizedExpression=a.ChainExpression=function(Z,J,q){return q(Z.expression,J,"Expression")};a.IfStatement=function(Z,J,q){if(q(Z.test,J,"Expression"),q(Z.consequent,J,"Statement"),Z.alternate)q(Z.alternate,J,"Statement")};a.LabeledStatement=function(Z,J,q){return q(Z.body,J,"Statement")};a.BreakStatement=a.ContinueStatement=E8;a.WithStatement=function(Z,J,q){q(Z.object,J,"Expression"),q(Z.body,J,"Statement")};a.SwitchStatement=function(Z,J,q){q(Z.discriminant,J,"Expression");for(var Q=0,Y=Z.cases;Q<Y.length;Q+=1){var X=Y[Q];if(X.test)q(X.test,J,"Expression");for(var z=0,V=X.consequent;z<V.length;z+=1){var W=V[z];q(W,J,"Statement")}}};a.SwitchCase=function(Z,J,q){if(Z.test)q(Z.test,J,"Expression");for(var Q=0,Y=Z.consequent;Q<Y.length;Q+=1){var X=Y[Q];q(X,J,"Statement")}};a.ReturnStatement=a.YieldExpression=a.AwaitExpression=function(Z,J,q){if(Z.argument)q(Z.argument,J,"Expression")};a.ThrowStatement=a.SpreadElement=function(Z,J,q){return q(Z.argument,J,"Expression")};a.TryStatement=function(Z,J,q){if(q(Z.block,J,"Statement"),Z.handler)q(Z.handler,J);if(Z.finalizer)q(Z.finalizer,J,"Statement")};a.CatchClause=function(Z,J,q){if(Z.param)q(Z.param,J,"Pattern");q(Z.body,J,"Statement")};a.WhileStatement=a.DoWhileStatement=function(Z,J,q){q(Z.test,J,"Expression"),q(Z.body,J,"Statement")};a.ForStatement=function(Z,J,q){if(Z.init)q(Z.init,J,"ForInit");if(Z.test)q(Z.test,J,"Expression");if(Z.update)q(Z.update,J,"Expression");q(Z.body,J,"Statement")};a.ForInStatement=a.ForOfStatement=function(Z,J,q){q(Z.left,J,"ForInit"),q(Z.right,J,"Expression"),q(Z.body,J,"Statement")};a.ForInit=function(Z,J,q){if(Z.type==="VariableDeclaration")q(Z,J);else q(Z,J,"Expression")};a.DebuggerStatement=E8;a.FunctionDeclaration=function(Z,J,q){return q(Z,J,"Function")};a.VariableDeclaration=function(Z,J,q){for(var Q=0,Y=Z.declarations;Q<Y.length;Q+=1){var X=Y[Q];q(X,J)}};a.VariableDeclarator=function(Z,J,q){if(q(Z.id,J,"Pattern"),Z.init)q(Z.init,J,"Expression")};a.Function=function(Z,J,q){if(Z.id)q(Z.id,J,"Pattern");for(var Q=0,Y=Z.params;Q<Y.length;Q+=1){var X=Y[Q];q(X,J,"Pattern")}q(Z.body,J,Z.expression?"Expression":"Statement")};a.Pattern=function(Z,J,q){if(Z.type==="Identifier")q(Z,J,"VariablePattern");else if(Z.type==="MemberExpression")q(Z,J,"MemberPattern");else q(Z,J)};a.VariablePattern=E8;a.MemberPattern=PZ;a.RestElement=function(Z,J,q){return q(Z.argument,J,"Pattern")};a.ArrayPattern=function(Z,J,q){for(var Q=0,Y=Z.elements;Q<Y.length;Q+=1){var X=Y[Q];if(X)q(X,J,"Pattern")}};a.ObjectPattern=function(Z,J,q){for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var X=Y[Q];if(X.type==="Property"){if(X.computed)q(X.key,J,"Expression");q(X.value,J,"Pattern")}else if(X.type==="RestElement")q(X.argument,J,"Pattern")}};a.Expression=PZ;a.ThisExpression=a.Super=a.MetaProperty=E8;a.ArrayExpression=function(Z,J,q){for(var Q=0,Y=Z.elements;Q<Y.length;Q+=1){var X=Y[Q];if(X)q(X,J,"Expression")}};a.ObjectExpression=function(Z,J,q){for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var X=Y[Q];q(X,J)}};a.FunctionExpression=a.ArrowFunctionExpression=a.FunctionDeclaration;a.SequenceExpression=function(Z,J,q){for(var Q=0,Y=Z.expressions;Q<Y.length;Q+=1){var X=Y[Q];q(X,J,"Expression")}};a.TemplateLiteral=function(Z,J,q){for(var Q=0,Y=Z.quasis;Q<Y.length;Q+=1){var X=Y[Q];q(X,J)}for(var z=0,V=Z.expressions;z<V.length;z+=1){var W=V[z];q(W,J,"Expression")}};a.TemplateElement=E8;a.UnaryExpression=a.UpdateExpression=function(Z,J,q){q(Z.argument,J,"Expression")};a.BinaryExpression=a.LogicalExpression=function(Z,J,q){q(Z.left,J,"Expression"),q(Z.right,J,"Expression")};a.AssignmentExpression=a.AssignmentPattern=function(Z,J,q){q(Z.left,J,"Pattern"),q(Z.right,J,"Expression")};a.ConditionalExpression=function(Z,J,q){q(Z.test,J,"Expression"),q(Z.consequent,J,"Expression"),q(Z.alternate,J,"Expression")};a.NewExpression=a.CallExpression=function(Z,J,q){if(q(Z.callee,J,"Expression"),Z.arguments)for(var Q=0,Y=Z.arguments;Q<Y.length;Q+=1){var X=Y[Q];q(X,J,"Expression")}};a.MemberExpression=function(Z,J,q){if(q(Z.object,J,"Expression"),Z.computed)q(Z.property,J,"Expression")};a.ExportNamedDeclaration=a.ExportDefaultDeclaration=function(Z,J,q){if(Z.declaration)q(Z.declaration,J,Z.type==="ExportNamedDeclaration"||Z.declaration.id?"Statement":"Expression");if(Z.source)q(Z.source,J,"Expression")};a.ExportAllDeclaration=function(Z,J,q){if(Z.exported)q(Z.exported,J);q(Z.source,J,"Expression")};a.ImportDeclaration=function(Z,J,q){for(var Q=0,Y=Z.specifiers;Q<Y.length;Q+=1){var X=Y[Q];q(X,J)}q(Z.source,J,"Expression")};a.ImportExpression=function(Z,J,q){q(Z.source,J,"Expression")};a.ImportSpecifier=a.ImportDefaultSpecifier=a.ImportNamespaceSpecifier=a.Identifier=a.PrivateIdentifier=a.Literal=E8;a.TaggedTemplateExpression=function(Z,J,q){q(Z.tag,J,"Expression"),q(Z.quasi,J,"Expression")};a.ClassDeclaration=a.ClassExpression=function(Z,J,q){return q(Z,J,"Class")};a.Class=function(Z,J,q){if(Z.id)q(Z.id,J,"Pattern");if(Z.superClass)q(Z.superClass,J,"Expression");q(Z.body,J)};a.ClassBody=function(Z,J,q){for(var Q=0,Y=Z.body;Q<Y.length;Q+=1){var X=Y[Q];q(X,J)}};a.MethodDefinition=a.PropertyDefinition=a.Property=function(Z,J,q){if(Z.computed)q(Z.key,J,"Expression");if(Z.value)q(Z.value,J,"Expression")};SZ+="ppingURL";uj=new RegExp(`^#${mj}+${SZ}=.+`);dj=/[^\s(]/g,A9=/\S/g;cj=/[@#]__PURE__/;o9={Literal:[],Program:["body"]};Z1=class Z1 extends B5{constructor(Z,J,q){super();this.deoptimized=!1,this.esTreeNode=Z,this.keys=o9[Z.type]||ij(Z),this.parent=J,this.context=J.context,this.createScope(q),this.parseNode(Z),this.initialise(),this.context.magicString.addSourcemapLocation(this.start),this.context.magicString.addSourcemapLocation(this.end)}addExportedVariables(Z,J){}bind(){for(let Z of this.keys){let J=this[Z];if(J===null)continue;if(Array.isArray(J))for(let q of J)q===null||q===void 0||q.bind();else J.bind()}}createScope(Z){this.scope=Z}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();for(let J of this.keys){let q=this[J];if(q===null)continue;if(Array.isArray(q)){for(let Q of q)if(Q===null||Q===void 0?void 0:Q.hasEffects(Z))return!0}else if(q.hasEffects(Z))return!0}return!1}hasEffectsAsAssignmentTarget(Z,J){return this.hasEffects(Z)||this.hasEffectsOnInteractionAtPath($1,this.assignmentInteraction,Z)}include(Z,J,q){if(!this.deoptimized)this.applyDeoptimizations();this.included=!0;for(let Q of this.keys){let Y=this[Q];if(Y===null)continue;if(Array.isArray(Y))for(let X of Y)X===null||X===void 0||X.include(Z,J);else Y.include(Z,J)}}includeAsAssignmentTarget(Z,J,q){this.include(Z,J)}initialise(){}insertSemicolon(Z){if(Z.original[this.end-1]!==";")Z.appendLeft(this.end,";")}parseNode(Z){for(let[J,q]of Object.entries(Z)){if(this.hasOwnProperty(J))continue;if(J.charCodeAt(0)===95){if(J===T2)this.annotations=q;else if(J===A2)for(let{start:Q,end:Y}of q)this.context.magicString.remove(Q,Y)}else if(typeof q!=="object"||q===null)this[J]=q;else if(Array.isArray(q)){this[J]=[];for(let Q of q)this[J].push(Q===null?null:new(this.context.getNodeConstructor(Q.type))(Q,this,this.scope))}else this[J]=new(this.context.getNodeConstructor(q.type))(q,this,this.scope)}}render(Z,J){for(let q of this.keys){let Q=this[q];if(Q===null)continue;if(Array.isArray(Q))for(let Y of Q)Y===null||Y===void 0||Y.render(Z,J);else Q.render(Z,J)}}setAssignedValue(Z){this.assignmentInteraction={args:[Z],thisArg:null,type:h5}}shouldBeIncluded(Z){return this.included||!Z.brokenFlow&&this.hasEffects(a4())}applyDeoptimizations(){this.deoptimized=!0;for(let Z of this.keys){let J=this[Z];if(J===null)continue;if(Array.isArray(J))for(let q of J)q===null||q===void 0||q.deoptimizePath(D1);else J.deoptimizePath(D1)}this.context.requestTreeshakingPass()}};z6=class z6 extends Z1{deoptimizeThisOnInteractionAtPath(Z,J,q){if(J.length>0)this.argument.deoptimizeThisOnInteractionAtPath(Z,[d1,...J],q)}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();let{propertyReadSideEffects:J}=this.context.options.treeshake;return this.argument.hasEffects(Z)||J&&(J==="always"||this.argument.hasEffectsOnInteractionAtPath(D1,LZ,Z))}applyDeoptimizations(){this.deoptimized=!0,this.argument.deoptimizePath([d1,d1]),this.context.requestTreeshakingPass()}};Z5=class Z5 extends B5{constructor(Z){super();this.description=Z}deoptimizeThisOnInteractionAtPath({type:Z,thisArg:J},q){if(Z===P1&&q.length===0&&this.description.mutatesSelfAsArray)J.deoptimizePath(c9)}getReturnExpressionWhenCalledAtPath(Z,{thisArg:J}){if(Z.length>0)return Y1;return this.description.returnsPrimitive||(this.description.returns==="self"?J||Y1:this.description.returns())}hasEffectsOnInteractionAtPath(Z,J,q){var Q,Y;let{type:X}=J;if(Z.length>(X===E1?1:0))return!0;if(X===P1){if(this.description.mutatesSelfAsArray===!0&&((Q=J.thisArg)===null||Q===void 0?void 0:Q.hasEffectsOnInteractionAtPath(c9,wZ,q)))return!0;if(this.description.callsArgs){for(let z of this.description.callsArgs)if((Y=J.args[z])===null||Y===void 0?void 0:Y.hasEffectsOnInteractionAtPath($1,d4,q))return!0}}return!1}};H4=[new Z5({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:DZ})],t6=[new Z5({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:TZ})],LQ=[new Z5({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:U6})],y2=[new Z5({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Y1})],p6=/^\d+$/;V5=class V5 extends B5{constructor(Z,J,q=!1){super();if(this.prototypeExpression=J,this.immutable=q,this.allProperties=[],this.deoptimizedPaths=Object.create(null),this.expressionsToBeDeoptimizedByKey=Object.create(null),this.gettersByKey=Object.create(null),this.hasLostTrack=!1,this.hasUnknownDeoptimizedInteger=!1,this.hasUnknownDeoptimizedProperty=!1,this.propertiesAndGettersByKey=Object.create(null),this.propertiesAndSettersByKey=Object.create(null),this.settersByKey=Object.create(null),this.thisParametersToBeDeoptimized=new Set,this.unknownIntegerProps=[],this.unmatchableGetters=[],this.unmatchablePropertiesAndGetters=[],this.unmatchableSetters=[],Array.isArray(Z))this.buildPropertyMaps(Z);else{this.propertiesAndGettersByKey=this.propertiesAndSettersByKey=Z;for(let Q of Object.values(Z))this.allProperties.push(...Q)}}deoptimizeAllProperties(Z){var J;let q=this.hasLostTrack||this.hasUnknownDeoptimizedProperty;if(Z)this.hasUnknownDeoptimizedProperty=!0;else this.hasLostTrack=!0;if(q)return;for(let Q of Object.values(this.propertiesAndGettersByKey).concat(Object.values(this.settersByKey)))for(let Y of Q)Y.deoptimizePath(D1);(J=this.prototypeExpression)===null||J===void 0||J.deoptimizePath([d1,d1]),this.deoptimizeCachedEntities()}deoptimizeIntegerProperties(){if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||this.hasUnknownDeoptimizedInteger)return;this.hasUnknownDeoptimizedInteger=!0;for(let[Z,J]of Object.entries(this.propertiesAndGettersByKey))if(p6.test(Z))for(let q of J)q.deoptimizePath(D1);this.deoptimizeCachedIntegerEntities()}deoptimizePath(Z){var J;if(this.hasLostTrack||this.immutable)return;let q=Z[0];if(Z.length===1){if(typeof q!=="string"){if(q===Q0)return this.deoptimizeIntegerProperties();return this.deoptimizeAllProperties(q===C4)}if(!this.deoptimizedPaths[q]){this.deoptimizedPaths[q]=!0;let Y=this.expressionsToBeDeoptimizedByKey[q];if(Y)for(let X of Y)X.deoptimizeCache()}}let Q=Z.length===1?D1:Z.slice(1);for(let Y of typeof q==="string"?(this.propertiesAndGettersByKey[q]||this.unmatchablePropertiesAndGetters).concat(this.settersByKey[q]||this.unmatchableSetters):this.allProperties)Y.deoptimizePath(Q);(J=this.prototypeExpression)===null||J===void 0||J.deoptimizePath(Z.length===1?[...Z,d1]:Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){var Q;let[Y,...X]=J;if(this.hasLostTrack||(Z.type===P1||J.length>1)&&(this.hasUnknownDeoptimizedProperty||typeof Y==="string"&&this.deoptimizedPaths[Y])){Z.thisArg.deoptimizePath(D1);return}let[z,V,W]=Z.type===P1||J.length>1?[this.propertiesAndGettersByKey,this.propertiesAndGettersByKey,this.unmatchablePropertiesAndGetters]:Z.type===E1?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(typeof Y==="string"){if(z[Y]){let K=V[Y];if(K)for(let $ of K)$.deoptimizeThisOnInteractionAtPath(Z,X,q);if(!this.immutable)this.thisParametersToBeDeoptimized.add(Z.thisArg);return}for(let K of W)K.deoptimizeThisOnInteractionAtPath(Z,X,q);if(p6.test(Y))for(let K of this.unknownIntegerProps)K.deoptimizeThisOnInteractionAtPath(Z,X,q)}else{for(let K of Object.values(V).concat([W]))for(let $ of K)$.deoptimizeThisOnInteractionAtPath(Z,X,q);for(let K of this.unknownIntegerProps)K.deoptimizeThisOnInteractionAtPath(Z,X,q)}if(!this.immutable)this.thisParametersToBeDeoptimized.add(Z.thisArg);(Q=this.prototypeExpression)===null||Q===void 0||Q.deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){if(Z.length===0)return j2;let Q=Z[0],Y=this.getMemberExpressionAndTrackDeopt(Q,q);if(Y)return Y.getLiteralValueAtPath(Z.slice(1),J,q);if(this.prototypeExpression)return this.prototypeExpression.getLiteralValueAtPath(Z,J,q);if(Z.length===1)return;return x1}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){if(Z.length===0)return Y1;let[Y,...X]=Z,z=this.getMemberExpressionAndTrackDeopt(Y,Q);if(z)return z.getReturnExpressionWhenCalledAtPath(X,J,q,Q);if(this.prototypeExpression)return this.prototypeExpression.getReturnExpressionWhenCalledAtPath(Z,J,q,Q);return Y1}hasEffectsOnInteractionAtPath(Z,J,q){let[Q,...Y]=Z;if(Y.length||J.type===P1){let W=this.getMemberExpression(Q);if(W)return W.hasEffectsOnInteractionAtPath(Y,J,q);if(this.prototypeExpression)return this.prototypeExpression.hasEffectsOnInteractionAtPath(Z,J,q);return!0}if(Q===C4)return!1;if(this.hasLostTrack)return!0;let[X,z,V]=J.type===E1?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(typeof Q==="string"){if(X[Q]){let W=z[Q];if(W){for(let K of W)if(K.hasEffectsOnInteractionAtPath(Y,J,q))return!0}return!1}for(let W of V)if(W.hasEffectsOnInteractionAtPath(Y,J,q))return!0}else for(let W of Object.values(z).concat([V]))for(let K of W)if(K.hasEffectsOnInteractionAtPath(Y,J,q))return!0;if(this.prototypeExpression)return this.prototypeExpression.hasEffectsOnInteractionAtPath(Z,J,q);return!1}buildPropertyMaps(Z){let{allProperties:J,propertiesAndGettersByKey:q,propertiesAndSettersByKey:Q,settersByKey:Y,gettersByKey:X,unknownIntegerProps:z,unmatchablePropertiesAndGetters:V,unmatchableGetters:W,unmatchableSetters:K}=this,$=[];for(let H=Z.length-1;H>=0;H--){let{key:M,kind:O,property:j}=Z[H];if(J.push(j),typeof M!=="string"){if(M===Q0){z.push(j);continue}if(O==="set")K.push(j);if(O==="get")W.push(j);if(O!=="get")$.push(j);if(O!=="set")V.push(j)}else if(O==="set"){if(!Q[M])Q[M]=[j,...$],Y[M]=[j,...K]}else if(O==="get"){if(!q[M])q[M]=[j,...V],X[M]=[j,...W]}else{if(!Q[M])Q[M]=[j,...$];if(!q[M])q[M]=[j,...V]}}}deoptimizeCachedEntities(){for(let Z of Object.values(this.expressionsToBeDeoptimizedByKey))for(let J of Z)J.deoptimizeCache();for(let Z of this.thisParametersToBeDeoptimized)Z.deoptimizePath(D1)}deoptimizeCachedIntegerEntities(){for(let[Z,J]of Object.entries(this.expressionsToBeDeoptimizedByKey))if(p6.test(Z))for(let q of J)q.deoptimizeCache();for(let Z of this.thisParametersToBeDeoptimized)Z.deoptimizePath(c9)}getMemberExpression(Z){if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||typeof Z!=="string"||this.hasUnknownDeoptimizedInteger&&p6.test(Z)||this.deoptimizedPaths[Z])return Y1;let J=this.propertiesAndGettersByKey[Z];if((J===null||J===void 0?void 0:J.length)===1)return J[0];if(J||this.unmatchablePropertiesAndGetters.length>0||this.unknownIntegerProps.length&&p6.test(Z))return Y1;return null}getMemberExpressionAndTrackDeopt(Z,J){if(typeof Z!=="string")return Y1;let q=this.getMemberExpression(Z);if(!(q===Y1||this.immutable))(this.expressionsToBeDeoptimizedByKey[Z]=this.expressionsToBeDeoptimizedByKey[Z]||[]).push(J);return q}};nj=new class extends B5{deoptimizeThisOnInteractionAtPath({type:J,thisArg:q},Q){if(J===P1&&Q.length===1&&!wQ(Q[0]))q.deoptimizePath(D1)}getLiteralValueAtPath(J){return J.length===1&&wQ(J[0])?void 0:x1}hasEffectsOnInteractionAtPath(J,{type:q}){return J.length>1||q===P1}},Y8=new V5({__proto__:null,hasOwnProperty:H4,isPrototypeOf:H4,propertyIsEnumerable:H4,toLocaleString:t6,toString:t6,valueOf:y2},nj,!0),yZ=[{key:Q0,kind:"init",property:Y1},{key:"length",kind:"init",property:U6}],OQ=[new Z5({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:DZ})],NQ=[new Z5({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:U6})],aj=[new Z5({callsArgs:null,mutatesSelfAsArray:!0,returns:()=>new V5(yZ,r4),returnsPrimitive:null})],V4=[new Z5({callsArgs:null,mutatesSelfAsArray:"deopt-only",returns:()=>new V5(yZ,r4),returnsPrimitive:null})],P9=[new Z5({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:()=>new V5(yZ,r4),returnsPrimitive:null})],RQ=[new Z5({callsArgs:null,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:U6})],CQ=[new Z5({callsArgs:null,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:Y1})],IQ=[new Z5({callsArgs:null,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Y1})],R8=[new Z5({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Y1})],S9=[new Z5({callsArgs:null,mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],sj=[new Z5({callsArgs:[0],mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],r4=new V5({__proto__:null,at:IQ,concat:V4,copyWithin:S9,entries:V4,every:OQ,fill:S9,filter:P9,find:R8,findIndex:NQ,findLast:R8,findLastIndex:NQ,flat:V4,flatMap:P9,forEach:R8,group:R8,groupToMap:R8,includes:H4,indexOf:LQ,join:t6,keys:y2,lastIndexOf:LQ,map:P9,pop:CQ,push:RQ,reduce:R8,reduceRight:R8,reverse:S9,shift:CQ,slice:V4,some:OQ,sort:sj,splice:aj,toLocaleString:t6,toString:t6,unshift:RQ,values:IQ},Y8,!0);E2=class E2 extends Z1{constructor(){super(...arguments);this.objectEntity=null}deoptimizePath(Z){this.getObjectEntity().deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.getObjectEntity().deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){return this.getObjectEntity().getLiteralValueAtPath(Z,J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(Z,J,q,Q)}hasEffectsOnInteractionAtPath(Z,J,q){return this.getObjectEntity().hasEffectsOnInteractionAtPath(Z,J,q)}applyDeoptimizations(){this.deoptimized=!0;let Z=!1;for(let J=0;J<this.elements.length;J++){let q=this.elements[J];if(q){if(Z||q instanceof z6)Z=!0,q.deoptimizePath(D1)}}this.context.requestTreeshakingPass()}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let Z=[{key:"length",kind:"init",property:U6}],J=!1;for(let q=0;q<this.elements.length;q++){let Q=this.elements[q];if(J||Q instanceof z6){if(Q)J=!0,Z.unshift({key:Q0,kind:"init",property:Q})}else if(!Q)Z.push({key:String(q),kind:"init",property:F0});else Z.push({key:String(q),kind:"init",property:Q})}return this.objectEntity=new V5(Z,r4)}};b2=class b2 extends Z1{addExportedVariables(Z,J){for(let q of this.elements)q===null||q===void 0||q.addExportedVariables(Z,J)}declare(Z){let J=[];for(let q of this.elements)if(q!==null)J.push(...q.declare(Z,Y1));return J}deoptimizePath(){for(let Z of this.elements)Z===null||Z===void 0||Z.deoptimizePath($1)}hasEffectsOnInteractionAtPath(Z,J,q){for(let Q of this.elements)if(Q===null||Q===void 0?void 0:Q.hasEffectsOnInteractionAtPath($1,J,q))return!0;return!1}markDeclarationReached(){for(let Z of this.elements)Z===null||Z===void 0||Z.markDeclarationReached()}};S5=class S5 extends $8{constructor(Z,J,q,Q){super(Z);this.calledFromTryStatement=!1,this.additionalInitializers=null,this.expressionsToBeDeoptimized=[],this.declarations=J?[J]:[],this.init=q,this.deoptimizationTracker=Q.deoptimizationTracker,this.module=Q.module}addDeclaration(Z,J){this.declarations.push(Z);let q=this.markInitializersForDeoptimization();if(J!==null)q.push(J)}consolidateInitializers(){if(this.additionalInitializers!==null){for(let Z of this.additionalInitializers)Z.deoptimizePath(D1);this.additionalInitializers=null}}deoptimizePath(Z){var J,q;if(this.isReassigned||this.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(Z,this))return;if(Z.length===0){if(!this.isReassigned){this.isReassigned=!0;let Q=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[];for(let Y of Q)Y.deoptimizeCache();(J=this.init)===null||J===void 0||J.deoptimizePath(D1)}}else(q=this.init)===null||q===void 0||q.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){if(this.isReassigned||!this.init)return Z.thisArg.deoptimizePath(D1);q.withTrackedEntityAtPath(J,this.init,()=>this.init.deoptimizeThisOnInteractionAtPath(Z,J,q),void 0)}getLiteralValueAtPath(Z,J,q){if(this.isReassigned||!this.init)return x1;return J.withTrackedEntityAtPath(Z,this.init,()=>{return this.expressionsToBeDeoptimized.push(q),this.init.getLiteralValueAtPath(Z,J,q)},x1)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){if(this.isReassigned||!this.init)return Y1;return q.withTrackedEntityAtPath(Z,this.init,()=>{return this.expressionsToBeDeoptimized.push(Q),this.init.getReturnExpressionWhenCalledAtPath(Z,J,q,Q)},Y1)}hasEffectsOnInteractionAtPath(Z,J,q){switch(J.type){case E1:if(this.isReassigned)return!0;return this.init&&!q.accessed.trackEntityAtPathAndGetIfTracked(Z,this)&&this.init.hasEffectsOnInteractionAtPath(Z,J,q);case h5:if(this.included)return!0;if(Z.length===0)return!1;if(this.isReassigned)return!0;return this.init&&!q.assigned.trackEntityAtPathAndGetIfTracked(Z,this)&&this.init.hasEffectsOnInteractionAtPath(Z,J,q);case P1:if(this.isReassigned)return!0;return this.init&&!(J.withNew?q.instantiated:q.called).trackEntityAtPathAndGetIfTracked(Z,J.args,this)&&this.init.hasEffectsOnInteractionAtPath(Z,J,q)}}include(){if(!this.included){this.included=!0;for(let Z of this.declarations){if(!Z.included)Z.include(a9(),!1);let J=Z.parent;while(!J.included){if(J.included=!0,J.type===A4)break;J=J.parent}}}}includeCallArguments(Z,J){if(this.isReassigned||this.init&&Z.includedCallArguments.has(this.init))for(let q of J)q.include(Z,!1);else if(this.init)Z.includedCallArguments.add(this.init),this.init.includeCallArguments(Z,J),Z.includedCallArguments.delete(this.init)}markCalledFromTryStatement(){this.calledFromTryStatement=!0}markInitializersForDeoptimization(){if(this.additionalInitializers===null)this.additionalInitializers=this.init===null?[]:[this.init],this.init=Y1,this.isReassigned=!0;return this.additionalInitializers}};P5=class P5 extends EZ{constructor(Z){super();this.accessedOutsideVariables=new Map,this.parent=Z,Z.children.push(this)}addAccessedDynamicImport(Z){if((this.accessedDynamicImports||(this.accessedDynamicImports=new Set)).add(Z),this.parent instanceof P5)this.parent.addAccessedDynamicImport(Z)}addAccessedGlobals(Z,J){let q=J.get(this)||new Set;for(let Q of Z)q.add(Q);if(J.set(this,q),this.parent instanceof P5)this.parent.addAccessedGlobals(Z,J)}addNamespaceMemberAccess(Z,J){this.accessedOutsideVariables.set(Z,J),this.parent.addNamespaceMemberAccess(Z,J)}addReturnExpression(Z){this.parent instanceof P5&&this.parent.addReturnExpression(Z)}addUsedOutsideNames(Z,J,q,Q){for(let X of this.accessedOutsideVariables.values())if(X.included){if(Z.add(X.getBaseVariableName()),J==="system"&&q.has(X))Z.add("exports")}let Y=Q.get(this);if(Y)for(let X of Y)Z.add(X)}contains(Z){return this.variables.has(Z)||this.parent.contains(Z)}deconflict(Z,J,q){let Q=new Set;if(this.addUsedOutsideNames(Q,Z,J,q),this.accessedDynamicImports){for(let Y of this.accessedDynamicImports)if(Y.inlineNamespace)Q.add(Y.inlineNamespace.getBaseVariableName())}for(let[Y,X]of this.variables)if(X.included||X.alwaysRendered)X.setRenderNames(null,k5(Y,Q));for(let Y of this.children)Y.deconflict(Z,J,q)}findLexicalBoundary(){return this.parent.findLexicalBoundary()}findVariable(Z){let J=this.variables.get(Z)||this.accessedOutsideVariables.get(Z);if(J)return J;let q=this.parent.findVariable(Z);return this.accessedOutsideVariables.set(Z,q),q}};bZ=class bZ extends P5{constructor(Z,J){super(Z);this.parameters=[],this.hasRest=!1,this.context=J,this.hoistedBodyVarScope=new P5(this)}addParameterDeclaration(Z){let J=Z.name,q=this.hoistedBodyVarScope.variables.get(J);if(q)q.addDeclaration(Z,null);else q=new S5(J,Z,Y1,this.context);return this.variables.set(J,q),q}addParameterVariables(Z,J){this.parameters=Z;for(let q of Z)for(let Q of q)Q.alwaysRendered=!0;this.hasRest=J}includeCallArguments(Z,J){let q=!1,Q=!1,Y=this.hasRest&&this.parameters[this.parameters.length-1];for(let X of J)if(X instanceof z6){for(let z of J)z.include(Z,!1);break}for(let X=J.length-1;X>=0;X--){let z=this.parameters[X]||Y,V=J[X];if(z)if(q=!1,z.length===0)Q=!0;else for(let W of z){if(W.included)Q=!0;if(W.calledFromTryStatement)q=!0}if(!Q&&V.shouldBeIncluded(Z))Q=!0;if(Q)V.include(Z,q)}}};xZ=class xZ extends bZ{constructor(){super(...arguments);this.returnExpression=null,this.returnExpressions=[]}addReturnExpression(Z){this.returnExpressions.push(Z)}getReturnExpression(){if(this.returnExpression===null)this.updateReturnExpression();return this.returnExpression}updateReturnExpression(){if(this.returnExpressions.length===1)this.returnExpression=this.returnExpressions[0];else{this.returnExpression=Y1;for(let Z of this.returnExpressions)Z.deoptimizePath(D1)}}};u1=Symbol("Value Properties"),x5={hasEffectsWhenCalled(){return!1}},C8={hasEffectsWhenCalled(){return!0}},l={__proto__:null,[u1]:C8},r={__proto__:null,[u1]:x5},DQ={__proto__:null,[u1]:{hasEffectsWhenCalled({args:Z},J){return!Z.length||Z[0].hasEffectsOnInteractionAtPath(ZU,wZ,J)}}},U={__proto__:null,[u1]:C8,prototype:l},Q5={__proto__:null,[u1]:x5,prototype:l},c5={__proto__:null,[u1]:x5,from:r,of:r,prototype:l},r8={__proto__:null,[u1]:x5,supportedLocalesOf:Q5},e9={global:l,globalThis:l,self:l,window:l,__proto__:null,[u1]:C8,Array:{__proto__:null,[u1]:C8,from:l,isArray:r,of:r,prototype:l},ArrayBuffer:{__proto__:null,[u1]:x5,isView:r,prototype:l},Atomics:l,BigInt:U,BigInt64Array:U,BigUint64Array:U,Boolean:Q5,constructor:U,DataView:Q5,Date:{__proto__:null,[u1]:x5,now:r,parse:r,prototype:l,UTC:r},decodeURI:r,decodeURIComponent:r,encodeURI:r,encodeURIComponent:r,Error:Q5,escape:r,eval:l,EvalError:Q5,Float32Array:c5,Float64Array:c5,Function:U,hasOwnProperty:l,Infinity:l,Int16Array:c5,Int32Array:c5,Int8Array:c5,isFinite:r,isNaN:r,isPrototypeOf:l,JSON:l,Map:Q5,Math:{__proto__:null,[u1]:C8,abs:r,acos:r,acosh:r,asin:r,asinh:r,atan:r,atan2:r,atanh:r,cbrt:r,ceil:r,clz32:r,cos:r,cosh:r,exp:r,expm1:r,floor:r,fround:r,hypot:r,imul:r,log:r,log10:r,log1p:r,log2:r,max:r,min:r,pow:r,random:r,round:r,sign:r,sin:r,sinh:r,sqrt:r,tan:r,tanh:r,trunc:r},NaN:l,Number:{__proto__:null,[u1]:x5,isFinite:r,isInteger:r,isNaN:r,isSafeInteger:r,parseFloat:r,parseInt:r,prototype:l},Object:{__proto__:null,[u1]:x5,create:r,defineProperty:DQ,defineProperties:DQ,getOwnPropertyDescriptor:r,getOwnPropertyNames:r,getOwnPropertySymbols:r,getPrototypeOf:r,hasOwn:r,is:r,isExtensible:r,isFrozen:r,isSealed:r,keys:r,fromEntries:r,entries:r,prototype:l},parseFloat:r,parseInt:r,Promise:{__proto__:null,[u1]:C8,all:l,prototype:l,race:l,reject:l,resolve:l},propertyIsEnumerable:l,Proxy:l,RangeError:Q5,ReferenceError:Q5,Reflect:l,RegExp:Q5,Set:Q5,SharedArrayBuffer:U,String:{__proto__:null,[u1]:x5,fromCharCode:r,fromCodePoint:r,prototype:l,raw:r},Symbol:{__proto__:null,[u1]:x5,for:r,keyFor:r,prototype:l},SyntaxError:Q5,toLocaleString:l,toString:l,TypeError:Q5,Uint16Array:c5,Uint32Array:c5,Uint8Array:c5,Uint8ClampedArray:c5,unescape:r,URIError:Q5,valueOf:l,WeakMap:Q5,WeakSet:Q5,clearInterval:U,clearTimeout:U,console:l,Intl:{__proto__:null,[u1]:C8,Collator:r8,DateTimeFormat:r8,ListFormat:r8,NumberFormat:r8,PluralRules:r8,RelativeTimeFormat:r8},setInterval:U,setTimeout:U,TextDecoder:U,TextEncoder:U,URL:U,URLSearchParams:U,AbortController:U,AbortSignal:U,addEventListener:l,alert:l,AnalyserNode:U,Animation:U,AnimationEvent:U,applicationCache:l,ApplicationCache:U,ApplicationCacheErrorEvent:U,atob:l,Attr:U,Audio:U,AudioBuffer:U,AudioBufferSourceNode:U,AudioContext:U,AudioDestinationNode:U,AudioListener:U,AudioNode:U,AudioParam:U,AudioProcessingEvent:U,AudioScheduledSourceNode:U,AudioWorkletNode:U,BarProp:U,BaseAudioContext:U,BatteryManager:U,BeforeUnloadEvent:U,BiquadFilterNode:U,Blob:U,BlobEvent:U,blur:l,BroadcastChannel:U,btoa:l,ByteLengthQueuingStrategy:U,Cache:U,caches:l,CacheStorage:U,cancelAnimationFrame:l,cancelIdleCallback:l,CanvasCaptureMediaStreamTrack:U,CanvasGradient:U,CanvasPattern:U,CanvasRenderingContext2D:U,ChannelMergerNode:U,ChannelSplitterNode:U,CharacterData:U,clientInformation:l,ClipboardEvent:U,close:l,closed:l,CloseEvent:U,Comment:U,CompositionEvent:U,confirm:l,ConstantSourceNode:U,ConvolverNode:U,CountQueuingStrategy:U,createImageBitmap:l,Credential:U,CredentialsContainer:U,crypto:l,Crypto:U,CryptoKey:U,CSS:U,CSSConditionRule:U,CSSFontFaceRule:U,CSSGroupingRule:U,CSSImportRule:U,CSSKeyframeRule:U,CSSKeyframesRule:U,CSSMediaRule:U,CSSNamespaceRule:U,CSSPageRule:U,CSSRule:U,CSSRuleList:U,CSSStyleDeclaration:U,CSSStyleRule:U,CSSStyleSheet:U,CSSSupportsRule:U,CustomElementRegistry:U,customElements:l,CustomEvent:U,DataTransfer:U,DataTransferItem:U,DataTransferItemList:U,defaultstatus:l,defaultStatus:l,DelayNode:U,DeviceMotionEvent:U,DeviceOrientationEvent:U,devicePixelRatio:l,dispatchEvent:l,document:l,Document:U,DocumentFragment:U,DocumentType:U,DOMError:U,DOMException:U,DOMImplementation:U,DOMMatrix:U,DOMMatrixReadOnly:U,DOMParser:U,DOMPoint:U,DOMPointReadOnly:U,DOMQuad:U,DOMRect:U,DOMRectReadOnly:U,DOMStringList:U,DOMStringMap:U,DOMTokenList:U,DragEvent:U,DynamicsCompressorNode:U,Element:U,ErrorEvent:U,Event:U,EventSource:U,EventTarget:U,external:l,fetch:l,File:U,FileList:U,FileReader:U,find:l,focus:l,FocusEvent:U,FontFace:U,FontFaceSetLoadEvent:U,FormData:U,frames:l,GainNode:U,Gamepad:U,GamepadButton:U,GamepadEvent:U,getComputedStyle:l,getSelection:l,HashChangeEvent:U,Headers:U,history:l,History:U,HTMLAllCollection:U,HTMLAnchorElement:U,HTMLAreaElement:U,HTMLAudioElement:U,HTMLBaseElement:U,HTMLBodyElement:U,HTMLBRElement:U,HTMLButtonElement:U,HTMLCanvasElement:U,HTMLCollection:U,HTMLContentElement:U,HTMLDataElement:U,HTMLDataListElement:U,HTMLDetailsElement:U,HTMLDialogElement:U,HTMLDirectoryElement:U,HTMLDivElement:U,HTMLDListElement:U,HTMLDocument:U,HTMLElement:U,HTMLEmbedElement:U,HTMLFieldSetElement:U,HTMLFontElement:U,HTMLFormControlsCollection:U,HTMLFormElement:U,HTMLFrameElement:U,HTMLFrameSetElement:U,HTMLHeadElement:U,HTMLHeadingElement:U,HTMLHRElement:U,HTMLHtmlElement:U,HTMLIFrameElement:U,HTMLImageElement:U,HTMLInputElement:U,HTMLLabelElement:U,HTMLLegendElement:U,HTMLLIElement:U,HTMLLinkElement:U,HTMLMapElement:U,HTMLMarqueeElement:U,HTMLMediaElement:U,HTMLMenuElement:U,HTMLMetaElement:U,HTMLMeterElement:U,HTMLModElement:U,HTMLObjectElement:U,HTMLOListElement:U,HTMLOptGroupElement:U,HTMLOptionElement:U,HTMLOptionsCollection:U,HTMLOutputElement:U,HTMLParagraphElement:U,HTMLParamElement:U,HTMLPictureElement:U,HTMLPreElement:U,HTMLProgressElement:U,HTMLQuoteElement:U,HTMLScriptElement:U,HTMLSelectElement:U,HTMLShadowElement:U,HTMLSlotElement:U,HTMLSourceElement:U,HTMLSpanElement:U,HTMLStyleElement:U,HTMLTableCaptionElement:U,HTMLTableCellElement:U,HTMLTableColElement:U,HTMLTableElement:U,HTMLTableRowElement:U,HTMLTableSectionElement:U,HTMLTemplateElement:U,HTMLTextAreaElement:U,HTMLTimeElement:U,HTMLTitleElement:U,HTMLTrackElement:U,HTMLUListElement:U,HTMLUnknownElement:U,HTMLVideoElement:U,IDBCursor:U,IDBCursorWithValue:U,IDBDatabase:U,IDBFactory:U,IDBIndex:U,IDBKeyRange:U,IDBObjectStore:U,IDBOpenDBRequest:U,IDBRequest:U,IDBTransaction:U,IDBVersionChangeEvent:U,IdleDeadline:U,IIRFilterNode:U,Image:U,ImageBitmap:U,ImageBitmapRenderingContext:U,ImageCapture:U,ImageData:U,indexedDB:l,innerHeight:l,innerWidth:l,InputEvent:U,IntersectionObserver:U,IntersectionObserverEntry:U,isSecureContext:l,KeyboardEvent:U,KeyframeEffect:U,length:l,localStorage:l,location:l,Location:U,locationbar:l,matchMedia:l,MediaDeviceInfo:U,MediaDevices:U,MediaElementAudioSourceNode:U,MediaEncryptedEvent:U,MediaError:U,MediaKeyMessageEvent:U,MediaKeySession:U,MediaKeyStatusMap:U,MediaKeySystemAccess:U,MediaList:U,MediaQueryList:U,MediaQueryListEvent:U,MediaRecorder:U,MediaSettingsRange:U,MediaSource:U,MediaStream:U,MediaStreamAudioDestinationNode:U,MediaStreamAudioSourceNode:U,MediaStreamEvent:U,MediaStreamTrack:U,MediaStreamTrackEvent:U,menubar:l,MessageChannel:U,MessageEvent:U,MessagePort:U,MIDIAccess:U,MIDIConnectionEvent:U,MIDIInput:U,MIDIInputMap:U,MIDIMessageEvent:U,MIDIOutput:U,MIDIOutputMap:U,MIDIPort:U,MimeType:U,MimeTypeArray:U,MouseEvent:U,moveBy:l,moveTo:l,MutationEvent:U,MutationObserver:U,MutationRecord:U,name:l,NamedNodeMap:U,NavigationPreloadManager:U,navigator:l,Navigator:U,NetworkInformation:U,Node:U,NodeFilter:l,NodeIterator:U,NodeList:U,Notification:U,OfflineAudioCompletionEvent:U,OfflineAudioContext:U,offscreenBuffering:l,OffscreenCanvas:U,open:l,openDatabase:l,Option:U,origin:l,OscillatorNode:U,outerHeight:l,outerWidth:l,PageTransitionEvent:U,pageXOffset:l,pageYOffset:l,PannerNode:U,parent:l,Path2D:U,PaymentAddress:U,PaymentRequest:U,PaymentRequestUpdateEvent:U,PaymentResponse:U,performance:l,Performance:U,PerformanceEntry:U,PerformanceLongTaskTiming:U,PerformanceMark:U,PerformanceMeasure:U,PerformanceNavigation:U,PerformanceNavigationTiming:U,PerformanceObserver:U,PerformanceObserverEntryList:U,PerformancePaintTiming:U,PerformanceResourceTiming:U,PerformanceTiming:U,PeriodicWave:U,Permissions:U,PermissionStatus:U,personalbar:l,PhotoCapabilities:U,Plugin:U,PluginArray:U,PointerEvent:U,PopStateEvent:U,postMessage:l,Presentation:U,PresentationAvailability:U,PresentationConnection:U,PresentationConnectionAvailableEvent:U,PresentationConnectionCloseEvent:U,PresentationConnectionList:U,PresentationReceiver:U,PresentationRequest:U,print:l,ProcessingInstruction:U,ProgressEvent:U,PromiseRejectionEvent:U,prompt:l,PushManager:U,PushSubscription:U,PushSubscriptionOptions:U,queueMicrotask:l,RadioNodeList:U,Range:U,ReadableStream:U,RemotePlayback:U,removeEventListener:l,Request:U,requestAnimationFrame:l,requestIdleCallback:l,resizeBy:l,ResizeObserver:U,ResizeObserverEntry:U,resizeTo:l,Response:U,RTCCertificate:U,RTCDataChannel:U,RTCDataChannelEvent:U,RTCDtlsTransport:U,RTCIceCandidate:U,RTCIceTransport:U,RTCPeerConnection:U,RTCPeerConnectionIceEvent:U,RTCRtpReceiver:U,RTCRtpSender:U,RTCSctpTransport:U,RTCSessionDescription:U,RTCStatsReport:U,RTCTrackEvent:U,screen:l,Screen:U,screenLeft:l,ScreenOrientation:U,screenTop:l,screenX:l,screenY:l,ScriptProcessorNode:U,scroll:l,scrollbars:l,scrollBy:l,scrollTo:l,scrollX:l,scrollY:l,SecurityPolicyViolationEvent:U,Selection:U,ServiceWorker:U,ServiceWorkerContainer:U,ServiceWorkerRegistration:U,sessionStorage:l,ShadowRoot:U,SharedWorker:U,SourceBuffer:U,SourceBufferList:U,speechSynthesis:l,SpeechSynthesisEvent:U,SpeechSynthesisUtterance:U,StaticRange:U,status:l,statusbar:l,StereoPannerNode:U,stop:l,Storage:U,StorageEvent:U,StorageManager:U,styleMedia:l,StyleSheet:U,StyleSheetList:U,SubtleCrypto:U,SVGAElement:U,SVGAngle:U,SVGAnimatedAngle:U,SVGAnimatedBoolean:U,SVGAnimatedEnumeration:U,SVGAnimatedInteger:U,SVGAnimatedLength:U,SVGAnimatedLengthList:U,SVGAnimatedNumber:U,SVGAnimatedNumberList:U,SVGAnimatedPreserveAspectRatio:U,SVGAnimatedRect:U,SVGAnimatedString:U,SVGAnimatedTransformList:U,SVGAnimateElement:U,SVGAnimateMotionElement:U,SVGAnimateTransformElement:U,SVGAnimationElement:U,SVGCircleElement:U,SVGClipPathElement:U,SVGComponentTransferFunctionElement:U,SVGDefsElement:U,SVGDescElement:U,SVGDiscardElement:U,SVGElement:U,SVGEllipseElement:U,SVGFEBlendElement:U,SVGFEColorMatrixElement:U,SVGFEComponentTransferElement:U,SVGFECompositeElement:U,SVGFEConvolveMatrixElement:U,SVGFEDiffuseLightingElement:U,SVGFEDisplacementMapElement:U,SVGFEDistantLightElement:U,SVGFEDropShadowElement:U,SVGFEFloodElement:U,SVGFEFuncAElement:U,SVGFEFuncBElement:U,SVGFEFuncGElement:U,SVGFEFuncRElement:U,SVGFEGaussianBlurElement:U,SVGFEImageElement:U,SVGFEMergeElement:U,SVGFEMergeNodeElement:U,SVGFEMorphologyElement:U,SVGFEOffsetElement:U,SVGFEPointLightElement:U,SVGFESpecularLightingElement:U,SVGFESpotLightElement:U,SVGFETileElement:U,SVGFETurbulenceElement:U,SVGFilterElement:U,SVGForeignObjectElement:U,SVGGElement:U,SVGGeometryElement:U,SVGGradientElement:U,SVGGraphicsElement:U,SVGImageElement:U,SVGLength:U,SVGLengthList:U,SVGLinearGradientElement:U,SVGLineElement:U,SVGMarkerElement:U,SVGMaskElement:U,SVGMatrix:U,SVGMetadataElement:U,SVGMPathElement:U,SVGNumber:U,SVGNumberList:U,SVGPathElement:U,SVGPatternElement:U,SVGPoint:U,SVGPointList:U,SVGPolygonElement:U,SVGPolylineElement:U,SVGPreserveAspectRatio:U,SVGRadialGradientElement:U,SVGRect:U,SVGRectElement:U,SVGScriptElement:U,SVGSetElement:U,SVGStopElement:U,SVGStringList:U,SVGStyleElement:U,SVGSVGElement:U,SVGSwitchElement:U,SVGSymbolElement:U,SVGTextContentElement:U,SVGTextElement:U,SVGTextPathElement:U,SVGTextPositioningElement:U,SVGTitleElement:U,SVGTransform:U,SVGTransformList:U,SVGTSpanElement:U,SVGUnitTypes:U,SVGUseElement:U,SVGViewElement:U,TaskAttributionTiming:U,Text:U,TextEvent:U,TextMetrics:U,TextTrack:U,TextTrackCue:U,TextTrackCueList:U,TextTrackList:U,TimeRanges:U,toolbar:l,top:l,Touch:U,TouchEvent:U,TouchList:U,TrackEvent:U,TransitionEvent:U,TreeWalker:U,UIEvent:U,ValidityState:U,visualViewport:l,VisualViewport:U,VTTCue:U,WaveShaperNode:U,WebAssembly:l,WebGL2RenderingContext:U,WebGLActiveInfo:U,WebGLBuffer:U,WebGLContextEvent:U,WebGLFramebuffer:U,WebGLProgram:U,WebGLQuery:U,WebGLRenderbuffer:U,WebGLRenderingContext:U,WebGLSampler:U,WebGLShader:U,WebGLShaderPrecisionFormat:U,WebGLSync:U,WebGLTexture:U,WebGLTransformFeedback:U,WebGLUniformLocation:U,WebGLVertexArrayObject:U,WebSocket:U,WheelEvent:U,Window:U,Worker:U,WritableStream:U,XMLDocument:U,XMLHttpRequest:U,XMLHttpRequestEventTarget:U,XMLHttpRequestUpload:U,XMLSerializer:U,XPathEvaluator:U,XPathExpression:U,XPathResult:U,XSLTProcessor:U};for(let Z of["window","global","self","globalThis"])e9[Z]=e9;o4=class o4 extends $8{constructor(){super(...arguments);this.isReassigned=!0}getLiteralValueAtPath(Z,J,q){return W4([this.name,...Z])?j2:x1}hasEffectsOnInteractionAtPath(Z,J,q){switch(J.type){case E1:if(Z.length===0)return this.name!=="undefined"&&!W4([this.name]);return!W4([this.name,...Z].slice(0,-1));case h5:return!0;case P1:{let Q=W4([this.name,...Z]);return!Q||Q.hasEffectsWhenCalled(J,q)}}}};oj={__proto__:null,class:!0,const:!0,let:!0,var:!0};l1=class l1 extends Z1{constructor(){super(...arguments);this.variable=null,this.isTDZAccess=null}addExportedVariables(Z,J){if(J.has(this.variable))Z.push(this.variable)}bind(){if(!this.variable&&x2(this,this.parent))this.variable=this.scope.findVariable(this.name),this.variable.addReference(this)}declare(Z,J){let q,{treeshake:Q}=this.context.options;switch(Z){case"var":if(q=this.scope.addDeclaration(this,this.context,J,!0),Q&&Q.correctVarValueBeforeDeclaration)q.markInitializersForDeoptimization();break;case"function":q=this.scope.addDeclaration(this,this.context,J,!1);break;case"let":case"const":case"class":q=this.scope.addDeclaration(this,this.context,J,!1);break;case"parameter":q=this.scope.addParameterDeclaration(this);break;default:throw Error(`Internal Error: Unexpected identifier kind ${Z}.`)}return q.kind=Z,[this.variable=q]}deoptimizePath(Z){var J;if(Z.length===0&&!this.scope.contains(this.name))this.disallowImportReassignment();(J=this.variable)===null||J===void 0||J.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.variable.deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){return this.getVariableRespectingTDZ().getLiteralValueAtPath(Z,J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){return this.getVariableRespectingTDZ().getReturnExpressionWhenCalledAtPath(Z,J,q,Q)}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();if(this.isPossibleTDZ()&&this.variable.kind!=="var")return!0;return this.context.options.treeshake.unknownGlobalSideEffects&&this.variable instanceof o4&&this.variable.hasEffectsOnInteractionAtPath($1,LZ,Z)}hasEffectsOnInteractionAtPath(Z,J,q){switch(J.type){case E1:return this.variable!==null&&this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(Z,J,q);case h5:return(Z.length>0?this.getVariableRespectingTDZ():this.variable).hasEffectsOnInteractionAtPath(Z,J,q);case P1:return this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(Z,J,q)}}include(){if(!this.deoptimized)this.applyDeoptimizations();if(!this.included){if(this.included=!0,this.variable!==null)this.context.includeVariableInModule(this.variable)}}includeCallArguments(Z,J){this.variable.includeCallArguments(Z,J)}isPossibleTDZ(){if(this.isTDZAccess!==null)return this.isTDZAccess;if(!(this.variable instanceof S5)||!this.variable.kind||!(this.variable.kind in oj))return this.isTDZAccess=!1;let Z;if(this.variable.declarations&&this.variable.declarations.length===1&&(Z=this.variable.declarations[0])&&this.start<Z.start&&TQ(this)===TQ(Z))return this.isTDZAccess=!0;if(!this.variable.initReached)return this.isTDZAccess=!0;return this.isTDZAccess=!1}markDeclarationReached(){this.variable.initReached=!0}render(Z,{snippets:{getPropertyAccess:J}},{renderedParentType:q,isCalleeOfRenderedParent:Q,isShorthandProperty:Y}=n1){if(this.variable){let X=this.variable.getName(J);if(X!==this.name){if(Z.overwrite(this.start,this.end,X,{contentOnly:!0,storeName:!0}),Y)Z.prependRight(this.start,`${this.name}: `)}if(X==="eval"&&q===_2&&Q)Z.appendRight(this.start,"0, ")}}applyDeoptimizations(){if(this.deoptimized=!0,this.variable instanceof S5)this.variable.consolidateInitializers(),this.context.requestTreeshakingPass()}disallowImportReassignment(){return this.context.error({code:"ILLEGAL_REASSIGNMENT",message:`Illegal reassignment to import '${this.name}'`},this.start)}getVariableRespectingTDZ(){if(this.isPossibleTDZ())return Y1;return this.variable}};A8={isNoStatement:!0};AQ=/\S/g;G8=class G8 extends P5{addDeclaration(Z,J,q,Q){if(Q){let Y=this.parent.addDeclaration(Z,J,q,Q);return Y.markInitializersForDeoptimization(),Y}else return super.addDeclaration(Z,J,q,!1)}};N0=class N0 extends Z1{initialise(){if(this.directive&&this.directive!=="use strict"&&this.parent.type===A4)this.context.warn({code:"MODULE_LEVEL_DIRECTIVE",message:`Module level directives cause errors when bundled, '${this.directive}' was ignored.`},this.start)}render(Z,J){if(super.render(Z,J),this.included)this.insertSemicolon(Z)}shouldBeIncluded(Z){if(this.directive&&this.directive!=="use strict")return this.parent.type!==A4;return super.shouldBeIncluded(Z)}applyDeoptimizations(){}};W0=class W0 extends Z1{constructor(){super(...arguments);this.directlyIncluded=!1}addImplicitReturnExpressionToScope(){let Z=this.body[this.body.length-1];if(!Z||Z.type!==hj)this.scope.addReturnExpression(Y1)}createScope(Z){this.scope=this.parent.preventChildBlockScope?Z:new G8(Z)}hasEffects(Z){if(this.deoptimizeBody)return!0;for(let J of this.body){if(Z.brokenFlow)break;if(J.hasEffects(Z))return!0}return!1}include(Z,J){if(!(this.deoptimizeBody&&this.directlyIncluded)){if(this.included=!0,this.directlyIncluded=!0,this.deoptimizeBody)J=!0;for(let q of this.body)if(J||q.shouldBeIncluded(Z))q.include(Z,J)}}initialise(){let Z=this.body[0];this.deoptimizeBody=Z instanceof N0&&Z.directive==="use asm"}render(Z,J){if(this.body.length)O0(this.body,Z,this.start+1,this.end-1,J);else super.render(Z,J)}};fZ=class fZ extends Z1{constructor(){super(...arguments);this.declarationInit=null}addExportedVariables(Z,J){this.argument.addExportedVariables(Z,J)}declare(Z,J){return this.declarationInit=J,this.argument.declare(Z,Y1)}deoptimizePath(Z){Z.length===0&&this.argument.deoptimizePath($1)}hasEffectsOnInteractionAtPath(Z,J,q){return Z.length>0||this.argument.hasEffectsOnInteractionAtPath($1,J,q)}markDeclarationReached(){this.argument.markDeclarationReached()}applyDeoptimizations(){if(this.deoptimized=!0,this.declarationInit!==null)this.declarationInit.deoptimizePath([d1,d1]),this.context.requestTreeshakingPass()}};e4=class e4 extends Z1{constructor(){super(...arguments);this.objectEntity=null,this.deoptimizedReturn=!1}deoptimizePath(Z){if(this.getObjectEntity().deoptimizePath(Z),Z.length===1&&Z[0]===d1)this.scope.getReturnExpression().deoptimizePath(D1)}deoptimizeThisOnInteractionAtPath(Z,J,q){if(J.length>0)this.getObjectEntity().deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){return this.getObjectEntity().getLiteralValueAtPath(Z,J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){if(Z.length>0)return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(Z,J,q,Q);if(this.async){if(!this.deoptimizedReturn)this.deoptimizedReturn=!0,this.scope.getReturnExpression().deoptimizePath(D1),this.context.requestTreeshakingPass();return Y1}return this.scope.getReturnExpression()}hasEffectsOnInteractionAtPath(Z,J,q){if(Z.length>0||J.type!==P1)return this.getObjectEntity().hasEffectsOnInteractionAtPath(Z,J,q);if(this.async){let{propertyReadSideEffects:Q}=this.context.options.treeshake,Y=this.scope.getReturnExpression();if(Y.hasEffectsOnInteractionAtPath(["then"],d4,q)||Q&&(Q==="always"||Y.hasEffectsOnInteractionAtPath(["then"],LZ,q)))return!0}for(let Q of this.params)if(Q.hasEffects(q))return!0;return!1}include(Z,J){if(!this.deoptimized)this.applyDeoptimizations();this.included=!0;let{brokenFlow:q}=Z;Z.brokenFlow=n4,this.body.include(Z,J),Z.brokenFlow=q}includeCallArguments(Z,J){this.scope.includeCallArguments(Z,J)}initialise(){if(this.scope.addParameterVariables(this.params.map((Z)=>Z.declare("parameter",Y1)),this.params[this.params.length-1]instanceof fZ),this.body instanceof W0)this.body.addImplicitReturnExpressionToScope();else this.scope.addReturnExpression(this.body)}parseNode(Z){if(Z.body.type===I2)this.body=new W0(Z.body,this,this.scope.hoistedBodyVarScope);super.parseNode(Z)}applyDeoptimizations(){}};e4.prototype.preventChildBlockScope=!0;vZ=class vZ extends e4{constructor(){super(...arguments);this.objectEntity=null}createScope(Z){this.scope=new xZ(Z,this.context)}hasEffects(){if(!this.deoptimized)this.applyDeoptimizations();return!1}hasEffectsOnInteractionAtPath(Z,J,q){if(super.hasEffectsOnInteractionAtPath(Z,J,q))return!0;if(J.type===P1){let{ignore:Q,brokenFlow:Y}=q;if(q.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0},this.body.hasEffects(q))return!0;q.ignore=Q,q.brokenFlow=Y}return!1}include(Z,J){super.include(Z,J);for(let q of this.params)if(!(q instanceof l1))q.include(Z,J)}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;return this.objectEntity=new V5([],Y8)}};gZ=class gZ extends Z1{addExportedVariables(Z,J){for(let q of this.properties)if(q.type===vj)q.value.addExportedVariables(Z,J);else q.argument.addExportedVariables(Z,J)}declare(Z,J){let q=[];for(let Q of this.properties)q.push(...Q.declare(Z,J));return q}deoptimizePath(Z){if(Z.length===0)for(let J of this.properties)J.deoptimizePath(Z)}hasEffectsOnInteractionAtPath(Z,J,q){for(let Q of this.properties)if(Q.hasEffectsOnInteractionAtPath($1,J,q))return!0;return!1}markDeclarationReached(){for(let Z of this.properties)Z.markDeclarationReached()}};h2=class h2 extends Z1{hasEffects(Z){let{deoptimized:J,left:q,right:Q}=this;if(!J)this.applyDeoptimizations();return Q.hasEffects(Z)||q.hasEffectsAsAssignmentTarget(Z,this.operator!=="=")}hasEffectsOnInteractionAtPath(Z,J,q){return this.right.hasEffectsOnInteractionAtPath(Z,J,q)}include(Z,J){let{deoptimized:q,left:Q,right:Y,operator:X}=this;if(!q)this.applyDeoptimizations();if(this.included=!0,J||X!=="="||Q.included||Q.hasEffectsAsAssignmentTarget(a4(),!1))Q.includeAsAssignmentTarget(Z,J,X!=="=");Y.include(Z,J)}initialise(){this.left.setAssignedValue(this.right)}render(Z,J,{preventASI:q,renderedParentType:Q,renderedSurroundingElement:Y}=n1){let{left:X,right:z,start:V,end:W,parent:K}=this;if(X.included)X.render(Z,J),z.render(Z,J);else{let $=W8(Z.original,o1(Z.original,"=",X.end)+1);if(Z.remove(V,$),q)t4(Z,$,z.start);z.render(Z,J,{renderedParentType:Q||K.type,renderedSurroundingElement:Y||K.type})}if(J.format==="system")if(X instanceof l1){let $=X.variable,H=J.exportNamesByVariable.get($);if(H){if(H.length===1)hZ($,V,W,Z,J);else v2($,V,W,K.type!==N5,Z,J);return}}else{let $=[];if(X.addExportedVariables($,J.exportNamesByVariable),$.length>0){tj($,V,W,Y===N5,Z,J);return}}if(X.included&&X instanceof gZ&&(Y===N5||Y===C2))Z.appendRight(V,"("),Z.prependLeft(W,")")}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath($1),this.right.deoptimizePath(D1),this.context.requestTreeshakingPass()}};g2=class g2 extends Z1{addExportedVariables(Z,J){this.left.addExportedVariables(Z,J)}declare(Z,J){return this.left.declare(Z,J)}deoptimizePath(Z){Z.length===0&&this.left.deoptimizePath(Z)}hasEffectsOnInteractionAtPath(Z,J,q){return Z.length>0||this.left.hasEffectsOnInteractionAtPath($1,J,q)}markDeclarationReached(){this.left.markDeclarationReached()}render(Z,J,{isShorthandProperty:q}=n1){this.left.render(Z,J,{isShorthandProperty:q}),this.right.render(Z,J)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath($1),this.right.deoptimizePath(D1),this.context.requestTreeshakingPass()}};m2=class m2 extends S5{constructor(Z){super("arguments",null,Y1,Z)}hasEffectsOnInteractionAtPath(Z,{type:J}){return J!==E1||Z.length>1}};mZ=class mZ extends S5{constructor(Z){super("this",null,null,Z);this.deoptimizedPaths=[],this.entitiesToBeDeoptimized=new Set,this.thisDeoptimizationList=[],this.thisDeoptimizations=new I4}addEntityToBeDeoptimized(Z){for(let J of this.deoptimizedPaths)Z.deoptimizePath(J);for(let{interaction:J,path:q}of this.thisDeoptimizationList)Z.deoptimizeThisOnInteractionAtPath(J,q,r1);this.entitiesToBeDeoptimized.add(Z)}deoptimizePath(Z){if(Z.length===0||this.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(Z,this))return;this.deoptimizedPaths.push(Z);for(let J of this.entitiesToBeDeoptimized)J.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J){let q={interaction:Z,path:J};if(!this.thisDeoptimizations.trackEntityAtPathAndGetIfTracked(J,Z.type,Z.thisArg)){for(let Q of this.entitiesToBeDeoptimized)Q.deoptimizeThisOnInteractionAtPath(Z,J,r1);this.thisDeoptimizationList.push(q)}}hasEffectsOnInteractionAtPath(Z,J,q){return this.getInit(q).hasEffectsOnInteractionAtPath(Z,J,q)||super.hasEffectsOnInteractionAtPath(Z,J,q)}getInit(Z){return Z.replacedVariableInits.get(this)||Y1}};u2=class u2 extends xZ{constructor(Z,J){super(Z,J);this.variables.set("arguments",this.argumentsVariable=new m2(J)),this.variables.set("this",this.thisVariable=new mZ(J))}findLexicalBoundary(){return this}includeCallArguments(Z,J){if(super.includeCallArguments(Z,J),this.argumentsVariable.included){for(let q of J)if(!q.included)q.include(Z,!1)}}};Z7=class Z7 extends e4{constructor(){super(...arguments);this.objectEntity=null}createScope(Z){this.scope=new u2(Z,this.context)}deoptimizeThisOnInteractionAtPath(Z,J,q){if(super.deoptimizeThisOnInteractionAtPath(Z,J,q),Z.type===P1&&J.length===0)this.scope.thisVariable.addEntityToBeDeoptimized(Z.thisArg)}hasEffects(Z){var J;if(!this.deoptimized)this.applyDeoptimizations();return!!((J=this.id)===null||J===void 0?void 0:J.hasEffects(Z))}hasEffectsOnInteractionAtPath(Z,J,q){if(super.hasEffectsOnInteractionAtPath(Z,J,q))return!0;if(J.type===P1){let Q=q.replacedVariableInits.get(this.scope.thisVariable);q.replacedVariableInits.set(this.scope.thisVariable,J.withNew?new V5(Object.create(null),Y8):Y1);let{brokenFlow:Y,ignore:X}=q;if(q.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0},this.body.hasEffects(q))return!0;if(q.brokenFlow=Y,Q)q.replacedVariableInits.set(this.scope.thisVariable,Q);else q.replacedVariableInits.delete(this.scope.thisVariable);q.ignore=X}return!1}include(Z,J){var q;super.include(Z,J),(q=this.id)===null||q===void 0||q.include();let Q=this.scope.argumentsVariable.included;for(let Y of this.params)if(!(Y instanceof l1)||Q)Y.include(Z,J)}initialise(){var Z;super.initialise(),(Z=this.id)===null||Z===void 0||Z.declare("function",this)}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;return this.objectEntity=new V5([{key:"prototype",kind:"init",property:new V5([],Y8)}],Y8)}};d2=class d2 extends Z1{hasEffects(){if(!this.deoptimized)this.applyDeoptimizations();return!0}include(Z,J){if(!this.deoptimized)this.applyDeoptimizations();if(!this.included){this.included=!0;Z:if(!this.context.usesTopLevelAwait){let q=this.parent;do if(q instanceof Z7||q instanceof vZ)break Z;while(q=q.parent);this.context.usesTopLevelAwait=!0}}this.argument.include(Z,J)}};ZB={"!=":(Z,J)=>Z!=J,"!==":(Z,J)=>Z!==J,"%":(Z,J)=>Z%J,"&":(Z,J)=>Z&J,"*":(Z,J)=>Z*J,"**":(Z,J)=>Z**J,"+":(Z,J)=>Z+J,"-":(Z,J)=>Z-J,"/":(Z,J)=>Z/J,"<":(Z,J)=>Z<J,"<<":(Z,J)=>Z<<J,"<=":(Z,J)=>Z<=J,"==":(Z,J)=>Z==J,"===":(Z,J)=>Z===J,">":(Z,J)=>Z>J,">=":(Z,J)=>Z>=J,">>":(Z,J)=>Z>>J,">>>":(Z,J)=>Z>>>J,"^":(Z,J)=>Z^J,"|":(Z,J)=>Z|J};l2=class l2 extends Z1{deoptimizeCache(){}getLiteralValueAtPath(Z,J,q){if(Z.length>0)return x1;let Q=this.left.getLiteralValueAtPath($1,J,q);if(typeof Q==="symbol")return x1;let Y=this.right.getLiteralValueAtPath($1,J,q);if(typeof Y==="symbol")return x1;let X=ZB[this.operator];if(!X)return x1;return X(Q,Y)}hasEffects(Z){if(this.operator==="+"&&this.parent instanceof N0&&this.left.getLiteralValueAtPath($1,r1,this)==="")return!0;return super.hasEffects(Z)}hasEffectsOnInteractionAtPath(Z,{type:J}){return J!==E1||Z.length>1}render(Z,J,{renderedSurroundingElement:q}=n1){this.left.render(Z,J,{renderedSurroundingElement:q}),this.right.render(Z,J)}};c2=class c2 extends Z1{hasEffects(Z){if(this.label){if(!Z.ignore.labels.has(this.label.name))return!0;Z.includedLabels.add(this.label.name),Z.brokenFlow=S8}else{if(!Z.ignore.breaks)return!0;Z.brokenFlow=X6}return!1}include(Z){if(this.included=!0,this.label)this.label.include(),Z.includedLabels.add(this.label.name);Z.brokenFlow=this.label?S8:X6}};V6=class V6 extends Z1{deoptimizeThisOnInteractionAtPath(){}getLiteralValueAtPath(Z){if(Z.length>0||this.value===null&&this.context.code.charCodeAt(this.start)!==110||typeof this.value==="bigint"||this.context.code.charCodeAt(this.start)===47)return x1;return this.value}getReturnExpressionWhenCalledAtPath(Z){if(Z.length!==1)return Y1;return w0(this.members,Z[0])}hasEffectsOnInteractionAtPath(Z,J,q){switch(J.type){case E1:return Z.length>(this.value===null?0:1);case h5:return!0;case P1:return Z.length!==1||L0(this.members,Z[0],J,q)}}initialise(){this.members=Pj(this.value)}parseNode(Z){this.value=Z.value,this.regex=Z.regex,super.parseNode(Z)}render(Z){if(typeof this.value==="string")Z.indentExclusionRanges.push([this.start+1,this.end-1])}};y8=class y8 extends Z1{constructor(){super(...arguments);this.variable=null,this.assignmentDeoptimized=!1,this.bound=!1,this.expressionsToBeDeoptimized=[],this.replacement=null}bind(){this.bound=!0;let Z=i2(this),J=Z&&this.scope.findVariable(Z[0].key);if(J&&J.isNamespace){let q=n2(J,Z.slice(1),this.context);if(!q)super.bind();else if(typeof q==="string")this.replacement=q;else this.variable=q,this.scope.addNamespaceMemberAccess(QB(Z),q)}else super.bind()}deoptimizeCache(){let Z=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[],this.propertyKey=d1,this.object.deoptimizePath(D1);for(let J of Z)J.deoptimizeCache()}deoptimizePath(Z){if(Z.length===0)this.disallowNamespaceReassignment();if(this.variable)this.variable.deoptimizePath(Z);else if(!this.replacement){if(Z.length<i6){let J=this.getPropertyKey();this.object.deoptimizePath([J===d1?C4:J,...Z])}}}deoptimizeThisOnInteractionAtPath(Z,J,q){if(this.variable)this.variable.deoptimizeThisOnInteractionAtPath(Z,J,q);else if(!this.replacement)if(J.length<i6)this.object.deoptimizeThisOnInteractionAtPath(Z,[this.getPropertyKey(),...J],q);else Z.thisArg.deoptimizePath(D1)}getLiteralValueAtPath(Z,J,q){if(this.variable)return this.variable.getLiteralValueAtPath(Z,J,q);if(this.replacement)return x1;if(this.expressionsToBeDeoptimized.push(q),Z.length<i6)return this.object.getLiteralValueAtPath([this.getPropertyKey(),...Z],J,q);return x1}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){if(this.variable)return this.variable.getReturnExpressionWhenCalledAtPath(Z,J,q,Q);if(this.replacement)return Y1;if(this.expressionsToBeDeoptimized.push(Q),Z.length<i6)return this.object.getReturnExpressionWhenCalledAtPath([this.getPropertyKey(),...Z],J,q,Q);return Y1}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();return this.property.hasEffects(Z)||this.object.hasEffects(Z)||this.hasAccessEffect(Z)}hasEffectsAsAssignmentTarget(Z,J){if(J&&!this.deoptimized)this.applyDeoptimizations();if(!this.assignmentDeoptimized)this.applyAssignmentDeoptimization();return this.property.hasEffects(Z)||this.object.hasEffects(Z)||J&&this.hasAccessEffect(Z)||this.hasEffectsOnInteractionAtPath($1,this.assignmentInteraction,Z)}hasEffectsOnInteractionAtPath(Z,J,q){if(this.variable)return this.variable.hasEffectsOnInteractionAtPath(Z,J,q);if(this.replacement)return!0;if(Z.length<i6)return this.object.hasEffectsOnInteractionAtPath([this.getPropertyKey(),...Z],J,q);return!0}include(Z,J){if(!this.deoptimized)this.applyDeoptimizations();this.includeProperties(Z,J)}includeAsAssignmentTarget(Z,J,q){if(!this.assignmentDeoptimized)this.applyAssignmentDeoptimization();if(q)this.include(Z,J);else this.includeProperties(Z,J)}includeCallArguments(Z,J){if(this.variable)this.variable.includeCallArguments(Z,J);else super.includeCallArguments(Z,J)}initialise(){this.propertyKey=JB(this),this.accessInteraction={thisArg:this.object,type:E1}}render(Z,J,{renderedParentType:q,isCalleeOfRenderedParent:Q,renderedSurroundingElement:Y}=n1){if(this.variable||this.replacement){let{snippets:{getPropertyAccess:X}}=J,z=this.variable?this.variable.getName(X):this.replacement;if(q&&Q)z="0, "+z;Z.overwrite(this.start,this.end,z,{contentOnly:!0,storeName:!0})}else{if(q&&Q)Z.appendRight(this.start,"0, ");this.object.render(Z,J,{renderedSurroundingElement:Y}),this.property.render(Z,J)}}setAssignedValue(Z){this.assignmentInteraction={args:[Z],thisArg:this.object,type:h5}}applyDeoptimizations(){this.deoptimized=!0;let{propertyReadSideEffects:Z}=this.context.options.treeshake;if(this.bound&&Z&&!(this.variable||this.replacement)){let J=this.getPropertyKey();this.object.deoptimizeThisOnInteractionAtPath(this.accessInteraction,[J],r1),this.context.requestTreeshakingPass()}}applyAssignmentDeoptimization(){this.assignmentDeoptimized=!0;let{propertyReadSideEffects:Z}=this.context.options.treeshake;if(this.bound&&Z&&!(this.variable||this.replacement))this.object.deoptimizeThisOnInteractionAtPath(this.assignmentInteraction,[this.getPropertyKey()],r1),this.context.requestTreeshakingPass()}disallowNamespaceReassignment(){if(this.object instanceof l1){if(this.scope.findVariable(this.object.name).isNamespace){if(this.variable)this.context.includeVariableInModule(this.variable);this.context.warn({code:"ILLEGAL_NAMESPACE_REASSIGNMENT",message:`Illegal reassignment to import '${this.object.name}'`},this.start)}}}getPropertyKey(){if(this.propertyKey===null){this.propertyKey=d1;let Z=this.property.getLiteralValueAtPath($1,r1,this);return this.propertyKey=typeof Z==="symbol"?d1:String(Z)}return this.propertyKey}hasAccessEffect(Z){let{propertyReadSideEffects:J}=this.context.options.treeshake;return!(this.variable||this.replacement)&&J&&(J==="always"||this.object.hasEffectsOnInteractionAtPath([this.getPropertyKey()],this.accessInteraction,Z))}includeProperties(Z,J){if(!this.included){if(this.included=!0,this.variable)this.context.includeVariableInModule(this.variable)}this.object.include(Z,J),this.property.include(Z,J)}};uZ=class uZ extends Z1{constructor(){super(...arguments);this.returnExpression=null,this.deoptimizableDependentExpressions=[],this.expressionsToBeDeoptimized=new Set}deoptimizeCache(){if(this.returnExpression!==Y1){this.returnExpression=Y1;for(let Z of this.deoptimizableDependentExpressions)Z.deoptimizeCache();for(let Z of this.expressionsToBeDeoptimized)Z.deoptimizePath(D1)}}deoptimizePath(Z){if(Z.length===0||this.context.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(Z,this))return;let J=this.getReturnExpression();if(J!==Y1)J.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){let Q=this.getReturnExpression(q);if(Q===Y1)Z.thisArg.deoptimizePath(D1);else q.withTrackedEntityAtPath(J,Q,()=>{this.expressionsToBeDeoptimized.add(Z.thisArg),Q.deoptimizeThisOnInteractionAtPath(Z,J,q)},void 0)}getLiteralValueAtPath(Z,J,q){let Q=this.getReturnExpression(J);if(Q===Y1)return x1;return J.withTrackedEntityAtPath(Z,Q,()=>{return this.deoptimizableDependentExpressions.push(q),Q.getLiteralValueAtPath(Z,J,q)},x1)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){let Y=this.getReturnExpression(q);if(this.returnExpression===Y1)return Y1;return q.withTrackedEntityAtPath(Z,Y,()=>{return this.deoptimizableDependentExpressions.push(Q),Y.getReturnExpressionWhenCalledAtPath(Z,J,q,Q)},Y1)}hasEffectsOnInteractionAtPath(Z,J,q){let{type:Q}=J;if(Q===P1){if((J.withNew?q.instantiated:q.called).trackEntityAtPathAndGetIfTracked(Z,J.args,this))return!1}else if((Q===h5?q.assigned:q.accessed).trackEntityAtPathAndGetIfTracked(Z,this))return!1;return this.getReturnExpression().hasEffectsOnInteractionAtPath(Z,J,q)}};a2=class a2 extends uZ{bind(){if(super.bind(),this.callee instanceof l1){if(this.scope.findVariable(this.callee.name).isNamespace)this.context.warn({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${this.callee.name}')`},this.start);if(this.callee.name==="eval")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)}this.interaction={args:this.arguments,thisArg:this.callee instanceof y8&&!this.callee.variable?this.callee.object:null,type:P1,withNew:!1}}hasEffects(Z){try{for(let J of this.arguments)if(J.hasEffects(Z))return!0;if(this.context.options.treeshake.annotations&&this.annotations)return!1;return this.callee.hasEffects(Z)||this.callee.hasEffectsOnInteractionAtPath($1,this.interaction,Z)}finally{if(!this.deoptimized)this.applyDeoptimizations()}}include(Z,J){if(!this.deoptimized)this.applyDeoptimizations();if(J){if(super.include(Z,J),J===S2&&this.callee instanceof l1&&this.callee.variable)this.callee.variable.markCalledFromTryStatement()}else this.included=!0,this.callee.include(Z,!1);this.callee.includeCallArguments(Z,this.arguments)}render(Z,J,{renderedSurroundingElement:q}=n1){this.callee.render(Z,J,{isCalleeOfRenderedParent:!0,renderedSurroundingElement:q}),p2(Z,J,this)}applyDeoptimizations(){if(this.deoptimized=!0,this.interaction.thisArg)this.callee.deoptimizeThisOnInteractionAtPath(this.interaction,$1,r1);for(let Z of this.arguments)Z.deoptimizePath(D1);this.context.requestTreeshakingPass()}getReturnExpression(Z=r1){if(this.returnExpression===null)return this.returnExpression=Y1,this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath($1,this.interaction,Z,this);return this.returnExpression}};s2=class s2 extends bZ{addDeclaration(Z,J,q,Q){let Y=this.variables.get(Z.name);if(Y)return this.parent.addDeclaration(Z,J,F0,Q),Y.addDeclaration(Z,q),Y;return this.parent.addDeclaration(Z,J,q,Q)}};r2=class r2 extends Z1{createScope(Z){this.scope=new s2(Z,this.context)}parseNode(Z){let{param:J}=Z;if(J)this.param=new(this.context.getNodeConstructor(J.type))(J,this,this.scope),this.param.declare("parameter",Y1);super.parseNode(Z)}};o2=class o2 extends Z1{};t2=class t2 extends P5{constructor(Z,J,q){super(Z);this.variables.set("this",this.thisVariable=new S5("this",null,J,q)),this.instanceScope=new P5(this),this.instanceScope.variables.set("this",new mZ(q))}findLexicalBoundary(){return this}};e2=class e2 extends Z1{createScope(Z){this.scope=new t2(Z,this.parent,this.context)}include(Z,J){this.included=!0,this.context.includeVariableInModule(this.scope.thisVariable);for(let q of this.body)q.include(Z,J)}parseNode(Z){let J=this.body=[];for(let q of Z.body)J.push(new(this.context.getNodeConstructor(q.type))(q,this,q.static?this.scope:this.scope.instanceScope));super.parseNode(Z)}applyDeoptimizations(){}};dZ=class dZ extends Z1{constructor(){super(...arguments);this.accessedValue=null}deoptimizeCache(){}deoptimizePath(Z){this.getAccessedValue().deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){if(Z.type===E1&&this.kind==="get"&&J.length===0)return this.value.deoptimizeThisOnInteractionAtPath({args:p9,thisArg:Z.thisArg,type:P1,withNew:!1},$1,q);if(Z.type===h5&&this.kind==="set"&&J.length===0)return this.value.deoptimizeThisOnInteractionAtPath({args:Z.args,thisArg:Z.thisArg,type:P1,withNew:!1},$1,q);this.getAccessedValue().deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){return this.getAccessedValue().getLiteralValueAtPath(Z,J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){return this.getAccessedValue().getReturnExpressionWhenCalledAtPath(Z,J,q,Q)}hasEffects(Z){return this.key.hasEffects(Z)}hasEffectsOnInteractionAtPath(Z,J,q){if(this.kind==="get"&&J.type===E1&&Z.length===0)return this.value.hasEffectsOnInteractionAtPath($1,{args:p9,thisArg:J.thisArg,type:P1,withNew:!1},q);if(this.kind==="set"&&J.type===h5)return this.value.hasEffectsOnInteractionAtPath($1,{args:J.args,thisArg:J.thisArg,type:P1,withNew:!1},q);return this.getAccessedValue().hasEffectsOnInteractionAtPath(Z,J,q)}applyDeoptimizations(){}getAccessedValue(){if(this.accessedValue===null)if(this.kind==="get")return this.accessedValue=Y1,this.accessedValue=this.value.getReturnExpressionWhenCalledAtPath($1,d4,r1,this);else return this.accessedValue=this.value;return this.accessedValue}};y4=class y4 extends dZ{applyDeoptimizations(){}};ZY=class ZY extends B5{constructor(Z,J){super();this.object=Z,this.key=J}deoptimizePath(Z){this.object.deoptimizePath([this.key,...Z])}deoptimizeThisOnInteractionAtPath(Z,J,q){this.object.deoptimizeThisOnInteractionAtPath(Z,[this.key,...J],q)}getLiteralValueAtPath(Z,J,q){return this.object.getLiteralValueAtPath([this.key,...Z],J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){return this.object.getReturnExpressionWhenCalledAtPath([this.key,...Z],J,q,Q)}hasEffectsOnInteractionAtPath(Z,J,q){return this.object.hasEffectsOnInteractionAtPath([this.key,...Z],J,q)}};lZ=class lZ extends Z1{constructor(){super(...arguments);this.objectEntity=null}createScope(Z){this.scope=new P5(Z)}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(Z){this.getObjectEntity().deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.getObjectEntity().deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){return this.getObjectEntity().getLiteralValueAtPath(Z,J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(Z,J,q,Q)}hasEffects(Z){var J,q;if(!this.deoptimized)this.applyDeoptimizations();let Q=((J=this.superClass)===null||J===void 0?void 0:J.hasEffects(Z))||this.body.hasEffects(Z);return(q=this.id)===null||q===void 0||q.markDeclarationReached(),Q||super.hasEffects(Z)}hasEffectsOnInteractionAtPath(Z,J,q){var Q;if(J.type===P1&&Z.length===0)return!J.withNew||(this.classConstructor!==null?this.classConstructor.hasEffectsOnInteractionAtPath(Z,J,q):(Q=this.superClass)===null||Q===void 0?void 0:Q.hasEffectsOnInteractionAtPath(Z,J,q))||!1;else return this.getObjectEntity().hasEffectsOnInteractionAtPath(Z,J,q)}include(Z,J){var q;if(!this.deoptimized)this.applyDeoptimizations();if(this.included=!0,(q=this.superClass)===null||q===void 0||q.include(Z,J),this.body.include(Z,J),this.id)this.id.markDeclarationReached(),this.id.include()}initialise(){var Z;(Z=this.id)===null||Z===void 0||Z.declare("class",this);for(let J of this.body.body)if(J instanceof y4&&J.kind==="constructor"){this.classConstructor=J;return}this.classConstructor=null}applyDeoptimizations(){this.deoptimized=!0;for(let Z of this.body.body)if(!(Z.static||Z instanceof y4&&Z.kind==="constructor"))Z.deoptimizePath(D1);this.context.requestTreeshakingPass()}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let Z=[],J=[];for(let q of this.body.body){let Q=q.static?Z:J,Y=q.kind;if(Q===J&&!Y)continue;let X=Y==="set"||Y==="get"?Y:"init",z;if(q.computed){let V=q.key.getLiteralValueAtPath($1,r1,this);if(typeof V==="symbol"){Q.push({key:d1,kind:X,property:q});continue}else z=String(V)}else z=q.key instanceof l1?q.key.name:String(q.key.value);Q.push({key:z,kind:X,property:q})}return Z.unshift({key:"prototype",kind:"init",property:new V5(J,this.superClass?new ZY(this.superClass,"prototype"):Y8)}),this.objectEntity=new V5(Z,this.superClass||Y8)}};K0=class K0 extends lZ{initialise(){if(super.initialise(),this.id!==null)this.id.variable.isId=!0}parseNode(Z){if(Z.id!==null)this.id=new l1(Z.id,this,this.scope.parent);super.parseNode(Z)}render(Z,J){let{exportNamesByVariable:q,format:Q,snippets:{_:Y}}=J;if(Q==="system"&&this.id&&q.has(this.id.variable))Z.appendLeft(this.end,`${Y}${b8([this.id.variable],J)};`);super.render(Z,J)}};JY=class JY extends lZ{render(Z,J,{renderedSurroundingElement:q}=n1){if(super.render(Z,J),q===N5)Z.appendRight(this.start,"("),Z.prependLeft(this.end,")")}};J7=class J7 extends B5{constructor(Z){super();this.expressions=Z,this.included=!1}deoptimizePath(Z){for(let J of this.expressions)J.deoptimizePath(Z)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){return new J7(this.expressions.map((Y)=>Y.getReturnExpressionWhenCalledAtPath(Z,J,q,Q)))}hasEffectsOnInteractionAtPath(Z,J,q){for(let Q of this.expressions)if(Q.hasEffectsOnInteractionAtPath(Z,J,q))return!0;return!1}};qY=class qY extends Z1{constructor(){super(...arguments);this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.usedBranch=null}deoptimizeCache(){if(this.usedBranch!==null){let Z=this.usedBranch===this.consequent?this.alternate:this.consequent;this.usedBranch=null,Z.deoptimizePath(D1);for(let J of this.expressionsToBeDeoptimized)J.deoptimizeCache()}}deoptimizePath(Z){let J=this.getUsedBranch();if(!J)this.consequent.deoptimizePath(Z),this.alternate.deoptimizePath(Z);else J.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.consequent.deoptimizeThisOnInteractionAtPath(Z,J,q),this.alternate.deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){let Q=this.getUsedBranch();if(!Q)return x1;return this.expressionsToBeDeoptimized.push(q),Q.getLiteralValueAtPath(Z,J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){let Y=this.getUsedBranch();if(!Y)return new J7([this.consequent.getReturnExpressionWhenCalledAtPath(Z,J,q,Q),this.alternate.getReturnExpressionWhenCalledAtPath(Z,J,q,Q)]);return this.expressionsToBeDeoptimized.push(Q),Y.getReturnExpressionWhenCalledAtPath(Z,J,q,Q)}hasEffects(Z){if(this.test.hasEffects(Z))return!0;let J=this.getUsedBranch();if(!J)return this.consequent.hasEffects(Z)||this.alternate.hasEffects(Z);return J.hasEffects(Z)}hasEffectsOnInteractionAtPath(Z,J,q){let Q=this.getUsedBranch();if(!Q)return this.consequent.hasEffectsOnInteractionAtPath(Z,J,q)||this.alternate.hasEffectsOnInteractionAtPath(Z,J,q);return Q.hasEffectsOnInteractionAtPath(Z,J,q)}include(Z,J){this.included=!0;let q=this.getUsedBranch();if(J||this.test.shouldBeIncluded(Z)||q===null)this.test.include(Z,J),this.consequent.include(Z,J),this.alternate.include(Z,J);else q.include(Z,J)}includeCallArguments(Z,J){let q=this.getUsedBranch();if(!q)this.consequent.includeCallArguments(Z,J),this.alternate.includeCallArguments(Z,J);else q.includeCallArguments(Z,J)}render(Z,J,{isCalleeOfRenderedParent:q,preventASI:Q,renderedParentType:Y,renderedSurroundingElement:X}=n1){let z=this.getUsedBranch();if(!this.test.included){let V=o1(Z.original,":",this.consequent.end),W=W8(Z.original,(this.consequent.included?o1(Z.original,"?",this.test.end):V)+1);if(Q)t4(Z,W,z.start);if(Z.remove(this.start,W),this.consequent.included)Z.remove(V,this.end);k2(this,Z),z.render(Z,J,{isCalleeOfRenderedParent:q,preventASI:!0,renderedParentType:Y||this.parent.type,renderedSurroundingElement:X||this.parent.type})}else this.test.render(Z,J,{renderedSurroundingElement:X}),this.consequent.render(Z,J),this.alternate.render(Z,J)}getUsedBranch(){if(this.isBranchResolutionAnalysed)return this.usedBranch;this.isBranchResolutionAnalysed=!0;let Z=this.test.getLiteralValueAtPath($1,r1,this);return typeof Z==="symbol"?null:this.usedBranch=Z?this.consequent:this.alternate}};QY=class QY extends Z1{hasEffects(Z){if(this.label){if(!Z.ignore.labels.has(this.label.name))return!0;Z.includedLabels.add(this.label.name),Z.brokenFlow=S8}else{if(!Z.ignore.continues)return!0;Z.brokenFlow=X6}return!1}include(Z){if(this.included=!0,this.label)this.label.include(),Z.includedLabels.add(this.label.name);Z.brokenFlow=this.label?S8:X6}};YY=class YY extends Z1{hasEffects(Z){if(this.test.hasEffects(Z))return!0;let{brokenFlow:J,ignore:{breaks:q,continues:Q}}=Z;if(Z.ignore.breaks=!0,Z.ignore.continues=!0,this.body.hasEffects(Z))return!0;return Z.ignore.breaks=q,Z.ignore.continues=Q,Z.brokenFlow=J,!1}include(Z,J){this.included=!0,this.test.include(Z,J);let{brokenFlow:q}=Z;this.body.include(Z,J,{asSingleStatement:!0}),Z.brokenFlow=q}};XY=class XY extends Z1{hasEffects(){return!1}};q7=class q7 extends Z1{hasEffects(){return!1}initialise(){this.context.addExport(this)}render(Z,J,q){Z.remove(q.start,q.end)}applyDeoptimizations(){}};q7.prototype.needsBoundaries=!0;W6=class W6 extends Z7{initialise(){if(super.initialise(),this.id!==null)this.id.variable.isId=!0}parseNode(Z){if(Z.id!==null)this.id=new l1(Z.id,this,this.scope.parent);super.parseNode(Z)}};R0=class R0 extends Z1{include(Z,J){if(super.include(Z,J),J)this.context.includeVariableInModule(this.variable)}initialise(){let Z=this.declaration;this.declarationName=Z.id&&Z.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this.declarationName||this.context.getModuleName(),this,this.context),this.context.addExport(this)}render(Z,J,q){let{start:Q,end:Y}=q,X=YB(Z.original,this.start);if(this.declaration instanceof W6)this.renderNamedDeclaration(Z,X,"function","(",this.declaration.id===null,J);else if(this.declaration instanceof K0)this.renderNamedDeclaration(Z,X,"class","{",this.declaration.id===null,J);else if(this.variable.getOriginalVariable()!==this.variable){kZ(this,Z,Q,Y);return}else if(this.variable.included)this.renderVariableDeclaration(Z,X,J);else{if(Z.remove(this.start,X),this.declaration.render(Z,J,{renderedSurroundingElement:N5}),Z.original[this.end-1]!==";")Z.appendLeft(this.end,";");return}this.declaration.render(Z,J)}applyDeoptimizations(){}renderNamedDeclaration(Z,J,q,Q,Y,X){let{exportNamesByVariable:z,format:V,snippets:{getPropertyAccess:W}}=X,K=this.variable.getName(W);if(Z.remove(this.start,J),Y)Z.appendLeft(XB(Z.original,q,Q,J),` ${K}`);if(V==="system"&&this.declaration instanceof K0&&z.has(this.variable))Z.appendLeft(this.end,` ${b8([this.variable],X)};`)}renderVariableDeclaration(Z,J,{format:q,exportNamesByVariable:Q,snippets:{cnst:Y,getPropertyAccess:X}}){let z=Z.original.charCodeAt(this.end-1)===59,V=q==="system"&&Q.get(this.variable);if(V)Z.overwrite(this.start,J,`${Y} ${this.variable.getName(X)} = exports('${V[0]}', `),Z.appendRight(z?this.end-1:this.end,")"+(z?"":";"));else if(Z.overwrite(this.start,J,`${Y} ${this.variable.getName(X)} = `),!z)Z.appendLeft(this.end,";")}};R0.prototype.needsBoundaries=!0;cZ=class cZ extends Z1{bind(){var Z;(Z=this.declaration)===null||Z===void 0||Z.bind()}hasEffects(Z){var J;return!!((J=this.declaration)===null||J===void 0?void 0:J.hasEffects(Z))}initialise(){this.context.addExport(this)}render(Z,J,q){let{start:Q,end:Y}=q;if(this.declaration===null)Z.remove(Q,Y);else Z.remove(this.start,this.declaration.start),this.declaration.render(Z,J,{end:Y,start:Q})}applyDeoptimizations(){}};cZ.prototype.needsBoundaries=!0;zY=class zY extends Z1{applyDeoptimizations(){}};VY=class VY extends Z1{createScope(Z){this.scope=new G8(Z)}hasEffects(Z){let{deoptimized:J,left:q,right:Q}=this;if(!J)this.applyDeoptimizations();if(q.hasEffectsAsAssignmentTarget(Z,!1)||Q.hasEffects(Z))return!0;let{brokenFlow:Y,ignore:{breaks:X,continues:z}}=Z;if(Z.ignore.breaks=!0,Z.ignore.continues=!0,this.body.hasEffects(Z))return!0;return Z.ignore.breaks=X,Z.ignore.continues=z,Z.brokenFlow=Y,!1}include(Z,J){let{body:q,deoptimized:Q,left:Y,right:X}=this;if(!Q)this.applyDeoptimizations();this.included=!0,Y.includeAsAssignmentTarget(Z,J||!0,!1),X.include(Z,J);let{brokenFlow:z}=Z;q.include(Z,J,{asSingleStatement:!0}),Z.brokenFlow=z}initialise(){this.left.setAssignedValue(Y1)}render(Z,J){if(this.left.render(Z,J,A8),this.right.render(Z,J,A8),Z.original.charCodeAt(this.right.start-1)===110)Z.prependLeft(this.right.start," ");this.body.render(Z,J)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath($1),this.context.requestTreeshakingPass()}};WY=class WY extends Z1{createScope(Z){this.scope=new G8(Z)}hasEffects(){if(!this.deoptimized)this.applyDeoptimizations();return!0}include(Z,J){let{body:q,deoptimized:Q,left:Y,right:X}=this;if(!Q)this.applyDeoptimizations();this.included=!0,Y.includeAsAssignmentTarget(Z,J||!0,!1),X.include(Z,J);let{brokenFlow:z}=Z;q.include(Z,J,{asSingleStatement:!0}),Z.brokenFlow=z}initialise(){this.left.setAssignedValue(Y1)}render(Z,J){if(this.left.render(Z,J,A8),this.right.render(Z,J,A8),Z.original.charCodeAt(this.right.start-1)===102)Z.prependLeft(this.right.start," ");this.body.render(Z,J)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath($1),this.context.requestTreeshakingPass()}};KY=class KY extends Z1{createScope(Z){this.scope=new G8(Z)}hasEffects(Z){var J,q,Q;if(((J=this.init)===null||J===void 0?void 0:J.hasEffects(Z))||((q=this.test)===null||q===void 0?void 0:q.hasEffects(Z))||((Q=this.update)===null||Q===void 0?void 0:Q.hasEffects(Z)))return!0;let{brokenFlow:Y,ignore:{breaks:X,continues:z}}=Z;if(Z.ignore.breaks=!0,Z.ignore.continues=!0,this.body.hasEffects(Z))return!0;return Z.ignore.breaks=X,Z.ignore.continues=z,Z.brokenFlow=Y,!1}include(Z,J){var q,Q,Y;this.included=!0,(q=this.init)===null||q===void 0||q.include(Z,J,{asSingleStatement:!0}),(Q=this.test)===null||Q===void 0||Q.include(Z,J);let{brokenFlow:X}=Z;(Y=this.update)===null||Y===void 0||Y.include(Z,J),this.body.include(Z,J,{asSingleStatement:!0}),Z.brokenFlow=X}render(Z,J){var q,Q,Y;(q=this.init)===null||q===void 0||q.render(Z,J,A8),(Q=this.test)===null||Q===void 0||Q.render(Z,J,A8),(Y=this.update)===null||Y===void 0||Y.render(Z,J,A8),this.body.render(Z,J)}};$Y=class $Y extends Z7{render(Z,J,{renderedSurroundingElement:q}=n1){if(super.render(Z,J),q===N5)Z.appendRight(this.start,"("),Z.prependLeft(this.end,")")}};ZZ=class ZZ extends G8{constructor(){super(...arguments);this.hoistedDeclarations=[]}addDeclaration(Z,J,q,Q){return this.hoistedDeclarations.push(Z),super.addDeclaration(Z,J,q,Q)}};PQ=Symbol("unset");pZ=class pZ extends Z1{constructor(){super(...arguments);this.testValue=PQ}deoptimizeCache(){this.testValue=x1}hasEffects(Z){var J;if(this.test.hasEffects(Z))return!0;let q=this.getTestValue();if(typeof q==="symbol"){let{brokenFlow:Q}=Z;if(this.consequent.hasEffects(Z))return!0;let Y=Z.brokenFlow;if(Z.brokenFlow=Q,this.alternate===null)return!1;if(this.alternate.hasEffects(Z))return!0;return Z.brokenFlow=Z.brokenFlow<Y?Z.brokenFlow:Y,!1}return q?this.consequent.hasEffects(Z):!!((J=this.alternate)===null||J===void 0?void 0:J.hasEffects(Z))}include(Z,J){if(this.included=!0,J)this.includeRecursively(J,Z);else{let q=this.getTestValue();if(typeof q==="symbol")this.includeUnknownTest(Z);else this.includeKnownTest(Z,q)}}parseNode(Z){if(this.consequentScope=new ZZ(this.scope),this.consequent=new(this.context.getNodeConstructor(Z.consequent.type))(Z.consequent,this,this.consequentScope),Z.alternate)this.alternateScope=new ZZ(this.scope),this.alternate=new(this.context.getNodeConstructor(Z.alternate.type))(Z.alternate,this,this.alternateScope);super.parseNode(Z)}render(Z,J){let{snippets:{getPropertyAccess:q}}=J,Q=this.getTestValue(),Y=[],X=this.test.included,z=!this.context.options.treeshake;if(X)this.test.render(Z,J);else Z.remove(this.start,this.consequent.start);if(this.consequent.included&&(z||typeof Q==="symbol"||Q))this.consequent.render(Z,J);else Z.overwrite(this.consequent.start,this.consequent.end,X?";":""),Y.push(...this.consequentScope.hoistedDeclarations);if(this.alternate)if(this.alternate.included&&(z||typeof Q==="symbol"||!Q)){if(X){if(Z.original.charCodeAt(this.alternate.start-1)===101)Z.prependLeft(this.alternate.start," ")}else Z.remove(this.consequent.end,this.alternate.start);this.alternate.render(Z,J)}else{if(X&&this.shouldKeepAlternateBranch())Z.overwrite(this.alternate.start,this.end,";");else Z.remove(this.consequent.end,this.end);Y.push(...this.alternateScope.hoistedDeclarations)}this.renderHoistedDeclarations(Y,Z,q)}applyDeoptimizations(){}getTestValue(){if(this.testValue===PQ)return this.testValue=this.test.getLiteralValueAtPath($1,r1,this);return this.testValue}includeKnownTest(Z,J){var q;if(this.test.shouldBeIncluded(Z))this.test.include(Z,!1);if(J&&this.consequent.shouldBeIncluded(Z))this.consequent.include(Z,!1,{asSingleStatement:!0});if(!J&&((q=this.alternate)===null||q===void 0?void 0:q.shouldBeIncluded(Z)))this.alternate.include(Z,!1,{asSingleStatement:!0})}includeRecursively(Z,J){var q;this.test.include(J,Z),this.consequent.include(J,Z),(q=this.alternate)===null||q===void 0||q.include(J,Z)}includeUnknownTest(Z){var J;this.test.include(Z,!1);let{brokenFlow:q}=Z,Q=n4;if(this.consequent.shouldBeIncluded(Z))this.consequent.include(Z,!1,{asSingleStatement:!0}),Q=Z.brokenFlow,Z.brokenFlow=q;if((J=this.alternate)===null||J===void 0?void 0:J.shouldBeIncluded(Z))this.alternate.include(Z,!1,{asSingleStatement:!0}),Z.brokenFlow=Z.brokenFlow<Q?Z.brokenFlow:Q}renderHoistedDeclarations(Z,J,q){let Q=[...new Set(Z.map((Y)=>{let X=Y.variable;return X.included?X.getName(q):""}))].filter(Boolean).join(", ");if(Q){let Y=this.parent.type,X=Y!==A4&&Y!==I2;if(J.prependRight(this.start,`${X?"{ ":""}var ${Q}; `),X)J.appendLeft(this.end," }")}}shouldKeepAlternateBranch(){let Z=this.parent;do{if(Z instanceof pZ&&Z.alternate)return!0;if(Z instanceof W0)return!1;Z=Z.parent}while(Z);return!1}};iZ=class iZ extends Z1{bind(){}hasEffects(){return!1}initialise(){this.context.addImport(this)}render(Z,J,q){Z.remove(q.start,q.end)}applyDeoptimizations(){}};iZ.prototype.needsBoundaries=!0;GY=class GY extends Z1{applyDeoptimizations(){}};C0={auto:E4,default:null,defaultOnly:null,esModule:null,false:null,true:JZ},I0={auto:e6,default:s6,defaultOnly:$0,esModule:null,false:null,true:e6},UY={[JZ](Z,J,q){let{_:Q,getDirectReturnFunction:Y,n:X}=J,[z,V]=Y(["e"],{functionReturn:!0,lineBreakIndent:null,name:JZ});return`${z}e${Q}&&${Q}typeof e${Q}===${Q}'object'${Q}&&${Q}'default'${Q}in e${Q}?${Q}${q?SQ(J):yQ(J)}${V}${X}${X}`},[E4](Z,J,q){let{_:Q,getDirectReturnFunction:Y,n:X}=J,[z,V]=Y(["e"],{functionReturn:!0,lineBreakIndent:null,name:E4});return`${z}e${Q}&&${Q}e.__esModule${Q}?${Q}${q?SQ(J):yQ(J)}${V}${X}${X}`},[$0](Z,J,q,Q,Y){let{getDirectReturnFunction:X,getObject:z,n:V}=J,[W,K]=X(["e"],{functionReturn:!0,lineBreakIndent:null,name:$0});return`${W}${qZ(Q,bQ(Y,z([["__proto__","null"],["default","e"]],{lineBreakIndent:null}),J))}${K}${V}${V}`},[s6](Z,J,q,Q,Y){let{_:X,n:z}=J;return`function ${s6}(e)${X}{${z}`+EQ(Z,Z,J,q,Q,Y)+`}${z}${z}`},[e6](Z,J,q,Q,Y,X){let{_:z,getDirectReturnFunction:V,n:W}=J;if(X.has(s6)){let[K,$]=V(["e"],{functionReturn:!0,lineBreakIndent:null,name:e6});return`${K}e${z}&&${z}e.__esModule${z}?${z}e${z}:${z}${s6}(e)${$}${W}${W}`}return`function ${e6}(e)${z}{${W}${Z}if${z}(e${z}&&${z}e.__esModule)${z}return e;${W}`+EQ(Z,Z,J,q,Q,Y)+`}${W}${W}`},[b4](Z,J,q,Q,Y){let{_:X,cnst:z,n:V}=J,W=z==="var"&&q;return`function ${b4}(n, m)${X}{${V}${Z}${WB(`{${V}${Z}${Z}${Z}if${X}(k${X}!==${X}'default'${X}&&${X}!(k in n))${X}{${V}`+(q?W?jY:$B:BY)(Z,Z+Z+Z+Z,J)+`${Z}${Z}${Z}}${V}${Z}${Z}}`,W,Z,J)}${V}${Z}return ${qZ(Q,bQ(Y,"n",J))};${V}}${V}${V}`}},QZ=Object.keys(UY);MY=class MY extends Z1{constructor(){super(...arguments);this.inlineNamespace=null,this.mechanism=null,this.resolution=null}hasEffects(){return!0}include(Z,J){if(!this.included)this.included=!0,this.context.includeDynamicImport(this),this.scope.addAccessedDynamicImport(this);this.source.include(Z,J)}initialise(){this.context.addDynamicImport(this)}render(Z,J){if(this.inlineNamespace){let{snippets:{getDirectReturnFunction:q,getPropertyAccess:Q}}=J,[Y,X]=q([],{functionReturn:!0,lineBreakIndent:null,name:null});Z.overwrite(this.start,this.end,`Promise.resolve().then(${Y}${this.inlineNamespace.getName(Q)}${X})`,{contentOnly:!0});return}if(this.mechanism)Z.overwrite(this.start,o1(Z.original,"(",this.start+6)+1,this.mechanism.left,{contentOnly:!0}),Z.overwrite(this.end-1,this.end,this.mechanism.right,{contentOnly:!0});this.source.render(Z,J)}renderFinalResolution(Z,J,q,{getDirectReturnFunction:Q}){if(Z.overwrite(this.source.start,this.source.end,J),q){let[Y,X]=Q(["n"],{functionReturn:!0,lineBreakIndent:null,name:null});Z.prependLeft(this.end,`.then(${Y}n.${q}${X})`)}}setExternalResolution(Z,J,q,Q,Y,X){let{format:z}=q;this.inlineNamespace=null,this.resolution=J;let V=[...GB[z]||[]],W;if({helper:W,mechanism:this.mechanism}=this.getDynamicImportMechanismAndHelper(J,Z,q,Q,Y),W)V.push(W);if(V.length>0)this.scope.addAccessedGlobals(V,X)}setInternalResolution(Z){this.inlineNamespace=Z}applyDeoptimizations(){}getDynamicImportMechanismAndHelper(Z,J,{compact:q,dynamicImportFunction:Q,format:Y,generatedCode:{arrowFunctions:X},interop:z},{_:V,getDirectReturnFunction:W,getDirectReturnIifeLeft:K},$){let H=$.hookFirstSync("renderDynamicImport",[{customResolution:typeof this.resolution==="string"?this.resolution:null,format:Y,moduleId:this.context.module.id,targetModuleId:this.resolution&&typeof this.resolution!=="string"?this.resolution.id:null}]);if(H)return{helper:null,mechanism:H};let M=!this.resolution||typeof this.resolution==="string";switch(Y){case"cjs":{let O=xQ(Z,J,z),j="require(",L=")";if(O)j=`/*#__PURE__*/${O}(${j}`,L+=")";let[I,y]=W([],{functionReturn:!0,lineBreakIndent:null,name:null});if(j=`Promise.resolve().then(${I}${j}`,L+=`${y})`,!X&&M)j=K(["t"],`${j}t${L}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),L=")";return{helper:O,mechanism:{left:j,right:L}}}case"amd":{let O=q?"c":"resolve",j=q?"e":"reject",L=xQ(Z,J,z),[I,y]=W(["m"],{functionReturn:!1,lineBreakIndent:null,name:null}),_=L?`${I}${O}(/*#__PURE__*/${L}(m))${y}`:O,[T,g]=W([O,j],{functionReturn:!1,lineBreakIndent:null,name:null}),h=`new Promise(${T}require([`,u=`],${V}${_},${V}${j})${g})`;if(!X&&M)h=K(["t"],`${h}t${u}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),u=")";return{helper:L,mechanism:{left:h,right:u}}}case"system":return{helper:null,mechanism:{left:"module.import(",right:")"}};case"es":if(Q)return{helper:null,mechanism:{left:`${Q}(`,right:")"}}}return{helper:null,mechanism:null}}};GB={amd:["require"],cjs:["require"],system:["module"]};HY=class HY extends Z1{applyDeoptimizations(){}};FY=class FY extends Z1{applyDeoptimizations(){}};LY=class LY extends Z1{hasEffects(Z){let J=Z.brokenFlow;if(Z.ignore.labels.add(this.label.name),this.body.hasEffects(Z))return!0;if(Z.ignore.labels.delete(this.label.name),Z.includedLabels.has(this.label.name))Z.includedLabels.delete(this.label.name),Z.brokenFlow=J;return!1}include(Z,J){this.included=!0;let q=Z.brokenFlow;if(this.body.include(Z,J),J||Z.includedLabels.has(this.label.name))this.label.include(),Z.includedLabels.delete(this.label.name),Z.brokenFlow=q}render(Z,J){if(this.label.included)this.label.render(Z,J);else Z.remove(this.start,W8(Z.original,o1(Z.original,":",this.label.end)+1));this.body.render(Z,J)}};wY=class wY extends Z1{constructor(){super(...arguments);this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.usedBranch=null}deoptimizeCache(){if(this.usedBranch){let Z=this.usedBranch===this.left?this.right:this.left;this.usedBranch=null,Z.deoptimizePath(D1);for(let J of this.expressionsToBeDeoptimized)J.deoptimizeCache();this.context.requestTreeshakingPass()}}deoptimizePath(Z){let J=this.getUsedBranch();if(!J)this.left.deoptimizePath(Z),this.right.deoptimizePath(Z);else J.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.left.deoptimizeThisOnInteractionAtPath(Z,J,q),this.right.deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){let Q=this.getUsedBranch();if(!Q)return x1;return this.expressionsToBeDeoptimized.push(q),Q.getLiteralValueAtPath(Z,J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){let Y=this.getUsedBranch();if(!Y)return new J7([this.left.getReturnExpressionWhenCalledAtPath(Z,J,q,Q),this.right.getReturnExpressionWhenCalledAtPath(Z,J,q,Q)]);return this.expressionsToBeDeoptimized.push(Q),Y.getReturnExpressionWhenCalledAtPath(Z,J,q,Q)}hasEffects(Z){if(this.left.hasEffects(Z))return!0;if(this.getUsedBranch()!==this.left)return this.right.hasEffects(Z);return!1}hasEffectsOnInteractionAtPath(Z,J,q){let Q=this.getUsedBranch();if(!Q)return this.left.hasEffectsOnInteractionAtPath(Z,J,q)||this.right.hasEffectsOnInteractionAtPath(Z,J,q);return Q.hasEffectsOnInteractionAtPath(Z,J,q)}include(Z,J){this.included=!0;let q=this.getUsedBranch();if(J||q===this.right&&this.left.shouldBeIncluded(Z)||!q)this.left.include(Z,J),this.right.include(Z,J);else q.include(Z,J)}render(Z,J,{isCalleeOfRenderedParent:q,preventASI:Q,renderedParentType:Y,renderedSurroundingElement:X}=n1){if(!this.left.included||!this.right.included){let z=o1(Z.original,this.operator,this.left.end);if(this.right.included){let V=W8(Z.original,z+2);if(Z.remove(this.start,V),Q)t4(Z,V,this.right.start)}else Z.remove(z,this.end);k2(this,Z),this.getUsedBranch().render(Z,J,{isCalleeOfRenderedParent:q,preventASI:Q,renderedParentType:Y||this.parent.type,renderedSurroundingElement:X||this.parent.type})}else this.left.render(Z,J,{preventASI:Q,renderedSurroundingElement:X}),this.right.render(Z,J)}getUsedBranch(){if(!this.isBranchResolutionAnalysed){this.isBranchResolutionAnalysed=!0;let Z=this.left.getLiteralValueAtPath($1,r1,this);if(typeof Z==="symbol")return null;else this.usedBranch=this.operator==="||"&&Z||this.operator==="&&"&&!Z||this.operator==="??"&&Z!=null?this.left:this.right}return this.usedBranch}};OY=class OY extends Z1{addAccessedGlobals(Z,J){let q=this.metaProperty,Q=(q&&(q.startsWith(q8)||q.startsWith(n6)||q.startsWith(K4))?jB:UB)[Z];if(Q.length>0)this.scope.addAccessedGlobals(Q,J)}getReferencedFileName(Z){let J=this.metaProperty;if(J&&J.startsWith(q8))return Z.getFileName(J.substring(q8.length));return null}hasEffects(){return!1}hasEffectsOnInteractionAtPath(Z,{type:J}){return Z.length>1||J!==E1}include(){if(!this.included){if(this.included=!0,this.meta.name==="import"){this.context.addImportMeta(this);let Z=this.parent;this.metaProperty=Z instanceof y8&&typeof Z.propertyKey==="string"?Z.propertyKey:null}}}renderFinalMechanism(Z,J,q,Q,Y){var X;let z=this.parent,V=this.metaProperty;if(V&&(V.startsWith(q8)||V.startsWith(n6)||V.startsWith(K4))){let K=null,$=null,H=null,M;if(V.startsWith(q8))K=V.substring(q8.length),M=Y.getFileName(K);else if(V.startsWith(n6))j5(`Using the "${n6}" prefix to reference files is deprecated. Use the "${q8}" prefix instead.`,!0,this.context.options),$=V.substring(n6.length),M=Y.getFileName($);else j5(`Using the "${K4}" prefix to reference files is deprecated. Use the "${q8}" prefix instead.`,!0,this.context.options),H=V.substring(K4.length),M=Y.getFileName(H);let O=z0(UZ(f5(J),M)),j;if($!==null)j=Y.hookFirstSync("resolveAssetUrl",[{assetFileName:M,chunkId:J,format:q,moduleId:this.context.module.id,relativeAssetPath:O}]);if(!j)j=Y.hookFirstSync("resolveFileUrl",[{assetReferenceId:$,chunkId:J,chunkReferenceId:H,fileName:M,format:q,moduleId:this.context.module.id,referenceId:K||$||H,relativePath:O}])||BB[q](O);Z.overwrite(z.start,z.end,j,{contentOnly:!0});return}let W=Y.hookFirstSync("resolveImportMeta",[V,{chunkId:J,format:q,moduleId:this.context.module.id}])||((X=kQ[q])===null||X===void 0?void 0:X.call(kQ,V,{chunkId:J,snippets:Q}));if(typeof W==="string")if(z instanceof y8)Z.overwrite(z.start,z.end,W,{contentOnly:!0});else Z.overwrite(this.start,this.end,W,{contentOnly:!0})}};UB={amd:["document","module","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module"],umd:["document","require","URL"]},jB={amd:["document","require","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module","URL"],umd:["document","require","URL"]},BB={amd:(Z)=>{if(Z[0]!==".")Z="./"+Z;return i5(`require.toUrl('${Z}'), document.baseURI`)},cjs:(Z)=>`(typeof document === 'undefined' ? ${i5(`'file:' + __dirname + '/${Z}'`,"(require('u' + 'rl').URL)")} : ${y9(Z)})`,es:(Z)=>i5(`'${Z}', import.meta.url`),iife:(Z)=>y9(Z),system:(Z)=>i5(`'${Z}', module.meta.url`),umd:(Z)=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${i5(`'file:' + __dirname + '/${Z}'`,"(require('u' + 'rl').URL)")} : ${y9(Z,!0)})`},kQ={amd:$4(()=>i5("module.uri, document.baseURI")),cjs:$4((Z)=>`(typeof document === 'undefined' ? ${i5("'file:' + __filename","(require('u' + 'rl').URL)")} : ${E9(Z)})`),iife:$4((Z)=>E9(Z)),system:(Z,{snippets:{getPropertyAccess:J}})=>Z===null?"module.meta":`module.meta${J(Z)}`,umd:$4((Z)=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${i5("'file:' + __filename","(require('u' + 'rl').URL)")} : ${E9(Z,!0)})`)};NY=class NY extends Z1{hasEffects(Z){try{for(let J of this.arguments)if(J.hasEffects(Z))return!0;if(this.context.options.treeshake.annotations&&this.annotations)return!1;return this.callee.hasEffects(Z)||this.callee.hasEffectsOnInteractionAtPath($1,this.interaction,Z)}finally{if(!this.deoptimized)this.applyDeoptimizations()}}hasEffectsOnInteractionAtPath(Z,{type:J}){return Z.length>0||J!==E1}include(Z,J){if(!this.deoptimized)this.applyDeoptimizations();if(J)super.include(Z,J);else this.included=!0,this.callee.include(Z,!1);this.callee.includeCallArguments(Z,this.arguments)}initialise(){this.interaction={args:this.arguments,thisArg:null,type:P1,withNew:!0}}render(Z,J){this.callee.render(Z,J),p2(Z,J,this)}applyDeoptimizations(){this.deoptimized=!0;for(let Z of this.arguments)Z.deoptimizePath(D1);this.context.requestTreeshakingPass()}};RY=class RY extends Z1{constructor(){super(...arguments);this.objectEntity=null}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(Z){this.getObjectEntity().deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.getObjectEntity().deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){return this.getObjectEntity().getLiteralValueAtPath(Z,J,q)}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(Z,J,q,Q)}hasEffectsOnInteractionAtPath(Z,J,q){return this.getObjectEntity().hasEffectsOnInteractionAtPath(Z,J,q)}render(Z,J,{renderedSurroundingElement:q}=n1){if(super.render(Z,J),q===N5||q===C2)Z.appendRight(this.start,"("),Z.prependLeft(this.end,")")}applyDeoptimizations(){}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let Z=Y8,J=[];for(let q of this.properties){if(q instanceof z6){J.push({key:d1,kind:"init",property:q});continue}let Q;if(q.computed){let Y=q.key.getLiteralValueAtPath($1,r1,this);if(typeof Y==="symbol"){J.push({key:d1,kind:q.kind,property:q});continue}else Q=String(Y)}else if(Q=q.key instanceof l1?q.key.name:String(q.key.value),Q==="__proto__"&&q.kind==="init"){Z=q.value instanceof V6&&q.value.value===null?null:q.value;continue}J.push({key:Q,kind:q.kind,property:q})}return this.objectEntity=new V5(J,Z)}};CY=class CY extends Z1{};aZ=class aZ extends Z1{constructor(){super(...arguments);this.hasCachedEffect=!1}hasEffects(Z){if(this.hasCachedEffect)return!0;for(let J of this.body)if(J.hasEffects(Z))return this.hasCachedEffect=!0;return!1}include(Z,J){this.included=!0;for(let q of this.body)if(J||q.shouldBeIncluded(Z))q.include(Z,J)}render(Z,J){if(this.body.length)O0(this.body,Z,this.start,this.end,J);else super.render(Z,J)}applyDeoptimizations(){}};IY=class IY extends dZ{constructor(){super(...arguments);this.declarationInit=null}declare(Z,J){return this.declarationInit=J,this.value.declare(Z,Y1)}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();let J=this.context.options.treeshake.propertyReadSideEffects;return this.parent.type==="ObjectPattern"&&J==="always"||this.key.hasEffects(Z)||this.value.hasEffects(Z)}markDeclarationReached(){this.value.markDeclarationReached()}render(Z,J){if(!this.shorthand)this.key.render(Z,J);this.value.render(Z,J,{isShorthandProperty:this.shorthand})}applyDeoptimizations(){if(this.deoptimized=!0,this.declarationInit!==null)this.declarationInit.deoptimizePath([d1,d1]),this.context.requestTreeshakingPass()}};_Y=class _Y extends Z1{deoptimizePath(Z){var J;(J=this.value)===null||J===void 0||J.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){var Q;(Q=this.value)===null||Q===void 0||Q.deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){return this.value?this.value.getLiteralValueAtPath(Z,J,q):x1}getReturnExpressionWhenCalledAtPath(Z,J,q,Q){return this.value?this.value.getReturnExpressionWhenCalledAtPath(Z,J,q,Q):Y1}hasEffects(Z){var J;return this.key.hasEffects(Z)||this.static&&!!((J=this.value)===null||J===void 0?void 0:J.hasEffects(Z))}hasEffectsOnInteractionAtPath(Z,J,q){return!this.value||this.value.hasEffectsOnInteractionAtPath(Z,J,q)}applyDeoptimizations(){}};DY=class DY extends Z1{hasEffects(Z){var J;if(!Z.ignore.returnYield||((J=this.argument)===null||J===void 0?void 0:J.hasEffects(Z)))return!0;return Z.brokenFlow=S8,!1}include(Z,J){var q;this.included=!0,(q=this.argument)===null||q===void 0||q.include(Z,J),Z.brokenFlow=S8}initialise(){this.scope.addReturnExpression(this.argument||Y1)}render(Z,J){if(this.argument){if(this.argument.render(Z,J,{preventASI:!0}),this.argument.start===this.start+6)Z.prependLeft(this.start+6," ")}}};TY=class TY extends Z1{deoptimizePath(Z){this.expressions[this.expressions.length-1].deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.expressions[this.expressions.length-1].deoptimizeThisOnInteractionAtPath(Z,J,q)}getLiteralValueAtPath(Z,J,q){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(Z,J,q)}hasEffects(Z){for(let J of this.expressions)if(J.hasEffects(Z))return!0;return!1}hasEffectsOnInteractionAtPath(Z,J,q){return this.expressions[this.expressions.length-1].hasEffectsOnInteractionAtPath(Z,J,q)}include(Z,J){this.included=!0;let q=this.expressions[this.expressions.length-1];for(let Q of this.expressions)if(J||Q===q&&!(this.parent instanceof N0)||Q.shouldBeIncluded(Z))Q.include(Z,J)}render(Z,J,{renderedParentType:q,isCalleeOfRenderedParent:Q,preventASI:Y}=n1){let X=0,z=null,V=this.expressions[this.expressions.length-1];for(let{node:W,separator:K,start:$,end:H}of f2(this.expressions,Z,this.start,this.end)){if(!W.included){kZ(W,Z,$,H);continue}if(X++,z=K,X===1&&Y)t4(Z,$,W.start);if(X===1){let M=q||this.parent.type;W.render(Z,J,{isCalleeOfRenderedParent:Q&&W===V,renderedParentType:M,renderedSurroundingElement:M})}else W.render(Z,J)}if(z)Z.remove(z,this.end)}};AY=class AY extends Z1{createScope(Z){this.scope=new G8(Z)}hasEffects(Z){for(let J of this.body)if(J.hasEffects(Z))return!0;return!1}include(Z,J){this.included=!0;for(let q of this.body)if(J||q.shouldBeIncluded(Z))q.include(Z,J)}render(Z,J){if(this.body.length)O0(this.body,Z,this.start+1,this.end-1,J);else super.render(Z,J)}};PY=class PY extends Z1{bind(){this.variable=this.scope.findVariable("this")}deoptimizePath(Z){this.variable.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.variable.deoptimizeThisOnInteractionAtPath(Z,J,q)}include(){if(!this.included)this.included=!0,this.context.includeVariableInModule(this.variable)}};sZ=class sZ extends Z1{hasEffects(Z){var J;if((J=this.test)===null||J===void 0?void 0:J.hasEffects(Z))return!0;for(let q of this.consequent){if(Z.brokenFlow)break;if(q.hasEffects(Z))return!0}return!1}include(Z,J){var q;this.included=!0,(q=this.test)===null||q===void 0||q.include(Z,J);for(let Q of this.consequent)if(J||Q.shouldBeIncluded(Z))Q.include(Z,J)}render(Z,J,q){if(this.consequent.length){this.test&&this.test.render(Z,J);let Q=this.test?this.test.end:o1(Z.original,"default",this.start)+7,Y=o1(Z.original,":",Q)+1;O0(this.consequent,Z,Y,q.end,J)}else super.render(Z,J)}};sZ.prototype.needsBoundaries=!0;SY=class SY extends Z1{createScope(Z){this.scope=new G8(Z)}hasEffects(Z){if(this.discriminant.hasEffects(Z))return!0;let{brokenFlow:J,ignore:{breaks:q}}=Z,Q=1/0;Z.ignore.breaks=!0;for(let Y of this.cases){if(Y.hasEffects(Z))return!0;Q=Z.brokenFlow<Q?Z.brokenFlow:Q,Z.brokenFlow=J}if(this.defaultCase!==null&&Q!==X6)Z.brokenFlow=Q;return Z.ignore.breaks=q,!1}include(Z,J){this.included=!0,this.discriminant.include(Z,J);let{brokenFlow:q}=Z,Q=1/0,Y=J||this.defaultCase!==null&&this.defaultCase<this.cases.length-1;for(let X=this.cases.length-1;X>=0;X--){let z=this.cases[X];if(z.included)Y=!0;if(!Y){let V=a4();V.ignore.breaks=!0,Y=z.hasEffects(V)}if(Y)z.include(Z,J),Q=Q<Z.brokenFlow?Q:Z.brokenFlow,Z.brokenFlow=q;else Q=q}if(Y&&this.defaultCase!==null&&Q!==X6)Z.brokenFlow=Q}initialise(){for(let Z=0;Z<this.cases.length;Z++)if(this.cases[Z].test===null){this.defaultCase=Z;return}this.defaultCase=null}render(Z,J){if(this.discriminant.render(Z,J),this.cases.length>0)O0(this.cases,Z,this.cases[0].start,this.end-1,J)}};yY=class yY extends uZ{bind(){if(super.bind(),this.tag.type===D2){let Z=this.tag.name;if(this.scope.findVariable(Z).isNamespace)this.context.warn({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${Z}')`},this.start)}}hasEffects(Z){try{for(let J of this.quasi.expressions)if(J.hasEffects(Z))return!0;return this.tag.hasEffects(Z)||this.tag.hasEffectsOnInteractionAtPath($1,this.interaction,Z)}finally{if(!this.deoptimized)this.applyDeoptimizations()}}include(Z,J){if(!this.deoptimized)this.applyDeoptimizations();if(J)super.include(Z,J);else this.included=!0,this.tag.include(Z,J),this.quasi.include(Z,J);this.tag.includeCallArguments(Z,this.interaction.args);let q=this.getReturnExpression();if(!q.included)q.include(Z,!1)}initialise(){this.interaction={args:[Y1,...this.quasi.expressions],thisArg:this.tag instanceof y8&&!this.tag.variable?this.tag.object:null,type:P1,withNew:!1}}render(Z,J){this.tag.render(Z,J,{isCalleeOfRenderedParent:!0}),this.quasi.render(Z,J)}applyDeoptimizations(){if(this.deoptimized=!0,this.interaction.thisArg)this.tag.deoptimizeThisOnInteractionAtPath(this.interaction,$1,r1);for(let Z of this.quasi.expressions)Z.deoptimizePath(D1);this.context.requestTreeshakingPass()}getReturnExpression(Z=r1){if(this.returnExpression===null)return this.returnExpression=Y1,this.returnExpression=this.tag.getReturnExpressionWhenCalledAtPath($1,this.interaction,Z,this);return this.returnExpression}};EY=class EY extends Z1{bind(){}hasEffects(){return!1}include(){this.included=!0}parseNode(Z){this.value=Z.value,super.parseNode(Z)}render(){}};rZ=class rZ extends Z1{deoptimizeThisOnInteractionAtPath(){}getLiteralValueAtPath(Z){if(Z.length>0||this.quasis.length!==1)return x1;return this.quasis[0].value.cooked}getReturnExpressionWhenCalledAtPath(Z){if(Z.length!==1)return Y1;return w0(V0,Z[0])}hasEffectsOnInteractionAtPath(Z,J,q){if(J.type===E1)return Z.length>1;if(J.type===P1&&Z.length===1)return L0(V0,Z[0],J,q);return!0}render(Z,J){Z.indentExclusionRanges.push([this.start,this.end]),super.render(Z,J)}};oZ=class oZ extends $8{constructor(){super("undefined")}getLiteralValueAtPath(){return}};g5=class g5 extends S5{constructor(Z,J,q){super(Z,J,J.declaration,q);this.hasId=!1,this.originalId=null,this.originalVariable=null;let Q=J.declaration;if((Q instanceof W6||Q instanceof K0)&&Q.id)this.hasId=!0,this.originalId=Q.id;else if(Q instanceof l1)this.originalId=Q}addReference(Z){if(!this.hasId)this.name=Z.name}getAssignedVariableName(){return this.originalId&&this.originalId.name||null}getBaseVariableName(){let Z=this.getOriginalVariable();if(Z===this)return super.getBaseVariableName();else return Z.getBaseVariableName()}getDirectOriginalVariable(){return this.originalId&&(this.hasId||!(this.originalId.isPossibleTDZ()||this.originalId.variable.isReassigned||this.originalId.variable instanceof oZ||("syntheticNamespace"in this.originalId.variable)))?this.originalId.variable:null}getName(Z){let J=this.getOriginalVariable();if(J===this)return super.getName(Z);else return J.getName(Z)}getOriginalVariable(){if(this.originalVariable)return this.originalVariable;let Z=this,J,q=new Set;do q.add(Z),J=Z,Z=J.getDirectOriginalVariable();while(Z instanceof g5&&!q.has(Z));return this.originalVariable=Z||J}};tZ=class tZ extends P5{constructor(Z,J){super(Z);this.context=J,this.variables.set("this",new S5("this",null,F0,J))}addExportDefaultDeclaration(Z,J,q){let Q=new g5(Z,J,q);return this.variables.set("default",Q),Q}addNamespaceMemberAccess(){}deconflict(Z,J,q){for(let Q of this.children)Q.deconflict(Z,J,q)}findLexicalBoundary(){return this}findVariable(Z){let J=this.variables.get(Z)||this.accessedOutsideVariables.get(Z);if(J)return J;let q=this.context.traceVariable(Z)||this.parent.findVariable(Z);if(q instanceof o4)this.accessedOutsideVariables.set(Z,q);return q}};bY=class bY extends Z1{bind(){this.variable=this.scope.findVariable("this")}deoptimizePath(Z){this.variable.deoptimizePath(Z)}deoptimizeThisOnInteractionAtPath(Z,J,q){this.variable.deoptimizeThisOnInteractionAtPath(Z.thisArg===this?{...Z,thisArg:this.variable}:Z,J,q)}hasEffectsOnInteractionAtPath(Z,J,q){if(Z.length===0)return J.type!==E1;return this.variable.hasEffectsOnInteractionAtPath(Z,J,q)}include(){if(!this.included)this.included=!0,this.context.includeVariableInModule(this.variable)}initialise(){if(this.alias=this.scope.findLexicalBoundary()instanceof tZ?this.context.moduleContext:null,this.alias==="undefined")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(Z){if(this.alias!==null)Z.overwrite(this.start,this.end,this.alias,{contentOnly:!1,storeName:!0})}};xY=class xY extends Z1{hasEffects(){return!0}include(Z,J){this.included=!0,this.argument.include(Z,J),Z.brokenFlow=S8}render(Z,J){if(this.argument.render(Z,J,{preventASI:!0}),this.argument.start===this.start+5)Z.prependLeft(this.start+5," ")}};kY=class kY extends Z1{constructor(){super(...arguments);this.directlyIncluded=!1,this.includedLabelsAfterBlock=null}hasEffects(Z){var J;return(this.context.options.treeshake.tryCatchDeoptimization?this.block.body.length>0:this.block.hasEffects(Z))||!!((J=this.finalizer)===null||J===void 0?void 0:J.hasEffects(Z))}include(Z,J){var q,Q;let Y=(q=this.context.options.treeshake)===null||q===void 0?void 0:q.tryCatchDeoptimization,{brokenFlow:X}=Z;if(!this.directlyIncluded||!Y){if(this.included=!0,this.directlyIncluded=!0,this.block.include(Z,Y?S2:J),Z.includedLabels.size>0)this.includedLabelsAfterBlock=[...Z.includedLabels];Z.brokenFlow=X}else if(this.includedLabelsAfterBlock)for(let z of this.includedLabelsAfterBlock)Z.includedLabels.add(z);if(this.handler!==null)this.handler.include(Z,J),Z.brokenFlow=X;(Q=this.finalizer)===null||Q===void 0||Q.include(Z,J)}};MB={"!":(Z)=>!Z,"+":(Z)=>+Z,"-":(Z)=>-Z,delete:()=>x1,typeof:(Z)=>typeof Z,void:()=>{return},"~":(Z)=>~Z};fY=class fY extends Z1{getLiteralValueAtPath(Z,J,q){if(Z.length>0)return x1;let Q=this.argument.getLiteralValueAtPath($1,J,q);if(typeof Q==="symbol")return x1;return MB[this.operator](Q)}hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();if(this.operator==="typeof"&&this.argument instanceof l1)return!1;return this.argument.hasEffects(Z)||this.operator==="delete"&&this.argument.hasEffectsOnInteractionAtPath($1,wZ,Z)}hasEffectsOnInteractionAtPath(Z,{type:J}){return J!==E1||Z.length>(this.operator==="void"?0:1)}applyDeoptimizations(){if(this.deoptimized=!0,this.operator==="delete")this.argument.deoptimizePath($1),this.context.requestTreeshakingPass()}};vY=class vY extends Z1{hasEffects(){return!0}include(Z){super.include(Z,!0)}};hY=class hY extends Z1{hasEffects(Z){if(!this.deoptimized)this.applyDeoptimizations();return this.argument.hasEffectsAsAssignmentTarget(Z,!0)}hasEffectsOnInteractionAtPath(Z,{type:J}){return Z.length>1||J!==E1}include(Z,J){if(!this.deoptimized)this.applyDeoptimizations();this.included=!0,this.argument.includeAsAssignmentTarget(Z,J,!0)}initialise(){this.argument.setAssignedValue(Y1)}render(Z,J){let{exportNamesByVariable:q,format:Q,snippets:{_:Y}}=J;if(this.argument.render(Z,J),Q==="system"){let X=this.argument.variable,z=q.get(X);if(z)if(this.prefix)if(z.length===1)hZ(X,this.start,this.end,Z,J);else v2(X,this.start,this.end,this.parent.type!==N5,Z,J);else{let V=this.operator[0];ej(X,this.start,this.end,this.parent.type!==N5,Z,J,`${Y}${V}${Y}1`)}}}applyDeoptimizations(){if(this.deoptimized=!0,this.argument.deoptimizePath($1),this.argument instanceof l1){let Z=this.scope.findVariable(this.argument.name);Z.isReassigned=!0}this.context.requestTreeshakingPass()}};eZ=class eZ extends Z1{deoptimizePath(){for(let Z of this.declarations)Z.deoptimizePath($1)}hasEffectsOnInteractionAtPath(){return!1}include(Z,J,{asSingleStatement:q}=n1){this.included=!0;for(let Q of this.declarations){if(J||Q.shouldBeIncluded(Z))Q.include(Z,J);if(q)Q.id.include(Z,J)}}initialise(){for(let Z of this.declarations)Z.declareDeclarator(this.kind)}render(Z,J,q=n1){if(HB(this.declarations,J.exportNamesByVariable)){for(let Q of this.declarations)Q.render(Z,J);if(!q.isNoStatement&&Z.original.charCodeAt(this.end-1)!==59)Z.appendLeft(this.end,";")}else this.renderReplacedDeclarations(Z,J)}applyDeoptimizations(){}renderDeclarationEnd(Z,J,q,Q,Y,X,z){if(Z.original.charCodeAt(this.end-1)===59)Z.remove(this.end-1,this.end);if(J+=";",q!==null){if(Z.original.charCodeAt(Q-1)===10&&(Z.original.charCodeAt(this.end)===10||Z.original.charCodeAt(this.end)===13)){if(Q--,Z.original.charCodeAt(Q)===13)Q--}if(Q===q+1)Z.overwrite(q,Y,J);else Z.overwrite(q,q+1,J),Z.remove(Q,Y)}else Z.appendLeft(Y,J);if(X.length>0)Z.appendLeft(Y,` ${b8(X,z)};`)}renderReplacedDeclarations(Z,J){let q=f2(this.declarations,Z,this.start+this.kind.length,this.end-(Z.original.charCodeAt(this.end-1)===59?1:0)),Q,Y;Y=W8(Z.original,this.start+this.kind.length);let X=Y-1;Z.remove(this.start,X);let z=!1,V=!1,W="",K,$,H=[],M=FB(q,J,H);for(let{node:O,start:j,separator:L,contentEnd:I,end:y}of q){if(!O.included){Z.remove(j,y);continue}if(O.render(Z,J),K="",$="",!O.id.included||O.id instanceof l1&&gY(O.id.variable,J.exportNamesByVariable)){if(V)W+=";";z=!1}else{if(M&&M===O.id.variable){let _=o1(Z.original,"=",O.id.end);hZ(M,W8(Z.original,_+1),L===null?I:L,Z,J)}if(z)W+=",";else{if(V)W+=";";K+=`${this.kind} `,z=!0}}if(Y===X+1)Z.overwrite(X,Y,W+K);else Z.overwrite(X,X+1,W),Z.appendLeft(Y,K);Q=I,Y=y,V=!0,X=L,W=$}this.renderDeclarationEnd(Z,W,X,Q,Y,H,J)}};mY=class mY extends Z1{declareDeclarator(Z){this.id.declare(Z,this.init||F0)}deoptimizePath(Z){this.id.deoptimizePath(Z)}hasEffects(Z){var J;let q=(J=this.init)===null||J===void 0?void 0:J.hasEffects(Z);return this.id.markDeclarationReached(),q||this.id.hasEffects(Z)}include(Z,J){var q;if(this.included=!0,(q=this.init)===null||q===void 0||q.include(Z,J),this.id.markDeclarationReached(),J||this.id.shouldBeIncluded(Z))this.id.include(Z,J)}render(Z,J){let{exportNamesByVariable:q,snippets:{_:Q}}=J,Y=this.id.included;if(Y)this.id.render(Z,J);else{let X=o1(Z.original,"=",this.id.end);Z.remove(this.start,W8(Z.original,X+1))}if(this.init)this.init.render(Z,J,Y?n1:{renderedSurroundingElement:N5});else if(this.id instanceof l1&&gY(this.id.variable,q))Z.appendLeft(this.end,`${Q}=${Q}void 0`)}applyDeoptimizations(){}};uY=class uY extends Z1{hasEffects(Z){if(this.test.hasEffects(Z))return!0;let{brokenFlow:J,ignore:{breaks:q,continues:Q}}=Z;if(Z.ignore.breaks=!0,Z.ignore.continues=!0,this.body.hasEffects(Z))return!0;return Z.ignore.breaks=q,Z.ignore.continues=Q,Z.brokenFlow=J,!1}include(Z,J){this.included=!0,this.test.include(Z,J);let{brokenFlow:q}=Z;this.body.include(Z,J,{asSingleStatement:!0}),Z.brokenFlow=q}};dY=class dY extends Z1{hasEffects(Z){var J;if(!this.deoptimized)this.applyDeoptimizations();return!(Z.ignore.returnYield&&!((J=this.argument)===null||J===void 0?void 0:J.hasEffects(Z)))}render(Z,J){if(this.argument){if(this.argument.render(Z,J,{preventASI:!0}),this.argument.start===this.start+5)Z.prependLeft(this.start+5," ")}}};fQ={ArrayExpression:E2,ArrayPattern:b2,ArrowFunctionExpression:vZ,AssignmentExpression:h2,AssignmentPattern:g2,AwaitExpression:d2,BinaryExpression:l2,BlockStatement:W0,BreakStatement:c2,CallExpression:a2,CatchClause:r2,ChainExpression:o2,ClassBody:e2,ClassDeclaration:K0,ClassExpression:JY,ConditionalExpression:qY,ContinueStatement:QY,DoWhileStatement:YY,EmptyStatement:XY,ExportAllDeclaration:q7,ExportDefaultDeclaration:R0,ExportNamedDeclaration:cZ,ExportSpecifier:zY,ExpressionStatement:N0,ForInStatement:VY,ForOfStatement:WY,ForStatement:KY,FunctionDeclaration:W6,FunctionExpression:$Y,Identifier:l1,IfStatement:pZ,ImportDeclaration:iZ,ImportDefaultSpecifier:GY,ImportExpression:MY,ImportNamespaceSpecifier:HY,ImportSpecifier:FY,LabeledStatement:LY,Literal:V6,LogicalExpression:wY,MemberExpression:y8,MetaProperty:OY,MethodDefinition:y4,NewExpression:NY,ObjectExpression:RY,ObjectPattern:gZ,PrivateIdentifier:CY,Program:aZ,Property:IY,PropertyDefinition:_Y,RestElement:fZ,ReturnStatement:DY,SequenceExpression:TY,SpreadElement:z6,StaticBlock:AY,Super:PY,SwitchCase:sZ,SwitchStatement:SY,TaggedTemplateExpression:yY,TemplateElement:EY,TemplateLiteral:rZ,ThisExpression:bY,ThrowStatement:xY,TryStatement:kY,UnaryExpression:fY,UnknownNode:vY,UpdateExpression:hY,VariableDeclaration:eZ,VariableDeclarator:mY,WhileStatement:uY,YieldExpression:dY};lY=class lY extends $8{constructor(Z){super(K6);this.module=Z}include(){super.include(),this.module.needsExportShim=!0}};Q6=class Q6 extends $8{constructor(Z){super(Z.getModuleName());this.memberVariables=null,this.mergedNamespaces=[],this.referencedEarly=!1,this.references=[],this.context=Z,this.module=Z.module}addReference(Z){this.references.push(Z),this.name=Z.name}getMemberVariables(){if(this.memberVariables)return this.memberVariables;let Z=Object.create(null);for(let J of this.context.getExports().concat(this.context.getReexports()))if(J[0]!=="*"&&J!==this.module.info.syntheticNamedExports){let q=this.context.traceExport(J);if(q)Z[J]=q}return this.memberVariables=Z}include(){this.included=!0,this.context.includeAllExports()}prepare(Z){if(this.mergedNamespaces.length>0)this.module.scope.addAccessedGlobals([b4],Z)}renderBlock(Z){let{exportNamesByVariable:J,format:q,freeze:Q,indent:Y,namespaceToStringTag:X,snippets:{_:z,cnst:V,getObject:W,getPropertyAccess:K,n:$,s:H}}=Z,M=this.getMemberVariables(),O=Object.entries(M).map(([I,y])=>{if(this.referencedEarly||y.isReassigned)return[null,`get ${I}${z}()${z}{${z}return ${y.getName(K)}${H}${z}}`];return[I,y.getName(K)]});O.unshift([null,`__proto__:${z}null`]);let j=W(O,{lineBreakIndent:{base:"",t:Y}});if(this.mergedNamespaces.length>0){let I=this.mergedNamespaces.map((y)=>y.getName(K));j=`/*#__PURE__*/${b4}(${j},${z}[${I.join(`,${z}`)}])`}else{if(X)j=`/*#__PURE__*/Object.defineProperty(${j},${z}Symbol.toStringTag,${z}${G0(W)})`;if(Q)j=`/*#__PURE__*/Object.freeze(${j})`}let L=this.getName(K);if(j=`${V} ${L}${z}=${z}${j};`,q==="system"&&J.has(this))j+=`${$}${b8([this],Z)};`;return j}renderFirst(){return this.referencedEarly}setMergedNamespaces(Z){this.mergedNamespaces=Z;let J=this.context.getModuleExecIndex();for(let q of this.references)if(q.context.getModuleExecIndex()<=J){this.referencedEarly=!0;break}}};Q6.prototype.isNamespace=!0;G5=class G5 extends $8{constructor(Z,J,q){super(J);this.baseVariable=null,this.context=Z,this.module=Z.module,this.syntheticNamespace=q}getBaseVariable(){if(this.baseVariable)return this.baseVariable;let Z=this.syntheticNamespace;while(Z instanceof g5||Z instanceof G5){if(Z instanceof g5){let J=Z.getOriginalVariable();if(J===Z)break;Z=J}if(Z instanceof G5)Z=Z.syntheticNamespace}return this.baseVariable=Z}getBaseVariableName(){return this.syntheticNamespace.getBaseVariableName()}getName(Z){return`${this.syntheticNamespace.getName(Z)}${Z(this.name)}`}include(){this.included=!0,this.context.includeVariableInModule(this.syntheticNamespace)}setRenderNames(Z,J){super.setRenderNames(Z,J)}};(function(Z){Z[Z.LOAD_AND_PARSE=0]="LOAD_AND_PARSE",Z[Z.ANALYSE=1]="ANALYSE",Z[Z.GENERATE=2]="GENERATE"})(X8||(X8={}));U0=new Map;s1=x4,i1=x4,RB=["load","resolveDynamicImport","resolveId","transform"];vQ={identifier:null,localName:K6};SB={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};sB={amd:yB,cjs:EB,es:xB,iife:hB,system:gB,umd:aB};tB={amd:G4,cjs:G4,es:mQ,iife:G4,system:mQ,umd:G4};JM=/[\\'\r\n\u2028\u2029]/,qM=/(['\r\n\u2028\u2029])/g,QM=/\\/g;q3=Symbol("bundleKeys"),eY={type:"placeholder"};uQ=[".js",".jsx",".ts",".tsx"];jM=/[?#]/;pQ=/^(?!\d)[\w$]+$/;PM=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,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,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,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,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239],JX=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,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,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,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,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,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,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,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,1845,30,482,44,11,6,17,0,322,29,19,43,1269,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4152,8,221,3,5761,15,7472,3104,541,1507,4938],v9={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"},yM={5:h9,"5module":h9+" export import",6:h9+" const class extends export import super"},EM=/^in(stanceof)?$/,bM=new RegExp("["+qX+"]"),xM=new RegExp("["+qX+SM+"]");L5={beforeExpr:!0},z5={startsExpr:!0},Q3={};R={num:new C1("num",z5),regexp:new C1("regexp",z5),string:new C1("string",z5),name:new C1("name",z5),privateId:new C1("privateId",z5),eof:new C1("eof"),bracketL:new C1("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new C1("]"),braceL:new C1("{",{beforeExpr:!0,startsExpr:!0}),braceR:new C1("}"),parenL:new C1("(",{beforeExpr:!0,startsExpr:!0}),parenR:new C1(")"),comma:new C1(",",L5),semi:new C1(";",L5),colon:new C1(":",L5),dot:new C1("."),question:new C1("?",L5),questionDot:new C1("?."),arrow:new C1("=>",L5),template:new C1("template"),invalidTemplate:new C1("invalidTemplate"),ellipsis:new C1("...",L5),backQuote:new C1("`",z5),dollarBraceL:new C1("${",{beforeExpr:!0,startsExpr:!0}),eq:new C1("=",{beforeExpr:!0,isAssign:!0}),assign:new C1("_=",{beforeExpr:!0,isAssign:!0}),incDec:new C1("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new C1("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:F5("||",1),logicalAND:F5("&&",2),bitwiseOR:F5("|",3),bitwiseXOR:F5("^",4),bitwiseAND:F5("&",5),equality:F5("==/!=/===/!==",6),relational:F5("</>/<=/>=",7),bitShift:F5("<</>>/>>>",8),plusMin:new C1("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:F5("%",10),star:F5("*",10),slash:F5("/",10),starstar:new C1("**",{beforeExpr:!0}),coalesce:F5("??",1),_break:w1("break"),_case:w1("case",L5),_catch:w1("catch"),_continue:w1("continue"),_debugger:w1("debugger"),_default:w1("default",L5),_do:w1("do",{isLoop:!0,beforeExpr:!0}),_else:w1("else",L5),_finally:w1("finally"),_for:w1("for",{isLoop:!0}),_function:w1("function",z5),_if:w1("if"),_return:w1("return",L5),_switch:w1("switch"),_throw:w1("throw",L5),_try:w1("try"),_var:w1("var"),_const:w1("const"),_while:w1("while",{isLoop:!0}),_with:w1("with"),_new:w1("new",{beforeExpr:!0,startsExpr:!0}),_this:w1("this",z5),_super:w1("super",z5),_class:w1("class",z5),_extends:w1("extends",L5),_export:w1("export"),_import:w1("import",z5),_null:w1("null",z5),_true:w1("true",z5),_false:w1("false",z5),_in:w1("in",{beforeExpr:!0,binop:7}),_instanceof:w1("instanceof",{beforeExpr:!0,binop:7}),_typeof:w1("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:w1("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:w1("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},R5=/\r\n?|\n|\u2028|\u2029/,kM=new RegExp(R5.source,"g");YX=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,O5=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,XX=Object.prototype,fM=XX.hasOwnProperty,vM=XX.toString,_0=Object.hasOwn||function(Z,J){return fM.call(Z,J)},sQ=Array.isArray||function(Z){return vM.call(Z)==="[object Array]"};hM=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;B0.prototype.offset=function(J){return new B0(this.line,this.column+J)};WZ={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};z3=M0|B6|D0;m5={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};c1.prototype.parse=function(){var J=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(J)};m5.inFunction.get=function(){return(this.currentVarScope().flags&B6)>0};m5.inGenerator.get=function(){return(this.currentVarScope().flags&VX)>0&&!this.currentVarScope().inClassFieldInit};m5.inAsync.get=function(){return(this.currentVarScope().flags&Y3)>0&&!this.currentVarScope().inClassFieldInit};m5.canAwait.get=function(){for(var Z=this.scopeStack.length-1;Z>=0;Z--){var J=this.scopeStack[Z];if(J.inClassFieldInit||J.flags&D0)return!1;if(J.flags&B6)return(J.flags&Y3)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};m5.allowSuper.get=function(){var Z=this.currentThisScope(),J=Z.flags,q=Z.inClassFieldInit;return(J&X3)>0||q||this.options.allowSuperOutsideMethod};m5.allowDirectSuper.get=function(){return(this.currentThisScope().flags&$X)>0};m5.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};m5.allowNewDotTarget.get=function(){var Z=this.currentThisScope(),J=Z.flags,q=Z.inClassFieldInit;return(J&(B6|D0))>0||q};m5.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&D0)>0};c1.extend=function(){var J=[],q=arguments.length;while(q--)J[q]=arguments[q];var Q=this;for(var Y=0;Y<J.length;Y++)Q=J[Y](Q);return Q};c1.parse=function(J,q){return new this(q,J).parse()};c1.parseExpressionAt=function(J,q,Q){var Y=new this(Q,J,q);return Y.nextToken(),Y.parseExpression()};c1.tokenizer=function(J,q){return new this(q,J)};Object.defineProperties(c1.prototype,m5);Y5=c1.prototype,uM=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Y5.strictDirective=function(Z){if(this.options.ecmaVersion<5)return!1;for(;;){O5.lastIndex=Z,Z+=O5.exec(this.input)[0].length;var J=uM.exec(this.input.slice(Z));if(!J)return!1;if((J[1]||J[2])==="use strict"){O5.lastIndex=Z+J[0].length;var q=O5.exec(this.input),Q=q.index+q[0].length,Y=this.input.charAt(Q);return Y===";"||Y==="}"||R5.test(q[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(Y)||Y==="!"&&this.input.charAt(Q+1)==="=")}if(Z+=J[0].length,O5.lastIndex=Z,Z+=O5.exec(this.input)[0].length,this.input[Z]===";")Z++}};Y5.eat=function(Z){if(this.type===Z)return this.next(),!0;else return!1};Y5.isContextual=function(Z){return this.type===R.name&&this.value===Z&&!this.containsEsc};Y5.eatContextual=function(Z){if(!this.isContextual(Z))return!1;return this.next(),!0};Y5.expectContextual=function(Z){if(!this.eatContextual(Z))this.unexpected()};Y5.canInsertSemicolon=function(){return this.type===R.eof||this.type===R.braceR||R5.test(this.input.slice(this.lastTokEnd,this.start))};Y5.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};Y5.semicolon=function(){if(!this.eat(R.semi)&&!this.insertSemicolon())this.unexpected()};Y5.afterTrailingComma=function(Z,J){if(this.type===Z){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!J)this.next();return!0}};Y5.expect=function(Z){this.eat(Z)||this.unexpected()};Y5.unexpected=function(Z){this.raise(Z!=null?Z:this.start,"Unexpected token")};Y5.checkPatternErrors=function(Z,J){if(!Z)return;if(Z.trailingComma>-1)this.raiseRecoverable(Z.trailingComma,"Comma is not permitted after the rest element");var q=J?Z.parenthesizedAssign:Z.parenthesizedBind;if(q>-1)this.raiseRecoverable(q,"Parenthesized pattern")};Y5.checkExpressionErrors=function(Z,J){if(!Z)return!1;var{shorthandAssign:q,doubleProto:Q}=Z;if(!J)return q>=0||Q>=0;if(q>=0)this.raise(q,"Shorthand property assignments are valid only in destructuring patterns");if(Q>=0)this.raiseRecoverable(Q,"Redefinition of __proto__ property")};Y5.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos))this.raise(this.yieldPos,"Yield expression cannot be a default value");if(this.awaitPos)this.raise(this.awaitPos,"Await expression cannot be a default value")};Y5.isSimpleAssignTarget=function(Z){if(Z.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(Z.expression);return Z.type==="Identifier"||Z.type==="MemberExpression"};z1=c1.prototype;z1.parseTopLevel=function(Z){var J=Object.create(null);if(!Z.body)Z.body=[];while(this.type!==R.eof){var q=this.parseStatement(null,!0,J);Z.body.push(q)}if(this.inModule)for(var Q=0,Y=Object.keys(this.undefinedExports);Q<Y.length;Q+=1){var X=Y[Q];this.raiseRecoverable(this.undefinedExports[X].start,"Export '"+X+"' is not defined")}return this.adaptDirectivePrologue(Z.body),this.next(),Z.sourceType=this.options.sourceType,this.finishNode(Z,"Program")};K3={kind:"loop"},dM={kind:"switch"};z1.isLet=function(Z){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;O5.lastIndex=this.pos;var J=O5.exec(this.input),q=this.pos+J[0].length,Q=this.input.charCodeAt(q);if(Q===91||Q===92||Q>55295&&Q<56320)return!0;if(Z)return!1;if(Q===123)return!0;if(r5(Q,!0)){var Y=q+1;while($6(Q=this.input.charCodeAt(Y),!0))++Y;if(Q===92||Q>55295&&Q<56320)return!0;var X=this.input.slice(q,Y);if(!EM.test(X))return!0}return!1};z1.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;O5.lastIndex=this.pos;var Z=O5.exec(this.input),J=this.pos+Z[0].length,q;return!R5.test(this.input.slice(this.pos,J))&&this.input.slice(J,J+8)==="function"&&(J+8===this.input.length||!($6(q=this.input.charCodeAt(J+8))||q>55295&&q<56320))};z1.parseStatement=function(Z,J,q){var Q=this.type,Y=this.startNode(),X;if(this.isLet(Z))Q=R._var,X="let";switch(Q){case R._break:case R._continue:return this.parseBreakContinueStatement(Y,Q.keyword);case R._debugger:return this.parseDebuggerStatement(Y);case R._do:return this.parseDoStatement(Y);case R._for:return this.parseForStatement(Y);case R._function:if(Z&&(this.strict||Z!=="if"&&Z!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(Y,!1,!Z);case R._class:if(Z)this.unexpected();return this.parseClass(Y,!0);case R._if:return this.parseIfStatement(Y);case R._return:return this.parseReturnStatement(Y);case R._switch:return this.parseSwitchStatement(Y);case R._throw:return this.parseThrowStatement(Y);case R._try:return this.parseTryStatement(Y);case R._const:case R._var:if(X=X||this.value,Z&&X!=="var")this.unexpected();return this.parseVarStatement(Y,X);case R._while:return this.parseWhileStatement(Y);case R._with:return this.parseWithStatement(Y);case R.braceL:return this.parseBlock(!0,Y);case R.semi:return this.parseEmptyStatement(Y);case R._export:case R._import:if(this.options.ecmaVersion>10&&Q===R._import){O5.lastIndex=this.pos;var z=O5.exec(this.input),V=this.pos+z[0].length,W=this.input.charCodeAt(V);if(W===40||W===46)return this.parseExpressionStatement(Y,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!J)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return Q===R._import?this.parseImport(Y):this.parseExport(Y,q);default:if(this.isAsyncFunction()){if(Z)this.unexpected();return this.next(),this.parseFunctionStatement(Y,!0,!Z)}var K=this.value,$=this.parseExpression();if(Q===R.name&&$.type==="Identifier"&&this.eat(R.colon))return this.parseLabeledStatement(Y,K,$,Z);else return this.parseExpressionStatement(Y,$)}};z1.parseBreakContinueStatement=function(Z,J){var q=J==="break";if(this.next(),this.eat(R.semi)||this.insertSemicolon())Z.label=null;else if(this.type!==R.name)this.unexpected();else Z.label=this.parseIdent(),this.semicolon();var Q=0;for(;Q<this.labels.length;++Q){var Y=this.labels[Q];if(Z.label==null||Y.name===Z.label.name){if(Y.kind!=null&&(q||Y.kind==="loop"))break;if(Z.label&&q)break}}if(Q===this.labels.length)this.raise(Z.start,"Unsyntactic "+J);return this.finishNode(Z,q?"BreakStatement":"ContinueStatement")};z1.parseDebuggerStatement=function(Z){return this.next(),this.semicolon(),this.finishNode(Z,"DebuggerStatement")};z1.parseDoStatement=function(Z){if(this.next(),this.labels.push(K3),Z.body=this.parseStatement("do"),this.labels.pop(),this.expect(R._while),Z.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(R.semi);else this.semicolon();return this.finishNode(Z,"DoWhileStatement")};z1.parseForStatement=function(Z){this.next();var J=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(K3),this.enterScope(0),this.expect(R.parenL),this.type===R.semi){if(J>-1)this.unexpected(J);return this.parseFor(Z,null)}var q=this.isLet();if(this.type===R._var||this.type===R._const||q){var Q=this.startNode(),Y=q?"let":this.value;if(this.next(),this.parseVar(Q,!0,Y),this.finishNode(Q,"VariableDeclaration"),(this.type===R._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&Q.declarations.length===1){if(this.options.ecmaVersion>=9)if(this.type===R._in){if(J>-1)this.unexpected(J)}else Z.await=J>-1;return this.parseForIn(Z,Q)}if(J>-1)this.unexpected(J);return this.parseFor(Z,Q)}var X=this.isContextual("let"),z=!1,V=new W7,W=this.parseExpression(J>-1?"await":!0,V);if(this.type===R._in||(z=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(this.options.ecmaVersion>=9)if(this.type===R._in){if(J>-1)this.unexpected(J)}else Z.await=J>-1;if(X&&z)this.raise(W.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(W,!1,V),this.checkLValPattern(W),this.parseForIn(Z,W)}else this.checkExpressionErrors(V,!0);if(J>-1)this.unexpected(J);return this.parseFor(Z,W)};z1.parseFunctionStatement=function(Z,J,q){return this.next(),this.parseFunction(Z,Z0|(q?0:KZ),!1,J)};z1.parseIfStatement=function(Z){return this.next(),Z.test=this.parseParenExpression(),Z.consequent=this.parseStatement("if"),Z.alternate=this.eat(R._else)?this.parseStatement("if"):null,this.finishNode(Z,"IfStatement")};z1.parseReturnStatement=function(Z){if(!this.inFunction&&!this.options.allowReturnOutsideFunction)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(R.semi)||this.insertSemicolon())Z.argument=null;else Z.argument=this.parseExpression(),this.semicolon();return this.finishNode(Z,"ReturnStatement")};z1.parseSwitchStatement=function(Z){this.next(),Z.discriminant=this.parseParenExpression(),Z.cases=[],this.expect(R.braceL),this.labels.push(dM),this.enterScope(0);var J;for(var q=!1;this.type!==R.braceR;)if(this.type===R._case||this.type===R._default){var Q=this.type===R._case;if(J)this.finishNode(J,"SwitchCase");if(Z.cases.push(J=this.startNode()),J.consequent=[],this.next(),Q)J.test=this.parseExpression();else{if(q)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");q=!0,J.test=null}this.expect(R.colon)}else{if(!J)this.unexpected();J.consequent.push(this.parseStatement(null))}if(this.exitScope(),J)this.finishNode(J,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(Z,"SwitchStatement")};z1.parseThrowStatement=function(Z){if(this.next(),R5.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return Z.argument=this.parseExpression(),this.semicolon(),this.finishNode(Z,"ThrowStatement")};lM=[];z1.parseTryStatement=function(Z){if(this.next(),Z.block=this.parseBlock(),Z.handler=null,this.type===R._catch){var J=this.startNode();if(this.next(),this.eat(R.parenL)){J.param=this.parseBindingAtom();var q=J.param.type==="Identifier";this.enterScope(q?KX:0),this.checkLValPattern(J.param,q?UX:a5),this.expect(R.parenR)}else{if(this.options.ecmaVersion<10)this.unexpected();J.param=null,this.enterScope(0)}J.body=this.parseBlock(!1),this.exitScope(),Z.handler=this.finishNode(J,"CatchClause")}if(Z.finalizer=this.eat(R._finally)?this.parseBlock():null,!Z.handler&&!Z.finalizer)this.raise(Z.start,"Missing catch or finally clause");return this.finishNode(Z,"TryStatement")};z1.parseVarStatement=function(Z,J){return this.next(),this.parseVar(Z,!1,J),this.semicolon(),this.finishNode(Z,"VariableDeclaration")};z1.parseWhileStatement=function(Z){return this.next(),Z.test=this.parseParenExpression(),this.labels.push(K3),Z.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(Z,"WhileStatement")};z1.parseWithStatement=function(Z){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),Z.object=this.parseParenExpression(),Z.body=this.parseStatement("with"),this.finishNode(Z,"WithStatement")};z1.parseEmptyStatement=function(Z){return this.next(),this.finishNode(Z,"EmptyStatement")};z1.parseLabeledStatement=function(Z,J,q,Q){for(var Y=0,X=this.labels;Y<X.length;Y+=1){var z=X[Y];if(z.name===J)this.raise(q.start,"Label '"+J+"' is already declared")}var V=this.type.isLoop?"loop":this.type===R._switch?"switch":null;for(var W=this.labels.length-1;W>=0;W--){var K=this.labels[W];if(K.statementStart===Z.start)K.statementStart=this.start,K.kind=V;else break}return this.labels.push({name:J,kind:V,statementStart:this.start}),Z.body=this.parseStatement(Q?Q.indexOf("label")===-1?Q+"label":Q:"label"),this.labels.pop(),Z.label=q,this.finishNode(Z,"LabeledStatement")};z1.parseExpressionStatement=function(Z,J){return Z.expression=J,this.semicolon(),this.finishNode(Z,"ExpressionStatement")};z1.parseBlock=function(Z,J,q){if(Z===void 0)Z=!0;if(J===void 0)J=this.startNode();if(J.body=[],this.expect(R.braceL),Z)this.enterScope(0);while(this.type!==R.braceR){var Q=this.parseStatement(null);J.body.push(Q)}if(q)this.strict=!1;if(this.next(),Z)this.exitScope();return this.finishNode(J,"BlockStatement")};z1.parseFor=function(Z,J){return Z.init=J,this.expect(R.semi),Z.test=this.type===R.semi?null:this.parseExpression(),this.expect(R.semi),Z.update=this.type===R.parenR?null:this.parseExpression(),this.expect(R.parenR),Z.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(Z,"ForStatement")};z1.parseForIn=function(Z,J){var q=this.type===R._in;if(this.next(),J.type==="VariableDeclaration"&&J.declarations[0].init!=null&&(!q||this.options.ecmaVersion<8||this.strict||J.kind!=="var"||J.declarations[0].id.type!=="Identifier"))this.raise(J.start,(q?"for-in":"for-of")+" loop variable declaration may not have an initializer");return Z.left=J,Z.right=q?this.parseExpression():this.parseMaybeAssign(),this.expect(R.parenR),Z.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(Z,q?"ForInStatement":"ForOfStatement")};z1.parseVar=function(Z,J,q){Z.declarations=[],Z.kind=q;for(;;){var Q=this.startNode();if(this.parseVarId(Q,q),this.eat(R.eq))Q.init=this.parseMaybeAssign(J);else if(q==="const"&&!(this.type===R._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(Q.id.type!=="Identifier"&&!(J&&(this.type===R._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else Q.init=null;if(Z.declarations.push(this.finishNode(Q,"VariableDeclarator")),!this.eat(R.comma))break}return Z};z1.parseVarId=function(Z,J){Z.id=this.parseBindingAtom(),this.checkLValPattern(Z.id,J==="var"?W3:a5,!1)};z1.parseFunction=function(Z,J,q,Q,Y){if(this.initFunction(Z),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Q){if(this.type===R.star&&J&KZ)this.unexpected();Z.generator=this.eat(R.star)}if(this.options.ecmaVersion>=8)Z.async=!!Q;if(J&Z0){if(Z.id=J&BX&&this.type!==R.name?null:this.parseIdent(),Z.id&&!(J&KZ))this.checkLValSimple(Z.id,this.strict||Z.generator||Z.async?this.treatFunctionsAsVar?W3:a5:GX)}var X=this.yieldPos,z=this.awaitPos,V=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(V3(Z.async,Z.generator)),!(J&Z0))Z.id=this.type===R.name?this.parseIdent():null;return this.parseFunctionParams(Z),this.parseFunctionBody(Z,q,!1,Y),this.yieldPos=X,this.awaitPos=z,this.awaitIdentPos=V,this.finishNode(Z,J&Z0?"FunctionDeclaration":"FunctionExpression")};z1.parseFunctionParams=function(Z){this.expect(R.parenL),Z.params=this.parseBindingList(R.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};z1.parseClass=function(Z,J){this.next();var q=this.strict;this.strict=!0,this.parseClassId(Z,J),this.parseClassSuper(Z);var Q=this.enterClassBody(),Y=this.startNode(),X=!1;Y.body=[],this.expect(R.braceL);while(this.type!==R.braceR){var z=this.parseClassElement(Z.superClass!==null);if(z){if(Y.body.push(z),z.type==="MethodDefinition"&&z.kind==="constructor"){if(X)this.raise(z.start,"Duplicate constructor in the same class");X=!0}else if(z.key&&z.key.type==="PrivateIdentifier"&&cM(Q,z))this.raiseRecoverable(z.key.start,"Identifier '#"+z.key.name+"' has already been declared")}}return this.strict=q,this.next(),Z.body=this.finishNode(Y,"ClassBody"),this.exitClassBody(),this.finishNode(Z,J?"ClassDeclaration":"ClassExpression")};z1.parseClassElement=function(Z){if(this.eat(R.semi))return null;var J=this.options.ecmaVersion,q=this.startNode(),Q="",Y=!1,X=!1,z="method",V=!1;if(this.eatContextual("static")){if(J>=13&&this.eat(R.braceL))return this.parseClassStaticBlock(q),q;if(this.isClassElementNameStart()||this.type===R.star)V=!0;else Q="static"}if(q.static=V,!Q&&J>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===R.star)&&!this.canInsertSemicolon())X=!0;else Q="async";if(!Q&&(J>=9||!X)&&this.eat(R.star))Y=!0;if(!Q&&!X&&!Y){var W=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())z=W;else Q=W}if(Q)q.computed=!1,q.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),q.key.name=Q,this.finishNode(q.key,"Identifier");else this.parseClassElementName(q);if(J<13||this.type===R.parenL||z!=="method"||Y||X){var K=!q.static&&v4(q,"constructor"),$=K&&Z;if(K&&z!=="method")this.raise(q.key.start,"Constructor can't have get/set modifier");q.kind=K?"constructor":z,this.parseClassMethod(q,Y,X,$)}else this.parseClassField(q);return q};z1.isClassElementNameStart=function(){return this.type===R.name||this.type===R.privateId||this.type===R.num||this.type===R.string||this.type===R.bracketL||this.type.keyword};z1.parseClassElementName=function(Z){if(this.type===R.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");Z.computed=!1,Z.key=this.parsePrivateIdent()}else this.parsePropertyName(Z)};z1.parseClassMethod=function(Z,J,q,Q){var Y=Z.key;if(Z.kind==="constructor"){if(J)this.raise(Y.start,"Constructor can't be a generator");if(q)this.raise(Y.start,"Constructor can't be an async method")}else if(Z.static&&v4(Z,"prototype"))this.raise(Y.start,"Classes may not have a static property named prototype");var X=Z.value=this.parseMethod(J,q,Q);if(Z.kind==="get"&&X.params.length!==0)this.raiseRecoverable(X.start,"getter should have no params");if(Z.kind==="set"&&X.params.length!==1)this.raiseRecoverable(X.start,"setter should have exactly one param");if(Z.kind==="set"&&X.params[0].type==="RestElement")this.raiseRecoverable(X.params[0].start,"Setter cannot use rest params");return this.finishNode(Z,"MethodDefinition")};z1.parseClassField=function(Z){if(v4(Z,"constructor"))this.raise(Z.key.start,"Classes can't have a field named 'constructor'");else if(Z.static&&v4(Z,"prototype"))this.raise(Z.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(R.eq)){var J=this.currentThisScope(),q=J.inClassFieldInit;J.inClassFieldInit=!0,Z.value=this.parseMaybeAssign(),J.inClassFieldInit=q}else Z.value=null;return this.semicolon(),this.finishNode(Z,"PropertyDefinition")};z1.parseClassStaticBlock=function(Z){Z.body=[];var J=this.labels;this.labels=[],this.enterScope(D0|X3);while(this.type!==R.braceR){var q=this.parseStatement(null);Z.body.push(q)}return this.next(),this.exitScope(),this.labels=J,this.finishNode(Z,"StaticBlock")};z1.parseClassId=function(Z,J){if(this.type===R.name){if(Z.id=this.parseIdent(),J)this.checkLValSimple(Z.id,a5,!1)}else{if(J===!0)this.unexpected();Z.id=null}};z1.parseClassSuper=function(Z){Z.superClass=this.eat(R._extends)?this.parseExprSubscripts(!1):null};z1.enterClassBody=function(){var Z={declared:Object.create(null),used:[]};return this.privateNameStack.push(Z),Z.declared};z1.exitClassBody=function(){var Z=this.privateNameStack.pop(),J=Z.declared,q=Z.used,Q=this.privateNameStack.length,Y=Q===0?null:this.privateNameStack[Q-1];for(var X=0;X<q.length;++X){var z=q[X];if(!_0(J,z.name))if(Y)Y.used.push(z);else this.raiseRecoverable(z.start,"Private field '#"+z.name+"' must be declared in an enclosing class")}};z1.parseExport=function(Z,J){if(this.next(),this.eat(R.star)){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))Z.exported=this.parseModuleExportName(),this.checkExport(J,Z.exported,this.lastTokStart);else Z.exported=null;if(this.expectContextual("from"),this.type!==R.string)this.unexpected();return Z.source=this.parseExprAtom(),this.semicolon(),this.finishNode(Z,"ExportAllDeclaration")}if(this.eat(R._default)){this.checkExport(J,"default",this.lastTokStart);var q;if(this.type===R._function||(q=this.isAsyncFunction())){var Q=this.startNode();if(this.next(),q)this.next();Z.declaration=this.parseFunction(Q,Z0|BX,!1,q)}else if(this.type===R._class){var Y=this.startNode();Z.declaration=this.parseClass(Y,"nullableID")}else Z.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(Z,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement()){if(Z.declaration=this.parseStatement(null),Z.declaration.type==="VariableDeclaration")this.checkVariableExport(J,Z.declaration.declarations);else this.checkExport(J,Z.declaration.id,Z.declaration.id.start);Z.specifiers=[],Z.source=null}else{if(Z.declaration=null,Z.specifiers=this.parseExportSpecifiers(J),this.eatContextual("from")){if(this.type!==R.string)this.unexpected();Z.source=this.parseExprAtom()}else{for(var X=0,z=Z.specifiers;X<z.length;X+=1){var V=z[X];if(this.checkUnreserved(V.local),this.checkLocalExport(V.local),V.local.type==="Literal")this.raise(V.local.start,"A string literal cannot be used as an exported binding without `from`.")}Z.source=null}this.semicolon()}return this.finishNode(Z,"ExportNamedDeclaration")};z1.checkExport=function(Z,J,q){if(!Z)return;if(typeof J!=="string")J=J.type==="Identifier"?J.name:J.value;if(_0(Z,J))this.raiseRecoverable(q,"Duplicate export '"+J+"'");Z[J]=!0};z1.checkPatternExport=function(Z,J){var q=J.type;if(q==="Identifier")this.checkExport(Z,J,J.start);else if(q==="ObjectPattern")for(var Q=0,Y=J.properties;Q<Y.length;Q+=1){var X=Y[Q];this.checkPatternExport(Z,X)}else if(q==="ArrayPattern")for(var z=0,V=J.elements;z<V.length;z+=1){var W=V[z];if(W)this.checkPatternExport(Z,W)}else if(q==="Property")this.checkPatternExport(Z,J.value);else if(q==="AssignmentPattern")this.checkPatternExport(Z,J.left);else if(q==="RestElement")this.checkPatternExport(Z,J.argument);else if(q==="ParenthesizedExpression")this.checkPatternExport(Z,J.expression)};z1.checkVariableExport=function(Z,J){if(!Z)return;for(var q=0,Q=J;q<Q.length;q+=1){var Y=Q[q];this.checkPatternExport(Z,Y.id)}};z1.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};z1.parseExportSpecifiers=function(Z){var J=[],q=!0;this.expect(R.braceL);while(!this.eat(R.braceR)){if(!q){if(this.expect(R.comma),this.afterTrailingComma(R.braceR))break}else q=!1;var Q=this.startNode();Q.local=this.parseModuleExportName(),Q.exported=this.eatContextual("as")?this.parseModuleExportName():Q.local,this.checkExport(Z,Q.exported,Q.exported.start),J.push(this.finishNode(Q,"ExportSpecifier"))}return J};z1.parseImport=function(Z){if(this.next(),this.type===R.string)Z.specifiers=lM,Z.source=this.parseExprAtom();else Z.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),Z.source=this.type===R.string?this.parseExprAtom():this.unexpected();return this.semicolon(),this.finishNode(Z,"ImportDeclaration")};z1.parseImportSpecifiers=function(){var Z=[],J=!0;if(this.type===R.name){var q=this.startNode();if(q.local=this.parseIdent(),this.checkLValSimple(q.local,a5),Z.push(this.finishNode(q,"ImportDefaultSpecifier")),!this.eat(R.comma))return Z}if(this.type===R.star){var Q=this.startNode();return this.next(),this.expectContextual("as"),Q.local=this.parseIdent(),this.checkLValSimple(Q.local,a5),Z.push(this.finishNode(Q,"ImportNamespaceSpecifier")),Z}this.expect(R.braceL);while(!this.eat(R.braceR)){if(!J){if(this.expect(R.comma),this.afterTrailingComma(R.braceR))break}else J=!1;var Y=this.startNode();if(Y.imported=this.parseModuleExportName(),this.eatContextual("as"))Y.local=this.parseIdent();else this.checkUnreserved(Y.imported),Y.local=Y.imported;this.checkLValSimple(Y.local,a5),Z.push(this.finishNode(Y,"ImportSpecifier"))}return Z};z1.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===R.string){var Z=this.parseLiteral(this.value);if(hM.test(Z.value))this.raise(Z.start,"An export name cannot include a lone surrogate.");return Z}return this.parseIdent(!0)};z1.adaptDirectivePrologue=function(Z){for(var J=0;J<Z.length&&this.isDirectiveCandidate(Z[J]);++J)Z[J].directive=Z[J].expression.raw.slice(1,-1)};z1.isDirectiveCandidate=function(Z){return Z.type==="ExpressionStatement"&&Z.expression.type==="Literal"&&typeof Z.expression.value==="string"&&(this.input[Z.start]==='"'||this.input[Z.start]==="'")};y5=c1.prototype;y5.toAssignable=function(Z,J,q){if(this.options.ecmaVersion>=6&&Z)switch(Z.type){case"Identifier":if(this.inAsync&&Z.name==="await")this.raise(Z.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(Z.type="ObjectPattern",q)this.checkPatternErrors(q,!0);for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var X=Y[Q];if(this.toAssignable(X,J),X.type==="RestElement"&&(X.argument.type==="ArrayPattern"||X.argument.type==="ObjectPattern"))this.raise(X.argument.start,"Unexpected token")}break;case"Property":if(Z.kind!=="init")this.raise(Z.key.start,"Object pattern can't contain getter or setter");this.toAssignable(Z.value,J);break;case"ArrayExpression":if(Z.type="ArrayPattern",q)this.checkPatternErrors(q,!0);this.toAssignableList(Z.elements,J);break;case"SpreadElement":if(Z.type="RestElement",this.toAssignable(Z.argument,J),Z.argument.type==="AssignmentPattern")this.raise(Z.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(Z.operator!=="=")this.raise(Z.left.end,"Only '=' operator can be used for specifying default value.");Z.type="AssignmentPattern",delete Z.operator,this.toAssignable(Z.left,J);break;case"ParenthesizedExpression":this.toAssignable(Z.expression,J,q);break;case"ChainExpression":this.raiseRecoverable(Z.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!J)break;default:this.raise(Z.start,"Assigning to rvalue")}else if(q)this.checkPatternErrors(q,!0);return Z};y5.toAssignableList=function(Z,J){var q=Z.length;for(var Q=0;Q<q;Q++){var Y=Z[Q];if(Y)this.toAssignable(Y,J)}if(q){var X=Z[q-1];if(this.options.ecmaVersion===6&&J&&X&&X.type==="RestElement"&&X.argument.type!=="Identifier")this.unexpected(X.argument.start)}return Z};y5.parseSpread=function(Z){var J=this.startNode();return this.next(),J.argument=this.parseMaybeAssign(!1,Z),this.finishNode(J,"SpreadElement")};y5.parseRestBinding=function(){var Z=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==R.name)this.unexpected();return Z.argument=this.parseBindingAtom(),this.finishNode(Z,"RestElement")};y5.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case R.bracketL:var Z=this.startNode();return this.next(),Z.elements=this.parseBindingList(R.bracketR,!0,!0),this.finishNode(Z,"ArrayPattern");case R.braceL:return this.parseObj(!0)}return this.parseIdent()};y5.parseBindingList=function(Z,J,q){var Q=[],Y=!0;while(!this.eat(Z)){if(Y)Y=!1;else this.expect(R.comma);if(J&&this.type===R.comma)Q.push(null);else if(q&&this.afterTrailingComma(Z))break;else if(this.type===R.ellipsis){var X=this.parseRestBinding();if(this.parseBindingListItem(X),Q.push(X),this.type===R.comma)this.raise(this.start,"Comma is not permitted after the rest element");this.expect(Z);break}else{var z=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(z),Q.push(z)}}return Q};y5.parseBindingListItem=function(Z){return Z};y5.parseMaybeDefault=function(Z,J,q){if(q=q||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(R.eq))return q;var Q=this.startNodeAt(Z,J);return Q.left=q,Q.right=this.parseMaybeAssign(),this.finishNode(Q,"AssignmentPattern")};y5.checkLValSimple=function(Z,J,q){if(J===void 0)J=f4;var Q=J!==f4;switch(Z.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(Z.name))this.raiseRecoverable(Z.start,(Q?"Binding ":"Assigning to ")+Z.name+" in strict mode");if(Q){if(J===a5&&Z.name==="let")this.raiseRecoverable(Z.start,"let is disallowed as a lexically bound name");if(q){if(_0(q,Z.name))this.raiseRecoverable(Z.start,"Argument name clash");q[Z.name]=!0}if(J!==jX)this.declareName(Z.name,J,Z.start)}break;case"ChainExpression":this.raiseRecoverable(Z.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(Q)this.raiseRecoverable(Z.start,"Binding member expression");break;case"ParenthesizedExpression":if(Q)this.raiseRecoverable(Z.start,"Binding parenthesized expression");return this.checkLValSimple(Z.expression,J,q);default:this.raise(Z.start,(Q?"Binding":"Assigning to")+" rvalue")}};y5.checkLValPattern=function(Z,J,q){if(J===void 0)J=f4;switch(Z.type){case"ObjectPattern":for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var X=Y[Q];this.checkLValInnerPattern(X,J,q)}break;case"ArrayPattern":for(var z=0,V=Z.elements;z<V.length;z+=1){var W=V[z];if(W)this.checkLValInnerPattern(W,J,q)}break;default:this.checkLValSimple(Z,J,q)}};y5.checkLValInnerPattern=function(Z,J,q){if(J===void 0)J=f4;switch(Z.type){case"Property":this.checkLValInnerPattern(Z.value,J,q);break;case"AssignmentPattern":this.checkLValPattern(Z.left,J,q);break;case"RestElement":this.checkLValPattern(Z.argument,J,q);break;default:this.checkLValPattern(Z,J,q)}};y1={b_stat:new A5("{",!1),b_expr:new A5("{",!0),b_tmpl:new A5("${",!1),p_stat:new A5("(",!1),p_expr:new A5("(",!0),q_tmpl:new A5("`",!0,!0,function(Z){return Z.tryReadTemplateToken()}),f_stat:new A5("function",!1),f_expr:new A5("function",!0),f_expr_gen:new A5("function",!0,!1,null,!0),f_gen:new A5("function",!1,!1,null,!0)},M6=c1.prototype;M6.initialContext=function(){return[y1.b_stat]};M6.curContext=function(){return this.context[this.context.length-1]};M6.braceIsBlock=function(Z){var J=this.curContext();if(J===y1.f_expr||J===y1.f_stat)return!0;if(Z===R.colon&&(J===y1.b_stat||J===y1.b_expr))return!J.isExpr;if(Z===R._return||Z===R.name&&this.exprAllowed)return R5.test(this.input.slice(this.lastTokEnd,this.start));if(Z===R._else||Z===R.semi||Z===R.eof||Z===R.parenR||Z===R.arrow)return!0;if(Z===R.braceL)return J===y1.b_stat;if(Z===R._var||Z===R._const||Z===R.name)return!1;return!this.exprAllowed};M6.inGeneratorContext=function(){for(var Z=this.context.length-1;Z>=1;Z--){var J=this.context[Z];if(J.token==="function")return J.generator}return!1};M6.updateContext=function(Z){var J,q=this.type;if(q.keyword&&Z===R.dot)this.exprAllowed=!1;else if(J=q.updateContext)J.call(this,Z);else this.exprAllowed=q.beforeExpr};M6.overrideContext=function(Z){if(this.curContext()!==Z)this.context[this.context.length-1]=Z};R.parenR.updateContext=R.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var Z=this.context.pop();if(Z===y1.b_stat&&this.curContext().token==="function")Z=this.context.pop();this.exprAllowed=!Z.isExpr};R.braceL.updateContext=function(Z){this.context.push(this.braceIsBlock(Z)?y1.b_stat:y1.b_expr),this.exprAllowed=!0};R.dollarBraceL.updateContext=function(){this.context.push(y1.b_tmpl),this.exprAllowed=!0};R.parenL.updateContext=function(Z){var J=Z===R._if||Z===R._for||Z===R._with||Z===R._while;this.context.push(J?y1.p_stat:y1.p_expr),this.exprAllowed=!0};R.incDec.updateContext=function(){};R._function.updateContext=R._class.updateContext=function(Z){if(Z.beforeExpr&&Z!==R._else&&!(Z===R.semi&&this.curContext()!==y1.p_stat)&&!(Z===R._return&&R5.test(this.input.slice(this.lastTokEnd,this.start)))&&!((Z===R.colon||Z===R.braceL)&&this.curContext()===y1.b_stat))this.context.push(y1.f_expr);else this.context.push(y1.f_stat);this.exprAllowed=!1};R.backQuote.updateContext=function(){if(this.curContext()===y1.q_tmpl)this.context.pop();else this.context.push(y1.q_tmpl);this.exprAllowed=!1};R.star.updateContext=function(Z){if(Z===R._function){var J=this.context.length-1;if(this.context[J]===y1.f_expr)this.context[J]=y1.f_expr_gen;else this.context[J]=y1.f_gen}this.exprAllowed=!0};R.name.updateContext=function(Z){var J=!1;if(this.options.ecmaVersion>=6&&Z!==R.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())J=!0}this.exprAllowed=J};G1=c1.prototype;G1.checkPropClash=function(Z,J,q){if(this.options.ecmaVersion>=9&&Z.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(Z.computed||Z.method||Z.shorthand))return;var Q=Z.key,Y;switch(Q.type){case"Identifier":Y=Q.name;break;case"Literal":Y=String(Q.value);break;default:return}var X=Z.kind;if(this.options.ecmaVersion>=6){if(Y==="__proto__"&&X==="init"){if(J.proto)if(q){if(q.doubleProto<0)q.doubleProto=Q.start}else this.raiseRecoverable(Q.start,"Redefinition of __proto__ property");J.proto=!0}return}Y="$"+Y;var z=J[Y];if(z){var V;if(X==="init")V=this.strict&&z.init||z.get||z.set;else V=z.init||z[X];if(V)this.raiseRecoverable(Q.start,"Redefinition of property")}else z=J[Y]={init:!1,get:!1,set:!1};z[X]=!0};G1.parseExpression=function(Z,J){var q=this.start,Q=this.startLoc,Y=this.parseMaybeAssign(Z,J);if(this.type===R.comma){var X=this.startNodeAt(q,Q);X.expressions=[Y];while(this.eat(R.comma))X.expressions.push(this.parseMaybeAssign(Z,J));return this.finishNode(X,"SequenceExpression")}return Y};G1.parseMaybeAssign=function(Z,J,q){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(Z);else this.exprAllowed=!1;var Q=!1,Y=-1,X=-1,z=-1;if(J)Y=J.parenthesizedAssign,X=J.trailingComma,z=J.doubleProto,J.parenthesizedAssign=J.trailingComma=-1;else J=new W7,Q=!0;var V=this.start,W=this.startLoc;if(this.type===R.parenL||this.type===R.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=Z==="await";var K=this.parseMaybeConditional(Z,J);if(q)K=q.call(this,K,V,W);if(this.type.isAssign){var $=this.startNodeAt(V,W);if($.operator=this.value,this.type===R.eq)K=this.toAssignable(K,!1,J);if(!Q)J.parenthesizedAssign=J.trailingComma=J.doubleProto=-1;if(J.shorthandAssign>=K.start)J.shorthandAssign=-1;if(this.type===R.eq)this.checkLValPattern(K);else this.checkLValSimple(K);if($.left=K,this.next(),$.right=this.parseMaybeAssign(Z),z>-1)J.doubleProto=z;return this.finishNode($,"AssignmentExpression")}else if(Q)this.checkExpressionErrors(J,!0);if(Y>-1)J.parenthesizedAssign=Y;if(X>-1)J.trailingComma=X;return K};G1.parseMaybeConditional=function(Z,J){var q=this.start,Q=this.startLoc,Y=this.parseExprOps(Z,J);if(this.checkExpressionErrors(J))return Y;if(this.eat(R.question)){var X=this.startNodeAt(q,Q);return X.test=Y,X.consequent=this.parseMaybeAssign(),this.expect(R.colon),X.alternate=this.parseMaybeAssign(Z),this.finishNode(X,"ConditionalExpression")}return Y};G1.parseExprOps=function(Z,J){var q=this.start,Q=this.startLoc,Y=this.parseMaybeUnary(J,!1,!1,Z);if(this.checkExpressionErrors(J))return Y;return Y.start===q&&Y.type==="ArrowFunctionExpression"?Y:this.parseExprOp(Y,q,Q,-1,Z)};G1.parseExprOp=function(Z,J,q,Q,Y){var X=this.type.binop;if(X!=null&&(!Y||this.type!==R._in)){if(X>Q){var z=this.type===R.logicalOR||this.type===R.logicalAND,V=this.type===R.coalesce;if(V)X=R.logicalAND.binop;var W=this.value;this.next();var K=this.start,$=this.startLoc,H=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,Y),K,$,X,Y),M=this.buildBinary(J,q,Z,H,W,z||V);if(z&&this.type===R.coalesce||V&&(this.type===R.logicalOR||this.type===R.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(M,J,q,Q,Y)}}return Z};G1.buildBinary=function(Z,J,q,Q,Y,X){if(Q.type==="PrivateIdentifier")this.raise(Q.start,"Private identifier can only be left side of binary expression");var z=this.startNodeAt(Z,J);return z.left=q,z.operator=Y,z.right=Q,this.finishNode(z,X?"LogicalExpression":"BinaryExpression")};G1.parseMaybeUnary=function(Z,J,q,Q){var Y=this.start,X=this.startLoc,z;if(this.isContextual("await")&&this.canAwait)z=this.parseAwait(Q),J=!0;else if(this.type.prefix){var V=this.startNode(),W=this.type===R.incDec;if(V.operator=this.value,V.prefix=!0,this.next(),V.argument=this.parseMaybeUnary(null,!0,W,Q),this.checkExpressionErrors(Z,!0),W)this.checkLValSimple(V.argument);else if(this.strict&&V.operator==="delete"&&V.argument.type==="Identifier")this.raiseRecoverable(V.start,"Deleting local variable in strict mode");else if(V.operator==="delete"&&MX(V.argument))this.raiseRecoverable(V.start,"Private fields can not be deleted");else J=!0;z=this.finishNode(V,W?"UpdateExpression":"UnaryExpression")}else if(!J&&this.type===R.privateId){if(Q||this.privateNameStack.length===0)this.unexpected();if(z=this.parsePrivateIdent(),this.type!==R._in)this.unexpected()}else{if(z=this.parseExprSubscripts(Z,Q),this.checkExpressionErrors(Z))return z;while(this.type.postfix&&!this.canInsertSemicolon()){var K=this.startNodeAt(Y,X);K.operator=this.value,K.prefix=!1,K.argument=z,this.checkLValSimple(z),this.next(),z=this.finishNode(K,"UpdateExpression")}}if(!q&&this.eat(R.starstar))if(J)this.unexpected(this.lastTokStart);else return this.buildBinary(Y,X,z,this.parseMaybeUnary(null,!1,!1,Q),"**",!1);else return z};G1.parseExprSubscripts=function(Z,J){var q=this.start,Q=this.startLoc,Y=this.parseExprAtom(Z,J);if(Y.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return Y;var X=this.parseSubscripts(Y,q,Q,!1,J);if(Z&&X.type==="MemberExpression"){if(Z.parenthesizedAssign>=X.start)Z.parenthesizedAssign=-1;if(Z.parenthesizedBind>=X.start)Z.parenthesizedBind=-1;if(Z.trailingComma>=X.start)Z.trailingComma=-1}return X};G1.parseSubscripts=function(Z,J,q,Q,Y){var X=this.options.ecmaVersion>=8&&Z.type==="Identifier"&&Z.name==="async"&&this.lastTokEnd===Z.end&&!this.canInsertSemicolon()&&Z.end-Z.start===5&&this.potentialArrowAt===Z.start,z=!1;while(!0){var V=this.parseSubscript(Z,J,q,Q,X,z,Y);if(V.optional)z=!0;if(V===Z||V.type==="ArrowFunctionExpression"){if(z){var W=this.startNodeAt(J,q);W.expression=V,V=this.finishNode(W,"ChainExpression")}return V}Z=V}};G1.parseSubscript=function(Z,J,q,Q,Y,X,z){var V=this.options.ecmaVersion>=11,W=V&&this.eat(R.questionDot);if(Q&&W)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var K=this.eat(R.bracketL);if(K||W&&this.type!==R.parenL&&this.type!==R.backQuote||this.eat(R.dot)){var $=this.startNodeAt(J,q);if($.object=Z,K)$.property=this.parseExpression(),this.expect(R.bracketR);else if(this.type===R.privateId&&Z.type!=="Super")$.property=this.parsePrivateIdent();else $.property=this.parseIdent(this.options.allowReserved!=="never");if($.computed=!!K,V)$.optional=W;Z=this.finishNode($,"MemberExpression")}else if(!Q&&this.eat(R.parenL)){var H=new W7,M=this.yieldPos,O=this.awaitPos,j=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var L=this.parseExprList(R.parenR,this.options.ecmaVersion>=8,!1,H);if(Y&&!W&&!this.canInsertSemicolon()&&this.eat(R.arrow)){if(this.checkPatternErrors(H,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=M,this.awaitPos=O,this.awaitIdentPos=j,this.parseArrowExpression(this.startNodeAt(J,q),L,!0,z)}this.checkExpressionErrors(H,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=O||this.awaitPos,this.awaitIdentPos=j||this.awaitIdentPos;var I=this.startNodeAt(J,q);if(I.callee=Z,I.arguments=L,V)I.optional=W;Z=this.finishNode(I,"CallExpression")}else if(this.type===R.backQuote){if(W||X)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(J,q);y.tag=Z,y.quasi=this.parseTemplate({isTagged:!0}),Z=this.finishNode(y,"TaggedTemplateExpression")}return Z};G1.parseExprAtom=function(Z,J){if(this.type===R.slash)this.readRegexp();var q,Q=this.potentialArrowAt===this.start;switch(this.type){case R._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(q=this.startNode(),this.next(),this.type===R.parenL&&!this.allowDirectSuper)this.raise(q.start,"super() call outside constructor of a subclass");if(this.type!==R.dot&&this.type!==R.bracketL&&this.type!==R.parenL)this.unexpected();return this.finishNode(q,"Super");case R._this:return q=this.startNode(),this.next(),this.finishNode(q,"ThisExpression");case R.name:var Y=this.start,X=this.startLoc,z=this.containsEsc,V=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!z&&V.name==="async"&&!this.canInsertSemicolon()&&this.eat(R._function))return this.overrideContext(y1.f_expr),this.parseFunction(this.startNodeAt(Y,X),0,!1,!0,J);if(Q&&!this.canInsertSemicolon()){if(this.eat(R.arrow))return this.parseArrowExpression(this.startNodeAt(Y,X),[V],!1,J);if(this.options.ecmaVersion>=8&&V.name==="async"&&this.type===R.name&&!z&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(V=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(R.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(Y,X),[V],!0,J)}}return V;case R.regexp:var W=this.value;return q=this.parseLiteral(W.value),q.regex={pattern:W.pattern,flags:W.flags},q;case R.num:case R.string:return this.parseLiteral(this.value);case R._null:case R._true:case R._false:return q=this.startNode(),q.value=this.type===R._null?null:this.type===R._true,q.raw=this.type.keyword,this.next(),this.finishNode(q,"Literal");case R.parenL:var K=this.start,$=this.parseParenAndDistinguishExpression(Q,J);if(Z){if(Z.parenthesizedAssign<0&&!this.isSimpleAssignTarget($))Z.parenthesizedAssign=K;if(Z.parenthesizedBind<0)Z.parenthesizedBind=K}return $;case R.bracketL:return q=this.startNode(),this.next(),q.elements=this.parseExprList(R.bracketR,!0,!0,Z),this.finishNode(q,"ArrayExpression");case R.braceL:return this.overrideContext(y1.b_expr),this.parseObj(!1,Z);case R._function:return q=this.startNode(),this.next(),this.parseFunction(q,0);case R._class:return this.parseClass(this.startNode(),!1);case R._new:return this.parseNew();case R.backQuote:return this.parseTemplate();case R._import:if(this.options.ecmaVersion>=11)return this.parseExprImport();else return this.unexpected();default:this.unexpected()}};G1.parseExprImport=function(){var Z=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");var J=this.parseIdent(!0);switch(this.type){case R.parenL:return this.parseDynamicImport(Z);case R.dot:return Z.meta=J,this.parseImportMeta(Z);default:this.unexpected()}};G1.parseDynamicImport=function(Z){if(this.next(),Z.source=this.parseMaybeAssign(),!this.eat(R.parenR)){var J=this.start;if(this.eat(R.comma)&&this.eat(R.parenR))this.raiseRecoverable(J,"Trailing comma is not allowed in import()");else this.unexpected(J)}return this.finishNode(Z,"ImportExpression")};G1.parseImportMeta=function(Z){this.next();var J=this.containsEsc;if(Z.property=this.parseIdent(!0),Z.property.name!=="meta")this.raiseRecoverable(Z.property.start,"The only valid meta property for import is 'import.meta'");if(J)this.raiseRecoverable(Z.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(Z.start,"Cannot use 'import.meta' outside a module");return this.finishNode(Z,"MetaProperty")};G1.parseLiteral=function(Z){var J=this.startNode();if(J.value=Z,J.raw=this.input.slice(this.start,this.end),J.raw.charCodeAt(J.raw.length-1)===110)J.bigint=J.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(J,"Literal")};G1.parseParenExpression=function(){this.expect(R.parenL);var Z=this.parseExpression();return this.expect(R.parenR),Z};G1.parseParenAndDistinguishExpression=function(Z,J){var q=this.start,Q=this.startLoc,Y,X=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var z=this.start,V=this.startLoc,W=[],K=!0,$=!1,H=new W7,M=this.yieldPos,O=this.awaitPos,j;this.yieldPos=0,this.awaitPos=0;while(this.type!==R.parenR)if(K?K=!1:this.expect(R.comma),X&&this.afterTrailingComma(R.parenR,!0)){$=!0;break}else if(this.type===R.ellipsis){if(j=this.start,W.push(this.parseParenItem(this.parseRestBinding())),this.type===R.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else W.push(this.parseMaybeAssign(!1,H,this.parseParenItem));var L=this.lastTokEnd,I=this.lastTokEndLoc;if(this.expect(R.parenR),Z&&!this.canInsertSemicolon()&&this.eat(R.arrow))return this.checkPatternErrors(H,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=M,this.awaitPos=O,this.parseParenArrowList(q,Q,W,J);if(!W.length||$)this.unexpected(this.lastTokStart);if(j)this.unexpected(j);if(this.checkExpressionErrors(H,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=O||this.awaitPos,W.length>1)Y=this.startNodeAt(z,V),Y.expressions=W,this.finishNodeAt(Y,"SequenceExpression",L,I);else Y=W[0]}else Y=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(q,Q);return y.expression=Y,this.finishNode(y,"ParenthesizedExpression")}else return Y};G1.parseParenItem=function(Z){return Z};G1.parseParenArrowList=function(Z,J,q,Q){return this.parseArrowExpression(this.startNodeAt(Z,J),q,!1,Q)};pM=[];G1.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var Z=this.startNode(),J=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(R.dot)){Z.meta=J;var q=this.containsEsc;if(Z.property=this.parseIdent(!0),Z.property.name!=="target")this.raiseRecoverable(Z.property.start,"The only valid meta property for new is 'new.target'");if(q)this.raiseRecoverable(Z.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(Z.start,"'new.target' can only be used in functions and class static block");return this.finishNode(Z,"MetaProperty")}var Q=this.start,Y=this.startLoc,X=this.type===R._import;if(Z.callee=this.parseSubscripts(this.parseExprAtom(),Q,Y,!0,!1),X&&Z.callee.type==="ImportExpression")this.raise(Q,"Cannot use new with import()");if(this.eat(R.parenL))Z.arguments=this.parseExprList(R.parenR,this.options.ecmaVersion>=8,!1);else Z.arguments=pM;return this.finishNode(Z,"NewExpression")};G1.parseTemplateElement=function(Z){var J=Z.isTagged,q=this.startNode();if(this.type===R.invalidTemplate){if(!J)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");q.value={raw:this.value,cooked:null}}else q.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
43
|
+
`),cooked:this.value};return this.next(),q.tail=this.type===R.backQuote,this.finishNode(q,"TemplateElement")};G1.parseTemplate=function(Z){if(Z===void 0)Z={};var J=Z.isTagged;if(J===void 0)J=!1;var q=this.startNode();this.next(),q.expressions=[];var Q=this.parseTemplateElement({isTagged:J});q.quasis=[Q];while(!Q.tail){if(this.type===R.eof)this.raise(this.pos,"Unterminated template literal");this.expect(R.dollarBraceL),q.expressions.push(this.parseExpression()),this.expect(R.braceR),q.quasis.push(Q=this.parseTemplateElement({isTagged:J}))}return this.next(),this.finishNode(q,"TemplateLiteral")};G1.isAsyncProp=function(Z){return!Z.computed&&Z.key.type==="Identifier"&&Z.key.name==="async"&&(this.type===R.name||this.type===R.num||this.type===R.string||this.type===R.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===R.star)&&!R5.test(this.input.slice(this.lastTokEnd,this.start))};G1.parseObj=function(Z,J){var q=this.startNode(),Q=!0,Y={};q.properties=[],this.next();while(!this.eat(R.braceR)){if(!Q){if(this.expect(R.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(R.braceR))break}else Q=!1;var X=this.parseProperty(Z,J);if(!Z)this.checkPropClash(X,Y,J);q.properties.push(X)}return this.finishNode(q,Z?"ObjectPattern":"ObjectExpression")};G1.parseProperty=function(Z,J){var q=this.startNode(),Q,Y,X,z;if(this.options.ecmaVersion>=9&&this.eat(R.ellipsis)){if(Z){if(q.argument=this.parseIdent(!1),this.type===R.comma)this.raise(this.start,"Comma is not permitted after the rest element");return this.finishNode(q,"RestElement")}if(this.type===R.parenL&&J){if(J.parenthesizedAssign<0)J.parenthesizedAssign=this.start;if(J.parenthesizedBind<0)J.parenthesizedBind=this.start}if(q.argument=this.parseMaybeAssign(!1,J),this.type===R.comma&&J&&J.trailingComma<0)J.trailingComma=this.start;return this.finishNode(q,"SpreadElement")}if(this.options.ecmaVersion>=6){if(q.method=!1,q.shorthand=!1,Z||J)X=this.start,z=this.startLoc;if(!Z)Q=this.eat(R.star)}var V=this.containsEsc;if(this.parsePropertyName(q),!Z&&!V&&this.options.ecmaVersion>=8&&!Q&&this.isAsyncProp(q))Y=!0,Q=this.options.ecmaVersion>=9&&this.eat(R.star),this.parsePropertyName(q,J);else Y=!1;return this.parsePropertyValue(q,Z,Q,Y,X,z,J,V),this.finishNode(q,"Property")};G1.parsePropertyValue=function(Z,J,q,Q,Y,X,z,V){if((q||Q)&&this.type===R.colon)this.unexpected();if(this.eat(R.colon))Z.value=J?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,z),Z.kind="init";else if(this.options.ecmaVersion>=6&&this.type===R.parenL){if(J)this.unexpected();Z.kind="init",Z.method=!0,Z.value=this.parseMethod(q,Q)}else if(!J&&!V&&this.options.ecmaVersion>=5&&!Z.computed&&Z.key.type==="Identifier"&&(Z.key.name==="get"||Z.key.name==="set")&&(this.type!==R.comma&&this.type!==R.braceR&&this.type!==R.eq)){if(q||Q)this.unexpected();Z.kind=Z.key.name,this.parsePropertyName(Z),Z.value=this.parseMethod(!1);var W=Z.kind==="get"?0:1;if(Z.value.params.length!==W){var K=Z.value.start;if(Z.kind==="get")this.raiseRecoverable(K,"getter should have no params");else this.raiseRecoverable(K,"setter should have exactly one param")}else if(Z.kind==="set"&&Z.value.params[0].type==="RestElement")this.raiseRecoverable(Z.value.params[0].start,"Setter cannot use rest params")}else if(this.options.ecmaVersion>=6&&!Z.computed&&Z.key.type==="Identifier"){if(q||Q)this.unexpected();if(this.checkUnreserved(Z.key),Z.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=Y;if(Z.kind="init",J)Z.value=this.parseMaybeDefault(Y,X,this.copyNode(Z.key));else if(this.type===R.eq&&z){if(z.shorthandAssign<0)z.shorthandAssign=this.start;Z.value=this.parseMaybeDefault(Y,X,this.copyNode(Z.key))}else Z.value=this.copyNode(Z.key);Z.shorthand=!0}else this.unexpected()};G1.parsePropertyName=function(Z){if(this.options.ecmaVersion>=6)if(this.eat(R.bracketL))return Z.computed=!0,Z.key=this.parseMaybeAssign(),this.expect(R.bracketR),Z.key;else Z.computed=!1;return Z.key=this.type===R.num||this.type===R.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};G1.initFunction=function(Z){if(Z.id=null,this.options.ecmaVersion>=6)Z.generator=Z.expression=!1;if(this.options.ecmaVersion>=8)Z.async=!1};G1.parseMethod=function(Z,J,q){var Q=this.startNode(),Y=this.yieldPos,X=this.awaitPos,z=this.awaitIdentPos;if(this.initFunction(Q),this.options.ecmaVersion>=6)Q.generator=Z;if(this.options.ecmaVersion>=8)Q.async=!!J;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(V3(J,Q.generator)|X3|(q?$X:0)),this.expect(R.parenL),Q.params=this.parseBindingList(R.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Q,!1,!0,!1),this.yieldPos=Y,this.awaitPos=X,this.awaitIdentPos=z,this.finishNode(Q,"FunctionExpression")};G1.parseArrowExpression=function(Z,J,q,Q){var Y=this.yieldPos,X=this.awaitPos,z=this.awaitIdentPos;if(this.enterScope(V3(q,!1)|WX),this.initFunction(Z),this.options.ecmaVersion>=8)Z.async=!!q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,Z.params=this.toAssignableList(J,!0),this.parseFunctionBody(Z,!0,!1,Q),this.yieldPos=Y,this.awaitPos=X,this.awaitIdentPos=z,this.finishNode(Z,"ArrowFunctionExpression")};G1.parseFunctionBody=function(Z,J,q,Q){var Y=J&&this.type!==R.braceL,X=this.strict,z=!1;if(Y)Z.body=this.parseMaybeAssign(Q),Z.expression=!0,this.checkParams(Z,!1);else{var V=this.options.ecmaVersion>=7&&!this.isSimpleParamList(Z.params);if(!X||V){if(z=this.strictDirective(this.end),z&&V)this.raiseRecoverable(Z.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var W=this.labels;if(this.labels=[],z)this.strict=!0;if(this.checkParams(Z,!X&&!z&&!J&&!q&&this.isSimpleParamList(Z.params)),this.strict&&Z.id)this.checkLValSimple(Z.id,jX);Z.body=this.parseBlock(!1,void 0,z&&!X),Z.expression=!1,this.adaptDirectivePrologue(Z.body.body),this.labels=W}this.exitScope()};G1.isSimpleParamList=function(Z){for(var J=0,q=Z;J<q.length;J+=1){var Q=q[J];if(Q.type!=="Identifier")return!1}return!0};G1.checkParams=function(Z,J){var q=Object.create(null);for(var Q=0,Y=Z.params;Q<Y.length;Q+=1){var X=Y[Q];this.checkLValInnerPattern(X,W3,J?null:q)}};G1.parseExprList=function(Z,J,q,Q){var Y=[],X=!0;while(!this.eat(Z)){if(!X){if(this.expect(R.comma),J&&this.afterTrailingComma(Z))break}else X=!1;var z=void 0;if(q&&this.type===R.comma)z=null;else if(this.type===R.ellipsis){if(z=this.parseSpread(Q),Q&&this.type===R.comma&&Q.trailingComma<0)Q.trailingComma=this.start}else z=this.parseMaybeAssign(!1,Q);Y.push(z)}return Y};G1.checkUnreserved=function(Z){var{start:J,end:q,name:Q}=Z;if(this.inGenerator&&Q==="yield")this.raiseRecoverable(J,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&Q==="await")this.raiseRecoverable(J,"Cannot use 'await' as identifier inside an async function");if(this.currentThisScope().inClassFieldInit&&Q==="arguments")this.raiseRecoverable(J,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(Q==="arguments"||Q==="await"))this.raise(J,"Cannot use "+Q+" in class static initialization block");if(this.keywords.test(Q))this.raise(J,"Unexpected keyword '"+Q+"'");if(this.options.ecmaVersion<6&&this.input.slice(J,q).indexOf("\\")!==-1)return;var Y=this.strict?this.reservedWordsStrict:this.reservedWords;if(Y.test(Q)){if(!this.inAsync&&Q==="await")this.raiseRecoverable(J,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(J,"The keyword '"+Q+"' is reserved")}};G1.parseIdent=function(Z,J){var q=this.startNode();if(this.type===R.name)q.name=this.value;else if(this.type.keyword){if(q.name=this.type.keyword,(q.name==="class"||q.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop()}else this.unexpected();if(this.next(!!Z),this.finishNode(q,"Identifier"),!Z){if(this.checkUnreserved(q),q.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=q.start}return q};G1.parsePrivateIdent=function(){var Z=this.startNode();if(this.type===R.privateId)Z.name=this.value;else this.unexpected();if(this.next(),this.finishNode(Z,"PrivateIdentifier"),this.privateNameStack.length===0)this.raise(Z.start,"Private field '#"+Z.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(Z);return Z};G1.parseYield=function(Z){if(!this.yieldPos)this.yieldPos=this.start;var J=this.startNode();if(this.next(),this.type===R.semi||this.canInsertSemicolon()||this.type!==R.star&&!this.type.startsExpr)J.delegate=!1,J.argument=null;else J.delegate=this.eat(R.star),J.argument=this.parseMaybeAssign(Z);return this.finishNode(J,"YieldExpression")};G1.parseAwait=function(Z){if(!this.awaitPos)this.awaitPos=this.start;var J=this.startNode();return this.next(),J.argument=this.parseMaybeUnary(null,!0,!1,Z),this.finishNode(J,"AwaitExpression")};h4=c1.prototype;h4.raise=function(Z,J){var q=zX(this.input,Z);J+=" ("+q.line+":"+q.column+")";var Q=SyntaxError(J);throw Q.pos=Z,Q.loc=q,Q.raisedAt=this.pos,Q};h4.raiseRecoverable=h4.raise;h4.curPosition=function(){if(this.options.locations)return new B0(this.curLine,this.pos-this.lineStart)};U8=c1.prototype;U8.enterScope=function(Z){this.scopeStack.push(new iM(Z))};U8.exitScope=function(){this.scopeStack.pop()};U8.treatFunctionsAsVarInScope=function(Z){return Z.flags&B6||!this.inModule&&Z.flags&M0};U8.declareName=function(Z,J,q){var Q=!1;if(J===a5){var Y=this.currentScope();if(Q=Y.lexical.indexOf(Z)>-1||Y.functions.indexOf(Z)>-1||Y.var.indexOf(Z)>-1,Y.lexical.push(Z),this.inModule&&Y.flags&M0)delete this.undefinedExports[Z]}else if(J===UX){var X=this.currentScope();X.lexical.push(Z)}else if(J===GX){var z=this.currentScope();if(this.treatFunctionsAsVar)Q=z.lexical.indexOf(Z)>-1;else Q=z.lexical.indexOf(Z)>-1||z.var.indexOf(Z)>-1;z.functions.push(Z)}else for(var V=this.scopeStack.length-1;V>=0;--V){var W=this.scopeStack[V];if(W.lexical.indexOf(Z)>-1&&!(W.flags&KX&&W.lexical[0]===Z)||!this.treatFunctionsAsVarInScope(W)&&W.functions.indexOf(Z)>-1){Q=!0;break}if(W.var.push(Z),this.inModule&&W.flags&M0)delete this.undefinedExports[Z];if(W.flags&z3)break}if(Q)this.raiseRecoverable(q,"Identifier '"+Z+"' has already been declared")};U8.checkLocalExport=function(Z){if(this.scopeStack[0].lexical.indexOf(Z.name)===-1&&this.scopeStack[0].var.indexOf(Z.name)===-1)this.undefinedExports[Z.name]=Z};U8.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};U8.currentVarScope=function(){for(var Z=this.scopeStack.length-1;;Z--){var J=this.scopeStack[Z];if(J.flags&z3)return J}};U8.currentThisScope=function(){for(var Z=this.scopeStack.length-1;;Z--){var J=this.scopeStack[Z];if(J.flags&z3&&!(J.flags&WX))return J}};T0=c1.prototype;T0.startNode=function(){return new K7(this,this.start,this.startLoc)};T0.startNodeAt=function(Z,J){return new K7(this,Z,J)};T0.finishNode=function(Z,J){return HX.call(this,Z,J,this.lastTokEnd,this.lastTokEndLoc)};T0.finishNodeAt=function(Z,J,q,Q){return HX.call(this,Z,J,q,Q)};T0.copyNode=function(Z){var J=new K7(this,Z.start,this.startLoc);for(var q in Z)J[q]=Z[q];return J};LX=FX+" Extended_Pictographic",wX=LX,OX=wX+" EBase EComp EMod EPres ExtPict",nM=OX,aM={9:FX,10:LX,11:wX,12:OX,13:nM},RX=NX+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",CX=RX+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",IX=CX+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",sM=IX+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",rM={9:NX,10:RX,11:CX,12:IX,13:sM},_X={};for(r6=0,O4=[9,10,11,12,13];r6<O4.length;r6+=1)$Z=O4[r6],oM($Z);X1=c1.prototype;o5.prototype.reset=function(J,q,Q){var Y=Q.indexOf("u")!==-1;this.start=J|0,this.source=q+"",this.flags=Q,this.switchU=Y&&this.parser.options.ecmaVersion>=6,this.switchN=Y&&this.parser.options.ecmaVersion>=9};o5.prototype.raise=function(J){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+J)};o5.prototype.at=function(J,q){if(q===void 0)q=!1;var Q=this.source,Y=Q.length;if(J>=Y)return-1;var X=Q.charCodeAt(J);if(!(q||this.switchU)||X<=55295||X>=57344||J+1>=Y)return X;var z=Q.charCodeAt(J+1);return z>=56320&&z<=57343?(X<<10)+z-56613888:X};o5.prototype.nextIndex=function(J,q){if(q===void 0)q=!1;var Q=this.source,Y=Q.length;if(J>=Y)return Y;var X=Q.charCodeAt(J),z;if(!(q||this.switchU)||X<=55295||X>=57344||J+1>=Y||(z=Q.charCodeAt(J+1))<56320||z>57343)return J+1;return J+2};o5.prototype.current=function(J){if(J===void 0)J=!1;return this.at(this.pos,J)};o5.prototype.lookahead=function(J){if(J===void 0)J=!1;return this.at(this.nextIndex(this.pos,J),J)};o5.prototype.advance=function(J){if(J===void 0)J=!1;this.pos=this.nextIndex(this.pos,J)};o5.prototype.eat=function(J,q){if(q===void 0)q=!1;if(this.current(q)===J)return this.advance(q),!0;return!1};X1.validateRegExpFlags=function(Z){var{validFlags:J,flags:q}=Z;for(var Q=0;Q<q.length;Q++){var Y=q.charAt(Q);if(J.indexOf(Y)===-1)this.raise(Z.start,"Invalid regular expression flag");if(q.indexOf(Y,Q+1)>-1)this.raise(Z.start,"Duplicate regular expression flag")}};X1.validateRegExpPattern=function(Z){if(this.regexp_pattern(Z),!Z.switchN&&this.options.ecmaVersion>=9&&Z.groupNames.length>0)Z.switchN=!0,this.regexp_pattern(Z)};X1.regexp_pattern=function(Z){if(Z.pos=0,Z.lastIntValue=0,Z.lastStringValue="",Z.lastAssertionIsQuantifiable=!1,Z.numCapturingParens=0,Z.maxBackReference=0,Z.groupNames.length=0,Z.backReferenceNames.length=0,this.regexp_disjunction(Z),Z.pos!==Z.source.length){if(Z.eat(41))Z.raise("Unmatched ')'");if(Z.eat(93)||Z.eat(125))Z.raise("Lone quantifier brackets")}if(Z.maxBackReference>Z.numCapturingParens)Z.raise("Invalid escape");for(var J=0,q=Z.backReferenceNames;J<q.length;J+=1){var Q=q[J];if(Z.groupNames.indexOf(Q)===-1)Z.raise("Invalid named capture referenced")}};X1.regexp_disjunction=function(Z){this.regexp_alternative(Z);while(Z.eat(124))this.regexp_alternative(Z);if(this.regexp_eatQuantifier(Z,!0))Z.raise("Nothing to repeat");if(Z.eat(123))Z.raise("Lone quantifier brackets")};X1.regexp_alternative=function(Z){while(Z.pos<Z.source.length&&this.regexp_eatTerm(Z));};X1.regexp_eatTerm=function(Z){if(this.regexp_eatAssertion(Z)){if(Z.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(Z)){if(Z.switchU)Z.raise("Invalid quantifier")}return!0}if(Z.switchU?this.regexp_eatAtom(Z):this.regexp_eatExtendedAtom(Z))return this.regexp_eatQuantifier(Z),!0;return!1};X1.regexp_eatAssertion=function(Z){var J=Z.pos;if(Z.lastAssertionIsQuantifiable=!1,Z.eat(94)||Z.eat(36))return!0;if(Z.eat(92)){if(Z.eat(66)||Z.eat(98))return!0;Z.pos=J}if(Z.eat(40)&&Z.eat(63)){var q=!1;if(this.options.ecmaVersion>=9)q=Z.eat(60);if(Z.eat(61)||Z.eat(33)){if(this.regexp_disjunction(Z),!Z.eat(41))Z.raise("Unterminated group");return Z.lastAssertionIsQuantifiable=!q,!0}}return Z.pos=J,!1};X1.regexp_eatQuantifier=function(Z,J){if(J===void 0)J=!1;if(this.regexp_eatQuantifierPrefix(Z,J))return Z.eat(63),!0;return!1};X1.regexp_eatQuantifierPrefix=function(Z,J){return Z.eat(42)||Z.eat(43)||Z.eat(63)||this.regexp_eatBracedQuantifier(Z,J)};X1.regexp_eatBracedQuantifier=function(Z,J){var q=Z.pos;if(Z.eat(123)){var Q=0,Y=-1;if(this.regexp_eatDecimalDigits(Z)){if(Q=Z.lastIntValue,Z.eat(44)&&this.regexp_eatDecimalDigits(Z))Y=Z.lastIntValue;if(Z.eat(125)){if(Y!==-1&&Y<Q&&!J)Z.raise("numbers out of order in {} quantifier");return!0}}if(Z.switchU&&!J)Z.raise("Incomplete quantifier");Z.pos=q}return!1};X1.regexp_eatAtom=function(Z){return this.regexp_eatPatternCharacters(Z)||Z.eat(46)||this.regexp_eatReverseSolidusAtomEscape(Z)||this.regexp_eatCharacterClass(Z)||this.regexp_eatUncapturingGroup(Z)||this.regexp_eatCapturingGroup(Z)};X1.regexp_eatReverseSolidusAtomEscape=function(Z){var J=Z.pos;if(Z.eat(92)){if(this.regexp_eatAtomEscape(Z))return!0;Z.pos=J}return!1};X1.regexp_eatUncapturingGroup=function(Z){var J=Z.pos;if(Z.eat(40)){if(Z.eat(63)&&Z.eat(58)){if(this.regexp_disjunction(Z),Z.eat(41))return!0;Z.raise("Unterminated group")}Z.pos=J}return!1};X1.regexp_eatCapturingGroup=function(Z){if(Z.eat(40)){if(this.options.ecmaVersion>=9)this.regexp_groupSpecifier(Z);else if(Z.current()===63)Z.raise("Invalid group");if(this.regexp_disjunction(Z),Z.eat(41))return Z.numCapturingParens+=1,!0;Z.raise("Unterminated group")}return!1};X1.regexp_eatExtendedAtom=function(Z){return Z.eat(46)||this.regexp_eatReverseSolidusAtomEscape(Z)||this.regexp_eatCharacterClass(Z)||this.regexp_eatUncapturingGroup(Z)||this.regexp_eatCapturingGroup(Z)||this.regexp_eatInvalidBracedQuantifier(Z)||this.regexp_eatExtendedPatternCharacter(Z)};X1.regexp_eatInvalidBracedQuantifier=function(Z){if(this.regexp_eatBracedQuantifier(Z,!0))Z.raise("Nothing to repeat");return!1};X1.regexp_eatSyntaxCharacter=function(Z){var J=Z.current();if(DX(J))return Z.lastIntValue=J,Z.advance(),!0;return!1};X1.regexp_eatPatternCharacters=function(Z){var J=Z.pos,q=0;while((q=Z.current())!==-1&&!DX(q))Z.advance();return Z.pos!==J};X1.regexp_eatExtendedPatternCharacter=function(Z){var J=Z.current();if(J!==-1&&J!==36&&!(J>=40&&J<=43)&&J!==46&&J!==63&&J!==91&&J!==94&&J!==124)return Z.advance(),!0;return!1};X1.regexp_groupSpecifier=function(Z){if(Z.eat(63)){if(this.regexp_eatGroupName(Z)){if(Z.groupNames.indexOf(Z.lastStringValue)!==-1)Z.raise("Duplicate capture group name");Z.groupNames.push(Z.lastStringValue);return}Z.raise("Invalid group")}};X1.regexp_eatGroupName=function(Z){if(Z.lastStringValue="",Z.eat(60)){if(this.regexp_eatRegExpIdentifierName(Z)&&Z.eat(62))return!0;Z.raise("Invalid capture group name")}return!1};X1.regexp_eatRegExpIdentifierName=function(Z){if(Z.lastStringValue="",this.regexp_eatRegExpIdentifierStart(Z)){Z.lastStringValue+=K8(Z.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(Z))Z.lastStringValue+=K8(Z.lastIntValue);return!0}return!1};X1.regexp_eatRegExpIdentifierStart=function(Z){var J=Z.pos,q=this.options.ecmaVersion>=11,Q=Z.current(q);if(Z.advance(q),Q===92&&this.regexp_eatRegExpUnicodeEscapeSequence(Z,q))Q=Z.lastIntValue;if(tM(Q))return Z.lastIntValue=Q,!0;return Z.pos=J,!1};X1.regexp_eatRegExpIdentifierPart=function(Z){var J=Z.pos,q=this.options.ecmaVersion>=11,Q=Z.current(q);if(Z.advance(q),Q===92&&this.regexp_eatRegExpUnicodeEscapeSequence(Z,q))Q=Z.lastIntValue;if(eM(Q))return Z.lastIntValue=Q,!0;return Z.pos=J,!1};X1.regexp_eatAtomEscape=function(Z){if(this.regexp_eatBackReference(Z)||this.regexp_eatCharacterClassEscape(Z)||this.regexp_eatCharacterEscape(Z)||Z.switchN&&this.regexp_eatKGroupName(Z))return!0;if(Z.switchU){if(Z.current()===99)Z.raise("Invalid unicode escape");Z.raise("Invalid escape")}return!1};X1.regexp_eatBackReference=function(Z){var J=Z.pos;if(this.regexp_eatDecimalEscape(Z)){var q=Z.lastIntValue;if(Z.switchU){if(q>Z.maxBackReference)Z.maxBackReference=q;return!0}if(q<=Z.numCapturingParens)return!0;Z.pos=J}return!1};X1.regexp_eatKGroupName=function(Z){if(Z.eat(107)){if(this.regexp_eatGroupName(Z))return Z.backReferenceNames.push(Z.lastStringValue),!0;Z.raise("Invalid named reference")}return!1};X1.regexp_eatCharacterEscape=function(Z){return this.regexp_eatControlEscape(Z)||this.regexp_eatCControlLetter(Z)||this.regexp_eatZero(Z)||this.regexp_eatHexEscapeSequence(Z)||this.regexp_eatRegExpUnicodeEscapeSequence(Z,!1)||!Z.switchU&&this.regexp_eatLegacyOctalEscapeSequence(Z)||this.regexp_eatIdentityEscape(Z)};X1.regexp_eatCControlLetter=function(Z){var J=Z.pos;if(Z.eat(99)){if(this.regexp_eatControlLetter(Z))return!0;Z.pos=J}return!1};X1.regexp_eatZero=function(Z){if(Z.current()===48&&!$7(Z.lookahead()))return Z.lastIntValue=0,Z.advance(),!0;return!1};X1.regexp_eatControlEscape=function(Z){var J=Z.current();if(J===116)return Z.lastIntValue=9,Z.advance(),!0;if(J===110)return Z.lastIntValue=10,Z.advance(),!0;if(J===118)return Z.lastIntValue=11,Z.advance(),!0;if(J===102)return Z.lastIntValue=12,Z.advance(),!0;if(J===114)return Z.lastIntValue=13,Z.advance(),!0;return!1};X1.regexp_eatControlLetter=function(Z){var J=Z.current();if(TX(J))return Z.lastIntValue=J%32,Z.advance(),!0;return!1};X1.regexp_eatRegExpUnicodeEscapeSequence=function(Z,J){if(J===void 0)J=!1;var q=Z.pos,Q=J||Z.switchU;if(Z.eat(117)){if(this.regexp_eatFixedHexDigits(Z,4)){var Y=Z.lastIntValue;if(Q&&Y>=55296&&Y<=56319){var X=Z.pos;if(Z.eat(92)&&Z.eat(117)&&this.regexp_eatFixedHexDigits(Z,4)){var z=Z.lastIntValue;if(z>=56320&&z<=57343)return Z.lastIntValue=(Y-55296)*1024+(z-56320)+65536,!0}Z.pos=X,Z.lastIntValue=Y}return!0}if(Q&&Z.eat(123)&&this.regexp_eatHexDigits(Z)&&Z.eat(125)&&ZH(Z.lastIntValue))return!0;if(Q)Z.raise("Invalid unicode escape");Z.pos=q}return!1};X1.regexp_eatIdentityEscape=function(Z){if(Z.switchU){if(this.regexp_eatSyntaxCharacter(Z))return!0;if(Z.eat(47))return Z.lastIntValue=47,!0;return!1}var J=Z.current();if(J!==99&&(!Z.switchN||J!==107))return Z.lastIntValue=J,Z.advance(),!0;return!1};X1.regexp_eatDecimalEscape=function(Z){Z.lastIntValue=0;var J=Z.current();if(J>=49&&J<=57){do Z.lastIntValue=10*Z.lastIntValue+(J-48),Z.advance();while((J=Z.current())>=48&&J<=57);return!0}return!1};X1.regexp_eatCharacterClassEscape=function(Z){var J=Z.current();if(JH(J))return Z.lastIntValue=-1,Z.advance(),!0;if(Z.switchU&&this.options.ecmaVersion>=9&&(J===80||J===112)){if(Z.lastIntValue=-1,Z.advance(),Z.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(Z)&&Z.eat(125))return!0;Z.raise("Invalid property name")}return!1};X1.regexp_eatUnicodePropertyValueExpression=function(Z){var J=Z.pos;if(this.regexp_eatUnicodePropertyName(Z)&&Z.eat(61)){var q=Z.lastStringValue;if(this.regexp_eatUnicodePropertyValue(Z)){var Q=Z.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(Z,q,Q),!0}}if(Z.pos=J,this.regexp_eatLoneUnicodePropertyNameOrValue(Z)){var Y=Z.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(Z,Y),!0}return!1};X1.regexp_validateUnicodePropertyNameAndValue=function(Z,J,q){if(!_0(Z.unicodeProperties.nonBinary,J))Z.raise("Invalid property name");if(!Z.unicodeProperties.nonBinary[J].test(q))Z.raise("Invalid property value")};X1.regexp_validateUnicodePropertyNameOrValue=function(Z,J){if(!Z.unicodeProperties.binary.test(J))Z.raise("Invalid property name")};X1.regexp_eatUnicodePropertyName=function(Z){var J=0;Z.lastStringValue="";while(AX(J=Z.current()))Z.lastStringValue+=K8(J),Z.advance();return Z.lastStringValue!==""};X1.regexp_eatUnicodePropertyValue=function(Z){var J=0;Z.lastStringValue="";while(qH(J=Z.current()))Z.lastStringValue+=K8(J),Z.advance();return Z.lastStringValue!==""};X1.regexp_eatLoneUnicodePropertyNameOrValue=function(Z){return this.regexp_eatUnicodePropertyValue(Z)};X1.regexp_eatCharacterClass=function(Z){if(Z.eat(91)){if(Z.eat(94),this.regexp_classRanges(Z),Z.eat(93))return!0;Z.raise("Unterminated character class")}return!1};X1.regexp_classRanges=function(Z){while(this.regexp_eatClassAtom(Z)){var J=Z.lastIntValue;if(Z.eat(45)&&this.regexp_eatClassAtom(Z)){var q=Z.lastIntValue;if(Z.switchU&&(J===-1||q===-1))Z.raise("Invalid character class");if(J!==-1&&q!==-1&&J>q)Z.raise("Range out of order in character class")}}};X1.regexp_eatClassAtom=function(Z){var J=Z.pos;if(Z.eat(92)){if(this.regexp_eatClassEscape(Z))return!0;if(Z.switchU){var q=Z.current();if(q===99||yX(q))Z.raise("Invalid class escape");Z.raise("Invalid escape")}Z.pos=J}var Q=Z.current();if(Q!==93)return Z.lastIntValue=Q,Z.advance(),!0;return!1};X1.regexp_eatClassEscape=function(Z){var J=Z.pos;if(Z.eat(98))return Z.lastIntValue=8,!0;if(Z.switchU&&Z.eat(45))return Z.lastIntValue=45,!0;if(!Z.switchU&&Z.eat(99)){if(this.regexp_eatClassControlLetter(Z))return!0;Z.pos=J}return this.regexp_eatCharacterClassEscape(Z)||this.regexp_eatCharacterEscape(Z)};X1.regexp_eatClassControlLetter=function(Z){var J=Z.current();if($7(J)||J===95)return Z.lastIntValue=J%32,Z.advance(),!0;return!1};X1.regexp_eatHexEscapeSequence=function(Z){var J=Z.pos;if(Z.eat(120)){if(this.regexp_eatFixedHexDigits(Z,2))return!0;if(Z.switchU)Z.raise("Invalid escape");Z.pos=J}return!1};X1.regexp_eatDecimalDigits=function(Z){var J=Z.pos,q=0;Z.lastIntValue=0;while($7(q=Z.current()))Z.lastIntValue=10*Z.lastIntValue+(q-48),Z.advance();return Z.pos!==J};X1.regexp_eatHexDigits=function(Z){var J=Z.pos,q=0;Z.lastIntValue=0;while(PX(q=Z.current()))Z.lastIntValue=16*Z.lastIntValue+SX(q),Z.advance();return Z.pos!==J};X1.regexp_eatLegacyOctalEscapeSequence=function(Z){if(this.regexp_eatOctalDigit(Z)){var J=Z.lastIntValue;if(this.regexp_eatOctalDigit(Z)){var q=Z.lastIntValue;if(J<=3&&this.regexp_eatOctalDigit(Z))Z.lastIntValue=J*64+q*8+Z.lastIntValue;else Z.lastIntValue=J*8+q}else Z.lastIntValue=J;return!0}return!1};X1.regexp_eatOctalDigit=function(Z){var J=Z.current();if(yX(J))return Z.lastIntValue=J-48,Z.advance(),!0;return Z.lastIntValue=0,!1};X1.regexp_eatFixedHexDigits=function(Z,J){var q=Z.pos;Z.lastIntValue=0;for(var Q=0;Q<J;++Q){var Y=Z.current();if(!PX(Y))return Z.pos=q,!1;Z.lastIntValue=16*Z.lastIntValue+SX(Y),Z.advance()}return!0};H1=c1.prototype;H1.next=function(Z){if(!Z&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new $3(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};H1.getToken=function(){return this.next(),new $3(this)};if(typeof Symbol<"u")H1[Symbol.iterator]=function(){var Z=this;return{next:function(){var J=Z.getToken();return{done:J.type===R.eof,value:J}}}};H1.nextToken=function(){var Z=this.curContext();if(!Z||!Z.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(R.eof);if(Z.override)return Z.override(this);else this.readToken(this.fullCharCodeAtPos())};H1.readToken=function(Z){if(r5(Z,this.options.ecmaVersion>=6)||Z===92)return this.readWord();return this.getTokenFromCode(Z)};H1.fullCharCodeAtPos=function(){var Z=this.input.charCodeAt(this.pos);if(Z<=55295||Z>=56320)return Z;var J=this.input.charCodeAt(this.pos+1);return J<=56319||J>=57344?Z:(Z<<10)+J-56613888};H1.skipBlockComment=function(){var Z=this.options.onComment&&this.curPosition(),J=this.pos,q=this.input.indexOf("*/",this.pos+=2);if(q===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=q+2,this.options.locations)for(var Q=void 0,Y=J;(Q=QX(this.input,Y,this.pos))>-1;)++this.curLine,Y=this.lineStart=Q;if(this.options.onComment)this.options.onComment(!0,this.input.slice(J+2,q),J,this.pos,Z,this.curPosition())};H1.skipLineComment=function(Z){var J=this.pos,q=this.options.onComment&&this.curPosition(),Q=this.input.charCodeAt(this.pos+=Z);while(this.pos<this.input.length&&!j6(Q))Q=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(J+Z,this.pos),J,this.pos,q,this.curPosition())};H1.skipSpace=function(){Z:while(this.pos<this.input.length){var Z=this.input.charCodeAt(this.pos);switch(Z){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10)++this.pos;case 10:case 8232:case 8233:if(++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 Z}break;default:if(Z>8&&Z<14||Z>=5760&&YX.test(String.fromCharCode(Z)))++this.pos;else break Z}}};H1.finishToken=function(Z,J){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var q=this.type;this.type=Z,this.value=J,this.updateContext(q)};H1.readToken_dot=function(){var Z=this.input.charCodeAt(this.pos+1);if(Z>=48&&Z<=57)return this.readNumber(!0);var J=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&Z===46&&J===46)return this.pos+=3,this.finishToken(R.ellipsis);else return++this.pos,this.finishToken(R.dot)};H1.readToken_slash=function(){var Z=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(Z===61)return this.finishOp(R.assign,2);return this.finishOp(R.slash,1)};H1.readToken_mult_modulo_exp=function(Z){var J=this.input.charCodeAt(this.pos+1),q=1,Q=Z===42?R.star:R.modulo;if(this.options.ecmaVersion>=7&&Z===42&&J===42)++q,Q=R.starstar,J=this.input.charCodeAt(this.pos+2);if(J===61)return this.finishOp(R.assign,q+1);return this.finishOp(Q,q)};H1.readToken_pipe_amp=function(Z){var J=this.input.charCodeAt(this.pos+1);if(J===Z){if(this.options.ecmaVersion>=12){var q=this.input.charCodeAt(this.pos+2);if(q===61)return this.finishOp(R.assign,3)}return this.finishOp(Z===124?R.logicalOR:R.logicalAND,2)}if(J===61)return this.finishOp(R.assign,2);return this.finishOp(Z===124?R.bitwiseOR:R.bitwiseAND,1)};H1.readToken_caret=function(){var Z=this.input.charCodeAt(this.pos+1);if(Z===61)return this.finishOp(R.assign,2);return this.finishOp(R.bitwiseXOR,1)};H1.readToken_plus_min=function(Z){var J=this.input.charCodeAt(this.pos+1);if(J===Z){if(J===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||R5.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(R.incDec,2)}if(J===61)return this.finishOp(R.assign,2);return this.finishOp(R.plusMin,1)};H1.readToken_lt_gt=function(Z){var J=this.input.charCodeAt(this.pos+1),q=1;if(J===Z){if(q=Z===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+q)===61)return this.finishOp(R.assign,q+1);return this.finishOp(R.bitShift,q)}if(J===33&&Z===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45)return this.skipLineComment(4),this.skipSpace(),this.nextToken();if(J===61)q=2;return this.finishOp(R.relational,q)};H1.readToken_eq_excl=function(Z){var J=this.input.charCodeAt(this.pos+1);if(J===61)return this.finishOp(R.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(Z===61&&J===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(R.arrow);return this.finishOp(Z===61?R.eq:R.prefix,1)};H1.readToken_question=function(){var Z=this.options.ecmaVersion;if(Z>=11){var J=this.input.charCodeAt(this.pos+1);if(J===46){var q=this.input.charCodeAt(this.pos+2);if(q<48||q>57)return this.finishOp(R.questionDot,2)}if(J===63){if(Z>=12){var Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(R.assign,3)}return this.finishOp(R.coalesce,2)}}return this.finishOp(R.question,1)};H1.readToken_numberSign=function(){var Z=this.options.ecmaVersion,J=35;if(Z>=13){if(++this.pos,J=this.fullCharCodeAtPos(),r5(J,!0)||J===92)return this.finishToken(R.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+K8(J)+"'")};H1.getTokenFromCode=function(Z){switch(Z){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(R.parenL);case 41:return++this.pos,this.finishToken(R.parenR);case 59:return++this.pos,this.finishToken(R.semi);case 44:return++this.pos,this.finishToken(R.comma);case 91:return++this.pos,this.finishToken(R.bracketL);case 93:return++this.pos,this.finishToken(R.bracketR);case 123:return++this.pos,this.finishToken(R.braceL);case 125:return++this.pos,this.finishToken(R.braceR);case 58:return++this.pos,this.finishToken(R.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(R.backQuote);case 48:var J=this.input.charCodeAt(this.pos+1);if(J===120||J===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(J===111||J===79)return this.readRadixNumber(8);if(J===98||J===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(Z);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(Z);case 124:case 38:return this.readToken_pipe_amp(Z);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(Z);case 60:case 62:return this.readToken_lt_gt(Z);case 61:case 33:return this.readToken_eq_excl(Z);case 63:return this.readToken_question();case 126:return this.finishOp(R.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+K8(Z)+"'")};H1.finishOp=function(Z,J){var q=this.input.slice(this.pos,this.pos+J);return this.pos+=J,this.finishToken(Z,q)};H1.readRegexp=function(){var Z,J,q=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(q,"Unterminated regular expression");var Q=this.input.charAt(this.pos);if(R5.test(Q))this.raise(q,"Unterminated regular expression");if(!Z){if(Q==="[")J=!0;else if(Q==="]"&&J)J=!1;else if(Q==="/"&&!J)break;Z=Q==="\\"}else Z=!1;++this.pos}var Y=this.input.slice(q,this.pos);++this.pos;var X=this.pos,z=this.readWord1();if(this.containsEsc)this.unexpected(X);var V=this.regexpState||(this.regexpState=new o5(this));V.reset(q,Y,z),this.validateRegExpFlags(V),this.validateRegExpPattern(V);var W=null;try{W=new RegExp(Y,z)}catch(K){}return this.finishToken(R.regexp,{pattern:Y,flags:z,value:W})};H1.readInt=function(Z,J,q){var Q=this.options.ecmaVersion>=12&&J===void 0,Y=q&&this.input.charCodeAt(this.pos)===48,X=this.pos,z=0,V=0;for(var W=0,K=J==null?1/0:J;W<K;++W,++this.pos){var $=this.input.charCodeAt(this.pos),H=void 0;if(Q&&$===95){if(Y)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(V===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(W===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");V=$;continue}if($>=97)H=$-97+10;else if($>=65)H=$-65+10;else if($>=48&&$<=57)H=$-48;else H=1/0;if(H>=Z)break;V=$,z=z*Z+H}if(Q&&V===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===X||J!=null&&this.pos-X!==J)return null;return z};H1.readRadixNumber=function(Z){var J=this.pos;this.pos+=2;var q=this.readInt(Z);if(q==null)this.raise(this.start+2,"Expected number in radix "+Z);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)q=EX(this.input.slice(J,this.pos)),++this.pos;else if(r5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(R.num,q)};H1.readNumber=function(Z){var J=this.pos;if(!Z&&this.readInt(10,void 0,!0)===null)this.raise(J,"Invalid number");var q=this.pos-J>=2&&this.input.charCodeAt(J)===48;if(q&&this.strict)this.raise(J,"Invalid number");var Q=this.input.charCodeAt(this.pos);if(!q&&!Z&&this.options.ecmaVersion>=11&&Q===110){var Y=EX(this.input.slice(J,this.pos));if(++this.pos,r5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(R.num,Y)}if(q&&/[89]/.test(this.input.slice(J,this.pos)))q=!1;if(Q===46&&!q)++this.pos,this.readInt(10),Q=this.input.charCodeAt(this.pos);if((Q===69||Q===101)&&!q){if(Q=this.input.charCodeAt(++this.pos),Q===43||Q===45)++this.pos;if(this.readInt(10)===null)this.raise(J,"Invalid number")}if(r5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var X=QH(this.input.slice(J,this.pos),q);return this.finishToken(R.num,X)};H1.readCodePoint=function(){var Z=this.input.charCodeAt(this.pos),J;if(Z===123){if(this.options.ecmaVersion<6)this.unexpected();var q=++this.pos;if(J=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,J>1114111)this.invalidStringToken(q,"Code point out of bounds")}else J=this.readHexChar(4);return J};H1.readString=function(Z){var J="",q=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var Q=this.input.charCodeAt(this.pos);if(Q===Z)break;if(Q===92)J+=this.input.slice(q,this.pos),J+=this.readEscapedChar(!1),q=this.pos;else if(Q===8232||Q===8233){if(this.options.ecmaVersion<10)this.raise(this.start,"Unterminated string constant");if(++this.pos,this.options.locations)this.curLine++,this.lineStart=this.pos}else{if(j6(Q))this.raise(this.start,"Unterminated string constant");++this.pos}}return J+=this.input.slice(q,this.pos++),this.finishToken(R.string,J)};bX={};H1.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(Z){if(Z===bX)this.readInvalidTemplateToken();else throw Z}this.inTemplateElement=!1};H1.invalidStringToken=function(Z,J){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw bX;else this.raise(Z,J)};H1.readTmplToken=function(){var Z="",J=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var q=this.input.charCodeAt(this.pos);if(q===96||q===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===R.template||this.type===R.invalidTemplate))if(q===36)return this.pos+=2,this.finishToken(R.dollarBraceL);else return++this.pos,this.finishToken(R.backQuote);return Z+=this.input.slice(J,this.pos),this.finishToken(R.template,Z)}if(q===92)Z+=this.input.slice(J,this.pos),Z+=this.readEscapedChar(!0),J=this.pos;else if(j6(q)){switch(Z+=this.input.slice(J,this.pos),++this.pos,q){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:Z+=`
|
|
44
|
+
`;break;default:Z+=String.fromCharCode(q);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;J=this.pos}else++this.pos}};H1.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(R.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")};H1.readEscapedChar=function(Z){var J=this.input.charCodeAt(++this.pos);switch(++this.pos,J){case 110:return`
|
|
45
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return K8(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(Z){var q=this.pos-1;return this.invalidStringToken(q,"Invalid escape sequence in template string"),null}default:if(J>=48&&J<=55){var Q=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],Y=parseInt(Q,8);if(Y>255)Q=Q.slice(0,-1),Y=parseInt(Q,8);if(this.pos+=Q.length-1,J=this.input.charCodeAt(this.pos),(Q!=="0"||J===56||J===57)&&(this.strict||Z))this.invalidStringToken(this.pos-1-Q.length,Z?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(Y)}if(j6(J))return"";return String.fromCharCode(J)}};H1.readHexChar=function(Z){var J=this.pos,q=this.readInt(16,Z);if(q===null)this.invalidStringToken(J,"Bad character escape sequence");return q};H1.readWord1=function(){this.containsEsc=!1;var Z="",J=!0,q=this.pos,Q=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var Y=this.fullCharCodeAtPos();if($6(Y,Q))this.pos+=Y<=65535?1:2;else if(Y===92){this.containsEsc=!0,Z+=this.input.slice(q,this.pos);var X=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var z=this.readCodePoint();if(!(J?r5:$6)(z,Q))this.invalidStringToken(X,"Invalid Unicode escape");Z+=K8(z),q=this.pos}else break;J=!1}return Z+this.input.slice(q,this.pos)};H1.readWord=function(){var Z=this.readWord1(),J=R.name;if(this.keywords.test(Z))J=Q3[Z];return this.finishToken(J,Z)};c1.acorn={Parser:c1,version:YH,defaultOptions:WZ,Position:B0,SourceLocation:V7,getLineInfo:zX,Node:K7,TokenType:C1,tokTypes:R,keywordTypes:Q3,TokContext:A5,tokContexts:y1,isIdentifierChar:$6,isIdentifierStart:r5,Token:$3,isNewLine:j6,lineBreak:R5,lineBreakG:kM,nonASCIIwhitespace:YX};VH=[{active:!0,deprecated:"resolveAssetUrl",replacement:"resolveFileUrl"}];GH={delete(){return!1},get(){return},has(){return!1},set(){}};kX=class kX extends EZ{constructor(){super();this.parent=null,this.variables.set("undefined",new oZ)}findVariable(Z){let J=this.variables.get(Z);if(!J)J=new o4(Z),this.variables.set(Z,J);return J}};RH={buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1},CH=Object.keys(RH);u4=new sG;u4.setMaxListeners(0);jZ.on(m4,()=>u4.emit(m4));PH={recommended:{annotations:!0,correctVarValueBeforeDeclaration:!1,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!1},safest:{annotations:!0,correctVarValueBeforeDeclaration:!0,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0},smallest:{annotations:!0,correctVarValueBeforeDeclaration:!1,moduleSideEffects:()=>!1,propertyReadSideEffects:!1,tryCatchDeoptimization:!1,unknownGlobalSideEffects:!1}},SH={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}};iH=/[\x00-\x1F\x7F<>*#"{}|^[\]`;?:&=+$,]/g,nH=/^[a-z]:/i;z2=new Set(["auto","esModule","default","defaultOnly",!0,!1]);(function(Z){Z[Z.ENTRY_CHUNK=0]="ENTRY_CHUNK",Z[Z.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",Z[Z.ASSET=2]="ASSET"})(J0||(J0={}))});var oX=U1((IF)=>{function nX(Z,J,q){throw Error(q?`No known conditions for "${J}" specifier in "${Z}" package`:`Missing "${J}" specifier in "${Z}" package`)}function aX(Z,J,q,Q){let Y,X,z=H3(Z,q),V=function(K){let $=new Set(["default",...K.conditions||[]]);return K.unsafe||$.add(K.require?"require":"import"),K.unsafe||$.add(K.browser?"browser":"node"),$}(Q||{}),W=J[z];if(W===void 0){let K,$,H,M;for(M in J)$&&M.length<$.length||(M[M.length-1]==="/"&&z.startsWith(M)?(X=z.substring(M.length),$=M):M.length>1&&(H=M.indexOf("*",1),~H&&(K=RegExp("^"+M.substring(0,H)+"(.*)"+M.substring(1+H)+"$").exec(z),K&&K[1]&&(X=K[1],$=M))));W=J[$]}return W||nX(Z,z),Y=M3(W,V),Y||nX(Z,z,1),X&&function(K,$){let H,M=0,O=K.length,j=/[*]/g,L=/[/]$/;for(;M<O;M++)K[M]=j.test(H=K[M])?H.replace(j,$):L.test(H)?H+$:H}(Y,X),Y}function H3(Z,J,q){if(Z===J||J===".")return".";let Q=Z+"/",Y=Q.length,X=J.slice(0,Y)===Q,z=X?J.slice(Y):J;return z[0]==="#"?z:X||!q?z.slice(0,2)==="./"?z:"./"+z:z}function M3(Z,J,q){if(Z){if(typeof Z=="string")return q&&q.add(Z),[Z];let Q,Y;if(Array.isArray(Z)){for(Y=q||new Set,Q=0;Q<Z.length;Q++)M3(Z[Q],J,Y);if(!q&&Y.size)return[...Y]}else for(Q in Z)if(J.has(Q))return M3(Z[Q],J,q)}}function RF(Z,J={}){let q,Q=0,Y=J.browser,X=J.fields||["module","main"],z=typeof Y=="string";for(Y&&!X.includes("browser")&&(X.unshift("browser"),z&&(Y=H3(Z.name,Y,!0)));Q<X.length;Q++)if(q=Z[X[Q]]){if(typeof q=="string");else{if(typeof q!="object"||X[Q]!="browser")continue;if(z&&(q=q[Y],q==null))return Y}return typeof q=="string"?"./"+q.replace(/^\.?\//,""):q}}function sX(Z,J,q){let Q,Y=Z.exports;if(Y){if(typeof Y=="string")Y={".":Y};else for(Q in Y){Q[0]!=="."&&(Y={".":Y});break}return aX(Z.name,Y,J||".",q)}}function rX(Z,J,q){if(Z.imports)return aX(Z.name,Z.imports,J,q)}function CF(Z,J,q){return(J=H3(Z.name,J||"."))[0]==="#"?rX(Z,J,q):sX(Z,J,q)}IF.exports=sX;IF.imports=rX;IF.legacy=RF;IF.resolve=CF});var A0=U1((hI,eX)=>{var PF=a1("path"),tX={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},SF={...tX,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"},yF={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};eX.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:yF,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:PF.sep,extglobChars(Z){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${Z.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(Z){return Z===!0?SF:tX}}});var G7=U1((hF)=>{var EF=a1("path"),bF=process.platform==="win32",{REGEX_BACKSLASH:xF,REGEX_REMOVE_BACKSLASH:kF,REGEX_SPECIAL_CHARS:fF,REGEX_SPECIAL_CHARS_GLOBAL:vF}=A0();hF.isObject=(Z)=>Z!==null&&typeof Z==="object"&&!Array.isArray(Z);hF.hasRegexChars=(Z)=>fF.test(Z);hF.isRegexChar=(Z)=>Z.length===1&&hF.hasRegexChars(Z);hF.escapeRegex=(Z)=>Z.replace(vF,"\\$1");hF.toPosixSlashes=(Z)=>Z.replace(xF,"/");hF.removeBackslashes=(Z)=>{return Z.replace(kF,(J)=>{return J==="\\"?"":J})};hF.supportsLookbehinds=()=>{let Z=process.version.slice(1).split(".").map(Number);if(Z.length===3&&Z[0]>=9||Z[0]===8&&Z[1]>=10)return!0;return!1};hF.isWindows=(Z)=>{if(Z&&typeof Z.windows==="boolean")return Z.windows;return bF===!0||EF.sep==="\\"};hF.escapeLast=(Z,J,q)=>{let Q=Z.lastIndexOf(J,q);if(Q===-1)return Z;if(Z[Q-1]==="\\")return hF.escapeLast(Z,J,Q-1);return`${Z.slice(0,Q)}\\${Z.slice(Q)}`};hF.removePrefix=(Z,J={})=>{let q=Z;if(q.startsWith("./"))q=q.slice(2),J.prefix="./";return q};hF.wrapOutput=(Z,J={},q={})=>{let Q=q.contains?"":"^",Y=q.contains?"":"$",X=`${Q}(?:${Z})${Y}`;if(J.negated===!0)X=`(?:^(?!${X}).*$)`;return X}});var Kz=U1((mI,Wz)=>{var qz=G7(),{CHAR_ASTERISK:F3,CHAR_AT:aF,CHAR_BACKWARD_SLASH:P0,CHAR_COMMA:sF,CHAR_DOT:L3,CHAR_EXCLAMATION_MARK:w3,CHAR_FORWARD_SLASH:Vz,CHAR_LEFT_CURLY_BRACE:O3,CHAR_LEFT_PARENTHESES:N3,CHAR_LEFT_SQUARE_BRACKET:rF,CHAR_PLUS:oF,CHAR_QUESTION_MARK:Qz,CHAR_RIGHT_CURLY_BRACE:tF,CHAR_RIGHT_PARENTHESES:Yz,CHAR_RIGHT_SQUARE_BRACKET:eF}=A0(),Xz=(Z)=>{return Z===Vz||Z===P0},zz=(Z)=>{if(Z.isPrefix!==!0)Z.depth=Z.isGlobstar?1/0:1},ZL=(Z,J)=>{let q=J||{},Q=Z.length-1,Y=q.parts===!0||q.scanToEnd===!0,X=[],z=[],V=[],W=Z,K=-1,$=0,H=0,M=!1,O=!1,j=!1,L=!1,I=!1,y=!1,_=!1,T=!1,g=!1,h=!1,u=0,E,N,P={value:"",depth:0,isGlob:!1},A=()=>K>=Q,B=()=>W.charCodeAt(K+1),b=()=>{return E=N,W.charCodeAt(++K)};while(K<Q){N=b();let d;if(N===P0){if(_=P.backslashes=!0,N=b(),N===O3)y=!0;continue}if(y===!0||N===O3){u++;while(A()!==!0&&(N=b())){if(N===P0){_=P.backslashes=!0,b();continue}if(N===O3){u++;continue}if(y!==!0&&N===L3&&(N=b())===L3){if(M=P.isBrace=!0,j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(y!==!0&&N===sF){if(M=P.isBrace=!0,j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===tF){if(u--,u===0){y=!1,M=P.isBrace=!0,h=!0;break}}}if(Y===!0)continue;break}if(N===Vz){if(X.push(K),z.push(P),P={value:"",depth:0,isGlob:!1},h===!0)continue;if(E===L3&&K===$+1){$+=2;continue}H=K+1;continue}if(q.noext!==!0){if((N===oF||N===aF||N===F3||N===Qz||N===w3)===!0&&B()===N3){if(j=P.isGlob=!0,L=P.isExtglob=!0,h=!0,N===w3&&K===$)g=!0;if(Y===!0){while(A()!==!0&&(N=b())){if(N===P0){_=P.backslashes=!0,N=b();continue}if(N===Yz){j=P.isGlob=!0,h=!0;break}}continue}break}}if(N===F3){if(E===F3)I=P.isGlobstar=!0;if(j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===Qz){if(j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===rF){while(A()!==!0&&(d=b())){if(d===P0){_=P.backslashes=!0,b();continue}if(d===eF){O=P.isBracket=!0,j=P.isGlob=!0,h=!0;break}}if(Y===!0)continue;break}if(q.nonegate!==!0&&N===w3&&K===$){T=P.negated=!0,$++;continue}if(q.noparen!==!0&&N===N3){if(j=P.isGlob=!0,Y===!0){while(A()!==!0&&(N=b())){if(N===N3){_=P.backslashes=!0,N=b();continue}if(N===Yz){h=!0;break}}continue}break}if(j===!0){if(h=!0,Y===!0)continue;break}}if(q.noext===!0)L=!1,j=!1;let k=W,S="",G="";if($>0)S=W.slice(0,$),W=W.slice($),H-=$;if(k&&j===!0&&H>0)k=W.slice(0,H),G=W.slice(H);else if(j===!0)k="",G=W;else k=W;if(k&&k!==""&&k!=="/"&&k!==W){if(Xz(k.charCodeAt(k.length-1)))k=k.slice(0,-1)}if(q.unescape===!0){if(G)G=qz.removeBackslashes(G);if(k&&_===!0)k=qz.removeBackslashes(k)}let F={prefix:S,input:Z,start:$,base:k,glob:G,isBrace:M,isBracket:O,isGlob:j,isExtglob:L,isGlobstar:I,negated:T,negatedExtglob:g};if(q.tokens===!0){if(F.maxDepth=0,!Xz(N))z.push(P);F.tokens=z}if(q.parts===!0||q.tokens===!0){let d;for(let f=0;f<X.length;f++){let o=d?d+1:$,t=X[f],Q1=Z.slice(o,t);if(q.tokens){if(f===0&&$!==0)z[f].isPrefix=!0,z[f].value=S;else z[f].value=Q1;zz(z[f]),F.maxDepth+=z[f].depth}if(f!==0||Q1!=="")V.push(Q1);d=t}if(d&&d+1<Z.length){let f=Z.slice(d+1);if(V.push(f),q.tokens)z[z.length-1].value=f,zz(z[z.length-1]),F.maxDepth+=z[z.length-1].depth}F.slashes=X,F.parts=V}return F};Wz.exports=ZL});var Bz=U1((uI,jz)=>{var S0=A0(),J5=G7(),{MAX_LENGTH:U7,POSIX_REGEX_SOURCE:JL,REGEX_NON_SPECIAL_CHARS:qL,REGEX_SPECIAL_CHARS_BACKREF:QL,REPLACEMENTS:$z}=S0,YL=(Z,J)=>{if(typeof J.expandRange==="function")return J.expandRange(...Z,J);Z.sort();let q=`[${Z.join("-")}]`;try{new RegExp(q)}catch(Q){return Z.map((Y)=>J5.escapeRegex(Y)).join("..")}return q},F6=(Z,J)=>{return`Missing ${Z}: "${J}" - use "\\\\${J}" to match literal characters`},Gz=(Z)=>{let J=[],q=0,Q=0,Y=0,X="",z=!1;for(let V of Z){if(z===!0){X+=V,z=!1;continue}if(V==="\\"){X+=V,z=!0;continue}if(V==='"'){Y=Y===1?0:1,X+=V;continue}if(Y===0){if(V==="[")q++;else if(V==="]"&&q>0)q--;else if(q===0){if(V==="(")Q++;else if(V===")"&&Q>0)Q--;else if(V==="|"&&Q===0){J.push(X),X="";continue}}}X+=V}return J.push(X),J},XL=(Z)=>{let J=!1;for(let q of Z){if(J===!0){J=!1;continue}if(q==="\\"){J=!0;continue}if(/[?*+@!()[\]{}]/.test(q))return!1}return!0},Uz=(Z)=>{let J=Z.trim(),q=!0;while(q===!0)if(q=!1,/^@\([^\\()[\]{}|]+\)$/.test(J))J=J.slice(2,-1),q=!0;if(!XL(J))return;return J.replace(/\\(.)/g,"$1")},zL=(Z)=>{let J=Z.map(Uz).filter(Boolean);for(let q=0;q<J.length;q++)for(let Q=q+1;Q<J.length;Q++){let Y=J[q],X=J[Q],z=Y[0];if(!z||Y!==z.repeat(Y.length)||X!==z.repeat(X.length))continue;if(Y===X||Y.startsWith(X)||X.startsWith(Y))return!0}return!1},R3=(Z,J=!0)=>{if(Z[0]!=="+"&&Z[0]!=="*"||Z[1]!=="(")return;let q=0,Q=0,Y=0,X=!1;for(let z=1;z<Z.length;z++){let V=Z[z];if(X===!0){X=!1;continue}if(V==="\\"){X=!0;continue}if(V==='"'){Y=Y===1?0:1;continue}if(Y===1)continue;if(V==="["){q++;continue}if(V==="]"&&q>0){q--;continue}if(q>0)continue;if(V==="("){Q++;continue}if(V===")"){if(Q--,Q===0){if(J===!0&&z!==Z.length-1)return;return{type:Z[0],body:Z.slice(2,z),end:z}}}}},VL=(Z)=>{let J=0,q=[];while(J<Z.length){let Y=R3(Z.slice(J),!1);if(!Y||Y.type!=="*")return;let X=Gz(Y.body).map((V)=>V.trim());if(X.length!==1)return;let z=Uz(X[0]);if(!z||z.length!==1)return;q.push(z),J+=Y.end+1}if(q.length<1)return;return`${q.length===1?J5.escapeRegex(q[0]):`[${q.map((Y)=>J5.escapeRegex(Y)).join("")}]`}*`},WL=(Z)=>{let J=0,q=Z.trim(),Q=R3(q);while(Q)J++,q=Q.body.trim(),Q=R3(q);return J},KL=(Z,J)=>{if(J.maxExtglobRecursion===!1)return{risky:!1};let q=typeof J.maxExtglobRecursion==="number"?J.maxExtglobRecursion:S0.DEFAULT_MAX_EXTGLOB_RECURSION,Q=Gz(Z).map((Y)=>Y.trim());if(Q.length>1){if(Q.some((Y)=>Y==="")||Q.some((Y)=>/^[*?]+$/.test(Y))||zL(Q))return{risky:!0}}for(let Y of Q){let X=VL(Y);if(X)return{risky:!0,safeOutput:X};if(WL(Y)>q)return{risky:!0}}return{risky:!1}},C3=(Z,J)=>{if(typeof Z!=="string")throw TypeError("Expected a string");Z=$z[Z]||Z;let q={...J},Q=typeof q.maxLength==="number"?Math.min(U7,q.maxLength):U7,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);let X={type:"bos",value:"",output:q.prepend||""},z=[X],V=q.capture?"":"?:",W=J5.isWindows(J),K=S0.globChars(W),$=S0.extglobChars(K),{DOT_LITERAL:H,PLUS_LITERAL:M,SLASH_LITERAL:O,ONE_CHAR:j,DOTS_SLASH:L,NO_DOT:I,NO_DOT_SLASH:y,NO_DOTS_SLASH:_,QMARK:T,QMARK_NO_DOT:g,STAR:h,START_ANCHOR:u}=K,E=(D)=>{return`(${V}(?:(?!${u}${D.dot?L:H}).)*?)`},N=q.dot?"":I,P=q.dot?T:g,A=q.bash===!0?E(q):h;if(q.capture)A=`(${A})`;if(typeof q.noext==="boolean")q.noextglob=q.noext;let B={input:Z,index:-1,start:0,dot:q.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:z};Z=J5.removePrefix(Z,B),Y=Z.length;let b=[],k=[],S=[],G=X,F,d=()=>B.index===Y-1,f=B.peek=(D=1)=>Z[B.index+D],o=B.advance=()=>Z[++B.index]||"",t=()=>Z.slice(B.index+1),Q1=(D="",x=0)=>{B.consumed+=D,B.index+=x},N1=(D)=>{B.output+=D.output!=null?D.output:D.value,Q1(D.value)},R1=()=>{let D=1;while(f()==="!"&&(f(2)!=="("||f(3)==="?"))o(),B.start++,D++;if(D%2===0)return!1;return B.negated=!0,B.start++,!0},F1=(D)=>{B[D]++,S.push(D)},s=(D)=>{B[D]--,S.pop()},m=(D)=>{if(G.type==="globstar"){let x=B.braces>0&&(D.type==="comma"||D.type==="brace"),C=D.extglob===!0||b.length&&(D.type==="pipe"||D.type==="paren");if(D.type!=="slash"&&D.type!=="paren"&&!x&&!C)B.output=B.output.slice(0,-G.output.length),G.type="star",G.value="*",G.output=A,B.output+=G.output}if(b.length&&D.type!=="paren")b[b.length-1].inner+=D.value;if(D.value||D.output)N1(D);if(G&&G.type==="text"&&D.type==="text"){G.value+=D.value,G.output=(G.output||"")+D.value;return}D.prev=G,z.push(D),G=D},L1=(D,x)=>{let C={...$[x],conditions:1,inner:""};C.prev=G,C.parens=B.parens,C.output=B.output,C.startIndex=B.index,C.tokensIndex=z.length;let v=(q.capture?"(":"")+C.open;F1("parens"),m({type:D,value:x,output:B.output?"":j}),m({type:"paren",extglob:!0,value:o(),output:v}),b.push(C)},p=(D)=>{let x=Z.slice(D.startIndex,B.index+1),C=Z.slice(D.startIndex+2,B.index),v=KL(C,q);if((D.type==="plus"||D.type==="star")&&v.risky){let i=v.safeOutput?(D.output?"":j)+(q.capture?`(${v.safeOutput})`:v.safeOutput):void 0,B1=z[D.tokensIndex];B1.type="text",B1.value=x,B1.output=i||J5.escapeRegex(x);for(let _1=D.tokensIndex+1;_1<z.length;_1++)z[_1].value="",z[_1].output="",delete z[_1].suffix;B.output=D.output+B1.output,B.backtrack=!0,m({type:"paren",extglob:!0,value:F,output:""}),s("parens");return}let c=D.close+(q.capture?")":""),n;if(D.type==="negate"){let i=A;if(D.inner&&D.inner.length>1&&D.inner.includes("/"))i=E(q);if(i!==A||d()||/^\)+$/.test(t()))c=D.close=`)$))${i}`;if(D.inner.includes("*")&&(n=t())&&/^\.[^\\/.]+$/.test(n)){let B1=C3(n,{...J,fastpaths:!1}).output;c=D.close=`)${B1})${i})`}if(D.prev.type==="bos")B.negatedExtglob=!0}m({type:"paren",extglob:!0,value:F,output:c}),s("parens")};if(q.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let D=!1,x=Z.replace(QL,(C,v,c,n,i,B1)=>{if(n==="\\")return D=!0,C;if(n==="?"){if(v)return v+n+(i?T.repeat(i.length):"");if(B1===0)return P+(i?T.repeat(i.length):"");return T.repeat(c.length)}if(n===".")return H.repeat(c.length);if(n==="*"){if(v)return v+n+(i?A:"");return A}return v?C:`\\${C}`});if(D===!0)if(q.unescape===!0)x=x.replace(/\\/g,"");else x=x.replace(/\\+/g,(C)=>{return C.length%2===0?"\\\\":C?"\\":""});if(x===Z&&q.contains===!0)return B.output=Z,B;return B.output=J5.wrapOutput(x,B,J),B}while(!d()){if(F=o(),F==="\x00")continue;if(F==="\\"){let C=f();if(C==="/"&&q.bash!==!0)continue;if(C==="."||C===";")continue;if(!C){F+="\\",m({type:"text",value:F});continue}let v=/^\\+/.exec(t()),c=0;if(v&&v[0].length>2){if(c=v[0].length,B.index+=c,c%2!==0)F+="\\"}if(q.unescape===!0)F=o();else F+=o();if(B.brackets===0){m({type:"text",value:F});continue}}if(B.brackets>0&&(F!=="]"||G.value==="["||G.value==="[^")){if(q.posix!==!1&&F===":"){let C=G.value.slice(1);if(C.includes("[")){if(G.posix=!0,C.includes(":")){let v=G.value.lastIndexOf("["),c=G.value.slice(0,v),n=G.value.slice(v+2),i=JL[n];if(i){if(G.value=c+i,B.backtrack=!0,o(),!X.output&&z.indexOf(G)===1)X.output=j;continue}}}}if(F==="["&&f()!==":"||F==="-"&&f()==="]")F=`\\${F}`;if(F==="]"&&(G.value==="["||G.value==="[^"))F=`\\${F}`;if(q.posix===!0&&F==="!"&&G.value==="[")F="^";G.value+=F,N1({value:F});continue}if(B.quotes===1&&F!=='"'){F=J5.escapeRegex(F),G.value+=F,N1({value:F});continue}if(F==='"'){if(B.quotes=B.quotes===1?0:1,q.keepQuotes===!0)m({type:"text",value:F});continue}if(F==="("){F1("parens"),m({type:"paren",value:F});continue}if(F===")"){if(B.parens===0&&q.strictBrackets===!0)throw SyntaxError(F6("opening","("));let C=b[b.length-1];if(C&&B.parens===C.parens+1){p(b.pop());continue}m({type:"paren",value:F,output:B.parens?")":"\\)"}),s("parens");continue}if(F==="["){if(q.nobracket===!0||!t().includes("]")){if(q.nobracket!==!0&&q.strictBrackets===!0)throw SyntaxError(F6("closing","]"));F=`\\${F}`}else F1("brackets");m({type:"bracket",value:F});continue}if(F==="]"){if(q.nobracket===!0||G&&G.type==="bracket"&&G.value.length===1){m({type:"text",value:F,output:`\\${F}`});continue}if(B.brackets===0){if(q.strictBrackets===!0)throw SyntaxError(F6("opening","["));m({type:"text",value:F,output:`\\${F}`});continue}s("brackets");let C=G.value.slice(1);if(G.posix!==!0&&C[0]==="^"&&!C.includes("/"))F=`/${F}`;if(G.value+=F,N1({value:F}),q.literalBrackets===!1||J5.hasRegexChars(C))continue;let v=J5.escapeRegex(G.value);if(B.output=B.output.slice(0,-G.value.length),q.literalBrackets===!0){B.output+=v,G.value=v;continue}G.value=`(${V}${v}|${G.value})`,B.output+=G.value;continue}if(F==="{"&&q.nobrace!==!0){F1("braces");let C={type:"brace",value:F,output:"(",outputIndex:B.output.length,tokensIndex:B.tokens.length};k.push(C),m(C);continue}if(F==="}"){let C=k[k.length-1];if(q.nobrace===!0||!C){m({type:"text",value:F,output:F});continue}let v=")";if(C.dots===!0){let c=z.slice(),n=[];for(let i=c.length-1;i>=0;i--){if(z.pop(),c[i].type==="brace")break;if(c[i].type!=="dots")n.unshift(c[i].value)}v=YL(n,q),B.backtrack=!0}if(C.comma!==!0&&C.dots!==!0){let c=B.output.slice(0,C.outputIndex),n=B.tokens.slice(C.tokensIndex);C.value=C.output="\\{",F=v="\\}",B.output=c;for(let i of n)B.output+=i.output||i.value}m({type:"brace",value:F,output:v}),s("braces"),k.pop();continue}if(F==="|"){if(b.length>0)b[b.length-1].conditions++;m({type:"text",value:F});continue}if(F===","){let C=F,v=k[k.length-1];if(v&&S[S.length-1]==="braces")v.comma=!0,C="|";m({type:"comma",value:F,output:C});continue}if(F==="/"){if(G.type==="dot"&&B.index===B.start+1){B.start=B.index+1,B.consumed="",B.output="",z.pop(),G=X;continue}m({type:"slash",value:F,output:O});continue}if(F==="."){if(B.braces>0&&G.type==="dot"){if(G.value===".")G.output=H;let C=k[k.length-1];G.type="dots",G.output+=F,G.value+=F,C.dots=!0;continue}if(B.braces+B.parens===0&&G.type!=="bos"&&G.type!=="slash"){m({type:"text",value:F,output:H});continue}m({type:"dot",value:F,output:H});continue}if(F==="?"){if(!(G&&G.value==="(")&&q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("qmark",F);continue}if(G&&G.type==="paren"){let v=f(),c=F;if(v==="<"&&!J5.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(G.value==="("&&!/[!=<:]/.test(v)||v==="<"&&!/<([!=]|\w+>)/.test(t()))c=`\\${F}`;m({type:"text",value:F,output:c});continue}if(q.dot!==!0&&(G.type==="slash"||G.type==="bos")){m({type:"qmark",value:F,output:g});continue}m({type:"qmark",value:F,output:T});continue}if(F==="!"){if(q.noextglob!==!0&&f()==="("){if(f(2)!=="?"||!/[!=<:]/.test(f(3))){L1("negate",F);continue}}if(q.nonegate!==!0&&B.index===0){R1();continue}}if(F==="+"){if(q.noextglob!==!0&&f()==="("&&f(2)!=="?"){L1("plus",F);continue}if(G&&G.value==="("||q.regex===!1){m({type:"plus",value:F,output:M});continue}if(G&&(G.type==="bracket"||G.type==="paren"||G.type==="brace")||B.parens>0){m({type:"plus",value:F});continue}m({type:"plus",value:M});continue}if(F==="@"){if(q.noextglob!==!0&&f()==="("&&f(2)!=="?"){m({type:"at",extglob:!0,value:F,output:""});continue}m({type:"text",value:F});continue}if(F!=="*"){if(F==="$"||F==="^")F=`\\${F}`;let C=qL.exec(t());if(C)F+=C[0],B.index+=C[0].length;m({type:"text",value:F});continue}if(G&&(G.type==="globstar"||G.star===!0)){G.type="star",G.star=!0,G.value+=F,G.output=A,B.backtrack=!0,B.globstar=!0,Q1(F);continue}let D=t();if(q.noextglob!==!0&&/^\([^?]/.test(D)){L1("star",F);continue}if(G.type==="star"){if(q.noglobstar===!0){Q1(F);continue}let C=G.prev,v=C.prev,c=C.type==="slash"||C.type==="bos",n=v&&(v.type==="star"||v.type==="globstar");if(q.bash===!0&&(!c||D[0]&&D[0]!=="/")){m({type:"star",value:F,output:""});continue}let i=B.braces>0&&(C.type==="comma"||C.type==="brace"),B1=b.length&&(C.type==="pipe"||C.type==="paren");if(!c&&C.type!=="paren"&&!i&&!B1){m({type:"star",value:F,output:""});continue}while(D.slice(0,3)==="/**"){let _1=Z[B.index+4];if(_1&&_1!=="/")break;D=D.slice(3),Q1("/**",3)}if(C.type==="bos"&&d()){G.type="globstar",G.value+=F,G.output=E(q),B.output=G.output,B.globstar=!0,Q1(F);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&!n&&d()){B.output=B.output.slice(0,-(C.output+G.output).length),C.output=`(?:${C.output}`,G.type="globstar",G.output=E(q)+(q.strictSlashes?")":"|$)"),G.value+=F,B.globstar=!0,B.output+=C.output+G.output,Q1(F);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&D[0]==="/"){let _1=D[1]!==void 0?"|$":"";B.output=B.output.slice(0,-(C.output+G.output).length),C.output=`(?:${C.output}`,G.type="globstar",G.output=`${E(q)}${O}|${O}${_1})`,G.value+=F,B.output+=C.output+G.output,B.globstar=!0,Q1(F+o()),m({type:"slash",value:"/",output:""});continue}if(C.type==="bos"&&D[0]==="/"){G.type="globstar",G.value+=F,G.output=`(?:^|${O}|${E(q)}${O})`,B.output=G.output,B.globstar=!0,Q1(F+o()),m({type:"slash",value:"/",output:""});continue}B.output=B.output.slice(0,-G.output.length),G.type="globstar",G.output=E(q),G.value+=F,B.output+=G.output,B.globstar=!0,Q1(F);continue}let x={type:"star",value:F,output:A};if(q.bash===!0){if(x.output=".*?",G.type==="bos"||G.type==="slash")x.output=N+x.output;m(x);continue}if(G&&(G.type==="bracket"||G.type==="paren")&&q.regex===!0){x.output=F,m(x);continue}if(B.index===B.start||G.type==="slash"||G.type==="dot"){if(G.type==="dot")B.output+=y,G.output+=y;else if(q.dot===!0)B.output+=_,G.output+=_;else B.output+=N,G.output+=N;if(f()!=="*")B.output+=j,G.output+=j}m(x)}while(B.brackets>0){if(q.strictBrackets===!0)throw SyntaxError(F6("closing","]"));B.output=J5.escapeLast(B.output,"["),s("brackets")}while(B.parens>0){if(q.strictBrackets===!0)throw SyntaxError(F6("closing",")"));B.output=J5.escapeLast(B.output,"("),s("parens")}while(B.braces>0){if(q.strictBrackets===!0)throw SyntaxError(F6("closing","}"));B.output=J5.escapeLast(B.output,"{"),s("braces")}if(q.strictSlashes!==!0&&(G.type==="star"||G.type==="bracket"))m({type:"maybe_slash",value:"",output:`${O}?`});if(B.backtrack===!0){B.output="";for(let D of B.tokens)if(B.output+=D.output!=null?D.output:D.value,D.suffix)B.output+=D.suffix}return B};C3.fastpaths=(Z,J)=>{let q={...J},Q=typeof q.maxLength==="number"?Math.min(U7,q.maxLength):U7,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);Z=$z[Z]||Z;let X=J5.isWindows(J),{DOT_LITERAL:z,SLASH_LITERAL:V,ONE_CHAR:W,DOTS_SLASH:K,NO_DOT:$,NO_DOTS:H,NO_DOTS_SLASH:M,STAR:O,START_ANCHOR:j}=S0.globChars(X),L=q.dot?H:$,I=q.dot?M:$,y=q.capture?"":"?:",_={negated:!1,prefix:""},T=q.bash===!0?".*?":O;if(q.capture)T=`(${T})`;let g=(N)=>{if(N.noglobstar===!0)return T;return`(${y}(?:(?!${j}${N.dot?K:z}).)*?)`},h=(N)=>{switch(N){case"*":return`${L}${W}${T}`;case".*":return`${z}${W}${T}`;case"*.*":return`${L}${T}${z}${W}${T}`;case"*/*":return`${L}${T}${V}${W}${I}${T}`;case"**":return L+g(q);case"**/*":return`(?:${L}${g(q)}${V})?${I}${W}${T}`;case"**/*.*":return`(?:${L}${g(q)}${V})?${I}${T}${z}${W}${T}`;case"**/.*":return`(?:${L}${g(q)}${V})?${z}${W}${T}`;default:{let P=/^(.*?)\.(\w+)$/.exec(N);if(!P)return;let A=h(P[1]);if(!A)return;return A+z+P[2]}}},u=J5.removePrefix(Z,_),E=h(u);if(E&&q.strictSlashes!==!0)E+=`${V}?`;return E};jz.exports=C3});var Hz=U1((dI,Mz)=>{var $L=a1("path"),GL=Kz(),I3=Bz(),_3=G7(),UL=A0(),jL=(Z)=>Z&&typeof Z==="object"&&!Array.isArray(Z),v1=(Z,J,q=!1)=>{if(Array.isArray(Z)){let $=Z.map((M)=>v1(M,J,q));return(M)=>{for(let O of $){let j=O(M);if(j)return j}return!1}}let Q=jL(Z)&&Z.tokens&&Z.input;if(Z===""||typeof Z!=="string"&&!Q)throw TypeError("Expected pattern to be a non-empty string");let Y=J||{},X=_3.isWindows(J),z=Q?v1.compileRe(Z,J):v1.makeRe(Z,J,!1,!0),V=z.state;delete z.state;let W=()=>!1;if(Y.ignore){let $={...J,ignore:null,onMatch:null,onResult:null};W=v1(Y.ignore,$,q)}let K=($,H=!1)=>{let{isMatch:M,match:O,output:j}=v1.test($,z,J,{glob:Z,posix:X}),L={glob:Z,state:V,regex:z,posix:X,input:$,output:j,match:O,isMatch:M};if(typeof Y.onResult==="function")Y.onResult(L);if(M===!1)return L.isMatch=!1,H?L:!1;if(W($)){if(typeof Y.onIgnore==="function")Y.onIgnore(L);return L.isMatch=!1,H?L:!1}if(typeof Y.onMatch==="function")Y.onMatch(L);return H?L:!0};if(q)K.state=V;return K};v1.test=(Z,J,q,{glob:Q,posix:Y}={})=>{if(typeof Z!=="string")throw TypeError("Expected input to be a string");if(Z==="")return{isMatch:!1,output:""};let X=q||{},z=X.format||(Y?_3.toPosixSlashes:null),V=Z===Q,W=V&&z?z(Z):Z;if(V===!1)W=z?z(Z):Z,V=W===Q;if(V===!1||X.capture===!0)if(X.matchBase===!0||X.basename===!0)V=v1.matchBase(Z,J,q,Y);else V=J.exec(W);return{isMatch:Boolean(V),match:V,output:W}};v1.matchBase=(Z,J,q,Q=_3.isWindows(q))=>{return(J instanceof RegExp?J:v1.makeRe(J,q)).test($L.basename(Z))};v1.isMatch=(Z,J,q)=>v1(J,q)(Z);v1.parse=(Z,J)=>{if(Array.isArray(Z))return Z.map((q)=>v1.parse(q,J));return I3(Z,{...J,fastpaths:!1})};v1.scan=(Z,J)=>GL(Z,J);v1.compileRe=(Z,J,q=!1,Q=!1)=>{if(q===!0)return Z.output;let Y=J||{},X=Y.contains?"":"^",z=Y.contains?"":"$",V=`${X}(?:${Z.output})${z}`;if(Z&&Z.negated===!0)V=`^(?!${V}).*$`;let W=v1.toRegex(V,J);if(Q===!0)W.state=Z;return W};v1.makeRe=(Z,J={},q=!1,Q=!1)=>{if(!Z||typeof Z!=="string")throw TypeError("Expected a non-empty string");let Y={negated:!1,fastpaths:!0};if(J.fastpaths!==!1&&(Z[0]==="."||Z[0]==="*"))Y.output=I3.fastpaths(Z,J);if(!Y.output)Y=I3(Z,J);return v1.compileRe(Y,J,q,Q)};v1.toRegex=(Z,J)=>{try{let q=J||{};return new RegExp(Z,q.flags||(q.nocase?"i":""))}catch(q){if(J&&J.debug===!0)throw q;return/$^/}};v1.constants=UL;Mz.exports=v1});var _z=U1((Iz)=>{Object.defineProperty(Iz,"__esModule",{value:!0});var N6=a1("path"),BL=Hz();function ML(Z){return Z&&typeof Z==="object"&&"default"in Z?Z:{default:Z}}var HL=ML(BL),Lz=function(J,q=".js"){let Q=`${J}`;if(!N6.extname(J))Q+=q;return Q};class O6{constructor(){O6.prototype.__init.call(this),O6.prototype.__init2.call(this),O6.prototype.__init3.call(this),O6.prototype.__init4.call(this)}__init(){this.should_skip=!1}__init2(){this.should_remove=!1}__init3(){this.replacement=null}__init4(){this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(Z)=>this.replacement=Z}}replace(Z,J,q,Q){if(Z)if(q!==null)Z[J][q]=Q;else Z[J]=Q}remove(Z,J,q){if(Z)if(q!==null)Z[J].splice(q,1);else delete Z[J]}}class wz extends O6{constructor(Z){super();this.enter=Z.enter,this.leave=Z.leave}visit(Z,J,q,Q,Y,X){if(Z){if(q){let z=this.should_skip,V=this.should_remove,W=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,q.call(this.context,Z,J,Y,X),this.replacement)Z=this.replacement,this.replace(J,Y,X,Z);if(this.should_remove)this.remove(J,Y,X);let K=this.should_skip,$=this.should_remove;if(this.should_skip=z,this.should_remove=V,this.replacement=W,K)return Z;if($)return null}for(let z in Z){let V=Z[z];if(typeof V!=="object")continue;else if(Array.isArray(V)){for(let W=0;W<V.length;W+=1)if(V[W]!==null&&typeof V[W].type==="string"){if(!this.visit(V[W],Z,q,Q,z,W))W--}}else if(V!==null&&typeof V.type==="string")this.visit(V,Z,q,Q,z,null)}if(Q){let z=this.replacement,V=this.should_remove;if(this.replacement=null,this.should_remove=!1,Q.call(this.context,Z,J,Y,X),this.replacement)Z=this.replacement,this.replace(J,Y,X,Z);if(this.should_remove)this.remove(J,Y,X);let W=this.should_remove;if(this.replacement=z,this.should_remove=V,W)return null}}return Z}}function FL(Z,J){return new wz(J).visit(Z,null,J.enter,J.leave)}var L6={ArrayPattern(Z,J){for(let q of J.elements)if(q)L6[q.type](Z,q)},AssignmentPattern(Z,J){L6[J.left.type](Z,J.left)},Identifier(Z,J){Z.push(J.name)},MemberExpression(){},ObjectPattern(Z,J){for(let q of J.properties)if(q.type==="RestElement")L6.RestElement(Z,q);else L6[q.value.type](Z,q.value)},RestElement(Z,J){L6[J.argument.type](Z,J.argument)}},j7=function(J){let q=[];return L6[J.type](q,J),q},LL={const:!0,let:!0};class w6{constructor(Z={}){if(this.parent=Z.parent,this.isBlockScope=!!Z.block,this.declarations=Object.create(null),Z.params)Z.params.forEach((J)=>{j7(J).forEach((q)=>{this.declarations[q]=!0})})}addDeclaration(Z,J,q){if(!J&&this.isBlockScope)this.parent.addDeclaration(Z,J,q);else if(Z.id)j7(Z.id).forEach((Q)=>{this.declarations[Q]=!0})}contains(Z){return this.declarations[Z]||(this.parent?this.parent.contains(Z):!1)}}var Oz=function(J,q="scope"){let Q=new w6;return FL(J,{enter(Y,X){let z=Y;if(/(Function|Class)Declaration/.test(z.type))Q.addDeclaration(z,!1,!1);if(z.type==="VariableDeclaration"){let{kind:W}=z,K=LL[W];z.declarations.forEach(($)=>{Q.addDeclaration($,K,!0)})}let V;if(/Function/.test(z.type)){let W=z;if(V=new w6({parent:Q,block:!1,params:W.params}),W.type==="FunctionExpression"&&W.id)V.addDeclaration(W,!1,!1)}if(/For(In|Of)?Statement/.test(z.type))V=new w6({parent:Q,block:!0});if(z.type==="BlockStatement"&&!/Function/.test(X.type))V=new w6({parent:Q,block:!0});if(z.type==="CatchClause")V=new w6({parent:Q,params:z.param?[z.param]:[],block:!0});if(V)Object.defineProperty(z,q,{value:V,configurable:!0}),Q=V},leave(Y){if(Y[q])Q=Q.parent}}),Q};function wL(Z){return Array.isArray(Z)}function Fz(Z){if(wL(Z))return Z;if(Z==null)return[];return[Z]}var R6=function(J){return J.split(N6.win32.sep).join(N6.posix.sep)};function OL(Z,J){if(J===!1||N6.isAbsolute(Z)||Z.startsWith("*"))return R6(Z);let q=R6(N6.resolve(J||"")).replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return N6.posix.join(q,R6(Z))}var Nz=function(J,q,Q){let Y=Q&&Q.resolve,X=(W)=>W instanceof RegExp?W:{test:(K)=>{let $=OL(W,Y);return HL.default($,{dot:!0})(K)}},z=Fz(J).map(X),V=Fz(q).map(X);return function(K){if(typeof K!=="string")return!1;if(/\0/.test(K))return!1;let $=R6(K);for(let H=0;H<V.length;++H)if(V[H].test($))return!1;for(let H=0;H<z.length;++H)if(z[H].test($))return!0;return!z.length}},NL="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",RL="arguments 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",Rz=new Set(`${NL} ${RL}`.split(" "));Rz.add("");var M7=function(J){let q=J.replace(/-(\w)/g,(Q,Y)=>Y.toUpperCase()).replace(/[^$_a-zA-Z0-9]/g,"_");if(/\d/.test(q[0])||Rz.has(q))q=`_${q}`;return q||"_"};function B7(Z){return(JSON.stringify(Z)||"undefined").replace(/[\u2028\u2029]/g,(J)=>`\\u${`000${J.charCodeAt(0).toString(16)}`.slice(-4)}`)}function CL(Z,J,q){let Q="[",Y=J?`
|
|
46
|
+
${q}${J}`:"";for(let X=0;X<Z.length;X++){let z=Z[X];Q+=`${X>0?",":""}${Y}${y0(z,J,q+J)}`}return`${Q}${J?`
|
|
47
|
+
${q}`:""}]`}function IL(Z,J,q){let Q="{",Y=J?`
|
|
48
|
+
${q}${J}`:"",X=Object.entries(Z);for(let z=0;z<X.length;z++){let[V,W]=X[z],K=M7(V)===V?V:B7(V);Q+=`${z>0?",":""}${Y}${K}:${J?" ":""}${y0(W,J,q+J)}`}return`${Q}${J?`
|
|
49
|
+
${q}`:""}}`}function y0(Z,J,q){if(typeof Z==="object"&&Z!==null){if(Array.isArray(Z))return CL(Z,J,q);if(Z instanceof Date)return`new Date(${Z.getTime()})`;if(Z instanceof RegExp)return Z.toString();return IL(Z,J,q)}if(typeof Z==="number"){if(Z===1/0)return"Infinity";if(Z===-1/0)return"-Infinity";if(Z===0)return 1/Z===1/0?"0":"-0";if(Z!==Z)return"NaN"}if(typeof Z==="symbol"){let Q=Symbol.keyFor(Z);if(Q!==void 0)return`Symbol.for(${B7(Q)})`}if(typeof Z==="bigint")return`${Z}n`;return B7(Z)}var Cz=function(J,q={}){let Q=q.compact?"":("indent"in q)?q.indent:"\t",Y=q.compact?"":" ",X=q.compact?"":`
|
|
50
|
+
`,z=q.preferConst?"const":"var";if(q.namedExports===!1||typeof J!=="object"||Array.isArray(J)||J instanceof Date||J instanceof RegExp||J===null){let K=y0(J,q.compact?null:Q,"");return`export default${Y||(/^[{[\-\/]/.test(K)?"":" ")}${K};`}let V="",W=[];for(let[K,$]of Object.entries(J))if(K===M7(K)){if(q.objectShorthand)W.push(K);else W.push(`${K}:${Y}${K}`);V+=`export ${z} ${K}${Y}=${Y}${y0($,q.compact?null:Q,"")};${X}`}else W.push(`${B7(K)}:${Y}${y0($,q.compact?null:Q,"")}`);return`${V}export default${Y}{${X}${Q}${W.join(`,${X}${Q}`)}${X}};${X}`},_L={addExtension:Lz,attachScopes:Oz,createFilter:Nz,dataToEsm:Cz,extractAssignedNames:j7,makeLegalIdentifier:M7,normalizePath:R6};Iz.addExtension=Lz;Iz.attachScopes=Oz;Iz.createFilter=Nz;Iz.dataToEsm=Cz;Iz.default=_L;Iz.extractAssignedNames=j7;Iz.makeLegalIdentifier=M7;Iz.normalizePath=R6});var Pz=U1((cI,Az)=>{var x8=a1("path"),Dz=a1("fs"),{resolve:xL}=oX(),{createFilter:kL}=_z(),F7=a1("svelte/compiler"),H7=Number(F7.VERSION.split(".")[0]),fL=new Set(["emitCss","exclude","extensions","include","onwarn","preprocess"]),vL=/\.svelte(\.[^./\\]+)*\.(js|ts)$/,Tz=!1;Az.exports=function(Z={}){let{compilerOptions:J={},...q}=Z,Q=q.extensions||[".svelte"],Y=kL(q.include,q.exclude);if(H7===3)J.format="esm";for(let W in q){if(fL.has(W))continue;console.warn(`[rollup-plugin-svelte] Unknown "${W}" option. Please use "compilerOptions" for any Svelte compiler configuration.`)}let X=new Map,{onwarn:z,emitCss:V=!0}=q;if(V){let W=H7>3?"external":!1;if(J.css)console.warn(`[rollup-plugin-svelte] Forcing \`"compilerOptions.css": ${typeof W==="string"?`"${W}"`:W}\` because "emitCss" was truthy.`);J.css=W}else if(H7>4)J.css="injected";return{name:"svelte",async resolveId(W,K,$){if(X.has(W))return W;if(!K||W[0]==="."||W[0]==="\x00"||x8.isAbsolute(W))return null;let H=W.split("/"),M=H.shift();if(M&&M[0]==="@")M+=`/${H.shift()}`;let O=H.join("/")||".",j,L,I=K;while(I!==(I=x8.dirname(I))){L=x8.join(I,"node_modules",M);let _=x8.join(L,"package.json");if(Dz.existsSync(_)){j=JSON.parse(Dz.readFileSync(_,"utf-8"));break}}if(!j)return;if(O==="."&&j.svelte)return x8.resolve(L,j.svelte);if(!await this.resolve(W,K,{skipSelf:!0,...$}))try{if(xL(j,O,{conditions:["svelte"]}),!Tz)console.error(`
|
|
51
51
|
\x1B[1m\x1B[31mWARNING: Your @rollup/plugin-node-resolve configuration's 'exportConditions' array should include 'svelte'. See https://github.com/sveltejs/rollup-plugin-svelte#svelte-exports-condition for more information\x1B[39m\x1B[22m
|
|
52
|
-
`),
|
|
53
|
-
import ${JSON.stringify(
|
|
54
|
-
`,z.set(N,H.css)}if(this.addWatchFile)F.forEach(this.addWatchFile);else H.js.dependencies=F;return H.js}}}});var P0=U1((z_,yX)=>{var SX={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)",SEP:"/"},ZN={...SX,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},qN={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};yX.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:qN,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(Z){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${Z.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(Z){return Z===!0?ZN:SX}}});var S0=U1((XN)=>{var{REGEX_BACKSLASH:JN,REGEX_REMOVE_BACKSLASH:QN,REGEX_SPECIAL_CHARS:YN,REGEX_SPECIAL_CHARS_GLOBAL:zN}=P0();XN.isObject=(Z)=>Z!==null&&typeof Z==="object"&&!Array.isArray(Z);XN.hasRegexChars=(Z)=>YN.test(Z);XN.isRegexChar=(Z)=>Z.length===1&&XN.hasRegexChars(Z);XN.escapeRegex=(Z)=>Z.replace(zN,"\\$1");XN.toPosixSlashes=(Z)=>Z.replace(JN,"/");XN.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let Z=navigator.platform.toLowerCase();return Z==="win32"||Z==="windows"}if(typeof process<"u"&&process.platform)return process.platform==="win32";return!1};XN.removeBackslashes=(Z)=>{return Z.replace(QN,(q)=>{return q==="\\"?"":q})};XN.escapeLast=(Z,q,J)=>{let Q=Z.lastIndexOf(q,J);if(Q===-1)return Z;if(Z[Q-1]==="\\")return XN.escapeLast(Z,q,Q-1);return`${Z.slice(0,Q)}\\${Z.slice(Q)}`};XN.removePrefix=(Z,q={})=>{let J=Z;if(J.startsWith("./"))J=J.slice(2),q.prefix="./";return J};XN.wrapOutput=(Z,q={},J={})=>{let Q=J.contains?"":"^",Y=J.contains?"":"$",z=`${Q}(?:${Z})${Y}`;if(q.negated===!0)z=`(?:^(?!${z}).*$)`;return z};XN.basename=(Z,{windows:q}={})=>{let J=Z.split(q?/[\\/]/:"/"),Q=J[J.length-1];if(Q==="")return J[J.length-2];return Q}});var uX=U1((V_,mX)=>{var xX=S0(),{CHAR_ASTERISK:Cq,CHAR_AT:MN,CHAR_BACKWARD_SLASH:y0,CHAR_COMMA:FN,CHAR_DOT:_q,CHAR_EXCLAMATION_MARK:Iq,CHAR_FORWARD_SLASH:gX,CHAR_LEFT_CURLY_BRACE:Dq,CHAR_LEFT_PARENTHESES:Tq,CHAR_LEFT_SQUARE_BRACKET:LN,CHAR_PLUS:NN,CHAR_QUESTION_MARK:kX,CHAR_RIGHT_CURLY_BRACE:wN,CHAR_RIGHT_PARENTHESES:vX,CHAR_RIGHT_SQUARE_BRACKET:ON}=P0(),fX=(Z)=>{return Z===gX||Z===y0},hX=(Z)=>{if(Z.isPrefix!==!0)Z.depth=Z.isGlobstar?1/0:1},RN=(Z,q)=>{let J=q||{},Q=Z.length-1,Y=J.parts===!0||J.scanToEnd===!0,z=[],X=[],V=[],W=Z,K=-1,G=0,F=0,M=!1,B=!1,H=!1,N=!1,C=!1,A=!1,S=!1,T=!1,g=!1,f=!1,u=0,E,R,P={value:"",depth:0,isGlob:!1},I=()=>K>=Q,j=()=>W.charCodeAt(K+1),x=()=>{return E=R,W.charCodeAt(++K)};while(K<Q){R=x();let l;if(R===y0){if(S=P.backslashes=!0,R=x(),R===Dq)A=!0;continue}if(A===!0||R===Dq){u++;while(I()!==!0&&(R=x())){if(R===y0){S=P.backslashes=!0,x();continue}if(R===Dq){u++;continue}if(A!==!0&&R===_q&&(R=x())===_q){if(M=P.isBrace=!0,H=P.isGlob=!0,f=!0,Y===!0)continue;break}if(A!==!0&&R===FN){if(M=P.isBrace=!0,H=P.isGlob=!0,f=!0,Y===!0)continue;break}if(R===wN){if(u--,u===0){A=!1,M=P.isBrace=!0,f=!0;break}}}if(Y===!0)continue;break}if(R===gX){if(z.push(K),X.push(P),P={value:"",depth:0,isGlob:!1},f===!0)continue;if(E===_q&&K===G+1){G+=2;continue}F=K+1;continue}if(J.noext!==!0){if((R===NN||R===MN||R===Cq||R===kX||R===Iq)===!0&&j()===Tq){if(H=P.isGlob=!0,N=P.isExtglob=!0,f=!0,R===Iq&&K===G)g=!0;if(Y===!0){while(I()!==!0&&(R=x())){if(R===y0){S=P.backslashes=!0,R=x();continue}if(R===vX){H=P.isGlob=!0,f=!0;break}}continue}break}}if(R===Cq){if(E===Cq)C=P.isGlobstar=!0;if(H=P.isGlob=!0,f=!0,Y===!0)continue;break}if(R===kX){if(H=P.isGlob=!0,f=!0,Y===!0)continue;break}if(R===LN){while(I()!==!0&&(l=x())){if(l===y0){S=P.backslashes=!0,x();continue}if(l===ON){B=P.isBracket=!0,H=P.isGlob=!0,f=!0;break}}if(Y===!0)continue;break}if(J.nonegate!==!0&&R===Iq&&K===G){T=P.negated=!0,G++;continue}if(J.noparen!==!0&&R===Tq){if(H=P.isGlob=!0,Y===!0){while(I()!==!0&&(R=x())){if(R===Tq){S=P.backslashes=!0,R=x();continue}if(R===vX){f=!0;break}}continue}break}if(H===!0){if(f=!0,Y===!0)continue;break}}if(J.noext===!0)N=!1,H=!1;let k=W,y="",$="";if(G>0)y=W.slice(0,G),W=W.slice(G),F-=G;if(k&&H===!0&&F>0)k=W.slice(0,F),$=W.slice(F);else if(H===!0)k="",$=W;else k=W;if(k&&k!==""&&k!=="/"&&k!==W){if(fX(k.charCodeAt(k.length-1)))k=k.slice(0,-1)}if(J.unescape===!0){if($)$=xX.removeBackslashes($);if(k&&S===!0)k=xX.removeBackslashes(k)}let L={prefix:y,input:Z,start:G,base:k,glob:$,isBrace:M,isBracket:B,isGlob:H,isExtglob:N,isGlobstar:C,negated:T,negatedExtglob:g};if(J.tokens===!0){if(L.maxDepth=0,!fX(R))X.push(P);L.tokens=X}if(J.parts===!0||J.tokens===!0){let l;for(let v=0;v<z.length;v++){let s=l?l+1:G,o=z[v],Q1=Z.slice(s,o);if(J.tokens){if(v===0&&G!==0)X[v].isPrefix=!0,X[v].value=y;else X[v].value=Q1;hX(X[v]),L.maxDepth+=X[v].depth}if(v!==0||Q1!=="")V.push(Q1);l=o}if(l&&l+1<Z.length){let v=Z.slice(l+1);if(V.push(v),J.tokens)X[X.length-1].value=v,hX(X[X.length-1]),L.maxDepth+=X[X.length-1].depth}L.slashes=z,L.parts=V}return L};mX.exports=RN});var cX=U1((W_,lX)=>{var M7=P0(),g5=S0(),{MAX_LENGTH:F7,POSIX_REGEX_SOURCE:CN,REGEX_NON_SPECIAL_CHARS:_N,REGEX_SPECIAL_CHARS_BACKREF:IN,REPLACEMENTS:dX}=M7,DN=(Z,q)=>{if(typeof q.expandRange==="function")return q.expandRange(...Z,q);Z.sort();let J=`[${Z.join("-")}]`;try{new RegExp(J)}catch(Q){return Z.map((Y)=>g5.escapeRegex(Y)).join("..")}return J},R6=(Z,q)=>{return`Missing ${Z}: "${q}" - use "\\\\${q}" to match literal characters`},Aq=(Z,q)=>{if(typeof Z!=="string")throw TypeError("Expected a string");Z=dX[Z]||Z;let J={...q},Q=typeof J.maxLength==="number"?Math.min(F7,J.maxLength):F7,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);let z={type:"bos",value:"",output:J.prepend||""},X=[z],V=J.capture?"":"?:",W=M7.globChars(J.windows),K=M7.extglobChars(W),{DOT_LITERAL:G,PLUS_LITERAL:F,SLASH_LITERAL:M,ONE_CHAR:B,DOTS_SLASH:H,NO_DOT:N,NO_DOT_SLASH:C,NO_DOTS_SLASH:A,QMARK:S,QMARK_NO_DOT:T,STAR:g,START_ANCHOR:f}=W,u=(p)=>{return`(${V}(?:(?!${f}${p.dot?H:G}).)*?)`},E=J.dot?"":N,R=J.dot?S:T,P=J.bash===!0?u(J):g;if(J.capture)P=`(${P})`;if(typeof J.noext==="boolean")J.noextglob=J.noext;let I={input:Z,index:-1,start:0,dot:J.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:X};Z=g5.removePrefix(Z,I),Y=Z.length;let j=[],x=[],k=[],y=z,$,L=()=>I.index===Y-1,l=I.peek=(p=1)=>Z[I.index+p],v=I.advance=()=>Z[++I.index]||"",s=()=>Z.slice(I.index+1),o=(p="",D=0)=>{I.consumed+=p,I.index+=D},Q1=(p)=>{I.output+=p.output!=null?p.output:p.value,o(p.value)},N1=()=>{let p=1;while(l()==="!"&&(l(2)!=="("||l(3)==="?"))v(),I.start++,p++;if(p%2===0)return!1;return I.negated=!0,I.start++,!0},O1=(p)=>{I[p]++,k.push(p)},w1=(p)=>{I[p]--,k.pop()},a=(p)=>{if(y.type==="globstar"){let D=I.braces>0&&(p.type==="comma"||p.type==="brace"),b=p.extglob===!0||j.length&&(p.type==="pipe"||p.type==="paren");if(p.type!=="slash"&&p.type!=="paren"&&!D&&!b)I.output=I.output.slice(0,-y.output.length),y.type="star",y.value="*",y.output=P,I.output+=y.output}if(j.length&&p.type!=="paren")j[j.length-1].inner+=p.value;if(p.value||p.output)Q1(p);if(y&&y.type==="text"&&p.type==="text"){y.output=(y.output||y.value)+p.value,y.value+=p.value;return}p.prev=y,X.push(p),y=p},m=(p,D)=>{let b={...K[D],conditions:1,inner:""};b.prev=y,b.parens=I.parens,b.output=I.output;let _=(J.capture?"(":"")+b.open;O1("parens"),a({type:p,value:D,output:I.output?"":B}),a({type:"paren",extglob:!0,value:v(),output:_}),j.push(b)},M1=(p)=>{let D=p.close+(J.capture?")":""),b;if(p.type==="negate"){let _=P;if(p.inner&&p.inner.length>1&&p.inner.includes("/"))_=u(J);if(_!==P||L()||/^\)+$/.test(s()))D=p.close=`)$))${_}`;if(p.inner.includes("*")&&(b=s())&&/^\.[^\\/.]+$/.test(b)){let h=Aq(b,{...q,fastpaths:!1}).output;D=p.close=`)${h})${_})`}if(p.prev.type==="bos")I.negatedExtglob=!0}a({type:"paren",extglob:!0,value:$,output:D}),w1("parens")};if(J.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let p=!1,D=Z.replace(IN,(b,_,h,c,r,e)=>{if(c==="\\")return p=!0,b;if(c==="?"){if(_)return _+c+(r?S.repeat(r.length):"");if(e===0)return R+(r?S.repeat(r.length):"");return S.repeat(h.length)}if(c===".")return G.repeat(h.length);if(c==="*"){if(_)return _+c+(r?P:"");return P}return _?b:`\\${b}`});if(p===!0)if(J.unescape===!0)D=D.replace(/\\/g,"");else D=D.replace(/\\+/g,(b)=>{return b.length%2===0?"\\\\":b?"\\":""});if(D===Z&&J.contains===!0)return I.output=Z,I;return I.output=g5.wrapOutput(D,I,q),I}while(!L()){if($=v(),$==="\x00")continue;if($==="\\"){let b=l();if(b==="/"&&J.bash!==!0)continue;if(b==="."||b===";")continue;if(!b){$+="\\",a({type:"text",value:$});continue}let _=/^\\+/.exec(s()),h=0;if(_&&_[0].length>2){if(h=_[0].length,I.index+=h,h%2!==0)$+="\\"}if(J.unescape===!0)$=v();else $+=v();if(I.brackets===0){a({type:"text",value:$});continue}}if(I.brackets>0&&($!=="]"||y.value==="["||y.value==="[^")){if(J.posix!==!1&&$===":"){let b=y.value.slice(1);if(b.includes("[")){if(y.posix=!0,b.includes(":")){let _=y.value.lastIndexOf("["),h=y.value.slice(0,_),c=y.value.slice(_+2),r=CN[c];if(r){if(y.value=h+r,I.backtrack=!0,v(),!z.output&&X.indexOf(y)===1)z.output=B;continue}}}}if($==="["&&l()!==":"||$==="-"&&l()==="]")$=`\\${$}`;if($==="]"&&(y.value==="["||y.value==="[^"))$=`\\${$}`;if(J.posix===!0&&$==="!"&&y.value==="[")$="^";y.value+=$,Q1({value:$});continue}if(I.quotes===1&&$!=='"'){$=g5.escapeRegex($),y.value+=$,Q1({value:$});continue}if($==='"'){if(I.quotes=I.quotes===1?0:1,J.keepQuotes===!0)a({type:"text",value:$});continue}if($==="("){O1("parens"),a({type:"paren",value:$});continue}if($===")"){if(I.parens===0&&J.strictBrackets===!0)throw SyntaxError(R6("opening","("));let b=j[j.length-1];if(b&&I.parens===b.parens+1){M1(j.pop());continue}a({type:"paren",value:$,output:I.parens?")":"\\)"}),w1("parens");continue}if($==="["){if(J.nobracket===!0||!s().includes("]")){if(J.nobracket!==!0&&J.strictBrackets===!0)throw SyntaxError(R6("closing","]"));$=`\\${$}`}else O1("brackets");a({type:"bracket",value:$});continue}if($==="]"){if(J.nobracket===!0||y&&y.type==="bracket"&&y.value.length===1){a({type:"text",value:$,output:`\\${$}`});continue}if(I.brackets===0){if(J.strictBrackets===!0)throw SyntaxError(R6("opening","["));a({type:"text",value:$,output:`\\${$}`});continue}w1("brackets");let b=y.value.slice(1);if(y.posix!==!0&&b[0]==="^"&&!b.includes("/"))$=`/${$}`;if(y.value+=$,Q1({value:$}),J.literalBrackets===!1||g5.hasRegexChars(b))continue;let _=g5.escapeRegex(y.value);if(I.output=I.output.slice(0,-y.value.length),J.literalBrackets===!0){I.output+=_,y.value=_;continue}y.value=`(${V}${_}|${y.value})`,I.output+=y.value;continue}if($==="{"&&J.nobrace!==!0){O1("braces");let b={type:"brace",value:$,output:"(",outputIndex:I.output.length,tokensIndex:I.tokens.length};x.push(b),a(b);continue}if($==="}"){let b=x[x.length-1];if(J.nobrace===!0||!b){a({type:"text",value:$,output:$});continue}let _=")";if(b.dots===!0){let h=X.slice(),c=[];for(let r=h.length-1;r>=0;r--){if(X.pop(),h[r].type==="brace")break;if(h[r].type!=="dots")c.unshift(h[r].value)}_=DN(c,J),I.backtrack=!0}if(b.comma!==!0&&b.dots!==!0){let h=I.output.slice(0,b.outputIndex),c=I.tokens.slice(b.tokensIndex);b.value=b.output="\\{",$=_="\\}",I.output=h;for(let r of c)I.output+=r.output||r.value}a({type:"brace",value:$,output:_}),w1("braces"),x.pop();continue}if($==="|"){if(j.length>0)j[j.length-1].conditions++;a({type:"text",value:$});continue}if($===","){let b=$,_=x[x.length-1];if(_&&k[k.length-1]==="braces")_.comma=!0,b="|";a({type:"comma",value:$,output:b});continue}if($==="/"){if(y.type==="dot"&&I.index===I.start+1){I.start=I.index+1,I.consumed="",I.output="",X.pop(),y=z;continue}a({type:"slash",value:$,output:M});continue}if($==="."){if(I.braces>0&&y.type==="dot"){if(y.value===".")y.output=G;let b=x[x.length-1];y.type="dots",y.output+=$,y.value+=$,b.dots=!0;continue}if(I.braces+I.parens===0&&y.type!=="bos"&&y.type!=="slash"){a({type:"text",value:$,output:G});continue}a({type:"dot",value:$,output:G});continue}if($==="?"){if(!(y&&y.value==="(")&&J.noextglob!==!0&&l()==="("&&l(2)!=="?"){m("qmark",$);continue}if(y&&y.type==="paren"){let _=l(),h=$;if(y.value==="("&&!/[!=<:]/.test(_)||_==="<"&&!/<([!=]|\w+>)/.test(s()))h=`\\${$}`;a({type:"text",value:$,output:h});continue}if(J.dot!==!0&&(y.type==="slash"||y.type==="bos")){a({type:"qmark",value:$,output:T});continue}a({type:"qmark",value:$,output:S});continue}if($==="!"){if(J.noextglob!==!0&&l()==="("){if(l(2)!=="?"||!/[!=<:]/.test(l(3))){m("negate",$);continue}}if(J.nonegate!==!0&&I.index===0){N1();continue}}if($==="+"){if(J.noextglob!==!0&&l()==="("&&l(2)!=="?"){m("plus",$);continue}if(y&&y.value==="("||J.regex===!1){a({type:"plus",value:$,output:F});continue}if(y&&(y.type==="bracket"||y.type==="paren"||y.type==="brace")||I.parens>0){a({type:"plus",value:$});continue}a({type:"plus",value:F});continue}if($==="@"){if(J.noextglob!==!0&&l()==="("&&l(2)!=="?"){a({type:"at",extglob:!0,value:$,output:""});continue}a({type:"text",value:$});continue}if($!=="*"){if($==="$"||$==="^")$=`\\${$}`;let b=_N.exec(s());if(b)$+=b[0],I.index+=b[0].length;a({type:"text",value:$});continue}if(y&&(y.type==="globstar"||y.star===!0)){y.type="star",y.star=!0,y.value+=$,y.output=P,I.backtrack=!0,I.globstar=!0,o($);continue}let p=s();if(J.noextglob!==!0&&/^\([^?]/.test(p)){m("star",$);continue}if(y.type==="star"){if(J.noglobstar===!0){o($);continue}let b=y.prev,_=b.prev,h=b.type==="slash"||b.type==="bos",c=_&&(_.type==="star"||_.type==="globstar");if(J.bash===!0&&(!h||p[0]&&p[0]!=="/")){a({type:"star",value:$,output:""});continue}let r=I.braces>0&&(b.type==="comma"||b.type==="brace"),e=j.length&&(b.type==="pipe"||b.type==="paren");if(!h&&b.type!=="paren"&&!r&&!e){a({type:"star",value:$,output:""});continue}while(p.slice(0,3)==="/**"){let p1=Z[I.index+4];if(p1&&p1!=="/")break;p=p.slice(3),o("/**",3)}if(b.type==="bos"&&L()){y.type="globstar",y.value+=$,y.output=u(J),I.output=y.output,I.globstar=!0,o($);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&!c&&L()){I.output=I.output.slice(0,-(b.output+y.output).length),b.output=`(?:${b.output}`,y.type="globstar",y.output=u(J)+(J.strictSlashes?")":"|$)"),y.value+=$,I.globstar=!0,I.output+=b.output+y.output,o($);continue}if(b.type==="slash"&&b.prev.type!=="bos"&&p[0]==="/"){let p1=p[1]!==void 0?"|$":"";I.output=I.output.slice(0,-(b.output+y.output).length),b.output=`(?:${b.output}`,y.type="globstar",y.output=`${u(J)}${M}|${M}${p1})`,y.value+=$,I.output+=b.output+y.output,I.globstar=!0,o($+v()),a({type:"slash",value:"/",output:""});continue}if(b.type==="bos"&&p[0]==="/"){y.type="globstar",y.value+=$,y.output=`(?:^|${M}|${u(J)}${M})`,I.output=y.output,I.globstar=!0,o($+v()),a({type:"slash",value:"/",output:""});continue}I.output=I.output.slice(0,-y.output.length),y.type="globstar",y.output=u(J),y.value+=$,I.output+=y.output,I.globstar=!0,o($);continue}let D={type:"star",value:$,output:P};if(J.bash===!0){if(D.output=".*?",y.type==="bos"||y.type==="slash")D.output=E+D.output;a(D);continue}if(y&&(y.type==="bracket"||y.type==="paren")&&J.regex===!0){D.output=$,a(D);continue}if(I.index===I.start||y.type==="slash"||y.type==="dot"){if(y.type==="dot")I.output+=C,y.output+=C;else if(J.dot===!0)I.output+=A,y.output+=A;else I.output+=E,y.output+=E;if(l()!=="*")I.output+=B,y.output+=B}a(D)}while(I.brackets>0){if(J.strictBrackets===!0)throw SyntaxError(R6("closing","]"));I.output=g5.escapeLast(I.output,"["),w1("brackets")}while(I.parens>0){if(J.strictBrackets===!0)throw SyntaxError(R6("closing",")"));I.output=g5.escapeLast(I.output,"("),w1("parens")}while(I.braces>0){if(J.strictBrackets===!0)throw SyntaxError(R6("closing","}"));I.output=g5.escapeLast(I.output,"{"),w1("braces")}if(J.strictSlashes!==!0&&(y.type==="star"||y.type==="bracket"))a({type:"maybe_slash",value:"",output:`${M}?`});if(I.backtrack===!0){I.output="";for(let p of I.tokens)if(I.output+=p.output!=null?p.output:p.value,p.suffix)I.output+=p.suffix}return I};Aq.fastpaths=(Z,q)=>{let J={...q},Q=typeof J.maxLength==="number"?Math.min(F7,J.maxLength):F7,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);Z=dX[Z]||Z;let{DOT_LITERAL:z,SLASH_LITERAL:X,ONE_CHAR:V,DOTS_SLASH:W,NO_DOT:K,NO_DOTS:G,NO_DOTS_SLASH:F,STAR:M,START_ANCHOR:B}=M7.globChars(J.windows),H=J.dot?G:K,N=J.dot?F:K,C=J.capture?"":"?:",A={negated:!1,prefix:""},S=J.bash===!0?".*?":M;if(J.capture)S=`(${S})`;let T=(E)=>{if(E.noglobstar===!0)return S;return`(${C}(?:(?!${B}${E.dot?W:z}).)*?)`},g=(E)=>{switch(E){case"*":return`${H}${V}${S}`;case".*":return`${z}${V}${S}`;case"*.*":return`${H}${S}${z}${V}${S}`;case"*/*":return`${H}${S}${X}${V}${N}${S}`;case"**":return H+T(J);case"**/*":return`(?:${H}${T(J)}${X})?${N}${V}${S}`;case"**/*.*":return`(?:${H}${T(J)}${X})?${N}${S}${z}${V}${S}`;case"**/.*":return`(?:${H}${T(J)}${X})?${z}${V}${S}`;default:{let R=/^(.*?)\.(\w+)$/.exec(E);if(!R)return;let P=g(R[1]);if(!P)return;return P+z+R[2]}}},f=g5.removePrefix(Z,A),u=g(f);if(u&&J.strictSlashes!==!0)u+=`${X}?`;return u};lX.exports=Aq});var nX=U1((K_,iX)=>{var TN=uX(),Pq=cX(),pX=S0(),AN=P0(),PN=(Z)=>Z&&typeof Z==="object"&&!Array.isArray(Z),v1=(Z,q,J=!1)=>{if(Array.isArray(Z)){let G=Z.map((M)=>v1(M,q,J));return(M)=>{for(let B of G){let H=B(M);if(H)return H}return!1}}let Q=PN(Z)&&Z.tokens&&Z.input;if(Z===""||typeof Z!=="string"&&!Q)throw TypeError("Expected pattern to be a non-empty string");let Y=q||{},z=Y.windows,X=Q?v1.compileRe(Z,q):v1.makeRe(Z,q,!1,!0),V=X.state;delete X.state;let W=()=>!1;if(Y.ignore){let G={...q,ignore:null,onMatch:null,onResult:null};W=v1(Y.ignore,G,J)}let K=(G,F=!1)=>{let{isMatch:M,match:B,output:H}=v1.test(G,X,q,{glob:Z,posix:z}),N={glob:Z,state:V,regex:X,posix:z,input:G,output:H,match:B,isMatch:M};if(typeof Y.onResult==="function")Y.onResult(N);if(M===!1)return N.isMatch=!1,F?N:!1;if(W(G)){if(typeof Y.onIgnore==="function")Y.onIgnore(N);return N.isMatch=!1,F?N:!1}if(typeof Y.onMatch==="function")Y.onMatch(N);return F?N:!0};if(J)K.state=V;return K};v1.test=(Z,q,J,{glob:Q,posix:Y}={})=>{if(typeof Z!=="string")throw TypeError("Expected input to be a string");if(Z==="")return{isMatch:!1,output:""};let z=J||{},X=z.format||(Y?pX.toPosixSlashes:null),V=Z===Q,W=V&&X?X(Z):Z;if(V===!1)W=X?X(Z):Z,V=W===Q;if(V===!1||z.capture===!0)if(z.matchBase===!0||z.basename===!0)V=v1.matchBase(Z,q,J,Y);else V=q.exec(W);return{isMatch:Boolean(V),match:V,output:W}};v1.matchBase=(Z,q,J)=>{return(q instanceof RegExp?q:v1.makeRe(q,J)).test(pX.basename(Z))};v1.isMatch=(Z,q,J)=>v1(q,J)(Z);v1.parse=(Z,q)=>{if(Array.isArray(Z))return Z.map((J)=>v1.parse(J,q));return Pq(Z,{...q,fastpaths:!1})};v1.scan=(Z,q)=>TN(Z,q);v1.compileRe=(Z,q,J=!1,Q=!1)=>{if(J===!0)return Z.output;let Y=q||{},z=Y.contains?"":"^",X=Y.contains?"":"$",V=`${z}(?:${Z.output})${X}`;if(Z&&Z.negated===!0)V=`^(?!${V}).*$`;let W=v1.toRegex(V,q);if(Q===!0)W.state=Z;return W};v1.makeRe=(Z,q={},J=!1,Q=!1)=>{if(!Z||typeof Z!=="string")throw TypeError("Expected a non-empty string");let Y={negated:!1,fastpaths:!0};if(q.fastpaths!==!1&&(Z[0]==="."||Z[0]==="*"))Y.output=Pq.fastpaths(Z,q);if(!Y.output)Y=Pq(Z,q);return v1.compileRe(Y,q,J,Q)};v1.toRegex=(Z,q)=>{try{let J=q||{};return new RegExp(Z,J.flags||(J.nocase?"i":""))}catch(J){if(q&&q.debug===!0)throw J;return/$^/}};v1.constants=AN;iX.exports=v1});var oX=U1((G_,rX)=>{var aX=nX(),SN=S0();function sX(Z,q,J=!1){if(q&&(q.windows===null||q.windows===void 0))q={...q,windows:SN.isWindows()};return aX(Z,q,J)}Object.assign(sX,aX);rX.exports=sX});var H5;(function(Z){Z.start="/**",Z.nostart="/***",Z.delim="*",Z.end="*/"})(H5=H5||(H5={}));function g7(Z){return/^\s+$/.test(Z)}function W3(Z){let q=Z.match(/\r+$/);return q==null?["",Z]:[Z.slice(-q[0].length),Z.slice(0,-q[0].length)]}function l5(Z){let q=Z.match(/^\s+/);return q==null?["",Z]:[Z.slice(0,q[0].length),Z.slice(q[0].length)]}function K3(Z){return Z.split(/\n/)}function G3(Z={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},Z)}function m7(Z={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},Z)}var SW=/^@\S+/;function u7({fence:Z="```"}={}){let q=yW(Z),J=(Q,Y)=>q(Q)?!Y:Y;return function(Y){let z=[[]],X=!1;for(let V of Y){if(SW.test(V.tokens.description)&&!X)z.push([V]);else z[z.length-1].push(V);X=J(V.tokens.description,X)}return z}}function yW(Z){if(typeof Z==="string")return(q)=>q.split(Z).length%2===0;return Z}function d7({startLine:Z=0,markers:q=H5}={}){let J=null,Q=Z;return function(z){let X=z,V=m7();if([V.lineEnd,X]=W3(X),[V.start,X]=l5(X),J===null&&X.startsWith(q.start)&&!X.startsWith(q.nostart))J=[],V.delimiter=X.slice(0,q.start.length),X=X.slice(q.start.length),[V.postDelimiter,X]=l5(X);if(J===null)return Q++,null;let W=X.trimRight().endsWith(q.end);if(V.delimiter===""&&X.startsWith(q.delim)&&!X.startsWith(q.end))V.delimiter=q.delim,X=X.slice(q.delim.length),[V.postDelimiter,X]=l5(X);if(W){let K=X.trimRight();V.end=X.slice(K.length-q.end.length),X=K.slice(0,-q.end.length)}if(V.description=X,J.push({number:Q,source:z,tokens:V}),Q++,W){let K=J.slice();return J=null,K}return null}}function l7({tokenizers:Z}){return function(J){var Q;let Y=G3({source:J});for(let z of Z)if(Y=z(Y),(Q=Y.problems[Y.problems.length-1])===null||Q===void 0?void 0:Q.critical)break;return Y}}function l0(){return(Z)=>{let{tokens:q}=Z.source[0],J=q.description.match(/\s*(@(\S+))(\s*)/);if(J===null)return Z.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:Z.source[0].number,critical:!0}),Z;return q.tag=J[1],q.postTag=J[3],q.description=q.description.slice(J[0].length),Z.tag=J[2],Z}}function c0(Z="compact"){let q=bW(Z);return(J)=>{let Q=0,Y=[];for(let[V,{tokens:W}]of J.source.entries()){let K="";if(V===0&&W.description[0]!=="{")return J;for(let G of W.description){if(G==="{")Q++;if(G==="}")Q--;if(K+=G,Q===0)break}if(Y.push([W,K]),Q===0)break}if(Q!==0)return J.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:J.source[0].number,critical:!0}),J;let z=[],X=Y[0][0].postDelimiter.length;for(let[V,[W,K]]of Y.entries()){if(W.type=K,V>0)W.type=W.postDelimiter.slice(X)+K,W.postDelimiter=W.postDelimiter.slice(0,X);[W.postType,W.description]=l5(W.description.slice(K.length)),z.push(W.type)}return z[0]=z[0].slice(1),z[z.length-1]=z[z.length-1].slice(0,-1),J.type=q(z),J}}var EW=(Z)=>Z.trim();function bW(Z){if(Z==="compact")return(q)=>q.map(EW).join("");else if(Z==="preserve")return(q)=>q.join(`
|
|
55
|
-
`);else return Z}var
|
|
56
|
-
`)}function
|
|
57
|
-
`)}var mW={line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0};var BR=Object.keys(mW);function y6(Z,q={}){return p7(q)(Z)}var xR=i7();import{compile as uW,parse as dW,walk as j3}from"svelte/compiler";var $3={a:"HTMLAnchorElement",abbr:"HTMLElement",address:"HTMLElement",applet:"HTMLUnknownElement",area:"HTMLAreaElement",article:"HTMLElement",aside:"HTMLElement",audio:"HTMLAudioElement",b:"HTMLElement",base:"HTMLBaseElement",basefont:"HTMLElement",bdi:"HTMLElement",bdo:"HTMLElement",blockquote:"HTMLQuoteElement",body:"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCanvasElement",caption:"HTMLTableCaptionElement",cite:"HTMLElement",code:"HTMLElement",col:"HTMLTableColElement",colgroup:"HTMLTableColElement",data:"HTMLDataElement",datalist:"HTMLDataListElement",dd:"HTMLElement",del:"HTMLModElement",details:"HTMLDetailsElement",dfn:"HTMLElement",dialog:"HTMLDialogElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListElement",dt:"HTMLElement",em:"HTMLElement",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",figcaption:"HTMLElement",figure:"HTMLElement",font:"HTMLFontElement",footer:"HTMLElement",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",h1:"HTMLHeadingElement",h2:"HTMLHeadingElement",h3:"HTMLHeadingElement",h4:"HTMLHeadingElement",h5:"HTMLHeadingElement",h6:"HTMLHeadingElement",head:"HTMLHeadElement",header:"HTMLElement",hgroup:"HTMLElement",hr:"HTMLHRElement",html:"HTMLHtmlElement",i:"HTMLElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInputElement",ins:"HTMLModElement",kbd:"HTMLElement",label:"HTMLLabelElement",legend:"HTMLLegendElement",li:"HTMLLIElement",link:"HTMLLinkElement",main:"HTMLElement",map:"HTMLMapElement",mark:"HTMLElement",marquee:"HTMLMarqueeElement",menu:"HTMLMenuElement",meta:"HTMLMetaElement",meter:"HTMLMeterElement",nav:"HTMLElement",noscript:"HTMLElement",object:"HTMLObjectElement",ol:"HTMLOListElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamElement",picture:"HTMLPictureElement",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",rp:"HTMLElement",rt:"HTMLElement",ruby:"HTMLElement",s:"HTMLElement",samp:"HTMLElement",script:"HTMLScriptElement",search:"HTMLElement",section:"HTMLElement",select:"HTMLSelectElement",slot:"HTMLSlotElement",small:"HTMLElement",source:"HTMLSourceElement",span:"HTMLSpanElement",strong:"HTMLElement",style:"HTMLStyleElement",sub:"HTMLElement",summary:"HTMLElement",sup:"HTMLElement",table:"HTMLTableElement",tbody:"HTMLTableSectionElement",td:"HTMLTableCellElement",template:"HTMLTemplateElement",textarea:"HTMLTextAreaElement",tfoot:"HTMLTableSectionElement",th:"HTMLTableCellElement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:"HTMLTitleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",u:"HTMLElement",ul:"HTMLUListElement",var:"HTMLElement",video:"HTMLVideoElement",wbr:"HTMLElement"};function U3(Z){return Z in $3?$3[Z]:"HTMLElement"}var lW=/(?:const|let|function)\s+(\w+)\s*[=(]/,cW=/^-\s*/,pW=/\w/;function n0(Z){if(!Z)return;let q=Z.lastIndexOf("-");return q>=0?Z.substring(q+1).trim():Z.trim()}function L8(Z){if(Z===void 0)return;let q=Z.replace(cW,"").trim();return q===""?"":q}var iW=null,nW=/(\}|\};)$/,aW=/[-_.:/\s]+/,B3=/^@component/,sW=/\r/g,rW=/[\r\n]+/g;class I1{options;source;compiled;parsed;rest_props;extends;componentComment;reactive_vars=new Set;vars=new Set;props=new Map;moduleExports=new Map;slots=new Map;events=new Map;eventDescriptions=new Map;forwardedEvents=new Map;typedefs=new Map;generics=null;bindings=new Map;contexts=new Map;variableInfoCache=new Map;sourceLinesCache;constructor(Z){this.options=Z}static mapToArray(Z){return Array.from(Z,([q,J])=>J)}static assignValue(Z){return Z===void 0||Z===""?void 0:Z}static formatComment(Z){let q=Z;if(!q.startsWith("/*"))q=`/*${q}`;if(!q.endsWith("*/"))q+="*/";return q}getCommentTags(Z){let q=Z[0]?.tags??[],J=new Set(["type","param","returns","return","extends","extendProps","restProps","slot","event","typedef","callback"]),Q,Y=[],z,X=[];for(let V of q)if(V.tag==="type")Q=V;else if(V.tag==="param")Y.push(V);else if(V.tag==="returns"||V.tag==="return")z=V;else if(!J.has(V.tag))X.push(V);return{type:Q,param:Y,returns:z,additional:X,description:Z[0]?.description}}static findJSDocComment(Z){if(!Z||Z.length===0)return;let q=Z[Z.length-1];return q&&typeof q==="object"&&"value"in q?q:void 0}processJSDocComment(Z){if(!Z)return;let q=I1.findJSDocComment(Z);if(!q)return;let J=y6(I1.formatComment(q.value),{spacing:"preserve"}),{type:Q,param:Y,returns:z,additional:X,description:V}=this.getCommentTags(J),W,K,G,F;if(Q)W=this.aliasType(Q.type);if(Y.length>0)K=Y.filter((B)=>!B.name.includes(".")).map((B)=>({name:B.name,type:this.aliasType(B.type),description:L8(B.description),optional:B.optional||!1}));if(z)G=this.aliasType(z.type);let M=I1.assignValue(V?.trim());if(M||X.length>0){let B=[];if(M)B.push(M);for(let H of X){let N=`@${H.tag}${H.name?` ${H.name}`:""}${H.description?` ${H.description}`:""}`;B.push(N)}F=B.join(`
|
|
58
|
-
`)}return{type:W,params:K,returnType
|
|
59
|
-
`).trim():void 0},g=()=>{if(Q!==void 0){let E;if(
|
|
60
|
-
${Y}${K}: ${
|
|
61
|
-
`:" ");return
|
|
52
|
+
`),Tz=!0}catch(_){}},load(W){return X.get(W)||null},async transform(W,K){if(!Y(K))return null;if(H7>4&&vL.test(K)){let L=F7.compileModule(W,{filename:K,dev:J.dev,generate:J.generate});return(L.warnings||[]).forEach((I)=>{if(z)z(I,this.warn);else this.warn(I)}),L.js}let $=x8.extname(K);if(!~Q.indexOf($))return null;let H=[],M=x8.relative(process.cwd(),K),O={...J,filename:M};if(q.preprocess){let L=await F7.preprocess(W,q.preprocess,{filename:M});if(L.dependencies)H.push(...L.dependencies);if(L.map)O.sourcemap=L.map;W=L.code}let j=F7.compile(W,O);if((j.warnings||[]).forEach((L)=>{if(!V&&(L.code==="css-unused-selector"||L.code==="css_unused_selector"))return;if(z)z(L,this.warn);else this.warn(L)}),V&&j.css&&j.css.code){let L=K.replace(new RegExp(`\\${$}$`),".css");j.js.code+=`
|
|
53
|
+
import ${JSON.stringify(L)};
|
|
54
|
+
`,X.set(L,j.css)}if(this.addWatchFile)H.forEach(this.addWatchFile);else j.js.dependencies=H;return j.js}}}});var E0=U1((Q_,cz)=>{var lz={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)",SEP:"/"},hw={...lz,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},gw={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};cz.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:gw,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(Z){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${Z.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(Z){return Z===!0?hw:lz}}});var b0=U1((cw)=>{var{REGEX_BACKSLASH:mw,REGEX_REMOVE_BACKSLASH:uw,REGEX_SPECIAL_CHARS:dw,REGEX_SPECIAL_CHARS_GLOBAL:lw}=E0();cw.isObject=(Z)=>Z!==null&&typeof Z==="object"&&!Array.isArray(Z);cw.hasRegexChars=(Z)=>dw.test(Z);cw.isRegexChar=(Z)=>Z.length===1&&cw.hasRegexChars(Z);cw.escapeRegex=(Z)=>Z.replace(lw,"\\$1");cw.toPosixSlashes=(Z)=>Z.replace(mw,"/");cw.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let Z=navigator.platform.toLowerCase();return Z==="win32"||Z==="windows"}if(typeof process<"u"&&process.platform)return process.platform==="win32";return!1};cw.removeBackslashes=(Z)=>{return Z.replace(uw,(J)=>{return J==="\\"?"":J})};cw.escapeLast=(Z,J,q)=>{let Q=Z.lastIndexOf(J,q);if(Q===-1)return Z;if(Z[Q-1]==="\\")return cw.escapeLast(Z,J,Q-1);return`${Z.slice(0,Q)}\\${Z.slice(Q)}`};cw.removePrefix=(Z,J={})=>{let q=Z;if(q.startsWith("./"))q=q.slice(2),J.prefix="./";return q};cw.wrapOutput=(Z,J={},q={})=>{let Q=q.contains?"":"^",Y=q.contains?"":"$",X=`${Q}(?:${Z})${Y}`;if(J.negated===!0)X=`(?:^(?!${X}).*$)`;return X};cw.basename=(Z,{windows:J}={})=>{let q=Z.split(J?/[\\/]/:"/"),Q=q[q.length-1];if(Q==="")return q[q.length-2];return Q}});var ZV=U1((X_,ez)=>{var nz=b0(),{CHAR_ASTERISK:A3,CHAR_AT:ZO,CHAR_BACKWARD_SLASH:x0,CHAR_COMMA:JO,CHAR_DOT:P3,CHAR_EXCLAMATION_MARK:S3,CHAR_FORWARD_SLASH:tz,CHAR_LEFT_CURLY_BRACE:y3,CHAR_LEFT_PARENTHESES:E3,CHAR_LEFT_SQUARE_BRACKET:qO,CHAR_PLUS:QO,CHAR_QUESTION_MARK:az,CHAR_RIGHT_CURLY_BRACE:YO,CHAR_RIGHT_PARENTHESES:sz,CHAR_RIGHT_SQUARE_BRACKET:XO}=E0(),rz=(Z)=>{return Z===tz||Z===x0},oz=(Z)=>{if(Z.isPrefix!==!0)Z.depth=Z.isGlobstar?1/0:1},zO=(Z,J)=>{let q=J||{},Q=Z.length-1,Y=q.parts===!0||q.scanToEnd===!0,X=[],z=[],V=[],W=Z,K=-1,$=0,H=0,M=!1,O=!1,j=!1,L=!1,I=!1,y=!1,_=!1,T=!1,g=!1,h=!1,u=0,E,N,P={value:"",depth:0,isGlob:!1},A=()=>K>=Q,B=()=>W.charCodeAt(K+1),b=()=>{return E=N,W.charCodeAt(++K)};while(K<Q){N=b();let d;if(N===x0){if(_=P.backslashes=!0,N=b(),N===y3)y=!0;continue}if(y===!0||N===y3){u++;while(A()!==!0&&(N=b())){if(N===x0){_=P.backslashes=!0,b();continue}if(N===y3){u++;continue}if(y!==!0&&N===P3&&(N=b())===P3){if(M=P.isBrace=!0,j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(y!==!0&&N===JO){if(M=P.isBrace=!0,j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===YO){if(u--,u===0){y=!1,M=P.isBrace=!0,h=!0;break}}}if(Y===!0)continue;break}if(N===tz){if(X.push(K),z.push(P),P={value:"",depth:0,isGlob:!1},h===!0)continue;if(E===P3&&K===$+1){$+=2;continue}H=K+1;continue}if(q.noext!==!0){if((N===QO||N===ZO||N===A3||N===az||N===S3)===!0&&B()===E3){if(j=P.isGlob=!0,L=P.isExtglob=!0,h=!0,N===S3&&K===$)g=!0;if(Y===!0){while(A()!==!0&&(N=b())){if(N===x0){_=P.backslashes=!0,N=b();continue}if(N===sz){j=P.isGlob=!0,h=!0;break}}continue}break}}if(N===A3){if(E===A3)I=P.isGlobstar=!0;if(j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===az){if(j=P.isGlob=!0,h=!0,Y===!0)continue;break}if(N===qO){while(A()!==!0&&(d=b())){if(d===x0){_=P.backslashes=!0,b();continue}if(d===XO){O=P.isBracket=!0,j=P.isGlob=!0,h=!0;break}}if(Y===!0)continue;break}if(q.nonegate!==!0&&N===S3&&K===$){T=P.negated=!0,$++;continue}if(q.noparen!==!0&&N===E3){if(j=P.isGlob=!0,Y===!0){while(A()!==!0&&(N=b())){if(N===E3){_=P.backslashes=!0,N=b();continue}if(N===sz){h=!0;break}}continue}break}if(j===!0){if(h=!0,Y===!0)continue;break}}if(q.noext===!0)L=!1,j=!1;let k=W,S="",G="";if($>0)S=W.slice(0,$),W=W.slice($),H-=$;if(k&&j===!0&&H>0)k=W.slice(0,H),G=W.slice(H);else if(j===!0)k="",G=W;else k=W;if(k&&k!==""&&k!=="/"&&k!==W){if(rz(k.charCodeAt(k.length-1)))k=k.slice(0,-1)}if(q.unescape===!0){if(G)G=nz.removeBackslashes(G);if(k&&_===!0)k=nz.removeBackslashes(k)}let F={prefix:S,input:Z,start:$,base:k,glob:G,isBrace:M,isBracket:O,isGlob:j,isExtglob:L,isGlobstar:I,negated:T,negatedExtglob:g};if(q.tokens===!0){if(F.maxDepth=0,!rz(N))z.push(P);F.tokens=z}if(q.parts===!0||q.tokens===!0){let d;for(let f=0;f<X.length;f++){let o=d?d+1:$,t=X[f],Q1=Z.slice(o,t);if(q.tokens){if(f===0&&$!==0)z[f].isPrefix=!0,z[f].value=S;else z[f].value=Q1;oz(z[f]),F.maxDepth+=z[f].depth}if(f!==0||Q1!=="")V.push(Q1);d=t}if(d&&d+1<Z.length){let f=Z.slice(d+1);if(V.push(f),q.tokens)z[z.length-1].value=f,oz(z[z.length-1]),F.maxDepth+=z[z.length-1].depth}F.slashes=X,F.parts=V}return F};ez.exports=zO});var XV=U1((z_,YV)=>{var k0=E0(),M5=b0(),{MAX_LENGTH:w7,POSIX_REGEX_SOURCE:VO,REGEX_NON_SPECIAL_CHARS:WO,REGEX_SPECIAL_CHARS_BACKREF:KO,REPLACEMENTS:JV}=k0,$O=(Z,J)=>{if(typeof J.expandRange==="function")return J.expandRange(...Z,J);Z.sort();let q=`[${Z.join("-")}]`;try{new RegExp(q)}catch(Q){return Z.map((Y)=>M5.escapeRegex(Y)).join("..")}return q},I6=(Z,J)=>{return`Missing ${Z}: "${J}" - use "\\\\${J}" to match literal characters`},qV=(Z)=>{let J=[],q=0,Q=0,Y=0,X="",z=!1;for(let V of Z){if(z===!0){X+=V,z=!1;continue}if(V==="\\"){X+=V,z=!0;continue}if(V==='"'){Y=Y===1?0:1,X+=V;continue}if(Y===0){if(V==="[")q++;else if(V==="]"&&q>0)q--;else if(q===0){if(V==="(")Q++;else if(V===")"&&Q>0)Q--;else if(V==="|"&&Q===0){J.push(X),X="";continue}}}X+=V}return J.push(X),J},GO=(Z)=>{let J=!1;for(let q of Z){if(J===!0){J=!1;continue}if(q==="\\"){J=!0;continue}if(/[?*+@!()[\]{}]/.test(q))return!1}return!0},QV=(Z)=>{let J=Z.trim(),q=!0;while(q===!0)if(q=!1,/^@\([^\\()[\]{}|]+\)$/.test(J))J=J.slice(2,-1),q=!0;if(!GO(J))return;return J.replace(/\\(.)/g,"$1")},UO=(Z)=>{let J=Z.map(QV).filter(Boolean);for(let q=0;q<J.length;q++)for(let Q=q+1;Q<J.length;Q++){let Y=J[q],X=J[Q],z=Y[0];if(!z||Y!==z.repeat(Y.length)||X!==z.repeat(X.length))continue;if(Y===X||Y.startsWith(X)||X.startsWith(Y))return!0}return!1},b3=(Z,J=!0)=>{if(Z[0]!=="+"&&Z[0]!=="*"||Z[1]!=="(")return;let q=0,Q=0,Y=0,X=!1;for(let z=1;z<Z.length;z++){let V=Z[z];if(X===!0){X=!1;continue}if(V==="\\"){X=!0;continue}if(V==='"'){Y=Y===1?0:1;continue}if(Y===1)continue;if(V==="["){q++;continue}if(V==="]"&&q>0){q--;continue}if(q>0)continue;if(V==="("){Q++;continue}if(V===")"){if(Q--,Q===0){if(J===!0&&z!==Z.length-1)return;return{type:Z[0],body:Z.slice(2,z),end:z}}}}},jO=(Z)=>{let J=0,q=[];while(J<Z.length){let Y=b3(Z.slice(J),!1);if(!Y||Y.type!=="*")return;let X=qV(Y.body).map((V)=>V.trim());if(X.length!==1)return;let z=QV(X[0]);if(!z||z.length!==1)return;q.push(z),J+=Y.end+1}if(q.length<1)return;return`${q.length===1?M5.escapeRegex(q[0]):`[${q.map((Y)=>M5.escapeRegex(Y)).join("")}]`}*`},BO=(Z)=>{let J=0,q=Z.trim(),Q=b3(q);while(Q)J++,q=Q.body.trim(),Q=b3(q);return J},MO=(Z,J)=>{if(J.maxExtglobRecursion===!1)return{risky:!1};let q=typeof J.maxExtglobRecursion==="number"?J.maxExtglobRecursion:k0.DEFAULT_MAX_EXTGLOB_RECURSION,Q=qV(Z).map((Y)=>Y.trim());if(Q.length>1){if(Q.some((Y)=>Y==="")||Q.some((Y)=>/^[*?]+$/.test(Y))||UO(Q))return{risky:!0}}for(let Y of Q){let X=jO(Y);if(X)return{risky:!0,safeOutput:X};if(BO(Y)>q)return{risky:!0}}return{risky:!1}},x3=(Z,J)=>{if(typeof Z!=="string")throw TypeError("Expected a string");Z=JV[Z]||Z;let q={...J},Q=typeof q.maxLength==="number"?Math.min(w7,q.maxLength):w7,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);let X={type:"bos",value:"",output:q.prepend||""},z=[X],V=q.capture?"":"?:",W=k0.globChars(q.windows),K=k0.extglobChars(W),{DOT_LITERAL:$,PLUS_LITERAL:H,SLASH_LITERAL:M,ONE_CHAR:O,DOTS_SLASH:j,NO_DOT:L,NO_DOT_SLASH:I,NO_DOTS_SLASH:y,QMARK:_,QMARK_NO_DOT:T,STAR:g,START_ANCHOR:h}=W,u=(p)=>{return`(${V}(?:(?!${h}${p.dot?j:$}).)*?)`},E=q.dot?"":L,N=q.dot?_:T,P=q.bash===!0?u(q):g;if(q.capture)P=`(${P})`;if(typeof q.noext==="boolean")q.noextglob=q.noext;let A={input:Z,index:-1,start:0,dot:q.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:z};Z=M5.removePrefix(Z,A),Y=Z.length;let B=[],b=[],k=[],S=X,G,F=()=>A.index===Y-1,d=A.peek=(p=1)=>Z[A.index+p],f=A.advance=()=>Z[++A.index]||"",o=()=>Z.slice(A.index+1),t=(p="",D=0)=>{A.consumed+=p,A.index+=D},Q1=(p)=>{A.output+=p.output!=null?p.output:p.value,t(p.value)},N1=()=>{let p=1;while(d()==="!"&&(d(2)!=="("||d(3)==="?"))f(),A.start++,p++;if(p%2===0)return!1;return A.negated=!0,A.start++,!0},R1=(p)=>{A[p]++,k.push(p)},F1=(p)=>{A[p]--,k.pop()},s=(p)=>{if(S.type==="globstar"){let D=A.braces>0&&(p.type==="comma"||p.type==="brace"),x=p.extglob===!0||B.length&&(p.type==="pipe"||p.type==="paren");if(p.type!=="slash"&&p.type!=="paren"&&!D&&!x)A.output=A.output.slice(0,-S.output.length),S.type="star",S.value="*",S.output=P,A.output+=S.output}if(B.length&&p.type!=="paren")B[B.length-1].inner+=p.value;if(p.value||p.output)Q1(p);if(S&&S.type==="text"&&p.type==="text"){S.output=(S.output||S.value)+p.value,S.value+=p.value;return}p.prev=S,z.push(p),S=p},m=(p,D)=>{let x={...K[D],conditions:1,inner:""};x.prev=S,x.parens=A.parens,x.output=A.output,x.startIndex=A.index,x.tokensIndex=z.length;let C=(q.capture?"(":"")+x.open;R1("parens"),s({type:p,value:D,output:A.output?"":O}),s({type:"paren",extglob:!0,value:f(),output:C}),B.push(x)},L1=(p)=>{let D=Z.slice(p.startIndex,A.index+1),x=Z.slice(p.startIndex+2,A.index),C=MO(x,q);if((p.type==="plus"||p.type==="star")&&C.risky){let n=C.safeOutput?(p.output?"":O)+(q.capture?`(${C.safeOutput})`:C.safeOutput):void 0,i=z[p.tokensIndex];i.type="text",i.value=D,i.output=n||M5.escapeRegex(D);for(let B1=p.tokensIndex+1;B1<z.length;B1++)z[B1].value="",z[B1].output="",delete z[B1].suffix;A.output=p.output+i.output,A.backtrack=!0,s({type:"paren",extglob:!0,value:G,output:""}),F1("parens");return}let v=p.close+(q.capture?")":""),c;if(p.type==="negate"){let n=P;if(p.inner&&p.inner.length>1&&p.inner.includes("/"))n=u(q);if(n!==P||F()||/^\)+$/.test(o()))v=p.close=`)$))${n}`;if(p.inner.includes("*")&&(c=o())&&/^\.[^\\/.]+$/.test(c)){let i=x3(c,{...J,fastpaths:!1}).output;v=p.close=`)${i})${n})`}if(p.prev.type==="bos")A.negatedExtglob=!0}s({type:"paren",extglob:!0,value:G,output:v}),F1("parens")};if(q.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let p=!1,D=Z.replace(KO,(x,C,v,c,n,i)=>{if(c==="\\")return p=!0,x;if(c==="?"){if(C)return C+c+(n?_.repeat(n.length):"");if(i===0)return N+(n?_.repeat(n.length):"");return _.repeat(v.length)}if(c===".")return $.repeat(v.length);if(c==="*"){if(C)return C+c+(n?P:"");return P}return C?x:`\\${x}`});if(p===!0)if(q.unescape===!0)D=D.replace(/\\/g,"");else D=D.replace(/\\+/g,(x)=>{return x.length%2===0?"\\\\":x?"\\":""});if(D===Z&&q.contains===!0)return A.output=Z,A;return A.output=M5.wrapOutput(D,A,J),A}while(!F()){if(G=f(),G==="\x00")continue;if(G==="\\"){let x=d();if(x==="/"&&q.bash!==!0)continue;if(x==="."||x===";")continue;if(!x){G+="\\",s({type:"text",value:G});continue}let C=/^\\+/.exec(o()),v=0;if(C&&C[0].length>2){if(v=C[0].length,A.index+=v,v%2!==0)G+="\\"}if(q.unescape===!0)G=f();else G+=f();if(A.brackets===0){s({type:"text",value:G});continue}}if(A.brackets>0&&(G!=="]"||S.value==="["||S.value==="[^")){if(q.posix!==!1&&G===":"){let x=S.value.slice(1);if(x.includes("[")){if(S.posix=!0,x.includes(":")){let C=S.value.lastIndexOf("["),v=S.value.slice(0,C),c=S.value.slice(C+2),n=VO[c];if(n){if(S.value=v+n,A.backtrack=!0,f(),!X.output&&z.indexOf(S)===1)X.output=O;continue}}}}if(G==="["&&d()!==":"||G==="-"&&d()==="]")G=`\\${G}`;if(G==="]"&&(S.value==="["||S.value==="[^"))G=`\\${G}`;if(q.posix===!0&&G==="!"&&S.value==="[")G="^";S.value+=G,Q1({value:G});continue}if(A.quotes===1&&G!=='"'){G=M5.escapeRegex(G),S.value+=G,Q1({value:G});continue}if(G==='"'){if(A.quotes=A.quotes===1?0:1,q.keepQuotes===!0)s({type:"text",value:G});continue}if(G==="("){R1("parens"),s({type:"paren",value:G});continue}if(G===")"){if(A.parens===0&&q.strictBrackets===!0)throw SyntaxError(I6("opening","("));let x=B[B.length-1];if(x&&A.parens===x.parens+1){L1(B.pop());continue}s({type:"paren",value:G,output:A.parens?")":"\\)"}),F1("parens");continue}if(G==="["){if(q.nobracket===!0||!o().includes("]")){if(q.nobracket!==!0&&q.strictBrackets===!0)throw SyntaxError(I6("closing","]"));G=`\\${G}`}else R1("brackets");s({type:"bracket",value:G});continue}if(G==="]"){if(q.nobracket===!0||S&&S.type==="bracket"&&S.value.length===1){s({type:"text",value:G,output:`\\${G}`});continue}if(A.brackets===0){if(q.strictBrackets===!0)throw SyntaxError(I6("opening","["));s({type:"text",value:G,output:`\\${G}`});continue}F1("brackets");let x=S.value.slice(1);if(S.posix!==!0&&x[0]==="^"&&!x.includes("/"))G=`/${G}`;if(S.value+=G,Q1({value:G}),q.literalBrackets===!1||M5.hasRegexChars(x))continue;let C=M5.escapeRegex(S.value);if(A.output=A.output.slice(0,-S.value.length),q.literalBrackets===!0){A.output+=C,S.value=C;continue}S.value=`(${V}${C}|${S.value})`,A.output+=S.value;continue}if(G==="{"&&q.nobrace!==!0){R1("braces");let x={type:"brace",value:G,output:"(",outputIndex:A.output.length,tokensIndex:A.tokens.length};b.push(x),s(x);continue}if(G==="}"){let x=b[b.length-1];if(q.nobrace===!0||!x){s({type:"text",value:G,output:G});continue}let C=")";if(x.dots===!0){let v=z.slice(),c=[];for(let n=v.length-1;n>=0;n--){if(z.pop(),v[n].type==="brace")break;if(v[n].type!=="dots")c.unshift(v[n].value)}C=$O(c,q),A.backtrack=!0}if(x.comma!==!0&&x.dots!==!0){let v=A.output.slice(0,x.outputIndex),c=A.tokens.slice(x.tokensIndex);x.value=x.output="\\{",G=C="\\}",A.output=v;for(let n of c)A.output+=n.output||n.value}s({type:"brace",value:G,output:C}),F1("braces"),b.pop();continue}if(G==="|"){if(B.length>0)B[B.length-1].conditions++;s({type:"text",value:G});continue}if(G===","){let x=G,C=b[b.length-1];if(C&&k[k.length-1]==="braces")C.comma=!0,x="|";s({type:"comma",value:G,output:x});continue}if(G==="/"){if(S.type==="dot"&&A.index===A.start+1){A.start=A.index+1,A.consumed="",A.output="",z.pop(),S=X;continue}s({type:"slash",value:G,output:M});continue}if(G==="."){if(A.braces>0&&S.type==="dot"){if(S.value===".")S.output=$;let x=b[b.length-1];S.type="dots",S.output+=G,S.value+=G,x.dots=!0;continue}if(A.braces+A.parens===0&&S.type!=="bos"&&S.type!=="slash"){s({type:"text",value:G,output:$});continue}s({type:"dot",value:G,output:$});continue}if(G==="?"){if(!(S&&S.value==="(")&&q.noextglob!==!0&&d()==="("&&d(2)!=="?"){m("qmark",G);continue}if(S&&S.type==="paren"){let C=d(),v=G;if(S.value==="("&&!/[!=<:]/.test(C)||C==="<"&&!/<([!=]|\w+>)/.test(o()))v=`\\${G}`;s({type:"text",value:G,output:v});continue}if(q.dot!==!0&&(S.type==="slash"||S.type==="bos")){s({type:"qmark",value:G,output:T});continue}s({type:"qmark",value:G,output:_});continue}if(G==="!"){if(q.noextglob!==!0&&d()==="("){if(d(2)!=="?"||!/[!=<:]/.test(d(3))){m("negate",G);continue}}if(q.nonegate!==!0&&A.index===0){N1();continue}}if(G==="+"){if(q.noextglob!==!0&&d()==="("&&d(2)!=="?"){m("plus",G);continue}if(S&&S.value==="("||q.regex===!1){s({type:"plus",value:G,output:H});continue}if(S&&(S.type==="bracket"||S.type==="paren"||S.type==="brace")||A.parens>0){s({type:"plus",value:G});continue}s({type:"plus",value:H});continue}if(G==="@"){if(q.noextglob!==!0&&d()==="("&&d(2)!=="?"){s({type:"at",extglob:!0,value:G,output:""});continue}s({type:"text",value:G});continue}if(G!=="*"){if(G==="$"||G==="^")G=`\\${G}`;let x=WO.exec(o());if(x)G+=x[0],A.index+=x[0].length;s({type:"text",value:G});continue}if(S&&(S.type==="globstar"||S.star===!0)){S.type="star",S.star=!0,S.value+=G,S.output=P,A.backtrack=!0,A.globstar=!0,t(G);continue}let p=o();if(q.noextglob!==!0&&/^\([^?]/.test(p)){m("star",G);continue}if(S.type==="star"){if(q.noglobstar===!0){t(G);continue}let x=S.prev,C=x.prev,v=x.type==="slash"||x.type==="bos",c=C&&(C.type==="star"||C.type==="globstar");if(q.bash===!0&&(!v||p[0]&&p[0]!=="/")){s({type:"star",value:G,output:""});continue}let n=A.braces>0&&(x.type==="comma"||x.type==="brace"),i=B.length&&(x.type==="pipe"||x.type==="paren");if(!v&&x.type!=="paren"&&!n&&!i){s({type:"star",value:G,output:""});continue}while(p.slice(0,3)==="/**"){let B1=Z[A.index+4];if(B1&&B1!=="/")break;p=p.slice(3),t("/**",3)}if(x.type==="bos"&&F()){S.type="globstar",S.value+=G,S.output=u(q),A.output=S.output,A.globstar=!0,t(G);continue}if(x.type==="slash"&&x.prev.type!=="bos"&&!c&&F()){A.output=A.output.slice(0,-(x.output+S.output).length),x.output=`(?:${x.output}`,S.type="globstar",S.output=u(q)+(q.strictSlashes?")":"|$)"),S.value+=G,A.globstar=!0,A.output+=x.output+S.output,t(G);continue}if(x.type==="slash"&&x.prev.type!=="bos"&&p[0]==="/"){let B1=p[1]!==void 0?"|$":"";A.output=A.output.slice(0,-(x.output+S.output).length),x.output=`(?:${x.output}`,S.type="globstar",S.output=`${u(q)}${M}|${M}${B1})`,S.value+=G,A.output+=x.output+S.output,A.globstar=!0,t(G+f()),s({type:"slash",value:"/",output:""});continue}if(x.type==="bos"&&p[0]==="/"){S.type="globstar",S.value+=G,S.output=`(?:^|${M}|${u(q)}${M})`,A.output=S.output,A.globstar=!0,t(G+f()),s({type:"slash",value:"/",output:""});continue}A.output=A.output.slice(0,-S.output.length),S.type="globstar",S.output=u(q),S.value+=G,A.output+=S.output,A.globstar=!0,t(G);continue}let D={type:"star",value:G,output:P};if(q.bash===!0){if(D.output=".*?",S.type==="bos"||S.type==="slash")D.output=E+D.output;s(D);continue}if(S&&(S.type==="bracket"||S.type==="paren")&&q.regex===!0){D.output=G,s(D);continue}if(A.index===A.start||S.type==="slash"||S.type==="dot"){if(S.type==="dot")A.output+=I,S.output+=I;else if(q.dot===!0)A.output+=y,S.output+=y;else A.output+=E,S.output+=E;if(d()!=="*")A.output+=O,S.output+=O}s(D)}while(A.brackets>0){if(q.strictBrackets===!0)throw SyntaxError(I6("closing","]"));A.output=M5.escapeLast(A.output,"["),F1("brackets")}while(A.parens>0){if(q.strictBrackets===!0)throw SyntaxError(I6("closing",")"));A.output=M5.escapeLast(A.output,"("),F1("parens")}while(A.braces>0){if(q.strictBrackets===!0)throw SyntaxError(I6("closing","}"));A.output=M5.escapeLast(A.output,"{"),F1("braces")}if(q.strictSlashes!==!0&&(S.type==="star"||S.type==="bracket"))s({type:"maybe_slash",value:"",output:`${M}?`});if(A.backtrack===!0){A.output="";for(let p of A.tokens)if(A.output+=p.output!=null?p.output:p.value,p.suffix)A.output+=p.suffix}return A};x3.fastpaths=(Z,J)=>{let q={...J},Q=typeof q.maxLength==="number"?Math.min(w7,q.maxLength):w7,Y=Z.length;if(Y>Q)throw SyntaxError(`Input length: ${Y}, exceeds maximum allowed length: ${Q}`);Z=JV[Z]||Z;let{DOT_LITERAL:X,SLASH_LITERAL:z,ONE_CHAR:V,DOTS_SLASH:W,NO_DOT:K,NO_DOTS:$,NO_DOTS_SLASH:H,STAR:M,START_ANCHOR:O}=k0.globChars(q.windows),j=q.dot?$:K,L=q.dot?H:K,I=q.capture?"":"?:",y={negated:!1,prefix:""},_=q.bash===!0?".*?":M;if(q.capture)_=`(${_})`;let T=(E)=>{if(E.noglobstar===!0)return _;return`(${I}(?:(?!${O}${E.dot?W:X}).)*?)`},g=(E)=>{switch(E){case"*":return`${j}${V}${_}`;case".*":return`${X}${V}${_}`;case"*.*":return`${j}${_}${X}${V}${_}`;case"*/*":return`${j}${_}${z}${V}${L}${_}`;case"**":return j+T(q);case"**/*":return`(?:${j}${T(q)}${z})?${L}${V}${_}`;case"**/*.*":return`(?:${j}${T(q)}${z})?${L}${_}${X}${V}${_}`;case"**/.*":return`(?:${j}${T(q)}${z})?${X}${V}${_}`;default:{let N=/^(.*?)\.(\w+)$/.exec(E);if(!N)return;let P=g(N[1]);if(!P)return;return P+X+N[2]}}},h=M5.removePrefix(Z,y),u=g(h);if(u&&q.strictSlashes!==!0)u+=`${z}?`;return u};YV.exports=x3});var WV=U1((V_,VV)=>{var HO=ZV(),k3=XV(),zV=b0(),FO=E0(),LO=(Z)=>Z&&typeof Z==="object"&&!Array.isArray(Z),h1=(Z,J,q=!1)=>{if(Array.isArray(Z)){let $=Z.map((M)=>h1(M,J,q));return(M)=>{for(let O of $){let j=O(M);if(j)return j}return!1}}let Q=LO(Z)&&Z.tokens&&Z.input;if(Z===""||typeof Z!=="string"&&!Q)throw TypeError("Expected pattern to be a non-empty string");let Y=J||{},X=Y.windows,z=Q?h1.compileRe(Z,J):h1.makeRe(Z,J,!1,!0),V=z.state;delete z.state;let W=()=>!1;if(Y.ignore){let $={...J,ignore:null,onMatch:null,onResult:null};W=h1(Y.ignore,$,q)}let K=($,H=!1)=>{let{isMatch:M,match:O,output:j}=h1.test($,z,J,{glob:Z,posix:X}),L={glob:Z,state:V,regex:z,posix:X,input:$,output:j,match:O,isMatch:M};if(typeof Y.onResult==="function")Y.onResult(L);if(M===!1)return L.isMatch=!1,H?L:!1;if(W($)){if(typeof Y.onIgnore==="function")Y.onIgnore(L);return L.isMatch=!1,H?L:!1}if(typeof Y.onMatch==="function")Y.onMatch(L);return H?L:!0};if(q)K.state=V;return K};h1.test=(Z,J,q,{glob:Q,posix:Y}={})=>{if(typeof Z!=="string")throw TypeError("Expected input to be a string");if(Z==="")return{isMatch:!1,output:""};let X=q||{},z=X.format||(Y?zV.toPosixSlashes:null),V=Z===Q,W=V&&z?z(Z):Z;if(V===!1)W=z?z(Z):Z,V=W===Q;if(V===!1||X.capture===!0)if(X.matchBase===!0||X.basename===!0)V=h1.matchBase(Z,J,q,Y);else V=J.exec(W);return{isMatch:Boolean(V),match:V,output:W}};h1.matchBase=(Z,J,q)=>{return(J instanceof RegExp?J:h1.makeRe(J,q)).test(zV.basename(Z))};h1.isMatch=(Z,J,q)=>h1(J,q)(Z);h1.parse=(Z,J)=>{if(Array.isArray(Z))return Z.map((q)=>h1.parse(q,J));return k3(Z,{...J,fastpaths:!1})};h1.scan=(Z,J)=>HO(Z,J);h1.compileRe=(Z,J,q=!1,Q=!1)=>{if(q===!0)return Z.output;let Y=J||{},X=Y.contains?"":"^",z=Y.contains?"":"$",V=`${X}(?:${Z.output})${z}`;if(Z&&Z.negated===!0)V=`^(?!${V}).*$`;let W=h1.toRegex(V,J);if(Q===!0)W.state=Z;return W};h1.makeRe=(Z,J={},q=!1,Q=!1)=>{if(!Z||typeof Z!=="string")throw TypeError("Expected a non-empty string");let Y={negated:!1,fastpaths:!0};if(J.fastpaths!==!1&&(Z[0]==="."||Z[0]==="*"))Y.output=k3.fastpaths(Z,J);if(!Y.output)Y=k3(Z,J);return h1.compileRe(Y,J,q,Q)};h1.toRegex=(Z,J)=>{try{let q=J||{};return new RegExp(Z,q.flags||(q.nocase?"i":""))}catch(q){if(J&&J.debug===!0)throw q;return/$^/}};h1.constants=FO;VV.exports=h1});var UV=U1((W_,GV)=>{var KV=WV(),wO=b0();function $V(Z,J,q=!1){if(J&&(J.windows===null||J.windows===void 0))J={...J,windows:wO.isWindows()};return KV(Z,J,q)}Object.assign($V,KV);GV.exports=$V});var H5;(function(Z){Z.start="/**",Z.nostart="/***",Z.delim="*",Z.end="*/"})(H5=H5||(H5={}));function u7(Z){return/^\s+$/.test(Z)}function BJ(Z){let J=Z.match(/\r+$/);return J==null?["",Z]:[Z.slice(-J[0].length),Z.slice(0,-J[0].length)]}function l5(Z){let J=Z.match(/^\s+/);return J==null?["",Z]:[Z.slice(0,J[0].length),Z.slice(J[0].length)]}function MJ(Z){return Z.split(/\n/)}function HJ(Z={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},Z)}function d7(Z={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},Z)}var nW=/^@\S+/;function l7({fence:Z="```"}={}){let J=aW(Z),q=(Q,Y)=>J(Q)?!Y:Y;return function(Y){let X=[[]],z=!1;for(let V of Y){if(nW.test(V.tokens.description)&&!z)X.push([V]);else X[X.length-1].push(V);z=q(V.tokens.description,z)}return X}}function aW(Z){if(typeof Z==="string")return(J)=>J.split(Z).length%2===0;return Z}function c7({startLine:Z=0,markers:J=H5}={}){let q=null,Q=Z;return function(X){let z=X,V=d7();if([V.lineEnd,z]=BJ(z),[V.start,z]=l5(z),q===null&&z.startsWith(J.start)&&!z.startsWith(J.nostart))q=[],V.delimiter=z.slice(0,J.start.length),z=z.slice(J.start.length),[V.postDelimiter,z]=l5(z);if(q===null)return Q++,null;let W=z.trimRight().endsWith(J.end);if(V.delimiter===""&&z.startsWith(J.delim)&&!z.startsWith(J.end))V.delimiter=J.delim,z=z.slice(J.delim.length),[V.postDelimiter,z]=l5(z);if(W){let K=z.trimRight();V.end=z.slice(K.length-J.end.length),z=K.slice(0,-J.end.length)}if(V.description=z,q.push({number:Q,source:X,tokens:V}),Q++,W){let K=q.slice();return q=null,K}return null}}function p7({tokenizers:Z}){return function(q){var Q;let Y=HJ({source:q});for(let X of Z)if(Y=X(Y),(Q=Y.problems[Y.problems.length-1])===null||Q===void 0?void 0:Q.critical)break;return Y}}function i0(){return(Z)=>{let{tokens:J}=Z.source[0],q=J.description.match(/\s*(@(\S+))(\s*)/);if(q===null)return Z.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:Z.source[0].number,critical:!0}),Z;return J.tag=q[1],J.postTag=q[3],J.description=J.description.slice(q[0].length),Z.tag=q[2],Z}}function n0(Z="compact"){let J=rW(Z);return(q)=>{let Q=0,Y=[];for(let[V,{tokens:W}]of q.source.entries()){let K="";if(V===0&&W.description[0]!=="{")return q;for(let $ of W.description){if($==="{")Q++;if($==="}")Q--;if(K+=$,Q===0)break}if(Y.push([W,K]),Q===0)break}if(Q!==0)return q.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:q.source[0].number,critical:!0}),q;let X=[],z=Y[0][0].postDelimiter.length;for(let[V,[W,K]]of Y.entries()){if(W.type=K,V>0)W.type=W.postDelimiter.slice(z)+K,W.postDelimiter=W.postDelimiter.slice(0,z);[W.postType,W.description]=l5(W.description.slice(K.length)),X.push(W.type)}return X[0]=X[0].slice(1),X[X.length-1]=X[X.length-1].slice(0,-1),q.type=J(X),q}}var sW=(Z)=>Z.trim();function rW(Z){if(Z==="compact")return(J)=>J.map(sW).join("");else if(Z==="preserve")return(J)=>J.join(`
|
|
55
|
+
`);else return Z}var oW=(Z)=>Z&&Z.startsWith('"')&&Z.endsWith('"');function a0(){let Z=(J,{tokens:q},Q)=>q.type===""?J:Q;return(J)=>{let{tokens:q}=J.source[J.source.reduce(Z,0)],Q=q.description.trimLeft(),Y=Q.split('"');if(Y.length>1&&Y[0]===""&&Y.length%2===1)return J.name=Y[1],q.name=`"${Y[1]}"`,[q.postName,q.description]=l5(Q.slice(q.name.length)),J;let X=0,z="",V=!1,W;for(let $ of Q){if(X===0&&u7($))break;if($==="[")X++;if($==="]")X--;z+=$}if(X!==0)return J.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:J.source[0].number,critical:!0}),J;let K=z;if(z[0]==="["&&z[z.length-1]==="]"){V=!0,z=z.slice(1,-1);let $=z.split("=");if(z=$[0].trim(),$[1]!==void 0)W=$.slice(1).join("=").trim();if(z==="")return J.problems.push({code:"spec:name:empty-name",message:"empty name",line:J.source[0].number,critical:!0}),J;if(W==="")return J.problems.push({code:"spec:name:empty-default",message:"empty default value",line:J.source[0].number,critical:!0}),J;if(!oW(W)&&/=(?!>)/.test(W))return J.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:J.source[0].number,critical:!0}),J}if(J.optional=V,J.name=z,q.name=K,W!==void 0)J.default=W;return[q.postName,q.description]=l5(Q.slice(q.name.length)),J}}function s0(Z="compact",J=H5){let q=i7(Z);return(Q)=>{return Q.description=q(Q.source,J),Q}}function i7(Z){if(Z==="compact")return tW;if(Z==="preserve")return JK;return Z}function tW(Z,J=H5){return Z.map(({tokens:{description:q}})=>q.trim()).filter((q)=>q!=="").join(" ")}var eW=(Z,{tokens:J},q)=>J.type===""?Z:q,ZK=({tokens:Z})=>(Z.delimiter===""?Z.start:Z.postDelimiter.slice(1))+Z.description;function JK(Z,J=H5){if(Z.length===0)return"";if(Z[0].tokens.description===""&&Z[0].tokens.delimiter===J.start)Z=Z.slice(1);let q=Z[Z.length-1];if(q!==void 0&&q.tokens.description===""&&q.tokens.end.endsWith(J.end))Z=Z.slice(0,-1);return Z=Z.slice(Z.reduce(eW,0)),Z.map(ZK).join(`
|
|
56
|
+
`)}function n7({startLine:Z=0,fence:J="```",spacing:q="compact",markers:Q=H5,tokenizers:Y=[i0(),n0(q),a0(),s0(q)]}={}){if(Z<0||Z%1>0)throw Error("Invalid startLine");let X=c7({startLine:Z,markers:Q}),z=l7({fence:J}),V=p7({tokenizers:Y}),W=i7(q);return function(K){let $=[];for(let H of MJ(K)){let M=X(H);if(M===null)continue;let O=z(M),j=O.slice(1).map(V);$.push({description:W(O[0],Q),tags:j,source:M,problems:j.reduce((L,I)=>L.concat(I.problems),[])})}return $}}function qK(Z){return Z.start+Z.delimiter+Z.postDelimiter+Z.tag+Z.postTag+Z.type+Z.postType+Z.name+Z.postName+Z.description+Z.end+Z.lineEnd}function a7(){return(Z)=>Z.source.map(({tokens:J})=>qK(J)).join(`
|
|
57
|
+
`)}var QK={line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0};var qC=Object.keys(QK);function E6(Z,J={}){return n7(J)(Z)}var RC=a7();class r0{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(Z)=>this.replacement=Z}}replace(Z,J,q,Q){if(Z&&J)if(q!=null)Z[J][q]=Q;else Z[J]=Q}remove(Z,J,q){if(Z&&J)if(q!==null&&q!==void 0)Z[J].splice(q,1);else delete Z[J]}}class r7 extends r0{constructor(Z,J){super();this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(q)=>this.replacement=q},this.enter=Z,this.leave=J}visit(Z,J,q,Q){if(Z){if(this.enter){let X=this.should_skip,z=this.should_remove,V=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,Z,J,q,Q),this.replacement)Z=this.replacement,this.replace(J,q,Q,Z);if(this.should_remove)this.remove(J,q,Q);let W=this.should_skip,K=this.should_remove;if(this.should_skip=X,this.should_remove=z,this.replacement=V,W)return Z;if(K)return null}let Y;for(Y in Z){let X=Z[Y];if(X&&typeof X==="object"){if(Array.isArray(X)){let z=X;for(let V=0;V<z.length;V+=1){let W=z[V];if(FJ(W)){if(!this.visit(W,Z,Y,V))V--}}}else if(FJ(X))this.visit(X,Z,Y,null)}}if(this.leave){let X=this.replacement,z=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,Z,J,q,Q),this.replacement)Z=this.replacement,this.replace(J,q,Q,Z);if(this.should_remove)this.remove(J,q,Q);let V=this.should_remove;if(this.replacement=X,this.should_remove=z,V)return null}}return Z}}function FJ(Z){return Z!==null&&typeof Z==="object"&&"type"in Z&&typeof Z.type==="string"}function o0(Z,{enter:J,leave:q}){return new r7(J,q).visit(Z,null)}import{compile as YK,parse as XK}from"svelte/compiler";var LJ={a:"HTMLAnchorElement",abbr:"HTMLElement",address:"HTMLElement",applet:"HTMLUnknownElement",area:"HTMLAreaElement",article:"HTMLElement",aside:"HTMLElement",audio:"HTMLAudioElement",b:"HTMLElement",base:"HTMLBaseElement",basefont:"HTMLElement",bdi:"HTMLElement",bdo:"HTMLElement",blockquote:"HTMLQuoteElement",body:"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCanvasElement",caption:"HTMLTableCaptionElement",cite:"HTMLElement",code:"HTMLElement",col:"HTMLTableColElement",colgroup:"HTMLTableColElement",data:"HTMLDataElement",datalist:"HTMLDataListElement",dd:"HTMLElement",del:"HTMLModElement",details:"HTMLDetailsElement",dfn:"HTMLElement",dialog:"HTMLDialogElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListElement",dt:"HTMLElement",em:"HTMLElement",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",figcaption:"HTMLElement",figure:"HTMLElement",font:"HTMLFontElement",footer:"HTMLElement",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",h1:"HTMLHeadingElement",h2:"HTMLHeadingElement",h3:"HTMLHeadingElement",h4:"HTMLHeadingElement",h5:"HTMLHeadingElement",h6:"HTMLHeadingElement",head:"HTMLHeadElement",header:"HTMLElement",hgroup:"HTMLElement",hr:"HTMLHRElement",html:"HTMLHtmlElement",i:"HTMLElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInputElement",ins:"HTMLModElement",kbd:"HTMLElement",label:"HTMLLabelElement",legend:"HTMLLegendElement",li:"HTMLLIElement",link:"HTMLLinkElement",main:"HTMLElement",map:"HTMLMapElement",mark:"HTMLElement",marquee:"HTMLMarqueeElement",menu:"HTMLMenuElement",meta:"HTMLMetaElement",meter:"HTMLMeterElement",nav:"HTMLElement",noscript:"HTMLElement",object:"HTMLObjectElement",ol:"HTMLOListElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamElement",picture:"HTMLPictureElement",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",rp:"HTMLElement",rt:"HTMLElement",ruby:"HTMLElement",s:"HTMLElement",samp:"HTMLElement",script:"HTMLScriptElement",search:"HTMLElement",section:"HTMLElement",select:"HTMLSelectElement",slot:"HTMLSlotElement",small:"HTMLElement",source:"HTMLSourceElement",span:"HTMLSpanElement",strong:"HTMLElement",style:"HTMLStyleElement",sub:"HTMLElement",summary:"HTMLElement",sup:"HTMLElement",table:"HTMLTableElement",tbody:"HTMLTableSectionElement",td:"HTMLTableCellElement",template:"HTMLTemplateElement",textarea:"HTMLTextAreaElement",tfoot:"HTMLTableSectionElement",th:"HTMLTableCellElement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:"HTMLTitleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",u:"HTMLElement",ul:"HTMLUListElement",var:"HTMLElement",video:"HTMLVideoElement",wbr:"HTMLElement"};function wJ(Z){return Z in LJ?LJ[Z]:"HTMLElement"}var zK=/(?:const|let|function)\s+(\w+)\s*[=(]/,VK=/^-\s*/,WK=/\w/,KK=/^\s*$/;function t0(Z){if(!Z)return;let J=Z.lastIndexOf("-");return J>=0?Z.substring(J+1).trim():Z.trim()}function L8(Z){if(Z===void 0)return;let J=Z.replace(VK,"").trim();return J===""?"":J}function OJ(Z){if(Z==="var")return"let";if(Z==="using"||Z==="await using")return"const";return Z}var $K=null,GK=/(\}|\};)$/,UK=/[-_.:/\s]+/,NJ=/^@component/,jK=/\r/g,BK=/[\r\n]+/g;class T1{options;syntaxMode="legacy";source;compiled;parsed;rest_props;extends;componentComment;reactive_vars=new Set;vars=new Set;props=new Map;moduleExports=new Map;slots=new Map;events=new Map;eventDescriptions=new Map;forwardedEvents=new Map;typedefs=new Map;generics=null;bindings=new Map;contexts=new Map;variableInfoCache=new Map;propLocalToPublicName=new Map;restPropLocals=new Set;snippetPropLocals=new Set;componentScope=new Map;scopeDeclarations=new WeakMap;activeScopes=[];sourceLinesCache;constructor(Z){this.options=Z}static mapToArray(Z){return Array.from(Z,([J,q])=>q)}static assignValue(Z){return Z===void 0||Z===""?void 0:Z}resolvePublicPropName(Z){return this.propLocalToPublicName.get(Z)??Z}trackPropLocalName(Z,J=Z){this.propLocalToPublicName.set(J,Z)}getPropByLocalOrPublic(Z){return this.props.get(this.resolvePublicPropName(Z))}getPropTypeByLocalOrPublic(Z){return this.getPropByLocalOrPublic(Z)?.type}declareScopeBinding(Z,J,q){if(T1.assignValue(J)===void 0||Z.has(J))return;Z.set(J,q)}resolveIdentifierToReactiveProp(Z){for(let J=this.activeScopes.length-1;J>=0;J-=1){let q=this.activeScopes[J]?.get(Z);if(!q)continue;return q.kind==="prop"?q.publicPropName:void 0}return}collectPatternIdentifiers(Z,J=new Set){if(!Z||typeof Z!=="object"||!("type"in Z))return J;switch(Z.type){case"Identifier":J.add(Z.name);break;case"AssignmentPattern":this.collectPatternIdentifiers(Z.left,J);break;case"ArrayPattern":for(let q of Z.elements)this.collectPatternIdentifiers(q??void 0,J);break;case"ObjectPattern":for(let q of Z.properties)if(q.type==="Property")this.collectPatternIdentifiers(q.value,J);else if(q.type==="RestElement")this.collectPatternIdentifiers(q.argument,J);break;case"RestElement":this.collectPatternIdentifiers(Z.argument,J);break}return J}markReactivePropsFromMutationTarget(Z){let J=this.collectPatternIdentifiers(Z);if(!J)return;for(let q of J){let Q=this.resolveIdentifierToReactiveProp(q);if(Q)this.reactive_vars.add(Q)}}isScopeOwner(Z){if(!Z||typeof Z!=="object"||!("type"in Z))return!1;switch(String(Z.type)){case"BlockStatement":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"CatchClause":case"EachBlock":case"ThenBlock":case"CatchBlock":return!0;default:return!1}}isFunctionScopeOwner(Z){if(!Z||typeof Z!=="object"||!("type"in Z))return!1;let J=String(Z.type);return J==="FunctionDeclaration"||J==="FunctionExpression"||J==="ArrowFunctionExpression"}getOrCreateScope(Z){let J=this.scopeDeclarations.get(Z);if(!J)J=new Map,this.scopeDeclarations.set(Z,J);return J}declareVariableDeclaration(Z,J,q,Q){if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="VariableDeclaration")return;let Y=Q?.allowRunesProps??!1,X=Q?.forceProp??!1,z=Z;for(let V of z.declarations){if(Y&&this.isCallExpressionNamed(V.init,"$props")){for(let $ of this.extractRunesScopeBindings(z,V))this.declareScopeBinding($.kind==="prop"?J:q,$.name,$.kind==="prop"?{kind:"prop",publicPropName:$.publicPropName}:{kind:"local"});continue}let W=z.kind==="var"?q:J,K=X?"prop":"local";for(let $ of this.collectPatternIdentifiers(V.id))this.declareScopeBinding(W,$,K==="prop"?{kind:"prop",publicPropName:$}:{kind:"local"})}}declareFunctionLikeScopeBindings(Z,J){if("id"in Z&&Z.id&&typeof Z.id==="object"&&"name"in Z.id&&typeof Z.id.name==="string")this.declareScopeBinding(J,Z.id.name,{kind:"local"});for(let q of Z.params)for(let Q of this.collectPatternIdentifiers(q))this.declareScopeBinding(J,Q,{kind:"local"})}collectDirectBlockDeclarations(Z,J,q){if(!Array.isArray(Z))return;for(let Q of Z){if(!Q||typeof Q!=="object"||!("type"in Q))continue;switch(Q.type){case"VariableDeclaration":this.declareVariableDeclaration(Q,J,q);break;case"FunctionDeclaration":if(Q.id?.name)this.declareScopeBinding(J,Q.id.name,{kind:"local"});break;case"ClassDeclaration":if(Q.id?.name)this.declareScopeBinding(J,Q.id.name,{kind:"local"});break}}}extractRunesScopeBindings(Z,J){let q=[];if(J.id.type==="Identifier")return q.push({kind:"local",name:J.id.name}),q;if(J.id.type!=="ObjectPattern")return q;for(let Q of J.id.properties){if(Q.type==="RestElement"){if(Q.argument.type==="Identifier")q.push({kind:"local",name:Q.argument.name});continue}if(Q.computed)continue;let Y=this.getPropertyName(Q.key);if(!Y)continue;let X;if(Q.value.type==="Identifier")X=Q.value.name;else if(Q.value.type==="AssignmentPattern"&&Q.value.left.type==="Identifier")X=Q.value.left.name;if(!X)continue;q.push({kind:"prop",name:X,publicPropName:Y})}return q}collectComponentScopeDeclarations(Z){if(!Z||typeof Z!=="object")return;let J="content"in Z&&Z.content&&typeof Z.content==="object"&&"body"in Z.content&&Array.isArray(Z.content.body)?Z.content:("body"in Z)&&Array.isArray(Z.body)?Z:void 0;if(!J||!("body"in J)||!Array.isArray(J.body))return;for(let q of J.body){if(!q||typeof q!=="object"||!("type"in q))continue;switch(q.type){case"ImportDeclaration":for(let Q of q.specifiers??[])if(Q.local?.name)this.declareScopeBinding(this.componentScope,Q.local.name,{kind:"local"});break;case"VariableDeclaration":this.declareVariableDeclaration(q,this.componentScope,this.componentScope,{allowRunesProps:!0});break;case"FunctionDeclaration":if(q.id?.name)this.declareScopeBinding(this.componentScope,q.id.name,{kind:"local"});break;case"ClassDeclaration":if(q.id?.name)this.declareScopeBinding(this.componentScope,q.id.name,{kind:"local"});break;case"ExportNamedDeclaration":if(!q.declaration||typeof q.declaration!=="object"||!("type"in q.declaration))break;if(q.declaration.type==="VariableDeclaration")this.declareVariableDeclaration(q.declaration,this.componentScope,this.componentScope,{forceProp:!0});else if(q.declaration.type==="FunctionDeclaration"&&q.declaration.id?.name)this.declareScopeBinding(this.componentScope,q.declaration.id.name,{kind:"prop",publicPropName:q.declaration.id.name});break}}}collectNestedScopeDeclarations(Z){let J=[this.componentScope];o0(Z,{enter:(q)=>{if(!this.isScopeOwner(q))return;let Q=this.getOrCreateScope(q),Y=J[J.length-1]??this.componentScope;switch(String(q.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":this.declareFunctionLikeScopeBindings(q,Q);break;case"BlockStatement":this.collectDirectBlockDeclarations(q.body,Q,Y);break;case"CatchClause":if("param"in q)for(let z of this.collectPatternIdentifiers(q.param))this.declareScopeBinding(Q,z,{kind:"local"});break;case"EachBlock":{let z=q;for(let V of this.collectPatternIdentifiers(z.context))this.declareScopeBinding(Q,V,{kind:"local"});if(typeof z.index==="string")this.declareScopeBinding(Q,z.index,{kind:"local"});else if(z.index&&"name"in z.index)this.declareScopeBinding(Q,z.index.name,{kind:"local"});break}case"ThenBlock":if("value"in q)for(let z of this.collectPatternIdentifiers(q.value))this.declareScopeBinding(Q,z,{kind:"local"});break;case"CatchBlock":if("error"in q)for(let z of this.collectPatternIdentifiers(q.error))this.declareScopeBinding(Q,z,{kind:"local"});break}if(this.isFunctionScopeOwner(q))J.push(Q)},leave:(q)=>{if(this.isFunctionScopeOwner(q))J.pop()}})}buildScopeDeclarations(Z){this.componentScope.clear(),this.scopeDeclarations=new WeakMap,this.activeScopes.length=0,this.collectComponentScopeDeclarations(this.parsed?.instance),this.collectNestedScopeDeclarations(Z)}createRestPropsFromParent(Z){if(!Z||typeof Z!=="object"||!("type"in Z))return;let J=String(Z.type);if(J!=="InlineComponent"&&J!=="Element")return;let q="name"in Z&&typeof Z.name==="string"?Z.name:void 0;if(!q)return;let Q=J==="InlineComponent"?{type:"InlineComponent",name:q}:{type:"Element",name:q};if(J==="Element"&&q==="svelte:element"&&"tag"in Z&&typeof Z.tag==="string")Q.thisValue=Z.tag;return Q}maybeSetRestProps(Z){if(this.rest_props!==void 0)return;let J=this.createRestPropsFromParent(Z);if(J)this.rest_props=J}isCallExpressionNamed(Z,J){if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return!1;let q=Z;return!!q.callee&&typeof q.callee==="object"&&"name"in q.callee&&q.callee.name===J}getPropertyName(Z){if(!Z||typeof Z!=="object"||!("type"in Z))return;if(Z.type==="Identifier")return Z.name;if(Z.type==="Literal")return Z.value==null?void 0:String(Z.value);return}logUnsupportedRunesPattern(Z){if(this.options?.verbose&&this.syntaxMode==="runes")console.warn(`Warning: ${Z}`)}static formatComment(Z){let J=Z;if(!J.startsWith("/*"))J=`/*${J}`;if(!J.endsWith("*/"))J+="*/";return J}getCommentTags(Z){let J=Z[0]?.tags??[],q=new Set(["type","param","returns","return","extends","extendProps","restProps","slot","event","typedef","callback"]),Q,Y=[],X,z=[];for(let V of J)if(V.tag==="type")Q=V;else if(V.tag==="param")Y.push(V);else if(V.tag==="returns"||V.tag==="return")X=V;else if(!q.has(V.tag))z.push(V);return{type:Q,param:Y,returns:X,additional:z,description:Z[0]?.description}}static findJSDocComment(Z){if(!Z||Z.length===0)return;let J=Z[Z.length-1];return J&&typeof J==="object"&&"value"in J?J:void 0}findAdjacentJSDocComment(Z,J){if(!Z||Z.length===0||J===void 0||!this.source)return;for(let q=Z.length-1;q>=0;q--){let Q=Z[q];if(!Q||typeof Q!=="object"||!("value"in Q)||!("end"in Q))continue;if(typeof Q.end!=="number")continue;let Y=this.source.slice(Q.end,J);if(KK.test(Y))return Q}return}processNodeJSDoc(Z){if(!Z?.leadingComments)return;let J=this.findAdjacentJSDocComment(Z.leadingComments,Z.start);if(!J)return;return this.processJSDocComment([J])}processJSDocComment(Z){if(!Z)return;let J=T1.findJSDocComment(Z);if(!J)return;let q=E6(T1.formatComment(J.value),{spacing:"preserve"}),{type:Q,param:Y,returns:X,additional:z,description:V}=this.getCommentTags(q),W,K,$,H;if(Q)W=this.aliasType(Q.type);if(Y.length>0)K=Y.filter((O)=>!O.name.includes(".")).map((O)=>({name:O.name,type:this.aliasType(O.type),description:L8(O.description),optional:O.optional||!1}));if(X)$=this.aliasType(X.type);let M=T1.assignValue(V?.trim());if(M||z.length>0){let O=[];if(M)O.push(M);for(let j of z){let L=`@${j.tag}${j.name?` ${j.name}`:""}${j.description?` ${j.description}`:""}`;O.push(L)}H=O.join(`
|
|
58
|
+
`)}return{type:W,params:K,returnType:$,description:H}}isNumericConstant(Z){if(!Z||typeof Z!=="object"||!("type"in Z))return!1;if(Z.type!=="MemberExpression")return!1;let J=Z,q=J.object&&"name"in J.object?J.object.name:void 0,Q=J.property&&"name"in J.property?J.property.name:void 0;if(!q||!Q)return!1;if(q==="Number")return["POSITIVE_INFINITY","NEGATIVE_INFINITY","MAX_VALUE","MIN_VALUE","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","EPSILON","NaN"].includes(Q);if(q==="Math")return["PI","E","LN2","LN10","LOG2E","LOG10E","SQRT2","SQRT1_2"].includes(Q);return!1}sourceAtPos(Z,J){return this.source?.slice(Z,J)}processInitializer(Z){let J,q,Q=!1;if(!Z||typeof Z!=="object"||!("type"in Z))return{value:J,type:q,isFunction:Q};if(Z.type==="ObjectExpression"||Z.type==="BinaryExpression"||Z.type==="ArrayExpression"||Z.type==="ArrowFunctionExpression"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")J=this.sourceAtPos(Y.start,Y.end)?.replace(BK," ");if(q=J,Q=Z.type==="ArrowFunctionExpression",Z.type==="BinaryExpression"){let X=Z;if(X.left&&typeof X.left==="object"&&"type"in X.left&&X.left.type==="Literal"&&"value"in X.left&&typeof X.left.value==="string")q="string"}if(Z.type==="ArrowFunctionExpression")q="(...args: any[]) => any",J=void 0}else if(Z.type==="UnaryExpression"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")J=this.sourceAtPos(Y.start,Y.end);if(Y.argument){if(typeof Y.argument==="object"&&"type"in Y.argument&&Y.argument.type==="UnaryExpression")q=this.processInitializer(Y.argument).type;else if(typeof Y.argument==="object"&&"value"in Y.argument)q=typeof Y.argument.value}}else if(Z.type==="NewExpression"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")J=this.sourceAtPos(Y.start,Y.end);if(Y.callee&&typeof Y.callee==="object"&&"type"in Y.callee&&Y.callee.type==="Identifier"){let X=Y.callee.name;if(X==="Date")q="Date";else if(X==="Map")q="Map<any, any>";else if(X==="Set")q="Set<any>";else if(X==="WeakMap")q="WeakMap<object, any>";else if(X==="WeakSet")q="WeakSet<object>";else if(X==="Array")q="any[]";else if(X==="RegExp"||X==="Regexp")q="RegExp";else if(X==="Error")q="Error";else q=X}}else if(Z.type==="CallExpression"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")J=this.sourceAtPos(Y.start,Y.end)}else if(Z.type==="Identifier"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")J=this.sourceAtPos(Y.start,Y.end)}else if(Z.type==="MemberExpression"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")J=this.sourceAtPos(Y.start,Y.end);if(this.isNumericConstant(Z))q="number"}else if(Z.type==="TemplateLiteral"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")J=this.sourceAtPos(Y.start,Y.end);q="string"}else if("raw"in Z&&typeof Z.raw==="string"){if(J=Z.raw,"value"in Z)q=Z.value==null?void 0:typeof Z.value}return{value:J,type:q,isFunction:Q}}unwrapBindableInitializer(Z){if(this.isCallExpressionNamed(Z,"$bindable"))return{init:Z.arguments[0],bindable:!0};return{init:Z,bindable:!1}}parseRunesPropsDeclaration(Z){for(let J of Z.declarations){if(!this.isCallExpressionNamed(J.init,"$props"))continue;let q=this.processNodeJSDoc(Z);if(J.id.type==="Identifier"){this.restPropLocals.add(J.id.name);continue}if(J.id.type!=="ObjectPattern"){this.logUnsupportedRunesPattern("Skipping unsupported $props() declaration pattern.");continue}for(let Q of J.id.properties){if(Q.type==="RestElement"){if(Q.argument.type==="Identifier")this.restPropLocals.add(Q.argument.name);else this.logUnsupportedRunesPattern("Skipping unsupported rest element in $props() destructuring.");continue}if(Q.computed){this.logUnsupportedRunesPattern("Skipping computed property in $props() destructuring.");continue}let Y=this.getPropertyName(Q.key);if(!Y){this.logUnsupportedRunesPattern("Skipping unsupported property name in $props() destructuring.");continue}let X,z;if(Q.value.type==="Identifier")X=Q.value.name;else if(Q.value.type==="AssignmentPattern"){if(Q.value.left.type!=="Identifier"){this.logUnsupportedRunesPattern(`Skipping nested pattern for prop "${Y}" in $props() destructuring.`);continue}X=Q.value.left.name,z=Q.value.right}else{this.logUnsupportedRunesPattern(`Skipping nested pattern for prop "${Y}" in $props() destructuring.`);continue}if(!X)continue;if(this.trackPropLocalName(Y,X),Y==="children")this.snippetPropLocals.add(X);let{init:V,bindable:W}=this.unwrapBindableInitializer(z),K=V==null?{isFunction:!1}:this.processInitializer(V),{value:$,type:H,isFunction:M}=K,O=q?.type??H;if(W)this.reactive_vars.add(Y);this.addProp(Y,{name:Y,kind:"let",description:q?.description,type:O,value:$,params:q?.params,returnType:q?.returnType,isFunction:M,isFunctionDeclaration:!1,isRequired:V==null,constant:!1,reactive:W})}}}inferSlotPropValueFromExpression(Z){let J={value:void 0,replace:!1};if(!Z||typeof Z!=="object"||!("type"in Z))return J;if(Z.type==="Identifier")J.value=Z.name,J.replace=!0;else if(Z.type==="Literal")J.value=String(Z.value);else if(Z.type==="MemberExpression")J.value=this.resolveMemberExpressionType(Z);else if((Z.type==="ObjectExpression"||Z.type==="TemplateLiteral")&&"start"in Z&&"end"in Z&&typeof Z.start==="number"&&typeof Z.end==="number")J.value=this.sourceAtPos(Z.start,Z.end);return J}buildSlotPropsFromObjectExpression(Z){let J={};for(let q of Z.properties){if(q.type!=="Property"||q.computed)continue;let Q=this.getPropertyName(q.key);if(!Q)continue;J[Q]=this.inferSlotPropValueFromExpression(q.value)}return J}extractRenderTagInfo(Z){let J=Z;if(J&&typeof J==="object"&&"type"in J&&J.type==="ChainExpression")J=J.expression;if(!J||typeof J!=="object"||!("type"in J)||J.type!=="CallExpression")return null;let q=J;if(!q.callee||typeof q.callee!=="object"||!("type"in q.callee))return null;if(q.callee.type!=="Identifier")return null;return{localName:q.callee.name,argument:q.arguments[0]}}addProp(Z,J){if(T1.assignValue(Z)===void 0)return;if(this.trackPropLocalName(Z),this.props.has(Z)){let q=this.props.get(Z);this.props.set(Z,{...q,...J})}else this.props.set(Z,J)}addModuleExport(Z,J){if(T1.assignValue(Z)===void 0)return;if(this.moduleExports.has(Z)){let q=this.moduleExports.get(Z);this.moduleExports.set(Z,{...q,...J})}else this.moduleExports.set(Z,J)}aliasType(Z){if(Z==="*")return"any";return Z.trim()}extractPropertyType(Z,J){let q=Z.trim();if(!q.startsWith("{")||!q.endsWith("}"))return;let Q=q.slice(1,-1),Y=[],X=0,z="";for(let V of Q)if(V==="{"||V==="<"||V==="("||V==="[")X++,z+=V;else if(V==="}"||V===">"||V===")"||V==="]")X--,z+=V;else if((V===";"||V===",")&&X===0)Y.push(z.trim()),z="";else z+=V;if(z.trim())Y.push(z.trim());for(let V of Y){if(!V.startsWith(J))continue;let W=V.slice(J.length);if(W.length>0&&WK.test(W[0]))continue;let K=W.trimStart();if(K.startsWith("?"))K=K.slice(1).trimStart();if(K.startsWith(":"))return K.slice(1).trim()}return}resolveMemberExpressionType(Z){let J=Z;if(J.computed||J.object?.type!=="Identifier"||J.property?.type!=="Identifier")return;let q=J.object.name,Q=J.property.name;if(!q||!Q)return;let Y=this.getPropTypeByLocalOrPublic(q)??this.findVariableTypeAndDescription(q)?.type;if(!Y)return;return this.extractPropertyType(Y,Q)}addSlot({slot_name:Z,slot_props:J,slot_fallback:q,slot_description:Q}){let Y=Z===void 0||Z==="",X=Y?$K:Z??"",z=T1.assignValue(q),V=T1.assignValue(J),W=t0(Q);if(this.slots.has(X)){let K=this.slots.get(X);if(K)this.slots.set(X,{...K,default:K.default??Y,fallback:z,slot_props:K.slot_props===void 0?V:K.slot_props,description:K.description||W})}else this.slots.set(X,{name:X,default:Y,fallback:z,slot_props:J,description:W})}addDispatchedEvent({name:Z,detail:J,has_argument:q,description:Q}){if(Z===void 0)return;let Y=!q&&!J?"null":T1.assignValue(J),X=t0(Q);if(this.events.has(Z)){let z=this.events.get(Z);this.events.set(Z,{...z,detail:z.detail===void 0?Y:z.detail,description:z.description||X})}else this.events.set(Z,{type:"dispatched",name:Z,detail:Y,description:X})}parseCustomTypes(){if(!this.source)return;for(let{tags:Z,description:J,source:q}of E6(this.source,{spacing:"preserve"})){let Q,Y,X,z=[],V,W,K,$=[],H,M,O=[],j,L=!1,I=!0,y=new Map,_=new Set;for(let E of Z)if(E.source&&E.source.length>0)_.add(E.source[0].number);for(let E of q)if(!E.tokens.tag&&E.tokens.description&&E.tokens.description.trim()!=="}")y.set(E.number,E.tokens.description);let T=(E)=>{if(!E||E.length===0)return;let N=E[0].number,P=[],A=!1;for(let B=N-1;B>=1;B--){if(_.has(B))break;let b=y.get(B);if(b)P.unshift(b),A=!0;else if(A){let k=q.find((G)=>G.number===B);if(!(!k||!k.tokens.tag&&(!k.tokens.description||k.tokens.description.trim()==="")))break}}return P.length>0?P.join(`
|
|
59
|
+
`).trim():void 0},g=()=>{if(Q!==void 0){let E;if(z.length>0)E=this.buildEventDetailFromProperties(z,Q,!0);else E=Y||"";this.addDispatchedEvent({name:Q,detail:E,has_argument:!1,description:X}),this.eventDescriptions.set(Q,X),z.length=0,Q=void 0,Y=void 0,X=void 0}},h=()=>{if(V!==void 0){let E,N;if($.length>0)E=this.buildEventDetailFromProperties($,void 0,!0),N=`type ${V} = ${E}`;else if(W)E=W,N=GK.test(E)?`interface ${V} ${E}`:`type ${V} = ${E}`;else E="{}",N=`type ${V} = ${E}`;this.typedefs.set(V,{type:E,name:V,description:T1.assignValue(K),ts:N}),$.length=0,V=void 0,W=void 0,K=void 0}},u=()=>{if(H!==void 0){let P=`(${O.map(({name:B,type:b,optional:k})=>{return`${B}${k?"?":""}: ${b}`}).join(", ")}) => ${j||"void"}`,A=`type ${H} = ${P}`;this.typedefs.set(H,{type:P,name:H,description:T1.assignValue(M),ts:A}),O.length=0,j=void 0,H=void 0,M=void 0}};for(let{tag:E,type:N,name:P,description:A,optional:B,default:b,source:k}of Z){let S=this.aliasType(N),G=T(k);switch(E){case"extends":case"extendProps":if(this.extends={interface:P,import:S},I)I=!1;break;case"restProps":{let F=P?A?`${P} ${A}`:P:A,f=L8(F)||G;if(!f&&I&&!L&&J)f=J,L=!0;if(this.rest_props={type:"Element",name:S,description:f||void 0},I)I=!1;break}case"slot":{let d=L8(A)||G;if(!d&&I&&!L&&J)d=J,L=!0;if(I)I=!1;this.addSlot({slot_name:P,slot_props:S,slot_description:d||void 0});break}case"event":{if(g(),Q=P,Y=S,X=L8(A)||G,!X&&I&&!L&&J)X=J,L=!0;if(I)I=!1;break}case"type":if(Q!==void 0)Y=S;break;case"param":if(H!==void 0)O.push({name:P,type:S,optional:B||!1});break;case"returns":case"return":if(H!==void 0)j=S;break;case"property":{let F={name:P,type:S,description:L8(A),optional:B||!1,default:b};if(Q!==void 0)z.push(F);else if(V!==void 0)$.push(F);break}case"typedef":{if(h(),V=P,W=S,K=L8(A)||G,!K&&I&&!L&&J)K=J,L=!0;if(I)I=!1;break}case"callback":{if(u(),H=P,M=L8(A)||G,!M&&I&&!L&&J)M=J,L=!0;if(I)I=!1;break}case"generics":if(this.generics=[P,S],I)I=!1;break}}g(),h(),u()}}buildEventDetailFromProperties(Z,J,q=!1){if(Z.length===0)return"null";let Q=Z.map(({name:Y,type:X,description:z,optional:V,default:W})=>{let K=V?"?":"",$=z||"";if(W&&$)$=`${$} @default ${W}`;else if(W)$=`@default ${W}`;if($){if(q)return`/** ${$} */
|
|
60
|
+
${Y}${K}: ${X};`;return`/** ${$} */ ${Y}${K}: ${X};`}return`${Y}${K}: ${X};`}).join(q?`
|
|
61
|
+
`:" ");return q?`{
|
|
62
62
|
${Q}
|
|
63
|
-
}`:`{ ${Q} }`}generateContextTypeName(Z){return`${Z.split(
|
|
64
|
-
`);let Z=this.sourceLinesCache;for(let
|
|
65
|
-
`),K=
|
|
66
|
-
`);let
|
|
67
|
-
`),
|
|
68
|
-
`),this.buildVariableInfoCache(),this.parseCustomTypes(),this.parsed?.module)j3(this.parsed?.module,{enter:(B)=>{if(B.type==="ExportNamedDeclaration"){if(B.declaration==null)return;if(!B.declaration||typeof B.declaration!=="object"||!("type"in B.declaration))return;let H,N,C,A=!1,S,T,g=!1,f,u;if(B.declaration.type==="FunctionDeclaration"){let E=B.declaration;if(!E.id?.name)return;H=E.id.name,N="function",S=void 0,T="() => any",g=!0,A=!0}else if(B.declaration.type==="VariableDeclaration"){let E=B.declaration,R=E.declarations[0];if(!R||typeof R!=="object"||!("id"in R))return;let{id:P,init:I}=R;if(!P||typeof P!=="object"||!("name"in P))return;H=P.name,N=E.kind==="var"?"let":E.kind,{value:S,type:T,isFunction:g}=I==null?{isFunction:!1}:this.processInitializer(I)}else return;if(B.leadingComments){let E=this.processJSDocComment(B.leadingComments);if(E){if(E.type)T=E.type;if(f=E.params,u=E.returnType,E.description)C=E.description}}if(A&&T==="() => any"&&u)if(f&&f.length>0)T=`(${f.map((P)=>{let I=P.optional?"?":"";return`${P.name}${I}: ${P.type}`}).join(", ")}) => ${u}`;else T=`() => ${u}`;if(!C&&T&&this.typedefs.has(T))C=this.typedefs.get(T)?.description;this.addModuleExport(H,{name:H,kind:N,description:C,type:T,value:S,params:f,returnType:u,isFunction:g,isFunctionDeclaration:A,isRequired:!1,constant:N==="const",reactive:!1})}}});let Y,z=[];if(j3({html:this.parsed.html,instance:this.parsed.instance},{enter:(B,H,N)=>{if(B.type==="CallExpression"){let C=B,A=C.callee&&typeof C.callee==="object"&&"name"in C.callee?C.callee.name:void 0;if(A==="createEventDispatcher"){if(H&&typeof H==="object"&&"id"in H&&H.id&&typeof H.id==="object"&&"name"in H.id)Y=H.id.name}if(A==="setContext")this.parseSetContextCall(B,H??void 0);if(A)z.push({name:A,arguments:C.arguments})}if(B&&typeof B==="object"&&"type"in B&&String(B.type)==="Spread"){if(B.expression?.name==="$$restProps"){if(H&&typeof H==="object"&&"type"in H&&(H.type==="InlineComponent"||H.type==="Element")){let A=H.type,S="name"in H&&typeof H.name==="string"?H.name:void 0;if(S){let T=A==="InlineComponent"?{type:"InlineComponent",name:S}:{type:"Element",name:S};if(A==="Element"&&S==="svelte:element"){if("tag"in H&&typeof H.tag==="string")T.thisValue=H.tag}if(this.rest_props===void 0)this.rest_props=T}}}}if(B.type==="VariableDeclaration")this.vars.add(B);if(B.type==="ExportNamedDeclaration"){if(B.declaration==null&&B.specifiers.length===0)return;let C;if(B.declaration==null&&B.specifiers[0]?.type==="ExportSpecifier"){let I=B.specifiers[0],j=I.local&&typeof I.local==="object"&&"name"in I.local?I.local.name:void 0,x=I.exported&&typeof I.exported==="object"&&"name"in I.exported?I.exported.name:void 0;if(!j||!x)return;let k;for(let y of Array.from(this.vars))if(y.declarations.some(($)=>$.id&&typeof $.id==="object"&&("type"in $.id)&&$.id.type==="Identifier"&&$.id.name===j)){k=y;break}B.declaration=k,C=x}if(B.declaration==null)return;if(!B.declaration||typeof B.declaration!=="object"||!("type"in B.declaration))return;let A,S,T=!1,g,f,u=!1,E,R,P=!1;if(B.declaration.type==="FunctionDeclaration"){let I=B.declaration;if(!I.id?.name)return;C??=I.id.name,A="function",g=void 0,f="() => any",u=!0,T=!0,P=!1}else if(B.declaration.type==="VariableDeclaration"){let I=B.declaration,j=I.declarations[0];if(!j||typeof j!=="object"||!("id"in j))return;let{id:x,init:k}=j;if(x&&typeof x==="object"&&"name"in x)C??=x.name;else return;A=I.kind==="var"?"let":I.kind,P=A==="let"&&k==null,{value:g,type:f,isFunction:u}=k==null?{isFunction:!1}:this.processInitializer(k)}else return;if(B.leadingComments){let I=this.processJSDocComment(B.leadingComments);if(I){if(I.type)f=I.type;if(E=I.params,R=I.returnType,I.description)S=I.description}}if(T&&f==="() => any"&&R)if(E&&E.length>0)f=`(${E.map((x)=>{let k=x.optional?"?":"";return`${x.name}${k}: ${x.type}`}).join(", ")}) => ${R}`;else f=`() => ${R}`;if(!S&&f&&this.typedefs.has(f))S=this.typedefs.get(f)?.description;this.addProp(C,{name:C,kind:A,description:S,type:f,value:g,params:E,returnType:R,isFunction:u,isFunctionDeclaration:T,isRequired:P,constant:A==="const",reactive:this.reactive_vars.has(C)})}if(B&&typeof B==="object"&&"type"in B&&String(B.type)==="Comment"){let A=B?.data?.trim()??"";if(B3.test(A))this.componentComment=A.replace(B3,"").replace(sW,"")}if(B&&typeof B==="object"&&"type"in B&&String(B.type)==="Slot"){let C=B,A=C.attributes?.find((g)=>g.name==="name")?.value?.[0]?.data,S=(C.attributes||[]).filter((g)=>g.name!=="name").reduce((g,f)=>{let u={value:void 0,replace:!1},E=f.value;if(E===void 0)return g;if(E[0]){let R=E[0],{type:P,expression:I,raw:j,start:x,end:k}=R;if(P==="Text"&&j!==void 0)u.value=j;else if(P==="AttributeShorthand"&&I&&typeof I==="object"&&"name"in I)u.value=I.name,u.replace=!0;if(I&&typeof I==="object"&&"type"in I){if(I.type==="Literal"&&"value"in I)u.value=String(I.value);else if(I.type==="MemberExpression")u.value=this.resolveMemberExpressionType(I);else if(I.type!=="Identifier"){if(x!==void 0&&k!==void 0){if(I.type==="ObjectExpression"||I.type==="TemplateLiteral")u.value=this.sourceAtPos(x+1,k-1)}}}}if(f.name)g[f.name]=u;return g},{}),T=C.children?.map(({start:g,end:f})=>this.sourceAtPos(g,f)).join("").trim();this.addSlot({slot_name:A,slot_props:JSON.stringify(S,null,2),slot_fallback:T})}if(B&&typeof B==="object"&&"type"in B&&String(B.type)==="EventHandler"){let C=B;if(C.expression==null&&C.name){if(H!=null&&typeof H==="object"&&"name"in H){let A=typeof H.name==="string"?H.name:void 0,S="type"in H?String(H.type):void 0;if(A&&S){let T=S==="InlineComponent"?{type:"InlineComponent",name:A}:{type:"Element",name:A};this.forwardedEvents.set(C.name,T);let g=this.events.get(C.name),f=this.eventDescriptions.get(C.name),u=n0(f);if(!g)this.events.set(C.name,{type:"forwarded",name:C.name,element:T,description:u});else if(g.type==="forwarded"&&u&&!g.description)this.events.set(C.name,{...g,description:u})}}}}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="Element"&&B&&typeof B==="object"&&"type"in B&&String(B.type)==="Binding"){let C=B,A=H;if(C.name==="this"&&C.expression?.name&&A.name){let S=C.expression.name,T=A.name;if(this.bindings.has(S)){let g=this.bindings.get(S);if(g&&!g.elements.includes(T))this.bindings.set(S,{...g,elements:[...g.elements,T]})}else this.bindings.set(S,{elements:[T]})}}}}),Y!==void 0){for(let B of z)if(B.name===Y){let H=B.arguments[0],N=H&&typeof H==="object"&&"value"in H?H.value:void 0,C=B.arguments[1],A=C&&typeof C==="object"&&"value"in C?C.value:void 0;if(N!=null)this.addDispatchedEvent({name:String(N),detail:A==null?"":String(A),has_argument:Boolean(C)})}}let X=new Set;if(Y!==void 0){for(let B of z)if(B.name===Y){let H=B.arguments[0],N=H&&typeof H==="object"&&"value"in H?H.value:void 0;if(N!=null)X.add(String(N))}}this.forwardedEvents.forEach((B,H)=>{let N=this.events.get(H);if(N&&N.type==="dispatched"&&!X.has(H)){let C=this.eventDescriptions.get(H),A=n0(C),S={type:"forwarded",name:H,element:B,description:A};if(N.detail!==void 0&&N.detail!=="undefined")S.detail=N.detail;this.events.set(H,S)}});let V=I1.mapToArray(this.props).map((B)=>{if(this.bindings.has(B.name)){let H=this.bindings.get(B.name)?.elements.sort().map((N)=>U3(N)).join(" | ");return{...B,type:`null | ${H}`}}return B}),W=I1.mapToArray(this.slots).map((B)=>{try{if(!B.slot_props)return B;let H=JSON.parse(B.slot_props),N=[];for(let A of Object.keys(H)){if(H[A].replace&&H[A].value!==void 0)H[A].value=this.props.get(H[A].value)?.type;if(H[A].value===void 0)H[A].value="any";N.push(`${A}: ${H[A].value}`)}let C=N.length===0?"Record<string, never>":`{ ${N.join(", ")} }`;return{...B,slot_props:C}}catch(H){return B}}).sort((B,H)=>{let N=B.name??"",C=H.name??"";if(N<C)return-1;if(N>C)return 1;return 0}),K=I1.mapToArray(this.moduleExports),G=I1.mapToArray(this.events).map((B)=>{if(B.type==="forwarded")return{...B,element:B.element.name};return B}).sort((B,H)=>{let N=B.name.localeCompare(H.name);if(N!==0)return N;let C=B.type.localeCompare(H.type);if(C!==0)return C;if(B.type==="forwarded"&&H.type==="forwarded"){let A=B.element.localeCompare(H.element);if(A!==0)return A}return(B.detail??"").localeCompare(H.detail??"")}),F=I1.mapToArray(this.typedefs),M=I1.mapToArray(this.contexts);return{props:V,moduleExports:K,slots:W,events:G,typedefs:F,generics:this.generics,rest_props:this.rest_props,extends:this.extends,componentComment:this.componentComment,contexts:M}}}var PJ=F8(L3(),1),SJ=F8(R3(),1),yJ=F8(_3(),1),EJ=F8(YJ(),1);import W9,{dirname as G9,resolve as u8,extname as rG,normalize as oG,sep as tG}from"path";import l8,{realpathSync as eG}from"fs";import{promisify as c8}from"util";import{pathToFileURL as e0,fileURLToPath as DJ}from"url";var _J=F8(OJ(),1);import{extname as HC,sep as CJ,resolve as lG,posix as cG}from"path";function pG(Z){return Array.isArray(Z)}function RJ(Z){if(pG(Z))return Z;if(Z==null)return[];return[Z]}function iG(Z,q){if(q===!1)return Z;let J=lG(q||"").split(CJ).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return cG.join(J,Z)}var IJ=function(q,J,Q){let Y=Q&&Q.resolve,z=(W)=>W instanceof RegExp?W:{test:(K)=>{let G=iG(W,Y);return _J.default(G,{dot:!0})(K)}},X=RJ(q).map(z),V=RJ(J).map(z);return function(K){if(typeof K!=="string")return!1;if(/\0/.test(K))return!1;let G=K.split(CJ).join("/");for(let F=0;F<V.length;++F)if(V[F].test(G))return!1;for(let F=0;F<X.length;++F)if(X[F].test(G))return!0;return!X.length}},nG="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",aG="arguments 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",sG=new Set(`${nG} ${aG}`.split(" "));sG.add("");var Z$="13.3.0";c8(l8.access);var bJ=c8(l8.readFile),xJ=c8(l8.realpath),$9=c8(l8.stat);async function Z4(Z){try{return(await $9(Z)).isFile()}catch{return!1}}async function K9(Z){return await Z4(Z)?xJ(Z):Z}var kJ=(Z)=>{if(Z.code==="ENOENT")return!1;throw Z},U9=(Z)=>{let q=new Map,J=async(Q,Y)=>{if(q.has(Q)===!1)q.set(Q,Z(Q).catch((z)=>{throw q.delete(Q),z}));try{let X=await q.get(Q);return Y(null,X)}catch(z){return Y(z)}};return J.clear=()=>q.clear(),J},j9=U9(async(Z)=>{try{return(await $9(Z)).isDirectory()}catch(q){return kJ(q)}}),B9=U9(async(Z)=>{try{return(await $9(Z)).isFile()}catch(q){return kJ(q)}}),H9=U9(bJ);function q$(Z){let q=[];if(Z.customResolveOptions){let{customResolveOptions:J}=Z;if(J.moduleDirectory)Z.moduleDirectories=Array.isArray(J.moduleDirectory)?J.moduleDirectory:[J.moduleDirectory],q.push("node-resolve: The `customResolveOptions.moduleDirectory` option has been deprecated. Use `moduleDirectories`, which must be an array.");if(J.preserveSymlinks)throw Error("node-resolve: `customResolveOptions.preserveSymlinks` is no longer an option. We now always use the rollup `preserveSymlinks` option.");["basedir","package","extensions","includeCoreModules","readFile","isFile","isDirectory","realpath","packageFilter","pathFilter","paths","packageIterator"].forEach((Q)=>{if(J[Q])throw Error(`node-resolve: \`customResolveOptions.${Q}\` is no longer an option. If you need this, please open an issue.`)})}return{warnings:q}}function vJ(Z){if(Z.startsWith(".")||Z.startsWith("/"))return null;let q=Z.split("/");if(q[0][0]==="@")return`${q[0]}/${q[1]}`;return q[0]}function J$(Z){let q;if(Z.mainFields)({mainFields:q}=Z);else q=["module","main"];if(Z.browser&&q.indexOf("browser")===-1)return["browser"].concat(q);if(!q.length)throw Error("Please ensure at least one `mainFields` value is specified");return q}function fJ(Z){let{cache:q,extensions:J,pkg:Q,mainFields:Y,preserveSymlinks:z,useBrowserOverrides:X,rootDir:V,ignoreSideEffectsForRoot:W}=Z,{pkgPath:K}=Z;if(q.has(K))return q.get(K);if(!z)K=eG(K);let G=G9(K),F={packageJson:{...Q},packageJsonPath:K,root:G,resolvedMainField:"main",browserMappedMain:!1,resolvedEntryPoint:""},M=!1;for(let N=0;N<Y.length;N++){let C=Y[N];if(typeof Q[C]==="string"){Q.main=Q[C],F.resolvedMainField=C,M=!0;break}}let B={cachedPkg:Q,hasModuleSideEffects:()=>null,hasPackageEntry:M!==!1||Y.indexOf("main")!==-1,packageBrowserField:X&&typeof Q.browser==="object"&&Object.keys(Q.browser).reduce((N,C)=>{let A=Q.browser[C];if(A&&A[0]===".")A=u8(G,A);if(N[C]=A,C[0]==="."){let S=u8(G,C);if(N[S]=A,!rG(C))J.reduce((T,g)=>{return T[S+g]=T[C],T},N)}return N},{}),packageInfo:F},H=B.packageBrowserField;if(X&&typeof Q.browser==="object"&&H.hasOwnProperty(Q.main))F.resolvedEntryPoint=H[Q.main],F.browserMappedMain=!0;else F.resolvedEntryPoint=u8(G,Q.main||"index.js"),F.browserMappedMain=!1;if(!W||V!==G){let N=Q.sideEffects;if(typeof N==="boolean")B.hasModuleSideEffects=()=>N;else if(Array.isArray(N)){let C=N.map((A)=>{if(A.includes("/"))return A;return`**/${A}`});B.hasModuleSideEffects=IJ(C,null,{resolve:G})}}return q.set(K,B),B}function Q$(Z){if(Array.isArray(Z))return Z;else if(typeof Z==="object")return Object.values(Z);return[Z]}function Y$(Z,q){return q.some((J)=>Z.endsWith(J))}async function hJ(Z,q){let{root:J}=W9.parse(Z),Q=Z;while(Q!==J&&!Y$(Q,q)){let Y=W9.join(Q,"package.json");if(await Z4(Y)){let z=l8.readFileSync(Y,"utf-8");return{pkgJson:JSON.parse(z),pkgPath:Q,pkgJsonPath:Y}}Q=W9.resolve(Q,"..")}return null}function z$(Z){try{return!!new URL(Z)}catch(q){return!1}}function gJ(Z){return typeof Z==="object"&&Object.keys(Z).every((q)=>!q.startsWith("."))}function TJ(Z){return typeof Z==="object"&&!gJ(Z)}function X$(Z){let q=Object.keys(Z);return q.some((J)=>J.startsWith("."))&&q.some((J)=>!J.startsWith("."))}function mJ(Z,q){return`Could not resolve import "${Z}" in ${q}`}function M9(Z,q,J){let{importSpecifier:Q,importer:Y,pkgJsonPath:z}=Z;return`${mJ(Q,Y)} using ${J?"imports":"exports"} defined in ${z}.${q?` ${q}`:""}`}class m6 extends Error{}class uJ extends m6{constructor(Z,q){super(M9(Z,`Invalid "exports" field. ${q}`))}}class O8 extends m6{constructor(Z,q,J){super(M9(Z,J,q))}}class m8 extends m6{constructor(Z,q){super(M9(Z,q))}}function AJ(Z,q){return Z.split("/").slice(1).some((J)=>[".","..",...q].includes(J))}async function d8(Z,{target:q,subpath:J,pattern:Q,internal:Y}){if(typeof q==="string"){if(!Q&&J.length>0&&!q.endsWith("/"))throw new O8(Z);if(!q.startsWith("./")){if(Y&&!["/","../"].some((X)=>q.startsWith(X))&&!z$(q)){if(Q){let V=await Z.resolveId(q.replace(/\*/g,J),Z.pkgURL.href);return V?e0(V.location).href:null}let X=await Z.resolveId(`${q}${J}`,Z.pkgURL.href);return X?e0(X.location).href:null}throw new m8(Z,`Invalid mapping: "${q}".`)}if(AJ(q,Z.moduleDirs))throw new m8(Z,`Invalid mapping: "${q}".`);let z=new URL(q,Z.pkgURL);if(!z.href.startsWith(Z.pkgURL.href))throw new m8(Z,`Resolved to ${z.href} which is outside package ${Z.pkgURL.href}`);if(AJ(J,Z.moduleDirs))throw new O8(Z);if(Q)return z.href.replace(/\*/g,J);return new URL(J,z).href}if(Array.isArray(q)){let z;for(let X of q)try{let V=await d8(Z,{target:X,subpath:J,pattern:Q,internal:Y});if(V!==void 0)return V}catch(V){if(!(V instanceof m8))throw V;else z=V}if(z)throw z;return null}if(q&&typeof q==="object"){for(let[z,X]of Object.entries(q))if(z==="default"||Z.conditions.includes(z)){let V=await d8(Z,{target:X,subpath:J,pattern:Q,internal:Y});if(V!==void 0)return V}return}if(q===null)return null;throw new m8(Z,"Invalid exports field.")}async function dJ(Z,{matchKey:q,matchObj:J,internal:Q}){if(!q.endsWith("*")&&q in J){let z=J[q];return await d8(Z,{target:z,subpath:"",internal:Q})}let Y=Object.keys(J).filter((z)=>z.endsWith("/")||z.endsWith("*")).sort((z,X)=>X.length-z.length);for(let z of Y){let X=z.substring(0,z.length-1);if(z.endsWith("*")&&q.startsWith(X)){let V=J[z],W=q.substring(z.length-1);return await d8(Z,{target:V,subpath:W,pattern:!0,internal:Q})}if(q.startsWith(z)){let V=J[z],W=q.substring(z.length);return await d8(Z,{target:V,subpath:W,internal:Q})}}throw new O8(Z,Q)}async function V$(Z,q,J){if(X$(J))throw new uJ(Z,"All keys must either start with ./, or without one.");if(q==="."){let Q;if(typeof J==="string"||Array.isArray(J)||gJ(J))Q=J;else if(TJ(J))Q=J["."];if(Q){let Y=await d8(Z,{target:Q,subpath:""});if(Y)return Y}}else if(TJ(J)){let Q=await dJ(Z,{matchKey:q,matchObj:J});if(Q)return Q}throw new O8(Z)}async function W$({importSpecifier:Z,importer:q,moduleDirs:J,conditions:Q,resolveId:Y}){let z=await hJ(q,J);if(!z)throw Error(mJ(". Could not find a parent package.json."));let{pkgPath:X,pkgJsonPath:V,pkgJson:W}=z,K=e0(`${X}/`),G={importer:q,importSpecifier:Z,moduleDirs:J,pkgURL:K,pkgJsonPath:V,conditions:Q,resolveId:Y},{imports:F}=W;if(!F)throw new O8(G,!0);if(Z==="#"||Z.startsWith("#/"))throw new O8(G,!0,"Invalid import specifier.");return dJ(G,{matchKey:Z,matchObj:F,internal:!0})}var lJ=c8(EJ.default),K$=c8(l8.readFile);async function G$(Z,q,J,Q){if(Z){let Y=await hJ(Z,Q);if(Y&&Y.pkgJson.name===q)return Y}try{let Y=await lJ(`${q}/package.json`,J),z=JSON.parse(await K$(Y,"utf-8"));return{pkgJsonPath:Y,pkgJson:z,pkgPath:G9(Y)}}catch(Y){return null}}async function cJ({importSpecifier:Z,packageInfoCache:q,extensions:J,mainFields:Q,preserveSymlinks:Y,useBrowserOverrides:z,baseDir:X,moduleDirectories:V,rootDir:W,ignoreSideEffectsForRoot:K}){let G=()=>null,F=!0,M=!1,B,N={basedir:X,readFile:H9,isFile:B9,isDirectory:j9,extensions:J,includeCoreModules:!1,moduleDirectory:V,preserveSymlinks:Y,packageFilter:(A,S)=>{let T=fJ({cache:q,extensions:J,pkg:A,pkgPath:S,mainFields:Q,preserveSymlinks:Y,useBrowserOverrides:z,rootDir:W,ignoreSideEffectsForRoot:K});return{packageInfo:B,hasModuleSideEffects:G,hasPackageEntry:F,packageBrowserField:M}=T,T.cachedPkg}},C;try{C=await lJ(Z,N)}catch(A){if(A.code!=="MODULE_NOT_FOUND")throw A;return null}return{location:Y?C:await K9(C),hasModuleSideEffects:G,hasPackageEntry:F,packageBrowserField:M,packageInfo:B}}async function $$({importer:Z,importSpecifier:q,exportConditions:J,packageInfoCache:Q,extensions:Y,mainFields:z,preserveSymlinks:X,useBrowserOverrides:V,baseDir:W,moduleDirectories:K,rootDir:G,ignoreSideEffectsForRoot:F}){if(q.startsWith("#")){let B=await W$({importSpecifier:q,importer:Z,moduleDirs:K,conditions:J,resolveId(N){return cJ({importSpecifier:N,packageInfoCache:Q,extensions:Y,mainFields:z,preserveSymlinks:X,useBrowserOverrides:V,baseDir:W,moduleDirectories:K})}}),H=DJ(B);return{location:X?H:await K9(H),hasModuleSideEffects:()=>null,hasPackageEntry:!0,packageBrowserField:!1,packageInfo:void 0}}let M=vJ(q);if(M){let B=()=>null,H=!0,N=!1,C,T=await G$(Z,M,{basedir:W,readFile:H9,isFile:B9,isDirectory:j9,extensions:Y,includeCoreModules:!1,moduleDirectory:K,preserveSymlinks:X,packageFilter:(g,f)=>{let u=fJ({cache:Q,extensions:Y,pkg:g,pkgPath:f,mainFields:z,preserveSymlinks:X,useBrowserOverrides:V,rootDir:G,ignoreSideEffectsForRoot:F});return{packageInfo:C,hasModuleSideEffects:B,hasPackageEntry:H,packageBrowserField:N}=u,u.cachedPkg}},K);if(T&&T.pkgJson.exports){let{pkgJson:g,pkgJsonPath:f}=T,u=M===q?".":`.${q.substring(M.length)}`,E=f.replace("package.json",""),R=e0(E),I=await V$({importer:Z,importSpecifier:q,moduleDirs:K,pkgURL:R,pkgJsonPath:f,conditions:J},u,g.exports),j=DJ(I);if(j)return{location:X?j:await K9(j),hasModuleSideEffects:B,hasPackageEntry:H,packageBrowserField:N,packageInfo:C}}}return null}async function U$({importer:Z,importSpecifierList:q,exportConditions:J,warn:Q,packageInfoCache:Y,extensions:z,mainFields:X,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:G,rootDir:F,ignoreSideEffectsForRoot:M}){for(let B=0;B<q.length;B++){let H=await cJ({importer:Z,importSpecifier:q[B],exportConditions:J,warn:Q,packageInfoCache:Y,extensions:z,mainFields:X,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:G,rootDir:F,ignoreSideEffectsForRoot:M});if(H)return H}return null}async function j$({importer:Z,importSpecifierList:q,exportConditions:J,warn:Q,packageInfoCache:Y,extensions:z,mainFields:X,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:G,rootDir:F,ignoreSideEffectsForRoot:M}){try{let B=await $$({importer:Z,importSpecifier:q[0],exportConditions:J,packageInfoCache:Y,extensions:z,mainFields:X,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:G,rootDir:F,ignoreSideEffectsForRoot:M});if(B)return B}catch(B){if(B instanceof m6)return Q(B),null;throw B}return U$({importer:Z,importSpecifierList:q,exportConditions:J,warn:Q,packageInfoCache:Y,extensions:z,mainFields:X,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:G,rootDir:F,ignoreSideEffectsForRoot:M})}var t0="\x00node-resolve:empty.js",pJ=(Z)=>{Object.freeze(Z);for(let q of Object.values(Z))if(typeof q==="object"&&!Object.isFrozen(q))pJ(q);return Z},iJ=["default","module"],B$=[...iJ,"import"],H$=[...iJ,"require"],nJ={dedupe:[],extensions:[".mjs",".js",".json",".node"],resolveOnly:[],moduleDirectories:["node_modules"],ignoreSideEffectsForRoot:!1},RC=pJ(SJ.default({},nJ));function aJ(Z={}){let{warnings:q}=q$(Z),J={...nJ,...Z},{extensions:Q,jail:Y,moduleDirectories:z,ignoreSideEffectsForRoot:X}=J,V=[...B$,...J.exportConditions||[]],W=[...H$,...J.exportConditions||[]],K=new Map,G=new Map,F=J$(J),M=F.indexOf("browser")!==-1,B=J.preferBuiltins===!0||J.preferBuiltins===!1,H=B?J.preferBuiltins:!0,N=u8(J.rootDir||process.cwd()),{dedupe:C}=J,A;if(typeof C!=="function")C=(E)=>J.dedupe.includes(E)||J.dedupe.includes(vJ(E));let S=(E)=>{let R=E.map((P)=>{if(P instanceof RegExp)return P;let I=P.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(`^${I}$`)});return(P)=>!R.length||R.some((I)=>I.test(P))},T=typeof J.resolveOnly==="function"?J.resolveOnly:S(J.resolveOnly),g=new Map,f,u=async(E,R,P,I)=>{let[j,x]=R.split("?"),k=`${x?`?${x}`:""}`;R=j;let y=!P||C(R)?N:G9(P),$=g.get(P);if(M&&$){let _=u8(y,R);if($[R]===!1||$[_]===!1)return{id:t0};let h=R[0]!=="."&&$[R]||$[_]||$[`${_}.js`]||$[`${_}.json`];if(h)R=h}let L=R.split(/[/\\]/),l=L.shift(),v=!1;if(l[0]==="@"&&L.length>0)l+=`/${L.shift()}`;else if(l[0]===".")l=u8(y,R),v=!0;if(!v&&!T(l)){if(Q$(A.input).includes(R))return null;return!1}let s=[R];if(P===void 0&&!R[0].match(/^\.?\.?\//))s.push(`./${R}`);if(P&&R.endsWith(".js")){for(let _ of[".ts",".tsx"])if(P.endsWith(_)&&Q.includes(_))s.push(R.replace(/.js$/,_))}let o=(..._)=>E.warn(..._),N1=I&&I["node-resolve"]&&I["node-resolve"].isRequire?W:V;if(M&&!N1.includes("browser"))N1.push("browser");let O1=await j$({importer:P,importSpecifierList:s,exportConditions:N1,warn:o,packageInfoCache:K,extensions:Q,mainFields:F,preserveSymlinks:f,useBrowserOverrides:M,baseDir:y,moduleDirectories:z,rootDir:N,ignoreSideEffectsForRoot:X}),w1=PJ.default(R),a=w1&&H?{packageInfo:void 0,hasModuleSideEffects:()=>null,hasPackageEntry:!0,packageBrowserField:!1}:O1;if(!a)return null;let{packageInfo:m,hasModuleSideEffects:M1,hasPackageEntry:p,packageBrowserField:D}=a,{location:b}=a;if(D){if(Object.prototype.hasOwnProperty.call(D,b)){if(!D[b])return g.set(b,D),{id:t0};b=D[b]}g.set(b,D)}if(p&&!f){if(await Z4(b))b=await xJ(b)}if(G.set(b,m),p){if(w1&&H){if(!B&&O1&&a!==R)E.warn(`preferring built-in module '${R}' over local alternative at '${O1.location}', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning`);return!1}else if(Y&&b.indexOf(oG(Y.trim(tG)))!==0)return null}if(J.modulesOnly&&await Z4(b)){let _=await bJ(b,"utf-8");if(yJ.default(_))return{id:`${b}${k}`,moduleSideEffects:M1(b)};return null}return{id:`${b}${k}`,moduleSideEffects:M1(b)}};return{name:"node-resolve",version:Z$,buildStart(E){A=E;for(let R of q)this.warn(R);({preserveSymlinks:f}=E)},generateBundle(){H9.clear(),B9.clear(),j9.clear()},async resolveId(E,R,P){if(E===t0)return E;if(/\0/.test(E))return null;if(/\0/.test(R))R=void 0;let I=await u(this,E,R,P.custom);if(I){let j=await this.resolve(I.id,R,Object.assign({skipSelf:!0},P));if(j){if(j.external)return!1;if(j.id!==I.id)return j;return{...I,meta:j.meta}}}return I},load(E){if(E===t0)return"export default {};";return null},getPackageInfoForId(E){return G.get(E)}}}kz();var NW=F8(MX(),1);import{existsSync as FX,readFileSync as ZL}from"node:fs";import{join as LX}from"node:path";function O6(Z){if(Z){let J=LX(process.cwd(),Z);if(FX(J))return Z;else return console.log(`Invalid entry point: ${J}.`),null}let q=LX(process.cwd(),"package.json");if(!FX(q))return console.log(`Could not locate a package.json file.
|
|
69
|
-
`),null;try{let
|
|
63
|
+
}`:`{ ${Q} }`}generateContextTypeName(Z){return`${Z.split(UK).map((Q)=>Q.charAt(0).toUpperCase()+Q.slice(1)).join("")}Context`}buildVariableInfoCache(){if(!this.source)return;if(!this.sourceLinesCache)this.sourceLinesCache=this.source.split(`
|
|
64
|
+
`);let Z=this.sourceLinesCache;for(let J=0;J<Z.length;J++){let Q=Z[J].trim().match(zK);if(Q){let Y=Q[1];for(let X=J-1;X>=0;X--){let z=Z[X].trim();if(z&&!z.startsWith("*")&&!z.startsWith("/*")&&!z.startsWith("//"))break;if(z.startsWith("/**")){let V=[];for(let M=X;M<J;M++)V.push(Z[M]);let W=V.join(`
|
|
65
|
+
`),K=E6(W,{spacing:"preserve"}),{type:$,description:H}=this.getCommentTags(K);if($)this.variableInfoCache.set(Y,{type:this.aliasType($.type),description:H||$.description});break}}}}}static VAR_NAME_REGEX_CACHE=new Map;static getVarNameRegexes(Z){let J=T1.VAR_NAME_REGEX_CACHE.get(Z);if(!J){let q=Z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");J=[new RegExp(`const\\s+${q}\\s*=`),new RegExp(`let\\s+${q}\\s*=`),new RegExp(`function\\s+${q}\\s*\\(`)],T1.VAR_NAME_REGEX_CACHE.set(Z,J)}return J}findVariableTypeAndDescription(Z){let J=this.getPropByLocalOrPublic(Z);if(J?.type)return{type:J.type,description:J.description};let q=this.variableInfoCache.get(Z);if(q)return q;if(!this.source)return null;if(!this.sourceLinesCache)this.sourceLinesCache=this.source.split(`
|
|
66
|
+
`);let Q=this.sourceLinesCache,[Y,X,z]=T1.getVarNameRegexes(Z);for(let V=0;V<Q.length;V++){let W=Q[V].trim(),K=W.match(Y),$=W.match(X),H=W.match(z);if(K||$||H)for(let M=V-1;M>=0;M--){let O=Q[M].trim();if(O&&!O.startsWith("*")&&!O.startsWith("/*")&&!O.startsWith("//"))break;if(O.startsWith("/**")){let j=[];for(let T=M;T<V;T++)j.push(Q[T]);let L=j.join(`
|
|
67
|
+
`),I=E6(L,{spacing:"preserve"}),{type:y,description:_}=this.getCommentTags(I);if(y)return{type:this.aliasType(y.type),description:_||y.description};break}}}return null}parseContextValue(Z,J){if(!Z||typeof Z!=="object"||!("type"in Z))return null;if(Z.type==="ObjectExpression"){let q=[],Q=Z;for(let Y of Q.properties)if(Y.type==="Property"){let X=Y,z=X.key&&"name"in X.key?X.key.name:X.key&&("value"in X.key)?String(X.key.value):void 0;if(!z)continue;let V="any",W;if(X.value&&typeof X.value==="object"&&"type"in X.value){if(X.value.type==="Identifier"){let K=X.value.name,$=this.findVariableTypeAndDescription(K);if($)V=$.type,W=$.description;else if(this.options?.verbose)console.warn(`Warning: Context "${J}" property "${z}" has no type annotation. Using "any".`)}else if(X.value.type==="ArrowFunctionExpression"||X.value.type==="FunctionExpression")V=`(${X.value.params?.map((H)=>{if(H&&typeof H==="object"&&"name"in H)return`${H.name||"arg"}: any`;return"arg: any"}).join(", ")||""}) => any`;else if(X.value.type==="Literal"){let K=X.value;V=K.value==null?"null":typeof K.value}}q.push({name:z,type:V,description:W,optional:!1})}return{key:J,typeName:this.generateContextTypeName(J),properties:q,description:void 0}}else if(Z.type==="Identifier"){let Q=Z.name,Y=this.findVariableTypeAndDescription(Q);if(Y)return{key:J,typeName:this.generateContextTypeName(J),properties:[{name:Q,type:Y.type,description:Y.description,optional:!1}]};else if(this.options?.verbose)console.warn(`Warning: Context "${J}" variable "${Q}" has no type annotation. Using "any".`);return{key:J,typeName:this.generateContextTypeName(J),properties:[{name:Q,type:"any",description:void 0,optional:!1}]}}return null}parseSetContextCall(Z,J){if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return;let q=Z,Q=q.arguments[0];if(!Q)return;let Y=null;if(Q.type==="Literal"){let V=Q;Y=typeof V.value==="string"?V.value:String(V.value)}else if(Q.type==="TemplateLiteral"){if(Q.quasis?.length===1){let V=Q.quasis[0].value.cooked;Y=V==null?null:V}else if(this.options?.verbose)console.warn("Warning: Skipping setContext with dynamic template literal key")}else if(this.options?.verbose)console.warn(`Warning: Skipping setContext with non-literal key (type: ${Q.type})`);if(!Y)return;let X=q.arguments[1];if(!X)return;let z=this.parseContextValue(X,Y);if(z)if(this.contexts.has(Y)){if(this.options?.verbose)console.warn(`Warning: Multiple setContext calls with key "${Y}". Using first occurrence.`)}else this.contexts.set(Y,z)}cleanup(){this.syntaxMode="legacy",this.source=void 0,this.compiled=void 0,this.parsed=void 0,this.rest_props=void 0,this.extends=void 0,this.componentComment=void 0,this.reactive_vars.clear(),this.props.clear(),this.moduleExports.clear(),this.slots.clear(),this.events.clear(),this.eventDescriptions.clear(),this.forwardedEvents.clear(),this.typedefs.clear(),this.generics=null,this.bindings.clear(),this.contexts.clear(),this.variableInfoCache.clear(),this.propLocalToPublicName.clear(),this.restPropLocals.clear(),this.snippetPropLocals.clear(),this.componentScope.clear(),this.scopeDeclarations=new WeakMap,this.activeScopes.length=0,this.sourceLinesCache=void 0}static SCRIPT_BLOCK_REGEX=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi;static TS_DIRECTIVE_REGEX=/\/\/\s*@ts-[^\n\r]*/g;static stripTypeScriptDirectivesFromScripts(Z){return T1.SCRIPT_BLOCK_REGEX.lastIndex=0,Z.replace(T1.SCRIPT_BLOCK_REGEX,(J,q,Q,Y)=>{T1.TS_DIRECTIVE_REGEX.lastIndex=0;let X=Q.replace(T1.TS_DIRECTIVE_REGEX,"");return q+X+Y})}parseSvelteComponent(Z,J){if(this.options?.verbose)console.log(`[parsing] "${J.moduleName}" ${J.filePath}`);this.cleanup();let q=T1.stripTypeScriptDirectivesFromScripts(Z);this.source=q;let Q=YK(q,{generate:!1,modernAst:!1});if(this.compiled=Q,this.syntaxMode=Q.metadata.runes?"runes":"legacy",this.parsed=Q.ast||XK(q,{modern:!1}),this.sourceLinesCache=this.source.split(`
|
|
68
|
+
`),this.buildVariableInfoCache(),this.parseCustomTypes(),this.parsed?.module)o0(this.parsed?.module,{enter:(j)=>{if(j.type==="ExportNamedDeclaration"){if(j.declaration==null)return;if(!j.declaration||typeof j.declaration!=="object"||!("type"in j.declaration))return;let L,I,y,_=!1,T,g,h=!1,u,E;if(j.declaration.type==="FunctionDeclaration"){let P=j.declaration;if(!P.id?.name)return;L=P.id.name,I="function",T=void 0,g="() => any",h=!0,_=!0}else if(j.declaration.type==="VariableDeclaration"){let P=j.declaration,A=P.declarations[0];if(!A||typeof A!=="object"||!("id"in A))return;let{id:B,init:b}=A;if(!B||typeof B!=="object"||!("name"in B))return;L=B.name,I=OJ(P.kind),{value:T,type:g,isFunction:h}=b==null?{isFunction:!1}:this.processInitializer(b)}else return;let N=this.processNodeJSDoc(j);if(N){if(N.type)g=N.type;if(u=N.params,E=N.returnType,N.description)y=N.description}if(_&&g==="() => any"&&E)if(u&&u.length>0)g=`(${u.map((B)=>{let b=B.optional?"?":"";return`${B.name}${b}: ${B.type}`}).join(", ")}) => ${E}`;else g=`() => ${E}`;if(!y&&g&&this.typedefs.has(g))y=this.typedefs.get(g)?.description;this.addModuleExport(L,{name:L,kind:I,description:y,type:g,value:T,params:u,returnType:E,isFunction:h,isFunctionDeclaration:_,isRequired:!1,constant:I==="const",reactive:!1})}}});let Y,X=[],z={type:"ComponentRoot",instance:this.parsed.instance,html:this.parsed.html};if(this.buildScopeDeclarations(z),this.activeScopes.push(this.componentScope),o0(z,{enter:(j,L,I)=>{let y=this.scopeDeclarations.get(j);if(y)this.activeScopes.push(y);if(j.type==="AssignmentExpression")this.markReactivePropsFromMutationTarget(j.left);if(j.type==="UpdateExpression")this.markReactivePropsFromMutationTarget(j.argument);if(j.type==="CallExpression"){let _=j,T=_.callee&&typeof _.callee==="object"&&"name"in _.callee?_.callee.name:void 0;if(T==="createEventDispatcher"){if(L&&typeof L==="object"&&"id"in L&&L.id&&typeof L.id==="object"&&"name"in L.id)Y=L.id.name}if(T==="setContext")this.parseSetContextCall(j,L??void 0);if(T)X.push({name:T,arguments:_.arguments})}if(j&&typeof j==="object"&&"type"in j&&String(j.type)==="Spread"){let _=j;if(_.expression?.name==="$$restProps"||this.restPropLocals.has(_.expression?.name??""))this.maybeSetRestProps(L)}if(j.type==="VariableDeclaration"){if(this.vars.add(j),L&&typeof L==="object"&&"type"in L&&L.type==="Program"&&j.declarations.some((_)=>this.isCallExpressionNamed(_.init,"$props")))this.parseRunesPropsDeclaration(j)}if(j.type==="ExportNamedDeclaration"){if(j.declaration==null&&j.specifiers.length===0)return;let _;if(j.declaration==null&&j.specifiers[0]?.type==="ExportSpecifier"){let k=j.specifiers[0],S=k.local&&typeof k.local==="object"&&"name"in k.local?k.local.name:void 0,G=k.exported&&typeof k.exported==="object"&&"name"in k.exported?k.exported.name:void 0;if(!S||!G)return;let F;for(let d of Array.from(this.vars))if(d.declarations.some((f)=>f.id&&typeof f.id==="object"&&("type"in f.id)&&f.id.type==="Identifier"&&f.id.name===S)){F=d;break}j.declaration=F,_=G}if(j.declaration==null)return;if(!j.declaration||typeof j.declaration!=="object"||!("type"in j.declaration))return;let T,g,h=!1,u,E,N=!1,P,A,B=!1;if(j.declaration.type==="FunctionDeclaration"){let k=j.declaration;if(!k.id?.name)return;_??=k.id.name,T="function",u=void 0,E="() => any",N=!0,h=!0,B=!1}else if(j.declaration.type==="VariableDeclaration"){let k=j.declaration,S=k.declarations[0];if(!S||typeof S!=="object"||!("id"in S))return;let{id:G,init:F}=S;if(G&&typeof G==="object"&&"name"in G)_??=G.name;else return;T=OJ(k.kind),B=T==="let"&&F==null,{value:u,type:E,isFunction:N}=F==null?{isFunction:!1}:this.processInitializer(F)}else return;let b=this.processNodeJSDoc(j);if(b){if(b.type)E=b.type;if(P=b.params,A=b.returnType,b.description)g=b.description}if(h&&E==="() => any"&&A)if(P&&P.length>0)E=`(${P.map((G)=>{let F=G.optional?"?":"";return`${G.name}${F}: ${G.type}`}).join(", ")}) => ${A}`;else E=`() => ${A}`;if(!g&&E&&this.typedefs.has(E))g=this.typedefs.get(E)?.description;this.addProp(_,{name:_,kind:T,description:g,type:E,value:u,params:P,returnType:A,isFunction:N,isFunctionDeclaration:h,isRequired:B,constant:T==="const",reactive:this.reactive_vars.has(_)})}if(j&&typeof j==="object"&&"type"in j&&String(j.type)==="Comment"){let T=j?.data?.trim()??"";if(NJ.test(T))this.componentComment=T.replace(NJ,"").replace(jK,"")}if(j&&typeof j==="object"&&"type"in j&&String(j.type)==="Slot"){let _=j,T=_.attributes?.find((u)=>u.name==="name")?.value?.[0]?.data,g=(_.attributes||[]).filter((u)=>u.name!=="name").reduce((u,E)=>{let N={value:void 0,replace:!1},P=E.value;if(P===void 0)return u;if(P[0]){let A=P[0],{type:B,expression:b,raw:k,start:S,end:G}=A;if(B==="Text"&&k!==void 0)N.value=k;else if(B==="AttributeShorthand"&&b&&typeof b==="object"&&"name"in b)N.value=b.name,N.replace=!0;if(b&&typeof b==="object"&&"type"in b){if(b.type==="Literal"&&"value"in b)N.value=String(b.value);else if(b.type==="MemberExpression")N.value=this.resolveMemberExpressionType(b);else if(b.type!=="Identifier"){if(S!==void 0&&G!==void 0){if(b.type==="ObjectExpression"||b.type==="TemplateLiteral")N.value=this.sourceAtPos(S+1,G-1)}}}}if(E.name)u[E.name]=N;return u},{}),h=_.children?.map(({start:u,end:E})=>{if(u===void 0||E===void 0)return"";return this.sourceAtPos(u,E)??""}).join("").trim();this.addSlot({slot_name:T,slot_props:JSON.stringify(g,null,2),slot_fallback:h})}if(j&&typeof j==="object"&&"type"in j&&String(j.type)==="RenderTag"){let _=j,T=this.extractRenderTagInfo(_.expression);if(T){let g=this.propLocalToPublicName.get(T.localName);if(g){this.snippetPropLocals.add(T.localName);let h;if(T.argument==null)h=JSON.stringify({},null,2);else if(typeof T.argument==="object"&&"type"in T.argument&&T.argument.type==="ObjectExpression")h=JSON.stringify(this.buildSlotPropsFromObjectExpression(T.argument),null,2);else this.logUnsupportedRunesPattern(`Skipping unsupported {@render ...} argument for snippet prop "${g}".`);this.addSlot({slot_name:g==="children"?void 0:g,slot_props:h})}}}if(j&&typeof j==="object"&&"type"in j&&String(j.type)==="EventHandler"){let _=j;if(_.expression==null&&_.name){if(L!=null&&typeof L==="object"&&"name"in L){let T=typeof L.name==="string"?L.name:void 0,g="type"in L?String(L.type):void 0;if(T&&g){let h=g==="InlineComponent"?{type:"InlineComponent",name:T}:{type:"Element",name:T};this.forwardedEvents.set(_.name,h);let u=this.events.get(_.name),E=this.eventDescriptions.get(_.name),N=t0(E);if(!u)this.events.set(_.name,{type:"forwarded",name:_.name,element:h,description:N});else if(u.type==="forwarded"&&N&&!u.description)this.events.set(_.name,{...u,description:N})}}}}if(L&&typeof L==="object"&&"type"in L&&(String(L.type)==="Element"||String(L.type)==="InlineComponent")&&j&&typeof j==="object"&&"type"in j&&String(j.type)==="Binding"){let _=j;if(_.expression?.name){let T=this.resolveIdentifierToReactiveProp(_.expression.name);if(T)this.reactive_vars.add(T)}if(String(L.type)==="Element"&&_.name==="this"&&_.expression?.name&&"name"in L&&typeof L.name==="string"){let T=this.resolveIdentifierToReactiveProp(_.expression.name);if(!T)return;let g=L.name;if(this.bindings.has(T)){let h=this.bindings.get(T);if(h&&!h.elements.includes(g))this.bindings.set(T,{...h,elements:[...h.elements,g]})}else this.bindings.set(T,{elements:[g]})}}},leave:(j)=>{if(this.scopeDeclarations.has(j))this.activeScopes.pop()}}),Y!==void 0){for(let j of X)if(j.name===Y){let L=j.arguments[0],I=L&&typeof L==="object"&&"value"in L?L.value:void 0,y=j.arguments[1],_=y&&typeof y==="object"&&"value"in y?y.value:void 0;if(I!=null)this.addDispatchedEvent({name:String(I),detail:_==null?"":String(_),has_argument:Boolean(y)})}}let V=new Set;if(Y!==void 0){for(let j of X)if(j.name===Y){let L=j.arguments[0],I=L&&typeof L==="object"&&"value"in L?L.value:void 0;if(I!=null)V.add(String(I))}}this.forwardedEvents.forEach((j,L)=>{let I=this.events.get(L);if(I&&I.type==="dispatched"&&!V.has(L)){let y=this.eventDescriptions.get(L),_=t0(y),T={type:"forwarded",name:L,element:j,description:_};if(I.detail!==void 0&&I.detail!=="undefined")T.detail=I.detail;this.events.set(L,T)}});let W=T1.mapToArray(this.props).map((j)=>{if(this.bindings.has(j.name)){let L=this.bindings.get(j.name)?.elements.sort().map((I)=>wJ(I)).join(" | ");return{...j,type:`null | ${L}`,reactive:j.reactive||this.reactive_vars.has(j.name)}}return{...j,reactive:j.reactive||this.reactive_vars.has(j.name)}});this.activeScopes.length=0;let K=T1.mapToArray(this.slots).map((j)=>{try{if(!j.slot_props)return j;let L=JSON.parse(j.slot_props),I=[];for(let _ of Object.keys(L)){if(L[_].replace&&L[_].value!==void 0)L[_].value=this.getPropTypeByLocalOrPublic(L[_].value);if(L[_].value===void 0)L[_].value="any";I.push(`${_}: ${L[_].value}`)}let y=I.length===0?"Record<string, never>":`{ ${I.join(", ")} }`;return{...j,slot_props:y}}catch(L){return j}}).sort((j,L)=>{let I=j.name??"",y=L.name??"";if(I<y)return-1;if(I>y)return 1;return 0}),$=T1.mapToArray(this.moduleExports),H=T1.mapToArray(this.events).map((j)=>{if(j.type==="forwarded")return{...j,element:j.element.name};return j}).sort((j,L)=>{let I=j.name.localeCompare(L.name);if(I!==0)return I;let y=j.type.localeCompare(L.type);if(y!==0)return y;if(j.type==="forwarded"&&L.type==="forwarded"){let _=j.element.localeCompare(L.element);if(_!==0)return _}return(j.detail??"").localeCompare(L.detail??"")}),M=T1.mapToArray(this.typedefs),O=T1.mapToArray(this.contexts);return{props:W,moduleExports:$,slots:K,events:H,typedefs:M,generics:this.generics,rest_props:this.rest_props,extends:this.extends,componentComment:this.componentComment,contexts:O}}}var hq=F8(_J(),1),gq=F8(PJ(),1),mq=F8(yJ(),1),uq=F8(Gq(),1);import U9,{dirname as B9,resolve as l8,extname as TG,normalize as AG,sep as PG}from"path";import p8,{realpathSync as SG}from"fs";import{promisify as i8}from"util";import{pathToFileURL as Q4,fileURLToPath as kq}from"url";var bq=F8(Sq(),1);import{extname as jI,sep as Eq,resolve as OG,posix as NG}from"path";function RG(Z){return Array.isArray(Z)}function yq(Z){if(RG(Z))return Z;if(Z==null)return[];return[Z]}function CG(Z,J){if(J===!1)return Z;let q=OG(J||"").split(Eq).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return NG.join(q,Z)}var xq=function(J,q,Q){let Y=Q&&Q.resolve,X=(W)=>W instanceof RegExp?W:{test:(K)=>{let $=CG(W,Y);return bq.default($,{dot:!0})(K)}},z=yq(J).map(X),V=yq(q).map(X);return function(K){if(typeof K!=="string")return!1;if(/\0/.test(K))return!1;let $=K.split(Eq).join("/");for(let H=0;H<V.length;++H)if(V[H].test($))return!1;for(let H=0;H<z.length;++H)if(z[H].test($))return!0;return!z.length}},IG="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",_G="arguments 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",DG=new Set(`${IG} ${_G}`.split(" "));DG.add("");var yG="13.3.0";i8(p8.access);var dq=i8(p8.readFile),lq=i8(p8.realpath),M9=i8(p8.stat);async function Y4(Z){try{return(await M9(Z)).isFile()}catch{return!1}}async function j9(Z){return await Y4(Z)?lq(Z):Z}var cq=(Z)=>{if(Z.code==="ENOENT")return!1;throw Z},H9=(Z)=>{let J=new Map,q=async(Q,Y)=>{if(J.has(Q)===!1)J.set(Q,Z(Q).catch((X)=>{throw J.delete(Q),X}));try{let z=await J.get(Q);return Y(null,z)}catch(X){return Y(X)}};return q.clear=()=>J.clear(),q},F9=H9(async(Z)=>{try{return(await M9(Z)).isDirectory()}catch(J){return cq(J)}}),L9=H9(async(Z)=>{try{return(await M9(Z)).isFile()}catch(J){return cq(J)}}),w9=H9(dq);function EG(Z){let J=[];if(Z.customResolveOptions){let{customResolveOptions:q}=Z;if(q.moduleDirectory)Z.moduleDirectories=Array.isArray(q.moduleDirectory)?q.moduleDirectory:[q.moduleDirectory],J.push("node-resolve: The `customResolveOptions.moduleDirectory` option has been deprecated. Use `moduleDirectories`, which must be an array.");if(q.preserveSymlinks)throw Error("node-resolve: `customResolveOptions.preserveSymlinks` is no longer an option. We now always use the rollup `preserveSymlinks` option.");["basedir","package","extensions","includeCoreModules","readFile","isFile","isDirectory","realpath","packageFilter","pathFilter","paths","packageIterator"].forEach((Q)=>{if(q[Q])throw Error(`node-resolve: \`customResolveOptions.${Q}\` is no longer an option. If you need this, please open an issue.`)})}return{warnings:J}}function pq(Z){if(Z.startsWith(".")||Z.startsWith("/"))return null;let J=Z.split("/");if(J[0][0]==="@")return`${J[0]}/${J[1]}`;return J[0]}function bG(Z){let J;if(Z.mainFields)({mainFields:J}=Z);else J=["module","main"];if(Z.browser&&J.indexOf("browser")===-1)return["browser"].concat(J);if(!J.length)throw Error("Please ensure at least one `mainFields` value is specified");return J}function iq(Z){let{cache:J,extensions:q,pkg:Q,mainFields:Y,preserveSymlinks:X,useBrowserOverrides:z,rootDir:V,ignoreSideEffectsForRoot:W}=Z,{pkgPath:K}=Z;if(J.has(K))return J.get(K);if(!X)K=SG(K);let $=B9(K),H={packageJson:{...Q},packageJsonPath:K,root:$,resolvedMainField:"main",browserMappedMain:!1,resolvedEntryPoint:""},M=!1;for(let L=0;L<Y.length;L++){let I=Y[L];if(typeof Q[I]==="string"){Q.main=Q[I],H.resolvedMainField=I,M=!0;break}}let O={cachedPkg:Q,hasModuleSideEffects:()=>null,hasPackageEntry:M!==!1||Y.indexOf("main")!==-1,packageBrowserField:z&&typeof Q.browser==="object"&&Object.keys(Q.browser).reduce((L,I)=>{let y=Q.browser[I];if(y&&y[0]===".")y=l8($,y);if(L[I]=y,I[0]==="."){let _=l8($,I);if(L[_]=y,!TG(I))q.reduce((T,g)=>{return T[_+g]=T[I],T},L)}return L},{}),packageInfo:H},j=O.packageBrowserField;if(z&&typeof Q.browser==="object"&&j.hasOwnProperty(Q.main))H.resolvedEntryPoint=j[Q.main],H.browserMappedMain=!0;else H.resolvedEntryPoint=l8($,Q.main||"index.js"),H.browserMappedMain=!1;if(!W||V!==$){let L=Q.sideEffects;if(typeof L==="boolean")O.hasModuleSideEffects=()=>L;else if(Array.isArray(L)){let I=L.map((y)=>{if(y.includes("/"))return y;return`**/${y}`});O.hasModuleSideEffects=xq(I,null,{resolve:$})}}return J.set(K,O),O}function xG(Z){if(Array.isArray(Z))return Z;else if(typeof Z==="object")return Object.values(Z);return[Z]}function kG(Z,J){return J.some((q)=>Z.endsWith(q))}async function nq(Z,J){let{root:q}=U9.parse(Z),Q=Z;while(Q!==q&&!kG(Q,J)){let Y=U9.join(Q,"package.json");if(await Y4(Y)){let X=p8.readFileSync(Y,"utf-8");return{pkgJson:JSON.parse(X),pkgPath:Q,pkgJsonPath:Y}}Q=U9.resolve(Q,"..")}return null}function fG(Z){try{return!!new URL(Z)}catch(J){return!1}}function aq(Z){return typeof Z==="object"&&Object.keys(Z).every((J)=>!J.startsWith("."))}function fq(Z){return typeof Z==="object"&&!aq(Z)}function vG(Z){let J=Object.keys(Z);return J.some((q)=>q.startsWith("."))&&J.some((q)=>!q.startsWith("."))}function sq(Z,J){return`Could not resolve import "${Z}" in ${J}`}function O9(Z,J,q){let{importSpecifier:Q,importer:Y,pkgJsonPath:X}=Z;return`${sq(Q,Y)} using ${q?"imports":"exports"} defined in ${X}.${J?` ${J}`:""}`}class d6 extends Error{}class rq extends d6{constructor(Z,J){super(O9(Z,`Invalid "exports" field. ${J}`))}}class N8 extends d6{constructor(Z,J,q){super(O9(Z,q,J))}}class d8 extends d6{constructor(Z,J){super(O9(Z,J))}}function vq(Z,J){return Z.split("/").slice(1).some((q)=>[".","..",...J].includes(q))}async function c8(Z,{target:J,subpath:q,pattern:Q,internal:Y}){if(typeof J==="string"){if(!Q&&q.length>0&&!J.endsWith("/"))throw new N8(Z);if(!J.startsWith("./")){if(Y&&!["/","../"].some((z)=>J.startsWith(z))&&!fG(J)){if(Q){let V=await Z.resolveId(J.replace(/\*/g,q),Z.pkgURL.href);return V?Q4(V.location).href:null}let z=await Z.resolveId(`${J}${q}`,Z.pkgURL.href);return z?Q4(z.location).href:null}throw new d8(Z,`Invalid mapping: "${J}".`)}if(vq(J,Z.moduleDirs))throw new d8(Z,`Invalid mapping: "${J}".`);let X=new URL(J,Z.pkgURL);if(!X.href.startsWith(Z.pkgURL.href))throw new d8(Z,`Resolved to ${X.href} which is outside package ${Z.pkgURL.href}`);if(vq(q,Z.moduleDirs))throw new N8(Z);if(Q)return X.href.replace(/\*/g,q);return new URL(q,X).href}if(Array.isArray(J)){let X;for(let z of J)try{let V=await c8(Z,{target:z,subpath:q,pattern:Q,internal:Y});if(V!==void 0)return V}catch(V){if(!(V instanceof d8))throw V;else X=V}if(X)throw X;return null}if(J&&typeof J==="object"){for(let[X,z]of Object.entries(J))if(X==="default"||Z.conditions.includes(X)){let V=await c8(Z,{target:z,subpath:q,pattern:Q,internal:Y});if(V!==void 0)return V}return}if(J===null)return null;throw new d8(Z,"Invalid exports field.")}async function oq(Z,{matchKey:J,matchObj:q,internal:Q}){if(!J.endsWith("*")&&J in q){let X=q[J];return await c8(Z,{target:X,subpath:"",internal:Q})}let Y=Object.keys(q).filter((X)=>X.endsWith("/")||X.endsWith("*")).sort((X,z)=>z.length-X.length);for(let X of Y){let z=X.substring(0,X.length-1);if(X.endsWith("*")&&J.startsWith(z)){let V=q[X],W=J.substring(X.length-1);return await c8(Z,{target:V,subpath:W,pattern:!0,internal:Q})}if(J.startsWith(X)){let V=q[X],W=J.substring(X.length);return await c8(Z,{target:V,subpath:W,internal:Q})}}throw new N8(Z,Q)}async function hG(Z,J,q){if(vG(q))throw new rq(Z,"All keys must either start with ./, or without one.");if(J==="."){let Q;if(typeof q==="string"||Array.isArray(q)||aq(q))Q=q;else if(fq(q))Q=q["."];if(Q){let Y=await c8(Z,{target:Q,subpath:""});if(Y)return Y}}else if(fq(q)){let Q=await oq(Z,{matchKey:J,matchObj:q});if(Q)return Q}throw new N8(Z)}async function gG({importSpecifier:Z,importer:J,moduleDirs:q,conditions:Q,resolveId:Y}){let X=await nq(J,q);if(!X)throw Error(sq(". Could not find a parent package.json."));let{pkgPath:z,pkgJsonPath:V,pkgJson:W}=X,K=Q4(`${z}/`),$={importer:J,importSpecifier:Z,moduleDirs:q,pkgURL:K,pkgJsonPath:V,conditions:Q,resolveId:Y},{imports:H}=W;if(!H)throw new N8($,!0);if(Z==="#"||Z.startsWith("#/"))throw new N8($,!0,"Invalid import specifier.");return oq($,{matchKey:Z,matchObj:H,internal:!0})}var tq=i8(uq.default),mG=i8(p8.readFile);async function uG(Z,J,q,Q){if(Z){let Y=await nq(Z,Q);if(Y&&Y.pkgJson.name===J)return Y}try{let Y=await tq(`${J}/package.json`,q),X=JSON.parse(await mG(Y,"utf-8"));return{pkgJsonPath:Y,pkgJson:X,pkgPath:B9(Y)}}catch(Y){return null}}async function eq({importSpecifier:Z,packageInfoCache:J,extensions:q,mainFields:Q,preserveSymlinks:Y,useBrowserOverrides:X,baseDir:z,moduleDirectories:V,rootDir:W,ignoreSideEffectsForRoot:K}){let $=()=>null,H=!0,M=!1,O,L={basedir:z,readFile:w9,isFile:L9,isDirectory:F9,extensions:q,includeCoreModules:!1,moduleDirectory:V,preserveSymlinks:Y,packageFilter:(y,_)=>{let T=iq({cache:J,extensions:q,pkg:y,pkgPath:_,mainFields:Q,preserveSymlinks:Y,useBrowserOverrides:X,rootDir:W,ignoreSideEffectsForRoot:K});return{packageInfo:O,hasModuleSideEffects:$,hasPackageEntry:H,packageBrowserField:M}=T,T.cachedPkg}},I;try{I=await tq(Z,L)}catch(y){if(y.code!=="MODULE_NOT_FOUND")throw y;return null}return{location:Y?I:await j9(I),hasModuleSideEffects:$,hasPackageEntry:H,packageBrowserField:M,packageInfo:O}}async function dG({importer:Z,importSpecifier:J,exportConditions:q,packageInfoCache:Q,extensions:Y,mainFields:X,preserveSymlinks:z,useBrowserOverrides:V,baseDir:W,moduleDirectories:K,rootDir:$,ignoreSideEffectsForRoot:H}){if(J.startsWith("#")){let O=await gG({importSpecifier:J,importer:Z,moduleDirs:K,conditions:q,resolveId(L){return eq({importSpecifier:L,packageInfoCache:Q,extensions:Y,mainFields:X,preserveSymlinks:z,useBrowserOverrides:V,baseDir:W,moduleDirectories:K})}}),j=kq(O);return{location:z?j:await j9(j),hasModuleSideEffects:()=>null,hasPackageEntry:!0,packageBrowserField:!1,packageInfo:void 0}}let M=pq(J);if(M){let O=()=>null,j=!0,L=!1,I,T=await uG(Z,M,{basedir:W,readFile:w9,isFile:L9,isDirectory:F9,extensions:Y,includeCoreModules:!1,moduleDirectory:K,preserveSymlinks:z,packageFilter:(g,h)=>{let u=iq({cache:Q,extensions:Y,pkg:g,pkgPath:h,mainFields:X,preserveSymlinks:z,useBrowserOverrides:V,rootDir:$,ignoreSideEffectsForRoot:H});return{packageInfo:I,hasModuleSideEffects:O,hasPackageEntry:j,packageBrowserField:L}=u,u.cachedPkg}},K);if(T&&T.pkgJson.exports){let{pkgJson:g,pkgJsonPath:h}=T,u=M===J?".":`.${J.substring(M.length)}`,E=h.replace("package.json",""),N=Q4(E),A=await hG({importer:Z,importSpecifier:J,moduleDirs:K,pkgURL:N,pkgJsonPath:h,conditions:q},u,g.exports),B=kq(A);if(B)return{location:z?B:await j9(B),hasModuleSideEffects:O,hasPackageEntry:j,packageBrowserField:L,packageInfo:I}}}return null}async function lG({importer:Z,importSpecifierList:J,exportConditions:q,warn:Q,packageInfoCache:Y,extensions:X,mainFields:z,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:$,rootDir:H,ignoreSideEffectsForRoot:M}){for(let O=0;O<J.length;O++){let j=await eq({importer:Z,importSpecifier:J[O],exportConditions:q,warn:Q,packageInfoCache:Y,extensions:X,mainFields:z,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:$,rootDir:H,ignoreSideEffectsForRoot:M});if(j)return j}return null}async function cG({importer:Z,importSpecifierList:J,exportConditions:q,warn:Q,packageInfoCache:Y,extensions:X,mainFields:z,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:$,rootDir:H,ignoreSideEffectsForRoot:M}){try{let O=await dG({importer:Z,importSpecifier:J[0],exportConditions:q,packageInfoCache:Y,extensions:X,mainFields:z,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:$,rootDir:H,ignoreSideEffectsForRoot:M});if(O)return O}catch(O){if(O instanceof d6)return Q(O),null;throw O}return lG({importer:Z,importSpecifierList:J,exportConditions:q,warn:Q,packageInfoCache:Y,extensions:X,mainFields:z,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:$,rootDir:H,ignoreSideEffectsForRoot:M})}var q4="\x00node-resolve:empty.js",ZQ=(Z)=>{Object.freeze(Z);for(let J of Object.values(Z))if(typeof J==="object"&&!Object.isFrozen(J))ZQ(J);return Z},JQ=["default","module"],pG=[...JQ,"import"],iG=[...JQ,"require"],qQ={dedupe:[],extensions:[".mjs",".js",".json",".node"],resolveOnly:[],moduleDirectories:["node_modules"],ignoreSideEffectsForRoot:!1},OI=ZQ(gq.default({},qQ));function QQ(Z={}){let{warnings:J}=EG(Z),q={...qQ,...Z},{extensions:Q,jail:Y,moduleDirectories:X,ignoreSideEffectsForRoot:z}=q,V=[...pG,...q.exportConditions||[]],W=[...iG,...q.exportConditions||[]],K=new Map,$=new Map,H=bG(q),M=H.indexOf("browser")!==-1,O=q.preferBuiltins===!0||q.preferBuiltins===!1,j=O?q.preferBuiltins:!0,L=l8(q.rootDir||process.cwd()),{dedupe:I}=q,y;if(typeof I!=="function")I=(E)=>q.dedupe.includes(E)||q.dedupe.includes(pq(E));let _=(E)=>{let N=E.map((P)=>{if(P instanceof RegExp)return P;let A=P.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(`^${A}$`)});return(P)=>!N.length||N.some((A)=>A.test(P))},T=typeof q.resolveOnly==="function"?q.resolveOnly:_(q.resolveOnly),g=new Map,h,u=async(E,N,P,A)=>{let[B,b]=N.split("?"),k=`${b?`?${b}`:""}`;N=B;let S=!P||I(N)?L:B9(P),G=g.get(P);if(M&&G){let C=l8(S,N);if(G[N]===!1||G[C]===!1)return{id:q4};let v=N[0]!=="."&&G[N]||G[C]||G[`${C}.js`]||G[`${C}.json`];if(v)N=v}let F=N.split(/[/\\]/),d=F.shift(),f=!1;if(d[0]==="@"&&F.length>0)d+=`/${F.shift()}`;else if(d[0]===".")d=l8(S,N),f=!0;if(!f&&!T(d)){if(xG(y.input).includes(N))return null;return!1}let o=[N];if(P===void 0&&!N[0].match(/^\.?\.?\//))o.push(`./${N}`);if(P&&N.endsWith(".js")){for(let C of[".ts",".tsx"])if(P.endsWith(C)&&Q.includes(C))o.push(N.replace(/.js$/,C))}let t=(...C)=>E.warn(...C),N1=A&&A["node-resolve"]&&A["node-resolve"].isRequire?W:V;if(M&&!N1.includes("browser"))N1.push("browser");let R1=await cG({importer:P,importSpecifierList:o,exportConditions:N1,warn:t,packageInfoCache:K,extensions:Q,mainFields:H,preserveSymlinks:h,useBrowserOverrides:M,baseDir:S,moduleDirectories:X,rootDir:L,ignoreSideEffectsForRoot:z}),F1=hq.default(N),s=F1&&j?{packageInfo:void 0,hasModuleSideEffects:()=>null,hasPackageEntry:!0,packageBrowserField:!1}:R1;if(!s)return null;let{packageInfo:m,hasModuleSideEffects:L1,hasPackageEntry:p,packageBrowserField:D}=s,{location:x}=s;if(D){if(Object.prototype.hasOwnProperty.call(D,x)){if(!D[x])return g.set(x,D),{id:q4};x=D[x]}g.set(x,D)}if(p&&!h){if(await Y4(x))x=await lq(x)}if($.set(x,m),p){if(F1&&j){if(!O&&R1&&s!==N)E.warn(`preferring built-in module '${N}' over local alternative at '${R1.location}', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning`);return!1}else if(Y&&x.indexOf(AG(Y.trim(PG)))!==0)return null}if(q.modulesOnly&&await Y4(x)){let C=await dq(x,"utf-8");if(mq.default(C))return{id:`${x}${k}`,moduleSideEffects:L1(x)};return null}return{id:`${x}${k}`,moduleSideEffects:L1(x)}};return{name:"node-resolve",version:yG,buildStart(E){y=E;for(let N of J)this.warn(N);({preserveSymlinks:h}=E)},generateBundle(){w9.clear(),L9.clear(),F9.clear()},async resolveId(E,N,P){if(E===q4)return E;if(/\0/.test(E))return null;if(/\0/.test(N))N=void 0;let A=await u(this,E,N,P.custom);if(A){let B=await this.resolve(A.id,N,Object.assign({skipSelf:!0},P));if(B){if(B.external)return!1;if(B.id!==A.id)return B;return{...A,meta:B.meta}}}return A},load(E){if(E===q4)return"export default {};";return null},getPackageInfoForId(E){return $.get(E)}}}iX();var fW=F8(Pz(),1);import{existsSync as Sz,readFileSync as hL}from"node:fs";import{join as yz}from"node:path";function C6(Z){if(Z){let q=yz(process.cwd(),Z);if(Sz(q))return Z;else return console.log(`Invalid entry point: ${q}.`),null}let J=yz(process.cwd(),"package.json");if(!Sz(J))return console.log(`Could not locate a package.json file.
|
|
69
|
+
`),null;try{let q=JSON.parse(hL(J,"utf-8"));if(typeof q.svelte==="string"&&q.svelte.trim())return q.svelte;return console.log(`Could not determine an entry point.
|
|
70
70
|
`),console.log(`Specify an entry point to your Svelte code in the "svelte" field of your package.json.
|
|
71
|
-
`),null}catch(J){throw console.error("Error reading package.json:",J),J}}import{lstatSync as NO,readFileSync as wO}from"node:fs";import{readFile as OO}from"node:fs/promises";import{basename as RO,dirname as FW,parse as f7,relative as CO,resolve as X3}from"node:path";import{preprocess as _O}from"svelte/compiler";import{replace as IO,typescript as DO}from"svelte-preprocess";import C6 from"fs";import eX,{posix as k8}from"path";import{fileURLToPath as yN}from"url";import{createRequire as qL}from"module";import{basename as JL,dirname as Rq,normalize as QL,relative as YL,resolve as zL,sep as OX}from"path";import*as XL from"fs";var NX=qL(import.meta.url);function VL(Z){let q=QL(Z);if(q.length>1&&q[q.length-1]===OX)q=q.substring(0,q.length-1);return q}var WL=/[\\/]/g;function RX(Z,q){return Z.replace(WL,q)}var KL=/^[a-z]:[\\/]$/i;function GL(Z){return Z==="/"||KL.test(Z)}function Oq(Z,q){let{resolvePaths:J,normalizePath:Q,pathSeparator:Y}=q,z=process.platform==="win32"&&Z.includes("/")||Z.startsWith(".");if(J)Z=zL(Z);if(Q||z)Z=VL(Z);if(Z===".")return"";let X=Z[Z.length-1]!==Y;return RX(X?Z+Y:Z,Y)}function CX(Z,q){return q+Z}function $L(Z,q){return function(J,Q){if(Q.startsWith(Z))return Q.slice(Z.length)+J;else return RX(YL(Z,Q),q.pathSeparator)+q.pathSeparator+J}}function UL(Z){return Z}function jL(Z,q,J){return q+Z+J}function BL(Z,q){let{relativePaths:J,includeBasePath:Q}=q;return J&&Z?$L(Z,q):Q?CX:UL}function HL(Z){return function(q,J){J.push(q.substring(Z.length)||".")}}function ML(Z){return function(q,J,Q){let Y=q.substring(Z.length)||".";if(Q.every((z)=>z(Y,!0)))J.push(Y)}}var FL=(Z,q)=>{q.push(Z||".")},LL=(Z,q,J)=>{let Q=Z||".";if(J.every((Y)=>Y(Q,!0)))q.push(Q)},NL=()=>{};function wL(Z,q){let{includeDirs:J,filters:Q,relativePaths:Y}=q;if(!J)return NL;if(Y)return Q&&Q.length?ML(Z):HL(Z);return Q&&Q.length?LL:FL}var OL=(Z,q,J,Q)=>{if(Q.every((Y)=>Y(Z,!1)))J.files++},RL=(Z,q,J,Q)=>{if(Q.every((Y)=>Y(Z,!1)))q.push(Z)},CL=(Z,q,J,Q)=>{J.files++},_L=(Z,q)=>{q.push(Z)},IL=()=>{};function DL(Z){let{excludeFiles:q,filters:J,onlyCounts:Q}=Z;if(q)return IL;if(J&&J.length)return Q?OL:RL;else if(Q)return CL;else return _L}var TL=(Z)=>{return Z},AL=()=>{return[""].slice(0,0)};function PL(Z){return Z.group?AL:TL}var SL=(Z,q,J)=>{Z.push({directory:q,files:J,dir:q})},yL=()=>{};function EL(Z){return Z.group?SL:yL}var bL=function(Z,q,J){let{queue:Q,fs:Y,options:{suppressErrors:z}}=q;Q.enqueue(),Y.realpath(Z,(X,V)=>{if(X)return Q.dequeue(z?null:X,q);Y.stat(V,(W,K)=>{if(W)return Q.dequeue(z?null:W,q);if(K.isDirectory()&&_X(Z,V,q))return Q.dequeue(null,q);J(K,V),Q.dequeue(null,q)})})},xL=function(Z,q,J){let{queue:Q,fs:Y,options:{suppressErrors:z}}=q;Q.enqueue();try{let X=Y.realpathSync(Z),V=Y.statSync(X);if(V.isDirectory()&&_X(Z,X,q))return;J(V,X)}catch(X){if(!z)throw X}};function kL(Z,q){if(!Z.resolveSymlinks||Z.excludeSymlinks)return null;return q?xL:bL}function _X(Z,q,J){if(J.options.useRealPaths)return vL(q,J);let Q=Rq(Z),Y=1;while(Q!==J.root&&Y<2){let z=J.symlinks.get(Q);if(!!z&&(z===q||z.startsWith(q)||q.startsWith(z)))Y++;else Q=Rq(Q)}return J.symlinks.set(Z,q),Y>1}function vL(Z,q){return q.visited.includes(Z+q.options.pathSeparator)}var fL=(Z)=>{return Z.counts},hL=(Z)=>{return Z.groups},gL=(Z)=>{return Z.paths},mL=(Z)=>{return Z.paths.slice(0,Z.options.maxFiles)},uL=(Z,q,J)=>{return H7(q,J,Z.counts,Z.options.suppressErrors),null},dL=(Z,q,J)=>{return H7(q,J,Z.paths,Z.options.suppressErrors),null},lL=(Z,q,J)=>{return H7(q,J,Z.paths.slice(0,Z.options.maxFiles),Z.options.suppressErrors),null},cL=(Z,q,J)=>{return H7(q,J,Z.groups,Z.options.suppressErrors),null};function H7(Z,q,J,Q){if(Z&&!Q)q(Z,J);else q(null,J)}function pL(Z,q){let{onlyCounts:J,group:Q,maxFiles:Y}=Z;if(J)return q?fL:uL;else if(Q)return q?hL:cL;else if(Y)return q?mL:lL;else return q?gL:dL}var IX={withFileTypes:!0},iL=(Z,q,J,Q,Y)=>{if(Z.queue.enqueue(),Q<0)return Z.queue.dequeue(null,Z);let{fs:z}=Z;Z.visited.push(q),Z.counts.directories++,z.readdir(q||".",IX,(X,V=[])=>{Y(V,J,Q),Z.queue.dequeue(Z.options.suppressErrors?null:X,Z)})},nL=(Z,q,J,Q,Y)=>{let{fs:z}=Z;if(Q<0)return;Z.visited.push(q),Z.counts.directories++;let X=[];try{X=z.readdirSync(q||".",IX)}catch(V){if(!Z.options.suppressErrors)throw V}Y(X,J,Q)};function aL(Z){return Z?nL:iL}var sL=class{count=0;constructor(Z){this.onQueueEmpty=Z}enqueue(){return this.count++,this.count}dequeue(Z,q){if(this.onQueueEmpty&&(--this.count<=0||Z)){if(this.onQueueEmpty(Z,q),Z)q.controller.abort(),this.onQueueEmpty=void 0}}},rL=class{_files=0;_directories=0;set files(Z){this._files=Z}get files(){return this._files}set directories(Z){this._directories=Z}get directories(){return this._directories}get dirs(){return this._directories}},oL=class{aborted=!1;abort(){this.aborted=!0}},DX=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(Z,q,J){this.isSynchronous=!J,this.callbackInvoker=pL(q,this.isSynchronous),this.root=Oq(Z,q),this.state={root:GL(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new rL,options:q,queue:new sL((Q,Y)=>this.callbackInvoker(Y,Q,J)),symlinks:new Map,visited:[""].slice(0,0),controller:new oL,fs:q.fs||XL},this.joinPath=BL(this.root,q),this.pushDirectory=wL(this.root,q),this.pushFile=DL(q),this.getArray=PL(q),this.groupFiles=EL(q),this.resolveSymlink=kL(q,this.isSynchronous),this.walkDirectory=aL(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(Z,q,J)=>{let{paths:Q,options:{filters:Y,resolveSymlinks:z,excludeSymlinks:X,exclude:V,maxFiles:W,signal:K,useRealPaths:G,pathSeparator:F},controller:M}=this.state;if(M.aborted||K&&K.aborted||W&&Q.length>W)return;let B=this.getArray(this.state.paths);for(let H=0;H<Z.length;++H){let N=Z[H];if(N.isFile()||N.isSymbolicLink()&&!z&&!X){let C=this.joinPath(N.name,q);this.pushFile(C,B,this.state.counts,Y)}else if(N.isDirectory()){let C=jL(N.name,q,this.state.options.pathSeparator);if(V&&V(N.name,C))continue;this.pushDirectory(C,Q,Y),this.walkDirectory(this.state,C,C,J-1,this.walk)}else if(this.resolveSymlink&&N.isSymbolicLink()){let C=CX(N.name,q);this.resolveSymlink(C,this.state,(A,S)=>{if(A.isDirectory()){if(S=Oq(S,this.state.options),V&&V(N.name,G?S:C+F))return;this.walkDirectory(this.state,S,G?S:C+F,J-1,this.walk)}else{S=G?S:C;let T=JL(S),g=Oq(Rq(S),this.state.options);S=this.joinPath(T,g),this.pushFile(S,B,this.state.counts,Y)}})}}this.groupFiles(this.state.groups,q,B)}};function tL(Z,q){return new Promise((J,Q)=>{TX(Z,q,(Y,z)=>{if(Y)return Q(Y);J(z)})})}function TX(Z,q,J){new DX(Z,q,J).start()}function eL(Z,q){return new DX(Z,q).start()}var wX=class{constructor(Z,q){this.root=Z,this.options=q}withPromise(){return tL(this.root,this.options)}withCallback(Z){TX(this.root,this.options,Z)}sync(){return eL(this.root,this.options)}},AX=null;try{NX.resolve("picomatch"),AX=NX("picomatch")}catch{}var PX=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:OX,filters:[]};globFunction;constructor(Z){this.options={...this.options,...Z},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(Z){return this.options.pathSeparator=Z,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(Z){return this.options.maxDepth=Z,this}withMaxFiles(Z){return this.options.maxFiles=Z,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:Z=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=Z,this.withFullPaths()}withAbortSignal(Z){return this.options.signal=Z,this}normalize(){return this.options.normalizePath=!0,this}filter(Z){return this.options.filters.push(Z),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(Z){return this.options.exclude=Z,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(Z){return new wX(Z||".",this.options)}withGlobFunction(Z){return this.globFunction=Z,this}crawlWithOptions(Z,q){return this.options={...this.options,...q},new wX(Z||".",this.options)}glob(...Z){if(this.globFunction)return this.globWithOptions(Z);return this.globWithOptions(Z,...[{dot:!0}])}globWithOptions(Z,...q){let J=this.globFunction||AX;if(!J)throw Error("Please specify a glob function to use glob matching.");var Q=this.globCache[Z.join("\x00")];if(!Q)Q=J(Z,...q),this.globCache[Z.join("\x00")]=Q;return this.options.filters.push((Y)=>Q(Y)),this}};var I6=F8(oX(),1),EN=Array.isArray,ZV=process.platform==="win32",bN=/^(\/?\.\.)+$/;function xN(Z,q={}){let J=Z.length,Q=Array(J),Y=Array(J),z=!q.noglobstar;for(let X=0;X<J;X++){let V=qV(Z[X]);Q[X]=V;let W=V.length,K=Array(W);for(let G=0;G<W;G++)K[G]=I6.default(V[G],q);Y[X]=K}return(X)=>{let V=X.split("/");if(V[0]===".."&&bN.test(X))return!0;for(let W=0;W<Z.length;W++){let K=Q[W],G=Y[W],F=V.length,M=Math.min(F,K.length),B=0;while(B<M){let H=K[B];if(H.includes("/"))return!0;if(!G[B](V[B]))break;if(z&&H==="**")return!0;B++}if(B===F)return!0}return!1}}var kN=/^[A-Z]:\/$/i,vN=ZV?(Z)=>kN.test(Z):(Z)=>Z==="/";function tX(Z,q,J){if(Z===q||q.startsWith(`${Z}/`)){if(J){let Y=vN(Z)?Z.length:Z.length+1;return(z,X)=>z.slice(Y,X?-1:void 0)||"."}let Q=q.slice(Z.length+1);if(Q)return(Y,z)=>{if(Y===".")return Q;let X=`${Q}/${Y}`;return z?X.slice(0,-1):X};return(Y,z)=>z&&Y!=="."?Y.slice(0,-1):Y}if(J)return(Q)=>k8.relative(Z,Q)||".";return(Q)=>k8.relative(Z,`${q}/${Q}`)||"."}function fN(Z,q){if(q.startsWith(`${Z}/`)){let J=q.slice(Z.length+1);return(Q)=>`${J}/${Q}`}return(J)=>{let Q=k8.relative(Z,`${q}/${J}`);if(J.endsWith("/")&&Q!=="")return`${Q}/`;return Q||"."}}var hN={parts:!0};function qV(Z){var q;let J=I6.default.scan(Z,hN);return((q=J.parts)===null||q===void 0?void 0:q.length)?J.parts:[Z]}var gN=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,mN=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,uN=(Z)=>Z.replace(gN,"\\$&"),dN=(Z)=>Z.replace(mN,"\\$&"),lN=ZV?dN:uN;function cN(Z,q){if((q===null||q===void 0?void 0:q.caseSensitiveMatch)===!1)return!0;let J=I6.default.scan(Z);return J.isGlob||J.negated}function _6(...Z){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...Z)}var pN=/^(\/?\.\.)+/,iN=/\\(?=[()[\]{}!*+?@|])/g,L7=/\\/g;function Sq(Z,q,J,Q,Y){let z=Z;if(Z.endsWith("/"))z=Z.slice(0,-1);if(!z.endsWith("*")&&q)z+="/**";let X=lN(J);if(eX.isAbsolute(z.replace(iN,"")))z=k8.relative(X,z);else z=k8.normalize(z);let V=pN.exec(z),W=qV(z);if(V===null||V===void 0?void 0:V[0]){let G=(V[0].length+1)/3,F=0,M=X.split("/");while(F<G&&W[F+G]===M[M.length+F-G])z=z.slice(0,(G-F-1)*3)+z.slice((G-F)*3+W[F+G].length+1)||".",F++;let B=k8.join(J,V[0].slice(F*3));if(!B.startsWith(".")&&Q.root.length>B.length)Q.root=B,Q.depthOffset=-G+F}if(!Y&&Q.depthOffset>=0){var K;(K=Q.commonPath)!==null&&K!==void 0||(Q.commonPath=W);let G=[],F=Math.min(Q.commonPath.length,W.length);for(let M=0;M<F;M++){let B=W[M];if(B==="**"&&!W[M+1]){G.pop();break}if(B!==Q.commonPath[M]||cN(B)||M===W.length-1)break;G.push(B)}Q.depthOffset=G.length,Q.commonPath=G,Q.root=G.length>0?k8.join(J,...G):J}return z}function nN({patterns:Z=["**/*"],ignore:q=[],expandDirectories:J=!0},Q,Y){if(typeof Z==="string")Z=[Z];if(typeof q==="string")q=[q];let z=[],X=[];for(let V of q){if(!V)continue;if(V[0]!=="!"||V[1]==="(")X.push(Sq(V,J,Q,Y,!0))}for(let V of Z){if(!V)continue;if(V[0]!=="!"||V[1]==="(")z.push(Sq(V,J,Q,Y,!1));else if(V[1]!=="!"||V[2]==="(")X.push(Sq(V.slice(1),J,Q,Y,!0))}return{match:z,ignore:X}}function aN(Z,q){for(let J=Z.length-1;J>=0;J--){let Q=Z[J];Z[J]=q(Q)}return Z}function sN(Z){if(!Z)return process.cwd().replace(L7,"/");if(Z instanceof URL)return yN(Z).replace(L7,"/");return eX.resolve(Z).replace(L7,"/")}function rN(Z,q={}){let J=process.env.TINYGLOBBY_DEBUG?{...q,debug:!0}:q,Q=sN(J.cwd);if(J.debug)_6("globbing with:",{patterns:Z,options:J,cwd:Q});if(Array.isArray(Z)&&Z.length===0)return[{sync:()=>[],withPromise:async()=>[]},!1];let Y={root:Q,commonPath:null,depthOffset:0},z=nN({...J,patterns:Z},Q,Y);if(J.debug)_6("internal processing patterns:",z);let X={dot:J.dot,nobrace:J.braceExpansion===!1,nocase:J.caseSensitiveMatch===!1,noextglob:J.extglob===!1,noglobstar:J.globstar===!1,posix:!0},V=I6.default(z.match,{...X,ignore:z.ignore}),W=I6.default(z.ignore,X),K=xN(z.match,X),G=tX(Q,Y.root,J.absolute),F=J.absolute?G:tX(Q,Y.root,!0),M={filters:[J.debug?(N,C)=>{let A=G(N,C),S=V(A);if(S)_6(`matched ${A}`);return S}:(N,C)=>V(G(N,C))],exclude:J.debug?(N,C)=>{let A=F(C,!0),S=A!=="."&&!K(A)||W(A);if(S)_6(`skipped ${C}`);else _6(`crawling ${C}`);return S}:(N,C)=>{let A=F(C,!0);return A!=="."&&!K(A)||W(A)},fs:J.fs?{readdir:J.fs.readdir||C6.readdir,readdirSync:J.fs.readdirSync||C6.readdirSync,realpath:J.fs.realpath||C6.realpath,realpathSync:J.fs.realpathSync||C6.realpathSync,stat:J.fs.stat||C6.stat,statSync:J.fs.statSync||C6.statSync}:void 0,pathSeparator:"/",relativePaths:!0,resolveSymlinks:!0,signal:J.signal};if(J.deep!==void 0)M.maxDepth=Math.round(J.deep-Y.depthOffset);if(J.absolute)M.relativePaths=!1,M.resolvePaths=!0,M.includeBasePath=!0;if(J.followSymbolicLinks===!1)M.resolveSymlinks=!1,M.excludeSymlinks=!0;if(J.onlyDirectories)M.excludeFiles=!0,M.includeDirs=!0;else if(J.onlyFiles===!1)M.includeDirs=!0;Y.root=Y.root.replace(L7,"");let B=Y.root;if(J.debug)_6("internal properties:",Y);let H=Q!==B&&!J.absolute&&fN(Q,Y.root);return[new PX(M).crawl(B),H]}function JV(Z,q){if(Z&&(q===null||q===void 0?void 0:q.patterns))throw Error("Cannot pass patterns as both an argument and an option");let J=EN(Z)||typeof Z==="string",Q=J?q:Z,Y=J?Z:Z.patterns,[z,X]=rN(Y,Q);if(!X)return z.sync();return aN(z.sync(),X)}import{lstatSync as dw,readdirSync as lw,readFileSync as cw}from"node:fs";import{dirname as pw,join as nV,resolve as iw}from"node:path";var oN=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],VV=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,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,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],tN="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",WV="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",yq={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"},Eq="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",eN={5:Eq,"5module":Eq+" export import",6:Eq+" const class extends export import super"},Zw=/^in(stanceof)?$/,qw=new RegExp("["+WV+"]"),Jw=new RegExp("["+WV+tN+"]");function bq(Z,q){var J=65536;for(var Q=0;Q<q.length;Q+=2){if(J+=q[Q],J>Z)return!1;if(J+=q[Q+1],J>=Z)return!0}return!1}function m5(Z,q){if(Z<65)return Z===36;if(Z<91)return!0;if(Z<97)return Z===95;if(Z<123)return!0;if(Z<=65535)return Z>=170&&qw.test(String.fromCharCode(Z));if(q===!1)return!1;return bq(Z,VV)}function B8(Z,q){if(Z<48)return Z===36;if(Z<58)return!0;if(Z<65)return!1;if(Z<91)return!0;if(Z<97)return Z===95;if(Z<123)return!0;if(Z<=65535)return Z>=170&&Jw.test(String.fromCharCode(Z));if(q===!1)return!1;return bq(Z,VV)||bq(Z,oN)}var C1=function(q,J){if(J===void 0)J={};this.label=q,this.keyword=J.keyword,this.beforeExpr=!!J.beforeExpr,this.startsExpr=!!J.startsExpr,this.isLoop=!!J.isLoop,this.isAssign=!!J.isAssign,this.prefix=!!J.prefix,this.postfix=!!J.postfix,this.binop=J.binop||null,this.updateContext=null};function R5(Z,q){return new C1(Z,{beforeExpr:!0,binop:q})}var C5={beforeExpr:!0},X5={startsExpr:!0},hq={};function L1(Z,q){if(q===void 0)q={};return q.keyword=Z,hq[Z]=new C1(Z,q)}var w={num:new C1("num",X5),regexp:new C1("regexp",X5),string:new C1("string",X5),name:new C1("name",X5),privateId:new C1("privateId",X5),eof:new C1("eof"),bracketL:new C1("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new C1("]"),braceL:new C1("{",{beforeExpr:!0,startsExpr:!0}),braceR:new C1("}"),parenL:new C1("(",{beforeExpr:!0,startsExpr:!0}),parenR:new C1(")"),comma:new C1(",",C5),semi:new C1(";",C5),colon:new C1(":",C5),dot:new C1("."),question:new C1("?",C5),questionDot:new C1("?."),arrow:new C1("=>",C5),template:new C1("template"),invalidTemplate:new C1("invalidTemplate"),ellipsis:new C1("...",C5),backQuote:new C1("`",X5),dollarBraceL:new C1("${",{beforeExpr:!0,startsExpr:!0}),eq:new C1("=",{beforeExpr:!0,isAssign:!0}),assign:new C1("_=",{beforeExpr:!0,isAssign:!0}),incDec:new C1("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new C1("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:R5("||",1),logicalAND:R5("&&",2),bitwiseOR:R5("|",3),bitwiseXOR:R5("^",4),bitwiseAND:R5("&",5),equality:R5("==/!=/===/!==",6),relational:R5("</>/<=/>=",7),bitShift:R5("<</>>/>>>",8),plusMin:new C1("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:R5("%",10),star:R5("*",10),slash:R5("/",10),starstar:new C1("**",{beforeExpr:!0}),coalesce:R5("??",1),_break:L1("break"),_case:L1("case",C5),_catch:L1("catch"),_continue:L1("continue"),_debugger:L1("debugger"),_default:L1("default",C5),_do:L1("do",{isLoop:!0,beforeExpr:!0}),_else:L1("else",C5),_finally:L1("finally"),_for:L1("for",{isLoop:!0}),_function:L1("function",X5),_if:L1("if"),_return:L1("return",C5),_switch:L1("switch"),_throw:L1("throw",C5),_try:L1("try"),_var:L1("var"),_const:L1("const"),_while:L1("while",{isLoop:!0}),_with:L1("with"),_new:L1("new",{beforeExpr:!0,startsExpr:!0}),_this:L1("this",X5),_super:L1("super",X5),_class:L1("class",X5),_extends:L1("extends",C5),_export:L1("export"),_import:L1("import",X5),_null:L1("null",X5),_true:L1("true",X5),_false:L1("false",X5),_in:L1("in",{beforeExpr:!0,binop:7}),_instanceof:L1("instanceof",{beforeExpr:!0,binop:7}),_typeof:L1("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:L1("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:L1("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},V5=/\r\n?|\n|\u2028|\u2029/,Qw=new RegExp(V5.source,"g");function D6(Z){return Z===10||Z===13||Z===8232||Z===8233}function KV(Z,q,J){if(J===void 0)J=Z.length;for(var Q=q;Q<J;Q++){var Y=Z.charCodeAt(Q);if(D6(Y))return Q<J-1&&Y===13&&Z.charCodeAt(Q+1)===10?Q+2:Q+1}return-1}var GV=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Z5=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,$V=Object.prototype,Yw=$V.hasOwnProperty,zw=$V.toString,T6=Object.hasOwn||function(Z,q){return Yw.call(Z,q)},QV=Array.isArray||function(Z){return zw.call(Z)==="[object Array]"},YV=Object.create(null);function j8(Z){return YV[Z]||(YV[Z]=new RegExp("^(?:"+Z.replace(/ /g,"|")+")$"))}function o5(Z){if(Z<=65535)return String.fromCharCode(Z);return Z-=65536,String.fromCharCode((Z>>10)+55296,(Z&1023)+56320)}var Xw=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,x0=function(q,J){this.line=q,this.column=J};x0.prototype.offset=function(q){return new x0(this.line,this.column+q)};var _7=function(q,J,Q){if(this.start=J,this.end=Q,q.sourceFile!==null)this.source=q.sourceFile};function UV(Z,q){for(var J=1,Q=0;;){var Y=KV(Z,Q,q);if(Y<0)return new x0(J,q-Q);++J,Q=Y}}var xq={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},zV=!1;function Vw(Z){var q={};for(var J in xq)q[J]=Z&&T6(Z,J)?Z[J]:xq[J];if(q.ecmaVersion==="latest")q.ecmaVersion=1e8;else if(q.ecmaVersion==null){if(!zV&&typeof console==="object"&&console.warn)zV=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
72
|
-
Defaulting to 2020, but this will stop working in the future.`);
|
|
73
|
-
`,Q-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(V5).length;else this.pos=this.lineStart=0,this.curLine=1;if(this.type=w.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=q.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&q.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(k0),this.regexpState=null,this.privateNameStack=[]},u5={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};c1.prototype.parse=function(){var q=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(q)};u5.inFunction.get=function(){return(this.currentVarScope().flags&A6)>0};u5.inGenerator.get=function(){return(this.currentVarScope().flags&jV)>0};u5.inAsync.get=function(){return(this.currentVarScope().flags&gq)>0};u5.canAwait.get=function(){for(var Z=this.scopeStack.length-1;Z>=0;Z--){var q=this.scopeStack[Z],J=q.flags;if(J&(v8|v0))return!1;if(J&A6)return(J&gq)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};u5.allowSuper.get=function(){var Z=this.currentThisScope(),q=Z.flags;return(q&I7)>0||this.options.allowSuperOutsideMethod};u5.allowDirectSuper.get=function(){return(this.currentThisScope().flags&HV)>0};u5.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};u5.allowNewDotTarget.get=function(){for(var Z=this.scopeStack.length-1;Z>=0;Z--){var q=this.scopeStack[Z],J=q.flags;if(J&(v8|v0)||J&A6&&!(J&mq))return!0}return!1};u5.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&v8)>0};c1.extend=function(){var q=[],J=arguments.length;while(J--)q[J]=arguments[J];var Q=this;for(var Y=0;Y<q.length;Y++)Q=q[Y](Q);return Q};c1.parse=function(q,J){return new this(J,q).parse()};c1.parseExpressionAt=function(q,J,Q){var Y=new this(Q,q,J);return Y.nextToken(),Y.parseExpression()};c1.tokenizer=function(q,J){return new this(J,q)};Object.defineProperties(c1.prototype,u5);var Q5=c1.prototype,Kw=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Q5.strictDirective=function(Z){if(this.options.ecmaVersion<5)return!1;for(;;){Z5.lastIndex=Z,Z+=Z5.exec(this.input)[0].length;var q=Kw.exec(this.input.slice(Z));if(!q)return!1;if((q[1]||q[2])==="use strict"){Z5.lastIndex=Z+q[0].length;var J=Z5.exec(this.input),Q=J.index+J[0].length,Y=this.input.charAt(Q);return Y===";"||Y==="}"||V5.test(J[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(Y)||Y==="!"&&this.input.charAt(Q+1)==="=")}if(Z+=q[0].length,Z5.lastIndex=Z,Z+=Z5.exec(this.input)[0].length,this.input[Z]===";")Z++}};Q5.eat=function(Z){if(this.type===Z)return this.next(),!0;else return!1};Q5.isContextual=function(Z){return this.type===w.name&&this.value===Z&&!this.containsEsc};Q5.eatContextual=function(Z){if(!this.isContextual(Z))return!1;return this.next(),!0};Q5.expectContextual=function(Z){if(!this.eatContextual(Z))this.unexpected()};Q5.canInsertSemicolon=function(){return this.type===w.eof||this.type===w.braceR||V5.test(this.input.slice(this.lastTokEnd,this.start))};Q5.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};Q5.semicolon=function(){if(!this.eat(w.semi)&&!this.insertSemicolon())this.unexpected()};Q5.afterTrailingComma=function(Z,q){if(this.type===Z){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!q)this.next();return!0}};Q5.expect=function(Z){this.eat(Z)||this.unexpected()};Q5.unexpected=function(Z){this.raise(Z!=null?Z:this.start,"Unexpected token")};var T7=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Q5.checkPatternErrors=function(Z,q){if(!Z)return;if(Z.trailingComma>-1)this.raiseRecoverable(Z.trailingComma,"Comma is not permitted after the rest element");var J=q?Z.parenthesizedAssign:Z.parenthesizedBind;if(J>-1)this.raiseRecoverable(J,q?"Assigning to rvalue":"Parenthesized pattern")};Q5.checkExpressionErrors=function(Z,q){if(!Z)return!1;var{shorthandAssign:J,doubleProto:Q}=Z;if(!q)return J>=0||Q>=0;if(J>=0)this.raise(J,"Shorthand property assignments are valid only in destructuring patterns");if(Q>=0)this.raiseRecoverable(Q,"Redefinition of __proto__ property")};Q5.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos))this.raise(this.yieldPos,"Yield expression cannot be a default value");if(this.awaitPos)this.raise(this.awaitPos,"Await expression cannot be a default value")};Q5.isSimpleAssignTarget=function(Z){if(Z.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(Z.expression);return Z.type==="Identifier"||Z.type==="MemberExpression"};var J1=c1.prototype;J1.parseTopLevel=function(Z){var q=Object.create(null);if(!Z.body)Z.body=[];while(this.type!==w.eof){var J=this.parseStatement(null,!0,q);Z.body.push(J)}if(this.inModule)for(var Q=0,Y=Object.keys(this.undefinedExports);Q<Y.length;Q+=1){var z=Y[Q];this.raiseRecoverable(this.undefinedExports[z].start,"Export '"+z+"' is not defined")}return this.adaptDirectivePrologue(Z.body),this.next(),Z.sourceType=this.options.sourceType,this.finishNode(Z,"Program")};var lq={kind:"loop"},Gw={kind:"switch"};J1.isLet=function(Z){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Z5.lastIndex=this.pos;var q=Z5.exec(this.input),J=this.pos+q[0].length,Q=this.input.charCodeAt(J);if(Q===91||Q===92)return!0;if(Z)return!1;if(Q===123||Q>55295&&Q<56320)return!0;if(m5(Q,!0)){var Y=J+1;while(B8(Q=this.input.charCodeAt(Y),!0))++Y;if(Q===92||Q>55295&&Q<56320)return!0;var z=this.input.slice(J,Y);if(!Zw.test(z))return!0}return!1};J1.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Z5.lastIndex=this.pos;var Z=Z5.exec(this.input),q=this.pos+Z[0].length,J;return!V5.test(this.input.slice(this.pos,q))&&this.input.slice(q,q+8)==="function"&&(q+8===this.input.length||!(B8(J=this.input.charCodeAt(q+8))||J>55295&&J<56320))};J1.isUsingKeyword=function(Z,q){if(this.options.ecmaVersion<17||!this.isContextual(Z?"await":"using"))return!1;Z5.lastIndex=this.pos;var J=Z5.exec(this.input),Q=this.pos+J[0].length;if(V5.test(this.input.slice(this.pos,Q)))return!1;if(Z){var Y=Q+5,z;if(this.input.slice(Q,Y)!=="using"||Y===this.input.length||B8(z=this.input.charCodeAt(Y))||z>55295&&z<56320)return!1;Z5.lastIndex=Y;var X=Z5.exec(this.input);if(X&&V5.test(this.input.slice(Y,Y+X[0].length)))return!1}if(q){var V=Q+2,W;if(this.input.slice(Q,V)==="of"){if(V===this.input.length||!B8(W=this.input.charCodeAt(V))&&!(W>55295&&W<56320))return!1}}var K=this.input.charCodeAt(Q);return m5(K,!0)||K===92};J1.isAwaitUsing=function(Z){return this.isUsingKeyword(!0,Z)};J1.isUsing=function(Z){return this.isUsingKeyword(!1,Z)};J1.parseStatement=function(Z,q,J){var Q=this.type,Y=this.startNode(),z;if(this.isLet(Z))Q=w._var,z="let";switch(Q){case w._break:case w._continue:return this.parseBreakContinueStatement(Y,Q.keyword);case w._debugger:return this.parseDebuggerStatement(Y);case w._do:return this.parseDoStatement(Y);case w._for:return this.parseForStatement(Y);case w._function:if(Z&&(this.strict||Z!=="if"&&Z!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(Y,!1,!Z);case w._class:if(Z)this.unexpected();return this.parseClass(Y,!0);case w._if:return this.parseIfStatement(Y);case w._return:return this.parseReturnStatement(Y);case w._switch:return this.parseSwitchStatement(Y);case w._throw:return this.parseThrowStatement(Y);case w._try:return this.parseTryStatement(Y);case w._const:case w._var:if(z=z||this.value,Z&&z!=="var")this.unexpected();return this.parseVarStatement(Y,z);case w._while:return this.parseWhileStatement(Y);case w._with:return this.parseWithStatement(Y);case w.braceL:return this.parseBlock(!0,Y);case w.semi:return this.parseEmptyStatement(Y);case w._export:case w._import:if(this.options.ecmaVersion>10&&Q===w._import){Z5.lastIndex=this.pos;var X=Z5.exec(this.input),V=this.pos+X[0].length,W=this.input.charCodeAt(V);if(W===40||W===46)return this.parseExpressionStatement(Y,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!q)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return Q===w._import?this.parseImport(Y):this.parseExport(Y,J);default:if(this.isAsyncFunction()){if(Z)this.unexpected();return this.next(),this.parseFunctionStatement(Y,!0,!Z)}var K=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(K){if(q&&this.options.sourceType==="script")this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`");if(K==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.next(),this.parseVar(Y,!1,K),this.semicolon(),this.finishNode(Y,"VariableDeclaration")}var G=this.value,F=this.parseExpression();if(Q===w.name&&F.type==="Identifier"&&this.eat(w.colon))return this.parseLabeledStatement(Y,G,F,Z);else return this.parseExpressionStatement(Y,F)}};J1.parseBreakContinueStatement=function(Z,q){var J=q==="break";if(this.next(),this.eat(w.semi)||this.insertSemicolon())Z.label=null;else if(this.type!==w.name)this.unexpected();else Z.label=this.parseIdent(),this.semicolon();var Q=0;for(;Q<this.labels.length;++Q){var Y=this.labels[Q];if(Z.label==null||Y.name===Z.label.name){if(Y.kind!=null&&(J||Y.kind==="loop"))break;if(Z.label&&J)break}}if(Q===this.labels.length)this.raise(Z.start,"Unsyntactic "+q);return this.finishNode(Z,J?"BreakStatement":"ContinueStatement")};J1.parseDebuggerStatement=function(Z){return this.next(),this.semicolon(),this.finishNode(Z,"DebuggerStatement")};J1.parseDoStatement=function(Z){if(this.next(),this.labels.push(lq),Z.body=this.parseStatement("do"),this.labels.pop(),this.expect(w._while),Z.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(w.semi);else this.semicolon();return this.finishNode(Z,"DoWhileStatement")};J1.parseForStatement=function(Z){this.next();var q=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(lq),this.enterScope(0),this.expect(w.parenL),this.type===w.semi){if(q>-1)this.unexpected(q);return this.parseFor(Z,null)}var J=this.isLet();if(this.type===w._var||this.type===w._const||J){var Q=this.startNode(),Y=J?"let":this.value;return this.next(),this.parseVar(Q,!0,Y),this.finishNode(Q,"VariableDeclaration"),this.parseForAfterInit(Z,Q,q)}var z=this.isContextual("let"),X=!1,V=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(V){var W=this.startNode();if(this.next(),V==="await using")this.next();return this.parseVar(W,!0,V),this.finishNode(W,"VariableDeclaration"),this.parseForAfterInit(Z,W,q)}var K=this.containsEsc,G=new T7,F=this.start,M=q>-1?this.parseExprSubscripts(G,"await"):this.parseExpression(!0,G);if(this.type===w._in||(X=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(q>-1){if(this.type===w._in)this.unexpected(q);Z.await=!0}else if(X&&this.options.ecmaVersion>=8){if(M.start===F&&!K&&M.type==="Identifier"&&M.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)Z.await=!1}if(z&&X)this.raise(M.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(M,!1,G),this.checkLValPattern(M),this.parseForIn(Z,M)}else this.checkExpressionErrors(G,!0);if(q>-1)this.unexpected(q);return this.parseFor(Z,M)};J1.parseForAfterInit=function(Z,q,J){if((this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&q.declarations.length===1){if(this.options.ecmaVersion>=9)if(this.type===w._in){if(J>-1)this.unexpected(J)}else Z.await=J>-1;return this.parseForIn(Z,q)}if(J>-1)this.unexpected(J);return this.parseFor(Z,q)};J1.parseFunctionStatement=function(Z,q,J){return this.next(),this.parseFunction(Z,b0|(J?0:kq),!1,q)};J1.parseIfStatement=function(Z){return this.next(),Z.test=this.parseParenExpression(),Z.consequent=this.parseStatement("if"),Z.alternate=this.eat(w._else)?this.parseStatement("if"):null,this.finishNode(Z,"IfStatement")};J1.parseReturnStatement=function(Z){if(!this.inFunction&&!this.options.allowReturnOutsideFunction)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(w.semi)||this.insertSemicolon())Z.argument=null;else Z.argument=this.parseExpression(),this.semicolon();return this.finishNode(Z,"ReturnStatement")};J1.parseSwitchStatement=function(Z){this.next(),Z.discriminant=this.parseParenExpression(),Z.cases=[],this.expect(w.braceL),this.labels.push(Gw),this.enterScope(0);var q;for(var J=!1;this.type!==w.braceR;)if(this.type===w._case||this.type===w._default){var Q=this.type===w._case;if(q)this.finishNode(q,"SwitchCase");if(Z.cases.push(q=this.startNode()),q.consequent=[],this.next(),Q)q.test=this.parseExpression();else{if(J)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");J=!0,q.test=null}this.expect(w.colon)}else{if(!q)this.unexpected();q.consequent.push(this.parseStatement(null))}if(this.exitScope(),q)this.finishNode(q,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(Z,"SwitchStatement")};J1.parseThrowStatement=function(Z){if(this.next(),V5.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return Z.argument=this.parseExpression(),this.semicolon(),this.finishNode(Z,"ThrowStatement")};var $w=[];J1.parseCatchClauseParam=function(){var Z=this.parseBindingAtom(),q=Z.type==="Identifier";return this.enterScope(q?BV:0),this.checkLValPattern(Z,q?FV:e5),this.expect(w.parenR),Z};J1.parseTryStatement=function(Z){if(this.next(),Z.block=this.parseBlock(),Z.handler=null,this.type===w._catch){var q=this.startNode();if(this.next(),this.eat(w.parenL))q.param=this.parseCatchClauseParam();else{if(this.options.ecmaVersion<10)this.unexpected();q.param=null,this.enterScope(0)}q.body=this.parseBlock(!1),this.exitScope(),Z.handler=this.finishNode(q,"CatchClause")}if(Z.finalizer=this.eat(w._finally)?this.parseBlock():null,!Z.handler&&!Z.finalizer)this.raise(Z.start,"Missing catch or finally clause");return this.finishNode(Z,"TryStatement")};J1.parseVarStatement=function(Z,q,J){return this.next(),this.parseVar(Z,!1,q,J),this.semicolon(),this.finishNode(Z,"VariableDeclaration")};J1.parseWhileStatement=function(Z){return this.next(),Z.test=this.parseParenExpression(),this.labels.push(lq),Z.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(Z,"WhileStatement")};J1.parseWithStatement=function(Z){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),Z.object=this.parseParenExpression(),Z.body=this.parseStatement("with"),this.finishNode(Z,"WithStatement")};J1.parseEmptyStatement=function(Z){return this.next(),this.finishNode(Z,"EmptyStatement")};J1.parseLabeledStatement=function(Z,q,J,Q){for(var Y=0,z=this.labels;Y<z.length;Y+=1){var X=z[Y];if(X.name===q)this.raise(J.start,"Label '"+q+"' is already declared")}var V=this.type.isLoop?"loop":this.type===w._switch?"switch":null;for(var W=this.labels.length-1;W>=0;W--){var K=this.labels[W];if(K.statementStart===Z.start)K.statementStart=this.start,K.kind=V;else break}return this.labels.push({name:q,kind:V,statementStart:this.start}),Z.body=this.parseStatement(Q?Q.indexOf("label")===-1?Q+"label":Q:"label"),this.labels.pop(),Z.label=J,this.finishNode(Z,"LabeledStatement")};J1.parseExpressionStatement=function(Z,q){return Z.expression=q,this.semicolon(),this.finishNode(Z,"ExpressionStatement")};J1.parseBlock=function(Z,q,J){if(Z===void 0)Z=!0;if(q===void 0)q=this.startNode();if(q.body=[],this.expect(w.braceL),Z)this.enterScope(0);while(this.type!==w.braceR){var Q=this.parseStatement(null);q.body.push(Q)}if(J)this.strict=!1;if(this.next(),Z)this.exitScope();return this.finishNode(q,"BlockStatement")};J1.parseFor=function(Z,q){return Z.init=q,this.expect(w.semi),Z.test=this.type===w.semi?null:this.parseExpression(),this.expect(w.semi),Z.update=this.type===w.parenR?null:this.parseExpression(),this.expect(w.parenR),Z.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(Z,"ForStatement")};J1.parseForIn=function(Z,q){var J=this.type===w._in;if(this.next(),q.type==="VariableDeclaration"&&q.declarations[0].init!=null&&(!J||this.options.ecmaVersion<8||this.strict||q.kind!=="var"||q.declarations[0].id.type!=="Identifier"))this.raise(q.start,(J?"for-in":"for-of")+" loop variable declaration may not have an initializer");return Z.left=q,Z.right=J?this.parseExpression():this.parseMaybeAssign(),this.expect(w.parenR),Z.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(Z,J?"ForInStatement":"ForOfStatement")};J1.parseVar=function(Z,q,J,Q){Z.declarations=[],Z.kind=J;for(;;){var Y=this.startNode();if(this.parseVarId(Y,J),this.eat(w.eq))Y.init=this.parseMaybeAssign(q);else if(!Q&&J==="const"&&!(this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!Q&&(J==="using"||J==="await using")&&this.options.ecmaVersion>=17&&this.type!==w._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+J+" declaration");else if(!Q&&Y.id.type!=="Identifier"&&!(q&&(this.type===w._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else Y.init=null;if(Z.declarations.push(this.finishNode(Y,"VariableDeclarator")),!this.eat(w.comma))break}return Z};J1.parseVarId=function(Z,q){Z.id=q==="using"||q==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(Z.id,q==="var"?dq:e5,!1)};var b0=1,kq=2,NV=4;J1.parseFunction=function(Z,q,J,Q,Y){if(this.initFunction(Z),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Q){if(this.type===w.star&&q&kq)this.unexpected();Z.generator=this.eat(w.star)}if(this.options.ecmaVersion>=8)Z.async=!!Q;if(q&b0){if(Z.id=q&NV&&this.type!==w.name?null:this.parseIdent(),Z.id&&!(q&kq))this.checkLValSimple(Z.id,this.strict||Z.generator||Z.async?this.treatFunctionsAsVar?dq:e5:MV)}var z=this.yieldPos,X=this.awaitPos,V=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(uq(Z.async,Z.generator)),!(q&b0))Z.id=this.type===w.name?this.parseIdent():null;return this.parseFunctionParams(Z),this.parseFunctionBody(Z,J,!1,Y),this.yieldPos=z,this.awaitPos=X,this.awaitIdentPos=V,this.finishNode(Z,q&b0?"FunctionDeclaration":"FunctionExpression")};J1.parseFunctionParams=function(Z){this.expect(w.parenL),Z.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};J1.parseClass=function(Z,q){this.next();var J=this.strict;this.strict=!0,this.parseClassId(Z,q),this.parseClassSuper(Z);var Q=this.enterClassBody(),Y=this.startNode(),z=!1;Y.body=[],this.expect(w.braceL);while(this.type!==w.braceR){var X=this.parseClassElement(Z.superClass!==null);if(X){if(Y.body.push(X),X.type==="MethodDefinition"&&X.kind==="constructor"){if(z)this.raiseRecoverable(X.start,"Duplicate constructor in the same class");z=!0}else if(X.key&&X.key.type==="PrivateIdentifier"&&Uw(Q,X))this.raiseRecoverable(X.key.start,"Identifier '#"+X.key.name+"' has already been declared")}}return this.strict=J,this.next(),Z.body=this.finishNode(Y,"ClassBody"),this.exitClassBody(),this.finishNode(Z,q?"ClassDeclaration":"ClassExpression")};J1.parseClassElement=function(Z){if(this.eat(w.semi))return null;var q=this.options.ecmaVersion,J=this.startNode(),Q="",Y=!1,z=!1,X="method",V=!1;if(this.eatContextual("static")){if(q>=13&&this.eat(w.braceL))return this.parseClassStaticBlock(J),J;if(this.isClassElementNameStart()||this.type===w.star)V=!0;else Q="static"}if(J.static=V,!Q&&q>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===w.star)&&!this.canInsertSemicolon())z=!0;else Q="async";if(!Q&&(q>=9||!z)&&this.eat(w.star))Y=!0;if(!Q&&!z&&!Y){var W=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())X=W;else Q=W}if(Q)J.computed=!1,J.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),J.key.name=Q,this.finishNode(J.key,"Identifier");else this.parseClassElementName(J);if(q<13||this.type===w.parenL||X!=="method"||Y||z){var K=!J.static&&O7(J,"constructor"),G=K&&Z;if(K&&X!=="method")this.raise(J.key.start,"Constructor can't have get/set modifier");J.kind=K?"constructor":X,this.parseClassMethod(J,Y,z,G)}else this.parseClassField(J);return J};J1.isClassElementNameStart=function(){return this.type===w.name||this.type===w.privateId||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword};J1.parseClassElementName=function(Z){if(this.type===w.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");Z.computed=!1,Z.key=this.parsePrivateIdent()}else this.parsePropertyName(Z)};J1.parseClassMethod=function(Z,q,J,Q){var Y=Z.key;if(Z.kind==="constructor"){if(q)this.raise(Y.start,"Constructor can't be a generator");if(J)this.raise(Y.start,"Constructor can't be an async method")}else if(Z.static&&O7(Z,"prototype"))this.raise(Y.start,"Classes may not have a static property named prototype");var z=Z.value=this.parseMethod(q,J,Q);if(Z.kind==="get"&&z.params.length!==0)this.raiseRecoverable(z.start,"getter should have no params");if(Z.kind==="set"&&z.params.length!==1)this.raiseRecoverable(z.start,"setter should have exactly one param");if(Z.kind==="set"&&z.params[0].type==="RestElement")this.raiseRecoverable(z.params[0].start,"Setter cannot use rest params");return this.finishNode(Z,"MethodDefinition")};J1.parseClassField=function(Z){if(O7(Z,"constructor"))this.raise(Z.key.start,"Classes can't have a field named 'constructor'");else if(Z.static&&O7(Z,"prototype"))this.raise(Z.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(w.eq))this.enterScope(v0|I7),Z.value=this.parseMaybeAssign(),this.exitScope();else Z.value=null;return this.semicolon(),this.finishNode(Z,"PropertyDefinition")};J1.parseClassStaticBlock=function(Z){Z.body=[];var q=this.labels;this.labels=[],this.enterScope(v8|I7);while(this.type!==w.braceR){var J=this.parseStatement(null);Z.body.push(J)}return this.next(),this.exitScope(),this.labels=q,this.finishNode(Z,"StaticBlock")};J1.parseClassId=function(Z,q){if(this.type===w.name){if(Z.id=this.parseIdent(),q)this.checkLValSimple(Z.id,e5,!1)}else{if(q===!0)this.unexpected();Z.id=null}};J1.parseClassSuper=function(Z){Z.superClass=this.eat(w._extends)?this.parseExprSubscripts(null,!1):null};J1.enterClassBody=function(){var Z={declared:Object.create(null),used:[]};return this.privateNameStack.push(Z),Z.declared};J1.exitClassBody=function(){var Z=this.privateNameStack.pop(),q=Z.declared,J=Z.used;if(!this.options.checkPrivateFields)return;var Q=this.privateNameStack.length,Y=Q===0?null:this.privateNameStack[Q-1];for(var z=0;z<J.length;++z){var X=J[z];if(!T6(q,X.name))if(Y)Y.used.push(X);else this.raiseRecoverable(X.start,"Private field '#"+X.name+"' must be declared in an enclosing class")}};function Uw(Z,q){var J=q.key.name,Q=Z[J],Y="true";if(q.type==="MethodDefinition"&&(q.kind==="get"||q.kind==="set"))Y=(q.static?"s":"i")+q.kind;if(Q==="iget"&&Y==="iset"||Q==="iset"&&Y==="iget"||Q==="sget"&&Y==="sset"||Q==="sset"&&Y==="sget")return Z[J]="true",!1;else if(!Q)return Z[J]=Y,!1;else return!0}function O7(Z,q){var{computed:J,key:Q}=Z;return!J&&(Q.type==="Identifier"&&Q.name===q||Q.type==="Literal"&&Q.value===q)}J1.parseExportAllDeclaration=function(Z,q){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))Z.exported=this.parseModuleExportName(),this.checkExport(q,Z.exported,this.lastTokStart);else Z.exported=null;if(this.expectContextual("from"),this.type!==w.string)this.unexpected();if(Z.source=this.parseExprAtom(),this.options.ecmaVersion>=16)Z.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(Z,"ExportAllDeclaration")};J1.parseExport=function(Z,q){if(this.next(),this.eat(w.star))return this.parseExportAllDeclaration(Z,q);if(this.eat(w._default))return this.checkExport(q,"default",this.lastTokStart),Z.declaration=this.parseExportDefaultDeclaration(),this.finishNode(Z,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(Z.declaration=this.parseExportDeclaration(Z),Z.declaration.type==="VariableDeclaration")this.checkVariableExport(q,Z.declaration.declarations);else this.checkExport(q,Z.declaration.id,Z.declaration.id.start);if(Z.specifiers=[],Z.source=null,this.options.ecmaVersion>=16)Z.attributes=[]}else{if(Z.declaration=null,Z.specifiers=this.parseExportSpecifiers(q),this.eatContextual("from")){if(this.type!==w.string)this.unexpected();if(Z.source=this.parseExprAtom(),this.options.ecmaVersion>=16)Z.attributes=this.parseWithClause()}else{for(var J=0,Q=Z.specifiers;J<Q.length;J+=1){var Y=Q[J];if(this.checkUnreserved(Y.local),this.checkLocalExport(Y.local),Y.local.type==="Literal")this.raise(Y.local.start,"A string literal cannot be used as an exported binding without `from`.")}if(Z.source=null,this.options.ecmaVersion>=16)Z.attributes=[]}this.semicolon()}return this.finishNode(Z,"ExportNamedDeclaration")};J1.parseExportDeclaration=function(Z){return this.parseStatement(null)};J1.parseExportDefaultDeclaration=function(){var Z;if(this.type===w._function||(Z=this.isAsyncFunction())){var q=this.startNode();if(this.next(),Z)this.next();return this.parseFunction(q,b0|NV,!1,Z)}else if(this.type===w._class){var J=this.startNode();return this.parseClass(J,"nullableID")}else{var Q=this.parseMaybeAssign();return this.semicolon(),Q}};J1.checkExport=function(Z,q,J){if(!Z)return;if(typeof q!=="string")q=q.type==="Identifier"?q.name:q.value;if(T6(Z,q))this.raiseRecoverable(J,"Duplicate export '"+q+"'");Z[q]=!0};J1.checkPatternExport=function(Z,q){var J=q.type;if(J==="Identifier")this.checkExport(Z,q,q.start);else if(J==="ObjectPattern")for(var Q=0,Y=q.properties;Q<Y.length;Q+=1){var z=Y[Q];this.checkPatternExport(Z,z)}else if(J==="ArrayPattern")for(var X=0,V=q.elements;X<V.length;X+=1){var W=V[X];if(W)this.checkPatternExport(Z,W)}else if(J==="Property")this.checkPatternExport(Z,q.value);else if(J==="AssignmentPattern")this.checkPatternExport(Z,q.left);else if(J==="RestElement")this.checkPatternExport(Z,q.argument)};J1.checkVariableExport=function(Z,q){if(!Z)return;for(var J=0,Q=q;J<Q.length;J+=1){var Y=Q[J];this.checkPatternExport(Z,Y.id)}};J1.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};J1.parseExportSpecifier=function(Z){var q=this.startNode();return q.local=this.parseModuleExportName(),q.exported=this.eatContextual("as")?this.parseModuleExportName():q.local,this.checkExport(Z,q.exported,q.exported.start),this.finishNode(q,"ExportSpecifier")};J1.parseExportSpecifiers=function(Z){var q=[],J=!0;this.expect(w.braceL);while(!this.eat(w.braceR)){if(!J){if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break}else J=!1;q.push(this.parseExportSpecifier(Z))}return q};J1.parseImport=function(Z){if(this.next(),this.type===w.string)Z.specifiers=$w,Z.source=this.parseExprAtom();else Z.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),Z.source=this.type===w.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)Z.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(Z,"ImportDeclaration")};J1.parseImportSpecifier=function(){var Z=this.startNode();if(Z.imported=this.parseModuleExportName(),this.eatContextual("as"))Z.local=this.parseIdent();else this.checkUnreserved(Z.imported),Z.local=Z.imported;return this.checkLValSimple(Z.local,e5),this.finishNode(Z,"ImportSpecifier")};J1.parseImportDefaultSpecifier=function(){var Z=this.startNode();return Z.local=this.parseIdent(),this.checkLValSimple(Z.local,e5),this.finishNode(Z,"ImportDefaultSpecifier")};J1.parseImportNamespaceSpecifier=function(){var Z=this.startNode();return this.next(),this.expectContextual("as"),Z.local=this.parseIdent(),this.checkLValSimple(Z.local,e5),this.finishNode(Z,"ImportNamespaceSpecifier")};J1.parseImportSpecifiers=function(){var Z=[],q=!0;if(this.type===w.name){if(Z.push(this.parseImportDefaultSpecifier()),!this.eat(w.comma))return Z}if(this.type===w.star)return Z.push(this.parseImportNamespaceSpecifier()),Z;this.expect(w.braceL);while(!this.eat(w.braceR)){if(!q){if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break}else q=!1;Z.push(this.parseImportSpecifier())}return Z};J1.parseWithClause=function(){var Z=[];if(!this.eat(w._with))return Z;this.expect(w.braceL);var q={},J=!0;while(!this.eat(w.braceR)){if(!J){if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break}else J=!1;var Q=this.parseImportAttribute(),Y=Q.key.type==="Identifier"?Q.key.name:Q.key.value;if(T6(q,Y))this.raiseRecoverable(Q.key.start,"Duplicate attribute key '"+Y+"'");q[Y]=!0,Z.push(Q)}return Z};J1.parseImportAttribute=function(){var Z=this.startNode();if(Z.key=this.type===w.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(w.colon),this.type!==w.string)this.unexpected();return Z.value=this.parseExprAtom(),this.finishNode(Z,"ImportAttribute")};J1.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===w.string){var Z=this.parseLiteral(this.value);if(Xw.test(Z.value))this.raise(Z.start,"An export name cannot include a lone surrogate.");return Z}return this.parseIdent(!0)};J1.adaptDirectivePrologue=function(Z){for(var q=0;q<Z.length&&this.isDirectiveCandidate(Z[q]);++q)Z[q].directive=Z[q].expression.raw.slice(1,-1)};J1.isDirectiveCandidate=function(Z){return this.options.ecmaVersion>=5&&Z.type==="ExpressionStatement"&&Z.expression.type==="Literal"&&typeof Z.expression.value==="string"&&(this.input[Z.start]==='"'||this.input[Z.start]==="'")};var I5=c1.prototype;I5.toAssignable=function(Z,q,J){if(this.options.ecmaVersion>=6&&Z)switch(Z.type){case"Identifier":if(this.inAsync&&Z.name==="await")this.raise(Z.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(Z.type="ObjectPattern",J)this.checkPatternErrors(J,!0);for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var z=Y[Q];if(this.toAssignable(z,q),z.type==="RestElement"&&(z.argument.type==="ArrayPattern"||z.argument.type==="ObjectPattern"))this.raise(z.argument.start,"Unexpected token")}break;case"Property":if(Z.kind!=="init")this.raise(Z.key.start,"Object pattern can't contain getter or setter");this.toAssignable(Z.value,q);break;case"ArrayExpression":if(Z.type="ArrayPattern",J)this.checkPatternErrors(J,!0);this.toAssignableList(Z.elements,q);break;case"SpreadElement":if(Z.type="RestElement",this.toAssignable(Z.argument,q),Z.argument.type==="AssignmentPattern")this.raise(Z.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(Z.operator!=="=")this.raise(Z.left.end,"Only '=' operator can be used for specifying default value.");Z.type="AssignmentPattern",delete Z.operator,this.toAssignable(Z.left,q);break;case"ParenthesizedExpression":this.toAssignable(Z.expression,q,J);break;case"ChainExpression":this.raiseRecoverable(Z.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!q)break;default:this.raise(Z.start,"Assigning to rvalue")}else if(J)this.checkPatternErrors(J,!0);return Z};I5.toAssignableList=function(Z,q){var J=Z.length;for(var Q=0;Q<J;Q++){var Y=Z[Q];if(Y)this.toAssignable(Y,q)}if(J){var z=Z[J-1];if(this.options.ecmaVersion===6&&q&&z&&z.type==="RestElement"&&z.argument.type!=="Identifier")this.unexpected(z.argument.start)}return Z};I5.parseSpread=function(Z){var q=this.startNode();return this.next(),q.argument=this.parseMaybeAssign(!1,Z),this.finishNode(q,"SpreadElement")};I5.parseRestBinding=function(){var Z=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==w.name)this.unexpected();return Z.argument=this.parseBindingAtom(),this.finishNode(Z,"RestElement")};I5.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case w.bracketL:var Z=this.startNode();return this.next(),Z.elements=this.parseBindingList(w.bracketR,!0,!0),this.finishNode(Z,"ArrayPattern");case w.braceL:return this.parseObj(!0)}return this.parseIdent()};I5.parseBindingList=function(Z,q,J,Q){var Y=[],z=!0;while(!this.eat(Z)){if(z)z=!1;else this.expect(w.comma);if(q&&this.type===w.comma)Y.push(null);else if(J&&this.afterTrailingComma(Z))break;else if(this.type===w.ellipsis){var X=this.parseRestBinding();if(this.parseBindingListItem(X),Y.push(X),this.type===w.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(Z);break}else Y.push(this.parseAssignableListItem(Q))}return Y};I5.parseAssignableListItem=function(Z){var q=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(q),q};I5.parseBindingListItem=function(Z){return Z};I5.parseMaybeDefault=function(Z,q,J){if(J=J||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(w.eq))return J;var Q=this.startNodeAt(Z,q);return Q.left=J,Q.right=this.parseMaybeAssign(),this.finishNode(Q,"AssignmentPattern")};I5.checkLValSimple=function(Z,q,J){if(q===void 0)q=w7;var Q=q!==w7;switch(Z.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(Z.name))this.raiseRecoverable(Z.start,(Q?"Binding ":"Assigning to ")+Z.name+" in strict mode");if(Q){if(q===e5&&Z.name==="let")this.raiseRecoverable(Z.start,"let is disallowed as a lexically bound name");if(J){if(T6(J,Z.name))this.raiseRecoverable(Z.start,"Argument name clash");J[Z.name]=!0}if(q!==LV)this.declareName(Z.name,q,Z.start)}break;case"ChainExpression":this.raiseRecoverable(Z.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(Q)this.raiseRecoverable(Z.start,"Binding member expression");break;case"ParenthesizedExpression":if(Q)this.raiseRecoverable(Z.start,"Binding parenthesized expression");return this.checkLValSimple(Z.expression,q,J);default:this.raise(Z.start,(Q?"Binding":"Assigning to")+" rvalue")}};I5.checkLValPattern=function(Z,q,J){if(q===void 0)q=w7;switch(Z.type){case"ObjectPattern":for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var z=Y[Q];this.checkLValInnerPattern(z,q,J)}break;case"ArrayPattern":for(var X=0,V=Z.elements;X<V.length;X+=1){var W=V[X];if(W)this.checkLValInnerPattern(W,q,J)}break;default:this.checkLValSimple(Z,q,J)}};I5.checkLValInnerPattern=function(Z,q,J){if(q===void 0)q=w7;switch(Z.type){case"Property":this.checkLValInnerPattern(Z.value,q,J);break;case"AssignmentPattern":this.checkLValPattern(Z.left,q,J);break;case"RestElement":this.checkLValPattern(Z.argument,q,J);break;default:this.checkLValPattern(Z,q,J)}};var S5=function(q,J,Q,Y,z){this.token=q,this.isExpr=!!J,this.preserveSpace=!!Q,this.override=Y,this.generator=!!z},y1={b_stat:new S5("{",!1),b_expr:new S5("{",!0),b_tmpl:new S5("${",!1),p_stat:new S5("(",!1),p_expr:new S5("(",!0),q_tmpl:new S5("`",!0,!0,function(Z){return Z.tryReadTemplateToken()}),f_stat:new S5("function",!1),f_expr:new S5("function",!0),f_expr_gen:new S5("function",!0,!1,null,!0),f_gen:new S5("function",!1,!1,null,!0)},P6=c1.prototype;P6.initialContext=function(){return[y1.b_stat]};P6.curContext=function(){return this.context[this.context.length-1]};P6.braceIsBlock=function(Z){var q=this.curContext();if(q===y1.f_expr||q===y1.f_stat)return!0;if(Z===w.colon&&(q===y1.b_stat||q===y1.b_expr))return!q.isExpr;if(Z===w._return||Z===w.name&&this.exprAllowed)return V5.test(this.input.slice(this.lastTokEnd,this.start));if(Z===w._else||Z===w.semi||Z===w.eof||Z===w.parenR||Z===w.arrow)return!0;if(Z===w.braceL)return q===y1.b_stat;if(Z===w._var||Z===w._const||Z===w.name)return!1;return!this.exprAllowed};P6.inGeneratorContext=function(){for(var Z=this.context.length-1;Z>=1;Z--){var q=this.context[Z];if(q.token==="function")return q.generator}return!1};P6.updateContext=function(Z){var q,J=this.type;if(J.keyword&&Z===w.dot)this.exprAllowed=!1;else if(q=J.updateContext)q.call(this,Z);else this.exprAllowed=J.beforeExpr};P6.overrideContext=function(Z){if(this.curContext()!==Z)this.context[this.context.length-1]=Z};w.parenR.updateContext=w.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var Z=this.context.pop();if(Z===y1.b_stat&&this.curContext().token==="function")Z=this.context.pop();this.exprAllowed=!Z.isExpr};w.braceL.updateContext=function(Z){this.context.push(this.braceIsBlock(Z)?y1.b_stat:y1.b_expr),this.exprAllowed=!0};w.dollarBraceL.updateContext=function(){this.context.push(y1.b_tmpl),this.exprAllowed=!0};w.parenL.updateContext=function(Z){var q=Z===w._if||Z===w._for||Z===w._with||Z===w._while;this.context.push(q?y1.p_stat:y1.p_expr),this.exprAllowed=!0};w.incDec.updateContext=function(){};w._function.updateContext=w._class.updateContext=function(Z){if(Z.beforeExpr&&Z!==w._else&&!(Z===w.semi&&this.curContext()!==y1.p_stat)&&!(Z===w._return&&V5.test(this.input.slice(this.lastTokEnd,this.start)))&&!((Z===w.colon||Z===w.braceL)&&this.curContext()===y1.b_stat))this.context.push(y1.f_expr);else this.context.push(y1.f_stat);this.exprAllowed=!1};w.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};w.backQuote.updateContext=function(){if(this.curContext()===y1.q_tmpl)this.context.pop();else this.context.push(y1.q_tmpl);this.exprAllowed=!1};w.star.updateContext=function(Z){if(Z===w._function){var q=this.context.length-1;if(this.context[q]===y1.f_expr)this.context[q]=y1.f_expr_gen;else this.context[q]=y1.f_gen}this.exprAllowed=!0};w.name.updateContext=function(Z){var q=!1;if(this.options.ecmaVersion>=6&&Z!==w.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())q=!0}this.exprAllowed=q};var W1=c1.prototype;W1.checkPropClash=function(Z,q,J){if(this.options.ecmaVersion>=9&&Z.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(Z.computed||Z.method||Z.shorthand))return;var Q=Z.key,Y;switch(Q.type){case"Identifier":Y=Q.name;break;case"Literal":Y=String(Q.value);break;default:return}var z=Z.kind;if(this.options.ecmaVersion>=6){if(Y==="__proto__"&&z==="init"){if(q.proto)if(J){if(J.doubleProto<0)J.doubleProto=Q.start}else this.raiseRecoverable(Q.start,"Redefinition of __proto__ property");q.proto=!0}return}Y="$"+Y;var X=q[Y];if(X){var V;if(z==="init")V=this.strict&&X.init||X.get||X.set;else V=X.init||X[z];if(V)this.raiseRecoverable(Q.start,"Redefinition of property")}else X=q[Y]={init:!1,get:!1,set:!1};X[z]=!0};W1.parseExpression=function(Z,q){var J=this.start,Q=this.startLoc,Y=this.parseMaybeAssign(Z,q);if(this.type===w.comma){var z=this.startNodeAt(J,Q);z.expressions=[Y];while(this.eat(w.comma))z.expressions.push(this.parseMaybeAssign(Z,q));return this.finishNode(z,"SequenceExpression")}return Y};W1.parseMaybeAssign=function(Z,q,J){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(Z);else this.exprAllowed=!1;var Q=!1,Y=-1,z=-1,X=-1;if(q)Y=q.parenthesizedAssign,z=q.trailingComma,X=q.doubleProto,q.parenthesizedAssign=q.trailingComma=-1;else q=new T7,Q=!0;var V=this.start,W=this.startLoc;if(this.type===w.parenL||this.type===w.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=Z==="await";var K=this.parseMaybeConditional(Z,q);if(J)K=J.call(this,K,V,W);if(this.type.isAssign){var G=this.startNodeAt(V,W);if(G.operator=this.value,this.type===w.eq)K=this.toAssignable(K,!1,q);if(!Q)q.parenthesizedAssign=q.trailingComma=q.doubleProto=-1;if(q.shorthandAssign>=K.start)q.shorthandAssign=-1;if(this.type===w.eq)this.checkLValPattern(K);else this.checkLValSimple(K);if(G.left=K,this.next(),G.right=this.parseMaybeAssign(Z),X>-1)q.doubleProto=X;return this.finishNode(G,"AssignmentExpression")}else if(Q)this.checkExpressionErrors(q,!0);if(Y>-1)q.parenthesizedAssign=Y;if(z>-1)q.trailingComma=z;return K};W1.parseMaybeConditional=function(Z,q){var J=this.start,Q=this.startLoc,Y=this.parseExprOps(Z,q);if(this.checkExpressionErrors(q))return Y;if(this.eat(w.question)){var z=this.startNodeAt(J,Q);return z.test=Y,z.consequent=this.parseMaybeAssign(),this.expect(w.colon),z.alternate=this.parseMaybeAssign(Z),this.finishNode(z,"ConditionalExpression")}return Y};W1.parseExprOps=function(Z,q){var J=this.start,Q=this.startLoc,Y=this.parseMaybeUnary(q,!1,!1,Z);if(this.checkExpressionErrors(q))return Y;return Y.start===J&&Y.type==="ArrowFunctionExpression"?Y:this.parseExprOp(Y,J,Q,-1,Z)};W1.parseExprOp=function(Z,q,J,Q,Y){var z=this.type.binop;if(z!=null&&(!Y||this.type!==w._in)){if(z>Q){var X=this.type===w.logicalOR||this.type===w.logicalAND,V=this.type===w.coalesce;if(V)z=w.logicalAND.binop;var W=this.value;this.next();var K=this.start,G=this.startLoc,F=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,Y),K,G,z,Y),M=this.buildBinary(q,J,Z,F,W,X||V);if(X&&this.type===w.coalesce||V&&(this.type===w.logicalOR||this.type===w.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(M,q,J,Q,Y)}}return Z};W1.buildBinary=function(Z,q,J,Q,Y,z){if(Q.type==="PrivateIdentifier")this.raise(Q.start,"Private identifier can only be left side of binary expression");var X=this.startNodeAt(Z,q);return X.left=J,X.operator=Y,X.right=Q,this.finishNode(X,z?"LogicalExpression":"BinaryExpression")};W1.parseMaybeUnary=function(Z,q,J,Q){var Y=this.start,z=this.startLoc,X;if(this.isContextual("await")&&this.canAwait)X=this.parseAwait(Q),q=!0;else if(this.type.prefix){var V=this.startNode(),W=this.type===w.incDec;if(V.operator=this.value,V.prefix=!0,this.next(),V.argument=this.parseMaybeUnary(null,!0,W,Q),this.checkExpressionErrors(Z,!0),W)this.checkLValSimple(V.argument);else if(this.strict&&V.operator==="delete"&&wV(V.argument))this.raiseRecoverable(V.start,"Deleting local variable in strict mode");else if(V.operator==="delete"&&vq(V.argument))this.raiseRecoverable(V.start,"Private fields can not be deleted");else q=!0;X=this.finishNode(V,W?"UpdateExpression":"UnaryExpression")}else if(!q&&this.type===w.privateId){if((Q||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(X=this.parsePrivateIdent(),this.type!==w._in)this.unexpected()}else{if(X=this.parseExprSubscripts(Z,Q),this.checkExpressionErrors(Z))return X;while(this.type.postfix&&!this.canInsertSemicolon()){var K=this.startNodeAt(Y,z);K.operator=this.value,K.prefix=!1,K.argument=X,this.checkLValSimple(X),this.next(),X=this.finishNode(K,"UpdateExpression")}}if(!J&&this.eat(w.starstar))if(q)this.unexpected(this.lastTokStart);else return this.buildBinary(Y,z,X,this.parseMaybeUnary(null,!1,!1,Q),"**",!1);else return X};function wV(Z){return Z.type==="Identifier"||Z.type==="ParenthesizedExpression"&&wV(Z.expression)}function vq(Z){return Z.type==="MemberExpression"&&Z.property.type==="PrivateIdentifier"||Z.type==="ChainExpression"&&vq(Z.expression)||Z.type==="ParenthesizedExpression"&&vq(Z.expression)}W1.parseExprSubscripts=function(Z,q){var J=this.start,Q=this.startLoc,Y=this.parseExprAtom(Z,q);if(Y.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return Y;var z=this.parseSubscripts(Y,J,Q,!1,q);if(Z&&z.type==="MemberExpression"){if(Z.parenthesizedAssign>=z.start)Z.parenthesizedAssign=-1;if(Z.parenthesizedBind>=z.start)Z.parenthesizedBind=-1;if(Z.trailingComma>=z.start)Z.trailingComma=-1}return z};W1.parseSubscripts=function(Z,q,J,Q,Y){var z=this.options.ecmaVersion>=8&&Z.type==="Identifier"&&Z.name==="async"&&this.lastTokEnd===Z.end&&!this.canInsertSemicolon()&&Z.end-Z.start===5&&this.potentialArrowAt===Z.start,X=!1;while(!0){var V=this.parseSubscript(Z,q,J,Q,z,X,Y);if(V.optional)X=!0;if(V===Z||V.type==="ArrowFunctionExpression"){if(X){var W=this.startNodeAt(q,J);W.expression=V,V=this.finishNode(W,"ChainExpression")}return V}Z=V}};W1.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(w.arrow)};W1.parseSubscriptAsyncArrow=function(Z,q,J,Q){return this.parseArrowExpression(this.startNodeAt(Z,q),J,!0,Q)};W1.parseSubscript=function(Z,q,J,Q,Y,z,X){var V=this.options.ecmaVersion>=11,W=V&&this.eat(w.questionDot);if(Q&&W)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var K=this.eat(w.bracketL);if(K||W&&this.type!==w.parenL&&this.type!==w.backQuote||this.eat(w.dot)){var G=this.startNodeAt(q,J);if(G.object=Z,K)G.property=this.parseExpression(),this.expect(w.bracketR);else if(this.type===w.privateId&&Z.type!=="Super")G.property=this.parsePrivateIdent();else G.property=this.parseIdent(this.options.allowReserved!=="never");if(G.computed=!!K,V)G.optional=W;Z=this.finishNode(G,"MemberExpression")}else if(!Q&&this.eat(w.parenL)){var F=new T7,M=this.yieldPos,B=this.awaitPos,H=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var N=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1,F);if(Y&&!W&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(F,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=M,this.awaitPos=B,this.awaitIdentPos=H,this.parseSubscriptAsyncArrow(q,J,N,X)}this.checkExpressionErrors(F,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=B||this.awaitPos,this.awaitIdentPos=H||this.awaitIdentPos;var C=this.startNodeAt(q,J);if(C.callee=Z,C.arguments=N,V)C.optional=W;Z=this.finishNode(C,"CallExpression")}else if(this.type===w.backQuote){if(W||z)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var A=this.startNodeAt(q,J);A.tag=Z,A.quasi=this.parseTemplate({isTagged:!0}),Z=this.finishNode(A,"TaggedTemplateExpression")}return Z};W1.parseExprAtom=function(Z,q,J){if(this.type===w.slash)this.readRegexp();var Q,Y=this.potentialArrowAt===this.start;switch(this.type){case w._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(Q=this.startNode(),this.next(),this.type===w.parenL&&!this.allowDirectSuper)this.raise(Q.start,"super() call outside constructor of a subclass");if(this.type!==w.dot&&this.type!==w.bracketL&&this.type!==w.parenL)this.unexpected();return this.finishNode(Q,"Super");case w._this:return Q=this.startNode(),this.next(),this.finishNode(Q,"ThisExpression");case w.name:var z=this.start,X=this.startLoc,V=this.containsEsc,W=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!V&&W.name==="async"&&!this.canInsertSemicolon()&&this.eat(w._function))return this.overrideContext(y1.f_expr),this.parseFunction(this.startNodeAt(z,X),0,!1,!0,q);if(Y&&!this.canInsertSemicolon()){if(this.eat(w.arrow))return this.parseArrowExpression(this.startNodeAt(z,X),[W],!1,q);if(this.options.ecmaVersion>=8&&W.name==="async"&&this.type===w.name&&!V&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(W=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(w.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(z,X),[W],!0,q)}}return W;case w.regexp:var K=this.value;return Q=this.parseLiteral(K.value),Q.regex={pattern:K.pattern,flags:K.flags},Q;case w.num:case w.string:return this.parseLiteral(this.value);case w._null:case w._true:case w._false:return Q=this.startNode(),Q.value=this.type===w._null?null:this.type===w._true,Q.raw=this.type.keyword,this.next(),this.finishNode(Q,"Literal");case w.parenL:var G=this.start,F=this.parseParenAndDistinguishExpression(Y,q);if(Z){if(Z.parenthesizedAssign<0&&!this.isSimpleAssignTarget(F))Z.parenthesizedAssign=G;if(Z.parenthesizedBind<0)Z.parenthesizedBind=G}return F;case w.bracketL:return Q=this.startNode(),this.next(),Q.elements=this.parseExprList(w.bracketR,!0,!0,Z),this.finishNode(Q,"ArrayExpression");case w.braceL:return this.overrideContext(y1.b_expr),this.parseObj(!1,Z);case w._function:return Q=this.startNode(),this.next(),this.parseFunction(Q,0);case w._class:return this.parseClass(this.startNode(),!1);case w._new:return this.parseNew();case w.backQuote:return this.parseTemplate();case w._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(J);else return this.unexpected();default:return this.parseExprAtomDefault()}};W1.parseExprAtomDefault=function(){this.unexpected()};W1.parseExprImport=function(Z){var q=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===w.parenL&&!Z)return this.parseDynamicImport(q);else if(this.type===w.dot){var J=this.startNodeAt(q.start,q.loc&&q.loc.start);return J.name="import",q.meta=this.finishNode(J,"Identifier"),this.parseImportMeta(q)}else this.unexpected()};W1.parseDynamicImport=function(Z){if(this.next(),Z.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(w.parenR))if(this.expect(w.comma),!this.afterTrailingComma(w.parenR)){if(Z.options=this.parseMaybeAssign(),!this.eat(w.parenR)){if(this.expect(w.comma),!this.afterTrailingComma(w.parenR))this.unexpected()}}else Z.options=null;else Z.options=null;else if(!this.eat(w.parenR)){var q=this.start;if(this.eat(w.comma)&&this.eat(w.parenR))this.raiseRecoverable(q,"Trailing comma is not allowed in import()");else this.unexpected(q)}return this.finishNode(Z,"ImportExpression")};W1.parseImportMeta=function(Z){this.next();var q=this.containsEsc;if(Z.property=this.parseIdent(!0),Z.property.name!=="meta")this.raiseRecoverable(Z.property.start,"The only valid meta property for import is 'import.meta'");if(q)this.raiseRecoverable(Z.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(Z.start,"Cannot use 'import.meta' outside a module");return this.finishNode(Z,"MetaProperty")};W1.parseLiteral=function(Z){var q=this.startNode();if(q.value=Z,q.raw=this.input.slice(this.start,this.end),q.raw.charCodeAt(q.raw.length-1)===110)q.bigint=q.value!=null?q.value.toString():q.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(q,"Literal")};W1.parseParenExpression=function(){this.expect(w.parenL);var Z=this.parseExpression();return this.expect(w.parenR),Z};W1.shouldParseArrow=function(Z){return!this.canInsertSemicolon()};W1.parseParenAndDistinguishExpression=function(Z,q){var J=this.start,Q=this.startLoc,Y,z=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var X=this.start,V=this.startLoc,W=[],K=!0,G=!1,F=new T7,M=this.yieldPos,B=this.awaitPos,H;this.yieldPos=0,this.awaitPos=0;while(this.type!==w.parenR)if(K?K=!1:this.expect(w.comma),z&&this.afterTrailingComma(w.parenR,!0)){G=!0;break}else if(this.type===w.ellipsis){if(H=this.start,W.push(this.parseParenItem(this.parseRestBinding())),this.type===w.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else W.push(this.parseMaybeAssign(!1,F,this.parseParenItem));var N=this.lastTokEnd,C=this.lastTokEndLoc;if(this.expect(w.parenR),Z&&this.shouldParseArrow(W)&&this.eat(w.arrow))return this.checkPatternErrors(F,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=M,this.awaitPos=B,this.parseParenArrowList(J,Q,W,q);if(!W.length||G)this.unexpected(this.lastTokStart);if(H)this.unexpected(H);if(this.checkExpressionErrors(F,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=B||this.awaitPos,W.length>1)Y=this.startNodeAt(X,V),Y.expressions=W,this.finishNodeAt(Y,"SequenceExpression",N,C);else Y=W[0]}else Y=this.parseParenExpression();if(this.options.preserveParens){var A=this.startNodeAt(J,Q);return A.expression=Y,this.finishNode(A,"ParenthesizedExpression")}else return Y};W1.parseParenItem=function(Z){return Z};W1.parseParenArrowList=function(Z,q,J,Q){return this.parseArrowExpression(this.startNodeAt(Z,q),J,!1,Q)};var jw=[];W1.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var Z=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===w.dot){var q=this.startNodeAt(Z.start,Z.loc&&Z.loc.start);q.name="new",Z.meta=this.finishNode(q,"Identifier"),this.next();var J=this.containsEsc;if(Z.property=this.parseIdent(!0),Z.property.name!=="target")this.raiseRecoverable(Z.property.start,"The only valid meta property for new is 'new.target'");if(J)this.raiseRecoverable(Z.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(Z.start,"'new.target' can only be used in functions and class static block");return this.finishNode(Z,"MetaProperty")}var Q=this.start,Y=this.startLoc;if(Z.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),Q,Y,!0,!1),this.eat(w.parenL))Z.arguments=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1);else Z.arguments=jw;return this.finishNode(Z,"NewExpression")};W1.parseTemplateElement=function(Z){var q=Z.isTagged,J=this.startNode();if(this.type===w.invalidTemplate){if(!q)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");J.value={raw:this.value.replace(/\r\n?/g,`
|
|
74
|
-
`),cooked:null}}else
|
|
75
|
-
`),cooked:this.value};return this.next(),J.tail=this.type===w.backQuote,this.finishNode(J,"TemplateElement")};W1.parseTemplate=function(Z){if(Z===void 0)Z={};var q=Z.isTagged;if(q===void 0)q=!1;var J=this.startNode();this.next(),J.expressions=[];var Q=this.parseTemplateElement({isTagged:q});J.quasis=[Q];while(!Q.tail){if(this.type===w.eof)this.raise(this.pos,"Unterminated template literal");this.expect(w.dollarBraceL),J.expressions.push(this.parseExpression()),this.expect(w.braceR),J.quasis.push(Q=this.parseTemplateElement({isTagged:q}))}return this.next(),this.finishNode(J,"TemplateLiteral")};W1.isAsyncProp=function(Z){return!Z.computed&&Z.key.type==="Identifier"&&Z.key.name==="async"&&(this.type===w.name||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===w.star)&&!V5.test(this.input.slice(this.lastTokEnd,this.start))};W1.parseObj=function(Z,q){var J=this.startNode(),Q=!0,Y={};J.properties=[],this.next();while(!this.eat(w.braceR)){if(!Q){if(this.expect(w.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(w.braceR))break}else Q=!1;var z=this.parseProperty(Z,q);if(!Z)this.checkPropClash(z,Y,q);J.properties.push(z)}return this.finishNode(J,Z?"ObjectPattern":"ObjectExpression")};W1.parseProperty=function(Z,q){var J=this.startNode(),Q,Y,z,X;if(this.options.ecmaVersion>=9&&this.eat(w.ellipsis)){if(Z){if(J.argument=this.parseIdent(!1),this.type===w.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");return this.finishNode(J,"RestElement")}if(J.argument=this.parseMaybeAssign(!1,q),this.type===w.comma&&q&&q.trailingComma<0)q.trailingComma=this.start;return this.finishNode(J,"SpreadElement")}if(this.options.ecmaVersion>=6){if(J.method=!1,J.shorthand=!1,Z||q)z=this.start,X=this.startLoc;if(!Z)Q=this.eat(w.star)}var V=this.containsEsc;if(this.parsePropertyName(J),!Z&&!V&&this.options.ecmaVersion>=8&&!Q&&this.isAsyncProp(J))Y=!0,Q=this.options.ecmaVersion>=9&&this.eat(w.star),this.parsePropertyName(J);else Y=!1;return this.parsePropertyValue(J,Z,Q,Y,z,X,q,V),this.finishNode(J,"Property")};W1.parseGetterSetter=function(Z){var q=Z.key.name;this.parsePropertyName(Z),Z.value=this.parseMethod(!1),Z.kind=q;var J=Z.kind==="get"?0:1;if(Z.value.params.length!==J){var Q=Z.value.start;if(Z.kind==="get")this.raiseRecoverable(Q,"getter should have no params");else this.raiseRecoverable(Q,"setter should have exactly one param")}else if(Z.kind==="set"&&Z.value.params[0].type==="RestElement")this.raiseRecoverable(Z.value.params[0].start,"Setter cannot use rest params")};W1.parsePropertyValue=function(Z,q,J,Q,Y,z,X,V){if((J||Q)&&this.type===w.colon)this.unexpected();if(this.eat(w.colon))Z.value=q?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,X),Z.kind="init";else if(this.options.ecmaVersion>=6&&this.type===w.parenL){if(q)this.unexpected();Z.method=!0,Z.value=this.parseMethod(J,Q),Z.kind="init"}else if(!q&&!V&&this.options.ecmaVersion>=5&&!Z.computed&&Z.key.type==="Identifier"&&(Z.key.name==="get"||Z.key.name==="set")&&(this.type!==w.comma&&this.type!==w.braceR&&this.type!==w.eq)){if(J||Q)this.unexpected();this.parseGetterSetter(Z)}else if(this.options.ecmaVersion>=6&&!Z.computed&&Z.key.type==="Identifier"){if(J||Q)this.unexpected();if(this.checkUnreserved(Z.key),Z.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=Y;if(q)Z.value=this.parseMaybeDefault(Y,z,this.copyNode(Z.key));else if(this.type===w.eq&&X){if(X.shorthandAssign<0)X.shorthandAssign=this.start;Z.value=this.parseMaybeDefault(Y,z,this.copyNode(Z.key))}else Z.value=this.copyNode(Z.key);Z.kind="init",Z.shorthand=!0}else this.unexpected()};W1.parsePropertyName=function(Z){if(this.options.ecmaVersion>=6)if(this.eat(w.bracketL))return Z.computed=!0,Z.key=this.parseMaybeAssign(),this.expect(w.bracketR),Z.key;else Z.computed=!1;return Z.key=this.type===w.num||this.type===w.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};W1.initFunction=function(Z){if(Z.id=null,this.options.ecmaVersion>=6)Z.generator=Z.expression=!1;if(this.options.ecmaVersion>=8)Z.async=!1};W1.parseMethod=function(Z,q,J){var Q=this.startNode(),Y=this.yieldPos,z=this.awaitPos,X=this.awaitIdentPos;if(this.initFunction(Q),this.options.ecmaVersion>=6)Q.generator=Z;if(this.options.ecmaVersion>=8)Q.async=!!q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(uq(q,Q.generator)|I7|(J?HV:0)),this.expect(w.parenL),Q.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Q,!1,!0,!1),this.yieldPos=Y,this.awaitPos=z,this.awaitIdentPos=X,this.finishNode(Q,"FunctionExpression")};W1.parseArrowExpression=function(Z,q,J,Q){var Y=this.yieldPos,z=this.awaitPos,X=this.awaitIdentPos;if(this.enterScope(uq(J,!1)|mq),this.initFunction(Z),this.options.ecmaVersion>=8)Z.async=!!J;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,Z.params=this.toAssignableList(q,!0),this.parseFunctionBody(Z,!0,!1,Q),this.yieldPos=Y,this.awaitPos=z,this.awaitIdentPos=X,this.finishNode(Z,"ArrowFunctionExpression")};W1.parseFunctionBody=function(Z,q,J,Q){var Y=q&&this.type!==w.braceL,z=this.strict,X=!1;if(Y)Z.body=this.parseMaybeAssign(Q),Z.expression=!0,this.checkParams(Z,!1);else{var V=this.options.ecmaVersion>=7&&!this.isSimpleParamList(Z.params);if(!z||V){if(X=this.strictDirective(this.end),X&&V)this.raiseRecoverable(Z.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var W=this.labels;if(this.labels=[],X)this.strict=!0;if(this.checkParams(Z,!z&&!X&&!q&&!J&&this.isSimpleParamList(Z.params)),this.strict&&Z.id)this.checkLValSimple(Z.id,LV);Z.body=this.parseBlock(!1,void 0,X&&!z),Z.expression=!1,this.adaptDirectivePrologue(Z.body.body),this.labels=W}this.exitScope()};W1.isSimpleParamList=function(Z){for(var q=0,J=Z;q<J.length;q+=1){var Q=J[q];if(Q.type!=="Identifier")return!1}return!0};W1.checkParams=function(Z,q){var J=Object.create(null);for(var Q=0,Y=Z.params;Q<Y.length;Q+=1){var z=Y[Q];this.checkLValInnerPattern(z,dq,q?null:J)}};W1.parseExprList=function(Z,q,J,Q){var Y=[],z=!0;while(!this.eat(Z)){if(!z){if(this.expect(w.comma),q&&this.afterTrailingComma(Z))break}else z=!1;var X=void 0;if(J&&this.type===w.comma)X=null;else if(this.type===w.ellipsis){if(X=this.parseSpread(Q),Q&&this.type===w.comma&&Q.trailingComma<0)Q.trailingComma=this.start}else X=this.parseMaybeAssign(!1,Q);Y.push(X)}return Y};W1.checkUnreserved=function(Z){var{start:q,end:J,name:Q}=Z;if(this.inGenerator&&Q==="yield")this.raiseRecoverable(q,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&Q==="await")this.raiseRecoverable(q,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&D7)&&Q==="arguments")this.raiseRecoverable(q,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(Q==="arguments"||Q==="await"))this.raise(q,"Cannot use "+Q+" in class static initialization block");if(this.keywords.test(Q))this.raise(q,"Unexpected keyword '"+Q+"'");if(this.options.ecmaVersion<6&&this.input.slice(q,J).indexOf("\\")!==-1)return;var Y=this.strict?this.reservedWordsStrict:this.reservedWords;if(Y.test(Q)){if(!this.inAsync&&Q==="await")this.raiseRecoverable(q,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(q,"The keyword '"+Q+"' is reserved")}};W1.parseIdent=function(Z){var q=this.parseIdentNode();if(this.next(!!Z),this.finishNode(q,"Identifier"),!Z){if(this.checkUnreserved(q),q.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=q.start}return q};W1.parseIdentNode=function(){var Z=this.startNode();if(this.type===w.name)Z.name=this.value;else if(this.type.keyword){if(Z.name=this.type.keyword,(Z.name==="class"||Z.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop();this.type=w.name}else this.unexpected();return Z};W1.parsePrivateIdent=function(){var Z=this.startNode();if(this.type===w.privateId)Z.name=this.value;else this.unexpected();if(this.next(),this.finishNode(Z,"PrivateIdentifier"),this.options.checkPrivateFields)if(this.privateNameStack.length===0)this.raise(Z.start,"Private field '#"+Z.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(Z);return Z};W1.parseYield=function(Z){if(!this.yieldPos)this.yieldPos=this.start;var q=this.startNode();if(this.next(),this.type===w.semi||this.canInsertSemicolon()||this.type!==w.star&&!this.type.startsExpr)q.delegate=!1,q.argument=null;else q.delegate=this.eat(w.star),q.argument=this.parseMaybeAssign(Z);return this.finishNode(q,"YieldExpression")};W1.parseAwait=function(Z){if(!this.awaitPos)this.awaitPos=this.start;var q=this.startNode();return this.next(),q.argument=this.parseMaybeUnary(null,!0,!1,Z),this.finishNode(q,"AwaitExpression")};var R7=c1.prototype;R7.raise=function(Z,q){var J=UV(this.input,Z);if(q+=" ("+J.line+":"+J.column+")",this.sourceFile)q+=" in "+this.sourceFile;var Q=SyntaxError(q);throw Q.pos=Z,Q.loc=J,Q.raisedAt=this.pos,Q};R7.raiseRecoverable=R7.raise;R7.curPosition=function(){if(this.options.locations)return new x0(this.curLine,this.pos-this.lineStart)};var H8=c1.prototype,Bw=function(q){this.flags=q,this.var=[],this.lexical=[],this.functions=[]};H8.enterScope=function(Z){this.scopeStack.push(new Bw(Z))};H8.exitScope=function(){this.scopeStack.pop()};H8.treatFunctionsAsVarInScope=function(Z){return Z.flags&A6||!this.inModule&&Z.flags&k0};H8.declareName=function(Z,q,J){var Q=!1;if(q===e5){var Y=this.currentScope();if(Q=Y.lexical.indexOf(Z)>-1||Y.functions.indexOf(Z)>-1||Y.var.indexOf(Z)>-1,Y.lexical.push(Z),this.inModule&&Y.flags&k0)delete this.undefinedExports[Z]}else if(q===FV){var z=this.currentScope();z.lexical.push(Z)}else if(q===MV){var X=this.currentScope();if(this.treatFunctionsAsVar)Q=X.lexical.indexOf(Z)>-1;else Q=X.lexical.indexOf(Z)>-1||X.var.indexOf(Z)>-1;X.functions.push(Z)}else for(var V=this.scopeStack.length-1;V>=0;--V){var W=this.scopeStack[V];if(W.lexical.indexOf(Z)>-1&&!(W.flags&BV&&W.lexical[0]===Z)||!this.treatFunctionsAsVarInScope(W)&&W.functions.indexOf(Z)>-1){Q=!0;break}if(W.var.push(Z),this.inModule&&W.flags&k0)delete this.undefinedExports[Z];if(W.flags&D7)break}if(Q)this.raiseRecoverable(J,"Identifier '"+Z+"' has already been declared")};H8.checkLocalExport=function(Z){if(this.scopeStack[0].lexical.indexOf(Z.name)===-1&&this.scopeStack[0].var.indexOf(Z.name)===-1)this.undefinedExports[Z.name]=Z};H8.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};H8.currentVarScope=function(){for(var Z=this.scopeStack.length-1;;Z--){var q=this.scopeStack[Z];if(q.flags&(D7|v0|v8))return q}};H8.currentThisScope=function(){for(var Z=this.scopeStack.length-1;;Z--){var q=this.scopeStack[Z];if(q.flags&(D7|v0|v8)&&!(q.flags&mq))return q}};var A7=function(q,J,Q){if(this.type="",this.start=J,this.end=0,q.options.locations)this.loc=new _7(q,Q);if(q.options.directSourceFile)this.sourceFile=q.options.directSourceFile;if(q.options.ranges)this.range=[J,0]},f0=c1.prototype;f0.startNode=function(){return new A7(this,this.start,this.startLoc)};f0.startNodeAt=function(Z,q){return new A7(this,Z,q)};function OV(Z,q,J,Q){if(Z.type=q,Z.end=J,this.options.locations)Z.loc.end=Q;if(this.options.ranges)Z.range[1]=J;return Z}f0.finishNode=function(Z,q){return OV.call(this,Z,q,this.lastTokEnd,this.lastTokEndLoc)};f0.finishNodeAt=function(Z,q,J,Q){return OV.call(this,Z,q,J,Q)};f0.copyNode=function(Z){var q=new A7(this,Z.start,this.startLoc);for(var J in Z)q[J]=Z[J];return q};var Hw="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",RV="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",CV=RV+" Extended_Pictographic",_V=CV,IV=_V+" EBase EComp EMod EPres ExtPict",DV=IV,Mw=DV,Fw={9:RV,10:CV,11:_V,12:IV,13:DV,14:Mw},Lw="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Nw={9:"",10:"",11:"",12:"",13:"",14:Lw},XV="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",TV="Adlam Adlm 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 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",AV=TV+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",PV=AV+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",SV=PV+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",yV=SV+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",ww=yV+" "+Hw,Ow={9:TV,10:AV,11:PV,12:SV,13:yV,14:ww},EV={};function Rw(Z){var q=EV[Z]={binary:j8(Fw[Z]+" "+XV),binaryOfStrings:j8(Nw[Z]),nonBinary:{General_Category:j8(XV),Script:j8(Ow[Z])}};q.nonBinary.Script_Extensions=q.nonBinary.Script,q.nonBinary.gc=q.nonBinary.General_Category,q.nonBinary.sc=q.nonBinary.Script,q.nonBinary.scx=q.nonBinary.Script_Extensions}for(E0=0,N7=[9,10,11,12,13,14];E0<N7.length;E0+=1)fq=N7[E0],Rw(fq);var fq,E0,N7,q1=c1.prototype,C7=function(q,J){this.parent=q,this.base=J||this};C7.prototype.separatedFrom=function(q){for(var J=this;J;J=J.parent)for(var Q=q;Q;Q=Q.parent)if(J.base===Q.base&&J!==Q)return!0;return!1};C7.prototype.sibling=function(){return new C7(this.parent,this.base)};var d5=function(q){this.parser=q,this.validFlags="gim"+(q.options.ecmaVersion>=6?"uy":"")+(q.options.ecmaVersion>=9?"s":"")+(q.options.ecmaVersion>=13?"d":"")+(q.options.ecmaVersion>=15?"v":""),this.unicodeProperties=EV[q.options.ecmaVersion>=14?14:q.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};d5.prototype.reset=function(q,J,Q){var Y=Q.indexOf("v")!==-1,z=Q.indexOf("u")!==-1;if(this.start=q|0,this.source=J+"",this.flags=Q,Y&&this.parser.options.ecmaVersion>=15)this.switchU=!0,this.switchV=!0,this.switchN=!0;else this.switchU=z&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=z&&this.parser.options.ecmaVersion>=9};d5.prototype.raise=function(q){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+q)};d5.prototype.at=function(q,J){if(J===void 0)J=!1;var Q=this.source,Y=Q.length;if(q>=Y)return-1;var z=Q.charCodeAt(q);if(!(J||this.switchU)||z<=55295||z>=57344||q+1>=Y)return z;var X=Q.charCodeAt(q+1);return X>=56320&&X<=57343?(z<<10)+X-56613888:z};d5.prototype.nextIndex=function(q,J){if(J===void 0)J=!1;var Q=this.source,Y=Q.length;if(q>=Y)return Y;var z=Q.charCodeAt(q),X;if(!(J||this.switchU)||z<=55295||z>=57344||q+1>=Y||(X=Q.charCodeAt(q+1))<56320||X>57343)return q+1;return q+2};d5.prototype.current=function(q){if(q===void 0)q=!1;return this.at(this.pos,q)};d5.prototype.lookahead=function(q){if(q===void 0)q=!1;return this.at(this.nextIndex(this.pos,q),q)};d5.prototype.advance=function(q){if(q===void 0)q=!1;this.pos=this.nextIndex(this.pos,q)};d5.prototype.eat=function(q,J){if(J===void 0)J=!1;if(this.current(J)===q)return this.advance(J),!0;return!1};d5.prototype.eatChars=function(q,J){if(J===void 0)J=!1;var Q=this.pos;for(var Y=0,z=q;Y<z.length;Y+=1){var X=z[Y],V=this.at(Q,J);if(V===-1||V!==X)return!1;Q=this.nextIndex(Q,J)}return this.pos=Q,!0};q1.validateRegExpFlags=function(Z){var{validFlags:q,flags:J}=Z,Q=!1,Y=!1;for(var z=0;z<J.length;z++){var X=J.charAt(z);if(q.indexOf(X)===-1)this.raise(Z.start,"Invalid regular expression flag");if(J.indexOf(X,z+1)>-1)this.raise(Z.start,"Duplicate regular expression flag");if(X==="u")Q=!0;if(X==="v")Y=!0}if(this.options.ecmaVersion>=15&&Q&&Y)this.raise(Z.start,"Invalid regular expression flag")};function Cw(Z){for(var q in Z)return!0;return!1}q1.validateRegExpPattern=function(Z){if(this.regexp_pattern(Z),!Z.switchN&&this.options.ecmaVersion>=9&&Cw(Z.groupNames))Z.switchN=!0,this.regexp_pattern(Z)};q1.regexp_pattern=function(Z){if(Z.pos=0,Z.lastIntValue=0,Z.lastStringValue="",Z.lastAssertionIsQuantifiable=!1,Z.numCapturingParens=0,Z.maxBackReference=0,Z.groupNames=Object.create(null),Z.backReferenceNames.length=0,Z.branchID=null,this.regexp_disjunction(Z),Z.pos!==Z.source.length){if(Z.eat(41))Z.raise("Unmatched ')'");if(Z.eat(93)||Z.eat(125))Z.raise("Lone quantifier brackets")}if(Z.maxBackReference>Z.numCapturingParens)Z.raise("Invalid escape");for(var q=0,J=Z.backReferenceNames;q<J.length;q+=1){var Q=J[q];if(!Z.groupNames[Q])Z.raise("Invalid named capture referenced")}};q1.regexp_disjunction=function(Z){var q=this.options.ecmaVersion>=16;if(q)Z.branchID=new C7(Z.branchID,null);this.regexp_alternative(Z);while(Z.eat(124)){if(q)Z.branchID=Z.branchID.sibling();this.regexp_alternative(Z)}if(q)Z.branchID=Z.branchID.parent;if(this.regexp_eatQuantifier(Z,!0))Z.raise("Nothing to repeat");if(Z.eat(123))Z.raise("Lone quantifier brackets")};q1.regexp_alternative=function(Z){while(Z.pos<Z.source.length&&this.regexp_eatTerm(Z));};q1.regexp_eatTerm=function(Z){if(this.regexp_eatAssertion(Z)){if(Z.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(Z)){if(Z.switchU)Z.raise("Invalid quantifier")}return!0}if(Z.switchU?this.regexp_eatAtom(Z):this.regexp_eatExtendedAtom(Z))return this.regexp_eatQuantifier(Z),!0;return!1};q1.regexp_eatAssertion=function(Z){var q=Z.pos;if(Z.lastAssertionIsQuantifiable=!1,Z.eat(94)||Z.eat(36))return!0;if(Z.eat(92)){if(Z.eat(66)||Z.eat(98))return!0;Z.pos=q}if(Z.eat(40)&&Z.eat(63)){var J=!1;if(this.options.ecmaVersion>=9)J=Z.eat(60);if(Z.eat(61)||Z.eat(33)){if(this.regexp_disjunction(Z),!Z.eat(41))Z.raise("Unterminated group");return Z.lastAssertionIsQuantifiable=!J,!0}}return Z.pos=q,!1};q1.regexp_eatQuantifier=function(Z,q){if(q===void 0)q=!1;if(this.regexp_eatQuantifierPrefix(Z,q))return Z.eat(63),!0;return!1};q1.regexp_eatQuantifierPrefix=function(Z,q){return Z.eat(42)||Z.eat(43)||Z.eat(63)||this.regexp_eatBracedQuantifier(Z,q)};q1.regexp_eatBracedQuantifier=function(Z,q){var J=Z.pos;if(Z.eat(123)){var Q=0,Y=-1;if(this.regexp_eatDecimalDigits(Z)){if(Q=Z.lastIntValue,Z.eat(44)&&this.regexp_eatDecimalDigits(Z))Y=Z.lastIntValue;if(Z.eat(125)){if(Y!==-1&&Y<Q&&!q)Z.raise("numbers out of order in {} quantifier");return!0}}if(Z.switchU&&!q)Z.raise("Incomplete quantifier");Z.pos=J}return!1};q1.regexp_eatAtom=function(Z){return this.regexp_eatPatternCharacters(Z)||Z.eat(46)||this.regexp_eatReverseSolidusAtomEscape(Z)||this.regexp_eatCharacterClass(Z)||this.regexp_eatUncapturingGroup(Z)||this.regexp_eatCapturingGroup(Z)};q1.regexp_eatReverseSolidusAtomEscape=function(Z){var q=Z.pos;if(Z.eat(92)){if(this.regexp_eatAtomEscape(Z))return!0;Z.pos=q}return!1};q1.regexp_eatUncapturingGroup=function(Z){var q=Z.pos;if(Z.eat(40)){if(Z.eat(63)){if(this.options.ecmaVersion>=16){var J=this.regexp_eatModifiers(Z),Q=Z.eat(45);if(J||Q){for(var Y=0;Y<J.length;Y++){var z=J.charAt(Y);if(J.indexOf(z,Y+1)>-1)Z.raise("Duplicate regular expression modifiers")}if(Q){var X=this.regexp_eatModifiers(Z);if(!J&&!X&&Z.current()===58)Z.raise("Invalid regular expression modifiers");for(var V=0;V<X.length;V++){var W=X.charAt(V);if(X.indexOf(W,V+1)>-1||J.indexOf(W)>-1)Z.raise("Duplicate regular expression modifiers")}}}}if(Z.eat(58)){if(this.regexp_disjunction(Z),Z.eat(41))return!0;Z.raise("Unterminated group")}}Z.pos=q}return!1};q1.regexp_eatCapturingGroup=function(Z){if(Z.eat(40)){if(this.options.ecmaVersion>=9)this.regexp_groupSpecifier(Z);else if(Z.current()===63)Z.raise("Invalid group");if(this.regexp_disjunction(Z),Z.eat(41))return Z.numCapturingParens+=1,!0;Z.raise("Unterminated group")}return!1};q1.regexp_eatModifiers=function(Z){var q="",J=0;while((J=Z.current())!==-1&&_w(J))q+=o5(J),Z.advance();return q};function _w(Z){return Z===105||Z===109||Z===115}q1.regexp_eatExtendedAtom=function(Z){return Z.eat(46)||this.regexp_eatReverseSolidusAtomEscape(Z)||this.regexp_eatCharacterClass(Z)||this.regexp_eatUncapturingGroup(Z)||this.regexp_eatCapturingGroup(Z)||this.regexp_eatInvalidBracedQuantifier(Z)||this.regexp_eatExtendedPatternCharacter(Z)};q1.regexp_eatInvalidBracedQuantifier=function(Z){if(this.regexp_eatBracedQuantifier(Z,!0))Z.raise("Nothing to repeat");return!1};q1.regexp_eatSyntaxCharacter=function(Z){var q=Z.current();if(bV(q))return Z.lastIntValue=q,Z.advance(),!0;return!1};function bV(Z){return Z===36||Z>=40&&Z<=43||Z===46||Z===63||Z>=91&&Z<=94||Z>=123&&Z<=125}q1.regexp_eatPatternCharacters=function(Z){var q=Z.pos,J=0;while((J=Z.current())!==-1&&!bV(J))Z.advance();return Z.pos!==q};q1.regexp_eatExtendedPatternCharacter=function(Z){var q=Z.current();if(q!==-1&&q!==36&&!(q>=40&&q<=43)&&q!==46&&q!==63&&q!==91&&q!==94&&q!==124)return Z.advance(),!0;return!1};q1.regexp_groupSpecifier=function(Z){if(Z.eat(63)){if(!this.regexp_eatGroupName(Z))Z.raise("Invalid group");var q=this.options.ecmaVersion>=16,J=Z.groupNames[Z.lastStringValue];if(J)if(q)for(var Q=0,Y=J;Q<Y.length;Q+=1){var z=Y[Q];if(!z.separatedFrom(Z.branchID))Z.raise("Duplicate capture group name")}else Z.raise("Duplicate capture group name");if(q)(J||(Z.groupNames[Z.lastStringValue]=[])).push(Z.branchID);else Z.groupNames[Z.lastStringValue]=!0}};q1.regexp_eatGroupName=function(Z){if(Z.lastStringValue="",Z.eat(60)){if(this.regexp_eatRegExpIdentifierName(Z)&&Z.eat(62))return!0;Z.raise("Invalid capture group name")}return!1};q1.regexp_eatRegExpIdentifierName=function(Z){if(Z.lastStringValue="",this.regexp_eatRegExpIdentifierStart(Z)){Z.lastStringValue+=o5(Z.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(Z))Z.lastStringValue+=o5(Z.lastIntValue);return!0}return!1};q1.regexp_eatRegExpIdentifierStart=function(Z){var q=Z.pos,J=this.options.ecmaVersion>=11,Q=Z.current(J);if(Z.advance(J),Q===92&&this.regexp_eatRegExpUnicodeEscapeSequence(Z,J))Q=Z.lastIntValue;if(Iw(Q))return Z.lastIntValue=Q,!0;return Z.pos=q,!1};function Iw(Z){return m5(Z,!0)||Z===36||Z===95}q1.regexp_eatRegExpIdentifierPart=function(Z){var q=Z.pos,J=this.options.ecmaVersion>=11,Q=Z.current(J);if(Z.advance(J),Q===92&&this.regexp_eatRegExpUnicodeEscapeSequence(Z,J))Q=Z.lastIntValue;if(Dw(Q))return Z.lastIntValue=Q,!0;return Z.pos=q,!1};function Dw(Z){return B8(Z,!0)||Z===36||Z===95||Z===8204||Z===8205}q1.regexp_eatAtomEscape=function(Z){if(this.regexp_eatBackReference(Z)||this.regexp_eatCharacterClassEscape(Z)||this.regexp_eatCharacterEscape(Z)||Z.switchN&&this.regexp_eatKGroupName(Z))return!0;if(Z.switchU){if(Z.current()===99)Z.raise("Invalid unicode escape");Z.raise("Invalid escape")}return!1};q1.regexp_eatBackReference=function(Z){var q=Z.pos;if(this.regexp_eatDecimalEscape(Z)){var J=Z.lastIntValue;if(Z.switchU){if(J>Z.maxBackReference)Z.maxBackReference=J;return!0}if(J<=Z.numCapturingParens)return!0;Z.pos=q}return!1};q1.regexp_eatKGroupName=function(Z){if(Z.eat(107)){if(this.regexp_eatGroupName(Z))return Z.backReferenceNames.push(Z.lastStringValue),!0;Z.raise("Invalid named reference")}return!1};q1.regexp_eatCharacterEscape=function(Z){return this.regexp_eatControlEscape(Z)||this.regexp_eatCControlLetter(Z)||this.regexp_eatZero(Z)||this.regexp_eatHexEscapeSequence(Z)||this.regexp_eatRegExpUnicodeEscapeSequence(Z,!1)||!Z.switchU&&this.regexp_eatLegacyOctalEscapeSequence(Z)||this.regexp_eatIdentityEscape(Z)};q1.regexp_eatCControlLetter=function(Z){var q=Z.pos;if(Z.eat(99)){if(this.regexp_eatControlLetter(Z))return!0;Z.pos=q}return!1};q1.regexp_eatZero=function(Z){if(Z.current()===48&&!P7(Z.lookahead()))return Z.lastIntValue=0,Z.advance(),!0;return!1};q1.regexp_eatControlEscape=function(Z){var q=Z.current();if(q===116)return Z.lastIntValue=9,Z.advance(),!0;if(q===110)return Z.lastIntValue=10,Z.advance(),!0;if(q===118)return Z.lastIntValue=11,Z.advance(),!0;if(q===102)return Z.lastIntValue=12,Z.advance(),!0;if(q===114)return Z.lastIntValue=13,Z.advance(),!0;return!1};q1.regexp_eatControlLetter=function(Z){var q=Z.current();if(xV(q))return Z.lastIntValue=q%32,Z.advance(),!0;return!1};function xV(Z){return Z>=65&&Z<=90||Z>=97&&Z<=122}q1.regexp_eatRegExpUnicodeEscapeSequence=function(Z,q){if(q===void 0)q=!1;var J=Z.pos,Q=q||Z.switchU;if(Z.eat(117)){if(this.regexp_eatFixedHexDigits(Z,4)){var Y=Z.lastIntValue;if(Q&&Y>=55296&&Y<=56319){var z=Z.pos;if(Z.eat(92)&&Z.eat(117)&&this.regexp_eatFixedHexDigits(Z,4)){var X=Z.lastIntValue;if(X>=56320&&X<=57343)return Z.lastIntValue=(Y-55296)*1024+(X-56320)+65536,!0}Z.pos=z,Z.lastIntValue=Y}return!0}if(Q&&Z.eat(123)&&this.regexp_eatHexDigits(Z)&&Z.eat(125)&&Tw(Z.lastIntValue))return!0;if(Q)Z.raise("Invalid unicode escape");Z.pos=J}return!1};function Tw(Z){return Z>=0&&Z<=1114111}q1.regexp_eatIdentityEscape=function(Z){if(Z.switchU){if(this.regexp_eatSyntaxCharacter(Z))return!0;if(Z.eat(47))return Z.lastIntValue=47,!0;return!1}var q=Z.current();if(q!==99&&(!Z.switchN||q!==107))return Z.lastIntValue=q,Z.advance(),!0;return!1};q1.regexp_eatDecimalEscape=function(Z){Z.lastIntValue=0;var q=Z.current();if(q>=49&&q<=57){do Z.lastIntValue=10*Z.lastIntValue+(q-48),Z.advance();while((q=Z.current())>=48&&q<=57);return!0}return!1};var kV=0,t5=1,_5=2;q1.regexp_eatCharacterClassEscape=function(Z){var q=Z.current();if(Aw(q))return Z.lastIntValue=-1,Z.advance(),t5;var J=!1;if(Z.switchU&&this.options.ecmaVersion>=9&&((J=q===80)||q===112)){Z.lastIntValue=-1,Z.advance();var Q;if(Z.eat(123)&&(Q=this.regexp_eatUnicodePropertyValueExpression(Z))&&Z.eat(125)){if(J&&Q===_5)Z.raise("Invalid property name");return Q}Z.raise("Invalid property name")}return kV};function Aw(Z){return Z===100||Z===68||Z===115||Z===83||Z===119||Z===87}q1.regexp_eatUnicodePropertyValueExpression=function(Z){var q=Z.pos;if(this.regexp_eatUnicodePropertyName(Z)&&Z.eat(61)){var J=Z.lastStringValue;if(this.regexp_eatUnicodePropertyValue(Z)){var Q=Z.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(Z,J,Q),t5}}if(Z.pos=q,this.regexp_eatLoneUnicodePropertyNameOrValue(Z)){var Y=Z.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(Z,Y)}return kV};q1.regexp_validateUnicodePropertyNameAndValue=function(Z,q,J){if(!T6(Z.unicodeProperties.nonBinary,q))Z.raise("Invalid property name");if(!Z.unicodeProperties.nonBinary[q].test(J))Z.raise("Invalid property value")};q1.regexp_validateUnicodePropertyNameOrValue=function(Z,q){if(Z.unicodeProperties.binary.test(q))return t5;if(Z.switchV&&Z.unicodeProperties.binaryOfStrings.test(q))return _5;Z.raise("Invalid property name")};q1.regexp_eatUnicodePropertyName=function(Z){var q=0;Z.lastStringValue="";while(vV(q=Z.current()))Z.lastStringValue+=o5(q),Z.advance();return Z.lastStringValue!==""};function vV(Z){return xV(Z)||Z===95}q1.regexp_eatUnicodePropertyValue=function(Z){var q=0;Z.lastStringValue="";while(Pw(q=Z.current()))Z.lastStringValue+=o5(q),Z.advance();return Z.lastStringValue!==""};function Pw(Z){return vV(Z)||P7(Z)}q1.regexp_eatLoneUnicodePropertyNameOrValue=function(Z){return this.regexp_eatUnicodePropertyValue(Z)};q1.regexp_eatCharacterClass=function(Z){if(Z.eat(91)){var q=Z.eat(94),J=this.regexp_classContents(Z);if(!Z.eat(93))Z.raise("Unterminated character class");if(q&&J===_5)Z.raise("Negated character class may contain strings");return!0}return!1};q1.regexp_classContents=function(Z){if(Z.current()===93)return t5;if(Z.switchV)return this.regexp_classSetExpression(Z);return this.regexp_nonEmptyClassRanges(Z),t5};q1.regexp_nonEmptyClassRanges=function(Z){while(this.regexp_eatClassAtom(Z)){var q=Z.lastIntValue;if(Z.eat(45)&&this.regexp_eatClassAtom(Z)){var J=Z.lastIntValue;if(Z.switchU&&(q===-1||J===-1))Z.raise("Invalid character class");if(q!==-1&&J!==-1&&q>J)Z.raise("Range out of order in character class")}}};q1.regexp_eatClassAtom=function(Z){var q=Z.pos;if(Z.eat(92)){if(this.regexp_eatClassEscape(Z))return!0;if(Z.switchU){var J=Z.current();if(J===99||gV(J))Z.raise("Invalid class escape");Z.raise("Invalid escape")}Z.pos=q}var Q=Z.current();if(Q!==93)return Z.lastIntValue=Q,Z.advance(),!0;return!1};q1.regexp_eatClassEscape=function(Z){var q=Z.pos;if(Z.eat(98))return Z.lastIntValue=8,!0;if(Z.switchU&&Z.eat(45))return Z.lastIntValue=45,!0;if(!Z.switchU&&Z.eat(99)){if(this.regexp_eatClassControlLetter(Z))return!0;Z.pos=q}return this.regexp_eatCharacterClassEscape(Z)||this.regexp_eatCharacterEscape(Z)};q1.regexp_classSetExpression=function(Z){var q=t5,J;if(this.regexp_eatClassSetRange(Z));else if(J=this.regexp_eatClassSetOperand(Z)){if(J===_5)q=_5;var Q=Z.pos;while(Z.eatChars([38,38])){if(Z.current()!==38&&(J=this.regexp_eatClassSetOperand(Z))){if(J!==_5)q=t5;continue}Z.raise("Invalid character in character class")}if(Q!==Z.pos)return q;while(Z.eatChars([45,45])){if(this.regexp_eatClassSetOperand(Z))continue;Z.raise("Invalid character in character class")}if(Q!==Z.pos)return q}else Z.raise("Invalid character in character class");for(;;){if(this.regexp_eatClassSetRange(Z))continue;if(J=this.regexp_eatClassSetOperand(Z),!J)return q;if(J===_5)q=_5}};q1.regexp_eatClassSetRange=function(Z){var q=Z.pos;if(this.regexp_eatClassSetCharacter(Z)){var J=Z.lastIntValue;if(Z.eat(45)&&this.regexp_eatClassSetCharacter(Z)){var Q=Z.lastIntValue;if(J!==-1&&Q!==-1&&J>Q)Z.raise("Range out of order in character class");return!0}Z.pos=q}return!1};q1.regexp_eatClassSetOperand=function(Z){if(this.regexp_eatClassSetCharacter(Z))return t5;return this.regexp_eatClassStringDisjunction(Z)||this.regexp_eatNestedClass(Z)};q1.regexp_eatNestedClass=function(Z){var q=Z.pos;if(Z.eat(91)){var J=Z.eat(94),Q=this.regexp_classContents(Z);if(Z.eat(93)){if(J&&Q===_5)Z.raise("Negated character class may contain strings");return Q}Z.pos=q}if(Z.eat(92)){var Y=this.regexp_eatCharacterClassEscape(Z);if(Y)return Y;Z.pos=q}return null};q1.regexp_eatClassStringDisjunction=function(Z){var q=Z.pos;if(Z.eatChars([92,113])){if(Z.eat(123)){var J=this.regexp_classStringDisjunctionContents(Z);if(Z.eat(125))return J}else Z.raise("Invalid escape");Z.pos=q}return null};q1.regexp_classStringDisjunctionContents=function(Z){var q=this.regexp_classString(Z);while(Z.eat(124))if(this.regexp_classString(Z)===_5)q=_5;return q};q1.regexp_classString=function(Z){var q=0;while(this.regexp_eatClassSetCharacter(Z))q++;return q===1?t5:_5};q1.regexp_eatClassSetCharacter=function(Z){var q=Z.pos;if(Z.eat(92)){if(this.regexp_eatCharacterEscape(Z)||this.regexp_eatClassSetReservedPunctuator(Z))return!0;if(Z.eat(98))return Z.lastIntValue=8,!0;return Z.pos=q,!1}var J=Z.current();if(J<0||J===Z.lookahead()&&Sw(J))return!1;if(yw(J))return!1;return Z.advance(),Z.lastIntValue=J,!0};function Sw(Z){return Z===33||Z>=35&&Z<=38||Z>=42&&Z<=44||Z===46||Z>=58&&Z<=64||Z===94||Z===96||Z===126}function yw(Z){return Z===40||Z===41||Z===45||Z===47||Z>=91&&Z<=93||Z>=123&&Z<=125}q1.regexp_eatClassSetReservedPunctuator=function(Z){var q=Z.current();if(Ew(q))return Z.lastIntValue=q,Z.advance(),!0;return!1};function Ew(Z){return Z===33||Z===35||Z===37||Z===38||Z===44||Z===45||Z>=58&&Z<=62||Z===64||Z===96||Z===126}q1.regexp_eatClassControlLetter=function(Z){var q=Z.current();if(P7(q)||q===95)return Z.lastIntValue=q%32,Z.advance(),!0;return!1};q1.regexp_eatHexEscapeSequence=function(Z){var q=Z.pos;if(Z.eat(120)){if(this.regexp_eatFixedHexDigits(Z,2))return!0;if(Z.switchU)Z.raise("Invalid escape");Z.pos=q}return!1};q1.regexp_eatDecimalDigits=function(Z){var q=Z.pos,J=0;Z.lastIntValue=0;while(P7(J=Z.current()))Z.lastIntValue=10*Z.lastIntValue+(J-48),Z.advance();return Z.pos!==q};function P7(Z){return Z>=48&&Z<=57}q1.regexp_eatHexDigits=function(Z){var q=Z.pos,J=0;Z.lastIntValue=0;while(fV(J=Z.current()))Z.lastIntValue=16*Z.lastIntValue+hV(J),Z.advance();return Z.pos!==q};function fV(Z){return Z>=48&&Z<=57||Z>=65&&Z<=70||Z>=97&&Z<=102}function hV(Z){if(Z>=65&&Z<=70)return 10+(Z-65);if(Z>=97&&Z<=102)return 10+(Z-97);return Z-48}q1.regexp_eatLegacyOctalEscapeSequence=function(Z){if(this.regexp_eatOctalDigit(Z)){var q=Z.lastIntValue;if(this.regexp_eatOctalDigit(Z)){var J=Z.lastIntValue;if(q<=3&&this.regexp_eatOctalDigit(Z))Z.lastIntValue=q*64+J*8+Z.lastIntValue;else Z.lastIntValue=q*8+J}else Z.lastIntValue=q;return!0}return!1};q1.regexp_eatOctalDigit=function(Z){var q=Z.current();if(gV(q))return Z.lastIntValue=q-48,Z.advance(),!0;return Z.lastIntValue=0,!1};function gV(Z){return Z>=48&&Z<=55}q1.regexp_eatFixedHexDigits=function(Z,q){var J=Z.pos;Z.lastIntValue=0;for(var Q=0;Q<q;++Q){var Y=Z.current();if(!fV(Y))return Z.pos=J,!1;Z.lastIntValue=16*Z.lastIntValue+hV(Y),Z.advance()}return!0};var cq=function(q){if(this.type=q.type,this.value=q.value,this.start=q.start,this.end=q.end,q.options.locations)this.loc=new _7(q,q.startLoc,q.endLoc);if(q.options.ranges)this.range=[q.start,q.end]},H1=c1.prototype;H1.next=function(Z){if(!Z&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new cq(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};H1.getToken=function(){return this.next(),new cq(this)};if(typeof Symbol<"u")H1[Symbol.iterator]=function(){var Z=this;return{next:function(){var q=Z.getToken();return{done:q.type===w.eof,value:q}}}};H1.nextToken=function(){var Z=this.curContext();if(!Z||!Z.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(w.eof);if(Z.override)return Z.override(this);else this.readToken(this.fullCharCodeAtPos())};H1.readToken=function(Z){if(m5(Z,this.options.ecmaVersion>=6)||Z===92)return this.readWord();return this.getTokenFromCode(Z)};H1.fullCharCodeAtPos=function(){var Z=this.input.charCodeAt(this.pos);if(Z<=55295||Z>=56320)return Z;var q=this.input.charCodeAt(this.pos+1);return q<=56319||q>=57344?Z:(Z<<10)+q-56613888};H1.skipBlockComment=function(){var Z=this.options.onComment&&this.curPosition(),q=this.pos,J=this.input.indexOf("*/",this.pos+=2);if(J===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=J+2,this.options.locations)for(var Q=void 0,Y=q;(Q=KV(this.input,Y,this.pos))>-1;)++this.curLine,Y=this.lineStart=Q;if(this.options.onComment)this.options.onComment(!0,this.input.slice(q+2,J),q,this.pos,Z,this.curPosition())};H1.skipLineComment=function(Z){var q=this.pos,J=this.options.onComment&&this.curPosition(),Q=this.input.charCodeAt(this.pos+=Z);while(this.pos<this.input.length&&!D6(Q))Q=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(q+Z,this.pos),q,this.pos,J,this.curPosition())};H1.skipSpace=function(){Z:while(this.pos<this.input.length){var Z=this.input.charCodeAt(this.pos);switch(Z){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10)++this.pos;case 10:case 8232:case 8233:if(++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 Z}break;default:if(Z>8&&Z<14||Z>=5760&&GV.test(String.fromCharCode(Z)))++this.pos;else break Z}}};H1.finishToken=function(Z,q){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var J=this.type;this.type=Z,this.value=q,this.updateContext(J)};H1.readToken_dot=function(){var Z=this.input.charCodeAt(this.pos+1);if(Z>=48&&Z<=57)return this.readNumber(!0);var q=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&Z===46&&q===46)return this.pos+=3,this.finishToken(w.ellipsis);else return++this.pos,this.finishToken(w.dot)};H1.readToken_slash=function(){var Z=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(Z===61)return this.finishOp(w.assign,2);return this.finishOp(w.slash,1)};H1.readToken_mult_modulo_exp=function(Z){var q=this.input.charCodeAt(this.pos+1),J=1,Q=Z===42?w.star:w.modulo;if(this.options.ecmaVersion>=7&&Z===42&&q===42)++J,Q=w.starstar,q=this.input.charCodeAt(this.pos+2);if(q===61)return this.finishOp(w.assign,J+1);return this.finishOp(Q,J)};H1.readToken_pipe_amp=function(Z){var q=this.input.charCodeAt(this.pos+1);if(q===Z){if(this.options.ecmaVersion>=12){var J=this.input.charCodeAt(this.pos+2);if(J===61)return this.finishOp(w.assign,3)}return this.finishOp(Z===124?w.logicalOR:w.logicalAND,2)}if(q===61)return this.finishOp(w.assign,2);return this.finishOp(Z===124?w.bitwiseOR:w.bitwiseAND,1)};H1.readToken_caret=function(){var Z=this.input.charCodeAt(this.pos+1);if(Z===61)return this.finishOp(w.assign,2);return this.finishOp(w.bitwiseXOR,1)};H1.readToken_plus_min=function(Z){var q=this.input.charCodeAt(this.pos+1);if(q===Z){if(q===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||V5.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(w.incDec,2)}if(q===61)return this.finishOp(w.assign,2);return this.finishOp(w.plusMin,1)};H1.readToken_lt_gt=function(Z){var q=this.input.charCodeAt(this.pos+1),J=1;if(q===Z){if(J=Z===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+J)===61)return this.finishOp(w.assign,J+1);return this.finishOp(w.bitShift,J)}if(q===33&&Z===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45)return this.skipLineComment(4),this.skipSpace(),this.nextToken();if(q===61)J=2;return this.finishOp(w.relational,J)};H1.readToken_eq_excl=function(Z){var q=this.input.charCodeAt(this.pos+1);if(q===61)return this.finishOp(w.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(Z===61&&q===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(w.arrow);return this.finishOp(Z===61?w.eq:w.prefix,1)};H1.readToken_question=function(){var Z=this.options.ecmaVersion;if(Z>=11){var q=this.input.charCodeAt(this.pos+1);if(q===46){var J=this.input.charCodeAt(this.pos+2);if(J<48||J>57)return this.finishOp(w.questionDot,2)}if(q===63){if(Z>=12){var Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(w.assign,3)}return this.finishOp(w.coalesce,2)}}return this.finishOp(w.question,1)};H1.readToken_numberSign=function(){var Z=this.options.ecmaVersion,q=35;if(Z>=13){if(++this.pos,q=this.fullCharCodeAtPos(),m5(q,!0)||q===92)return this.finishToken(w.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+o5(q)+"'")};H1.getTokenFromCode=function(Z){switch(Z){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(w.parenL);case 41:return++this.pos,this.finishToken(w.parenR);case 59:return++this.pos,this.finishToken(w.semi);case 44:return++this.pos,this.finishToken(w.comma);case 91:return++this.pos,this.finishToken(w.bracketL);case 93:return++this.pos,this.finishToken(w.bracketR);case 123:return++this.pos,this.finishToken(w.braceL);case 125:return++this.pos,this.finishToken(w.braceR);case 58:return++this.pos,this.finishToken(w.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(w.backQuote);case 48:var q=this.input.charCodeAt(this.pos+1);if(q===120||q===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(q===111||q===79)return this.readRadixNumber(8);if(q===98||q===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(Z);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(Z);case 124:case 38:return this.readToken_pipe_amp(Z);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(Z);case 60:case 62:return this.readToken_lt_gt(Z);case 61:case 33:return this.readToken_eq_excl(Z);case 63:return this.readToken_question();case 126:return this.finishOp(w.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+o5(Z)+"'")};H1.finishOp=function(Z,q){var J=this.input.slice(this.pos,this.pos+q);return this.pos+=q,this.finishToken(Z,J)};H1.readRegexp=function(){var Z,q,J=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(J,"Unterminated regular expression");var Q=this.input.charAt(this.pos);if(V5.test(Q))this.raise(J,"Unterminated regular expression");if(!Z){if(Q==="[")q=!0;else if(Q==="]"&&q)q=!1;else if(Q==="/"&&!q)break;Z=Q==="\\"}else Z=!1;++this.pos}var Y=this.input.slice(J,this.pos);++this.pos;var z=this.pos,X=this.readWord1();if(this.containsEsc)this.unexpected(z);var V=this.regexpState||(this.regexpState=new d5(this));V.reset(J,Y,X),this.validateRegExpFlags(V),this.validateRegExpPattern(V);var W=null;try{W=new RegExp(Y,X)}catch(K){}return this.finishToken(w.regexp,{pattern:Y,flags:X,value:W})};H1.readInt=function(Z,q,J){var Q=this.options.ecmaVersion>=12&&q===void 0,Y=J&&this.input.charCodeAt(this.pos)===48,z=this.pos,X=0,V=0;for(var W=0,K=q==null?1/0:q;W<K;++W,++this.pos){var G=this.input.charCodeAt(this.pos),F=void 0;if(Q&&G===95){if(Y)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(V===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(W===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");V=G;continue}if(G>=97)F=G-97+10;else if(G>=65)F=G-65+10;else if(G>=48&&G<=57)F=G-48;else F=1/0;if(F>=Z)break;V=G,X=X*Z+F}if(Q&&V===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===z||q!=null&&this.pos-z!==q)return null;return X};function bw(Z,q){if(q)return parseInt(Z,8);return parseFloat(Z.replace(/_/g,""))}function mV(Z){if(typeof BigInt!=="function")return null;return BigInt(Z.replace(/_/g,""))}H1.readRadixNumber=function(Z){var q=this.pos;this.pos+=2;var J=this.readInt(Z);if(J==null)this.raise(this.start+2,"Expected number in radix "+Z);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)J=mV(this.input.slice(q,this.pos)),++this.pos;else if(m5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(w.num,J)};H1.readNumber=function(Z){var q=this.pos;if(!Z&&this.readInt(10,void 0,!0)===null)this.raise(q,"Invalid number");var J=this.pos-q>=2&&this.input.charCodeAt(q)===48;if(J&&this.strict)this.raise(q,"Invalid number");var Q=this.input.charCodeAt(this.pos);if(!J&&!Z&&this.options.ecmaVersion>=11&&Q===110){var Y=mV(this.input.slice(q,this.pos));if(++this.pos,m5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(w.num,Y)}if(J&&/[89]/.test(this.input.slice(q,this.pos)))J=!1;if(Q===46&&!J)++this.pos,this.readInt(10),Q=this.input.charCodeAt(this.pos);if((Q===69||Q===101)&&!J){if(Q=this.input.charCodeAt(++this.pos),Q===43||Q===45)++this.pos;if(this.readInt(10)===null)this.raise(q,"Invalid number")}if(m5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var z=bw(this.input.slice(q,this.pos),J);return this.finishToken(w.num,z)};H1.readCodePoint=function(){var Z=this.input.charCodeAt(this.pos),q;if(Z===123){if(this.options.ecmaVersion<6)this.unexpected();var J=++this.pos;if(q=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,q>1114111)this.invalidStringToken(J,"Code point out of bounds")}else q=this.readHexChar(4);return q};H1.readString=function(Z){var q="",J=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var Q=this.input.charCodeAt(this.pos);if(Q===Z)break;if(Q===92)q+=this.input.slice(J,this.pos),q+=this.readEscapedChar(!1),J=this.pos;else if(Q===8232||Q===8233){if(this.options.ecmaVersion<10)this.raise(this.start,"Unterminated string constant");if(++this.pos,this.options.locations)this.curLine++,this.lineStart=this.pos}else{if(D6(Q))this.raise(this.start,"Unterminated string constant");++this.pos}}return q+=this.input.slice(J,this.pos++),this.finishToken(w.string,q)};var uV={};H1.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(Z){if(Z===uV)this.readInvalidTemplateToken();else throw Z}this.inTemplateElement=!1};H1.invalidStringToken=function(Z,q){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw uV;else this.raise(Z,q)};H1.readTmplToken=function(){var Z="",q=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var J=this.input.charCodeAt(this.pos);if(J===96||J===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===w.template||this.type===w.invalidTemplate))if(J===36)return this.pos+=2,this.finishToken(w.dollarBraceL);else return++this.pos,this.finishToken(w.backQuote);return Z+=this.input.slice(q,this.pos),this.finishToken(w.template,Z)}if(J===92)Z+=this.input.slice(q,this.pos),Z+=this.readEscapedChar(!0),q=this.pos;else if(D6(J)){switch(Z+=this.input.slice(q,this.pos),++this.pos,J){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:Z+=`
|
|
76
|
-
`;break;default:Z+=String.fromCharCode(
|
|
71
|
+
`),null}catch(q){throw console.error("Error reading package.json:",q),q}}import{lstatSync as VR,readFileSync as WR}from"node:fs";import{readFile as KR}from"node:fs/promises";import{basename as $R,dirname as xW,parse as g7,relative as GR,resolve as UJ}from"node:path";import{preprocess as UR}from"svelte/compiler";import{replace as jR,typescript as BR}from"svelte-preprocess";import _6 from"fs";import BV,{posix as k8}from"path";import{fileURLToPath as OO}from"url";import{createRequire as gL}from"module";import{basename as mL,dirname as T3,normalize as uL,relative as dL,resolve as lL,sep as xz}from"path";import*as cL from"fs";var Ez=gL(import.meta.url);function pL(Z){let J=uL(Z);if(J.length>1&&J[J.length-1]===xz)J=J.substring(0,J.length-1);return J}var iL=/[\\/]/g;function kz(Z,J){return Z.replace(iL,J)}var nL=/^[a-z]:[\\/]$/i;function aL(Z){return Z==="/"||nL.test(Z)}function D3(Z,J){let{resolvePaths:q,normalizePath:Q,pathSeparator:Y}=J,X=process.platform==="win32"&&Z.includes("/")||Z.startsWith(".");if(q)Z=lL(Z);if(Q||X)Z=pL(Z);if(Z===".")return"";let z=Z[Z.length-1]!==Y;return kz(z?Z+Y:Z,Y)}function fz(Z,J){return J+Z}function sL(Z,J){return function(q,Q){if(Q.startsWith(Z))return Q.slice(Z.length)+q;else return kz(dL(Z,Q),J.pathSeparator)+J.pathSeparator+q}}function rL(Z){return Z}function oL(Z,J,q){return J+Z+q}function tL(Z,J){let{relativePaths:q,includeBasePath:Q}=J;return q&&Z?sL(Z,J):Q?fz:rL}function eL(Z){return function(J,q){q.push(J.substring(Z.length)||".")}}function Zw(Z){return function(J,q,Q){let Y=J.substring(Z.length)||".";if(Q.every((X)=>X(Y,!0)))q.push(Y)}}var Jw=(Z,J)=>{J.push(Z||".")},qw=(Z,J,q)=>{let Q=Z||".";if(q.every((Y)=>Y(Q,!0)))J.push(Q)},Qw=()=>{};function Yw(Z,J){let{includeDirs:q,filters:Q,relativePaths:Y}=J;if(!q)return Qw;if(Y)return Q&&Q.length?Zw(Z):eL(Z);return Q&&Q.length?qw:Jw}var Xw=(Z,J,q,Q)=>{if(Q.every((Y)=>Y(Z,!1)))q.files++},zw=(Z,J,q,Q)=>{if(Q.every((Y)=>Y(Z,!1)))J.push(Z)},Vw=(Z,J,q,Q)=>{q.files++},Ww=(Z,J)=>{J.push(Z)},Kw=()=>{};function $w(Z){let{excludeFiles:J,filters:q,onlyCounts:Q}=Z;if(J)return Kw;if(q&&q.length)return Q?Xw:zw;else if(Q)return Vw;else return Ww}var Gw=(Z)=>{return Z},Uw=()=>{return[""].slice(0,0)};function jw(Z){return Z.group?Uw:Gw}var Bw=(Z,J,q)=>{Z.push({directory:J,files:q,dir:J})},Mw=()=>{};function Hw(Z){return Z.group?Bw:Mw}var Fw=function(Z,J,q){let{queue:Q,fs:Y,options:{suppressErrors:X}}=J;Q.enqueue(),Y.realpath(Z,(z,V)=>{if(z)return Q.dequeue(X?null:z,J);Y.stat(V,(W,K)=>{if(W)return Q.dequeue(X?null:W,J);if(K.isDirectory()&&vz(Z,V,J))return Q.dequeue(null,J);q(K,V),Q.dequeue(null,J)})})},Lw=function(Z,J,q){let{queue:Q,fs:Y,options:{suppressErrors:X}}=J;Q.enqueue();try{let z=Y.realpathSync(Z),V=Y.statSync(z);if(V.isDirectory()&&vz(Z,z,J))return;q(V,z)}catch(z){if(!X)throw z}};function ww(Z,J){if(!Z.resolveSymlinks||Z.excludeSymlinks)return null;return J?Lw:Fw}function vz(Z,J,q){if(q.options.useRealPaths)return Ow(J,q);let Q=T3(Z),Y=1;while(Q!==q.root&&Y<2){let X=q.symlinks.get(Q);if(!!X&&(X===J||X.startsWith(J)||J.startsWith(X)))Y++;else Q=T3(Q)}return q.symlinks.set(Z,J),Y>1}function Ow(Z,J){return J.visited.includes(Z+J.options.pathSeparator)}var Nw=(Z)=>{return Z.counts},Rw=(Z)=>{return Z.groups},Cw=(Z)=>{return Z.paths},Iw=(Z)=>{return Z.paths.slice(0,Z.options.maxFiles)},_w=(Z,J,q)=>{return L7(J,q,Z.counts,Z.options.suppressErrors),null},Dw=(Z,J,q)=>{return L7(J,q,Z.paths,Z.options.suppressErrors),null},Tw=(Z,J,q)=>{return L7(J,q,Z.paths.slice(0,Z.options.maxFiles),Z.options.suppressErrors),null},Aw=(Z,J,q)=>{return L7(J,q,Z.groups,Z.options.suppressErrors),null};function L7(Z,J,q,Q){if(Z&&!Q)J(Z,q);else J(null,q)}function Pw(Z,J){let{onlyCounts:q,group:Q,maxFiles:Y}=Z;if(q)return J?Nw:_w;else if(Q)return J?Rw:Aw;else if(Y)return J?Iw:Tw;else return J?Cw:Dw}var hz={withFileTypes:!0},Sw=(Z,J,q,Q,Y)=>{if(Z.queue.enqueue(),Q<0)return Z.queue.dequeue(null,Z);let{fs:X}=Z;Z.visited.push(J),Z.counts.directories++,X.readdir(J||".",hz,(z,V=[])=>{Y(V,q,Q),Z.queue.dequeue(Z.options.suppressErrors?null:z,Z)})},yw=(Z,J,q,Q,Y)=>{let{fs:X}=Z;if(Q<0)return;Z.visited.push(J),Z.counts.directories++;let z=[];try{z=X.readdirSync(J||".",hz)}catch(V){if(!Z.options.suppressErrors)throw V}Y(z,q,Q)};function Ew(Z){return Z?yw:Sw}var bw=class{count=0;constructor(Z){this.onQueueEmpty=Z}enqueue(){return this.count++,this.count}dequeue(Z,J){if(this.onQueueEmpty&&(--this.count<=0||Z)){if(this.onQueueEmpty(Z,J),Z)J.controller.abort(),this.onQueueEmpty=void 0}}},xw=class{_files=0;_directories=0;set files(Z){this._files=Z}get files(){return this._files}set directories(Z){this._directories=Z}get directories(){return this._directories}get dirs(){return this._directories}},kw=class{aborted=!1;abort(){this.aborted=!0}},gz=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(Z,J,q){this.isSynchronous=!q,this.callbackInvoker=Pw(J,this.isSynchronous),this.root=D3(Z,J),this.state={root:aL(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new xw,options:J,queue:new bw((Q,Y)=>this.callbackInvoker(Y,Q,q)),symlinks:new Map,visited:[""].slice(0,0),controller:new kw,fs:J.fs||cL},this.joinPath=tL(this.root,J),this.pushDirectory=Yw(this.root,J),this.pushFile=$w(J),this.getArray=jw(J),this.groupFiles=Hw(J),this.resolveSymlink=ww(J,this.isSynchronous),this.walkDirectory=Ew(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(Z,J,q)=>{let{paths:Q,options:{filters:Y,resolveSymlinks:X,excludeSymlinks:z,exclude:V,maxFiles:W,signal:K,useRealPaths:$,pathSeparator:H},controller:M}=this.state;if(M.aborted||K&&K.aborted||W&&Q.length>W)return;let O=this.getArray(this.state.paths);for(let j=0;j<Z.length;++j){let L=Z[j];if(L.isFile()||L.isSymbolicLink()&&!X&&!z){let I=this.joinPath(L.name,J);this.pushFile(I,O,this.state.counts,Y)}else if(L.isDirectory()){let I=oL(L.name,J,this.state.options.pathSeparator);if(V&&V(L.name,I))continue;this.pushDirectory(I,Q,Y),this.walkDirectory(this.state,I,I,q-1,this.walk)}else if(this.resolveSymlink&&L.isSymbolicLink()){let I=fz(L.name,J);this.resolveSymlink(I,this.state,(y,_)=>{if(y.isDirectory()){if(_=D3(_,this.state.options),V&&V(L.name,$?_:I+H))return;this.walkDirectory(this.state,_,$?_:I+H,q-1,this.walk)}else{_=$?_:I;let T=mL(_),g=D3(T3(_),this.state.options);_=this.joinPath(T,g),this.pushFile(_,O,this.state.counts,Y)}})}}this.groupFiles(this.state.groups,J,O)}};function fw(Z,J){return new Promise((q,Q)=>{mz(Z,J,(Y,X)=>{if(Y)return Q(Y);q(X)})})}function mz(Z,J,q){new gz(Z,J,q).start()}function vw(Z,J){return new gz(Z,J).start()}var bz=class{constructor(Z,J){this.root=Z,this.options=J}withPromise(){return fw(this.root,this.options)}withCallback(Z){mz(this.root,this.options,Z)}sync(){return vw(this.root,this.options)}},uz=null;try{Ez.resolve("picomatch"),uz=Ez("picomatch")}catch{}var dz=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:xz,filters:[]};globFunction;constructor(Z){this.options={...this.options,...Z},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(Z){return this.options.pathSeparator=Z,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(Z){return this.options.maxDepth=Z,this}withMaxFiles(Z){return this.options.maxFiles=Z,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:Z=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=Z,this.withFullPaths()}withAbortSignal(Z){return this.options.signal=Z,this}normalize(){return this.options.normalizePath=!0,this}filter(Z){return this.options.filters.push(Z),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(Z){return this.options.exclude=Z,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(Z){return new bz(Z||".",this.options)}withGlobFunction(Z){return this.globFunction=Z,this}crawlWithOptions(Z,J){return this.options={...this.options,...J},new bz(Z||".",this.options)}glob(...Z){if(this.globFunction)return this.globWithOptions(Z);return this.globWithOptions(Z,...[{dot:!0}])}globWithOptions(Z,...J){let q=this.globFunction||uz;if(!q)throw Error("Please specify a glob function to use glob matching.");var Q=this.globCache[Z.join("\x00")];if(!Q)Q=q(Z,...J),this.globCache[Z.join("\x00")]=Q;return this.options.filters.push((Y)=>Q(Y)),this}};var T6=F8(UV(),1),NO=Array.isArray,MV=process.platform==="win32",RO=/^(\/?\.\.)+$/;function CO(Z,J={}){let q=Z.length,Q=Array(q),Y=Array(q),X=!J.noglobstar;for(let z=0;z<q;z++){let V=HV(Z[z]);Q[z]=V;let W=V.length,K=Array(W);for(let $=0;$<W;$++)K[$]=T6.default(V[$],J);Y[z]=K}return(z)=>{let V=z.split("/");if(V[0]===".."&&RO.test(z))return!0;for(let W=0;W<Z.length;W++){let K=Q[W],$=Y[W],H=V.length,M=Math.min(H,K.length),O=0;while(O<M){let j=K[O];if(j.includes("/"))return!0;if(!$[O](V[O]))break;if(X&&j==="**")return!0;O++}if(O===H)return!0}return!1}}var IO=/^[A-Z]:\/$/i,_O=MV?(Z)=>IO.test(Z):(Z)=>Z==="/";function jV(Z,J,q){if(Z===J||J.startsWith(`${Z}/`)){if(q){let Y=_O(Z)?Z.length:Z.length+1;return(X,z)=>X.slice(Y,z?-1:void 0)||"."}let Q=J.slice(Z.length+1);if(Q)return(Y,X)=>{if(Y===".")return Q;let z=`${Q}/${Y}`;return X?z.slice(0,-1):z};return(Y,X)=>X&&Y!=="."?Y.slice(0,-1):Y}if(q)return(Q)=>k8.relative(Z,Q)||".";return(Q)=>k8.relative(Z,`${J}/${Q}`)||"."}function DO(Z,J){if(J.startsWith(`${Z}/`)){let q=J.slice(Z.length+1);return(Q)=>`${q}/${Q}`}return(q)=>{let Q=k8.relative(Z,`${J}/${q}`);if(q.endsWith("/")&&Q!=="")return`${Q}/`;return Q||"."}}var TO={parts:!0};function HV(Z){var J;let q=T6.default.scan(Z,TO);return((J=q.parts)===null||J===void 0?void 0:J.length)?q.parts:[Z]}var AO=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,PO=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,SO=(Z)=>Z.replace(AO,"\\$&"),yO=(Z)=>Z.replace(PO,"\\$&"),EO=MV?yO:SO;function bO(Z,J){if((J===null||J===void 0?void 0:J.caseSensitiveMatch)===!1)return!0;let q=T6.default.scan(Z);return q.isGlob||q.negated}function D6(...Z){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...Z)}var xO=/^(\/?\.\.)+/,kO=/\\(?=[()[\]{}!*+?@|])/g,O7=/\\/g;function f3(Z,J,q,Q,Y){let X=Z;if(Z.endsWith("/"))X=Z.slice(0,-1);if(!X.endsWith("*")&&J)X+="/**";let z=EO(q);if(BV.isAbsolute(X.replace(kO,"")))X=k8.relative(z,X);else X=k8.normalize(X);let V=xO.exec(X),W=HV(X);if(V===null||V===void 0?void 0:V[0]){let $=(V[0].length+1)/3,H=0,M=z.split("/");while(H<$&&W[H+$]===M[M.length+H-$])X=X.slice(0,($-H-1)*3)+X.slice(($-H)*3+W[H+$].length+1)||".",H++;let O=k8.join(q,V[0].slice(H*3));if(!O.startsWith(".")&&Q.root.length>O.length)Q.root=O,Q.depthOffset=-$+H}if(!Y&&Q.depthOffset>=0){var K;(K=Q.commonPath)!==null&&K!==void 0||(Q.commonPath=W);let $=[],H=Math.min(Q.commonPath.length,W.length);for(let M=0;M<H;M++){let O=W[M];if(O==="**"&&!W[M+1]){$.pop();break}if(O!==Q.commonPath[M]||bO(O)||M===W.length-1)break;$.push(O)}Q.depthOffset=$.length,Q.commonPath=$,Q.root=$.length>0?k8.join(q,...$):q}return X}function fO({patterns:Z=["**/*"],ignore:J=[],expandDirectories:q=!0},Q,Y){if(typeof Z==="string")Z=[Z];if(typeof J==="string")J=[J];let X=[],z=[];for(let V of J){if(!V)continue;if(V[0]!=="!"||V[1]==="(")z.push(f3(V,q,Q,Y,!0))}for(let V of Z){if(!V)continue;if(V[0]!=="!"||V[1]==="(")X.push(f3(V,q,Q,Y,!1));else if(V[1]!=="!"||V[2]==="(")z.push(f3(V.slice(1),q,Q,Y,!0))}return{match:X,ignore:z}}function vO(Z,J){for(let q=Z.length-1;q>=0;q--){let Q=Z[q];Z[q]=J(Q)}return Z}function hO(Z){if(!Z)return process.cwd().replace(O7,"/");if(Z instanceof URL)return OO(Z).replace(O7,"/");return BV.resolve(Z).replace(O7,"/")}function gO(Z,J={}){let q=process.env.TINYGLOBBY_DEBUG?{...J,debug:!0}:J,Q=hO(q.cwd);if(q.debug)D6("globbing with:",{patterns:Z,options:q,cwd:Q});if(Array.isArray(Z)&&Z.length===0)return[{sync:()=>[],withPromise:async()=>[]},!1];let Y={root:Q,commonPath:null,depthOffset:0},X=fO({...q,patterns:Z},Q,Y);if(q.debug)D6("internal processing patterns:",X);let z={dot:q.dot,nobrace:q.braceExpansion===!1,nocase:q.caseSensitiveMatch===!1,noextglob:q.extglob===!1,noglobstar:q.globstar===!1,posix:!0},V=T6.default(X.match,{...z,ignore:X.ignore}),W=T6.default(X.ignore,z),K=CO(X.match,z),$=jV(Q,Y.root,q.absolute),H=q.absolute?$:jV(Q,Y.root,!0),M={filters:[q.debug?(L,I)=>{let y=$(L,I),_=V(y);if(_)D6(`matched ${y}`);return _}:(L,I)=>V($(L,I))],exclude:q.debug?(L,I)=>{let y=H(I,!0),_=y!=="."&&!K(y)||W(y);if(_)D6(`skipped ${I}`);else D6(`crawling ${I}`);return _}:(L,I)=>{let y=H(I,!0);return y!=="."&&!K(y)||W(y)},fs:q.fs?{readdir:q.fs.readdir||_6.readdir,readdirSync:q.fs.readdirSync||_6.readdirSync,realpath:q.fs.realpath||_6.realpath,realpathSync:q.fs.realpathSync||_6.realpathSync,stat:q.fs.stat||_6.stat,statSync:q.fs.statSync||_6.statSync}:void 0,pathSeparator:"/",relativePaths:!0,resolveSymlinks:!0,signal:q.signal};if(q.deep!==void 0)M.maxDepth=Math.round(q.deep-Y.depthOffset);if(q.absolute)M.relativePaths=!1,M.resolvePaths=!0,M.includeBasePath=!0;if(q.followSymbolicLinks===!1)M.resolveSymlinks=!1,M.excludeSymlinks=!0;if(q.onlyDirectories)M.excludeFiles=!0,M.includeDirs=!0;else if(q.onlyFiles===!1)M.includeDirs=!0;Y.root=Y.root.replace(O7,"");let O=Y.root;if(q.debug)D6("internal properties:",Y);let j=Q!==O&&!q.absolute&&DO(Q,Y.root);return[new dz(M).crawl(O),j]}function FV(Z,J){if(Z&&(J===null||J===void 0?void 0:J.patterns))throw Error("Cannot pass patterns as both an argument and an option");let q=NO(Z)||typeof Z==="string",Q=q?J:Z,Y=q?Z:Z.patterns,[X,z]=gO(Y,Q);if(!z)return X.sync();return vO(X.sync(),z)}import{lstatSync as SN,readdirSync as yN,readFileSync as EN}from"node:fs";import{dirname as bN,join as $W,resolve as xN}from"node:path";var mO=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],RV=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],uO="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",CV="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",v3={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"},h3="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",dO={5:h3,"5module":h3+" export import",6:h3+" const class extends export import super"},IV=/^in(stanceof)?$/,lO=new RegExp("["+CV+"]"),cO=new RegExp("["+CV+uO+"]");function g3(Z,J){var q=65536;for(var Q=0;Q<J.length;Q+=2){if(q+=J[Q],q>Z)return!1;if(q+=J[Q+1],q>=Z)return!0}return!1}function u5(Z,J){if(Z<65)return Z===36;if(Z<91)return!0;if(Z<97)return Z===95;if(Z<123)return!0;if(Z<=65535)return Z>=170&&lO.test(String.fromCharCode(Z));if(J===!1)return!1;return g3(Z,RV)}function B8(Z,J){if(Z<48)return Z===36;if(Z<58)return!0;if(Z<65)return!1;if(Z<91)return!0;if(Z<97)return Z===95;if(Z<123)return!0;if(Z<=65535)return Z>=170&&cO.test(String.fromCharCode(Z));if(J===!1)return!1;return g3(Z,RV)||g3(Z,mO)}var I1=function(J,q){if(q===void 0)q={};this.label=J,this.keyword=q.keyword,this.beforeExpr=!!q.beforeExpr,this.startsExpr=!!q.startsExpr,this.isLoop=!!q.isLoop,this.isAssign=!!q.isAssign,this.prefix=!!q.prefix,this.postfix=!!q.postfix,this.binop=q.binop||null,this.updateContext=null};function C5(Z,J){return new I1(Z,{beforeExpr:!0,binop:J})}var I5={beforeExpr:!0},W5={startsExpr:!0},c3={};function O1(Z,J){if(J===void 0)J={};return J.keyword=Z,c3[Z]=new I1(Z,J)}var w={num:new I1("num",W5),regexp:new I1("regexp",W5),string:new I1("string",W5),name:new I1("name",W5),privateId:new I1("privateId",W5),eof:new I1("eof"),bracketL:new I1("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new I1("]"),braceL:new I1("{",{beforeExpr:!0,startsExpr:!0}),braceR:new I1("}"),parenL:new I1("(",{beforeExpr:!0,startsExpr:!0}),parenR:new I1(")"),comma:new I1(",",I5),semi:new I1(";",I5),colon:new I1(":",I5),dot:new I1("."),question:new I1("?",I5),questionDot:new I1("?."),arrow:new I1("=>",I5),template:new I1("template"),invalidTemplate:new I1("invalidTemplate"),ellipsis:new I1("...",I5),backQuote:new I1("`",W5),dollarBraceL:new I1("${",{beforeExpr:!0,startsExpr:!0}),eq:new I1("=",{beforeExpr:!0,isAssign:!0}),assign:new I1("_=",{beforeExpr:!0,isAssign:!0}),incDec:new I1("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new I1("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:C5("||",1),logicalAND:C5("&&",2),bitwiseOR:C5("|",3),bitwiseXOR:C5("^",4),bitwiseAND:C5("&",5),equality:C5("==/!=/===/!==",6),relational:C5("</>/<=/>=",7),bitShift:C5("<</>>/>>>",8),plusMin:new I1("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:C5("%",10),star:C5("*",10),slash:C5("/",10),starstar:new I1("**",{beforeExpr:!0}),coalesce:C5("??",1),_break:O1("break"),_case:O1("case",I5),_catch:O1("catch"),_continue:O1("continue"),_debugger:O1("debugger"),_default:O1("default",I5),_do:O1("do",{isLoop:!0,beforeExpr:!0}),_else:O1("else",I5),_finally:O1("finally"),_for:O1("for",{isLoop:!0}),_function:O1("function",W5),_if:O1("if"),_return:O1("return",I5),_switch:O1("switch"),_throw:O1("throw",I5),_try:O1("try"),_var:O1("var"),_const:O1("const"),_while:O1("while",{isLoop:!0}),_with:O1("with"),_new:O1("new",{beforeExpr:!0,startsExpr:!0}),_this:O1("this",W5),_super:O1("super",W5),_class:O1("class",W5),_extends:O1("extends",I5),_export:O1("export"),_import:O1("import",W5),_null:O1("null",W5),_true:O1("true",W5),_false:O1("false",W5),_in:O1("in",{beforeExpr:!0,binop:7}),_instanceof:O1("instanceof",{beforeExpr:!0,binop:7}),_typeof:O1("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:O1("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:O1("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},K5=/\r\n?|\n|\u2028|\u2029/,pO=new RegExp(K5.source,"g");function A6(Z){return Z===10||Z===13||Z===8232||Z===8233}function _V(Z,J,q){if(q===void 0)q=Z.length;for(var Q=J;Q<q;Q++){var Y=Z.charCodeAt(Q);if(A6(Y))return Q<q-1&&Y===13&&Z.charCodeAt(Q+1)===10?Q+2:Q+1}return-1}var DV=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,q5=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,TV=Object.prototype,iO=TV.hasOwnProperty,nO=TV.toString,P6=Object.hasOwn||function(Z,J){return iO.call(Z,J)},LV=Array.isArray||function(Z){return nO.call(Z)==="[object Array]"},wV=Object.create(null);function j8(Z){return wV[Z]||(wV[Z]=new RegExp("^(?:"+Z.replace(/ /g,"|")+")$"))}function t5(Z){if(Z<=65535)return String.fromCharCode(Z);return Z-=65536,String.fromCharCode((Z>>10)+55296,(Z&1023)+56320)}var aO=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,h0=function(J,q){this.line=J,this.column=q};h0.prototype.offset=function(J){return new h0(this.line,this.column+J)};var D7=function(J,q,Q){if(this.start=q,this.end=Q,J.sourceFile!==null)this.source=J.sourceFile};function AV(Z,J){for(var q=1,Q=0;;){var Y=_V(Z,Q,J);if(Y<0)return new h0(q,J-Q);++q,Q=Y}}var m3={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},OV=!1;function sO(Z){var J={};for(var q in m3)J[q]=Z&&P6(Z,q)?Z[q]:m3[q];if(J.ecmaVersion==="latest")J.ecmaVersion=1e8;else if(J.ecmaVersion==null){if(!OV&&typeof console==="object"&&console.warn)OV=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
72
|
+
Defaulting to 2020, but this will stop working in the future.`);J.ecmaVersion=11}else if(J.ecmaVersion>=2015)J.ecmaVersion-=2009;if(J.allowReserved==null)J.allowReserved=J.ecmaVersion<5;if(!Z||Z.allowHashBang==null)J.allowHashBang=J.ecmaVersion>=14;if(LV(J.onToken)){var Q=J.onToken;J.onToken=function(Y){return Q.push(Y)}}if(LV(J.onComment))J.onComment=rO(J,J.onComment);if(J.sourceType==="commonjs"&&J.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return J}function rO(Z,J){return function(q,Q,Y,X,z,V){var W={type:q?"Block":"Line",value:Q,start:Y,end:X};if(Z.locations)W.loc=new D7(this,z,V);if(Z.ranges)W.range=[Y,X];J.push(W)}}var f8=1,v8=2,p3=4,PV=8,i3=16,SV=32,T7=64,yV=128,h8=256,g0=512,EV=1024,A7=f8|v8|h8;function n3(Z,J){return v8|(Z?p3:0)|(J?PV:0)}var R7=0,a3=1,Z8=2,bV=3,xV=4,kV=5,p1=function(J,q,Q){this.options=J=sO(J),this.sourceFile=J.sourceFile,this.keywords=j8(dO[J.ecmaVersion>=6?6:J.sourceType==="module"?"5module":5]);var Y="";if(J.allowReserved!==!0){if(Y=v3[J.ecmaVersion>=6?6:J.ecmaVersion===5?5:3],J.sourceType==="module")Y+=" await"}this.reservedWords=j8(Y);var X=(Y?Y+" ":"")+v3.strict;if(this.reservedWordsStrict=j8(X),this.reservedWordsStrictBind=j8(X+" "+v3.strictBind),this.input=String(q),this.containsEsc=!1,Q)this.pos=Q,this.lineStart=this.input.lastIndexOf(`
|
|
73
|
+
`,Q-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(K5).length;else this.pos=this.lineStart=0,this.curLine=1;if(this.type=w.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=J.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&J.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?v8:f8),this.regexpState=null,this.privateNameStack=[]},D5={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};p1.prototype.parse=function(){var J=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(J)};D5.inFunction.get=function(){return(this.currentVarScope().flags&v8)>0};D5.inGenerator.get=function(){return(this.currentVarScope().flags&PV)>0};D5.inAsync.get=function(){return(this.currentVarScope().flags&p3)>0};D5.canAwait.get=function(){for(var Z=this.scopeStack.length-1;Z>=0;Z--){var J=this.scopeStack[Z],q=J.flags;if(q&(h8|g0))return!1;if(q&v8)return(q&p3)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};D5.allowReturn.get=function(){if(this.inFunction)return!0;if(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&f8)return!0;return!1};D5.allowSuper.get=function(){var Z=this.currentThisScope(),J=Z.flags;return(J&T7)>0||this.options.allowSuperOutsideMethod};D5.allowDirectSuper.get=function(){return(this.currentThisScope().flags&yV)>0};D5.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};D5.allowNewDotTarget.get=function(){for(var Z=this.scopeStack.length-1;Z>=0;Z--){var J=this.scopeStack[Z],q=J.flags;if(q&(h8|g0)||q&v8&&!(q&i3))return!0}return!1};D5.allowUsing.get=function(){var Z=this.currentScope(),J=Z.flags;if(J&EV)return!1;if(!this.inModule&&J&f8)return!1;return!0};D5.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&h8)>0};p1.extend=function(){var J=[],q=arguments.length;while(q--)J[q]=arguments[q];var Q=this;for(var Y=0;Y<J.length;Y++)Q=J[Y](Q);return Q};p1.parse=function(J,q){return new this(q,J).parse()};p1.parseExpressionAt=function(J,q,Q){var Y=new this(Q,J,q);return Y.nextToken(),Y.parseExpression()};p1.tokenizer=function(J,q){return new this(q,J)};Object.defineProperties(p1.prototype,D5);var X5=p1.prototype,oO=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;X5.strictDirective=function(Z){if(this.options.ecmaVersion<5)return!1;for(;;){q5.lastIndex=Z,Z+=q5.exec(this.input)[0].length;var J=oO.exec(this.input.slice(Z));if(!J)return!1;if((J[1]||J[2])==="use strict"){q5.lastIndex=Z+J[0].length;var q=q5.exec(this.input),Q=q.index+q[0].length,Y=this.input.charAt(Q);return Y===";"||Y==="}"||K5.test(q[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(Y)||Y==="!"&&this.input.charAt(Q+1)==="=")}if(Z+=J[0].length,q5.lastIndex=Z,Z+=q5.exec(this.input)[0].length,this.input[Z]===";")Z++}};X5.eat=function(Z){if(this.type===Z)return this.next(),!0;else return!1};X5.isContextual=function(Z){return this.type===w.name&&this.value===Z&&!this.containsEsc};X5.eatContextual=function(Z){if(!this.isContextual(Z))return!1;return this.next(),!0};X5.expectContextual=function(Z){if(!this.eatContextual(Z))this.unexpected()};X5.canInsertSemicolon=function(){return this.type===w.eof||this.type===w.braceR||K5.test(this.input.slice(this.lastTokEnd,this.start))};X5.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};X5.semicolon=function(){if(!this.eat(w.semi)&&!this.insertSemicolon())this.unexpected()};X5.afterTrailingComma=function(Z,J){if(this.type===Z){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!J)this.next();return!0}};X5.expect=function(Z){this.eat(Z)||this.unexpected()};X5.unexpected=function(Z){this.raise(Z!=null?Z:this.start,"Unexpected token")};var P7=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};X5.checkPatternErrors=function(Z,J){if(!Z)return;if(Z.trailingComma>-1)this.raiseRecoverable(Z.trailingComma,"Comma is not permitted after the rest element");var q=J?Z.parenthesizedAssign:Z.parenthesizedBind;if(q>-1)this.raiseRecoverable(q,J?"Assigning to rvalue":"Parenthesized pattern")};X5.checkExpressionErrors=function(Z,J){if(!Z)return!1;var{shorthandAssign:q,doubleProto:Q}=Z;if(!J)return q>=0||Q>=0;if(q>=0)this.raise(q,"Shorthand property assignments are valid only in destructuring patterns");if(Q>=0)this.raiseRecoverable(Q,"Redefinition of __proto__ property")};X5.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos))this.raise(this.yieldPos,"Yield expression cannot be a default value");if(this.awaitPos)this.raise(this.awaitPos,"Await expression cannot be a default value")};X5.isSimpleAssignTarget=function(Z){if(Z.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(Z.expression);return Z.type==="Identifier"||Z.type==="MemberExpression"};var q1=p1.prototype;q1.parseTopLevel=function(Z){var J=Object.create(null);if(!Z.body)Z.body=[];while(this.type!==w.eof){var q=this.parseStatement(null,!0,J);Z.body.push(q)}if(this.inModule)for(var Q=0,Y=Object.keys(this.undefinedExports);Q<Y.length;Q+=1){var X=Y[Q];this.raiseRecoverable(this.undefinedExports[X].start,"Export '"+X+"' is not defined")}return this.adaptDirectivePrologue(Z.body),this.next(),Z.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(Z,"Program")};var s3={kind:"loop"},tO={kind:"switch"};q1.isLet=function(Z){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;q5.lastIndex=this.pos;var J=q5.exec(this.input),q=this.pos+J[0].length,Q=this.fullCharCodeAt(q);if(Q===91||Q===92)return!0;if(Z)return!1;if(Q===123)return!0;if(u5(Q)){var Y=q;do q+=Q<=65535?1:2;while(B8(Q=this.fullCharCodeAt(q)));if(Q===92)return!0;var X=this.input.slice(Y,q);if(!IV.test(X))return!0}return!1};q1.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;q5.lastIndex=this.pos;var Z=q5.exec(this.input),J=this.pos+Z[0].length,q;return!K5.test(this.input.slice(this.pos,J))&&this.input.slice(J,J+8)==="function"&&(J+8===this.input.length||!(B8(q=this.fullCharCodeAt(J+8))||q===92))};q1.isUsingKeyword=function(Z,J){if(this.options.ecmaVersion<17||!this.isContextual(Z?"await":"using"))return!1;q5.lastIndex=this.pos;var q=q5.exec(this.input),Q=this.pos+q[0].length;if(K5.test(this.input.slice(this.pos,Q)))return!1;if(Z){var Y=Q+5,X;if(this.input.slice(Q,Y)!=="using"||Y===this.input.length||B8(X=this.fullCharCodeAt(Y))||X===92)return!1;q5.lastIndex=Y;var z=q5.exec(this.input);if(Q=Y+z[0].length,z&&K5.test(this.input.slice(Y,Q)))return!1}var V=this.fullCharCodeAt(Q);if(!u5(V)&&V!==92)return!1;var W=Q;do Q+=V<=65535?1:2;while(B8(V=this.fullCharCodeAt(Q)));if(V===92)return!0;var K=this.input.slice(W,Q);if(IV.test(K)||J&&K==="of")return!1;return!0};q1.isAwaitUsing=function(Z){return this.isUsingKeyword(!0,Z)};q1.isUsing=function(Z){return this.isUsingKeyword(!1,Z)};q1.parseStatement=function(Z,J,q){var Q=this.type,Y=this.startNode(),X;if(this.isLet(Z))Q=w._var,X="let";switch(Q){case w._break:case w._continue:return this.parseBreakContinueStatement(Y,Q.keyword);case w._debugger:return this.parseDebuggerStatement(Y);case w._do:return this.parseDoStatement(Y);case w._for:return this.parseForStatement(Y);case w._function:if(Z&&(this.strict||Z!=="if"&&Z!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(Y,!1,!Z);case w._class:if(Z)this.unexpected();return this.parseClass(Y,!0);case w._if:return this.parseIfStatement(Y);case w._return:return this.parseReturnStatement(Y);case w._switch:return this.parseSwitchStatement(Y);case w._throw:return this.parseThrowStatement(Y);case w._try:return this.parseTryStatement(Y);case w._const:case w._var:if(X=X||this.value,Z&&X!=="var")this.unexpected();return this.parseVarStatement(Y,X);case w._while:return this.parseWhileStatement(Y);case w._with:return this.parseWithStatement(Y);case w.braceL:return this.parseBlock(!0,Y);case w.semi:return this.parseEmptyStatement(Y);case w._export:case w._import:if(this.options.ecmaVersion>10&&Q===w._import){q5.lastIndex=this.pos;var z=q5.exec(this.input),V=this.pos+z[0].length,W=this.input.charCodeAt(V);if(W===40||W===46)return this.parseExpressionStatement(Y,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!J)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return Q===w._import?this.parseImport(Y):this.parseExport(Y,q);default:if(this.isAsyncFunction()){if(Z)this.unexpected();return this.next(),this.parseFunctionStatement(Y,!0,!Z)}var K=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(K){if(!this.allowUsing)this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement");if(K==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.next(),this.parseVar(Y,!1,K),this.semicolon(),this.finishNode(Y,"VariableDeclaration")}var $=this.value,H=this.parseExpression();if(Q===w.name&&H.type==="Identifier"&&this.eat(w.colon))return this.parseLabeledStatement(Y,$,H,Z);else return this.parseExpressionStatement(Y,H)}};q1.parseBreakContinueStatement=function(Z,J){var q=J==="break";if(this.next(),this.eat(w.semi)||this.insertSemicolon())Z.label=null;else if(this.type!==w.name)this.unexpected();else Z.label=this.parseIdent(),this.semicolon();var Q=0;for(;Q<this.labels.length;++Q){var Y=this.labels[Q];if(Z.label==null||Y.name===Z.label.name){if(Y.kind!=null&&(q||Y.kind==="loop"))break;if(Z.label&&q)break}}if(Q===this.labels.length)this.raise(Z.start,"Unsyntactic "+J);return this.finishNode(Z,q?"BreakStatement":"ContinueStatement")};q1.parseDebuggerStatement=function(Z){return this.next(),this.semicolon(),this.finishNode(Z,"DebuggerStatement")};q1.parseDoStatement=function(Z){if(this.next(),this.labels.push(s3),Z.body=this.parseStatement("do"),this.labels.pop(),this.expect(w._while),Z.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(w.semi);else this.semicolon();return this.finishNode(Z,"DoWhileStatement")};q1.parseForStatement=function(Z){this.next();var J=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(s3),this.enterScope(0),this.expect(w.parenL),this.type===w.semi){if(J>-1)this.unexpected(J);return this.parseFor(Z,null)}var q=this.isLet();if(this.type===w._var||this.type===w._const||q){var Q=this.startNode(),Y=q?"let":this.value;return this.next(),this.parseVar(Q,!0,Y),this.finishNode(Q,"VariableDeclaration"),this.parseForAfterInit(Z,Q,J)}var X=this.isContextual("let"),z=!1,V=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(V){var W=this.startNode();if(this.next(),V==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.parseVar(W,!0,V),this.finishNode(W,"VariableDeclaration"),this.parseForAfterInit(Z,W,J)}var K=this.containsEsc,$=new P7,H=this.start,M=J>-1?this.parseExprSubscripts($,"await"):this.parseExpression(!0,$);if(this.type===w._in||(z=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(J>-1){if(this.type===w._in)this.unexpected(J);Z.await=!0}else if(z&&this.options.ecmaVersion>=8){if(M.start===H&&!K&&M.type==="Identifier"&&M.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)Z.await=!1}if(X&&z)this.raise(M.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(M,!1,$),this.checkLValPattern(M),this.parseForIn(Z,M)}else this.checkExpressionErrors($,!0);if(J>-1)this.unexpected(J);return this.parseFor(Z,M)};q1.parseForAfterInit=function(Z,J,q){if((this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&J.declarations.length===1){if(this.options.ecmaVersion>=9)if(this.type===w._in){if(q>-1)this.unexpected(q)}else Z.await=q>-1;return this.parseForIn(Z,J)}if(q>-1)this.unexpected(q);return this.parseFor(Z,J)};q1.parseFunctionStatement=function(Z,J,q){return this.next(),this.parseFunction(Z,v0|(q?0:u3),!1,J)};q1.parseIfStatement=function(Z){return this.next(),Z.test=this.parseParenExpression(),Z.consequent=this.parseStatement("if"),Z.alternate=this.eat(w._else)?this.parseStatement("if"):null,this.finishNode(Z,"IfStatement")};q1.parseReturnStatement=function(Z){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(w.semi)||this.insertSemicolon())Z.argument=null;else Z.argument=this.parseExpression(),this.semicolon();return this.finishNode(Z,"ReturnStatement")};q1.parseSwitchStatement=function(Z){this.next(),Z.discriminant=this.parseParenExpression(),Z.cases=[],this.expect(w.braceL),this.labels.push(tO),this.enterScope(EV);var J;for(var q=!1;this.type!==w.braceR;)if(this.type===w._case||this.type===w._default){var Q=this.type===w._case;if(J)this.finishNode(J,"SwitchCase");if(Z.cases.push(J=this.startNode()),J.consequent=[],this.next(),Q)J.test=this.parseExpression();else{if(q)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");q=!0,J.test=null}this.expect(w.colon)}else{if(!J)this.unexpected();J.consequent.push(this.parseStatement(null))}if(this.exitScope(),J)this.finishNode(J,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(Z,"SwitchStatement")};q1.parseThrowStatement=function(Z){if(this.next(),K5.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return Z.argument=this.parseExpression(),this.semicolon(),this.finishNode(Z,"ThrowStatement")};var eO=[];q1.parseCatchClauseParam=function(){var Z=this.parseBindingAtom(),J=Z.type==="Identifier";return this.enterScope(J?SV:0),this.checkLValPattern(Z,J?xV:Z8),this.expect(w.parenR),Z};q1.parseTryStatement=function(Z){if(this.next(),Z.block=this.parseBlock(),Z.handler=null,this.type===w._catch){var J=this.startNode();if(this.next(),this.eat(w.parenL))J.param=this.parseCatchClauseParam();else{if(this.options.ecmaVersion<10)this.unexpected();J.param=null,this.enterScope(0)}J.body=this.parseBlock(!1),this.exitScope(),Z.handler=this.finishNode(J,"CatchClause")}if(Z.finalizer=this.eat(w._finally)?this.parseBlock():null,!Z.handler&&!Z.finalizer)this.raise(Z.start,"Missing catch or finally clause");return this.finishNode(Z,"TryStatement")};q1.parseVarStatement=function(Z,J,q){return this.next(),this.parseVar(Z,!1,J,q),this.semicolon(),this.finishNode(Z,"VariableDeclaration")};q1.parseWhileStatement=function(Z){return this.next(),Z.test=this.parseParenExpression(),this.labels.push(s3),Z.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(Z,"WhileStatement")};q1.parseWithStatement=function(Z){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),Z.object=this.parseParenExpression(),Z.body=this.parseStatement("with"),this.finishNode(Z,"WithStatement")};q1.parseEmptyStatement=function(Z){return this.next(),this.finishNode(Z,"EmptyStatement")};q1.parseLabeledStatement=function(Z,J,q,Q){for(var Y=0,X=this.labels;Y<X.length;Y+=1){var z=X[Y];if(z.name===J)this.raise(q.start,"Label '"+J+"' is already declared")}var V=this.type.isLoop?"loop":this.type===w._switch?"switch":null;for(var W=this.labels.length-1;W>=0;W--){var K=this.labels[W];if(K.statementStart===Z.start)K.statementStart=this.start,K.kind=V;else break}return this.labels.push({name:J,kind:V,statementStart:this.start}),Z.body=this.parseStatement(Q?Q.indexOf("label")===-1?Q+"label":Q:"label"),this.labels.pop(),Z.label=q,this.finishNode(Z,"LabeledStatement")};q1.parseExpressionStatement=function(Z,J){return Z.expression=J,this.semicolon(),this.finishNode(Z,"ExpressionStatement")};q1.parseBlock=function(Z,J,q){if(Z===void 0)Z=!0;if(J===void 0)J=this.startNode();if(J.body=[],this.expect(w.braceL),Z)this.enterScope(0);while(this.type!==w.braceR){var Q=this.parseStatement(null);J.body.push(Q)}if(q)this.strict=!1;if(this.next(),Z)this.exitScope();return this.finishNode(J,"BlockStatement")};q1.parseFor=function(Z,J){return Z.init=J,this.expect(w.semi),Z.test=this.type===w.semi?null:this.parseExpression(),this.expect(w.semi),Z.update=this.type===w.parenR?null:this.parseExpression(),this.expect(w.parenR),Z.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(Z,"ForStatement")};q1.parseForIn=function(Z,J){var q=this.type===w._in;if(this.next(),J.type==="VariableDeclaration"&&J.declarations[0].init!=null&&(!q||this.options.ecmaVersion<8||this.strict||J.kind!=="var"||J.declarations[0].id.type!=="Identifier"))this.raise(J.start,(q?"for-in":"for-of")+" loop variable declaration may not have an initializer");return Z.left=J,Z.right=q?this.parseExpression():this.parseMaybeAssign(),this.expect(w.parenR),Z.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(Z,q?"ForInStatement":"ForOfStatement")};q1.parseVar=function(Z,J,q,Q){Z.declarations=[],Z.kind=q;for(;;){var Y=this.startNode();if(this.parseVarId(Y,q),this.eat(w.eq))Y.init=this.parseMaybeAssign(J);else if(!Q&&q==="const"&&!(this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!Q&&(q==="using"||q==="await using")&&this.options.ecmaVersion>=17&&this.type!==w._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+q+" declaration");else if(!Q&&Y.id.type!=="Identifier"&&!(J&&(this.type===w._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else Y.init=null;if(Z.declarations.push(this.finishNode(Y,"VariableDeclarator")),!this.eat(w.comma))break}return Z};q1.parseVarId=function(Z,J){Z.id=J==="using"||J==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(Z.id,J==="var"?a3:Z8,!1)};var v0=1,u3=2,fV=4;q1.parseFunction=function(Z,J,q,Q,Y){if(this.initFunction(Z),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Q){if(this.type===w.star&&J&u3)this.unexpected();Z.generator=this.eat(w.star)}if(this.options.ecmaVersion>=8)Z.async=!!Q;if(J&v0){if(Z.id=J&fV&&this.type!==w.name?null:this.parseIdent(),Z.id&&!(J&u3))this.checkLValSimple(Z.id,this.strict||Z.generator||Z.async?this.treatFunctionsAsVar?a3:Z8:bV)}var X=this.yieldPos,z=this.awaitPos,V=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(n3(Z.async,Z.generator)),!(J&v0))Z.id=this.type===w.name?this.parseIdent():null;return this.parseFunctionParams(Z),this.parseFunctionBody(Z,q,!1,Y),this.yieldPos=X,this.awaitPos=z,this.awaitIdentPos=V,this.finishNode(Z,J&v0?"FunctionDeclaration":"FunctionExpression")};q1.parseFunctionParams=function(Z){this.expect(w.parenL),Z.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};q1.parseClass=function(Z,J){this.next();var q=this.strict;this.strict=!0,this.parseClassId(Z,J),this.parseClassSuper(Z);var Q=this.enterClassBody(),Y=this.startNode(),X=!1;Y.body=[],this.expect(w.braceL);while(this.type!==w.braceR){var z=this.parseClassElement(Z.superClass!==null);if(z){if(Y.body.push(z),z.type==="MethodDefinition"&&z.kind==="constructor"){if(X)this.raiseRecoverable(z.start,"Duplicate constructor in the same class");X=!0}else if(z.key&&z.key.type==="PrivateIdentifier"&&ZN(Q,z))this.raiseRecoverable(z.key.start,"Identifier '#"+z.key.name+"' has already been declared")}}return this.strict=q,this.next(),Z.body=this.finishNode(Y,"ClassBody"),this.exitClassBody(),this.finishNode(Z,J?"ClassDeclaration":"ClassExpression")};q1.parseClassElement=function(Z){if(this.eat(w.semi))return null;var J=this.options.ecmaVersion,q=this.startNode(),Q="",Y=!1,X=!1,z="method",V=!1;if(this.eatContextual("static")){if(J>=13&&this.eat(w.braceL))return this.parseClassStaticBlock(q),q;if(this.isClassElementNameStart()||this.type===w.star)V=!0;else Q="static"}if(q.static=V,!Q&&J>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===w.star)&&!this.canInsertSemicolon())X=!0;else Q="async";if(!Q&&(J>=9||!X)&&this.eat(w.star))Y=!0;if(!Q&&!X&&!Y){var W=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())z=W;else Q=W}if(Q)q.computed=!1,q.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),q.key.name=Q,this.finishNode(q.key,"Identifier");else this.parseClassElementName(q);if(J<13||this.type===w.parenL||z!=="method"||Y||X){var K=!q.static&&C7(q,"constructor"),$=K&&Z;if(K&&z!=="method")this.raise(q.key.start,"Constructor can't have get/set modifier");q.kind=K?"constructor":z,this.parseClassMethod(q,Y,X,$)}else this.parseClassField(q);return q};q1.isClassElementNameStart=function(){return this.type===w.name||this.type===w.privateId||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword};q1.parseClassElementName=function(Z){if(this.type===w.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");Z.computed=!1,Z.key=this.parsePrivateIdent()}else this.parsePropertyName(Z)};q1.parseClassMethod=function(Z,J,q,Q){var Y=Z.key;if(Z.kind==="constructor"){if(J)this.raise(Y.start,"Constructor can't be a generator");if(q)this.raise(Y.start,"Constructor can't be an async method")}else if(Z.static&&C7(Z,"prototype"))this.raise(Y.start,"Classes may not have a static property named prototype");var X=Z.value=this.parseMethod(J,q,Q);if(Z.kind==="get"&&X.params.length!==0)this.raiseRecoverable(X.start,"getter should have no params");if(Z.kind==="set"&&X.params.length!==1)this.raiseRecoverable(X.start,"setter should have exactly one param");if(Z.kind==="set"&&X.params[0].type==="RestElement")this.raiseRecoverable(X.params[0].start,"Setter cannot use rest params");return this.finishNode(Z,"MethodDefinition")};q1.parseClassField=function(Z){if(C7(Z,"constructor"))this.raise(Z.key.start,"Classes can't have a field named 'constructor'");else if(Z.static&&C7(Z,"prototype"))this.raise(Z.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(w.eq))this.enterScope(g0|T7),Z.value=this.parseMaybeAssign(),this.exitScope();else Z.value=null;return this.semicolon(),this.finishNode(Z,"PropertyDefinition")};q1.parseClassStaticBlock=function(Z){Z.body=[];var J=this.labels;this.labels=[],this.enterScope(h8|T7);while(this.type!==w.braceR){var q=this.parseStatement(null);Z.body.push(q)}return this.next(),this.exitScope(),this.labels=J,this.finishNode(Z,"StaticBlock")};q1.parseClassId=function(Z,J){if(this.type===w.name){if(Z.id=this.parseIdent(),J)this.checkLValSimple(Z.id,Z8,!1)}else{if(J===!0)this.unexpected();Z.id=null}};q1.parseClassSuper=function(Z){Z.superClass=this.eat(w._extends)?this.parseExprSubscripts(null,!1):null};q1.enterClassBody=function(){var Z={declared:Object.create(null),used:[]};return this.privateNameStack.push(Z),Z.declared};q1.exitClassBody=function(){var Z=this.privateNameStack.pop(),J=Z.declared,q=Z.used;if(!this.options.checkPrivateFields)return;var Q=this.privateNameStack.length,Y=Q===0?null:this.privateNameStack[Q-1];for(var X=0;X<q.length;++X){var z=q[X];if(!P6(J,z.name))if(Y)Y.used.push(z);else this.raiseRecoverable(z.start,"Private field '#"+z.name+"' must be declared in an enclosing class")}};function ZN(Z,J){var q=J.key.name,Q=Z[q],Y="true";if(J.type==="MethodDefinition"&&(J.kind==="get"||J.kind==="set"))Y=(J.static?"s":"i")+J.kind;if(Q==="iget"&&Y==="iset"||Q==="iset"&&Y==="iget"||Q==="sget"&&Y==="sset"||Q==="sset"&&Y==="sget")return Z[q]="true",!1;else if(!Q)return Z[q]=Y,!1;else return!0}function C7(Z,J){var{computed:q,key:Q}=Z;return!q&&(Q.type==="Identifier"&&Q.name===J||Q.type==="Literal"&&Q.value===J)}q1.parseExportAllDeclaration=function(Z,J){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))Z.exported=this.parseModuleExportName(),this.checkExport(J,Z.exported,this.lastTokStart);else Z.exported=null;if(this.expectContextual("from"),this.type!==w.string)this.unexpected();if(Z.source=this.parseExprAtom(),this.options.ecmaVersion>=16)Z.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(Z,"ExportAllDeclaration")};q1.parseExport=function(Z,J){if(this.next(),this.eat(w.star))return this.parseExportAllDeclaration(Z,J);if(this.eat(w._default))return this.checkExport(J,"default",this.lastTokStart),Z.declaration=this.parseExportDefaultDeclaration(),this.finishNode(Z,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(Z.declaration=this.parseExportDeclaration(Z),Z.declaration.type==="VariableDeclaration")this.checkVariableExport(J,Z.declaration.declarations);else this.checkExport(J,Z.declaration.id,Z.declaration.id.start);if(Z.specifiers=[],Z.source=null,this.options.ecmaVersion>=16)Z.attributes=[]}else{if(Z.declaration=null,Z.specifiers=this.parseExportSpecifiers(J),this.eatContextual("from")){if(this.type!==w.string)this.unexpected();if(Z.source=this.parseExprAtom(),this.options.ecmaVersion>=16)Z.attributes=this.parseWithClause()}else{for(var q=0,Q=Z.specifiers;q<Q.length;q+=1){var Y=Q[q];if(this.checkUnreserved(Y.local),this.checkLocalExport(Y.local),Y.local.type==="Literal")this.raise(Y.local.start,"A string literal cannot be used as an exported binding without `from`.")}if(Z.source=null,this.options.ecmaVersion>=16)Z.attributes=[]}this.semicolon()}return this.finishNode(Z,"ExportNamedDeclaration")};q1.parseExportDeclaration=function(Z){return this.parseStatement(null)};q1.parseExportDefaultDeclaration=function(){var Z;if(this.type===w._function||(Z=this.isAsyncFunction())){var J=this.startNode();if(this.next(),Z)this.next();return this.parseFunction(J,v0|fV,!1,Z)}else if(this.type===w._class){var q=this.startNode();return this.parseClass(q,"nullableID")}else{var Q=this.parseMaybeAssign();return this.semicolon(),Q}};q1.checkExport=function(Z,J,q){if(!Z)return;if(typeof J!=="string")J=J.type==="Identifier"?J.name:J.value;if(P6(Z,J))this.raiseRecoverable(q,"Duplicate export '"+J+"'");Z[J]=!0};q1.checkPatternExport=function(Z,J){var q=J.type;if(q==="Identifier")this.checkExport(Z,J,J.start);else if(q==="ObjectPattern")for(var Q=0,Y=J.properties;Q<Y.length;Q+=1){var X=Y[Q];this.checkPatternExport(Z,X)}else if(q==="ArrayPattern")for(var z=0,V=J.elements;z<V.length;z+=1){var W=V[z];if(W)this.checkPatternExport(Z,W)}else if(q==="Property")this.checkPatternExport(Z,J.value);else if(q==="AssignmentPattern")this.checkPatternExport(Z,J.left);else if(q==="RestElement")this.checkPatternExport(Z,J.argument)};q1.checkVariableExport=function(Z,J){if(!Z)return;for(var q=0,Q=J;q<Q.length;q+=1){var Y=Q[q];this.checkPatternExport(Z,Y.id)}};q1.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};q1.parseExportSpecifier=function(Z){var J=this.startNode();return J.local=this.parseModuleExportName(),J.exported=this.eatContextual("as")?this.parseModuleExportName():J.local,this.checkExport(Z,J.exported,J.exported.start),this.finishNode(J,"ExportSpecifier")};q1.parseExportSpecifiers=function(Z){var J=[],q=!0;this.expect(w.braceL);while(!this.eat(w.braceR)){if(!q){if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break}else q=!1;J.push(this.parseExportSpecifier(Z))}return J};q1.parseImport=function(Z){if(this.next(),this.type===w.string)Z.specifiers=eO,Z.source=this.parseExprAtom();else Z.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),Z.source=this.type===w.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)Z.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(Z,"ImportDeclaration")};q1.parseImportSpecifier=function(){var Z=this.startNode();if(Z.imported=this.parseModuleExportName(),this.eatContextual("as"))Z.local=this.parseIdent();else this.checkUnreserved(Z.imported),Z.local=Z.imported;return this.checkLValSimple(Z.local,Z8),this.finishNode(Z,"ImportSpecifier")};q1.parseImportDefaultSpecifier=function(){var Z=this.startNode();return Z.local=this.parseIdent(),this.checkLValSimple(Z.local,Z8),this.finishNode(Z,"ImportDefaultSpecifier")};q1.parseImportNamespaceSpecifier=function(){var Z=this.startNode();return this.next(),this.expectContextual("as"),Z.local=this.parseIdent(),this.checkLValSimple(Z.local,Z8),this.finishNode(Z,"ImportNamespaceSpecifier")};q1.parseImportSpecifiers=function(){var Z=[],J=!0;if(this.type===w.name){if(Z.push(this.parseImportDefaultSpecifier()),!this.eat(w.comma))return Z}if(this.type===w.star)return Z.push(this.parseImportNamespaceSpecifier()),Z;this.expect(w.braceL);while(!this.eat(w.braceR)){if(!J){if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break}else J=!1;Z.push(this.parseImportSpecifier())}return Z};q1.parseWithClause=function(){var Z=[];if(!this.eat(w._with))return Z;this.expect(w.braceL);var J={},q=!0;while(!this.eat(w.braceR)){if(!q){if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break}else q=!1;var Q=this.parseImportAttribute(),Y=Q.key.type==="Identifier"?Q.key.name:Q.key.value;if(P6(J,Y))this.raiseRecoverable(Q.key.start,"Duplicate attribute key '"+Y+"'");J[Y]=!0,Z.push(Q)}return Z};q1.parseImportAttribute=function(){var Z=this.startNode();if(Z.key=this.type===w.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(w.colon),this.type!==w.string)this.unexpected();return Z.value=this.parseExprAtom(),this.finishNode(Z,"ImportAttribute")};q1.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===w.string){var Z=this.parseLiteral(this.value);if(aO.test(Z.value))this.raise(Z.start,"An export name cannot include a lone surrogate.");return Z}return this.parseIdent(!0)};q1.adaptDirectivePrologue=function(Z){for(var J=0;J<Z.length&&this.isDirectiveCandidate(Z[J]);++J)Z[J].directive=Z[J].expression.raw.slice(1,-1)};q1.isDirectiveCandidate=function(Z){return this.options.ecmaVersion>=5&&Z.type==="ExpressionStatement"&&Z.expression.type==="Literal"&&typeof Z.expression.value==="string"&&(this.input[Z.start]==='"'||this.input[Z.start]==="'")};var T5=p1.prototype;T5.toAssignable=function(Z,J,q){if(this.options.ecmaVersion>=6&&Z)switch(Z.type){case"Identifier":if(this.inAsync&&Z.name==="await")this.raise(Z.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(Z.type="ObjectPattern",q)this.checkPatternErrors(q,!0);for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var X=Y[Q];if(this.toAssignable(X,J),X.type==="RestElement"&&(X.argument.type==="ArrayPattern"||X.argument.type==="ObjectPattern"))this.raise(X.argument.start,"Unexpected token")}break;case"Property":if(Z.kind!=="init")this.raise(Z.key.start,"Object pattern can't contain getter or setter");this.toAssignable(Z.value,J);break;case"ArrayExpression":if(Z.type="ArrayPattern",q)this.checkPatternErrors(q,!0);this.toAssignableList(Z.elements,J);break;case"SpreadElement":if(Z.type="RestElement",this.toAssignable(Z.argument,J),Z.argument.type==="AssignmentPattern")this.raise(Z.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(Z.operator!=="=")this.raise(Z.left.end,"Only '=' operator can be used for specifying default value.");Z.type="AssignmentPattern",delete Z.operator,this.toAssignable(Z.left,J);break;case"ParenthesizedExpression":this.toAssignable(Z.expression,J,q);break;case"ChainExpression":this.raiseRecoverable(Z.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!J)break;default:this.raise(Z.start,"Assigning to rvalue")}else if(q)this.checkPatternErrors(q,!0);return Z};T5.toAssignableList=function(Z,J){var q=Z.length;for(var Q=0;Q<q;Q++){var Y=Z[Q];if(Y)this.toAssignable(Y,J)}if(q){var X=Z[q-1];if(this.options.ecmaVersion===6&&J&&X&&X.type==="RestElement"&&X.argument.type!=="Identifier")this.unexpected(X.argument.start)}return Z};T5.parseSpread=function(Z){var J=this.startNode();return this.next(),J.argument=this.parseMaybeAssign(!1,Z),this.finishNode(J,"SpreadElement")};T5.parseRestBinding=function(){var Z=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==w.name)this.unexpected();return Z.argument=this.parseBindingAtom(),this.finishNode(Z,"RestElement")};T5.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case w.bracketL:var Z=this.startNode();return this.next(),Z.elements=this.parseBindingList(w.bracketR,!0,!0),this.finishNode(Z,"ArrayPattern");case w.braceL:return this.parseObj(!0)}return this.parseIdent()};T5.parseBindingList=function(Z,J,q,Q){var Y=[],X=!0;while(!this.eat(Z)){if(X)X=!1;else this.expect(w.comma);if(J&&this.type===w.comma)Y.push(null);else if(q&&this.afterTrailingComma(Z))break;else if(this.type===w.ellipsis){var z=this.parseRestBinding();if(this.parseBindingListItem(z),Y.push(z),this.type===w.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(Z);break}else Y.push(this.parseAssignableListItem(Q))}return Y};T5.parseAssignableListItem=function(Z){var J=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(J),J};T5.parseBindingListItem=function(Z){return Z};T5.parseMaybeDefault=function(Z,J,q){if(q=q||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(w.eq))return q;var Q=this.startNodeAt(Z,J);return Q.left=q,Q.right=this.parseMaybeAssign(),this.finishNode(Q,"AssignmentPattern")};T5.checkLValSimple=function(Z,J,q){if(J===void 0)J=R7;var Q=J!==R7;switch(Z.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(Z.name))this.raiseRecoverable(Z.start,(Q?"Binding ":"Assigning to ")+Z.name+" in strict mode");if(Q){if(J===Z8&&Z.name==="let")this.raiseRecoverable(Z.start,"let is disallowed as a lexically bound name");if(q){if(P6(q,Z.name))this.raiseRecoverable(Z.start,"Argument name clash");q[Z.name]=!0}if(J!==kV)this.declareName(Z.name,J,Z.start)}break;case"ChainExpression":this.raiseRecoverable(Z.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(Q)this.raiseRecoverable(Z.start,"Binding member expression");break;case"ParenthesizedExpression":if(Q)this.raiseRecoverable(Z.start,"Binding parenthesized expression");return this.checkLValSimple(Z.expression,J,q);default:this.raise(Z.start,(Q?"Binding":"Assigning to")+" rvalue")}};T5.checkLValPattern=function(Z,J,q){if(J===void 0)J=R7;switch(Z.type){case"ObjectPattern":for(var Q=0,Y=Z.properties;Q<Y.length;Q+=1){var X=Y[Q];this.checkLValInnerPattern(X,J,q)}break;case"ArrayPattern":for(var z=0,V=Z.elements;z<V.length;z+=1){var W=V[z];if(W)this.checkLValInnerPattern(W,J,q)}break;default:this.checkLValSimple(Z,J,q)}};T5.checkLValInnerPattern=function(Z,J,q){if(J===void 0)J=R7;switch(Z.type){case"Property":this.checkLValInnerPattern(Z.value,J,q);break;case"AssignmentPattern":this.checkLValPattern(Z.left,J,q);break;case"RestElement":this.checkLValPattern(Z.argument,J,q);break;default:this.checkLValPattern(Z,J,q)}};var E5=function(J,q,Q,Y,X){this.token=J,this.isExpr=!!q,this.preserveSpace=!!Q,this.override=Y,this.generator=!!X},b1={b_stat:new E5("{",!1),b_expr:new E5("{",!0),b_tmpl:new E5("${",!1),p_stat:new E5("(",!1),p_expr:new E5("(",!0),q_tmpl:new E5("`",!0,!0,function(Z){return Z.tryReadTemplateToken()}),f_stat:new E5("function",!1),f_expr:new E5("function",!0),f_expr_gen:new E5("function",!0,!1,null,!0),f_gen:new E5("function",!1,!1,null,!0)},S6=p1.prototype;S6.initialContext=function(){return[b1.b_stat]};S6.curContext=function(){return this.context[this.context.length-1]};S6.braceIsBlock=function(Z){var J=this.curContext();if(J===b1.f_expr||J===b1.f_stat)return!0;if(Z===w.colon&&(J===b1.b_stat||J===b1.b_expr))return!J.isExpr;if(Z===w._return||Z===w.name&&this.exprAllowed)return K5.test(this.input.slice(this.lastTokEnd,this.start));if(Z===w._else||Z===w.semi||Z===w.eof||Z===w.parenR||Z===w.arrow)return!0;if(Z===w.braceL)return J===b1.b_stat;if(Z===w._var||Z===w._const||Z===w.name)return!1;return!this.exprAllowed};S6.inGeneratorContext=function(){for(var Z=this.context.length-1;Z>=1;Z--){var J=this.context[Z];if(J.token==="function")return J.generator}return!1};S6.updateContext=function(Z){var J,q=this.type;if(q.keyword&&Z===w.dot)this.exprAllowed=!1;else if(J=q.updateContext)J.call(this,Z);else this.exprAllowed=q.beforeExpr};S6.overrideContext=function(Z){if(this.curContext()!==Z)this.context[this.context.length-1]=Z};w.parenR.updateContext=w.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var Z=this.context.pop();if(Z===b1.b_stat&&this.curContext().token==="function")Z=this.context.pop();this.exprAllowed=!Z.isExpr};w.braceL.updateContext=function(Z){this.context.push(this.braceIsBlock(Z)?b1.b_stat:b1.b_expr),this.exprAllowed=!0};w.dollarBraceL.updateContext=function(){this.context.push(b1.b_tmpl),this.exprAllowed=!0};w.parenL.updateContext=function(Z){var J=Z===w._if||Z===w._for||Z===w._with||Z===w._while;this.context.push(J?b1.p_stat:b1.p_expr),this.exprAllowed=!0};w.incDec.updateContext=function(){};w._function.updateContext=w._class.updateContext=function(Z){if(Z.beforeExpr&&Z!==w._else&&!(Z===w.semi&&this.curContext()!==b1.p_stat)&&!(Z===w._return&&K5.test(this.input.slice(this.lastTokEnd,this.start)))&&!((Z===w.colon||Z===w.braceL)&&this.curContext()===b1.b_stat))this.context.push(b1.f_expr);else this.context.push(b1.f_stat);this.exprAllowed=!1};w.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};w.backQuote.updateContext=function(){if(this.curContext()===b1.q_tmpl)this.context.pop();else this.context.push(b1.q_tmpl);this.exprAllowed=!1};w.star.updateContext=function(Z){if(Z===w._function){var J=this.context.length-1;if(this.context[J]===b1.f_expr)this.context[J]=b1.f_expr_gen;else this.context[J]=b1.f_gen}this.exprAllowed=!0};w.name.updateContext=function(Z){var J=!1;if(this.options.ecmaVersion>=6&&Z!==w.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())J=!0}this.exprAllowed=J};var K1=p1.prototype;K1.checkPropClash=function(Z,J,q){if(this.options.ecmaVersion>=9&&Z.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(Z.computed||Z.method||Z.shorthand))return;var Q=Z.key,Y;switch(Q.type){case"Identifier":Y=Q.name;break;case"Literal":Y=String(Q.value);break;default:return}var X=Z.kind;if(this.options.ecmaVersion>=6){if(Y==="__proto__"&&X==="init"){if(J.proto)if(q){if(q.doubleProto<0)q.doubleProto=Q.start}else this.raiseRecoverable(Q.start,"Redefinition of __proto__ property");J.proto=!0}return}Y="$"+Y;var z=J[Y];if(z){var V;if(X==="init")V=this.strict&&z.init||z.get||z.set;else V=z.init||z[X];if(V)this.raiseRecoverable(Q.start,"Redefinition of property")}else z=J[Y]={init:!1,get:!1,set:!1};z[X]=!0};K1.parseExpression=function(Z,J){var q=this.start,Q=this.startLoc,Y=this.parseMaybeAssign(Z,J);if(this.type===w.comma){var X=this.startNodeAt(q,Q);X.expressions=[Y];while(this.eat(w.comma))X.expressions.push(this.parseMaybeAssign(Z,J));return this.finishNode(X,"SequenceExpression")}return Y};K1.parseMaybeAssign=function(Z,J,q){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(Z);else this.exprAllowed=!1;var Q=!1,Y=-1,X=-1,z=-1;if(J)Y=J.parenthesizedAssign,X=J.trailingComma,z=J.doubleProto,J.parenthesizedAssign=J.trailingComma=-1;else J=new P7,Q=!0;var V=this.start,W=this.startLoc;if(this.type===w.parenL||this.type===w.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=Z==="await";var K=this.parseMaybeConditional(Z,J);if(q)K=q.call(this,K,V,W);if(this.type.isAssign){var $=this.startNodeAt(V,W);if($.operator=this.value,this.type===w.eq)K=this.toAssignable(K,!1,J);if(!Q)J.parenthesizedAssign=J.trailingComma=J.doubleProto=-1;if(J.shorthandAssign>=K.start)J.shorthandAssign=-1;if(this.type===w.eq)this.checkLValPattern(K);else this.checkLValSimple(K);if($.left=K,this.next(),$.right=this.parseMaybeAssign(Z),z>-1)J.doubleProto=z;return this.finishNode($,"AssignmentExpression")}else if(Q)this.checkExpressionErrors(J,!0);if(Y>-1)J.parenthesizedAssign=Y;if(X>-1)J.trailingComma=X;return K};K1.parseMaybeConditional=function(Z,J){var q=this.start,Q=this.startLoc,Y=this.parseExprOps(Z,J);if(this.checkExpressionErrors(J))return Y;if(this.eat(w.question)){var X=this.startNodeAt(q,Q);return X.test=Y,X.consequent=this.parseMaybeAssign(),this.expect(w.colon),X.alternate=this.parseMaybeAssign(Z),this.finishNode(X,"ConditionalExpression")}return Y};K1.parseExprOps=function(Z,J){var q=this.start,Q=this.startLoc,Y=this.parseMaybeUnary(J,!1,!1,Z);if(this.checkExpressionErrors(J))return Y;return Y.start===q&&Y.type==="ArrowFunctionExpression"?Y:this.parseExprOp(Y,q,Q,-1,Z)};K1.parseExprOp=function(Z,J,q,Q,Y){var X=this.type.binop;if(X!=null&&(!Y||this.type!==w._in)){if(X>Q){var z=this.type===w.logicalOR||this.type===w.logicalAND,V=this.type===w.coalesce;if(V)X=w.logicalAND.binop;var W=this.value;this.next();var K=this.start,$=this.startLoc,H=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,Y),K,$,X,Y),M=this.buildBinary(J,q,Z,H,W,z||V);if(z&&this.type===w.coalesce||V&&(this.type===w.logicalOR||this.type===w.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(M,J,q,Q,Y)}}return Z};K1.buildBinary=function(Z,J,q,Q,Y,X){if(Q.type==="PrivateIdentifier")this.raise(Q.start,"Private identifier can only be left side of binary expression");var z=this.startNodeAt(Z,J);return z.left=q,z.operator=Y,z.right=Q,this.finishNode(z,X?"LogicalExpression":"BinaryExpression")};K1.parseMaybeUnary=function(Z,J,q,Q){var Y=this.start,X=this.startLoc,z;if(this.isContextual("await")&&this.canAwait)z=this.parseAwait(Q),J=!0;else if(this.type.prefix){var V=this.startNode(),W=this.type===w.incDec;if(V.operator=this.value,V.prefix=!0,this.next(),V.argument=this.parseMaybeUnary(null,!0,W,Q),this.checkExpressionErrors(Z,!0),W)this.checkLValSimple(V.argument);else if(this.strict&&V.operator==="delete"&&vV(V.argument))this.raiseRecoverable(V.start,"Deleting local variable in strict mode");else if(V.operator==="delete"&&d3(V.argument))this.raiseRecoverable(V.start,"Private fields can not be deleted");else J=!0;z=this.finishNode(V,W?"UpdateExpression":"UnaryExpression")}else if(!J&&this.type===w.privateId){if((Q||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(z=this.parsePrivateIdent(),this.type!==w._in)this.unexpected()}else{if(z=this.parseExprSubscripts(Z,Q),this.checkExpressionErrors(Z))return z;while(this.type.postfix&&!this.canInsertSemicolon()){var K=this.startNodeAt(Y,X);K.operator=this.value,K.prefix=!1,K.argument=z,this.checkLValSimple(z),this.next(),z=this.finishNode(K,"UpdateExpression")}}if(!q&&this.eat(w.starstar))if(J)this.unexpected(this.lastTokStart);else return this.buildBinary(Y,X,z,this.parseMaybeUnary(null,!1,!1,Q),"**",!1);else return z};function vV(Z){return Z.type==="Identifier"||Z.type==="ParenthesizedExpression"&&vV(Z.expression)}function d3(Z){return Z.type==="MemberExpression"&&Z.property.type==="PrivateIdentifier"||Z.type==="ChainExpression"&&d3(Z.expression)||Z.type==="ParenthesizedExpression"&&d3(Z.expression)}K1.parseExprSubscripts=function(Z,J){var q=this.start,Q=this.startLoc,Y=this.parseExprAtom(Z,J);if(Y.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return Y;var X=this.parseSubscripts(Y,q,Q,!1,J);if(Z&&X.type==="MemberExpression"){if(Z.parenthesizedAssign>=X.start)Z.parenthesizedAssign=-1;if(Z.parenthesizedBind>=X.start)Z.parenthesizedBind=-1;if(Z.trailingComma>=X.start)Z.trailingComma=-1}return X};K1.parseSubscripts=function(Z,J,q,Q,Y){var X=this.options.ecmaVersion>=8&&Z.type==="Identifier"&&Z.name==="async"&&this.lastTokEnd===Z.end&&!this.canInsertSemicolon()&&Z.end-Z.start===5&&this.potentialArrowAt===Z.start,z=!1;while(!0){var V=this.parseSubscript(Z,J,q,Q,X,z,Y);if(V.optional)z=!0;if(V===Z||V.type==="ArrowFunctionExpression"){if(z){var W=this.startNodeAt(J,q);W.expression=V,V=this.finishNode(W,"ChainExpression")}return V}Z=V}};K1.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(w.arrow)};K1.parseSubscriptAsyncArrow=function(Z,J,q,Q){return this.parseArrowExpression(this.startNodeAt(Z,J),q,!0,Q)};K1.parseSubscript=function(Z,J,q,Q,Y,X,z){var V=this.options.ecmaVersion>=11,W=V&&this.eat(w.questionDot);if(Q&&W)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var K=this.eat(w.bracketL);if(K||W&&this.type!==w.parenL&&this.type!==w.backQuote||this.eat(w.dot)){var $=this.startNodeAt(J,q);if($.object=Z,K)$.property=this.parseExpression(),this.expect(w.bracketR);else if(this.type===w.privateId&&Z.type!=="Super")$.property=this.parsePrivateIdent();else $.property=this.parseIdent(this.options.allowReserved!=="never");if($.computed=!!K,V)$.optional=W;Z=this.finishNode($,"MemberExpression")}else if(!Q&&this.eat(w.parenL)){var H=new P7,M=this.yieldPos,O=this.awaitPos,j=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var L=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1,H);if(Y&&!W&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(H,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=M,this.awaitPos=O,this.awaitIdentPos=j,this.parseSubscriptAsyncArrow(J,q,L,z)}this.checkExpressionErrors(H,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=O||this.awaitPos,this.awaitIdentPos=j||this.awaitIdentPos;var I=this.startNodeAt(J,q);if(I.callee=Z,I.arguments=L,V)I.optional=W;Z=this.finishNode(I,"CallExpression")}else if(this.type===w.backQuote){if(W||X)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(J,q);y.tag=Z,y.quasi=this.parseTemplate({isTagged:!0}),Z=this.finishNode(y,"TaggedTemplateExpression")}return Z};K1.parseExprAtom=function(Z,J,q){if(this.type===w.slash)this.readRegexp();var Q,Y=this.potentialArrowAt===this.start;switch(this.type){case w._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(Q=this.startNode(),this.next(),this.type===w.parenL&&!this.allowDirectSuper)this.raise(Q.start,"super() call outside constructor of a subclass");if(this.type!==w.dot&&this.type!==w.bracketL&&this.type!==w.parenL)this.unexpected();return this.finishNode(Q,"Super");case w._this:return Q=this.startNode(),this.next(),this.finishNode(Q,"ThisExpression");case w.name:var X=this.start,z=this.startLoc,V=this.containsEsc,W=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!V&&W.name==="async"&&!this.canInsertSemicolon()&&this.eat(w._function))return this.overrideContext(b1.f_expr),this.parseFunction(this.startNodeAt(X,z),0,!1,!0,J);if(Y&&!this.canInsertSemicolon()){if(this.eat(w.arrow))return this.parseArrowExpression(this.startNodeAt(X,z),[W],!1,J);if(this.options.ecmaVersion>=8&&W.name==="async"&&this.type===w.name&&!V&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(W=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(w.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(X,z),[W],!0,J)}}return W;case w.regexp:var K=this.value;return Q=this.parseLiteral(K.value),Q.regex={pattern:K.pattern,flags:K.flags},Q;case w.num:case w.string:return this.parseLiteral(this.value);case w._null:case w._true:case w._false:return Q=this.startNode(),Q.value=this.type===w._null?null:this.type===w._true,Q.raw=this.type.keyword,this.next(),this.finishNode(Q,"Literal");case w.parenL:var $=this.start,H=this.parseParenAndDistinguishExpression(Y,J);if(Z){if(Z.parenthesizedAssign<0&&!this.isSimpleAssignTarget(H))Z.parenthesizedAssign=$;if(Z.parenthesizedBind<0)Z.parenthesizedBind=$}return H;case w.bracketL:return Q=this.startNode(),this.next(),Q.elements=this.parseExprList(w.bracketR,!0,!0,Z),this.finishNode(Q,"ArrayExpression");case w.braceL:return this.overrideContext(b1.b_expr),this.parseObj(!1,Z);case w._function:return Q=this.startNode(),this.next(),this.parseFunction(Q,0);case w._class:return this.parseClass(this.startNode(),!1);case w._new:return this.parseNew();case w.backQuote:return this.parseTemplate();case w._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(q);else return this.unexpected();default:return this.parseExprAtomDefault()}};K1.parseExprAtomDefault=function(){this.unexpected()};K1.parseExprImport=function(Z){var J=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===w.parenL&&!Z)return this.parseDynamicImport(J);else if(this.type===w.dot){var q=this.startNodeAt(J.start,J.loc&&J.loc.start);return q.name="import",J.meta=this.finishNode(q,"Identifier"),this.parseImportMeta(J)}else this.unexpected()};K1.parseDynamicImport=function(Z){if(this.next(),Z.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(w.parenR))if(this.expect(w.comma),!this.afterTrailingComma(w.parenR)){if(Z.options=this.parseMaybeAssign(),!this.eat(w.parenR)){if(this.expect(w.comma),!this.afterTrailingComma(w.parenR))this.unexpected()}}else Z.options=null;else Z.options=null;else if(!this.eat(w.parenR)){var J=this.start;if(this.eat(w.comma)&&this.eat(w.parenR))this.raiseRecoverable(J,"Trailing comma is not allowed in import()");else this.unexpected(J)}return this.finishNode(Z,"ImportExpression")};K1.parseImportMeta=function(Z){this.next();var J=this.containsEsc;if(Z.property=this.parseIdent(!0),Z.property.name!=="meta")this.raiseRecoverable(Z.property.start,"The only valid meta property for import is 'import.meta'");if(J)this.raiseRecoverable(Z.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(Z.start,"Cannot use 'import.meta' outside a module");return this.finishNode(Z,"MetaProperty")};K1.parseLiteral=function(Z){var J=this.startNode();if(J.value=Z,J.raw=this.input.slice(this.start,this.end),J.raw.charCodeAt(J.raw.length-1)===110)J.bigint=J.value!=null?J.value.toString():J.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(J,"Literal")};K1.parseParenExpression=function(){this.expect(w.parenL);var Z=this.parseExpression();return this.expect(w.parenR),Z};K1.shouldParseArrow=function(Z){return!this.canInsertSemicolon()};K1.parseParenAndDistinguishExpression=function(Z,J){var q=this.start,Q=this.startLoc,Y,X=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var z=this.start,V=this.startLoc,W=[],K=!0,$=!1,H=new P7,M=this.yieldPos,O=this.awaitPos,j;this.yieldPos=0,this.awaitPos=0;while(this.type!==w.parenR)if(K?K=!1:this.expect(w.comma),X&&this.afterTrailingComma(w.parenR,!0)){$=!0;break}else if(this.type===w.ellipsis){if(j=this.start,W.push(this.parseParenItem(this.parseRestBinding())),this.type===w.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else W.push(this.parseMaybeAssign(!1,H,this.parseParenItem));var L=this.lastTokEnd,I=this.lastTokEndLoc;if(this.expect(w.parenR),Z&&this.shouldParseArrow(W)&&this.eat(w.arrow))return this.checkPatternErrors(H,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=M,this.awaitPos=O,this.parseParenArrowList(q,Q,W,J);if(!W.length||$)this.unexpected(this.lastTokStart);if(j)this.unexpected(j);if(this.checkExpressionErrors(H,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=O||this.awaitPos,W.length>1)Y=this.startNodeAt(z,V),Y.expressions=W,this.finishNodeAt(Y,"SequenceExpression",L,I);else Y=W[0]}else Y=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(q,Q);return y.expression=Y,this.finishNode(y,"ParenthesizedExpression")}else return Y};K1.parseParenItem=function(Z){return Z};K1.parseParenArrowList=function(Z,J,q,Q){return this.parseArrowExpression(this.startNodeAt(Z,J),q,!1,Q)};var JN=[];K1.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var Z=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===w.dot){var J=this.startNodeAt(Z.start,Z.loc&&Z.loc.start);J.name="new",Z.meta=this.finishNode(J,"Identifier"),this.next();var q=this.containsEsc;if(Z.property=this.parseIdent(!0),Z.property.name!=="target")this.raiseRecoverable(Z.property.start,"The only valid meta property for new is 'new.target'");if(q)this.raiseRecoverable(Z.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(Z.start,"'new.target' can only be used in functions and class static block");return this.finishNode(Z,"MetaProperty")}var Q=this.start,Y=this.startLoc;if(Z.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),Q,Y,!0,!1),this.eat(w.parenL))Z.arguments=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1);else Z.arguments=JN;return this.finishNode(Z,"NewExpression")};K1.parseTemplateElement=function(Z){var J=Z.isTagged,q=this.startNode();if(this.type===w.invalidTemplate){if(!J)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");q.value={raw:this.value.replace(/\r\n?/g,`
|
|
74
|
+
`),cooked:null}}else q.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
75
|
+
`),cooked:this.value};return this.next(),q.tail=this.type===w.backQuote,this.finishNode(q,"TemplateElement")};K1.parseTemplate=function(Z){if(Z===void 0)Z={};var J=Z.isTagged;if(J===void 0)J=!1;var q=this.startNode();this.next(),q.expressions=[];var Q=this.parseTemplateElement({isTagged:J});q.quasis=[Q];while(!Q.tail){if(this.type===w.eof)this.raise(this.pos,"Unterminated template literal");this.expect(w.dollarBraceL),q.expressions.push(this.parseExpression()),this.expect(w.braceR),q.quasis.push(Q=this.parseTemplateElement({isTagged:J}))}return this.next(),this.finishNode(q,"TemplateLiteral")};K1.isAsyncProp=function(Z){return!Z.computed&&Z.key.type==="Identifier"&&Z.key.name==="async"&&(this.type===w.name||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===w.star)&&!K5.test(this.input.slice(this.lastTokEnd,this.start))};K1.parseObj=function(Z,J){var q=this.startNode(),Q=!0,Y={};q.properties=[],this.next();while(!this.eat(w.braceR)){if(!Q){if(this.expect(w.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(w.braceR))break}else Q=!1;var X=this.parseProperty(Z,J);if(!Z)this.checkPropClash(X,Y,J);q.properties.push(X)}return this.finishNode(q,Z?"ObjectPattern":"ObjectExpression")};K1.parseProperty=function(Z,J){var q=this.startNode(),Q,Y,X,z;if(this.options.ecmaVersion>=9&&this.eat(w.ellipsis)){if(Z){if(q.argument=this.parseIdent(!1),this.type===w.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");return this.finishNode(q,"RestElement")}if(q.argument=this.parseMaybeAssign(!1,J),this.type===w.comma&&J&&J.trailingComma<0)J.trailingComma=this.start;return this.finishNode(q,"SpreadElement")}if(this.options.ecmaVersion>=6){if(q.method=!1,q.shorthand=!1,Z||J)X=this.start,z=this.startLoc;if(!Z)Q=this.eat(w.star)}var V=this.containsEsc;if(this.parsePropertyName(q),!Z&&!V&&this.options.ecmaVersion>=8&&!Q&&this.isAsyncProp(q))Y=!0,Q=this.options.ecmaVersion>=9&&this.eat(w.star),this.parsePropertyName(q);else Y=!1;return this.parsePropertyValue(q,Z,Q,Y,X,z,J,V),this.finishNode(q,"Property")};K1.parseGetterSetter=function(Z){var J=Z.key.name;this.parsePropertyName(Z),Z.value=this.parseMethod(!1),Z.kind=J;var q=Z.kind==="get"?0:1;if(Z.value.params.length!==q){var Q=Z.value.start;if(Z.kind==="get")this.raiseRecoverable(Q,"getter should have no params");else this.raiseRecoverable(Q,"setter should have exactly one param")}else if(Z.kind==="set"&&Z.value.params[0].type==="RestElement")this.raiseRecoverable(Z.value.params[0].start,"Setter cannot use rest params")};K1.parsePropertyValue=function(Z,J,q,Q,Y,X,z,V){if((q||Q)&&this.type===w.colon)this.unexpected();if(this.eat(w.colon))Z.value=J?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,z),Z.kind="init";else if(this.options.ecmaVersion>=6&&this.type===w.parenL){if(J)this.unexpected();Z.method=!0,Z.value=this.parseMethod(q,Q),Z.kind="init"}else if(!J&&!V&&this.options.ecmaVersion>=5&&!Z.computed&&Z.key.type==="Identifier"&&(Z.key.name==="get"||Z.key.name==="set")&&(this.type!==w.comma&&this.type!==w.braceR&&this.type!==w.eq)){if(q||Q)this.unexpected();this.parseGetterSetter(Z)}else if(this.options.ecmaVersion>=6&&!Z.computed&&Z.key.type==="Identifier"){if(q||Q)this.unexpected();if(this.checkUnreserved(Z.key),Z.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=Y;if(J)Z.value=this.parseMaybeDefault(Y,X,this.copyNode(Z.key));else if(this.type===w.eq&&z){if(z.shorthandAssign<0)z.shorthandAssign=this.start;Z.value=this.parseMaybeDefault(Y,X,this.copyNode(Z.key))}else Z.value=this.copyNode(Z.key);Z.kind="init",Z.shorthand=!0}else this.unexpected()};K1.parsePropertyName=function(Z){if(this.options.ecmaVersion>=6)if(this.eat(w.bracketL))return Z.computed=!0,Z.key=this.parseMaybeAssign(),this.expect(w.bracketR),Z.key;else Z.computed=!1;return Z.key=this.type===w.num||this.type===w.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};K1.initFunction=function(Z){if(Z.id=null,this.options.ecmaVersion>=6)Z.generator=Z.expression=!1;if(this.options.ecmaVersion>=8)Z.async=!1};K1.parseMethod=function(Z,J,q){var Q=this.startNode(),Y=this.yieldPos,X=this.awaitPos,z=this.awaitIdentPos;if(this.initFunction(Q),this.options.ecmaVersion>=6)Q.generator=Z;if(this.options.ecmaVersion>=8)Q.async=!!J;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(n3(J,Q.generator)|T7|(q?yV:0)),this.expect(w.parenL),Q.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Q,!1,!0,!1),this.yieldPos=Y,this.awaitPos=X,this.awaitIdentPos=z,this.finishNode(Q,"FunctionExpression")};K1.parseArrowExpression=function(Z,J,q,Q){var Y=this.yieldPos,X=this.awaitPos,z=this.awaitIdentPos;if(this.enterScope(n3(q,!1)|i3),this.initFunction(Z),this.options.ecmaVersion>=8)Z.async=!!q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,Z.params=this.toAssignableList(J,!0),this.parseFunctionBody(Z,!0,!1,Q),this.yieldPos=Y,this.awaitPos=X,this.awaitIdentPos=z,this.finishNode(Z,"ArrowFunctionExpression")};K1.parseFunctionBody=function(Z,J,q,Q){var Y=J&&this.type!==w.braceL,X=this.strict,z=!1;if(Y)Z.body=this.parseMaybeAssign(Q),Z.expression=!0,this.checkParams(Z,!1);else{var V=this.options.ecmaVersion>=7&&!this.isSimpleParamList(Z.params);if(!X||V){if(z=this.strictDirective(this.end),z&&V)this.raiseRecoverable(Z.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var W=this.labels;if(this.labels=[],z)this.strict=!0;if(this.checkParams(Z,!X&&!z&&!J&&!q&&this.isSimpleParamList(Z.params)),this.strict&&Z.id)this.checkLValSimple(Z.id,kV);Z.body=this.parseBlock(!1,void 0,z&&!X),Z.expression=!1,this.adaptDirectivePrologue(Z.body.body),this.labels=W}this.exitScope()};K1.isSimpleParamList=function(Z){for(var J=0,q=Z;J<q.length;J+=1){var Q=q[J];if(Q.type!=="Identifier")return!1}return!0};K1.checkParams=function(Z,J){var q=Object.create(null);for(var Q=0,Y=Z.params;Q<Y.length;Q+=1){var X=Y[Q];this.checkLValInnerPattern(X,a3,J?null:q)}};K1.parseExprList=function(Z,J,q,Q){var Y=[],X=!0;while(!this.eat(Z)){if(!X){if(this.expect(w.comma),J&&this.afterTrailingComma(Z))break}else X=!1;var z=void 0;if(q&&this.type===w.comma)z=null;else if(this.type===w.ellipsis){if(z=this.parseSpread(Q),Q&&this.type===w.comma&&Q.trailingComma<0)Q.trailingComma=this.start}else z=this.parseMaybeAssign(!1,Q);Y.push(z)}return Y};K1.checkUnreserved=function(Z){var{start:J,end:q,name:Q}=Z;if(this.inGenerator&&Q==="yield")this.raiseRecoverable(J,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&Q==="await")this.raiseRecoverable(J,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&A7)&&Q==="arguments")this.raiseRecoverable(J,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(Q==="arguments"||Q==="await"))this.raise(J,"Cannot use "+Q+" in class static initialization block");if(this.keywords.test(Q))this.raise(J,"Unexpected keyword '"+Q+"'");if(this.options.ecmaVersion<6&&this.input.slice(J,q).indexOf("\\")!==-1)return;var Y=this.strict?this.reservedWordsStrict:this.reservedWords;if(Y.test(Q)){if(!this.inAsync&&Q==="await")this.raiseRecoverable(J,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(J,"The keyword '"+Q+"' is reserved")}};K1.parseIdent=function(Z){var J=this.parseIdentNode();if(this.next(!!Z),this.finishNode(J,"Identifier"),!Z){if(this.checkUnreserved(J),J.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=J.start}return J};K1.parseIdentNode=function(){var Z=this.startNode();if(this.type===w.name)Z.name=this.value;else if(this.type.keyword){if(Z.name=this.type.keyword,(Z.name==="class"||Z.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop();this.type=w.name}else this.unexpected();return Z};K1.parsePrivateIdent=function(){var Z=this.startNode();if(this.type===w.privateId)Z.name=this.value;else this.unexpected();if(this.next(),this.finishNode(Z,"PrivateIdentifier"),this.options.checkPrivateFields)if(this.privateNameStack.length===0)this.raise(Z.start,"Private field '#"+Z.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(Z);return Z};K1.parseYield=function(Z){if(!this.yieldPos)this.yieldPos=this.start;var J=this.startNode();if(this.next(),this.type===w.semi||this.canInsertSemicolon()||this.type!==w.star&&!this.type.startsExpr)J.delegate=!1,J.argument=null;else J.delegate=this.eat(w.star),J.argument=this.parseMaybeAssign(Z);return this.finishNode(J,"YieldExpression")};K1.parseAwait=function(Z){if(!this.awaitPos)this.awaitPos=this.start;var J=this.startNode();return this.next(),J.argument=this.parseMaybeUnary(null,!0,!1,Z),this.finishNode(J,"AwaitExpression")};var I7=p1.prototype;I7.raise=function(Z,J){var q=AV(this.input,Z);if(J+=" ("+q.line+":"+q.column+")",this.sourceFile)J+=" in "+this.sourceFile;var Q=SyntaxError(J);throw Q.pos=Z,Q.loc=q,Q.raisedAt=this.pos,Q};I7.raiseRecoverable=I7.raise;I7.curPosition=function(){if(this.options.locations)return new h0(this.curLine,this.pos-this.lineStart)};var M8=p1.prototype,qN=function(J){this.flags=J,this.var=[],this.lexical=[],this.functions=[]};M8.enterScope=function(Z){this.scopeStack.push(new qN(Z))};M8.exitScope=function(){this.scopeStack.pop()};M8.treatFunctionsAsVarInScope=function(Z){return Z.flags&v8||!this.inModule&&Z.flags&f8};M8.declareName=function(Z,J,q){var Q=!1;if(J===Z8){var Y=this.currentScope();if(Q=Y.lexical.indexOf(Z)>-1||Y.functions.indexOf(Z)>-1||Y.var.indexOf(Z)>-1,Y.lexical.push(Z),this.inModule&&Y.flags&f8)delete this.undefinedExports[Z]}else if(J===xV){var X=this.currentScope();X.lexical.push(Z)}else if(J===bV){var z=this.currentScope();if(this.treatFunctionsAsVar)Q=z.lexical.indexOf(Z)>-1;else Q=z.lexical.indexOf(Z)>-1||z.var.indexOf(Z)>-1;z.functions.push(Z)}else for(var V=this.scopeStack.length-1;V>=0;--V){var W=this.scopeStack[V];if(W.lexical.indexOf(Z)>-1&&!(W.flags&SV&&W.lexical[0]===Z)||!this.treatFunctionsAsVarInScope(W)&&W.functions.indexOf(Z)>-1){Q=!0;break}if(W.var.push(Z),this.inModule&&W.flags&f8)delete this.undefinedExports[Z];if(W.flags&A7)break}if(Q)this.raiseRecoverable(q,"Identifier '"+Z+"' has already been declared")};M8.checkLocalExport=function(Z){if(this.scopeStack[0].lexical.indexOf(Z.name)===-1&&this.scopeStack[0].var.indexOf(Z.name)===-1)this.undefinedExports[Z.name]=Z};M8.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};M8.currentVarScope=function(){for(var Z=this.scopeStack.length-1;;Z--){var J=this.scopeStack[Z];if(J.flags&(A7|g0|h8))return J}};M8.currentThisScope=function(){for(var Z=this.scopeStack.length-1;;Z--){var J=this.scopeStack[Z];if(J.flags&(A7|g0|h8)&&!(J.flags&i3))return J}};var S7=function(J,q,Q){if(this.type="",this.start=q,this.end=0,J.options.locations)this.loc=new D7(J,Q);if(J.options.directSourceFile)this.sourceFile=J.options.directSourceFile;if(J.options.ranges)this.range=[q,0]},m0=p1.prototype;m0.startNode=function(){return new S7(this,this.start,this.startLoc)};m0.startNodeAt=function(Z,J){return new S7(this,Z,J)};function hV(Z,J,q,Q){if(Z.type=J,Z.end=q,this.options.locations)Z.loc.end=Q;if(this.options.ranges)Z.range[1]=q;return Z}m0.finishNode=function(Z,J){return hV.call(this,Z,J,this.lastTokEnd,this.lastTokEndLoc)};m0.finishNodeAt=function(Z,J,q,Q){return hV.call(this,Z,J,q,Q)};m0.copyNode=function(Z){var J=new S7(this,Z.start,this.startLoc);for(var q in Z)J[q]=Z[q];return J};var QN="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",gV="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",mV=gV+" Extended_Pictographic",uV=mV,dV=uV+" EBase EComp EMod EPres ExtPict",lV=dV,YN=lV,XN={9:gV,10:mV,11:uV,12:dV,13:lV,14:YN},zN="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",VN={9:"",10:"",11:"",12:"",13:"",14:zN},NV="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",cV="Adlam Adlm 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 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",pV=cV+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",iV=pV+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",nV=iV+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",aV=nV+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",WN=aV+" "+QN,KN={9:cV,10:pV,11:iV,12:nV,13:aV,14:WN},sV={};function $N(Z){var J=sV[Z]={binary:j8(XN[Z]+" "+NV),binaryOfStrings:j8(VN[Z]),nonBinary:{General_Category:j8(NV),Script:j8(KN[Z])}};J.nonBinary.Script_Extensions=J.nonBinary.Script,J.nonBinary.gc=J.nonBinary.General_Category,J.nonBinary.sc=J.nonBinary.Script,J.nonBinary.scx=J.nonBinary.Script_Extensions}for(f0=0,N7=[9,10,11,12,13,14];f0<N7.length;f0+=1)l3=N7[f0],$N(l3);var l3,f0,N7,J1=p1.prototype,_7=function(J,q){this.parent=J,this.base=q||this};_7.prototype.separatedFrom=function(J){for(var q=this;q;q=q.parent)for(var Q=J;Q;Q=Q.parent)if(q.base===Q.base&&q!==Q)return!0;return!1};_7.prototype.sibling=function(){return new _7(this.parent,this.base)};var d5=function(J){this.parser=J,this.validFlags="gim"+(J.options.ecmaVersion>=6?"uy":"")+(J.options.ecmaVersion>=9?"s":"")+(J.options.ecmaVersion>=13?"d":"")+(J.options.ecmaVersion>=15?"v":""),this.unicodeProperties=sV[J.options.ecmaVersion>=14?14:J.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};d5.prototype.reset=function(J,q,Q){var Y=Q.indexOf("v")!==-1,X=Q.indexOf("u")!==-1;if(this.start=J|0,this.source=q+"",this.flags=Q,Y&&this.parser.options.ecmaVersion>=15)this.switchU=!0,this.switchV=!0,this.switchN=!0;else this.switchU=X&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=X&&this.parser.options.ecmaVersion>=9};d5.prototype.raise=function(J){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+J)};d5.prototype.at=function(J,q){if(q===void 0)q=!1;var Q=this.source,Y=Q.length;if(J>=Y)return-1;var X=Q.charCodeAt(J);if(!(q||this.switchU)||X<=55295||X>=57344||J+1>=Y)return X;var z=Q.charCodeAt(J+1);return z>=56320&&z<=57343?(X<<10)+z-56613888:X};d5.prototype.nextIndex=function(J,q){if(q===void 0)q=!1;var Q=this.source,Y=Q.length;if(J>=Y)return Y;var X=Q.charCodeAt(J),z;if(!(q||this.switchU)||X<=55295||X>=57344||J+1>=Y||(z=Q.charCodeAt(J+1))<56320||z>57343)return J+1;return J+2};d5.prototype.current=function(J){if(J===void 0)J=!1;return this.at(this.pos,J)};d5.prototype.lookahead=function(J){if(J===void 0)J=!1;return this.at(this.nextIndex(this.pos,J),J)};d5.prototype.advance=function(J){if(J===void 0)J=!1;this.pos=this.nextIndex(this.pos,J)};d5.prototype.eat=function(J,q){if(q===void 0)q=!1;if(this.current(q)===J)return this.advance(q),!0;return!1};d5.prototype.eatChars=function(J,q){if(q===void 0)q=!1;var Q=this.pos;for(var Y=0,X=J;Y<X.length;Y+=1){var z=X[Y],V=this.at(Q,q);if(V===-1||V!==z)return!1;Q=this.nextIndex(Q,q)}return this.pos=Q,!0};J1.validateRegExpFlags=function(Z){var{validFlags:J,flags:q}=Z,Q=!1,Y=!1;for(var X=0;X<q.length;X++){var z=q.charAt(X);if(J.indexOf(z)===-1)this.raise(Z.start,"Invalid regular expression flag");if(q.indexOf(z,X+1)>-1)this.raise(Z.start,"Duplicate regular expression flag");if(z==="u")Q=!0;if(z==="v")Y=!0}if(this.options.ecmaVersion>=15&&Q&&Y)this.raise(Z.start,"Invalid regular expression flag")};function GN(Z){for(var J in Z)return!0;return!1}J1.validateRegExpPattern=function(Z){if(this.regexp_pattern(Z),!Z.switchN&&this.options.ecmaVersion>=9&&GN(Z.groupNames))Z.switchN=!0,this.regexp_pattern(Z)};J1.regexp_pattern=function(Z){if(Z.pos=0,Z.lastIntValue=0,Z.lastStringValue="",Z.lastAssertionIsQuantifiable=!1,Z.numCapturingParens=0,Z.maxBackReference=0,Z.groupNames=Object.create(null),Z.backReferenceNames.length=0,Z.branchID=null,this.regexp_disjunction(Z),Z.pos!==Z.source.length){if(Z.eat(41))Z.raise("Unmatched ')'");if(Z.eat(93)||Z.eat(125))Z.raise("Lone quantifier brackets")}if(Z.maxBackReference>Z.numCapturingParens)Z.raise("Invalid escape");for(var J=0,q=Z.backReferenceNames;J<q.length;J+=1){var Q=q[J];if(!Z.groupNames[Q])Z.raise("Invalid named capture referenced")}};J1.regexp_disjunction=function(Z){var J=this.options.ecmaVersion>=16;if(J)Z.branchID=new _7(Z.branchID,null);this.regexp_alternative(Z);while(Z.eat(124)){if(J)Z.branchID=Z.branchID.sibling();this.regexp_alternative(Z)}if(J)Z.branchID=Z.branchID.parent;if(this.regexp_eatQuantifier(Z,!0))Z.raise("Nothing to repeat");if(Z.eat(123))Z.raise("Lone quantifier brackets")};J1.regexp_alternative=function(Z){while(Z.pos<Z.source.length&&this.regexp_eatTerm(Z));};J1.regexp_eatTerm=function(Z){if(this.regexp_eatAssertion(Z)){if(Z.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(Z)){if(Z.switchU)Z.raise("Invalid quantifier")}return!0}if(Z.switchU?this.regexp_eatAtom(Z):this.regexp_eatExtendedAtom(Z))return this.regexp_eatQuantifier(Z),!0;return!1};J1.regexp_eatAssertion=function(Z){var J=Z.pos;if(Z.lastAssertionIsQuantifiable=!1,Z.eat(94)||Z.eat(36))return!0;if(Z.eat(92)){if(Z.eat(66)||Z.eat(98))return!0;Z.pos=J}if(Z.eat(40)&&Z.eat(63)){var q=!1;if(this.options.ecmaVersion>=9)q=Z.eat(60);if(Z.eat(61)||Z.eat(33)){if(this.regexp_disjunction(Z),!Z.eat(41))Z.raise("Unterminated group");return Z.lastAssertionIsQuantifiable=!q,!0}}return Z.pos=J,!1};J1.regexp_eatQuantifier=function(Z,J){if(J===void 0)J=!1;if(this.regexp_eatQuantifierPrefix(Z,J))return Z.eat(63),!0;return!1};J1.regexp_eatQuantifierPrefix=function(Z,J){return Z.eat(42)||Z.eat(43)||Z.eat(63)||this.regexp_eatBracedQuantifier(Z,J)};J1.regexp_eatBracedQuantifier=function(Z,J){var q=Z.pos;if(Z.eat(123)){var Q=0,Y=-1;if(this.regexp_eatDecimalDigits(Z)){if(Q=Z.lastIntValue,Z.eat(44)&&this.regexp_eatDecimalDigits(Z))Y=Z.lastIntValue;if(Z.eat(125)){if(Y!==-1&&Y<Q&&!J)Z.raise("numbers out of order in {} quantifier");return!0}}if(Z.switchU&&!J)Z.raise("Incomplete quantifier");Z.pos=q}return!1};J1.regexp_eatAtom=function(Z){return this.regexp_eatPatternCharacters(Z)||Z.eat(46)||this.regexp_eatReverseSolidusAtomEscape(Z)||this.regexp_eatCharacterClass(Z)||this.regexp_eatUncapturingGroup(Z)||this.regexp_eatCapturingGroup(Z)};J1.regexp_eatReverseSolidusAtomEscape=function(Z){var J=Z.pos;if(Z.eat(92)){if(this.regexp_eatAtomEscape(Z))return!0;Z.pos=J}return!1};J1.regexp_eatUncapturingGroup=function(Z){var J=Z.pos;if(Z.eat(40)){if(Z.eat(63)){if(this.options.ecmaVersion>=16){var q=this.regexp_eatModifiers(Z),Q=Z.eat(45);if(q||Q){for(var Y=0;Y<q.length;Y++){var X=q.charAt(Y);if(q.indexOf(X,Y+1)>-1)Z.raise("Duplicate regular expression modifiers")}if(Q){var z=this.regexp_eatModifiers(Z);if(!q&&!z&&Z.current()===58)Z.raise("Invalid regular expression modifiers");for(var V=0;V<z.length;V++){var W=z.charAt(V);if(z.indexOf(W,V+1)>-1||q.indexOf(W)>-1)Z.raise("Duplicate regular expression modifiers")}}}}if(Z.eat(58)){if(this.regexp_disjunction(Z),Z.eat(41))return!0;Z.raise("Unterminated group")}}Z.pos=J}return!1};J1.regexp_eatCapturingGroup=function(Z){if(Z.eat(40)){if(this.options.ecmaVersion>=9)this.regexp_groupSpecifier(Z);else if(Z.current()===63)Z.raise("Invalid group");if(this.regexp_disjunction(Z),Z.eat(41))return Z.numCapturingParens+=1,!0;Z.raise("Unterminated group")}return!1};J1.regexp_eatModifiers=function(Z){var J="",q=0;while((q=Z.current())!==-1&&UN(q))J+=t5(q),Z.advance();return J};function UN(Z){return Z===105||Z===109||Z===115}J1.regexp_eatExtendedAtom=function(Z){return Z.eat(46)||this.regexp_eatReverseSolidusAtomEscape(Z)||this.regexp_eatCharacterClass(Z)||this.regexp_eatUncapturingGroup(Z)||this.regexp_eatCapturingGroup(Z)||this.regexp_eatInvalidBracedQuantifier(Z)||this.regexp_eatExtendedPatternCharacter(Z)};J1.regexp_eatInvalidBracedQuantifier=function(Z){if(this.regexp_eatBracedQuantifier(Z,!0))Z.raise("Nothing to repeat");return!1};J1.regexp_eatSyntaxCharacter=function(Z){var J=Z.current();if(rV(J))return Z.lastIntValue=J,Z.advance(),!0;return!1};function rV(Z){return Z===36||Z>=40&&Z<=43||Z===46||Z===63||Z>=91&&Z<=94||Z>=123&&Z<=125}J1.regexp_eatPatternCharacters=function(Z){var J=Z.pos,q=0;while((q=Z.current())!==-1&&!rV(q))Z.advance();return Z.pos!==J};J1.regexp_eatExtendedPatternCharacter=function(Z){var J=Z.current();if(J!==-1&&J!==36&&!(J>=40&&J<=43)&&J!==46&&J!==63&&J!==91&&J!==94&&J!==124)return Z.advance(),!0;return!1};J1.regexp_groupSpecifier=function(Z){if(Z.eat(63)){if(!this.regexp_eatGroupName(Z))Z.raise("Invalid group");var J=this.options.ecmaVersion>=16,q=Z.groupNames[Z.lastStringValue];if(q)if(J)for(var Q=0,Y=q;Q<Y.length;Q+=1){var X=Y[Q];if(!X.separatedFrom(Z.branchID))Z.raise("Duplicate capture group name")}else Z.raise("Duplicate capture group name");if(J)(q||(Z.groupNames[Z.lastStringValue]=[])).push(Z.branchID);else Z.groupNames[Z.lastStringValue]=!0}};J1.regexp_eatGroupName=function(Z){if(Z.lastStringValue="",Z.eat(60)){if(this.regexp_eatRegExpIdentifierName(Z)&&Z.eat(62))return!0;Z.raise("Invalid capture group name")}return!1};J1.regexp_eatRegExpIdentifierName=function(Z){if(Z.lastStringValue="",this.regexp_eatRegExpIdentifierStart(Z)){Z.lastStringValue+=t5(Z.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(Z))Z.lastStringValue+=t5(Z.lastIntValue);return!0}return!1};J1.regexp_eatRegExpIdentifierStart=function(Z){var J=Z.pos,q=this.options.ecmaVersion>=11,Q=Z.current(q);if(Z.advance(q),Q===92&&this.regexp_eatRegExpUnicodeEscapeSequence(Z,q))Q=Z.lastIntValue;if(jN(Q))return Z.lastIntValue=Q,!0;return Z.pos=J,!1};function jN(Z){return u5(Z,!0)||Z===36||Z===95}J1.regexp_eatRegExpIdentifierPart=function(Z){var J=Z.pos,q=this.options.ecmaVersion>=11,Q=Z.current(q);if(Z.advance(q),Q===92&&this.regexp_eatRegExpUnicodeEscapeSequence(Z,q))Q=Z.lastIntValue;if(BN(Q))return Z.lastIntValue=Q,!0;return Z.pos=J,!1};function BN(Z){return B8(Z,!0)||Z===36||Z===95||Z===8204||Z===8205}J1.regexp_eatAtomEscape=function(Z){if(this.regexp_eatBackReference(Z)||this.regexp_eatCharacterClassEscape(Z)||this.regexp_eatCharacterEscape(Z)||Z.switchN&&this.regexp_eatKGroupName(Z))return!0;if(Z.switchU){if(Z.current()===99)Z.raise("Invalid unicode escape");Z.raise("Invalid escape")}return!1};J1.regexp_eatBackReference=function(Z){var J=Z.pos;if(this.regexp_eatDecimalEscape(Z)){var q=Z.lastIntValue;if(Z.switchU){if(q>Z.maxBackReference)Z.maxBackReference=q;return!0}if(q<=Z.numCapturingParens)return!0;Z.pos=J}return!1};J1.regexp_eatKGroupName=function(Z){if(Z.eat(107)){if(this.regexp_eatGroupName(Z))return Z.backReferenceNames.push(Z.lastStringValue),!0;Z.raise("Invalid named reference")}return!1};J1.regexp_eatCharacterEscape=function(Z){return this.regexp_eatControlEscape(Z)||this.regexp_eatCControlLetter(Z)||this.regexp_eatZero(Z)||this.regexp_eatHexEscapeSequence(Z)||this.regexp_eatRegExpUnicodeEscapeSequence(Z,!1)||!Z.switchU&&this.regexp_eatLegacyOctalEscapeSequence(Z)||this.regexp_eatIdentityEscape(Z)};J1.regexp_eatCControlLetter=function(Z){var J=Z.pos;if(Z.eat(99)){if(this.regexp_eatControlLetter(Z))return!0;Z.pos=J}return!1};J1.regexp_eatZero=function(Z){if(Z.current()===48&&!y7(Z.lookahead()))return Z.lastIntValue=0,Z.advance(),!0;return!1};J1.regexp_eatControlEscape=function(Z){var J=Z.current();if(J===116)return Z.lastIntValue=9,Z.advance(),!0;if(J===110)return Z.lastIntValue=10,Z.advance(),!0;if(J===118)return Z.lastIntValue=11,Z.advance(),!0;if(J===102)return Z.lastIntValue=12,Z.advance(),!0;if(J===114)return Z.lastIntValue=13,Z.advance(),!0;return!1};J1.regexp_eatControlLetter=function(Z){var J=Z.current();if(oV(J))return Z.lastIntValue=J%32,Z.advance(),!0;return!1};function oV(Z){return Z>=65&&Z<=90||Z>=97&&Z<=122}J1.regexp_eatRegExpUnicodeEscapeSequence=function(Z,J){if(J===void 0)J=!1;var q=Z.pos,Q=J||Z.switchU;if(Z.eat(117)){if(this.regexp_eatFixedHexDigits(Z,4)){var Y=Z.lastIntValue;if(Q&&Y>=55296&&Y<=56319){var X=Z.pos;if(Z.eat(92)&&Z.eat(117)&&this.regexp_eatFixedHexDigits(Z,4)){var z=Z.lastIntValue;if(z>=56320&&z<=57343)return Z.lastIntValue=(Y-55296)*1024+(z-56320)+65536,!0}Z.pos=X,Z.lastIntValue=Y}return!0}if(Q&&Z.eat(123)&&this.regexp_eatHexDigits(Z)&&Z.eat(125)&&MN(Z.lastIntValue))return!0;if(Q)Z.raise("Invalid unicode escape");Z.pos=q}return!1};function MN(Z){return Z>=0&&Z<=1114111}J1.regexp_eatIdentityEscape=function(Z){if(Z.switchU){if(this.regexp_eatSyntaxCharacter(Z))return!0;if(Z.eat(47))return Z.lastIntValue=47,!0;return!1}var J=Z.current();if(J!==99&&(!Z.switchN||J!==107))return Z.lastIntValue=J,Z.advance(),!0;return!1};J1.regexp_eatDecimalEscape=function(Z){Z.lastIntValue=0;var J=Z.current();if(J>=49&&J<=57){do Z.lastIntValue=10*Z.lastIntValue+(J-48),Z.advance();while((J=Z.current())>=48&&J<=57);return!0}return!1};var tV=0,e5=1,_5=2;J1.regexp_eatCharacterClassEscape=function(Z){var J=Z.current();if(HN(J))return Z.lastIntValue=-1,Z.advance(),e5;var q=!1;if(Z.switchU&&this.options.ecmaVersion>=9&&((q=J===80)||J===112)){Z.lastIntValue=-1,Z.advance();var Q;if(Z.eat(123)&&(Q=this.regexp_eatUnicodePropertyValueExpression(Z))&&Z.eat(125)){if(q&&Q===_5)Z.raise("Invalid property name");return Q}Z.raise("Invalid property name")}return tV};function HN(Z){return Z===100||Z===68||Z===115||Z===83||Z===119||Z===87}J1.regexp_eatUnicodePropertyValueExpression=function(Z){var J=Z.pos;if(this.regexp_eatUnicodePropertyName(Z)&&Z.eat(61)){var q=Z.lastStringValue;if(this.regexp_eatUnicodePropertyValue(Z)){var Q=Z.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(Z,q,Q),e5}}if(Z.pos=J,this.regexp_eatLoneUnicodePropertyNameOrValue(Z)){var Y=Z.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(Z,Y)}return tV};J1.regexp_validateUnicodePropertyNameAndValue=function(Z,J,q){if(!P6(Z.unicodeProperties.nonBinary,J))Z.raise("Invalid property name");if(!Z.unicodeProperties.nonBinary[J].test(q))Z.raise("Invalid property value")};J1.regexp_validateUnicodePropertyNameOrValue=function(Z,J){if(Z.unicodeProperties.binary.test(J))return e5;if(Z.switchV&&Z.unicodeProperties.binaryOfStrings.test(J))return _5;Z.raise("Invalid property name")};J1.regexp_eatUnicodePropertyName=function(Z){var J=0;Z.lastStringValue="";while(eV(J=Z.current()))Z.lastStringValue+=t5(J),Z.advance();return Z.lastStringValue!==""};function eV(Z){return oV(Z)||Z===95}J1.regexp_eatUnicodePropertyValue=function(Z){var J=0;Z.lastStringValue="";while(FN(J=Z.current()))Z.lastStringValue+=t5(J),Z.advance();return Z.lastStringValue!==""};function FN(Z){return eV(Z)||y7(Z)}J1.regexp_eatLoneUnicodePropertyNameOrValue=function(Z){return this.regexp_eatUnicodePropertyValue(Z)};J1.regexp_eatCharacterClass=function(Z){if(Z.eat(91)){var J=Z.eat(94),q=this.regexp_classContents(Z);if(!Z.eat(93))Z.raise("Unterminated character class");if(J&&q===_5)Z.raise("Negated character class may contain strings");return!0}return!1};J1.regexp_classContents=function(Z){if(Z.current()===93)return e5;if(Z.switchV)return this.regexp_classSetExpression(Z);return this.regexp_nonEmptyClassRanges(Z),e5};J1.regexp_nonEmptyClassRanges=function(Z){while(this.regexp_eatClassAtom(Z)){var J=Z.lastIntValue;if(Z.eat(45)&&this.regexp_eatClassAtom(Z)){var q=Z.lastIntValue;if(Z.switchU&&(J===-1||q===-1))Z.raise("Invalid character class");if(J!==-1&&q!==-1&&J>q)Z.raise("Range out of order in character class")}}};J1.regexp_eatClassAtom=function(Z){var J=Z.pos;if(Z.eat(92)){if(this.regexp_eatClassEscape(Z))return!0;if(Z.switchU){var q=Z.current();if(q===99||qW(q))Z.raise("Invalid class escape");Z.raise("Invalid escape")}Z.pos=J}var Q=Z.current();if(Q!==93)return Z.lastIntValue=Q,Z.advance(),!0;return!1};J1.regexp_eatClassEscape=function(Z){var J=Z.pos;if(Z.eat(98))return Z.lastIntValue=8,!0;if(Z.switchU&&Z.eat(45))return Z.lastIntValue=45,!0;if(!Z.switchU&&Z.eat(99)){if(this.regexp_eatClassControlLetter(Z))return!0;Z.pos=J}return this.regexp_eatCharacterClassEscape(Z)||this.regexp_eatCharacterEscape(Z)};J1.regexp_classSetExpression=function(Z){var J=e5,q;if(this.regexp_eatClassSetRange(Z));else if(q=this.regexp_eatClassSetOperand(Z)){if(q===_5)J=_5;var Q=Z.pos;while(Z.eatChars([38,38])){if(Z.current()!==38&&(q=this.regexp_eatClassSetOperand(Z))){if(q!==_5)J=e5;continue}Z.raise("Invalid character in character class")}if(Q!==Z.pos)return J;while(Z.eatChars([45,45])){if(this.regexp_eatClassSetOperand(Z))continue;Z.raise("Invalid character in character class")}if(Q!==Z.pos)return J}else Z.raise("Invalid character in character class");for(;;){if(this.regexp_eatClassSetRange(Z))continue;if(q=this.regexp_eatClassSetOperand(Z),!q)return J;if(q===_5)J=_5}};J1.regexp_eatClassSetRange=function(Z){var J=Z.pos;if(this.regexp_eatClassSetCharacter(Z)){var q=Z.lastIntValue;if(Z.eat(45)&&this.regexp_eatClassSetCharacter(Z)){var Q=Z.lastIntValue;if(q!==-1&&Q!==-1&&q>Q)Z.raise("Range out of order in character class");return!0}Z.pos=J}return!1};J1.regexp_eatClassSetOperand=function(Z){if(this.regexp_eatClassSetCharacter(Z))return e5;return this.regexp_eatClassStringDisjunction(Z)||this.regexp_eatNestedClass(Z)};J1.regexp_eatNestedClass=function(Z){var J=Z.pos;if(Z.eat(91)){var q=Z.eat(94),Q=this.regexp_classContents(Z);if(Z.eat(93)){if(q&&Q===_5)Z.raise("Negated character class may contain strings");return Q}Z.pos=J}if(Z.eat(92)){var Y=this.regexp_eatCharacterClassEscape(Z);if(Y)return Y;Z.pos=J}return null};J1.regexp_eatClassStringDisjunction=function(Z){var J=Z.pos;if(Z.eatChars([92,113])){if(Z.eat(123)){var q=this.regexp_classStringDisjunctionContents(Z);if(Z.eat(125))return q}else Z.raise("Invalid escape");Z.pos=J}return null};J1.regexp_classStringDisjunctionContents=function(Z){var J=this.regexp_classString(Z);while(Z.eat(124))if(this.regexp_classString(Z)===_5)J=_5;return J};J1.regexp_classString=function(Z){var J=0;while(this.regexp_eatClassSetCharacter(Z))J++;return J===1?e5:_5};J1.regexp_eatClassSetCharacter=function(Z){var J=Z.pos;if(Z.eat(92)){if(this.regexp_eatCharacterEscape(Z)||this.regexp_eatClassSetReservedPunctuator(Z))return!0;if(Z.eat(98))return Z.lastIntValue=8,!0;return Z.pos=J,!1}var q=Z.current();if(q<0||q===Z.lookahead()&&LN(q))return!1;if(wN(q))return!1;return Z.advance(),Z.lastIntValue=q,!0};function LN(Z){return Z===33||Z>=35&&Z<=38||Z>=42&&Z<=44||Z===46||Z>=58&&Z<=64||Z===94||Z===96||Z===126}function wN(Z){return Z===40||Z===41||Z===45||Z===47||Z>=91&&Z<=93||Z>=123&&Z<=125}J1.regexp_eatClassSetReservedPunctuator=function(Z){var J=Z.current();if(ON(J))return Z.lastIntValue=J,Z.advance(),!0;return!1};function ON(Z){return Z===33||Z===35||Z===37||Z===38||Z===44||Z===45||Z>=58&&Z<=62||Z===64||Z===96||Z===126}J1.regexp_eatClassControlLetter=function(Z){var J=Z.current();if(y7(J)||J===95)return Z.lastIntValue=J%32,Z.advance(),!0;return!1};J1.regexp_eatHexEscapeSequence=function(Z){var J=Z.pos;if(Z.eat(120)){if(this.regexp_eatFixedHexDigits(Z,2))return!0;if(Z.switchU)Z.raise("Invalid escape");Z.pos=J}return!1};J1.regexp_eatDecimalDigits=function(Z){var J=Z.pos,q=0;Z.lastIntValue=0;while(y7(q=Z.current()))Z.lastIntValue=10*Z.lastIntValue+(q-48),Z.advance();return Z.pos!==J};function y7(Z){return Z>=48&&Z<=57}J1.regexp_eatHexDigits=function(Z){var J=Z.pos,q=0;Z.lastIntValue=0;while(ZW(q=Z.current()))Z.lastIntValue=16*Z.lastIntValue+JW(q),Z.advance();return Z.pos!==J};function ZW(Z){return Z>=48&&Z<=57||Z>=65&&Z<=70||Z>=97&&Z<=102}function JW(Z){if(Z>=65&&Z<=70)return 10+(Z-65);if(Z>=97&&Z<=102)return 10+(Z-97);return Z-48}J1.regexp_eatLegacyOctalEscapeSequence=function(Z){if(this.regexp_eatOctalDigit(Z)){var J=Z.lastIntValue;if(this.regexp_eatOctalDigit(Z)){var q=Z.lastIntValue;if(J<=3&&this.regexp_eatOctalDigit(Z))Z.lastIntValue=J*64+q*8+Z.lastIntValue;else Z.lastIntValue=J*8+q}else Z.lastIntValue=J;return!0}return!1};J1.regexp_eatOctalDigit=function(Z){var J=Z.current();if(qW(J))return Z.lastIntValue=J-48,Z.advance(),!0;return Z.lastIntValue=0,!1};function qW(Z){return Z>=48&&Z<=55}J1.regexp_eatFixedHexDigits=function(Z,J){var q=Z.pos;Z.lastIntValue=0;for(var Q=0;Q<J;++Q){var Y=Z.current();if(!ZW(Y))return Z.pos=q,!1;Z.lastIntValue=16*Z.lastIntValue+JW(Y),Z.advance()}return!0};var r3=function(J){if(this.type=J.type,this.value=J.value,this.start=J.start,this.end=J.end,J.options.locations)this.loc=new D7(J,J.startLoc,J.endLoc);if(J.options.ranges)this.range=[J.start,J.end]},M1=p1.prototype;M1.next=function(Z){if(!Z&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new r3(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};M1.getToken=function(){return this.next(),new r3(this)};if(typeof Symbol<"u")M1[Symbol.iterator]=function(){var Z=this;return{next:function(){var J=Z.getToken();return{done:J.type===w.eof,value:J}}}};M1.nextToken=function(){var Z=this.curContext();if(!Z||!Z.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(w.eof);if(Z.override)return Z.override(this);else this.readToken(this.fullCharCodeAtPos())};M1.readToken=function(Z){if(u5(Z,this.options.ecmaVersion>=6)||Z===92)return this.readWord();return this.getTokenFromCode(Z)};M1.fullCharCodeAt=function(Z){var J=this.input.charCodeAt(Z);if(J<=55295||J>=56320)return J;var q=this.input.charCodeAt(Z+1);return q<=56319||q>=57344?J:(J<<10)+q-56613888};M1.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};M1.skipBlockComment=function(){var Z=this.options.onComment&&this.curPosition(),J=this.pos,q=this.input.indexOf("*/",this.pos+=2);if(q===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=q+2,this.options.locations)for(var Q=void 0,Y=J;(Q=_V(this.input,Y,this.pos))>-1;)++this.curLine,Y=this.lineStart=Q;if(this.options.onComment)this.options.onComment(!0,this.input.slice(J+2,q),J,this.pos,Z,this.curPosition())};M1.skipLineComment=function(Z){var J=this.pos,q=this.options.onComment&&this.curPosition(),Q=this.input.charCodeAt(this.pos+=Z);while(this.pos<this.input.length&&!A6(Q))Q=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(J+Z,this.pos),J,this.pos,q,this.curPosition())};M1.skipSpace=function(){Z:while(this.pos<this.input.length){var Z=this.input.charCodeAt(this.pos);switch(Z){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10)++this.pos;case 10:case 8232:case 8233:if(++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 Z}break;default:if(Z>8&&Z<14||Z>=5760&&DV.test(String.fromCharCode(Z)))++this.pos;else break Z}}};M1.finishToken=function(Z,J){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var q=this.type;this.type=Z,this.value=J,this.updateContext(q)};M1.readToken_dot=function(){var Z=this.input.charCodeAt(this.pos+1);if(Z>=48&&Z<=57)return this.readNumber(!0);var J=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&Z===46&&J===46)return this.pos+=3,this.finishToken(w.ellipsis);else return++this.pos,this.finishToken(w.dot)};M1.readToken_slash=function(){var Z=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(Z===61)return this.finishOp(w.assign,2);return this.finishOp(w.slash,1)};M1.readToken_mult_modulo_exp=function(Z){var J=this.input.charCodeAt(this.pos+1),q=1,Q=Z===42?w.star:w.modulo;if(this.options.ecmaVersion>=7&&Z===42&&J===42)++q,Q=w.starstar,J=this.input.charCodeAt(this.pos+2);if(J===61)return this.finishOp(w.assign,q+1);return this.finishOp(Q,q)};M1.readToken_pipe_amp=function(Z){var J=this.input.charCodeAt(this.pos+1);if(J===Z){if(this.options.ecmaVersion>=12){var q=this.input.charCodeAt(this.pos+2);if(q===61)return this.finishOp(w.assign,3)}return this.finishOp(Z===124?w.logicalOR:w.logicalAND,2)}if(J===61)return this.finishOp(w.assign,2);return this.finishOp(Z===124?w.bitwiseOR:w.bitwiseAND,1)};M1.readToken_caret=function(){var Z=this.input.charCodeAt(this.pos+1);if(Z===61)return this.finishOp(w.assign,2);return this.finishOp(w.bitwiseXOR,1)};M1.readToken_plus_min=function(Z){var J=this.input.charCodeAt(this.pos+1);if(J===Z){if(J===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||K5.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(w.incDec,2)}if(J===61)return this.finishOp(w.assign,2);return this.finishOp(w.plusMin,1)};M1.readToken_lt_gt=function(Z){var J=this.input.charCodeAt(this.pos+1),q=1;if(J===Z){if(q=Z===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+q)===61)return this.finishOp(w.assign,q+1);return this.finishOp(w.bitShift,q)}if(J===33&&Z===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45)return this.skipLineComment(4),this.skipSpace(),this.nextToken();if(J===61)q=2;return this.finishOp(w.relational,q)};M1.readToken_eq_excl=function(Z){var J=this.input.charCodeAt(this.pos+1);if(J===61)return this.finishOp(w.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(Z===61&&J===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(w.arrow);return this.finishOp(Z===61?w.eq:w.prefix,1)};M1.readToken_question=function(){var Z=this.options.ecmaVersion;if(Z>=11){var J=this.input.charCodeAt(this.pos+1);if(J===46){var q=this.input.charCodeAt(this.pos+2);if(q<48||q>57)return this.finishOp(w.questionDot,2)}if(J===63){if(Z>=12){var Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(w.assign,3)}return this.finishOp(w.coalesce,2)}}return this.finishOp(w.question,1)};M1.readToken_numberSign=function(){var Z=this.options.ecmaVersion,J=35;if(Z>=13){if(++this.pos,J=this.fullCharCodeAtPos(),u5(J,!0)||J===92)return this.finishToken(w.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+t5(J)+"'")};M1.getTokenFromCode=function(Z){switch(Z){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(w.parenL);case 41:return++this.pos,this.finishToken(w.parenR);case 59:return++this.pos,this.finishToken(w.semi);case 44:return++this.pos,this.finishToken(w.comma);case 91:return++this.pos,this.finishToken(w.bracketL);case 93:return++this.pos,this.finishToken(w.bracketR);case 123:return++this.pos,this.finishToken(w.braceL);case 125:return++this.pos,this.finishToken(w.braceR);case 58:return++this.pos,this.finishToken(w.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(w.backQuote);case 48:var J=this.input.charCodeAt(this.pos+1);if(J===120||J===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(J===111||J===79)return this.readRadixNumber(8);if(J===98||J===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(Z);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(Z);case 124:case 38:return this.readToken_pipe_amp(Z);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(Z);case 60:case 62:return this.readToken_lt_gt(Z);case 61:case 33:return this.readToken_eq_excl(Z);case 63:return this.readToken_question();case 126:return this.finishOp(w.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+t5(Z)+"'")};M1.finishOp=function(Z,J){var q=this.input.slice(this.pos,this.pos+J);return this.pos+=J,this.finishToken(Z,q)};M1.readRegexp=function(){var Z,J,q=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(q,"Unterminated regular expression");var Q=this.input.charAt(this.pos);if(K5.test(Q))this.raise(q,"Unterminated regular expression");if(!Z){if(Q==="[")J=!0;else if(Q==="]"&&J)J=!1;else if(Q==="/"&&!J)break;Z=Q==="\\"}else Z=!1;++this.pos}var Y=this.input.slice(q,this.pos);++this.pos;var X=this.pos,z=this.readWord1();if(this.containsEsc)this.unexpected(X);var V=this.regexpState||(this.regexpState=new d5(this));V.reset(q,Y,z),this.validateRegExpFlags(V),this.validateRegExpPattern(V);var W=null;try{W=new RegExp(Y,z)}catch(K){}return this.finishToken(w.regexp,{pattern:Y,flags:z,value:W})};M1.readInt=function(Z,J,q){var Q=this.options.ecmaVersion>=12&&J===void 0,Y=q&&this.input.charCodeAt(this.pos)===48,X=this.pos,z=0,V=0;for(var W=0,K=J==null?1/0:J;W<K;++W,++this.pos){var $=this.input.charCodeAt(this.pos),H=void 0;if(Q&&$===95){if(Y)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(V===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(W===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");V=$;continue}if($>=97)H=$-97+10;else if($>=65)H=$-65+10;else if($>=48&&$<=57)H=$-48;else H=1/0;if(H>=Z)break;V=$,z=z*Z+H}if(Q&&V===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===X||J!=null&&this.pos-X!==J)return null;return z};function NN(Z,J){if(J)return parseInt(Z,8);return parseFloat(Z.replace(/_/g,""))}function QW(Z){if(typeof BigInt!=="function")return null;return BigInt(Z.replace(/_/g,""))}M1.readRadixNumber=function(Z){var J=this.pos;this.pos+=2;var q=this.readInt(Z);if(q==null)this.raise(this.start+2,"Expected number in radix "+Z);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)q=QW(this.input.slice(J,this.pos)),++this.pos;else if(u5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(w.num,q)};M1.readNumber=function(Z){var J=this.pos;if(!Z&&this.readInt(10,void 0,!0)===null)this.raise(J,"Invalid number");var q=this.pos-J>=2&&this.input.charCodeAt(J)===48;if(q&&this.strict)this.raise(J,"Invalid number");var Q=this.input.charCodeAt(this.pos);if(!q&&!Z&&this.options.ecmaVersion>=11&&Q===110){var Y=QW(this.input.slice(J,this.pos));if(++this.pos,u5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(w.num,Y)}if(q&&/[89]/.test(this.input.slice(J,this.pos)))q=!1;if(Q===46&&!q)++this.pos,this.readInt(10),Q=this.input.charCodeAt(this.pos);if((Q===69||Q===101)&&!q){if(Q=this.input.charCodeAt(++this.pos),Q===43||Q===45)++this.pos;if(this.readInt(10)===null)this.raise(J,"Invalid number")}if(u5(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var X=NN(this.input.slice(J,this.pos),q);return this.finishToken(w.num,X)};M1.readCodePoint=function(){var Z=this.input.charCodeAt(this.pos),J;if(Z===123){if(this.options.ecmaVersion<6)this.unexpected();var q=++this.pos;if(J=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,J>1114111)this.invalidStringToken(q,"Code point out of bounds")}else J=this.readHexChar(4);return J};M1.readString=function(Z){var J="",q=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var Q=this.input.charCodeAt(this.pos);if(Q===Z)break;if(Q===92)J+=this.input.slice(q,this.pos),J+=this.readEscapedChar(!1),q=this.pos;else if(Q===8232||Q===8233){if(this.options.ecmaVersion<10)this.raise(this.start,"Unterminated string constant");if(++this.pos,this.options.locations)this.curLine++,this.lineStart=this.pos}else{if(A6(Q))this.raise(this.start,"Unterminated string constant");++this.pos}}return J+=this.input.slice(q,this.pos++),this.finishToken(w.string,J)};var YW={};M1.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(Z){if(Z===YW)this.readInvalidTemplateToken();else throw Z}this.inTemplateElement=!1};M1.invalidStringToken=function(Z,J){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw YW;else this.raise(Z,J)};M1.readTmplToken=function(){var Z="",J=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var q=this.input.charCodeAt(this.pos);if(q===96||q===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===w.template||this.type===w.invalidTemplate))if(q===36)return this.pos+=2,this.finishToken(w.dollarBraceL);else return++this.pos,this.finishToken(w.backQuote);return Z+=this.input.slice(J,this.pos),this.finishToken(w.template,Z)}if(q===92)Z+=this.input.slice(J,this.pos),Z+=this.readEscapedChar(!0),J=this.pos;else if(A6(q)){switch(Z+=this.input.slice(J,this.pos),++this.pos,q){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:Z+=`
|
|
76
|
+
`;break;default:Z+=String.fromCharCode(q);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;J=this.pos}else++this.pos}};M1.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(w.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]===`
|
|
77
77
|
`)++this.pos;case`
|
|
78
|
-
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};
|
|
79
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return
|
|
80
|
-
`),
|
|
81
|
-
`)}async function
|
|
82
|
-
* `)}function
|
|
83
|
-
* ${Z.replace(
|
|
78
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};M1.readEscapedChar=function(Z){var J=this.input.charCodeAt(++this.pos);switch(++this.pos,J){case 110:return`
|
|
79
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return t5(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(Z){var q=this.pos-1;this.invalidStringToken(q,"Invalid escape sequence in template string")}default:if(J>=48&&J<=55){var Q=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],Y=parseInt(Q,8);if(Y>255)Q=Q.slice(0,-1),Y=parseInt(Q,8);if(this.pos+=Q.length-1,J=this.input.charCodeAt(this.pos),(Q!=="0"||J===56||J===57)&&(this.strict||Z))this.invalidStringToken(this.pos-1-Q.length,Z?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(Y)}if(A6(J)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(J)}};M1.readHexChar=function(Z){var J=this.pos,q=this.readInt(16,Z);if(q===null)this.invalidStringToken(J,"Bad character escape sequence");return q};M1.readWord1=function(){this.containsEsc=!1;var Z="",J=!0,q=this.pos,Q=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var Y=this.fullCharCodeAtPos();if(B8(Y,Q))this.pos+=Y<=65535?1:2;else if(Y===92){this.containsEsc=!0,Z+=this.input.slice(q,this.pos);var X=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var z=this.readCodePoint();if(!(J?u5:B8)(z,Q))this.invalidStringToken(X,"Invalid Unicode escape");Z+=t5(z),q=this.pos}else break;J=!1}return Z+this.input.slice(q,this.pos)};M1.readWord=function(){var Z=this.readWord1(),J=w.name;if(this.keywords.test(Z))J=c3[Z];return this.finishToken(J,Z)};var RN="8.16.0";p1.acorn={Parser:p1,version:RN,defaultOptions:m3,Position:h0,SourceLocation:D7,getLineInfo:AV,Node:S7,TokenType:I1,tokTypes:w,keywordTypes:c3,TokContext:E5,tokContexts:b1,isIdentifierChar:B8,isIdentifierStart:u5,Token:r3,isNewLine:A6,lineBreak:K5,lineBreakG:pO,nonASCIIwhitespace:DV};function XW(Z,J){return p1.parse(Z,J)}import{sep as zW}from"node:path";function H8(Z){return zW==="/"?Z:Z.split(zW).join("/")}import{existsSync as WW,readFileSync as CN}from"node:fs";import{dirname as o3,isAbsolute as IN,join as _N,relative as DN,resolve as b7}from"node:path";var E7=new Map,VW=new Map,TN=/\/\*[\s\S]*?\*\/|\/\/.*/g,AN=/[.+?^${}()|[\]\\]/g;function PN(Z){let J=Z,q=b7(J,"/");while(J!==q){for(let Q of["tsconfig.json","jsconfig.json"]){let Y=_N(J,Q);if(WW(Y))return Y}J=o3(J)}return null}function KW(Z){if(E7.has(Z))return E7.get(Z)??null;try{let q=CN(Z,"utf-8").replace(TN,""),Q=JSON.parse(q);if(Q.extends){let Y=IN(Q.extends)?Q.extends:b7(o3(Z),Q.extends),X=Y.endsWith(".json")?Y:`${Y}.json`;if(WW(X)){let z=KW(X);if(z)Q.compilerOptions={...z.compilerOptions,...Q.compilerOptions,paths:{...z.compilerOptions?.paths,...Q.compilerOptions?.paths}}}}return E7.set(Z,Q),Q}catch{return E7.set(Z,null),null}}function t3(Z,J){if(Z.startsWith(".")||Z.startsWith("/"))return Z;let q=PN(J);if(!q)return Z;let Q=KW(q);if(!Q?.compilerOptions?.paths)return Z;let{baseUrl:Y=".",paths:X}=Q.compilerOptions,z=o3(q),V=b7(z,Y);for(let[W,K]of Object.entries(X)){let $=VW.get(W);if(!$){let M=W.split("*").map((O)=>O.replace(AN,"\\$&")).join("(.*)");$=new RegExp(`^${M}$`),VW.set(W,$)}let H=Z.match($);if(H){let M=K[0];if(!M)continue;let O=M;for(let L=1;L<H.length;L++)O=O.replace("*",H[L]);return b7(V,O)}}return Z}function u0(Z,J){if(Z.startsWith(".")||Z.startsWith("/"))return Z;let q=t3(Z,J);if(q===Z)return Z;let Q=DN(J,q);return Q=H8(Q),Q.startsWith(".")?Q:`./${Q}`}var GW=new Map;function e3(Z,J){let q=GW.get(Z);if(!q)q=XW(Z,{ecmaVersion:"latest",sourceType:"module"}),GW.set(Z,q);let Q={};for(let Y of q.body)if(Y.type==="ExportDefaultDeclaration"){let X=Y.declaration.name;if(X in Q)Q[X].default=!0;else Q[X]={source:"",default:!0}}else if(Y.type==="ExportAllDeclaration"){if(!Y.source)continue;let X=t3(Y.source.value,J),z=xN(J,X);if(!SN(z).isFile()){let K=yN(z);for(let $ of K)if($.includes("index")){z=$W(z,$);break}}let V=EN(z,"utf-8"),W=e3(V,bN(z));for(let[K,$]of Object.entries(W)){let H=H8(`./${$W(Y.source.value,$.source)}`);Q[K]={...$,source:H}}}else if(Y.type==="ExportNamedDeclaration")for(let X of Y.specifiers){let z=X.exported.name,V=X.local.name,W=z||V;if(W in Q){if(Y.type==="ExportNamedDeclaration")Q[W].mixed=!0;if(!Q[W].source)Q[W].source=u0(Y.source?.value??"",J)}else Q[W]={source:u0(Y.source?.value??"",J),default:V==="default"}}else if(Y.type==="ImportDeclaration"){let X=Y.specifiers[0].local.name;if(X in Q){if(!Q[X].source)Q[X].source=u0(Y.source?.value??"",J)}else Q[X]={source:u0(Y.source?.value??"",J),default:X==="default"}}return Q}import d0 from"node:path";import{mkdir as kN,writeFile as fN}from"node:fs/promises";import{parse as vN}from"node:path";import{format as hN}from"prettier";class y6{options;constructor(Z){this.options=Z}async format(Z){try{return await hN(Z,this.options)}catch(J){return console.error(J),Z}}async write(Z,J){await kN(vN(Z).dir,{recursive:!0}),await fN(Z,await this.format(J))}}function ZJ(){return new y6({parser:"json",printWidth:80})}function UW(){return new y6({parser:"typescript",printWidth:80})}function jW(Z,J){return Array.from(Z,([q,Q])=>({...Q,filePath:H8(d0.join(J,d0.normalize(Q.filePath)))})).sort((q,Q)=>q.moduleName.localeCompare(Q.moduleName))}async function gN(Z,J){let q=jW(Z,J.inputDir);await Promise.all(q.map((Q)=>{let Y=d0.resolve(d0.join(J.outDir||"",`${Q.moduleName}.api.json`)),X=ZJ();return console.log(`created ${Y}"
|
|
80
|
+
`),X.write(Y,JSON.stringify(Q))}))}async function mN(Z,J){let q={total:Z.size,components:jW(Z,J.inputDir)},Q=d0.join(process.cwd(),J.outFile);await ZJ().write(Q,JSON.stringify(q)),console.log(`created "${J.outFile}".
|
|
81
|
+
`)}async function JJ(Z,J){if(J.outDir)await gN(Z,J);else await mN(Z,J)}import{join as zR}from"node:path";var uN=/(-|\s+|:)/,dN=/("|')/,lN=/CustomEvent/,cN=/^[A-Z]/,pN=/\n/,BW=/=>/,MW=/\n/g,iN=/\s+/g;function HW(Z){if(!Z)return;return Z.replace(MW,`
|
|
82
|
+
* `)}function g8(Z){if(!Z)return"";return`/** ${Z} */`}function QJ(Z){if(!Z)return"";return`/**
|
|
83
|
+
* ${Z.replace(MW,`
|
|
84
84
|
* `)}
|
|
85
|
-
*/`}function
|
|
86
|
-
`}function
|
|
87
|
-
`:""}export ${
|
|
85
|
+
*/`}function k7(Z){if(Z===void 0)return"any";return`${Z}
|
|
86
|
+
`}function f7(Z){if(Z.typedefs.length===0)return"";return Z.typedefs.map((J)=>{return`${J.description?`${QJ(J.description)}
|
|
87
|
+
`:""}export ${J.ts}`}).join(`
|
|
88
88
|
|
|
89
|
-
`)}function
|
|
90
|
-
`:""
|
|
91
|
-
`),
|
|
92
|
-
`:"",V=
|
|
89
|
+
`)}function FW(Z){if(!Z.contexts||Z.contexts.length===0)return"";let J=Z.generics?Z.generics[0]:null,q=Z.generics?Z.generics[1]:null;return Z.contexts.map((Q)=>{let Y=Q.properties.map((W)=>{let K=W.description?`${g8(W.description)}
|
|
90
|
+
`:"",$=W.optional?"?":"";return`${K}${W.name}${$}: ${W.type};`}).join(`
|
|
91
|
+
`),X=Q.description?`${QJ(Q.description)}
|
|
92
|
+
`:"",V=J&&Q.properties.some((W)=>W.type.includes(J))&&q?`<${q}>`:"";if(Q.properties.length===0)return`${X}export type ${Q.typeName} = Record<string, never>;`;return`${X}export type ${Q.typeName}${V} = {
|
|
93
93
|
${Y}
|
|
94
94
|
};`}).join(`
|
|
95
95
|
|
|
96
|
-
`)}function
|
|
97
|
-
`}function
|
|
98
|
-
${Z}*/`:""}function
|
|
99
|
-
`].filter(Boolean).join(""),
|
|
100
|
-
${
|
|
101
|
-
${M.name}${M.isRequired?"":"?"}: ${
|
|
102
|
-
`:"",
|
|
103
|
-
${
|
|
104
|
-
`:"",
|
|
105
|
-
${M}children?: ${
|
|
106
|
-
`),W=`${Z.moduleName}Props`,K=""
|
|
107
|
-
`)?`${
|
|
108
|
-
`:`${
|
|
96
|
+
`)}function x7(Z){if(uN.test(Z))return dN.test(Z)?Z:`"${Z}"`;return Z}function qJ(Z,J){if(!Z)return;return`* ${J||Z}
|
|
97
|
+
`}function LW(Z){return[qJ(HW(Z))].filter(Boolean).join("")}function YJ(Z){return Z.length>0?`/**
|
|
98
|
+
${Z}*/`:""}function nN(Z){let J=new Set(Z.props.filter((M)=>!M.isFunctionDeclaration&&M.kind!=="const").map((M)=>M.name)),q=Z.props.filter((M)=>!M.isFunctionDeclaration&&M.kind!=="const").map((M)=>{let O=M.value;if(typeof M.value==="string")O=M.value.replace(iN," ");if(M.value===void 0)O="undefined";let j=[qJ(HW(M.description)),qJ(M.constant,"@constant"),M.isFunction?null:`* @default ${O}
|
|
99
|
+
`].filter(Boolean).join(""),L=M.constant&&!M.isFunction?M.value:M.type;return`
|
|
100
|
+
${YJ(j)}
|
|
101
|
+
${M.name}${M.isRequired?"":"?"}: ${L};`}),Q=(Z.slots||[]).filter((M)=>!M.default&&M.name!=null&&!J.has(M.name)).map((M)=>{let O=M.name,j=x7(O),L=M.description?`${g8(M.description)}
|
|
102
|
+
`:"",y=M.slot_props&&M.slot_props!=="Record<string, never>"?`(this: void, ...args: [${M.slot_props}]) => void`:"(this: void) => void";return`
|
|
103
|
+
${L}${j}?: ${y};`}),Y=(Z.slots||[]).find((M)=>M.default||M.name===null),X=Y&&!J.has("children")?(()=>{let M=Y.description?`${g8(Y.description)}
|
|
104
|
+
`:"",j=Y.slot_props&&Y.slot_props!=="Record<string, never>"?`(this: void, ...args: [${Y.slot_props}]) => void`:"(this: void) => void";return`
|
|
105
|
+
${M}children?: ${j};`})():"",z=[...Q,X].filter(Boolean),V=[...q,...z].join(`
|
|
106
|
+
`),W=`${Z.moduleName}Props`,K="",$=Z.generics?`<${Z.generics[1]}>`:"",H=Z.generics?`<${Z.generics[0]}>`:"";if(Z.rest_props?.type==="Element"){let M;if(Z.rest_props.name==="svelte:element")if(Z.rest_props.thisValue)M=`SvelteHTMLElements["${Z.rest_props.thisValue}"]`;else M="HTMLAttributes<HTMLElement>";else M=Z.rest_props.name.split("|").map((L)=>{return`SvelteHTMLElements["${L.trim()}"]`}).join("&");let O="[key: `data-${string}`]: unknown;",j=Z.rest_props.description?Z.rest_props.description.includes(`
|
|
107
|
+
`)?`${QJ(Z.rest_props.description)}
|
|
108
|
+
`:`${g8(Z.rest_props.description)}
|
|
109
109
|
`:"";if(Z.extends===void 0)K=`
|
|
110
|
-
${
|
|
110
|
+
${j}${M?`type $RestProps = ${M};
|
|
111
111
|
`:""}
|
|
112
|
-
type $Props${
|
|
112
|
+
type $Props${$} = {
|
|
113
113
|
${V}
|
|
114
114
|
|
|
115
|
-
${
|
|
115
|
+
${O}
|
|
116
116
|
};
|
|
117
117
|
|
|
118
|
-
export type ${W}${
|
|
118
|
+
export type ${W}${$} = Omit<$RestProps, keyof $Props${H}> & $Props${H};
|
|
119
119
|
`;else K=`
|
|
120
|
-
${
|
|
120
|
+
${j}${M?`type $RestProps = ${M};
|
|
121
121
|
`:""}
|
|
122
|
-
type $Props${
|
|
122
|
+
type $Props${$} = {
|
|
123
123
|
${V}
|
|
124
124
|
|
|
125
|
-
${
|
|
125
|
+
${O}
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export type ${W}${
|
|
128
|
+
export type ${W}${$} = Omit<$RestProps, keyof ($Props${H} & ${Z.extends.interface})> & $Props${H} & ${Z.extends.interface};
|
|
129
129
|
`}else if(V.trim()===""&&Z.extends===void 0)K=`
|
|
130
|
-
export type ${W}${
|
|
130
|
+
export type ${W}${$} = Record<string, never>;
|
|
131
131
|
`;else K=`
|
|
132
|
-
export type ${W}${
|
|
132
|
+
export type ${W}${$} = ${Z.extends===void 0?"":`${Z.extends.interface} & `} {
|
|
133
133
|
${V}
|
|
134
134
|
}
|
|
135
|
-
`;return{props_name:W,prop_def:K}}function
|
|
136
|
-
`:""}${
|
|
137
|
-
`)}}`}var
|
|
138
|
-
`;let
|
|
139
|
-
`}).join("")}}`}function
|
|
140
|
-
${
|
|
141
|
-
${
|
|
142
|
-
`)}function
|
|
143
|
-
`).map((
|
|
135
|
+
`;return{props_name:W,prop_def:K}}function aN(Z){if(Z.slots.length===0)return"Record<string, never>";return`{${Z.slots.map(({name:q,slot_props:Q,...Y})=>{let X=Y.default||q===null?"default":x7(q??"");return`${Y.description?`${g8(Y.description)}
|
|
136
|
+
`:""}${x7(X)}: ${k7(Q)};`}).join(`
|
|
137
|
+
`)}}`}var sN=()=>{return"WindowEventMap"},rN=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave","contextmenu","wheel","keydown","keyup","keypress","submit","change","input","focus","blur","focusin","focusout","reset","select","touchstart","touchend","touchmove","touchcancel","drag","dragstart","dragend","dragover","dragenter","dragleave","drop","pointerdown","pointerup","pointermove","pointerover","pointerout","pointerenter","pointerleave","pointercancel","gotpointercapture","lostpointercapture","play","pause","ended","volumechange","timeupdate","loadeddata","loadedmetadata","canplay","canplaythrough","seeking","seeked","playing","waiting","stalled","suspend","abort","error","emptied","ratechange","durationchange","loadstart","progress","loadend","animationstart","animationend","animationiteration","animationcancel","transitionstart","transitionend","transitionrun","transitioncancel","scroll","resize","load","unload","beforeunload","cut","copy","paste","compositionstart","compositionupdate","compositionend"]);function oN(Z){let J=(Y="any")=>{if(lN.test(Y))return Y;return`CustomEvent<${Y}>`},q=(Y)=>{return rN.has(Y)};if(Z.events.length===0)return"Record<string, any>";return`{${Z.events.map((Y)=>{let X="";if(Y.description)X=`${g8(Y.description)}
|
|
138
|
+
`;let z;if(Y.type==="dispatched")z=J(Y.detail);else{let V=typeof Y.element==="string"?Y.element:Y.element.name,K=!(V&&cN.test(V))||q(Y.name),$=Y.detail!==void 0&&Y.detail!=="undefined"&&!(Y.detail==="null"&&K),H=Y.detail==="null"&&!K;if($||H)z=J(Y.detail);else if(K)z=`${sN()}["${Y.name}"]`;else z=J()}return`${X}${x7(Y.name)}: ${z};
|
|
139
|
+
`}).join("")}}`}function tN(Z){let J=Z.type==="() => any";if(Z.type&&BW.test(Z.type)&&!J)return Z.type;else if(Z.params&&Z.params.length>0){let Q=Z.params.map((X)=>{let z=X.optional?"?":"";return`${X.name}${z}: ${X.type}`}).join(", "),Y=Z.returnType||"any";return`(${Q}) => ${Y}`}else if(Z.returnType)return`() => ${Z.returnType}`;else return Z.type||"any"}function eN(Z){return Z.props.filter((J)=>J.isFunctionDeclaration||J.kind==="const").map((J)=>{let q=LW(J.description),Q=tN(J);return`
|
|
140
|
+
${YJ(q)}
|
|
141
|
+
${J.name}: ${Q};`}).join(`
|
|
142
|
+
`)}function ZR(Z){if(Z.extends===void 0)return"";return`import type { ${Z.extends.interface} } from ${Z.extends.import};`}function JR(Z){if(!Z.componentComment)return"";if(!pN.test(Z.componentComment))return g8(Z.componentComment.trim());return`/*${Z.componentComment.split(`
|
|
143
|
+
`).map((J)=>`* ${J}`).join(`
|
|
144
144
|
`)}
|
|
145
|
-
*/`}function
|
|
146
|
-
`;else if(
|
|
147
|
-
`;else Q=`export type ${
|
|
148
|
-
${
|
|
145
|
+
*/`}function qR(Z){return Z.moduleExports.map((J)=>{let q=LW(J.description),Q,Y=J.type&&BW.test(J.type),X=J.type==="() => any";if(J.kind==="const"&&!Y)Q=`export declare const ${J.name}: ${J.type||"any"};
|
|
146
|
+
`;else if(J.params&&J.params.length>0){let V=J.params.map((K)=>{let $=K.optional?"?":"";return`${K.name}${$}: ${K.type}`}).join(", "),W=J.returnType||"any";Q=`export declare function ${J.name}(${V}): ${W};`}else if(J.returnType)Q=`export declare function ${J.name}(): ${J.returnType};`;else if(Y&&J.type&&!X){let[z,V,...W]=J.type.split("=>"),K=W.map(($)=>`=>${$}`).join("");Q=`export declare function ${J.name}${z}:${V}${K};`}else if(Y&&J.type){let[z,V,...W]=J.type.split("=>"),K=W.map(($)=>`=>${$}`).join("");Q=`export declare function ${J.name}${z}:${V}${K};`}else if(J.kind==="const")Q=`export declare const ${J.name}: ${J.type||"any"};
|
|
147
|
+
`;else Q=`export type ${J.name} = ${J.type||"any"};`;return`
|
|
148
|
+
${YJ(q)}
|
|
149
149
|
${Q}`}).join(`
|
|
150
|
-
`)}function
|
|
151
|
-
import { SvelteComponentTyped } from "svelte";${
|
|
152
|
-
`:""}${
|
|
150
|
+
`)}function XJ(Z){let{moduleName:J,typedefs:q,generics:Q,props:Y,moduleExports:X,slots:z,events:V,rest_props:W,extends:K,componentComment:$,contexts:H}=Z,{props_name:M,prop_def:O}=nN({moduleName:J,props:Y,rest_props:W,extends:K,generics:Q,slots:z}),j=Q?`<${Q[1]}>`:"",L=Q?`${M}<${Q[0]}>`:M,I=W?.type==="Element"&&(W.name!=="svelte:element"||W.name==="svelte:element"&&W.thisValue),y=W?.type==="Element"&&W.name==="svelte:element"&&!W.thisValue;return`
|
|
151
|
+
import { SvelteComponentTyped } from "svelte";${I?`import type { SvelteHTMLElements } from "svelte/elements";
|
|
152
|
+
`:""}${y?`import type { HTMLAttributes } from "svelte/elements";
|
|
153
153
|
`:""}
|
|
154
|
-
${
|
|
155
|
-
${
|
|
156
|
-
${
|
|
157
|
-
${
|
|
158
|
-
`:""}${
|
|
159
|
-
${
|
|
160
|
-
${
|
|
161
|
-
export default class ${
|
|
162
|
-
${
|
|
163
|
-
${
|
|
164
|
-
${
|
|
154
|
+
${ZR({extends:K})}
|
|
155
|
+
${qR({moduleExports:X})}
|
|
156
|
+
${f7({typedefs:q})}
|
|
157
|
+
${H&&H.length>0?`
|
|
158
|
+
`:""}${FW({contexts:H,generics:Q})}
|
|
159
|
+
${O}
|
|
160
|
+
${JR({componentComment:$})}
|
|
161
|
+
export default class ${J==="default"?"":J}${j} extends SvelteComponentTyped<
|
|
162
|
+
${L},
|
|
163
|
+
${oN({events:V})},
|
|
164
|
+
${aN({slots:z})}
|
|
165
165
|
> {
|
|
166
|
-
${
|
|
167
|
-
}`}var
|
|
166
|
+
${eN({props:Y})}
|
|
167
|
+
}`}var zJ=/`/g,wW=/\s+/g,J8="--",OW=`| Prop name | Required | Kind | Reactive | Type | Default value | Description |
|
|
168
168
|
| :- | :- | :- | :- |
|
|
169
|
-
`,
|
|
169
|
+
`,NW=`| Slot name | Default | Props | Fallback |
|
|
170
170
|
| :- | :- | :- | :- |
|
|
171
|
-
`,
|
|
171
|
+
`,RW=`| Event name | Type | Detail | Description |
|
|
172
172
|
| :- | :- | :- | :- |
|
|
173
|
-
`,
|
|
174
|
-
${
|
|
173
|
+
`,CW=/\|/g,QR=/</g,YR=/>/g,v7=/\n/g;function l0(Z){if(Z===void 0)return J8;return`<code>${Z.replace(CW,"|")}</code>`}function IW(Z){return Z.replace(QR,"<").replace(YR,">")}function _W(Z){if(Z===void 0)return J8;return`<code>${Z.replace(zJ,"\\`").replace(CW,"|")}</code>`}function VJ(Z){if(Z===void 0||Z.trim().length===0)return J8;return IW(Z).replace(v7,"<br />")}function DW(Z){if(Z===void 0||Z==="{}")return J8;return l0(k7(Z).replace(v7," "))}function TW(Z){if(Z===void 0)return J8;return l0(IW(Z).replace(v7,"<br />"))}function AW(Z){if(Z===void 0)return J8;return l0(Z.replace(v7," "))}function PW(Z,J){Z.append("h1","Component Index"),Z.append("h2","Components").tableOfContents(),Z.append("divider");let q=Array.from(J.keys()).sort();for(let Q of q){let Y=J.get(Q);if(!Y)continue;XR(Z,Y)}}function WJ(Z,J,q,Q){if(J.length>0)q();else Z.append("p",Q??"None.")}function XR(Z,J){if(Z.append("h2",`\`${J.moduleName}\``),J.typedefs.length>0)Z.append("h3","Types").append("raw",`\`\`\`ts
|
|
174
|
+
${f7({typedefs:J.typedefs})}
|
|
175
175
|
\`\`\`
|
|
176
176
|
|
|
177
|
-
`);Z.append("h3","Props"),
|
|
178
|
-
`)}),Z.append("h3","Slots"),
|
|
179
|
-
`)}),Z.append("h3","Events"),
|
|
180
|
-
`)})}class
|
|
177
|
+
`);Z.append("h3","Props"),WJ(Z,J.props,()=>{Z.append("raw",OW);let q=[...J.props].sort((Q)=>{if(Q.reactive)return-1;if(Q.constant)return 1;return 0});for(let Q of q)Z.append("raw",`| ${Q.name} | ${Q.isRequired?"Yes":"No"} | ${`<code>${Q.kind}</code>`} | ${Q.reactive?"Yes":"No"} | ${l0(Q.type)} | ${_W(Q.value)} | ${VJ(Q.description)} |
|
|
178
|
+
`)}),Z.append("h3","Slots"),WJ(Z,J.slots,()=>{Z.append("raw",NW);for(let q of J.slots)Z.append("raw",`| ${q.default?J8:q.name} | ${q.default?"Yes":"No"} | ${DW(q.slot_props)} | ${TW(q.fallback)} |
|
|
179
|
+
`)}),Z.append("h3","Events"),WJ(Z,J.events,()=>{Z.append("raw",RW);for(let q of J.events)Z.append("raw",`| ${q.name} | ${q.type} | ${q.type==="dispatched"?AW(q.detail):J8} | ${VJ(q.description)} |
|
|
180
|
+
`)})}class KJ{sourceParts=[];hasToC=!1;toc=[];get source(){return this.sourceParts.join("")}appendLineBreaks(){return this.sourceParts.push(`
|
|
181
181
|
|
|
182
|
-
`),this}append(Z,
|
|
183
|
-
`))}}class
|
|
184
|
-
`)}function
|
|
182
|
+
`),this}append(Z,J){switch(Z){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":{let q=Number(Z.slice(-1));if(this.sourceParts.push(`${"#".repeat(q)} ${J}`),this.hasToC&&Z==="h2")this.toc.push({array:Array.from({length:(q-1)*2}),raw:J??""});break}case"quote":this.sourceParts.push(`> ${J}`);break;case"p":this.sourceParts.push(J??"");break;case"divider":this.sourceParts.push("---");break;case"raw":this.sourceParts.push(J??"");break}if(Z!=="raw")this.appendLineBreaks();return this}tableOfContents(){return this.sourceParts.push("<!-- __TOC__ -->"),this.hasToC=!0,this.appendLineBreaks(),this}end(){return this.sourceParts.join("").replace("<!-- __TOC__ -->",this.toc.map(({array:J,raw:q})=>{return`${J.join(" ")} - [${q}](#${q.toLowerCase().replace(zJ,"").replace(wW,"-")})`}).join(`
|
|
183
|
+
`))}}class h7 extends y6{onAppend;markdownBase;constructor(Z){super({parser:"markdown",printWidth:80});this.onAppend=Z.onAppend,this.markdownBase=new KJ}get source(){return this.markdownBase.source}get hasToC(){return this.markdownBase.hasToC}get toc(){return this.markdownBase.toc}appendLineBreaks(){return this.markdownBase.appendLineBreaks(),this}append(Z,J){return this.markdownBase.append(Z,J),this.onAppend?.call(this,Z,this),this}tableOfContents(){return this.markdownBase.tableOfContents(),this}end(){return this.markdownBase.end()}}async function $J(Z,J){let q=J?.write!==!1,Q=new h7({onAppend:(Y,X)=>{J.onAppend?.call(null,Y,X,Z)}});if(PW(Q,Z),q){let Y=zR(process.cwd(),J.outFile);await Q.write(Y,Q.end()),console.log(`created "${J.outFile}".`)}return Q.end()}import{join as bW}from"node:path";var SW=/\.svelte$/;function yW(Z){let J=new Map;for(let[Q,Y]of Object.entries(Z)){let X=J.get(Y.source)||[];X.push({id:Q,exportee:Y}),J.set(Y.source,X)}let q=[];for(let[Q,Y]of J){let X=SW.test(Q),z=Y.some(({id:M,exportee:O})=>M!=="default"&&O.default),V=Y.some(({exportee:M})=>!M.default),W=X&&z&&V,K=[],$=[],H=[];for(let{id:M,exportee:O}of Y){if(M==="default"){$.push(`export { default } from "${Q}";`);continue}if(O.default)if(O.mixed)$.push(`export { default as ${M} } from "${Q}";`),$.push(`export { default } from "${Q}";`);else H.push(`default as ${M}`);else if(X&&!W)H.push(`default as ${M}`);else K.push(M)}if(H.length>0&&K.length>0)q.push(`export { ${[...H,...K].join(", ")} } from "${Q}";`);else{if(K.length>0)q.push(`export { ${K.join(", ")} } from "${Q}";`);if(H.length>0)q.push(`export { ${H.join(", ")} } from "${Q}";`)}q.push(...$)}return q.join(`
|
|
184
|
+
`)}function EW(Z){return Z.replace(SW,".svelte.d.ts")}async function GJ(Z,J){let q=bW(process.cwd(),J.outDir,"index.d.ts"),Q=UW(),Y=J.preamble+yW(J.exports),X=Array.from(Z).map(async([z,V])=>{let W=EW(bW(J.outDir,V.filePath));await Q.write(W,XJ(V))});await Promise.all([...X,Q.write(q,Y)]),console.log("created TypeScript definitions.")}var MR=/<style.+?<\/style>/gims,HR=/-/g;function kW(Z){let J,q;return{name:"vite-plugin-sveld",apply:"build",enforce:"post",buildStart(){q=C6(Z?.entry)},async generateBundle(){if(q!=null)J=await c0(q,Z?.glob===!0)},writeBundle(){if(q!=null)p0(J,Z||{},q)}}}async function c0(Z,J){let q=VR(Z).isFile(),Q=q?xW(Z):Z,Y={};if(q){let _=WR(Z,"utf-8");Y=e3(_,Q)}let X={...Y};if(J)for(let _ of FV([`${Q}/**/*.svelte`])){let T=g7(_).name.replace(HR,""),g=H8(`./${GR(Q,_)}`);if(Y[T])Y[T].source=g;if(X[T])X[T].source=g;else X[T]={source:g,default:!1}}let z=new Map,V=new Map,W=Object.entries(Y),K=Object.entries(X),$=new Set;for(let[,_]of W){let T=_.source,{ext:g}=g7(T);if(g===".svelte")$.add(UJ(Q,T))}for(let[,_]of K){let T=_.source,{ext:g}=g7(T);if(g===".svelte")$.add(UJ(Q,T))}let H=await Promise.all(Array.from($).map(async(_)=>{try{let T=await KR(_,"utf-8");return{path:_,content:T}}catch(T){return console.warn(`Warning: Failed to read file ${_}:`,T),{path:_,content:null}}})),M=new Map(H.map(({path:_,content:T})=>[_,T])),O=async([_,T],g,h)=>{let u=T.source,{ext:E,name:N}=g7(u),P=_;if(g.length===1&&_==="default")P=N;if(E===".svelte"){let A=UJ(Q,u),B=h.get(A);if(B===null||B===void 0)return null;let{code:b}=await UR(B,[BR(),jR([[MR,""]])],{filename:$R(u)}),S=new T1().parseSvelteComponent(b,{moduleName:P,filePath:u});return{moduleName:P,filePath:u,...S}}return null},j=W.map((_)=>O(_,W,M)),L=K.map((_)=>O(_,K,M)),[I,y]=await Promise.all([Promise.all(j),Promise.all(L)]);for(let _ of I)if(_)z.set(_.moduleName,_);for(let _ of y)if(_)V.set(_.moduleName,_);return{exports:Y,components:z,allComponentsForTypes:V}}function p0(Z,J,q){let Q=xW(q);if(J?.types!==!1)GJ(Z.allComponentsForTypes,{outDir:"types",preamble:"",...J?.typesOptions,exports:Z.exports,inputDir:Q});if(J?.json)JJ(Z.components,{outFile:"COMPONENT_API.json",...J?.jsonOptions,input:q,inputDir:Q});if(J?.markdown)$J(Z.components,{outFile:"COMPONENT_INDEX.md",...J?.markdownOptions})}async function FR(Z){let J=Z.argv.slice(2).map((X)=>{let[z,V]=X.split("=");return{[z.slice(2)]:V===void 0?!0:V}}).reduce((X,z)=>{for(let V in z)X[V]=z[V];return X},{}),q=C6()||"src/index.js";await(await B3({input:q,plugins:[fW.default(),QQ()]})).generate({});let Y=await c0(q,J?.glob===!0);p0(Y,J,q)}async function LR(Z){let J=C6(Z?.input);if(J===null)return;let q=await c0(J,Z?.glob===!0);p0(q,Z||{},J)}export{LR as sveld,kW as default,FR as cli,T1 as ComponentParser};
|