sveld 0.27.0 → 0.28.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 +64 -0
- package/lib/ComponentParser.d.ts +1 -1
- package/lib/index.js +76 -76
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
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 L8=a1("fs"),vK=a7(),f1=a1("path"),fK=s7(),hK=t7(),gK=e7(),mK=x6(),uK=process.platform!=="win32"&&L8.realpath&&typeof L8.realpath.native==="function"?L8.realpath.native:L8.realpath,c3=vK(),dK=function(){return[f1.join(c3,".node_modules"),f1.join(c3,".node_libraries")]},lK=function(q,J){L8.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){L8.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||L8.readFile,G=z.realpath||pK,M=z.readPackage||iK;if(z.readFile&&z.readPackage){var B=TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){Y(B)})}var H=z.packageIterator,F=z.extensions||[".js"],w=z.includeCoreModules!==!1,_=z.basedir||f1.dirname(fK()),P=z.filename||_;z.paths=z.paths||dK();var D=f1.resolve(_);k6(G,D,z,function(j,b){if(j)Y(j);else h(b)});var A;function h(j){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(q)){if(A=f1.resolve(j,q),q==="."||q===".."||q.slice(-1)==="/")A+="/";if(/\/$/.test(q)&&A===j)R(A,z.package,v);else m(A,z.package,v)}else if(w&&mK(q))return Y(null,q);else I(q,j,function(b,k,y){if(b)Y(b);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 '"+P+"'");$.code="MODULE_NOT_FOUND",Y($)}})}function v(j,b,k){if(j)Y(j);else if(b)Y(null,b,k);else R(A,function(y,$,L){if(y)Y(y);else if($)k6(G,$,z,function(f,s){if(f)Y(f);else Y(null,s,L)});else{var l=Error("Cannot find module '"+q+"' from '"+P+"'");l.code="MODULE_NOT_FOUND",Y(l)}})}function m(j,b,k){var y=b,$=k;if(typeof y==="function")$=y,y=void 0;var L=[""].concat(F);l(L,j,y);function l(f,s,o){if(f.length===0)return $(null,void 0,o);var Q1=s+f[0],N1=o;if(N1)O1(null,N1);else x(f1.dirname(Q1),O1);function O1(a,u,M1){if(N1=u,a)return $(a);if(M1&&N1&&z.pathFilter){var p=f1.relative(M1,Q1),T=p.slice(0,p.length-f[0].length),E=z.pathFilter(N1,s,T);if(E)return l([""].concat(F.slice()),f1.resolve(M1,E),N1)}V(Q1,w1)}function w1(a,u){if(a)return $(a);if(u)return $(null,Q1,N1);l(f.slice(1),s,N1)}}}function x(j,b){if(j===""||j==="/")return b(null);if(process.platform==="win32"&&/^\w:[/\\]*$/.test(j))return b(null);if(/[/\\]node_modules[/\\]*$/.test(j))return b(null);k6(G,j,z,function(k,y){if(k)return x(f1.dirname(j),b);var $=f1.join(y,"package.json");V($,function(L,l){if(!l)return x(f1.dirname(j),b);M(K,$,function(f,s){if(f)b(f);var o=s;if(o&&z.packageFilter)o=z.packageFilter(o,$);b(null,o,j)})})})}function R(j,b,k){var y=k,$=b;if(typeof $==="function")y=$,$=z.package;k6(G,j,z,function(L,l){if(L)return y(L);var f=f1.join(l,"package.json");V(f,function(s,o){if(s)return y(s);if(!o)return m(f1.join(j,"index"),$,y);M(K,f,function(Q1,N1){if(Q1)return y(Q1);var O1=N1;if(O1&&z.packageFilter)O1=z.packageFilter(O1,f);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";m(f1.resolve(j,O1.main),O1,function(a,u,M1){if(a)return y(a);if(u)return y(null,u,M1);if(!M1)return m(f1.join(j,"index"),M1,y);var p=f1.resolve(j,M1.main);R(p,M1,function(T,E,C){if(T)return y(T);if(E)return y(null,E,C);m(f1.join(j,"index"),C,y)})});return}m(f1.join(j,"/index"),O1,y)})})})}function S(j,b){if(b.length===0)return j(null,void 0);var k=b[0];W(f1.dirname(k),y);function y(l,f){if(l)return j(l);if(!f)return S(j,b.slice(1));m(k,z.package,$)}function $(l,f,s){if(l)return j(l);if(f)return j(null,f,s);R(k,z.package,L)}function L(l,f,s){if(l)return j(l);if(f)return j(null,f,s);S(j,b.slice(1))}}function I(j,b,k){var y=function(){return nK(j,b,z)};S(k,H?H(j,b,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(),N8=a1("fs"),t1=a1("path"),tK=a7(),eK=s7(),ZG=t7(),qG=e7(),JG=process.platform!=="win32"&&N8.realpathSync&&typeof N8.realpathSync.native==="function"?N8.realpathSync.native:N8.realpathSync,ZJ=tK(),QG=function(){return[t1.join(ZJ,".node_modules"),t1.join(ZJ,".node_libraries")]},YG=function(q){try{var J=N8.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=N8.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||N8.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"],M=Q.includeCoreModules!==!1,B=Q.basedir||t1.dirname(eK()),H=Q.filename||B;Q.paths=Q.paths||QG();var F=f6(V,t1.resolve(B),Q);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(q)){var w=t1.resolve(F,q);if(q==="."||q===".."||q.slice(-1)==="/")w+="/";var _=A(w)||v(w);if(_)return f6(V,_,Q)}else if(M&&oK(q))return q;else{var P=m(q,F);if(P)return f6(V,P,Q)}var D=Error("Cannot find module '"+q+"' from '"+H+"'");throw D.code="MODULE_NOT_FOUND",D;function A(x){var R=h(t1.dirname(x));if(R&&R.dir&&R.pkg&&Q.pathFilter){var S=t1.relative(R.dir,x),I=Q.pathFilter(R.pkg,x,S);if(I)x=t1.resolve(R.dir,I)}if(Y(x))return x;for(var j=0;j<G.length;j++){var b=x+G[j];if(Y(b))return b}}function h(x){if(x===""||x==="/")return;if(process.platform==="win32"&&/^\w:[/\\]*$/.test(x))return;if(/[/\\]node_modules[/\\]*$/.test(x))return;var R=t1.join(f6(V,x,Q),"package.json");if(!Y(R))return h(t1.dirname(x));var S=W(z,R);if(S&&Q.packageFilter)S=Q.packageFilter(S,x);return{pkg:S,dir:x}}function v(x){var R=t1.join(f6(V,x,Q),"/package.json");if(Y(R)){try{var S=W(z,R)}catch(k){}if(S&&Q.packageFilter)S=Q.packageFilter(S,x);if(S&&S.main){if(typeof S.main!=="string"){var I=TypeError("package “"+S.name+"” `main` must be a string");throw I.code="INVALID_PACKAGE_MAIN",I}if(S.main==="."||S.main==="./")S.main="index";try{var j=A(t1.resolve(x,S.main));if(j)return j;var b=v(t1.resolve(x,S.main));if(b)return b}catch(k){}}}return A(t1.join(x,"/index"))}function m(x,R){var S=function(){return WG(x,R,Q)},I=K?K(x,R,S,Q):S();for(var j=0;j<I.length;j++){var b=I[j];if(X(t1.dirname(b))){var k=A(b);if(k)return k;var y=v(b);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,M=0,B=!1,H=!1,F=!1,w=!1,_=!1,P=!1,D=!1,A=!1,h=!1,v=!1,m=0,x,R,S={value:"",depth:0,isGlob:!1},I=()=>K>=Q,j=()=>W.charCodeAt(K+1),b=()=>{return x=R,W.charCodeAt(++K)};while(K<Q){R=b();let l;if(R===g6){if(D=S.backslashes=!0,R=b(),R===Q9)P=!0;continue}if(P===!0||R===Q9){m++;while(I()!==!0&&(R=b())){if(R===g6){D=S.backslashes=!0,b();continue}if(R===Q9){m++;continue}if(P!==!0&&R===q9&&(R=b())===q9){if(B=S.isBrace=!0,F=S.isGlob=!0,v=!0,Y===!0)continue;break}if(P!==!0&&R===PG){if(B=S.isBrace=!0,F=S.isGlob=!0,v=!0,Y===!0)continue;break}if(R===EG){if(m--,m===0){P=!1,B=S.isBrace=!0,v=!0;break}}}if(Y===!0)continue;break}if(R===BJ){if(z.push(K),X.push(S),S={value:"",depth:0,isGlob:!1},v===!0)continue;if(x===q9&&K===G+1){G+=2;continue}M=K+1;continue}if(J.noext!==!0){if((R===yG||R===AG||R===Z9||R===GJ||R===J9)===!0&&j()===Y9){if(F=S.isGlob=!0,w=S.isExtglob=!0,v=!0,R===J9&&K===G)h=!0;if(Y===!0){while(I()!==!0&&(R=b())){if(R===g6){D=S.backslashes=!0,R=b();continue}if(R===$J){F=S.isGlob=!0,v=!0;break}}continue}break}}if(R===Z9){if(x===Z9)_=S.isGlobstar=!0;if(F=S.isGlob=!0,v=!0,Y===!0)continue;break}if(R===GJ){if(F=S.isGlob=!0,v=!0,Y===!0)continue;break}if(R===SG){while(I()!==!0&&(l=b())){if(l===g6){D=S.backslashes=!0,b();continue}if(l===bG){H=S.isBracket=!0,F=S.isGlob=!0,v=!0;break}}if(Y===!0)continue;break}if(J.nonegate!==!0&&R===J9&&K===G){A=S.negated=!0,G++;continue}if(J.noparen!==!0&&R===Y9){if(F=S.isGlob=!0,Y===!0){while(I()!==!0&&(R=b())){if(R===Y9){D=S.backslashes=!0,R=b();continue}if(R===$J){v=!0;break}}continue}break}if(F===!0){if(v=!0,Y===!0)continue;break}}if(J.noext===!0)w=!1,F=!1;let k=W,y="",$="";if(G>0)y=W.slice(0,G),W=W.slice(G),M-=G;if(k&&F===!0&&M>0)k=W.slice(0,M),$=W.slice(M);else if(F===!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&&D===!0)k=KJ.removeBackslashes(k)}let L={prefix:y,input:Z,start:G,base:k,glob:$,isBrace:B,isBracket:H,isGlob:F,isExtglob:w,isGlobstar:_,negated:A,negatedExtglob:h};if(J.tokens===!0){if(L.maxDepth=0,!UJ(R))X.push(S);L.tokens=X}if(J.parts===!0||J.tokens===!0){let l;for(let f=0;f<z.length;f++){let s=l?l+1:G,o=z[f],Q1=Z.slice(s,o);if(J.tokens){if(f===0&&G!==0)X[f].isPrefix=!0,X[f].value=y;else X[f].value=Q1;jJ(X[f]),L.maxDepth+=X[f].depth}if(f!==0||Q1!=="")V.push(Q1);l=o}if(l&&l+1<Z.length){let f=Z.slice(l+1);if(V.push(f),J.tokens)X[X.length-1].value=f,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:M,PLUS_LITERAL:B,SLASH_LITERAL:H,ONE_CHAR:F,DOTS_SLASH:w,NO_DOT:_,NO_DOT_SLASH:P,NO_DOTS_SLASH:D,QMARK:A,QMARK_NO_DOT:h,STAR:v,START_ANCHOR:m}=K,x=(T)=>{return`(${V}(?:(?!${m}${T.dot?w:M}).)*?)`},R=J.dot?"":_,S=J.dot?A:h,I=J.bash===!0?x(J):v;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 b=[],k=[],y=[],$=z,L,l=()=>j.index===Y-1,f=j.peek=(T=1)=>Z[j.index+T],s=j.advance=()=>Z[++j.index]||"",o=()=>Z.slice(j.index+1),Q1=(T="",E=0)=>{j.consumed+=T,j.index+=E},N1=(T)=>{j.output+=T.output!=null?T.output:T.value,Q1(T.value)},O1=()=>{let T=1;while(f()==="!"&&(f(2)!=="("||f(3)==="?"))s(),j.start++,T++;if(T%2===0)return!1;return j.negated=!0,j.start++,!0},w1=(T)=>{j[T]++,y.push(T)},a=(T)=>{j[T]--,y.pop()},u=(T)=>{if($.type==="globstar"){let E=j.braces>0&&(T.type==="comma"||T.type==="brace"),C=T.extglob===!0||b.length&&(T.type==="pipe"||T.type==="paren");if(T.type!=="slash"&&T.type!=="paren"&&!E&&!C)j.output=j.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=I,j.output+=$.output}if(b.length&&T.type!=="paren")b[b.length-1].inner+=T.value;if(T.value||T.output)N1(T);if($&&$.type==="text"&&T.type==="text"){$.value+=T.value,$.output=($.output||"")+T.value;return}T.prev=$,X.push(T),$=T},M1=(T,E)=>{let C={...G[E],conditions:1,inner:""};C.prev=$,C.parens=j.parens,C.output=j.output;let g=(J.capture?"(":"")+C.open;w1("parens"),u({type:T,value:E,output:j.output?"":F}),u({type:"paren",extglob:!0,value:s(),output:g}),b.push(C)},p=(T)=>{let E=T.close+(J.capture?")":""),C;if(T.type==="negate"){let g=I;if(T.inner&&T.inner.length>1&&T.inner.includes("/"))g=x(J);if(g!==I||l()||/^\)+$/.test(o()))E=T.close=`)$))${g}`;if(T.inner.includes("*")&&(C=o())&&/^\.[^\\/.]+$/.test(C)){let c=z9(C,{...q,fastpaths:!1}).output;E=T.close=`)${c})${g})`}if(T.prev.type==="bos")j.negatedExtglob=!0}u({type:"paren",extglob:!0,value:L,output:E}),a("parens")};if(J.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let T=!1,E=Z.replace(fG,(C,g,c,r,e,p1)=>{if(r==="\\")return T=!0,C;if(r==="?"){if(g)return g+r+(e?A.repeat(e.length):"");if(p1===0)return S+(e?A.repeat(e.length):"");return A.repeat(c.length)}if(r===".")return M.repeat(c.length);if(r==="*"){if(g)return g+r+(e?I:"");return I}return g?C:`\\${C}`});if(T===!0)if(J.unescape===!0)E=E.replace(/\\/g,"");else E=E.replace(/\\+/g,(C)=>{return C.length%2===0?"\\\\":C?"\\":""});if(E===Z&&J.contains===!0)return j.output=Z,j;return j.output=K5.wrapOutput(E,j,q),j}while(!l()){if(L=s(),L==="\x00")continue;if(L==="\\"){let C=f();if(C==="/"&&J.bash!==!0)continue;if(C==="."||C===";")continue;if(!C){L+="\\",u({type:"text",value:L});continue}let g=/^\\+/.exec(o()),c=0;if(g&&g[0].length>2){if(c=g[0].length,j.index+=c,c%2!==0)L+="\\"}if(J.unescape===!0)L=s();else L+=s();if(j.brackets===0){u({type:"text",value:L});continue}}if(j.brackets>0&&(L!=="]"||$.value==="["||$.value==="[^")){if(J.posix!==!1&&L===":"){let C=$.value.slice(1);if(C.includes("[")){if($.posix=!0,C.includes(":")){let g=$.value.lastIndexOf("["),c=$.value.slice(0,g),r=$.value.slice(g+2),e=kG[r];if(e){if($.value=c+e,j.backtrack=!0,s(),!z.output&&X.indexOf($)===1)z.output=F;continue}}}}if(L==="["&&f()!==":"||L==="-"&&f()==="]")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)u({type:"text",value:L});continue}if(L==="("){w1("parens"),u({type:"paren",value:L});continue}if(L===")"){if(j.parens===0&&J.strictBrackets===!0)throw SyntaxError(g8("opening","("));let C=b[b.length-1];if(C&&j.parens===C.parens+1){p(b.pop());continue}u({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");u({type:"bracket",value:L});continue}if(L==="]"){if(J.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){u({type:"text",value:L,output:`\\${L}`});continue}if(j.brackets===0){if(J.strictBrackets===!0)throw SyntaxError(g8("opening","["));u({type:"text",value:L,output:`\\${L}`});continue}a("brackets");let C=$.value.slice(1);if($.posix!==!0&&C[0]==="^"&&!C.includes("/"))L=`/${L}`;if($.value+=L,N1({value:L}),J.literalBrackets===!1||K5.hasRegexChars(C))continue;let g=K5.escapeRegex($.value);if(j.output=j.output.slice(0,-$.value.length),J.literalBrackets===!0){j.output+=g,$.value=g;continue}$.value=`(${V}${g}|${$.value})`,j.output+=$.value;continue}if(L==="{"&&J.nobrace!==!0){w1("braces");let C={type:"brace",value:L,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};k.push(C),u(C);continue}if(L==="}"){let C=k[k.length-1];if(J.nobrace===!0||!C){u({type:"text",value:L,output:L});continue}let g=")";if(C.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)}g=hG(r,J),j.backtrack=!0}if(C.comma!==!0&&C.dots!==!0){let c=j.output.slice(0,C.outputIndex),r=j.tokens.slice(C.tokensIndex);C.value=C.output="\\{",L=g="\\}",j.output=c;for(let e of r)j.output+=e.output||e.value}u({type:"brace",value:L,output:g}),a("braces"),k.pop();continue}if(L==="|"){if(b.length>0)b[b.length-1].conditions++;u({type:"text",value:L});continue}if(L===","){let C=L,g=k[k.length-1];if(g&&y[y.length-1]==="braces")g.comma=!0,C="|";u({type:"comma",value:L,output:C});continue}if(L==="/"){if($.type==="dot"&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",X.pop(),$=z;continue}u({type:"slash",value:L,output:H});continue}if(L==="."){if(j.braces>0&&$.type==="dot"){if($.value===".")$.output=M;let C=k[k.length-1];$.type="dots",$.output+=L,$.value+=L,C.dots=!0;continue}if(j.braces+j.parens===0&&$.type!=="bos"&&$.type!=="slash"){u({type:"text",value:L,output:M});continue}u({type:"dot",value:L,output:M});continue}if(L==="?"){if(!($&&$.value==="(")&&J.noextglob!==!0&&f()==="("&&f(2)!=="?"){M1("qmark",L);continue}if($&&$.type==="paren"){let g=f(),c=L;if(g==="<"&&!K5.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if($.value==="("&&!/[!=<:]/.test(g)||g==="<"&&!/<([!=]|\w+>)/.test(o()))c=`\\${L}`;u({type:"text",value:L,output:c});continue}if(J.dot!==!0&&($.type==="slash"||$.type==="bos")){u({type:"qmark",value:L,output:h});continue}u({type:"qmark",value:L,output:A});continue}if(L==="!"){if(J.noextglob!==!0&&f()==="("){if(f(2)!=="?"||!/[!=<:]/.test(f(3))){M1("negate",L);continue}}if(J.nonegate!==!0&&j.index===0){O1();continue}}if(L==="+"){if(J.noextglob!==!0&&f()==="("&&f(2)!=="?"){M1("plus",L);continue}if($&&$.value==="("||J.regex===!1){u({type:"plus",value:L,output:B});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||j.parens>0){u({type:"plus",value:L});continue}u({type:"plus",value:B});continue}if(L==="@"){if(J.noextglob!==!0&&f()==="("&&f(2)!=="?"){u({type:"at",extglob:!0,value:L,output:""});continue}u({type:"text",value:L});continue}if(L!=="*"){if(L==="$"||L==="^")L=`\\${L}`;let C=vG.exec(o());if(C)L+=C[0],j.index+=C[0].length;u({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 T=o();if(J.noextglob!==!0&&/^\([^?]/.test(T)){M1("star",L);continue}if($.type==="star"){if(J.noglobstar===!0){Q1(L);continue}let C=$.prev,g=C.prev,c=C.type==="slash"||C.type==="bos",r=g&&(g.type==="star"||g.type==="globstar");if(J.bash===!0&&(!c||T[0]&&T[0]!=="/")){u({type:"star",value:L,output:""});continue}let e=j.braces>0&&(C.type==="comma"||C.type==="brace"),p1=b.length&&(C.type==="pipe"||C.type==="paren");if(!c&&C.type!=="paren"&&!e&&!p1){u({type:"star",value:L,output:""});continue}while(T.slice(0,3)==="/**"){let g1=Z[j.index+4];if(g1&&g1!=="/")break;T=T.slice(3),Q1("/**",3)}if(C.type==="bos"&&l()){$.type="globstar",$.value+=L,$.output=x(J),j.output=$.output,j.globstar=!0,Q1(L);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&!r&&l()){j.output=j.output.slice(0,-(C.output+$.output).length),C.output=`(?:${C.output}`,$.type="globstar",$.output=x(J)+(J.strictSlashes?")":"|$)"),$.value+=L,j.globstar=!0,j.output+=C.output+$.output,Q1(L);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&T[0]==="/"){let g1=T[1]!==void 0?"|$":"";j.output=j.output.slice(0,-(C.output+$.output).length),C.output=`(?:${C.output}`,$.type="globstar",$.output=`${x(J)}${H}|${H}${g1})`,$.value+=L,j.output+=C.output+$.output,j.globstar=!0,Q1(L+s()),u({type:"slash",value:"/",output:""});continue}if(C.type==="bos"&&T[0]==="/"){$.type="globstar",$.value+=L,$.output=`(?:^|${H}|${x(J)}${H})`,j.output=$.output,j.globstar=!0,Q1(L+s()),u({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-$.output.length),$.type="globstar",$.output=x(J),$.value+=L,j.output+=$.output,j.globstar=!0,Q1(L);continue}let E={type:"star",value:L,output:I};if(J.bash===!0){if(E.output=".*?",$.type==="bos"||$.type==="slash")E.output=R+E.output;u(E);continue}if($&&($.type==="bracket"||$.type==="paren")&&J.regex===!0){E.output=L,u(E);continue}if(j.index===j.start||$.type==="slash"||$.type==="dot"){if($.type==="dot")j.output+=P,$.output+=P;else if(J.dot===!0)j.output+=D,$.output+=D;else j.output+=R,$.output+=R;if(f()!=="*")j.output+=F,$.output+=F}u(E)}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"))u({type:"maybe_slash",value:"",output:`${H}?`});if(j.backtrack===!0){j.output="";for(let T of j.tokens)if(j.output+=T.output!=null?T.output:T.value,T.suffix)j.output+=T.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:M,NO_DOTS_SLASH:B,STAR:H,START_ANCHOR:F}=r0.globChars(z),w=J.dot?M:G,_=J.dot?B:G,P=J.capture?"":"?:",D={negated:!1,prefix:""},A=J.bash===!0?".*?":H;if(J.capture)A=`(${A})`;let h=(R)=>{if(R.noglobstar===!0)return A;return`(${P}(?:(?!${F}${R.dot?K:X}).)*?)`},v=(R)=>{switch(R){case"*":return`${w}${W}${A}`;case".*":return`${X}${W}${A}`;case"*.*":return`${w}${A}${X}${W}${A}`;case"*/*":return`${w}${A}${V}${W}${_}${A}`;case"**":return w+h(J);case"**/*":return`(?:${w}${h(J)}${V})?${_}${W}${A}`;case"**/*.*":return`(?:${w}${h(J)}${V})?${_}${A}${X}${W}${A}`;case"**/.*":return`(?:${w}${h(J)}${V})?${X}${W}${A}`;default:{let S=/^(.*?)\.(\w+)$/.exec(R);if(!S)return;let I=v(S[1]);if(!I)return;return I+X+S[2]}}},m=K5.removePrefix(Z,D),x=v(m);if(x&&J.strictSlashes!==!0)x+=`${V}?`;return x};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((B)=>b1(B,q,J));return(B)=>{for(let H of G){let F=H(B);if(F)return F}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,M=!1)=>{let{isMatch:B,match:H,output:F}=b1.test(G,X,q,{glob:Z,posix:z}),w={glob:Z,state:V,regex:X,posix:z,input:G,output:F,match:H,isMatch:B};if(typeof Y.onResult==="function")Y.onResult(w);if(B===!1)return w.isMatch=!1,M?w:!1;if(W(G)){if(typeof Y.onIgnore==="function")Y.onIgnore(w);return w.isMatch=!1,M?w:!1}if(typeof Y.onMatch==="function")Y.onMatch(w);return M?w:!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 I8}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 M=V&1;if(V>>>=1,M)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,M=V;G<M.length;G++){var B=M[G],H=u6(B[0]-W);if(W=B[0],B.length>1)H+=u6(B[1]-q)+u6(B[2]-J)+u6(B[3]-Q),q=B[1],J=B[2],Q=B[3];if(B.length===5)H+=u6(B[4]-Y),Y=B[4];K.push(H)}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(`
|
|
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
2
|
`),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 ZY(Z,q){let J=Z.split(/[/\\]/),Q=q.split(/[/\\]/);J.pop();while(J[0]===Q[0])J.shift(),Q.shift();if(J.length){let Y=J.length;while(Y--)J[Y]=".."}return J.concat(Q).join("/")}function qY(Z){return O$.call(Z)==="[object Object]"}function g9(Z){let q=Z.split(`
|
|
3
3
|
`),J=[];for(let Q=0,Y=0;Q<q.length;Q++)J.push(Y),Y+=q[Q].length+1;return function(Y){let z=0,X=J.length;while(z<X){let K=z+X>>1;if(Y<J[K])X=K;else z=K+1}let V=z-1,W=Y-J[V];return{line:V,column:W}}}class $Z{constructor(Z){this.hires=Z,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(Z,q,J,Q){if(q.length){let Y=[this.generatedCodeColumn,Z,J.line,J.column];if(Q>=0)Y.push(Q);this.rawSegments.push(Y)}else if(this.pending)this.rawSegments.push(this.pending);this.advance(q),this.pending=null}addUneditedChunk(Z,q,J,Q,Y){let z=q.start,X=!0;while(z<q.end){if(this.hires||X||Y.has(z))this.rawSegments.push([this.generatedCodeColumn,Z,Q.line,Q.column]);if(J[z]===`
|
|
4
4
|
`)Q.line+=1,Q.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,X=!0;else Q.column+=1,this.generatedCodeColumn+=1,X=!1;z+=1}this.pending=null}advance(Z){if(!Z)return;let q=Z.split(`
|
|
5
|
-
`);if(q.length>1){for(let J=0;J<q.length-1;J++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=q[q.length-1].length}}class
|
|
5
|
+
`);if(q.length>1){for(let J=0;J<q.length-1;J++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=q[q.length-1].length}}class P8{constructor(Z,q={}){let J=new Z0(0,Z.length,Z);Object.defineProperties(this,{original:{writable:!0,value:Z},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:J},lastChunk:{writable:!0,value:J},lastSearchedChunk:{writable:!0,value:J},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:q.filename},indentExclusionRanges:{writable:!0,value:q.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new L4},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:w$(Z)}}),this.byStart[0]=J,this.byEnd[Z.length]=J}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,q){if(typeof q!=="string")throw TypeError("inserted content must be a string");this._split(Z);let J=this.byEnd[Z];if(J)J.appendLeft(q);else this.intro+=q;return this}appendRight(Z,q){if(typeof q!=="string")throw TypeError("inserted content must be a string");this._split(Z);let J=this.byStart[Z];if(J)J.appendRight(q);else this.outro+=q;return this}clone(){let Z=new P8(this.original,{filename:this.filename}),q=this.firstChunk,J=Z.firstChunk=Z.lastSearchedChunk=q.clone();while(q){Z.byStart[J.start]=J,Z.byEnd[J.end]=J;let Q=q.next,Y=Q&&Q.clone();if(Y)J.next=Y,Y.previous=J,J=Y;q=Q}if(Z.lastChunk=J,this.indentExclusionRanges)Z.indentExclusionRanges=this.indentExclusionRanges.slice();return Z.sourcemapLocations=new L4(this.sourcemapLocations),Z.intro=this.intro,Z.outro=this.outro,Z}generateDecodedMap(Z){Z=Z||{};let q=0,J=Object.keys(this.storedNames),Q=new $Z(Z.hires),Y=g9(this.original);if(this.intro)Q.advance(this.intro);return this.firstChunk.eachNext((z)=>{let X=Y(z.start);if(z.intro.length)Q.advance(z.intro);if(z.edited)Q.addEdit(q,z.content,X,z.storeName?J.indexOf(z.original):-1);else Q.addUneditedChunk(q,z,this.original,X,this.sourcemapLocations);if(z.outro.length)Q.advance(z.outro)}),{file:Z.file?Z.file.split(/[/\\]/).pop():null,sources:[Z.source?ZY(Z.file||"",Z.source):null],sourcesContent:Z.includeContent?[this.original]:[null],names:J,mappings:Q.raw}}generateMap(Z){return new B0(this.generateDecodedMap(Z))}getIndentString(){return this.indentStr===null?"\t":this.indentStr}indent(Z,q){let J=/^[^\r\n]/gm;if(qY(Z))q=Z,Z=void 0;if(Z=Z!==void 0?Z:this.indentStr||"\t",Z==="")return this;q=q||{};let Q={};if(q.exclude)(typeof q.exclude[0]==="number"?[q.exclude]:q.exclude).forEach((K)=>{for(let G=K[0];G<K[1];G+=1)Q[G]=!0});let Y=q.indentStart!==!1,z=(W)=>{if(Y)return`${Z}${W}`;return Y=!0,W};this.intro=this.intro.replace(J,z);let X=0,V=this.firstChunk;while(V){let W=V.end;if(V.edited){if(!Q[X]){if(V.content=V.content.replace(J,z),V.content.length)Y=V.content[V.content.length-1]===`
|
|
6
6
|
`}}else{X=V.start;while(X<W){if(!Q[X]){let K=this.original[X];if(K===`
|
|
7
7
|
`)Y=!0;else if(K!=="\r"&&Y)if(Y=!1,X===V.start)V.prependRight(Z);else this._splitChunk(V,X),V=V.next,V.prependRight(Z)}X+=1}}X=V.end,V=V.next}return this.outro=this.outro.replace(J,z),this}insert(){throw Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(Z,q){if(!p8.insertLeft)console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),p8.insertLeft=!0;return this.appendLeft(Z,q)}insertRight(Z,q){if(!p8.insertRight)console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),p8.insertRight=!0;return this.prependRight(Z,q)}move(Z,q,J){if(J>=Z&&J<=q)throw Error("Cannot move a selection inside itself");this._split(Z),this._split(q),this._split(J);let Q=this.byStart[Z],Y=this.byEnd[q],z=Q.previous,X=Y.next,V=this.byStart[J];if(!V&&Y===this.lastChunk)return this;let W=V?V.previous:this.lastChunk;if(z)z.next=X;if(X)X.previous=z;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,q,J,Q){if(typeof J!=="string")throw TypeError("replacement content must be a string");while(Z<0)Z+=this.original.length;while(q<0)q+=this.original.length;if(q>this.original.length)throw Error("end is out of bounds");if(Z===q)throw Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");if(this._split(Z),this._split(q),Q===!0){if(!p8.storeName)console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),p8.storeName=!0;Q={storeName:!0}}let Y=Q!==void 0?Q.storeName:!1,z=Q!==void 0?Q.contentOnly:!1;if(Y){let W=this.original.slice(Z,q);Object.defineProperty(this.storedNames,W,{writable:!0,value:!0,enumerable:!0})}let X=this.byStart[Z],V=this.byEnd[q];if(X){let W=X;while(W!==V){if(W.next!==this.byStart[W.end])throw Error("Cannot overwrite across a split point");W=W.next,W.edit("",!1)}X.edit(J,Y,z)}else{let W=new Z0(Z,q,"").edit(J,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,q){if(typeof q!=="string")throw TypeError("inserted content must be a string");this._split(Z);let J=this.byEnd[Z];if(J)J.prependLeft(q);else this.intro=q+this.intro;return this}prependRight(Z,q){if(typeof q!=="string")throw TypeError("inserted content must be a string");this._split(Z);let J=this.byStart[Z];if(J)J.prependRight(q);else this.outro=q+this.outro;return this}remove(Z,q){while(Z<0)Z+=this.original.length;while(q<0)q+=this.original.length;if(Z===q)return this;if(Z<0||q>this.original.length)throw Error("Character is out of bounds");if(Z>q)throw Error("end must be greater than start");this._split(Z),this._split(q);let J=this.byStart[Z];while(J)J.intro="",J.outro="",J.edit(""),J=q>J.end?this.byStart[J.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(d6);if(Z!==-1)return this.outro.substr(Z+1);let q=this.outro,J=this.lastChunk;do{if(J.outro.length>0){if(Z=J.outro.lastIndexOf(d6),Z!==-1)return J.outro.substr(Z+1)+q;q=J.outro+q}if(J.content.length>0){if(Z=J.content.lastIndexOf(d6),Z!==-1)return J.content.substr(Z+1)+q;q=J.content+q}if(J.intro.length>0){if(Z=J.intro.lastIndexOf(d6),Z!==-1)return J.intro.substr(Z+1)+q;q=J.intro+q}}while(J=J.previous);if(Z=this.intro.lastIndexOf(d6),Z!==-1)return this.intro.substr(Z+1)+q;return this.intro+q}slice(Z=0,q=this.original.length){while(Z<0)Z+=this.original.length;while(q<0)q+=this.original.length;let J="",Q=this.firstChunk;while(Q&&(Q.start>Z||Q.end<=Z)){if(Q.start<q&&Q.end>=q)return J;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))J+=Q.intro;let z=Q.start<q&&Q.end>=q;if(z&&Q.edited&&Q.end!==q)throw Error(`Cannot use replaced character ${q} as slice end anchor.`);let X=Y===Q?Z-Q.start:0,V=z?Q.content.length+q-Q.end:Q.content.length;if(J+=Q.content.slice(X,V),Q.outro&&(!z||Q.end===q))J+=Q.outro;if(z)break;Q=Q.next}return J}snip(Z,q){let J=this.clone();return J.remove(0,Z),J.remove(q,J.original.length),J}_split(Z){if(this.byStart[Z]||this.byEnd[Z])return;let q=this.lastSearchedChunk,J=Z>q.end;while(q){if(q.contains(Z))return this._splitChunk(q,Z);q=J?this.byStart[q.end]:this.byEnd[q.start]}}_splitChunk(Z,q){if(Z.edited&&Z.content.length){let Q=g9(this.original)(q);throw Error(`Cannot split a chunk that has already been edited (${Q.line}:${Q.column} – "${Z.original}")`)}let J=Z.split(q);if(this.byEnd[q]=Z,this.byStart[q]=J,this.byEnd[J.end]=J,Z===this.lastChunk)this.lastChunk=J;return this.lastSearchedChunk=Z,!0}toString(){let Z=this.intro,q=this.firstChunk;while(q)Z+=q.toString(),q=q.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,q=0;do q+=Z.intro.length+Z.content.length+Z.outro.length;while(Z=Z.next);return q}trimLines(){return this.trim("[\\r\\n]")}trim(Z){return this.trimStart(Z).trimEnd(Z)}trimEndAborted(Z){let q=new RegExp((Z||"\\s")+"+$");if(this.outro=this.outro.replace(q,""),this.outro.length)return!0;let J=this.lastChunk;do{let Q=J.end,Y=J.trimEnd(q);if(J.end!==Q){if(this.lastChunk===J)this.lastChunk=J.next;this.byEnd[J.end]=J,this.byStart[J.next.start]=J.next,this.byEnd[J.next.end]=J.next}if(Y)return!0;J=J.previous}while(J);return!1}trimEnd(Z){return this.trimEndAborted(Z),this}trimStartAborted(Z){let q=new RegExp("^"+(Z||"\\s")+"+");if(this.intro=this.intro.replace(q,""),this.intro.length)return!0;let J=this.firstChunk;do{let Q=J.end,Y=J.trimStart(q);if(J.end!==Q){if(J===this.lastChunk)this.lastChunk=J.next;this.byEnd[J.end]=J,this.byStart[J.next.start]=J.next,this.byEnd[J.next.end]=J.next}if(Y)return!0;J=J.next}while(J);return!1}trimStart(Z){return this.trimStartAborted(Z),this}hasChanged(){return this.original!==this.toString()}replace(Z,q){function J(Y,z){if(typeof q==="string")return q.replace(/\$(\$|&|\d+)/g,(X,V)=>{if(V==="$")return"$";if(V==="&")return Y[0];if(+V<Y.length)return Y[+V];return`$${V}`});else return q(...Y,Y.index,z,Y.groups)}function Q(Y,z){let X,V=[];while(X=Y.exec(z))V.push(X);return V}if(typeof Z!=="string"&&Z.global)Q(Z,this.original).forEach((z)=>{if(z.index!=null)this.overwrite(z.index,z.index+z[0].length,J(z,this.original))});else{let Y=this.original.match(Z);if(Y&&Y.index!=null)this.overwrite(Y.index,Y.index+Y[0].length,J(Y,this.original))}return this}}class UZ{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
|
|
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(!qY(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((q)=>{if(!sJ.call(Z,q))Z[q]=Z.content[q]}),Z.separator===void 0)Z.separator=this.separator;if(Z.filename)if(!sJ.call(this.uniqueSourceIndexByFilename,Z.filename))this.uniqueSourceIndexByFilename[Z.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:Z.filename,content:Z.content.original});else{let q=this.uniqueSources[this.uniqueSourceIndexByFilename[Z.filename]];if(Z.content.original!==q.content)throw Error(`Illegal source: same filename (${Z.filename}), different contents`)}return this.sources.push(Z),this}append(Z,q){return this.addSource({content:new P8(Z),separator:q&&q.separator||""}),this}clone(){let Z=new UZ({intro:this.intro,separator:this.separator});return this.sources.forEach((q)=>{Z.addSource({filename:q.filename,content:q.content.clone(),separator:q.separator})}),Z}generateDecodedMap(Z={}){let q=[];this.sources.forEach((Q)=>{Object.keys(Q.content.storedNames).forEach((Y)=>{if(!~q.indexOf(Y))q.push(Y)})});let J=new $Z(Z.hires);if(this.intro)J.advance(this.intro);return this.sources.forEach((Q,Y)=>{if(Y>0)J.advance(this.separator);let z=Q.filename?this.uniqueSourceIndexByFilename[Q.filename]:-1,X=Q.content,V=g9(X.original);if(X.intro)J.advance(X.intro);if(X.firstChunk.eachNext((W)=>{let K=V(W.start);if(W.intro.length)J.advance(W.intro);if(Q.filename)if(W.edited)J.addEdit(z,W.content,K,W.storeName?q.indexOf(W.original):-1);else J.addUneditedChunk(z,W,X.original,K,X.sourcemapLocations);else J.advance(W.content);if(W.outro.length)J.advance(W.outro)}),X.outro)J.advance(X.outro)}),{file:Z.file?Z.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map((Q)=>{return Z.file?ZY(Z.file,Q.filename):Q.filename}),sourcesContent:this.uniqueSources.map((Q)=>{return Z.includeContent?Q.content:null}),names:q,mappings:J.raw}}generateMap(Z){return new B0(this.generateDecodedMap(Z))}getIndentString(){let Z={};return this.sources.forEach((q)=>{let J=q.content.indentStr;if(J===null)return;if(!Z[J])Z[J]=0;Z[J]+=1}),Object.keys(Z).sort((q,J)=>{return Z[q]-Z[J]})[0]||"\t"}indent(Z){if(!arguments.length)Z=this.getIndentString();if(Z==="")return this;let q=!this.intro||this.intro.slice(-1)===`
|
|
9
9
|
`;if(this.sources.forEach((J,Q)=>{let Y=J.separator!==void 0?J.separator:this.separator,z=q||Q>0&&/\r?\n$/.test(Y);J.content.indent(Z,{exclude:J.indentExclusionRanges,indentStart:z}),q=J.content.lastChar()===`
|
|
10
10
|
`}),this.intro)this.intro=Z+this.intro.replace(/^[^\n]/gm,(J,Q)=>{return Q>0?Z+J:J});return this}prepend(Z){return this.intro=Z+this.intro,this}toString(){let Z=this.sources.map((q,J)=>{let Q=q.separator!==void 0?q.separator:this.separator;return(J>0?Q:"")+q.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,q)=>Z+q.content.length(),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(Z){return this.trimStart(Z).trimEnd(Z)}trimStart(Z){let q=new RegExp("^"+(Z||"\\s")+"+");if(this.intro=this.intro.replace(q,""),!this.intro){let J,Q=0;do if(J=this.sources[Q++],!J)break;while(!J.content.trimStartAborted(Z))}return this}trimEnd(Z){let q=new RegExp((Z||"\\s")+"+$"),J,Q=this.sources.length-1;do if(J=this.sources[Q--],!J){this.intro=this.intro.replace(q,"");break}while(!J.content.trimEndAborted(Z));return this}}function jZ(Z,q){let J=Z.split(rJ).filter(Boolean),Q=q.split(rJ).filter(Boolean);if(J[0]===".")J.shift();if(Q[0]===".")Q.shift();while(J[0]&&Q[0]&&J[0]===Q[0])J.shift(),Q.shift();while(Q[0]===".."&&J.length>0)Q.shift(),J.pop();while(J.pop())Q.unshift("..");return Q.join("/")}function k5(Z,q,J){let Q=Z.get(q);if(Q)return Q;let Y=J();return Z.set(q,Y),Y}class J0{constructor(){this.entityPaths=Object.create(null,{[Z6]:{value:new Set}})}trackEntityAtPathAndGetIfTracked(Z,q){let J=this.getEntities(Z);if(J.has(q))return!0;return J.add(q),!1}withTrackedEntityAtPath(Z,q,J,Q){let Y=this.getEntities(Z);if(Y.has(q))return Q;Y.add(q);let z=J();return Y.delete(q),z}getEntities(Z){let q=this.entityPaths;for(let J of Z)q=q[J]=q[J]||Object.create(null,{[Z6]:{value:new Set}});return q[Z6]}}class w4{constructor(){this.entityPaths=Object.create(null,{[Z6]:{value:new Map}})}trackEntityAtPathAndGetIfTracked(Z,q,J){let Q=this.entityPaths;for(let z of Z)Q=Q[z]=Q[z]||Object.create(null,{[Z6]:{value:new Map}});let Y=k5(Q[Z6],q,()=>new Set);if(Y.has(J))return!0;return Y.add(J),!1}}class j5{constructor(){this.included=!1}deoptimizePath(Z){}deoptimizeThisOnInteractionAtPath({thisArg:Z},q,J){Z.deoptimizePath(_1)}getLiteralValueAtPath(Z,q,J){return E1}getReturnExpressionWhenCalledAtPath(Z,q,J,Q){return Y1}hasEffectsOnInteractionAtPath(Z,q,J){return!0}include(Z,q,J){this.included=!0}includeCallArguments(Z,q){for(let J of q)J.include(Z,!1)}shouldBeIncluded(Z){return!0}}function _$(Z,q){if(q===void 0)q={};var J=q.offsetLine||0,Q=q.offsetColumn||0,Y=Z.split(`
|
|
11
|
-
`),z=0,X=Y.map(function(M
|
|
12
|
-
`),Y=Math.max(0,q-3),z=Math.min(q+2,Q.length);Q=Q.slice(Y,z);while(!/\S/.test(Q[Q.length-1]))Q.pop(),z-=1;let X=String(z).length;return Q.map((V,W)=>{let K=Y+W+1===q,G=String(W+Y+1);while(G.length<X)G=` ${G}`;if(K){let
|
|
13
|
-
${
|
|
11
|
+
`),z=0,X=Y.map(function(F,M){var B=z+F.length+1,H={start:z,end:B,line:M};return z=B,H}),V=0;function W(F,M){return F.start<=M&&M<F.end}function K(F,M){return{line:J+F.line,column:Q+M-F.start,character:M}}function G(F,M){if(typeof F==="string")F=Z.indexOf(F,M||0);var B=X[V],H=F>=B.end?1:-1;while(B){if(W(B,F))return K(B,F);V+=H,B=X[V]}}return G}function QY(Z,q,J){if(typeof J==="number")throw Error("locate takes a { startIndex, offsetLine, offsetColumn } object as the third argument");return _$(Z,J)(q,J&&J.startIndex)}function I$(Z){let q="";while(Z--)q+=" ";return q}function L9(Z){return Z.replace(/^\t+/,(q)=>q.split("\t").join(" "))}function D$(Z,q,J){let Q=Z.split(`
|
|
12
|
+
`),Y=Math.max(0,q-3),z=Math.min(q+2,Q.length);Q=Q.slice(Y,z);while(!/\S/.test(Q[Q.length-1]))Q.pop(),z-=1;let X=String(z).length;return Q.map((V,W)=>{let K=Y+W+1===q,G=String(W+Y+1);while(G.length<X)G=` ${G}`;if(K){let F=I$(X+2+L9(V.slice(0,J)).length)+"^";return`${G}: ${L9(V)}
|
|
13
|
+
${F}`}return`${G}: ${L9(V)}`}).join(`
|
|
14
14
|
`)}function X8(Z,q){let J=Z.length<=1,Q=Z.map((z)=>`"${z}"`),Y=J?Q[0]:`${Q.slice(0,-1).join(", ")} and ${Q.slice(-1)[0]}`;if(q)Y+=` ${J?q[0]:q[1]}`;return Y}function V8(Z){return T$.test(Z)}function MZ(Z){return A$.test(Z)}function Y0(Z){return Z.replace(P$,"/")}function $4(Z){let q=z8(Z);return q.substring(0,q.length-J8(Z).length)}function V1(Z){if(!V8(Z))return Z;return jZ($5(),Z)}function d9(Z){return Z[0]==="/"||Z[0]==="."&&(Z[1]==="/"||Z[1]===".")||V8(Z)}function q4(Z,q,J,Q){let Y=Y0(jZ(x5(Z),q));if(J&&Y.endsWith(".js"))Y=Y.slice(0,-3);if(Q){if(Y==="")return"../"+z8(q);if(S$.test(Y))return Y.split("/").concat(["..",z8(q)]).join("/")}return!Y?".":Y.startsWith("..")?Y:"./"+Y}function Z1(Z){if(!(Z instanceof Error))Z=Object.assign(Error(Z.message),Z);throw Z}function O4(Z,q,J,Q){if(typeof q==="object"){let{line:Y,column:z}=q;Z.loc={column:z,file:Q,line:Y}}else{Z.pos=q;let{line:Y,column:z}=QY(J,q,{offsetLine:1});Z.loc={column:z,file:Q,line:Y}}if(Z.frame===void 0){let{line:Y,column:z}=Z.loc;Z.frame=D$(J,Y,z)}}function y$(Z){return{code:K1.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 E$(){return{code:K1.CANNOT_EMIT_FROM_OPTIONS_HOOK,message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'}}function b$(Z){return{code:K1.CHUNK_NOT_GENERATED,message:`Plugin error - Unable to get file name for chunk "${Z}". Ensure that generate is called first.`}}function x$({fileName:Z,code:q},J){let Q={code:K1.CHUNK_INVALID,message:`Chunk "${Z}" is not valid JavaScript: ${J.message}.`};return O4(Q,J.loc,q,Z),Q}function k$(Z,q){return{code:K1.CIRCULAR_REEXPORT,id:q,message:`"${Z}" cannot be exported from ${V1(q)} as it is a reexport that references itself.`}}function v$(Z,q,J,Q){return{code:K1.CYCLIC_CROSS_CHUNK_REEXPORT,exporter:q,importer:Q,message:`Export "${Z}" of module ${V1(q)} was reexported through module ${V1(J)} 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: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 I1{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 y8(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(`
|
|
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
16
|
`,q.lastIndex+1)+1;continue}}return q.lastIndex=0,!1}return!0}function jj(Z,q,J){let Q=[],Y=[];for(let z of Z)if(Uj.test(z.value))Q.push(z);else if(Kj.test(z.value))Y.push(z);for(let z of Y)I4(q,z,!1);LY(q,{annotationIndex:0,annotations:Q,code:J})}function I4(Z,q,J){let Q=J?MY:FY,Y=Z[Q];if(Y)Y.push(q);else Z[Q]=[q]}function Bj(Z){return n9[Z.type]=Object.keys(Z).filter((q)=>typeof Z[q]==="object"&&q.charCodeAt(0)!==95),n9[Z.type]}function a9(Z){let q="";do{let J=Z%HQ;Z=Math.floor(Z/HQ),q=Lj[J]+q}while(Z!==0);return q}function b5(Z,q){let J=Z,Q=1;while(q.has(J)||g4.has(J))J=`${Z}$${a9(Q++)}`;return q.add(J),J}class AZ{constructor(){this.children=[],this.variables=new Map}addDeclaration(Z,q,J,Q){let Y=Z.name,z=this.variables.get(Y);if(z)z.addDeclaration(Z,J);else z=new A5(Z.name,Z,J||H0,q),this.variables.set(Y,z);return z}contains(Z){return this.variables.has(Z)}findVariable(Z){throw Error("Internal Error: findVariable needs to be implemented by a subclass")}}function CY(Z,q){if(Z.type==="MemberExpression")return!Z.computed&&CY(Z.object,Z);if(Z.type==="Identifier"){if(!q)return!0;switch(q.type){case"MemberExpression":return q.computed||Z===q.object;case"MethodDefinition":return q.computed;case"PropertyDefinition":return q.computed||Z===q.value;case"Property":return q.computed||Z===q.value;case"ExportSpecifier":case"ImportSpecifier":return Z===q.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}return!1}function Y4(Z){let q=s9;for(let J of Z){if(typeof J!=="string")return null;if(q=q[J],!q)return null}return q[m1]}function FQ(Z){while(Z&&!/^Program|Function/.test(Z.type))Z=Z.parent;return Z}function yZ(Z,q,J,Q){if(q.remove(J,Q),Z.annotations)for(let Y of Z.annotations)if(Y.start<J)q.remove(Y.start,Y.end);else return}function _Y(Z,q){if(!Z.annotations&&Z.parent.type===w5)Z=Z.parent;if(Z.annotations)for(let J of Z.annotations)q.remove(J.start,J.end)}function o1(Z,q,J=0){let Q,Y;Q=Z.indexOf(q,J);while(!0){if(J=Z.indexOf("/",J),J===-1||J>=Q)return Q;if(Y=Z.charCodeAt(++J),++J,J=Y===47?Z.indexOf(`
|
|
17
17
|
`,J)+1:Z.indexOf("*/",J)+2,J>Q)Q=Z.indexOf(q,J)}}function W8(Z,q){return LQ.lastIndex=q,LQ.exec(Z).index}function D4(Z){let q,J,Q=0;q=Z.indexOf(`
|
|
18
18
|
`,Q);while(!0){if(Q=Z.indexOf("/",Q),Q===-1||Q>q)return[q,q+1];if(J=Z.charCodeAt(Q+1),J===47)return[Q,q+1];if(Q=Z.indexOf("*/",Q+3)+2,Q>q)q=Z.indexOf(`
|
|
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 M=1;M<=Z.length;M++)if(z=K,X=W,V=G,K=Z[M],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 M=0;M<Z.length;M++){if(X=Z[M],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 E8(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"],`${E8(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}${E8([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,`${E8([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 S8){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 I1?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 I1)&&!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:M,importers:B,reexportDescriptions:H,sources:F}=this;this.info={ast:null,code:null,get dynamicallyImportedIdResolutions(){return W.map(({argument:w})=>typeof w==="string"&&V.resolvedIds[w]).filter(Boolean)},get dynamicallyImportedIds(){return W.map(({id:w})=>w).filter((w)=>w!=null)},get dynamicImporters(){return K.sort()},get hasDefaultExport(){if(!V.ast)return null;return V.exports.has("default")||H.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(M,J6).sort()},get importedIdResolutions(){return Array.from(F,(w)=>V.resolvedIds[w]).filter(Boolean)},get importedIds(){return Array.from(F,(w)=>{var _;return(_=V.resolvedIds[w])===null||_===void 0?void 0:_.id}).filter(Boolean)},get importers(){return B.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 I1){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 I1)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 I1){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 A8(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:(M)=>DQ[M]||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:(M)=>this.getVariableForExportName(M)[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 I1||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 I1||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 I1){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:M,getPropertyAccess:B,n:H,s:F}=Y;if(!J)return`${H}${H}${V}${sj(Z,q,Q,X,B)};`;let w="";for(let{defaultVariableName:_,id:P,isChunk:D,name:A,namedExportsMode:h,namespaceVariableName:v,reexports:m}of q)if(m&&J){for(let x of m)if(x.reexported!=="*"){let R=v2(A,x.imported,h,D,_,v,Q,P,X,B);if(w)w+=H;if(x.imported!=="*"&&x.needsLiveBinding){let[S,I]=G([],{functionReturn:!0,lineBreakIndent:null,name:null});w+=`Object.defineProperty(exports,${W}'${x.reexported}',${W}{${H}${z}enumerable:${W}true,${H}${z}get:${W}${S}${R}${I}${H}});`}else w+=`exports${B(x.reexported)}${W}=${W}${R};`}}for(let{exported:_,local:P}of Z){let D=`exports${B(_)}`,A=P;if(D!==A){if(w)w+=H;w+=`${D}${W}=${W}${A};`}}for(let{name:_,reexports:P}of q)if(P&&J){for(let D of P)if(D.reexported==="*"){if(w)w+=H;let A=`{${H}${z}if${W}(k${W}!==${W}'default'${W}&&${W}!exports.hasOwnProperty(k))${W}${rj(_,D.needsLiveBinding,z,Y)}${F}${H}}`;w+=K==="var"&&D.needsLiveBinding?`Object.keys(${_}).forEach(${M(["k"],{isAsync:!1,name:null})}${A});`:`for${W}(${K} k in ${_})${W}${A}`}}if(w)return`${H}${H}${w}`;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:M}of q)if(M)return v2(W,M[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)),M=O0[G]?Y:Z;return e4(G,W)?`${M}${K("default")}`:M}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,M=new Set,B=[],H=(F,w,_)=>{M.add(w),B.push(`${K} ${F}${W}=${W}/*#__PURE__*/${w}(${_});`)};for(let{defaultVariableName:F,imports:w,id:_,isChunk:P,name:D,namedExportsMode:A,namespaceVariableName:h,reexports:v}of Z)if(P){for(let{imported:m,reexported:x}of[...w||[],...v||[]])if(m==="*"&&x!=="*"){if(!A)H(h,W0,D);break}}else{let m=String(q(_)),x=!1,R=!1;for(let{imported:S,reexported:I}of[...w||[],...v||[]]){let j,b;if(S==="default"){if(!x){if(x=!0,F!==h)b=F,j=O0[m]}}else if(S==="*"&&I!=="*"){if(!R)R=!0,j=R0[m],b=h}if(j)H(b,j,D)}}return`${lZ(M,z,X,V,J,Q,Y)}${B.length>0?`${B.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:M,snippets:B,warn:H},{amd:F,esModule:w,externalLiveBindings:_,freeze:P,interop:D,namespaceToStringTag:A,strict:h}){rZ(H,J);let v=J.map(($)=>`'${f2($.id,F.forceJsExtensionForImports)}'`),m=J.map(($)=>$.name),{n:x,getNonArrowFunctionIntro:R,_:S}=B;if(G&&Y)m.unshift("exports"),v.unshift("'exports'");if(q.has("require"))m.unshift("require"),v.unshift("'require'");if(q.has("module"))m.unshift("module"),v.unshift("'module'");let I=k2(F,z),j=(I?`'${I}',${S}`:"")+(v.length?`[${v.join(`,${S}`)}],${S}`:""),b=h?`${S}'use strict';`:"";Z.prepend(`${V}${J7(J,D,_,P,A,q,X,B)}`);let k=Z7(Q,J,G,D,B,X,_),y=q7(G&&Y,W&&w,K&&A,B);if(y)y=x+x+y;return Z.append(`${k}${y}${M}`),Z.indent(X).prepend(`${F.define}(${j}(${R(m,{isAsync:!1,name:null})}{${b}${x}${x}`).append(`${x}${x}}));`)}function ZB(Z,{accessedGlobals:q,dependencies:J,exports:Q,hasExports:Y,indent:z,intro:X,isEntryFacade:V,isModuleFacade:W,namedExportsMode:K,outro:G,snippets:M},{compact:B,esModule:H,externalLiveBindings:F,freeze:w,interop:_,namespaceToStringTag:P,strict:D}){let{_:A,n:h}=M,v=D?`'use strict';${h}${h}`:"",m=q7(K&&Y,V&&H,W&&P,M);if(m)m+=h+h;let x=qB(J,M,B),R=J7(J,_,F,w,P,q,z,M);Z.prepend(`${v}${X}${m}${x}${R}`);let S=Z7(Q,J,K,_,M,z,F,`module.exports${A}=${A}`);return Z.append(`${S}${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{_:M,n:B}=V,H=QB(z,M);if(H.length>0)Q+=H.join(B)+B+B;if(Q+=lZ(null,q,J,V,W,K,G),Q)Z.prepend(Q);let F=YB(X,V);if(F.length)Z.append(B+B+F.join(B).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?",":`
|
|
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
20
|
`)+(X&&V.length?";":`
|
|
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:M,esModule:B,extend:H,freeze:F,externalLiveBindings:w,globals:_,interop:P,name:D,namespaceToStringTag:A,strict:h}){let{_:v,getNonArrowFunctionIntro:m,getPropertyAccess:x,n:R}=K,S=D&&D.includes("."),I=!H&&!S;if(D&&I&&!HU(D))return Z1({code:"ILLEGAL_IDENTIFIER_AS_NAME",message:`Given name "${D}" is not a legal JS identifier. If you need this, you can try "output.extend: true".`});rZ(G,J);let j=h2(J),b=j.map((o)=>o.globalName||"null"),k=j.map((o)=>o.name);if(Y&&!D)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(H)b.unshift(`this${B4(D,x)}${v}=${v}this${B4(D,x)}${v}||${v}{}`),k.unshift("exports");else b.unshift("{}"),k.unshift("exports");let y=h?`${z}'use strict';${R}`:"",$=J7(J,P,w,F,A,q,z,K);Z.prepend(`${X}${$}`);let L=`(${m(k,{isAsync:!1,name:null})}{${R}${y}${R}`;if(Y){if(D&&!(H&&V))L=(I?`var ${D}`:`this${B4(D,x)}`)+`${v}=${v}${L}`;if(S)L=zB(D,"this",_,K,M)+L}let l=`${R}${R}})(${b.join(`,${v}`)});`;if(Y&&!H&&V)l=`${R}${R}${z}return exports;${l}`;let f=Z7(Q,J,V,P,K,z,w),s=q7(V&&Y,B,A,K);if(s)s=R+R+s;return Z.append(`${f}${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:M,name:B,namespaceToStringTag:H,strict:F,systemNullSetters:w}){let{_,getFunctionIntro:P,getNonArrowFunctionIntro:D,n:A,s:h}=V,{importBindings:v,setters:m,starExcludes:x}=WB(J,Q,z,V),R=B?`'${B}',${_}`:"",S=q.has("module")?["exports","module"]:Y?["exports"]:[],I=`System.register(${R}[`+J.map(({id:b})=>`'${b}'`).join(`,${_}`)+`],${_}(${D(S,{isAsync:!1,name:null})}{${A}${z}${F?"'use strict';":""}`+GB(x,z,V)+$B(v,z,V)+`${A}${z}return${_}{${m.length?`${A}${z}${z}setters:${_}[${m.map((b)=>b?`${P(["module"],{isAsync:!1,name:null})}{${A}${z}${z}${z}${b}${A}${z}${z}}`:w?"null":`${P([],{isAsync:!1,name:null})}{}`).join(`,${_}`)}],`:""}${A}`;I+=`${z}${z}execute:${_}(${D([],{isAsync:K,name:null})}{${A}${A}`;let j=`${z}${z}})${A}${z}}${h}${A}}));`;return Z.prepend(X+lZ(null,q,z,V,G,M,H)+UB(Q,z,V)),Z.append(`${W}${A}${A}`+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:M,reexports:B}of Z){let H=[];if(M)for(let F of M)if(W.push(F.local),F.imported==="*")H.push(`${F.local}${Q}=${Q}module;`);else H.push(`${F.local}${Q}=${Q}module${X(F.imported)};`);if(B){let F=[],w=!1;for(let{imported:_,reexported:P}of B)if(P==="*")w=!0;else F.push([P,_==="*"?"module":`module${X(_)}`]);if(F.length>1||w){let _=z(F,{lineBreakIndent:null});if(w){if(!G)G=KB({dependencies:Z,exports:q});H.push(`${Y} setter${Q}=${Q}${_};`,`for${Q}(${Y} name in module)${Q}{`,`${J}if${Q}(!_starExcludes[name])${Q}setter[name]${Q}=${Q}module[name];`,"}","exports(setter);")}else H.push(`exports(${_});`)}else{let[_,P]=F[0];H.push(`exports('${_}',${Q}${P});`)}}K.push(H.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:M},{amd:B,compact:H,esModule:F,extend:w,externalLiveBindings:_,freeze:P,interop:D,name:A,namespaceToStringTag:h,globals:v,noConflict:m,strict:x}){let{_:R,cnst:S,getFunctionIntro:I,getNonArrowFunctionIntro:j,getPropertyAccess:b,n:k,s:y}=G,$=H?"f":"factory",L=H?"g":"global";if(Y&&!A)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(M,J);let l=J.map((W5)=>`'${f2(W5.id,B.forceJsExtensionForImports)}'`),f=J.map((W5)=>`require('${W5.id}')`),s=h2(J),o=s.map((W5)=>y9(W5.globalName,L,b)),Q1=s.map((W5)=>W5.name);if(W&&(Y||m))l.unshift("'exports'"),f.unshift("exports"),o.unshift(S9(A,L,v,`${w?`${y9(A,L,b)}${R}||${R}`:""}{}`,G)),Q1.unshift("exports");let N1=k2(B,z),O1=(N1?`'${N1}',${R}`:"")+(l.length?`[${l.join(`,${R}`)}],${R}`:""),w1=B.define,a=!W&&Y?`module.exports${R}=${R}`:"",u=x?`${R}'use strict';${k}`:"",M1;if(m){let W5=H?"e":"exports",h7;if(!W&&Y)h7=`${S} ${W5}${R}=${R}${S9(A,L,v,`${$}(${o.join(`,${R}`)})`,G)};`;else{let wW=o.shift();h7=`${S} ${W5}${R}=${R}${wW};${k}${X}${X}${$}(${[W5].concat(o).join(`,${R}`)});`}M1=`(${I([],{isAsync:!1,name:null})}{${k}${X}${X}${S} current${R}=${R}${HB(A,L,G)};${k}${X}${X}${h7}${k}${X}${X}${W5}.noConflict${R}=${R}${I([],{isAsync:!1,name:null})}{${R}${y9(A,L,b)}${R}=${R}current;${R}return ${W5}${y}${R}};${k}${X}})()`}else if(M1=`${$}(${o.join(`,${R}`)})`,!W&&Y)M1=S9(A,L,v,M1,G);let p=Y||m&&W||o.length>0,T=[$];if(p)T.unshift(L);let E=p?`this,${R}`:"",C=p?`(${L}${R}=${R}typeof globalThis${R}!==${R}'undefined'${R}?${R}globalThis${R}:${R}${L}${R}||${R}self,${R}`:"",g=p?")":"",c=p?`${X}typeof exports${R}===${R}'object'${R}&&${R}typeof module${R}!==${R}'undefined'${R}?${R}${a}${$}(${f.join(`,${R}`)})${R}:${k}`:"",r=`(${j(T,{isAsync:!1,name:null})}{${k}`+c+`${X}typeof ${w1}${R}===${R}'function'${R}&&${R}${w1}.amd${R}?${R}${w1}(${O1}${$})${R}:${k}${X}${C}${M1}${g};${k}})(${E}(${j(Q1,{isAsync:!1,name:null})}{${u}${k}`,e=k+k+"}));";Z.prepend(`${V}${J7(J,D,_,P,h,q,X,G)}`);let p1=Z7(Q,J,W,D,G,X,_),g1=q7(W&&Y,F,h,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:M,line:B,name:H,source:{content:F,filename:w}}=G,_=q.get(w);if(_===void 0)_=Z.length,Z.push(w),q.set(w,_),J[_]=F;else if(J[_]==null)J[_]=F;else if(F!=null&&J[_]!==F)return Z1({message:`Multiple conflicting contents for sourcemap source ${w}`});let P=[W[0],_,B,M];if(H){let D=Y.get(H);if(D===void 0)D=Q.length,Q.push(H),Y.set(H,D);P[4]=D}V.push(P)}}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((M,B)=>new ZZ($5(W,K,M),V[B]));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((F)=>!F.excludeFromSourcemap).map((F)=>m2(F.id,F.originalCode,F.originalSourcemap,F.sourcemapChain,X)),W=new $0(q,V),K=Q.reduce(X,W),{sources:G,sourcesContent:M,names:B,mappings:H}=K.traceMappings();if(Z){let F=x5(Z);G=G.map((w)=>WZ(F,w)),Z=z8(Z)}return M=Y?null:M,new B0({file:Z,mappings:H,names:B,sources:G,sourcesContent:M})}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,M,B){let H=Z.slice().reverse();for(let F of H)F.scope.addUsedOutsideNames(Q,Y,G,M);RB(Q,H,B),wB[Y](Q,J,q,z,X,V,W,K);for(let F of H)F.scope.deconflict(Y,G,M)}function SQ(Z,q,J,Q,Y,z,X,V){for(let W of J.dependencies)if(Y||W instanceof I1)W.variableName=b5(W.suggestedVariableName,Z);for(let W of q){let{module:K,name:G}=W;if(W.isNamespace&&(Y||K instanceof I1))W.setRenderNames(null,(K instanceof I1?K:X.get(K)).variableName);else if(K instanceof I1&&G==="default")W.setRenderNames(null,b5([...K.exportedVariables].some(([M,B])=>B==="*"&&M.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 I1){let M=K.name;if(M==="default"){let B=String(z(G.id)),H=O0[B]?G.defaultVariableName:G.variableName;if(e4(B,V))K.setRenderNames(H,"default");else K.setRenderNames(null,H)}else if(M==="*")K.setRenderNames(null,R0[String(z(G.id))]?G.namespaceVariableName:G.variableName);else K.setRenderNames(G.variableName,null)}else{let M=W.get(G);if(X&&K.isNamespace)K.setRenderNames(null,M.exportMode==="default"?M.namespaceVariableName:M.variableName);else if(M.exportMode==="default")K.setRenderNames(null,M.variableName);else K.setRenderNames(M.variableName,M.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 I1){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 C8{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 M of Z){if(M.namespace.included)W.add(M);if(this.isEmpty&&M.isIncluded())this.isEmpty=!1;if(M.info.isEntry||J.preserveModules)this.entryModules.push(M);for(let B of M.includedDynamicImporters)if(!G.has(B)){if(this.dynamicEntryModules.push(M),M.info.syntheticNamedExports&&!J.preserveModules)W.add(M),this.exports.add(M.namespace)}if(M.implicitlyLoadedAfter.size>0)this.implicitEntryModules.push(M)}this.suggestedVariableName=FZ(this.generateVariableName())}static generateFacade(Z,q,J,Q,Y,z,X,V,W,K){let G=new C8([],Z,q,J,Q,Y,z,X,V,null);if(G.assignFacadeName(K,W),!X.has(W))X.set(W,G);for(let M of W.getDependenciesToBeIncluded())G.dependencies.add(M instanceof A1?z.get(M):M);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(C8.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),M=H4(W,"output.entryFileNames",{assetExtname:()=>yQ.includes(G)?"":G,ext:()=>G.substring(1),extname:()=>G,format:()=>q.format,name:()=>this.getChunkName()}),B=`${K}/${M}`,{preserveModulesRoot:H}=q;if(H&&$5(B).startsWith(H))X=B.slice(H.length).replace(/^[\\/]/,"");else X=jZ(Z,B)}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 C8)this.inlineChunkDependencies(G)}this.prepareModulesForRendering(J),this.setIdentifierRenderResolutions(Z);let W="",K=this.renderedModules;for(let G of this.orderedModules){let M=0;if(G.isIncluded()||this.includedNamespaces.has(G)){let w=G.render(V).trim();if(M=w.length(),M){if(Z.compact&&w.lastLine().includes("//"))w.append(`
|
|
23
|
-
`);this.renderedModuleSources.set(G,
|
|
24
|
-
`)
|
|
25
|
-
`;return{code:
|
|
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(G,N),X.addSource(N),this.usedModules.push(G)}let C=G.namespace;if(this.includedNamespaces.has(G)&&!this.outputOptions.preserveModules){let A=C.renderBlock(V);if(C.renderFirst())W+=z+A;else X.addSource(new P8(A))}}let{renderedExports:M,removedExports:B}=G.getRenderedExports(),{renderedModuleSources:H}=this;K[G.id]={get code(){var N,C;return(C=(N=H.get(G))===null||N===void 0?void 0:N.toString())!==null&&C!==void 0?C:null},originalLength:G.originalCode.length,removedExports:B,renderedExports:M,renderedLength:F}}if(W)X.prepend(W+z+z);if(this.needsExportsShim)X.prepend(`${z}${J.cnst} ${V6}${Q}=${Q}void 0;${z}${z}`);if(Z.compact)this.renderedSource=X;else this.renderedSource=X.trim();if(this.renderedHash=void 0,this.isEmpty&&this.getExportNames().length===0&&this.dependencies.size===0){let G=this.getChunkName();this.inputOptions.onwarn({chunkName:G,code:"EMPTY_BUNDLE",message:`Generated an empty chunk: "${G}"`})}this.setExternalRenderPaths(Z,q),this.renderedDependencies=this.getChunkDependencyDeclarations(Z,Y),this.renderedExports=this.exportMode==="none"?[]:this.getChunkExportDeclarations(Z.format,Y)}async render(Z,q,J,Q){s1("render format",2);let Y=Z.format,z=FB[Y];if(Z.dynamicImportFunction&&Y!=="es")this.inputOptions.onwarn(h1("output.dynamicImportFunction","outputdynamicImportFunction",'this option is ignored for formats other than "es"'));for(let H of this.dependencies){let N=this.renderedDependencies.get(H);if(H instanceof D1){let C=H.renderPath;N.id=W4(H.renormalizeRenderPath?q4(this.id,C,!1,!1):C)}else N.namedExportsMode=H.exportMode!=="default",N.id=W4(q4(this.id,H.id,!1,!0))}this.finaliseDynamicImports(Z,Q),this.finaliseImportMetas(Y,Q);let X=this.renderedExports.length!==0||[...this.renderedDependencies.values()].some((H)=>H.reexports&&H.reexports.length!==0),V=null,W=new Set;for(let H of this.orderedModules){if(H.usesTopLevelAwait)V=H.id;let N=this.accessedGlobalsByScope.get(H.scope);if(N)for(let C of N)W.add(C)}if(V!==null&&Y!=="es"&&Y!=="system")return Z1({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=z(this.renderedSource,{accessedGlobals:W,dependencies:[...this.renderedDependencies.values()],exports:this.renderedExports,hasExports:X,id:this.id,indent:this.indentString,intro:q.intro,isEntryFacade:this.outputOptions.preserveModules||this.facadeModule!==null&&this.facadeModule.info.isEntry,isModuleFacade:this.facadeModule!==null,namedExportsMode:this.exportMode!=="default",outro:q.outro,snippets:Q,usesTopLevelAwait:V!==null,warn:this.inputOptions.onwarn},Z);if(q.banner)K.prepend(q.banner);if(q.footer)K.append(q.footer);let G=K.toString();i1("render format",2);let F=null,M=[],B=await EB({code:G,options:Z,outputPluginDriver:this.pluginDriver,renderChunk:J,sourcemapChain:M});if(Z.sourcemap){s1("sourcemap",2);let H;if(Z.file)H=$5(Z.sourcemapFile||Z.file);else if(Z.dir)H=$5(Z.dir,this.id);else H=$5(this.id);let N=K.generateDecodedMap({});F=LB(H,N,this.usedModules,M,Z.sourcemapExcludeSources,this.inputOptions.onwarn),F.sources=F.sources.map((C)=>{let{sourcemapPathTransform:A}=Z;if(A){let S=A(C,`${H}.map`);if(typeof S!=="string")Z1(n5("sourcemapPathTransform function must return a string."));return S}return C}).map(Y0),i1("sourcemap",2)}if(!Z.compact&&B[B.length-1]!==`
|
|
24
|
+
`)B+=`
|
|
25
|
+
`;return{code:B,map:F}}addDependenciesToChunk(Z,q){for(let J of Z)if(J instanceof A1){let Q=this.chunkByModule.get(J);if(Q&&Q!==this)q.add(Q)}else q.add(J)}addNecessaryImportsForFacades(){for(let[Z,q]of this.includedReexportsByModule)if(this.includedNamespaces.has(Z))for(let J of q)this.imports.add(J)}assignFacadeName({fileName:Z,name:q},J){if(Z)this.fileName=Z;else this.name=this.outputOptions.sanitizeFileName(q||E9(J))}checkCircularDependencyImport(Z,q){let J=Z.module;if(J instanceof A1){let Q=this.chunkByModule.get(J),Y;do if(Y=q.alternativeReexportModules.get(Z),Y){let z=this.chunkByModule.get(Y);if(z&&z!==Q)this.inputOptions.onwarn(v$(J.getExportNamesByVariable().get(Z)[0],J.id,Y.id,q.id));q=Y}while(Y)}}computeContentHashWithDependencies(Z,q,J){let Q=y4();Q.update([Z.intro,Z.outro,Z.banner,Z.footer].join(":")),Q.update(q.format);let Y=new Set([this]);for(let z of Y){if(z instanceof D1)Q.update(`:${z.renderPath}`);else Q.update(z.getRenderedHash()),Q.update(z.generateId(Z,q,J,!1));if(z instanceof D1)continue;for(let X of[...z.dependencies,...z.dynamicDependencies])Y.add(X)}return Q.digest("hex").substr(0,8)}ensureReexportsAreAvailableForModule(Z){let q=[],J=Z.getExportNamesByVariable();for(let Q of J.keys()){let Y=Q instanceof G5,z=Y?Q.getBaseVariable():Q;if(!(z instanceof q6&&this.outputOptions.preserveModules)){this.checkCircularDependencyImport(z,Z);let X=z.module;if(X instanceof A1){let V=this.chunkByModule.get(X);if(V&&V!==this){if(V.exports.add(z),q.push(z),Y)this.imports.add(z)}}}}if(q.length)this.includedReexportsByModule.set(Z,q)}finaliseDynamicImports(Z,q){let J=Z.format==="amd"&&!Z.amd.forceJsExtensionForImports;for(let[Q,Y]of this.renderedModuleSources)for(let{node:z,resolution:X}of Q.dynamicImports){let V=this.chunkByModule.get(X),W=this.facadeChunkByModule.get(X);if(!X||!z.included||V===this)continue;let K=X instanceof A1?`'${W4(q4(this.id,(W||V).id,J,!0))}'`:X instanceof D1?`'${W4(X.renormalizeRenderPath?q4(this.id,X.renderPath,J,!1):X.renderPath)}'`:X;z.renderFinalResolution(Y,K,X instanceof A1&&!(W===null||W===void 0?void 0:W.strictFacade)&&V.exportNamesByVariable.get(X.namespace)[0],q)}}finaliseImportMetas(Z,q){for(let[J,Q]of this.renderedModuleSources)for(let Y of J.importMetas)Y.renderFinalMechanism(Q,this.id,Z,q,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 E9(Z);return"chunk"}getChunkDependencyDeclarations(Z,q){let J=this.getImportSpecifiers(q),Q=this.getReexportSpecifiers(),Y=new Map;for(let z of this.dependencies){let X=J.get(z)||null,V=Q.get(z)||null,W=z instanceof D1||z.exportMode!=="default";Y.set(z,{defaultVariableName:z.defaultVariableName,globalName:z instanceof D1&&(Z.format==="umd"||Z.format==="iife")&&xB(z,Z.globals,(X||V)!==null,this.inputOptions.onwarn),id:void 0,imports:X,isChunk:z instanceof _8,name:z.variableName,namedExportsMode:W,namespaceVariableName:z.namespaceVariableName,reexports:V})}return Y}getChunkExportDeclarations(Z,q){let J=[];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 z=null,X=!1,V=Y.getName(q);if(Y instanceof A5){for(let W of Y.declarations)if(W.parent instanceof X6||W instanceof w0&&W.declaration instanceof X6){X=!0;break}}else if(Y instanceof G5){if(z=V,Z==="es")V=Y.renderName}J.push({exported:Q,expression:z,hoisted:X,local:V})}return J}getDependenciesToBeDeconflicted(Z,q,J){let Q=new Set,Y=new Set,z=new Set;for(let X of[...this.exportNamesByVariable.keys(),...this.imports])if(Z||X.isNamespace){let V=X.module;if(V instanceof D1){if(Q.add(V),Z){if(X.name==="default"){if(O0[String(J(V.id))])Y.add(V)}else if(X.name==="*"){if(R0[String(J(V.id))])z.add(V)}}}else{let W=this.chunkByModule.get(V);if(W!==this){if(Q.add(W),Z&&W.exportMode==="default"&&X.isNamespace)z.add(W)}}}if(q)for(let X of this.dependencies)Q.add(X);return{deconflictedDefault:Y,deconflictedNamespace:z,dependencies:Q}}getFallbackChunkName(){if(this.manualChunkAlias)return this.manualChunkAlias;if(this.dynamicName)return this.dynamicName;if(this.fileName)return $4(this.fileName);return $4(this.orderedModules[this.orderedModules.length-1].id)}getImportSpecifiers(Z){let{interop:q}=this.outputOptions,J=new Map;for(let Q of this.imports){let Y=Q.module,z,X;if(Y instanceof D1){if(z=Y,X=Q.name,X!=="default"&&X!=="*"&&q(Y.id)==="defaultOnly")return Z1(eJ(Y.id,X,!1))}else z=this.chunkByModule.get(Y),X=z.getVariableExportName(Q);k5(J,z,()=>[]).push({imported:X,local:Q.getName(Z)})}return J}getImportedBindingsPerDependency(){let Z={};for(let[q,J]of this.renderedDependencies){let Q=new Set;if(J.imports)for(let{imported:Y}of J.imports)Q.add(Y);if(J.reexports)for(let{imported:Y}of J.reexports)Q.add(Y);Z[q.id]=[...Q]}return Z}getReexportSpecifiers(){let{externalLiveBindings:Z,interop:q}=this.outputOptions,J=new Map;for(let Q of this.getExportNames()){let Y,z,X=!1;if(Q[0]==="*"){let V=Q.substring(1);if(q(V)==="defaultOnly")this.inputOptions.onwarn(VU(V));X=Z,Y=this.modulesById.get(V),z=Q="*"}else{let V=this.exportsByName.get(Q);if(V instanceof G5)continue;let W=V.module;if(W instanceof A1){if(Y=this.chunkByModule.get(W),Y===this)continue;z=Y.getVariableExportName(V),X=V.isReassigned}else{if(Y=W,z=V.name,z!=="default"&&z!=="*"&&q(W.id)==="defaultOnly")return Z1(eJ(W.id,z,!0));X=Z&&(z!=="default"||e4(String(q(W.id)),!0))}}k5(J,Y,()=>[]).push({imported:z,needsLiveBinding:X,reexported:Q})}return J}getReferencedFiles(){let Z=[];for(let q of this.orderedModules)for(let J of q.importMetas){let Q=J.getReferencedFileName(this.pluginDriver);if(Q)Z.push(Q)}return Z}inlineChunkDependencies(Z){for(let q of Z.dependencies){if(this.dependencies.has(q))continue;if(this.dependencies.add(q),q instanceof _8)this.inlineChunkDependencies(q)}}prepareModulesForRendering(Z){var q;let J=this.accessedGlobalsByScope;for(let Q of this.orderedModules){for(let{node:Y,resolution:z}of Q.dynamicImports)if(Y.included)if(z instanceof A1){let X=this.chunkByModule.get(z);if(X===this)Y.setInternalResolution(z.namespace);else Y.setExternalResolution(((q=this.facadeChunkByModule.get(z))===null||q===void 0?void 0:q.exportMode)||X.exportMode,z,this.outputOptions,Z,this.pluginDriver,J)}else Y.setExternalResolution("external",z,this.outputOptions,Z,this.pluginDriver,J);for(let Y of Q.importMetas)Y.addAccessedGlobals(this.outputOptions.format,J);if(this.includedNamespaces.has(Q)&&!this.outputOptions.preserveModules)Q.namespace.prepare(J)}}setExternalRenderPaths(Z,q){for(let J of[...this.dependencies,...this.dynamicDependencies])if(J instanceof D1)J.setRenderPath(Z,q)}setIdentifierRenderResolutions({format:Z,interop:q,namespaceToStringTag:J}){let Q=new Set;for(let z of this.getExportNames()){let X=this.exportsByName.get(z);if(Z!=="es"&&Z!=="system"&&X.isReassigned&&!X.isId)X.setRenderNames("exports",z);else if(X instanceof G5)Q.add(X);else X.setRenderNames(null,null)}for(let z of this.orderedModules)if(z.needsExportShim){this.needsExportsShim=!0;break}let Y=new Set(["Object","Promise"]);if(this.needsExportsShim)Y.add(V6);if(J)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 z of e9)Y.add(z)}OB(this.orderedModules,this.getDependenciesToBeDeconflicted(Z!=="es"&&Z!=="system",Z==="amd"||Z==="umd"||Z==="iife",q),this.imports,Y,Z,q,this.outputOptions.preserveModules,this.outputOptions.externalLiveBindings,this.chunkByModule,Q,this.exportNamesByVariable,this.accessedGlobalsByScope,this.includedNamespaces)}setUpChunkImportsAndExportsForModule(Z){let q=new Set(Z.includedImports);if(!this.outputOptions.preserveModules){if(this.includedNamespaces.has(Z)){let J=Z.namespace.getMemberVariables();for(let Q of Object.values(J))q.add(Q)}}for(let J of q){if(J instanceof f5)J=J.getOriginalVariable();if(J instanceof G5)J=J.getBaseVariable();let Q=this.chunkByModule.get(J.module);if(Q!==this){if(this.imports.add(J),!(J instanceof q6&&this.outputOptions.preserveModules)&&J.module instanceof A1)Q.exports.add(J),this.checkCircularDependencyImport(J,Z)}}if(this.includedNamespaces.has(Z)||Z.info.isEntry&&Z.preserveSignature!==!1||Z.includedDynamicImporters.some((J)=>this.chunkByModule.get(J)!==this))this.ensureReexportsAreAvailableForModule(Z);for(let{node:J,resolution:Q}of Z.dynamicImports)if(J.included&&Q instanceof A1&&this.chunkByModule.get(Q)===this&&!this.includedNamespaces.has(Q))this.includedNamespaces.add(Q),this.ensureReexportsAreAvailableForModule(Q)}}function E9(Z){var q,J,Q,Y;return(Y=(J=(q=Z.chunkNames.find(({isUserDefined:z})=>z))===null||q===void 0?void 0:q.name)!==null&&J!==void 0?J:(Q=Z.chunkNames[0])===null||Q===void 0?void 0:Q.name)!==null&&Y!==void 0?Y:$4(Z.id)}async function vB(Z,q){try{let[J,Q,Y,z]=await Promise.all([q.hookReduceValue("banner",Z.banner(),[],EQ),q.hookReduceValue("footer",Z.footer(),[],EQ),q.hookReduceValue("intro",Z.intro(),[],bQ),q.hookReduceValue("outro",Z.outro(),[],bQ)]);if(Y)Y+=`
|
|
26
26
|
|
|
27
27
|
`;if(z)z=`
|
|
28
28
|
|
|
29
29
|
${z}`;if(J.length)J+=`
|
|
30
30
|
`;if(Q.length)Q=`
|
|
31
31
|
`+Q;return{banner:J,footer:Q,intro:Y,outro:z}}catch(J){return Z1({code:"ADDON_ERROR",message:`Could not retrieve ${J.hook}. Check configuration of plugin ${J.plugin}.
|
|
32
|
-
Error Message: ${J.message}`})}}function fB(Z,q){let J=[],Q=new Set(q.keys()),Y=Object.create(null);for(let[B
|
|
33
|
-
`,s:";"},W=J?"const":"var",K=(
|
|
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:_8(HH[Z]+" "+mQ),nonBinary:{General_Category:_8(mQ),Script:_8(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:(M,B,{custom:H,isEntry:F,skipSelf:w}=n1)=>{return Q(M,B,H,F,w?[...Y,{importer:B,plugin:G,source:M}]: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 I8.lstat(Z);if(!q&&J.isSymbolicLink())return await F4(await I8.realpath(Z),q);if(q&&J.isSymbolicLink()||J.isFile()){let Q=z8(Z);if((await I8.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=[],M=!1,B=()=>M=!0,H="",F=Z.code;function w(P,D,A){let h,v;if(typeof D==="string")h=D;else if(D&&typeof D==="object"){if(q.updateOptions(D),D.code==null){if(D.map||D.ast)Q(YU(A.name));return P}({code:h,map:v,ast:W}=D)}else return P;if(v!==null)z.push(qZ(typeof v==="string"?JSON.parse(v):v)||{missing:!0,plugin:A.name});return h}let _;try{_=await J.hookReduceArg0("transform",[F,Y],w,(P,D)=>{return H=D.name,{...P,addWatchFile(A){K.push(A),P.addWatchFile(A)},cache:M?P.cache:yH(P.cache,B),emitAsset(A,h){return G.push({name:A,source:h,type:"asset"}),P.emitAsset(A,h)},emitChunk(A,h){return G.push({id:A,name:h&&h.name,type:"chunk"}),P.emitChunk(A,h)},emitFile(A){return G.push(A),J.emitFile(A)},error(A,h){if(typeof A==="string")A={message:A};if(h)O4(A,h,F,Y);return A.id=Y,A.hook="transform",P.error(A)},getCombinedSourcemap(){let A=NB(Y,V,X,z,Q);if(!A)return new A8(V).generateMap({hires:!0,includeContent:!0,source:Y});if(X!==A)X=A,z.length=0;return new B0({...A,file:null,sourcesContent:A.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(A,h){if(typeof A==="string")A={message:A};if(h)O4(A,h,F,Y);A.id=Y,A.hook="transform",P.warn(A)}}})}catch(P){k4(P,H,{hook:"transform",id:Y})}if(!M){if(G.length)q.transformFiles=G}return{ast:W,code:_,customTransformCache:M,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 I8.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 M=await K;if(!X)await this.fetchModuleDependencies(W,...M);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 I1(this.options,Y,z,X,Q!=="absolute"&&V8(Y)));let V=this.modulesById.get(Y);if(!(V instanceof I1))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:M,skipSelf:B}=n1){return J.moduleLoader.resolveId(W,K,G,M,B?[{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:
|
|
32
|
+
Error Message: ${J.message}`})}}function fB(Z,q){let J=[],Q=new Set(q.keys()),Y=Object.create(null);for(let[M,B]of q){let H=Y[B]=Y[B]||[];hB(M,H,Q)}for(let[M,B]of Object.entries(Y))J.push({alias:M,modules:B});let z=new Map,{dependentEntryPointsByModule:X,dynamicEntryModules:V}=gB(Z),W=mB(X,V),K=new Set(Z);function G(M,B){let H=new Set([M]);for(let N of H){let C=k5(z,N,()=>new Set);if(B&&F(B,X.get(N)))continue;else C.add(M);for(let A of N.getDependenciesToBeIncluded())if(!(A instanceof D1||Q.has(A)))H.add(A)}}function F(M,B){let H=new Set(M);for(let N of H)if(!B.has(N)){if(K.has(N))return!1;let C=W.get(N);for(let A of C)H.add(A)}return!0}for(let M of Z)if(!Q.has(M))G(M,null);for(let M of V)if(!Q.has(M))G(M,W.get(M));return J.push(...uB([...Z,...V],z)),J}function hB(Z,q,J){let Q=new Set([Z]);for(let Y of Q){J.add(Y),q.push(Y);for(let z of Y.dependencies)if(!(z instanceof D1||J.has(z)))Q.add(z)}}function gB(Z){let q=new Set,J=new Map,Q=new Set(Z);for(let Y of Q){let z=new Set([Y]);for(let X of z){k5(J,X,()=>new Set).add(Y);for(let V of X.getDependenciesToBeIncluded())if(!(V instanceof D1))z.add(V);for(let{resolution:V}of X.dynamicImports)if(V instanceof A1&&V.includedDynamicImporters.length>0)q.add(V),Q.add(V);for(let V of X.implicitlyLoadedBefore)q.add(V),Q.add(V)}}return{dependentEntryPointsByModule:J,dynamicEntryModules:q}}function mB(Z,q){let J=new Map;for(let Q of q){let Y=k5(J,Q,()=>new Set);for(let z of[...Q.includedDynamicImporters,...Q.implicitlyLoadedAfter])for(let X of Z.get(z))Y.add(X)}return J}function uB(Z,q){let J=Object.create(null);for(let[Q,Y]of q){let z="";for(let V of Z)z+=Y.has(V)?"X":"_";let X=J[z];if(X)X.push(Q);else J[z]=[Q]}return Object.values(J).map((Q)=>({alias:null,modules:Q}))}function dB(Z){if(Z.length===0)return"/";if(Z.length===1)return x5(Z[0]);let q=Z.slice(1).reduce((J,Q)=>{let Y=Q.split(/\/+|\\+/),z;for(z=0;J[z]===Y[z]&&z<Math.min(J.length,Y.length);z++);return J.slice(0,z)},Z[0].split(/\/+|\\+/));return q.length>1?q.join("/"):"/"}function cB(Z){Z.sort(lB)}function pB(Z){let q=0,J=[],Q=new Set,Y=new Set,z=new Map,X=[],V=(W)=>{if(W instanceof A1){for(let K of W.dependencies){if(z.has(K)){if(!Q.has(K))J.push(iB(K,W,z));continue}z.set(K,W),V(K)}for(let K of W.implicitlyLoadedBefore)Y.add(K);for(let{resolution:K}of W.dynamicImports)if(K instanceof A1)Y.add(K);X.push(W)}W.execIndex=q++,Q.add(W)};for(let W of Z)if(!z.has(W))z.set(W,null),V(W);for(let W of Y)if(!z.has(W))z.set(W,null),V(W);return{cyclePaths:J,orderedModules:X}}function iB(Z,q,J){let Q=Symbol(Z.id),Y=[V1(Z.id)],z=q;Z.cycles.add(Q);while(z!==Z)z.cycles.add(Q),Y.push(V1(z.id)),z=J.get(z);return Y.push(Y[0]),Y.reverse(),Y}function nB({compact:Z,generatedCode:{arrowFunctions:q,constBindings:J,objectShorthand:Q,reservedNamesAsProps:Y}}){let{_:z,n:X,s:V}=Z?{_:"",n:"",s:""}:{_:" ",n:`
|
|
33
|
+
`,s:";"},W=J?"const":"var",K=(B,{isAsync:H,name:N})=>`${H?"async ":""}function${N?` ${N}`:""}${z}(${B.join(`,${z}`)})${z}`,G=q?(B,{isAsync:H,name:N})=>{let C=B.length===1,A=H?`async${C?" ":z}`:"";return`${N?`${W} ${N}${z}=${z}`:""}${A}${C?B[0]:`(${B.join(`,${z}`)})`}${z}=>${z}`}:K,F=(B,{functionReturn:H,lineBreakIndent:N,name:C})=>[`${G(B,{isAsync:!1,name:C})}${q?N?`${X}${N.base}${N.t}`:"":`{${N?`${X}${N.base}${N.t}`:z}${H?"return ":""}`}`,q?`${C?";":""}${N?`${X}${N.base}`:""}`:`${V}${N?`${X}${N.base}`:z}}`],M=Y?(B)=>kQ.test(B):(B)=>!g4.has(B)&&kQ.test(B);return{_:z,cnst:W,getDirectReturnFunction:F,getDirectReturnIifeLeft:(B,H,{needsArrowReturnParens:N,needsWrappedFunction:C})=>{let[A,S]=F(B,{functionReturn:!0,lineBreakIndent:null,name:null});return`${xQ(`${A}${xQ(H,q&&N)}${S}`,q||C)}(`},getFunctionIntro:G,getNonArrowFunctionIntro:K,getObject(B,{lineBreakIndent:H}){let N=H?`${X}${H.base}${H.t}`:z;return`{${B.map(([C,A])=>{if(C===null)return`${N}${A}`;let S=!M(C);return C===A&&Q&&!S?N+C:`${N}${S?`'${C}'`:C}:${z}${A}`}).join(",")}${B.length===0?"":H?`${X}${H.base}`:z}}`},getPropertyAccess:(B)=>M(B)?`.${B}`:`[${JSON.stringify(B)}]`,n:X,s:V}}class l2{constructor(Z,q,J,Q,Y){this.outputOptions=Z,this.unsetOptions=q,this.inputOptions=J,this.pluginDriver=Q,this.graph=Y,this.facadeChunkByModule=new Map,this.includedNamespaces=new Set}async generate(Z){s1("GENERATE",1);let q=Object.create(null),J=bB(q);this.pluginDriver.setOutputBundle(J,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)sB(this.outputOptions,this.inputOptions.onwarn);let Y=dB(aB(Q));i1("generate chunks",2),s1("render modules",2);let z=await vB(this.outputOptions,this.pluginDriver),X=nB(this.outputOptions);this.prerenderChunks(Q,Y,X),i1("render modules",2),await this.addFinalizedChunksToBundle(Q,Y,z,J,X)}catch(Q){throw await this.pluginDriver.hookParallel("renderError",[Q]),Q}return await this.pluginDriver.hookSeq("generateBundle",[this.outputOptions,J,Z]),this.finaliseAssets(J),i1("GENERATE",1),q}async addFinalizedChunksToBundle(Z,q,J,Q,Y){this.assignChunkIds(Z,q,J,Q);for(let z of Z)Q[z.id]=z.getChunkInfoWithFileNames();await Promise.all(Z.map(async(z)=>{let X=Q[z.id];Object.assign(X,await z.render(this.outputOptions,J,X,Y))}))}async addManualChunks(Z){let q=new Map,J=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 J)for(let z of Y)fQ(Q,z,q);return q}assignChunkIds(Z,q,J,Q){let Y=[],z=[];for(let V of Z)(V.facadeModule&&V.facadeModule.isUserDefinedEntryPoint?Y:z).push(V);let X=Y.concat(z);for(let V of X){if(this.outputOptions.file)V.id=z8(this.outputOptions.file);else if(this.outputOptions.preserveModules)V.id=V.generateIdPreserveModules(q,this.outputOptions,Q,this.unsetOptions);else V.id=V.generateId(J,this.outputOptions,Q,!0);Q[V.id]=d2}}assignManualChunks(Z){let q=[],J={getModuleIds:()=>this.graph.modulesById.keys(),getModuleInfo:this.graph.getModuleInfo};for(let Y of this.graph.modulesById.values())if(Y instanceof A1){let z=Z(Y.id,J);if(typeof z==="string")q.push([z,Y])}q.sort(([Y],[z])=>Y>z?1:Y<z?-1:0);let Q=new Map;for(let[Y,z]of q)fQ(Y,z,Q);return Q}finaliseAssets(Z){for(let q of Object.values(Z)){if(!q.type)U5('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),q.type="asset";if(this.outputOptions.validate&&"code"in q)try{this.graph.contextParse(q.code,{allowHashBang:!0,ecmaVersion:"latest"})}catch(J){this.inputOptions.onwarn(x$(q,J))}}this.pluginDriver.finaliseAssets()}async generateChunks(){let{manualChunks:Z}=this.outputOptions,q=typeof Z==="object"?await this.addManualChunks(Z):this.assignManualChunks(Z),J=[],Q=new Map;for(let{alias:z,modules:X}of this.outputOptions.inlineDynamicImports?[{alias:null,modules:vQ(this.graph.modulesById)}]:this.outputOptions.preserveModules?vQ(this.graph.modulesById).map((V)=>({alias:null,modules:[V]})):fB(this.graph.entryModules,q)){cB(X);let V=new _8(X,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,Q,this.facadeChunkByModule,this.includedNamespaces,z);J.push(V);for(let W of X)Q.set(W,V)}for(let z of J)z.link();let Y=[];for(let z of J)Y.push(...z.generateFacades());return[...J,...Y]}prerenderChunks(Z,q,J){for(let Q of Z)Q.generateExports();for(let Q of Z)Q.preRender(this.outputOptions,q,J)}}function aB(Z){let q=[];for(let J of Z)for(let Q of J.entryModules)if(V8(Q.id))q.push(Q.id);return q}function sB(Z,q){if(Z.format==="umd"||Z.format==="iife")return Z1(h1("output.format","outputformat","UMD and IIFE output formats are not supported for code-splitting builds",Z.format));if(typeof Z.file==="string")return Z1(h1("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 Z1(h1("output.sourcemapFile","outputsourcemapfile",'"output.sourcemapFile" is only supported for single-file builds'));if(!Z.amd.autoId&&Z.amd.id)q(h1("output.amd.id","outputamd",'this option is only properly supported for single-file builds. Use "output.amd.autoId" and "output.amd.basePath" instead'))}function vQ(Z){return[...Z.values()].filter((q)=>q instanceof A1&&(q.isIncluded()||q.info.isEntry||q.includedDynamicImporters.length>0))}function fQ(Z,q,J){let Q=J.get(q);if(typeof Q==="string"&&Q!==Z)return Z1(p$(q.id,Z,Q));J.set(q,Z)}function QZ(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}}function s5(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&&ZH.test(String.fromCharCode(Z));if(q===!1)return!1;return QZ(Z,c2)}function W6(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&&qH.test(String.fromCharCode(Z));if(q===!1)return!1;return QZ(Z,c2)||QZ(Z,rB)}function M5(Z,q){return new R1(Z,{beforeExpr:!0,binop:q})}function F1(Z,q){if(q===void 0)q={};return q.keyword=Z,eZ[Z]=new R1(Z,q)}function $6(Z){return Z===10||Z===13||Z===8232||Z===8233}function i2(Z,q,J){if(J===void 0)J=Z.length;for(var Q=q;Q<J;Q++){var Y=Z.charCodeAt(Q);if($6(Y))return Q<J-1&&Y===13&&Z.charCodeAt(Q+1)===10?Q+2:Q+1}return-1}function I8(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 s2(Z,q){for(var J=1,Q=0;;){var Y=i2(Z,Q,q);if(Y<0)return new U0(J,q-Q);++J,Q=Y}}function XH(Z){var q={};for(var J in YZ)q[J]=Z&&C0(Z,J)?Z[J]:YZ[J];if(q.ecmaVersion==="latest")q.ecmaVersion=1e8;else if(q.ecmaVersion==null){if(!gQ&&typeof console==="object"&&console.warn)gQ=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
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
35
|
`+[...V].map(sH).join(`
|
|
36
|
-
`)))},f4.once(v4,J)}),Y=await Promise.race([q(),Q]);return f4.off(v4,J),Y}function Sz(Z,q,J,Q,Y=/$./){let z=new Set(q),X=Object.keys(Z).filter((V)=>!(z.has(V)||Y.test(V)));if(X.length>0)Q({code:"UNKNOWN_OPTION",message:`Unknown ${J}: ${X.join(", ")}. Allowed options: ${[...z].sort().join(", ")}`})}function ZM(Z){var q,J,Q;let Y=new Set,z=(q=Z.context)!==null&&q!==void 0?q:"undefined",X=qM(Z),V=Z.strictDeprecations||!1,W=WM(Z,X,V),K={acorn:JM(Z),acornInjectPlugins:QM(Z),cache:YM(Z),context:z,experimentalCacheExpiry:(J=Z.experimentalCacheExpiry)!==null&&J!==void 0?J:10,external:bz(Z.external),inlineDynamicImports:zM(Z,X,V),input:XM(Z),makeAbsoluteExternalsRelative:(Q=Z.makeAbsoluteExternalsRelative)!==null&&Q!==void 0?Q:!0,manualChunks:VM(Z,X,V),maxParallelFileOps:W,maxParallelFileReads:W,moduleContext:KM(Z,z),onwarn:X,perf:Z.perf||!1,plugins:B6(Z.plugins),preserveEntrySignatures:GM(Z,Y),preserveModules:$M(Z,X,V),preserveSymlinks:Z.preserveSymlinks||!1,shimMissingExports:Z.shimMissingExports||!1,strictDeprecations:V,treeshake:UM(Z,X,V)};return Sz(Z,[...Object.keys(K),"watch"],"input options",K.onwarn,/^(output)$/),{options:K,unsetOptions:Y}}function HM(Z){let q=BM.exec(Z),J=q?q[0]:"";return J+Z.substr(J.length).replace(jM,"_")}function MM(Z){try{new URL(Z)}catch(q){return!1}return!0}function FM(Z,q,J){var Q,Y,z,X,V,W,K;let G=new Set(J),
|
|
37
|
-
`}return Promise.all([
|
|
38
|
-
`,p8,sJ,rJ,u1,N4,q0,G1,_1,R$,m9,Z6,r1,E1,JY,Y1,S1=0,v5=1,D1=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,M=0,B=!1,H=!1,F=!1,w=!1,_=!1,P=!1,D=!1,A=!1,h=!1,v=!1,m=0,x,R,S={value:"",depth:0,isGlob:!1},I=()=>K>=Q,j=()=>W.charCodeAt(K+1),b=()=>{return x=R,W.charCodeAt(++K)};while(K<Q){R=b();let l;if(R===i6){if(D=S.backslashes=!0,R=b(),R===R9)P=!0;continue}if(P===!0||R===R9){m++;while(I()!==!0&&(R=b())){if(R===i6){D=S.backslashes=!0,b();continue}if(R===R9){m++;continue}if(P!==!0&&R===w9&&(R=b())===w9){if(B=S.isBrace=!0,F=S.isGlob=!0,v=!0,Y===!0)continue;break}if(P!==!0&&R===SU){if(B=S.isBrace=!0,F=S.isGlob=!0,v=!0,Y===!0)continue;break}if(R===bU){if(m--,m===0){P=!1,B=S.isBrace=!0,v=!0;break}}}if(Y===!0)continue;break}if(R===GY){if(z.push(K),X.push(S),S={value:"",depth:0,isGlob:!1},v===!0)continue;if(x===w9&&K===G+1){G+=2;continue}M=K+1;continue}if(J.noext!==!0){if((R===EU||R===PU||R===N9||R===QQ||R===O9)===!0&&j()===C9){if(F=S.isGlob=!0,w=S.isExtglob=!0,v=!0,R===O9&&K===G)h=!0;if(Y===!0){while(I()!==!0&&(R=b())){if(R===i6){D=S.backslashes=!0,R=b();continue}if(R===YQ){F=S.isGlob=!0,v=!0;break}}continue}break}}if(R===N9){if(x===N9)_=S.isGlobstar=!0;if(F=S.isGlob=!0,v=!0,Y===!0)continue;break}if(R===QQ){if(F=S.isGlob=!0,v=!0,Y===!0)continue;break}if(R===yU){while(I()!==!0&&(l=b())){if(l===i6){D=S.backslashes=!0,b();continue}if(l===xU){H=S.isBracket=!0,F=S.isGlob=!0,v=!0;break}}if(Y===!0)continue;break}if(J.nonegate!==!0&&R===O9&&K===G){A=S.negated=!0,G++;continue}if(J.noparen!==!0&&R===C9){if(F=S.isGlob=!0,Y===!0){while(I()!==!0&&(R=b())){if(R===C9){D=S.backslashes=!0,R=b();continue}if(R===YQ){v=!0;break}}continue}break}if(F===!0){if(v=!0,Y===!0)continue;break}}if(J.noext===!0)w=!1,F=!1;let k=W,y="",$="";if(G>0)y=W.slice(0,G),W=W.slice(G),M-=G;if(k&&F===!0&&M>0)k=W.slice(0,M),$=W.slice(M);else if(F===!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&&D===!0)k=JQ.removeBackslashes(k)}let L={prefix:y,input:Z,start:G,base:k,glob:$,isBrace:B,isBracket:H,isGlob:F,isExtglob:w,isGlobstar:_,negated:A,negatedExtglob:h};if(J.tokens===!0){if(L.maxDepth=0,!zQ(R))X.push(S);L.tokens=X}if(J.parts===!0||J.tokens===!0){let l;for(let f=0;f<z.length;f++){let s=l?l+1:G,o=z[f],Q1=Z.slice(s,o);if(J.tokens){if(f===0&&G!==0)X[f].isPrefix=!0,X[f].value=y;else X[f].value=Q1;XQ(X[f]),L.maxDepth+=X[f].depth}if(f!==0||Q1!=="")V.push(Q1);l=o}if(l&&l+1<Z.length){let f=Z.slice(l+1);if(V.push(f),J.tokens)X[X.length-1].value=f,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:M,PLUS_LITERAL:B,SLASH_LITERAL:H,ONE_CHAR:F,DOTS_SLASH:w,NO_DOT:_,NO_DOT_SLASH:P,NO_DOTS_SLASH:D,QMARK:A,QMARK_NO_DOT:h,STAR:v,START_ANCHOR:m}=K,x=(T)=>{return`(${V}(?:(?!${m}${T.dot?w:M}).)*?)`},R=J.dot?"":_,S=J.dot?A:h,I=J.bash===!0?x(J):v;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 b=[],k=[],y=[],$=z,L,l=()=>j.index===Y-1,f=j.peek=(T=1)=>Z[j.index+T],s=j.advance=()=>Z[++j.index]||"",o=()=>Z.slice(j.index+1),Q1=(T="",E=0)=>{j.consumed+=T,j.index+=E},N1=(T)=>{j.output+=T.output!=null?T.output:T.value,Q1(T.value)},O1=()=>{let T=1;while(f()==="!"&&(f(2)!=="("||f(3)==="?"))s(),j.start++,T++;if(T%2===0)return!1;return j.negated=!0,j.start++,!0},w1=(T)=>{j[T]++,y.push(T)},a=(T)=>{j[T]--,y.pop()},u=(T)=>{if($.type==="globstar"){let E=j.braces>0&&(T.type==="comma"||T.type==="brace"),C=T.extglob===!0||b.length&&(T.type==="pipe"||T.type==="paren");if(T.type!=="slash"&&T.type!=="paren"&&!E&&!C)j.output=j.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=I,j.output+=$.output}if(b.length&&T.type!=="paren")b[b.length-1].inner+=T.value;if(T.value||T.output)N1(T);if($&&$.type==="text"&&T.type==="text"){$.value+=T.value,$.output=($.output||"")+T.value;return}T.prev=$,X.push(T),$=T},M1=(T,E)=>{let C={...G[E],conditions:1,inner:""};C.prev=$,C.parens=j.parens,C.output=j.output;let g=(J.capture?"(":"")+C.open;w1("parens"),u({type:T,value:E,output:j.output?"":F}),u({type:"paren",extglob:!0,value:s(),output:g}),b.push(C)},p=(T)=>{let E=T.close+(J.capture?")":""),C;if(T.type==="negate"){let g=I;if(T.inner&&T.inner.length>1&&T.inner.includes("/"))g=x(J);if(g!==I||l()||/^\)+$/.test(o()))E=T.close=`)$))${g}`;if(T.inner.includes("*")&&(C=o())&&/^\.[^\\/.]+$/.test(C)){let c=wZ(C,{...q,fastpaths:!1}).output;E=T.close=`)${c})${g})`}if(T.prev.type==="bos")j.negatedExtglob=!0}u({type:"paren",extglob:!0,value:L,output:E}),a("parens")};if(J.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let T=!1,E=Z.replace(gU,(C,g,c,r,e,p1)=>{if(r==="\\")return T=!0,C;if(r==="?"){if(g)return g+r+(e?A.repeat(e.length):"");if(p1===0)return S+(e?A.repeat(e.length):"");return A.repeat(c.length)}if(r===".")return M.repeat(c.length);if(r==="*"){if(g)return g+r+(e?I:"");return I}return g?C:`\\${C}`});if(T===!0)if(J.unescape===!0)E=E.replace(/\\/g,"");else E=E.replace(/\\+/g,(C)=>{return C.length%2===0?"\\\\":C?"\\":""});if(E===Z&&J.contains===!0)return j.output=Z,j;return j.output=L5.wrapOutput(E,j,q),j}while(!l()){if(L=s(),L==="\x00")continue;if(L==="\\"){let C=f();if(C==="/"&&J.bash!==!0)continue;if(C==="."||C===";")continue;if(!C){L+="\\",u({type:"text",value:L});continue}let g=/^\\+/.exec(o()),c=0;if(g&&g[0].length>2){if(c=g[0].length,j.index+=c,c%2!==0)L+="\\"}if(J.unescape===!0)L=s();else L+=s();if(j.brackets===0){u({type:"text",value:L});continue}}if(j.brackets>0&&(L!=="]"||$.value==="["||$.value==="[^")){if(J.posix!==!1&&L===":"){let C=$.value.slice(1);if(C.includes("[")){if($.posix=!0,C.includes(":")){let g=$.value.lastIndexOf("["),c=$.value.slice(0,g),r=$.value.slice(g+2),e=fU[r];if(e){if($.value=c+e,j.backtrack=!0,s(),!z.output&&X.indexOf($)===1)z.output=F;continue}}}}if(L==="["&&f()!==":"||L==="-"&&f()==="]")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)u({type:"text",value:L});continue}if(L==="("){w1("parens"),u({type:"paren",value:L});continue}if(L===")"){if(j.parens===0&&J.strictBrackets===!0)throw SyntaxError(n8("opening","("));let C=b[b.length-1];if(C&&j.parens===C.parens+1){p(b.pop());continue}u({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");u({type:"bracket",value:L});continue}if(L==="]"){if(J.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){u({type:"text",value:L,output:`\\${L}`});continue}if(j.brackets===0){if(J.strictBrackets===!0)throw SyntaxError(n8("opening","["));u({type:"text",value:L,output:`\\${L}`});continue}a("brackets");let C=$.value.slice(1);if($.posix!==!0&&C[0]==="^"&&!C.includes("/"))L=`/${L}`;if($.value+=L,N1({value:L}),J.literalBrackets===!1||L5.hasRegexChars(C))continue;let g=L5.escapeRegex($.value);if(j.output=j.output.slice(0,-$.value.length),J.literalBrackets===!0){j.output+=g,$.value=g;continue}$.value=`(${V}${g}|${$.value})`,j.output+=$.value;continue}if(L==="{"&&J.nobrace!==!0){w1("braces");let C={type:"brace",value:L,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};k.push(C),u(C);continue}if(L==="}"){let C=k[k.length-1];if(J.nobrace===!0||!C){u({type:"text",value:L,output:L});continue}let g=")";if(C.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)}g=mU(r,J),j.backtrack=!0}if(C.comma!==!0&&C.dots!==!0){let c=j.output.slice(0,C.outputIndex),r=j.tokens.slice(C.tokensIndex);C.value=C.output="\\{",L=g="\\}",j.output=c;for(let e of r)j.output+=e.output||e.value}u({type:"brace",value:L,output:g}),a("braces"),k.pop();continue}if(L==="|"){if(b.length>0)b[b.length-1].conditions++;u({type:"text",value:L});continue}if(L===","){let C=L,g=k[k.length-1];if(g&&y[y.length-1]==="braces")g.comma=!0,C="|";u({type:"comma",value:L,output:C});continue}if(L==="/"){if($.type==="dot"&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",X.pop(),$=z;continue}u({type:"slash",value:L,output:H});continue}if(L==="."){if(j.braces>0&&$.type==="dot"){if($.value===".")$.output=M;let C=k[k.length-1];$.type="dots",$.output+=L,$.value+=L,C.dots=!0;continue}if(j.braces+j.parens===0&&$.type!=="bos"&&$.type!=="slash"){u({type:"text",value:L,output:M});continue}u({type:"dot",value:L,output:M});continue}if(L==="?"){if(!($&&$.value==="(")&&J.noextglob!==!0&&f()==="("&&f(2)!=="?"){M1("qmark",L);continue}if($&&$.type==="paren"){let g=f(),c=L;if(g==="<"&&!L5.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if($.value==="("&&!/[!=<:]/.test(g)||g==="<"&&!/<([!=]|\w+>)/.test(o()))c=`\\${L}`;u({type:"text",value:L,output:c});continue}if(J.dot!==!0&&($.type==="slash"||$.type==="bos")){u({type:"qmark",value:L,output:h});continue}u({type:"qmark",value:L,output:A});continue}if(L==="!"){if(J.noextglob!==!0&&f()==="("){if(f(2)!=="?"||!/[!=<:]/.test(f(3))){M1("negate",L);continue}}if(J.nonegate!==!0&&j.index===0){O1();continue}}if(L==="+"){if(J.noextglob!==!0&&f()==="("&&f(2)!=="?"){M1("plus",L);continue}if($&&$.value==="("||J.regex===!1){u({type:"plus",value:L,output:B});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||j.parens>0){u({type:"plus",value:L});continue}u({type:"plus",value:B});continue}if(L==="@"){if(J.noextglob!==!0&&f()==="("&&f(2)!=="?"){u({type:"at",extglob:!0,value:L,output:""});continue}u({type:"text",value:L});continue}if(L!=="*"){if(L==="$"||L==="^")L=`\\${L}`;let C=hU.exec(o());if(C)L+=C[0],j.index+=C[0].length;u({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 T=o();if(J.noextglob!==!0&&/^\([^?]/.test(T)){M1("star",L);continue}if($.type==="star"){if(J.noglobstar===!0){Q1(L);continue}let C=$.prev,g=C.prev,c=C.type==="slash"||C.type==="bos",r=g&&(g.type==="star"||g.type==="globstar");if(J.bash===!0&&(!c||T[0]&&T[0]!=="/")){u({type:"star",value:L,output:""});continue}let e=j.braces>0&&(C.type==="comma"||C.type==="brace"),p1=b.length&&(C.type==="pipe"||C.type==="paren");if(!c&&C.type!=="paren"&&!e&&!p1){u({type:"star",value:L,output:""});continue}while(T.slice(0,3)==="/**"){let g1=Z[j.index+4];if(g1&&g1!=="/")break;T=T.slice(3),Q1("/**",3)}if(C.type==="bos"&&l()){$.type="globstar",$.value+=L,$.output=x(J),j.output=$.output,j.globstar=!0,Q1(L);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&!r&&l()){j.output=j.output.slice(0,-(C.output+$.output).length),C.output=`(?:${C.output}`,$.type="globstar",$.output=x(J)+(J.strictSlashes?")":"|$)"),$.value+=L,j.globstar=!0,j.output+=C.output+$.output,Q1(L);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&T[0]==="/"){let g1=T[1]!==void 0?"|$":"";j.output=j.output.slice(0,-(C.output+$.output).length),C.output=`(?:${C.output}`,$.type="globstar",$.output=`${x(J)}${H}|${H}${g1})`,$.value+=L,j.output+=C.output+$.output,j.globstar=!0,Q1(L+s()),u({type:"slash",value:"/",output:""});continue}if(C.type==="bos"&&T[0]==="/"){$.type="globstar",$.value+=L,$.output=`(?:^|${H}|${x(J)}${H})`,j.output=$.output,j.globstar=!0,Q1(L+s()),u({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-$.output.length),$.type="globstar",$.output=x(J),$.value+=L,j.output+=$.output,j.globstar=!0,Q1(L);continue}let E={type:"star",value:L,output:I};if(J.bash===!0){if(E.output=".*?",$.type==="bos"||$.type==="slash")E.output=R+E.output;u(E);continue}if($&&($.type==="bracket"||$.type==="paren")&&J.regex===!0){E.output=L,u(E);continue}if(j.index===j.start||$.type==="slash"||$.type==="dot"){if($.type==="dot")j.output+=P,$.output+=P;else if(J.dot===!0)j.output+=D,$.output+=D;else j.output+=R,$.output+=R;if(f()!=="*")j.output+=F,$.output+=F}u(E)}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"))u({type:"maybe_slash",value:"",output:`${H}?`});if(j.backtrack===!0){j.output="";for(let T of j.tokens)if(j.output+=T.output!=null?T.output:T.value,T.suffix)j.output+=T.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((B)=>x1(B,q,J));return(B)=>{for(let H of G){let F=H(B);if(F)return F}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,M=!1)=>{let{isMatch:B,match:H,output:F}=x1.test(G,X,q,{glob:Z,posix:z}),w={glob:Z,state:V,regex:X,posix:z,input:G,output:F,match:H,isMatch:B};if(typeof Y.onResult==="function")Y.onResult(w);if(B===!1)return w.isMatch=!1,M?w:!1;if(W(G)){if(typeof Y.onIgnore==="function")Y.onIgnore(w);return w.isMatch=!1,M?w:!1}if(typeof Y.onMatch==="function")Y.onMatch(w);return M?w:!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,P8=2,H0,t8,RZ,D8,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,O8,D9,Fj,i4,OY,RY,A5,Lj="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$",HQ=64,T5,PZ,SZ,m1,E5,R8,d,n,MQ,U,q5,c5,a8,s9,n4,Nj,d1,T8,LQ,$8,N0,X0,EZ,s4,bZ,kZ,TY,AY,PY,vZ,SY,r4,yY,Rj,EY,bY,z6,c6=7,S8,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:M}=J,B=`{${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(B,!Q,J)}${G}${q}}${G}${q}n${K("default")}${X}=${X}e;${G}${q}return ${t9(Y,"n")}${M}${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}
|
|
36
|
+
`)))},f4.once(v4,J)}),Y=await Promise.race([q(),Q]);return f4.off(v4,J),Y}function Sz(Z,q,J,Q,Y=/$./){let z=new Set(q),X=Object.keys(Z).filter((V)=>!(z.has(V)||Y.test(V)));if(X.length>0)Q({code:"UNKNOWN_OPTION",message:`Unknown ${J}: ${X.join(", ")}. Allowed options: ${[...z].sort().join(", ")}`})}function ZM(Z){var q,J,Q;let Y=new Set,z=(q=Z.context)!==null&&q!==void 0?q:"undefined",X=qM(Z),V=Z.strictDeprecations||!1,W=WM(Z,X,V),K={acorn:JM(Z),acornInjectPlugins:QM(Z),cache:YM(Z),context:z,experimentalCacheExpiry:(J=Z.experimentalCacheExpiry)!==null&&J!==void 0?J:10,external:bz(Z.external),inlineDynamicImports:zM(Z,X,V),input:XM(Z),makeAbsoluteExternalsRelative:(Q=Z.makeAbsoluteExternalsRelative)!==null&&Q!==void 0?Q:!0,manualChunks:VM(Z,X,V),maxParallelFileOps:W,maxParallelFileReads:W,moduleContext:KM(Z,z),onwarn:X,perf:Z.perf||!1,plugins:B6(Z.plugins),preserveEntrySignatures:GM(Z,Y),preserveModules:$M(Z,X,V),preserveSymlinks:Z.preserveSymlinks||!1,shimMissingExports:Z.shimMissingExports||!1,strictDeprecations:V,treeshake:UM(Z,X,V)};return Sz(Z,[...Object.keys(K),"watch"],"input options",K.onwarn,/^(output)$/),{options:K,unsetOptions:Y}}function HM(Z){let q=BM.exec(Z),J=q?q[0]:"";return J+Z.substr(J.length).replace(jM,"_")}function MM(Z){try{new URL(Z)}catch(q){return!1}return!0}function FM(Z,q,J){var Q,Y,z,X,V,W,K;let G=new Set(J),F=Z.compact||!1,M=NM(Z),B=wM(Z,q),H=OM(Z,B,q),N=LM(Z,H,q),C=RM(Z,q),A=PM(Z,C),S={amd:_M(Z),assetFileNames:(Q=Z.assetFileNames)!==null&&Q!==void 0?Q:"assets/[name]-[hash][extname]",banner:G4(Z,"banner"),chunkFileNames:(Y=Z.chunkFileNames)!==null&&Y!==void 0?Y:"[name]-[hash].js",compact:F,dir:IM(Z,N),dynamicImportFunction:DM(Z,q),entryFileNames:TM(Z,G),esModule:(z=Z.esModule)!==null&&z!==void 0?z:!0,exports:AM(Z,G),extend:Z.extend||!1,externalLiveBindings:(X=Z.externalLiveBindings)!==null&&X!==void 0?X:!0,file:N,footer:G4(Z,"footer"),format:M,freeze:(V=Z.freeze)!==null&&V!==void 0?V:!0,generatedCode:A,globals:Z.globals||{},hoistTransitiveImports:(W=Z.hoistTransitiveImports)!==null&&W!==void 0?W:!0,indent:SM(Z,F),inlineDynamicImports:B,interop:yM(Z,q),intro:G4(Z,"intro"),manualChunks:EM(Z,B,H,q),minifyInternalExports:bM(Z,M,F),name:Z.name,namespaceToStringTag:xM(Z,A,q),noConflict:Z.noConflict||!1,outro:G4(Z,"outro"),paths:Z.paths||{},plugins:B6(Z.plugins),preferConst:C,preserveModules:H,preserveModulesRoot:CM(Z),sanitizeFileName:typeof Z.sanitizeFileName==="function"?Z.sanitizeFileName:Z.sanitizeFileName===!1?(T)=>T:HM,sourcemap:Z.sourcemap||!1,sourcemapBaseUrl:kM(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 Sz(Z,Object.keys(S),"output options",q.onwarn),{options:S,unsetOptions:G}}function AM(Z,q){let J=Z.exports;if(J==null)q.add("exports");else if(!["default","named","none","auto"].includes(J))return Z1(i$(J));return J||"auto"}function Gq(Z){return vM(Z,null)}async function vM(Z,q){let{options:J,unsetOptions:Q}=await fM(Z,q!==null);ij(J);let Y=new Az(J,q),z=Z.cache!==!1;delete J.cache,delete Z.cache,s1("BUILD",1),await Pz(Y.pluginDriver,async()=>{try{await Y.pluginDriver.hookParallel("buildStart",[J]),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 X={cache:z?Y.getCache():void 0,async close(){if(X.closed)return;X.closed=!0,await Y.pluginDriver.hookParallel("closeBundle",[])},closed:!1,async generate(V){if(X.closed)return Z1(ZQ());return rQ(!1,J,Q,V,Y)},watchFiles:Object.keys(Y.watchFiles),async write(V){if(X.closed)return Z1(ZQ());return rQ(!0,J,Q,V,Y)}};if(J.perf)X.getTimings=lj;return X}async function fM(Z,q){if(!Z)throw Error("You must supply an options object to rollup");let J=Dz("options",B6(Z.plugins)),{options:Q,unsetOptions:Y}=ZM(await J.reduce(hM(q),Promise.resolve(Z)));return xz(Q.plugins,Vq),{options:Q,unsetOptions:Y}}function hM(Z){return async(q,J)=>{return await("handler"in J.options?J.options.handler:J.options).call({meta:{rollupVersion:GZ,watchMode:Z}},await q)||q}}function xz(Z,q){Z.forEach((J,Q)=>{if(!J.name)J.name=`${q}${Q+1}`})}function rQ(Z,q,J,Q,Y){let{options:z,outputPluginDriver:X,unsetOptions:V}=gM(Q,Y.pluginDriver,q,J);return Pz(X,async()=>{let K=await new l2(z,V,q,X,Y).generate(Z);if(Z){if(!z.dir&&!z.file)return Z1({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.'});await Promise.all(Object.values(K).map((G)=>Y.fileOperationQueue.run(()=>dM(G,z)))),await X.hookParallel("writeBundle",[z,K])}return uM(K)})}function gM(Z,q,J,Q){if(!Z)throw Error("You must supply an options object");let Y=B6(Z.plugins);xz(Y,Wq);let z=q.createOutputPluginDriver(Y);return{...mM(J,Q,Z,z),outputPluginDriver:z}}function mM(Z,q,J,Q){return FM(Q.hookReduceArg0Sync("outputOptions",[J.output||J],(Y,z)=>z||Y,(Y)=>{let z=()=>Y.error(E$());return{...Y,emitFile:z,setAssetSource:z}}),Z,q)}function uM(Z){return{output:Object.values(Z).filter((q)=>Object.keys(q).length>0).sort((q,J)=>oQ(q)-oQ(J))}}function oQ(Z){if(Z.type==="asset")return e6.ASSET;if(Z.isEntry)return e6.ENTRY_CHUNK;return e6.SECONDARY_CHUNK}async function dM(Z,q){let J=$5(q.dir||x5(q.file),Z.fileName);await D8.mkdir(x5(J),{recursive:!0});let Q,Y;if(Z.type==="asset")Y=Z.source;else if(Y=Z.code,q.sourcemap&&Z.map){let z;if(q.sourcemap==="inline")z=Z.map.toUrl();else{let{sourcemapBaseUrl:X}=q,V=`${z8(Z.fileName)}.map`;z=X?new URL(V,X).toString():V,Q=D8.writeFile(`${J}.map`,Z.map.toString())}if(q.sourcemap!=="hidden")Y+=`//# ${DZ}=${z}
|
|
37
|
+
`}return Promise.all([D8.writeFile(J,Y),Q])}var GZ="2.79.2",eQ,f9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r8,h9=()=>{throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")},O$,d6=`
|
|
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
39
|
${q}`:Z,bQ=(Z,q)=>q?`${Z}
|
|
40
40
|
|
|
41
|
-
${q}`:Z,lB=(Z,q)=>Z.execIndex>q.execIndex?1:-1,xQ=(Z,q)=>q?`(${Z})`:Z,kQ,rB,c2,oB="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",p2="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",b9,x9="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",tB,eB,ZH,qH,R1=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},F5,Y5,eZ,O,O5,JH,n2,N5,a2,QH,YH,C0,hQ,zH,U0=function(q,J){this.line=q,this.column=J},Q7=function(q,J,Q){if(this.start=J,this.end=Q,q.sourceFile!==null)this.source=q.sourceFile},YZ,gQ=!1,j0=1,U6=2,Zq=4,r2=8,o2=16,t2=32,qq=64,e2=128,_0=256,Jq,E4=0,Yq=1,a5=2,Zz=3,qz=4,Jz=5,l1=function(q,J,Q){this.options=q=XH(q),this.sourceFile=q.sourceFile,this.keywords=
|
|
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:D1,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?"":"^",M=K.contains?"":"$",B=`${G}(?:${V})${M}`;if(W.negated===!0)B=`(?:^(?!${B}).*$)`;return B}})(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:M,NO_DOTS_SLASH:B,STAR:H,START_ANCHOR:F}=R4.globChars(z),w=J.dot?M:G,_=J.dot?B:G,P=J.capture?"":"?:",D={negated:!1,prefix:""},A=J.bash===!0?".*?":H;if(J.capture)A=`(${A})`;let h=(R)=>{if(R.noglobstar===!0)return A;return`(${P}(?:(?!${F}${R.dot?K:X}).)*?)`},v=(R)=>{switch(R){case"*":return`${w}${W}${A}`;case".*":return`${X}${W}${A}`;case"*.*":return`${w}${A}${X}${W}${A}`;case"*/*":return`${w}${A}${V}${W}${_}${A}`;case"**":return w+h(J);case"**/*":return`(?:${w}${h(J)}${V})?${_}${W}${A}`;case"**/*.*":return`(?:${w}${h(J)}${V})?${_}${A}${X}${W}${A}`;case"**/.*":return`(?:${w}${h(J)}${V})?${X}${W}${A}`;default:{let S=/^(.*?)\.(\w+)$/.exec(R);if(!S)return;let I=v(S[1]);if(!I)return;return I+X+S[2]}}},m=L5.removePrefix(Z,D),x=v(m);if(x&&J.strictSlashes!==!0)x+=`${V}?`;return x};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===D1&&q.length===1)return M0(p9,q[0],J,Q);return!0}},D8={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===D1&&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===D1&&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:D8,isPrototypeOf:D8,propertyIsEnumerable:D8,toLocaleString:j1,toString:j1,valueOf:t8}),p9=p4({valueOf:D8},_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:D8,fixed:j1,fontcolor:j1,fontsize:j1,includes:D8,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:D8,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=y8;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=y8;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=y8;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=y8;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=y8;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=y8;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=y8;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===D1&&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===D1){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===D1||q.length>1)&&(this.hasUnknownDeoptimizedProperty||typeof Y==="string"&&this.deoptimizedPaths[Y])){Z.thisArg.deoptimizePath(_1);return}let[X,V,W]=Z.type===D1||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===D1){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 M=Z.length-1;M>=0;M--){let{key:B,kind:H,property:F}=Z[M];if(q.push(F),typeof B!=="string"){if(B===q0){X.push(F);continue}if(H==="set")K.push(F);if(H==="get")W.push(F);if(H!=="get")G.push(F);if(H!=="set")V.push(F)}else if(H==="set"){if(!Q[B])Q[B]=[F,...G],Y[B]=[F,...K]}else if(H==="get"){if(!J[B])J[B]=[F,...V],z[B]=[F,...W]}else{if(!Q[B])Q[B]=[F,...G];if(!J[B])J[B]=[F,...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===D1&&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===D1}},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})],O8=[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:O8,findIndex:$Q,findLast:O8,findLastIndex:$Q,flat:Q4,flatMap:I9,forEach:O8,group:O8,groupToMap:O8,includes:U4,indexOf:WQ,join:r6,keys:wY,lastIndexOf:WQ,map:I9,pop:jQ,push:UQ,reduce:O8,reduceRight:O8,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 D1: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}},R8={hasEffectsWhenCalled(){return!0}},d={__proto__:null,[m1]:R8},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]:R8,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]:R8,Array:{__proto__:null,[m1]:R8,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]:R8,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]:R8,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]:R8,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 D1:{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 D1: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}};T8={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!==D1)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===D1){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,M=q.exportNamesByVariable.get(G);if(M){if(M.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===D1&&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===D1){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=P8}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?P8: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 D1: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])}};S8=class S8 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===D1){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 S8&&!this.callee.variable?this.callee.object:null,type:D1,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:D1,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:D1,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:D1,withNew:!1},J);if(this.kind==="set"&&q.type===v5)return this.value.hasEffectsOnInteractionAtPath(G1,{args:q.args,thisArg:q.thisArg,type:D1,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===D1&&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}${E8([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=P8}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?P8: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,` ${E8([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,T8),this.right.render(Z,q,T8),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,T8),this.right.render(Z,q,T8),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,T8),(Q=this.test)===null||Q===void 0||Q.render(Z,q,T8),(Y=this.update)===null||Y===void 0||Y.render(Z,q,T8),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 M=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(M)return{helper:null,mechanism:M};let B=!this.resolution||typeof this.resolution==="string";switch(Y){case"cjs":{let H=_Q(Z,q,X),F="require(",w=")";if(H)F=`/*#__PURE__*/${H}(${F}`,w+=")";let[_,P]=W([],{functionReturn:!0,lineBreakIndent:null,name:null});if(F=`Promise.resolve().then(${_}${F}`,w+=`${P})`,!z&&B)F=K(["t"],`${F}t${w}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),w=")";return{helper:H,mechanism:{left:F,right:w}}}case"amd":{let H=J?"c":"resolve",F=J?"e":"reject",w=_Q(Z,q,X),[_,P]=W(["m"],{functionReturn:!1,lineBreakIndent:null,name:null}),D=w?`${_}${H}(/*#__PURE__*/${w}(m))${P}`:H,[A,h]=W([H,F],{functionReturn:!1,lineBreakIndent:null,name:null}),v=`new Promise(${A}require([`,m=`],${V}${D},${V}${F})${h})`;if(!z&&B)v=K(["t"],`${v}t${m}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),m=")";return{helper:w,mechanism:{left:v,right:m}}}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 S8&&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,M=null,B;if(V.startsWith(q8))K=V.substring(q8.length),B=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),B=Y.getFileName(G);else U5(`Using the "${z4}" prefix to reference files is deprecated. Use the "${q8}" prefix instead.`,!0,this.context.options),M=V.substring(z4.length),B=Y.getFileName(M);let H=Y0(WZ(x5(q),B)),F;if(G!==null)F=Y.hookFirstSync("resolveAssetUrl",[{assetFileName:B,chunkId:q,format:J,moduleId:this.context.module.id,relativeAssetPath:H}]);if(!F)F=Y.hookFirstSync("resolveFileUrl",[{assetReferenceId:G,chunkId:q,chunkReferenceId:M,fileName:B,format:J,moduleId:this.context.module.id,referenceId:K||G||M,relativePath:H}])||vj[J](H);Z.overwrite(X.start,X.end,F,{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 S8)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:D1,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=P8,!1}include(Z,q){var J;this.included=!0,(J=this.argument)===null||J===void 0||J.include(Z,q),Z.brokenFlow=P8}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:M}of IY(this.expressions,Z,this.start,this.end)){if(!W.included){yZ(W,Z,G,M);continue}if(z++,X=K,z===1&&Y)a4(Z,G,W.start);if(z===1){let B=J||this.parent.type;W.render(Z,q,{isCalleeOfRenderedParent:Q&&W===V,renderedParentType:B,renderedSurroundingElement:B})}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 S8&&!this.tag.variable?this.tag.object:null,type:D1,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===D1&&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=P8}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,` ${E8(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,M=[],B=gj(J,q,M);for(let{node:H,start:F,separator:w,contentEnd:_,end:P}of J){if(!H.included){Z.remove(F,P);continue}if(H.render(Z,q),K="",G="",!H.id.included||H.id instanceof d1&&A2(H.id.variable,q.exportNamesByVariable)){if(V)W+=";";X=!1}else{if(B&&B===H.id.variable){let D=o1(Z.original,"=",H.id.end);xZ(B,W8(Z.original,D+1),w===null?_:w,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=_,Y=P,V=!0,z=w,W=G}this.renderDeclarationEnd(Z,W,z,Q,Y,M,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:S8,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:M}}=Z,B=this.getMemberVariables(),H=Object.entries(B).map(([_,P])=>{if(this.referencedEarly||P.isReassigned)return[null,`get ${_}${X}()${X}{${X}return ${P.getName(K)}${M}${X}}`];return[_,P.getName(K)]});H.unshift([null,`__proto__:${X}null`]);let F=W(H,{lineBreakIndent:{base:"",t:Y}});if(this.mergedNamespaces.length>0){let _=this.mergedNamespaces.map((P)=>P.getName(K));F=`/*#__PURE__*/${P4}(${F},${X}[${_.join(`,${X}`)}])`}else{if(z)F=`/*#__PURE__*/Object.defineProperty(${F},${X}Symbol.toStringTag,${X}${K0(W)})`;if(Q)F=`/*#__PURE__*/Object.freeze(${F})`}let w=this.getName(K);if(F=`${V} ${w}${X}=${X}${F};`,J==="system"&&q.has(this))F+=`${G}${E8([this],Z)};`;return F}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,M=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,Y),K,G,z,Y),B=this.buildBinary(q,J,Z,M,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(B,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 M=new Y7,B=this.yieldPos,H=this.awaitPos,F=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var w=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1,M);if(Y&&!W&&!this.canInsertSemicolon()&&this.eat(O.arrow)){if(this.checkPatternErrors(M,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=B,this.awaitPos=H,this.awaitIdentPos=F,this.parseArrowExpression(this.startNodeAt(q,J),w,!0,X)}this.checkExpressionErrors(M,!0),this.yieldPos=B||this.yieldPos,this.awaitPos=H||this.awaitPos,this.awaitIdentPos=F||this.awaitIdentPos;var _=this.startNodeAt(q,J);if(_.callee=Z,_.arguments=w,V)_.optional=W;Z=this.finishNode(_,"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 P=this.startNodeAt(q,J);P.tag=Z,P.quasi=this.parseTemplate({isTagged:!0}),Z=this.finishNode(P,"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,M=new Y7,B=this.yieldPos,H=this.awaitPos,F;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(F=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,M,this.parseParenItem));var w=this.lastTokEnd,_=this.lastTokEndLoc;if(this.expect(O.parenR),Z&&!this.canInsertSemicolon()&&this.eat(O.arrow))return this.checkPatternErrors(M,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=B,this.awaitPos=H,this.parseParenArrowList(J,Q,W,q);if(!W.length||G)this.unexpected(this.lastTokStart);if(F)this.unexpected(F);if(this.checkExpressionErrors(M,!0),this.yieldPos=B||this.yieldPos,this.awaitPos=H||this.awaitPos,W.length>1)Y=this.startNodeAt(X,V),Y.expressions=W,this.finishNodeAt(Y,"SequenceExpression",w,_);else Y=W[0]}else Y=this.parseParenExpression();if(this.options.preserveParens){var P=this.startNodeAt(J,Q);return P.expression=Y,this.finishNode(P,"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),M=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)M=G-97+10;else if(G>=65)M=G-65+10;else if(G>=48&&G<=57)M=G-48;else M=1/0;if(M>=Z)break;V=G,X=X*Z+M}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+=`
|
|
41
|
+
${q}`:Z,lB=(Z,q)=>Z.execIndex>q.execIndex?1:-1,xQ=(Z,q)=>q?`(${Z})`:Z,kQ,rB,c2,oB="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",p2="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",b9,x9="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",tB,eB,ZH,qH,R1=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},F5,Y5,eZ,O,O5,JH,n2,N5,a2,QH,YH,C0,hQ,zH,U0=function(q,J){this.line=q,this.column=J},Q7=function(q,J,Q){if(this.start=J,this.end=Q,q.sourceFile!==null)this.source=q.sourceFile},YZ,gQ=!1,j0=1,U6=2,Zq=4,r2=8,o2=16,t2=32,qq=64,e2=128,_0=256,Jq,E4=0,Yq=1,a5=2,Zz=3,qz=4,Jz=5,l1=function(q,J,Q){this.options=q=XH(q),this.sourceFile=q.sourceFile,this.keywords=I8(tB[q.ecmaVersion>=6?6:q.sourceType==="module"?"5module":5]);var Y="";if(q.allowReserved!==!0){if(Y=b9[q.ecmaVersion>=6?6:q.ecmaVersion===5?5:3],q.sourceType==="module")Y+=" await"}this.reservedWords=I8(Y);var z=(Y?Y+" ":"")+b9.strict;if(this.reservedWordsStrict=I8(z),this.reservedWordsStrictBind=I8(z+" "+b9.strictBind),this.input=String(J),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(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
44
|
`;break;default:Z+=String.fromCharCode(J);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;q=this.pos}else++this.pos}};B1.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(O.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")};B1.readEscapedChar=function(Z){var q=this.input.charCodeAt(++this.pos);switch(++this.pos,q){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 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,M,B;for(B in q)G&&B.length<G.length||(B[B.length-1]==="/"&&X.startsWith(B)?(z=X.substring(B.length),G=B):B.length>1&&(M=B.indexOf("*",1),~M&&(K=RegExp("^"+B.substring(0,M)+"(.*)"+B.substring(1+M)+"$").exec(X),K&&K[1]&&(z=K[1],G=B))));W=q[G]}return W||vz(Z,X),Y=$q(W,V),Y||vz(Z,X,1),z&&function(K,G){let M,B=0,H=K.length,F=/[*]/g,w=/[/]$/;for(;B<H;B++)K[B]=F.test(M=K[B])?M.replace(F,G):w.test(M)?M+G:M}(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,M=0,B=!1,H=!1,F=!1,w=!1,_=!1,P=!1,D=!1,A=!1,h=!1,v=!1,m=0,x,R,S={value:"",depth:0,isGlob:!1},I=()=>K>=Q,j=()=>W.charCodeAt(K+1),b=()=>{return x=R,W.charCodeAt(++K)};while(K<Q){R=b();let l;if(R===T0){if(D=S.backslashes=!0,R=b(),R===Mq)P=!0;continue}if(P===!0||R===Mq){m++;while(I()!==!0&&(R=b())){if(R===T0){D=S.backslashes=!0,b();continue}if(R===Mq){m++;continue}if(P!==!0&&R===Bq&&(R=b())===Bq){if(B=S.isBrace=!0,F=S.isGlob=!0,v=!0,Y===!0)continue;break}if(P!==!0&&R===MF){if(B=S.isBrace=!0,F=S.isGlob=!0,v=!0,Y===!0)continue;break}if(R===NF){if(m--,m===0){P=!1,B=S.isBrace=!0,v=!0;break}}}if(Y===!0)continue;break}if(R===rz){if(z.push(K),X.push(S),S={value:"",depth:0,isGlob:!1},v===!0)continue;if(x===Bq&&K===G+1){G+=2;continue}M=K+1;continue}if(J.noext!==!0){if((R===LF||R===HF||R===jq||R===iz||R===Hq)===!0&&j()===Fq){if(F=S.isGlob=!0,w=S.isExtglob=!0,v=!0,R===Hq&&K===G)h=!0;if(Y===!0){while(I()!==!0&&(R=b())){if(R===T0){D=S.backslashes=!0,R=b();continue}if(R===nz){F=S.isGlob=!0,v=!0;break}}continue}break}}if(R===jq){if(x===jq)_=S.isGlobstar=!0;if(F=S.isGlob=!0,v=!0,Y===!0)continue;break}if(R===iz){if(F=S.isGlob=!0,v=!0,Y===!0)continue;break}if(R===FF){while(I()!==!0&&(l=b())){if(l===T0){D=S.backslashes=!0,b();continue}if(l===wF){H=S.isBracket=!0,F=S.isGlob=!0,v=!0;break}}if(Y===!0)continue;break}if(J.nonegate!==!0&&R===Hq&&K===G){A=S.negated=!0,G++;continue}if(J.noparen!==!0&&R===Fq){if(F=S.isGlob=!0,Y===!0){while(I()!==!0&&(R=b())){if(R===Fq){D=S.backslashes=!0,R=b();continue}if(R===nz){v=!0;break}}continue}break}if(F===!0){if(v=!0,Y===!0)continue;break}}if(J.noext===!0)w=!1,F=!1;let k=W,y="",$="";if(G>0)y=W.slice(0,G),W=W.slice(G),M-=G;if(k&&F===!0&&M>0)k=W.slice(0,M),$=W.slice(M);else if(F===!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&&D===!0)k=pz.removeBackslashes(k)}let L={prefix:y,input:Z,start:G,base:k,glob:$,isBrace:B,isBracket:H,isGlob:F,isExtglob:w,isGlobstar:_,negated:A,negatedExtglob:h};if(J.tokens===!0){if(L.maxDepth=0,!az(R))X.push(S);L.tokens=X}if(J.parts===!0||J.tokens===!0){let l;for(let f=0;f<z.length;f++){let s=l?l+1:G,o=z[f],Q1=Z.slice(s,o);if(J.tokens){if(f===0&&G!==0)X[f].isPrefix=!0,X[f].value=y;else X[f].value=Q1;sz(X[f]),L.maxDepth+=X[f].depth}if(f!==0||Q1!=="")V.push(Q1);l=o}if(l&&l+1<Z.length){let f=Z.slice(l+1);if(V.push(f),J.tokens)X[X.length-1].value=f,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:M,PLUS_LITERAL:B,SLASH_LITERAL:H,ONE_CHAR:F,DOTS_SLASH:w,NO_DOT:_,NO_DOT_SLASH:P,NO_DOTS_SLASH:D,QMARK:A,QMARK_NO_DOT:h,STAR:v,START_ANCHOR:m}=K,x=(T)=>{return`(${V}(?:(?!${m}${T.dot?w:M}).)*?)`},R=J.dot?"":_,S=J.dot?A:h,I=J.bash===!0?x(J):v;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 b=[],k=[],y=[],$=z,L,l=()=>j.index===Y-1,f=j.peek=(T=1)=>Z[j.index+T],s=j.advance=()=>Z[++j.index]||"",o=()=>Z.slice(j.index+1),Q1=(T="",E=0)=>{j.consumed+=T,j.index+=E},N1=(T)=>{j.output+=T.output!=null?T.output:T.value,Q1(T.value)},O1=()=>{let T=1;while(f()==="!"&&(f(2)!=="("||f(3)==="?"))s(),j.start++,T++;if(T%2===0)return!1;return j.negated=!0,j.start++,!0},w1=(T)=>{j[T]++,y.push(T)},a=(T)=>{j[T]--,y.pop()},u=(T)=>{if($.type==="globstar"){let E=j.braces>0&&(T.type==="comma"||T.type==="brace"),C=T.extglob===!0||b.length&&(T.type==="pipe"||T.type==="paren");if(T.type!=="slash"&&T.type!=="paren"&&!E&&!C)j.output=j.output.slice(0,-$.output.length),$.type="star",$.value="*",$.output=I,j.output+=$.output}if(b.length&&T.type!=="paren")b[b.length-1].inner+=T.value;if(T.value||T.output)N1(T);if($&&$.type==="text"&&T.type==="text"){$.value+=T.value,$.output=($.output||"")+T.value;return}T.prev=$,X.push(T),$=T},M1=(T,E)=>{let C={...G[E],conditions:1,inner:""};C.prev=$,C.parens=j.parens,C.output=j.output;let g=(J.capture?"(":"")+C.open;w1("parens"),u({type:T,value:E,output:j.output?"":F}),u({type:"paren",extglob:!0,value:s(),output:g}),b.push(C)},p=(T)=>{let E=T.close+(J.capture?")":""),C;if(T.type==="negate"){let g=I;if(T.inner&&T.inner.length>1&&T.inner.includes("/"))g=x(J);if(g!==I||l()||/^\)+$/.test(o()))E=T.close=`)$))${g}`;if(T.inner.includes("*")&&(C=o())&&/^\.[^\\/.]+$/.test(C)){let c=Lq(C,{...q,fastpaths:!1}).output;E=T.close=`)${c})${g})`}if(T.prev.type==="bos")j.negatedExtglob=!0}u({type:"paren",extglob:!0,value:L,output:E}),a("parens")};if(J.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let T=!1,E=Z.replace(_F,(C,g,c,r,e,p1)=>{if(r==="\\")return T=!0,C;if(r==="?"){if(g)return g+r+(e?A.repeat(e.length):"");if(p1===0)return S+(e?A.repeat(e.length):"");return A.repeat(c.length)}if(r===".")return M.repeat(c.length);if(r==="*"){if(g)return g+r+(e?I:"");return I}return g?C:`\\${C}`});if(T===!0)if(J.unescape===!0)E=E.replace(/\\/g,"");else E=E.replace(/\\+/g,(C)=>{return C.length%2===0?"\\\\":C?"\\":""});if(E===Z&&J.contains===!0)return j.output=Z,j;return j.output=B5.wrapOutput(E,j,q),j}while(!l()){if(L=s(),L==="\x00")continue;if(L==="\\"){let C=f();if(C==="/"&&J.bash!==!0)continue;if(C==="."||C===";")continue;if(!C){L+="\\",u({type:"text",value:L});continue}let g=/^\\+/.exec(o()),c=0;if(g&&g[0].length>2){if(c=g[0].length,j.index+=c,c%2!==0)L+="\\"}if(J.unescape===!0)L=s();else L+=s();if(j.brackets===0){u({type:"text",value:L});continue}}if(j.brackets>0&&(L!=="]"||$.value==="["||$.value==="[^")){if(J.posix!==!1&&L===":"){let C=$.value.slice(1);if(C.includes("[")){if($.posix=!0,C.includes(":")){let g=$.value.lastIndexOf("["),c=$.value.slice(0,g),r=$.value.slice(g+2),e=RF[r];if(e){if($.value=c+e,j.backtrack=!0,s(),!z.output&&X.indexOf($)===1)z.output=F;continue}}}}if(L==="["&&f()!==":"||L==="-"&&f()==="]")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)u({type:"text",value:L});continue}if(L==="("){w1("parens"),u({type:"paren",value:L});continue}if(L===")"){if(j.parens===0&&J.strictBrackets===!0)throw SyntaxError(H6("opening","("));let C=b[b.length-1];if(C&&j.parens===C.parens+1){p(b.pop());continue}u({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");u({type:"bracket",value:L});continue}if(L==="]"){if(J.nobracket===!0||$&&$.type==="bracket"&&$.value.length===1){u({type:"text",value:L,output:`\\${L}`});continue}if(j.brackets===0){if(J.strictBrackets===!0)throw SyntaxError(H6("opening","["));u({type:"text",value:L,output:`\\${L}`});continue}a("brackets");let C=$.value.slice(1);if($.posix!==!0&&C[0]==="^"&&!C.includes("/"))L=`/${L}`;if($.value+=L,N1({value:L}),J.literalBrackets===!1||B5.hasRegexChars(C))continue;let g=B5.escapeRegex($.value);if(j.output=j.output.slice(0,-$.value.length),J.literalBrackets===!0){j.output+=g,$.value=g;continue}$.value=`(${V}${g}|${$.value})`,j.output+=$.value;continue}if(L==="{"&&J.nobrace!==!0){w1("braces");let C={type:"brace",value:L,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};k.push(C),u(C);continue}if(L==="}"){let C=k[k.length-1];if(J.nobrace===!0||!C){u({type:"text",value:L,output:L});continue}let g=")";if(C.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)}g=IF(r,J),j.backtrack=!0}if(C.comma!==!0&&C.dots!==!0){let c=j.output.slice(0,C.outputIndex),r=j.tokens.slice(C.tokensIndex);C.value=C.output="\\{",L=g="\\}",j.output=c;for(let e of r)j.output+=e.output||e.value}u({type:"brace",value:L,output:g}),a("braces"),k.pop();continue}if(L==="|"){if(b.length>0)b[b.length-1].conditions++;u({type:"text",value:L});continue}if(L===","){let C=L,g=k[k.length-1];if(g&&y[y.length-1]==="braces")g.comma=!0,C="|";u({type:"comma",value:L,output:C});continue}if(L==="/"){if($.type==="dot"&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",X.pop(),$=z;continue}u({type:"slash",value:L,output:H});continue}if(L==="."){if(j.braces>0&&$.type==="dot"){if($.value===".")$.output=M;let C=k[k.length-1];$.type="dots",$.output+=L,$.value+=L,C.dots=!0;continue}if(j.braces+j.parens===0&&$.type!=="bos"&&$.type!=="slash"){u({type:"text",value:L,output:M});continue}u({type:"dot",value:L,output:M});continue}if(L==="?"){if(!($&&$.value==="(")&&J.noextglob!==!0&&f()==="("&&f(2)!=="?"){M1("qmark",L);continue}if($&&$.type==="paren"){let g=f(),c=L;if(g==="<"&&!B5.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if($.value==="("&&!/[!=<:]/.test(g)||g==="<"&&!/<([!=]|\w+>)/.test(o()))c=`\\${L}`;u({type:"text",value:L,output:c});continue}if(J.dot!==!0&&($.type==="slash"||$.type==="bos")){u({type:"qmark",value:L,output:h});continue}u({type:"qmark",value:L,output:A});continue}if(L==="!"){if(J.noextglob!==!0&&f()==="("){if(f(2)!=="?"||!/[!=<:]/.test(f(3))){M1("negate",L);continue}}if(J.nonegate!==!0&&j.index===0){O1();continue}}if(L==="+"){if(J.noextglob!==!0&&f()==="("&&f(2)!=="?"){M1("plus",L);continue}if($&&$.value==="("||J.regex===!1){u({type:"plus",value:L,output:B});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||j.parens>0){u({type:"plus",value:L});continue}u({type:"plus",value:B});continue}if(L==="@"){if(J.noextglob!==!0&&f()==="("&&f(2)!=="?"){u({type:"at",extglob:!0,value:L,output:""});continue}u({type:"text",value:L});continue}if(L!=="*"){if(L==="$"||L==="^")L=`\\${L}`;let C=CF.exec(o());if(C)L+=C[0],j.index+=C[0].length;u({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 T=o();if(J.noextglob!==!0&&/^\([^?]/.test(T)){M1("star",L);continue}if($.type==="star"){if(J.noglobstar===!0){Q1(L);continue}let C=$.prev,g=C.prev,c=C.type==="slash"||C.type==="bos",r=g&&(g.type==="star"||g.type==="globstar");if(J.bash===!0&&(!c||T[0]&&T[0]!=="/")){u({type:"star",value:L,output:""});continue}let e=j.braces>0&&(C.type==="comma"||C.type==="brace"),p1=b.length&&(C.type==="pipe"||C.type==="paren");if(!c&&C.type!=="paren"&&!e&&!p1){u({type:"star",value:L,output:""});continue}while(T.slice(0,3)==="/**"){let g1=Z[j.index+4];if(g1&&g1!=="/")break;T=T.slice(3),Q1("/**",3)}if(C.type==="bos"&&l()){$.type="globstar",$.value+=L,$.output=x(J),j.output=$.output,j.globstar=!0,Q1(L);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&!r&&l()){j.output=j.output.slice(0,-(C.output+$.output).length),C.output=`(?:${C.output}`,$.type="globstar",$.output=x(J)+(J.strictSlashes?")":"|$)"),$.value+=L,j.globstar=!0,j.output+=C.output+$.output,Q1(L);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&T[0]==="/"){let g1=T[1]!==void 0?"|$":"";j.output=j.output.slice(0,-(C.output+$.output).length),C.output=`(?:${C.output}`,$.type="globstar",$.output=`${x(J)}${H}|${H}${g1})`,$.value+=L,j.output+=C.output+$.output,j.globstar=!0,Q1(L+s()),u({type:"slash",value:"/",output:""});continue}if(C.type==="bos"&&T[0]==="/"){$.type="globstar",$.value+=L,$.output=`(?:^|${H}|${x(J)}${H})`,j.output=$.output,j.globstar=!0,Q1(L+s()),u({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-$.output.length),$.type="globstar",$.output=x(J),$.value+=L,j.output+=$.output,j.globstar=!0,Q1(L);continue}let E={type:"star",value:L,output:I};if(J.bash===!0){if(E.output=".*?",$.type==="bos"||$.type==="slash")E.output=R+E.output;u(E);continue}if($&&($.type==="bracket"||$.type==="paren")&&J.regex===!0){E.output=L,u(E);continue}if(j.index===j.start||$.type==="slash"||$.type==="dot"){if($.type==="dot")j.output+=P,$.output+=P;else if(J.dot===!0)j.output+=D,$.output+=D;else j.output+=R,$.output+=R;if(f()!=="*")j.output+=F,$.output+=F}u(E)}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"))u({type:"maybe_slash",value:"",output:`${H}?`});if(j.backtrack===!0){j.output="";for(let T of j.tokens)if(j.output+=T.output!=null?T.output:T.value,T.suffix)j.output+=T.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:M,NO_DOTS_SLASH:B,STAR:H,START_ANCHOR:F}=W7.globChars(z),w=J.dot?M:G,_=J.dot?B:G,P=J.capture?"":"?:",D={negated:!1,prefix:""},A=J.bash===!0?".*?":H;if(J.capture)A=`(${A})`;let h=(R)=>{if(R.noglobstar===!0)return A;return`(${P}(?:(?!${F}${R.dot?K:X}).)*?)`},v=(R)=>{switch(R){case"*":return`${w}${W}${A}`;case".*":return`${X}${W}${A}`;case"*.*":return`${w}${A}${X}${W}${A}`;case"*/*":return`${w}${A}${V}${W}${_}${A}`;case"**":return w+h(J);case"**/*":return`(?:${w}${h(J)}${V})?${_}${W}${A}`;case"**/*.*":return`(?:${w}${h(J)}${V})?${_}${A}${X}${W}${A}`;case"**/.*":return`(?:${w}${h(J)}${V})?${X}${W}${A}`;default:{let S=/^(.*?)\.(\w+)$/.exec(R);if(!S)return;let I=v(S[1]);if(!I)return;return I+X+S[2]}}},m=B5.removePrefix(Z,D),x=v(m);if(x&&J.strictSlashes!==!0)x+=`${V}?`;return x};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((B)=>k1(B,q,J));return(B)=>{for(let H of G){let F=H(B);if(F)return F}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,M=!1)=>{let{isMatch:B,match:H,output:F}=k1.test(G,X,q,{glob:Z,posix:z}),w={glob:Z,state:V,regex:X,posix:z,input:G,output:F,match:H,isMatch:B};if(typeof Y.onResult==="function")Y.onResult(w);if(B===!1)return w.isMatch=!1,M?w:!1;if(W(G)){if(typeof Y.onIgnore==="function")Y.onIgnore(w);return w.isMatch=!1,M?w:!1}if(typeof Y.onMatch==="function")Y.onMatch(w);return M?w:!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 M=0;M<V.length;++M)if(V[M].test(G))return!1;for(let M=0;M<X.length;++M)if(X[M].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?`
|
|
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
46
|
${J}${q}`:"";for(let z=0;z<Z.length;z++){let X=Z[z];Q+=`${z>0?",":""}${Y}${A0(X,q,J+q)}`}return`${Q}${q?`
|
|
47
47
|
${J}`:""}]`}function mF(Z,q,J){let Q="{",Y=q?`
|
|
48
48
|
${J}${q}`:"",z=Object.entries(Z);for(let X=0;X<z.length;X++){let[V,W]=z[X],K=U7(V)===V?V:$7(V);Q+=`${X>0?",":""}${Y}${K}:${q?" ":""}${A0(W,q,J+q)}`}return`${Q}${q?`
|
|
49
49
|
${J}`:""}}`}function A0(Z,q,J){if(typeof Z==="object"&&Z!==null){if(Array.isArray(Z))return gF(Z,q,J);if(Z instanceof Date)return`new Date(${Z.getTime()})`;if(Z instanceof RegExp)return Z.toString();return mF(Z,q,J)}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(${$7(Q)})`}if(typeof Z==="bigint")return`${Z}n`;return $7(Z)}var GX=function(q,J={}){let Q=J.compact?"":("indent"in J)?J.indent:"\t",Y=J.compact?"":" ",z=J.compact?"":`
|
|
50
|
-
`,X=J.preferConst?"const":"var";if(J.namedExports===!1||typeof q!=="object"||Array.isArray(q)||q instanceof Date||q instanceof RegExp||q===null){let K=A0(q,J.compact?null:Q,"");return`export default${Y||(/^[{[\-\/]/.test(K)?"":" ")}${K};`}let V="",W=[];for(let[K,G]of Object.entries(q))if(K===U7(K)){if(J.objectShorthand)W.push(K);else W.push(`${K}:${Y}${K}`);V+=`export ${X} ${K}${Y}=${Y}${A0(G,J.compact?null:Q,"")};${z}`}else W.push(`${$7(K)}:${Y}${A0(G,J.compact?null:Q,"")}`);return`${V}export default${Y}{${z}${Q}${W.join(`,${z}${Q}`)}${z}};${z}`},uF={addExtension:zX,attachScopes:VX,createFilter:WX,dataToEsm:GX,extractAssignedNames:G7,makeLegalIdentifier:U7,normalizePath:w6};$X.addExtension=zX;$X.attachScopes=VX;$X.createFilter=WX;$X.dataToEsm=GX;$X.default=uF;$X.extractAssignedNames=G7;$X.makeLegalIdentifier=U7;$X.normalizePath=w6});var MX=U1((iC,HX)=>{var
|
|
50
|
+
`,X=J.preferConst?"const":"var";if(J.namedExports===!1||typeof q!=="object"||Array.isArray(q)||q instanceof Date||q instanceof RegExp||q===null){let K=A0(q,J.compact?null:Q,"");return`export default${Y||(/^[{[\-\/]/.test(K)?"":" ")}${K};`}let V="",W=[];for(let[K,G]of Object.entries(q))if(K===U7(K)){if(J.objectShorthand)W.push(K);else W.push(`${K}:${Y}${K}`);V+=`export ${X} ${K}${Y}=${Y}${A0(G,J.compact?null:Q,"")};${z}`}else W.push(`${$7(K)}:${Y}${A0(G,J.compact?null:Q,"")}`);return`${V}export default${Y}{${z}${Q}${W.join(`,${z}${Q}`)}${z}};${z}`},uF={addExtension:zX,attachScopes:VX,createFilter:WX,dataToEsm:GX,extractAssignedNames:G7,makeLegalIdentifier:U7,normalizePath:w6};$X.addExtension=zX;$X.attachScopes=VX;$X.createFilter=WX;$X.dataToEsm=GX;$X.default=uF;$X.extractAssignedNames=G7;$X.makeLegalIdentifier=U7;$X.normalizePath=w6});var MX=U1((iC,HX)=>{var x8=a1("path"),jX=a1("fs"),{resolve:rF}=mz(),{createFilter:oF}=UX(),B7=a1("svelte/compiler"),j7=Number(B7.VERSION.split(".")[0]),tF=new Set(["emitCss","exclude","extensions","include","onwarn","preprocess"]),eF=/\.svelte(\.[^./\\]+)*\.(js|ts)$/,BX=!1;HX.exports=function(Z={}){let{compilerOptions:q={},...J}=Z,Q=J.extensions||[".svelte"],Y=oF(J.include,J.exclude);if(j7===3)q.format="esm";for(let W in J){if(tF.has(W))continue;console.warn(`[rollup-plugin-svelte] Unknown "${W}" option. Please use "compilerOptions" for any Svelte compiler configuration.`)}let z=new Map,{onwarn:X,emitCss:V=!0}=J;if(V){let W=j7>3?"external":!1;if(q.css)console.warn(`[rollup-plugin-svelte] Forcing \`"compilerOptions.css": ${typeof W==="string"?`"${W}"`:W}\` because "emitCss" was truthy.`);q.css=W}else if(j7>4)q.css="injected";return{name:"svelte",async resolveId(W,K,G){if(z.has(W))return W;if(!K||W[0]==="."||W[0]==="\x00"||x8.isAbsolute(W))return null;let F=W.split("/"),M=F.shift();if(M&&M[0]==="@")M+=`/${F.shift()}`;let B=F.join("/")||".",H,N,C=K;while(C!==(C=x8.dirname(C))){N=x8.join(C,"node_modules",M);let S=x8.join(N,"package.json");if(jX.existsSync(S)){H=JSON.parse(jX.readFileSync(S,"utf-8"));break}}if(!H)return;if(B==="."&&H.svelte)return x8.resolve(N,H.svelte);if(!await this.resolve(W,K,{skipSelf:!0,...G}))try{if(rF(H,B,{conditions:["svelte"]}),!BX)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
|
-
`),BX=!0}catch(
|
|
53
|
-
import ${JSON.stringify(
|
|
54
|
-
`,z.set(w,F.css)}if(this.addWatchFile)M.forEach(this.addWatchFile);else F.js.dependencies=M;return F.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,M=0,B=!1,H=!1,F=!1,w=!1,_=!1,P=!1,D=!1,A=!1,h=!1,v=!1,m=0,x,R,S={value:"",depth:0,isGlob:!1},I=()=>K>=Q,j=()=>W.charCodeAt(K+1),b=()=>{return x=R,W.charCodeAt(++K)};while(K<Q){R=b();let l;if(R===y0){if(D=S.backslashes=!0,R=b(),R===Dq)P=!0;continue}if(P===!0||R===Dq){m++;while(I()!==!0&&(R=b())){if(R===y0){D=S.backslashes=!0,b();continue}if(R===Dq){m++;continue}if(P!==!0&&R===_q&&(R=b())===_q){if(B=S.isBrace=!0,F=S.isGlob=!0,v=!0,Y===!0)continue;break}if(P!==!0&&R===FN){if(B=S.isBrace=!0,F=S.isGlob=!0,v=!0,Y===!0)continue;break}if(R===wN){if(m--,m===0){P=!1,B=S.isBrace=!0,v=!0;break}}}if(Y===!0)continue;break}if(R===gX){if(z.push(K),X.push(S),S={value:"",depth:0,isGlob:!1},v===!0)continue;if(x===_q&&K===G+1){G+=2;continue}M=K+1;continue}if(J.noext!==!0){if((R===NN||R===MN||R===Cq||R===kX||R===Iq)===!0&&j()===Tq){if(F=S.isGlob=!0,w=S.isExtglob=!0,v=!0,R===Iq&&K===G)h=!0;if(Y===!0){while(I()!==!0&&(R=b())){if(R===y0){D=S.backslashes=!0,R=b();continue}if(R===vX){F=S.isGlob=!0,v=!0;break}}continue}break}}if(R===Cq){if(x===Cq)_=S.isGlobstar=!0;if(F=S.isGlob=!0,v=!0,Y===!0)continue;break}if(R===kX){if(F=S.isGlob=!0,v=!0,Y===!0)continue;break}if(R===LN){while(I()!==!0&&(l=b())){if(l===y0){D=S.backslashes=!0,b();continue}if(l===ON){H=S.isBracket=!0,F=S.isGlob=!0,v=!0;break}}if(Y===!0)continue;break}if(J.nonegate!==!0&&R===Iq&&K===G){A=S.negated=!0,G++;continue}if(J.noparen!==!0&&R===Tq){if(F=S.isGlob=!0,Y===!0){while(I()!==!0&&(R=b())){if(R===Tq){D=S.backslashes=!0,R=b();continue}if(R===vX){v=!0;break}}continue}break}if(F===!0){if(v=!0,Y===!0)continue;break}}if(J.noext===!0)w=!1,F=!1;let k=W,y="",$="";if(G>0)y=W.slice(0,G),W=W.slice(G),M-=G;if(k&&F===!0&&M>0)k=W.slice(0,M),$=W.slice(M);else if(F===!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&&D===!0)k=xX.removeBackslashes(k)}let L={prefix:y,input:Z,start:G,base:k,glob:$,isBrace:B,isBracket:H,isGlob:F,isExtglob:w,isGlobstar:_,negated:A,negatedExtglob:h};if(J.tokens===!0){if(L.maxDepth=0,!fX(R))X.push(S);L.tokens=X}if(J.parts===!0||J.tokens===!0){let l;for(let f=0;f<z.length;f++){let s=l?l+1:G,o=z[f],Q1=Z.slice(s,o);if(J.tokens){if(f===0&&G!==0)X[f].isPrefix=!0,X[f].value=y;else X[f].value=Q1;hX(X[f]),L.maxDepth+=X[f].depth}if(f!==0||Q1!=="")V.push(Q1);l=o}if(l&&l+1<Z.length){let f=Z.slice(l+1);if(V.push(f),J.tokens)X[X.length-1].value=f,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:M,SLASH_LITERAL:B,ONE_CHAR:H,DOTS_SLASH:F,NO_DOT:w,NO_DOT_SLASH:_,NO_DOTS_SLASH:P,QMARK:D,QMARK_NO_DOT:A,STAR:h,START_ANCHOR:v}=W,m=(p)=>{return`(${V}(?:(?!${v}${p.dot?F:G}).)*?)`},x=J.dot?"":w,R=J.dot?D:A,S=J.bash===!0?m(J):h;if(J.capture)S=`(${S})`;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=[],b=[],k=[],y=z,$,L=()=>I.index===Y-1,l=I.peek=(p=1)=>Z[I.index+p],f=I.advance=()=>Z[++I.index]||"",s=()=>Z.slice(I.index+1),o=(p="",T=0)=>{I.consumed+=p,I.index+=T},Q1=(p)=>{I.output+=p.output!=null?p.output:p.value,o(p.value)},N1=()=>{let p=1;while(l()==="!"&&(l(2)!=="("||l(3)==="?"))f(),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 T=I.braces>0&&(p.type==="comma"||p.type==="brace"),E=p.extglob===!0||j.length&&(p.type==="pipe"||p.type==="paren");if(p.type!=="slash"&&p.type!=="paren"&&!T&&!E)I.output=I.output.slice(0,-y.output.length),y.type="star",y.value="*",y.output=S,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},u=(p,T)=>{let E={...K[T],conditions:1,inner:""};E.prev=y,E.parens=I.parens,E.output=I.output;let C=(J.capture?"(":"")+E.open;O1("parens"),a({type:p,value:T,output:I.output?"":H}),a({type:"paren",extglob:!0,value:f(),output:C}),j.push(E)},M1=(p)=>{let T=p.close+(J.capture?")":""),E;if(p.type==="negate"){let C=S;if(p.inner&&p.inner.length>1&&p.inner.includes("/"))C=m(J);if(C!==S||L()||/^\)+$/.test(s()))T=p.close=`)$))${C}`;if(p.inner.includes("*")&&(E=s())&&/^\.[^\\/.]+$/.test(E)){let g=Aq(E,{...q,fastpaths:!1}).output;T=p.close=`)${g})${C})`}if(p.prev.type==="bos")I.negatedExtglob=!0}a({type:"paren",extglob:!0,value:$,output:T}),w1("parens")};if(J.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(Z)){let p=!1,T=Z.replace(IN,(E,C,g,c,r,e)=>{if(c==="\\")return p=!0,E;if(c==="?"){if(C)return C+c+(r?D.repeat(r.length):"");if(e===0)return R+(r?D.repeat(r.length):"");return D.repeat(g.length)}if(c===".")return G.repeat(g.length);if(c==="*"){if(C)return C+c+(r?S:"");return S}return C?E:`\\${E}`});if(p===!0)if(J.unescape===!0)T=T.replace(/\\/g,"");else T=T.replace(/\\+/g,(E)=>{return E.length%2===0?"\\\\":E?"\\":""});if(T===Z&&J.contains===!0)return I.output=Z,I;return I.output=g5.wrapOutput(T,I,q),I}while(!L()){if($=f(),$==="\x00")continue;if($==="\\"){let E=l();if(E==="/"&&J.bash!==!0)continue;if(E==="."||E===";")continue;if(!E){$+="\\",a({type:"text",value:$});continue}let C=/^\\+/.exec(s()),g=0;if(C&&C[0].length>2){if(g=C[0].length,I.index+=g,g%2!==0)$+="\\"}if(J.unescape===!0)$=f();else $+=f();if(I.brackets===0){a({type:"text",value:$});continue}}if(I.brackets>0&&($!=="]"||y.value==="["||y.value==="[^")){if(J.posix!==!1&&$===":"){let E=y.value.slice(1);if(E.includes("[")){if(y.posix=!0,E.includes(":")){let C=y.value.lastIndexOf("["),g=y.value.slice(0,C),c=y.value.slice(C+2),r=CN[c];if(r){if(y.value=g+r,I.backtrack=!0,f(),!z.output&&X.indexOf(y)===1)z.output=H;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 E=j[j.length-1];if(E&&I.parens===E.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 E=y.value.slice(1);if(y.posix!==!0&&E[0]==="^"&&!E.includes("/"))$=`/${$}`;if(y.value+=$,Q1({value:$}),J.literalBrackets===!1||g5.hasRegexChars(E))continue;let C=g5.escapeRegex(y.value);if(I.output=I.output.slice(0,-y.value.length),J.literalBrackets===!0){I.output+=C,y.value=C;continue}y.value=`(${V}${C}|${y.value})`,I.output+=y.value;continue}if($==="{"&&J.nobrace!==!0){O1("braces");let E={type:"brace",value:$,output:"(",outputIndex:I.output.length,tokensIndex:I.tokens.length};b.push(E),a(E);continue}if($==="}"){let E=b[b.length-1];if(J.nobrace===!0||!E){a({type:"text",value:$,output:$});continue}let C=")";if(E.dots===!0){let g=X.slice(),c=[];for(let r=g.length-1;r>=0;r--){if(X.pop(),g[r].type==="brace")break;if(g[r].type!=="dots")c.unshift(g[r].value)}C=DN(c,J),I.backtrack=!0}if(E.comma!==!0&&E.dots!==!0){let g=I.output.slice(0,E.outputIndex),c=I.tokens.slice(E.tokensIndex);E.value=E.output="\\{",$=C="\\}",I.output=g;for(let r of c)I.output+=r.output||r.value}a({type:"brace",value:$,output:C}),w1("braces"),b.pop();continue}if($==="|"){if(j.length>0)j[j.length-1].conditions++;a({type:"text",value:$});continue}if($===","){let E=$,C=b[b.length-1];if(C&&k[k.length-1]==="braces")C.comma=!0,E="|";a({type:"comma",value:$,output:E});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:B});continue}if($==="."){if(I.braces>0&&y.type==="dot"){if(y.value===".")y.output=G;let E=b[b.length-1];y.type="dots",y.output+=$,y.value+=$,E.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)!=="?"){u("qmark",$);continue}if(y&&y.type==="paren"){let C=l(),g=$;if(y.value==="("&&!/[!=<:]/.test(C)||C==="<"&&!/<([!=]|\w+>)/.test(s()))g=`\\${$}`;a({type:"text",value:$,output:g});continue}if(J.dot!==!0&&(y.type==="slash"||y.type==="bos")){a({type:"qmark",value:$,output:A});continue}a({type:"qmark",value:$,output:D});continue}if($==="!"){if(J.noextglob!==!0&&l()==="("){if(l(2)!=="?"||!/[!=<:]/.test(l(3))){u("negate",$);continue}}if(J.nonegate!==!0&&I.index===0){N1();continue}}if($==="+"){if(J.noextglob!==!0&&l()==="("&&l(2)!=="?"){u("plus",$);continue}if(y&&y.value==="("||J.regex===!1){a({type:"plus",value:$,output:M});continue}if(y&&(y.type==="bracket"||y.type==="paren"||y.type==="brace")||I.parens>0){a({type:"plus",value:$});continue}a({type:"plus",value:M});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 E=_N.exec(s());if(E)$+=E[0],I.index+=E[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=S,I.backtrack=!0,I.globstar=!0,o($);continue}let p=s();if(J.noextglob!==!0&&/^\([^?]/.test(p)){u("star",$);continue}if(y.type==="star"){if(J.noglobstar===!0){o($);continue}let E=y.prev,C=E.prev,g=E.type==="slash"||E.type==="bos",c=C&&(C.type==="star"||C.type==="globstar");if(J.bash===!0&&(!g||p[0]&&p[0]!=="/")){a({type:"star",value:$,output:""});continue}let r=I.braces>0&&(E.type==="comma"||E.type==="brace"),e=j.length&&(E.type==="pipe"||E.type==="paren");if(!g&&E.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(E.type==="bos"&&L()){y.type="globstar",y.value+=$,y.output=m(J),I.output=y.output,I.globstar=!0,o($);continue}if(E.type==="slash"&&E.prev.type!=="bos"&&!c&&L()){I.output=I.output.slice(0,-(E.output+y.output).length),E.output=`(?:${E.output}`,y.type="globstar",y.output=m(J)+(J.strictSlashes?")":"|$)"),y.value+=$,I.globstar=!0,I.output+=E.output+y.output,o($);continue}if(E.type==="slash"&&E.prev.type!=="bos"&&p[0]==="/"){let p1=p[1]!==void 0?"|$":"";I.output=I.output.slice(0,-(E.output+y.output).length),E.output=`(?:${E.output}`,y.type="globstar",y.output=`${m(J)}${B}|${B}${p1})`,y.value+=$,I.output+=E.output+y.output,I.globstar=!0,o($+f()),a({type:"slash",value:"/",output:""});continue}if(E.type==="bos"&&p[0]==="/"){y.type="globstar",y.value+=$,y.output=`(?:^|${B}|${m(J)}${B})`,I.output=y.output,I.globstar=!0,o($+f()),a({type:"slash",value:"/",output:""});continue}I.output=I.output.slice(0,-y.output.length),y.type="globstar",y.output=m(J),y.value+=$,I.output+=y.output,I.globstar=!0,o($);continue}let T={type:"star",value:$,output:S};if(J.bash===!0){if(T.output=".*?",y.type==="bos"||y.type==="slash")T.output=x+T.output;a(T);continue}if(y&&(y.type==="bracket"||y.type==="paren")&&J.regex===!0){T.output=$,a(T);continue}if(I.index===I.start||y.type==="slash"||y.type==="dot"){if(y.type==="dot")I.output+=_,y.output+=_;else if(J.dot===!0)I.output+=P,y.output+=P;else I.output+=x,y.output+=x;if(l()!=="*")I.output+=H,y.output+=H}a(T)}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:`${B}?`});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:M,STAR:B,START_ANCHOR:H}=M7.globChars(J.windows),F=J.dot?G:K,w=J.dot?M:K,_=J.capture?"":"?:",P={negated:!1,prefix:""},D=J.bash===!0?".*?":B;if(J.capture)D=`(${D})`;let A=(x)=>{if(x.noglobstar===!0)return D;return`(${_}(?:(?!${H}${x.dot?W:z}).)*?)`},h=(x)=>{switch(x){case"*":return`${F}${V}${D}`;case".*":return`${z}${V}${D}`;case"*.*":return`${F}${D}${z}${V}${D}`;case"*/*":return`${F}${D}${X}${V}${w}${D}`;case"**":return F+A(J);case"**/*":return`(?:${F}${A(J)}${X})?${w}${V}${D}`;case"**/*.*":return`(?:${F}${A(J)}${X})?${w}${D}${z}${V}${D}`;case"**/.*":return`(?:${F}${A(J)}${X})?${z}${V}${D}`;default:{let R=/^(.*?)\.(\w+)$/.exec(x);if(!R)return;let S=h(R[1]);if(!S)return;return S+z+R[2]}}},v=g5.removePrefix(Z,P),m=h(v);if(m&&J.strictSlashes!==!0)m+=`${X}?`;return m};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((B)=>v1(B,q,J));return(B)=>{for(let H of G){let F=H(B);if(F)return F}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,M=!1)=>{let{isMatch:B,match:H,output:F}=v1.test(G,X,q,{glob:Z,posix:z}),w={glob:Z,state:V,regex:X,posix:z,input:G,output:F,match:H,isMatch:B};if(typeof Y.onResult==="function")Y.onResult(w);if(B===!1)return w.isMatch=!1,M?w:!1;if(W(G)){if(typeof Y.onIgnore==="function")Y.onIgnore(w);return w.isMatch=!1,M?w:!1}if(typeof Y.onMatch==="function")Y.onMatch(w);return M?w:!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(`
|
|
52
|
+
`),BX=!0}catch(S){}},load(W){return z.get(W)||null},async transform(W,K){if(!Y(K))return null;if(j7>4&&eF.test(K)){let N=B7.compileModule(W,{filename:K,dev:q.dev,generate:q.generate});return(N.warnings||[]).forEach((C)=>{if(X)X(C,this.warn);else this.warn(C)}),N.js}let G=x8.extname(K);if(!~Q.indexOf(G))return null;let F=[],M=x8.relative(process.cwd(),K),B={...q,filename:M};if(J.preprocess){let N=await B7.preprocess(W,J.preprocess,{filename:M});if(N.dependencies)F.push(...N.dependencies);if(N.map)B.sourcemap=N.map;W=N.code}let H=B7.compile(W,B);if((H.warnings||[]).forEach((N)=>{if(!V&&(N.code==="css-unused-selector"||N.code==="css_unused_selector"))return;if(X)X(N,this.warn);else this.warn(N)}),V&&H.css&&H.css.code){let N=K.replace(new RegExp(`\\${G}$`),".css");H.js.code+=`
|
|
53
|
+
import ${JSON.stringify(N)};
|
|
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
55
|
`);else return Z}var xW=(Z)=>Z&&Z.startsWith('"')&&Z.endsWith('"');function p0(){let Z=(q,{tokens:J},Q)=>J.type===""?q:Q;return(q)=>{let{tokens:J}=q.source[q.source.reduce(Z,0)],Q=J.description.trimLeft(),Y=Q.split('"');if(Y.length>1&&Y[0]===""&&Y.length%2===1)return q.name=Y[1],J.name=`"${Y[1]}"`,[J.postName,J.description]=l5(Q.slice(J.name.length)),q;let z=0,X="",V=!1,W;for(let G of Q){if(z===0&&g7(G))break;if(G==="[")z++;if(G==="]")z--;X+=G}if(z!==0)return q.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:q.source[0].number,critical:!0}),q;let K=X;if(X[0]==="["&&X[X.length-1]==="]"){V=!0,X=X.slice(1,-1);let G=X.split("=");if(X=G[0].trim(),G[1]!==void 0)W=G.slice(1).join("=").trim();if(X==="")return q.problems.push({code:"spec:name:empty-name",message:"empty name",line:q.source[0].number,critical:!0}),q;if(W==="")return q.problems.push({code:"spec:name:empty-default",message:"empty default value",line:q.source[0].number,critical:!0}),q;if(!xW(W)&&/=(?!>)/.test(W))return q.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:q.source[0].number,critical:!0}),q}if(q.optional=V,q.name=X,J.name=K,W!==void 0)q.default=W;return[J.postName,J.description]=l5(Q.slice(J.name.length)),q}}function i0(Z="compact",q=H5){let J=c7(Z);return(Q)=>{return Q.description=J(Q.source,q),Q}}function c7(Z){if(Z==="compact")return kW;if(Z==="preserve")return hW;return Z}function kW(Z,q=H5){return Z.map(({tokens:{description:J}})=>J.trim()).filter((J)=>J!=="").join(" ")}var vW=(Z,{tokens:q},J)=>q.type===""?Z:J,fW=({tokens:Z})=>(Z.delimiter===""?Z.start:Z.postDelimiter.slice(1))+Z.description;function hW(Z,q=H5){if(Z.length===0)return"";if(Z[0].tokens.description===""&&Z[0].tokens.delimiter===q.start)Z=Z.slice(1);let J=Z[Z.length-1];if(J!==void 0&&J.tokens.description===""&&J.tokens.end.endsWith(q.end))Z=Z.slice(0,-1);return Z=Z.slice(Z.reduce(vW,0)),Z.map(fW).join(`
|
|
56
|
-
`)}function p7({startLine:Z=0,fence:q="```",spacing:J="compact",markers:Q=H5,tokenizers:Y=[l0(),c0(J),p0(),i0(J)]}={}){if(Z<0||Z%1>0)throw Error("Invalid startLine");let z=d7({startLine:Z,markers:Q}),X=u7({fence:q}),V=l7({tokenizers:Y}),W=c7(J);return function(K){let G=[];for(let
|
|
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
|
|
58
|
-
`)}return{type:W,params:K,returnType:G,description:
|
|
59
|
-
`).trim():void 0},
|
|
56
|
+
`)}function p7({startLine:Z=0,fence:q="```",spacing:J="compact",markers:Q=H5,tokenizers:Y=[l0(),c0(J),p0(),i0(J)]}={}){if(Z<0||Z%1>0)throw Error("Invalid startLine");let z=d7({startLine:Z,markers:Q}),X=u7({fence:q}),V=l7({tokenizers:Y}),W=c7(J);return function(K){let G=[];for(let F of K3(K)){let M=z(F);if(M===null)continue;let B=X(M),H=B.slice(1).map(V);G.push({description:W(B[0],Q),tags:H,source:M,problems:H.reduce((N,C)=>N.concat(C.problems),[])})}return G}}function gW(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 i7(){return(Z)=>Z.source.map(({tokens:q})=>gW(q)).join(`
|
|
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:G,description:F}}isNumericConstant(Z){if(!Z||typeof Z!=="object"||!("type"in Z))return!1;if(Z.type!=="MemberExpression")return!1;let q=Z,J=q.object&&"name"in q.object?q.object.name:void 0,Q=q.property&&"name"in q.property?q.property.name:void 0;if(!J||!Q)return!1;if(J==="Number")return["POSITIVE_INFINITY","NEGATIVE_INFINITY","MAX_VALUE","MIN_VALUE","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","EPSILON","NaN"].includes(Q);if(J==="Math")return["PI","E","LN2","LN10","LOG2E","LOG10E","SQRT2","SQRT1_2"].includes(Q);return!1}sourceAtPos(Z,q){return this.source?.slice(Z,q)}processInitializer(Z){let q,J,Q=!1;if(!Z||typeof Z!=="object"||!("type"in Z))return{value:q,type:J,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")q=this.sourceAtPos(Y.start,Y.end)?.replace(rW," ");if(J=q,Q=Z.type==="ArrowFunctionExpression",Z.type==="BinaryExpression"){let z=Z;if(z.left&&typeof z.left==="object"&&"type"in z.left&&z.left.type==="Literal"&&"value"in z.left&&typeof z.left.value==="string")J="string"}if(Z.type==="ArrowFunctionExpression")J="(...args: any[]) => any",q=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")q=this.sourceAtPos(Y.start,Y.end);if(Y.argument){if(typeof Y.argument==="object"&&"type"in Y.argument&&Y.argument.type==="UnaryExpression")J=this.processInitializer(Y.argument).type;else if(typeof Y.argument==="object"&&"value"in Y.argument)J=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")q=this.sourceAtPos(Y.start,Y.end);if(Y.callee&&typeof Y.callee==="object"&&"type"in Y.callee&&Y.callee.type==="Identifier"){let z=Y.callee.name;if(z==="Date")J="Date";else if(z==="Map")J="Map<any, any>";else if(z==="Set")J="Set<any>";else if(z==="WeakMap")J="WeakMap<object, any>";else if(z==="WeakSet")J="WeakSet<object>";else if(z==="Array")J="any[]";else if(z==="RegExp"||z==="Regexp")J="RegExp";else if(z==="Error")J="Error";else J=z}}else if(Z.type==="CallExpression"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")q=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")q=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")q=this.sourceAtPos(Y.start,Y.end);if(this.isNumericConstant(Z))J="number"}else if(Z.type==="TemplateLiteral"){let Y=Z;if("start"in Y&&"end"in Y&&typeof Y.start==="number"&&typeof Y.end==="number")q=this.sourceAtPos(Y.start,Y.end);J="string"}else if("raw"in Z&&typeof Z.raw==="string"){if(q=Z.raw,"value"in Z)J=Z.value==null?void 0:typeof Z.value}return{value:q,type:J,isFunction:Q}}collectReactiveVars(){let Z=this.compiled?.vars.filter(({reassigned:q,writable:J})=>q&&J)??[];for(let{name:q}of Z)this.reactive_vars.add(q)}addProp(Z,q){if(I1.assignValue(Z)===void 0)return;if(this.props.has(Z)){let J=this.props.get(Z);this.props.set(Z,{...J,...q})}else this.props.set(Z,q)}addModuleExport(Z,q){if(I1.assignValue(Z)===void 0)return;if(this.moduleExports.has(Z)){let J=this.moduleExports.get(Z);this.moduleExports.set(Z,{...J,...q})}else this.moduleExports.set(Z,q)}aliasType(Z){if(Z==="*")return"any";return Z.trim()}extractPropertyType(Z,q){let J=Z.trim();if(!J.startsWith("{")||!J.endsWith("}"))return;let Q=J.slice(1,-1),Y=[],z=0,X="";for(let V of Q)if(V==="{"||V==="<"||V==="("||V==="[")z++,X+=V;else if(V==="}"||V===">"||V===")"||V==="]")z--,X+=V;else if((V===";"||V===",")&&z===0)Y.push(X.trim()),X="";else X+=V;if(X.trim())Y.push(X.trim());for(let V of Y){if(!V.startsWith(q))continue;let W=V.slice(q.length);if(W.length>0&&pW.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 q=Z;if(q.computed||q.object?.type!=="Identifier"||q.property?.type!=="Identifier")return;let J=q.object.name,Q=q.property.name;if(!J||!Q)return;let Y=this.props.get(J)?.type??this.findVariableTypeAndDescription(J)?.type;if(!Y)return;return this.extractPropertyType(Y,Q)}addSlot({slot_name:Z,slot_props:q,slot_fallback:J,slot_description:Q}){let Y=Z===void 0||Z==="",z=Y?iW:Z??"",X=I1.assignValue(J),V=I1.assignValue(q),W=n0(Q);if(this.slots.has(z)){let K=this.slots.get(z);if(K)this.slots.set(z,{...K,default:K.default??Y,fallback:X,slot_props:K.slot_props===void 0?V:K.slot_props,description:K.description||W})}else this.slots.set(z,{name:z,default:Y,fallback:X,slot_props:q,description:W})}addDispatchedEvent({name:Z,detail:q,has_argument:J,description:Q}){if(Z===void 0)return;let Y=!J&&!q?"null":I1.assignValue(q),z=n0(Q);if(this.events.has(Z)){let X=this.events.get(Z);this.events.set(Z,{...X,detail:X.detail===void 0?Y:X.detail,description:X.description||z})}else this.events.set(Z,{type:"dispatched",name:Z,detail:Y,description:z})}parseCustomTypes(){if(!this.source)return;for(let{tags:Z,description:q,source:J}of y6(this.source,{spacing:"preserve"})){let Q,Y,z,X=[],V,W,K,G=[],F,M,B=[],H,N=!1,C=!0,A=new Map,S=new Set;for(let E of Z)if(E.source&&E.source.length>0)S.add(E.source[0].number);for(let E of J)if(!E.tokens.tag&&E.tokens.description&&E.tokens.description.trim()!=="}")A.set(E.number,E.tokens.description);let T=(E)=>{if(!E||E.length===0)return;let R=E[0].number,P=[],I=!1;for(let j=R-1;j>=1;j--){if(S.has(j))break;let x=A.get(j);if(x)P.unshift(x),I=!0;else if(I){let k=J.find(($)=>$.number===j);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(X.length>0)E=this.buildEventDetailFromProperties(X,Q,!0);else E=Y||"";this.addDispatchedEvent({name:Q,detail:E,has_argument:!1,description:z}),this.eventDescriptions.set(Q,z),X.length=0,Q=void 0,Y=void 0,z=void 0}},f=()=>{if(V!==void 0){let E,R;if(G.length>0)E=this.buildEventDetailFromProperties(G,void 0,!0),R=`type ${V} = ${E}`;else if(W)E=W,R=nW.test(E)?`interface ${V} ${E}`:`type ${V} = ${E}`;else E="{}",R=`type ${V} = ${E}`;this.typedefs.set(V,{type:E,name:V,description:I1.assignValue(K),ts:R}),G.length=0,V=void 0,W=void 0,K=void 0}},u=()=>{if(F!==void 0){let P=`(${B.map(({name:j,type:x,optional:k})=>{return`${j}${k?"?":""}: ${x}`}).join(", ")}) => ${H||"void"}`,I=`type ${F} = ${P}`;this.typedefs.set(F,{type:P,name:F,description:I1.assignValue(M),ts:I}),B.length=0,H=void 0,F=void 0,M=void 0}};for(let{tag:E,type:R,name:P,description:I,optional:j,default:x,source:k}of Z){let y=this.aliasType(R),$=T(k);switch(E){case"extends":case"extendProps":if(this.extends={interface:P,import:y},C)C=!1;break;case"restProps":{let L=P?I?`${P} ${I}`:P:I,v=L8(L)||$;if(!v&&C&&!N&&q)v=q,N=!0;if(this.rest_props={type:"Element",name:y,description:v||void 0},C)C=!1;break}case"slot":{let l=L8(I)||$;if(!l&&C&&!N&&q)l=q,N=!0;if(C)C=!1;this.addSlot({slot_name:P,slot_props:y,slot_description:l||void 0});break}case"event":{if(g(),Q=P,Y=y,z=L8(I)||$,!z&&C&&!N&&q)z=q,N=!0;if(C)C=!1;break}case"type":if(Q!==void 0)Y=y;break;case"param":if(F!==void 0)B.push({name:P,type:y,optional:j||!1});break;case"returns":case"return":if(F!==void 0)H=y;break;case"property":{let L={name:P,type:y,description:L8(I),optional:j||!1,default:x};if(Q!==void 0)X.push(L);else if(V!==void 0)G.push(L);break}case"typedef":{if(f(),V=P,W=y,K=L8(I)||$,!K&&C&&!N&&q)K=q,N=!0;if(C)C=!1;break}case"callback":{if(u(),F=P,M=L8(I)||$,!M&&C&&!N&&q)M=q,N=!0;if(C)C=!1;break}case"generics":if(this.generics=[P,y],C)C=!1;break}}g(),f(),u()}}buildEventDetailFromProperties(Z,q,J=!1){if(Z.length===0)return"null";let Q=Z.map(({name:Y,type:z,description:X,optional:V,default:W})=>{let K=V?"?":"",G=X||"";if(W&&G)G=`${G} @default ${W}`;else if(W)G=`@default ${W}`;if(G){if(J)return`/** ${G} */
|
|
60
60
|
${Y}${K}: ${z};`;return`/** ${G} */ ${Y}${K}: ${z};`}return`${Y}${K}: ${z};`}).join(J?`
|
|
61
61
|
`:" ");return J?`{
|
|
62
62
|
${Q}
|
|
63
63
|
}`:`{ ${Q} }`}generateContextTypeName(Z){return`${Z.split(aW).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 q=0;q<Z.length;q++){let Q=Z[q].trim().match(lW);if(Q){let Y=Q[1];for(let z=q-1;z>=0;z--){let X=Z[z].trim();if(X&&!X.startsWith("*")&&!X.startsWith("/*")&&!X.startsWith("//"))break;if(X.startsWith("/**")){let V=[];for(let
|
|
65
|
-
`),K=y6(W,{spacing:"preserve"}),{type:G,description:
|
|
66
|
-
`);let J=this.sourceLinesCache,[Q,Y,z]=
|
|
67
|
-
`),
|
|
68
|
-
`),this.buildVariableInfoCache(),this.parseCustomTypes(),this.parsed?.module)j3(this.parsed?.module,{enter:(H)=>{if(H.type==="ExportNamedDeclaration"){if(H.declaration==null)return;if(!H.declaration||typeof H.declaration!=="object"||!("type"in H.declaration))return;let F,w,_,P=!1,D,A,h=!1,v,m;if(H.declaration.type==="FunctionDeclaration"){let x=H.declaration;if(!x.id||!x.id.name)return;F=x.id.name,w="function",D=void 0,A="() => any",h=!0,P=!0}else if(H.declaration.type==="VariableDeclaration"){let x=H.declaration,R=x.declarations[0];if(!R||typeof R!=="object"||!("id"in R))return;let{id:S,init:I}=R;if(!S||typeof S!=="object"||!("name"in S))return;F=S.name,w=x.kind==="var"?"let":x.kind,{value:D,type:A,isFunction:h}=I!=null?this.processInitializer(I):{isFunction:!1}}else return;if(H.leadingComments){let x=this.processJSDocComment(H.leadingComments);if(x){if(x.type)A=x.type;if(v=x.params,m=x.returnType,x.description)_=x.description}}if(P&&A==="() => any"&&m)if(v&&v.length>0)A=`(${v.map((S)=>{let I=S.optional?"?":"";return`${S.name}${I}: ${S.type}`}).join(", ")}) => ${m}`;else A=`() => ${m}`;if(!_&&A&&this.typedefs.has(A))_=this.typedefs.get(A)?.description;this.addModuleExport(F,{name:F,kind:w,description:_,type:A,value:D,params:v,returnType:m,isFunction:h,isFunctionDeclaration:P,isRequired:!1,constant:w==="const",reactive:!1})}}});let Y,z=[];if(j3({html:this.parsed.html,instance:this.parsed.instance},{enter:(H,F,w)=>{if(H.type==="CallExpression"){let _=H,P=_.callee&&typeof _.callee==="object"&&"name"in _.callee?_.callee.name:void 0;if(P==="createEventDispatcher"){if(F&&typeof F==="object"&&"id"in F&&F.id&&typeof F.id==="object"&&"name"in F.id)Y=F.id.name}if(P==="setContext")this.parseSetContextCall(H,F??void 0);if(P)z.push({name:P,arguments:_.arguments})}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="Spread"){if(H.expression?.name==="$$restProps"){if(F&&typeof F==="object"&&"type"in F&&(F.type==="InlineComponent"||F.type==="Element")){let P=F.type,D="name"in F&&typeof F.name==="string"?F.name:void 0;if(D){let A=P==="InlineComponent"?{type:"InlineComponent",name:D}:{type:"Element",name:D};if(P==="Element"&&D==="svelte:element"){if("tag"in F&&typeof F.tag==="string")A.thisValue=F.tag}if(this.rest_props===void 0)this.rest_props=A}}}}if(H.type==="VariableDeclaration")this.vars.add(H);if(H.type==="ExportNamedDeclaration"){if(H.declaration==null&&H.specifiers.length===0)return;let _;if(H.declaration==null&&H.specifiers[0]?.type==="ExportSpecifier"){let I=H.specifiers[0],j=I.local&&typeof I.local==="object"&&"name"in I.local?I.local.name:void 0,b=I.exported&&typeof I.exported==="object"&&"name"in I.exported?I.exported.name:void 0;if(!j||!b)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}H.declaration=k,_=b}if(H.declaration==null)return;if(!H.declaration||typeof H.declaration!=="object"||!("type"in H.declaration))return;let P,D,A=!1,h,v,m=!1,x,R,S=!1;if(H.declaration.type==="FunctionDeclaration"){let I=H.declaration;if(!I.id||!I.id.name)return;_??=I.id.name,P="function",h=void 0,v="() => any",m=!0,A=!0,S=!1}else if(H.declaration.type==="VariableDeclaration"){let I=H.declaration,j=I.declarations[0];if(!j||typeof j!=="object"||!("id"in j))return;let{id:b,init:k}=j;if(b&&typeof b==="object"&&"name"in b)_??=b.name;else return;P=I.kind==="var"?"let":I.kind,S=P==="let"&&k==null,{value:h,type:v,isFunction:m}=k!=null?this.processInitializer(k):{isFunction:!1}}else return;if(H.leadingComments){let I=this.processJSDocComment(H.leadingComments);if(I){if(I.type)v=I.type;if(x=I.params,R=I.returnType,I.description)D=I.description}}if(A&&v==="() => any"&&R)if(x&&x.length>0)v=`(${x.map((b)=>{let k=b.optional?"?":"";return`${b.name}${k}: ${b.type}`}).join(", ")}) => ${R}`;else v=`() => ${R}`;if(!D&&v&&this.typedefs.has(v))D=this.typedefs.get(v)?.description;this.addProp(_,{name:_,kind:P,description:D,type:v,value:h,params:x,returnType:R,isFunction:m,isFunctionDeclaration:A,isRequired:S,constant:P==="const",reactive:this.reactive_vars.has(_)})}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="Comment"){let P=H?.data?.trim()??"";if(B3.test(P))this.componentComment=P.replace(B3,"").replace(sW,"")}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="Slot"){let _=H,P=_.attributes?.find((h)=>h.name==="name")?.value?.[0]?.data,D=(_.attributes||[]).filter((h)=>h.name!=="name").reduce((h,v)=>{let m={value:void 0,replace:!1},x=v.value;if(x===void 0)return h;if(x[0]){let R=x[0],{type:S,expression:I,raw:j,start:b,end:k}=R;if(S==="Text"&&j!==void 0)m.value=j;else if(S==="AttributeShorthand"&&I&&typeof I==="object"&&"name"in I)m.value=I.name,m.replace=!0;if(I&&typeof I==="object"&&"type"in I){if(I.type==="Literal"&&"value"in I)m.value=String(I.value);else if(I.type==="MemberExpression")m.value=this.resolveMemberExpressionType(I);else if(I.type!=="Identifier"){if(b!==void 0&&k!==void 0){if(I.type==="ObjectExpression"||I.type==="TemplateLiteral")m.value=this.sourceAtPos(b+1,k-1)}}}}if(v.name)h[v.name]=m;return h},{}),A=_.children?.map(({start:h,end:v})=>this.sourceAtPos(h,v)).join("").trim();this.addSlot({slot_name:P,slot_props:JSON.stringify(D,null,2),slot_fallback:A})}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="EventHandler"){let _=H;if(_.expression==null&&_.name){if(F!=null&&typeof F==="object"&&"name"in F){let P=typeof F.name==="string"?F.name:void 0,D="type"in F?String(F.type):void 0;if(P&&D){let A=D==="InlineComponent"?{type:"InlineComponent",name:P}:{type:"Element",name:P};this.forwardedEvents.set(_.name,A);let h=this.events.get(_.name),v=this.eventDescriptions.get(_.name),m=n0(v);if(!h)this.events.set(_.name,{type:"forwarded",name:_.name,element:A,description:m});else if(h.type==="forwarded"&&m&&!h.description)this.events.set(_.name,{...h,description:m})}}}}if(F&&typeof F==="object"&&"type"in F&&String(F.type)==="Element"&&H&&typeof H==="object"&&"type"in H&&String(H.type)==="Binding"){let _=H,P=F;if(_.name==="this"&&_.expression?.name&&P.name){let D=_.expression.name,A=P.name;if(this.bindings.has(D)){let h=this.bindings.get(D);if(h&&!h.elements.includes(A))this.bindings.set(D,{...h,elements:[...h.elements,A]})}else this.bindings.set(D,{elements:[A]})}}}}),Y!==void 0){for(let H of z)if(H.name===Y){let F=H.arguments[0],w=F&&typeof F==="object"&&"value"in F?F.value:void 0,_=H.arguments[1],P=_&&typeof _==="object"&&"value"in _?_.value:void 0;if(w!=null)this.addDispatchedEvent({name:String(w),detail:P!=null?String(P):"",has_argument:Boolean(_)})}}let X=new Set;if(Y!==void 0){for(let H of z)if(H.name===Y){let F=H.arguments[0],w=F&&typeof F==="object"&&"value"in F?F.value:void 0;if(w!=null)X.add(String(w))}}this.forwardedEvents.forEach((H,F)=>{let w=this.events.get(F);if(w&&w.type==="dispatched"&&!X.has(F)){let _=this.eventDescriptions.get(F),P=n0(_),D={type:"forwarded",name:F,element:H,description:P};if(w.detail!==void 0&&w.detail!=="undefined")D.detail=w.detail;this.events.set(F,D)}});let V=T1.mapToArray(this.props).map((H)=>{if(this.bindings.has(H.name)){let F=this.bindings.get(H.name)?.elements.sort().map((w)=>U3(w)).join(" | ");return{...H,type:`null | ${F}`}}return H}),W=T1.mapToArray(this.slots).map((H)=>{try{if(!H.slot_props)return H;let F=JSON.parse(H.slot_props),w=[];for(let P of Object.keys(F)){if(F[P].replace&&F[P].value!==void 0)F[P].value=this.props.get(F[P].value)?.type;if(F[P].value===void 0)F[P].value="any";w.push(`${P}: ${F[P].value}`)}let _=w.length===0?"Record<string, never>":`{ ${w.join(", ")} }`;return{...H,slot_props:_}}catch(F){return H}}).sort((H,F)=>{let w=H.name??"",_=F.name??"";if(w<_)return-1;if(w>_)return 1;return 0}),K=T1.mapToArray(this.moduleExports),G=T1.mapToArray(this.events).map((H)=>{if(H.type==="forwarded")return{...H,element:H.element.name};return H}),M=T1.mapToArray(this.typedefs),B=T1.mapToArray(this.contexts);return{props:V,moduleExports:K,slots:W,events:G,typedefs:M,generics:this.generics,rest_props:this.rest_props,extends:this.extends,componentComment:this.componentComment,contexts:B}}}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 M=0;M<V.length;++M)if(V[M].test(G))return!1;for(let M=0;M<X.length;++M)if(X[M].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),M={packageJson:{...Q},packageJsonPath:K,root:G,resolvedMainField:"main",browserMappedMain:!1,resolvedEntryPoint:""},B=!1;for(let w=0;w<Y.length;w++){let _=Y[w];if(typeof Q[_]==="string"){Q.main=Q[_],M.resolvedMainField=_,B=!0;break}}let H={cachedPkg:Q,hasModuleSideEffects:()=>null,hasPackageEntry:B!==!1||Y.indexOf("main")!==-1,packageBrowserField:X&&typeof Q.browser==="object"&&Object.keys(Q.browser).reduce((w,_)=>{let P=Q.browser[_];if(P&&P[0]===".")P=u8(G,P);if(w[_]=P,_[0]==="."){let D=u8(G,_);if(w[D]=P,!rG(_))J.reduce((A,h)=>{return A[D+h]=A[_],A},w)}return w},{}),packageInfo:M},F=H.packageBrowserField;if(X&&typeof Q.browser==="object"&&F.hasOwnProperty(Q.main))M.resolvedEntryPoint=F[Q.main],M.browserMappedMain=!0;else M.resolvedEntryPoint=u8(G,Q.main||"index.js"),M.browserMappedMain=!1;if(!W||V!==G){let w=Q.sideEffects;if(typeof w==="boolean")H.hasModuleSideEffects=()=>w;else if(Array.isArray(w)){let _=w.map((P)=>{if(P.includes("/"))return P;return`**/${P}`});H.hasModuleSideEffects=IJ(_,null,{resolve:G})}}return q.set(K,H),H}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 w8 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 w8(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 w8(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 w8(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 w8(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:M}=W;if(!M)throw new w8(G,!0);if(Z==="#"||Z.startsWith("#/"))throw new w8(G,!0,"Invalid import specifier.");return dJ(G,{matchKey:Z,matchObj:M,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,M=!0,B=!1,H,w={basedir:X,readFile:H9,isFile:B9,isDirectory:j9,extensions:J,includeCoreModules:!1,moduleDirectory:V,preserveSymlinks:Y,packageFilter:(P,D)=>{let A=fJ({cache:q,extensions:J,pkg:P,pkgPath:D,mainFields:Q,preserveSymlinks:Y,useBrowserOverrides:z,rootDir:W,ignoreSideEffectsForRoot:K});return{packageInfo:H,hasModuleSideEffects:G,hasPackageEntry:M,packageBrowserField:B}=A,A.cachedPkg}},_;try{_=await lJ(Z,w)}catch(P){if(P.code!=="MODULE_NOT_FOUND")throw P;return null}return{location:Y?_:await K9(_),hasModuleSideEffects:G,hasPackageEntry:M,packageBrowserField:B,packageInfo:H}}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:M}){if(q.startsWith("#")){let H=await W$({importSpecifier:q,importer:Z,moduleDirs:K,conditions:J,resolveId(w){return cJ({importSpecifier:w,packageInfoCache:Q,extensions:Y,mainFields:z,preserveSymlinks:X,useBrowserOverrides:V,baseDir:W,moduleDirectories:K})}}),F=DJ(H);return{location:X?F:await K9(F),hasModuleSideEffects:()=>null,hasPackageEntry:!0,packageBrowserField:!1,packageInfo:void 0}}let B=vJ(q);if(B){let H=()=>null,F=!0,w=!1,_,A=await G$(Z,B,{basedir:W,readFile:H9,isFile:B9,isDirectory:j9,extensions:Y,includeCoreModules:!1,moduleDirectory:K,preserveSymlinks:X,packageFilter:(h,v)=>{let m=fJ({cache:Q,extensions:Y,pkg:h,pkgPath:v,mainFields:z,preserveSymlinks:X,useBrowserOverrides:V,rootDir:G,ignoreSideEffectsForRoot:M});return{packageInfo:_,hasModuleSideEffects:H,hasPackageEntry:F,packageBrowserField:w}=m,m.cachedPkg}},K);if(A&&A.pkgJson.exports){let{pkgJson:h,pkgJsonPath:v}=A,m=B===q?".":`.${q.substring(B.length)}`,x=v.replace("package.json",""),R=e0(x),I=await V$({importer:Z,importSpecifier:q,moduleDirs:K,pkgURL:R,pkgJsonPath:v,conditions:J},m,h.exports),j=DJ(I);if(j)return{location:X?j:await K9(j),hasModuleSideEffects:H,hasPackageEntry:F,packageBrowserField:w,packageInfo:_}}}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:M,ignoreSideEffectsForRoot:B}){for(let H=0;H<q.length;H++){let F=await cJ({importer:Z,importSpecifier:q[H],exportConditions:J,warn:Q,packageInfoCache:Y,extensions:z,mainFields:X,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:G,rootDir:M,ignoreSideEffectsForRoot:B});if(F)return F}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:M,ignoreSideEffectsForRoot:B}){try{let H=await $$({importer:Z,importSpecifier:q[0],exportConditions:J,packageInfoCache:Y,extensions:z,mainFields:X,preserveSymlinks:V,useBrowserOverrides:W,baseDir:K,moduleDirectories:G,rootDir:M,ignoreSideEffectsForRoot:B});if(H)return H}catch(H){if(H instanceof m6)return Q(H),null;throw H}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:M,ignoreSideEffectsForRoot:B})}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,M=J$(J),B=M.indexOf("browser")!==-1,H=J.preferBuiltins===!0||J.preferBuiltins===!1,F=H?J.preferBuiltins:!0,w=u8(J.rootDir||process.cwd()),{dedupe:_}=J,P;if(typeof _!=="function")_=(x)=>J.dedupe.includes(x)||J.dedupe.includes(vJ(x));let D=(x)=>{let R=x.map((S)=>{if(S instanceof RegExp)return S;let I=S.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(`^${I}$`)});return(S)=>!R.length||R.some((I)=>I.test(S))},A=typeof J.resolveOnly==="function"?J.resolveOnly:D(J.resolveOnly),h=new Map,v,m=async(x,R,S,I)=>{let[j,b]=R.split("?"),k=`${b?`?${b}`:""}`;R=j;let y=!S||_(R)?w:G9(S),$=h.get(S);if(B&&$){let C=u8(y,R);if($[R]===!1||$[C]===!1)return{id:t0};let g=R[0]!=="."&&$[R]||$[C]||$[`${C}.js`]||$[`${C}.json`];if(g)R=g}let L=R.split(/[/\\]/),l=L.shift(),f=!1;if(l[0]==="@"&&L.length>0)l+=`/${L.shift()}`;else if(l[0]===".")l=u8(y,R),f=!0;if(!f&&!A(l)){if(Q$(P.input).includes(R))return null;return!1}let s=[R];if(S===void 0&&!R[0].match(/^\.?\.?\//))s.push(`./${R}`);if(S&&R.endsWith(".js")){for(let C of[".ts",".tsx"])if(S.endsWith(C)&&Q.includes(C))s.push(R.replace(/.js$/,C))}let o=(...C)=>x.warn(...C),N1=I&&I["node-resolve"]&&I["node-resolve"].isRequire?W:V;if(B&&!N1.includes("browser"))N1.push("browser");let O1=await j$({importer:S,importSpecifierList:s,exportConditions:N1,warn:o,packageInfoCache:K,extensions:Q,mainFields:M,preserveSymlinks:v,useBrowserOverrides:B,baseDir:y,moduleDirectories:z,rootDir:w,ignoreSideEffectsForRoot:X}),w1=PJ.default(R),a=w1&&F?{packageInfo:void 0,hasModuleSideEffects:()=>null,hasPackageEntry:!0,packageBrowserField:!1}:O1;if(!a)return null;let{packageInfo:u,hasModuleSideEffects:M1,hasPackageEntry:p,packageBrowserField:T}=a,{location:E}=a;if(T){if(Object.prototype.hasOwnProperty.call(T,E)){if(!T[E])return h.set(E,T),{id:t0};E=T[E]}h.set(E,T)}if(p&&!v){if(await Z4(E))E=await xJ(E)}if(G.set(E,u),p){if(w1&&F){if(!H&&O1&&a!==R)x.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&&E.indexOf(oG(Y.trim(tG)))!==0)return null}if(J.modulesOnly&&await Z4(E)){let C=await bJ(E,"utf-8");if(yJ.default(C))return{id:`${E}${k}`,moduleSideEffects:M1(E)};return null}return{id:`${E}${k}`,moduleSideEffects:M1(E)}};return{name:"node-resolve",version:Z$,buildStart(x){P=x;for(let R of q)this.warn(R);({preserveSymlinks:v}=x)},generateBundle(){H9.clear(),B9.clear(),j9.clear()},async resolveId(x,R,S){if(x===t0)return x;if(/\0/.test(x))return null;if(/\0/.test(R))R=void 0;let I=await m(this,x,R,S.custom);if(I){let j=await this.resolve(I.id,R,Object.assign({skipSelf:!0},S));if(j){if(j.external)return!1;if(j.id!==I.id)return j;return{...I,meta:j.meta}}}return I},load(x){if(x===t0)return"export default {};";return null},getPackageInfoForId(x){return G.get(x)}}}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.
|
|
64
|
+
`);let Z=this.sourceLinesCache;for(let q=0;q<Z.length;q++){let Q=Z[q].trim().match(lW);if(Q){let Y=Q[1];for(let z=q-1;z>=0;z--){let X=Z[z].trim();if(X&&!X.startsWith("*")&&!X.startsWith("/*")&&!X.startsWith("//"))break;if(X.startsWith("/**")){let V=[];for(let M=z;M<q;M++)V.push(Z[M]);let W=V.join(`
|
|
65
|
+
`),K=y6(W,{spacing:"preserve"}),{type:G,description:F}=this.getCommentTags(K);if(G)this.variableInfoCache.set(Y,{type:this.aliasType(G.type),description:F||G.description});break}}}}}static VAR_NAME_REGEX_CACHE=new Map;static getVarNameRegexes(Z){let q=I1.VAR_NAME_REGEX_CACHE.get(Z);if(!q){let J=Z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");q=[new RegExp(`const\\s+${J}\\s*=`),new RegExp(`let\\s+${J}\\s*=`),new RegExp(`function\\s+${J}\\s*\\(`)],I1.VAR_NAME_REGEX_CACHE.set(Z,q)}return q}findVariableTypeAndDescription(Z){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 J=this.sourceLinesCache,[Q,Y,z]=I1.getVarNameRegexes(Z);for(let X=0;X<J.length;X++){let V=J[X].trim(),W=V.match(Q),K=V.match(Y),G=V.match(z);if(W||K||G)for(let F=X-1;F>=0;F--){let M=J[F].trim();if(M&&!M.startsWith("*")&&!M.startsWith("/*")&&!M.startsWith("//"))break;if(M.startsWith("/**")){let B=[];for(let S=F;S<X;S++)B.push(J[S]);let H=B.join(`
|
|
67
|
+
`),N=y6(H,{spacing:"preserve"}),{type:C,description:A}=this.getCommentTags(N);if(C)return{type:this.aliasType(C.type),description:A||C.description};break}}}return null}parseContextValue(Z,q){if(!Z||typeof Z!=="object"||!("type"in Z))return null;if(Z.type==="ObjectExpression"){let J=[],Q=Z;for(let Y of Q.properties)if(Y.type==="Property"){let z=Y,X=z.key&&"name"in z.key?z.key.name:z.key&&("value"in z.key)?String(z.key.value):void 0;if(!X)continue;let V="any",W;if(z.value&&typeof z.value==="object"&&"type"in z.value){if(z.value.type==="Identifier"){let K=z.value.name,G=this.findVariableTypeAndDescription(K);if(G)V=G.type,W=G.description;else if(this.options?.verbose)console.warn(`Warning: Context "${q}" property "${X}" has no type annotation. Using "any".`)}else if(z.value.type==="ArrowFunctionExpression"||z.value.type==="FunctionExpression")V=`(${z.value.params?.map((F)=>{if(F&&typeof F==="object"&&"name"in F)return`${F.name||"arg"}: any`;return"arg: any"}).join(", ")||""}) => any`;else if(z.value.type==="Literal"){let K=z.value;V=K.value==null?"null":typeof K.value}}J.push({name:X,type:V,description:W,optional:!1})}return{key:q,typeName:this.generateContextTypeName(q),properties:J,description:void 0}}else if(Z.type==="Identifier"){let Q=Z.name,Y=this.findVariableTypeAndDescription(Q);if(Y)return{key:q,typeName:this.generateContextTypeName(q),properties:[{name:Q,type:Y.type,description:Y.description,optional:!1}]};else if(this.options?.verbose)console.warn(`Warning: Context "${q}" variable "${Q}" has no type annotation. Using "any".`);return{key:q,typeName:this.generateContextTypeName(q),properties:[{name:Q,type:"any",description:void 0,optional:!1}]}}return null}parseSetContextCall(Z,q){if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return;let J=Z,Q=J.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 z=J.arguments[1];if(!z)return;let X=this.parseContextValue(z,Y);if(X)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,X)}cleanup(){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.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 I1.SCRIPT_BLOCK_REGEX.lastIndex=0,Z.replace(I1.SCRIPT_BLOCK_REGEX,(q,J,Q,Y)=>{I1.TS_DIRECTIVE_REGEX.lastIndex=0;let z=Q.replace(I1.TS_DIRECTIVE_REGEX,"");return J+z+Y})}parseSvelteComponent(Z,q){if(this.options?.verbose)console.log(`[parsing] "${q.moduleName}" ${q.filePath}`);this.cleanup();let J=I1.stripTypeScriptDirectivesFromScripts(Z);this.source=J;let Q=uW(J);if(this.compiled=Q,this.parsed=Q.ast||dW(J),this.collectReactiveVars(),this.sourceLinesCache=this.source.split(`
|
|
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
69
|
`),null;try{let J=JSON.parse(ZL(q,"utf-8"));if(typeof J.svelte==="string"&&J.svelte.trim())return J.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 x8}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:M},controller:B}=this.state;if(B.aborted||K&&K.aborted||W&&Q.length>W)return;let H=this.getArray(this.state.paths);for(let F=0;F<Z.length;++F){let w=Z[F];if(w.isFile()||w.isSymbolicLink()&&!z&&!X){let _=this.joinPath(w.name,q);this.pushFile(_,H,this.state.counts,Y)}else if(w.isDirectory()){let _=jL(w.name,q,this.state.options.pathSeparator);if(V&&V(w.name,_))continue;this.pushDirectory(_,Q,Y),this.walkDirectory(this.state,_,_,J-1,this.walk)}else if(this.resolveSymlink&&w.isSymbolicLink()){let _=CX(w.name,q);this.resolveSymlink(_,this.state,(P,D)=>{if(P.isDirectory()){if(D=Oq(D,this.state.options),V&&V(w.name,G?D:_+M))return;this.walkDirectory(this.state,D,G?D:_+M,J-1,this.walk)}else{D=G?D:_;let A=JL(D),h=Oq(Rq(D),this.state.options);D=this.joinPath(A,h),this.pushFile(D,H,this.state.counts,Y)}})}}this.groupFiles(this.state.groups,q,H)}};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],M=V.length,B=Math.min(M,K.length),H=0;while(H<B){let F=K[H];if(F.includes("/"))return!0;if(!G[H](V[H]))break;if(z&&F==="**")return!0;H++}if(H===M)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)=>x8.relative(Z,Q)||".";return(Q)=>x8.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=x8.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=x8.relative(X,z);else z=x8.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,M=0,B=X.split("/");while(M<G&&W[M+G]===B[B.length+M-G])z=z.slice(0,(G-M-1)*3)+z.slice((G-M)*3+W[M+G].length+1)||".",M++;let H=x8.join(J,V[0].slice(M*3));if(!H.startsWith(".")&&Q.root.length>H.length)Q.root=H,Q.depthOffset=-G+M}if(!Y&&Q.depthOffset>=0){var K;(K=Q.commonPath)!==null&&K!==void 0||(Q.commonPath=W);let G=[],M=Math.min(Q.commonPath.length,W.length);for(let B=0;B<M;B++){let H=W[B];if(H==="**"&&!W[B+1]){G.pop();break}if(H!==Q.commonPath[B]||cN(H)||B===W.length-1)break;G.push(H)}Q.depthOffset=G.length,Q.commonPath=G,Q.root=G.length>0?x8.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),M=J.absolute?G:tX(Q,Y.root,!0),B={filters:[J.debug?(w,_)=>{let P=G(w,_),D=V(P);if(D)_6(`matched ${P}`);return D}:(w,_)=>V(G(w,_))],exclude:J.debug?(w,_)=>{let P=M(_,!0),D=P!=="."&&!K(P)||W(P);if(D)_6(`skipped ${_}`);else _6(`crawling ${_}`);return D}:(w,_)=>{let P=M(_,!0);return P!=="."&&!K(P)||W(P)},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)B.maxDepth=Math.round(J.deep-Y.depthOffset);if(J.absolute)B.relativePaths=!1,B.resolvePaths=!0,B.includeBasePath=!0;if(J.followSymbolicLinks===!1)B.resolveSymlinks=!1,B.excludeSymlinks=!0;if(J.onlyDirectories)B.excludeFiles=!0,B.includeDirs=!0;else if(J.onlyFiles===!1)B.includeDirs=!0;Y.root=Y.root.replace(L7,"");let H=Y.root;if(J.debug)_6("internal properties:",Y);let F=Q!==H&&!J.absolute&&fN(Q,Y.root);return[new PX(B).crawl(H),F]}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 N={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.`);q.ecmaVersion=11}else if(q.ecmaVersion>=2015)q.ecmaVersion-=2009;if(q.allowReserved==null)q.allowReserved=q.ecmaVersion<5;if(!Z||Z.allowHashBang==null)q.allowHashBang=q.ecmaVersion>=14;if(QV(q.onToken)){var Q=q.onToken;q.onToken=function(Y){return Q.push(Y)}}if(QV(q.onComment))q.onComment=Ww(q,q.onComment);return q}function Ww(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 _7(this,X,V);if(Z.ranges)W.range=[Y,z];q.push(W)}}var k0=1,A6=2,gq=4,jV=8,mq=16,BV=32,I7=64,HV=128,
|
|
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=N.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&(k8|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&(k8|v0)||J&A6&&!(J&mq))return!0}return!1};u5.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&k8)>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===N.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===N.eof||this.type===N.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(N.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!==N.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=N._var,z="let";switch(Q){case N._break:case N._continue:return this.parseBreakContinueStatement(Y,Q.keyword);case N._debugger:return this.parseDebuggerStatement(Y);case N._do:return this.parseDoStatement(Y);case N._for:return this.parseForStatement(Y);case N._function:if(Z&&(this.strict||Z!=="if"&&Z!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(Y,!1,!Z);case N._class:if(Z)this.unexpected();return this.parseClass(Y,!0);case N._if:return this.parseIfStatement(Y);case N._return:return this.parseReturnStatement(Y);case N._switch:return this.parseSwitchStatement(Y);case N._throw:return this.parseThrowStatement(Y);case N._try:return this.parseTryStatement(Y);case N._const:case N._var:if(z=z||this.value,Z&&z!=="var")this.unexpected();return this.parseVarStatement(Y,z);case N._while:return this.parseWhileStatement(Y);case N._with:return this.parseWithStatement(Y);case N.braceL:return this.parseBlock(!0,Y);case N.semi:return this.parseEmptyStatement(Y);case N._export:case N._import:if(this.options.ecmaVersion>10&&Q===N._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===N._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,M=this.parseExpression();if(Q===N.name&&M.type==="Identifier"&&this.eat(N.colon))return this.parseLabeledStatement(Y,G,M,Z);else return this.parseExpressionStatement(Y,M)}};J1.parseBreakContinueStatement=function(Z,q){var J=q==="break";if(this.next(),this.eat(N.semi)||this.insertSemicolon())Z.label=null;else if(this.type!==N.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(N._while),Z.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(N.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(N.parenL),this.type===N.semi){if(q>-1)this.unexpected(q);return this.parseFor(Z,null)}var J=this.isLet();if(this.type===N._var||this.type===N._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,M=this.start,B=q>-1?this.parseExprSubscripts(G,"await"):this.parseExpression(!0,G);if(this.type===N._in||(X=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(q>-1){if(this.type===N._in)this.unexpected(q);Z.await=!0}else if(X&&this.options.ecmaVersion>=8){if(B.start===M&&!K&&B.type==="Identifier"&&B.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)Z.await=!1}if(z&&X)this.raise(B.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(B,!1,G),this.checkLValPattern(B),this.parseForIn(Z,B)}else this.checkExpressionErrors(G,!0);if(q>-1)this.unexpected(q);return this.parseFor(Z,B)};J1.parseForAfterInit=function(Z,q,J){if((this.type===N._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&q.declarations.length===1){if(this.options.ecmaVersion>=9)if(this.type===N._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(N._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(N.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(N.braceL),this.labels.push(Gw),this.enterScope(0);var q;for(var J=!1;this.type!==N.braceR;)if(this.type===N._case||this.type===N._default){var Q=this.type===N._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(N.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(N.parenR),Z};J1.parseTryStatement=function(Z){if(this.next(),Z.block=this.parseBlock(),Z.handler=null,this.type===N._catch){var q=this.startNode();if(this.next(),this.eat(N.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(N._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===N._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(N.braceL),Z)this.enterScope(0);while(this.type!==N.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(N.semi),Z.test=this.type===N.semi?null:this.parseExpression(),this.expect(N.semi),Z.update=this.type===N.parenR?null:this.parseExpression(),this.expect(N.parenR),Z.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(Z,"ForStatement")};J1.parseForIn=function(Z,q){var J=this.type===N._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(N.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(N.eq))Y.init=this.parseMaybeAssign(q);else if(!Q&&J==="const"&&!(this.type===N._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!Q&&(J==="using"||J==="await using")&&this.options.ecmaVersion>=17&&this.type!==N._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+J+" declaration");else if(!Q&&Y.id.type!=="Identifier"&&!(q&&(this.type===N._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(N.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===N.star&&q&kq)this.unexpected();Z.generator=this.eat(N.star)}if(this.options.ecmaVersion>=8)Z.async=!!Q;if(q&b0){if(Z.id=q&NV&&this.type!==N.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===N.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(N.parenL),Z.params=this.parseBindingList(N.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(N.braceL);while(this.type!==N.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(N.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(N.braceL))return this.parseClassStaticBlock(J),J;if(this.isClassElementNameStart()||this.type===N.star)V=!0;else Q="static"}if(J.static=V,!Q&&q>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===N.star)&&!this.canInsertSemicolon())z=!0;else Q="async";if(!Q&&(q>=9||!z)&&this.eat(N.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===N.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===N.name||this.type===N.privateId||this.type===N.num||this.type===N.string||this.type===N.bracketL||this.type.keyword};J1.parseClassElementName=function(Z){if(this.type===N.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(N.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(k8|I7);while(this.type!==N.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===N.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(N._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!==N.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(N.star))return this.parseExportAllDeclaration(Z,q);if(this.eat(N._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!==N.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===N._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===N._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(N.braceL);while(!this.eat(N.braceR)){if(!J){if(this.expect(N.comma),this.afterTrailingComma(N.braceR))break}else J=!1;q.push(this.parseExportSpecifier(Z))}return q};J1.parseImport=function(Z){if(this.next(),this.type===N.string)Z.specifiers=$w,Z.source=this.parseExprAtom();else Z.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),Z.source=this.type===N.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===N.name){if(Z.push(this.parseImportDefaultSpecifier()),!this.eat(N.comma))return Z}if(this.type===N.star)return Z.push(this.parseImportNamespaceSpecifier()),Z;this.expect(N.braceL);while(!this.eat(N.braceR)){if(!q){if(this.expect(N.comma),this.afterTrailingComma(N.braceR))break}else q=!1;Z.push(this.parseImportSpecifier())}return Z};J1.parseWithClause=function(){var Z=[];if(!this.eat(N._with))return Z;this.expect(N.braceL);var q={},J=!0;while(!this.eat(N.braceR)){if(!J){if(this.expect(N.comma),this.afterTrailingComma(N.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===N.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(N.colon),this.type!==N.string)this.unexpected();return Z.value=this.parseExprAtom(),this.finishNode(Z,"ImportAttribute")};J1.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===N.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!==N.name)this.unexpected();return Z.argument=this.parseBindingAtom(),this.finishNode(Z,"RestElement")};I5.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case N.bracketL:var Z=this.startNode();return this.next(),Z.elements=this.parseBindingList(N.bracketR,!0,!0),this.finishNode(Z,"ArrayPattern");case N.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(N.comma);if(q&&this.type===N.comma)Y.push(null);else if(J&&this.afterTrailingComma(Z))break;else if(this.type===N.ellipsis){var X=this.parseRestBinding();if(this.parseBindingListItem(X),Y.push(X),this.type===N.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(N.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===N.colon&&(q===y1.b_stat||q===y1.b_expr))return!q.isExpr;if(Z===N._return||Z===N.name&&this.exprAllowed)return V5.test(this.input.slice(this.lastTokEnd,this.start));if(Z===N._else||Z===N.semi||Z===N.eof||Z===N.parenR||Z===N.arrow)return!0;if(Z===N.braceL)return q===y1.b_stat;if(Z===N._var||Z===N._const||Z===N.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===N.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};N.parenR.updateContext=N.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};N.braceL.updateContext=function(Z){this.context.push(this.braceIsBlock(Z)?y1.b_stat:y1.b_expr),this.exprAllowed=!0};N.dollarBraceL.updateContext=function(){this.context.push(y1.b_tmpl),this.exprAllowed=!0};N.parenL.updateContext=function(Z){var q=Z===N._if||Z===N._for||Z===N._with||Z===N._while;this.context.push(q?y1.p_stat:y1.p_expr),this.exprAllowed=!0};N.incDec.updateContext=function(){};N._function.updateContext=N._class.updateContext=function(Z){if(Z.beforeExpr&&Z!==N._else&&!(Z===N.semi&&this.curContext()!==y1.p_stat)&&!(Z===N._return&&V5.test(this.input.slice(this.lastTokEnd,this.start)))&&!((Z===N.colon||Z===N.braceL)&&this.curContext()===y1.b_stat))this.context.push(y1.f_expr);else this.context.push(y1.f_stat);this.exprAllowed=!1};N.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};N.backQuote.updateContext=function(){if(this.curContext()===y1.q_tmpl)this.context.pop();else this.context.push(y1.q_tmpl);this.exprAllowed=!1};N.star.updateContext=function(Z){if(Z===N._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};N.name.updateContext=function(Z){var q=!1;if(this.options.ecmaVersion>=6&&Z!==N.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===N.comma){var z=this.startNodeAt(J,Q);z.expressions=[Y];while(this.eat(N.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===N.parenL||this.type===N.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===N.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===N.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(N.question)){var z=this.startNodeAt(J,Q);return z.test=Y,z.consequent=this.parseMaybeAssign(),this.expect(N.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!==N._in)){if(z>Q){var X=this.type===N.logicalOR||this.type===N.logicalAND,V=this.type===N.coalesce;if(V)z=N.logicalAND.binop;var W=this.value;this.next();var K=this.start,G=this.startLoc,M=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,Y),K,G,z,Y),B=this.buildBinary(q,J,Z,M,W,X||V);if(X&&this.type===N.coalesce||V&&(this.type===N.logicalOR||this.type===N.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(B,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===N.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===N.privateId){if((Q||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(X=this.parsePrivateIdent(),this.type!==N._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(N.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(N.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(N.questionDot);if(Q&&W)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var K=this.eat(N.bracketL);if(K||W&&this.type!==N.parenL&&this.type!==N.backQuote||this.eat(N.dot)){var G=this.startNodeAt(q,J);if(G.object=Z,K)G.property=this.parseExpression(),this.expect(N.bracketR);else if(this.type===N.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(N.parenL)){var M=new T7,B=this.yieldPos,H=this.awaitPos,F=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var w=this.parseExprList(N.parenR,this.options.ecmaVersion>=8,!1,M);if(Y&&!W&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(M,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=B,this.awaitPos=H,this.awaitIdentPos=F,this.parseSubscriptAsyncArrow(q,J,w,X)}this.checkExpressionErrors(M,!0),this.yieldPos=B||this.yieldPos,this.awaitPos=H||this.awaitPos,this.awaitIdentPos=F||this.awaitIdentPos;var _=this.startNodeAt(q,J);if(_.callee=Z,_.arguments=w,V)_.optional=W;Z=this.finishNode(_,"CallExpression")}else if(this.type===N.backQuote){if(W||z)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var P=this.startNodeAt(q,J);P.tag=Z,P.quasi=this.parseTemplate({isTagged:!0}),Z=this.finishNode(P,"TaggedTemplateExpression")}return Z};W1.parseExprAtom=function(Z,q,J){if(this.type===N.slash)this.readRegexp();var Q,Y=this.potentialArrowAt===this.start;switch(this.type){case N._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(Q=this.startNode(),this.next(),this.type===N.parenL&&!this.allowDirectSuper)this.raise(Q.start,"super() call outside constructor of a subclass");if(this.type!==N.dot&&this.type!==N.bracketL&&this.type!==N.parenL)this.unexpected();return this.finishNode(Q,"Super");case N._this:return Q=this.startNode(),this.next(),this.finishNode(Q,"ThisExpression");case N.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(N._function))return this.overrideContext(y1.f_expr),this.parseFunction(this.startNodeAt(z,X),0,!1,!0,q);if(Y&&!this.canInsertSemicolon()){if(this.eat(N.arrow))return this.parseArrowExpression(this.startNodeAt(z,X),[W],!1,q);if(this.options.ecmaVersion>=8&&W.name==="async"&&this.type===N.name&&!V&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(W=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(N.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(z,X),[W],!0,q)}}return W;case N.regexp:var K=this.value;return Q=this.parseLiteral(K.value),Q.regex={pattern:K.pattern,flags:K.flags},Q;case N.num:case N.string:return this.parseLiteral(this.value);case N._null:case N._true:case N._false:return Q=this.startNode(),Q.value=this.type===N._null?null:this.type===N._true,Q.raw=this.type.keyword,this.next(),this.finishNode(Q,"Literal");case N.parenL:var G=this.start,M=this.parseParenAndDistinguishExpression(Y,q);if(Z){if(Z.parenthesizedAssign<0&&!this.isSimpleAssignTarget(M))Z.parenthesizedAssign=G;if(Z.parenthesizedBind<0)Z.parenthesizedBind=G}return M;case N.bracketL:return Q=this.startNode(),this.next(),Q.elements=this.parseExprList(N.bracketR,!0,!0,Z),this.finishNode(Q,"ArrayExpression");case N.braceL:return this.overrideContext(y1.b_expr),this.parseObj(!1,Z);case N._function:return Q=this.startNode(),this.next(),this.parseFunction(Q,0);case N._class:return this.parseClass(this.startNode(),!1);case N._new:return this.parseNew();case N.backQuote:return this.parseTemplate();case N._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===N.parenL&&!Z)return this.parseDynamicImport(q);else if(this.type===N.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(N.parenR))if(this.expect(N.comma),!this.afterTrailingComma(N.parenR)){if(Z.options=this.parseMaybeAssign(),!this.eat(N.parenR)){if(this.expect(N.comma),!this.afterTrailingComma(N.parenR))this.unexpected()}}else Z.options=null;else Z.options=null;else if(!this.eat(N.parenR)){var q=this.start;if(this.eat(N.comma)&&this.eat(N.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(N.parenL);var Z=this.parseExpression();return this.expect(N.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,M=new T7,B=this.yieldPos,H=this.awaitPos,F;this.yieldPos=0,this.awaitPos=0;while(this.type!==N.parenR)if(K?K=!1:this.expect(N.comma),z&&this.afterTrailingComma(N.parenR,!0)){G=!0;break}else if(this.type===N.ellipsis){if(F=this.start,W.push(this.parseParenItem(this.parseRestBinding())),this.type===N.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else W.push(this.parseMaybeAssign(!1,M,this.parseParenItem));var w=this.lastTokEnd,_=this.lastTokEndLoc;if(this.expect(N.parenR),Z&&this.shouldParseArrow(W)&&this.eat(N.arrow))return this.checkPatternErrors(M,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=B,this.awaitPos=H,this.parseParenArrowList(J,Q,W,q);if(!W.length||G)this.unexpected(this.lastTokStart);if(F)this.unexpected(F);if(this.checkExpressionErrors(M,!0),this.yieldPos=B||this.yieldPos,this.awaitPos=H||this.awaitPos,W.length>1)Y=this.startNodeAt(X,V),Y.expressions=W,this.finishNodeAt(Y,"SequenceExpression",w,_);else Y=W[0]}else Y=this.parseParenExpression();if(this.options.preserveParens){var P=this.startNodeAt(J,Q);return P.expression=Y,this.finishNode(P,"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===N.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(N.parenL))Z.arguments=this.parseExprList(N.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===N.invalidTemplate){if(!q)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");J.value={raw:this.value.replace(/\r\n?/g,`
|
|
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.`);q.ecmaVersion=11}else if(q.ecmaVersion>=2015)q.ecmaVersion-=2009;if(q.allowReserved==null)q.allowReserved=q.ecmaVersion<5;if(!Z||Z.allowHashBang==null)q.allowHashBang=q.ecmaVersion>=14;if(QV(q.onToken)){var Q=q.onToken;q.onToken=function(Y){return Q.push(Y)}}if(QV(q.onComment))q.onComment=Ww(q,q.onComment);return q}function Ww(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 _7(this,X,V);if(Z.ranges)W.range=[Y,z];q.push(W)}}var k0=1,A6=2,gq=4,jV=8,mq=16,BV=32,I7=64,HV=128,v8=256,v0=512,D7=k0|A6|v8;function uq(Z,q){return A6|(Z?gq:0)|(q?jV:0)}var w7=0,dq=1,e5=2,MV=3,FV=4,LV=5,c1=function(q,J,Q){this.options=q=Vw(q),this.sourceFile=q.sourceFile,this.keywords=j8(eN[q.ecmaVersion>=6?6:q.sourceType==="module"?"5module":5]);var Y="";if(q.allowReserved!==!0){if(Y=yq[q.ecmaVersion>=6?6:q.ecmaVersion===5?5:3],q.sourceType==="module")Y+=" await"}this.reservedWords=j8(Y);var z=(Y?Y+" ":"")+yq.strict;if(this.reservedWordsStrict=j8(z),this.reservedWordsStrictBind=j8(z+" "+yq.strictBind),this.input=String(J),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(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
74
|
`),cooked:null}}else J.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
75
|
-
`),cooked:this.value};return this.next(),J.tail=this.type===N.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===N.eof)this.raise(this.pos,"Unterminated template literal");this.expect(N.dollarBraceL),J.expressions.push(this.parseExpression()),this.expect(N.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===N.name||this.type===N.num||this.type===N.string||this.type===N.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===N.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(N.braceR)){if(!Q){if(this.expect(N.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(N.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(N.ellipsis)){if(Z){if(J.argument=this.parseIdent(!1),this.type===N.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===N.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(N.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(N.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===N.colon)this.unexpected();if(this.eat(N.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===N.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!==N.comma&&this.type!==N.braceR&&this.type!==N.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===N.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(N.bracketL))return Z.computed=!0,Z.key=this.parseMaybeAssign(),this.expect(N.bracketR),Z.key;else Z.computed=!1;return Z.key=this.type===N.num||this.type===N.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(N.parenL),Q.params=this.parseBindingList(N.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!==N.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(N.comma),q&&this.afterTrailingComma(Z))break}else z=!1;var X=void 0;if(J&&this.type===N.comma)X=null;else if(this.type===N.ellipsis){if(X=this.parseSpread(Q),Q&&this.type===N.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===N.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=N.name}else this.unexpected();return Z};W1.parsePrivateIdent=function(){var Z=this.startNode();if(this.type===N.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===N.semi||this.canInsertSemicolon()||this.type!==N.star&&!this.type.startsExpr)q.delegate=!1,q.argument=null;else q.delegate=this.eat(N.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|k8))return q}};H8.currentThisScope=function(){for(var Z=this.scopeStack.length-1;;Z--){var q=this.scopeStack[Z];if(q.flags&(D7|v0|k8)&&!(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===N.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(N.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(N.ellipsis);else return++this.pos,this.finishToken(N.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(N.assign,2);return this.finishOp(N.slash,1)};H1.readToken_mult_modulo_exp=function(Z){var q=this.input.charCodeAt(this.pos+1),J=1,Q=Z===42?N.star:N.modulo;if(this.options.ecmaVersion>=7&&Z===42&&q===42)++J,Q=N.starstar,q=this.input.charCodeAt(this.pos+2);if(q===61)return this.finishOp(N.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(N.assign,3)}return this.finishOp(Z===124?N.logicalOR:N.logicalAND,2)}if(q===61)return this.finishOp(N.assign,2);return this.finishOp(Z===124?N.bitwiseOR:N.bitwiseAND,1)};H1.readToken_caret=function(){var Z=this.input.charCodeAt(this.pos+1);if(Z===61)return this.finishOp(N.assign,2);return this.finishOp(N.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(N.incDec,2)}if(q===61)return this.finishOp(N.assign,2);return this.finishOp(N.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(N.assign,J+1);return this.finishOp(N.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(N.relational,J)};H1.readToken_eq_excl=function(Z){var q=this.input.charCodeAt(this.pos+1);if(q===61)return this.finishOp(N.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(N.arrow);return this.finishOp(Z===61?N.eq:N.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(N.questionDot,2)}if(q===63){if(Z>=12){var Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(N.assign,3)}return this.finishOp(N.coalesce,2)}}return this.finishOp(N.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(N.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(N.parenL);case 41:return++this.pos,this.finishToken(N.parenR);case 59:return++this.pos,this.finishToken(N.semi);case 44:return++this.pos,this.finishToken(N.comma);case 91:return++this.pos,this.finishToken(N.bracketL);case 93:return++this.pos,this.finishToken(N.bracketR);case 123:return++this.pos,this.finishToken(N.braceL);case 125:return++this.pos,this.finishToken(N.braceR);case 58:return++this.pos,this.finishToken(N.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(N.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(N.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(N.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),M=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)M=G-97+10;else if(G>=65)M=G-65+10;else if(G>=48&&G<=57)M=G-48;else M=1/0;if(M>=Z)break;V=G,X=X*Z+M}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(N.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(N.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(N.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(N.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===N.template||this.type===N.invalidTemplate))if(J===36)return this.pos+=2,this.finishToken(N.dollarBraceL);else return++this.pos,this.finishToken(N.backQuote);return Z+=this.input.slice(q,this.pos),this.finishToken(N.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(J);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;q=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(
|
|
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(J);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;q=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(w.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]===`
|
|
77
77
|
`)++this.pos;case`
|
|
78
78
|
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};H1.readEscapedChar=function(Z){var q=this.input.charCodeAt(++this.pos);switch(++this.pos,q){case 110:return`
|
|
79
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return o5(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;this.invalidStringToken(J,"Invalid escape sequence in template string")}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(D6(q)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(q)}};H1.readHexChar=function(Z){var q=this.pos,J=this.readInt(16,Z);if(J===null)this.invalidStringToken(q,"Bad character escape sequence");return J};H1.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(B8(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?m5:B8)(X,Q))this.invalidStringToken(z,"Invalid Unicode escape");Z+=o5(X),J=this.pos}else break;q=!1}return Z+this.input.slice(J,this.pos)};H1.readWord=function(){var Z=this.readWord1(),q=
|
|
79
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return o5(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;this.invalidStringToken(J,"Invalid escape sequence in template string")}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(D6(q)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(q)}};H1.readHexChar=function(Z){var q=this.pos,J=this.readInt(16,Z);if(J===null)this.invalidStringToken(q,"Bad character escape sequence");return J};H1.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(B8(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?m5:B8)(X,Q))this.invalidStringToken(z,"Invalid Unicode escape");Z+=o5(X),J=this.pos}else break;q=!1}return Z+this.input.slice(J,this.pos)};H1.readWord=function(){var Z=this.readWord1(),q=w.name;if(this.keywords.test(Z))q=hq[Z];return this.finishToken(q,Z)};var xw="8.15.0";c1.acorn={Parser:c1,version:xw,defaultOptions:xq,Position:x0,SourceLocation:_7,getLineInfo:UV,Node:A7,TokenType:C1,tokTypes:w,keywordTypes:hq,TokContext:S5,tokContexts:y1,isIdentifierChar:B8,isIdentifierStart:m5,Token:cq,isNewLine:D6,lineBreak:V5,lineBreakG:Qw,nonASCIIwhitespace:GV};function dV(Z,q){return c1.parse(Z,q)}import{sep as lV}from"node:path";function M8(Z){return lV==="/"?Z:Z.split(lV).join("/")}import{existsSync as pV,readFileSync as kw}from"node:fs";import{dirname as pq,isAbsolute as vw,join as fw,relative as hw,resolve as y7}from"node:path";var S7=new Map,cV=new Map,gw=/\/\*[\s\S]*?\*\/|\/\/.*/g,mw=/[.+?^${}()|[\]\\]/g;function uw(Z){let q=Z,J=y7(q,"/");while(q!==J){for(let Q of["tsconfig.json","jsconfig.json"]){let Y=fw(q,Q);if(pV(Y))return Y}q=pq(q)}return null}function iV(Z){if(S7.has(Z))return S7.get(Z)??null;try{let J=kw(Z,"utf-8").replace(gw,""),Q=JSON.parse(J);if(Q.extends){let Y=vw(Q.extends)?Q.extends:y7(pq(Z),Q.extends),z=Y.endsWith(".json")?Y:`${Y}.json`;if(pV(z)){let X=iV(z);if(X)Q.compilerOptions={...X.compilerOptions,...Q.compilerOptions,paths:{...X.compilerOptions?.paths,...Q.compilerOptions?.paths}}}}return S7.set(Z,Q),Q}catch{return S7.set(Z,null),null}}function iq(Z,q){if(Z.startsWith(".")||Z.startsWith("/"))return Z;let J=uw(q);if(!J)return Z;let Q=iV(J);if(!Q?.compilerOptions?.paths)return Z;let{baseUrl:Y=".",paths:z}=Q.compilerOptions,X=pq(J),V=y7(X,Y);for(let[W,K]of Object.entries(z)){let G=cV.get(W);if(!G){let M=W.split("*").map((B)=>B.replace(mw,"\\$&")).join("(.*)");G=new RegExp(`^${M}$`),cV.set(W,G)}let F=Z.match(G);if(F){let M=K[0];if(!M)continue;let B=M;for(let N=1;N<F.length;N++)B=B.replace("*",F[N]);return y7(V,B)}}return Z}function h0(Z,q){if(Z.startsWith(".")||Z.startsWith("/"))return Z;let J=iq(Z,q);if(J===Z)return Z;let Q=hw(q,J);return Q=M8(Q),Q.startsWith(".")?Q:`./${Q}`}var aV=new Map;function nq(Z,q){let J=aV.get(Z);if(!J)J=dV(Z,{ecmaVersion:"latest",sourceType:"module"}),aV.set(Z,J);let Q={};for(let Y of J.body)if(Y.type==="ExportDefaultDeclaration"){let z=Y.declaration.name;if(z in Q)Q[z].default=!0;else Q[z]={source:"",default:!0}}else if(Y.type==="ExportAllDeclaration"){if(!Y.source)continue;let z=iq(Y.source.value,q),X=iw(q,z);if(!dw(X).isFile()){let K=lw(X);for(let G of K)if(G.includes("index")){X=nV(X,G);break}}let V=cw(X,"utf-8"),W=nq(V,pw(X));for(let[K,G]of Object.entries(W)){let F=M8(`./${nV(Y.source.value,G.source)}`);Q[K]={...G,source:F}}}else if(Y.type==="ExportNamedDeclaration")for(let z of Y.specifiers){let X=z.exported.name,V=z.local.name,W=X||V;if(W in Q){if(Y.type==="ExportNamedDeclaration")Q[W].mixed=!0;if(!Q[W].source)Q[W].source=h0(Y.source?.value??"",q)}else Q[W]={source:h0(Y.source?.value??"",q),default:V==="default"}}else if(Y.type==="ImportDeclaration"){let z=Y.specifiers[0].local.name;if(z in Q){if(!Q[z].source)Q[z].source=h0(Y.source?.value??"",q)}else Q[z]={source:h0(Y.source?.value??"",q),default:z==="default"}}return Q}import g0 from"node:path";import{mkdir as nw,writeFile as aw}from"node:fs/promises";import{parse as sw}from"node:path";import{format as rw}from"prettier";class S6{options;constructor(Z){this.options=Z}async format(Z){try{return await rw(Z,this.options)}catch(q){return console.error(q),Z}}async write(Z,q){await nw(sw(Z).dir,{recursive:!0}),await aw(Z,await this.format(q))}}function aq(){return new S6({parser:"json",printWidth:80})}function sV(){return new S6({parser:"typescript",printWidth:80})}function rV(Z,q){return Array.from(Z,([J,Q])=>({...Q,filePath:M8(g0.join(q,g0.normalize(Q.filePath)))})).sort((J,Q)=>J.moduleName.localeCompare(Q.moduleName))}async function ow(Z,q){let J=rV(Z,q.inputDir);await Promise.all(J.map((Q)=>{let Y=g0.resolve(g0.join(q.outDir||"",`${Q.moduleName}.api.json`)),z=aq();return console.log(`created ${Y}"
|
|
80
80
|
`),z.write(Y,JSON.stringify(Q))}))}async function tw(Z,q){let J={total:Z.size,components:rV(Z,q.inputDir)},Q=g0.join(process.cwd(),q.outFile);await aq().write(Q,JSON.stringify(J)),console.log(`created "${q.outFile}".
|
|
81
81
|
`)}async function sq(Z,q){if(q.outDir)await ow(Z,q);else await tw(Z,q)}import{join as LO}from"node:path";var ew=/(-|\s+|:)/,ZO=/("|')/,qO=/CustomEvent/,JO=/^[A-Z]/,QO=/\n/,oV=/=>/,tV=/\n/g,YO=/\s+/g;function eV(Z){if(!Z)return;return Z.replace(tV,`
|
|
82
|
-
* `)}function
|
|
82
|
+
* `)}function f8(Z){if(!Z)return"";return`/** ${Z} */`}function oq(Z){if(!Z)return"";return`/**
|
|
83
83
|
* ${Z.replace(tV,`
|
|
84
84
|
* `)}
|
|
85
85
|
*/`}function b7(Z){if(Z===void 0)return"any";return`${Z}
|
|
86
86
|
`}function x7(Z){if(Z.typedefs.length===0)return"";return Z.typedefs.map((q)=>{return`${q.description?`${oq(q.description)}
|
|
87
87
|
`:""}export ${q.ts}`}).join(`
|
|
88
88
|
|
|
89
|
-
`)}function ZW(Z){if(!Z.contexts||Z.contexts.length===0)return"";let q=Z.generics?Z.generics[0]:null,J=Z.generics?Z.generics[1]:null;return Z.contexts.map((Q)=>{let Y=Q.properties.map((W)=>{let K=W.description?`${
|
|
89
|
+
`)}function ZW(Z){if(!Z.contexts||Z.contexts.length===0)return"";let q=Z.generics?Z.generics[0]:null,J=Z.generics?Z.generics[1]:null;return Z.contexts.map((Q)=>{let Y=Q.properties.map((W)=>{let K=W.description?`${f8(W.description)}
|
|
90
90
|
`:"",G=W.optional?"?":"";return`${K}${W.name}${G}: ${W.type};`}).join(`
|
|
91
91
|
`),z=Q.description?`${oq(Q.description)}
|
|
92
92
|
`:"",V=q&&Q.properties.some((W)=>W.type.includes(q))&&J?`<${J}>`:"";if(Q.properties.length===0)return`${z}export type ${Q.typeName} = Record<string, never>;`;return`${z}export type ${Q.typeName}${V} = {
|
|
@@ -95,51 +95,51 @@ Defaulting to 2020, but this will stop working in the future.`);q.ecmaVersion=11
|
|
|
95
95
|
|
|
96
96
|
`)}function E7(Z){if(ew.test(Z))return ZO.test(Z)?Z:`"${Z}"`;return Z}function rq(Z,q){if(!Z)return;return`* ${q||Z}
|
|
97
97
|
`}function qW(Z){return[rq(eV(Z))].filter(Boolean).join("")}function tq(Z){return Z.length>0?`/**
|
|
98
|
-
${Z}*/`:""}function zO(Z){let q=new Set(Z.props.filter((
|
|
99
|
-
`].filter(Boolean).join(""),
|
|
100
|
-
${tq(
|
|
101
|
-
${
|
|
102
|
-
`:"",
|
|
103
|
-
${
|
|
104
|
-
`:"",
|
|
105
|
-
${
|
|
106
|
-
`),W=`${Z.moduleName}Props`,K="",G=Z.generics?`<${Z.generics[1]}>`:"",
|
|
98
|
+
${Z}*/`:""}function zO(Z){let q=new Set(Z.props.filter((M)=>!M.isFunctionDeclaration&&M.kind!=="const").map((M)=>M.name)),J=Z.props.filter((M)=>!M.isFunctionDeclaration&&M.kind!=="const").map((M)=>{let B=M.value;if(typeof M.value==="string")B=M.value.replace(YO," ");if(M.value===void 0)B="undefined";let H=[rq(eV(M.description)),rq(M.constant,"@constant"),M.isFunction?null:`* @default ${B}
|
|
99
|
+
`].filter(Boolean).join(""),N=M.constant&&!M.isFunction?M.value:M.type;return`
|
|
100
|
+
${tq(H)}
|
|
101
|
+
${M.name}${M.isRequired?"":"?"}: ${N};`}),Q=(Z.slots||[]).filter((M)=>!M.default&&M.name!=null&&!q.has(M.name)).map((M)=>{let B=M.name,H=E7(B),N=M.description?`${f8(M.description)}
|
|
102
|
+
`:"",A=M.slot_props&&M.slot_props!=="Record<string, never>"?`(this: void, ...args: [${M.slot_props}]) => void`:"(this: void) => void";return`
|
|
103
|
+
${N}${H}?: ${A};`}),Y=(Z.slots||[]).find((M)=>M.default||M.name===null),z=Y?(()=>{let M=Y.description?`${f8(Y.description)}
|
|
104
|
+
`:"",H=Y.slot_props&&Y.slot_props!=="Record<string, never>"?`(this: void, ...args: [${Y.slot_props}]) => void`:"(this: void) => void";return`
|
|
105
|
+
${M}children?: ${H};`})():"",X=[...Q,z].filter(Boolean),V=[...J,...X].join(`
|
|
106
|
+
`),W=`${Z.moduleName}Props`,K="",G=Z.generics?`<${Z.generics[1]}>`:"",F=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((N)=>{return`SvelteHTMLElements["${N.trim()}"]`}).join("&");let B="[key: `data-${string}`]: unknown;",H=Z.rest_props.description?Z.rest_props.description.includes(`
|
|
107
107
|
`)?`${oq(Z.rest_props.description)}
|
|
108
|
-
`:`${
|
|
109
|
-
`:"";if(Z.extends
|
|
110
|
-
${
|
|
108
|
+
`:`${f8(Z.rest_props.description)}
|
|
109
|
+
`:"";if(Z.extends===void 0)K=`
|
|
110
|
+
${H}${M?`type $RestProps = ${M};
|
|
111
111
|
`:""}
|
|
112
112
|
type $Props${G} = {
|
|
113
113
|
${V}
|
|
114
114
|
|
|
115
|
-
${
|
|
115
|
+
${B}
|
|
116
116
|
};
|
|
117
117
|
|
|
118
|
-
export type ${W}${G} = Omit<$RestProps, keyof
|
|
118
|
+
export type ${W}${G} = Omit<$RestProps, keyof $Props${F}> & $Props${F};
|
|
119
119
|
`;else K=`
|
|
120
|
-
${
|
|
120
|
+
${H}${M?`type $RestProps = ${M};
|
|
121
121
|
`:""}
|
|
122
122
|
type $Props${G} = {
|
|
123
123
|
${V}
|
|
124
124
|
|
|
125
|
-
${
|
|
125
|
+
${B}
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export type ${W}${G} = Omit<$RestProps, keyof $Props${
|
|
128
|
+
export type ${W}${G} = Omit<$RestProps, keyof ($Props${F} & ${Z.extends.interface})> & $Props${F} & ${Z.extends.interface};
|
|
129
129
|
`}else if(V.trim()===""&&Z.extends===void 0)K=`
|
|
130
130
|
export type ${W}${G} = Record<string, never>;
|
|
131
131
|
`;else K=`
|
|
132
|
-
export type ${W}${G} = ${Z.extends
|
|
132
|
+
export type ${W}${G} = ${Z.extends===void 0?"":`${Z.extends.interface} & `} {
|
|
133
133
|
${V}
|
|
134
134
|
}
|
|
135
|
-
`;return{props_name:W,prop_def:K}}function XO(Z){if(Z.slots.length===0)return"Record<string, never>";return`{${Z.slots.map(({name:J,slot_props:Q,...Y})=>{let z=Y.default||J===null?"default":E7(J??"");return`${Y.description?`${
|
|
135
|
+
`;return{props_name:W,prop_def:K}}function XO(Z){if(Z.slots.length===0)return"Record<string, never>";return`{${Z.slots.map(({name:J,slot_props:Q,...Y})=>{let z=Y.default||J===null?"default":E7(J??"");return`${Y.description?`${f8(Y.description)}
|
|
136
136
|
`:""}${E7(z)}: ${b7(Q)};`}).join(`
|
|
137
|
-
`)}}`}var VO=()=>{return"WindowEventMap"},WO=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 KO(Z){let q=(Y="any")=>{if(qO.test(Y))return Y;return`CustomEvent<${Y}>`},J=(Y)=>{return WO.has(Y)};if(Z.events.length===0)return"Record<string, any>";return`{${Z.events.map((Y)=>{let z="";if(Y.description)z=`${
|
|
138
|
-
`;let X;if(Y.type==="dispatched")X=q(Y.detail);else{let V=typeof Y.element==="string"?Y.element:Y.element.name,K=!(V&&JO.test(V))||J(Y.name),G=Y.detail!==void 0&&Y.detail!=="undefined"&&!(Y.detail==="null"&&K),
|
|
137
|
+
`)}}`}var VO=()=>{return"WindowEventMap"},WO=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 KO(Z){let q=(Y="any")=>{if(qO.test(Y))return Y;return`CustomEvent<${Y}>`},J=(Y)=>{return WO.has(Y)};if(Z.events.length===0)return"Record<string, any>";return`{${Z.events.map((Y)=>{let z="";if(Y.description)z=`${f8(Y.description)}
|
|
138
|
+
`;let X;if(Y.type==="dispatched")X=q(Y.detail);else{let V=typeof Y.element==="string"?Y.element:Y.element.name,K=!(V&&JO.test(V))||J(Y.name),G=Y.detail!==void 0&&Y.detail!=="undefined"&&!(Y.detail==="null"&&K),F=Y.detail==="null"&&!K;if(G||F)X=q(Y.detail);else if(K)X=`${VO()}["${Y.name}"]`;else X=q()}return`${z}${E7(Y.name)}: ${X};
|
|
139
139
|
`}).join("")}}`}function GO(Z){let q=Z.type==="() => any";if(Z.type&&oV.test(Z.type)&&!q)return Z.type;else if(Z.params&&Z.params.length>0){let Q=Z.params.map((z)=>{let X=z.optional?"?":"";return`${z.name}${X}: ${z.type}`}).join(", "),Y=Z.returnType||"any";return`(${Q}) => ${Y}`}else if(Z.returnType)return`() => ${Z.returnType}`;else return Z.type||"any"}function $O(Z){return Z.props.filter((q)=>q.isFunctionDeclaration||q.kind==="const").map((q)=>{let J=qW(q.description),Q=GO(q);return`
|
|
140
140
|
${tq(J)}
|
|
141
141
|
${q.name}: ${Q};`}).join(`
|
|
142
|
-
`)}function UO(Z){if(Z.extends===void 0)return"";return`import type { ${Z.extends.interface} } from ${Z.extends.import};`}function jO(Z){if(!Z.componentComment)return"";if(!QO.test(Z.componentComment))return
|
|
142
|
+
`)}function UO(Z){if(Z.extends===void 0)return"";return`import type { ${Z.extends.interface} } from ${Z.extends.import};`}function jO(Z){if(!Z.componentComment)return"";if(!QO.test(Z.componentComment))return f8(Z.componentComment.trim());return`/*${Z.componentComment.split(`
|
|
143
143
|
`).map((q)=>`* ${q}`).join(`
|
|
144
144
|
`)}
|
|
145
145
|
*/`}function BO(Z){return Z.moduleExports.map((q)=>{let J=qW(q.description),Q,Y=q.type&&oV.test(q.type),z=q.type==="() => any";if(q.kind==="const"&&!Y)Q=`export declare const ${q.name}: ${q.type||"any"};
|
|
@@ -147,19 +147,19 @@ ${Z}*/`:""}function zO(Z){let q=new Set(Z.props.filter((B)=>!B.isFunctionDeclara
|
|
|
147
147
|
`;else Q=`export type ${q.name} = ${q.type||"any"};`;return`
|
|
148
148
|
${tq(J)}
|
|
149
149
|
${Q}`}).join(`
|
|
150
|
-
`)}function eq(Z){let{moduleName:q,typedefs:J,generics:Q,props:Y,moduleExports:z,slots:X,events:V,rest_props:W,extends:K,componentComment:G,contexts:
|
|
151
|
-
import { SvelteComponentTyped } from "svelte";${
|
|
152
|
-
`:""}${
|
|
150
|
+
`)}function eq(Z){let{moduleName:q,typedefs:J,generics:Q,props:Y,moduleExports:z,slots:X,events:V,rest_props:W,extends:K,componentComment:G,contexts:F}=Z,{props_name:M,prop_def:B}=zO({moduleName:q,props:Y,rest_props:W,extends:K,generics:Q,slots:X}),H=Q?`<${Q[1]}>`:"",N=Q?`${M}<${Q[0]}>`:M,C=W?.type==="Element"&&(W.name!=="svelte:element"||W.name==="svelte:element"&&W.thisValue),A=W?.type==="Element"&&W.name==="svelte:element"&&!W.thisValue;return`
|
|
151
|
+
import { SvelteComponentTyped } from "svelte";${C?`import type { SvelteHTMLElements } from "svelte/elements";
|
|
152
|
+
`:""}${A?`import type { HTMLAttributes } from "svelte/elements";
|
|
153
153
|
`:""}
|
|
154
154
|
${UO({extends:K})}
|
|
155
155
|
${BO({moduleExports:z})}
|
|
156
156
|
${x7({typedefs:J})}
|
|
157
|
-
${
|
|
158
|
-
`:""}${ZW({contexts:
|
|
159
|
-
${
|
|
157
|
+
${F&&F.length>0?`
|
|
158
|
+
`:""}${ZW({contexts:F,generics:Q})}
|
|
159
|
+
${B}
|
|
160
160
|
${jO({componentComment:G})}
|
|
161
|
-
export default class ${q==="default"?"":q}${
|
|
162
|
-
${
|
|
161
|
+
export default class ${q==="default"?"":q}${H} extends SvelteComponentTyped<
|
|
162
|
+
${N},
|
|
163
163
|
${KO({events:V})},
|
|
164
164
|
${XO({slots:X})}
|
|
165
165
|
> {
|
|
@@ -180,5 +180,5 @@ ${x7({typedefs:q.typedefs})}
|
|
|
180
180
|
`)})}class Q3{sourceParts=[];hasToC=!1;toc=[];get source(){return this.sourceParts.join("")}appendLineBreaks(){return this.sourceParts.push(`
|
|
181
181
|
|
|
182
182
|
`),this}append(Z,q){switch(Z){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":{let J=Number(Z.slice(-1));if(this.sourceParts.push(`${"#".repeat(J)} ${q}`),this.hasToC&&Z==="h2")this.toc.push({array:Array.from({length:(J-1)*2}),raw:q??""});break}case"quote":this.sourceParts.push(`> ${q}`);break;case"p":this.sourceParts.push(q??"");break;case"divider":this.sourceParts.push("---");break;case"raw":this.sourceParts.push(q??"");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:q,raw:J})=>{return`${q.join(" ")} - [${J}](#${J.toLowerCase().replace(Z3,"").replace(JW,"-")})`}).join(`
|
|
183
|
-
`))}}class v7 extends S6{onAppend;markdownBase;constructor(Z){super({parser:"markdown",printWidth:80});this.onAppend=Z.onAppend,this.markdownBase=new Q3}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,q){return this.markdownBase.append(Z,q),this.onAppend?.call(this,Z,this),this}tableOfContents(){return this.markdownBase.tableOfContents(),this}end(){return this.markdownBase.end()}}async function Y3(Z,q){let J=q?.write!==!1,Q=new v7({onAppend:(Y,z)=>{q.onAppend?.call(null,Y,z,Z)}});if(UW(Q,Z),J){let Y=LO(process.cwd(),q.outFile);await Q.write(Y,Q.end()),console.log(`created "${q.outFile}".`)}return Q.end()}import{join as MW}from"node:path";var jW=/\.svelte$/;function BW(Z){let q=new Map;for(let[Q,Y]of Object.entries(Z)){let z=q.get(Y.source)||[];z.push({id:Q,exportee:Y}),q.set(Y.source,z)}let J=[];for(let[Q,Y]of q){let z=jW.test(Q),X=Y.some(({id:
|
|
184
|
-
`)}function HW(Z){return Z.replace(jW,".svelte.d.ts")}async function z3(Z,q){let J=MW(process.cwd(),q.outDir,"index.d.ts"),Q=sV(),Y=q.preamble+BW(q.exports),z=Array.from(Z).map(async([X,V])=>{let W=HW(MW(q.outDir,V.filePath));await Q.write(W,eq(V))});await Promise.all([...z,Q.write(J,Y)]),console.log("created TypeScript definitions.")}var TO=/<style.+?<\/style>/gims,AO=/-/g;function LW(Z){let q,J;return{name:"vite-plugin-sveld",apply:"build",enforce:"post",buildStart(){J=O6(Z?.entry)},async generateBundle(){if(J!=null)q=await u0(J,Z?.glob===!0)},writeBundle(){if(J!=null)d0(q,Z||{},J)}}}async function u0(Z,q){let J=NO(Z).isFile(),Q=J?FW(Z):Z,Y={};if(J){let
|
|
183
|
+
`))}}class v7 extends S6{onAppend;markdownBase;constructor(Z){super({parser:"markdown",printWidth:80});this.onAppend=Z.onAppend,this.markdownBase=new Q3}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,q){return this.markdownBase.append(Z,q),this.onAppend?.call(this,Z,this),this}tableOfContents(){return this.markdownBase.tableOfContents(),this}end(){return this.markdownBase.end()}}async function Y3(Z,q){let J=q?.write!==!1,Q=new v7({onAppend:(Y,z)=>{q.onAppend?.call(null,Y,z,Z)}});if(UW(Q,Z),J){let Y=LO(process.cwd(),q.outFile);await Q.write(Y,Q.end()),console.log(`created "${q.outFile}".`)}return Q.end()}import{join as MW}from"node:path";var jW=/\.svelte$/;function BW(Z){let q=new Map;for(let[Q,Y]of Object.entries(Z)){let z=q.get(Y.source)||[];z.push({id:Q,exportee:Y}),q.set(Y.source,z)}let J=[];for(let[Q,Y]of q){let z=jW.test(Q),X=Y.some(({id:M,exportee:B})=>M!=="default"&&B.default),V=Y.some(({exportee:M})=>!M.default),W=z&&X&&V,K=[],G=[],F=[];for(let{id:M,exportee:B}of Y){if(M==="default"){G.push(`export { default } from "${Q}";`);continue}if(B.default)if(B.mixed)G.push(`export { default as ${M} } from "${Q}";`),G.push(`export { default } from "${Q}";`);else F.push(`default as ${M}`);else if(z&&!W)F.push(`default as ${M}`);else K.push(M)}if(F.length>0&&K.length>0)J.push(`export { ${[...F,...K].join(", ")} } from "${Q}";`);else{if(K.length>0)J.push(`export { ${K.join(", ")} } from "${Q}";`);if(F.length>0)J.push(`export { ${F.join(", ")} } from "${Q}";`)}J.push(...G)}return J.join(`
|
|
184
|
+
`)}function HW(Z){return Z.replace(jW,".svelte.d.ts")}async function z3(Z,q){let J=MW(process.cwd(),q.outDir,"index.d.ts"),Q=sV(),Y=q.preamble+BW(q.exports),z=Array.from(Z).map(async([X,V])=>{let W=HW(MW(q.outDir,V.filePath));await Q.write(W,eq(V))});await Promise.all([...z,Q.write(J,Y)]),console.log("created TypeScript definitions.")}var TO=/<style.+?<\/style>/gims,AO=/-/g;function LW(Z){let q,J;return{name:"vite-plugin-sveld",apply:"build",enforce:"post",buildStart(){J=O6(Z?.entry)},async generateBundle(){if(J!=null)q=await u0(J,Z?.glob===!0)},writeBundle(){if(J!=null)d0(q,Z||{},J)}}}async function u0(Z,q){let J=NO(Z).isFile(),Q=J?FW(Z):Z,Y={};if(J){let S=wO(Z,"utf-8");Y=nq(S,Q)}let z={...Y};if(q)for(let S of JV([`${Q}/**/*.svelte`])){let T=f7(S).name.replace(AO,""),g=M8(`./${CO(Q,S)}`);if(Y[T])Y[T].source=g;if(z[T])z[T].source=g;else z[T]={source:g,default:!1}}let X=new Map,V=new Map,W=Object.entries(Y),K=Object.entries(z),G=new Set;for(let[,S]of W){let T=S.source,{ext:g}=f7(T);if(g===".svelte")G.add(X3(Q,T))}for(let[,S]of K){let T=S.source,{ext:g}=f7(T);if(g===".svelte")G.add(X3(Q,T))}let F=await Promise.all(Array.from(G).map(async(S)=>{try{let T=await OO(S,"utf-8");return{path:S,content:T}}catch(T){return console.warn(`Warning: Failed to read file ${S}:`,T),{path:S,content:null}}})),M=new Map(F.map(({path:S,content:T})=>[S,T])),B=async([S,T],g,f)=>{let u=T.source,{ext:E,name:R}=f7(u),P=S;if(g.length===1&&S==="default")P=R;if(E===".svelte"){let I=X3(Q,u),j=f.get(I);if(j===null||j===void 0)return null;let{code:x}=await _O(j,[DO(),IO([[TO,""]])],{filename:RO(u)}),y=new I1().parseSvelteComponent(x,{moduleName:P,filePath:u});return{moduleName:P,filePath:u,...y}}return null},H=W.map((S)=>B(S,W,M)),N=K.map((S)=>B(S,K,M)),[C,A]=await Promise.all([Promise.all(H),Promise.all(N)]);for(let S of C)if(S)X.set(S.moduleName,S);for(let S of A)if(S)V.set(S.moduleName,S);return{exports:Y,components:X,allComponentsForTypes:V}}function d0(Z,q,J){let Q=FW(J);if(q?.types!==!1)z3(Z.allComponentsForTypes,{outDir:"types",preamble:"",...q?.typesOptions,exports:Z.exports,inputDir:Q});if(q?.json)sq(Z.components,{outFile:"COMPONENT_API.json",...q?.jsonOptions,input:J,inputDir:Q});if(q?.markdown)Y3(Z.components,{outFile:"COMPONENT_INDEX.md",...q?.markdownOptions})}async function PO(Z){let q=Z.argv.slice(2).map((z)=>{let[X,V]=z.split("=");return{[X.slice(2)]:V===void 0?!0:V}}).reduce((z,X)=>{for(let V in X)z[V]=X[V];return z},{}),J=O6()||"src/index.js";await(await Gq({input:J,plugins:[NW.default(),aJ()]})).generate({});let Y=await u0(J,q?.glob===!0);d0(Y,q,J)}async function SO(Z){let q=O6(Z?.input);if(q===null)return;let J=await u0(q,Z?.glob===!0);d0(J,Z||{},q)}export{SO as sveld,LW as default,PO as cli,I1 as ComponentParser};
|