sveld 0.30.2 → 0.30.3

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.
Files changed (2) hide show
  1. package/lib/index.js +10 -10
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -11,7 +11,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
11
11
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fMr(r,i){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t==null)return;var s=[],l=!0,u=!1,h,c;try{for(t=t.call(r);!(l=(h=t.next()).done);l=!0)if(s.push(h.value),i&&s.length===i)break}catch(p){u=!0,c=p}finally{try{if(!l&&t.return!=null)t.return()}finally{if(u)throw c}}return s}function hMr(r){if(Array.isArray(r))return r}function nMr(r,i){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=qtr(r))||i&&r&&typeof r.length==="number"){if(t)r=t;var s=0,l=function(){};return{s:l,n:function(){if(s>=r.length)return{done:!0};return{done:!1,value:r[s++]}},e:function(w){throw w},f:l}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
12
12
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,h=!1,c;return{s:function(){t=t.call(r)},n:function(){var w=t.next();return u=w.done,w},e:function(w){h=!0,c=w},f:function(){try{if(!u&&t.return!=null)t.return()}finally{if(h)throw c}}}}function qtr(r,i){if(!r)return;if(typeof r==="string")return dtr(r,i);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor)t=r.constructor.name;if(t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return dtr(r,i)}function dtr(r,i){if(i==null||i>r.length)i=r.length;for(var t=0,s=Array(i);t<i;t++)s[t]=r[t];return s}var vl=[],Cw=nMr(lMr.default.entries()),wtr;try{d$=function(){var i=jv(wtr.value,2),t=i[0],s=i[1],l=s.relatedConcepts;if(Array.isArray(l))l.forEach(function(u){if(u.module==="ARIA"){var h=u.concept;if(h){var c=vl.findIndex(function(p){var w=jv(p,1),P=w[0];return P===t});if(c===-1)vl.push([t,[]]),c=vl.length-1;vl[c][1].push(h)}}})};for(Cw.s();!(wtr=Cw.n()).done;)d$()}catch(r){Cw.e(r)}finally{Cw.f()}var d$,w$={entries:function(){return vl},forEach:function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var s=0,l=vl;s<l.length;s++){var u=jv(l[s],2),h=u[0],c=u[1];i.call(t,c,h,vl)}},get:function(i){var t=vl.find(function(s){return s[0]===i?!0:!1});return t&&t[1]},has:function(i){return!!w$.get(i)},keys:function(){return vl.map(function(i){var t=jv(i,1),s=t[0];return s})},values:function(){return vl.map(function(i){var t=jv(i,2),s=t[1];return s})}},cMr=(0,aMr.default)(w$,w$.entries());Ptr.default=cMr});var Ltr=cr((Ttr)=>{Object.defineProperty(Ttr,"__esModule",{value:!0});Ttr.default=void 0;var yMr=Mtr(Uv()),vMr=Mtr(Hv());function Mtr(r){return r&&r.__esModule?r:{default:r}}function Pw(r,i){return oMr(r)||mMr(r,i)||Str(r,i)||pMr()}function pMr(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
13
13
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mMr(r,i){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t==null)return;var s=[],l=!0,u=!1,h,c;try{for(t=t.call(r);!(l=(h=t.next()).done);l=!0)if(s.push(h.value),i&&s.length===i)break}catch(p){u=!0,c=p}finally{try{if(!l&&t.return!=null)t.return()}finally{if(u)throw c}}return s}function oMr(r){if(Array.isArray(r))return r}function bMr(r,i){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=Str(r))||i&&r&&typeof r.length==="number"){if(t)r=t;var s=0,l=function(){};return{s:l,n:function(){if(s>=r.length)return{done:!0};return{done:!1,value:r[s++]}},e:function(w){throw w},f:l}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
14
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,h=!1,c;return{s:function(){t=t.call(r)},n:function(){var w=t.next();return u=w.done,w},e:function(w){h=!0,c=w},f:function(){try{if(!u&&t.return!=null)t.return()}finally{if(h)throw c}}}}function Str(r,i){if(!r)return;if(typeof r==="string")return Rtr(r,i);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor)t=r.constructor.name;if(t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Rtr(r,i)}function Rtr(r,i){if(i==null||i>r.length)i=r.length;for(var t=0,s=Array(i);t<i;t++)s[t]=r[t];return s}var na=[],qw=bMr(yMr.default.entries()),Atr;try{C$=function(){var i=Pw(Atr.value,2),t=i[0],s=i[1],l=s.relatedConcepts;if(Array.isArray(l))l.forEach(function(u){if(u.module==="HTML"){var h=u.concept;if(h!=null){var c=JSON.stringify(h),p,w=0;for(;w<na.length;w++){var P=na[w][0];if(JSON.stringify(P)===c){p=na[w][1];break}}if(!Array.isArray(p))p=[];var M=p.findIndex(function(b){return b===t});if(M===-1)p.push(t);if(w<na.length)na.splice(w,1,[h,p]);else na.push([h,p])}}})};for(qw.s();!(Atr=qw.n()).done;)C$()}catch(r){qw.e(r)}finally{qw.f()}var C$;function dMr(r,i){if(r===void 0&&i!==void 0)return!1;if(r!==void 0&&i===void 0)return!1;if(r!==void 0&&i!==void 0){if(r.length!=i.length)return!1;for(var t=0;t<r.length;t++)if(i[t].name!==r[t].name||i[t].value!==r[t].value)return!1}return!0}var q$={entries:function(){return na},forEach:function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var s=0,l=na;s<l.length;s++){var u=Pw(l[s],2),h=u[0],c=u[1];i.call(t,c,h,na)}},get:function(i){var t=na.find(function(s){return i.name===s[0].name&&dMr(i.attributes,s[0].attributes)});return t&&t[1]},has:function(i){return!!q$.get(i)},keys:function(){return na.map(function(i){var t=Pw(i,1),s=t[0];return s})},values:function(){return na.map(function(i){var t=Pw(i,2),s=t[1];return s})}},wMr=(0,vMr.default)(q$,q$.entries());Ttr.default=wMr});var P$=cr((Etr)=>{Object.defineProperty(Etr,"__esModule",{value:!0});Etr.elementAXObjects=Etr.AXObjects=Etr.AXObjectRoles=Etr.AXObjectElements=void 0;var CMr=$w(btr()),qMr=$w(gtr()),PMr=$w(Uv()),$Mr=$w(Ltr());function $w(r){return r&&r.__esModule?r:{default:r}}var gMr=CMr.default;Etr.AXObjectElements=gMr;var RMr=qMr.default;Etr.AXObjectRoles=RMr;var AMr=PMr.default;Etr.AXObjects=AMr;var MMr=$Mr.default;Etr.elementAXObjects=MMr});var Ilr=cr((Iyi,Vlr)=>{var{builtinModules:LTr}=Ye("module"),ETr=["sys"];Vlr.exports=(LTr||(process.binding?Object.keys(process.binding("natives")):[])||[]).filter((r)=>!/^_|^(internal|v8|node-inspect)\/|\//.test(r)&&!ETr.includes(r)).sort()});var Blr=cr((Fyi,Flr)=>{var VTr=Ilr(),ITr=new Set(VTr);Flr.exports=(r)=>{if(typeof r!=="string")throw TypeError("Expected a string");if(r.startsWith("node:"))r=r.slice(5);let i=r.indexOf("/");if(i!==-1&&i!==r.length-1)r=r.slice(0,i);return ITr.has(r)}});var jlr=cr((Byi,Nlr)=>{var FTr=function(i){return BTr(i)&&!HTr(i)};function BTr(r){return!!r&&typeof r==="object"}function HTr(r){var i=Object.prototype.toString.call(r);return i==="[object RegExp]"||i==="[object Date]"||jTr(r)}var UTr=typeof Symbol==="function"&&Symbol.for,NTr=UTr?Symbol.for("react.element"):60103;function jTr(r){return r.$$typeof===NTr}function zTr(r){return Array.isArray(r)?[]:{}}function ip(r,i){return i.clone!==!1&&i.isMergeableObject(r)?F1(zTr(r),r,i):r}function ZTr(r,i,t){return r.concat(i).map(function(s){return ip(s,t)})}function QTr(r,i){if(!i.customMerge)return F1;var t=i.customMerge(r);return typeof t==="function"?t:F1}function JTr(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(i){return Object.propertyIsEnumerable.call(r,i)}):[]}function Hlr(r){return Object.keys(r).concat(JTr(r))}function Ulr(r,i){try{return i in r}catch(t){return!1}}function YTr(r,i){return Ulr(r,i)&&!(Object.hasOwnProperty.call(r,i)&&Object.propertyIsEnumerable.call(r,i))}function WTr(r,i,t){var s={};if(t.isMergeableObject(r))Hlr(r).forEach(function(l){s[l]=ip(r[l],t)});return Hlr(i).forEach(function(l){if(YTr(r,l))return;if(Ulr(r,l)&&t.isMergeableObject(i[l]))s[l]=QTr(l,t)(r[l],i[l],t);else s[l]=ip(i[l],t)}),s}function F1(r,i,t){t=t||{},t.arrayMerge=t.arrayMerge||ZTr,t.isMergeableObject=t.isMergeableObject||FTr,t.cloneUnlessOtherwiseSpecified=ip;var s=Array.isArray(i),l=Array.isArray(r),u=s===l;if(!u)return ip(i,t);else if(s)return t.arrayMerge(r,i,t);else return WTr(r,i,t)}F1.all=function(i,t){if(!Array.isArray(i))throw Error("first argument should be an array");return i.reduce(function(s,l){return F1(s,l,t)},{})};var GTr=F1;Nlr.exports=GTr});var Zlr=cr((Hyi,zlr)=>{var KTr=/(?:^\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]*))/,XTr=/(?:^\s*|[}{\(\);,\n]\s*)(export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)"))/;zlr.exports=function(r){return KTr.test(r)||XTr.test(r)}});var o5=cr((Uyi,Qlr)=>{var DTr=Ye("os");Qlr.exports=DTr.homedir||function(){var i=process.env.HOME,t=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||i||null;if(process.platform==="darwin")return i||(t?"/Users/"+t:null);if(process.platform==="linux")return i||(process.getuid()===0?"/root":t?"/home/"+t:null);return i||null}});var b5=cr((Nyi,Jlr)=>{Jlr.exports=function(){var r=Error.prepareStackTrace;Error.prepareStackTrace=function(t,s){return s};var i=Error().stack;return Error.prepareStackTrace=r,i[2].getFileName()}});var Ylr=cr((jyi,tp)=>{var kTr=process.platform==="win32",_Tr=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,d5={};function xTr(r){return _Tr.exec(r).slice(1)}d5.parse=function(r){if(typeof r!=="string")throw TypeError("Parameter 'pathString' must be a string, not "+typeof r);var i=xTr(r);if(!i||i.length!==5)throw TypeError("Invalid path '"+r+"'");return{root:i[1],dir:i[0]===i[1]?i[0]:i[0].slice(0,-1),base:i[2],ext:i[4],name:i[3]}};var rOr=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,w5={};function iOr(r){return rOr.exec(r).slice(1)}w5.parse=function(r){if(typeof r!=="string")throw TypeError("Parameter 'pathString' must be a string, not "+typeof r);var i=iOr(r);if(!i||i.length!==5)throw TypeError("Invalid path '"+r+"'");return{root:i[1],dir:i[0].slice(0,-1),base:i[2],ext:i[4],name:i[3]}};if(kTr)tp.exports=d5.parse;else tp.exports=w5.parse;tp.exports.posix=w5.parse;tp.exports.win32=d5.parse});var C5=cr((zyi,Xlr)=>{var Klr=Ye("path"),Wlr=Klr.parse||Ylr(),tOr=/^([A-Za-z]:)/,eOr=/^\\\\/,Glr=function(i,t){var s="/";if(tOr.test(i))s="";else if(eOr.test(i))s="\\\\";var l=[i],u=Wlr(i);while(u.dir!==l[l.length-1])l.push(u.dir),u=Wlr(u.dir);return l.reduce(function(h,c){return h.concat(t.map(function(p){return Klr.resolve(s,c,p)}))},[])};Xlr.exports=function(i,t,s){var l=t&&t.moduleDirectory?[].concat(t.moduleDirectory):["node_modules"];if(t&&typeof t.paths==="function")return t.paths(s,i,function(){return Glr(i,l)},t);var u=Glr(i,l);return t&&t.paths?u.concat(t.paths):u}});var q5=cr((Zyi,Dlr)=>{Dlr.exports=function(r,i){return i||{}}});var xlr=cr((Qyi,_lr)=>{var sOr="Function.prototype.bind called on incompatible ",aOr=Object.prototype.toString,lOr=Math.max,uOr="[object Function]",klr=function(i,t){var s=[];for(var l=0;l<i.length;l+=1)s[l]=i[l];for(var u=0;u<t.length;u+=1)s[u+i.length]=t[u];return s},fOr=function(i,t){var s=[];for(var l=t||0,u=0;l<i.length;l+=1,u+=1)s[u]=i[l];return s},hOr=function(r,i){var t="";for(var s=0;s<r.length;s+=1)if(t+=r[s],s+1<r.length)t+=i;return t};_lr.exports=function(i){var t=this;if(typeof t!=="function"||aOr.apply(t)!==uOr)throw TypeError(sOr+t);var s=fOr(arguments,1),l,u=function(){if(this instanceof l){var P=t.apply(this,klr(s,arguments));if(Object(P)===P)return P;return this}return t.apply(i,klr(s,arguments))},h=lOr(0,t.length-s.length),c=[];for(var p=0;p<h;p++)c[p]="$"+p;if(l=Function("binder","return function ("+hOr(c,",")+"){ return binder.apply(this,arguments); }")(u),t.prototype){var w=function(){};w.prototype=t.prototype,l.prototype=new w,w.prototype=null}return l}});var iur=cr((Jyi,rur)=>{var nOr=xlr();rur.exports=Function.prototype.bind||nOr});var eur=cr((Yyi,tur)=>{var cOr=Function.prototype.call,yOr=Object.prototype.hasOwnProperty,vOr=iur();tur.exports=vOr.call(cOr,yOr)});var sur=cr((Wyi,pOr)=>{pOr.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 ep=cr((Gyi,uur)=>{var mOr=eur();function oOr(r,i){var t=r.split("."),s=i.split(" "),l=s.length>1?s[0]:"=",u=(s.length>1?s[1]:s[0]).split(".");for(var h=0;h<3;++h){var c=parseInt(t[h]||0,10),p=parseInt(u[h]||0,10);if(c===p)continue;if(l==="<")return c<p;if(l===">=")return c>=p;return!1}return l===">="}function aur(r,i){var t=i.split(/ ?&& ?/);if(t.length===0)return!1;for(var s=0;s<t.length;++s)if(!oOr(r,t[s]))return!1;return!0}function bOr(r,i){if(typeof i==="boolean")return i;var t=typeof r>"u"?process.versions&&process.versions.node:r;if(typeof t!=="string")throw TypeError(typeof r>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(i&&typeof i==="object"){for(var s=0;s<i.length;++s)if(aur(t,i[s]))return!0;return!1}return aur(t,i)}var lur=sur();uur.exports=function(i,t){return mOr(lur,i)&&bOr(t,lur[i])}});var nur=cr((Kyi,hur)=>{var eh=Ye("fs"),dOr=o5(),ve=Ye("path"),wOr=b5(),COr=C5(),qOr=q5(),POr=ep(),$Or=process.platform!=="win32"&&eh.realpath&&typeof eh.realpath.native==="function"?eh.realpath.native:eh.realpath,gOr=/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/,ROr=/^\w:[/\\]*$/,AOr=/[/\\]node_modules[/\\]*$/,fur=dOr(),MOr=function(){return[ve.join(fur,".node_modules"),ve.join(fur,".node_libraries")]},SOr=function(i,t){eh.stat(i,function(s,l){if(!s)return t(null,l.isFile()||l.isFIFO());if(s.code==="ENOENT"||s.code==="ENOTDIR")return t(null,!1);return t(s)})},TOr=function(i,t){eh.stat(i,function(s,l){if(!s)return t(null,l.isDirectory());if(s.code==="ENOENT"||s.code==="ENOTDIR")return t(null,!1);return t(s)})},OOr=function(i,t){$Or(i,function(s,l){if(s&&s.code!=="ENOENT")t(s);else t(null,s?i:l)})},sp=function(i,t,s,l){if(s&&s.preserveSymlinks===!1)i(t,l);else l(null,t)},LOr=function(i,t,s){i(t,function(l,u){if(l)s(l);else try{var h=JSON.parse(u);s(null,h)}catch(c){s(null)}})},EOr=function(i,t,s){var l=COr(t,s,i);for(var u=0;u<l.length;u++)l[u]=ve.join(l[u],i);return l};hur.exports=function(i,t,s){var l=s,u=t;if(typeof t==="function")l=u,u={};if(typeof i!=="string"){var h=TypeError("Path must be a string.");return process.nextTick(function(){l(h)})}u=qOr(i,u);var c=u.isFile||SOr,p=u.isDirectory||TOr,w=u.readFile||eh.readFile,P=u.realpath||OOr,M=u.readPackage||LOr;if(u.readFile&&u.readPackage){var b=TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){l(b)})}var o=u.packageIterator,L=u.extensions||[".js"],I=u.includeCoreModules!==!1,j=u.basedir||ve.dirname(wOr()),H=u.filename||j;u.paths=u.paths||MOr();var J=ve.resolve(j);sp(P,J,u,function(S,k){if(S)l(S);else sr(k)});var W;function sr(S){if(gOr.test(i)){if(W=ve.resolve(S,i),i==="."||i===".."||i.slice(-1)==="/")W+="/";if(i.slice(-1)==="/"&&W===S)q(W,u.package,rr);else hr(W,u.package,rr)}else if(I&&POr(i))return l(null,i);else V(i,S,function(k,er,tr){if(k)l(k);else if(er)return sp(P,er,u,function(Z,Cr){if(Z)l(Z);else l(null,Cr,tr)});else{var U=Error("Cannot find module '"+i+"' from '"+H+"'");U.code="MODULE_NOT_FOUND",l(U)}})}function rr(S,k,er){if(S)l(S);else if(k)l(null,k,er);else q(W,function(tr,U,Z){if(tr)l(tr);else if(U)sp(P,U,u,function(Pr,zr){if(Pr)l(Pr);else l(null,zr,Z)});else{var Cr=Error("Cannot find module '"+i+"' from '"+H+"'");Cr.code="MODULE_NOT_FOUND",l(Cr)}})}function hr(S,k,er){var tr=k,U=er;if(typeof tr==="function")U=tr,tr=void 0;var Z=[""].concat(L);Cr(Z,S,tr);function Cr(Pr,zr,jr){if(Pr.length===0)return U(null,void 0,jr);var ri=zr+Pr[0],$i=jr;if($i)ji(null,$i);else vr(ve.dirname(ri),ji);function ji(Yr,Vr,lt){if($i=Vr,Yr)return U(Yr);if(lt&&$i&&u.pathFilter){var Jr=ve.relative(lt,ri),dr=Jr.slice(0,Jr.length-Pr[0].length),Ar=u.pathFilter($i,zr,dr);if(Ar)return Cr([""].concat(L.slice()),ve.resolve(lt,Ar),$i)}c(ri,zi)}function zi(Yr,Vr){if(Yr)return U(Yr);if(Vr)return U(null,ri,$i);Cr(Pr.slice(1),zr,$i)}}}function vr(S,k){if(S===""||S==="/")return k(null);if(process.platform==="win32"&&ROr.test(S))return k(null);if(AOr.test(S))return k(null);sp(P,S,u,function(er,tr){if(er)return vr(ve.dirname(S),k);var U=ve.join(tr,"package.json");c(U,function(Z,Cr){if(!Cr)return vr(ve.dirname(S),k);M(w,U,function(Pr,zr){if(Pr)k(Pr);var jr=zr;if(jr&&u.packageFilter)jr=u.packageFilter(jr,U);k(null,jr,S)})})})}function q(S,k,er){var tr=er,U=k;if(typeof U==="function")tr=U,U=u.package;sp(P,S,u,function(Z,Cr){if(Z)return tr(Z);var Pr=ve.join(Cr,"package.json");c(Pr,function(zr,jr){if(zr)return tr(zr);if(!jr)return hr(ve.join(S,"index"),U,tr);M(w,Pr,function(ri,$i){if(ri)return tr(ri);var ji=$i;if(ji&&u.packageFilter)ji=u.packageFilter(ji,Pr);if(ji&&ji.main){if(typeof ji.main!=="string"){var zi=TypeError("package “"+ji.name+"” `main` must be a string");return zi.code="INVALID_PACKAGE_MAIN",tr(zi)}if(ji.main==="."||ji.main==="./")ji.main="index";hr(ve.resolve(S,ji.main),ji,function(Yr,Vr,lt){if(Yr)return tr(Yr);if(Vr)return tr(null,Vr,lt);if(!lt)return hr(ve.join(S,"index"),lt,tr);var Jr=ve.resolve(S,lt.main);q(Jr,lt,function(dr,Ar,pr){if(dr)return tr(dr);if(Ar)return tr(null,Ar,pr);hr(ve.join(S,"index"),pr,tr)})});return}hr(ve.join(S,"/index"),ji,tr)})})})}function T(S,k){if(k.length===0)return S(null,void 0);var er=k[0];p(ve.dirname(er),tr);function tr(Cr,Pr){if(Cr)return S(Cr);if(!Pr)return T(S,k.slice(1));hr(er,u.package,U)}function U(Cr,Pr,zr){if(Cr)return S(Cr);if(Pr)return S(null,Pr,zr);q(er,u.package,Z)}function Z(Cr,Pr,zr){if(Cr)return S(Cr);if(Pr)return S(null,Pr,zr);T(S,k.slice(1))}}function V(S,k,er){var tr=function(){return EOr(S,k,u)};T(er,o?o(S,k,tr,u):tr())}}});var cur=cr((Xyi,VOr)=>{VOr.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 mur=cr((Dyi,pur)=>{var IOr=ep(),yur=cur(),vur={};for(ap in yur)if(Object.prototype.hasOwnProperty.call(yur,ap))vur[ap]=IOr(ap);var ap;pur.exports=vur});var bur=cr((kyi,our)=>{var FOr=ep();our.exports=function(i){return FOr(i)}});var Cur=cr((_yi,wur)=>{var BOr=ep(),sh=Ye("fs"),_e=Ye("path"),HOr=o5(),UOr=b5(),NOr=C5(),jOr=q5(),zOr=process.platform!=="win32"&&sh.realpathSync&&typeof sh.realpathSync.native==="function"?sh.realpathSync.native:sh.realpathSync,ZOr=/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/,QOr=/^\w:[/\\]*$/,JOr=/[/\\]node_modules[/\\]*$/,dur=HOr(),YOr=function(){return[_e.join(dur,".node_modules"),_e.join(dur,".node_libraries")]},WOr=function(i){try{var t=sh.statSync(i,{throwIfNoEntry:!1})}catch(s){if(s&&(s.code==="ENOENT"||s.code==="ENOTDIR"))return!1;throw s}return!!t&&(t.isFile()||t.isFIFO())},GOr=function(i){try{var t=sh.statSync(i,{throwIfNoEntry:!1})}catch(s){if(s&&(s.code==="ENOENT"||s.code==="ENOTDIR"))return!1;throw s}return!!t&&t.isDirectory()},KOr=function(i){try{return zOr(i)}catch(t){if(t.code!=="ENOENT")throw t}return i},lp=function(i,t,s){if(s&&s.preserveSymlinks===!1)return i(t);return t},XOr=function(i,t){var s=i(t);try{var l=JSON.parse(s);return l}catch(u){}},DOr=function(i,t,s){var l=NOr(t,s,i);for(var u=0;u<l.length;u++)l[u]=_e.join(l[u],i);return l};wur.exports=function(i,t){if(typeof i!=="string")throw TypeError("Path must be a string.");var s=jOr(i,t),l=s.isFile||WOr,u=s.readFileSync||sh.readFileSync,h=s.isDirectory||GOr,c=s.realpathSync||KOr,p=s.readPackageSync||XOr;if(s.readFileSync&&s.readPackageSync)throw TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var w=s.packageIterator,P=s.extensions||[".js"],M=s.includeCoreModules!==!1,b=s.basedir||_e.dirname(UOr()),o=s.filename||b;s.paths=s.paths||YOr();var L=lp(c,_e.resolve(b),s);if(ZOr.test(i)){var I=_e.resolve(L,i);if(i==="."||i===".."||i.slice(-1)==="/")I+="/";var j=W(I)||rr(I);if(j)return lp(c,j,s)}else if(M&&BOr(i))return i;else{var H=hr(i,L);if(H)return lp(c,H,s)}var J=Error("Cannot find module '"+i+"' from '"+o+"'");throw J.code="MODULE_NOT_FOUND",J;function W(vr){var q=sr(_e.dirname(vr));if(q&&q.dir&&q.pkg&&s.pathFilter){var T=_e.relative(q.dir,vr),V=s.pathFilter(q.pkg,vr,T);if(V)vr=_e.resolve(q.dir,V)}if(l(vr))return vr;for(var S=0;S<P.length;S++){var k=vr+P[S];if(l(k))return k}}function sr(vr){if(vr===""||vr==="/")return;if(process.platform==="win32"&&QOr.test(vr))return;if(JOr.test(vr))return;var q=_e.join(lp(c,vr,s),"package.json");if(!l(q))return sr(_e.dirname(vr));var T=p(u,q);if(T&&s.packageFilter)T=s.packageFilter(T,vr);return{pkg:T,dir:vr}}function rr(vr){var q=_e.join(lp(c,vr,s),"/package.json");if(l(q)){try{var T=p(u,q)}catch(er){}if(T&&s.packageFilter)T=s.packageFilter(T,vr);if(T&&T.main){if(typeof T.main!=="string"){var V=TypeError("package “"+T.name+"” `main` must be a string");throw V.code="INVALID_PACKAGE_MAIN",V}if(T.main==="."||T.main==="./")T.main="index";try{var S=W(_e.resolve(vr,T.main));if(S)return S;var k=rr(_e.resolve(vr,T.main));if(k)return k}catch(er){}}}return W(_e.join(vr,"/index"))}function hr(vr,q){var T=function(){return DOr(vr,q,s)},V=w?w(vr,q,T,s):T();for(var S=0;S<V.length;S++){var k=V[S];if(h(_e.dirname(k))){var er=W(k);if(er)return er;var tr=rr(k);if(tr)return tr}}}}});var Pur=cr((xyi,qur)=>{var t2=nur();t2.core=mur();t2.isCore=bur();t2.sync=Cur();qur.exports=t2});var up=cr((rvi,gur)=>{var kOr=Ye("path"),$ur={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:"(?:^|\\/)"},_Or={...$ur,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:"(?:[\\\\/]|$)"},xOr={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};gur.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:xOr,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:kOr.sep,extglobChars(r){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${r.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(r){return r===!0?_Or:$ur}}});var e2=cr((lLr)=>{var rLr=Ye("path"),iLr=process.platform==="win32",{REGEX_BACKSLASH:tLr,REGEX_REMOVE_BACKSLASH:eLr,REGEX_SPECIAL_CHARS:sLr,REGEX_SPECIAL_CHARS_GLOBAL:aLr}=up();lLr.isObject=(r)=>r!==null&&typeof r==="object"&&!Array.isArray(r);lLr.hasRegexChars=(r)=>sLr.test(r);lLr.isRegexChar=(r)=>r.length===1&&lLr.hasRegexChars(r);lLr.escapeRegex=(r)=>r.replace(aLr,"\\$1");lLr.toPosixSlashes=(r)=>r.replace(tLr,"/");lLr.removeBackslashes=(r)=>{return r.replace(eLr,(i)=>{return i==="\\"?"":i})};lLr.supportsLookbehinds=()=>{let r=process.version.slice(1).split(".").map(Number);if(r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10)return!0;return!1};lLr.isWindows=(r)=>{if(r&&typeof r.windows==="boolean")return r.windows;return iLr===!0||rLr.sep==="\\"};lLr.escapeLast=(r,i,t)=>{let s=r.lastIndexOf(i,t);if(s===-1)return r;if(r[s-1]==="\\")return lLr.escapeLast(r,i,s-1);return`${r.slice(0,s)}\\${r.slice(s)}`};lLr.removePrefix=(r,i={})=>{let t=r;if(t.startsWith("./"))t=t.slice(2),i.prefix="./";return t};lLr.wrapOutput=(r,i={},t={})=>{let s=t.contains?"":"^",l=t.contains?"":"$",u=`${s}(?:${r})${l}`;if(i.negated===!0)u=`(?:^(?!${u}).*$)`;return u}});var Iur=cr((tvi,Vur)=>{var Mur=e2(),{CHAR_ASTERISK:P5,CHAR_AT:oLr,CHAR_BACKWARD_SLASH:fp,CHAR_COMMA:bLr,CHAR_DOT:$5,CHAR_EXCLAMATION_MARK:g5,CHAR_FORWARD_SLASH:Eur,CHAR_LEFT_CURLY_BRACE:R5,CHAR_LEFT_PARENTHESES:A5,CHAR_LEFT_SQUARE_BRACKET:dLr,CHAR_PLUS:wLr,CHAR_QUESTION_MARK:Sur,CHAR_RIGHT_CURLY_BRACE:CLr,CHAR_RIGHT_PARENTHESES:Tur,CHAR_RIGHT_SQUARE_BRACKET:qLr}=up(),Our=(r)=>{return r===Eur||r===fp},Lur=(r)=>{if(r.isPrefix!==!0)r.depth=r.isGlobstar?1/0:1},PLr=(r,i)=>{let t=i||{},s=r.length-1,l=t.parts===!0||t.scanToEnd===!0,u=[],h=[],c=[],p=r,w=-1,P=0,M=0,b=!1,o=!1,L=!1,I=!1,j=!1,H=!1,J=!1,W=!1,sr=!1,rr=!1,hr=0,vr,q,T={value:"",depth:0,isGlob:!1},V=()=>w>=s,S=()=>p.charCodeAt(w+1),k=()=>{return vr=q,p.charCodeAt(++w)};while(w<s){q=k();let Cr;if(q===fp){if(J=T.backslashes=!0,q=k(),q===R5)H=!0;continue}if(H===!0||q===R5){hr++;while(V()!==!0&&(q=k())){if(q===fp){J=T.backslashes=!0,k();continue}if(q===R5){hr++;continue}if(H!==!0&&q===$5&&(q=k())===$5){if(b=T.isBrace=!0,L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(H!==!0&&q===bLr){if(b=T.isBrace=!0,L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===CLr){if(hr--,hr===0){H=!1,b=T.isBrace=!0,rr=!0;break}}}if(l===!0)continue;break}if(q===Eur){if(u.push(w),h.push(T),T={value:"",depth:0,isGlob:!1},rr===!0)continue;if(vr===$5&&w===P+1){P+=2;continue}M=w+1;continue}if(t.noext!==!0){if((q===wLr||q===oLr||q===P5||q===Sur||q===g5)===!0&&S()===A5){if(L=T.isGlob=!0,I=T.isExtglob=!0,rr=!0,q===g5&&w===P)sr=!0;if(l===!0){while(V()!==!0&&(q=k())){if(q===fp){J=T.backslashes=!0,q=k();continue}if(q===Tur){L=T.isGlob=!0,rr=!0;break}}continue}break}}if(q===P5){if(vr===P5)j=T.isGlobstar=!0;if(L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===Sur){if(L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===dLr){while(V()!==!0&&(Cr=k())){if(Cr===fp){J=T.backslashes=!0,k();continue}if(Cr===qLr){o=T.isBracket=!0,L=T.isGlob=!0,rr=!0;break}}if(l===!0)continue;break}if(t.nonegate!==!0&&q===g5&&w===P){W=T.negated=!0,P++;continue}if(t.noparen!==!0&&q===A5){if(L=T.isGlob=!0,l===!0){while(V()!==!0&&(q=k())){if(q===A5){J=T.backslashes=!0,q=k();continue}if(q===Tur){rr=!0;break}}continue}break}if(L===!0){if(rr=!0,l===!0)continue;break}}if(t.noext===!0)I=!1,L=!1;let er=p,tr="",U="";if(P>0)tr=p.slice(0,P),p=p.slice(P),M-=P;if(er&&L===!0&&M>0)er=p.slice(0,M),U=p.slice(M);else if(L===!0)er="",U=p;else er=p;if(er&&er!==""&&er!=="/"&&er!==p){if(Our(er.charCodeAt(er.length-1)))er=er.slice(0,-1)}if(t.unescape===!0){if(U)U=Mur.removeBackslashes(U);if(er&&J===!0)er=Mur.removeBackslashes(er)}let Z={prefix:tr,input:r,start:P,base:er,glob:U,isBrace:b,isBracket:o,isGlob:L,isExtglob:I,isGlobstar:j,negated:W,negatedExtglob:sr};if(t.tokens===!0){if(Z.maxDepth=0,!Our(q))h.push(T);Z.tokens=h}if(t.parts===!0||t.tokens===!0){let Cr;for(let Pr=0;Pr<u.length;Pr++){let zr=Cr?Cr+1:P,jr=u[Pr],ri=r.slice(zr,jr);if(t.tokens){if(Pr===0&&P!==0)h[Pr].isPrefix=!0,h[Pr].value=tr;else h[Pr].value=ri;Lur(h[Pr]),Z.maxDepth+=h[Pr].depth}if(Pr!==0||ri!=="")c.push(ri);Cr=jr}if(Cr&&Cr+1<r.length){let Pr=r.slice(Cr+1);if(c.push(Pr),t.tokens)h[h.length-1].value=Pr,Lur(h[h.length-1]),Z.maxDepth+=h[h.length-1].depth}Z.slashes=u,Z.parts=c}return Z};Vur.exports=PLr});var Nur=cr((evi,Uur)=>{var hp=up(),xe=e2(),{MAX_LENGTH:s2,POSIX_REGEX_SOURCE:$Lr,REGEX_NON_SPECIAL_CHARS:gLr,REGEX_SPECIAL_CHARS_BACKREF:RLr,REPLACEMENTS:Fur}=hp,ALr=(r,i)=>{if(typeof i.expandRange==="function")return i.expandRange(...r,i);r.sort();let t=`[${r.join("-")}]`;try{new RegExp(t)}catch(s){return r.map((l)=>xe.escapeRegex(l)).join("..")}return t},B1=(r,i)=>{return`Missing ${r}: "${i}" - use "\\\\${i}" to match literal characters`},Bur=(r)=>{let i=[],t=0,s=0,l=0,u="",h=!1;for(let c of r){if(h===!0){u+=c,h=!1;continue}if(c==="\\"){u+=c,h=!0;continue}if(c==='"'){l=l===1?0:1,u+=c;continue}if(l===0){if(c==="[")t++;else if(c==="]"&&t>0)t--;else if(t===0){if(c==="(")s++;else if(c===")"&&s>0)s--;else if(c==="|"&&s===0){i.push(u),u="";continue}}}u+=c}return i.push(u),i},MLr=(r)=>{let i=!1;for(let t of r){if(i===!0){i=!1;continue}if(t==="\\"){i=!0;continue}if(/[?*+@!()[\]{}]/.test(t))return!1}return!0},Hur=(r)=>{let i=r.trim(),t=!0;while(t===!0)if(t=!1,/^@\([^\\()[\]{}|]+\)$/.test(i))i=i.slice(2,-1),t=!0;if(!MLr(i))return;return i.replace(/\\(.)/g,"$1")},SLr=(r)=>{let i=r.map(Hur).filter(Boolean);for(let t=0;t<i.length;t++)for(let s=t+1;s<i.length;s++){let l=i[t],u=i[s],h=l[0];if(!h||l!==h.repeat(l.length)||u!==h.repeat(u.length))continue;if(l===u||l.startsWith(u)||u.startsWith(l))return!0}return!1},M5=(r,i=!0)=>{if(r[0]!=="+"&&r[0]!=="*"||r[1]!=="(")return;let t=0,s=0,l=0,u=!1;for(let h=1;h<r.length;h++){let c=r[h];if(u===!0){u=!1;continue}if(c==="\\"){u=!0;continue}if(c==='"'){l=l===1?0:1;continue}if(l===1)continue;if(c==="["){t++;continue}if(c==="]"&&t>0){t--;continue}if(t>0)continue;if(c==="("){s++;continue}if(c===")"){if(s--,s===0){if(i===!0&&h!==r.length-1)return;return{type:r[0],body:r.slice(2,h),end:h}}}}},TLr=(r)=>{let i=0,t=[];while(i<r.length){let l=M5(r.slice(i),!1);if(!l||l.type!=="*")return;let u=Bur(l.body).map((c)=>c.trim());if(u.length!==1)return;let h=Hur(u[0]);if(!h||h.length!==1)return;t.push(h),i+=l.end+1}if(t.length<1)return;return`${t.length===1?xe.escapeRegex(t[0]):`[${t.map((l)=>xe.escapeRegex(l)).join("")}]`}*`},OLr=(r)=>{let i=0,t=r.trim(),s=M5(t);while(s)i++,t=s.body.trim(),s=M5(t);return i},LLr=(r,i)=>{if(i.maxExtglobRecursion===!1)return{risky:!1};let t=typeof i.maxExtglobRecursion==="number"?i.maxExtglobRecursion:hp.DEFAULT_MAX_EXTGLOB_RECURSION,s=Bur(r).map((l)=>l.trim());if(s.length>1){if(s.some((l)=>l==="")||s.some((l)=>/^[*?]+$/.test(l))||SLr(s))return{risky:!0}}for(let l of s){let u=TLr(l);if(u)return{risky:!0,safeOutput:u};if(OLr(l)>t)return{risky:!0}}return{risky:!1}},S5=(r,i)=>{if(typeof r!=="string")throw TypeError("Expected a string");r=Fur[r]||r;let t={...i},s=typeof t.maxLength==="number"?Math.min(s2,t.maxLength):s2,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);let u={type:"bos",value:"",output:t.prepend||""},h=[u],c=t.capture?"":"?:",p=xe.isWindows(i),w=hp.globChars(p),P=hp.extglobChars(w),{DOT_LITERAL:M,PLUS_LITERAL:b,SLASH_LITERAL:o,ONE_CHAR:L,DOTS_SLASH:I,NO_DOT:j,NO_DOT_SLASH:H,NO_DOTS_SLASH:J,QMARK:W,QMARK_NO_DOT:sr,STAR:rr,START_ANCHOR:hr}=w,vr=(dr)=>{return`(${c}(?:(?!${hr}${dr.dot?I:M}).)*?)`},q=t.dot?"":j,T=t.dot?W:sr,V=t.bash===!0?vr(t):rr;if(t.capture)V=`(${V})`;if(typeof t.noext==="boolean")t.noextglob=t.noext;let S={input:r,index:-1,start:0,dot:t.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};r=xe.removePrefix(r,S),l=r.length;let k=[],er=[],tr=[],U=u,Z,Cr=()=>S.index===l-1,Pr=S.peek=(dr=1)=>r[S.index+dr],zr=S.advance=()=>r[++S.index]||"",jr=()=>r.slice(S.index+1),ri=(dr="",Ar=0)=>{S.consumed+=dr,S.index+=Ar},$i=(dr)=>{S.output+=dr.output!=null?dr.output:dr.value,ri(dr.value)},ji=()=>{let dr=1;while(Pr()==="!"&&(Pr(2)!=="("||Pr(3)==="?"))zr(),S.start++,dr++;if(dr%2===0)return!1;return S.negated=!0,S.start++,!0},zi=(dr)=>{S[dr]++,tr.push(dr)},Yr=(dr)=>{S[dr]--,tr.pop()},Vr=(dr)=>{if(U.type==="globstar"){let Ar=S.braces>0&&(dr.type==="comma"||dr.type==="brace"),pr=dr.extglob===!0||k.length&&(dr.type==="pipe"||dr.type==="paren");if(dr.type!=="slash"&&dr.type!=="paren"&&!Ar&&!pr)S.output=S.output.slice(0,-U.output.length),U.type="star",U.value="*",U.output=V,S.output+=U.output}if(k.length&&dr.type!=="paren")k[k.length-1].inner+=dr.value;if(dr.value||dr.output)$i(dr);if(U&&U.type==="text"&&dr.type==="text"){U.value+=dr.value,U.output=(U.output||"")+dr.value;return}dr.prev=U,h.push(dr),U=dr},lt=(dr,Ar)=>{let pr={...P[Ar],conditions:1,inner:""};pr.prev=U,pr.parens=S.parens,pr.output=S.output,pr.startIndex=S.index,pr.tokensIndex=h.length;let Er=(t.capture?"(":"")+pr.open;zi("parens"),Vr({type:dr,value:Ar,output:S.output?"":L}),Vr({type:"paren",extglob:!0,value:zr(),output:Er}),k.push(pr)},Jr=(dr)=>{let Ar=r.slice(dr.startIndex,S.index+1),pr=r.slice(dr.startIndex+2,S.index),Er=LLr(pr,t);if((dr.type==="plus"||dr.type==="star")&&Er.risky){let Dr=Er.safeOutput?(dr.output?"":L)+(t.capture?`(${Er.safeOutput})`:Er.safeOutput):void 0,et=h[dr.tokensIndex];et.type="text",et.value=Ar,et.output=Dr||xe.escapeRegex(Ar);for(let Pt=dr.tokensIndex+1;Pt<h.length;Pt++)h[Pt].value="",h[Pt].output="",delete h[Pt].suffix;S.output=dr.output+et.output,S.backtrack=!0,Vr({type:"paren",extglob:!0,value:Z,output:""}),Yr("parens");return}let Zr=dr.close+(t.capture?")":""),kr;if(dr.type==="negate"){let Dr=V;if(dr.inner&&dr.inner.length>1&&dr.inner.includes("/"))Dr=vr(t);if(Dr!==V||Cr()||/^\)+$/.test(jr()))Zr=dr.close=`)$))${Dr}`;if(dr.inner.includes("*")&&(kr=jr())&&/^\.[^\\/.]+$/.test(kr)){let et=S5(kr,{...i,fastpaths:!1}).output;Zr=dr.close=`)${et})${Dr})`}if(dr.prev.type==="bos")S.negatedExtglob=!0}Vr({type:"paren",extglob:!0,value:Z,output:Zr}),Yr("parens")};if(t.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(r)){let dr=!1,Ar=r.replace(RLr,(pr,Er,Zr,kr,Dr,et)=>{if(kr==="\\")return dr=!0,pr;if(kr==="?"){if(Er)return Er+kr+(Dr?W.repeat(Dr.length):"");if(et===0)return T+(Dr?W.repeat(Dr.length):"");return W.repeat(Zr.length)}if(kr===".")return M.repeat(Zr.length);if(kr==="*"){if(Er)return Er+kr+(Dr?V:"");return V}return Er?pr:`\\${pr}`});if(dr===!0)if(t.unescape===!0)Ar=Ar.replace(/\\/g,"");else Ar=Ar.replace(/\\+/g,(pr)=>{return pr.length%2===0?"\\\\":pr?"\\":""});if(Ar===r&&t.contains===!0)return S.output=r,S;return S.output=xe.wrapOutput(Ar,S,i),S}while(!Cr()){if(Z=zr(),Z==="\x00")continue;if(Z==="\\"){let pr=Pr();if(pr==="/"&&t.bash!==!0)continue;if(pr==="."||pr===";")continue;if(!pr){Z+="\\",Vr({type:"text",value:Z});continue}let Er=/^\\+/.exec(jr()),Zr=0;if(Er&&Er[0].length>2){if(Zr=Er[0].length,S.index+=Zr,Zr%2!==0)Z+="\\"}if(t.unescape===!0)Z=zr();else Z+=zr();if(S.brackets===0){Vr({type:"text",value:Z});continue}}if(S.brackets>0&&(Z!=="]"||U.value==="["||U.value==="[^")){if(t.posix!==!1&&Z===":"){let pr=U.value.slice(1);if(pr.includes("[")){if(U.posix=!0,pr.includes(":")){let Er=U.value.lastIndexOf("["),Zr=U.value.slice(0,Er),kr=U.value.slice(Er+2),Dr=$Lr[kr];if(Dr){if(U.value=Zr+Dr,S.backtrack=!0,zr(),!u.output&&h.indexOf(U)===1)u.output=L;continue}}}}if(Z==="["&&Pr()!==":"||Z==="-"&&Pr()==="]")Z=`\\${Z}`;if(Z==="]"&&(U.value==="["||U.value==="[^"))Z=`\\${Z}`;if(t.posix===!0&&Z==="!"&&U.value==="[")Z="^";U.value+=Z,$i({value:Z});continue}if(S.quotes===1&&Z!=='"'){Z=xe.escapeRegex(Z),U.value+=Z,$i({value:Z});continue}if(Z==='"'){if(S.quotes=S.quotes===1?0:1,t.keepQuotes===!0)Vr({type:"text",value:Z});continue}if(Z==="("){zi("parens"),Vr({type:"paren",value:Z});continue}if(Z===")"){if(S.parens===0&&t.strictBrackets===!0)throw SyntaxError(B1("opening","("));let pr=k[k.length-1];if(pr&&S.parens===pr.parens+1){Jr(k.pop());continue}Vr({type:"paren",value:Z,output:S.parens?")":"\\)"}),Yr("parens");continue}if(Z==="["){if(t.nobracket===!0||!jr().includes("]")){if(t.nobracket!==!0&&t.strictBrackets===!0)throw SyntaxError(B1("closing","]"));Z=`\\${Z}`}else zi("brackets");Vr({type:"bracket",value:Z});continue}if(Z==="]"){if(t.nobracket===!0||U&&U.type==="bracket"&&U.value.length===1){Vr({type:"text",value:Z,output:`\\${Z}`});continue}if(S.brackets===0){if(t.strictBrackets===!0)throw SyntaxError(B1("opening","["));Vr({type:"text",value:Z,output:`\\${Z}`});continue}Yr("brackets");let pr=U.value.slice(1);if(U.posix!==!0&&pr[0]==="^"&&!pr.includes("/"))Z=`/${Z}`;if(U.value+=Z,$i({value:Z}),t.literalBrackets===!1||xe.hasRegexChars(pr))continue;let Er=xe.escapeRegex(U.value);if(S.output=S.output.slice(0,-U.value.length),t.literalBrackets===!0){S.output+=Er,U.value=Er;continue}U.value=`(${c}${Er}|${U.value})`,S.output+=U.value;continue}if(Z==="{"&&t.nobrace!==!0){zi("braces");let pr={type:"brace",value:Z,output:"(",outputIndex:S.output.length,tokensIndex:S.tokens.length};er.push(pr),Vr(pr);continue}if(Z==="}"){let pr=er[er.length-1];if(t.nobrace===!0||!pr){Vr({type:"text",value:Z,output:Z});continue}let Er=")";if(pr.dots===!0){let Zr=h.slice(),kr=[];for(let Dr=Zr.length-1;Dr>=0;Dr--){if(h.pop(),Zr[Dr].type==="brace")break;if(Zr[Dr].type!=="dots")kr.unshift(Zr[Dr].value)}Er=ALr(kr,t),S.backtrack=!0}if(pr.comma!==!0&&pr.dots!==!0){let Zr=S.output.slice(0,pr.outputIndex),kr=S.tokens.slice(pr.tokensIndex);pr.value=pr.output="\\{",Z=Er="\\}",S.output=Zr;for(let Dr of kr)S.output+=Dr.output||Dr.value}Vr({type:"brace",value:Z,output:Er}),Yr("braces"),er.pop();continue}if(Z==="|"){if(k.length>0)k[k.length-1].conditions++;Vr({type:"text",value:Z});continue}if(Z===","){let pr=Z,Er=er[er.length-1];if(Er&&tr[tr.length-1]==="braces")Er.comma=!0,pr="|";Vr({type:"comma",value:Z,output:pr});continue}if(Z==="/"){if(U.type==="dot"&&S.index===S.start+1){S.start=S.index+1,S.consumed="",S.output="",h.pop(),U=u;continue}Vr({type:"slash",value:Z,output:o});continue}if(Z==="."){if(S.braces>0&&U.type==="dot"){if(U.value===".")U.output=M;let pr=er[er.length-1];U.type="dots",U.output+=Z,U.value+=Z,pr.dots=!0;continue}if(S.braces+S.parens===0&&U.type!=="bos"&&U.type!=="slash"){Vr({type:"text",value:Z,output:M});continue}Vr({type:"dot",value:Z,output:M});continue}if(Z==="?"){if(!(U&&U.value==="(")&&t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){lt("qmark",Z);continue}if(U&&U.type==="paren"){let Er=Pr(),Zr=Z;if(Er==="<"&&!xe.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(U.value==="("&&!/[!=<:]/.test(Er)||Er==="<"&&!/<([!=]|\w+>)/.test(jr()))Zr=`\\${Z}`;Vr({type:"text",value:Z,output:Zr});continue}if(t.dot!==!0&&(U.type==="slash"||U.type==="bos")){Vr({type:"qmark",value:Z,output:sr});continue}Vr({type:"qmark",value:Z,output:W});continue}if(Z==="!"){if(t.noextglob!==!0&&Pr()==="("){if(Pr(2)!=="?"||!/[!=<:]/.test(Pr(3))){lt("negate",Z);continue}}if(t.nonegate!==!0&&S.index===0){ji();continue}}if(Z==="+"){if(t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){lt("plus",Z);continue}if(U&&U.value==="("||t.regex===!1){Vr({type:"plus",value:Z,output:b});continue}if(U&&(U.type==="bracket"||U.type==="paren"||U.type==="brace")||S.parens>0){Vr({type:"plus",value:Z});continue}Vr({type:"plus",value:b});continue}if(Z==="@"){if(t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){Vr({type:"at",extglob:!0,value:Z,output:""});continue}Vr({type:"text",value:Z});continue}if(Z!=="*"){if(Z==="$"||Z==="^")Z=`\\${Z}`;let pr=gLr.exec(jr());if(pr)Z+=pr[0],S.index+=pr[0].length;Vr({type:"text",value:Z});continue}if(U&&(U.type==="globstar"||U.star===!0)){U.type="star",U.star=!0,U.value+=Z,U.output=V,S.backtrack=!0,S.globstar=!0,ri(Z);continue}let dr=jr();if(t.noextglob!==!0&&/^\([^?]/.test(dr)){lt("star",Z);continue}if(U.type==="star"){if(t.noglobstar===!0){ri(Z);continue}let pr=U.prev,Er=pr.prev,Zr=pr.type==="slash"||pr.type==="bos",kr=Er&&(Er.type==="star"||Er.type==="globstar");if(t.bash===!0&&(!Zr||dr[0]&&dr[0]!=="/")){Vr({type:"star",value:Z,output:""});continue}let Dr=S.braces>0&&(pr.type==="comma"||pr.type==="brace"),et=k.length&&(pr.type==="pipe"||pr.type==="paren");if(!Zr&&pr.type!=="paren"&&!Dr&&!et){Vr({type:"star",value:Z,output:""});continue}while(dr.slice(0,3)==="/**"){let Pt=r[S.index+4];if(Pt&&Pt!=="/")break;dr=dr.slice(3),ri("/**",3)}if(pr.type==="bos"&&Cr()){U.type="globstar",U.value+=Z,U.output=vr(t),S.output=U.output,S.globstar=!0,ri(Z);continue}if(pr.type==="slash"&&pr.prev.type!=="bos"&&!kr&&Cr()){S.output=S.output.slice(0,-(pr.output+U.output).length),pr.output=`(?:${pr.output}`,U.type="globstar",U.output=vr(t)+(t.strictSlashes?")":"|$)"),U.value+=Z,S.globstar=!0,S.output+=pr.output+U.output,ri(Z);continue}if(pr.type==="slash"&&pr.prev.type!=="bos"&&dr[0]==="/"){let Pt=dr[1]!==void 0?"|$":"";S.output=S.output.slice(0,-(pr.output+U.output).length),pr.output=`(?:${pr.output}`,U.type="globstar",U.output=`${vr(t)}${o}|${o}${Pt})`,U.value+=Z,S.output+=pr.output+U.output,S.globstar=!0,ri(Z+zr()),Vr({type:"slash",value:"/",output:""});continue}if(pr.type==="bos"&&dr[0]==="/"){U.type="globstar",U.value+=Z,U.output=`(?:^|${o}|${vr(t)}${o})`,S.output=U.output,S.globstar=!0,ri(Z+zr()),Vr({type:"slash",value:"/",output:""});continue}S.output=S.output.slice(0,-U.output.length),U.type="globstar",U.output=vr(t),U.value+=Z,S.output+=U.output,S.globstar=!0,ri(Z);continue}let Ar={type:"star",value:Z,output:V};if(t.bash===!0){if(Ar.output=".*?",U.type==="bos"||U.type==="slash")Ar.output=q+Ar.output;Vr(Ar);continue}if(U&&(U.type==="bracket"||U.type==="paren")&&t.regex===!0){Ar.output=Z,Vr(Ar);continue}if(S.index===S.start||U.type==="slash"||U.type==="dot"){if(U.type==="dot")S.output+=H,U.output+=H;else if(t.dot===!0)S.output+=J,U.output+=J;else S.output+=q,U.output+=q;if(Pr()!=="*")S.output+=L,U.output+=L}Vr(Ar)}while(S.brackets>0){if(t.strictBrackets===!0)throw SyntaxError(B1("closing","]"));S.output=xe.escapeLast(S.output,"["),Yr("brackets")}while(S.parens>0){if(t.strictBrackets===!0)throw SyntaxError(B1("closing",")"));S.output=xe.escapeLast(S.output,"("),Yr("parens")}while(S.braces>0){if(t.strictBrackets===!0)throw SyntaxError(B1("closing","}"));S.output=xe.escapeLast(S.output,"{"),Yr("braces")}if(t.strictSlashes!==!0&&(U.type==="star"||U.type==="bracket"))Vr({type:"maybe_slash",value:"",output:`${o}?`});if(S.backtrack===!0){S.output="";for(let dr of S.tokens)if(S.output+=dr.output!=null?dr.output:dr.value,dr.suffix)S.output+=dr.suffix}return S};S5.fastpaths=(r,i)=>{let t={...i},s=typeof t.maxLength==="number"?Math.min(s2,t.maxLength):s2,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);r=Fur[r]||r;let u=xe.isWindows(i),{DOT_LITERAL:h,SLASH_LITERAL:c,ONE_CHAR:p,DOTS_SLASH:w,NO_DOT:P,NO_DOTS:M,NO_DOTS_SLASH:b,STAR:o,START_ANCHOR:L}=hp.globChars(u),I=t.dot?M:P,j=t.dot?b:P,H=t.capture?"":"?:",J={negated:!1,prefix:""},W=t.bash===!0?".*?":o;if(t.capture)W=`(${W})`;let sr=(q)=>{if(q.noglobstar===!0)return W;return`(${H}(?:(?!${L}${q.dot?w:h}).)*?)`},rr=(q)=>{switch(q){case"*":return`${I}${p}${W}`;case".*":return`${h}${p}${W}`;case"*.*":return`${I}${W}${h}${p}${W}`;case"*/*":return`${I}${W}${c}${p}${j}${W}`;case"**":return I+sr(t);case"**/*":return`(?:${I}${sr(t)}${c})?${j}${p}${W}`;case"**/*.*":return`(?:${I}${sr(t)}${c})?${j}${W}${h}${p}${W}`;case"**/.*":return`(?:${I}${sr(t)}${c})?${h}${p}${W}`;default:{let T=/^(.*?)\.(\w+)$/.exec(q);if(!T)return;let V=rr(T[1]);if(!V)return;return V+h+T[2]}}},hr=xe.removePrefix(r,J),vr=rr(hr);if(vr&&t.strictSlashes!==!0)vr+=`${c}?`;return vr};Uur.exports=S5});var zur=cr((svi,jur)=>{var ELr=Ye("path"),VLr=Iur(),T5=Nur(),O5=e2(),ILr=up(),FLr=(r)=>r&&typeof r==="object"&&!Array.isArray(r),he=(r,i,t=!1)=>{if(Array.isArray(r)){let P=r.map((b)=>he(b,i,t));return(b)=>{for(let o of P){let L=o(b);if(L)return L}return!1}}let s=FLr(r)&&r.tokens&&r.input;if(r===""||typeof r!=="string"&&!s)throw TypeError("Expected pattern to be a non-empty string");let l=i||{},u=O5.isWindows(i),h=s?he.compileRe(r,i):he.makeRe(r,i,!1,!0),c=h.state;delete h.state;let p=()=>!1;if(l.ignore){let P={...i,ignore:null,onMatch:null,onResult:null};p=he(l.ignore,P,t)}let w=(P,M=!1)=>{let{isMatch:b,match:o,output:L}=he.test(P,h,i,{glob:r,posix:u}),I={glob:r,state:c,regex:h,posix:u,input:P,output:L,match:o,isMatch:b};if(typeof l.onResult==="function")l.onResult(I);if(b===!1)return I.isMatch=!1,M?I:!1;if(p(P)){if(typeof l.onIgnore==="function")l.onIgnore(I);return I.isMatch=!1,M?I:!1}if(typeof l.onMatch==="function")l.onMatch(I);return M?I:!0};if(t)w.state=c;return w};he.test=(r,i,t,{glob:s,posix:l}={})=>{if(typeof r!=="string")throw TypeError("Expected input to be a string");if(r==="")return{isMatch:!1,output:""};let u=t||{},h=u.format||(l?O5.toPosixSlashes:null),c=r===s,p=c&&h?h(r):r;if(c===!1)p=h?h(r):r,c=p===s;if(c===!1||u.capture===!0)if(u.matchBase===!0||u.basename===!0)c=he.matchBase(r,i,t,l);else c=i.exec(p);return{isMatch:Boolean(c),match:c,output:p}};he.matchBase=(r,i,t,s=O5.isWindows(t))=>{return(i instanceof RegExp?i:he.makeRe(i,t)).test(ELr.basename(r))};he.isMatch=(r,i,t)=>he(i,t)(r);he.parse=(r,i)=>{if(Array.isArray(r))return r.map((t)=>he.parse(t,i));return T5(r,{...i,fastpaths:!1})};he.scan=(r,i)=>VLr(r,i);he.compileRe=(r,i,t=!1,s=!1)=>{if(t===!0)return r.output;let l=i||{},u=l.contains?"":"^",h=l.contains?"":"$",c=`${u}(?:${r.output})${h}`;if(r&&r.negated===!0)c=`^(?!${c}).*$`;let p=he.toRegex(c,i);if(s===!0)p.state=r;return p};he.makeRe=(r,i={},t=!1,s=!1)=>{if(!r||typeof r!=="string")throw TypeError("Expected a non-empty string");let l={negated:!1,fastpaths:!0};if(i.fastpaths!==!1&&(r[0]==="."||r[0]==="*"))l.output=T5.fastpaths(r,i);if(!l.output)l=T5(r,i);return he.compileRe(l,i,t,s)};he.toRegex=(r,i)=>{try{let t=i||{};return new RegExp(r,t.flags||(t.nocase?"i":""))}catch(t){if(i&&i.debug===!0)throw t;return/$^/}};he.constants=ILr;jur.exports=he});import O7,{resolve as zs,basename as tf,extname as _u,dirname as dl,relative as L7,win32 as ovi,posix as bvi,isAbsolute as dvi,join as hEr}from"path";import E7 from"process";import{performance as Chr}from"perf_hooks";import{createHash as nEr}from"crypto";import{promises as nh}from"fs";import{EventEmitter as cEr}from"events";function yEr(r){var i=[],t=[],s=[0,0,0,0,0],l=0;for(var u=0,h=0,c=0;u<r.length;u++){var p=r.charCodeAt(u);if(p===44)j5(t,s,l),l=0;else if(p===59)j5(t,s,l),l=0,i.push(t),t=[],s[0]=0;else{var w=qhr[p];if(w===void 0)throw Error("Invalid character ("+String.fromCharCode(p)+")");var P=w&32;if(w&=31,c+=w<<h,P)h+=5;else{var M=c&1;if(c>>>=1,M)c=c===0?-2147483648:-c;s[l]+=c,l++,c=h=0}}}return j5(t,s,l),i.push(t),i}function j5(r,i,t){if(t===4)r.push([i[0],i[1],i[2],i[3]]);else if(t===5)r.push([i[0],i[1],i[2],i[3],i[4]]);else if(t===1)r.push([i[0]])}function vEr(r){var i=0,t=0,s=0,l=0,u="";for(var h=0;h<r.length;h++){var c=r[h];if(h>0)u+=";";if(c.length===0)continue;var p=0,w=[];for(var P=0,M=c;P<M.length;P++){var b=M[P],o=cp(b[0]-p);if(p=b[0],b.length>1)o+=cp(b[1]-i)+cp(b[2]-t)+cp(b[3]-s),i=b[1],t=b[2],s=b[3];if(b.length===5)o+=cp(b[4]-l),l=b[4];w.push(o)}u+=w.join(",")}return u}function cp(r){var i="";r=r<0?-r<<1|1:r<<1;do{var t=r&31;if(r>>>=5,r>0)t|=32;i+=l7[t]}while(r>0);return i}class R2{constructor(r){this.bits=r instanceof R2?r.bits.slice():[]}add(r){this.bits[r>>5]|=1<<(r&31)}has(r){return!!(this.bits[r>>5]&1<<(r&31))}}class gp{constructor(r,i,t){this.start=r,this.end=i,this.original=t,this.intro="",this.outro="",this.content=t,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})}appendLeft(r){this.outro+=r}appendRight(r){this.intro=this.intro+r}clone(){let r=new gp(this.start,this.end,this.original);return r.intro=this.intro,r.outro=this.outro,r.content=this.content,r.storeName=this.storeName,r.edited=this.edited,r}contains(r){return this.start<r&&r<this.end}eachNext(r){let i=this;while(i)r(i),i=i.next}eachPrevious(r){let i=this;while(i)r(i),i=i.previous}edit(r,i,t){if(this.content=r,!t)this.intro="",this.outro="";return this.storeName=i,this.edited=!0,this}prependLeft(r){this.outro=r+this.outro}prependRight(r){this.intro=r+this.intro}split(r){let i=r-this.start,t=this.original.slice(0,i),s=this.original.slice(i);this.original=t;let l=new gp(r,this.end,s);if(l.outro=this.outro,this.outro="",this.end=r,this.edited)l.edit("",!1),this.content="";else this.content=t;if(l.next=this.next,l.next)l.next.previous=l;return l.previous=this,this.next=l,l}toString(){return this.intro+this.content+this.outro}trimEnd(r){if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let i=this.content.replace(r,"");if(i.length){if(i!==this.content)this.split(this.start+i.length).edit("",void 0,!0);return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(r,""),this.intro.length)return!0}trimStart(r){if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let i=this.content.replace(r,"");if(i.length){if(i!==this.content)this.split(this.end-i.length),this.edit("",void 0,!0);return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(r,""),this.outro.length)return!0}}class Up{constructor(r){this.version=3,this.file=r.file,this.sources=r.sources,this.sourcesContent=r.sourcesContent,this.names=r.names,this.mappings=vEr(r.mappings)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+u7(this.toString())}}function pEr(r){let i=r.split(`
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,h=!1,c;return{s:function(){t=t.call(r)},n:function(){var w=t.next();return u=w.done,w},e:function(w){h=!0,c=w},f:function(){try{if(!u&&t.return!=null)t.return()}finally{if(h)throw c}}}}function Str(r,i){if(!r)return;if(typeof r==="string")return Rtr(r,i);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor)t=r.constructor.name;if(t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Rtr(r,i)}function Rtr(r,i){if(i==null||i>r.length)i=r.length;for(var t=0,s=Array(i);t<i;t++)s[t]=r[t];return s}var na=[],qw=bMr(yMr.default.entries()),Atr;try{C$=function(){var i=Pw(Atr.value,2),t=i[0],s=i[1],l=s.relatedConcepts;if(Array.isArray(l))l.forEach(function(u){if(u.module==="HTML"){var h=u.concept;if(h!=null){var c=JSON.stringify(h),p,w=0;for(;w<na.length;w++){var P=na[w][0];if(JSON.stringify(P)===c){p=na[w][1];break}}if(!Array.isArray(p))p=[];var M=p.findIndex(function(b){return b===t});if(M===-1)p.push(t);if(w<na.length)na.splice(w,1,[h,p]);else na.push([h,p])}}})};for(qw.s();!(Atr=qw.n()).done;)C$()}catch(r){qw.e(r)}finally{qw.f()}var C$;function dMr(r,i){if(r===void 0&&i!==void 0)return!1;if(r!==void 0&&i===void 0)return!1;if(r!==void 0&&i!==void 0){if(r.length!=i.length)return!1;for(var t=0;t<r.length;t++)if(i[t].name!==r[t].name||i[t].value!==r[t].value)return!1}return!0}var q$={entries:function(){return na},forEach:function(i){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(var s=0,l=na;s<l.length;s++){var u=Pw(l[s],2),h=u[0],c=u[1];i.call(t,c,h,na)}},get:function(i){var t=na.find(function(s){return i.name===s[0].name&&dMr(i.attributes,s[0].attributes)});return t&&t[1]},has:function(i){return!!q$.get(i)},keys:function(){return na.map(function(i){var t=Pw(i,1),s=t[0];return s})},values:function(){return na.map(function(i){var t=Pw(i,2),s=t[1];return s})}},wMr=(0,vMr.default)(q$,q$.entries());Ttr.default=wMr});var P$=cr((Etr)=>{Object.defineProperty(Etr,"__esModule",{value:!0});Etr.elementAXObjects=Etr.AXObjects=Etr.AXObjectRoles=Etr.AXObjectElements=void 0;var CMr=$w(btr()),qMr=$w(gtr()),PMr=$w(Uv()),$Mr=$w(Ltr());function $w(r){return r&&r.__esModule?r:{default:r}}var gMr=CMr.default;Etr.AXObjectElements=gMr;var RMr=qMr.default;Etr.AXObjectRoles=RMr;var AMr=PMr.default;Etr.AXObjects=AMr;var MMr=$Mr.default;Etr.elementAXObjects=MMr});var Ilr=cr((Iyi,Vlr)=>{var{builtinModules:LTr}=Ye("module"),ETr=["sys"];Vlr.exports=(LTr||(process.binding?Object.keys(process.binding("natives")):[])||[]).filter((r)=>!/^_|^(internal|v8|node-inspect)\/|\//.test(r)&&!ETr.includes(r)).sort()});var Blr=cr((Fyi,Flr)=>{var VTr=Ilr(),ITr=new Set(VTr);Flr.exports=(r)=>{if(typeof r!=="string")throw TypeError("Expected a string");if(r.startsWith("node:"))r=r.slice(5);let i=r.indexOf("/");if(i!==-1&&i!==r.length-1)r=r.slice(0,i);return ITr.has(r)}});var jlr=cr((Byi,Nlr)=>{var FTr=function(i){return BTr(i)&&!HTr(i)};function BTr(r){return!!r&&typeof r==="object"}function HTr(r){var i=Object.prototype.toString.call(r);return i==="[object RegExp]"||i==="[object Date]"||jTr(r)}var UTr=typeof Symbol==="function"&&Symbol.for,NTr=UTr?Symbol.for("react.element"):60103;function jTr(r){return r.$$typeof===NTr}function zTr(r){return Array.isArray(r)?[]:{}}function ip(r,i){return i.clone!==!1&&i.isMergeableObject(r)?F1(zTr(r),r,i):r}function ZTr(r,i,t){return r.concat(i).map(function(s){return ip(s,t)})}function QTr(r,i){if(!i.customMerge)return F1;var t=i.customMerge(r);return typeof t==="function"?t:F1}function JTr(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(i){return Object.propertyIsEnumerable.call(r,i)}):[]}function Hlr(r){return Object.keys(r).concat(JTr(r))}function Ulr(r,i){try{return i in r}catch(t){return!1}}function YTr(r,i){return Ulr(r,i)&&!(Object.hasOwnProperty.call(r,i)&&Object.propertyIsEnumerable.call(r,i))}function WTr(r,i,t){var s={};if(t.isMergeableObject(r))Hlr(r).forEach(function(l){s[l]=ip(r[l],t)});return Hlr(i).forEach(function(l){if(YTr(r,l))return;if(Ulr(r,l)&&t.isMergeableObject(i[l]))s[l]=QTr(l,t)(r[l],i[l],t);else s[l]=ip(i[l],t)}),s}function F1(r,i,t){t=t||{},t.arrayMerge=t.arrayMerge||ZTr,t.isMergeableObject=t.isMergeableObject||FTr,t.cloneUnlessOtherwiseSpecified=ip;var s=Array.isArray(i),l=Array.isArray(r),u=s===l;if(!u)return ip(i,t);else if(s)return t.arrayMerge(r,i,t);else return WTr(r,i,t)}F1.all=function(i,t){if(!Array.isArray(i))throw Error("first argument should be an array");return i.reduce(function(s,l){return F1(s,l,t)},{})};var GTr=F1;Nlr.exports=GTr});var Zlr=cr((Hyi,zlr)=>{var KTr=/(?:^\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]*))/,XTr=/(?:^\s*|[}{\(\);,\n]\s*)(export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)"))/;zlr.exports=function(r){return KTr.test(r)||XTr.test(r)}});var o5=cr((Uyi,Qlr)=>{var DTr=Ye("os");Qlr.exports=DTr.homedir||function(){var i=process.env.HOME,t=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||i||null;if(process.platform==="darwin")return i||(t?"/Users/"+t:null);if(process.platform==="linux")return i||(process.getuid()===0?"/root":t?"/home/"+t:null);return i||null}});var b5=cr((Nyi,Jlr)=>{Jlr.exports=function(){var r=Error.prepareStackTrace;Error.prepareStackTrace=function(t,s){return s};var i=Error().stack;return Error.prepareStackTrace=r,i[2].getFileName()}});var Ylr=cr((jyi,tp)=>{var kTr=process.platform==="win32",_Tr=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,d5={};function xTr(r){return _Tr.exec(r).slice(1)}d5.parse=function(r){if(typeof r!=="string")throw TypeError("Parameter 'pathString' must be a string, not "+typeof r);var i=xTr(r);if(!i||i.length!==5)throw TypeError("Invalid path '"+r+"'");return{root:i[1],dir:i[0]===i[1]?i[0]:i[0].slice(0,-1),base:i[2],ext:i[4],name:i[3]}};var rOr=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,w5={};function iOr(r){return rOr.exec(r).slice(1)}w5.parse=function(r){if(typeof r!=="string")throw TypeError("Parameter 'pathString' must be a string, not "+typeof r);var i=iOr(r);if(!i||i.length!==5)throw TypeError("Invalid path '"+r+"'");return{root:i[1],dir:i[0].slice(0,-1),base:i[2],ext:i[4],name:i[3]}};if(kTr)tp.exports=d5.parse;else tp.exports=w5.parse;tp.exports.posix=w5.parse;tp.exports.win32=d5.parse});var C5=cr((zyi,Xlr)=>{var Klr=Ye("path"),Wlr=Klr.parse||Ylr(),tOr=/^([A-Za-z]:)/,eOr=/^\\\\/,Glr=function(i,t){var s="/";if(tOr.test(i))s="";else if(eOr.test(i))s="\\\\";var l=[i],u=Wlr(i);while(u.dir!==l[l.length-1])l.push(u.dir),u=Wlr(u.dir);return l.reduce(function(h,c){return h.concat(t.map(function(p){return Klr.resolve(s,c,p)}))},[])};Xlr.exports=function(i,t,s){var l=t&&t.moduleDirectory?[].concat(t.moduleDirectory):["node_modules"];if(t&&typeof t.paths==="function")return t.paths(s,i,function(){return Glr(i,l)},t);var u=Glr(i,l);return t&&t.paths?u.concat(t.paths):u}});var q5=cr((Zyi,Dlr)=>{Dlr.exports=function(r,i){return i||{}}});var xlr=cr((Qyi,_lr)=>{var sOr="Function.prototype.bind called on incompatible ",aOr=Object.prototype.toString,lOr=Math.max,uOr="[object Function]",klr=function(i,t){var s=[];for(var l=0;l<i.length;l+=1)s[l]=i[l];for(var u=0;u<t.length;u+=1)s[u+i.length]=t[u];return s},fOr=function(i,t){var s=[];for(var l=t||0,u=0;l<i.length;l+=1,u+=1)s[u]=i[l];return s},hOr=function(r,i){var t="";for(var s=0;s<r.length;s+=1)if(t+=r[s],s+1<r.length)t+=i;return t};_lr.exports=function(i){var t=this;if(typeof t!=="function"||aOr.apply(t)!==uOr)throw TypeError(sOr+t);var s=fOr(arguments,1),l,u=function(){if(this instanceof l){var P=t.apply(this,klr(s,arguments));if(Object(P)===P)return P;return this}return t.apply(i,klr(s,arguments))},h=lOr(0,t.length-s.length),c=[];for(var p=0;p<h;p++)c[p]="$"+p;if(l=Function("binder","return function ("+hOr(c,",")+"){ return binder.apply(this,arguments); }")(u),t.prototype){var w=function(){};w.prototype=t.prototype,l.prototype=new w,w.prototype=null}return l}});var iur=cr((Jyi,rur)=>{var nOr=xlr();rur.exports=Function.prototype.bind||nOr});var eur=cr((Yyi,tur)=>{var cOr=Function.prototype.call,yOr=Object.prototype.hasOwnProperty,vOr=iur();tur.exports=vOr.call(cOr,yOr)});var sur=cr((Wyi,pOr)=>{pOr.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 ep=cr((Gyi,uur)=>{var mOr=eur();function oOr(r,i){var t=r.split("."),s=i.split(" "),l=s.length>1?s[0]:"=",u=(s.length>1?s[1]:s[0]).split(".");for(var h=0;h<3;++h){var c=parseInt(t[h]||0,10),p=parseInt(u[h]||0,10);if(c===p)continue;if(l==="<")return c<p;if(l===">=")return c>=p;return!1}return l===">="}function aur(r,i){var t=i.split(/ ?&& ?/);if(t.length===0)return!1;for(var s=0;s<t.length;++s)if(!oOr(r,t[s]))return!1;return!0}function bOr(r,i){if(typeof i==="boolean")return i;var t=typeof r>"u"?process.versions&&process.versions.node:r;if(typeof t!=="string")throw TypeError(typeof r>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(i&&typeof i==="object"){for(var s=0;s<i.length;++s)if(aur(t,i[s]))return!0;return!1}return aur(t,i)}var lur=sur();uur.exports=function(i,t){return mOr(lur,i)&&bOr(t,lur[i])}});var nur=cr((Kyi,hur)=>{var eh=Ye("fs"),dOr=o5(),ve=Ye("path"),wOr=b5(),COr=C5(),qOr=q5(),POr=ep(),$Or=process.platform!=="win32"&&eh.realpath&&typeof eh.realpath.native==="function"?eh.realpath.native:eh.realpath,gOr=/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/,ROr=/^\w:[/\\]*$/,AOr=/[/\\]node_modules[/\\]*$/,fur=dOr(),MOr=function(){return[ve.join(fur,".node_modules"),ve.join(fur,".node_libraries")]},SOr=function(i,t){eh.stat(i,function(s,l){if(!s)return t(null,l.isFile()||l.isFIFO());if(s.code==="ENOENT"||s.code==="ENOTDIR")return t(null,!1);return t(s)})},TOr=function(i,t){eh.stat(i,function(s,l){if(!s)return t(null,l.isDirectory());if(s.code==="ENOENT"||s.code==="ENOTDIR")return t(null,!1);return t(s)})},OOr=function(i,t){$Or(i,function(s,l){if(s&&s.code!=="ENOENT")t(s);else t(null,s?i:l)})},sp=function(i,t,s,l){if(s&&s.preserveSymlinks===!1)i(t,l);else l(null,t)},LOr=function(i,t,s){i(t,function(l,u){if(l)s(l);else try{var h=JSON.parse(u);s(null,h)}catch(c){s(null)}})},EOr=function(i,t,s){var l=COr(t,s,i);for(var u=0;u<l.length;u++)l[u]=ve.join(l[u],i);return l};hur.exports=function(i,t,s){var l=s,u=t;if(typeof t==="function")l=u,u={};if(typeof i!=="string"){var h=TypeError("Path must be a string.");return process.nextTick(function(){l(h)})}u=qOr(i,u);var c=u.isFile||SOr,p=u.isDirectory||TOr,w=u.readFile||eh.readFile,P=u.realpath||OOr,M=u.readPackage||LOr;if(u.readFile&&u.readPackage){var b=TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){l(b)})}var o=u.packageIterator,L=u.extensions||[".js"],I=u.includeCoreModules!==!1,j=u.basedir||ve.dirname(wOr()),H=u.filename||j;u.paths=u.paths||MOr();var J=ve.resolve(j);sp(P,J,u,function(S,k){if(S)l(S);else sr(k)});var W;function sr(S){if(gOr.test(i)){if(W=ve.resolve(S,i),i==="."||i===".."||i.slice(-1)==="/")W+="/";if(i.slice(-1)==="/"&&W===S)q(W,u.package,rr);else hr(W,u.package,rr)}else if(I&&POr(i))return l(null,i);else V(i,S,function(k,er,tr){if(k)l(k);else if(er)return sp(P,er,u,function(Z,Cr){if(Z)l(Z);else l(null,Cr,tr)});else{var U=Error("Cannot find module '"+i+"' from '"+H+"'");U.code="MODULE_NOT_FOUND",l(U)}})}function rr(S,k,er){if(S)l(S);else if(k)l(null,k,er);else q(W,function(tr,U,Z){if(tr)l(tr);else if(U)sp(P,U,u,function(Pr,jr){if(Pr)l(Pr);else l(null,jr,Z)});else{var Cr=Error("Cannot find module '"+i+"' from '"+H+"'");Cr.code="MODULE_NOT_FOUND",l(Cr)}})}function hr(S,k,er){var tr=k,U=er;if(typeof tr==="function")U=tr,tr=void 0;var Z=[""].concat(L);Cr(Z,S,tr);function Cr(Pr,jr,zr){if(Pr.length===0)return U(null,void 0,zr);var ri=jr+Pr[0],$i=zr;if($i)ji(null,$i);else vr(ve.dirname(ri),ji);function ji(Yr,Vr,lt){if($i=Vr,Yr)return U(Yr);if(lt&&$i&&u.pathFilter){var Jr=ve.relative(lt,ri),dr=Jr.slice(0,Jr.length-Pr[0].length),Ar=u.pathFilter($i,jr,dr);if(Ar)return Cr([""].concat(L.slice()),ve.resolve(lt,Ar),$i)}c(ri,zi)}function zi(Yr,Vr){if(Yr)return U(Yr);if(Vr)return U(null,ri,$i);Cr(Pr.slice(1),jr,$i)}}}function vr(S,k){if(S===""||S==="/")return k(null);if(process.platform==="win32"&&ROr.test(S))return k(null);if(AOr.test(S))return k(null);sp(P,S,u,function(er,tr){if(er)return vr(ve.dirname(S),k);var U=ve.join(tr,"package.json");c(U,function(Z,Cr){if(!Cr)return vr(ve.dirname(S),k);M(w,U,function(Pr,jr){if(Pr)k(Pr);var zr=jr;if(zr&&u.packageFilter)zr=u.packageFilter(zr,U);k(null,zr,S)})})})}function q(S,k,er){var tr=er,U=k;if(typeof U==="function")tr=U,U=u.package;sp(P,S,u,function(Z,Cr){if(Z)return tr(Z);var Pr=ve.join(Cr,"package.json");c(Pr,function(jr,zr){if(jr)return tr(jr);if(!zr)return hr(ve.join(S,"index"),U,tr);M(w,Pr,function(ri,$i){if(ri)return tr(ri);var ji=$i;if(ji&&u.packageFilter)ji=u.packageFilter(ji,Pr);if(ji&&ji.main){if(typeof ji.main!=="string"){var zi=TypeError("package “"+ji.name+"” `main` must be a string");return zi.code="INVALID_PACKAGE_MAIN",tr(zi)}if(ji.main==="."||ji.main==="./")ji.main="index";hr(ve.resolve(S,ji.main),ji,function(Yr,Vr,lt){if(Yr)return tr(Yr);if(Vr)return tr(null,Vr,lt);if(!lt)return hr(ve.join(S,"index"),lt,tr);var Jr=ve.resolve(S,lt.main);q(Jr,lt,function(dr,Ar,pr){if(dr)return tr(dr);if(Ar)return tr(null,Ar,pr);hr(ve.join(S,"index"),pr,tr)})});return}hr(ve.join(S,"/index"),ji,tr)})})})}function T(S,k){if(k.length===0)return S(null,void 0);var er=k[0];p(ve.dirname(er),tr);function tr(Cr,Pr){if(Cr)return S(Cr);if(!Pr)return T(S,k.slice(1));hr(er,u.package,U)}function U(Cr,Pr,jr){if(Cr)return S(Cr);if(Pr)return S(null,Pr,jr);q(er,u.package,Z)}function Z(Cr,Pr,jr){if(Cr)return S(Cr);if(Pr)return S(null,Pr,jr);T(S,k.slice(1))}}function V(S,k,er){var tr=function(){return EOr(S,k,u)};T(er,o?o(S,k,tr,u):tr())}}});var cur=cr((Xyi,VOr)=>{VOr.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 mur=cr((Dyi,pur)=>{var IOr=ep(),yur=cur(),vur={};for(ap in yur)if(Object.prototype.hasOwnProperty.call(yur,ap))vur[ap]=IOr(ap);var ap;pur.exports=vur});var bur=cr((kyi,our)=>{var FOr=ep();our.exports=function(i){return FOr(i)}});var Cur=cr((_yi,wur)=>{var BOr=ep(),sh=Ye("fs"),_e=Ye("path"),HOr=o5(),UOr=b5(),NOr=C5(),jOr=q5(),zOr=process.platform!=="win32"&&sh.realpathSync&&typeof sh.realpathSync.native==="function"?sh.realpathSync.native:sh.realpathSync,ZOr=/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/,QOr=/^\w:[/\\]*$/,JOr=/[/\\]node_modules[/\\]*$/,dur=HOr(),YOr=function(){return[_e.join(dur,".node_modules"),_e.join(dur,".node_libraries")]},WOr=function(i){try{var t=sh.statSync(i,{throwIfNoEntry:!1})}catch(s){if(s&&(s.code==="ENOENT"||s.code==="ENOTDIR"))return!1;throw s}return!!t&&(t.isFile()||t.isFIFO())},GOr=function(i){try{var t=sh.statSync(i,{throwIfNoEntry:!1})}catch(s){if(s&&(s.code==="ENOENT"||s.code==="ENOTDIR"))return!1;throw s}return!!t&&t.isDirectory()},KOr=function(i){try{return zOr(i)}catch(t){if(t.code!=="ENOENT")throw t}return i},lp=function(i,t,s){if(s&&s.preserveSymlinks===!1)return i(t);return t},XOr=function(i,t){var s=i(t);try{var l=JSON.parse(s);return l}catch(u){}},DOr=function(i,t,s){var l=NOr(t,s,i);for(var u=0;u<l.length;u++)l[u]=_e.join(l[u],i);return l};wur.exports=function(i,t){if(typeof i!=="string")throw TypeError("Path must be a string.");var s=jOr(i,t),l=s.isFile||WOr,u=s.readFileSync||sh.readFileSync,h=s.isDirectory||GOr,c=s.realpathSync||KOr,p=s.readPackageSync||XOr;if(s.readFileSync&&s.readPackageSync)throw TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var w=s.packageIterator,P=s.extensions||[".js"],M=s.includeCoreModules!==!1,b=s.basedir||_e.dirname(UOr()),o=s.filename||b;s.paths=s.paths||YOr();var L=lp(c,_e.resolve(b),s);if(ZOr.test(i)){var I=_e.resolve(L,i);if(i==="."||i===".."||i.slice(-1)==="/")I+="/";var j=W(I)||rr(I);if(j)return lp(c,j,s)}else if(M&&BOr(i))return i;else{var H=hr(i,L);if(H)return lp(c,H,s)}var J=Error("Cannot find module '"+i+"' from '"+o+"'");throw J.code="MODULE_NOT_FOUND",J;function W(vr){var q=sr(_e.dirname(vr));if(q&&q.dir&&q.pkg&&s.pathFilter){var T=_e.relative(q.dir,vr),V=s.pathFilter(q.pkg,vr,T);if(V)vr=_e.resolve(q.dir,V)}if(l(vr))return vr;for(var S=0;S<P.length;S++){var k=vr+P[S];if(l(k))return k}}function sr(vr){if(vr===""||vr==="/")return;if(process.platform==="win32"&&QOr.test(vr))return;if(JOr.test(vr))return;var q=_e.join(lp(c,vr,s),"package.json");if(!l(q))return sr(_e.dirname(vr));var T=p(u,q);if(T&&s.packageFilter)T=s.packageFilter(T,vr);return{pkg:T,dir:vr}}function rr(vr){var q=_e.join(lp(c,vr,s),"/package.json");if(l(q)){try{var T=p(u,q)}catch(er){}if(T&&s.packageFilter)T=s.packageFilter(T,vr);if(T&&T.main){if(typeof T.main!=="string"){var V=TypeError("package “"+T.name+"” `main` must be a string");throw V.code="INVALID_PACKAGE_MAIN",V}if(T.main==="."||T.main==="./")T.main="index";try{var S=W(_e.resolve(vr,T.main));if(S)return S;var k=rr(_e.resolve(vr,T.main));if(k)return k}catch(er){}}}return W(_e.join(vr,"/index"))}function hr(vr,q){var T=function(){return DOr(vr,q,s)},V=w?w(vr,q,T,s):T();for(var S=0;S<V.length;S++){var k=V[S];if(h(_e.dirname(k))){var er=W(k);if(er)return er;var tr=rr(k);if(tr)return tr}}}}});var Pur=cr((xyi,qur)=>{var t2=nur();t2.core=mur();t2.isCore=bur();t2.sync=Cur();qur.exports=t2});var up=cr((rvi,gur)=>{var kOr=Ye("path"),$ur={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:"(?:^|\\/)"},_Or={...$ur,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:"(?:[\\\\/]|$)"},xOr={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};gur.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:xOr,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:kOr.sep,extglobChars(r){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${r.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(r){return r===!0?_Or:$ur}}});var e2=cr((lLr)=>{var rLr=Ye("path"),iLr=process.platform==="win32",{REGEX_BACKSLASH:tLr,REGEX_REMOVE_BACKSLASH:eLr,REGEX_SPECIAL_CHARS:sLr,REGEX_SPECIAL_CHARS_GLOBAL:aLr}=up();lLr.isObject=(r)=>r!==null&&typeof r==="object"&&!Array.isArray(r);lLr.hasRegexChars=(r)=>sLr.test(r);lLr.isRegexChar=(r)=>r.length===1&&lLr.hasRegexChars(r);lLr.escapeRegex=(r)=>r.replace(aLr,"\\$1");lLr.toPosixSlashes=(r)=>r.replace(tLr,"/");lLr.removeBackslashes=(r)=>{return r.replace(eLr,(i)=>{return i==="\\"?"":i})};lLr.supportsLookbehinds=()=>{let r=process.version.slice(1).split(".").map(Number);if(r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10)return!0;return!1};lLr.isWindows=(r)=>{if(r&&typeof r.windows==="boolean")return r.windows;return iLr===!0||rLr.sep==="\\"};lLr.escapeLast=(r,i,t)=>{let s=r.lastIndexOf(i,t);if(s===-1)return r;if(r[s-1]==="\\")return lLr.escapeLast(r,i,s-1);return`${r.slice(0,s)}\\${r.slice(s)}`};lLr.removePrefix=(r,i={})=>{let t=r;if(t.startsWith("./"))t=t.slice(2),i.prefix="./";return t};lLr.wrapOutput=(r,i={},t={})=>{let s=t.contains?"":"^",l=t.contains?"":"$",u=`${s}(?:${r})${l}`;if(i.negated===!0)u=`(?:^(?!${u}).*$)`;return u}});var Iur=cr((tvi,Vur)=>{var Mur=e2(),{CHAR_ASTERISK:P5,CHAR_AT:oLr,CHAR_BACKWARD_SLASH:fp,CHAR_COMMA:bLr,CHAR_DOT:$5,CHAR_EXCLAMATION_MARK:g5,CHAR_FORWARD_SLASH:Eur,CHAR_LEFT_CURLY_BRACE:R5,CHAR_LEFT_PARENTHESES:A5,CHAR_LEFT_SQUARE_BRACKET:dLr,CHAR_PLUS:wLr,CHAR_QUESTION_MARK:Sur,CHAR_RIGHT_CURLY_BRACE:CLr,CHAR_RIGHT_PARENTHESES:Tur,CHAR_RIGHT_SQUARE_BRACKET:qLr}=up(),Our=(r)=>{return r===Eur||r===fp},Lur=(r)=>{if(r.isPrefix!==!0)r.depth=r.isGlobstar?1/0:1},PLr=(r,i)=>{let t=i||{},s=r.length-1,l=t.parts===!0||t.scanToEnd===!0,u=[],h=[],c=[],p=r,w=-1,P=0,M=0,b=!1,o=!1,L=!1,I=!1,j=!1,H=!1,J=!1,W=!1,sr=!1,rr=!1,hr=0,vr,q,T={value:"",depth:0,isGlob:!1},V=()=>w>=s,S=()=>p.charCodeAt(w+1),k=()=>{return vr=q,p.charCodeAt(++w)};while(w<s){q=k();let Cr;if(q===fp){if(J=T.backslashes=!0,q=k(),q===R5)H=!0;continue}if(H===!0||q===R5){hr++;while(V()!==!0&&(q=k())){if(q===fp){J=T.backslashes=!0,k();continue}if(q===R5){hr++;continue}if(H!==!0&&q===$5&&(q=k())===$5){if(b=T.isBrace=!0,L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(H!==!0&&q===bLr){if(b=T.isBrace=!0,L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===CLr){if(hr--,hr===0){H=!1,b=T.isBrace=!0,rr=!0;break}}}if(l===!0)continue;break}if(q===Eur){if(u.push(w),h.push(T),T={value:"",depth:0,isGlob:!1},rr===!0)continue;if(vr===$5&&w===P+1){P+=2;continue}M=w+1;continue}if(t.noext!==!0){if((q===wLr||q===oLr||q===P5||q===Sur||q===g5)===!0&&S()===A5){if(L=T.isGlob=!0,I=T.isExtglob=!0,rr=!0,q===g5&&w===P)sr=!0;if(l===!0){while(V()!==!0&&(q=k())){if(q===fp){J=T.backslashes=!0,q=k();continue}if(q===Tur){L=T.isGlob=!0,rr=!0;break}}continue}break}}if(q===P5){if(vr===P5)j=T.isGlobstar=!0;if(L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===Sur){if(L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===dLr){while(V()!==!0&&(Cr=k())){if(Cr===fp){J=T.backslashes=!0,k();continue}if(Cr===qLr){o=T.isBracket=!0,L=T.isGlob=!0,rr=!0;break}}if(l===!0)continue;break}if(t.nonegate!==!0&&q===g5&&w===P){W=T.negated=!0,P++;continue}if(t.noparen!==!0&&q===A5){if(L=T.isGlob=!0,l===!0){while(V()!==!0&&(q=k())){if(q===A5){J=T.backslashes=!0,q=k();continue}if(q===Tur){rr=!0;break}}continue}break}if(L===!0){if(rr=!0,l===!0)continue;break}}if(t.noext===!0)I=!1,L=!1;let er=p,tr="",U="";if(P>0)tr=p.slice(0,P),p=p.slice(P),M-=P;if(er&&L===!0&&M>0)er=p.slice(0,M),U=p.slice(M);else if(L===!0)er="",U=p;else er=p;if(er&&er!==""&&er!=="/"&&er!==p){if(Our(er.charCodeAt(er.length-1)))er=er.slice(0,-1)}if(t.unescape===!0){if(U)U=Mur.removeBackslashes(U);if(er&&J===!0)er=Mur.removeBackslashes(er)}let Z={prefix:tr,input:r,start:P,base:er,glob:U,isBrace:b,isBracket:o,isGlob:L,isExtglob:I,isGlobstar:j,negated:W,negatedExtglob:sr};if(t.tokens===!0){if(Z.maxDepth=0,!Our(q))h.push(T);Z.tokens=h}if(t.parts===!0||t.tokens===!0){let Cr;for(let Pr=0;Pr<u.length;Pr++){let jr=Cr?Cr+1:P,zr=u[Pr],ri=r.slice(jr,zr);if(t.tokens){if(Pr===0&&P!==0)h[Pr].isPrefix=!0,h[Pr].value=tr;else h[Pr].value=ri;Lur(h[Pr]),Z.maxDepth+=h[Pr].depth}if(Pr!==0||ri!=="")c.push(ri);Cr=zr}if(Cr&&Cr+1<r.length){let Pr=r.slice(Cr+1);if(c.push(Pr),t.tokens)h[h.length-1].value=Pr,Lur(h[h.length-1]),Z.maxDepth+=h[h.length-1].depth}Z.slashes=u,Z.parts=c}return Z};Vur.exports=PLr});var Nur=cr((evi,Uur)=>{var hp=up(),xe=e2(),{MAX_LENGTH:s2,POSIX_REGEX_SOURCE:$Lr,REGEX_NON_SPECIAL_CHARS:gLr,REGEX_SPECIAL_CHARS_BACKREF:RLr,REPLACEMENTS:Fur}=hp,ALr=(r,i)=>{if(typeof i.expandRange==="function")return i.expandRange(...r,i);r.sort();let t=`[${r.join("-")}]`;try{new RegExp(t)}catch(s){return r.map((l)=>xe.escapeRegex(l)).join("..")}return t},B1=(r,i)=>{return`Missing ${r}: "${i}" - use "\\\\${i}" to match literal characters`},Bur=(r)=>{let i=[],t=0,s=0,l=0,u="",h=!1;for(let c of r){if(h===!0){u+=c,h=!1;continue}if(c==="\\"){u+=c,h=!0;continue}if(c==='"'){l=l===1?0:1,u+=c;continue}if(l===0){if(c==="[")t++;else if(c==="]"&&t>0)t--;else if(t===0){if(c==="(")s++;else if(c===")"&&s>0)s--;else if(c==="|"&&s===0){i.push(u),u="";continue}}}u+=c}return i.push(u),i},MLr=(r)=>{let i=!1;for(let t of r){if(i===!0){i=!1;continue}if(t==="\\"){i=!0;continue}if(/[?*+@!()[\]{}]/.test(t))return!1}return!0},Hur=(r)=>{let i=r.trim(),t=!0;while(t===!0)if(t=!1,/^@\([^\\()[\]{}|]+\)$/.test(i))i=i.slice(2,-1),t=!0;if(!MLr(i))return;return i.replace(/\\(.)/g,"$1")},SLr=(r)=>{let i=r.map(Hur).filter(Boolean);for(let t=0;t<i.length;t++)for(let s=t+1;s<i.length;s++){let l=i[t],u=i[s],h=l[0];if(!h||l!==h.repeat(l.length)||u!==h.repeat(u.length))continue;if(l===u||l.startsWith(u)||u.startsWith(l))return!0}return!1},M5=(r,i=!0)=>{if(r[0]!=="+"&&r[0]!=="*"||r[1]!=="(")return;let t=0,s=0,l=0,u=!1;for(let h=1;h<r.length;h++){let c=r[h];if(u===!0){u=!1;continue}if(c==="\\"){u=!0;continue}if(c==='"'){l=l===1?0:1;continue}if(l===1)continue;if(c==="["){t++;continue}if(c==="]"&&t>0){t--;continue}if(t>0)continue;if(c==="("){s++;continue}if(c===")"){if(s--,s===0){if(i===!0&&h!==r.length-1)return;return{type:r[0],body:r.slice(2,h),end:h}}}}},TLr=(r)=>{let i=0,t=[];while(i<r.length){let l=M5(r.slice(i),!1);if(!l||l.type!=="*")return;let u=Bur(l.body).map((c)=>c.trim());if(u.length!==1)return;let h=Hur(u[0]);if(!h||h.length!==1)return;t.push(h),i+=l.end+1}if(t.length<1)return;return`${t.length===1?xe.escapeRegex(t[0]):`[${t.map((l)=>xe.escapeRegex(l)).join("")}]`}*`},OLr=(r)=>{let i=0,t=r.trim(),s=M5(t);while(s)i++,t=s.body.trim(),s=M5(t);return i},LLr=(r,i)=>{if(i.maxExtglobRecursion===!1)return{risky:!1};let t=typeof i.maxExtglobRecursion==="number"?i.maxExtglobRecursion:hp.DEFAULT_MAX_EXTGLOB_RECURSION,s=Bur(r).map((l)=>l.trim());if(s.length>1){if(s.some((l)=>l==="")||s.some((l)=>/^[*?]+$/.test(l))||SLr(s))return{risky:!0}}for(let l of s){let u=TLr(l);if(u)return{risky:!0,safeOutput:u};if(OLr(l)>t)return{risky:!0}}return{risky:!1}},S5=(r,i)=>{if(typeof r!=="string")throw TypeError("Expected a string");r=Fur[r]||r;let t={...i},s=typeof t.maxLength==="number"?Math.min(s2,t.maxLength):s2,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);let u={type:"bos",value:"",output:t.prepend||""},h=[u],c=t.capture?"":"?:",p=xe.isWindows(i),w=hp.globChars(p),P=hp.extglobChars(w),{DOT_LITERAL:M,PLUS_LITERAL:b,SLASH_LITERAL:o,ONE_CHAR:L,DOTS_SLASH:I,NO_DOT:j,NO_DOT_SLASH:H,NO_DOTS_SLASH:J,QMARK:W,QMARK_NO_DOT:sr,STAR:rr,START_ANCHOR:hr}=w,vr=(dr)=>{return`(${c}(?:(?!${hr}${dr.dot?I:M}).)*?)`},q=t.dot?"":j,T=t.dot?W:sr,V=t.bash===!0?vr(t):rr;if(t.capture)V=`(${V})`;if(typeof t.noext==="boolean")t.noextglob=t.noext;let S={input:r,index:-1,start:0,dot:t.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};r=xe.removePrefix(r,S),l=r.length;let k=[],er=[],tr=[],U=u,Z,Cr=()=>S.index===l-1,Pr=S.peek=(dr=1)=>r[S.index+dr],jr=S.advance=()=>r[++S.index]||"",zr=()=>r.slice(S.index+1),ri=(dr="",Ar=0)=>{S.consumed+=dr,S.index+=Ar},$i=(dr)=>{S.output+=dr.output!=null?dr.output:dr.value,ri(dr.value)},ji=()=>{let dr=1;while(Pr()==="!"&&(Pr(2)!=="("||Pr(3)==="?"))jr(),S.start++,dr++;if(dr%2===0)return!1;return S.negated=!0,S.start++,!0},zi=(dr)=>{S[dr]++,tr.push(dr)},Yr=(dr)=>{S[dr]--,tr.pop()},Vr=(dr)=>{if(U.type==="globstar"){let Ar=S.braces>0&&(dr.type==="comma"||dr.type==="brace"),pr=dr.extglob===!0||k.length&&(dr.type==="pipe"||dr.type==="paren");if(dr.type!=="slash"&&dr.type!=="paren"&&!Ar&&!pr)S.output=S.output.slice(0,-U.output.length),U.type="star",U.value="*",U.output=V,S.output+=U.output}if(k.length&&dr.type!=="paren")k[k.length-1].inner+=dr.value;if(dr.value||dr.output)$i(dr);if(U&&U.type==="text"&&dr.type==="text"){U.value+=dr.value,U.output=(U.output||"")+dr.value;return}dr.prev=U,h.push(dr),U=dr},lt=(dr,Ar)=>{let pr={...P[Ar],conditions:1,inner:""};pr.prev=U,pr.parens=S.parens,pr.output=S.output,pr.startIndex=S.index,pr.tokensIndex=h.length;let Er=(t.capture?"(":"")+pr.open;zi("parens"),Vr({type:dr,value:Ar,output:S.output?"":L}),Vr({type:"paren",extglob:!0,value:jr(),output:Er}),k.push(pr)},Jr=(dr)=>{let Ar=r.slice(dr.startIndex,S.index+1),pr=r.slice(dr.startIndex+2,S.index),Er=LLr(pr,t);if((dr.type==="plus"||dr.type==="star")&&Er.risky){let Dr=Er.safeOutput?(dr.output?"":L)+(t.capture?`(${Er.safeOutput})`:Er.safeOutput):void 0,et=h[dr.tokensIndex];et.type="text",et.value=Ar,et.output=Dr||xe.escapeRegex(Ar);for(let Pt=dr.tokensIndex+1;Pt<h.length;Pt++)h[Pt].value="",h[Pt].output="",delete h[Pt].suffix;S.output=dr.output+et.output,S.backtrack=!0,Vr({type:"paren",extglob:!0,value:Z,output:""}),Yr("parens");return}let Zr=dr.close+(t.capture?")":""),kr;if(dr.type==="negate"){let Dr=V;if(dr.inner&&dr.inner.length>1&&dr.inner.includes("/"))Dr=vr(t);if(Dr!==V||Cr()||/^\)+$/.test(zr()))Zr=dr.close=`)$))${Dr}`;if(dr.inner.includes("*")&&(kr=zr())&&/^\.[^\\/.]+$/.test(kr)){let et=S5(kr,{...i,fastpaths:!1}).output;Zr=dr.close=`)${et})${Dr})`}if(dr.prev.type==="bos")S.negatedExtglob=!0}Vr({type:"paren",extglob:!0,value:Z,output:Zr}),Yr("parens")};if(t.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(r)){let dr=!1,Ar=r.replace(RLr,(pr,Er,Zr,kr,Dr,et)=>{if(kr==="\\")return dr=!0,pr;if(kr==="?"){if(Er)return Er+kr+(Dr?W.repeat(Dr.length):"");if(et===0)return T+(Dr?W.repeat(Dr.length):"");return W.repeat(Zr.length)}if(kr===".")return M.repeat(Zr.length);if(kr==="*"){if(Er)return Er+kr+(Dr?V:"");return V}return Er?pr:`\\${pr}`});if(dr===!0)if(t.unescape===!0)Ar=Ar.replace(/\\/g,"");else Ar=Ar.replace(/\\+/g,(pr)=>{return pr.length%2===0?"\\\\":pr?"\\":""});if(Ar===r&&t.contains===!0)return S.output=r,S;return S.output=xe.wrapOutput(Ar,S,i),S}while(!Cr()){if(Z=jr(),Z==="\x00")continue;if(Z==="\\"){let pr=Pr();if(pr==="/"&&t.bash!==!0)continue;if(pr==="."||pr===";")continue;if(!pr){Z+="\\",Vr({type:"text",value:Z});continue}let Er=/^\\+/.exec(zr()),Zr=0;if(Er&&Er[0].length>2){if(Zr=Er[0].length,S.index+=Zr,Zr%2!==0)Z+="\\"}if(t.unescape===!0)Z=jr();else Z+=jr();if(S.brackets===0){Vr({type:"text",value:Z});continue}}if(S.brackets>0&&(Z!=="]"||U.value==="["||U.value==="[^")){if(t.posix!==!1&&Z===":"){let pr=U.value.slice(1);if(pr.includes("[")){if(U.posix=!0,pr.includes(":")){let Er=U.value.lastIndexOf("["),Zr=U.value.slice(0,Er),kr=U.value.slice(Er+2),Dr=$Lr[kr];if(Dr){if(U.value=Zr+Dr,S.backtrack=!0,jr(),!u.output&&h.indexOf(U)===1)u.output=L;continue}}}}if(Z==="["&&Pr()!==":"||Z==="-"&&Pr()==="]")Z=`\\${Z}`;if(Z==="]"&&(U.value==="["||U.value==="[^"))Z=`\\${Z}`;if(t.posix===!0&&Z==="!"&&U.value==="[")Z="^";U.value+=Z,$i({value:Z});continue}if(S.quotes===1&&Z!=='"'){Z=xe.escapeRegex(Z),U.value+=Z,$i({value:Z});continue}if(Z==='"'){if(S.quotes=S.quotes===1?0:1,t.keepQuotes===!0)Vr({type:"text",value:Z});continue}if(Z==="("){zi("parens"),Vr({type:"paren",value:Z});continue}if(Z===")"){if(S.parens===0&&t.strictBrackets===!0)throw SyntaxError(B1("opening","("));let pr=k[k.length-1];if(pr&&S.parens===pr.parens+1){Jr(k.pop());continue}Vr({type:"paren",value:Z,output:S.parens?")":"\\)"}),Yr("parens");continue}if(Z==="["){if(t.nobracket===!0||!zr().includes("]")){if(t.nobracket!==!0&&t.strictBrackets===!0)throw SyntaxError(B1("closing","]"));Z=`\\${Z}`}else zi("brackets");Vr({type:"bracket",value:Z});continue}if(Z==="]"){if(t.nobracket===!0||U&&U.type==="bracket"&&U.value.length===1){Vr({type:"text",value:Z,output:`\\${Z}`});continue}if(S.brackets===0){if(t.strictBrackets===!0)throw SyntaxError(B1("opening","["));Vr({type:"text",value:Z,output:`\\${Z}`});continue}Yr("brackets");let pr=U.value.slice(1);if(U.posix!==!0&&pr[0]==="^"&&!pr.includes("/"))Z=`/${Z}`;if(U.value+=Z,$i({value:Z}),t.literalBrackets===!1||xe.hasRegexChars(pr))continue;let Er=xe.escapeRegex(U.value);if(S.output=S.output.slice(0,-U.value.length),t.literalBrackets===!0){S.output+=Er,U.value=Er;continue}U.value=`(${c}${Er}|${U.value})`,S.output+=U.value;continue}if(Z==="{"&&t.nobrace!==!0){zi("braces");let pr={type:"brace",value:Z,output:"(",outputIndex:S.output.length,tokensIndex:S.tokens.length};er.push(pr),Vr(pr);continue}if(Z==="}"){let pr=er[er.length-1];if(t.nobrace===!0||!pr){Vr({type:"text",value:Z,output:Z});continue}let Er=")";if(pr.dots===!0){let Zr=h.slice(),kr=[];for(let Dr=Zr.length-1;Dr>=0;Dr--){if(h.pop(),Zr[Dr].type==="brace")break;if(Zr[Dr].type!=="dots")kr.unshift(Zr[Dr].value)}Er=ALr(kr,t),S.backtrack=!0}if(pr.comma!==!0&&pr.dots!==!0){let Zr=S.output.slice(0,pr.outputIndex),kr=S.tokens.slice(pr.tokensIndex);pr.value=pr.output="\\{",Z=Er="\\}",S.output=Zr;for(let Dr of kr)S.output+=Dr.output||Dr.value}Vr({type:"brace",value:Z,output:Er}),Yr("braces"),er.pop();continue}if(Z==="|"){if(k.length>0)k[k.length-1].conditions++;Vr({type:"text",value:Z});continue}if(Z===","){let pr=Z,Er=er[er.length-1];if(Er&&tr[tr.length-1]==="braces")Er.comma=!0,pr="|";Vr({type:"comma",value:Z,output:pr});continue}if(Z==="/"){if(U.type==="dot"&&S.index===S.start+1){S.start=S.index+1,S.consumed="",S.output="",h.pop(),U=u;continue}Vr({type:"slash",value:Z,output:o});continue}if(Z==="."){if(S.braces>0&&U.type==="dot"){if(U.value===".")U.output=M;let pr=er[er.length-1];U.type="dots",U.output+=Z,U.value+=Z,pr.dots=!0;continue}if(S.braces+S.parens===0&&U.type!=="bos"&&U.type!=="slash"){Vr({type:"text",value:Z,output:M});continue}Vr({type:"dot",value:Z,output:M});continue}if(Z==="?"){if(!(U&&U.value==="(")&&t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){lt("qmark",Z);continue}if(U&&U.type==="paren"){let Er=Pr(),Zr=Z;if(Er==="<"&&!xe.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(U.value==="("&&!/[!=<:]/.test(Er)||Er==="<"&&!/<([!=]|\w+>)/.test(zr()))Zr=`\\${Z}`;Vr({type:"text",value:Z,output:Zr});continue}if(t.dot!==!0&&(U.type==="slash"||U.type==="bos")){Vr({type:"qmark",value:Z,output:sr});continue}Vr({type:"qmark",value:Z,output:W});continue}if(Z==="!"){if(t.noextglob!==!0&&Pr()==="("){if(Pr(2)!=="?"||!/[!=<:]/.test(Pr(3))){lt("negate",Z);continue}}if(t.nonegate!==!0&&S.index===0){ji();continue}}if(Z==="+"){if(t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){lt("plus",Z);continue}if(U&&U.value==="("||t.regex===!1){Vr({type:"plus",value:Z,output:b});continue}if(U&&(U.type==="bracket"||U.type==="paren"||U.type==="brace")||S.parens>0){Vr({type:"plus",value:Z});continue}Vr({type:"plus",value:b});continue}if(Z==="@"){if(t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){Vr({type:"at",extglob:!0,value:Z,output:""});continue}Vr({type:"text",value:Z});continue}if(Z!=="*"){if(Z==="$"||Z==="^")Z=`\\${Z}`;let pr=gLr.exec(zr());if(pr)Z+=pr[0],S.index+=pr[0].length;Vr({type:"text",value:Z});continue}if(U&&(U.type==="globstar"||U.star===!0)){U.type="star",U.star=!0,U.value+=Z,U.output=V,S.backtrack=!0,S.globstar=!0,ri(Z);continue}let dr=zr();if(t.noextglob!==!0&&/^\([^?]/.test(dr)){lt("star",Z);continue}if(U.type==="star"){if(t.noglobstar===!0){ri(Z);continue}let pr=U.prev,Er=pr.prev,Zr=pr.type==="slash"||pr.type==="bos",kr=Er&&(Er.type==="star"||Er.type==="globstar");if(t.bash===!0&&(!Zr||dr[0]&&dr[0]!=="/")){Vr({type:"star",value:Z,output:""});continue}let Dr=S.braces>0&&(pr.type==="comma"||pr.type==="brace"),et=k.length&&(pr.type==="pipe"||pr.type==="paren");if(!Zr&&pr.type!=="paren"&&!Dr&&!et){Vr({type:"star",value:Z,output:""});continue}while(dr.slice(0,3)==="/**"){let Pt=r[S.index+4];if(Pt&&Pt!=="/")break;dr=dr.slice(3),ri("/**",3)}if(pr.type==="bos"&&Cr()){U.type="globstar",U.value+=Z,U.output=vr(t),S.output=U.output,S.globstar=!0,ri(Z);continue}if(pr.type==="slash"&&pr.prev.type!=="bos"&&!kr&&Cr()){S.output=S.output.slice(0,-(pr.output+U.output).length),pr.output=`(?:${pr.output}`,U.type="globstar",U.output=vr(t)+(t.strictSlashes?")":"|$)"),U.value+=Z,S.globstar=!0,S.output+=pr.output+U.output,ri(Z);continue}if(pr.type==="slash"&&pr.prev.type!=="bos"&&dr[0]==="/"){let Pt=dr[1]!==void 0?"|$":"";S.output=S.output.slice(0,-(pr.output+U.output).length),pr.output=`(?:${pr.output}`,U.type="globstar",U.output=`${vr(t)}${o}|${o}${Pt})`,U.value+=Z,S.output+=pr.output+U.output,S.globstar=!0,ri(Z+jr()),Vr({type:"slash",value:"/",output:""});continue}if(pr.type==="bos"&&dr[0]==="/"){U.type="globstar",U.value+=Z,U.output=`(?:^|${o}|${vr(t)}${o})`,S.output=U.output,S.globstar=!0,ri(Z+jr()),Vr({type:"slash",value:"/",output:""});continue}S.output=S.output.slice(0,-U.output.length),U.type="globstar",U.output=vr(t),U.value+=Z,S.output+=U.output,S.globstar=!0,ri(Z);continue}let Ar={type:"star",value:Z,output:V};if(t.bash===!0){if(Ar.output=".*?",U.type==="bos"||U.type==="slash")Ar.output=q+Ar.output;Vr(Ar);continue}if(U&&(U.type==="bracket"||U.type==="paren")&&t.regex===!0){Ar.output=Z,Vr(Ar);continue}if(S.index===S.start||U.type==="slash"||U.type==="dot"){if(U.type==="dot")S.output+=H,U.output+=H;else if(t.dot===!0)S.output+=J,U.output+=J;else S.output+=q,U.output+=q;if(Pr()!=="*")S.output+=L,U.output+=L}Vr(Ar)}while(S.brackets>0){if(t.strictBrackets===!0)throw SyntaxError(B1("closing","]"));S.output=xe.escapeLast(S.output,"["),Yr("brackets")}while(S.parens>0){if(t.strictBrackets===!0)throw SyntaxError(B1("closing",")"));S.output=xe.escapeLast(S.output,"("),Yr("parens")}while(S.braces>0){if(t.strictBrackets===!0)throw SyntaxError(B1("closing","}"));S.output=xe.escapeLast(S.output,"{"),Yr("braces")}if(t.strictSlashes!==!0&&(U.type==="star"||U.type==="bracket"))Vr({type:"maybe_slash",value:"",output:`${o}?`});if(S.backtrack===!0){S.output="";for(let dr of S.tokens)if(S.output+=dr.output!=null?dr.output:dr.value,dr.suffix)S.output+=dr.suffix}return S};S5.fastpaths=(r,i)=>{let t={...i},s=typeof t.maxLength==="number"?Math.min(s2,t.maxLength):s2,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);r=Fur[r]||r;let u=xe.isWindows(i),{DOT_LITERAL:h,SLASH_LITERAL:c,ONE_CHAR:p,DOTS_SLASH:w,NO_DOT:P,NO_DOTS:M,NO_DOTS_SLASH:b,STAR:o,START_ANCHOR:L}=hp.globChars(u),I=t.dot?M:P,j=t.dot?b:P,H=t.capture?"":"?:",J={negated:!1,prefix:""},W=t.bash===!0?".*?":o;if(t.capture)W=`(${W})`;let sr=(q)=>{if(q.noglobstar===!0)return W;return`(${H}(?:(?!${L}${q.dot?w:h}).)*?)`},rr=(q)=>{switch(q){case"*":return`${I}${p}${W}`;case".*":return`${h}${p}${W}`;case"*.*":return`${I}${W}${h}${p}${W}`;case"*/*":return`${I}${W}${c}${p}${j}${W}`;case"**":return I+sr(t);case"**/*":return`(?:${I}${sr(t)}${c})?${j}${p}${W}`;case"**/*.*":return`(?:${I}${sr(t)}${c})?${j}${W}${h}${p}${W}`;case"**/.*":return`(?:${I}${sr(t)}${c})?${h}${p}${W}`;default:{let T=/^(.*?)\.(\w+)$/.exec(q);if(!T)return;let V=rr(T[1]);if(!V)return;return V+h+T[2]}}},hr=xe.removePrefix(r,J),vr=rr(hr);if(vr&&t.strictSlashes!==!0)vr+=`${c}?`;return vr};Uur.exports=S5});var zur=cr((svi,jur)=>{var ELr=Ye("path"),VLr=Iur(),T5=Nur(),O5=e2(),ILr=up(),FLr=(r)=>r&&typeof r==="object"&&!Array.isArray(r),he=(r,i,t=!1)=>{if(Array.isArray(r)){let P=r.map((b)=>he(b,i,t));return(b)=>{for(let o of P){let L=o(b);if(L)return L}return!1}}let s=FLr(r)&&r.tokens&&r.input;if(r===""||typeof r!=="string"&&!s)throw TypeError("Expected pattern to be a non-empty string");let l=i||{},u=O5.isWindows(i),h=s?he.compileRe(r,i):he.makeRe(r,i,!1,!0),c=h.state;delete h.state;let p=()=>!1;if(l.ignore){let P={...i,ignore:null,onMatch:null,onResult:null};p=he(l.ignore,P,t)}let w=(P,M=!1)=>{let{isMatch:b,match:o,output:L}=he.test(P,h,i,{glob:r,posix:u}),I={glob:r,state:c,regex:h,posix:u,input:P,output:L,match:o,isMatch:b};if(typeof l.onResult==="function")l.onResult(I);if(b===!1)return I.isMatch=!1,M?I:!1;if(p(P)){if(typeof l.onIgnore==="function")l.onIgnore(I);return I.isMatch=!1,M?I:!1}if(typeof l.onMatch==="function")l.onMatch(I);return M?I:!0};if(t)w.state=c;return w};he.test=(r,i,t,{glob:s,posix:l}={})=>{if(typeof r!=="string")throw TypeError("Expected input to be a string");if(r==="")return{isMatch:!1,output:""};let u=t||{},h=u.format||(l?O5.toPosixSlashes:null),c=r===s,p=c&&h?h(r):r;if(c===!1)p=h?h(r):r,c=p===s;if(c===!1||u.capture===!0)if(u.matchBase===!0||u.basename===!0)c=he.matchBase(r,i,t,l);else c=i.exec(p);return{isMatch:Boolean(c),match:c,output:p}};he.matchBase=(r,i,t,s=O5.isWindows(t))=>{return(i instanceof RegExp?i:he.makeRe(i,t)).test(ELr.basename(r))};he.isMatch=(r,i,t)=>he(i,t)(r);he.parse=(r,i)=>{if(Array.isArray(r))return r.map((t)=>he.parse(t,i));return T5(r,{...i,fastpaths:!1})};he.scan=(r,i)=>VLr(r,i);he.compileRe=(r,i,t=!1,s=!1)=>{if(t===!0)return r.output;let l=i||{},u=l.contains?"":"^",h=l.contains?"":"$",c=`${u}(?:${r.output})${h}`;if(r&&r.negated===!0)c=`^(?!${c}).*$`;let p=he.toRegex(c,i);if(s===!0)p.state=r;return p};he.makeRe=(r,i={},t=!1,s=!1)=>{if(!r||typeof r!=="string")throw TypeError("Expected a non-empty string");let l={negated:!1,fastpaths:!0};if(i.fastpaths!==!1&&(r[0]==="."||r[0]==="*"))l.output=T5.fastpaths(r,i);if(!l.output)l=T5(r,i);return he.compileRe(l,i,t,s)};he.toRegex=(r,i)=>{try{let t=i||{};return new RegExp(r,t.flags||(t.nocase?"i":""))}catch(t){if(i&&i.debug===!0)throw t;return/$^/}};he.constants=ILr;jur.exports=he});import O7,{resolve as zs,basename as tf,extname as _u,dirname as dl,relative as L7,win32 as ovi,posix as bvi,isAbsolute as dvi,join as hEr}from"path";import E7 from"process";import{performance as Chr}from"perf_hooks";import{createHash as nEr}from"crypto";import{promises as nh}from"fs";import{EventEmitter as cEr}from"events";function yEr(r){var i=[],t=[],s=[0,0,0,0,0],l=0;for(var u=0,h=0,c=0;u<r.length;u++){var p=r.charCodeAt(u);if(p===44)j5(t,s,l),l=0;else if(p===59)j5(t,s,l),l=0,i.push(t),t=[],s[0]=0;else{var w=qhr[p];if(w===void 0)throw Error("Invalid character ("+String.fromCharCode(p)+")");var P=w&32;if(w&=31,c+=w<<h,P)h+=5;else{var M=c&1;if(c>>>=1,M)c=c===0?-2147483648:-c;s[l]+=c,l++,c=h=0}}}return j5(t,s,l),i.push(t),i}function j5(r,i,t){if(t===4)r.push([i[0],i[1],i[2],i[3]]);else if(t===5)r.push([i[0],i[1],i[2],i[3],i[4]]);else if(t===1)r.push([i[0]])}function vEr(r){var i=0,t=0,s=0,l=0,u="";for(var h=0;h<r.length;h++){var c=r[h];if(h>0)u+=";";if(c.length===0)continue;var p=0,w=[];for(var P=0,M=c;P<M.length;P++){var b=M[P],o=cp(b[0]-p);if(p=b[0],b.length>1)o+=cp(b[1]-i)+cp(b[2]-t)+cp(b[3]-s),i=b[1],t=b[2],s=b[3];if(b.length===5)o+=cp(b[4]-l),l=b[4];w.push(o)}u+=w.join(",")}return u}function cp(r){var i="";r=r<0?-r<<1|1:r<<1;do{var t=r&31;if(r>>>=5,r>0)t|=32;i+=l7[t]}while(r>0);return i}class R2{constructor(r){this.bits=r instanceof R2?r.bits.slice():[]}add(r){this.bits[r>>5]|=1<<(r&31)}has(r){return!!(this.bits[r>>5]&1<<(r&31))}}class gp{constructor(r,i,t){this.start=r,this.end=i,this.original=t,this.intro="",this.outro="",this.content=t,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})}appendLeft(r){this.outro+=r}appendRight(r){this.intro=this.intro+r}clone(){let r=new gp(this.start,this.end,this.original);return r.intro=this.intro,r.outro=this.outro,r.content=this.content,r.storeName=this.storeName,r.edited=this.edited,r}contains(r){return this.start<r&&r<this.end}eachNext(r){let i=this;while(i)r(i),i=i.next}eachPrevious(r){let i=this;while(i)r(i),i=i.previous}edit(r,i,t){if(this.content=r,!t)this.intro="",this.outro="";return this.storeName=i,this.edited=!0,this}prependLeft(r){this.outro=r+this.outro}prependRight(r){this.intro=r+this.intro}split(r){let i=r-this.start,t=this.original.slice(0,i),s=this.original.slice(i);this.original=t;let l=new gp(r,this.end,s);if(l.outro=this.outro,this.outro="",this.end=r,this.edited)l.edit("",!1),this.content="";else this.content=t;if(l.next=this.next,l.next)l.next.previous=l;return l.previous=this,this.next=l,l}toString(){return this.intro+this.content+this.outro}trimEnd(r){if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let i=this.content.replace(r,"");if(i.length){if(i!==this.content)this.split(this.start+i.length).edit("",void 0,!0);return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(r,""),this.intro.length)return!0}trimStart(r){if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let i=this.content.replace(r,"");if(i.length){if(i!==this.content)this.split(this.end-i.length),this.edit("",void 0,!0);return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(r,""),this.outro.length)return!0}}class Up{constructor(r){this.version=3,this.file=r.file,this.sources=r.sources,this.sourcesContent=r.sourcesContent,this.names=r.names,this.mappings=vEr(r.mappings)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+u7(this.toString())}}function pEr(r){let i=r.split(`
15
15
  `),t=i.filter((u)=>/^\t+/.test(u)),s=i.filter((u)=>/^ {2,}/.test(u));if(t.length===0&&s.length===0)return null;if(t.length>=s.length)return"\t";let l=s.reduce((u,h)=>{let c=/^ +/.exec(h)[0].length;return Math.min(c,u)},1/0);return Array(l+1).join(" ")}function Phr(r,i){let t=r.split(/[/\\]/),s=i.split(/[/\\]/);t.pop();while(t[0]===s[0])t.shift(),s.shift();if(t.length){let l=t.length;while(l--)t[l]=".."}return t.concat(s).join("/")}function $hr(r){return mEr.call(r)==="[object Object]"}function f7(r){let i=r.split(`
16
16
  `),t=[];for(let s=0,l=0;s<i.length;s++)t.push(l),l+=i[s].length+1;return function(l){let u=0,h=t.length;while(u<h){let w=u+h>>1;if(l<t[w])h=w;else u=w+1}let c=u-1,p=l-t[c];return{line:c,column:p}}}class I7{constructor(r){this.hires=r,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(r,i,t,s){if(i.length){let l=[this.generatedCodeColumn,r,t.line,t.column];if(s>=0)l.push(s);this.rawSegments.push(l)}else if(this.pending)this.rawSegments.push(this.pending);this.advance(i),this.pending=null}addUneditedChunk(r,i,t,s,l){let u=i.start,h=!0;while(u<i.end){if(this.hires||h||l.has(u))this.rawSegments.push([this.generatedCodeColumn,r,s.line,s.column]);if(t[u]===`
17
17
  `)s.line+=1,s.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,h=!0;else s.column+=1,this.generatedCodeColumn+=1,h=!1;u+=1}this.pending=null}advance(r){if(!r)return;let i=r.split(`
@@ -31,7 +31,7 @@ Either change the import in ${Yi(s)} to point directly to the exporting module o
31
31
  `,s);while(!0){if(s=r.indexOf("/",s),s===-1||s>i)return[i,i+1];if(t=r.charCodeAt(s+1),t===47)return[s,i+1];if(s=r.indexOf("*/",s+3)+2,s>i)i=r.indexOf(`
32
32
  `,s)}}function Zp(r,i,t,s,l){let u,h,c,p,w=r[0],P=!w.included||w.needsBoundaries;if(P)p=t+V2(i.original.slice(t,w.start))[1];for(let M=1;M<=r.length;M++)if(u=w,h=p,c=P,w=r[M],P=w===void 0?!1:!w.included||w.needsBoundaries,c||P)if(p=u.end+V2(i.original.slice(u.end,w===void 0?s:w.start))[1],u.included)c?u.render(i,l,{end:p,start:h}):u.render(i,l);else r4(u,i,h,p);else u.render(i,l)}function Ghr(r,i,t,s){let l=[],u,h,c,p,w,P=t-1;for(let M=0;M<r.length;M++){if(h=r[M],u!==void 0)P=u.end+ze(i.original.slice(u.end,h.start),",");c=p=P+1+V2(i.original.slice(P+1,h.start))[1];while(w=i.original.charCodeAt(c),w===32||w===9||w===10||w===13)c++;if(u!==void 0)l.push({contentEnd:p,end:c,node:u,separator:P,start:t});u=h,t=c}return l.push({contentEnd:s,end:s,node:u,separator:null,start:t}),l}function i9(r,i,t){while(!0){let[s,l]=V2(r.original.slice(i,t));if(s===-1)break;r.remove(i+s,i+=l)}}function bh(r,{exportNamesByVariable:i,snippets:{_:t,getObject:s,getPropertyAccess:l}},u=""){if(r.length===1&&i.get(r[0]).length===1){let h=r[0];return`exports('${i.get(h)}',${t}${h.getName(l)}${u})`}else{let h=[];for(let c of r)for(let p of i.get(c))h.push([p,c.getName(l)+u]);return`exports(${s(h,{lineBreakIndent:null})})`}}function e4(r,i,t,s,{exportNamesByVariable:l,snippets:{_:u}}){s.prependRight(i,`exports('${l.get(r)}',${u}`),s.appendLeft(t,")")}function pIr(r,i,t,s,l,u){let{_:h,getDirectReturnIifeLeft:c}=u.snippets;l.prependRight(i,c(["v"],`${bh(r,u)},${h}v`,{needsArrowReturnParens:!0,needsWrappedFunction:s})),l.appendLeft(t,")")}function Khr(r,i,t,s,l,u){let{_:h,getPropertyAccess:c}=u.snippets;if(l.appendLeft(t,`,${h}${bh([r],u)},${h}${r.getName(c)}`),s)l.prependRight(i,"("),l.appendLeft(t,")")}function mIr(r,i,t,s,l,u,h){let{_:c}=u.snippets;if(l.prependRight(i,`${bh([r],u,h)},${c}`),s)l.prependRight(i,"("),l.appendLeft(t,")")}function t1r(r,i,t){if(t.arguments.length>0)if(t.arguments[t.arguments.length-1].included)for(let s of t.arguments)s.render(r,i);else{let s=t.arguments.length-2;while(s>=0&&!t.arguments[s].included)s--;if(s>=0){for(let l=0;l<=s;l++)t.arguments[l].render(r,i);r.remove(ze(r.original,",",t.arguments[s].end),t.end-1)}else r.remove(ze(r.original,"(",t.callee.end)+1,t.end-1)}}function bIr(r){return r.computed?dIr(r.property):r.property.name}function dIr(r){if(r instanceof en)return String(r.value);return null}function e1r(r){let{propertyKey:i,object:t}=r;if(typeof i==="string"){if(t instanceof qe)return[{key:t.name,pos:t.start},{key:i,pos:r.property.start}];if(t instanceof mh){let s=e1r(t);return s&&[...s,{key:i,pos:r.property.start}]}}return null}function wIr(r){let i=r[0].key;for(let t=1;t<r.length;t++)i+="."+r[t].key;return i}function s1r(r,i,t){if(i.length===0)return r;if(!r.isNamespace||r instanceof Mp)return null;let s=i[0].key,l=r.context.traceExport(s);if(!l){let u=r.context.fileName;return t.warn({code:"MISSING_EXPORT",exporter:Yi(u),importer:Yi(t.fileName),message:`'${s}' is not exported by '${Yi(u)}'`,missing:s,url:"https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module"},i[0].pos),"undefined"}return s1r(l,i.slice(1),t)}function CIr(r,i){return sf(r,ze(r,"default",i)+7)}function qIr(r,i,t,s){let l=ze(r,i,s)+i.length;r=r.slice(l,ze(r,t,l));let u=ze(r,"*");if(u===-1)return l;return l+u+1}function Vp(r){return r([["value","'Module'"]],{lineBreakIndent:null})}function Yfr(r,i,t){return i==="external"?Wp[String(t(r instanceof Et?r.id:null))]:i==="default"?Ep:null}function D1r(r,i){return r.renderBaseName!==null&&i.has(r)&&r.isReassigned}function EIr(r,i){for(let t of r){if(!t.id.included)return!1;if(t.id.type===Hhr){if(i.has(t.id.variable))return!1}else{let s=[];if(t.id.addExportedVariables(s,i),s.length>0)return!1}}return!0}function VIr(r,i,t){var s;let l=null;if(i.format==="system"){for(let{node:u}of r)if(u.id instanceof qe&&u.init&&t.length===0&&((s=i.exportNamesByVariable.get(u.id.variable))===null||s===void 0?void 0:s.length)===1)l=u.id.variable,t.push(l);else u.id.addExportedVariables(t,i.exportNamesByVariable);if(t.length>1)l=null;else if(l)t.length=0}return l}function x1(r){return r.id}function IIr(r,i){let t=r.filter((s)=>!!s.mappings);r:while(t.length>0){let l=t.pop().mappings[i.line-1];if(l){let u=l.filter((c)=>c.length>1),h=u[u.length-1];for(let c of u)if(c[0]>=i.column||c===h){i={column:c[3],line:c[2]+1};continue r}}throw Error("Can't resolve original location of error.")}return i}function inr(r,i){switch(i){case 1:return`# ${r}`;case 2:return`## ${r}`;case 3:return r;default:return`${" ".repeat(i-4)}- ${r}`}}function FIr(r,i=3){r=inr(r,i);let t=E7.memoryUsage().heapUsed,s=Chr.now(),l=Ip.get(r);if(l===void 0)Ip.set(r,{memory:0,startMemory:t,startTime:s,time:0,totalMemory:0});else l.startMemory=t,l.startTime=s}function BIr(r,i=3){r=inr(r,i);let t=Ip.get(r);if(t!==void 0){let s=E7.memoryUsage().heapUsed;t.memory+=s-t.startMemory,t.time+=Chr.now()-t.startTime,t.totalMemory=Math.max(t.totalMemory,s)}}function HIr(){let r={};for(let[i,{memory:t,time:s,totalMemory:l}]of Ip)r[i]=[s,t,l];return r}function NIr(r,i){for(let t of UIr)if(t in r){let s=`plugin ${i}`;if(r.name)s+=` (${r.name})`;s+=` - ${t}`;let l=r[t];r[t]=function(...u){Ne(s,4);let h=l.apply(this,u);if(Ie(s,4),h&&typeof h.then==="function")return Ne(`${s} (async)`,4),h.then((c)=>{return Ie(`${s} (async)`,4),c});return h}}return r}function jIr(r){if(r.perf)Ip=new Map,Ne=FIr,Ie=BIr,r.plugins=r.plugins.map(NIr);else Ne=H2,Ie=H2}function C2(r){r.isExecuted=!0;let i=[r],t=new Set;for(let s of i)for(let l of[...s.dependencies,...s.implicitlyLoadedBefore])if(!(l instanceof Et)&&!l.isExecuted&&(l.info.moduleSideEffects||s.implicitlyLoadedBefore.has(l))&&!t.has(l.id))l.isExecuted=!0,t.add(l.id),i.push(l)}function _5(r,i,t,s,l=new Map){let u=l.get(i);if(u){if(u.has(r))return s?[null]:yi(TEr(i,r.id));u.add(r)}else l.set(i,new Set([r]));return r.getVariableForExportName(i,{importerForSideEffects:t,isExportAllSearch:s,searchedNamesAndModules:l})}function zIr(r,i){let t=wl(i.sideEffectDependenciesByVariable,r,()=>new Set),s=r,l=new Set([s]);while(!0){let u=s.module;if(s=s instanceof ql?s.getDirectOriginalVariable():s instanceof js?s.syntheticNamespace:null,!s||l.has(s))break;l.add(s),t.add(u);let h=u.sideEffectDependenciesByVariable.get(s);if(h)for(let c of h)t.add(c)}return t}class Dt{constructor(r,i,t,s,l,u,h){this.graph=r,this.id=i,this.options=t,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 rnr(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(i),this.context=t.moduleContext(i),this.preserveSignature=this.options.preserveEntrySignatures;let c=this,{dynamicImports:p,dynamicImporters:w,implicitlyLoadedAfter:P,implicitlyLoadedBefore:M,importers:b,reexportDescriptions:o,sources:L}=this;this.info={ast:null,code:null,get dynamicallyImportedIdResolutions(){return p.map(({argument:I})=>typeof I==="string"&&c.resolvedIds[I]).filter(Boolean)},get dynamicallyImportedIds(){return p.map(({id:I})=>I).filter((I)=>I!=null)},get dynamicImporters(){return w.sort()},get hasDefaultExport(){if(!c.ast)return null;return c.exports.has("default")||o.has("default")},get hasModuleSideEffects(){return Zs("Accessing ModuleInfo.hasModuleSideEffects from plugins is deprecated. Please use ModuleInfo.moduleSideEffects instead.",!1,t),this.moduleSideEffects},id:i,get implicitlyLoadedAfterOneOf(){return Array.from(P,x1).sort()},get implicitlyLoadedBefore(){return Array.from(M,x1).sort()},get importedIdResolutions(){return Array.from(L,(I)=>c.resolvedIds[I]).filter(Boolean)},get importedIds(){return Array.from(L,(I)=>{var j;return(j=c.resolvedIds[I])===null||j===void 0?void 0:j.id}).filter(Boolean)},get importers(){return b.sort()},isEntry:s,isExternal:!1,get isIncluded(){if(r.phase!==rf.GENERATE)return null;return c.isIncluded()},meta:{...h},moduleSideEffects:l,syntheticNamedExports:u},Object.defineProperty(this.info,"hasModuleSideEffects",{enumerable:!1})}basename(){let r=tf(this.id),i=_u(this.id);return j7(i?r.slice(0,-i.length):r)}bindReferences(){this.ast.bind()}error(r,i){return this.addLocationToLogProps(r,i),yi(r)}getAllExportNames(){if(this.allExportNames)return this.allExportNames;this.allExportNames=new Set([...this.exports.keys(),...this.reexportDescriptions.keys()]);for(let r of this.exportAllModules){if(r instanceof Et){this.allExportNames.add(`*${r.id}`);continue}for(let i of r.getAllExportNames())if(i!=="default")this.allExportNames.add(i)}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 r=new Set,i=new Set,t=new Set(this.includedImports);if(this.info.isEntry||this.includedDynamicImporters.length>0||this.namespace.included||this.implicitlyLoadedAfter.size>0)for(let s of[...this.getReexports(),...this.getExports()]){let[l]=this.getVariableForExportName(s);if(l)t.add(l)}for(let s of t){let l=this.sideEffectDependenciesByVariable.get(s);if(l)for(let u of l)i.add(u);if(s instanceof js)s=s.getBaseVariable();else if(s instanceof ql)s=s.getOriginalVariable();r.add(s.module)}if(!this.options.treeshake||this.info.moduleSideEffects==="no-treeshake")for(let s of this.dependencies)this.relevantDependencies.add(s);else this.addRelevantSideEffectDependencies(this.relevantDependencies,r,i);for(let s of r)this.relevantDependencies.add(s);return this.relevantDependencies}getExportNamesByVariable(){if(this.exportNamesByVariable)return this.exportNamesByVariable;let r=new Map;for(let i of this.getAllExportNames()){let[t]=this.getVariableForExportName(i);if(t instanceof ql)t=t.getOriginalVariable();if(!t||!(t.included||t instanceof Mp))continue;let s=r.get(t);if(s)s.push(i);else r.set(t,[i])}return this.exportNamesByVariable=r}getExports(){return Array.from(this.exports.keys())}getReexports(){if(this.transitiveReexports)return this.transitiveReexports;this.transitiveReexports=[];let r=new Set(this.reexportDescriptions.keys());for(let i of this.exportAllModules)if(i instanceof Et)r.add(`*${i.id}`);else for(let t of[...i.getReexports(),...i.getExports()])if(t!=="default")r.add(t);return this.transitiveReexports=[...r]}getRenderedExports(){let r=[],i=[];for(let t of this.exports.keys()){let[s]=this.getVariableForExportName(t);(s&&s.included?r:i).push(t)}return{removedExports:i,renderedExports:r}}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 yi(rVr(this.id,this.info.syntheticNamedExports));return this.syntheticNamespace}getVariableForExportName(r,{importerForSideEffects:i,isExportAllSearch:t,onlyExplicit:s,searchedNamesAndModules:l}=wp){var u;if(r[0]==="*"){if(r.length===1)return[this.namespace];return this.graph.modulesById.get(r.slice(1)).getVariableForExportName("*")}let h=this.reexportDescriptions.get(r);if(h){let[p]=_5(h.module,h.localName,i,!1,l);if(!p)return this.error(wfr(h.localName,this.id,h.module.id),h.start);if(i)Xfr(p,i,this);return[p]}let c=this.exports.get(r);if(c){if(c===Kfr)return[this.exportShimVariable];let p=c.localName,w=this.traceVariable(p,{importerForSideEffects:i,searchedNamesAndModules:l});if(i)wl(i.sideEffectDependenciesByVariable,w,()=>new Set).add(this),Xfr(w,i,this);return[w]}if(s)return[null];if(r!=="default"){let p=(u=this.namespaceReexportsByName.get(r))!==null&&u!==void 0?u:this.getVariableFromNamespaceReexports(r,i,l);if(this.namespaceReexportsByName.set(r,p),p[0])return p}if(this.info.syntheticNamedExports)return[wl(this.syntheticExports,r,()=>new js(this.astContext,r,this.getSyntheticNamespace()))];if(!t){if(this.options.shimMissingExports)return this.shimMissingExport(r),[this.exportShimVariable]}return[null]}hasEffects(){return this.info.moduleSideEffects==="no-treeshake"||this.ast.included&&this.ast.hasEffects(k2())}include(){let r=v7();if(this.ast.shouldBeIncluded(r))this.ast.include(r,!1)}includeAllExports(r){if(!this.isExecuted)C2(this),this.graph.needsTreeshakingPass=!0;for(let i of this.exports.keys())if(r||i!==this.info.syntheticNamedExports){let t=this.getVariableForExportName(i)[0];if(t.deoptimizePath(Mt),!t.included)this.includeVariable(t)}for(let i of this.getReexports()){let[t]=this.getVariableForExportName(i);if(t){if(t.deoptimizePath(Mt),!t.included)this.includeVariable(t);if(t instanceof Mp)t.module.reexported=!0}}if(r)this.namespace.setMergedNamespaces(this.includeAndGetAdditionalMergedNamespaces())}includeAllInBundle(){this.ast.include(v7(),!0),this.includeAllExports(!1)}isIncluded(){return this.ast.included||this.namespace.included||this.importedFromNotTreeshaken}linkImports(){this.addModulesToImportDescriptions(this.importDescriptions),this.addModulesToImportDescriptions(this.reexportDescriptions);let r=[];for(let i of this.exportAllSources){let t=this.graph.modulesById.get(this.resolvedIds[i].id);if(t instanceof Et){r.push(t);continue}this.exportAllModules.push(t)}this.exportAllModules.push(...r)}render(r){let i=this.magicString.clone();return this.ast.render(i,r),this.usesTopLevelAwait=this.astContext.usesTopLevelAwait,i}setSource({ast:r,code:i,customTransformCache:t,originalCode:s,originalSourcemap:l,resolvedIds:u,sourcemapChain:h,transformDependencies:c,transformFiles:p,...w}){if(this.info.code=i,this.originalCode=s,this.originalSourcemap=l,this.sourcemapChain=h,p)this.transformFiles=p;if(this.transformDependencies=c,this.customTransformCache=t,this.updateOptions(w),Ne("generate ast",3),!r)r=this.tryParse();Ie("generate ast",3),this.resolvedIds=u||Object.create(null);let P=this.id;this.magicString=new vh(i,{filename:this.excludeFromSourcemap?null:P,indentExclusionRanges:[]}),Ne("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:i,deoptimizationTracker:this.graph.deoptimizationTracker,error:this.error.bind(this),fileName:P,getExports:this.getExports.bind(this),getModuleExecIndex:()=>this.execIndex,getModuleName:this.basename.bind(this),getNodeConstructor:(M)=>Gfr[M]||Gfr.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 b4(this.graph.scope,this.astContext),this.namespace=new _1(this.astContext),this.ast=new v4(r,{context:this.astContext,type:"Module"},this.scope),this.info.ast=r,Ie("analyse ast",3)}toJSON(){return{ast:this.ast.esTreeNode,code:this.info.code,customTransformCache:this.customTransformCache,dependencies:Array.from(this.dependencies,x1),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(r,{importerForSideEffects:i,isExportAllSearch:t,searchedNamesAndModules:s}=wp){let l=this.scope.variables.get(r);if(l)return l;let u=this.importDescriptions.get(r);if(u){let h=u.module;if(h instanceof Dt&&u.name==="*")return h.namespace;let[c]=_5(h,u.name,i||this,t,s);if(!c)return this.error(wfr(u.name,this.id,h.id),u.start);return c}return null}tryParse(){try{return this.graph.contextParse(this.info.code)}catch(r){let i=r.message.replace(/ \(\d+:\d+\)$/,"");if(this.id.endsWith(".json"))i+=" (Note that you need @rollup/plugin-json to import JSON files)";else if(!this.id.endsWith(".js"))i+=" (Note that you need plugins to import files that are not JavaScript)";return this.error({code:"PARSE_ERROR",message:i,parserError:r},r.pos)}}updateOptions({meta:r,moduleSideEffects:i,syntheticNamedExports:t}){if(i!=null)this.info.moduleSideEffects=i;if(t!=null)this.info.syntheticNamedExports=t;if(r!=null)Object.assign(this.info.meta,r)}warn(r,i){this.addLocationToLogProps(r,i),this.options.onwarn(r)}addDynamicImport(r){let i=r.source;if(i instanceof m4){if(i.quasis.length===1&&i.quasis[0].value.cooked)i=i.quasis[0].value.cooked}else if(i instanceof en&&typeof i.value==="string")i=i.value;this.dynamicImports.push({argument:i,id:null,node:r,resolution:null})}addExport(r){if(r instanceof Jp)this.exports.set("default",{identifier:r.variable.getAssignedVariableName(),localName:"default"});else if(r instanceof a9){let i=r.source.value;if(this.sources.add(i),r.exported){let t=r.exported.name;this.reexportDescriptions.set(t,{localName:"*",module:null,source:i,start:r.start})}else this.exportAllSources.add(i)}else if(r.source instanceof en){let i=r.source.value;this.sources.add(i);for(let t of r.specifiers){let s=t.exported.name;this.reexportDescriptions.set(s,{localName:t.local.name,module:null,source:i,start:t.start})}}else if(r.declaration){let i=r.declaration;if(i instanceof d4)for(let t of i.declarations)for(let s of zVr(t.id))this.exports.set(s,{identifier:null,localName:s});else{let t=i.id.name;this.exports.set(t,{identifier:null,localName:t})}}else for(let i of r.specifiers){let t=i.local.name,s=i.exported.name;this.exports.set(s,{identifier:null,localName:t})}}addImport(r){let i=r.source.value;this.sources.add(i);for(let t of r.specifiers){let s=t.type===XVr,l=t.type===DVr,u=s?"default":l?"*":t.imported.name;this.importDescriptions.set(t.local.name,{module:null,name:u,source:i,start:t.start})}}addImportMeta(r){this.importMetas.push(r)}addLocationToLogProps(r,i){r.id=this.id,r.pos=i;let t=this.info.code,s=Rhr(t,i,{offsetLine:1});if(s){let{column:l,line:u}=s;try{({column:l,line:u}=IIr(this.sourcemapChain,{column:l,line:u})),t=this.originalCode}catch(h){this.options.onwarn({code:"SOURCEMAP_ERROR",id:this.id,loc:{column:l,file:this.id,line:u},message:`Error when using sourcemap for reporting an error: ${h.message}`,pos:i})}S2(r,{column:l,line:u},t,this.id)}}addModulesToImportDescriptions(r){for(let i of r.values()){let{id:t}=this.resolvedIds[i.source];i.module=this.graph.modulesById.get(t)}}addRelevantSideEffectDependencies(r,i,t){let s=new Set,l=(u)=>{for(let h of u){if(s.has(h))continue;if(s.add(h),i.has(h)){r.add(h);continue}if(!(h.info.moduleSideEffects||t.has(h)))continue;if(h instanceof Et||h.hasEffects()){r.add(h);continue}l(h.dependencies)}};l(this.dependencies),l(t)}getVariableFromNamespaceReexports(r,i,t){let s=null,l=new Map,u=new Set;for(let h of this.exportAllModules){if(h.info.syntheticNamedExports===r)continue;let[c,p]=_5(h,r,i,!0,ZIr(t));if(h instanceof Et||p)u.add(c);else if(c instanceof js){if(!s)s=c}else if(c)l.set(c,h)}if(l.size>0){let h=[...l],c=h[0][0];if(h.length===1)return[c];return this.options.onwarn(DEr(r,this.id,h.map(([,p])=>p.id))),[null]}if(u.size>0){let h=[...u],c=h[0];if(h.length>1)this.options.onwarn(kEr(r,this.id,c.module.id,h.map((p)=>p.module.id)));return[c,!0]}if(s)return[s];return[null]}includeAndGetAdditionalMergedNamespaces(){let r=new Set,i=new Set;for(let t of[this,...this.exportAllModules])if(t instanceof Et){let[s]=t.getVariableForExportName("*");s.include(),this.includedImports.add(s),r.add(s)}else if(t.info.syntheticNamedExports){let s=t.getSyntheticNamespace();s.include(),this.includedImports.add(s),i.add(s)}return[...i,...r]}includeDynamicImport(r){let i=this.dynamicImports.find((t)=>t.node===r).resolution;if(i instanceof Dt)i.includedDynamicImporters.push(this),i.includeAllExports(!0)}includeVariable(r){if(!r.included){r.include(),this.graph.needsTreeshakingPass=!0;let i=r.module;if(i instanceof Dt){if(!i.isExecuted)C2(i);if(i!==this){let t=zIr(r,this);for(let s of t)if(!s.isExecuted)C2(s)}}}}includeVariableInModule(r){this.includeVariable(r);let i=r.module;if(i&&i!==this)this.includedImports.add(r)}shimMissingExport(r){this.options.onwarn({code:"SHIMMED_EXPORT",exporter:Yi(this.id),exportName:r,message:`Missing export "${r}" has been shimmed in module ${Yi(this.id)}.`}),this.exports.set(r,Kfr)}}function Xfr(r,i,t){if(r.module instanceof Dt&&r.module!==t){let s=r.module.cycles;if(s.size>0){let l=t.cycles;for(let u of l)if(s.has(u)){i.alternativeReexportModules.set(r,t);break}}}}function tnr(r){return r.endsWith(".js")?r.slice(0,-3):r}function enr(r,i){if(r.autoId)return`${r.basePath?r.basePath+"/":""}${tnr(i)}`;return r.id||""}function u9(r,i,t,s,l,u,h,c="return "){let{_:p,cnst:w,getDirectReturnFunction:P,getFunctionIntro:M,getPropertyAccess:b,n:o,s:L}=l;if(!t)return`${o}${o}${c}${QIr(r,i,s,h,b)};`;let I="";for(let{defaultVariableName:j,id:H,isChunk:J,name:W,namedExportsMode:sr,namespaceVariableName:rr,reexports:hr}of i)if(hr&&t){for(let vr of hr)if(vr.reexported!=="*"){let q=snr(W,vr.imported,sr,J,j,rr,s,H,h,b);if(I)I+=o;if(vr.imported!=="*"&&vr.needsLiveBinding){let[T,V]=P([],{functionReturn:!0,lineBreakIndent:null,name:null});I+=`Object.defineProperty(exports,${p}'${vr.reexported}',${p}{${o}${u}enumerable:${p}true,${o}${u}get:${p}${T}${q}${V}${o}});`}else I+=`exports${b(vr.reexported)}${p}=${p}${q};`}}for(let{exported:j,local:H}of r){let J=`exports${b(j)}`,W=H;if(J!==W){if(I)I+=o;I+=`${J}${p}=${p}${W};`}}for(let{name:j,reexports:H}of i)if(H&&t){for(let J of H)if(J.reexported==="*"){if(I)I+=o;let W=`{${o}${u}if${p}(k${p}!==${p}'default'${p}&&${p}!exports.hasOwnProperty(k))${p}${JIr(j,J.needsLiveBinding,u,l)}${L}${o}}`;I+=w==="var"&&J.needsLiveBinding?`Object.keys(${j}).forEach(${M(["k"],{isAsync:!1,name:null})}${W});`:`for${p}(${w} k in ${j})${p}${W}`}}if(I)return`${o}${o}${I}`;return""}function QIr(r,i,t,s,l){if(r.length>0)return r[0].local;else for(let{defaultVariableName:u,id:h,isChunk:c,name:p,namedExportsMode:w,namespaceVariableName:P,reexports:M}of i)if(M)return snr(p,M[0].imported,w,c,u,P,t,h,s,l)}function snr(r,i,t,s,l,u,h,c,p,w){if(i==="default"){if(!s){let P=String(h(c)),M=Yp[P]?l:r;return l9(P,p)?`${M}${w("default")}`:M}return t?`${r}${w("default")}`:r}if(i==="*")return(s?!t:Wp[String(h(c))])?u:r;return`${r}${w(i)}`}function Dfr(r){return r([["value","true"]],{lineBreakIndent:null})}function f9(r,i,t,{_:s,getObject:l}){if(r){if(i){if(t)return`Object.defineProperties(exports,${s}${l([["__esModule",Dfr(l)],[null,`[Symbol.toStringTag]:${s}${Vp(l)}`]],{lineBreakIndent:null})});`;return`Object.defineProperty(exports,${s}'__esModule',${s}${Dfr(l)});`}if(t)return`Object.defineProperty(exports,${s}Symbol.toStringTag,${s}${Vp(l)});`}return""}function h9(r,i,t,s,l,u,h,c){let{_:p,cnst:w,n:P}=c,M=new Set,b=[],o=(L,I,j)=>{M.add(I),b.push(`${w} ${L}${p}=${p}/*#__PURE__*/${I}(${j});`)};for(let{defaultVariableName:L,imports:I,id:j,isChunk:H,name:J,namedExportsMode:W,namespaceVariableName:sr,reexports:rr}of r)if(H){for(let{imported:hr,reexported:vr}of[...I||[],...rr||[]])if(hr==="*"&&vr!=="*"){if(!W)o(sr,Ep,J);break}}else{let hr=String(i(j)),vr=!1,q=!1;for(let{imported:T,reexported:V}of[...I||[],...rr||[]]){let S,k;if(T==="default"){if(!vr){if(vr=!0,L!==sr)k=L,S=Yp[hr]}}else if(T==="*"&&V!=="*"){if(!q)q=!0,S=Wp[hr],k=sr}if(S)o(k,S,J)}}return`${y4(M,u,h,c,t,s,l)}${b.length>0?`${b.join(P)}${P}${P}`:""}`}function YIr(r){return r.endsWith(".js")?r:r+".js"}function anr(r,i){if(r[0]!==".")return r;return i?YIr(r):tnr(r)}function w4(r,i){let t=i.map(({id:s})=>s).filter((s)=>(s in WIr));if(!t.length)return;r({code:"MISSING_NODE_BUILTINS",message:`Creating a browser bundle that depends on Node.js built-in modules (${ef(t)}). You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`,modules:t})}function GIr(r,{accessedGlobals:i,dependencies:t,exports:s,hasExports:l,id:u,indent:h,intro:c,isEntryFacade:p,isModuleFacade:w,namedExportsMode:P,outro:M,snippets:b,warn:o},{amd:L,esModule:I,externalLiveBindings:j,freeze:H,interop:J,namespaceToStringTag:W,strict:sr}){w4(o,t);let rr=t.map((U)=>`'${anr(U.id,L.forceJsExtensionForImports)}'`),hr=t.map((U)=>U.name),{n:vr,getNonArrowFunctionIntro:q,_:T}=b;if(P&&l)hr.unshift("exports"),rr.unshift("'exports'");if(i.has("require"))hr.unshift("require"),rr.unshift("'require'");if(i.has("module"))hr.unshift("module"),rr.unshift("'module'");let V=enr(L,u),S=(V?`'${V}',${T}`:"")+(rr.length?`[${rr.join(`,${T}`)}],${T}`:""),k=sr?`${T}'use strict';`:"";r.prepend(`${c}${h9(t,J,j,H,W,i,h,b)}`);let er=u9(s,t,P,J,b,h,j),tr=f9(P&&l,p&&I,w&&W,b);if(tr)tr=vr+vr+tr;return r.append(`${er}${tr}${M}`),r.indent(h).prepend(`${L.define}(${S}(${q(hr,{isAsync:!1,name:null})}{${k}${vr}${vr}`).append(`${vr}${vr}}));`)}function KIr(r,{accessedGlobals:i,dependencies:t,exports:s,hasExports:l,indent:u,intro:h,isEntryFacade:c,isModuleFacade:p,namedExportsMode:w,outro:P,snippets:M},{compact:b,esModule:o,externalLiveBindings:L,freeze:I,interop:j,namespaceToStringTag:H,strict:J}){let{_:W,n:sr}=M,rr=J?`'use strict';${sr}${sr}`:"",hr=f9(w&&l,c&&o,p&&H,M);if(hr)hr+=sr+sr;let vr=XIr(t,M,b),q=h9(t,j,L,I,H,i,u,M);r.prepend(`${rr}${h}${hr}${vr}${q}`);let T=u9(s,t,w,j,M,u,L,`module.exports${W}=${W}`);return r.append(`${T}${P}`)}function XIr(r,{_:i,cnst:t,n:s},l){let u="",h=!1;for(let{id:c,name:p,reexports:w,imports:P}of r)if(!w&&!P){if(u)u+=l&&!h?",":`;${s}`;h=!1,u+=`require('${c}')`}else u+=l&&h?",":`${u?`;${s}`:""}${t} `,h=!0,u+=`${p}${i}=${i}require('${c}')`;if(u)return`${u};${s}${s}`;return""}function DIr(r,{accessedGlobals:i,indent:t,intro:s,outro:l,dependencies:u,exports:h,snippets:c},{externalLiveBindings:p,freeze:w,namespaceToStringTag:P}){let{_:M,n:b}=c,o=kIr(u,M);if(o.length>0)s+=o.join(b)+b+b;if(s+=y4(null,i,t,c,p,w,P),s)r.prepend(s);let L=_Ir(h,c);if(L.length)r.append(b+b+L.join(b).trim());if(l)r.append(l);return r.trim()}function kIr(r,i){let t=[];for(let{id:s,reexports:l,imports:u,name:h}of r){if(!l&&!u){t.push(`import${i}'${s}';`);continue}if(u){let c=null,p=null,w=[];for(let P of u)if(P.imported==="default")c=P;else if(P.imported==="*")p=P;else w.push(P);if(p)t.push(`import${i}*${i}as ${p.local} from${i}'${s}';`);if(c&&w.length===0)t.push(`import ${c.local} from${i}'${s}';`);else if(w.length>0)t.push(`import ${c?`${c.local},${i}`:""}{${i}${w.map((P)=>{if(P.imported===P.local)return P.imported;else return`${P.imported} as ${P.local}`}).join(`,${i}`)}${i}}${i}from${i}'${s}';`)}if(l){let c=null,p=[],w=[];for(let P of l)if(P.reexported==="*")c=P;else if(P.imported==="*")p.push(P);else w.push(P);if(c)t.push(`export${i}*${i}from${i}'${s}';`);if(p.length>0){if(!u||!u.some((P)=>P.imported==="*"&&P.local===h))t.push(`import${i}*${i}as ${h} from${i}'${s}';`);for(let P of p)t.push(`export${i}{${i}${h===P.reexported?h:`${h} as ${P.reexported}`} };`)}if(w.length>0)t.push(`export${i}{${i}${w.map((P)=>{if(P.imported===P.reexported)return P.imported;else return`${P.imported} as ${P.reexported}`}).join(`,${i}`)}${i}}${i}from${i}'${s}';`)}}return t}function _Ir(r,{_:i,cnst:t}){let s=[],l=[];for(let u of r){if(u.expression)s.push(`${t} ${u.local}${i}=${i}${u.expression};`);l.push(u.exported===u.local?u.local:`${u.local} as ${u.exported}`)}if(l.length)s.push(`export${i}{${i}${l.join(`,${i}`)}${i}};`);return s}function xIr(r,i,t,{_:s,getPropertyAccess:l,s:u},h){let c=r.split(".");c[0]=(typeof t==="function"?t(c[0]):t[c[0]])||c[0],c.pop();let p=i;return c.map((w)=>{return p+=l(w),`${p}${s}=${s}${p}${s}||${s}{}${u}`}).join(h?",":`
33
33
  `)+(h&&c.length?";":`
34
- `)}function x5(r,i,t,s,{_:l,getPropertyAccess:u}){let h=r.split(".");h[0]=(typeof t==="function"?t(h[0]):t[h[0]])||h[0];let c=h.pop(),p=i,w=h.map((P)=>{return p+=u(P),`${p}${l}=${l}${p}${l}||${l}{}`}).concat(`${p}${u(c)}`).join(`,${l}`)+`${l}=${l}${s}`;if(h.length>0)w=`(${w})`;return w}function lnr(r){let i=r.length;while(i--){let{imports:t,reexports:s}=r[i];if(t||s)return r.slice(0,i+1)}return[]}function rFr(r,{accessedGlobals:i,dependencies:t,exports:s,hasExports:l,indent:u,intro:h,namedExportsMode:c,outro:p,snippets:w,warn:P},{compact:M,esModule:b,extend:o,freeze:L,externalLiveBindings:I,globals:j,interop:H,name:J,namespaceToStringTag:W,strict:sr}){let{_:rr,getNonArrowFunctionIntro:hr,getPropertyAccess:vr,n:q}=w,T=J&&J.includes("."),V=!o&&!T;if(J&&V&&!hVr(J))return yi({code:"ILLEGAL_IDENTIFIER_AS_NAME",message:`Given name "${J}" is not a legal JS identifier. If you need this, you can try "output.extend: true".`});w4(P,t);let S=lnr(t),k=S.map((jr)=>jr.globalName||"null"),er=S.map((jr)=>jr.name);if(l&&!J)P({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(c&&l)if(o)k.unshift(`this${q2(J,vr)}${rr}=${rr}this${q2(J,vr)}${rr}||${rr}{}`),er.unshift("exports");else k.unshift("{}"),er.unshift("exports");let tr=sr?`${u}'use strict';${q}`:"",U=h9(t,H,I,L,W,i,u,w);r.prepend(`${h}${U}`);let Z=`(${hr(er,{isAsync:!1,name:null})}{${q}${tr}${q}`;if(l){if(J&&!(o&&c))Z=(V?`var ${J}`:`this${q2(J,vr)}`)+`${rr}=${rr}${Z}`;if(T)Z=xIr(J,"this",j,w,M)+Z}let Cr=`${q}${q}})(${k.join(`,${rr}`)});`;if(l&&!o&&c)Cr=`${q}${q}${u}return exports;${Cr}`;let Pr=u9(s,t,c,H,w,u,I),zr=f9(c&&l,b,W,w);if(zr)zr=q+q+zr;return r.append(`${Pr}${zr}${p}`),r.indent(u).prepend(Z).append(Cr)}function iFr(r,{accessedGlobals:i,dependencies:t,exports:s,hasExports:l,indent:u,intro:h,snippets:c,outro:p,usesTopLevelAwait:w},{externalLiveBindings:P,freeze:M,name:b,namespaceToStringTag:o,strict:L,systemNullSetters:I}){let{_:j,getFunctionIntro:H,getNonArrowFunctionIntro:J,n:W,s:sr}=c,{importBindings:rr,setters:hr,starExcludes:vr}=tFr(t,s,u,c),q=b?`'${b}',${j}`:"",T=i.has("module")?["exports","module"]:l?["exports"]:[],V=`System.register(${q}[`+t.map(({id:k})=>`'${k}'`).join(`,${j}`)+`],${j}(${J(T,{isAsync:!1,name:null})}{${W}${u}${L?"'use strict';":""}`+sFr(vr,u,c)+aFr(rr,u,c)+`${W}${u}return${j}{${hr.length?`${W}${u}${u}setters:${j}[${hr.map((k)=>k?`${H(["module"],{isAsync:!1,name:null})}{${W}${u}${u}${u}${k}${W}${u}${u}}`:I?"null":`${H([],{isAsync:!1,name:null})}{}`).join(`,${j}`)}],`:""}${W}`;V+=`${u}${u}execute:${j}(${J([],{isAsync:w,name:null})}{${W}${W}`;let S=`${u}${u}})${W}${u}}${sr}${W}}));`;return r.prepend(h+y4(null,i,u,c,P,M,o)+lFr(s,u,c)),r.append(`${p}${W}${W}`+uFr(s,u,c)+fFr(s,u,c)),r.indent(`${u}${u}${u}`).append(S).prepend(V)}function tFr(r,i,t,{_:s,cnst:l,getObject:u,getPropertyAccess:h,n:c}){let p=[],w=[],P=null;for(let{imports:M,reexports:b}of r){let o=[];if(M)for(let L of M)if(p.push(L.local),L.imported==="*")o.push(`${L.local}${s}=${s}module;`);else o.push(`${L.local}${s}=${s}module${h(L.imported)};`);if(b){let L=[],I=!1;for(let{imported:j,reexported:H}of b)if(H==="*")I=!0;else L.push([H,j==="*"?"module":`module${h(j)}`]);if(L.length>1||I){let j=u(L,{lineBreakIndent:null});if(I){if(!P)P=eFr({dependencies:r,exports:i});o.push(`${l} setter${s}=${s}${j};`,`for${s}(${l} name in module)${s}{`,`${t}if${s}(!_starExcludes[name])${s}setter[name]${s}=${s}module[name];`,"}","exports(setter);")}else o.push(`exports(${j});`)}else{let[j,H]=L[0];o.push(`exports('${j}',${s}${H});`)}}w.push(o.join(`${c}${t}${t}${t}`))}return{importBindings:p,setters:w,starExcludes:P}}function C4(r,i,{_:t,n:s}){if(r.length===0)return"";if(r.length===1)return`exports('${r[0].name}',${t}${r[0].value});${s}${s}`;return`exports({${s}`+r.map(({name:l,value:u})=>`${i}${l}:${t}${u}`).join(`,${s}`)+`${s}});${s}${s}`}function r7(r,i,t){if(!r)return"null";return`${i}${q2(r,t)}`}function hFr(r,i,{_:t,getPropertyAccess:s}){let l=i;return r.split(".").map((u)=>l+=s(u)).join(`${t}&&${t}`)}function nFr(r,{accessedGlobals:i,dependencies:t,exports:s,hasExports:l,id:u,indent:h,intro:c,namedExportsMode:p,outro:w,snippets:P,warn:M},{amd:b,compact:o,esModule:L,extend:I,externalLiveBindings:j,freeze:H,interop:J,name:W,namespaceToStringTag:sr,globals:rr,noConflict:hr,strict:vr}){let{_:q,cnst:T,getFunctionIntro:V,getNonArrowFunctionIntro:S,getPropertyAccess:k,n:er,s:tr}=P,U=o?"f":"factory",Z=o?"g":"global";if(l&&!W)return yi({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.'});w4(M,t);let Cr=t.map((Be)=>`'${anr(Be.id,b.forceJsExtensionForImports)}'`),Pr=t.map((Be)=>`require('${Be.id}')`),zr=lnr(t),jr=zr.map((Be)=>r7(Be.globalName,Z,k)),ri=zr.map((Be)=>Be.name);if(p&&(l||hr))Cr.unshift("'exports'"),Pr.unshift("exports"),jr.unshift(x5(W,Z,rr,`${I?`${r7(W,Z,k)}${q}||${q}`:""}{}`,P)),ri.unshift("exports");let $i=enr(b,u),ji=($i?`'${$i}',${q}`:"")+(Cr.length?`[${Cr.join(`,${q}`)}],${q}`:""),zi=b.define,Yr=!p&&l?`module.exports${q}=${q}`:"",Vr=vr?`${q}'use strict';${er}`:"",lt;if(hr){let Be=o?"e":"exports",Rn;if(!p&&l)Rn=`${T} ${Be}${q}=${q}${x5(W,Z,rr,`${U}(${jr.join(`,${q}`)})`,P)};`;else{let B9=jr.shift();Rn=`${T} ${Be}${q}=${q}${B9};${er}${h}${h}${U}(${[Be].concat(jr).join(`,${q}`)});`}lt=`(${V([],{isAsync:!1,name:null})}{${er}${h}${h}${T} current${q}=${q}${hFr(W,Z,P)};${er}${h}${h}${Rn}${er}${h}${h}${Be}.noConflict${q}=${q}${V([],{isAsync:!1,name:null})}{${q}${r7(W,Z,k)}${q}=${q}current;${q}return ${Be}${tr}${q}};${er}${h}})()`}else if(lt=`${U}(${jr.join(`,${q}`)})`,!p&&l)lt=x5(W,Z,rr,lt,P);let Jr=l||hr&&p||jr.length>0,dr=[U];if(Jr)dr.unshift(Z);let Ar=Jr?`this,${q}`:"",pr=Jr?`(${Z}${q}=${q}typeof globalThis${q}!==${q}'undefined'${q}?${q}globalThis${q}:${q}${Z}${q}||${q}self,${q}`:"",Er=Jr?")":"",Zr=Jr?`${h}typeof exports${q}===${q}'object'${q}&&${q}typeof module${q}!==${q}'undefined'${q}?${q}${Yr}${U}(${Pr.join(`,${q}`)})${q}:${er}`:"",kr=`(${S(dr,{isAsync:!1,name:null})}{${er}`+Zr+`${h}typeof ${zi}${q}===${q}'function'${q}&&${q}${zi}.amd${q}?${q}${zi}(${ji}${U})${q}:${er}${h}${pr}${lt}${Er};${er}})(${Ar}(${S(ri,{isAsync:!1,name:null})}{${Vr}${er}`,Dr=er+er+"}));";r.prepend(`${c}${h9(t,J,j,H,sr,i,h,P)}`);let et=u9(s,t,p,J,P,h,j),Pt=f9(p&&l,L,sr,P);if(Pt)Pt=er+er+Pt;return r.append(`${et}${Pt}${w}`),r.trim().indent(h).append(Dr).prepend(kr)}class $7{constructor(r,i){this.isOriginal=!0,this.filename=r,this.content=i}traceSegment(r,i,t){return{column:i,line:r,name:t,source:this}}}class Fp{constructor(r,i){this.sources=i,this.names=r.names,this.mappings=r.mappings}traceMappings(){let r=[],i=new Map,t=[],s=[],l=new Map,u=[];for(let h of this.mappings){let c=[];for(let p of h){if(p.length===1)continue;let w=this.sources[p[1]];if(!w)continue;let P=w.traceSegment(p[2],p[3],p.length===5?this.names[p[4]]:"");if(P){let{column:M,line:b,name:o,source:{content:L,filename:I}}=P,j=i.get(I);if(j===void 0)j=r.length,r.push(I),i.set(I,j),t[j]=L;else if(t[j]==null)t[j]=L;else if(L!=null&&t[j]!==L)return yi({message:`Multiple conflicting contents for sourcemap source ${I}`});let H=[p[0],j,b,M];if(o){let J=l.get(o);if(J===void 0)J=s.length,s.push(o),l.set(o,J);H[4]=J}c.push(H)}}u.push(c)}return{mappings:u,names:s,sources:r,sourcesContent:t}}traceSegment(r,i,t){let s=this.mappings[r];if(!s)return null;let l=0,u=s.length-1;while(l<=u){let h=l+u>>1,c=s[h];if(c[0]===i||l===u){if(c.length==1)return null;let p=this.sources[c[1]];if(!p)return null;return p.traceSegment(c[2],c[3],c.length===5?this.names[c[4]]:t)}if(c[0]>i)u=h-1;else l=h+1}return null}}function unr(r){return function(t,s){if(s.mappings)return new Fp(s,[t]);return r({code:"SOURCEMAP_BROKEN",message:`Sourcemap is likely to be incorrect: a plugin (${s.plugin}) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,plugin:s.plugin,url:"https://rollupjs.org/guide/en/#warning-sourcemap-is-likely-to-be-incorrect"}),new Fp({mappings:[],names:[]},[t])}}function fnr(r,i,t,s,l){let u;if(!t)u=new $7(r,i);else{let h=t.sources,c=t.sourcesContent||[],p=dl(r)||".",w=t.sourceRoot||".",P=h.map((M,b)=>new $7(zs(p,w,M),c[b]));u=new Fp(t,P)}return s.reduce(l,u)}function yFr(r,i,t,s,l,u){let h=unr(u),c=t.filter((L)=>!L.excludeFromSourcemap).map((L)=>fnr(L.id,L.originalCode,L.originalSourcemap,L.sourcemapChain,h)),p=new Fp(i,c),w=s.reduce(h,p),{sources:P,sourcesContent:M,names:b,mappings:o}=w.traceMappings();if(r){let L=dl(r);P=P.map((I)=>L7(L,I)),r=tf(r)}return M=l?null:M,new Up({file:r,mappings:o,names:b,sources:P,sourcesContent:M})}function vFr(r,i,t,s,l){if(!s.length)return t;return{version:3,...fnr(r,i,t,s,unr(l)).traceMappings()}}function mFr(r,i,t,s,l,u,h,c,p,w,P,M,b){let o=r.slice().reverse();for(let L of o)L.scope.addUsedOutsideNames(s,l,P,M);oFr(s,o,b),pFr[l](s,t,i,u,h,c,p,w);for(let L of o)L.scope.deconflict(l,P,M)}function kfr(r,i,t,s,l,u,h,c){for(let p of t.dependencies)if(l||p instanceof Et)p.variableName=bl(p.suggestedVariableName,r);for(let p of i){let{module:w,name:P}=p;if(p.isNamespace&&(l||w instanceof Et))p.setRenderNames(null,(w instanceof Et?w:h.get(w)).variableName);else if(w instanceof Et&&P==="default")p.setRenderNames(null,bl([...w.exportedVariables].some(([M,b])=>b==="*"&&M.included)?w.suggestedVariableName+"__default":w.suggestedVariableName,r));else p.setRenderNames(null,bl(P,r))}for(let p of c)p.setRenderNames(null,bl(p.name,r))}function p2(r,i,{deconflictedDefault:t,deconflictedNamespace:s,dependencies:l},u,h,c,p){for(let w of l)w.variableName=bl(w.suggestedVariableName,r);for(let w of s)w.namespaceVariableName=bl(`${w.suggestedVariableName}__namespace`,r);for(let w of t)if(s.has(w)&&PIr(String(u(w.id)),c))w.defaultVariableName=w.namespaceVariableName;else w.defaultVariableName=bl(`${w.suggestedVariableName}__default`,r);for(let w of i){let P=w.module;if(P instanceof Et){let M=w.name;if(M==="default"){let b=String(u(P.id)),o=Yp[b]?P.defaultVariableName:P.variableName;if(l9(b,c))w.setRenderNames(o,"default");else w.setRenderNames(null,o)}else if(M==="*")w.setRenderNames(null,Wp[String(u(P.id))]?P.namespaceVariableName:P.variableName);else w.setRenderNames(P.variableName,null)}else{let M=p.get(P);if(h&&w.isNamespace)w.setRenderNames(null,M.exportMode==="default"?M.namespaceVariableName:M.variableName);else if(M.exportMode==="default")w.setRenderNames(null,M.variableName);else w.setRenderNames(M.variableName,M.getVariableExportName(w))}}}function oFr(r,i,t){for(let s of i){for(let l of s.scope.variables.values())if(l.included&&!(l.renderBaseName||l instanceof ql&&l.getOriginalVariable()!==l))l.setRenderNames(null,bl(l.name,r));if(t.has(s)){let l=s.namespace;l.setRenderNames(null,bl(l.name,r))}}}function m2(r){if(!r.match(bFr))return r;return r.replace(wFr,"\\\\").replace(dFr,"\\$1")}function CFr(r,i,t){let s=0;for(let l of r){let[u]=l.name;if(i.has(u))do if(u=b7(++s),u.charCodeAt(0)===49)s+=9*64**(u.length-1),u=b7(s);while(W2.has(u)||i.has(u));i.set(u,l),t.set(l,[u])}}function qFr(r,i,t){for(let s of r){let l=0,u=s.name;while(i.has(u))u=s.name+"$"+ ++l;i.set(u,s),t.set(s,[u])}}function PFr(r,{exports:i,name:t,format:s},l,u,h){let c=r.getExportNames();if(i==="default"){if(c.length!==1||c[0]!=="default")return yi(dfr("default",c,u))}else if(i==="none"&&c.length)return yi(dfr("none",c,u));if(i==="auto")if(c.length===0)i="none";else if(c.length===1&&c[0]==="default"){if(s==="cjs"&&l.has("exports"))h(xEr(u));i="default"}else{if(s!=="es"&&s!=="system"&&c.includes("default"))h(XEr(u,t));i="named"}return i}function $Fr(r){let i=r.split(`
34
+ `)}function x5(r,i,t,s,{_:l,getPropertyAccess:u}){let h=r.split(".");h[0]=(typeof t==="function"?t(h[0]):t[h[0]])||h[0];let c=h.pop(),p=i,w=h.map((P)=>{return p+=u(P),`${p}${l}=${l}${p}${l}||${l}{}`}).concat(`${p}${u(c)}`).join(`,${l}`)+`${l}=${l}${s}`;if(h.length>0)w=`(${w})`;return w}function lnr(r){let i=r.length;while(i--){let{imports:t,reexports:s}=r[i];if(t||s)return r.slice(0,i+1)}return[]}function rFr(r,{accessedGlobals:i,dependencies:t,exports:s,hasExports:l,indent:u,intro:h,namedExportsMode:c,outro:p,snippets:w,warn:P},{compact:M,esModule:b,extend:o,freeze:L,externalLiveBindings:I,globals:j,interop:H,name:J,namespaceToStringTag:W,strict:sr}){let{_:rr,getNonArrowFunctionIntro:hr,getPropertyAccess:vr,n:q}=w,T=J&&J.includes("."),V=!o&&!T;if(J&&V&&!hVr(J))return yi({code:"ILLEGAL_IDENTIFIER_AS_NAME",message:`Given name "${J}" is not a legal JS identifier. If you need this, you can try "output.extend: true".`});w4(P,t);let S=lnr(t),k=S.map((zr)=>zr.globalName||"null"),er=S.map((zr)=>zr.name);if(l&&!J)P({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(c&&l)if(o)k.unshift(`this${q2(J,vr)}${rr}=${rr}this${q2(J,vr)}${rr}||${rr}{}`),er.unshift("exports");else k.unshift("{}"),er.unshift("exports");let tr=sr?`${u}'use strict';${q}`:"",U=h9(t,H,I,L,W,i,u,w);r.prepend(`${h}${U}`);let Z=`(${hr(er,{isAsync:!1,name:null})}{${q}${tr}${q}`;if(l){if(J&&!(o&&c))Z=(V?`var ${J}`:`this${q2(J,vr)}`)+`${rr}=${rr}${Z}`;if(T)Z=xIr(J,"this",j,w,M)+Z}let Cr=`${q}${q}})(${k.join(`,${rr}`)});`;if(l&&!o&&c)Cr=`${q}${q}${u}return exports;${Cr}`;let Pr=u9(s,t,c,H,w,u,I),jr=f9(c&&l,b,W,w);if(jr)jr=q+q+jr;return r.append(`${Pr}${jr}${p}`),r.indent(u).prepend(Z).append(Cr)}function iFr(r,{accessedGlobals:i,dependencies:t,exports:s,hasExports:l,indent:u,intro:h,snippets:c,outro:p,usesTopLevelAwait:w},{externalLiveBindings:P,freeze:M,name:b,namespaceToStringTag:o,strict:L,systemNullSetters:I}){let{_:j,getFunctionIntro:H,getNonArrowFunctionIntro:J,n:W,s:sr}=c,{importBindings:rr,setters:hr,starExcludes:vr}=tFr(t,s,u,c),q=b?`'${b}',${j}`:"",T=i.has("module")?["exports","module"]:l?["exports"]:[],V=`System.register(${q}[`+t.map(({id:k})=>`'${k}'`).join(`,${j}`)+`],${j}(${J(T,{isAsync:!1,name:null})}{${W}${u}${L?"'use strict';":""}`+sFr(vr,u,c)+aFr(rr,u,c)+`${W}${u}return${j}{${hr.length?`${W}${u}${u}setters:${j}[${hr.map((k)=>k?`${H(["module"],{isAsync:!1,name:null})}{${W}${u}${u}${u}${k}${W}${u}${u}}`:I?"null":`${H([],{isAsync:!1,name:null})}{}`).join(`,${j}`)}],`:""}${W}`;V+=`${u}${u}execute:${j}(${J([],{isAsync:w,name:null})}{${W}${W}`;let S=`${u}${u}})${W}${u}}${sr}${W}}));`;return r.prepend(h+y4(null,i,u,c,P,M,o)+lFr(s,u,c)),r.append(`${p}${W}${W}`+uFr(s,u,c)+fFr(s,u,c)),r.indent(`${u}${u}${u}`).append(S).prepend(V)}function tFr(r,i,t,{_:s,cnst:l,getObject:u,getPropertyAccess:h,n:c}){let p=[],w=[],P=null;for(let{imports:M,reexports:b}of r){let o=[];if(M)for(let L of M)if(p.push(L.local),L.imported==="*")o.push(`${L.local}${s}=${s}module;`);else o.push(`${L.local}${s}=${s}module${h(L.imported)};`);if(b){let L=[],I=!1;for(let{imported:j,reexported:H}of b)if(H==="*")I=!0;else L.push([H,j==="*"?"module":`module${h(j)}`]);if(L.length>1||I){let j=u(L,{lineBreakIndent:null});if(I){if(!P)P=eFr({dependencies:r,exports:i});o.push(`${l} setter${s}=${s}${j};`,`for${s}(${l} name in module)${s}{`,`${t}if${s}(!_starExcludes[name])${s}setter[name]${s}=${s}module[name];`,"}","exports(setter);")}else o.push(`exports(${j});`)}else{let[j,H]=L[0];o.push(`exports('${j}',${s}${H});`)}}w.push(o.join(`${c}${t}${t}${t}`))}return{importBindings:p,setters:w,starExcludes:P}}function C4(r,i,{_:t,n:s}){if(r.length===0)return"";if(r.length===1)return`exports('${r[0].name}',${t}${r[0].value});${s}${s}`;return`exports({${s}`+r.map(({name:l,value:u})=>`${i}${l}:${t}${u}`).join(`,${s}`)+`${s}});${s}${s}`}function r7(r,i,t){if(!r)return"null";return`${i}${q2(r,t)}`}function hFr(r,i,{_:t,getPropertyAccess:s}){let l=i;return r.split(".").map((u)=>l+=s(u)).join(`${t}&&${t}`)}function nFr(r,{accessedGlobals:i,dependencies:t,exports:s,hasExports:l,id:u,indent:h,intro:c,namedExportsMode:p,outro:w,snippets:P,warn:M},{amd:b,compact:o,esModule:L,extend:I,externalLiveBindings:j,freeze:H,interop:J,name:W,namespaceToStringTag:sr,globals:rr,noConflict:hr,strict:vr}){let{_:q,cnst:T,getFunctionIntro:V,getNonArrowFunctionIntro:S,getPropertyAccess:k,n:er,s:tr}=P,U=o?"f":"factory",Z=o?"g":"global";if(l&&!W)return yi({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.'});w4(M,t);let Cr=t.map((Be)=>`'${anr(Be.id,b.forceJsExtensionForImports)}'`),Pr=t.map((Be)=>`require('${Be.id}')`),jr=lnr(t),zr=jr.map((Be)=>r7(Be.globalName,Z,k)),ri=jr.map((Be)=>Be.name);if(p&&(l||hr))Cr.unshift("'exports'"),Pr.unshift("exports"),zr.unshift(x5(W,Z,rr,`${I?`${r7(W,Z,k)}${q}||${q}`:""}{}`,P)),ri.unshift("exports");let $i=enr(b,u),ji=($i?`'${$i}',${q}`:"")+(Cr.length?`[${Cr.join(`,${q}`)}],${q}`:""),zi=b.define,Yr=!p&&l?`module.exports${q}=${q}`:"",Vr=vr?`${q}'use strict';${er}`:"",lt;if(hr){let Be=o?"e":"exports",Rn;if(!p&&l)Rn=`${T} ${Be}${q}=${q}${x5(W,Z,rr,`${U}(${zr.join(`,${q}`)})`,P)};`;else{let B9=zr.shift();Rn=`${T} ${Be}${q}=${q}${B9};${er}${h}${h}${U}(${[Be].concat(zr).join(`,${q}`)});`}lt=`(${V([],{isAsync:!1,name:null})}{${er}${h}${h}${T} current${q}=${q}${hFr(W,Z,P)};${er}${h}${h}${Rn}${er}${h}${h}${Be}.noConflict${q}=${q}${V([],{isAsync:!1,name:null})}{${q}${r7(W,Z,k)}${q}=${q}current;${q}return ${Be}${tr}${q}};${er}${h}})()`}else if(lt=`${U}(${zr.join(`,${q}`)})`,!p&&l)lt=x5(W,Z,rr,lt,P);let Jr=l||hr&&p||zr.length>0,dr=[U];if(Jr)dr.unshift(Z);let Ar=Jr?`this,${q}`:"",pr=Jr?`(${Z}${q}=${q}typeof globalThis${q}!==${q}'undefined'${q}?${q}globalThis${q}:${q}${Z}${q}||${q}self,${q}`:"",Er=Jr?")":"",Zr=Jr?`${h}typeof exports${q}===${q}'object'${q}&&${q}typeof module${q}!==${q}'undefined'${q}?${q}${Yr}${U}(${Pr.join(`,${q}`)})${q}:${er}`:"",kr=`(${S(dr,{isAsync:!1,name:null})}{${er}`+Zr+`${h}typeof ${zi}${q}===${q}'function'${q}&&${q}${zi}.amd${q}?${q}${zi}(${ji}${U})${q}:${er}${h}${pr}${lt}${Er};${er}})(${Ar}(${S(ri,{isAsync:!1,name:null})}{${Vr}${er}`,Dr=er+er+"}));";r.prepend(`${c}${h9(t,J,j,H,sr,i,h,P)}`);let et=u9(s,t,p,J,P,h,j),Pt=f9(p&&l,L,sr,P);if(Pt)Pt=er+er+Pt;return r.append(`${et}${Pt}${w}`),r.trim().indent(h).append(Dr).prepend(kr)}class $7{constructor(r,i){this.isOriginal=!0,this.filename=r,this.content=i}traceSegment(r,i,t){return{column:i,line:r,name:t,source:this}}}class Fp{constructor(r,i){this.sources=i,this.names=r.names,this.mappings=r.mappings}traceMappings(){let r=[],i=new Map,t=[],s=[],l=new Map,u=[];for(let h of this.mappings){let c=[];for(let p of h){if(p.length===1)continue;let w=this.sources[p[1]];if(!w)continue;let P=w.traceSegment(p[2],p[3],p.length===5?this.names[p[4]]:"");if(P){let{column:M,line:b,name:o,source:{content:L,filename:I}}=P,j=i.get(I);if(j===void 0)j=r.length,r.push(I),i.set(I,j),t[j]=L;else if(t[j]==null)t[j]=L;else if(L!=null&&t[j]!==L)return yi({message:`Multiple conflicting contents for sourcemap source ${I}`});let H=[p[0],j,b,M];if(o){let J=l.get(o);if(J===void 0)J=s.length,s.push(o),l.set(o,J);H[4]=J}c.push(H)}}u.push(c)}return{mappings:u,names:s,sources:r,sourcesContent:t}}traceSegment(r,i,t){let s=this.mappings[r];if(!s)return null;let l=0,u=s.length-1;while(l<=u){let h=l+u>>1,c=s[h];if(c[0]===i||l===u){if(c.length==1)return null;let p=this.sources[c[1]];if(!p)return null;return p.traceSegment(c[2],c[3],c.length===5?this.names[c[4]]:t)}if(c[0]>i)u=h-1;else l=h+1}return null}}function unr(r){return function(t,s){if(s.mappings)return new Fp(s,[t]);return r({code:"SOURCEMAP_BROKEN",message:`Sourcemap is likely to be incorrect: a plugin (${s.plugin}) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help`,plugin:s.plugin,url:"https://rollupjs.org/guide/en/#warning-sourcemap-is-likely-to-be-incorrect"}),new Fp({mappings:[],names:[]},[t])}}function fnr(r,i,t,s,l){let u;if(!t)u=new $7(r,i);else{let h=t.sources,c=t.sourcesContent||[],p=dl(r)||".",w=t.sourceRoot||".",P=h.map((M,b)=>new $7(zs(p,w,M),c[b]));u=new Fp(t,P)}return s.reduce(l,u)}function yFr(r,i,t,s,l,u){let h=unr(u),c=t.filter((L)=>!L.excludeFromSourcemap).map((L)=>fnr(L.id,L.originalCode,L.originalSourcemap,L.sourcemapChain,h)),p=new Fp(i,c),w=s.reduce(h,p),{sources:P,sourcesContent:M,names:b,mappings:o}=w.traceMappings();if(r){let L=dl(r);P=P.map((I)=>L7(L,I)),r=tf(r)}return M=l?null:M,new Up({file:r,mappings:o,names:b,sources:P,sourcesContent:M})}function vFr(r,i,t,s,l){if(!s.length)return t;return{version:3,...fnr(r,i,t,s,unr(l)).traceMappings()}}function mFr(r,i,t,s,l,u,h,c,p,w,P,M,b){let o=r.slice().reverse();for(let L of o)L.scope.addUsedOutsideNames(s,l,P,M);oFr(s,o,b),pFr[l](s,t,i,u,h,c,p,w);for(let L of o)L.scope.deconflict(l,P,M)}function kfr(r,i,t,s,l,u,h,c){for(let p of t.dependencies)if(l||p instanceof Et)p.variableName=bl(p.suggestedVariableName,r);for(let p of i){let{module:w,name:P}=p;if(p.isNamespace&&(l||w instanceof Et))p.setRenderNames(null,(w instanceof Et?w:h.get(w)).variableName);else if(w instanceof Et&&P==="default")p.setRenderNames(null,bl([...w.exportedVariables].some(([M,b])=>b==="*"&&M.included)?w.suggestedVariableName+"__default":w.suggestedVariableName,r));else p.setRenderNames(null,bl(P,r))}for(let p of c)p.setRenderNames(null,bl(p.name,r))}function p2(r,i,{deconflictedDefault:t,deconflictedNamespace:s,dependencies:l},u,h,c,p){for(let w of l)w.variableName=bl(w.suggestedVariableName,r);for(let w of s)w.namespaceVariableName=bl(`${w.suggestedVariableName}__namespace`,r);for(let w of t)if(s.has(w)&&PIr(String(u(w.id)),c))w.defaultVariableName=w.namespaceVariableName;else w.defaultVariableName=bl(`${w.suggestedVariableName}__default`,r);for(let w of i){let P=w.module;if(P instanceof Et){let M=w.name;if(M==="default"){let b=String(u(P.id)),o=Yp[b]?P.defaultVariableName:P.variableName;if(l9(b,c))w.setRenderNames(o,"default");else w.setRenderNames(null,o)}else if(M==="*")w.setRenderNames(null,Wp[String(u(P.id))]?P.namespaceVariableName:P.variableName);else w.setRenderNames(P.variableName,null)}else{let M=p.get(P);if(h&&w.isNamespace)w.setRenderNames(null,M.exportMode==="default"?M.namespaceVariableName:M.variableName);else if(M.exportMode==="default")w.setRenderNames(null,M.variableName);else w.setRenderNames(M.variableName,M.getVariableExportName(w))}}}function oFr(r,i,t){for(let s of i){for(let l of s.scope.variables.values())if(l.included&&!(l.renderBaseName||l instanceof ql&&l.getOriginalVariable()!==l))l.setRenderNames(null,bl(l.name,r));if(t.has(s)){let l=s.namespace;l.setRenderNames(null,bl(l.name,r))}}}function m2(r){if(!r.match(bFr))return r;return r.replace(wFr,"\\\\").replace(dFr,"\\$1")}function CFr(r,i,t){let s=0;for(let l of r){let[u]=l.name;if(i.has(u))do if(u=b7(++s),u.charCodeAt(0)===49)s+=9*64**(u.length-1),u=b7(s);while(W2.has(u)||i.has(u));i.set(u,l),t.set(l,[u])}}function qFr(r,i,t){for(let s of r){let l=0,u=s.name;while(i.has(u))u=s.name+"$"+ ++l;i.set(u,s),t.set(s,[u])}}function PFr(r,{exports:i,name:t,format:s},l,u,h){let c=r.getExportNames();if(i==="default"){if(c.length!==1||c[0]!=="default")return yi(dfr("default",c,u))}else if(i==="none"&&c.length)return yi(dfr("none",c,u));if(i==="auto")if(c.length===0)i="none";else if(c.length===1&&c[0]==="default"){if(s==="cjs"&&l.has("exports"))h(xEr(u));i="default"}else{if(s!=="es"&&s!=="system"&&c.includes("default"))h(XEr(u,t));i="named"}return i}function $Fr(r){let i=r.split(`
35
35
  `),t=i.filter((u)=>/^\t+/.test(u)),s=i.filter((u)=>/^ {2,}/.test(u));if(t.length===0&&s.length===0)return null;if(t.length>=s.length)return"\t";let l=s.reduce((u,h)=>{let c=/^ +/.exec(h)[0].length;return Math.min(c,u)},1/0);return Array(l+1).join(" ")}function gFr(r,i){if(i.indent!==!0)return i.indent;for(let t of r){let s=$Fr(t.originalCode);if(s!==null)return s}return"\t"}function RFr(r,i,t){let s=[],l=new Set;for(let h=i.length-1;h>=0;h--){let c=i[h];if(!l.has(c)){let p=[];hnr(c,p,l,r,t),s.unshift(p)}}let u=new Set;for(let h of s)for(let c of h)u.add(c);return u}function hnr(r,i,t,s,l){let u=r.getDependenciesToBeIncluded();for(let h of u){if(h instanceof Et){i.push(h);continue}let c=l.get(h);if(c!==s){i.push(c);continue}if(!t.has(h))t.add(h),hnr(h,i,t,s,l)}}function g7(r){if(!r)return null;if(typeof r==="string")r=JSON.parse(r);if(r.mappings==="")return{mappings:[],names:[],sources:[],version:3};let i=typeof r.mappings==="string"?yEr(r.mappings):r.mappings;return{...r,mappings:i}}function AFr({code:r,options:i,outputPluginDriver:t,renderChunk:s,sourcemapChain:l}){let u=(h,c,p)=>{if(c==null)return h;if(typeof c==="string")c={code:c,map:void 0};if(c.map!==null){let w=g7(c.map);l.push(w||{missing:!0,plugin:p.name})}return c.code};return t.hookReduceArg0("renderChunk",[r,s,i],u)}function P2(r,i,t){if(c7(r))return yi(eu(`Invalid pattern "${r}" for "${i}", 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 r.replace(/\[(\w+)\]/g,(s,l)=>{if(!t.hasOwnProperty(l))return yi(eu(`"[${l}]" is not a valid placeholder in "${i}" pattern.`));let u=t[l]();if(c7(u))return yi(eu(`Invalid substitution "${u}" for placeholder "[${l}]" in "${i}" pattern, can be neither absolute nor relative path.`));return u})}function R7(r,{[q4]:i}){if(!i.has(r.toLowerCase()))return r;let t=_u(r);r=r.substring(0,r.length-t.length);let s,l=1;while(i.has((s=r+ ++l+t).toLowerCase()));return s}function SFr(r,i,t,s){let l=typeof i==="function"?i(r.id):i[r.id];if(l)return l;if(t)return s({code:"MISSING_GLOBAL_NAME",guess:r.variableName,message:`No name was provided for external module '${r.id}' in output.globals – guessing '${r.variableName}'`,source:r.id}),r.variableName}class fh{constructor(r,i,t,s,l,u,h,c,p,w){this.orderedModules=r,this.inputOptions=i,this.outputOptions=t,this.unsetOptions=s,this.pluginDriver=l,this.modulesById=u,this.chunkByModule=h,this.facadeChunkByModule=c,this.includedNamespaces=p,this.manualChunkAlias=w,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=r.length>0?r[0].execIndex:1/0;let P=new Set(r);for(let M of r){if(M.namespace.included)p.add(M);if(this.isEmpty&&M.isIncluded())this.isEmpty=!1;if(M.info.isEntry||t.preserveModules)this.entryModules.push(M);for(let b of M.includedDynamicImporters)if(!P.has(b)){if(this.dynamicEntryModules.push(M),M.info.syntheticNamedExports&&!t.preserveModules)p.add(M),this.exports.add(M.namespace)}if(M.implicitlyLoadedAfter.size>0)this.implicitEntryModules.push(M)}this.suggestedVariableName=j7(this.generateVariableName())}static generateFacade(r,i,t,s,l,u,h,c,p,w){let P=new fh([],r,i,t,s,l,u,h,c,null);if(P.assignFacadeName(w,p),!h.has(p))h.set(p,P);for(let M of p.getDependenciesToBeIncluded())P.dependencies.add(M instanceof Dt?u.get(M):M);if(!P.dependencies.has(u.get(p))&&p.info.moduleSideEffects&&p.hasEffects())P.dependencies.add(u.get(p));return P.ensureReexportsAreAvailableForModule(p),P.facadeModule=p,P.strictFacade=!0,P}canModuleBeFacade(r,i){let t=r.getExportNamesByVariable();for(let s of this.exports)if(!t.has(s)){if(t.size===0&&r.isUserDefinedEntryPoint&&r.preserveSignature==="strict"&&this.unsetOptions.has("preserveEntrySignatures"))this.inputOptions.onwarn({code:"EMPTY_FACADE",id:r.id,message:`To preserve the export signature of the entry module "${Yi(r.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 s of i)if(!(t.has(s)||s.module===r))return!1;return!0}generateExports(){this.sortedExportNames=null;let r=new Set(this.exports);if(this.facadeModule!==null&&(this.facadeModule.preserveSignature!==!1||this.strictFacade)){let i=this.facadeModule.getExportNamesByVariable();for(let[t,s]of i){this.exportNamesByVariable.set(t,[...s]);for(let l of s)this.exportsByName.set(l,t);r.delete(t)}}if(this.outputOptions.minifyInternalExports)CFr(r,this.exportsByName,this.exportNamesByVariable);else qFr(r,this.exportsByName,this.exportNamesByVariable);if(this.outputOptions.preserveModules||this.facadeModule&&this.facadeModule.info.isEntry)this.exportMode=PFr(this,this.outputOptions,this.unsetOptions,this.facadeModule.id,this.inputOptions.onwarn)}generateFacades(){var r;let i=[],t=new Set([...this.entryModules,...this.implicitEntryModules]),s=new Set(this.dynamicEntryModules.map(({namespace:l})=>l));for(let l of t)if(l.preserveSignature)for(let u of l.getExportNamesByVariable().keys())s.add(u);for(let l of t){let u=Array.from(new Set(l.chunkNames.filter(({isUserDefined:h})=>h).map(({name:h})=>h)),(h)=>({name:h}));if(u.length===0&&l.isUserDefinedEntryPoint)u.push({});if(u.push(...Array.from(l.chunkFileNames,(h)=>({fileName:h}))),u.length===0)u.push({});if(!this.facadeModule){let h=l.preserveSignature==="strict"||l.preserveSignature==="exports-only"&&l.getExportNamesByVariable().size!==0;if(!h||this.outputOptions.preserveModules||this.canModuleBeFacade(l,s)){if(this.facadeModule=l,this.facadeChunkByModule.set(l,this),l.preserveSignature)this.strictFacade=h;this.assignFacadeName(u.shift(),l)}}for(let h of u)i.push(fh.generateFacade(this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.modulesById,this.chunkByModule,this.facadeChunkByModule,this.includedNamespaces,l,h))}for(let l of this.dynamicEntryModules){if(l.info.syntheticNamedExports)continue;if(!this.facadeModule&&this.canModuleBeFacade(l,s))this.facadeModule=l,this.facadeChunkByModule.set(l,this),this.strictFacade=!0,this.dynamicName=i7(l);else if(this.facadeModule===l&&!this.strictFacade&&this.canModuleBeFacade(l,s))this.strictFacade=!0;else if(!((r=this.facadeChunkByModule.get(l))===null||r===void 0?void 0:r.strictFacade))this.includedNamespaces.add(l),this.exports.add(l.namespace)}if(!this.outputOptions.preserveModules)this.addNecessaryImportsForFacades();return i}generateId(r,i,t,s){if(this.fileName!==null)return this.fileName;let[l,u]=this.facadeModule&&this.facadeModule.isUserDefinedEntryPoint?[i.entryFileNames,"output.entryFileNames"]:[i.chunkFileNames,"output.chunkFileNames"];return R7(P2(typeof l==="function"?l(this.getChunkInfo()):l,u,{format:()=>i.format,hash:()=>s?this.computeContentHashWithDependencies(r,i,t):"[hash]",name:()=>this.getChunkName()}),t)}generateIdPreserveModules(r,i,t,s){let[{id:l}]=this.orderedModules,u=this.outputOptions.sanitizeFileName(l.split(TFr,1)[0]),h,c=s.has("entryFileNames")?"[name][assetExtname].js":i.entryFileNames,p=typeof c==="function"?c(this.getChunkInfo()):c;if(au(u)){let w=dl(u),P=_u(u),M=P2(p,"output.entryFileNames",{assetExtname:()=>_fr.includes(P)?"":P,ext:()=>P.substring(1),extname:()=>P,format:()=>i.format,name:()=>this.getChunkName()}),b=`${w}/${M}`,{preserveModulesRoot:o}=i;if(o&&zs(b).startsWith(o))h=b.slice(o.length).replace(/^[\\/]/,"");else h=B7(r,b)}else{let w=_u(u);h=`_virtual/${P2(p,"output.entryFileNames",{assetExtname:()=>_fr.includes(w)?"":w,ext:()=>w.substring(1),extname:()=>w,format:()=>i.format,name:()=>d2(u)})}`}return R7(Sp(h),t)}getChunkInfo(){let r=this.facadeModule,i=this.getChunkName.bind(this);return{exports:this.getExportNames(),facadeModuleId:r&&r.id,isDynamicEntry:this.dynamicEntryModules.length>0,isEntry:r!==null&&r.info.isEntry,isImplicitEntry:this.implicitEntryModules.length>0,modules:this.renderedModules,get name(){return i()},type:"chunk"}}getChunkInfoWithFileNames(){return Object.assign(this.getChunkInfo(),{code:void 0,dynamicImports:Array.from(this.dynamicDependencies,x1),fileName:this.id,implicitlyLoadedBefore:Array.from(this.implicitlyLoadedBefore,x1),importedBindings:this.getImportedBindingsPerDependency(),imports:Array.from(this.dependencies,x1),map:void 0,referencedFiles:this.getReferencedFiles()})}getChunkName(){var r;return(r=this.name)!==null&&r!==void 0?r:this.name=this.outputOptions.sanitizeFileName(this.getFallbackChunkName())}getExportNames(){var r;return(r=this.sortedExportNames)!==null&&r!==void 0?r:this.sortedExportNames=Array.from(this.exportsByName.keys()).sort()}getRenderedHash(){if(this.renderedHash)return this.renderedHash;let r=U2(),i=this.pluginDriver.hookReduceValueSync("augmentChunkHash","",[this.getChunkInfo()],(t,s)=>{if(s)t+=s;return t});return r.update(i),r.update(this.renderedSource.toString()),r.update(this.getExportNames().map((t)=>{let s=this.exportsByName.get(t);return`${Yi(s.module.id).replace(/\\/g,"/")}:${s.name}:${t}`}).join(",")),this.renderedHash=r.digest("hex")}getVariableExportName(r){if(this.outputOptions.preserveModules&&r instanceof _1)return"*";return this.exportNamesByVariable.get(r)[0]}link(){this.dependencies=RFr(this,this.orderedModules,this.chunkByModule);for(let r of this.orderedModules)this.addDependenciesToChunk(r.dynamicDependencies,this.dynamicDependencies),this.addDependenciesToChunk(r.implicitlyLoadedBefore,this.implicitlyLoadedBefore),this.setUpChunkImportsAndExportsForModule(r)}preRender(r,i,t){let{_:s,getPropertyAccess:l,n:u}=t,h=new F7({separator:`${u}${u}`});this.usedModules=[],this.indentString=gFr(this.orderedModules,r);let c={dynamicImportFunction:r.dynamicImportFunction,exportNamesByVariable:this.exportNamesByVariable,format:r.format,freeze:r.freeze,indent:this.indentString,namespaceToStringTag:r.namespaceToStringTag,outputPluginDriver:this.pluginDriver,snippets:t};if(r.hoistTransitiveImports&&!this.outputOptions.preserveModules&&this.facadeModule!==null){for(let P of this.dependencies)if(P instanceof fh)this.inlineChunkDependencies(P)}this.prepareModulesForRendering(t),this.setIdentifierRenderResolutions(r);let p="",w=this.renderedModules;for(let P of this.orderedModules){let M=0;if(P.isIncluded()||this.includedNamespaces.has(P)){let I=P.render(c).trim();if(M=I.length(),M){if(r.compact&&I.lastLine().includes("//"))I.append(`
36
36
  `);this.renderedModuleSources.set(P,I),h.addSource(I),this.usedModules.push(P)}let j=P.namespace;if(this.includedNamespaces.has(P)&&!this.outputOptions.preserveModules){let H=j.renderBlock(c);if(j.renderFirst())p+=u+H;else h.addSource(new vh(H))}}let{renderedExports:b,removedExports:o}=P.getRenderedExports(),{renderedModuleSources:L}=this;w[P.id]={get code(){var I,j;return(j=(I=L.get(P))===null||I===void 0?void 0:I.toString())!==null&&j!==void 0?j:null},originalLength:P.originalCode.length,removedExports:o,renderedExports:b,renderedLength:M}}if(p)h.prepend(p+u+u);if(this.needsExportsShim)h.prepend(`${u}${t.cnst} ${an}${s}=${s}void 0;${u}${u}`);if(r.compact)this.renderedSource=h;else this.renderedSource=h.trim();if(this.renderedHash=void 0,this.isEmpty&&this.getExportNames().length===0&&this.dependencies.size===0){let P=this.getChunkName();this.inputOptions.onwarn({chunkName:P,code:"EMPTY_BUNDLE",message:`Generated an empty chunk: "${P}"`})}this.setExternalRenderPaths(r,i),this.renderedDependencies=this.getChunkDependencyDeclarations(r,l),this.renderedExports=this.exportMode==="none"?[]:this.getChunkExportDeclarations(r.format,l)}async render(r,i,t,s){Ne("render format",2);let l=r.format,u=cFr[l];if(r.dynamicImportFunction&&l!=="es")this.inputOptions.onwarn(pe("output.dynamicImportFunction","outputdynamicImportFunction",'this option is ignored for formats other than "es"'));for(let L of this.dependencies){let I=this.renderedDependencies.get(L);if(L instanceof Et){let j=L.renderPath;I.id=m2(L.renormalizeRenderPath?f2(this.id,j,!1,!1):j)}else I.namedExportsMode=L.exportMode!=="default",I.id=m2(f2(this.id,L.id,!1,!0))}this.finaliseDynamicImports(r,s),this.finaliseImportMetas(l,s);let h=this.renderedExports.length!==0||[...this.renderedDependencies.values()].some((L)=>L.reexports&&L.reexports.length!==0),c=null,p=new Set;for(let L of this.orderedModules){if(L.usesTopLevelAwait)c=L.id;let I=this.accessedGlobalsByScope.get(L.scope);if(I)for(let j of I)p.add(j)}if(c!==null&&l!=="es"&&l!=="system")return yi({code:"INVALID_TLA_FORMAT",id:c,message:`Module format ${l} 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 w=u(this.renderedSource,{accessedGlobals:p,dependencies:[...this.renderedDependencies.values()],exports:this.renderedExports,hasExports:h,id:this.id,indent:this.indentString,intro:i.intro,isEntryFacade:this.outputOptions.preserveModules||this.facadeModule!==null&&this.facadeModule.info.isEntry,isModuleFacade:this.facadeModule!==null,namedExportsMode:this.exportMode!=="default",outro:i.outro,snippets:s,usesTopLevelAwait:c!==null,warn:this.inputOptions.onwarn},r);if(i.banner)w.prepend(i.banner);if(i.footer)w.append(i.footer);let P=w.toString();Ie("render format",2);let M=null,b=[],o=await AFr({code:P,options:r,outputPluginDriver:this.pluginDriver,renderChunk:t,sourcemapChain:b});if(r.sourcemap){Ne("sourcemap",2);let L;if(r.file)L=zs(r.sourcemapFile||r.file);else if(r.dir)L=zs(r.dir,this.id);else L=zs(this.id);let I=w.generateDecodedMap({});M=yFr(L,I,this.usedModules,b,r.sourcemapExcludeSources,this.inputOptions.onwarn),M.sources=M.sources.map((j)=>{let{sourcemapPathTransform:H}=r;if(H){let J=H(j,`${L}.map`);if(typeof J!=="string")yi(eu("sourcemapPathTransform function must return a string."));return J}return j}).map(Sp),Ie("sourcemap",2)}if(!r.compact&&o[o.length-1]!==`
37
37
  `)o+=`
@@ -48,19 +48,19 @@ Defaulting to 2020, but this will stop working in the future.`);i.ecmaVersion=11
48
48
  `+[...c].map(JBr).join(`
49
49
  `)))},J2.once(Q2,t)}),l=await Promise.race([i(),s]);return J2.off(Q2,t),l}function _nr(r,i,t,s,l=/$./){let u=new Set(i),h=Object.keys(r).filter((c)=>!(u.has(c)||l.test(c)));if(h.length>0)s({code:"UNKNOWN_OPTION",message:`Unknown ${t}: ${h.join(", ")}. Allowed options: ${[...u].sort().join(", ")}`})}function XBr(r){var i,t,s;let l=new Set,u=(i=r.context)!==null&&i!==void 0?i:"undefined",h=DBr(r),c=r.strictDeprecations||!1,p=eHr(r,h,c),w={acorn:kBr(r),acornInjectPlugins:_Br(r),cache:xBr(r),context:u,experimentalCacheExpiry:(t=r.experimentalCacheExpiry)!==null&&t!==void 0?t:10,external:i0r(r.external),inlineDynamicImports:rHr(r,h,c),input:iHr(r),makeAbsoluteExternalsRelative:(s=r.makeAbsoluteExternalsRelative)!==null&&s!==void 0?s:!0,manualChunks:tHr(r,h,c),maxParallelFileOps:p,maxParallelFileReads:p,moduleContext:sHr(r,u),onwarn:h,perf:r.perf||!1,plugins:yn(r.plugins),preserveEntrySignatures:aHr(r,l),preserveModules:lHr(r,h,c),preserveSymlinks:r.preserveSymlinks||!1,shimMissingExports:r.shimMissingExports||!1,strictDeprecations:c,treeshake:uHr(r,h,c)};return _nr(r,[...Object.keys(w),"watch"],"input options",w.onwarn,/^(output)$/),{options:w,unsetOptions:l}}function nHr(r){let i=hHr.exec(r),t=i?i[0]:"";return t+r.substr(t.length).replace(fHr,"_")}function cHr(r){try{new URL(r)}catch(i){return!1}return!0}function yHr(r,i,t){var s,l,u,h,c,p,w;let P=new Set(t),M=r.compact||!1,b=pHr(r),o=mHr(r,i),L=oHr(r,o,i),I=vHr(r,L,i),j=bHr(r,i),H=gHr(r,j),J={amd:wHr(r),assetFileNames:(s=r.assetFileNames)!==null&&s!==void 0?s:"assets/[name]-[hash][extname]",banner:b2(r,"banner"),chunkFileNames:(l=r.chunkFileNames)!==null&&l!==void 0?l:"[name]-[hash].js",compact:M,dir:CHr(r,I),dynamicImportFunction:qHr(r,i),entryFileNames:PHr(r,P),esModule:(u=r.esModule)!==null&&u!==void 0?u:!0,exports:$Hr(r,P),extend:r.extend||!1,externalLiveBindings:(h=r.externalLiveBindings)!==null&&h!==void 0?h:!0,file:I,footer:b2(r,"footer"),format:b,freeze:(c=r.freeze)!==null&&c!==void 0?c:!0,generatedCode:H,globals:r.globals||{},hoistTransitiveImports:(p=r.hoistTransitiveImports)!==null&&p!==void 0?p:!0,indent:RHr(r,M),inlineDynamicImports:o,interop:AHr(r,i),intro:b2(r,"intro"),manualChunks:MHr(r,o,L,i),minifyInternalExports:SHr(r,b,M),name:r.name,namespaceToStringTag:THr(r,H,i),noConflict:r.noConflict||!1,outro:b2(r,"outro"),paths:r.paths||{},plugins:yn(r.plugins),preferConst:j,preserveModules:L,preserveModulesRoot:dHr(r),sanitizeFileName:typeof r.sanitizeFileName==="function"?r.sanitizeFileName:r.sanitizeFileName===!1?(W)=>W:nHr,sourcemap:r.sourcemap||!1,sourcemapBaseUrl:OHr(r),sourcemapExcludeSources:r.sourcemapExcludeSources||!1,sourcemapFile:r.sourcemapFile,sourcemapPathTransform:r.sourcemapPathTransform,strict:(w=r.strict)!==null&&w!==void 0?w:!0,systemNullSetters:r.systemNullSetters||!1,validate:r.validate||!1};return _nr(r,Object.keys(J),"output options",i.onwarn),{options:J,unsetOptions:P}}function $Hr(r,i){let t=r.exports;if(t==null)i.add("exports");else if(!["default","named","none","auto"].includes(t))return yi(jEr(t));return t||"auto"}function V4(r){return LHr(r,null)}async function LHr(r,i){let{options:t,unsetOptions:s}=await EHr(r,i!==null);jIr(t);let l=new Dnr(t,i),u=r.cache!==!1;delete t.cache,delete r.cache,Ne("BUILD",1),await knr(l.pluginDriver,async()=>{try{await l.pluginDriver.hookParallel("buildStart",[t]),await l.build()}catch(c){let p=Object.keys(l.watchFiles);if(p.length>0)c.watchFiles=p;throw await l.pluginDriver.hookParallel("buildEnd",[c]),await l.pluginDriver.hookParallel("closeBundle",[]),c}await l.pluginDriver.hookParallel("buildEnd",[])}),Ie("BUILD",1);let h={cache:u?l.getCache():void 0,async close(){if(h.closed)return;h.closed=!0,await l.pluginDriver.hookParallel("closeBundle",[])},closed:!1,async generate(c){if(h.closed)return yi(qfr());return dhr(!1,t,s,c,l)},watchFiles:Object.keys(l.watchFiles),async write(c){if(h.closed)return yi(qfr());return dhr(!0,t,s,c,l)}};if(t.perf)h.getTimings=HIr;return h}async function EHr(r,i){if(!r)throw Error("You must supply an options object to rollup");let t=Knr("options",yn(r.plugins)),{options:s,unsetOptions:l}=XBr(await t.reduce(VHr(i),Promise.resolve(r)));return t0r(s.plugins,O4),{options:s,unsetOptions:l}}function VHr(r){return async(i,t)=>{return await("handler"in t.options?t.options.handler:t.options).call({meta:{rollupVersion:V7,watchMode:r}},await i)||i}}function t0r(r,i){r.forEach((t,s)=>{if(!t.name)t.name=`${i}${s+1}`})}function dhr(r,i,t,s,l){let{options:u,outputPluginDriver:h,unsetOptions:c}=IHr(s,l.pluginDriver,i,t);return knr(h,async()=>{let w=await new cnr(u,c,i,h,l).generate(r);if(r){if(!u.dir&&!u.file)return yi({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.'});await Promise.all(Object.values(w).map((P)=>l.fileOperationQueue.run(()=>HHr(P,u)))),await h.hookParallel("writeBundle",[u,w])}return BHr(w)})}function IHr(r,i,t,s){if(!r)throw Error("You must supply an options object");let l=yn(r.plugins);t0r(l,L4);let u=i.createOutputPluginDriver(l);return{...FHr(t,s,r,u),outputPluginDriver:u}}function FHr(r,i,t,s){return yHr(s.hookReduceArg0Sync("outputOptions",[t.output||t],(l,u)=>u||l,(l)=>{let u=()=>l.error(AEr());return{...l,emitFile:u,setAssetSource:u}}),r,i)}function BHr(r){return{output:Object.values(r).filter((i)=>Object.keys(i).length>0).sort((i,t)=>whr(i)-whr(t))}}function whr(r){if(r.type==="asset")return $p.ASSET;if(r.isEntry)return $p.ENTRY_CHUNK;return $p.SECONDARY_CHUNK}async function HHr(r,i){let t=zs(i.dir||dl(i.file),r.fileName);await nh.mkdir(dl(t),{recursive:!0});let s,l;if(r.type==="asset")l=r.source;else if(l=r.code,i.sourcemap&&r.map){let u;if(i.sourcemap==="inline")u=r.map.toUrl();else{let{sourcemapBaseUrl:h}=i,c=`${tf(r.fileName)}.map`;u=h?new URL(c,h).toString():c,s=nh.writeFile(`${t}.map`,r.map.toString())}if(i.sourcemap!=="hidden")l+=`//# ${X7}=${u}
50
50
  `}return Promise.all([nh.writeFile(t,l),s])}var V7="2.80.0",qhr,l7="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",G1,u7=()=>{throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")},mEr,yp=`
51
- `,Z1,mfr,ofr,Ce,A2,Rp,xi,Mt,oEr,h7,k1,je,ie,ghr,Ri,_t=0,Cl=1,Vt=2,H7,bEr,U7,n7,Y2,lf,Mp,Fe,wp,Q1,qEr,PEr,$Er,gEr,Wi,uVr,W2,Ahr,fVr=(r)=>/\d/.test(r[0]),Mhr=(r)=>fVr(r)||W2.has(r)||r==="arguments",Shr,G2,cVr,ml="\\\\/",Pfr,iu="\\.",yVr="\\+",vVr="\\?",K2="\\/",pVr="(?=.)",Thr="[^/]",z7,Ohr,Z7,mVr,oVr,bVr,dVr,wVr,CVr,Lhr,qVr,PVr,X2,$fr,Z5,$Vr,op,gVr,Q5,J5,Ehr,Y5,W5,RVr,AVr,gfr,MVr,Rfr,SVr,Afr=(r)=>{return r===Ehr||r===op},Mfr=(r)=>{if(r.isPrefix!==!0)r.depth=r.isGlobstar?1/0:1},TVr=(r,i)=>{let t=i||{},s=r.length-1,l=t.parts===!0||t.scanToEnd===!0,u=[],h=[],c=[],p=r,w=-1,P=0,M=0,b=!1,o=!1,L=!1,I=!1,j=!1,H=!1,J=!1,W=!1,sr=!1,rr=!1,hr=0,vr,q,T={value:"",depth:0,isGlob:!1},V=()=>w>=s,S=()=>p.charCodeAt(w+1),k=()=>{return vr=q,p.charCodeAt(++w)};while(w<s){q=k();let Cr;if(q===op){if(J=T.backslashes=!0,q=k(),q===Y5)H=!0;continue}if(H===!0||q===Y5){hr++;while(V()!==!0&&(q=k())){if(q===op){J=T.backslashes=!0,k();continue}if(q===Y5){hr++;continue}if(H!==!0&&q===Q5&&(q=k())===Q5){if(b=T.isBrace=!0,L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(H!==!0&&q===gVr){if(b=T.isBrace=!0,L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===MVr){if(hr--,hr===0){H=!1,b=T.isBrace=!0,rr=!0;break}}}if(l===!0)continue;break}if(q===Ehr){if(u.push(w),h.push(T),T={value:"",depth:0,isGlob:!1},rr===!0)continue;if(vr===Q5&&w===P+1){P+=2;continue}M=w+1;continue}if(t.noext!==!0){if((q===AVr||q===$Vr||q===Z5||q===gfr||q===J5)===!0&&S()===W5){if(L=T.isGlob=!0,I=T.isExtglob=!0,rr=!0,q===J5&&w===P)sr=!0;if(l===!0){while(V()!==!0&&(q=k())){if(q===op){J=T.backslashes=!0,q=k();continue}if(q===Rfr){L=T.isGlob=!0,rr=!0;break}}continue}break}}if(q===Z5){if(vr===Z5)j=T.isGlobstar=!0;if(L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===gfr){if(L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===RVr){while(V()!==!0&&(Cr=k())){if(Cr===op){J=T.backslashes=!0,k();continue}if(Cr===SVr){o=T.isBracket=!0,L=T.isGlob=!0,rr=!0;break}}if(l===!0)continue;break}if(t.nonegate!==!0&&q===J5&&w===P){W=T.negated=!0,P++;continue}if(t.noparen!==!0&&q===W5){if(L=T.isGlob=!0,l===!0){while(V()!==!0&&(q=k())){if(q===W5){J=T.backslashes=!0,q=k();continue}if(q===Rfr){rr=!0;break}}continue}break}if(L===!0){if(rr=!0,l===!0)continue;break}}if(t.noext===!0)I=!1,L=!1;let er=p,tr="",U="";if(P>0)tr=p.slice(0,P),p=p.slice(P),M-=P;if(er&&L===!0&&M>0)er=p.slice(0,M),U=p.slice(M);else if(L===!0)er="",U=p;else er=p;if(er&&er!==""&&er!=="/"&&er!==p){if(Afr(er.charCodeAt(er.length-1)))er=er.slice(0,-1)}if(t.unescape===!0){if(U)U=$fr.removeBackslashes(U);if(er&&J===!0)er=$fr.removeBackslashes(er)}let Z={prefix:tr,input:r,start:P,base:er,glob:U,isBrace:b,isBracket:o,isGlob:L,isExtglob:I,isGlobstar:j,negated:W,negatedExtglob:sr};if(t.tokens===!0){if(Z.maxDepth=0,!Afr(q))h.push(T);Z.tokens=h}if(t.parts===!0||t.tokens===!0){let Cr;for(let Pr=0;Pr<u.length;Pr++){let zr=Cr?Cr+1:P,jr=u[Pr],ri=r.slice(zr,jr);if(t.tokens){if(Pr===0&&P!==0)h[Pr].isPrefix=!0,h[Pr].value=tr;else h[Pr].value=ri;Mfr(h[Pr]),Z.maxDepth+=h[Pr].depth}if(Pr!==0||ri!=="")c.push(ri);Cr=jr}if(Cr&&Cr+1<r.length){let Pr=r.slice(Cr+1);if(c.push(Pr),t.tokens)h[h.length-1].value=Pr,Mfr(h[h.length-1]),Z.maxDepth+=h[h.length-1].depth}Z.slashes=u,Z.parts=c}return Z},OVr,T2,pa,O2,LVr,EVr,VVr,Vhr,IVr=(r,i)=>{if(typeof i.expandRange==="function")return i.expandRange(...r,i);return r.sort(),`[${r.join("-")}]`},J1=(r,i)=>{return`Missing ${r}: "${i}" - use "\\\\${i}" to match literal characters`},Q7=(r,i)=>{if(typeof r!=="string")throw TypeError("Expected a string");r=Vhr[r]||r;let t={...i},s=typeof t.maxLength==="number"?Math.min(O2,t.maxLength):O2,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);let u={type:"bos",value:"",output:t.prepend||""},h=[u],c=t.capture?"":"?:",p=pa.isWindows(i),w=T2.globChars(p),P=T2.extglobChars(w),{DOT_LITERAL:M,PLUS_LITERAL:b,SLASH_LITERAL:o,ONE_CHAR:L,DOTS_SLASH:I,NO_DOT:j,NO_DOT_SLASH:H,NO_DOTS_SLASH:J,QMARK:W,QMARK_NO_DOT:sr,STAR:rr,START_ANCHOR:hr}=w,vr=(dr)=>{return`(${c}(?:(?!${hr}${dr.dot?I:M}).)*?)`},q=t.dot?"":j,T=t.dot?W:sr,V=t.bash===!0?vr(t):rr;if(t.capture)V=`(${V})`;if(typeof t.noext==="boolean")t.noextglob=t.noext;let S={input:r,index:-1,start:0,dot:t.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};r=pa.removePrefix(r,S),l=r.length;let k=[],er=[],tr=[],U=u,Z,Cr=()=>S.index===l-1,Pr=S.peek=(dr=1)=>r[S.index+dr],zr=S.advance=()=>r[++S.index]||"",jr=()=>r.slice(S.index+1),ri=(dr="",Ar=0)=>{S.consumed+=dr,S.index+=Ar},$i=(dr)=>{S.output+=dr.output!=null?dr.output:dr.value,ri(dr.value)},ji=()=>{let dr=1;while(Pr()==="!"&&(Pr(2)!=="("||Pr(3)==="?"))zr(),S.start++,dr++;if(dr%2===0)return!1;return S.negated=!0,S.start++,!0},zi=(dr)=>{S[dr]++,tr.push(dr)},Yr=(dr)=>{S[dr]--,tr.pop()},Vr=(dr)=>{if(U.type==="globstar"){let Ar=S.braces>0&&(dr.type==="comma"||dr.type==="brace"),pr=dr.extglob===!0||k.length&&(dr.type==="pipe"||dr.type==="paren");if(dr.type!=="slash"&&dr.type!=="paren"&&!Ar&&!pr)S.output=S.output.slice(0,-U.output.length),U.type="star",U.value="*",U.output=V,S.output+=U.output}if(k.length&&dr.type!=="paren")k[k.length-1].inner+=dr.value;if(dr.value||dr.output)$i(dr);if(U&&U.type==="text"&&dr.type==="text"){U.value+=dr.value,U.output=(U.output||"")+dr.value;return}dr.prev=U,h.push(dr),U=dr},lt=(dr,Ar)=>{let pr={...P[Ar],conditions:1,inner:""};pr.prev=U,pr.parens=S.parens,pr.output=S.output;let Er=(t.capture?"(":"")+pr.open;zi("parens"),Vr({type:dr,value:Ar,output:S.output?"":L}),Vr({type:"paren",extglob:!0,value:zr(),output:Er}),k.push(pr)},Jr=(dr)=>{let Ar=dr.close+(t.capture?")":""),pr;if(dr.type==="negate"){let Er=V;if(dr.inner&&dr.inner.length>1&&dr.inner.includes("/"))Er=vr(t);if(Er!==V||Cr()||/^\)+$/.test(jr()))Ar=dr.close=`)$))${Er}`;if(dr.inner.includes("*")&&(pr=jr())&&/^\.[^\\/.]+$/.test(pr)){let Zr=Q7(pr,{...i,fastpaths:!1}).output;Ar=dr.close=`)${Zr})${Er})`}if(dr.prev.type==="bos")S.negatedExtglob=!0}Vr({type:"paren",extglob:!0,value:Z,output:Ar}),Yr("parens")};if(t.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(r)){let dr=!1,Ar=r.replace(VVr,(pr,Er,Zr,kr,Dr,et)=>{if(kr==="\\")return dr=!0,pr;if(kr==="?"){if(Er)return Er+kr+(Dr?W.repeat(Dr.length):"");if(et===0)return T+(Dr?W.repeat(Dr.length):"");return W.repeat(Zr.length)}if(kr===".")return M.repeat(Zr.length);if(kr==="*"){if(Er)return Er+kr+(Dr?V:"");return V}return Er?pr:`\\${pr}`});if(dr===!0)if(t.unescape===!0)Ar=Ar.replace(/\\/g,"");else Ar=Ar.replace(/\\+/g,(pr)=>{return pr.length%2===0?"\\\\":pr?"\\":""});if(Ar===r&&t.contains===!0)return S.output=r,S;return S.output=pa.wrapOutput(Ar,S,i),S}while(!Cr()){if(Z=zr(),Z==="\x00")continue;if(Z==="\\"){let pr=Pr();if(pr==="/"&&t.bash!==!0)continue;if(pr==="."||pr===";")continue;if(!pr){Z+="\\",Vr({type:"text",value:Z});continue}let Er=/^\\+/.exec(jr()),Zr=0;if(Er&&Er[0].length>2){if(Zr=Er[0].length,S.index+=Zr,Zr%2!==0)Z+="\\"}if(t.unescape===!0)Z=zr();else Z+=zr();if(S.brackets===0){Vr({type:"text",value:Z});continue}}if(S.brackets>0&&(Z!=="]"||U.value==="["||U.value==="[^")){if(t.posix!==!1&&Z===":"){let pr=U.value.slice(1);if(pr.includes("[")){if(U.posix=!0,pr.includes(":")){let Er=U.value.lastIndexOf("["),Zr=U.value.slice(0,Er),kr=U.value.slice(Er+2),Dr=LVr[kr];if(Dr){if(U.value=Zr+Dr,S.backtrack=!0,zr(),!u.output&&h.indexOf(U)===1)u.output=L;continue}}}}if(Z==="["&&Pr()!==":"||Z==="-"&&Pr()==="]")Z=`\\${Z}`;if(Z==="]"&&(U.value==="["||U.value==="[^"))Z=`\\${Z}`;if(t.posix===!0&&Z==="!"&&U.value==="[")Z="^";U.value+=Z,$i({value:Z});continue}if(S.quotes===1&&Z!=='"'){Z=pa.escapeRegex(Z),U.value+=Z,$i({value:Z});continue}if(Z==='"'){if(S.quotes=S.quotes===1?0:1,t.keepQuotes===!0)Vr({type:"text",value:Z});continue}if(Z==="("){zi("parens"),Vr({type:"paren",value:Z});continue}if(Z===")"){if(S.parens===0&&t.strictBrackets===!0)throw SyntaxError(J1("opening","("));let pr=k[k.length-1];if(pr&&S.parens===pr.parens+1){Jr(k.pop());continue}Vr({type:"paren",value:Z,output:S.parens?")":"\\)"}),Yr("parens");continue}if(Z==="["){if(t.nobracket===!0||!jr().includes("]")){if(t.nobracket!==!0&&t.strictBrackets===!0)throw SyntaxError(J1("closing","]"));Z=`\\${Z}`}else zi("brackets");Vr({type:"bracket",value:Z});continue}if(Z==="]"){if(t.nobracket===!0||U&&U.type==="bracket"&&U.value.length===1){Vr({type:"text",value:Z,output:`\\${Z}`});continue}if(S.brackets===0){if(t.strictBrackets===!0)throw SyntaxError(J1("opening","["));Vr({type:"text",value:Z,output:`\\${Z}`});continue}Yr("brackets");let pr=U.value.slice(1);if(U.posix!==!0&&pr[0]==="^"&&!pr.includes("/"))Z=`/${Z}`;if(U.value+=Z,$i({value:Z}),t.literalBrackets===!1||pa.hasRegexChars(pr))continue;let Er=pa.escapeRegex(U.value);if(S.output=S.output.slice(0,-U.value.length),t.literalBrackets===!0){S.output+=Er,U.value=Er;continue}U.value=`(${c}${Er}|${U.value})`,S.output+=U.value;continue}if(Z==="{"&&t.nobrace!==!0){zi("braces");let pr={type:"brace",value:Z,output:"(",outputIndex:S.output.length,tokensIndex:S.tokens.length};er.push(pr),Vr(pr);continue}if(Z==="}"){let pr=er[er.length-1];if(t.nobrace===!0||!pr){Vr({type:"text",value:Z,output:Z});continue}let Er=")";if(pr.dots===!0){let Zr=h.slice(),kr=[];for(let Dr=Zr.length-1;Dr>=0;Dr--){if(h.pop(),Zr[Dr].type==="brace")break;if(Zr[Dr].type!=="dots")kr.unshift(Zr[Dr].value)}Er=IVr(kr,t),S.backtrack=!0}if(pr.comma!==!0&&pr.dots!==!0){let Zr=S.output.slice(0,pr.outputIndex),kr=S.tokens.slice(pr.tokensIndex);pr.value=pr.output="\\{",Z=Er="\\}",S.output=Zr;for(let Dr of kr)S.output+=Dr.output||Dr.value}Vr({type:"brace",value:Z,output:Er}),Yr("braces"),er.pop();continue}if(Z==="|"){if(k.length>0)k[k.length-1].conditions++;Vr({type:"text",value:Z});continue}if(Z===","){let pr=Z,Er=er[er.length-1];if(Er&&tr[tr.length-1]==="braces")Er.comma=!0,pr="|";Vr({type:"comma",value:Z,output:pr});continue}if(Z==="/"){if(U.type==="dot"&&S.index===S.start+1){S.start=S.index+1,S.consumed="",S.output="",h.pop(),U=u;continue}Vr({type:"slash",value:Z,output:o});continue}if(Z==="."){if(S.braces>0&&U.type==="dot"){if(U.value===".")U.output=M;let pr=er[er.length-1];U.type="dots",U.output+=Z,U.value+=Z,pr.dots=!0;continue}if(S.braces+S.parens===0&&U.type!=="bos"&&U.type!=="slash"){Vr({type:"text",value:Z,output:M});continue}Vr({type:"dot",value:Z,output:M});continue}if(Z==="?"){if(!(U&&U.value==="(")&&t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){lt("qmark",Z);continue}if(U&&U.type==="paren"){let Er=Pr(),Zr=Z;if(Er==="<"&&!pa.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(U.value==="("&&!/[!=<:]/.test(Er)||Er==="<"&&!/<([!=]|\w+>)/.test(jr()))Zr=`\\${Z}`;Vr({type:"text",value:Z,output:Zr});continue}if(t.dot!==!0&&(U.type==="slash"||U.type==="bos")){Vr({type:"qmark",value:Z,output:sr});continue}Vr({type:"qmark",value:Z,output:W});continue}if(Z==="!"){if(t.noextglob!==!0&&Pr()==="("){if(Pr(2)!=="?"||!/[!=<:]/.test(Pr(3))){lt("negate",Z);continue}}if(t.nonegate!==!0&&S.index===0){ji();continue}}if(Z==="+"){if(t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){lt("plus",Z);continue}if(U&&U.value==="("||t.regex===!1){Vr({type:"plus",value:Z,output:b});continue}if(U&&(U.type==="bracket"||U.type==="paren"||U.type==="brace")||S.parens>0){Vr({type:"plus",value:Z});continue}Vr({type:"plus",value:b});continue}if(Z==="@"){if(t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){Vr({type:"at",extglob:!0,value:Z,output:""});continue}Vr({type:"text",value:Z});continue}if(Z!=="*"){if(Z==="$"||Z==="^")Z=`\\${Z}`;let pr=EVr.exec(jr());if(pr)Z+=pr[0],S.index+=pr[0].length;Vr({type:"text",value:Z});continue}if(U&&(U.type==="globstar"||U.star===!0)){U.type="star",U.star=!0,U.value+=Z,U.output=V,S.backtrack=!0,S.globstar=!0,ri(Z);continue}let dr=jr();if(t.noextglob!==!0&&/^\([^?]/.test(dr)){lt("star",Z);continue}if(U.type==="star"){if(t.noglobstar===!0){ri(Z);continue}let pr=U.prev,Er=pr.prev,Zr=pr.type==="slash"||pr.type==="bos",kr=Er&&(Er.type==="star"||Er.type==="globstar");if(t.bash===!0&&(!Zr||dr[0]&&dr[0]!=="/")){Vr({type:"star",value:Z,output:""});continue}let Dr=S.braces>0&&(pr.type==="comma"||pr.type==="brace"),et=k.length&&(pr.type==="pipe"||pr.type==="paren");if(!Zr&&pr.type!=="paren"&&!Dr&&!et){Vr({type:"star",value:Z,output:""});continue}while(dr.slice(0,3)==="/**"){let Pt=r[S.index+4];if(Pt&&Pt!=="/")break;dr=dr.slice(3),ri("/**",3)}if(pr.type==="bos"&&Cr()){U.type="globstar",U.value+=Z,U.output=vr(t),S.output=U.output,S.globstar=!0,ri(Z);continue}if(pr.type==="slash"&&pr.prev.type!=="bos"&&!kr&&Cr()){S.output=S.output.slice(0,-(pr.output+U.output).length),pr.output=`(?:${pr.output}`,U.type="globstar",U.output=vr(t)+(t.strictSlashes?")":"|$)"),U.value+=Z,S.globstar=!0,S.output+=pr.output+U.output,ri(Z);continue}if(pr.type==="slash"&&pr.prev.type!=="bos"&&dr[0]==="/"){let Pt=dr[1]!==void 0?"|$":"";S.output=S.output.slice(0,-(pr.output+U.output).length),pr.output=`(?:${pr.output}`,U.type="globstar",U.output=`${vr(t)}${o}|${o}${Pt})`,U.value+=Z,S.output+=pr.output+U.output,S.globstar=!0,ri(Z+zr()),Vr({type:"slash",value:"/",output:""});continue}if(pr.type==="bos"&&dr[0]==="/"){U.type="globstar",U.value+=Z,U.output=`(?:^|${o}|${vr(t)}${o})`,S.output=U.output,S.globstar=!0,ri(Z+zr()),Vr({type:"slash",value:"/",output:""});continue}S.output=S.output.slice(0,-U.output.length),U.type="globstar",U.output=vr(t),U.value+=Z,S.output+=U.output,S.globstar=!0,ri(Z);continue}let Ar={type:"star",value:Z,output:V};if(t.bash===!0){if(Ar.output=".*?",U.type==="bos"||U.type==="slash")Ar.output=q+Ar.output;Vr(Ar);continue}if(U&&(U.type==="bracket"||U.type==="paren")&&t.regex===!0){Ar.output=Z,Vr(Ar);continue}if(S.index===S.start||U.type==="slash"||U.type==="dot"){if(U.type==="dot")S.output+=H,U.output+=H;else if(t.dot===!0)S.output+=J,U.output+=J;else S.output+=q,U.output+=q;if(Pr()!=="*")S.output+=L,U.output+=L}Vr(Ar)}while(S.brackets>0){if(t.strictBrackets===!0)throw SyntaxError(J1("closing","]"));S.output=pa.escapeLast(S.output,"["),Yr("brackets")}while(S.parens>0){if(t.strictBrackets===!0)throw SyntaxError(J1("closing",")"));S.output=pa.escapeLast(S.output,"("),Yr("parens")}while(S.braces>0){if(t.strictBrackets===!0)throw SyntaxError(J1("closing","}"));S.output=pa.escapeLast(S.output,"{"),Yr("braces")}if(t.strictSlashes!==!0&&(U.type==="star"||U.type==="bracket"))Vr({type:"maybe_slash",value:"",output:`${o}?`});if(S.backtrack===!0){S.output="";for(let dr of S.tokens)if(S.output+=dr.output!=null?dr.output:dr.value,dr.suffix)S.output+=dr.suffix}return S},FVr,BVr,HVr,y7,J7,UVr,NVr=(r)=>r&&typeof r==="object"&&!Array.isArray(r),ne=(r,i,t=!1)=>{if(Array.isArray(r)){let P=r.map((b)=>ne(b,i,t));return(b)=>{for(let o of P){let L=o(b);if(L)return L}return!1}}let s=NVr(r)&&r.tokens&&r.input;if(r===""||typeof r!=="string"&&!s)throw TypeError("Expected pattern to be a non-empty string");let l=i||{},u=J7.isWindows(i),h=s?ne.compileRe(r,i):ne.makeRe(r,i,!1,!0),c=h.state;delete h.state;let p=()=>!1;if(l.ignore){let P={...i,ignore:null,onMatch:null,onResult:null};p=ne(l.ignore,P,t)}let w=(P,M=!1)=>{let{isMatch:b,match:o,output:L}=ne.test(P,h,i,{glob:r,posix:u}),I={glob:r,state:c,regex:h,posix:u,input:P,output:L,match:o,isMatch:b};if(typeof l.onResult==="function")l.onResult(I);if(b===!1)return I.isMatch=!1,M?I:!1;if(p(P)){if(typeof l.onIgnore==="function")l.onIgnore(I);return I.isMatch=!1,M?I:!1}if(typeof l.onMatch==="function")l.onMatch(I);return M?I:!0};if(t)w.state=c;return w},jVr,gvi,K1,zVr=function(i){let t=[];return K1[i.type](t,i),t},ZVr="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",QVr="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",JVr,D2=0,rn=1,ph=2,Np,X1,Y7,ch,fn,D1,W7,ht,Sfr,G7,p7,m7,Tp,ii,Ihr="ArrowFunctionExpression",WVr="BinaryExpression",Fhr="BlockStatement",Bhr="CallExpression",GVr="ChainExpression",KVr="ConditionalExpression",oa="ExpressionStatement",Hhr="Identifier",XVr="ImportDefaultSpecifier",DVr="ImportNamespaceSpecifier",kVr="LogicalExpression",_Vr="NewExpression",L2="Program",xVr="Property",rIr="ReturnStatement",iIr="SequenceExpression",X7="sourceMa",tIr="[ \\f\\r\\t\\v\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]",eIr,Uhr="_rollupAnnotations",Nhr="_rollupRemoved",sIr,G5,lIr,o7,zhr="variables",vi,tn,rs,w2,Cp,Tfr,Zhr,vp,gs,Ofr=(r)=>typeof r==="string"&&/^\d+$/.test(r),hIr,xu,D7,Lfr,Efr,nIr,n2,K5,Vfr,Ifr,Ffr,lh,X5,cIr,x2,Qhr,Jhr,Wa,yIr="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$",Bfr=64,Ya,_7,x7,we,ol,uh,Nr,si,Hfr,Y,cs,ru,Y1,d7,r9,vIr,qe,yh,Nfr,uf,Qp,Op,i4,t9,t4,s4,Xhr,Dhr,khr,a4,_hr,e9,xhr,oIr,r1r,i1r,en,pp=7,mh,l4,a1r,l1r,u1r,f1r,h1r,n1r,u4,I2,c1r,f4,Lp,y1r,s9,v1r,p1r,m1r,o1r,a9,sn,Jp,h4,b1r,d1r,w1r,C1r,q1r,w7,jfr,n4,c4,P1r,F2="_interopDefault",C7="_interopDefaultLegacy",qp="_interopNamespace",bp="_interopNamespaceDefault",Ep="_interopNamespaceDefaultOnly",B2="_mergeNamespaces",Yp,l9=(r,i)=>r==="esModule"||i&&(r==="auto"||r==="true"),Wp,PIr=(r,i)=>l9(r,i)&&Yp[r]===F2,y4=(r,i,t,s,l,u,h)=>{let c=new Set(r);for(let p of P7)if(i.has(p))c.add(p);return P7.map((p)=>c.has(p)?$1r[p](t,s,l,u,h,c):"").join("")},$1r,zfr=({_:r,getObject:i})=>`e${r}:${r}${i([["default","e"]],{lineBreakIndent:null})}`,Zfr=({_:r,getPropertyAccess:i})=>`e${i("default")}${r}:${r}e`,Qfr=(r,i,t,s,l,u)=>{let{_:h,cnst:c,getObject:p,getPropertyAccess:w,n:P,s:M}=t,b=`{${P}`+(s?RIr:R1r)(r,i+r+r,t)+`${i}${r}}`;return`${i}${c} n${h}=${h}Object.create(null${u?`,${h}{${h}[Symbol.toStringTag]:${h}${Vp(p)}${h}}`:""});${P}${i}if${h}(e)${h}{${P}${i}${r}${$Ir(b,!s,t)}${P}${i}}${P}${i}n${w("default")}${h}=${h}e;${P}${i}return ${q7(l,"n")}${M}${P}`},$Ir=(r,i,{_:t,cnst:s,getFunctionIntro:l,s:u})=>s!=="var"||i?`for${t}(${s} k in e)${t}${r}`:`Object.keys(e).forEach(${l(["k"],{isAsync:!1,name:null})}${r})${u}`,gIr=(r,i,t,{_:s,cnst:l,getDirectReturnFunction:u,getFunctionIntro:h,n:c})=>{if(i){let[p,w]=u(["e"],{functionReturn:!1,lineBreakIndent:{base:t,t},name:null});return`m.forEach(${p}e${s}&&${s}typeof e${s}!==${s}'string'${s}&&${s}!Array.isArray(e)${s}&&${s}Object.keys(e).forEach(${h(["k"],{isAsync:!1,name:null})}${r})${w});`}return`for${s}(var i${s}=${s}0;${s}i${s}<${s}m.length;${s}i++)${s}{${c}${t}${t}${l} e${s}=${s}m[i];${c}${t}${t}if${s}(typeof e${s}!==${s}'string'${s}&&${s}!Array.isArray(e))${s}{${s}for${s}(${l} k in e)${s}${r}${s}}${c}${t}}`},RIr=(r,i,t)=>{let{_:s,n:l}=t;return`${i}if${s}(k${s}!==${s}'default')${s}{${l}`+g1r(r,i+r,t)+`${i}}${l}`},g1r=(r,i,{_:t,cnst:s,getDirectReturnFunction:l,n:u})=>{let[h,c]=l([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${i}${s} d${t}=${t}Object.getOwnPropertyDescriptor(e,${t}k);${u}${i}Object.defineProperty(n,${t}k,${t}d.get${t}?${t}d${t}:${t}{${u}${i}${r}enumerable:${t}true,${u}${i}${r}get:${t}${h}e[k]${c}${u}${i}});${u}`},AIr=(r,i,{_:t,cnst:s,getDirectReturnFunction:l,n:u})=>{let[h,c]=l([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${i}${s} d${t}=${t}Object.getOwnPropertyDescriptor(e,${t}k);${u}${i}if${t}(d)${t}{${u}${i}${r}Object.defineProperty(n,${t}k,${t}d.get${t}?${t}d${t}:${t}{${u}${i}${r}${r}enumerable:${t}true,${u}${i}${r}${r}get:${t}${h}e[k]${c}${u}${i}${r}});${u}${i}}${u}`},R1r=(r,i,{_:t,n:s})=>`${i}n[k]${t}=${t}e[k];${s}`,q7=(r,i)=>r?`Object.freeze(${i})`:i,Jfr=(r,i,{_:t,getObject:s})=>r?`Object.defineProperty(${i},${t}Symbol.toStringTag,${t}${Vp(s)})`:i,P7,A1r,MIr,M1r,S1r,T1r,O1r,mp="ROLLUP_ASSET_URL_",y2="ROLLUP_CHUNK_URL_",ku="ROLLUP_FILE_URL_",L1r,SIr,TIr,tu=(r,i="URL")=>`new ${i}(${r}).href`,D5=(r,i=!1)=>tu(`'${r}', ${i?"typeof document === 'undefined' ? location.href : ":""}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`),v2=(r)=>(i,{chunkId:t})=>{let s=r(t);return i===null?`({ url: ${s} })`:i==="url"?s:"undefined"},k5=(r,i=!1)=>`${i?"typeof document === 'undefined' ? location.href : ":""}(document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('${r}', document.baseURI).href)`,OIr,Wfr,E1r,V1r,I1r,v4,F1r,B1r,H1r,U1r,N1r,j1r,p4,z1r,Z1r,Q1r,m4,o4,ql,b4,J1r,Y1r,W1r,LIr,G1r,K1r,X1r,d4,k1r,_1r,x1r,Gfr,an="_missingExportShim",rnr,_1,js,rf,H2=()=>{},Ip,Ne,Ie,UIr,Kfr,ZIr=(r)=>r&&new Map(Array.from(r,([i,t])=>[i,new Set(t)])),JIr=(r,i,t,{_:s,getDirectReturnFunction:l,n:u})=>{if(i){let[h,c]=l([],{functionReturn:!0,lineBreakIndent:null,name:null});return`Object.defineProperty(exports,${s}k,${s}{${u}${t}${t}enumerable:${s}true,${u}${t}${t}get:${s}${h}${r}[k]${c}${u}${t}})`}return`exports[k]${s}=${s}${r}[k]`},WIr,q2=(r,i)=>r.split(".").map(i).join(""),eFr=({dependencies:r,exports:i})=>{let t=new Set(i.map((s)=>s.exported));t.add("default");for(let{reexports:s}of r)if(s){for(let l of s)if(l.reexported!=="*")t.add(l.reexported)}return t},sFr=(r,i,{_:t,cnst:s,getObject:l,n:u})=>r?`${u}${i}${s} _starExcludes${t}=${t}${l([...r].map((h)=>[h,"1"]),{lineBreakIndent:{base:i,t:i}})};`:"",aFr=(r,i,{_:t,n:s})=>r.length?`${s}${i}var ${r.join(`,${t}`)};`:"",lFr=(r,i,t)=>C4(r.filter((s)=>s.hoisted).map((s)=>({name:s.exported,value:s.local})),i,t),uFr=(r,i,t)=>C4(r.filter((s)=>s.expression).map((s)=>({name:s.exported,value:s.local})),i,t),fFr=(r,i,t)=>C4(r.filter((s)=>s.local===an).map((s)=>({name:s.exported,value:an})),i,t),cFr,U2=()=>nEr("sha256"),pFr,bFr,dFr,wFr,q4,nnr,MFr=(r)=>{let i=new Set;return new Proxy(r,{deleteProperty(t,s){if(typeof s==="string")i.delete(s.toLowerCase());return Reflect.deleteProperty(t,s)},get(t,s){if(s===q4)return i;return Reflect.get(t,s)},set(t,s,l){if(typeof s==="string")i.add(s.toLowerCase());return Reflect.set(t,s,l)}})},_fr,TFr,xfr=(r,i)=>i?`${r}
51
+ `,Z1,mfr,ofr,Ce,A2,Rp,xi,Mt,oEr,h7,k1,je,ie,ghr,Ri,_t=0,Cl=1,Vt=2,H7,bEr,U7,n7,Y2,lf,Mp,Fe,wp,Q1,qEr,PEr,$Er,gEr,Wi,uVr,W2,Ahr,fVr=(r)=>/\d/.test(r[0]),Mhr=(r)=>fVr(r)||W2.has(r)||r==="arguments",Shr,G2,cVr,ml="\\\\/",Pfr,iu="\\.",yVr="\\+",vVr="\\?",K2="\\/",pVr="(?=.)",Thr="[^/]",z7,Ohr,Z7,mVr,oVr,bVr,dVr,wVr,CVr,Lhr,qVr,PVr,X2,$fr,Z5,$Vr,op,gVr,Q5,J5,Ehr,Y5,W5,RVr,AVr,gfr,MVr,Rfr,SVr,Afr=(r)=>{return r===Ehr||r===op},Mfr=(r)=>{if(r.isPrefix!==!0)r.depth=r.isGlobstar?1/0:1},TVr=(r,i)=>{let t=i||{},s=r.length-1,l=t.parts===!0||t.scanToEnd===!0,u=[],h=[],c=[],p=r,w=-1,P=0,M=0,b=!1,o=!1,L=!1,I=!1,j=!1,H=!1,J=!1,W=!1,sr=!1,rr=!1,hr=0,vr,q,T={value:"",depth:0,isGlob:!1},V=()=>w>=s,S=()=>p.charCodeAt(w+1),k=()=>{return vr=q,p.charCodeAt(++w)};while(w<s){q=k();let Cr;if(q===op){if(J=T.backslashes=!0,q=k(),q===Y5)H=!0;continue}if(H===!0||q===Y5){hr++;while(V()!==!0&&(q=k())){if(q===op){J=T.backslashes=!0,k();continue}if(q===Y5){hr++;continue}if(H!==!0&&q===Q5&&(q=k())===Q5){if(b=T.isBrace=!0,L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(H!==!0&&q===gVr){if(b=T.isBrace=!0,L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===MVr){if(hr--,hr===0){H=!1,b=T.isBrace=!0,rr=!0;break}}}if(l===!0)continue;break}if(q===Ehr){if(u.push(w),h.push(T),T={value:"",depth:0,isGlob:!1},rr===!0)continue;if(vr===Q5&&w===P+1){P+=2;continue}M=w+1;continue}if(t.noext!==!0){if((q===AVr||q===$Vr||q===Z5||q===gfr||q===J5)===!0&&S()===W5){if(L=T.isGlob=!0,I=T.isExtglob=!0,rr=!0,q===J5&&w===P)sr=!0;if(l===!0){while(V()!==!0&&(q=k())){if(q===op){J=T.backslashes=!0,q=k();continue}if(q===Rfr){L=T.isGlob=!0,rr=!0;break}}continue}break}}if(q===Z5){if(vr===Z5)j=T.isGlobstar=!0;if(L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===gfr){if(L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===RVr){while(V()!==!0&&(Cr=k())){if(Cr===op){J=T.backslashes=!0,k();continue}if(Cr===SVr){o=T.isBracket=!0,L=T.isGlob=!0,rr=!0;break}}if(l===!0)continue;break}if(t.nonegate!==!0&&q===J5&&w===P){W=T.negated=!0,P++;continue}if(t.noparen!==!0&&q===W5){if(L=T.isGlob=!0,l===!0){while(V()!==!0&&(q=k())){if(q===W5){J=T.backslashes=!0,q=k();continue}if(q===Rfr){rr=!0;break}}continue}break}if(L===!0){if(rr=!0,l===!0)continue;break}}if(t.noext===!0)I=!1,L=!1;let er=p,tr="",U="";if(P>0)tr=p.slice(0,P),p=p.slice(P),M-=P;if(er&&L===!0&&M>0)er=p.slice(0,M),U=p.slice(M);else if(L===!0)er="",U=p;else er=p;if(er&&er!==""&&er!=="/"&&er!==p){if(Afr(er.charCodeAt(er.length-1)))er=er.slice(0,-1)}if(t.unescape===!0){if(U)U=$fr.removeBackslashes(U);if(er&&J===!0)er=$fr.removeBackslashes(er)}let Z={prefix:tr,input:r,start:P,base:er,glob:U,isBrace:b,isBracket:o,isGlob:L,isExtglob:I,isGlobstar:j,negated:W,negatedExtglob:sr};if(t.tokens===!0){if(Z.maxDepth=0,!Afr(q))h.push(T);Z.tokens=h}if(t.parts===!0||t.tokens===!0){let Cr;for(let Pr=0;Pr<u.length;Pr++){let jr=Cr?Cr+1:P,zr=u[Pr],ri=r.slice(jr,zr);if(t.tokens){if(Pr===0&&P!==0)h[Pr].isPrefix=!0,h[Pr].value=tr;else h[Pr].value=ri;Mfr(h[Pr]),Z.maxDepth+=h[Pr].depth}if(Pr!==0||ri!=="")c.push(ri);Cr=zr}if(Cr&&Cr+1<r.length){let Pr=r.slice(Cr+1);if(c.push(Pr),t.tokens)h[h.length-1].value=Pr,Mfr(h[h.length-1]),Z.maxDepth+=h[h.length-1].depth}Z.slashes=u,Z.parts=c}return Z},OVr,T2,pa,O2,LVr,EVr,VVr,Vhr,IVr=(r,i)=>{if(typeof i.expandRange==="function")return i.expandRange(...r,i);return r.sort(),`[${r.join("-")}]`},J1=(r,i)=>{return`Missing ${r}: "${i}" - use "\\\\${i}" to match literal characters`},Q7=(r,i)=>{if(typeof r!=="string")throw TypeError("Expected a string");r=Vhr[r]||r;let t={...i},s=typeof t.maxLength==="number"?Math.min(O2,t.maxLength):O2,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);let u={type:"bos",value:"",output:t.prepend||""},h=[u],c=t.capture?"":"?:",p=pa.isWindows(i),w=T2.globChars(p),P=T2.extglobChars(w),{DOT_LITERAL:M,PLUS_LITERAL:b,SLASH_LITERAL:o,ONE_CHAR:L,DOTS_SLASH:I,NO_DOT:j,NO_DOT_SLASH:H,NO_DOTS_SLASH:J,QMARK:W,QMARK_NO_DOT:sr,STAR:rr,START_ANCHOR:hr}=w,vr=(dr)=>{return`(${c}(?:(?!${hr}${dr.dot?I:M}).)*?)`},q=t.dot?"":j,T=t.dot?W:sr,V=t.bash===!0?vr(t):rr;if(t.capture)V=`(${V})`;if(typeof t.noext==="boolean")t.noextglob=t.noext;let S={input:r,index:-1,start:0,dot:t.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};r=pa.removePrefix(r,S),l=r.length;let k=[],er=[],tr=[],U=u,Z,Cr=()=>S.index===l-1,Pr=S.peek=(dr=1)=>r[S.index+dr],jr=S.advance=()=>r[++S.index]||"",zr=()=>r.slice(S.index+1),ri=(dr="",Ar=0)=>{S.consumed+=dr,S.index+=Ar},$i=(dr)=>{S.output+=dr.output!=null?dr.output:dr.value,ri(dr.value)},ji=()=>{let dr=1;while(Pr()==="!"&&(Pr(2)!=="("||Pr(3)==="?"))jr(),S.start++,dr++;if(dr%2===0)return!1;return S.negated=!0,S.start++,!0},zi=(dr)=>{S[dr]++,tr.push(dr)},Yr=(dr)=>{S[dr]--,tr.pop()},Vr=(dr)=>{if(U.type==="globstar"){let Ar=S.braces>0&&(dr.type==="comma"||dr.type==="brace"),pr=dr.extglob===!0||k.length&&(dr.type==="pipe"||dr.type==="paren");if(dr.type!=="slash"&&dr.type!=="paren"&&!Ar&&!pr)S.output=S.output.slice(0,-U.output.length),U.type="star",U.value="*",U.output=V,S.output+=U.output}if(k.length&&dr.type!=="paren")k[k.length-1].inner+=dr.value;if(dr.value||dr.output)$i(dr);if(U&&U.type==="text"&&dr.type==="text"){U.value+=dr.value,U.output=(U.output||"")+dr.value;return}dr.prev=U,h.push(dr),U=dr},lt=(dr,Ar)=>{let pr={...P[Ar],conditions:1,inner:""};pr.prev=U,pr.parens=S.parens,pr.output=S.output;let Er=(t.capture?"(":"")+pr.open;zi("parens"),Vr({type:dr,value:Ar,output:S.output?"":L}),Vr({type:"paren",extglob:!0,value:jr(),output:Er}),k.push(pr)},Jr=(dr)=>{let Ar=dr.close+(t.capture?")":""),pr;if(dr.type==="negate"){let Er=V;if(dr.inner&&dr.inner.length>1&&dr.inner.includes("/"))Er=vr(t);if(Er!==V||Cr()||/^\)+$/.test(zr()))Ar=dr.close=`)$))${Er}`;if(dr.inner.includes("*")&&(pr=zr())&&/^\.[^\\/.]+$/.test(pr)){let Zr=Q7(pr,{...i,fastpaths:!1}).output;Ar=dr.close=`)${Zr})${Er})`}if(dr.prev.type==="bos")S.negatedExtglob=!0}Vr({type:"paren",extglob:!0,value:Z,output:Ar}),Yr("parens")};if(t.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(r)){let dr=!1,Ar=r.replace(VVr,(pr,Er,Zr,kr,Dr,et)=>{if(kr==="\\")return dr=!0,pr;if(kr==="?"){if(Er)return Er+kr+(Dr?W.repeat(Dr.length):"");if(et===0)return T+(Dr?W.repeat(Dr.length):"");return W.repeat(Zr.length)}if(kr===".")return M.repeat(Zr.length);if(kr==="*"){if(Er)return Er+kr+(Dr?V:"");return V}return Er?pr:`\\${pr}`});if(dr===!0)if(t.unescape===!0)Ar=Ar.replace(/\\/g,"");else Ar=Ar.replace(/\\+/g,(pr)=>{return pr.length%2===0?"\\\\":pr?"\\":""});if(Ar===r&&t.contains===!0)return S.output=r,S;return S.output=pa.wrapOutput(Ar,S,i),S}while(!Cr()){if(Z=jr(),Z==="\x00")continue;if(Z==="\\"){let pr=Pr();if(pr==="/"&&t.bash!==!0)continue;if(pr==="."||pr===";")continue;if(!pr){Z+="\\",Vr({type:"text",value:Z});continue}let Er=/^\\+/.exec(zr()),Zr=0;if(Er&&Er[0].length>2){if(Zr=Er[0].length,S.index+=Zr,Zr%2!==0)Z+="\\"}if(t.unescape===!0)Z=jr();else Z+=jr();if(S.brackets===0){Vr({type:"text",value:Z});continue}}if(S.brackets>0&&(Z!=="]"||U.value==="["||U.value==="[^")){if(t.posix!==!1&&Z===":"){let pr=U.value.slice(1);if(pr.includes("[")){if(U.posix=!0,pr.includes(":")){let Er=U.value.lastIndexOf("["),Zr=U.value.slice(0,Er),kr=U.value.slice(Er+2),Dr=LVr[kr];if(Dr){if(U.value=Zr+Dr,S.backtrack=!0,jr(),!u.output&&h.indexOf(U)===1)u.output=L;continue}}}}if(Z==="["&&Pr()!==":"||Z==="-"&&Pr()==="]")Z=`\\${Z}`;if(Z==="]"&&(U.value==="["||U.value==="[^"))Z=`\\${Z}`;if(t.posix===!0&&Z==="!"&&U.value==="[")Z="^";U.value+=Z,$i({value:Z});continue}if(S.quotes===1&&Z!=='"'){Z=pa.escapeRegex(Z),U.value+=Z,$i({value:Z});continue}if(Z==='"'){if(S.quotes=S.quotes===1?0:1,t.keepQuotes===!0)Vr({type:"text",value:Z});continue}if(Z==="("){zi("parens"),Vr({type:"paren",value:Z});continue}if(Z===")"){if(S.parens===0&&t.strictBrackets===!0)throw SyntaxError(J1("opening","("));let pr=k[k.length-1];if(pr&&S.parens===pr.parens+1){Jr(k.pop());continue}Vr({type:"paren",value:Z,output:S.parens?")":"\\)"}),Yr("parens");continue}if(Z==="["){if(t.nobracket===!0||!zr().includes("]")){if(t.nobracket!==!0&&t.strictBrackets===!0)throw SyntaxError(J1("closing","]"));Z=`\\${Z}`}else zi("brackets");Vr({type:"bracket",value:Z});continue}if(Z==="]"){if(t.nobracket===!0||U&&U.type==="bracket"&&U.value.length===1){Vr({type:"text",value:Z,output:`\\${Z}`});continue}if(S.brackets===0){if(t.strictBrackets===!0)throw SyntaxError(J1("opening","["));Vr({type:"text",value:Z,output:`\\${Z}`});continue}Yr("brackets");let pr=U.value.slice(1);if(U.posix!==!0&&pr[0]==="^"&&!pr.includes("/"))Z=`/${Z}`;if(U.value+=Z,$i({value:Z}),t.literalBrackets===!1||pa.hasRegexChars(pr))continue;let Er=pa.escapeRegex(U.value);if(S.output=S.output.slice(0,-U.value.length),t.literalBrackets===!0){S.output+=Er,U.value=Er;continue}U.value=`(${c}${Er}|${U.value})`,S.output+=U.value;continue}if(Z==="{"&&t.nobrace!==!0){zi("braces");let pr={type:"brace",value:Z,output:"(",outputIndex:S.output.length,tokensIndex:S.tokens.length};er.push(pr),Vr(pr);continue}if(Z==="}"){let pr=er[er.length-1];if(t.nobrace===!0||!pr){Vr({type:"text",value:Z,output:Z});continue}let Er=")";if(pr.dots===!0){let Zr=h.slice(),kr=[];for(let Dr=Zr.length-1;Dr>=0;Dr--){if(h.pop(),Zr[Dr].type==="brace")break;if(Zr[Dr].type!=="dots")kr.unshift(Zr[Dr].value)}Er=IVr(kr,t),S.backtrack=!0}if(pr.comma!==!0&&pr.dots!==!0){let Zr=S.output.slice(0,pr.outputIndex),kr=S.tokens.slice(pr.tokensIndex);pr.value=pr.output="\\{",Z=Er="\\}",S.output=Zr;for(let Dr of kr)S.output+=Dr.output||Dr.value}Vr({type:"brace",value:Z,output:Er}),Yr("braces"),er.pop();continue}if(Z==="|"){if(k.length>0)k[k.length-1].conditions++;Vr({type:"text",value:Z});continue}if(Z===","){let pr=Z,Er=er[er.length-1];if(Er&&tr[tr.length-1]==="braces")Er.comma=!0,pr="|";Vr({type:"comma",value:Z,output:pr});continue}if(Z==="/"){if(U.type==="dot"&&S.index===S.start+1){S.start=S.index+1,S.consumed="",S.output="",h.pop(),U=u;continue}Vr({type:"slash",value:Z,output:o});continue}if(Z==="."){if(S.braces>0&&U.type==="dot"){if(U.value===".")U.output=M;let pr=er[er.length-1];U.type="dots",U.output+=Z,U.value+=Z,pr.dots=!0;continue}if(S.braces+S.parens===0&&U.type!=="bos"&&U.type!=="slash"){Vr({type:"text",value:Z,output:M});continue}Vr({type:"dot",value:Z,output:M});continue}if(Z==="?"){if(!(U&&U.value==="(")&&t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){lt("qmark",Z);continue}if(U&&U.type==="paren"){let Er=Pr(),Zr=Z;if(Er==="<"&&!pa.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(U.value==="("&&!/[!=<:]/.test(Er)||Er==="<"&&!/<([!=]|\w+>)/.test(zr()))Zr=`\\${Z}`;Vr({type:"text",value:Z,output:Zr});continue}if(t.dot!==!0&&(U.type==="slash"||U.type==="bos")){Vr({type:"qmark",value:Z,output:sr});continue}Vr({type:"qmark",value:Z,output:W});continue}if(Z==="!"){if(t.noextglob!==!0&&Pr()==="("){if(Pr(2)!=="?"||!/[!=<:]/.test(Pr(3))){lt("negate",Z);continue}}if(t.nonegate!==!0&&S.index===0){ji();continue}}if(Z==="+"){if(t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){lt("plus",Z);continue}if(U&&U.value==="("||t.regex===!1){Vr({type:"plus",value:Z,output:b});continue}if(U&&(U.type==="bracket"||U.type==="paren"||U.type==="brace")||S.parens>0){Vr({type:"plus",value:Z});continue}Vr({type:"plus",value:b});continue}if(Z==="@"){if(t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){Vr({type:"at",extglob:!0,value:Z,output:""});continue}Vr({type:"text",value:Z});continue}if(Z!=="*"){if(Z==="$"||Z==="^")Z=`\\${Z}`;let pr=EVr.exec(zr());if(pr)Z+=pr[0],S.index+=pr[0].length;Vr({type:"text",value:Z});continue}if(U&&(U.type==="globstar"||U.star===!0)){U.type="star",U.star=!0,U.value+=Z,U.output=V,S.backtrack=!0,S.globstar=!0,ri(Z);continue}let dr=zr();if(t.noextglob!==!0&&/^\([^?]/.test(dr)){lt("star",Z);continue}if(U.type==="star"){if(t.noglobstar===!0){ri(Z);continue}let pr=U.prev,Er=pr.prev,Zr=pr.type==="slash"||pr.type==="bos",kr=Er&&(Er.type==="star"||Er.type==="globstar");if(t.bash===!0&&(!Zr||dr[0]&&dr[0]!=="/")){Vr({type:"star",value:Z,output:""});continue}let Dr=S.braces>0&&(pr.type==="comma"||pr.type==="brace"),et=k.length&&(pr.type==="pipe"||pr.type==="paren");if(!Zr&&pr.type!=="paren"&&!Dr&&!et){Vr({type:"star",value:Z,output:""});continue}while(dr.slice(0,3)==="/**"){let Pt=r[S.index+4];if(Pt&&Pt!=="/")break;dr=dr.slice(3),ri("/**",3)}if(pr.type==="bos"&&Cr()){U.type="globstar",U.value+=Z,U.output=vr(t),S.output=U.output,S.globstar=!0,ri(Z);continue}if(pr.type==="slash"&&pr.prev.type!=="bos"&&!kr&&Cr()){S.output=S.output.slice(0,-(pr.output+U.output).length),pr.output=`(?:${pr.output}`,U.type="globstar",U.output=vr(t)+(t.strictSlashes?")":"|$)"),U.value+=Z,S.globstar=!0,S.output+=pr.output+U.output,ri(Z);continue}if(pr.type==="slash"&&pr.prev.type!=="bos"&&dr[0]==="/"){let Pt=dr[1]!==void 0?"|$":"";S.output=S.output.slice(0,-(pr.output+U.output).length),pr.output=`(?:${pr.output}`,U.type="globstar",U.output=`${vr(t)}${o}|${o}${Pt})`,U.value+=Z,S.output+=pr.output+U.output,S.globstar=!0,ri(Z+jr()),Vr({type:"slash",value:"/",output:""});continue}if(pr.type==="bos"&&dr[0]==="/"){U.type="globstar",U.value+=Z,U.output=`(?:^|${o}|${vr(t)}${o})`,S.output=U.output,S.globstar=!0,ri(Z+jr()),Vr({type:"slash",value:"/",output:""});continue}S.output=S.output.slice(0,-U.output.length),U.type="globstar",U.output=vr(t),U.value+=Z,S.output+=U.output,S.globstar=!0,ri(Z);continue}let Ar={type:"star",value:Z,output:V};if(t.bash===!0){if(Ar.output=".*?",U.type==="bos"||U.type==="slash")Ar.output=q+Ar.output;Vr(Ar);continue}if(U&&(U.type==="bracket"||U.type==="paren")&&t.regex===!0){Ar.output=Z,Vr(Ar);continue}if(S.index===S.start||U.type==="slash"||U.type==="dot"){if(U.type==="dot")S.output+=H,U.output+=H;else if(t.dot===!0)S.output+=J,U.output+=J;else S.output+=q,U.output+=q;if(Pr()!=="*")S.output+=L,U.output+=L}Vr(Ar)}while(S.brackets>0){if(t.strictBrackets===!0)throw SyntaxError(J1("closing","]"));S.output=pa.escapeLast(S.output,"["),Yr("brackets")}while(S.parens>0){if(t.strictBrackets===!0)throw SyntaxError(J1("closing",")"));S.output=pa.escapeLast(S.output,"("),Yr("parens")}while(S.braces>0){if(t.strictBrackets===!0)throw SyntaxError(J1("closing","}"));S.output=pa.escapeLast(S.output,"{"),Yr("braces")}if(t.strictSlashes!==!0&&(U.type==="star"||U.type==="bracket"))Vr({type:"maybe_slash",value:"",output:`${o}?`});if(S.backtrack===!0){S.output="";for(let dr of S.tokens)if(S.output+=dr.output!=null?dr.output:dr.value,dr.suffix)S.output+=dr.suffix}return S},FVr,BVr,HVr,y7,J7,UVr,NVr=(r)=>r&&typeof r==="object"&&!Array.isArray(r),ne=(r,i,t=!1)=>{if(Array.isArray(r)){let P=r.map((b)=>ne(b,i,t));return(b)=>{for(let o of P){let L=o(b);if(L)return L}return!1}}let s=NVr(r)&&r.tokens&&r.input;if(r===""||typeof r!=="string"&&!s)throw TypeError("Expected pattern to be a non-empty string");let l=i||{},u=J7.isWindows(i),h=s?ne.compileRe(r,i):ne.makeRe(r,i,!1,!0),c=h.state;delete h.state;let p=()=>!1;if(l.ignore){let P={...i,ignore:null,onMatch:null,onResult:null};p=ne(l.ignore,P,t)}let w=(P,M=!1)=>{let{isMatch:b,match:o,output:L}=ne.test(P,h,i,{glob:r,posix:u}),I={glob:r,state:c,regex:h,posix:u,input:P,output:L,match:o,isMatch:b};if(typeof l.onResult==="function")l.onResult(I);if(b===!1)return I.isMatch=!1,M?I:!1;if(p(P)){if(typeof l.onIgnore==="function")l.onIgnore(I);return I.isMatch=!1,M?I:!1}if(typeof l.onMatch==="function")l.onMatch(I);return M?I:!0};if(t)w.state=c;return w},jVr,gvi,K1,zVr=function(i){let t=[];return K1[i.type](t,i),t},ZVr="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",QVr="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",JVr,D2=0,rn=1,ph=2,Np,X1,Y7,ch,fn,D1,W7,ht,Sfr,G7,p7,m7,Tp,ii,Ihr="ArrowFunctionExpression",WVr="BinaryExpression",Fhr="BlockStatement",Bhr="CallExpression",GVr="ChainExpression",KVr="ConditionalExpression",oa="ExpressionStatement",Hhr="Identifier",XVr="ImportDefaultSpecifier",DVr="ImportNamespaceSpecifier",kVr="LogicalExpression",_Vr="NewExpression",L2="Program",xVr="Property",rIr="ReturnStatement",iIr="SequenceExpression",X7="sourceMa",tIr="[ \\f\\r\\t\\v\\u00a0\\u1680\\u2000-\\u200a\\u2028\\u2029\\u202f\\u205f\\u3000\\ufeff]",eIr,Uhr="_rollupAnnotations",Nhr="_rollupRemoved",sIr,G5,lIr,o7,zhr="variables",vi,tn,rs,w2,Cp,Tfr,Zhr,vp,gs,Ofr=(r)=>typeof r==="string"&&/^\d+$/.test(r),hIr,xu,D7,Lfr,Efr,nIr,n2,K5,Vfr,Ifr,Ffr,lh,X5,cIr,x2,Qhr,Jhr,Wa,yIr="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$",Bfr=64,Ya,_7,x7,we,ol,uh,Nr,si,Hfr,Y,cs,ru,Y1,d7,r9,vIr,qe,yh,Nfr,uf,Qp,Op,i4,t9,t4,s4,Xhr,Dhr,khr,a4,_hr,e9,xhr,oIr,r1r,i1r,en,pp=7,mh,l4,a1r,l1r,u1r,f1r,h1r,n1r,u4,I2,c1r,f4,Lp,y1r,s9,v1r,p1r,m1r,o1r,a9,sn,Jp,h4,b1r,d1r,w1r,C1r,q1r,w7,jfr,n4,c4,P1r,F2="_interopDefault",C7="_interopDefaultLegacy",qp="_interopNamespace",bp="_interopNamespaceDefault",Ep="_interopNamespaceDefaultOnly",B2="_mergeNamespaces",Yp,l9=(r,i)=>r==="esModule"||i&&(r==="auto"||r==="true"),Wp,PIr=(r,i)=>l9(r,i)&&Yp[r]===F2,y4=(r,i,t,s,l,u,h)=>{let c=new Set(r);for(let p of P7)if(i.has(p))c.add(p);return P7.map((p)=>c.has(p)?$1r[p](t,s,l,u,h,c):"").join("")},$1r,zfr=({_:r,getObject:i})=>`e${r}:${r}${i([["default","e"]],{lineBreakIndent:null})}`,Zfr=({_:r,getPropertyAccess:i})=>`e${i("default")}${r}:${r}e`,Qfr=(r,i,t,s,l,u)=>{let{_:h,cnst:c,getObject:p,getPropertyAccess:w,n:P,s:M}=t,b=`{${P}`+(s?RIr:R1r)(r,i+r+r,t)+`${i}${r}}`;return`${i}${c} n${h}=${h}Object.create(null${u?`,${h}{${h}[Symbol.toStringTag]:${h}${Vp(p)}${h}}`:""});${P}${i}if${h}(e)${h}{${P}${i}${r}${$Ir(b,!s,t)}${P}${i}}${P}${i}n${w("default")}${h}=${h}e;${P}${i}return ${q7(l,"n")}${M}${P}`},$Ir=(r,i,{_:t,cnst:s,getFunctionIntro:l,s:u})=>s!=="var"||i?`for${t}(${s} k in e)${t}${r}`:`Object.keys(e).forEach(${l(["k"],{isAsync:!1,name:null})}${r})${u}`,gIr=(r,i,t,{_:s,cnst:l,getDirectReturnFunction:u,getFunctionIntro:h,n:c})=>{if(i){let[p,w]=u(["e"],{functionReturn:!1,lineBreakIndent:{base:t,t},name:null});return`m.forEach(${p}e${s}&&${s}typeof e${s}!==${s}'string'${s}&&${s}!Array.isArray(e)${s}&&${s}Object.keys(e).forEach(${h(["k"],{isAsync:!1,name:null})}${r})${w});`}return`for${s}(var i${s}=${s}0;${s}i${s}<${s}m.length;${s}i++)${s}{${c}${t}${t}${l} e${s}=${s}m[i];${c}${t}${t}if${s}(typeof e${s}!==${s}'string'${s}&&${s}!Array.isArray(e))${s}{${s}for${s}(${l} k in e)${s}${r}${s}}${c}${t}}`},RIr=(r,i,t)=>{let{_:s,n:l}=t;return`${i}if${s}(k${s}!==${s}'default')${s}{${l}`+g1r(r,i+r,t)+`${i}}${l}`},g1r=(r,i,{_:t,cnst:s,getDirectReturnFunction:l,n:u})=>{let[h,c]=l([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${i}${s} d${t}=${t}Object.getOwnPropertyDescriptor(e,${t}k);${u}${i}Object.defineProperty(n,${t}k,${t}d.get${t}?${t}d${t}:${t}{${u}${i}${r}enumerable:${t}true,${u}${i}${r}get:${t}${h}e[k]${c}${u}${i}});${u}`},AIr=(r,i,{_:t,cnst:s,getDirectReturnFunction:l,n:u})=>{let[h,c]=l([],{functionReturn:!0,lineBreakIndent:null,name:null});return`${i}${s} d${t}=${t}Object.getOwnPropertyDescriptor(e,${t}k);${u}${i}if${t}(d)${t}{${u}${i}${r}Object.defineProperty(n,${t}k,${t}d.get${t}?${t}d${t}:${t}{${u}${i}${r}${r}enumerable:${t}true,${u}${i}${r}${r}get:${t}${h}e[k]${c}${u}${i}${r}});${u}${i}}${u}`},R1r=(r,i,{_:t,n:s})=>`${i}n[k]${t}=${t}e[k];${s}`,q7=(r,i)=>r?`Object.freeze(${i})`:i,Jfr=(r,i,{_:t,getObject:s})=>r?`Object.defineProperty(${i},${t}Symbol.toStringTag,${t}${Vp(s)})`:i,P7,A1r,MIr,M1r,S1r,T1r,O1r,mp="ROLLUP_ASSET_URL_",y2="ROLLUP_CHUNK_URL_",ku="ROLLUP_FILE_URL_",L1r,SIr,TIr,tu=(r,i="URL")=>`new ${i}(${r}).href`,D5=(r,i=!1)=>tu(`'${r}', ${i?"typeof document === 'undefined' ? location.href : ":""}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`),v2=(r)=>(i,{chunkId:t})=>{let s=r(t);return i===null?`({ url: ${s} })`:i==="url"?s:"undefined"},k5=(r,i=!1)=>`${i?"typeof document === 'undefined' ? location.href : ":""}(document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || new URL('${r}', document.baseURI).href)`,OIr,Wfr,E1r,V1r,I1r,v4,F1r,B1r,H1r,U1r,N1r,j1r,p4,z1r,Z1r,Q1r,m4,o4,ql,b4,J1r,Y1r,W1r,LIr,G1r,K1r,X1r,d4,k1r,_1r,x1r,Gfr,an="_missingExportShim",rnr,_1,js,rf,H2=()=>{},Ip,Ne,Ie,UIr,Kfr,ZIr=(r)=>r&&new Map(Array.from(r,([i,t])=>[i,new Set(t)])),JIr=(r,i,t,{_:s,getDirectReturnFunction:l,n:u})=>{if(i){let[h,c]=l([],{functionReturn:!0,lineBreakIndent:null,name:null});return`Object.defineProperty(exports,${s}k,${s}{${u}${t}${t}enumerable:${s}true,${u}${t}${t}get:${s}${h}${r}[k]${c}${u}${t}})`}return`exports[k]${s}=${s}${r}[k]`},WIr,q2=(r,i)=>r.split(".").map(i).join(""),eFr=({dependencies:r,exports:i})=>{let t=new Set(i.map((s)=>s.exported));t.add("default");for(let{reexports:s}of r)if(s){for(let l of s)if(l.reexported!=="*")t.add(l.reexported)}return t},sFr=(r,i,{_:t,cnst:s,getObject:l,n:u})=>r?`${u}${i}${s} _starExcludes${t}=${t}${l([...r].map((h)=>[h,"1"]),{lineBreakIndent:{base:i,t:i}})};`:"",aFr=(r,i,{_:t,n:s})=>r.length?`${s}${i}var ${r.join(`,${t}`)};`:"",lFr=(r,i,t)=>C4(r.filter((s)=>s.hoisted).map((s)=>({name:s.exported,value:s.local})),i,t),uFr=(r,i,t)=>C4(r.filter((s)=>s.expression).map((s)=>({name:s.exported,value:s.local})),i,t),fFr=(r,i,t)=>C4(r.filter((s)=>s.local===an).map((s)=>({name:s.exported,value:an})),i,t),cFr,U2=()=>nEr("sha256"),pFr,bFr,dFr,wFr,q4,nnr,MFr=(r)=>{let i=new Set;return new Proxy(r,{deleteProperty(t,s){if(typeof s==="string")i.delete(s.toLowerCase());return Reflect.deleteProperty(t,s)},get(t,s){if(s===q4)return i;return Reflect.get(t,s)},set(t,s,l){if(typeof s==="string")i.add(s.toLowerCase());return Reflect.set(t,s,l)}})},_fr,TFr,xfr=(r,i)=>i?`${r}
52
52
  ${i}`:r,rhr=(r,i)=>i?`${r}
53
53
 
54
54
  ${i}`:r,HFr=(r,i)=>r.execIndex>i.execIndex?1:-1,ihr=(r,i)=>i?`(${r})`:r,thr,YFr,ynr,WFr="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",vnr="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",t7,e7="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",GFr,KFr,XFr,DFr,gt=function(i,t){if(t===void 0)t={};this.label=i,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null},va,$s,P4,fr,ba,kFr,mnr,ma,onr,_Fr,xFr,Gp,lhr,rBr,Bp=function(i,t){this.line=i,this.column=t},n9=function(i,t,s){if(this.start=t,this.end=s,i.sourceFile!==null)this.source=i.sourceFile},M7,uhr=!1,Hp=1,nn=2,$4=4,dnr=8,wnr=16,Cnr=32,g4=64,qnr=128,Kp=256,R4,N2=0,M4=1,su=2,Pnr=3,$nr=4,gnr=5,Pe=function(i,t,s){this.options=i=iBr(i),this.sourceFile=i.sourceFile,this.keywords=hh(GFr[i.ecmaVersion>=6?6:i.sourceType==="module"?"5module":5]);var l="";if(i.allowReserved!==!0){if(l=t7[i.ecmaVersion>=6?6:i.ecmaVersion===5?5:3],i.sourceType==="module")l+=" await"}this.reservedWords=hh(l);var u=(l?l+" ":"")+t7.strict;if(this.reservedWordsStrict=hh(u),this.reservedWordsStrictBind=hh(u+" "+t7.strictBind),this.input=String(t),this.containsEsc=!1,s)this.pos=s,this.lineStart=this.input.lastIndexOf(`
55
55
  `,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ba).length;else this.pos=this.lineStart=0,this.curLine=1;if(this.type=fr.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=i.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&&i.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(Hp),this.regexpState=null,this.privateNameStack=[]},Pl,ys,eBr,c9=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1},Hi,S4,sBr,aBr,Pp=1,S7=2,Rnr=4,Ga,Ja=function(i,t,s,l,u){this.token=i,this.isExpr=!!t,this.preserveSpace=!!s,this.override=l,this.generator=!!u},kt,cn,at,uBr,z2,ff,fBr=function(i){this.flags=i,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1},y9=function(i,t,s){if(this.type="",this.start=t,this.end=0,i.options.locations)this.loc=new n9(i,s);if(i.options.directSourceFile)this.sourceFile=i.options.directSourceFile;if(i.options.ranges)this.range=[t,0]},Xp,Snr="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",Tnr,Onr,Lnr,hBr,nBr,fhr="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",Enr="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",Vnr,Inr,Fnr,cBr,yBr,Bnr,T7,dp,$2,Ti,uu=function(i){this.parser=i,this.validFlags="gim"+(i.options.ecmaVersion>=6?"uy":"")+(i.options.ecmaVersion>=9?"s":"")+(i.options.ecmaVersion>=13?"d":""),this.unicodeProperties=Bnr[i.options.ecmaVersion>=13?13:i.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=[]},T4=function(i){if(this.type=i.type,this.value=i.value,this.start=i.start,this.end=i.end,i.options.locations)this.loc=new n9(i,i.startLoc,i.endLoc);if(i.options.ranges)this.range=[i.start,i.end]},pt,Jnr,CBr="8.7.1",O4="at position ",L4="at output position ",$Br,MBr,s7="resolveDependencies",Wnr,UBr,NBr,Q2="beforeExit",J2,mhr=(r)=>console.warn(r.message||r),YBr,WBr,GBr=(r)=>r&&typeof r==="object"?r:{},KBr=(r,i,t)=>(s)=>{if(typeof s==="string"){let l=r[s];if(l)return l;yi(pe(i,r0r(i),`valid values are ${t}${ef(Object.keys(r))}. You can also supply an object for more fine-grained control`,s))}return GBr(s)},xnr=(r,i,t,s)=>{let l=r===null||r===void 0?void 0:r.preset;if(l){let u=i[l];if(u)return{...u,...r};else yi(pe(`${t}.preset`,r0r(t),`valid values are ${ef(Object.keys(i))}`,l))}return KBr(i,t,s)(r)},r0r=(r)=>r.split(".").join("").toLowerCase(),DBr=(r)=>{let{onwarn:i}=r;return i?(t)=>{t.toString=()=>{let s="";if(t.plugin)s+=`(${t.plugin} plugin) `;if(t.loc)s+=`${Yi(t.loc.file)} (${t.loc.line}:${t.loc.column}) `;return s+=t.message,s},i(t,mhr)}:mhr},kBr=(r)=>({allowAwaitOutsideFunction:!0,ecmaVersion:"latest",preserveParens:!1,sourceType:"module",...r.acorn}),_Br=(r)=>yn(r.acornInjectPlugins),xBr=(r)=>{var i;return((i=r.cache)===null||i===void 0?void 0:i.cache)||r.cache},i0r=(r)=>{if(r===!0)return()=>!0;if(typeof r==="function")return(i,...t)=>!i.startsWith("\x00")&&r(i,...t)||!1;if(r){let i=new Set,t=[];for(let s of yn(r))if(s instanceof RegExp)t.push(s);else i.add(s);return(s,...l)=>i.has(s)||t.some((u)=>u.test(s))}return()=>!1},rHr=(r,i,t)=>{let s=r.inlineDynamicImports;if(s)un('The "inlineDynamicImports" option is deprecated. Use the "output.inlineDynamicImports" option instead.',!1,i,t);return s},iHr=(r)=>{let i=r.input;return i==null?[]:typeof i==="string"?[i]:i},tHr=(r,i,t)=>{let s=r.manualChunks;if(s)un('The "manualChunks" option is deprecated. Use the "output.manualChunks" option instead.',!1,i,t);return s},eHr=(r,i,t)=>{var s;let l=r.maxParallelFileReads;if(typeof l==="number")un('The "maxParallelFileReads" option is deprecated. Use the "maxParallelFileOps" option instead.',!1,i,t);let u=(s=r.maxParallelFileOps)!==null&&s!==void 0?s:l;if(typeof u==="number"){if(u<=0)return 1/0;return u}return 20},sHr=(r,i)=>{let t=r.moduleContext;if(typeof t==="function")return(s)=>{var l;return(l=t(s))!==null&&l!==void 0?l:i};if(t){let s=Object.create(null);for(let[l,u]of Object.entries(t))s[zs(l)]=u;return(l)=>s[l]||i}return()=>i},aHr=(r,i)=>{let t=r.preserveEntrySignatures;if(t==null)i.add("preserveEntrySignatures");return t!==null&&t!==void 0?t:"strict"},lHr=(r,i,t)=>{let s=r.preserveModules;if(s)un('The "preserveModules" option is deprecated. Use the "output.preserveModules" option instead.',!1,i,t);return s},uHr=(r,i,t)=>{let s=r.treeshake;if(s===!1)return!1;let l=xnr(r.treeshake,YBr,"treeshake","false, true, ");if(typeof l.pureExternalModules<"u")un(`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,i,t);return{annotations:l.annotations!==!1,correctVarValueBeforeDeclaration:l.correctVarValueBeforeDeclaration===!0,moduleSideEffects:typeof s==="object"&&s.pureExternalModules?ohr(s.moduleSideEffects,s.pureExternalModules):ohr(l.moduleSideEffects,void 0),propertyReadSideEffects:l.propertyReadSideEffects==="always"?"always":l.propertyReadSideEffects!==!1,tryCatchDeoptimization:l.tryCatchDeoptimization!==!1,unknownGlobalSideEffects:l.unknownGlobalSideEffects!==!1}},ohr=(r,i)=>{if(typeof r==="boolean")return()=>r;if(r==="no-external")return(s,l)=>!l;if(typeof r==="function")return(s,l)=>!s.startsWith("\x00")?r(s,l)!==!1:!0;if(Array.isArray(r)){let s=new Set(r);return(l)=>s.has(l)}if(r)yi(pe("treeshake.moduleSideEffects","treeshake",'please use one of false, "no-external", a function or an array'));let t=i0r(i);return(s,l)=>!(l&&t(s))},fHr,hHr,vHr=(r,i,t)=>{let{file:s}=r;if(typeof s==="string"){if(i)return yi(pe("output.file","outputdir",'you must set "output.dir" instead of "output.file" when using the "output.preserveModules" option'));if(!Array.isArray(t.input))return yi(pe("output.file","outputdir",'you must set "output.dir" instead of "output.file" when providing named inputs'))}return s},pHr=(r)=>{let i=r.format;switch(i){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 i;default:return yi({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"})}},mHr=(r,i)=>{var t;let s=((t=r.inlineDynamicImports)!==null&&t!==void 0?t:i.inlineDynamicImports)||!1,{input:l}=i;if(s&&(Array.isArray(l)?l:Object.keys(l)).length>1)return yi(pe("output.inlineDynamicImports","outputinlinedynamicimports",'multiple inputs are not supported when "output.inlineDynamicImports" is true'));return s},oHr=(r,i,t)=>{var s;let l=((s=r.preserveModules)!==null&&s!==void 0?s:t.preserveModules)||!1;if(l){if(i)return yi(pe("output.inlineDynamicImports","outputinlinedynamicimports",'this option is not supported for "output.preserveModules"'));if(t.preserveEntrySignatures===!1)return yi(pe("preserveEntrySignatures","preserveentrysignatures",'setting this option to false is not supported for "output.preserveModules"'))}return l},bHr=(r,i)=>{let t=r.preferConst;if(t!=null)Zs('The "output.preferConst" option is deprecated. Use the "output.generatedCode.constBindings" option instead.',!1,i);return!!t},dHr=(r)=>{let{preserveModulesRoot:i}=r;if(i===null||i===void 0)return;return zs(i)},wHr=(r)=>{let i={autoId:!1,basePath:"",define:"define",forceJsExtensionForImports:!1,...r.amd};if((i.autoId||i.basePath)&&i.id)return yi(pe("output.amd.id","outputamd",'this option cannot be used together with "output.amd.autoId"/"output.amd.basePath"'));if(i.basePath&&!i.autoId)return yi(pe("output.amd.basePath","outputamd",'this option only works with "output.amd.autoId"'));let t;if(i.autoId)t={autoId:!0,basePath:i.basePath,define:i.define,forceJsExtensionForImports:i.forceJsExtensionForImports};else t={autoId:!1,define:i.define,forceJsExtensionForImports:i.forceJsExtensionForImports,id:i.id};return t},b2=(r,i)=>{let t=r[i];if(typeof t==="function")return t;return()=>t||""},CHr=(r,i)=>{let{dir:t}=r;if(typeof t==="string"&&typeof i==="string")return yi(pe("output.dir","outputdir",'you must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks'));return t},qHr=(r,i)=>{let t=r.dynamicImportFunction;if(t)Zs('The "output.dynamicImportFunction" option is deprecated. Use the "renderDynamicImport" plugin hook instead.',!1,i);return t},PHr=(r,i)=>{let t=r.entryFileNames;if(t==null)i.add("entryFileNames");return t!==null&&t!==void 0?t:"[name].js"},gHr=(r,i)=>{let t=xnr(r.generatedCode,WBr,"output.generatedCode","");return{arrowFunctions:t.arrowFunctions===!0,constBindings:t.constBindings===!0||i,objectShorthand:t.objectShorthand===!0,reservedNamesAsProps:t.reservedNamesAsProps===!0,symbols:t.symbols===!0}},RHr=(r,i)=>{if(i)return"";let t=r.indent;return t===!1?"":t!==null&&t!==void 0?t:!0},bhr,AHr=(r,i)=>{let t=r.interop,s=new Set,l=(u)=>{if(!s.has(u)){if(s.add(u),!bhr.has(u))return yi(pe("output.interop","outputinterop",`use one of ${Array.from(bhr,(h)=>JSON.stringify(h)).join(", ")}`,u));if(typeof u==="boolean")Zs({message:`The boolean value "${u}" for the "output.interop" option is deprecated. Use ${u?'"auto"':'"esModule", "default" or "defaultOnly"'} instead.`,url:"https://rollupjs.org/guide/en/#outputinterop"},!1,i)}return u};if(typeof t==="function"){let u=Object.create(null),h=null;return(c)=>c===null?h||l(h=t(c)):(c in u)?u[c]:l(u[c]=t(c))}return t===void 0?()=>!0:()=>l(t)},MHr=(r,i,t,s)=>{let l=r.manualChunks||s.manualChunks;if(l){if(i)return yi(pe("output.manualChunks","outputmanualchunks",'this option is not supported for "output.inlineDynamicImports"'));if(t)return yi(pe("output.manualChunks","outputmanualchunks",'this option is not supported for "output.preserveModules"'))}return l||{}},SHr=(r,i,t)=>{var s;return(s=r.minifyInternalExports)!==null&&s!==void 0?s:t||i==="es"||i==="system"},THr=(r,i,t)=>{let s=r.namespaceToStringTag;if(s!=null)return Zs('The "output.namespaceToStringTag" option is deprecated. Use the "output.generatedCode.symbols" option instead.',!1,t),s;return i.symbols||!1},OHr=(r)=>{let{sourcemapBaseUrl:i}=r;if(i){if(cHr(i))return i;return yi(pe("output.sourcemapBaseUrl","outputsourcemapbaseurl",`must be a valid URL, received ${JSON.stringify(i)}`))}},$p;var e0r=gbr(()=>{qhr={};for(G1=0;G1<l7.length;G1++)qhr[l7.charCodeAt(G1)]=G1;if(typeof window<"u"&&typeof window.btoa==="function")u7=(r)=>window.btoa(unescape(encodeURIComponent(r)));else if(typeof Buffer==="function")u7=(r)=>Buffer.from(r,"utf-8").toString("base64");mEr=Object.prototype.toString;Z1={insertLeft:!1,insertRight:!1,storeName:!1};mfr=Object.prototype.hasOwnProperty;ofr=/[/\\]/;Ce=Symbol("Unknown Key"),A2=Symbol("Unknown Non-Accessor Key"),Rp=Symbol("Unknown Integer"),xi=[],Mt=[Ce],oEr=[A2],h7=[Rp],k1=Symbol("Entities");je=new Ap;ie=Symbol("Unknown Value"),ghr=Symbol("Unknown Truthy Value");Ri=new class extends Qs{},H7={thisArg:null,type:_t},bEr=[Ri],U7={args:bEr,thisArg:null,type:Cl},n7=[],Y2={args:n7,thisArg:null,type:Vt,withNew:!1};lf=class lf extends Qs{constructor(r){super();this.name=r,this.alwaysRendered=!1,this.initReached=!1,this.isId=!1,this.isReassigned=!1,this.kind=null,this.renderBaseName=null,this.renderName=null}addReference(r){}getBaseVariableName(){return this.renderBaseName||this.renderName||this.name}getName(r){let i=this.renderName||this.name;return this.renderBaseName?`${this.renderBaseName}${r(i)}`:i}hasEffectsOnInteractionAtPath(r,{type:i},t){return i!==_t||r.length>0}include(){this.included=!0}markCalledFromTryStatement(){}setRenderNames(r,i){this.renderBaseName=r,this.renderName=i}};Mp=class Mp extends lf{constructor(r,i){super(i);this.referenced=!1,this.module=r,this.isNamespace=i==="*"}addReference(r){if(this.referenced=!0,this.name==="default"||this.name==="*")this.module.suggestName(r.name)}hasEffectsOnInteractionAtPath(r,{type:i}){return i!==_t||r.length>(this.isNamespace?1:0)}include(){if(!this.included)this.included=!0,this.module.used=!0}};Fe=Object.freeze(Object.create(null)),wp=Object.freeze({}),Q1=Object.freeze([]);qEr=/^(?:\/|(?:[A-Za-z]:)?[\\|/])/,PEr=/^\.?\.(\/|$)/;$Er=/\\/g;gEr=/^(\.\.\/)*\.\.$/;(function(r){r.ALREADY_CLOSED="ALREADY_CLOSED",r.ASSET_NOT_FINALISED="ASSET_NOT_FINALISED",r.ASSET_NOT_FOUND="ASSET_NOT_FOUND",r.ASSET_SOURCE_ALREADY_SET="ASSET_SOURCE_ALREADY_SET",r.ASSET_SOURCE_MISSING="ASSET_SOURCE_MISSING",r.BAD_LOADER="BAD_LOADER",r.CANNOT_EMIT_FROM_OPTIONS_HOOK="CANNOT_EMIT_FROM_OPTIONS_HOOK",r.CHUNK_NOT_GENERATED="CHUNK_NOT_GENERATED",r.CHUNK_INVALID="CHUNK_INVALID",r.CIRCULAR_REEXPORT="CIRCULAR_REEXPORT",r.CYCLIC_CROSS_CHUNK_REEXPORT="CYCLIC_CROSS_CHUNK_REEXPORT",r.DEPRECATED_FEATURE="DEPRECATED_FEATURE",r.EXTERNAL_SYNTHETIC_EXPORTS="EXTERNAL_SYNTHETIC_EXPORTS",r.FILE_NAME_CONFLICT="FILE_NAME_CONFLICT",r.FILE_NAME_OUTSIDE_OUTPUT_DIRECTORY="FILE_NAME_OUTSIDE_OUTPUT_DIRECTORY",r.FILE_NOT_FOUND="FILE_NOT_FOUND",r.INPUT_HOOK_IN_OUTPUT_PLUGIN="INPUT_HOOK_IN_OUTPUT_PLUGIN",r.INVALID_CHUNK="INVALID_CHUNK",r.INVALID_EXPORT_OPTION="INVALID_EXPORT_OPTION",r.INVALID_EXTERNAL_ID="INVALID_EXTERNAL_ID",r.INVALID_OPTION="INVALID_OPTION",r.INVALID_PLUGIN_HOOK="INVALID_PLUGIN_HOOK",r.INVALID_ROLLUP_PHASE="INVALID_ROLLUP_PHASE",r.MISSING_EXPORT="MISSING_EXPORT",r.MISSING_IMPLICIT_DEPENDANT="MISSING_IMPLICIT_DEPENDANT",r.MIXED_EXPORTS="MIXED_EXPORTS",r.NAMESPACE_CONFLICT="NAMESPACE_CONFLICT",r.AMBIGUOUS_EXTERNAL_NAMESPACES="AMBIGUOUS_EXTERNAL_NAMESPACES",r.NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE="NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",r.PLUGIN_ERROR="PLUGIN_ERROR",r.PREFER_NAMED_EXPORTS="PREFER_NAMED_EXPORTS",r.SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT="SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT",r.UNEXPECTED_NAMED_IMPORT="UNEXPECTED_NAMED_IMPORT",r.UNRESOLVED_ENTRY="UNRESOLVED_ENTRY",r.UNRESOLVED_IMPORT="UNRESOLVED_IMPORT",r.VALIDATION_ERROR="VALIDATION_ERROR"})(Wi||(Wi={}));uVr=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"]),W2=uVr,Ahr=/[^$_a-zA-Z0-9]/g;Shr={exports:{}},G2={},cVr=O7,Pfr=`[^${ml}]`,z7=`(?:${K2}|$)`,Ohr=`(?:^|${K2})`,Z7=`${iu}{1,2}${z7}`,mVr=`(?!${iu})`,oVr=`(?!${Ohr}${Z7})`,bVr=`(?!${iu}{0,1}${z7})`,dVr=`(?!${Z7})`,wVr=`[^.${K2}]`,CVr=`${Thr}*?`,Lhr={DOT_LITERAL:iu,PLUS_LITERAL:yVr,QMARK_LITERAL:vVr,SLASH_LITERAL:K2,ONE_CHAR:pVr,QMARK:Thr,END_ANCHOR:z7,DOTS_SLASH:Z7,NO_DOT:mVr,NO_DOTS:oVr,NO_DOT_SLASH:bVr,NO_DOTS_SLASH:dVr,QMARK_NO_DOT:wVr,STAR:CVr,START_ANCHOR:Ohr},qVr={...Lhr,SLASH_LITERAL:`[${ml}]`,QMARK:Pfr,STAR:`${Pfr}*?`,DOTS_SLASH:`${iu}{1,2}(?:[${ml}]|$)`,NO_DOT:`(?!${iu})`,NO_DOTS:`(?!(?:^|[${ml}])${iu}{1,2}(?:[${ml}]|$))`,NO_DOT_SLASH:`(?!${iu}{0,1}(?:[${ml}]|$))`,NO_DOTS_SLASH:`(?!${iu}{1,2}(?:[${ml}]|$))`,QMARK_NO_DOT:`[^.${ml}]`,START_ANCHOR:`(?:^|[${ml}])`,END_ANCHOR:`(?:[${ml}]|$)`},PVr={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"},X2={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:PVr,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:cVr.sep,extglobChars(r){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${r.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(r){return r===!0?qVr:Lhr}};(function(r){let i=O7,t=process.platform==="win32",{REGEX_BACKSLASH:s,REGEX_REMOVE_BACKSLASH:l,REGEX_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_GLOBAL:h}=X2;r.isObject=(c)=>c!==null&&typeof c==="object"&&!Array.isArray(c),r.hasRegexChars=(c)=>u.test(c),r.isRegexChar=(c)=>c.length===1&&r.hasRegexChars(c),r.escapeRegex=(c)=>c.replace(h,"\\$1"),r.toPosixSlashes=(c)=>c.replace(s,"/"),r.removeBackslashes=(c)=>{return c.replace(l,(p)=>{return p==="\\"?"":p})},r.supportsLookbehinds=()=>{let c=process.version.slice(1).split(".").map(Number);if(c.length===3&&c[0]>=9||c[0]===8&&c[1]>=10)return!0;return!1},r.isWindows=(c)=>{if(c&&typeof c.windows==="boolean")return c.windows;return t===!0||i.sep==="\\"},r.escapeLast=(c,p,w)=>{let P=c.lastIndexOf(p,w);if(P===-1)return c;if(c[P-1]==="\\")return r.escapeLast(c,p,P-1);return`${c.slice(0,P)}\\${c.slice(P)}`},r.removePrefix=(c,p={})=>{let w=c;if(w.startsWith("./"))w=w.slice(2),p.prefix="./";return w},r.wrapOutput=(c,p={},w={})=>{let P=w.contains?"":"^",M=w.contains?"":"$",b=`${P}(?:${c})${M}`;if(p.negated===!0)b=`(?:^(?!${b}).*$)`;return b}})(G2);$fr=G2,{CHAR_ASTERISK:Z5,CHAR_AT:$Vr,CHAR_BACKWARD_SLASH:op,CHAR_COMMA:gVr,CHAR_DOT:Q5,CHAR_EXCLAMATION_MARK:J5,CHAR_FORWARD_SLASH:Ehr,CHAR_LEFT_CURLY_BRACE:Y5,CHAR_LEFT_PARENTHESES:W5,CHAR_LEFT_SQUARE_BRACKET:RVr,CHAR_PLUS:AVr,CHAR_QUESTION_MARK:gfr,CHAR_RIGHT_CURLY_BRACE:MVr,CHAR_RIGHT_PARENTHESES:Rfr,CHAR_RIGHT_SQUARE_BRACKET:SVr}=X2,OVr=TVr,T2=X2,pa=G2,{MAX_LENGTH:O2,POSIX_REGEX_SOURCE:LVr,REGEX_NON_SPECIAL_CHARS:EVr,REGEX_SPECIAL_CHARS_BACKREF:VVr,REPLACEMENTS:Vhr}=T2;Q7.fastpaths=(r,i)=>{let t={...i},s=typeof t.maxLength==="number"?Math.min(O2,t.maxLength):O2,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);r=Vhr[r]||r;let u=pa.isWindows(i),{DOT_LITERAL:h,SLASH_LITERAL:c,ONE_CHAR:p,DOTS_SLASH:w,NO_DOT:P,NO_DOTS:M,NO_DOTS_SLASH:b,STAR:o,START_ANCHOR:L}=T2.globChars(u),I=t.dot?M:P,j=t.dot?b:P,H=t.capture?"":"?:",J={negated:!1,prefix:""},W=t.bash===!0?".*?":o;if(t.capture)W=`(${W})`;let sr=(q)=>{if(q.noglobstar===!0)return W;return`(${H}(?:(?!${L}${q.dot?w:h}).)*?)`},rr=(q)=>{switch(q){case"*":return`${I}${p}${W}`;case".*":return`${h}${p}${W}`;case"*.*":return`${I}${W}${h}${p}${W}`;case"*/*":return`${I}${W}${c}${p}${j}${W}`;case"**":return I+sr(t);case"**/*":return`(?:${I}${sr(t)}${c})?${j}${p}${W}`;case"**/*.*":return`(?:${I}${sr(t)}${c})?${j}${W}${h}${p}${W}`;case"**/.*":return`(?:${I}${sr(t)}${c})?${h}${p}${W}`;default:{let T=/^(.*?)\.(\w+)$/.exec(q);if(!T)return;let V=rr(T[1]);if(!V)return;return V+h+T[2]}}},hr=pa.removePrefix(r,J),vr=rr(hr);if(vr&&t.strictSlashes!==!0)vr+=`${c}?`;return vr};FVr=Q7,BVr=O7,HVr=OVr,y7=FVr,J7=G2,UVr=X2;ne.test=(r,i,t,{glob:s,posix:l}={})=>{if(typeof r!=="string")throw TypeError("Expected input to be a string");if(r==="")return{isMatch:!1,output:""};let u=t||{},h=u.format||(l?J7.toPosixSlashes:null),c=r===s,p=c&&h?h(r):r;if(c===!1)p=h?h(r):r,c=p===s;if(c===!1||u.capture===!0)if(u.matchBase===!0||u.basename===!0)c=ne.matchBase(r,i,t,l);else c=i.exec(p);return{isMatch:Boolean(c),match:c,output:p}};ne.matchBase=(r,i,t,s=J7.isWindows(t))=>{return(i instanceof RegExp?i:ne.makeRe(i,t)).test(BVr.basename(r))};ne.isMatch=(r,i,t)=>ne(i,t)(r);ne.parse=(r,i)=>{if(Array.isArray(r))return r.map((t)=>ne.parse(t,i));return y7(r,{...i,fastpaths:!1})};ne.scan=(r,i)=>HVr(r,i);ne.compileRe=(r,i,t=!1,s=!1)=>{if(t===!0)return r.output;let l=i||{},u=l.contains?"":"^",h=l.contains?"":"$",c=`${u}(?:${r.output})${h}`;if(r&&r.negated===!0)c=`^(?!${c}).*$`;let p=ne.toRegex(c,i);if(s===!0)p.state=r;return p};ne.makeRe=(r,i={},t=!1,s=!1)=>{if(!r||typeof r!=="string")throw TypeError("Expected a non-empty string");let l={negated:!1,fastpaths:!0};if(i.fastpaths!==!1&&(r[0]==="."||r[0]==="*"))l.output=y7.fastpaths(r,i);if(!l.output)l=y7(r,i);return ne.compileRe(l,i,t,s)};ne.toRegex=(r,i)=>{try{let t=i||{};return new RegExp(r,t.flags||(t.nocase?"i":""))}catch(t){if(i&&i.debug===!0)throw t;return/$^/}};ne.constants=UVr;jVr=ne;(function(r){r.exports=jVr})(Shr);gvi=nVr(Shr.exports),K1={ArrayPattern(r,i){for(let t of i.elements)if(t)K1[t.type](r,t)},AssignmentPattern(r,i){K1[i.left.type](r,i.left)},Identifier(r,i){r.push(i.name)},MemberExpression(){},ObjectPattern(r,i){for(let t of i.properties)if(t.type==="RestElement")K1.RestElement(r,t);else K1[t.value.type](r,t.value)},RestElement(r,i){K1[i.argument.type](r,i.argument)}},JVr=new Set(`${ZVr} ${QVr}`.split(" "));JVr.add("");Np=new class extends Qs{getLiteralValueAtPath(){return}},X1={value:{hasEffectsWhenCalled:null,returns:Ri}},Y7=new class extends Qs{getReturnExpressionWhenCalledAtPath(i){if(i.length===1)return zp(p7,i[0]);return Ri}hasEffectsOnInteractionAtPath(i,t,s){if(t.type===_t)return i.length>1;if(t.type===Vt&&i.length===1)return jp(p7,i[0],t,s);return!0}},ch={value:{hasEffectsWhenCalled:null,returns:Y7}},fn=new class extends Qs{getReturnExpressionWhenCalledAtPath(i){if(i.length===1)return zp(m7,i[0]);return Ri}hasEffectsOnInteractionAtPath(i,t,s){if(t.type===_t)return i.length>1;if(t.type===Vt&&i.length===1)return jp(m7,i[0],t,s);return!0}},D1={value:{hasEffectsWhenCalled:null,returns:fn}},W7=new class extends Qs{getReturnExpressionWhenCalledAtPath(i){if(i.length===1)return zp(Tp,i[0]);return Ri}hasEffectsOnInteractionAtPath(i,t,s){if(t.type===_t)return i.length>1;if(t.type===Vt&&i.length===1)return jp(Tp,i[0],t,s);return!0}},ht={value:{hasEffectsWhenCalled:null,returns:W7}},Sfr={value:{hasEffectsWhenCalled({args:r},i){let t=r[1];return r.length<2||typeof t.getLiteralValueAtPath(xi,je,{deoptimizeCache(){}})==="symbol"&&t.hasEffectsOnInteractionAtPath(xi,Y2,i)},returns:W7}},G7=_2({hasOwnProperty:ch,isPrototypeOf:ch,propertyIsEnumerable:ch,toLocaleString:ht,toString:ht,valueOf:X1}),p7=_2({valueOf:ch},G7),m7=_2({toExponential:ht,toFixed:ht,toLocaleString:ht,toPrecision:ht,valueOf:D1},G7),Tp=_2({anchor:ht,at:X1,big:ht,blink:ht,bold:ht,charAt:ht,charCodeAt:D1,codePointAt:X1,concat:ht,endsWith:ch,fixed:ht,fontcolor:ht,fontsize:ht,includes:ch,indexOf:D1,italics:ht,lastIndexOf:D1,link:ht,localeCompare:D1,match:X1,matchAll:X1,normalize:ht,padEnd:ht,padStart:ht,repeat:ht,replace:Sfr,replaceAll:Sfr,search:D1,slice:ht,small:ht,split:X1,startsWith:ch,strike:ht,sub:ht,substr:ht,substring:ht,sup:ht,toLocaleLowerCase:ht,toLocaleUpperCase:ht,toLowerCase:ht,toString:ht,toUpperCase:ht,trim:ht,trimEnd:ht,trimLeft:ht,trimRight:ht,trimStart:ht,valueOf:ht},G7);ii={};ii.Program=ii.BlockStatement=ii.StaticBlock=function(r,i,t){for(var s=0,l=r.body;s<l.length;s+=1){var u=l[s];t(u,i,"Statement")}};ii.Statement=K7;ii.EmptyStatement=oh;ii.ExpressionStatement=ii.ParenthesizedExpression=ii.ChainExpression=function(r,i,t){return t(r.expression,i,"Expression")};ii.IfStatement=function(r,i,t){if(t(r.test,i,"Expression"),t(r.consequent,i,"Statement"),r.alternate)t(r.alternate,i,"Statement")};ii.LabeledStatement=function(r,i,t){return t(r.body,i,"Statement")};ii.BreakStatement=ii.ContinueStatement=oh;ii.WithStatement=function(r,i,t){t(r.object,i,"Expression"),t(r.body,i,"Statement")};ii.SwitchStatement=function(r,i,t){t(r.discriminant,i,"Expression");for(var s=0,l=r.cases;s<l.length;s+=1){var u=l[s];if(u.test)t(u.test,i,"Expression");for(var h=0,c=u.consequent;h<c.length;h+=1){var p=c[h];t(p,i,"Statement")}}};ii.SwitchCase=function(r,i,t){if(r.test)t(r.test,i,"Expression");for(var s=0,l=r.consequent;s<l.length;s+=1){var u=l[s];t(u,i,"Statement")}};ii.ReturnStatement=ii.YieldExpression=ii.AwaitExpression=function(r,i,t){if(r.argument)t(r.argument,i,"Expression")};ii.ThrowStatement=ii.SpreadElement=function(r,i,t){return t(r.argument,i,"Expression")};ii.TryStatement=function(r,i,t){if(t(r.block,i,"Statement"),r.handler)t(r.handler,i);if(r.finalizer)t(r.finalizer,i,"Statement")};ii.CatchClause=function(r,i,t){if(r.param)t(r.param,i,"Pattern");t(r.body,i,"Statement")};ii.WhileStatement=ii.DoWhileStatement=function(r,i,t){t(r.test,i,"Expression"),t(r.body,i,"Statement")};ii.ForStatement=function(r,i,t){if(r.init)t(r.init,i,"ForInit");if(r.test)t(r.test,i,"Expression");if(r.update)t(r.update,i,"Expression");t(r.body,i,"Statement")};ii.ForInStatement=ii.ForOfStatement=function(r,i,t){t(r.left,i,"ForInit"),t(r.right,i,"Expression"),t(r.body,i,"Statement")};ii.ForInit=function(r,i,t){if(r.type==="VariableDeclaration")t(r,i);else t(r,i,"Expression")};ii.DebuggerStatement=oh;ii.FunctionDeclaration=function(r,i,t){return t(r,i,"Function")};ii.VariableDeclaration=function(r,i,t){for(var s=0,l=r.declarations;s<l.length;s+=1){var u=l[s];t(u,i)}};ii.VariableDeclarator=function(r,i,t){if(t(r.id,i,"Pattern"),r.init)t(r.init,i,"Expression")};ii.Function=function(r,i,t){if(r.id)t(r.id,i,"Pattern");for(var s=0,l=r.params;s<l.length;s+=1){var u=l[s];t(u,i,"Pattern")}t(r.body,i,r.expression?"Expression":"Statement")};ii.Pattern=function(r,i,t){if(r.type==="Identifier")t(r,i,"VariablePattern");else if(r.type==="MemberExpression")t(r,i,"MemberPattern");else t(r,i)};ii.VariablePattern=oh;ii.MemberPattern=K7;ii.RestElement=function(r,i,t){return t(r.argument,i,"Pattern")};ii.ArrayPattern=function(r,i,t){for(var s=0,l=r.elements;s<l.length;s+=1){var u=l[s];if(u)t(u,i,"Pattern")}};ii.ObjectPattern=function(r,i,t){for(var s=0,l=r.properties;s<l.length;s+=1){var u=l[s];if(u.type==="Property"){if(u.computed)t(u.key,i,"Expression");t(u.value,i,"Pattern")}else if(u.type==="RestElement")t(u.argument,i,"Pattern")}};ii.Expression=K7;ii.ThisExpression=ii.Super=ii.MetaProperty=oh;ii.ArrayExpression=function(r,i,t){for(var s=0,l=r.elements;s<l.length;s+=1){var u=l[s];if(u)t(u,i,"Expression")}};ii.ObjectExpression=function(r,i,t){for(var s=0,l=r.properties;s<l.length;s+=1){var u=l[s];t(u,i)}};ii.FunctionExpression=ii.ArrowFunctionExpression=ii.FunctionDeclaration;ii.SequenceExpression=function(r,i,t){for(var s=0,l=r.expressions;s<l.length;s+=1){var u=l[s];t(u,i,"Expression")}};ii.TemplateLiteral=function(r,i,t){for(var s=0,l=r.quasis;s<l.length;s+=1){var u=l[s];t(u,i)}for(var h=0,c=r.expressions;h<c.length;h+=1){var p=c[h];t(p,i,"Expression")}};ii.TemplateElement=oh;ii.UnaryExpression=ii.UpdateExpression=function(r,i,t){t(r.argument,i,"Expression")};ii.BinaryExpression=ii.LogicalExpression=function(r,i,t){t(r.left,i,"Expression"),t(r.right,i,"Expression")};ii.AssignmentExpression=ii.AssignmentPattern=function(r,i,t){t(r.left,i,"Pattern"),t(r.right,i,"Expression")};ii.ConditionalExpression=function(r,i,t){t(r.test,i,"Expression"),t(r.consequent,i,"Expression"),t(r.alternate,i,"Expression")};ii.NewExpression=ii.CallExpression=function(r,i,t){if(t(r.callee,i,"Expression"),r.arguments)for(var s=0,l=r.arguments;s<l.length;s+=1){var u=l[s];t(u,i,"Expression")}};ii.MemberExpression=function(r,i,t){if(t(r.object,i,"Expression"),r.computed)t(r.property,i,"Expression")};ii.ExportNamedDeclaration=ii.ExportDefaultDeclaration=function(r,i,t){if(r.declaration)t(r.declaration,i,r.type==="ExportNamedDeclaration"||r.declaration.id?"Statement":"Expression");if(r.source)t(r.source,i,"Expression")};ii.ExportAllDeclaration=function(r,i,t){if(r.exported)t(r.exported,i);t(r.source,i,"Expression")};ii.ImportDeclaration=function(r,i,t){for(var s=0,l=r.specifiers;s<l.length;s+=1){var u=l[s];t(u,i)}t(r.source,i,"Expression")};ii.ImportExpression=function(r,i,t){t(r.source,i,"Expression")};ii.ImportSpecifier=ii.ImportDefaultSpecifier=ii.ImportNamespaceSpecifier=ii.Identifier=ii.PrivateIdentifier=ii.Literal=oh;ii.TaggedTemplateExpression=function(r,i,t){t(r.tag,i,"Expression"),t(r.quasi,i,"Expression")};ii.ClassDeclaration=ii.ClassExpression=function(r,i,t){return t(r,i,"Class")};ii.Class=function(r,i,t){if(r.id)t(r.id,i,"Pattern");if(r.superClass)t(r.superClass,i,"Expression");t(r.body,i)};ii.ClassBody=function(r,i,t){for(var s=0,l=r.body;s<l.length;s+=1){var u=l[s];t(u,i)}};ii.MethodDefinition=ii.PropertyDefinition=ii.Property=function(r,i,t){if(r.computed)t(r.key,i,"Expression");if(r.value)t(r.value,i,"Expression")};X7+="ppingURL";eIr=new RegExp(`^#${tIr}+${X7}=.+`);sIr=/[^\s(]/g,G5=/\S/g;lIr=/[@#]__PURE__/;o7={Literal:[],Program:["body"]};vi=class vi extends Qs{constructor(r,i,t){super();this.deoptimized=!1,this.esTreeNode=r,this.keys=o7[r.type]||fIr(r),this.parent=i,this.context=i.context,this.createScope(t),this.parseNode(r),this.initialise(),this.context.magicString.addSourcemapLocation(this.start),this.context.magicString.addSourcemapLocation(this.end)}addExportedVariables(r,i){}bind(){for(let r of this.keys){let i=this[r];if(i===null)continue;if(Array.isArray(i))for(let t of i)t===null||t===void 0||t.bind();else i.bind()}}createScope(r){this.scope=r}hasEffects(r){if(!this.deoptimized)this.applyDeoptimizations();for(let i of this.keys){let t=this[i];if(t===null)continue;if(Array.isArray(t)){for(let s of t)if(s===null||s===void 0?void 0:s.hasEffects(r))return!0}else if(t.hasEffects(r))return!0}return!1}hasEffectsAsAssignmentTarget(r,i){return this.hasEffects(r)||this.hasEffectsOnInteractionAtPath(xi,this.assignmentInteraction,r)}include(r,i,t){if(!this.deoptimized)this.applyDeoptimizations();this.included=!0;for(let s of this.keys){let l=this[s];if(l===null)continue;if(Array.isArray(l))for(let u of l)u===null||u===void 0||u.include(r,i);else l.include(r,i)}}includeAsAssignmentTarget(r,i,t){this.include(r,i)}initialise(){}insertSemicolon(r){if(r.original[this.end-1]!==";")r.appendLeft(this.end,";")}parseNode(r){for(let[i,t]of Object.entries(r)){if(this.hasOwnProperty(i))continue;if(i.charCodeAt(0)===95){if(i===Uhr)this.annotations=t;else if(i===Nhr)for(let{start:s,end:l}of t)this.context.magicString.remove(s,l)}else if(typeof t!=="object"||t===null)this[i]=t;else if(Array.isArray(t)){this[i]=[];for(let s of t)this[i].push(s===null?null:new(this.context.getNodeConstructor(s.type))(s,this,this.scope))}else this[i]=new(this.context.getNodeConstructor(t.type))(t,this,this.scope)}}render(r,i){for(let t of this.keys){let s=this[t];if(s===null)continue;if(Array.isArray(s))for(let l of s)l===null||l===void 0||l.render(r,i);else s.render(r,i)}}setAssignedValue(r){this.assignmentInteraction={args:[r],thisArg:null,type:Cl}}shouldBeIncluded(r){return this.included||!r.brokenFlow&&this.hasEffects(k2())}applyDeoptimizations(){this.deoptimized=!0;for(let r of this.keys){let i=this[r];if(i===null)continue;if(Array.isArray(i))for(let t of i)t===null||t===void 0||t.deoptimizePath(Mt);else i.deoptimizePath(Mt)}this.context.requestTreeshakingPass()}};tn=class tn extends vi{deoptimizeThisOnInteractionAtPath(r,i,t){if(i.length>0)this.argument.deoptimizeThisOnInteractionAtPath(r,[Ce,...i],t)}hasEffects(r){if(!this.deoptimized)this.applyDeoptimizations();let{propertyReadSideEffects:i}=this.context.options.treeshake;return this.argument.hasEffects(r)||i&&(i==="always"||this.argument.hasEffectsOnInteractionAtPath(Mt,H7,r))}applyDeoptimizations(){this.deoptimized=!0,this.argument.deoptimizePath([Ce,Ce]),this.context.requestTreeshakingPass()}};rs=class rs extends Qs{constructor(r){super();this.description=r}deoptimizeThisOnInteractionAtPath({type:r,thisArg:i},t){if(r===Vt&&t.length===0&&this.description.mutatesSelfAsArray)i.deoptimizePath(h7)}getReturnExpressionWhenCalledAtPath(r,{thisArg:i}){if(r.length>0)return Ri;return this.description.returnsPrimitive||(this.description.returns==="self"?i||Ri:this.description.returns())}hasEffectsOnInteractionAtPath(r,i,t){var s,l;let{type:u}=i;if(r.length>(u===_t?1:0))return!0;if(u===Vt){if(this.description.mutatesSelfAsArray===!0&&((s=i.thisArg)===null||s===void 0?void 0:s.hasEffectsOnInteractionAtPath(h7,U7,t)))return!0;if(this.description.callsArgs){for(let h of this.description.callsArgs)if((l=i.args[h])===null||l===void 0?void 0:l.hasEffectsOnInteractionAtPath(xi,Y2,t))return!0}}return!1}};w2=[new rs({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Y7})],Cp=[new rs({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:W7})],Tfr=[new rs({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:fn})],Zhr=[new rs({callsArgs:null,mutatesSelfAsArray:!1,returns:null,returnsPrimitive:Ri})],vp=/^\d+$/;gs=class gs extends Qs{constructor(r,i,t=!1){super();if(this.prototypeExpression=i,this.immutable=t,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(r))this.buildPropertyMaps(r);else{this.propertiesAndGettersByKey=this.propertiesAndSettersByKey=r;for(let s of Object.values(r))this.allProperties.push(...s)}}deoptimizeAllProperties(r){var i;let t=this.hasLostTrack||this.hasUnknownDeoptimizedProperty;if(r)this.hasUnknownDeoptimizedProperty=!0;else this.hasLostTrack=!0;if(t)return;for(let s of Object.values(this.propertiesAndGettersByKey).concat(Object.values(this.settersByKey)))for(let l of s)l.deoptimizePath(Mt);(i=this.prototypeExpression)===null||i===void 0||i.deoptimizePath([Ce,Ce]),this.deoptimizeCachedEntities()}deoptimizeIntegerProperties(){if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||this.hasUnknownDeoptimizedInteger)return;this.hasUnknownDeoptimizedInteger=!0;for(let[r,i]of Object.entries(this.propertiesAndGettersByKey))if(vp.test(r))for(let t of i)t.deoptimizePath(Mt);this.deoptimizeCachedIntegerEntities()}deoptimizePath(r){var i;if(this.hasLostTrack||this.immutable)return;let t=r[0];if(r.length===1){if(typeof t!=="string"){if(t===Rp)return this.deoptimizeIntegerProperties();return this.deoptimizeAllProperties(t===A2)}if(!this.deoptimizedPaths[t]){this.deoptimizedPaths[t]=!0;let l=this.expressionsToBeDeoptimizedByKey[t];if(l)for(let u of l)u.deoptimizeCache()}}let s=r.length===1?Mt:r.slice(1);for(let l of typeof t==="string"?(this.propertiesAndGettersByKey[t]||this.unmatchablePropertiesAndGetters).concat(this.settersByKey[t]||this.unmatchableSetters):this.allProperties)l.deoptimizePath(s);(i=this.prototypeExpression)===null||i===void 0||i.deoptimizePath(r.length===1?[...r,Ce]:r)}deoptimizeThisOnInteractionAtPath(r,i,t){var s;let[l,...u]=i;if(this.hasLostTrack||(r.type===Vt||i.length>1)&&(this.hasUnknownDeoptimizedProperty||typeof l==="string"&&this.deoptimizedPaths[l])){r.thisArg.deoptimizePath(Mt);return}let[h,c,p]=r.type===Vt||i.length>1?[this.propertiesAndGettersByKey,this.propertiesAndGettersByKey,this.unmatchablePropertiesAndGetters]:r.type===_t?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(typeof l==="string"){if(h[l]){let w=c[l];if(w)for(let P of w)P.deoptimizeThisOnInteractionAtPath(r,u,t);if(!this.immutable)this.thisParametersToBeDeoptimized.add(r.thisArg);return}for(let w of p)w.deoptimizeThisOnInteractionAtPath(r,u,t);if(vp.test(l))for(let w of this.unknownIntegerProps)w.deoptimizeThisOnInteractionAtPath(r,u,t)}else{for(let w of Object.values(c).concat([p]))for(let P of w)P.deoptimizeThisOnInteractionAtPath(r,u,t);for(let w of this.unknownIntegerProps)w.deoptimizeThisOnInteractionAtPath(r,u,t)}if(!this.immutable)this.thisParametersToBeDeoptimized.add(r.thisArg);(s=this.prototypeExpression)===null||s===void 0||s.deoptimizeThisOnInteractionAtPath(r,i,t)}getLiteralValueAtPath(r,i,t){if(r.length===0)return ghr;let s=r[0],l=this.getMemberExpressionAndTrackDeopt(s,t);if(l)return l.getLiteralValueAtPath(r.slice(1),i,t);if(this.prototypeExpression)return this.prototypeExpression.getLiteralValueAtPath(r,i,t);if(r.length===1)return;return ie}getReturnExpressionWhenCalledAtPath(r,i,t,s){if(r.length===0)return Ri;let[l,...u]=r,h=this.getMemberExpressionAndTrackDeopt(l,s);if(h)return h.getReturnExpressionWhenCalledAtPath(u,i,t,s);if(this.prototypeExpression)return this.prototypeExpression.getReturnExpressionWhenCalledAtPath(r,i,t,s);return Ri}hasEffectsOnInteractionAtPath(r,i,t){let[s,...l]=r;if(l.length||i.type===Vt){let p=this.getMemberExpression(s);if(p)return p.hasEffectsOnInteractionAtPath(l,i,t);if(this.prototypeExpression)return this.prototypeExpression.hasEffectsOnInteractionAtPath(r,i,t);return!0}if(s===A2)return!1;if(this.hasLostTrack)return!0;let[u,h,c]=i.type===_t?[this.propertiesAndGettersByKey,this.gettersByKey,this.unmatchableGetters]:[this.propertiesAndSettersByKey,this.settersByKey,this.unmatchableSetters];if(typeof s==="string"){if(u[s]){let p=h[s];if(p){for(let w of p)if(w.hasEffectsOnInteractionAtPath(l,i,t))return!0}return!1}for(let p of c)if(p.hasEffectsOnInteractionAtPath(l,i,t))return!0}else for(let p of Object.values(h).concat([c]))for(let w of p)if(w.hasEffectsOnInteractionAtPath(l,i,t))return!0;if(this.prototypeExpression)return this.prototypeExpression.hasEffectsOnInteractionAtPath(r,i,t);return!1}buildPropertyMaps(r){let{allProperties:i,propertiesAndGettersByKey:t,propertiesAndSettersByKey:s,settersByKey:l,gettersByKey:u,unknownIntegerProps:h,unmatchablePropertiesAndGetters:c,unmatchableGetters:p,unmatchableSetters:w}=this,P=[];for(let M=r.length-1;M>=0;M--){let{key:b,kind:o,property:L}=r[M];if(i.push(L),typeof b!=="string"){if(b===Rp){h.push(L);continue}if(o==="set")w.push(L);if(o==="get")p.push(L);if(o!=="get")P.push(L);if(o!=="set")c.push(L)}else if(o==="set"){if(!s[b])s[b]=[L,...P],l[b]=[L,...w]}else if(o==="get"){if(!t[b])t[b]=[L,...c],u[b]=[L,...p]}else{if(!s[b])s[b]=[L,...P];if(!t[b])t[b]=[L,...c]}}}deoptimizeCachedEntities(){for(let r of Object.values(this.expressionsToBeDeoptimizedByKey))for(let i of r)i.deoptimizeCache();for(let r of this.thisParametersToBeDeoptimized)r.deoptimizePath(Mt)}deoptimizeCachedIntegerEntities(){for(let[r,i]of Object.entries(this.expressionsToBeDeoptimizedByKey))if(vp.test(r))for(let t of i)t.deoptimizeCache();for(let r of this.thisParametersToBeDeoptimized)r.deoptimizePath(h7)}getMemberExpression(r){if(this.hasLostTrack||this.hasUnknownDeoptimizedProperty||typeof r!=="string"||this.hasUnknownDeoptimizedInteger&&vp.test(r)||this.deoptimizedPaths[r])return Ri;let i=this.propertiesAndGettersByKey[r];if((i===null||i===void 0?void 0:i.length)===1)return i[0];if(i||this.unmatchablePropertiesAndGetters.length>0||this.unknownIntegerProps.length&&vp.test(r))return Ri;return null}getMemberExpressionAndTrackDeopt(r,i){if(typeof r!=="string")return Ri;let t=this.getMemberExpression(r);if(!(t===Ri||this.immutable))(this.expressionsToBeDeoptimizedByKey[r]=this.expressionsToBeDeoptimizedByKey[r]||[]).push(i);return t}};hIr=new class extends Qs{deoptimizeThisOnInteractionAtPath({type:i,thisArg:t},s){if(i===Vt&&s.length===1&&!Ofr(s[0]))t.deoptimizePath(Mt)}getLiteralValueAtPath(i){return i.length===1&&Ofr(i[0])?void 0:ie}hasEffectsOnInteractionAtPath(i,{type:t}){return i.length>1||t===Vt}},xu=new gs({__proto__:null,hasOwnProperty:w2,isPrototypeOf:w2,propertyIsEnumerable:w2,toLocaleString:Cp,toString:Cp,valueOf:Zhr},hIr,!0),D7=[{key:Rp,kind:"init",property:Ri},{key:"length",kind:"init",property:fn}],Lfr=[new rs({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Y7})],Efr=[new rs({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:fn})],nIr=[new rs({callsArgs:null,mutatesSelfAsArray:!0,returns:()=>new gs(D7,x2),returnsPrimitive:null})],n2=[new rs({callsArgs:null,mutatesSelfAsArray:"deopt-only",returns:()=>new gs(D7,x2),returnsPrimitive:null})],K5=[new rs({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:()=>new gs(D7,x2),returnsPrimitive:null})],Vfr=[new rs({callsArgs:null,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:fn})],Ifr=[new rs({callsArgs:null,mutatesSelfAsArray:!0,returns:null,returnsPrimitive:Ri})],Ffr=[new rs({callsArgs:null,mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Ri})],lh=[new rs({callsArgs:[0],mutatesSelfAsArray:"deopt-only",returns:null,returnsPrimitive:Ri})],X5=[new rs({callsArgs:null,mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],cIr=[new rs({callsArgs:[0],mutatesSelfAsArray:!0,returns:"self",returnsPrimitive:null})],x2=new gs({__proto__:null,at:Ffr,concat:n2,copyWithin:X5,entries:n2,every:Lfr,fill:X5,filter:K5,find:lh,findIndex:Efr,findLast:lh,findLastIndex:Efr,flat:n2,flatMap:K5,forEach:lh,group:lh,groupToMap:lh,includes:w2,indexOf:Tfr,join:Cp,keys:Zhr,lastIndexOf:Tfr,map:K5,pop:Ifr,push:Vfr,reduce:lh,reduceRight:lh,reverse:X5,shift:Ifr,slice:n2,some:Lfr,sort:cIr,splice:nIr,toLocaleString:Cp,toString:Cp,unshift:Vfr,values:Ffr},xu,!0);Qhr=class Qhr extends vi{constructor(){super(...arguments);this.objectEntity=null}deoptimizePath(r){this.getObjectEntity().deoptimizePath(r)}deoptimizeThisOnInteractionAtPath(r,i,t){this.getObjectEntity().deoptimizeThisOnInteractionAtPath(r,i,t)}getLiteralValueAtPath(r,i,t){return this.getObjectEntity().getLiteralValueAtPath(r,i,t)}getReturnExpressionWhenCalledAtPath(r,i,t,s){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(r,i,t,s)}hasEffectsOnInteractionAtPath(r,i,t){return this.getObjectEntity().hasEffectsOnInteractionAtPath(r,i,t)}applyDeoptimizations(){this.deoptimized=!0;let r=!1;for(let i=0;i<this.elements.length;i++){let t=this.elements[i];if(t){if(r||t instanceof tn)r=!0,t.deoptimizePath(Mt)}}this.context.requestTreeshakingPass()}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let r=[{key:"length",kind:"init",property:fn}],i=!1;for(let t=0;t<this.elements.length;t++){let s=this.elements[t];if(i||s instanceof tn){if(s)i=!0,r.unshift({key:Rp,kind:"init",property:s})}else if(!s)r.push({key:String(t),kind:"init",property:Np});else r.push({key:String(t),kind:"init",property:s})}return this.objectEntity=new gs(r,x2)}};Jhr=class Jhr extends vi{addExportedVariables(r,i){for(let t of this.elements)t===null||t===void 0||t.addExportedVariables(r,i)}declare(r){let i=[];for(let t of this.elements)if(t!==null)i.push(...t.declare(r,Ri));return i}deoptimizePath(){for(let r of this.elements)r===null||r===void 0||r.deoptimizePath(xi)}hasEffectsOnInteractionAtPath(r,i,t){for(let s of this.elements)if(s===null||s===void 0?void 0:s.hasEffectsOnInteractionAtPath(xi,i,t))return!0;return!1}markDeclarationReached(){for(let r of this.elements)r===null||r===void 0||r.markDeclarationReached()}};Wa=class Wa extends lf{constructor(r,i,t,s){super(r);this.calledFromTryStatement=!1,this.additionalInitializers=null,this.expressionsToBeDeoptimized=[],this.declarations=i?[i]:[],this.init=t,this.deoptimizationTracker=s.deoptimizationTracker,this.module=s.module}addDeclaration(r,i){this.declarations.push(r);let t=this.markInitializersForDeoptimization();if(i!==null)t.push(i)}consolidateInitializers(){if(this.additionalInitializers!==null){for(let r of this.additionalInitializers)r.deoptimizePath(Mt);this.additionalInitializers=null}}deoptimizePath(r){var i,t;if(this.isReassigned||this.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(r,this))return;if(r.length===0){if(!this.isReassigned){this.isReassigned=!0;let s=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[];for(let l of s)l.deoptimizeCache();(i=this.init)===null||i===void 0||i.deoptimizePath(Mt)}}else(t=this.init)===null||t===void 0||t.deoptimizePath(r)}deoptimizeThisOnInteractionAtPath(r,i,t){if(this.isReassigned||!this.init)return r.thisArg.deoptimizePath(Mt);t.withTrackedEntityAtPath(i,this.init,()=>this.init.deoptimizeThisOnInteractionAtPath(r,i,t),void 0)}getLiteralValueAtPath(r,i,t){if(this.isReassigned||!this.init)return ie;return i.withTrackedEntityAtPath(r,this.init,()=>{return this.expressionsToBeDeoptimized.push(t),this.init.getLiteralValueAtPath(r,i,t)},ie)}getReturnExpressionWhenCalledAtPath(r,i,t,s){if(this.isReassigned||!this.init)return Ri;return t.withTrackedEntityAtPath(r,this.init,()=>{return this.expressionsToBeDeoptimized.push(s),this.init.getReturnExpressionWhenCalledAtPath(r,i,t,s)},Ri)}hasEffectsOnInteractionAtPath(r,i,t){switch(i.type){case _t:if(this.isReassigned)return!0;return this.init&&!t.accessed.trackEntityAtPathAndGetIfTracked(r,this)&&this.init.hasEffectsOnInteractionAtPath(r,i,t);case Cl:if(this.included)return!0;if(r.length===0)return!1;if(this.isReassigned)return!0;return this.init&&!t.assigned.trackEntityAtPathAndGetIfTracked(r,this)&&this.init.hasEffectsOnInteractionAtPath(r,i,t);case Vt:if(this.isReassigned)return!0;return this.init&&!(i.withNew?t.instantiated:t.called).trackEntityAtPathAndGetIfTracked(r,i.args,this)&&this.init.hasEffectsOnInteractionAtPath(r,i,t)}}include(){if(!this.included){this.included=!0;for(let r of this.declarations){if(!r.included)r.include(v7(),!1);let i=r.parent;while(!i.included){if(i.included=!0,i.type===L2)break;i=i.parent}}}}includeCallArguments(r,i){if(this.isReassigned||this.init&&r.includedCallArguments.has(this.init))for(let t of i)t.include(r,!1);else if(this.init)r.includedCallArguments.add(this.init),this.init.includeCallArguments(r,i),r.includedCallArguments.delete(this.init)}markCalledFromTryStatement(){this.calledFromTryStatement=!0}markInitializersForDeoptimization(){if(this.additionalInitializers===null)this.additionalInitializers=this.init===null?[]:[this.init],this.init=Ri,this.isReassigned=!0;return this.additionalInitializers}};Ya=class Ya extends k7{constructor(r){super();this.accessedOutsideVariables=new Map,this.parent=r,r.children.push(this)}addAccessedDynamicImport(r){if((this.accessedDynamicImports||(this.accessedDynamicImports=new Set)).add(r),this.parent instanceof Ya)this.parent.addAccessedDynamicImport(r)}addAccessedGlobals(r,i){let t=i.get(this)||new Set;for(let s of r)t.add(s);if(i.set(this,t),this.parent instanceof Ya)this.parent.addAccessedGlobals(r,i)}addNamespaceMemberAccess(r,i){this.accessedOutsideVariables.set(r,i),this.parent.addNamespaceMemberAccess(r,i)}addReturnExpression(r){this.parent instanceof Ya&&this.parent.addReturnExpression(r)}addUsedOutsideNames(r,i,t,s){for(let u of this.accessedOutsideVariables.values())if(u.included){if(r.add(u.getBaseVariableName()),i==="system"&&t.has(u))r.add("exports")}let l=s.get(this);if(l)for(let u of l)r.add(u)}contains(r){return this.variables.has(r)||this.parent.contains(r)}deconflict(r,i,t){let s=new Set;if(this.addUsedOutsideNames(s,r,i,t),this.accessedDynamicImports){for(let l of this.accessedDynamicImports)if(l.inlineNamespace)s.add(l.inlineNamespace.getBaseVariableName())}for(let[l,u]of this.variables)if(u.included||u.alwaysRendered)u.setRenderNames(null,bl(l,s));for(let l of this.children)l.deconflict(r,i,t)}findLexicalBoundary(){return this.parent.findLexicalBoundary()}findVariable(r){let i=this.variables.get(r)||this.accessedOutsideVariables.get(r);if(i)return i;let t=this.parent.findVariable(r);return this.accessedOutsideVariables.set(r,t),t}};_7=class _7 extends Ya{constructor(r,i){super(r);this.parameters=[],this.hasRest=!1,this.context=i,this.hoistedBodyVarScope=new Ya(this)}addParameterDeclaration(r){let i=r.name,t=this.hoistedBodyVarScope.variables.get(i);if(t)t.addDeclaration(r,null);else t=new Wa(i,r,Ri,this.context);return this.variables.set(i,t),t}addParameterVariables(r,i){this.parameters=r;for(let t of r)for(let s of t)s.alwaysRendered=!0;this.hasRest=i}includeCallArguments(r,i){let t=!1,s=!1,l=this.hasRest&&this.parameters[this.parameters.length-1];for(let u of i)if(u instanceof tn){for(let h of i)h.include(r,!1);break}for(let u=i.length-1;u>=0;u--){let h=this.parameters[u]||l,c=i[u];if(h)if(t=!1,h.length===0)s=!0;else for(let p of h){if(p.included)s=!0;if(p.calledFromTryStatement)t=!0}if(!s&&c.shouldBeIncluded(r))s=!0;if(s)c.include(r,t)}}};x7=class x7 extends _7{constructor(){super(...arguments);this.returnExpression=null,this.returnExpressions=[]}addReturnExpression(r){this.returnExpressions.push(r)}getReturnExpression(){if(this.returnExpression===null)this.updateReturnExpression();return this.returnExpression}updateReturnExpression(){if(this.returnExpressions.length===1)this.returnExpression=this.returnExpressions[0];else{this.returnExpression=Ri;for(let r of this.returnExpressions)r.deoptimizePath(Mt)}}};we=Symbol("Value Properties"),ol={hasEffectsWhenCalled(){return!1}},uh={hasEffectsWhenCalled(){return!0}},Nr={__proto__:null,[we]:uh},si={__proto__:null,[we]:ol},Hfr={__proto__:null,[we]:{hasEffectsWhenCalled({args:r},i){return!r.length||r[0].hasEffectsOnInteractionAtPath(oEr,U7,i)}}},Y={__proto__:null,[we]:uh,prototype:Nr},cs={__proto__:null,[we]:ol,prototype:Nr},ru={__proto__:null,[we]:ol,from:si,of:si,prototype:Nr},Y1={__proto__:null,[we]:ol,supportedLocalesOf:cs},d7={global:Nr,globalThis:Nr,self:Nr,window:Nr,__proto__:null,[we]:uh,Array:{__proto__:null,[we]:uh,from:Nr,isArray:si,of:si,prototype:Nr},ArrayBuffer:{__proto__:null,[we]:ol,isView:si,prototype:Nr},Atomics:Nr,BigInt:Y,BigInt64Array:Y,BigUint64Array:Y,Boolean:cs,constructor:Y,DataView:cs,Date:{__proto__:null,[we]:ol,now:si,parse:si,prototype:Nr,UTC:si},decodeURI:si,decodeURIComponent:si,encodeURI:si,encodeURIComponent:si,Error:cs,escape:si,eval:Nr,EvalError:cs,Float32Array:ru,Float64Array:ru,Function:Y,hasOwnProperty:Nr,Infinity:Nr,Int16Array:ru,Int32Array:ru,Int8Array:ru,isFinite:si,isNaN:si,isPrototypeOf:Nr,JSON:Nr,Map:cs,Math:{__proto__:null,[we]:uh,abs:si,acos:si,acosh:si,asin:si,asinh:si,atan:si,atan2:si,atanh:si,cbrt:si,ceil:si,clz32:si,cos:si,cosh:si,exp:si,expm1:si,floor:si,fround:si,hypot:si,imul:si,log:si,log10:si,log1p:si,log2:si,max:si,min:si,pow:si,random:si,round:si,sign:si,sin:si,sinh:si,sqrt:si,tan:si,tanh:si,trunc:si},NaN:Nr,Number:{__proto__:null,[we]:ol,isFinite:si,isInteger:si,isNaN:si,isSafeInteger:si,parseFloat:si,parseInt:si,prototype:Nr},Object:{__proto__:null,[we]:ol,create:si,defineProperty:Hfr,defineProperties:Hfr,getOwnPropertyDescriptor:si,getOwnPropertyNames:si,getOwnPropertySymbols:si,getPrototypeOf:si,hasOwn:si,is:si,isExtensible:si,isFrozen:si,isSealed:si,keys:si,fromEntries:si,entries:si,prototype:Nr},parseFloat:si,parseInt:si,Promise:{__proto__:null,[we]:uh,all:Nr,prototype:Nr,race:Nr,reject:Nr,resolve:Nr},propertyIsEnumerable:Nr,Proxy:Nr,RangeError:cs,ReferenceError:cs,Reflect:Nr,RegExp:cs,Set:cs,SharedArrayBuffer:Y,String:{__proto__:null,[we]:ol,fromCharCode:si,fromCodePoint:si,prototype:Nr,raw:si},Symbol:{__proto__:null,[we]:ol,for:si,keyFor:si,prototype:Nr},SyntaxError:cs,toLocaleString:Nr,toString:Nr,TypeError:cs,Uint16Array:ru,Uint32Array:ru,Uint8Array:ru,Uint8ClampedArray:ru,unescape:si,URIError:cs,valueOf:Nr,WeakMap:cs,WeakSet:cs,clearInterval:Y,clearTimeout:Y,console:Nr,Intl:{__proto__:null,[we]:uh,Collator:Y1,DateTimeFormat:Y1,ListFormat:Y1,NumberFormat:Y1,PluralRules:Y1,RelativeTimeFormat:Y1},setInterval:Y,setTimeout:Y,TextDecoder:Y,TextEncoder:Y,URL:Y,URLSearchParams:Y,AbortController:Y,AbortSignal:Y,addEventListener:Nr,alert:Nr,AnalyserNode:Y,Animation:Y,AnimationEvent:Y,applicationCache:Nr,ApplicationCache:Y,ApplicationCacheErrorEvent:Y,atob:Nr,Attr:Y,Audio:Y,AudioBuffer:Y,AudioBufferSourceNode:Y,AudioContext:Y,AudioDestinationNode:Y,AudioListener:Y,AudioNode:Y,AudioParam:Y,AudioProcessingEvent:Y,AudioScheduledSourceNode:Y,AudioWorkletNode:Y,BarProp:Y,BaseAudioContext:Y,BatteryManager:Y,BeforeUnloadEvent:Y,BiquadFilterNode:Y,Blob:Y,BlobEvent:Y,blur:Nr,BroadcastChannel:Y,btoa:Nr,ByteLengthQueuingStrategy:Y,Cache:Y,caches:Nr,CacheStorage:Y,cancelAnimationFrame:Nr,cancelIdleCallback:Nr,CanvasCaptureMediaStreamTrack:Y,CanvasGradient:Y,CanvasPattern:Y,CanvasRenderingContext2D:Y,ChannelMergerNode:Y,ChannelSplitterNode:Y,CharacterData:Y,clientInformation:Nr,ClipboardEvent:Y,close:Nr,closed:Nr,CloseEvent:Y,Comment:Y,CompositionEvent:Y,confirm:Nr,ConstantSourceNode:Y,ConvolverNode:Y,CountQueuingStrategy:Y,createImageBitmap:Nr,Credential:Y,CredentialsContainer:Y,crypto:Nr,Crypto:Y,CryptoKey:Y,CSS:Y,CSSConditionRule:Y,CSSFontFaceRule:Y,CSSGroupingRule:Y,CSSImportRule:Y,CSSKeyframeRule:Y,CSSKeyframesRule:Y,CSSMediaRule:Y,CSSNamespaceRule:Y,CSSPageRule:Y,CSSRule:Y,CSSRuleList:Y,CSSStyleDeclaration:Y,CSSStyleRule:Y,CSSStyleSheet:Y,CSSSupportsRule:Y,CustomElementRegistry:Y,customElements:Nr,CustomEvent:Y,DataTransfer:Y,DataTransferItem:Y,DataTransferItemList:Y,defaultstatus:Nr,defaultStatus:Nr,DelayNode:Y,DeviceMotionEvent:Y,DeviceOrientationEvent:Y,devicePixelRatio:Nr,dispatchEvent:Nr,document:Nr,Document:Y,DocumentFragment:Y,DocumentType:Y,DOMError:Y,DOMException:Y,DOMImplementation:Y,DOMMatrix:Y,DOMMatrixReadOnly:Y,DOMParser:Y,DOMPoint:Y,DOMPointReadOnly:Y,DOMQuad:Y,DOMRect:Y,DOMRectReadOnly:Y,DOMStringList:Y,DOMStringMap:Y,DOMTokenList:Y,DragEvent:Y,DynamicsCompressorNode:Y,Element:Y,ErrorEvent:Y,Event:Y,EventSource:Y,EventTarget:Y,external:Nr,fetch:Nr,File:Y,FileList:Y,FileReader:Y,find:Nr,focus:Nr,FocusEvent:Y,FontFace:Y,FontFaceSetLoadEvent:Y,FormData:Y,frames:Nr,GainNode:Y,Gamepad:Y,GamepadButton:Y,GamepadEvent:Y,getComputedStyle:Nr,getSelection:Nr,HashChangeEvent:Y,Headers:Y,history:Nr,History:Y,HTMLAllCollection:Y,HTMLAnchorElement:Y,HTMLAreaElement:Y,HTMLAudioElement:Y,HTMLBaseElement:Y,HTMLBodyElement:Y,HTMLBRElement:Y,HTMLButtonElement:Y,HTMLCanvasElement:Y,HTMLCollection:Y,HTMLContentElement:Y,HTMLDataElement:Y,HTMLDataListElement:Y,HTMLDetailsElement:Y,HTMLDialogElement:Y,HTMLDirectoryElement:Y,HTMLDivElement:Y,HTMLDListElement:Y,HTMLDocument:Y,HTMLElement:Y,HTMLEmbedElement:Y,HTMLFieldSetElement:Y,HTMLFontElement:Y,HTMLFormControlsCollection:Y,HTMLFormElement:Y,HTMLFrameElement:Y,HTMLFrameSetElement:Y,HTMLHeadElement:Y,HTMLHeadingElement:Y,HTMLHRElement:Y,HTMLHtmlElement:Y,HTMLIFrameElement:Y,HTMLImageElement:Y,HTMLInputElement:Y,HTMLLabelElement:Y,HTMLLegendElement:Y,HTMLLIElement:Y,HTMLLinkElement:Y,HTMLMapElement:Y,HTMLMarqueeElement:Y,HTMLMediaElement:Y,HTMLMenuElement:Y,HTMLMetaElement:Y,HTMLMeterElement:Y,HTMLModElement:Y,HTMLObjectElement:Y,HTMLOListElement:Y,HTMLOptGroupElement:Y,HTMLOptionElement:Y,HTMLOptionsCollection:Y,HTMLOutputElement:Y,HTMLParagraphElement:Y,HTMLParamElement:Y,HTMLPictureElement:Y,HTMLPreElement:Y,HTMLProgressElement:Y,HTMLQuoteElement:Y,HTMLScriptElement:Y,HTMLSelectElement:Y,HTMLShadowElement:Y,HTMLSlotElement:Y,HTMLSourceElement:Y,HTMLSpanElement:Y,HTMLStyleElement:Y,HTMLTableCaptionElement:Y,HTMLTableCellElement:Y,HTMLTableColElement:Y,HTMLTableElement:Y,HTMLTableRowElement:Y,HTMLTableSectionElement:Y,HTMLTemplateElement:Y,HTMLTextAreaElement:Y,HTMLTimeElement:Y,HTMLTitleElement:Y,HTMLTrackElement:Y,HTMLUListElement:Y,HTMLUnknownElement:Y,HTMLVideoElement:Y,IDBCursor:Y,IDBCursorWithValue:Y,IDBDatabase:Y,IDBFactory:Y,IDBIndex:Y,IDBKeyRange:Y,IDBObjectStore:Y,IDBOpenDBRequest:Y,IDBRequest:Y,IDBTransaction:Y,IDBVersionChangeEvent:Y,IdleDeadline:Y,IIRFilterNode:Y,Image:Y,ImageBitmap:Y,ImageBitmapRenderingContext:Y,ImageCapture:Y,ImageData:Y,indexedDB:Nr,innerHeight:Nr,innerWidth:Nr,InputEvent:Y,IntersectionObserver:Y,IntersectionObserverEntry:Y,isSecureContext:Nr,KeyboardEvent:Y,KeyframeEffect:Y,length:Nr,localStorage:Nr,location:Nr,Location:Y,locationbar:Nr,matchMedia:Nr,MediaDeviceInfo:Y,MediaDevices:Y,MediaElementAudioSourceNode:Y,MediaEncryptedEvent:Y,MediaError:Y,MediaKeyMessageEvent:Y,MediaKeySession:Y,MediaKeyStatusMap:Y,MediaKeySystemAccess:Y,MediaList:Y,MediaQueryList:Y,MediaQueryListEvent:Y,MediaRecorder:Y,MediaSettingsRange:Y,MediaSource:Y,MediaStream:Y,MediaStreamAudioDestinationNode:Y,MediaStreamAudioSourceNode:Y,MediaStreamEvent:Y,MediaStreamTrack:Y,MediaStreamTrackEvent:Y,menubar:Nr,MessageChannel:Y,MessageEvent:Y,MessagePort:Y,MIDIAccess:Y,MIDIConnectionEvent:Y,MIDIInput:Y,MIDIInputMap:Y,MIDIMessageEvent:Y,MIDIOutput:Y,MIDIOutputMap:Y,MIDIPort:Y,MimeType:Y,MimeTypeArray:Y,MouseEvent:Y,moveBy:Nr,moveTo:Nr,MutationEvent:Y,MutationObserver:Y,MutationRecord:Y,name:Nr,NamedNodeMap:Y,NavigationPreloadManager:Y,navigator:Nr,Navigator:Y,NetworkInformation:Y,Node:Y,NodeFilter:Nr,NodeIterator:Y,NodeList:Y,Notification:Y,OfflineAudioCompletionEvent:Y,OfflineAudioContext:Y,offscreenBuffering:Nr,OffscreenCanvas:Y,open:Nr,openDatabase:Nr,Option:Y,origin:Nr,OscillatorNode:Y,outerHeight:Nr,outerWidth:Nr,PageTransitionEvent:Y,pageXOffset:Nr,pageYOffset:Nr,PannerNode:Y,parent:Nr,Path2D:Y,PaymentAddress:Y,PaymentRequest:Y,PaymentRequestUpdateEvent:Y,PaymentResponse:Y,performance:Nr,Performance:Y,PerformanceEntry:Y,PerformanceLongTaskTiming:Y,PerformanceMark:Y,PerformanceMeasure:Y,PerformanceNavigation:Y,PerformanceNavigationTiming:Y,PerformanceObserver:Y,PerformanceObserverEntryList:Y,PerformancePaintTiming:Y,PerformanceResourceTiming:Y,PerformanceTiming:Y,PeriodicWave:Y,Permissions:Y,PermissionStatus:Y,personalbar:Nr,PhotoCapabilities:Y,Plugin:Y,PluginArray:Y,PointerEvent:Y,PopStateEvent:Y,postMessage:Nr,Presentation:Y,PresentationAvailability:Y,PresentationConnection:Y,PresentationConnectionAvailableEvent:Y,PresentationConnectionCloseEvent:Y,PresentationConnectionList:Y,PresentationReceiver:Y,PresentationRequest:Y,print:Nr,ProcessingInstruction:Y,ProgressEvent:Y,PromiseRejectionEvent:Y,prompt:Nr,PushManager:Y,PushSubscription:Y,PushSubscriptionOptions:Y,queueMicrotask:Nr,RadioNodeList:Y,Range:Y,ReadableStream:Y,RemotePlayback:Y,removeEventListener:Nr,Request:Y,requestAnimationFrame:Nr,requestIdleCallback:Nr,resizeBy:Nr,ResizeObserver:Y,ResizeObserverEntry:Y,resizeTo:Nr,Response:Y,RTCCertificate:Y,RTCDataChannel:Y,RTCDataChannelEvent:Y,RTCDtlsTransport:Y,RTCIceCandidate:Y,RTCIceTransport:Y,RTCPeerConnection:Y,RTCPeerConnectionIceEvent:Y,RTCRtpReceiver:Y,RTCRtpSender:Y,RTCSctpTransport:Y,RTCSessionDescription:Y,RTCStatsReport:Y,RTCTrackEvent:Y,screen:Nr,Screen:Y,screenLeft:Nr,ScreenOrientation:Y,screenTop:Nr,screenX:Nr,screenY:Nr,ScriptProcessorNode:Y,scroll:Nr,scrollbars:Nr,scrollBy:Nr,scrollTo:Nr,scrollX:Nr,scrollY:Nr,SecurityPolicyViolationEvent:Y,Selection:Y,ServiceWorker:Y,ServiceWorkerContainer:Y,ServiceWorkerRegistration:Y,sessionStorage:Nr,ShadowRoot:Y,SharedWorker:Y,SourceBuffer:Y,SourceBufferList:Y,speechSynthesis:Nr,SpeechSynthesisEvent:Y,SpeechSynthesisUtterance:Y,StaticRange:Y,status:Nr,statusbar:Nr,StereoPannerNode:Y,stop:Nr,Storage:Y,StorageEvent:Y,StorageManager:Y,styleMedia:Nr,StyleSheet:Y,StyleSheetList:Y,SubtleCrypto:Y,SVGAElement:Y,SVGAngle:Y,SVGAnimatedAngle:Y,SVGAnimatedBoolean:Y,SVGAnimatedEnumeration:Y,SVGAnimatedInteger:Y,SVGAnimatedLength:Y,SVGAnimatedLengthList:Y,SVGAnimatedNumber:Y,SVGAnimatedNumberList:Y,SVGAnimatedPreserveAspectRatio:Y,SVGAnimatedRect:Y,SVGAnimatedString:Y,SVGAnimatedTransformList:Y,SVGAnimateElement:Y,SVGAnimateMotionElement:Y,SVGAnimateTransformElement:Y,SVGAnimationElement:Y,SVGCircleElement:Y,SVGClipPathElement:Y,SVGComponentTransferFunctionElement:Y,SVGDefsElement:Y,SVGDescElement:Y,SVGDiscardElement:Y,SVGElement:Y,SVGEllipseElement:Y,SVGFEBlendElement:Y,SVGFEColorMatrixElement:Y,SVGFEComponentTransferElement:Y,SVGFECompositeElement:Y,SVGFEConvolveMatrixElement:Y,SVGFEDiffuseLightingElement:Y,SVGFEDisplacementMapElement:Y,SVGFEDistantLightElement:Y,SVGFEDropShadowElement:Y,SVGFEFloodElement:Y,SVGFEFuncAElement:Y,SVGFEFuncBElement:Y,SVGFEFuncGElement:Y,SVGFEFuncRElement:Y,SVGFEGaussianBlurElement:Y,SVGFEImageElement:Y,SVGFEMergeElement:Y,SVGFEMergeNodeElement:Y,SVGFEMorphologyElement:Y,SVGFEOffsetElement:Y,SVGFEPointLightElement:Y,SVGFESpecularLightingElement:Y,SVGFESpotLightElement:Y,SVGFETileElement:Y,SVGFETurbulenceElement:Y,SVGFilterElement:Y,SVGForeignObjectElement:Y,SVGGElement:Y,SVGGeometryElement:Y,SVGGradientElement:Y,SVGGraphicsElement:Y,SVGImageElement:Y,SVGLength:Y,SVGLengthList:Y,SVGLinearGradientElement:Y,SVGLineElement:Y,SVGMarkerElement:Y,SVGMaskElement:Y,SVGMatrix:Y,SVGMetadataElement:Y,SVGMPathElement:Y,SVGNumber:Y,SVGNumberList:Y,SVGPathElement:Y,SVGPatternElement:Y,SVGPoint:Y,SVGPointList:Y,SVGPolygonElement:Y,SVGPolylineElement:Y,SVGPreserveAspectRatio:Y,SVGRadialGradientElement:Y,SVGRect:Y,SVGRectElement:Y,SVGScriptElement:Y,SVGSetElement:Y,SVGStopElement:Y,SVGStringList:Y,SVGStyleElement:Y,SVGSVGElement:Y,SVGSwitchElement:Y,SVGSymbolElement:Y,SVGTextContentElement:Y,SVGTextElement:Y,SVGTextPathElement:Y,SVGTextPositioningElement:Y,SVGTitleElement:Y,SVGTransform:Y,SVGTransformList:Y,SVGTSpanElement:Y,SVGUnitTypes:Y,SVGUseElement:Y,SVGViewElement:Y,TaskAttributionTiming:Y,Text:Y,TextEvent:Y,TextMetrics:Y,TextTrack:Y,TextTrackCue:Y,TextTrackCueList:Y,TextTrackList:Y,TimeRanges:Y,toolbar:Nr,top:Nr,Touch:Y,TouchEvent:Y,TouchList:Y,TrackEvent:Y,TransitionEvent:Y,TreeWalker:Y,UIEvent:Y,ValidityState:Y,visualViewport:Nr,VisualViewport:Y,VTTCue:Y,WaveShaperNode:Y,WebAssembly:Nr,WebGL2RenderingContext:Y,WebGLActiveInfo:Y,WebGLBuffer:Y,WebGLContextEvent:Y,WebGLFramebuffer:Y,WebGLProgram:Y,WebGLQuery:Y,WebGLRenderbuffer:Y,WebGLRenderingContext:Y,WebGLSampler:Y,WebGLShader:Y,WebGLShaderPrecisionFormat:Y,WebGLSync:Y,WebGLTexture:Y,WebGLTransformFeedback:Y,WebGLUniformLocation:Y,WebGLVertexArrayObject:Y,WebSocket:Y,WheelEvent:Y,Window:Y,Worker:Y,WritableStream:Y,XMLDocument:Y,XMLHttpRequest:Y,XMLHttpRequestEventTarget:Y,XMLHttpRequestUpload:Y,XMLSerializer:Y,XPathEvaluator:Y,XPathExpression:Y,XPathResult:Y,XSLTProcessor:Y};for(let r of["window","global","self","globalThis"])d7[r]=d7;r9=class r9 extends lf{constructor(){super(...arguments);this.isReassigned=!0}getLiteralValueAtPath(r,i,t){return c2([this.name,...r])?ghr:ie}hasEffectsOnInteractionAtPath(r,i,t){switch(i.type){case _t:if(r.length===0)return this.name!=="undefined"&&!c2([this.name]);return!c2([this.name,...r].slice(0,-1));case Cl:return!0;case Vt:{let s=c2([this.name,...r]);return!s||s.hasEffectsWhenCalled(i,t)}}}};vIr={__proto__:null,class:!0,const:!0,let:!0,var:!0};qe=class qe extends vi{constructor(){super(...arguments);this.variable=null,this.isTDZAccess=null}addExportedVariables(r,i){if(i.has(this.variable))r.push(this.variable)}bind(){if(!this.variable&&Yhr(this,this.parent))this.variable=this.scope.findVariable(this.name),this.variable.addReference(this)}declare(r,i){let t,{treeshake:s}=this.context.options;switch(r){case"var":if(t=this.scope.addDeclaration(this,this.context,i,!0),s&&s.correctVarValueBeforeDeclaration)t.markInitializersForDeoptimization();break;case"function":t=this.scope.addDeclaration(this,this.context,i,!1);break;case"let":case"const":case"class":t=this.scope.addDeclaration(this,this.context,i,!1);break;case"parameter":t=this.scope.addParameterDeclaration(this);break;default:throw Error(`Internal Error: Unexpected identifier kind ${r}.`)}return t.kind=r,[this.variable=t]}deoptimizePath(r){var i;if(r.length===0&&!this.scope.contains(this.name))this.disallowImportReassignment();(i=this.variable)===null||i===void 0||i.deoptimizePath(r)}deoptimizeThisOnInteractionAtPath(r,i,t){this.variable.deoptimizeThisOnInteractionAtPath(r,i,t)}getLiteralValueAtPath(r,i,t){return this.getVariableRespectingTDZ().getLiteralValueAtPath(r,i,t)}getReturnExpressionWhenCalledAtPath(r,i,t,s){return this.getVariableRespectingTDZ().getReturnExpressionWhenCalledAtPath(r,i,t,s)}hasEffects(r){if(!this.deoptimized)this.applyDeoptimizations();if(this.isPossibleTDZ()&&this.variable.kind!=="var")return!0;return this.context.options.treeshake.unknownGlobalSideEffects&&this.variable instanceof r9&&this.variable.hasEffectsOnInteractionAtPath(xi,H7,r)}hasEffectsOnInteractionAtPath(r,i,t){switch(i.type){case _t:return this.variable!==null&&this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(r,i,t);case Cl:return(r.length>0?this.getVariableRespectingTDZ():this.variable).hasEffectsOnInteractionAtPath(r,i,t);case Vt:return this.getVariableRespectingTDZ().hasEffectsOnInteractionAtPath(r,i,t)}}include(){if(!this.deoptimized)this.applyDeoptimizations();if(!this.included){if(this.included=!0,this.variable!==null)this.context.includeVariableInModule(this.variable)}}includeCallArguments(r,i){this.variable.includeCallArguments(r,i)}isPossibleTDZ(){if(this.isTDZAccess!==null)return this.isTDZAccess;if(!(this.variable instanceof Wa)||!this.variable.kind||!(this.variable.kind in vIr))return this.isTDZAccess=!1;let r;if(this.variable.declarations&&this.variable.declarations.length===1&&(r=this.variable.declarations[0])&&this.start<r.start&&Ufr(this)===Ufr(r))return this.isTDZAccess=!0;if(!this.variable.initReached)return this.isTDZAccess=!0;return this.isTDZAccess=!1}markDeclarationReached(){this.variable.initReached=!0}render(r,{snippets:{getPropertyAccess:i}},{renderedParentType:t,isCalleeOfRenderedParent:s,isShorthandProperty:l}=Fe){if(this.variable){let u=this.variable.getName(i);if(u!==this.name){if(r.overwrite(this.start,this.end,u,{contentOnly:!0,storeName:!0}),l)r.prependRight(this.start,`${this.name}: `)}if(u==="eval"&&t===Bhr&&s)r.appendRight(this.start,"0, ")}}applyDeoptimizations(){if(this.deoptimized=!0,this.variable instanceof Wa)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 Ri;return this.variable}};yh={isNoStatement:!0};Nfr=/\S/g;uf=class uf extends Ya{addDeclaration(r,i,t,s){if(s){let l=this.parent.addDeclaration(r,i,t,s);return l.markInitializersForDeoptimization(),l}else return super.addDeclaration(r,i,t,!1)}};Qp=class Qp extends vi{initialise(){if(this.directive&&this.directive!=="use strict"&&this.parent.type===L2)this.context.warn({code:"MODULE_LEVEL_DIRECTIVE",message:`Module level directives cause errors when bundled, '${this.directive}' was ignored.`},this.start)}render(r,i){if(super.render(r,i),this.included)this.insertSemicolon(r)}shouldBeIncluded(r){if(this.directive&&this.directive!=="use strict")return this.parent.type!==L2;return super.shouldBeIncluded(r)}applyDeoptimizations(){}};Op=class Op extends vi{constructor(){super(...arguments);this.directlyIncluded=!1}addImplicitReturnExpressionToScope(){let r=this.body[this.body.length-1];if(!r||r.type!==rIr)this.scope.addReturnExpression(Ri)}createScope(r){this.scope=this.parent.preventChildBlockScope?r:new uf(r)}hasEffects(r){if(this.deoptimizeBody)return!0;for(let i of this.body){if(r.brokenFlow)break;if(i.hasEffects(r))return!0}return!1}include(r,i){if(!(this.deoptimizeBody&&this.directlyIncluded)){if(this.included=!0,this.directlyIncluded=!0,this.deoptimizeBody)i=!0;for(let t of this.body)if(i||t.shouldBeIncluded(r))t.include(r,i)}}initialise(){let r=this.body[0];this.deoptimizeBody=r instanceof Qp&&r.directive==="use asm"}render(r,i){if(this.body.length)Zp(this.body,r,this.start+1,this.end-1,i);else super.render(r,i)}};i4=class i4 extends vi{constructor(){super(...arguments);this.declarationInit=null}addExportedVariables(r,i){this.argument.addExportedVariables(r,i)}declare(r,i){return this.declarationInit=i,this.argument.declare(r,Ri)}deoptimizePath(r){r.length===0&&this.argument.deoptimizePath(xi)}hasEffectsOnInteractionAtPath(r,i,t){return r.length>0||this.argument.hasEffectsOnInteractionAtPath(xi,i,t)}markDeclarationReached(){this.argument.markDeclarationReached()}applyDeoptimizations(){if(this.deoptimized=!0,this.declarationInit!==null)this.declarationInit.deoptimizePath([Ce,Ce]),this.context.requestTreeshakingPass()}};t9=class t9 extends vi{constructor(){super(...arguments);this.objectEntity=null,this.deoptimizedReturn=!1}deoptimizePath(r){if(this.getObjectEntity().deoptimizePath(r),r.length===1&&r[0]===Ce)this.scope.getReturnExpression().deoptimizePath(Mt)}deoptimizeThisOnInteractionAtPath(r,i,t){if(i.length>0)this.getObjectEntity().deoptimizeThisOnInteractionAtPath(r,i,t)}getLiteralValueAtPath(r,i,t){return this.getObjectEntity().getLiteralValueAtPath(r,i,t)}getReturnExpressionWhenCalledAtPath(r,i,t,s){if(r.length>0)return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(r,i,t,s);if(this.async){if(!this.deoptimizedReturn)this.deoptimizedReturn=!0,this.scope.getReturnExpression().deoptimizePath(Mt),this.context.requestTreeshakingPass();return Ri}return this.scope.getReturnExpression()}hasEffectsOnInteractionAtPath(r,i,t){if(r.length>0||i.type!==Vt)return this.getObjectEntity().hasEffectsOnInteractionAtPath(r,i,t);if(this.async){let{propertyReadSideEffects:s}=this.context.options.treeshake,l=this.scope.getReturnExpression();if(l.hasEffectsOnInteractionAtPath(["then"],Y2,t)||s&&(s==="always"||l.hasEffectsOnInteractionAtPath(["then"],H7,t)))return!0}for(let s of this.params)if(s.hasEffects(t))return!0;return!1}include(r,i){if(!this.deoptimized)this.applyDeoptimizations();this.included=!0;let{brokenFlow:t}=r;r.brokenFlow=D2,this.body.include(r,i),r.brokenFlow=t}includeCallArguments(r,i){this.scope.includeCallArguments(r,i)}initialise(){if(this.scope.addParameterVariables(this.params.map((r)=>r.declare("parameter",Ri)),this.params[this.params.length-1]instanceof i4),this.body instanceof Op)this.body.addImplicitReturnExpressionToScope();else this.scope.addReturnExpression(this.body)}parseNode(r){if(r.body.type===Fhr)this.body=new Op(r.body,this,this.scope.hoistedBodyVarScope);super.parseNode(r)}applyDeoptimizations(){}};t9.prototype.preventChildBlockScope=!0;t4=class t4 extends t9{constructor(){super(...arguments);this.objectEntity=null}createScope(r){this.scope=new x7(r,this.context)}hasEffects(){if(!this.deoptimized)this.applyDeoptimizations();return!1}hasEffectsOnInteractionAtPath(r,i,t){if(super.hasEffectsOnInteractionAtPath(r,i,t))return!0;if(i.type===Vt){let{ignore:s,brokenFlow:l}=t;if(t.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0},this.body.hasEffects(t))return!0;t.ignore=s,t.brokenFlow=l}return!1}include(r,i){super.include(r,i);for(let t of this.params)if(!(t instanceof qe))t.include(r,i)}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;return this.objectEntity=new gs([],xu)}};s4=class s4 extends vi{addExportedVariables(r,i){for(let t of this.properties)if(t.type===xVr)t.value.addExportedVariables(r,i);else t.argument.addExportedVariables(r,i)}declare(r,i){let t=[];for(let s of this.properties)t.push(...s.declare(r,i));return t}deoptimizePath(r){if(r.length===0)for(let i of this.properties)i.deoptimizePath(r)}hasEffectsOnInteractionAtPath(r,i,t){for(let s of this.properties)if(s.hasEffectsOnInteractionAtPath(xi,i,t))return!0;return!1}markDeclarationReached(){for(let r of this.properties)r.markDeclarationReached()}};Xhr=class Xhr extends vi{hasEffects(r){let{deoptimized:i,left:t,right:s}=this;if(!i)this.applyDeoptimizations();return s.hasEffects(r)||t.hasEffectsAsAssignmentTarget(r,this.operator!=="=")}hasEffectsOnInteractionAtPath(r,i,t){return this.right.hasEffectsOnInteractionAtPath(r,i,t)}include(r,i){let{deoptimized:t,left:s,right:l,operator:u}=this;if(!t)this.applyDeoptimizations();if(this.included=!0,i||u!=="="||s.included||s.hasEffectsAsAssignmentTarget(k2(),!1))s.includeAsAssignmentTarget(r,i,u!=="=");l.include(r,i)}initialise(){this.left.setAssignedValue(this.right)}render(r,i,{preventASI:t,renderedParentType:s,renderedSurroundingElement:l}=Fe){let{left:u,right:h,start:c,end:p,parent:w}=this;if(u.included)u.render(r,i),h.render(r,i);else{let P=sf(r.original,ze(r.original,"=",u.end)+1);if(r.remove(c,P),t)i9(r,P,h.start);h.render(r,i,{renderedParentType:s||w.type,renderedSurroundingElement:l||w.type})}if(i.format==="system")if(u instanceof qe){let P=u.variable,M=i.exportNamesByVariable.get(P);if(M){if(M.length===1)e4(P,c,p,r,i);else Khr(P,c,p,w.type!==oa,r,i);return}}else{let P=[];if(u.addExportedVariables(P,i.exportNamesByVariable),P.length>0){pIr(P,c,p,l===oa,r,i);return}}if(u.included&&u instanceof s4&&(l===oa||l===Ihr))r.appendRight(c,"("),r.prependLeft(p,")")}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(xi),this.right.deoptimizePath(Mt),this.context.requestTreeshakingPass()}};Dhr=class Dhr extends vi{addExportedVariables(r,i){this.left.addExportedVariables(r,i)}declare(r,i){return this.left.declare(r,i)}deoptimizePath(r){r.length===0&&this.left.deoptimizePath(r)}hasEffectsOnInteractionAtPath(r,i,t){return r.length>0||this.left.hasEffectsOnInteractionAtPath(xi,i,t)}markDeclarationReached(){this.left.markDeclarationReached()}render(r,i,{isShorthandProperty:t}=Fe){this.left.render(r,i,{isShorthandProperty:t}),this.right.render(r,i)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(xi),this.right.deoptimizePath(Mt),this.context.requestTreeshakingPass()}};khr=class khr extends Wa{constructor(r){super("arguments",null,Ri,r)}hasEffectsOnInteractionAtPath(r,{type:i}){return i!==_t||r.length>1}};a4=class a4 extends Wa{constructor(r){super("this",null,null,r);this.deoptimizedPaths=[],this.entitiesToBeDeoptimized=new Set,this.thisDeoptimizationList=[],this.thisDeoptimizations=new M2}addEntityToBeDeoptimized(r){for(let i of this.deoptimizedPaths)r.deoptimizePath(i);for(let{interaction:i,path:t}of this.thisDeoptimizationList)r.deoptimizeThisOnInteractionAtPath(i,t,je);this.entitiesToBeDeoptimized.add(r)}deoptimizePath(r){if(r.length===0||this.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(r,this))return;this.deoptimizedPaths.push(r);for(let i of this.entitiesToBeDeoptimized)i.deoptimizePath(r)}deoptimizeThisOnInteractionAtPath(r,i){let t={interaction:r,path:i};if(!this.thisDeoptimizations.trackEntityAtPathAndGetIfTracked(i,r.type,r.thisArg)){for(let s of this.entitiesToBeDeoptimized)s.deoptimizeThisOnInteractionAtPath(r,i,je);this.thisDeoptimizationList.push(t)}}hasEffectsOnInteractionAtPath(r,i,t){return this.getInit(t).hasEffectsOnInteractionAtPath(r,i,t)||super.hasEffectsOnInteractionAtPath(r,i,t)}getInit(r){return r.replacedVariableInits.get(this)||Ri}};_hr=class _hr extends x7{constructor(r,i){super(r,i);this.variables.set("arguments",this.argumentsVariable=new khr(i)),this.variables.set("this",this.thisVariable=new a4(i))}findLexicalBoundary(){return this}includeCallArguments(r,i){if(super.includeCallArguments(r,i),this.argumentsVariable.included){for(let t of i)if(!t.included)t.include(r,!1)}}};e9=class e9 extends t9{constructor(){super(...arguments);this.objectEntity=null}createScope(r){this.scope=new _hr(r,this.context)}deoptimizeThisOnInteractionAtPath(r,i,t){if(super.deoptimizeThisOnInteractionAtPath(r,i,t),r.type===Vt&&i.length===0)this.scope.thisVariable.addEntityToBeDeoptimized(r.thisArg)}hasEffects(r){var i;if(!this.deoptimized)this.applyDeoptimizations();return!!((i=this.id)===null||i===void 0?void 0:i.hasEffects(r))}hasEffectsOnInteractionAtPath(r,i,t){if(super.hasEffectsOnInteractionAtPath(r,i,t))return!0;if(i.type===Vt){let s=t.replacedVariableInits.get(this.scope.thisVariable);t.replacedVariableInits.set(this.scope.thisVariable,i.withNew?new gs(Object.create(null),xu):Ri);let{brokenFlow:l,ignore:u}=t;if(t.ignore={breaks:!1,continues:!1,labels:new Set,returnYield:!0},this.body.hasEffects(t))return!0;if(t.brokenFlow=l,s)t.replacedVariableInits.set(this.scope.thisVariable,s);else t.replacedVariableInits.delete(this.scope.thisVariable);t.ignore=u}return!1}include(r,i){var t;super.include(r,i),(t=this.id)===null||t===void 0||t.include();let s=this.scope.argumentsVariable.included;for(let l of this.params)if(!(l instanceof qe)||s)l.include(r,i)}initialise(){var r;super.initialise(),(r=this.id)===null||r===void 0||r.declare("function",this)}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;return this.objectEntity=new gs([{key:"prototype",kind:"init",property:new gs([],xu)}],xu)}};xhr=class xhr extends vi{hasEffects(){if(!this.deoptimized)this.applyDeoptimizations();return!0}include(r,i){if(!this.deoptimized)this.applyDeoptimizations();if(!this.included){this.included=!0;r:if(!this.context.usesTopLevelAwait){let t=this.parent;do if(t instanceof e9||t instanceof t4)break r;while(t=t.parent);this.context.usesTopLevelAwait=!0}}this.argument.include(r,i)}};oIr={"!=":(r,i)=>r!=i,"!==":(r,i)=>r!==i,"%":(r,i)=>r%i,"&":(r,i)=>r&i,"*":(r,i)=>r*i,"**":(r,i)=>r**i,"+":(r,i)=>r+i,"-":(r,i)=>r-i,"/":(r,i)=>r/i,"<":(r,i)=>r<i,"<<":(r,i)=>r<<i,"<=":(r,i)=>r<=i,"==":(r,i)=>r==i,"===":(r,i)=>r===i,">":(r,i)=>r>i,">=":(r,i)=>r>=i,">>":(r,i)=>r>>i,">>>":(r,i)=>r>>>i,"^":(r,i)=>r^i,"|":(r,i)=>r|i};r1r=class r1r extends vi{deoptimizeCache(){}getLiteralValueAtPath(r,i,t){if(r.length>0)return ie;let s=this.left.getLiteralValueAtPath(xi,i,t);if(typeof s==="symbol")return ie;let l=this.right.getLiteralValueAtPath(xi,i,t);if(typeof l==="symbol")return ie;let u=oIr[this.operator];if(!u)return ie;return u(s,l)}hasEffects(r){if(this.operator==="+"&&this.parent instanceof Qp&&this.left.getLiteralValueAtPath(xi,je,this)==="")return!0;return super.hasEffects(r)}hasEffectsOnInteractionAtPath(r,{type:i}){return i!==_t||r.length>1}render(r,i,{renderedSurroundingElement:t}=Fe){this.left.render(r,i,{renderedSurroundingElement:t}),this.right.render(r,i)}};i1r=class i1r extends vi{hasEffects(r){if(this.label){if(!r.ignore.labels.has(this.label.name))return!0;r.includedLabels.add(this.label.name),r.brokenFlow=ph}else{if(!r.ignore.breaks)return!0;r.brokenFlow=rn}return!1}include(r){if(this.included=!0,this.label)this.label.include(),r.includedLabels.add(this.label.name);r.brokenFlow=this.label?ph:rn}};en=class en extends vi{deoptimizeThisOnInteractionAtPath(){}getLiteralValueAtPath(r){if(r.length>0||this.value===null&&this.context.code.charCodeAt(this.start)!==110||typeof this.value==="bigint"||this.context.code.charCodeAt(this.start)===47)return ie;return this.value}getReturnExpressionWhenCalledAtPath(r){if(r.length!==1)return Ri;return zp(this.members,r[0])}hasEffectsOnInteractionAtPath(r,i,t){switch(i.type){case _t:return r.length>(this.value===null?0:1);case Cl:return!0;case Vt:return r.length!==1||jp(this.members,r[0],i,t)}}initialise(){this.members=YVr(this.value)}parseNode(r){this.value=r.value,this.regex=r.regex,super.parseNode(r)}render(r){if(typeof this.value==="string")r.indentExclusionRanges.push([this.start+1,this.end-1])}};mh=class mh extends vi{constructor(){super(...arguments);this.variable=null,this.assignmentDeoptimized=!1,this.bound=!1,this.expressionsToBeDeoptimized=[],this.replacement=null}bind(){this.bound=!0;let r=e1r(this),i=r&&this.scope.findVariable(r[0].key);if(i&&i.isNamespace){let t=s1r(i,r.slice(1),this.context);if(!t)super.bind();else if(typeof t==="string")this.replacement=t;else this.variable=t,this.scope.addNamespaceMemberAccess(wIr(r),t)}else super.bind()}deoptimizeCache(){let r=this.expressionsToBeDeoptimized;this.expressionsToBeDeoptimized=[],this.propertyKey=Ce,this.object.deoptimizePath(Mt);for(let i of r)i.deoptimizeCache()}deoptimizePath(r){if(r.length===0)this.disallowNamespaceReassignment();if(this.variable)this.variable.deoptimizePath(r);else if(!this.replacement){if(r.length<pp){let i=this.getPropertyKey();this.object.deoptimizePath([i===Ce?A2:i,...r])}}}deoptimizeThisOnInteractionAtPath(r,i,t){if(this.variable)this.variable.deoptimizeThisOnInteractionAtPath(r,i,t);else if(!this.replacement)if(i.length<pp)this.object.deoptimizeThisOnInteractionAtPath(r,[this.getPropertyKey(),...i],t);else r.thisArg.deoptimizePath(Mt)}getLiteralValueAtPath(r,i,t){if(this.variable)return this.variable.getLiteralValueAtPath(r,i,t);if(this.replacement)return ie;if(this.expressionsToBeDeoptimized.push(t),r.length<pp)return this.object.getLiteralValueAtPath([this.getPropertyKey(),...r],i,t);return ie}getReturnExpressionWhenCalledAtPath(r,i,t,s){if(this.variable)return this.variable.getReturnExpressionWhenCalledAtPath(r,i,t,s);if(this.replacement)return Ri;if(this.expressionsToBeDeoptimized.push(s),r.length<pp)return this.object.getReturnExpressionWhenCalledAtPath([this.getPropertyKey(),...r],i,t,s);return Ri}hasEffects(r){if(!this.deoptimized)this.applyDeoptimizations();return this.property.hasEffects(r)||this.object.hasEffects(r)||this.hasAccessEffect(r)}hasEffectsAsAssignmentTarget(r,i){if(i&&!this.deoptimized)this.applyDeoptimizations();if(!this.assignmentDeoptimized)this.applyAssignmentDeoptimization();return this.property.hasEffects(r)||this.object.hasEffects(r)||i&&this.hasAccessEffect(r)||this.hasEffectsOnInteractionAtPath(xi,this.assignmentInteraction,r)}hasEffectsOnInteractionAtPath(r,i,t){if(this.variable)return this.variable.hasEffectsOnInteractionAtPath(r,i,t);if(this.replacement)return!0;if(r.length<pp)return this.object.hasEffectsOnInteractionAtPath([this.getPropertyKey(),...r],i,t);return!0}include(r,i){if(!this.deoptimized)this.applyDeoptimizations();this.includeProperties(r,i)}includeAsAssignmentTarget(r,i,t){if(!this.assignmentDeoptimized)this.applyAssignmentDeoptimization();if(t)this.include(r,i);else this.includeProperties(r,i)}includeCallArguments(r,i){if(this.variable)this.variable.includeCallArguments(r,i);else super.includeCallArguments(r,i)}initialise(){this.propertyKey=bIr(this),this.accessInteraction={thisArg:this.object,type:_t}}render(r,i,{renderedParentType:t,isCalleeOfRenderedParent:s,renderedSurroundingElement:l}=Fe){if(this.variable||this.replacement){let{snippets:{getPropertyAccess:u}}=i,h=this.variable?this.variable.getName(u):this.replacement;if(t&&s)h="0, "+h;r.overwrite(this.start,this.end,h,{contentOnly:!0,storeName:!0})}else{if(t&&s)r.appendRight(this.start,"0, ");this.object.render(r,i,{renderedSurroundingElement:l}),this.property.render(r,i)}}setAssignedValue(r){this.assignmentInteraction={args:[r],thisArg:this.object,type:Cl}}applyDeoptimizations(){this.deoptimized=!0;let{propertyReadSideEffects:r}=this.context.options.treeshake;if(this.bound&&r&&!(this.variable||this.replacement)){let i=this.getPropertyKey();this.object.deoptimizeThisOnInteractionAtPath(this.accessInteraction,[i],je),this.context.requestTreeshakingPass()}}applyAssignmentDeoptimization(){this.assignmentDeoptimized=!0;let{propertyReadSideEffects:r}=this.context.options.treeshake;if(this.bound&&r&&!(this.variable||this.replacement))this.object.deoptimizeThisOnInteractionAtPath(this.assignmentInteraction,[this.getPropertyKey()],je),this.context.requestTreeshakingPass()}disallowNamespaceReassignment(){if(this.object instanceof qe){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=Ce;let r=this.property.getLiteralValueAtPath(xi,je,this);return this.propertyKey=typeof r==="symbol"?Ce:String(r)}return this.propertyKey}hasAccessEffect(r){let{propertyReadSideEffects:i}=this.context.options.treeshake;return!(this.variable||this.replacement)&&i&&(i==="always"||this.object.hasEffectsOnInteractionAtPath([this.getPropertyKey()],this.accessInteraction,r))}includeProperties(r,i){if(!this.included){if(this.included=!0,this.variable)this.context.includeVariableInModule(this.variable)}this.object.include(r,i),this.property.include(r,i)}};l4=class l4 extends vi{constructor(){super(...arguments);this.returnExpression=null,this.deoptimizableDependentExpressions=[],this.expressionsToBeDeoptimized=new Set}deoptimizeCache(){if(this.returnExpression!==Ri){this.returnExpression=Ri;for(let r of this.deoptimizableDependentExpressions)r.deoptimizeCache();for(let r of this.expressionsToBeDeoptimized)r.deoptimizePath(Mt)}}deoptimizePath(r){if(r.length===0||this.context.deoptimizationTracker.trackEntityAtPathAndGetIfTracked(r,this))return;let i=this.getReturnExpression();if(i!==Ri)i.deoptimizePath(r)}deoptimizeThisOnInteractionAtPath(r,i,t){let s=this.getReturnExpression(t);if(s===Ri)r.thisArg.deoptimizePath(Mt);else t.withTrackedEntityAtPath(i,s,()=>{this.expressionsToBeDeoptimized.add(r.thisArg),s.deoptimizeThisOnInteractionAtPath(r,i,t)},void 0)}getLiteralValueAtPath(r,i,t){let s=this.getReturnExpression(i);if(s===Ri)return ie;return i.withTrackedEntityAtPath(r,s,()=>{return this.deoptimizableDependentExpressions.push(t),s.getLiteralValueAtPath(r,i,t)},ie)}getReturnExpressionWhenCalledAtPath(r,i,t,s){let l=this.getReturnExpression(t);if(this.returnExpression===Ri)return Ri;return t.withTrackedEntityAtPath(r,l,()=>{return this.deoptimizableDependentExpressions.push(s),l.getReturnExpressionWhenCalledAtPath(r,i,t,s)},Ri)}hasEffectsOnInteractionAtPath(r,i,t){let{type:s}=i;if(s===Vt){if((i.withNew?t.instantiated:t.called).trackEntityAtPathAndGetIfTracked(r,i.args,this))return!1}else if((s===Cl?t.assigned:t.accessed).trackEntityAtPathAndGetIfTracked(r,this))return!1;return this.getReturnExpression().hasEffectsOnInteractionAtPath(r,i,t)}};a1r=class a1r extends l4{bind(){if(super.bind(),this.callee instanceof qe){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 mh&&!this.callee.variable?this.callee.object:null,type:Vt,withNew:!1}}hasEffects(r){try{for(let i of this.arguments)if(i.hasEffects(r))return!0;if(this.context.options.treeshake.annotations&&this.annotations)return!1;return this.callee.hasEffects(r)||this.callee.hasEffectsOnInteractionAtPath(xi,this.interaction,r)}finally{if(!this.deoptimized)this.applyDeoptimizations()}}include(r,i){if(!this.deoptimized)this.applyDeoptimizations();if(i){if(super.include(r,i),i===zhr&&this.callee instanceof qe&&this.callee.variable)this.callee.variable.markCalledFromTryStatement()}else this.included=!0,this.callee.include(r,!1);this.callee.includeCallArguments(r,this.arguments)}render(r,i,{renderedSurroundingElement:t}=Fe){this.callee.render(r,i,{isCalleeOfRenderedParent:!0,renderedSurroundingElement:t}),t1r(r,i,this)}applyDeoptimizations(){if(this.deoptimized=!0,this.interaction.thisArg)this.callee.deoptimizeThisOnInteractionAtPath(this.interaction,xi,je);for(let r of this.arguments)r.deoptimizePath(Mt);this.context.requestTreeshakingPass()}getReturnExpression(r=je){if(this.returnExpression===null)return this.returnExpression=Ri,this.returnExpression=this.callee.getReturnExpressionWhenCalledAtPath(xi,this.interaction,r,this);return this.returnExpression}};l1r=class l1r extends _7{addDeclaration(r,i,t,s){let l=this.variables.get(r.name);if(l)return this.parent.addDeclaration(r,i,Np,s),l.addDeclaration(r,t),l;return this.parent.addDeclaration(r,i,t,s)}};u1r=class u1r extends vi{createScope(r){this.scope=new l1r(r,this.context)}parseNode(r){let{param:i}=r;if(i)this.param=new(this.context.getNodeConstructor(i.type))(i,this,this.scope),this.param.declare("parameter",Ri);super.parseNode(r)}};f1r=class f1r extends vi{};h1r=class h1r extends Ya{constructor(r,i,t){super(r);this.variables.set("this",this.thisVariable=new Wa("this",null,i,t)),this.instanceScope=new Ya(this),this.instanceScope.variables.set("this",new a4(t))}findLexicalBoundary(){return this}};n1r=class n1r extends vi{createScope(r){this.scope=new h1r(r,this.parent,this.context)}include(r,i){this.included=!0,this.context.includeVariableInModule(this.scope.thisVariable);for(let t of this.body)t.include(r,i)}parseNode(r){let i=this.body=[];for(let t of r.body)i.push(new(this.context.getNodeConstructor(t.type))(t,this,t.static?this.scope:this.scope.instanceScope));super.parseNode(r)}applyDeoptimizations(){}};u4=class u4 extends vi{constructor(){super(...arguments);this.accessedValue=null}deoptimizeCache(){}deoptimizePath(r){this.getAccessedValue().deoptimizePath(r)}deoptimizeThisOnInteractionAtPath(r,i,t){if(r.type===_t&&this.kind==="get"&&i.length===0)return this.value.deoptimizeThisOnInteractionAtPath({args:n7,thisArg:r.thisArg,type:Vt,withNew:!1},xi,t);if(r.type===Cl&&this.kind==="set"&&i.length===0)return this.value.deoptimizeThisOnInteractionAtPath({args:r.args,thisArg:r.thisArg,type:Vt,withNew:!1},xi,t);this.getAccessedValue().deoptimizeThisOnInteractionAtPath(r,i,t)}getLiteralValueAtPath(r,i,t){return this.getAccessedValue().getLiteralValueAtPath(r,i,t)}getReturnExpressionWhenCalledAtPath(r,i,t,s){return this.getAccessedValue().getReturnExpressionWhenCalledAtPath(r,i,t,s)}hasEffects(r){return this.key.hasEffects(r)}hasEffectsOnInteractionAtPath(r,i,t){if(this.kind==="get"&&i.type===_t&&r.length===0)return this.value.hasEffectsOnInteractionAtPath(xi,{args:n7,thisArg:i.thisArg,type:Vt,withNew:!1},t);if(this.kind==="set"&&i.type===Cl)return this.value.hasEffectsOnInteractionAtPath(xi,{args:i.args,thisArg:i.thisArg,type:Vt,withNew:!1},t);return this.getAccessedValue().hasEffectsOnInteractionAtPath(r,i,t)}applyDeoptimizations(){}getAccessedValue(){if(this.accessedValue===null)if(this.kind==="get")return this.accessedValue=Ri,this.accessedValue=this.value.getReturnExpressionWhenCalledAtPath(xi,Y2,je,this);else return this.accessedValue=this.value;return this.accessedValue}};I2=class I2 extends u4{applyDeoptimizations(){}};c1r=class c1r extends Qs{constructor(r,i){super();this.object=r,this.key=i}deoptimizePath(r){this.object.deoptimizePath([this.key,...r])}deoptimizeThisOnInteractionAtPath(r,i,t){this.object.deoptimizeThisOnInteractionAtPath(r,[this.key,...i],t)}getLiteralValueAtPath(r,i,t){return this.object.getLiteralValueAtPath([this.key,...r],i,t)}getReturnExpressionWhenCalledAtPath(r,i,t,s){return this.object.getReturnExpressionWhenCalledAtPath([this.key,...r],i,t,s)}hasEffectsOnInteractionAtPath(r,i,t){return this.object.hasEffectsOnInteractionAtPath([this.key,...r],i,t)}};f4=class f4 extends vi{constructor(){super(...arguments);this.objectEntity=null}createScope(r){this.scope=new Ya(r)}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(r){this.getObjectEntity().deoptimizePath(r)}deoptimizeThisOnInteractionAtPath(r,i,t){this.getObjectEntity().deoptimizeThisOnInteractionAtPath(r,i,t)}getLiteralValueAtPath(r,i,t){return this.getObjectEntity().getLiteralValueAtPath(r,i,t)}getReturnExpressionWhenCalledAtPath(r,i,t,s){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(r,i,t,s)}hasEffects(r){var i,t;if(!this.deoptimized)this.applyDeoptimizations();let s=((i=this.superClass)===null||i===void 0?void 0:i.hasEffects(r))||this.body.hasEffects(r);return(t=this.id)===null||t===void 0||t.markDeclarationReached(),s||super.hasEffects(r)}hasEffectsOnInteractionAtPath(r,i,t){var s;if(i.type===Vt&&r.length===0)return!i.withNew||(this.classConstructor!==null?this.classConstructor.hasEffectsOnInteractionAtPath(r,i,t):(s=this.superClass)===null||s===void 0?void 0:s.hasEffectsOnInteractionAtPath(r,i,t))||!1;else return this.getObjectEntity().hasEffectsOnInteractionAtPath(r,i,t)}include(r,i){var t;if(!this.deoptimized)this.applyDeoptimizations();if(this.included=!0,(t=this.superClass)===null||t===void 0||t.include(r,i),this.body.include(r,i),this.id)this.id.markDeclarationReached(),this.id.include()}initialise(){var r;(r=this.id)===null||r===void 0||r.declare("class",this);for(let i of this.body.body)if(i instanceof I2&&i.kind==="constructor"){this.classConstructor=i;return}this.classConstructor=null}applyDeoptimizations(){this.deoptimized=!0;for(let r of this.body.body)if(!(r.static||r instanceof I2&&r.kind==="constructor"))r.deoptimizePath(Mt);this.context.requestTreeshakingPass()}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let r=[],i=[];for(let t of this.body.body){let s=t.static?r:i,l=t.kind;if(s===i&&!l)continue;let u=l==="set"||l==="get"?l:"init",h;if(t.computed){let c=t.key.getLiteralValueAtPath(xi,je,this);if(typeof c==="symbol"){s.push({key:Ce,kind:u,property:t});continue}else h=String(c)}else h=t.key instanceof qe?t.key.name:String(t.key.value);s.push({key:h,kind:u,property:t})}return r.unshift({key:"prototype",kind:"init",property:new gs(i,this.superClass?new c1r(this.superClass,"prototype"):xu)}),this.objectEntity=new gs(r,this.superClass||xu)}};Lp=class Lp extends f4{initialise(){if(super.initialise(),this.id!==null)this.id.variable.isId=!0}parseNode(r){if(r.id!==null)this.id=new qe(r.id,this,this.scope.parent);super.parseNode(r)}render(r,i){let{exportNamesByVariable:t,format:s,snippets:{_:l}}=i;if(s==="system"&&this.id&&t.has(this.id.variable))r.appendLeft(this.end,`${l}${bh([this.id.variable],i)};`);super.render(r,i)}};y1r=class y1r extends f4{render(r,i,{renderedSurroundingElement:t}=Fe){if(super.render(r,i),t===oa)r.appendRight(this.start,"("),r.prependLeft(this.end,")")}};s9=class s9 extends Qs{constructor(r){super();this.expressions=r,this.included=!1}deoptimizePath(r){for(let i of this.expressions)i.deoptimizePath(r)}getReturnExpressionWhenCalledAtPath(r,i,t,s){return new s9(this.expressions.map((l)=>l.getReturnExpressionWhenCalledAtPath(r,i,t,s)))}hasEffectsOnInteractionAtPath(r,i,t){for(let s of this.expressions)if(s.hasEffectsOnInteractionAtPath(r,i,t))return!0;return!1}};v1r=class v1r extends vi{constructor(){super(...arguments);this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.usedBranch=null}deoptimizeCache(){if(this.usedBranch!==null){let r=this.usedBranch===this.consequent?this.alternate:this.consequent;this.usedBranch=null,r.deoptimizePath(Mt);for(let i of this.expressionsToBeDeoptimized)i.deoptimizeCache()}}deoptimizePath(r){let i=this.getUsedBranch();if(!i)this.consequent.deoptimizePath(r),this.alternate.deoptimizePath(r);else i.deoptimizePath(r)}deoptimizeThisOnInteractionAtPath(r,i,t){this.consequent.deoptimizeThisOnInteractionAtPath(r,i,t),this.alternate.deoptimizeThisOnInteractionAtPath(r,i,t)}getLiteralValueAtPath(r,i,t){let s=this.getUsedBranch();if(!s)return ie;return this.expressionsToBeDeoptimized.push(t),s.getLiteralValueAtPath(r,i,t)}getReturnExpressionWhenCalledAtPath(r,i,t,s){let l=this.getUsedBranch();if(!l)return new s9([this.consequent.getReturnExpressionWhenCalledAtPath(r,i,t,s),this.alternate.getReturnExpressionWhenCalledAtPath(r,i,t,s)]);return this.expressionsToBeDeoptimized.push(s),l.getReturnExpressionWhenCalledAtPath(r,i,t,s)}hasEffects(r){if(this.test.hasEffects(r))return!0;let i=this.getUsedBranch();if(!i)return this.consequent.hasEffects(r)||this.alternate.hasEffects(r);return i.hasEffects(r)}hasEffectsOnInteractionAtPath(r,i,t){let s=this.getUsedBranch();if(!s)return this.consequent.hasEffectsOnInteractionAtPath(r,i,t)||this.alternate.hasEffectsOnInteractionAtPath(r,i,t);return s.hasEffectsOnInteractionAtPath(r,i,t)}include(r,i){this.included=!0;let t=this.getUsedBranch();if(i||this.test.shouldBeIncluded(r)||t===null)this.test.include(r,i),this.consequent.include(r,i),this.alternate.include(r,i);else t.include(r,i)}includeCallArguments(r,i){let t=this.getUsedBranch();if(!t)this.consequent.includeCallArguments(r,i),this.alternate.includeCallArguments(r,i);else t.includeCallArguments(r,i)}render(r,i,{isCalleeOfRenderedParent:t,preventASI:s,renderedParentType:l,renderedSurroundingElement:u}=Fe){let h=this.getUsedBranch();if(!this.test.included){let c=ze(r.original,":",this.consequent.end),p=sf(r.original,(this.consequent.included?ze(r.original,"?",this.test.end):c)+1);if(s)i9(r,p,h.start);if(r.remove(this.start,p),this.consequent.included)r.remove(c,this.end);Whr(this,r),h.render(r,i,{isCalleeOfRenderedParent:t,preventASI:!0,renderedParentType:l||this.parent.type,renderedSurroundingElement:u||this.parent.type})}else this.test.render(r,i,{renderedSurroundingElement:u}),this.consequent.render(r,i),this.alternate.render(r,i)}getUsedBranch(){if(this.isBranchResolutionAnalysed)return this.usedBranch;this.isBranchResolutionAnalysed=!0;let r=this.test.getLiteralValueAtPath(xi,je,this);return typeof r==="symbol"?null:this.usedBranch=r?this.consequent:this.alternate}};p1r=class p1r extends vi{hasEffects(r){if(this.label){if(!r.ignore.labels.has(this.label.name))return!0;r.includedLabels.add(this.label.name),r.brokenFlow=ph}else{if(!r.ignore.continues)return!0;r.brokenFlow=rn}return!1}include(r){if(this.included=!0,this.label)this.label.include(),r.includedLabels.add(this.label.name);r.brokenFlow=this.label?ph:rn}};m1r=class m1r extends vi{hasEffects(r){if(this.test.hasEffects(r))return!0;let{brokenFlow:i,ignore:{breaks:t,continues:s}}=r;if(r.ignore.breaks=!0,r.ignore.continues=!0,this.body.hasEffects(r))return!0;return r.ignore.breaks=t,r.ignore.continues=s,r.brokenFlow=i,!1}include(r,i){this.included=!0,this.test.include(r,i);let{brokenFlow:t}=r;this.body.include(r,i,{asSingleStatement:!0}),r.brokenFlow=t}};o1r=class o1r extends vi{hasEffects(){return!1}};a9=class a9 extends vi{hasEffects(){return!1}initialise(){this.context.addExport(this)}render(r,i,t){r.remove(t.start,t.end)}applyDeoptimizations(){}};a9.prototype.needsBoundaries=!0;sn=class sn extends e9{initialise(){if(super.initialise(),this.id!==null)this.id.variable.isId=!0}parseNode(r){if(r.id!==null)this.id=new qe(r.id,this,this.scope.parent);super.parseNode(r)}};Jp=class Jp extends vi{include(r,i){if(super.include(r,i),i)this.context.includeVariableInModule(this.variable)}initialise(){let r=this.declaration;this.declarationName=r.id&&r.id.name||this.declaration.name,this.variable=this.scope.addExportDefaultDeclaration(this.declarationName||this.context.getModuleName(),this,this.context),this.context.addExport(this)}render(r,i,t){let{start:s,end:l}=t,u=CIr(r.original,this.start);if(this.declaration instanceof sn)this.renderNamedDeclaration(r,u,"function","(",this.declaration.id===null,i);else if(this.declaration instanceof Lp)this.renderNamedDeclaration(r,u,"class","{",this.declaration.id===null,i);else if(this.variable.getOriginalVariable()!==this.variable){r4(this,r,s,l);return}else if(this.variable.included)this.renderVariableDeclaration(r,u,i);else{if(r.remove(this.start,u),this.declaration.render(r,i,{renderedSurroundingElement:oa}),r.original[this.end-1]!==";")r.appendLeft(this.end,";");return}this.declaration.render(r,i)}applyDeoptimizations(){}renderNamedDeclaration(r,i,t,s,l,u){let{exportNamesByVariable:h,format:c,snippets:{getPropertyAccess:p}}=u,w=this.variable.getName(p);if(r.remove(this.start,i),l)r.appendLeft(qIr(r.original,t,s,i),` ${w}`);if(c==="system"&&this.declaration instanceof Lp&&h.has(this.variable))r.appendLeft(this.end,` ${bh([this.variable],u)};`)}renderVariableDeclaration(r,i,{format:t,exportNamesByVariable:s,snippets:{cnst:l,getPropertyAccess:u}}){let h=r.original.charCodeAt(this.end-1)===59,c=t==="system"&&s.get(this.variable);if(c)r.overwrite(this.start,i,`${l} ${this.variable.getName(u)} = exports('${c[0]}', `),r.appendRight(h?this.end-1:this.end,")"+(h?"":";"));else if(r.overwrite(this.start,i,`${l} ${this.variable.getName(u)} = `),!h)r.appendLeft(this.end,";")}};Jp.prototype.needsBoundaries=!0;h4=class h4 extends vi{bind(){var r;(r=this.declaration)===null||r===void 0||r.bind()}hasEffects(r){var i;return!!((i=this.declaration)===null||i===void 0?void 0:i.hasEffects(r))}initialise(){this.context.addExport(this)}render(r,i,t){let{start:s,end:l}=t;if(this.declaration===null)r.remove(s,l);else r.remove(this.start,this.declaration.start),this.declaration.render(r,i,{end:l,start:s})}applyDeoptimizations(){}};h4.prototype.needsBoundaries=!0;b1r=class b1r extends vi{applyDeoptimizations(){}};d1r=class d1r extends vi{createScope(r){this.scope=new uf(r)}hasEffects(r){let{deoptimized:i,left:t,right:s}=this;if(!i)this.applyDeoptimizations();if(t.hasEffectsAsAssignmentTarget(r,!1)||s.hasEffects(r))return!0;let{brokenFlow:l,ignore:{breaks:u,continues:h}}=r;if(r.ignore.breaks=!0,r.ignore.continues=!0,this.body.hasEffects(r))return!0;return r.ignore.breaks=u,r.ignore.continues=h,r.brokenFlow=l,!1}include(r,i){let{body:t,deoptimized:s,left:l,right:u}=this;if(!s)this.applyDeoptimizations();this.included=!0,l.includeAsAssignmentTarget(r,i||!0,!1),u.include(r,i);let{brokenFlow:h}=r;t.include(r,i,{asSingleStatement:!0}),r.brokenFlow=h}initialise(){this.left.setAssignedValue(Ri)}render(r,i){if(this.left.render(r,i,yh),this.right.render(r,i,yh),r.original.charCodeAt(this.right.start-1)===110)r.prependLeft(this.right.start," ");this.body.render(r,i)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(xi),this.context.requestTreeshakingPass()}};w1r=class w1r extends vi{createScope(r){this.scope=new uf(r)}hasEffects(){if(!this.deoptimized)this.applyDeoptimizations();return!0}include(r,i){let{body:t,deoptimized:s,left:l,right:u}=this;if(!s)this.applyDeoptimizations();this.included=!0,l.includeAsAssignmentTarget(r,i||!0,!1),u.include(r,i);let{brokenFlow:h}=r;t.include(r,i,{asSingleStatement:!0}),r.brokenFlow=h}initialise(){this.left.setAssignedValue(Ri)}render(r,i){if(this.left.render(r,i,yh),this.right.render(r,i,yh),r.original.charCodeAt(this.right.start-1)===102)r.prependLeft(this.right.start," ");this.body.render(r,i)}applyDeoptimizations(){this.deoptimized=!0,this.left.deoptimizePath(xi),this.context.requestTreeshakingPass()}};C1r=class C1r extends vi{createScope(r){this.scope=new uf(r)}hasEffects(r){var i,t,s;if(((i=this.init)===null||i===void 0?void 0:i.hasEffects(r))||((t=this.test)===null||t===void 0?void 0:t.hasEffects(r))||((s=this.update)===null||s===void 0?void 0:s.hasEffects(r)))return!0;let{brokenFlow:l,ignore:{breaks:u,continues:h}}=r;if(r.ignore.breaks=!0,r.ignore.continues=!0,this.body.hasEffects(r))return!0;return r.ignore.breaks=u,r.ignore.continues=h,r.brokenFlow=l,!1}include(r,i){var t,s,l;this.included=!0,(t=this.init)===null||t===void 0||t.include(r,i,{asSingleStatement:!0}),(s=this.test)===null||s===void 0||s.include(r,i);let{brokenFlow:u}=r;(l=this.update)===null||l===void 0||l.include(r,i),this.body.include(r,i,{asSingleStatement:!0}),r.brokenFlow=u}render(r,i){var t,s,l;(t=this.init)===null||t===void 0||t.render(r,i,yh),(s=this.test)===null||s===void 0||s.render(r,i,yh),(l=this.update)===null||l===void 0||l.render(r,i,yh),this.body.render(r,i)}};q1r=class q1r extends e9{render(r,i,{renderedSurroundingElement:t}=Fe){if(super.render(r,i),t===oa)r.appendRight(this.start,"("),r.prependLeft(this.end,")")}};w7=class w7 extends uf{constructor(){super(...arguments);this.hoistedDeclarations=[]}addDeclaration(r,i,t,s){return this.hoistedDeclarations.push(r),super.addDeclaration(r,i,t,s)}};jfr=Symbol("unset");n4=class n4 extends vi{constructor(){super(...arguments);this.testValue=jfr}deoptimizeCache(){this.testValue=ie}hasEffects(r){var i;if(this.test.hasEffects(r))return!0;let t=this.getTestValue();if(typeof t==="symbol"){let{brokenFlow:s}=r;if(this.consequent.hasEffects(r))return!0;let l=r.brokenFlow;if(r.brokenFlow=s,this.alternate===null)return!1;if(this.alternate.hasEffects(r))return!0;return r.brokenFlow=r.brokenFlow<l?r.brokenFlow:l,!1}return t?this.consequent.hasEffects(r):!!((i=this.alternate)===null||i===void 0?void 0:i.hasEffects(r))}include(r,i){if(this.included=!0,i)this.includeRecursively(i,r);else{let t=this.getTestValue();if(typeof t==="symbol")this.includeUnknownTest(r);else this.includeKnownTest(r,t)}}parseNode(r){if(this.consequentScope=new w7(this.scope),this.consequent=new(this.context.getNodeConstructor(r.consequent.type))(r.consequent,this,this.consequentScope),r.alternate)this.alternateScope=new w7(this.scope),this.alternate=new(this.context.getNodeConstructor(r.alternate.type))(r.alternate,this,this.alternateScope);super.parseNode(r)}render(r,i){let{snippets:{getPropertyAccess:t}}=i,s=this.getTestValue(),l=[],u=this.test.included,h=!this.context.options.treeshake;if(u)this.test.render(r,i);else r.remove(this.start,this.consequent.start);if(this.consequent.included&&(h||typeof s==="symbol"||s))this.consequent.render(r,i);else r.overwrite(this.consequent.start,this.consequent.end,u?";":""),l.push(...this.consequentScope.hoistedDeclarations);if(this.alternate)if(this.alternate.included&&(h||typeof s==="symbol"||!s)){if(u){if(r.original.charCodeAt(this.alternate.start-1)===101)r.prependLeft(this.alternate.start," ")}else r.remove(this.consequent.end,this.alternate.start);this.alternate.render(r,i)}else{if(u&&this.shouldKeepAlternateBranch())r.overwrite(this.alternate.start,this.end,";");else r.remove(this.consequent.end,this.end);l.push(...this.alternateScope.hoistedDeclarations)}this.renderHoistedDeclarations(l,r,t)}applyDeoptimizations(){}getTestValue(){if(this.testValue===jfr)return this.testValue=this.test.getLiteralValueAtPath(xi,je,this);return this.testValue}includeKnownTest(r,i){var t;if(this.test.shouldBeIncluded(r))this.test.include(r,!1);if(i&&this.consequent.shouldBeIncluded(r))this.consequent.include(r,!1,{asSingleStatement:!0});if(!i&&((t=this.alternate)===null||t===void 0?void 0:t.shouldBeIncluded(r)))this.alternate.include(r,!1,{asSingleStatement:!0})}includeRecursively(r,i){var t;this.test.include(i,r),this.consequent.include(i,r),(t=this.alternate)===null||t===void 0||t.include(i,r)}includeUnknownTest(r){var i;this.test.include(r,!1);let{brokenFlow:t}=r,s=D2;if(this.consequent.shouldBeIncluded(r))this.consequent.include(r,!1,{asSingleStatement:!0}),s=r.brokenFlow,r.brokenFlow=t;if((i=this.alternate)===null||i===void 0?void 0:i.shouldBeIncluded(r))this.alternate.include(r,!1,{asSingleStatement:!0}),r.brokenFlow=r.brokenFlow<s?r.brokenFlow:s}renderHoistedDeclarations(r,i,t){let s=[...new Set(r.map((l)=>{let u=l.variable;return u.included?u.getName(t):""}))].filter(Boolean).join(", ");if(s){let l=this.parent.type,u=l!==L2&&l!==Fhr;if(i.prependRight(this.start,`${u?"{ ":""}var ${s}; `),u)i.appendLeft(this.end," }")}}shouldKeepAlternateBranch(){let r=this.parent;do{if(r instanceof n4&&r.alternate)return!0;if(r instanceof Op)return!1;r=r.parent}while(r);return!1}};c4=class c4 extends vi{bind(){}hasEffects(){return!1}initialise(){this.context.addImport(this)}render(r,i,t){r.remove(t.start,t.end)}applyDeoptimizations(){}};c4.prototype.needsBoundaries=!0;P1r=class P1r extends vi{applyDeoptimizations(){}};Yp={auto:F2,default:null,defaultOnly:null,esModule:null,false:null,true:C7},Wp={auto:qp,default:bp,defaultOnly:Ep,esModule:null,false:null,true:qp},$1r={[C7](r,i,t){let{_:s,getDirectReturnFunction:l,n:u}=i,[h,c]=l(["e"],{functionReturn:!0,lineBreakIndent:null,name:C7});return`${h}e${s}&&${s}typeof e${s}===${s}'object'${s}&&${s}'default'${s}in e${s}?${s}${t?zfr(i):Zfr(i)}${c}${u}${u}`},[F2](r,i,t){let{_:s,getDirectReturnFunction:l,n:u}=i,[h,c]=l(["e"],{functionReturn:!0,lineBreakIndent:null,name:F2});return`${h}e${s}&&${s}e.__esModule${s}?${s}${t?zfr(i):Zfr(i)}${c}${u}${u}`},[Ep](r,i,t,s,l){let{getDirectReturnFunction:u,getObject:h,n:c}=i,[p,w]=u(["e"],{functionReturn:!0,lineBreakIndent:null,name:Ep});return`${p}${q7(s,Jfr(l,h([["__proto__","null"],["default","e"]],{lineBreakIndent:null}),i))}${w}${c}${c}`},[bp](r,i,t,s,l){let{_:u,n:h}=i;return`function ${bp}(e)${u}{${h}`+Qfr(r,r,i,t,s,l)+`}${h}${h}`},[qp](r,i,t,s,l,u){let{_:h,getDirectReturnFunction:c,n:p}=i;if(u.has(bp)){let[w,P]=c(["e"],{functionReturn:!0,lineBreakIndent:null,name:qp});return`${w}e${h}&&${h}e.__esModule${h}?${h}e${h}:${h}${bp}(e)${P}${p}${p}`}return`function ${qp}(e)${h}{${p}${r}if${h}(e${h}&&${h}e.__esModule)${h}return e;${p}`+Qfr(r,r,i,t,s,l)+`}${p}${p}`},[B2](r,i,t,s,l){let{_:u,cnst:h,n:c}=i,p=h==="var"&&t;return`function ${B2}(n, m)${u}{${c}${r}${gIr(`{${c}${r}${r}${r}if${u}(k${u}!==${u}'default'${u}&&${u}!(k in n))${u}{${c}`+(t?p?g1r:AIr:R1r)(r,r+r+r+r,i)+`${r}${r}${r}}${c}${r}${r}}`,p,r,i)}${c}${r}return ${q7(s,Jfr(l,"n",i))};${c}}${c}${c}`}},P7=Object.keys($1r);A1r=class A1r extends vi{constructor(){super(...arguments);this.inlineNamespace=null,this.mechanism=null,this.resolution=null}hasEffects(){return!0}include(r,i){if(!this.included)this.included=!0,this.context.includeDynamicImport(this),this.scope.addAccessedDynamicImport(this);this.source.include(r,i)}initialise(){this.context.addDynamicImport(this)}render(r,i){if(this.inlineNamespace){let{snippets:{getDirectReturnFunction:t,getPropertyAccess:s}}=i,[l,u]=t([],{functionReturn:!0,lineBreakIndent:null,name:null});r.overwrite(this.start,this.end,`Promise.resolve().then(${l}${this.inlineNamespace.getName(s)}${u})`,{contentOnly:!0});return}if(this.mechanism)r.overwrite(this.start,ze(r.original,"(",this.start+6)+1,this.mechanism.left,{contentOnly:!0}),r.overwrite(this.end-1,this.end,this.mechanism.right,{contentOnly:!0});this.source.render(r,i)}renderFinalResolution(r,i,t,{getDirectReturnFunction:s}){if(r.overwrite(this.source.start,this.source.end,i),t){let[l,u]=s(["n"],{functionReturn:!0,lineBreakIndent:null,name:null});r.prependLeft(this.end,`.then(${l}n.${t}${u})`)}}setExternalResolution(r,i,t,s,l,u){let{format:h}=t;this.inlineNamespace=null,this.resolution=i;let c=[...MIr[h]||[]],p;if({helper:p,mechanism:this.mechanism}=this.getDynamicImportMechanismAndHelper(i,r,t,s,l),p)c.push(p);if(c.length>0)this.scope.addAccessedGlobals(c,u)}setInternalResolution(r){this.inlineNamespace=r}applyDeoptimizations(){}getDynamicImportMechanismAndHelper(r,i,{compact:t,dynamicImportFunction:s,format:l,generatedCode:{arrowFunctions:u},interop:h},{_:c,getDirectReturnFunction:p,getDirectReturnIifeLeft:w},P){let M=P.hookFirstSync("renderDynamicImport",[{customResolution:typeof this.resolution==="string"?this.resolution:null,format:l,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(l){case"cjs":{let o=Yfr(r,i,h),L="require(",I=")";if(o)L=`/*#__PURE__*/${o}(${L}`,I+=")";let[j,H]=p([],{functionReturn:!0,lineBreakIndent:null,name:null});if(L=`Promise.resolve().then(${j}${L}`,I+=`${H})`,!u&&b)L=w(["t"],`${L}t${I}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),I=")";return{helper:o,mechanism:{left:L,right:I}}}case"amd":{let o=t?"c":"resolve",L=t?"e":"reject",I=Yfr(r,i,h),[j,H]=p(["m"],{functionReturn:!1,lineBreakIndent:null,name:null}),J=I?`${j}${o}(/*#__PURE__*/${I}(m))${H}`:o,[W,sr]=p([o,L],{functionReturn:!1,lineBreakIndent:null,name:null}),rr=`new Promise(${W}require([`,hr=`],${c}${J},${c}${L})${sr})`;if(!u&&b)rr=w(["t"],`${rr}t${hr}`,{needsArrowReturnParens:!1,needsWrappedFunction:!0}),hr=")";return{helper:I,mechanism:{left:rr,right:hr}}}case"system":return{helper:null,mechanism:{left:"module.import(",right:")"}};case"es":if(s)return{helper:null,mechanism:{left:`${s}(`,right:")"}}}return{helper:null,mechanism:null}}};MIr={amd:["require"],cjs:["require"],system:["module"]};M1r=class M1r extends vi{applyDeoptimizations(){}};S1r=class S1r extends vi{applyDeoptimizations(){}};T1r=class T1r extends vi{hasEffects(r){let i=r.brokenFlow;if(r.ignore.labels.add(this.label.name),this.body.hasEffects(r))return!0;if(r.ignore.labels.delete(this.label.name),r.includedLabels.has(this.label.name))r.includedLabels.delete(this.label.name),r.brokenFlow=i;return!1}include(r,i){this.included=!0;let t=r.brokenFlow;if(this.body.include(r,i),i||r.includedLabels.has(this.label.name))this.label.include(),r.includedLabels.delete(this.label.name),r.brokenFlow=t}render(r,i){if(this.label.included)this.label.render(r,i);else r.remove(this.start,sf(r.original,ze(r.original,":",this.label.end)+1));this.body.render(r,i)}};O1r=class O1r extends vi{constructor(){super(...arguments);this.expressionsToBeDeoptimized=[],this.isBranchResolutionAnalysed=!1,this.usedBranch=null}deoptimizeCache(){if(this.usedBranch){let r=this.usedBranch===this.left?this.right:this.left;this.usedBranch=null,r.deoptimizePath(Mt);for(let i of this.expressionsToBeDeoptimized)i.deoptimizeCache();this.context.requestTreeshakingPass()}}deoptimizePath(r){let i=this.getUsedBranch();if(!i)this.left.deoptimizePath(r),this.right.deoptimizePath(r);else i.deoptimizePath(r)}deoptimizeThisOnInteractionAtPath(r,i,t){this.left.deoptimizeThisOnInteractionAtPath(r,i,t),this.right.deoptimizeThisOnInteractionAtPath(r,i,t)}getLiteralValueAtPath(r,i,t){let s=this.getUsedBranch();if(!s)return ie;return this.expressionsToBeDeoptimized.push(t),s.getLiteralValueAtPath(r,i,t)}getReturnExpressionWhenCalledAtPath(r,i,t,s){let l=this.getUsedBranch();if(!l)return new s9([this.left.getReturnExpressionWhenCalledAtPath(r,i,t,s),this.right.getReturnExpressionWhenCalledAtPath(r,i,t,s)]);return this.expressionsToBeDeoptimized.push(s),l.getReturnExpressionWhenCalledAtPath(r,i,t,s)}hasEffects(r){if(this.left.hasEffects(r))return!0;if(this.getUsedBranch()!==this.left)return this.right.hasEffects(r);return!1}hasEffectsOnInteractionAtPath(r,i,t){let s=this.getUsedBranch();if(!s)return this.left.hasEffectsOnInteractionAtPath(r,i,t)||this.right.hasEffectsOnInteractionAtPath(r,i,t);return s.hasEffectsOnInteractionAtPath(r,i,t)}include(r,i){this.included=!0;let t=this.getUsedBranch();if(i||t===this.right&&this.left.shouldBeIncluded(r)||!t)this.left.include(r,i),this.right.include(r,i);else t.include(r,i)}render(r,i,{isCalleeOfRenderedParent:t,preventASI:s,renderedParentType:l,renderedSurroundingElement:u}=Fe){if(!this.left.included||!this.right.included){let h=ze(r.original,this.operator,this.left.end);if(this.right.included){let c=sf(r.original,h+2);if(r.remove(this.start,c),s)i9(r,c,this.right.start)}else r.remove(h,this.end);Whr(this,r),this.getUsedBranch().render(r,i,{isCalleeOfRenderedParent:t,preventASI:s,renderedParentType:l||this.parent.type,renderedSurroundingElement:u||this.parent.type})}else this.left.render(r,i,{preventASI:s,renderedSurroundingElement:u}),this.right.render(r,i)}getUsedBranch(){if(!this.isBranchResolutionAnalysed){this.isBranchResolutionAnalysed=!0;let r=this.left.getLiteralValueAtPath(xi,je,this);if(typeof r==="symbol")return null;else this.usedBranch=this.operator==="||"&&r||this.operator==="&&"&&!r||this.operator==="??"&&r!=null?this.left:this.right}return this.usedBranch}};L1r=class L1r extends vi{addAccessedGlobals(r,i){let t=this.metaProperty,s=(t&&(t.startsWith(ku)||t.startsWith(mp)||t.startsWith(y2))?TIr:SIr)[r];if(s.length>0)this.scope.addAccessedGlobals(s,i)}getReferencedFileName(r){let i=this.metaProperty;if(i&&i.startsWith(ku))return r.getFileName(i.substring(ku.length));return null}hasEffects(){return!1}hasEffectsOnInteractionAtPath(r,{type:i}){return r.length>1||i!==_t}include(){if(!this.included){if(this.included=!0,this.meta.name==="import"){this.context.addImportMeta(this);let r=this.parent;this.metaProperty=r instanceof mh&&typeof r.propertyKey==="string"?r.propertyKey:null}}}renderFinalMechanism(r,i,t,s,l){var u;let h=this.parent,c=this.metaProperty;if(c&&(c.startsWith(ku)||c.startsWith(mp)||c.startsWith(y2))){let w=null,P=null,M=null,b;if(c.startsWith(ku))w=c.substring(ku.length),b=l.getFileName(w);else if(c.startsWith(mp))Zs(`Using the "${mp}" prefix to reference files is deprecated. Use the "${ku}" prefix instead.`,!0,this.context.options),P=c.substring(mp.length),b=l.getFileName(P);else Zs(`Using the "${y2}" prefix to reference files is deprecated. Use the "${ku}" prefix instead.`,!0,this.context.options),M=c.substring(y2.length),b=l.getFileName(M);let o=Sp(L7(dl(i),b)),L;if(P!==null)L=l.hookFirstSync("resolveAssetUrl",[{assetFileName:b,chunkId:i,format:t,moduleId:this.context.module.id,relativeAssetPath:o}]);if(!L)L=l.hookFirstSync("resolveFileUrl",[{assetReferenceId:P,chunkId:i,chunkReferenceId:M,fileName:b,format:t,moduleId:this.context.module.id,referenceId:w||P||M,relativePath:o}])||OIr[t](o);r.overwrite(h.start,h.end,L,{contentOnly:!0});return}let p=l.hookFirstSync("resolveImportMeta",[c,{chunkId:i,format:t,moduleId:this.context.module.id}])||((u=Wfr[t])===null||u===void 0?void 0:u.call(Wfr,c,{chunkId:i,snippets:s}));if(typeof p==="string")if(h instanceof mh)r.overwrite(h.start,h.end,p,{contentOnly:!0});else r.overwrite(this.start,this.end,p,{contentOnly:!0})}};SIr={amd:["document","module","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module"],umd:["document","require","URL"]},TIr={amd:["document","require","URL"],cjs:["document","require","URL"],es:[],iife:["document","URL"],system:["module","URL"],umd:["document","require","URL"]},OIr={amd:(r)=>{if(r[0]!==".")r="./"+r;return tu(`require.toUrl('${r}'), document.baseURI`)},cjs:(r)=>`(typeof document === 'undefined' ? ${tu(`'file:' + __dirname + '/${r}'`,"(require('u' + 'rl').URL)")} : ${D5(r)})`,es:(r)=>tu(`'${r}', import.meta.url`),iife:(r)=>D5(r),system:(r)=>tu(`'${r}', module.meta.url`),umd:(r)=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${tu(`'file:' + __dirname + '/${r}'`,"(require('u' + 'rl').URL)")} : ${D5(r,!0)})`},Wfr={amd:v2(()=>tu("module.uri, document.baseURI")),cjs:v2((r)=>`(typeof document === 'undefined' ? ${tu("'file:' + __filename","(require('u' + 'rl').URL)")} : ${k5(r)})`),iife:v2((r)=>k5(r)),system:(r,{snippets:{getPropertyAccess:i}})=>r===null?"module.meta":`module.meta${i(r)}`,umd:v2((r)=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${tu("'file:' + __filename","(require('u' + 'rl').URL)")} : ${k5(r,!0)})`)};E1r=class E1r extends vi{hasEffects(r){try{for(let i of this.arguments)if(i.hasEffects(r))return!0;if(this.context.options.treeshake.annotations&&this.annotations)return!1;return this.callee.hasEffects(r)||this.callee.hasEffectsOnInteractionAtPath(xi,this.interaction,r)}finally{if(!this.deoptimized)this.applyDeoptimizations()}}hasEffectsOnInteractionAtPath(r,{type:i}){return r.length>0||i!==_t}include(r,i){if(!this.deoptimized)this.applyDeoptimizations();if(i)super.include(r,i);else this.included=!0,this.callee.include(r,!1);this.callee.includeCallArguments(r,this.arguments)}initialise(){this.interaction={args:this.arguments,thisArg:null,type:Vt,withNew:!0}}render(r,i){this.callee.render(r,i),t1r(r,i,this)}applyDeoptimizations(){this.deoptimized=!0;for(let r of this.arguments)r.deoptimizePath(Mt);this.context.requestTreeshakingPass()}};V1r=class V1r extends vi{constructor(){super(...arguments);this.objectEntity=null}deoptimizeCache(){this.getObjectEntity().deoptimizeAllProperties()}deoptimizePath(r){this.getObjectEntity().deoptimizePath(r)}deoptimizeThisOnInteractionAtPath(r,i,t){this.getObjectEntity().deoptimizeThisOnInteractionAtPath(r,i,t)}getLiteralValueAtPath(r,i,t){return this.getObjectEntity().getLiteralValueAtPath(r,i,t)}getReturnExpressionWhenCalledAtPath(r,i,t,s){return this.getObjectEntity().getReturnExpressionWhenCalledAtPath(r,i,t,s)}hasEffectsOnInteractionAtPath(r,i,t){return this.getObjectEntity().hasEffectsOnInteractionAtPath(r,i,t)}render(r,i,{renderedSurroundingElement:t}=Fe){if(super.render(r,i),t===oa||t===Ihr)r.appendRight(this.start,"("),r.prependLeft(this.end,")")}applyDeoptimizations(){}getObjectEntity(){if(this.objectEntity!==null)return this.objectEntity;let r=xu,i=[];for(let t of this.properties){if(t instanceof tn){i.push({key:Ce,kind:"init",property:t});continue}let s;if(t.computed){let l=t.key.getLiteralValueAtPath(xi,je,this);if(typeof l==="symbol"){i.push({key:Ce,kind:t.kind,property:t});continue}else s=String(l)}else if(s=t.key instanceof qe?t.key.name:String(t.key.value),s==="__proto__"&&t.kind==="init"){r=t.value instanceof en&&t.value.value===null?null:t.value;continue}i.push({key:s,kind:t.kind,property:t})}return this.objectEntity=new gs(i,r)}};I1r=class I1r extends vi{};v4=class v4 extends vi{constructor(){super(...arguments);this.hasCachedEffect=!1}hasEffects(r){if(this.hasCachedEffect)return!0;for(let i of this.body)if(i.hasEffects(r))return this.hasCachedEffect=!0;return!1}include(r,i){this.included=!0;for(let t of this.body)if(i||t.shouldBeIncluded(r))t.include(r,i)}render(r,i){if(this.body.length)Zp(this.body,r,this.start,this.end,i);else super.render(r,i)}applyDeoptimizations(){}};F1r=class F1r extends u4{constructor(){super(...arguments);this.declarationInit=null}declare(r,i){return this.declarationInit=i,this.value.declare(r,Ri)}hasEffects(r){if(!this.deoptimized)this.applyDeoptimizations();let i=this.context.options.treeshake.propertyReadSideEffects;return this.parent.type==="ObjectPattern"&&i==="always"||this.key.hasEffects(r)||this.value.hasEffects(r)}markDeclarationReached(){this.value.markDeclarationReached()}render(r,i){if(!this.shorthand)this.key.render(r,i);this.value.render(r,i,{isShorthandProperty:this.shorthand})}applyDeoptimizations(){if(this.deoptimized=!0,this.declarationInit!==null)this.declarationInit.deoptimizePath([Ce,Ce]),this.context.requestTreeshakingPass()}};B1r=class B1r extends vi{deoptimizePath(r){var i;(i=this.value)===null||i===void 0||i.deoptimizePath(r)}deoptimizeThisOnInteractionAtPath(r,i,t){var s;(s=this.value)===null||s===void 0||s.deoptimizeThisOnInteractionAtPath(r,i,t)}getLiteralValueAtPath(r,i,t){return this.value?this.value.getLiteralValueAtPath(r,i,t):ie}getReturnExpressionWhenCalledAtPath(r,i,t,s){return this.value?this.value.getReturnExpressionWhenCalledAtPath(r,i,t,s):Ri}hasEffects(r){var i;return this.key.hasEffects(r)||this.static&&!!((i=this.value)===null||i===void 0?void 0:i.hasEffects(r))}hasEffectsOnInteractionAtPath(r,i,t){return!this.value||this.value.hasEffectsOnInteractionAtPath(r,i,t)}applyDeoptimizations(){}};H1r=class H1r extends vi{hasEffects(r){var i;if(!r.ignore.returnYield||((i=this.argument)===null||i===void 0?void 0:i.hasEffects(r)))return!0;return r.brokenFlow=ph,!1}include(r,i){var t;this.included=!0,(t=this.argument)===null||t===void 0||t.include(r,i),r.brokenFlow=ph}initialise(){this.scope.addReturnExpression(this.argument||Ri)}render(r,i){if(this.argument){if(this.argument.render(r,i,{preventASI:!0}),this.argument.start===this.start+6)r.prependLeft(this.start+6," ")}}};U1r=class U1r extends vi{deoptimizePath(r){this.expressions[this.expressions.length-1].deoptimizePath(r)}deoptimizeThisOnInteractionAtPath(r,i,t){this.expressions[this.expressions.length-1].deoptimizeThisOnInteractionAtPath(r,i,t)}getLiteralValueAtPath(r,i,t){return this.expressions[this.expressions.length-1].getLiteralValueAtPath(r,i,t)}hasEffects(r){for(let i of this.expressions)if(i.hasEffects(r))return!0;return!1}hasEffectsOnInteractionAtPath(r,i,t){return this.expressions[this.expressions.length-1].hasEffectsOnInteractionAtPath(r,i,t)}include(r,i){this.included=!0;let t=this.expressions[this.expressions.length-1];for(let s of this.expressions)if(i||s===t&&!(this.parent instanceof Qp)||s.shouldBeIncluded(r))s.include(r,i)}render(r,i,{renderedParentType:t,isCalleeOfRenderedParent:s,preventASI:l}=Fe){let u=0,h=null,c=this.expressions[this.expressions.length-1];for(let{node:p,separator:w,start:P,end:M}of Ghr(this.expressions,r,this.start,this.end)){if(!p.included){r4(p,r,P,M);continue}if(u++,h=w,u===1&&l)i9(r,P,p.start);if(u===1){let b=t||this.parent.type;p.render(r,i,{isCalleeOfRenderedParent:s&&p===c,renderedParentType:b,renderedSurroundingElement:b})}else p.render(r,i)}if(h)r.remove(h,this.end)}};N1r=class N1r extends vi{createScope(r){this.scope=new uf(r)}hasEffects(r){for(let i of this.body)if(i.hasEffects(r))return!0;return!1}include(r,i){this.included=!0;for(let t of this.body)if(i||t.shouldBeIncluded(r))t.include(r,i)}render(r,i){if(this.body.length)Zp(this.body,r,this.start+1,this.end-1,i);else super.render(r,i)}};j1r=class j1r extends vi{bind(){this.variable=this.scope.findVariable("this")}deoptimizePath(r){this.variable.deoptimizePath(r)}deoptimizeThisOnInteractionAtPath(r,i,t){this.variable.deoptimizeThisOnInteractionAtPath(r,i,t)}include(){if(!this.included)this.included=!0,this.context.includeVariableInModule(this.variable)}};p4=class p4 extends vi{hasEffects(r){var i;if((i=this.test)===null||i===void 0?void 0:i.hasEffects(r))return!0;for(let t of this.consequent){if(r.brokenFlow)break;if(t.hasEffects(r))return!0}return!1}include(r,i){var t;this.included=!0,(t=this.test)===null||t===void 0||t.include(r,i);for(let s of this.consequent)if(i||s.shouldBeIncluded(r))s.include(r,i)}render(r,i,t){if(this.consequent.length){this.test&&this.test.render(r,i);let s=this.test?this.test.end:ze(r.original,"default",this.start)+7,l=ze(r.original,":",s)+1;Zp(this.consequent,r,l,t.end,i)}else super.render(r,i)}};p4.prototype.needsBoundaries=!0;z1r=class z1r extends vi{createScope(r){this.scope=new uf(r)}hasEffects(r){if(this.discriminant.hasEffects(r))return!0;let{brokenFlow:i,ignore:{breaks:t}}=r,s=1/0;r.ignore.breaks=!0;for(let l of this.cases){if(l.hasEffects(r))return!0;s=r.brokenFlow<s?r.brokenFlow:s,r.brokenFlow=i}if(this.defaultCase!==null&&s!==rn)r.brokenFlow=s;return r.ignore.breaks=t,!1}include(r,i){this.included=!0,this.discriminant.include(r,i);let{brokenFlow:t}=r,s=1/0,l=i||this.defaultCase!==null&&this.defaultCase<this.cases.length-1;for(let u=this.cases.length-1;u>=0;u--){let h=this.cases[u];if(h.included)l=!0;if(!l){let c=k2();c.ignore.breaks=!0,l=h.hasEffects(c)}if(l)h.include(r,i),s=s<r.brokenFlow?s:r.brokenFlow,r.brokenFlow=t;else s=t}if(l&&this.defaultCase!==null&&s!==rn)r.brokenFlow=s}initialise(){for(let r=0;r<this.cases.length;r++)if(this.cases[r].test===null){this.defaultCase=r;return}this.defaultCase=null}render(r,i){if(this.discriminant.render(r,i),this.cases.length>0)Zp(this.cases,r,this.cases[0].start,this.end-1,i)}};Z1r=class Z1r extends l4{bind(){if(super.bind(),this.tag.type===Hhr){let r=this.tag.name;if(this.scope.findVariable(r).isNamespace)this.context.warn({code:"CANNOT_CALL_NAMESPACE",message:`Cannot call a namespace ('${r}')`},this.start)}}hasEffects(r){try{for(let i of this.quasi.expressions)if(i.hasEffects(r))return!0;return this.tag.hasEffects(r)||this.tag.hasEffectsOnInteractionAtPath(xi,this.interaction,r)}finally{if(!this.deoptimized)this.applyDeoptimizations()}}include(r,i){if(!this.deoptimized)this.applyDeoptimizations();if(i)super.include(r,i);else this.included=!0,this.tag.include(r,i),this.quasi.include(r,i);this.tag.includeCallArguments(r,this.interaction.args);let t=this.getReturnExpression();if(!t.included)t.include(r,!1)}initialise(){this.interaction={args:[Ri,...this.quasi.expressions],thisArg:this.tag instanceof mh&&!this.tag.variable?this.tag.object:null,type:Vt,withNew:!1}}render(r,i){this.tag.render(r,i,{isCalleeOfRenderedParent:!0}),this.quasi.render(r,i)}applyDeoptimizations(){if(this.deoptimized=!0,this.interaction.thisArg)this.tag.deoptimizeThisOnInteractionAtPath(this.interaction,xi,je);for(let r of this.quasi.expressions)r.deoptimizePath(Mt);this.context.requestTreeshakingPass()}getReturnExpression(r=je){if(this.returnExpression===null)return this.returnExpression=Ri,this.returnExpression=this.tag.getReturnExpressionWhenCalledAtPath(xi,this.interaction,r,this);return this.returnExpression}};Q1r=class Q1r extends vi{bind(){}hasEffects(){return!1}include(){this.included=!0}parseNode(r){this.value=r.value,super.parseNode(r)}render(){}};m4=class m4 extends vi{deoptimizeThisOnInteractionAtPath(){}getLiteralValueAtPath(r){if(r.length>0||this.quasis.length!==1)return ie;return this.quasis[0].value.cooked}getReturnExpressionWhenCalledAtPath(r){if(r.length!==1)return Ri;return zp(Tp,r[0])}hasEffectsOnInteractionAtPath(r,i,t){if(i.type===_t)return r.length>1;if(i.type===Vt&&r.length===1)return jp(Tp,r[0],i,t);return!0}render(r,i){r.indentExclusionRanges.push([this.start,this.end]),super.render(r,i)}};o4=class o4 extends lf{constructor(){super("undefined")}getLiteralValueAtPath(){return}};ql=class ql extends Wa{constructor(r,i,t){super(r,i,i.declaration,t);this.hasId=!1,this.originalId=null,this.originalVariable=null;let s=i.declaration;if((s instanceof sn||s instanceof Lp)&&s.id)this.hasId=!0,this.originalId=s.id;else if(s instanceof qe)this.originalId=s}addReference(r){if(!this.hasId)this.name=r.name}getAssignedVariableName(){return this.originalId&&this.originalId.name||null}getBaseVariableName(){let r=this.getOriginalVariable();if(r===this)return super.getBaseVariableName();else return r.getBaseVariableName()}getDirectOriginalVariable(){return this.originalId&&(this.hasId||!(this.originalId.isPossibleTDZ()||this.originalId.variable.isReassigned||this.originalId.variable instanceof o4||("syntheticNamespace"in this.originalId.variable)))?this.originalId.variable:null}getName(r){let i=this.getOriginalVariable();if(i===this)return super.getName(r);else return i.getName(r)}getOriginalVariable(){if(this.originalVariable)return this.originalVariable;let r=this,i,t=new Set;do t.add(r),i=r,r=i.getDirectOriginalVariable();while(r instanceof ql&&!t.has(r));return this.originalVariable=r||i}};b4=class b4 extends Ya{constructor(r,i){super(r);this.context=i,this.variables.set("this",new Wa("this",null,Np,i))}addExportDefaultDeclaration(r,i,t){let s=new ql(r,i,t);return this.variables.set("default",s),s}addNamespaceMemberAccess(){}deconflict(r,i,t){for(let s of this.children)s.deconflict(r,i,t)}findLexicalBoundary(){return this}findVariable(r){let i=this.variables.get(r)||this.accessedOutsideVariables.get(r);if(i)return i;let t=this.context.traceVariable(r)||this.parent.findVariable(r);if(t instanceof r9)this.accessedOutsideVariables.set(r,t);return t}};J1r=class J1r extends vi{bind(){this.variable=this.scope.findVariable("this")}deoptimizePath(r){this.variable.deoptimizePath(r)}deoptimizeThisOnInteractionAtPath(r,i,t){this.variable.deoptimizeThisOnInteractionAtPath(r.thisArg===this?{...r,thisArg:this.variable}:r,i,t)}hasEffectsOnInteractionAtPath(r,i,t){if(r.length===0)return i.type!==_t;return this.variable.hasEffectsOnInteractionAtPath(r,i,t)}include(){if(!this.included)this.included=!0,this.context.includeVariableInModule(this.variable)}initialise(){if(this.alias=this.scope.findLexicalBoundary()instanceof b4?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(r){if(this.alias!==null)r.overwrite(this.start,this.end,this.alias,{contentOnly:!1,storeName:!0})}};Y1r=class Y1r extends vi{hasEffects(){return!0}include(r,i){this.included=!0,this.argument.include(r,i),r.brokenFlow=ph}render(r,i){if(this.argument.render(r,i,{preventASI:!0}),this.argument.start===this.start+5)r.prependLeft(this.start+5," ")}};W1r=class W1r extends vi{constructor(){super(...arguments);this.directlyIncluded=!1,this.includedLabelsAfterBlock=null}hasEffects(r){var i;return(this.context.options.treeshake.tryCatchDeoptimization?this.block.body.length>0:this.block.hasEffects(r))||!!((i=this.finalizer)===null||i===void 0?void 0:i.hasEffects(r))}include(r,i){var t,s;let l=(t=this.context.options.treeshake)===null||t===void 0?void 0:t.tryCatchDeoptimization,{brokenFlow:u}=r;if(!this.directlyIncluded||!l){if(this.included=!0,this.directlyIncluded=!0,this.block.include(r,l?zhr:i),r.includedLabels.size>0)this.includedLabelsAfterBlock=[...r.includedLabels];r.brokenFlow=u}else if(this.includedLabelsAfterBlock)for(let h of this.includedLabelsAfterBlock)r.includedLabels.add(h);if(this.handler!==null)this.handler.include(r,i),r.brokenFlow=u;(s=this.finalizer)===null||s===void 0||s.include(r,i)}};LIr={"!":(r)=>!r,"+":(r)=>+r,"-":(r)=>-r,delete:()=>ie,typeof:(r)=>typeof r,void:()=>{return},"~":(r)=>~r};G1r=class G1r extends vi{getLiteralValueAtPath(r,i,t){if(r.length>0)return ie;let s=this.argument.getLiteralValueAtPath(xi,i,t);if(typeof s==="symbol")return ie;return LIr[this.operator](s)}hasEffects(r){if(!this.deoptimized)this.applyDeoptimizations();if(this.operator==="typeof"&&this.argument instanceof qe)return!1;return this.argument.hasEffects(r)||this.operator==="delete"&&this.argument.hasEffectsOnInteractionAtPath(xi,U7,r)}hasEffectsOnInteractionAtPath(r,{type:i}){return i!==_t||r.length>(this.operator==="void"?0:1)}applyDeoptimizations(){if(this.deoptimized=!0,this.operator==="delete")this.argument.deoptimizePath(xi),this.context.requestTreeshakingPass()}};K1r=class K1r extends vi{hasEffects(){return!0}include(r){super.include(r,!0)}};X1r=class X1r extends vi{hasEffects(r){if(!this.deoptimized)this.applyDeoptimizations();return this.argument.hasEffectsAsAssignmentTarget(r,!0)}hasEffectsOnInteractionAtPath(r,{type:i}){return r.length>1||i!==_t}include(r,i){if(!this.deoptimized)this.applyDeoptimizations();this.included=!0,this.argument.includeAsAssignmentTarget(r,i,!0)}initialise(){this.argument.setAssignedValue(Ri)}render(r,i){let{exportNamesByVariable:t,format:s,snippets:{_:l}}=i;if(this.argument.render(r,i),s==="system"){let u=this.argument.variable,h=t.get(u);if(h)if(this.prefix)if(h.length===1)e4(u,this.start,this.end,r,i);else Khr(u,this.start,this.end,this.parent.type!==oa,r,i);else{let c=this.operator[0];mIr(u,this.start,this.end,this.parent.type!==oa,r,i,`${l}${c}${l}1`)}}}applyDeoptimizations(){if(this.deoptimized=!0,this.argument.deoptimizePath(xi),this.argument instanceof qe){let r=this.scope.findVariable(this.argument.name);r.isReassigned=!0}this.context.requestTreeshakingPass()}};d4=class d4 extends vi{deoptimizePath(){for(let r of this.declarations)r.deoptimizePath(xi)}hasEffectsOnInteractionAtPath(){return!1}include(r,i,{asSingleStatement:t}=Fe){this.included=!0;for(let s of this.declarations){if(i||s.shouldBeIncluded(r))s.include(r,i);if(t)s.id.include(r,i)}}initialise(){for(let r of this.declarations)r.declareDeclarator(this.kind)}render(r,i,t=Fe){if(EIr(this.declarations,i.exportNamesByVariable)){for(let s of this.declarations)s.render(r,i);if(!t.isNoStatement&&r.original.charCodeAt(this.end-1)!==59)r.appendLeft(this.end,";")}else this.renderReplacedDeclarations(r,i)}applyDeoptimizations(){}renderDeclarationEnd(r,i,t,s,l,u,h){if(r.original.charCodeAt(this.end-1)===59)r.remove(this.end-1,this.end);if(i+=";",t!==null){if(r.original.charCodeAt(s-1)===10&&(r.original.charCodeAt(this.end)===10||r.original.charCodeAt(this.end)===13)){if(s--,r.original.charCodeAt(s)===13)s--}if(s===t+1)r.overwrite(t,l,i);else r.overwrite(t,t+1,i),r.remove(s,l)}else r.appendLeft(l,i);if(u.length>0)r.appendLeft(l,` ${bh(u,h)};`)}renderReplacedDeclarations(r,i){let t=Ghr(this.declarations,r,this.start+this.kind.length,this.end-(r.original.charCodeAt(this.end-1)===59?1:0)),s,l;l=sf(r.original,this.start+this.kind.length);let u=l-1;r.remove(this.start,u);let h=!1,c=!1,p="",w,P,M=[],b=VIr(t,i,M);for(let{node:o,start:L,separator:I,contentEnd:j,end:H}of t){if(!o.included){r.remove(L,H);continue}if(o.render(r,i),w="",P="",!o.id.included||o.id instanceof qe&&D1r(o.id.variable,i.exportNamesByVariable)){if(c)p+=";";h=!1}else{if(b&&b===o.id.variable){let J=ze(r.original,"=",o.id.end);e4(b,sf(r.original,J+1),I===null?j:I,r,i)}if(h)p+=",";else{if(c)p+=";";w+=`${this.kind} `,h=!0}}if(l===u+1)r.overwrite(u,l,p+w);else r.overwrite(u,u+1,p),r.appendLeft(l,w);s=j,l=H,c=!0,u=I,p=P}this.renderDeclarationEnd(r,p,u,s,l,M,i)}};k1r=class k1r extends vi{declareDeclarator(r){this.id.declare(r,this.init||Np)}deoptimizePath(r){this.id.deoptimizePath(r)}hasEffects(r){var i;let t=(i=this.init)===null||i===void 0?void 0:i.hasEffects(r);return this.id.markDeclarationReached(),t||this.id.hasEffects(r)}include(r,i){var t;if(this.included=!0,(t=this.init)===null||t===void 0||t.include(r,i),this.id.markDeclarationReached(),i||this.id.shouldBeIncluded(r))this.id.include(r,i)}render(r,i){let{exportNamesByVariable:t,snippets:{_:s}}=i,l=this.id.included;if(l)this.id.render(r,i);else{let u=ze(r.original,"=",this.id.end);r.remove(this.start,sf(r.original,u+1))}if(this.init)this.init.render(r,i,l?Fe:{renderedSurroundingElement:oa});else if(this.id instanceof qe&&D1r(this.id.variable,t))r.appendLeft(this.end,`${s}=${s}void 0`)}applyDeoptimizations(){}};_1r=class _1r extends vi{hasEffects(r){if(this.test.hasEffects(r))return!0;let{brokenFlow:i,ignore:{breaks:t,continues:s}}=r;if(r.ignore.breaks=!0,r.ignore.continues=!0,this.body.hasEffects(r))return!0;return r.ignore.breaks=t,r.ignore.continues=s,r.brokenFlow=i,!1}include(r,i){this.included=!0,this.test.include(r,i);let{brokenFlow:t}=r;this.body.include(r,i,{asSingleStatement:!0}),r.brokenFlow=t}};x1r=class x1r extends vi{hasEffects(r){var i;if(!this.deoptimized)this.applyDeoptimizations();return!(r.ignore.returnYield&&!((i=this.argument)===null||i===void 0?void 0:i.hasEffects(r)))}render(r,i){if(this.argument){if(this.argument.render(r,i,{preventASI:!0}),this.argument.start===this.start+5)r.prependLeft(this.start+5," ")}}};Gfr={ArrayExpression:Qhr,ArrayPattern:Jhr,ArrowFunctionExpression:t4,AssignmentExpression:Xhr,AssignmentPattern:Dhr,AwaitExpression:xhr,BinaryExpression:r1r,BlockStatement:Op,BreakStatement:i1r,CallExpression:a1r,CatchClause:u1r,ChainExpression:f1r,ClassBody:n1r,ClassDeclaration:Lp,ClassExpression:y1r,ConditionalExpression:v1r,ContinueStatement:p1r,DoWhileStatement:m1r,EmptyStatement:o1r,ExportAllDeclaration:a9,ExportDefaultDeclaration:Jp,ExportNamedDeclaration:h4,ExportSpecifier:b1r,ExpressionStatement:Qp,ForInStatement:d1r,ForOfStatement:w1r,ForStatement:C1r,FunctionDeclaration:sn,FunctionExpression:q1r,Identifier:qe,IfStatement:n4,ImportDeclaration:c4,ImportDefaultSpecifier:P1r,ImportExpression:A1r,ImportNamespaceSpecifier:M1r,ImportSpecifier:S1r,LabeledStatement:T1r,Literal:en,LogicalExpression:O1r,MemberExpression:mh,MetaProperty:L1r,MethodDefinition:I2,NewExpression:E1r,ObjectExpression:V1r,ObjectPattern:s4,PrivateIdentifier:I1r,Program:v4,Property:F1r,PropertyDefinition:B1r,RestElement:i4,ReturnStatement:H1r,SequenceExpression:U1r,SpreadElement:tn,StaticBlock:N1r,Super:j1r,SwitchCase:p4,SwitchStatement:z1r,TaggedTemplateExpression:Z1r,TemplateElement:Q1r,TemplateLiteral:m4,ThisExpression:J1r,ThrowStatement:Y1r,TryStatement:W1r,UnaryExpression:G1r,UnknownNode:K1r,UpdateExpression:X1r,VariableDeclaration:d4,VariableDeclarator:k1r,WhileStatement:_1r,YieldExpression:x1r};rnr=class rnr extends lf{constructor(r){super(an);this.module=r}include(){super.include(),this.module.needsExportShim=!0}};_1=class _1 extends lf{constructor(r){super(r.getModuleName());this.memberVariables=null,this.mergedNamespaces=[],this.referencedEarly=!1,this.references=[],this.context=r,this.module=r.module}addReference(r){this.references.push(r),this.name=r.name}getMemberVariables(){if(this.memberVariables)return this.memberVariables;let r=Object.create(null);for(let i of this.context.getExports().concat(this.context.getReexports()))if(i[0]!=="*"&&i!==this.module.info.syntheticNamedExports){let t=this.context.traceExport(i);if(t)r[i]=t}return this.memberVariables=r}include(){this.included=!0,this.context.includeAllExports()}prepare(r){if(this.mergedNamespaces.length>0)this.module.scope.addAccessedGlobals([B2],r)}renderBlock(r){let{exportNamesByVariable:i,format:t,freeze:s,indent:l,namespaceToStringTag:u,snippets:{_:h,cnst:c,getObject:p,getPropertyAccess:w,n:P,s:M}}=r,b=this.getMemberVariables(),o=Object.entries(b).map(([j,H])=>{if(this.referencedEarly||H.isReassigned)return[null,`get ${j}${h}()${h}{${h}return ${H.getName(w)}${M}${h}}`];return[j,H.getName(w)]});o.unshift([null,`__proto__:${h}null`]);let L=p(o,{lineBreakIndent:{base:"",t:l}});if(this.mergedNamespaces.length>0){let j=this.mergedNamespaces.map((H)=>H.getName(w));L=`/*#__PURE__*/${B2}(${L},${h}[${j.join(`,${h}`)}])`}else{if(u)L=`/*#__PURE__*/Object.defineProperty(${L},${h}Symbol.toStringTag,${h}${Vp(p)})`;if(s)L=`/*#__PURE__*/Object.freeze(${L})`}let I=this.getName(w);if(L=`${c} ${I}${h}=${h}${L};`,t==="system"&&i.has(this))L+=`${P}${bh([this],r)};`;return L}renderFirst(){return this.referencedEarly}setMergedNamespaces(r){this.mergedNamespaces=r;let i=this.context.getModuleExecIndex();for(let t of this.references)if(t.context.getModuleExecIndex()<=i){this.referencedEarly=!0;break}}};_1.prototype.isNamespace=!0;js=class js extends lf{constructor(r,i,t){super(i);this.baseVariable=null,this.context=r,this.module=r.module,this.syntheticNamespace=t}getBaseVariable(){if(this.baseVariable)return this.baseVariable;let r=this.syntheticNamespace;while(r instanceof ql||r instanceof js){if(r instanceof ql){let i=r.getOriginalVariable();if(i===r)break;r=i}if(r instanceof js)r=r.syntheticNamespace}return this.baseVariable=r}getBaseVariableName(){return this.syntheticNamespace.getBaseVariableName()}getName(r){return`${this.syntheticNamespace.getName(r)}${r(this.name)}`}include(){this.included=!0,this.context.includeVariableInModule(this.syntheticNamespace)}setRenderNames(r,i){super.setRenderNames(r,i)}};(function(r){r[r.LOAD_AND_PARSE=0]="LOAD_AND_PARSE",r[r.ANALYSE=1]="ANALYSE",r[r.GENERATE=2]="GENERATE"})(rf||(rf={}));Ip=new Map;Ne=H2,Ie=H2,UIr=["load","resolveDynamicImport","resolveId","transform"];Kfr={identifier:null,localName:an};WIr={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};cFr={amd:GIr,cjs:KIr,es:DIr,iife:rFr,system:iFr,umd:nFr};pFr={amd:p2,cjs:p2,es:kfr,iife:p2,system:kfr,umd:p2};bFr=/[\\'\r\n\u2028\u2029]/,dFr=/(['\r\n\u2028\u2029])/g,wFr=/\\/g;q4=Symbol("bundleKeys"),nnr={type:"placeholder"};_fr=[".js",".jsx",".ts",".tsx"];TFr=/[?#]/;thr=/^(?!\d)[\w$]+$/;YFr=[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],ynr=[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],t7={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"},GFr={5:e7,"5module":e7+" export import",6:e7+" const class extends export import super"},KFr=/^in(stanceof)?$/,XFr=new RegExp("["+vnr+"]"),DFr=new RegExp("["+vnr+WFr+"]");va={beforeExpr:!0},$s={startsExpr:!0},P4={};fr={num:new gt("num",$s),regexp:new gt("regexp",$s),string:new gt("string",$s),name:new gt("name",$s),privateId:new gt("privateId",$s),eof:new gt("eof"),bracketL:new gt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new gt("]"),braceL:new gt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new gt("}"),parenL:new gt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new gt(")"),comma:new gt(",",va),semi:new gt(";",va),colon:new gt(":",va),dot:new gt("."),question:new gt("?",va),questionDot:new gt("?."),arrow:new gt("=>",va),template:new gt("template"),invalidTemplate:new gt("invalidTemplate"),ellipsis:new gt("...",va),backQuote:new gt("`",$s),dollarBraceL:new gt("${",{beforeExpr:!0,startsExpr:!0}),eq:new gt("=",{beforeExpr:!0,isAssign:!0}),assign:new gt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new gt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new gt("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ya("||",1),logicalAND:ya("&&",2),bitwiseOR:ya("|",3),bitwiseXOR:ya("^",4),bitwiseAND:ya("&",5),equality:ya("==/!=/===/!==",6),relational:ya("</>/<=/>=",7),bitShift:ya("<</>>/>>>",8),plusMin:new gt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ya("%",10),star:ya("*",10),slash:ya("/",10),starstar:new gt("**",{beforeExpr:!0}),coalesce:ya("??",1),_break:qt("break"),_case:qt("case",va),_catch:qt("catch"),_continue:qt("continue"),_debugger:qt("debugger"),_default:qt("default",va),_do:qt("do",{isLoop:!0,beforeExpr:!0}),_else:qt("else",va),_finally:qt("finally"),_for:qt("for",{isLoop:!0}),_function:qt("function",$s),_if:qt("if"),_return:qt("return",va),_switch:qt("switch"),_throw:qt("throw",va),_try:qt("try"),_var:qt("var"),_const:qt("const"),_while:qt("while",{isLoop:!0}),_with:qt("with"),_new:qt("new",{beforeExpr:!0,startsExpr:!0}),_this:qt("this",$s),_super:qt("super",$s),_class:qt("class",$s),_extends:qt("extends",va),_export:qt("export"),_import:qt("import",$s),_null:qt("null",$s),_true:qt("true",$s),_false:qt("false",$s),_in:qt("in",{beforeExpr:!0,binop:7}),_instanceof:qt("instanceof",{beforeExpr:!0,binop:7}),_typeof:qt("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:qt("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:qt("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ba=/\r\n?|\n|\u2028|\u2029/,kFr=new RegExp(ba.source,"g");mnr=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ma=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,onr=Object.prototype,_Fr=onr.hasOwnProperty,xFr=onr.toString,Gp=Object.hasOwn||function(r,i){return _Fr.call(r,i)},lhr=Array.isArray||function(r){return xFr.call(r)==="[object Array]"};rBr=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;Bp.prototype.offset=function(i){return new Bp(this.line,this.column+i)};M7={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};R4=Hp|nn|Kp;Pl={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}};Pe.prototype.parse=function(){var i=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(i)};Pl.inFunction.get=function(){return(this.currentVarScope().flags&nn)>0};Pl.inGenerator.get=function(){return(this.currentVarScope().flags&dnr)>0&&!this.currentVarScope().inClassFieldInit};Pl.inAsync.get=function(){return(this.currentVarScope().flags&$4)>0&&!this.currentVarScope().inClassFieldInit};Pl.canAwait.get=function(){for(var r=this.scopeStack.length-1;r>=0;r--){var i=this.scopeStack[r];if(i.inClassFieldInit||i.flags&Kp)return!1;if(i.flags&nn)return(i.flags&$4)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Pl.allowSuper.get=function(){var r=this.currentThisScope(),i=r.flags,t=r.inClassFieldInit;return(i&g4)>0||t||this.options.allowSuperOutsideMethod};Pl.allowDirectSuper.get=function(){return(this.currentThisScope().flags&qnr)>0};Pl.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Pl.allowNewDotTarget.get=function(){var r=this.currentThisScope(),i=r.flags,t=r.inClassFieldInit;return(i&(nn|Kp))>0||t};Pl.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Kp)>0};Pe.extend=function(){var i=[],t=arguments.length;while(t--)i[t]=arguments[t];var s=this;for(var l=0;l<i.length;l++)s=i[l](s);return s};Pe.parse=function(i,t){return new this(t,i).parse()};Pe.parseExpressionAt=function(i,t,s){var l=new this(s,i,t);return l.nextToken(),l.parseExpression()};Pe.tokenizer=function(i,t){return new this(t,i)};Object.defineProperties(Pe.prototype,Pl);ys=Pe.prototype,eBr=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;ys.strictDirective=function(r){if(this.options.ecmaVersion<5)return!1;for(;;){ma.lastIndex=r,r+=ma.exec(this.input)[0].length;var i=eBr.exec(this.input.slice(r));if(!i)return!1;if((i[1]||i[2])==="use strict"){ma.lastIndex=r+i[0].length;var t=ma.exec(this.input),s=t.index+t[0].length,l=this.input.charAt(s);return l===";"||l==="}"||ba.test(t[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(l)||l==="!"&&this.input.charAt(s+1)==="=")}if(r+=i[0].length,ma.lastIndex=r,r+=ma.exec(this.input)[0].length,this.input[r]===";")r++}};ys.eat=function(r){if(this.type===r)return this.next(),!0;else return!1};ys.isContextual=function(r){return this.type===fr.name&&this.value===r&&!this.containsEsc};ys.eatContextual=function(r){if(!this.isContextual(r))return!1;return this.next(),!0};ys.expectContextual=function(r){if(!this.eatContextual(r))this.unexpected()};ys.canInsertSemicolon=function(){return this.type===fr.eof||this.type===fr.braceR||ba.test(this.input.slice(this.lastTokEnd,this.start))};ys.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};ys.semicolon=function(){if(!this.eat(fr.semi)&&!this.insertSemicolon())this.unexpected()};ys.afterTrailingComma=function(r,i){if(this.type===r){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!i)this.next();return!0}};ys.expect=function(r){this.eat(r)||this.unexpected()};ys.unexpected=function(r){this.raise(r!=null?r:this.start,"Unexpected token")};ys.checkPatternErrors=function(r,i){if(!r)return;if(r.trailingComma>-1)this.raiseRecoverable(r.trailingComma,"Comma is not permitted after the rest element");var t=i?r.parenthesizedAssign:r.parenthesizedBind;if(t>-1)this.raiseRecoverable(t,"Parenthesized pattern")};ys.checkExpressionErrors=function(r,i){if(!r)return!1;var{shorthandAssign:t,doubleProto:s}=r;if(!i)return t>=0||s>=0;if(t>=0)this.raise(t,"Shorthand property assignments are valid only in destructuring patterns");if(s>=0)this.raiseRecoverable(s,"Redefinition of __proto__ property")};ys.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")};ys.isSimpleAssignTarget=function(r){if(r.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(r.expression);return r.type==="Identifier"||r.type==="MemberExpression"};Hi=Pe.prototype;Hi.parseTopLevel=function(r){var i=Object.create(null);if(!r.body)r.body=[];while(this.type!==fr.eof){var t=this.parseStatement(null,!0,i);r.body.push(t)}if(this.inModule)for(var s=0,l=Object.keys(this.undefinedExports);s<l.length;s+=1){var u=l[s];this.raiseRecoverable(this.undefinedExports[u].start,"Export '"+u+"' is not defined")}return this.adaptDirectivePrologue(r.body),this.next(),r.sourceType=this.options.sourceType,this.finishNode(r,"Program")};S4={kind:"loop"},sBr={kind:"switch"};Hi.isLet=function(r){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ma.lastIndex=this.pos;var i=ma.exec(this.input),t=this.pos+i[0].length,s=this.input.charCodeAt(t);if(s===91||s===92||s>55295&&s<56320)return!0;if(r)return!1;if(s===123)return!0;if(lu(s,!0)){var l=t+1;while(ln(s=this.input.charCodeAt(l),!0))++l;if(s===92||s>55295&&s<56320)return!0;var u=this.input.slice(t,l);if(!KFr.test(u))return!0}return!1};Hi.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ma.lastIndex=this.pos;var r=ma.exec(this.input),i=this.pos+r[0].length,t;return!ba.test(this.input.slice(this.pos,i))&&this.input.slice(i,i+8)==="function"&&(i+8===this.input.length||!(ln(t=this.input.charCodeAt(i+8))||t>55295&&t<56320))};Hi.parseStatement=function(r,i,t){var s=this.type,l=this.startNode(),u;if(this.isLet(r))s=fr._var,u="let";switch(s){case fr._break:case fr._continue:return this.parseBreakContinueStatement(l,s.keyword);case fr._debugger:return this.parseDebuggerStatement(l);case fr._do:return this.parseDoStatement(l);case fr._for:return this.parseForStatement(l);case fr._function:if(r&&(this.strict||r!=="if"&&r!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(l,!1,!r);case fr._class:if(r)this.unexpected();return this.parseClass(l,!0);case fr._if:return this.parseIfStatement(l);case fr._return:return this.parseReturnStatement(l);case fr._switch:return this.parseSwitchStatement(l);case fr._throw:return this.parseThrowStatement(l);case fr._try:return this.parseTryStatement(l);case fr._const:case fr._var:if(u=u||this.value,r&&u!=="var")this.unexpected();return this.parseVarStatement(l,u);case fr._while:return this.parseWhileStatement(l);case fr._with:return this.parseWithStatement(l);case fr.braceL:return this.parseBlock(!0,l);case fr.semi:return this.parseEmptyStatement(l);case fr._export:case fr._import:if(this.options.ecmaVersion>10&&s===fr._import){ma.lastIndex=this.pos;var h=ma.exec(this.input),c=this.pos+h[0].length,p=this.input.charCodeAt(c);if(p===40||p===46)return this.parseExpressionStatement(l,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!i)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 s===fr._import?this.parseImport(l):this.parseExport(l,t);default:if(this.isAsyncFunction()){if(r)this.unexpected();return this.next(),this.parseFunctionStatement(l,!0,!r)}var w=this.value,P=this.parseExpression();if(s===fr.name&&P.type==="Identifier"&&this.eat(fr.colon))return this.parseLabeledStatement(l,w,P,r);else return this.parseExpressionStatement(l,P)}};Hi.parseBreakContinueStatement=function(r,i){var t=i==="break";if(this.next(),this.eat(fr.semi)||this.insertSemicolon())r.label=null;else if(this.type!==fr.name)this.unexpected();else r.label=this.parseIdent(),this.semicolon();var s=0;for(;s<this.labels.length;++s){var l=this.labels[s];if(r.label==null||l.name===r.label.name){if(l.kind!=null&&(t||l.kind==="loop"))break;if(r.label&&t)break}}if(s===this.labels.length)this.raise(r.start,"Unsyntactic "+i);return this.finishNode(r,t?"BreakStatement":"ContinueStatement")};Hi.parseDebuggerStatement=function(r){return this.next(),this.semicolon(),this.finishNode(r,"DebuggerStatement")};Hi.parseDoStatement=function(r){if(this.next(),this.labels.push(S4),r.body=this.parseStatement("do"),this.labels.pop(),this.expect(fr._while),r.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(fr.semi);else this.semicolon();return this.finishNode(r,"DoWhileStatement")};Hi.parseForStatement=function(r){this.next();var i=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(S4),this.enterScope(0),this.expect(fr.parenL),this.type===fr.semi){if(i>-1)this.unexpected(i);return this.parseFor(r,null)}var t=this.isLet();if(this.type===fr._var||this.type===fr._const||t){var s=this.startNode(),l=t?"let":this.value;if(this.next(),this.parseVar(s,!0,l),this.finishNode(s,"VariableDeclaration"),(this.type===fr._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&s.declarations.length===1){if(this.options.ecmaVersion>=9)if(this.type===fr._in){if(i>-1)this.unexpected(i)}else r.await=i>-1;return this.parseForIn(r,s)}if(i>-1)this.unexpected(i);return this.parseFor(r,s)}var u=this.isContextual("let"),h=!1,c=new c9,p=this.parseExpression(i>-1?"await":!0,c);if(this.type===fr._in||(h=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(this.options.ecmaVersion>=9)if(this.type===fr._in){if(i>-1)this.unexpected(i)}else r.await=i>-1;if(u&&h)this.raise(p.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(p,!1,c),this.checkLValPattern(p),this.parseForIn(r,p)}else this.checkExpressionErrors(c,!0);if(i>-1)this.unexpected(i);return this.parseFor(r,p)};Hi.parseFunctionStatement=function(r,i,t){return this.next(),this.parseFunction(r,Pp|(t?0:S7),!1,i)};Hi.parseIfStatement=function(r){return this.next(),r.test=this.parseParenExpression(),r.consequent=this.parseStatement("if"),r.alternate=this.eat(fr._else)?this.parseStatement("if"):null,this.finishNode(r,"IfStatement")};Hi.parseReturnStatement=function(r){if(!this.inFunction&&!this.options.allowReturnOutsideFunction)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(fr.semi)||this.insertSemicolon())r.argument=null;else r.argument=this.parseExpression(),this.semicolon();return this.finishNode(r,"ReturnStatement")};Hi.parseSwitchStatement=function(r){this.next(),r.discriminant=this.parseParenExpression(),r.cases=[],this.expect(fr.braceL),this.labels.push(sBr),this.enterScope(0);var i;for(var t=!1;this.type!==fr.braceR;)if(this.type===fr._case||this.type===fr._default){var s=this.type===fr._case;if(i)this.finishNode(i,"SwitchCase");if(r.cases.push(i=this.startNode()),i.consequent=[],this.next(),s)i.test=this.parseExpression();else{if(t)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");t=!0,i.test=null}this.expect(fr.colon)}else{if(!i)this.unexpected();i.consequent.push(this.parseStatement(null))}if(this.exitScope(),i)this.finishNode(i,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(r,"SwitchStatement")};Hi.parseThrowStatement=function(r){if(this.next(),ba.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return r.argument=this.parseExpression(),this.semicolon(),this.finishNode(r,"ThrowStatement")};aBr=[];Hi.parseTryStatement=function(r){if(this.next(),r.block=this.parseBlock(),r.handler=null,this.type===fr._catch){var i=this.startNode();if(this.next(),this.eat(fr.parenL)){i.param=this.parseBindingAtom();var t=i.param.type==="Identifier";this.enterScope(t?Cnr:0),this.checkLValPattern(i.param,t?$nr:su),this.expect(fr.parenR)}else{if(this.options.ecmaVersion<10)this.unexpected();i.param=null,this.enterScope(0)}i.body=this.parseBlock(!1),this.exitScope(),r.handler=this.finishNode(i,"CatchClause")}if(r.finalizer=this.eat(fr._finally)?this.parseBlock():null,!r.handler&&!r.finalizer)this.raise(r.start,"Missing catch or finally clause");return this.finishNode(r,"TryStatement")};Hi.parseVarStatement=function(r,i){return this.next(),this.parseVar(r,!1,i),this.semicolon(),this.finishNode(r,"VariableDeclaration")};Hi.parseWhileStatement=function(r){return this.next(),r.test=this.parseParenExpression(),this.labels.push(S4),r.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(r,"WhileStatement")};Hi.parseWithStatement=function(r){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),r.object=this.parseParenExpression(),r.body=this.parseStatement("with"),this.finishNode(r,"WithStatement")};Hi.parseEmptyStatement=function(r){return this.next(),this.finishNode(r,"EmptyStatement")};Hi.parseLabeledStatement=function(r,i,t,s){for(var l=0,u=this.labels;l<u.length;l+=1){var h=u[l];if(h.name===i)this.raise(t.start,"Label '"+i+"' is already declared")}var c=this.type.isLoop?"loop":this.type===fr._switch?"switch":null;for(var p=this.labels.length-1;p>=0;p--){var w=this.labels[p];if(w.statementStart===r.start)w.statementStart=this.start,w.kind=c;else break}return this.labels.push({name:i,kind:c,statementStart:this.start}),r.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),r.label=t,this.finishNode(r,"LabeledStatement")};Hi.parseExpressionStatement=function(r,i){return r.expression=i,this.semicolon(),this.finishNode(r,"ExpressionStatement")};Hi.parseBlock=function(r,i,t){if(r===void 0)r=!0;if(i===void 0)i=this.startNode();if(i.body=[],this.expect(fr.braceL),r)this.enterScope(0);while(this.type!==fr.braceR){var s=this.parseStatement(null);i.body.push(s)}if(t)this.strict=!1;if(this.next(),r)this.exitScope();return this.finishNode(i,"BlockStatement")};Hi.parseFor=function(r,i){return r.init=i,this.expect(fr.semi),r.test=this.type===fr.semi?null:this.parseExpression(),this.expect(fr.semi),r.update=this.type===fr.parenR?null:this.parseExpression(),this.expect(fr.parenR),r.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(r,"ForStatement")};Hi.parseForIn=function(r,i){var t=this.type===fr._in;if(this.next(),i.type==="VariableDeclaration"&&i.declarations[0].init!=null&&(!t||this.options.ecmaVersion<8||this.strict||i.kind!=="var"||i.declarations[0].id.type!=="Identifier"))this.raise(i.start,(t?"for-in":"for-of")+" loop variable declaration may not have an initializer");return r.left=i,r.right=t?this.parseExpression():this.parseMaybeAssign(),this.expect(fr.parenR),r.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(r,t?"ForInStatement":"ForOfStatement")};Hi.parseVar=function(r,i,t){r.declarations=[],r.kind=t;for(;;){var s=this.startNode();if(this.parseVarId(s,t),this.eat(fr.eq))s.init=this.parseMaybeAssign(i);else if(t==="const"&&!(this.type===fr._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(s.id.type!=="Identifier"&&!(i&&(this.type===fr._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else s.init=null;if(r.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(fr.comma))break}return r};Hi.parseVarId=function(r,i){r.id=this.parseBindingAtom(),this.checkLValPattern(r.id,i==="var"?M4:su,!1)};Hi.parseFunction=function(r,i,t,s,l){if(this.initFunction(r),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s){if(this.type===fr.star&&i&S7)this.unexpected();r.generator=this.eat(fr.star)}if(this.options.ecmaVersion>=8)r.async=!!s;if(i&Pp){if(r.id=i&Rnr&&this.type!==fr.name?null:this.parseIdent(),r.id&&!(i&S7))this.checkLValSimple(r.id,this.strict||r.generator||r.async?this.treatFunctionsAsVar?M4:su:Pnr)}var u=this.yieldPos,h=this.awaitPos,c=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(A4(r.async,r.generator)),!(i&Pp))r.id=this.type===fr.name?this.parseIdent():null;return this.parseFunctionParams(r),this.parseFunctionBody(r,t,!1,l),this.yieldPos=u,this.awaitPos=h,this.awaitIdentPos=c,this.finishNode(r,i&Pp?"FunctionDeclaration":"FunctionExpression")};Hi.parseFunctionParams=function(r){this.expect(fr.parenL),r.params=this.parseBindingList(fr.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};Hi.parseClass=function(r,i){this.next();var t=this.strict;this.strict=!0,this.parseClassId(r,i),this.parseClassSuper(r);var s=this.enterClassBody(),l=this.startNode(),u=!1;l.body=[],this.expect(fr.braceL);while(this.type!==fr.braceR){var h=this.parseClassElement(r.superClass!==null);if(h){if(l.body.push(h),h.type==="MethodDefinition"&&h.kind==="constructor"){if(u)this.raise(h.start,"Duplicate constructor in the same class");u=!0}else if(h.key&&h.key.type==="PrivateIdentifier"&&lBr(s,h))this.raiseRecoverable(h.key.start,"Identifier '#"+h.key.name+"' has already been declared")}}return this.strict=t,this.next(),r.body=this.finishNode(l,"ClassBody"),this.exitClassBody(),this.finishNode(r,i?"ClassDeclaration":"ClassExpression")};Hi.parseClassElement=function(r){if(this.eat(fr.semi))return null;var i=this.options.ecmaVersion,t=this.startNode(),s="",l=!1,u=!1,h="method",c=!1;if(this.eatContextual("static")){if(i>=13&&this.eat(fr.braceL))return this.parseClassStaticBlock(t),t;if(this.isClassElementNameStart()||this.type===fr.star)c=!0;else s="static"}if(t.static=c,!s&&i>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===fr.star)&&!this.canInsertSemicolon())u=!0;else s="async";if(!s&&(i>=9||!u)&&this.eat(fr.star))l=!0;if(!s&&!u&&!l){var p=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())h=p;else s=p}if(s)t.computed=!1,t.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),t.key.name=s,this.finishNode(t.key,"Identifier");else this.parseClassElementName(t);if(i<13||this.type===fr.parenL||h!=="method"||l||u){var w=!t.static&&j2(t,"constructor"),P=w&&r;if(w&&h!=="method")this.raise(t.key.start,"Constructor can't have get/set modifier");t.kind=w?"constructor":h,this.parseClassMethod(t,l,u,P)}else this.parseClassField(t);return t};Hi.isClassElementNameStart=function(){return this.type===fr.name||this.type===fr.privateId||this.type===fr.num||this.type===fr.string||this.type===fr.bracketL||this.type.keyword};Hi.parseClassElementName=function(r){if(this.type===fr.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");r.computed=!1,r.key=this.parsePrivateIdent()}else this.parsePropertyName(r)};Hi.parseClassMethod=function(r,i,t,s){var l=r.key;if(r.kind==="constructor"){if(i)this.raise(l.start,"Constructor can't be a generator");if(t)this.raise(l.start,"Constructor can't be an async method")}else if(r.static&&j2(r,"prototype"))this.raise(l.start,"Classes may not have a static property named prototype");var u=r.value=this.parseMethod(i,t,s);if(r.kind==="get"&&u.params.length!==0)this.raiseRecoverable(u.start,"getter should have no params");if(r.kind==="set"&&u.params.length!==1)this.raiseRecoverable(u.start,"setter should have exactly one param");if(r.kind==="set"&&u.params[0].type==="RestElement")this.raiseRecoverable(u.params[0].start,"Setter cannot use rest params");return this.finishNode(r,"MethodDefinition")};Hi.parseClassField=function(r){if(j2(r,"constructor"))this.raise(r.key.start,"Classes can't have a field named 'constructor'");else if(r.static&&j2(r,"prototype"))this.raise(r.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(fr.eq)){var i=this.currentThisScope(),t=i.inClassFieldInit;i.inClassFieldInit=!0,r.value=this.parseMaybeAssign(),i.inClassFieldInit=t}else r.value=null;return this.semicolon(),this.finishNode(r,"PropertyDefinition")};Hi.parseClassStaticBlock=function(r){r.body=[];var i=this.labels;this.labels=[],this.enterScope(Kp|g4);while(this.type!==fr.braceR){var t=this.parseStatement(null);r.body.push(t)}return this.next(),this.exitScope(),this.labels=i,this.finishNode(r,"StaticBlock")};Hi.parseClassId=function(r,i){if(this.type===fr.name){if(r.id=this.parseIdent(),i)this.checkLValSimple(r.id,su,!1)}else{if(i===!0)this.unexpected();r.id=null}};Hi.parseClassSuper=function(r){r.superClass=this.eat(fr._extends)?this.parseExprSubscripts(!1):null};Hi.enterClassBody=function(){var r={declared:Object.create(null),used:[]};return this.privateNameStack.push(r),r.declared};Hi.exitClassBody=function(){var r=this.privateNameStack.pop(),i=r.declared,t=r.used,s=this.privateNameStack.length,l=s===0?null:this.privateNameStack[s-1];for(var u=0;u<t.length;++u){var h=t[u];if(!Gp(i,h.name))if(l)l.used.push(h);else this.raiseRecoverable(h.start,"Private field '#"+h.name+"' must be declared in an enclosing class")}};Hi.parseExport=function(r,i){if(this.next(),this.eat(fr.star)){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))r.exported=this.parseModuleExportName(),this.checkExport(i,r.exported,this.lastTokStart);else r.exported=null;if(this.expectContextual("from"),this.type!==fr.string)this.unexpected();return r.source=this.parseExprAtom(),this.semicolon(),this.finishNode(r,"ExportAllDeclaration")}if(this.eat(fr._default)){this.checkExport(i,"default",this.lastTokStart);var t;if(this.type===fr._function||(t=this.isAsyncFunction())){var s=this.startNode();if(this.next(),t)this.next();r.declaration=this.parseFunction(s,Pp|Rnr,!1,t)}else if(this.type===fr._class){var l=this.startNode();r.declaration=this.parseClass(l,"nullableID")}else r.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(r,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement()){if(r.declaration=this.parseStatement(null),r.declaration.type==="VariableDeclaration")this.checkVariableExport(i,r.declaration.declarations);else this.checkExport(i,r.declaration.id,r.declaration.id.start);r.specifiers=[],r.source=null}else{if(r.declaration=null,r.specifiers=this.parseExportSpecifiers(i),this.eatContextual("from")){if(this.type!==fr.string)this.unexpected();r.source=this.parseExprAtom()}else{for(var u=0,h=r.specifiers;u<h.length;u+=1){var c=h[u];if(this.checkUnreserved(c.local),this.checkLocalExport(c.local),c.local.type==="Literal")this.raise(c.local.start,"A string literal cannot be used as an exported binding without `from`.")}r.source=null}this.semicolon()}return this.finishNode(r,"ExportNamedDeclaration")};Hi.checkExport=function(r,i,t){if(!r)return;if(typeof i!=="string")i=i.type==="Identifier"?i.name:i.value;if(Gp(r,i))this.raiseRecoverable(t,"Duplicate export '"+i+"'");r[i]=!0};Hi.checkPatternExport=function(r,i){var t=i.type;if(t==="Identifier")this.checkExport(r,i,i.start);else if(t==="ObjectPattern")for(var s=0,l=i.properties;s<l.length;s+=1){var u=l[s];this.checkPatternExport(r,u)}else if(t==="ArrayPattern")for(var h=0,c=i.elements;h<c.length;h+=1){var p=c[h];if(p)this.checkPatternExport(r,p)}else if(t==="Property")this.checkPatternExport(r,i.value);else if(t==="AssignmentPattern")this.checkPatternExport(r,i.left);else if(t==="RestElement")this.checkPatternExport(r,i.argument);else if(t==="ParenthesizedExpression")this.checkPatternExport(r,i.expression)};Hi.checkVariableExport=function(r,i){if(!r)return;for(var t=0,s=i;t<s.length;t+=1){var l=s[t];this.checkPatternExport(r,l.id)}};Hi.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};Hi.parseExportSpecifiers=function(r){var i=[],t=!0;this.expect(fr.braceL);while(!this.eat(fr.braceR)){if(!t){if(this.expect(fr.comma),this.afterTrailingComma(fr.braceR))break}else t=!1;var s=this.startNode();s.local=this.parseModuleExportName(),s.exported=this.eatContextual("as")?this.parseModuleExportName():s.local,this.checkExport(r,s.exported,s.exported.start),i.push(this.finishNode(s,"ExportSpecifier"))}return i};Hi.parseImport=function(r){if(this.next(),this.type===fr.string)r.specifiers=aBr,r.source=this.parseExprAtom();else r.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),r.source=this.type===fr.string?this.parseExprAtom():this.unexpected();return this.semicolon(),this.finishNode(r,"ImportDeclaration")};Hi.parseImportSpecifiers=function(){var r=[],i=!0;if(this.type===fr.name){var t=this.startNode();if(t.local=this.parseIdent(),this.checkLValSimple(t.local,su),r.push(this.finishNode(t,"ImportDefaultSpecifier")),!this.eat(fr.comma))return r}if(this.type===fr.star){var s=this.startNode();return this.next(),this.expectContextual("as"),s.local=this.parseIdent(),this.checkLValSimple(s.local,su),r.push(this.finishNode(s,"ImportNamespaceSpecifier")),r}this.expect(fr.braceL);while(!this.eat(fr.braceR)){if(!i){if(this.expect(fr.comma),this.afterTrailingComma(fr.braceR))break}else i=!1;var l=this.startNode();if(l.imported=this.parseModuleExportName(),this.eatContextual("as"))l.local=this.parseIdent();else this.checkUnreserved(l.imported),l.local=l.imported;this.checkLValSimple(l.local,su),r.push(this.finishNode(l,"ImportSpecifier"))}return r};Hi.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===fr.string){var r=this.parseLiteral(this.value);if(rBr.test(r.value))this.raise(r.start,"An export name cannot include a lone surrogate.");return r}return this.parseIdent(!0)};Hi.adaptDirectivePrologue=function(r){for(var i=0;i<r.length&&this.isDirectiveCandidate(r[i]);++i)r[i].directive=r[i].expression.raw.slice(1,-1)};Hi.isDirectiveCandidate=function(r){return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value==="string"&&(this.input[r.start]==='"'||this.input[r.start]==="'")};Ga=Pe.prototype;Ga.toAssignable=function(r,i,t){if(this.options.ecmaVersion>=6&&r)switch(r.type){case"Identifier":if(this.inAsync&&r.name==="await")this.raise(r.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(r.type="ObjectPattern",t)this.checkPatternErrors(t,!0);for(var s=0,l=r.properties;s<l.length;s+=1){var u=l[s];if(this.toAssignable(u,i),u.type==="RestElement"&&(u.argument.type==="ArrayPattern"||u.argument.type==="ObjectPattern"))this.raise(u.argument.start,"Unexpected token")}break;case"Property":if(r.kind!=="init")this.raise(r.key.start,"Object pattern can't contain getter or setter");this.toAssignable(r.value,i);break;case"ArrayExpression":if(r.type="ArrayPattern",t)this.checkPatternErrors(t,!0);this.toAssignableList(r.elements,i);break;case"SpreadElement":if(r.type="RestElement",this.toAssignable(r.argument,i),r.argument.type==="AssignmentPattern")this.raise(r.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(r.operator!=="=")this.raise(r.left.end,"Only '=' operator can be used for specifying default value.");r.type="AssignmentPattern",delete r.operator,this.toAssignable(r.left,i);break;case"ParenthesizedExpression":this.toAssignable(r.expression,i,t);break;case"ChainExpression":this.raiseRecoverable(r.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!i)break;default:this.raise(r.start,"Assigning to rvalue")}else if(t)this.checkPatternErrors(t,!0);return r};Ga.toAssignableList=function(r,i){var t=r.length;for(var s=0;s<t;s++){var l=r[s];if(l)this.toAssignable(l,i)}if(t){var u=r[t-1];if(this.options.ecmaVersion===6&&i&&u&&u.type==="RestElement"&&u.argument.type!=="Identifier")this.unexpected(u.argument.start)}return r};Ga.parseSpread=function(r){var i=this.startNode();return this.next(),i.argument=this.parseMaybeAssign(!1,r),this.finishNode(i,"SpreadElement")};Ga.parseRestBinding=function(){var r=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==fr.name)this.unexpected();return r.argument=this.parseBindingAtom(),this.finishNode(r,"RestElement")};Ga.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case fr.bracketL:var r=this.startNode();return this.next(),r.elements=this.parseBindingList(fr.bracketR,!0,!0),this.finishNode(r,"ArrayPattern");case fr.braceL:return this.parseObj(!0)}return this.parseIdent()};Ga.parseBindingList=function(r,i,t){var s=[],l=!0;while(!this.eat(r)){if(l)l=!1;else this.expect(fr.comma);if(i&&this.type===fr.comma)s.push(null);else if(t&&this.afterTrailingComma(r))break;else if(this.type===fr.ellipsis){var u=this.parseRestBinding();if(this.parseBindingListItem(u),s.push(u),this.type===fr.comma)this.raise(this.start,"Comma is not permitted after the rest element");this.expect(r);break}else{var h=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(h),s.push(h)}}return s};Ga.parseBindingListItem=function(r){return r};Ga.parseMaybeDefault=function(r,i,t){if(t=t||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(fr.eq))return t;var s=this.startNodeAt(r,i);return s.left=t,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")};Ga.checkLValSimple=function(r,i,t){if(i===void 0)i=N2;var s=i!==N2;switch(r.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(r.name))this.raiseRecoverable(r.start,(s?"Binding ":"Assigning to ")+r.name+" in strict mode");if(s){if(i===su&&r.name==="let")this.raiseRecoverable(r.start,"let is disallowed as a lexically bound name");if(t){if(Gp(t,r.name))this.raiseRecoverable(r.start,"Argument name clash");t[r.name]=!0}if(i!==gnr)this.declareName(r.name,i,r.start)}break;case"ChainExpression":this.raiseRecoverable(r.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(s)this.raiseRecoverable(r.start,"Binding member expression");break;case"ParenthesizedExpression":if(s)this.raiseRecoverable(r.start,"Binding parenthesized expression");return this.checkLValSimple(r.expression,i,t);default:this.raise(r.start,(s?"Binding":"Assigning to")+" rvalue")}};Ga.checkLValPattern=function(r,i,t){if(i===void 0)i=N2;switch(r.type){case"ObjectPattern":for(var s=0,l=r.properties;s<l.length;s+=1){var u=l[s];this.checkLValInnerPattern(u,i,t)}break;case"ArrayPattern":for(var h=0,c=r.elements;h<c.length;h+=1){var p=c[h];if(p)this.checkLValInnerPattern(p,i,t)}break;default:this.checkLValSimple(r,i,t)}};Ga.checkLValInnerPattern=function(r,i,t){if(i===void 0)i=N2;switch(r.type){case"Property":this.checkLValInnerPattern(r.value,i,t);break;case"AssignmentPattern":this.checkLValPattern(r.left,i,t);break;case"RestElement":this.checkLValPattern(r.argument,i,t);break;default:this.checkLValPattern(r,i,t)}};kt={b_stat:new Ja("{",!1),b_expr:new Ja("{",!0),b_tmpl:new Ja("${",!1),p_stat:new Ja("(",!1),p_expr:new Ja("(",!0),q_tmpl:new Ja("`",!0,!0,function(r){return r.tryReadTemplateToken()}),f_stat:new Ja("function",!1),f_expr:new Ja("function",!0),f_expr_gen:new Ja("function",!0,!1,null,!0),f_gen:new Ja("function",!1,!1,null,!0)},cn=Pe.prototype;cn.initialContext=function(){return[kt.b_stat]};cn.curContext=function(){return this.context[this.context.length-1]};cn.braceIsBlock=function(r){var i=this.curContext();if(i===kt.f_expr||i===kt.f_stat)return!0;if(r===fr.colon&&(i===kt.b_stat||i===kt.b_expr))return!i.isExpr;if(r===fr._return||r===fr.name&&this.exprAllowed)return ba.test(this.input.slice(this.lastTokEnd,this.start));if(r===fr._else||r===fr.semi||r===fr.eof||r===fr.parenR||r===fr.arrow)return!0;if(r===fr.braceL)return i===kt.b_stat;if(r===fr._var||r===fr._const||r===fr.name)return!1;return!this.exprAllowed};cn.inGeneratorContext=function(){for(var r=this.context.length-1;r>=1;r--){var i=this.context[r];if(i.token==="function")return i.generator}return!1};cn.updateContext=function(r){var i,t=this.type;if(t.keyword&&r===fr.dot)this.exprAllowed=!1;else if(i=t.updateContext)i.call(this,r);else this.exprAllowed=t.beforeExpr};cn.overrideContext=function(r){if(this.curContext()!==r)this.context[this.context.length-1]=r};fr.parenR.updateContext=fr.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var r=this.context.pop();if(r===kt.b_stat&&this.curContext().token==="function")r=this.context.pop();this.exprAllowed=!r.isExpr};fr.braceL.updateContext=function(r){this.context.push(this.braceIsBlock(r)?kt.b_stat:kt.b_expr),this.exprAllowed=!0};fr.dollarBraceL.updateContext=function(){this.context.push(kt.b_tmpl),this.exprAllowed=!0};fr.parenL.updateContext=function(r){var i=r===fr._if||r===fr._for||r===fr._with||r===fr._while;this.context.push(i?kt.p_stat:kt.p_expr),this.exprAllowed=!0};fr.incDec.updateContext=function(){};fr._function.updateContext=fr._class.updateContext=function(r){if(r.beforeExpr&&r!==fr._else&&!(r===fr.semi&&this.curContext()!==kt.p_stat)&&!(r===fr._return&&ba.test(this.input.slice(this.lastTokEnd,this.start)))&&!((r===fr.colon||r===fr.braceL)&&this.curContext()===kt.b_stat))this.context.push(kt.f_expr);else this.context.push(kt.f_stat);this.exprAllowed=!1};fr.backQuote.updateContext=function(){if(this.curContext()===kt.q_tmpl)this.context.pop();else this.context.push(kt.q_tmpl);this.exprAllowed=!1};fr.star.updateContext=function(r){if(r===fr._function){var i=this.context.length-1;if(this.context[i]===kt.f_expr)this.context[i]=kt.f_expr_gen;else this.context[i]=kt.f_gen}this.exprAllowed=!0};fr.name.updateContext=function(r){var i=!1;if(this.options.ecmaVersion>=6&&r!==fr.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())i=!0}this.exprAllowed=i};at=Pe.prototype;at.checkPropClash=function(r,i,t){if(this.options.ecmaVersion>=9&&r.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(r.computed||r.method||r.shorthand))return;var s=r.key,l;switch(s.type){case"Identifier":l=s.name;break;case"Literal":l=String(s.value);break;default:return}var u=r.kind;if(this.options.ecmaVersion>=6){if(l==="__proto__"&&u==="init"){if(i.proto)if(t){if(t.doubleProto<0)t.doubleProto=s.start}else this.raiseRecoverable(s.start,"Redefinition of __proto__ property");i.proto=!0}return}l="$"+l;var h=i[l];if(h){var c;if(u==="init")c=this.strict&&h.init||h.get||h.set;else c=h.init||h[u];if(c)this.raiseRecoverable(s.start,"Redefinition of property")}else h=i[l]={init:!1,get:!1,set:!1};h[u]=!0};at.parseExpression=function(r,i){var t=this.start,s=this.startLoc,l=this.parseMaybeAssign(r,i);if(this.type===fr.comma){var u=this.startNodeAt(t,s);u.expressions=[l];while(this.eat(fr.comma))u.expressions.push(this.parseMaybeAssign(r,i));return this.finishNode(u,"SequenceExpression")}return l};at.parseMaybeAssign=function(r,i,t){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(r);else this.exprAllowed=!1;var s=!1,l=-1,u=-1,h=-1;if(i)l=i.parenthesizedAssign,u=i.trailingComma,h=i.doubleProto,i.parenthesizedAssign=i.trailingComma=-1;else i=new c9,s=!0;var c=this.start,p=this.startLoc;if(this.type===fr.parenL||this.type===fr.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=r==="await";var w=this.parseMaybeConditional(r,i);if(t)w=t.call(this,w,c,p);if(this.type.isAssign){var P=this.startNodeAt(c,p);if(P.operator=this.value,this.type===fr.eq)w=this.toAssignable(w,!1,i);if(!s)i.parenthesizedAssign=i.trailingComma=i.doubleProto=-1;if(i.shorthandAssign>=w.start)i.shorthandAssign=-1;if(this.type===fr.eq)this.checkLValPattern(w);else this.checkLValSimple(w);if(P.left=w,this.next(),P.right=this.parseMaybeAssign(r),h>-1)i.doubleProto=h;return this.finishNode(P,"AssignmentExpression")}else if(s)this.checkExpressionErrors(i,!0);if(l>-1)i.parenthesizedAssign=l;if(u>-1)i.trailingComma=u;return w};at.parseMaybeConditional=function(r,i){var t=this.start,s=this.startLoc,l=this.parseExprOps(r,i);if(this.checkExpressionErrors(i))return l;if(this.eat(fr.question)){var u=this.startNodeAt(t,s);return u.test=l,u.consequent=this.parseMaybeAssign(),this.expect(fr.colon),u.alternate=this.parseMaybeAssign(r),this.finishNode(u,"ConditionalExpression")}return l};at.parseExprOps=function(r,i){var t=this.start,s=this.startLoc,l=this.parseMaybeUnary(i,!1,!1,r);if(this.checkExpressionErrors(i))return l;return l.start===t&&l.type==="ArrowFunctionExpression"?l:this.parseExprOp(l,t,s,-1,r)};at.parseExprOp=function(r,i,t,s,l){var u=this.type.binop;if(u!=null&&(!l||this.type!==fr._in)){if(u>s){var h=this.type===fr.logicalOR||this.type===fr.logicalAND,c=this.type===fr.coalesce;if(c)u=fr.logicalAND.binop;var p=this.value;this.next();var w=this.start,P=this.startLoc,M=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,l),w,P,u,l),b=this.buildBinary(i,t,r,M,p,h||c);if(h&&this.type===fr.coalesce||c&&(this.type===fr.logicalOR||this.type===fr.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(b,i,t,s,l)}}return r};at.buildBinary=function(r,i,t,s,l,u){if(s.type==="PrivateIdentifier")this.raise(s.start,"Private identifier can only be left side of binary expression");var h=this.startNodeAt(r,i);return h.left=t,h.operator=l,h.right=s,this.finishNode(h,u?"LogicalExpression":"BinaryExpression")};at.parseMaybeUnary=function(r,i,t,s){var l=this.start,u=this.startLoc,h;if(this.isContextual("await")&&this.canAwait)h=this.parseAwait(s),i=!0;else if(this.type.prefix){var c=this.startNode(),p=this.type===fr.incDec;if(c.operator=this.value,c.prefix=!0,this.next(),c.argument=this.parseMaybeUnary(null,!0,p,s),this.checkExpressionErrors(r,!0),p)this.checkLValSimple(c.argument);else if(this.strict&&c.operator==="delete"&&c.argument.type==="Identifier")this.raiseRecoverable(c.start,"Deleting local variable in strict mode");else if(c.operator==="delete"&&Anr(c.argument))this.raiseRecoverable(c.start,"Private fields can not be deleted");else i=!0;h=this.finishNode(c,p?"UpdateExpression":"UnaryExpression")}else if(!i&&this.type===fr.privateId){if(s||this.privateNameStack.length===0)this.unexpected();if(h=this.parsePrivateIdent(),this.type!==fr._in)this.unexpected()}else{if(h=this.parseExprSubscripts(r,s),this.checkExpressionErrors(r))return h;while(this.type.postfix&&!this.canInsertSemicolon()){var w=this.startNodeAt(l,u);w.operator=this.value,w.prefix=!1,w.argument=h,this.checkLValSimple(h),this.next(),h=this.finishNode(w,"UpdateExpression")}}if(!t&&this.eat(fr.starstar))if(i)this.unexpected(this.lastTokStart);else return this.buildBinary(l,u,h,this.parseMaybeUnary(null,!1,!1,s),"**",!1);else return h};at.parseExprSubscripts=function(r,i){var t=this.start,s=this.startLoc,l=this.parseExprAtom(r,i);if(l.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return l;var u=this.parseSubscripts(l,t,s,!1,i);if(r&&u.type==="MemberExpression"){if(r.parenthesizedAssign>=u.start)r.parenthesizedAssign=-1;if(r.parenthesizedBind>=u.start)r.parenthesizedBind=-1;if(r.trailingComma>=u.start)r.trailingComma=-1}return u};at.parseSubscripts=function(r,i,t,s,l){var u=this.options.ecmaVersion>=8&&r.type==="Identifier"&&r.name==="async"&&this.lastTokEnd===r.end&&!this.canInsertSemicolon()&&r.end-r.start===5&&this.potentialArrowAt===r.start,h=!1;while(!0){var c=this.parseSubscript(r,i,t,s,u,h,l);if(c.optional)h=!0;if(c===r||c.type==="ArrowFunctionExpression"){if(h){var p=this.startNodeAt(i,t);p.expression=c,c=this.finishNode(p,"ChainExpression")}return c}r=c}};at.parseSubscript=function(r,i,t,s,l,u,h){var c=this.options.ecmaVersion>=11,p=c&&this.eat(fr.questionDot);if(s&&p)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var w=this.eat(fr.bracketL);if(w||p&&this.type!==fr.parenL&&this.type!==fr.backQuote||this.eat(fr.dot)){var P=this.startNodeAt(i,t);if(P.object=r,w)P.property=this.parseExpression(),this.expect(fr.bracketR);else if(this.type===fr.privateId&&r.type!=="Super")P.property=this.parsePrivateIdent();else P.property=this.parseIdent(this.options.allowReserved!=="never");if(P.computed=!!w,c)P.optional=p;r=this.finishNode(P,"MemberExpression")}else if(!s&&this.eat(fr.parenL)){var M=new c9,b=this.yieldPos,o=this.awaitPos,L=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var I=this.parseExprList(fr.parenR,this.options.ecmaVersion>=8,!1,M);if(l&&!p&&!this.canInsertSemicolon()&&this.eat(fr.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=o,this.awaitIdentPos=L,this.parseArrowExpression(this.startNodeAt(i,t),I,!0,h)}this.checkExpressionErrors(M,!0),this.yieldPos=b||this.yieldPos,this.awaitPos=o||this.awaitPos,this.awaitIdentPos=L||this.awaitIdentPos;var j=this.startNodeAt(i,t);if(j.callee=r,j.arguments=I,c)j.optional=p;r=this.finishNode(j,"CallExpression")}else if(this.type===fr.backQuote){if(p||u)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var H=this.startNodeAt(i,t);H.tag=r,H.quasi=this.parseTemplate({isTagged:!0}),r=this.finishNode(H,"TaggedTemplateExpression")}return r};at.parseExprAtom=function(r,i){if(this.type===fr.slash)this.readRegexp();var t,s=this.potentialArrowAt===this.start;switch(this.type){case fr._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(t=this.startNode(),this.next(),this.type===fr.parenL&&!this.allowDirectSuper)this.raise(t.start,"super() call outside constructor of a subclass");if(this.type!==fr.dot&&this.type!==fr.bracketL&&this.type!==fr.parenL)this.unexpected();return this.finishNode(t,"Super");case fr._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case fr.name:var l=this.start,u=this.startLoc,h=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!h&&c.name==="async"&&!this.canInsertSemicolon()&&this.eat(fr._function))return this.overrideContext(kt.f_expr),this.parseFunction(this.startNodeAt(l,u),0,!1,!0,i);if(s&&!this.canInsertSemicolon()){if(this.eat(fr.arrow))return this.parseArrowExpression(this.startNodeAt(l,u),[c],!1,i);if(this.options.ecmaVersion>=8&&c.name==="async"&&this.type===fr.name&&!h&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(c=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(fr.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(l,u),[c],!0,i)}}return c;case fr.regexp:var p=this.value;return t=this.parseLiteral(p.value),t.regex={pattern:p.pattern,flags:p.flags},t;case fr.num:case fr.string:return this.parseLiteral(this.value);case fr._null:case fr._true:case fr._false:return t=this.startNode(),t.value=this.type===fr._null?null:this.type===fr._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case fr.parenL:var w=this.start,P=this.parseParenAndDistinguishExpression(s,i);if(r){if(r.parenthesizedAssign<0&&!this.isSimpleAssignTarget(P))r.parenthesizedAssign=w;if(r.parenthesizedBind<0)r.parenthesizedBind=w}return P;case fr.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(fr.bracketR,!0,!0,r),this.finishNode(t,"ArrayExpression");case fr.braceL:return this.overrideContext(kt.b_expr),this.parseObj(!1,r);case fr._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case fr._class:return this.parseClass(this.startNode(),!1);case fr._new:return this.parseNew();case fr.backQuote:return this.parseTemplate();case fr._import:if(this.options.ecmaVersion>=11)return this.parseExprImport();else return this.unexpected();default:this.unexpected()}};at.parseExprImport=function(){var r=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");var i=this.parseIdent(!0);switch(this.type){case fr.parenL:return this.parseDynamicImport(r);case fr.dot:return r.meta=i,this.parseImportMeta(r);default:this.unexpected()}};at.parseDynamicImport=function(r){if(this.next(),r.source=this.parseMaybeAssign(),!this.eat(fr.parenR)){var i=this.start;if(this.eat(fr.comma)&&this.eat(fr.parenR))this.raiseRecoverable(i,"Trailing comma is not allowed in import()");else this.unexpected(i)}return this.finishNode(r,"ImportExpression")};at.parseImportMeta=function(r){this.next();var i=this.containsEsc;if(r.property=this.parseIdent(!0),r.property.name!=="meta")this.raiseRecoverable(r.property.start,"The only valid meta property for import is 'import.meta'");if(i)this.raiseRecoverable(r.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(r.start,"Cannot use 'import.meta' outside a module");return this.finishNode(r,"MetaProperty")};at.parseLiteral=function(r){var i=this.startNode();if(i.value=r,i.raw=this.input.slice(this.start,this.end),i.raw.charCodeAt(i.raw.length-1)===110)i.bigint=i.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(i,"Literal")};at.parseParenExpression=function(){this.expect(fr.parenL);var r=this.parseExpression();return this.expect(fr.parenR),r};at.parseParenAndDistinguishExpression=function(r,i){var t=this.start,s=this.startLoc,l,u=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var h=this.start,c=this.startLoc,p=[],w=!0,P=!1,M=new c9,b=this.yieldPos,o=this.awaitPos,L;this.yieldPos=0,this.awaitPos=0;while(this.type!==fr.parenR)if(w?w=!1:this.expect(fr.comma),u&&this.afterTrailingComma(fr.parenR,!0)){P=!0;break}else if(this.type===fr.ellipsis){if(L=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===fr.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else p.push(this.parseMaybeAssign(!1,M,this.parseParenItem));var I=this.lastTokEnd,j=this.lastTokEndLoc;if(this.expect(fr.parenR),r&&!this.canInsertSemicolon()&&this.eat(fr.arrow))return this.checkPatternErrors(M,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=b,this.awaitPos=o,this.parseParenArrowList(t,s,p,i);if(!p.length||P)this.unexpected(this.lastTokStart);if(L)this.unexpected(L);if(this.checkExpressionErrors(M,!0),this.yieldPos=b||this.yieldPos,this.awaitPos=o||this.awaitPos,p.length>1)l=this.startNodeAt(h,c),l.expressions=p,this.finishNodeAt(l,"SequenceExpression",I,j);else l=p[0]}else l=this.parseParenExpression();if(this.options.preserveParens){var H=this.startNodeAt(t,s);return H.expression=l,this.finishNode(H,"ParenthesizedExpression")}else return l};at.parseParenItem=function(r){return r};at.parseParenArrowList=function(r,i,t,s){return this.parseArrowExpression(this.startNodeAt(r,i),t,!1,s)};uBr=[];at.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var r=this.startNode(),i=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(fr.dot)){r.meta=i;var t=this.containsEsc;if(r.property=this.parseIdent(!0),r.property.name!=="target")this.raiseRecoverable(r.property.start,"The only valid meta property for new is 'new.target'");if(t)this.raiseRecoverable(r.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(r.start,"'new.target' can only be used in functions and class static block");return this.finishNode(r,"MetaProperty")}var s=this.start,l=this.startLoc,u=this.type===fr._import;if(r.callee=this.parseSubscripts(this.parseExprAtom(),s,l,!0,!1),u&&r.callee.type==="ImportExpression")this.raise(s,"Cannot use new with import()");if(this.eat(fr.parenL))r.arguments=this.parseExprList(fr.parenR,this.options.ecmaVersion>=8,!1);else r.arguments=uBr;return this.finishNode(r,"NewExpression")};at.parseTemplateElement=function(r){var i=r.isTagged,t=this.startNode();if(this.type===fr.invalidTemplate){if(!i)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");t.value={raw:this.value,cooked:null}}else t.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
56
56
  `),cooked:this.value};return this.next(),t.tail=this.type===fr.backQuote,this.finishNode(t,"TemplateElement")};at.parseTemplate=function(r){if(r===void 0)r={};var i=r.isTagged;if(i===void 0)i=!1;var t=this.startNode();this.next(),t.expressions=[];var s=this.parseTemplateElement({isTagged:i});t.quasis=[s];while(!s.tail){if(this.type===fr.eof)this.raise(this.pos,"Unterminated template literal");this.expect(fr.dollarBraceL),t.expressions.push(this.parseExpression()),this.expect(fr.braceR),t.quasis.push(s=this.parseTemplateElement({isTagged:i}))}return this.next(),this.finishNode(t,"TemplateLiteral")};at.isAsyncProp=function(r){return!r.computed&&r.key.type==="Identifier"&&r.key.name==="async"&&(this.type===fr.name||this.type===fr.num||this.type===fr.string||this.type===fr.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===fr.star)&&!ba.test(this.input.slice(this.lastTokEnd,this.start))};at.parseObj=function(r,i){var t=this.startNode(),s=!0,l={};t.properties=[],this.next();while(!this.eat(fr.braceR)){if(!s){if(this.expect(fr.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(fr.braceR))break}else s=!1;var u=this.parseProperty(r,i);if(!r)this.checkPropClash(u,l,i);t.properties.push(u)}return this.finishNode(t,r?"ObjectPattern":"ObjectExpression")};at.parseProperty=function(r,i){var t=this.startNode(),s,l,u,h;if(this.options.ecmaVersion>=9&&this.eat(fr.ellipsis)){if(r){if(t.argument=this.parseIdent(!1),this.type===fr.comma)this.raise(this.start,"Comma is not permitted after the rest element");return this.finishNode(t,"RestElement")}if(this.type===fr.parenL&&i){if(i.parenthesizedAssign<0)i.parenthesizedAssign=this.start;if(i.parenthesizedBind<0)i.parenthesizedBind=this.start}if(t.argument=this.parseMaybeAssign(!1,i),this.type===fr.comma&&i&&i.trailingComma<0)i.trailingComma=this.start;return this.finishNode(t,"SpreadElement")}if(this.options.ecmaVersion>=6){if(t.method=!1,t.shorthand=!1,r||i)u=this.start,h=this.startLoc;if(!r)s=this.eat(fr.star)}var c=this.containsEsc;if(this.parsePropertyName(t),!r&&!c&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(t))l=!0,s=this.options.ecmaVersion>=9&&this.eat(fr.star),this.parsePropertyName(t,i);else l=!1;return this.parsePropertyValue(t,r,s,l,u,h,i,c),this.finishNode(t,"Property")};at.parsePropertyValue=function(r,i,t,s,l,u,h,c){if((t||s)&&this.type===fr.colon)this.unexpected();if(this.eat(fr.colon))r.value=i?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,h),r.kind="init";else if(this.options.ecmaVersion>=6&&this.type===fr.parenL){if(i)this.unexpected();r.kind="init",r.method=!0,r.value=this.parseMethod(t,s)}else if(!i&&!c&&this.options.ecmaVersion>=5&&!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&(this.type!==fr.comma&&this.type!==fr.braceR&&this.type!==fr.eq)){if(t||s)this.unexpected();r.kind=r.key.name,this.parsePropertyName(r),r.value=this.parseMethod(!1);var p=r.kind==="get"?0:1;if(r.value.params.length!==p){var w=r.value.start;if(r.kind==="get")this.raiseRecoverable(w,"getter should have no params");else this.raiseRecoverable(w,"setter should have exactly one param")}else if(r.kind==="set"&&r.value.params[0].type==="RestElement")this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params")}else if(this.options.ecmaVersion>=6&&!r.computed&&r.key.type==="Identifier"){if(t||s)this.unexpected();if(this.checkUnreserved(r.key),r.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=l;if(r.kind="init",i)r.value=this.parseMaybeDefault(l,u,this.copyNode(r.key));else if(this.type===fr.eq&&h){if(h.shorthandAssign<0)h.shorthandAssign=this.start;r.value=this.parseMaybeDefault(l,u,this.copyNode(r.key))}else r.value=this.copyNode(r.key);r.shorthand=!0}else this.unexpected()};at.parsePropertyName=function(r){if(this.options.ecmaVersion>=6)if(this.eat(fr.bracketL))return r.computed=!0,r.key=this.parseMaybeAssign(),this.expect(fr.bracketR),r.key;else r.computed=!1;return r.key=this.type===fr.num||this.type===fr.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};at.initFunction=function(r){if(r.id=null,this.options.ecmaVersion>=6)r.generator=r.expression=!1;if(this.options.ecmaVersion>=8)r.async=!1};at.parseMethod=function(r,i,t){var s=this.startNode(),l=this.yieldPos,u=this.awaitPos,h=this.awaitIdentPos;if(this.initFunction(s),this.options.ecmaVersion>=6)s.generator=r;if(this.options.ecmaVersion>=8)s.async=!!i;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(A4(i,s.generator)|g4|(t?qnr:0)),this.expect(fr.parenL),s.params=this.parseBindingList(fr.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=l,this.awaitPos=u,this.awaitIdentPos=h,this.finishNode(s,"FunctionExpression")};at.parseArrowExpression=function(r,i,t,s){var l=this.yieldPos,u=this.awaitPos,h=this.awaitIdentPos;if(this.enterScope(A4(t,!1)|wnr),this.initFunction(r),this.options.ecmaVersion>=8)r.async=!!t;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,r.params=this.toAssignableList(i,!0),this.parseFunctionBody(r,!0,!1,s),this.yieldPos=l,this.awaitPos=u,this.awaitIdentPos=h,this.finishNode(r,"ArrowFunctionExpression")};at.parseFunctionBody=function(r,i,t,s){var l=i&&this.type!==fr.braceL,u=this.strict,h=!1;if(l)r.body=this.parseMaybeAssign(s),r.expression=!0,this.checkParams(r,!1);else{var c=this.options.ecmaVersion>=7&&!this.isSimpleParamList(r.params);if(!u||c){if(h=this.strictDirective(this.end),h&&c)this.raiseRecoverable(r.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var p=this.labels;if(this.labels=[],h)this.strict=!0;if(this.checkParams(r,!u&&!h&&!i&&!t&&this.isSimpleParamList(r.params)),this.strict&&r.id)this.checkLValSimple(r.id,gnr);r.body=this.parseBlock(!1,void 0,h&&!u),r.expression=!1,this.adaptDirectivePrologue(r.body.body),this.labels=p}this.exitScope()};at.isSimpleParamList=function(r){for(var i=0,t=r;i<t.length;i+=1){var s=t[i];if(s.type!=="Identifier")return!1}return!0};at.checkParams=function(r,i){var t=Object.create(null);for(var s=0,l=r.params;s<l.length;s+=1){var u=l[s];this.checkLValInnerPattern(u,M4,i?null:t)}};at.parseExprList=function(r,i,t,s){var l=[],u=!0;while(!this.eat(r)){if(!u){if(this.expect(fr.comma),i&&this.afterTrailingComma(r))break}else u=!1;var h=void 0;if(t&&this.type===fr.comma)h=null;else if(this.type===fr.ellipsis){if(h=this.parseSpread(s),s&&this.type===fr.comma&&s.trailingComma<0)s.trailingComma=this.start}else h=this.parseMaybeAssign(!1,s);l.push(h)}return l};at.checkUnreserved=function(r){var{start:i,end:t,name:s}=r;if(this.inGenerator&&s==="yield")this.raiseRecoverable(i,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&s==="await")this.raiseRecoverable(i,"Cannot use 'await' as identifier inside an async function");if(this.currentThisScope().inClassFieldInit&&s==="arguments")this.raiseRecoverable(i,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(s==="arguments"||s==="await"))this.raise(i,"Cannot use "+s+" in class static initialization block");if(this.keywords.test(s))this.raise(i,"Unexpected keyword '"+s+"'");if(this.options.ecmaVersion<6&&this.input.slice(i,t).indexOf("\\")!==-1)return;var l=this.strict?this.reservedWordsStrict:this.reservedWords;if(l.test(s)){if(!this.inAsync&&s==="await")this.raiseRecoverable(i,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(i,"The keyword '"+s+"' is reserved")}};at.parseIdent=function(r,i){var t=this.startNode();if(this.type===fr.name)t.name=this.value;else if(this.type.keyword){if(t.name=this.type.keyword,(t.name==="class"||t.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop()}else this.unexpected();if(this.next(!!r),this.finishNode(t,"Identifier"),!r){if(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=t.start}return t};at.parsePrivateIdent=function(){var r=this.startNode();if(this.type===fr.privateId)r.name=this.value;else this.unexpected();if(this.next(),this.finishNode(r,"PrivateIdentifier"),this.privateNameStack.length===0)this.raise(r.start,"Private field '#"+r.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(r);return r};at.parseYield=function(r){if(!this.yieldPos)this.yieldPos=this.start;var i=this.startNode();if(this.next(),this.type===fr.semi||this.canInsertSemicolon()||this.type!==fr.star&&!this.type.startsExpr)i.delegate=!1,i.argument=null;else i.delegate=this.eat(fr.star),i.argument=this.parseMaybeAssign(r);return this.finishNode(i,"YieldExpression")};at.parseAwait=function(r){if(!this.awaitPos)this.awaitPos=this.start;var i=this.startNode();return this.next(),i.argument=this.parseMaybeUnary(null,!0,!1,r),this.finishNode(i,"AwaitExpression")};z2=Pe.prototype;z2.raise=function(r,i){var t=bnr(this.input,r);i+=" ("+t.line+":"+t.column+")";var s=SyntaxError(i);throw s.pos=r,s.loc=t,s.raisedAt=this.pos,s};z2.raiseRecoverable=z2.raise;z2.curPosition=function(){if(this.options.locations)return new Bp(this.curLine,this.pos-this.lineStart)};ff=Pe.prototype;ff.enterScope=function(r){this.scopeStack.push(new fBr(r))};ff.exitScope=function(){this.scopeStack.pop()};ff.treatFunctionsAsVarInScope=function(r){return r.flags&nn||!this.inModule&&r.flags&Hp};ff.declareName=function(r,i,t){var s=!1;if(i===su){var l=this.currentScope();if(s=l.lexical.indexOf(r)>-1||l.functions.indexOf(r)>-1||l.var.indexOf(r)>-1,l.lexical.push(r),this.inModule&&l.flags&Hp)delete this.undefinedExports[r]}else if(i===$nr){var u=this.currentScope();u.lexical.push(r)}else if(i===Pnr){var h=this.currentScope();if(this.treatFunctionsAsVar)s=h.lexical.indexOf(r)>-1;else s=h.lexical.indexOf(r)>-1||h.var.indexOf(r)>-1;h.functions.push(r)}else for(var c=this.scopeStack.length-1;c>=0;--c){var p=this.scopeStack[c];if(p.lexical.indexOf(r)>-1&&!(p.flags&Cnr&&p.lexical[0]===r)||!this.treatFunctionsAsVarInScope(p)&&p.functions.indexOf(r)>-1){s=!0;break}if(p.var.push(r),this.inModule&&p.flags&Hp)delete this.undefinedExports[r];if(p.flags&R4)break}if(s)this.raiseRecoverable(t,"Identifier '"+r+"' has already been declared")};ff.checkLocalExport=function(r){if(this.scopeStack[0].lexical.indexOf(r.name)===-1&&this.scopeStack[0].var.indexOf(r.name)===-1)this.undefinedExports[r.name]=r};ff.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};ff.currentVarScope=function(){for(var r=this.scopeStack.length-1;;r--){var i=this.scopeStack[r];if(i.flags&R4)return i}};ff.currentThisScope=function(){for(var r=this.scopeStack.length-1;;r--){var i=this.scopeStack[r];if(i.flags&R4&&!(i.flags&wnr))return i}};Xp=Pe.prototype;Xp.startNode=function(){return new y9(this,this.start,this.startLoc)};Xp.startNodeAt=function(r,i){return new y9(this,r,i)};Xp.finishNode=function(r,i){return Mnr.call(this,r,i,this.lastTokEnd,this.lastTokEndLoc)};Xp.finishNodeAt=function(r,i,t,s){return Mnr.call(this,r,i,t,s)};Xp.copyNode=function(r){var i=new y9(this,r.start,this.startLoc);for(var t in r)i[t]=r[t];return i};Tnr=Snr+" Extended_Pictographic",Onr=Tnr,Lnr=Onr+" EBase EComp EMod EPres ExtPict",hBr=Lnr,nBr={9:Snr,10:Tnr,11:Onr,12:Lnr,13:hBr},Vnr=Enr+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Inr=Vnr+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Fnr=Inr+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",cBr=Fnr+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",yBr={9:Enr,10:Vnr,11:Inr,12:Fnr,13:cBr},Bnr={};for(dp=0,$2=[9,10,11,12,13];dp<$2.length;dp+=1)T7=$2[dp],vBr(T7);Ti=Pe.prototype;uu.prototype.reset=function(i,t,s){var l=s.indexOf("u")!==-1;this.start=i|0,this.source=t+"",this.flags=s,this.switchU=l&&this.parser.options.ecmaVersion>=6,this.switchN=l&&this.parser.options.ecmaVersion>=9};uu.prototype.raise=function(i){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+i)};uu.prototype.at=function(i,t){if(t===void 0)t=!1;var s=this.source,l=s.length;if(i>=l)return-1;var u=s.charCodeAt(i);if(!(t||this.switchU)||u<=55295||u>=57344||i+1>=l)return u;var h=s.charCodeAt(i+1);return h>=56320&&h<=57343?(u<<10)+h-56613888:u};uu.prototype.nextIndex=function(i,t){if(t===void 0)t=!1;var s=this.source,l=s.length;if(i>=l)return l;var u=s.charCodeAt(i),h;if(!(t||this.switchU)||u<=55295||u>=57344||i+1>=l||(h=s.charCodeAt(i+1))<56320||h>57343)return i+1;return i+2};uu.prototype.current=function(i){if(i===void 0)i=!1;return this.at(this.pos,i)};uu.prototype.lookahead=function(i){if(i===void 0)i=!1;return this.at(this.nextIndex(this.pos,i),i)};uu.prototype.advance=function(i){if(i===void 0)i=!1;this.pos=this.nextIndex(this.pos,i)};uu.prototype.eat=function(i,t){if(t===void 0)t=!1;if(this.current(t)===i)return this.advance(t),!0;return!1};Ti.validateRegExpFlags=function(r){var{validFlags:i,flags:t}=r;for(var s=0;s<t.length;s++){var l=t.charAt(s);if(i.indexOf(l)===-1)this.raise(r.start,"Invalid regular expression flag");if(t.indexOf(l,s+1)>-1)this.raise(r.start,"Duplicate regular expression flag")}};Ti.validateRegExpPattern=function(r){if(this.regexp_pattern(r),!r.switchN&&this.options.ecmaVersion>=9&&r.groupNames.length>0)r.switchN=!0,this.regexp_pattern(r)};Ti.regexp_pattern=function(r){if(r.pos=0,r.lastIntValue=0,r.lastStringValue="",r.lastAssertionIsQuantifiable=!1,r.numCapturingParens=0,r.maxBackReference=0,r.groupNames.length=0,r.backReferenceNames.length=0,this.regexp_disjunction(r),r.pos!==r.source.length){if(r.eat(41))r.raise("Unmatched ')'");if(r.eat(93)||r.eat(125))r.raise("Lone quantifier brackets")}if(r.maxBackReference>r.numCapturingParens)r.raise("Invalid escape");for(var i=0,t=r.backReferenceNames;i<t.length;i+=1){var s=t[i];if(r.groupNames.indexOf(s)===-1)r.raise("Invalid named capture referenced")}};Ti.regexp_disjunction=function(r){this.regexp_alternative(r);while(r.eat(124))this.regexp_alternative(r);if(this.regexp_eatQuantifier(r,!0))r.raise("Nothing to repeat");if(r.eat(123))r.raise("Lone quantifier brackets")};Ti.regexp_alternative=function(r){while(r.pos<r.source.length&&this.regexp_eatTerm(r));};Ti.regexp_eatTerm=function(r){if(this.regexp_eatAssertion(r)){if(r.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(r)){if(r.switchU)r.raise("Invalid quantifier")}return!0}if(r.switchU?this.regexp_eatAtom(r):this.regexp_eatExtendedAtom(r))return this.regexp_eatQuantifier(r),!0;return!1};Ti.regexp_eatAssertion=function(r){var i=r.pos;if(r.lastAssertionIsQuantifiable=!1,r.eat(94)||r.eat(36))return!0;if(r.eat(92)){if(r.eat(66)||r.eat(98))return!0;r.pos=i}if(r.eat(40)&&r.eat(63)){var t=!1;if(this.options.ecmaVersion>=9)t=r.eat(60);if(r.eat(61)||r.eat(33)){if(this.regexp_disjunction(r),!r.eat(41))r.raise("Unterminated group");return r.lastAssertionIsQuantifiable=!t,!0}}return r.pos=i,!1};Ti.regexp_eatQuantifier=function(r,i){if(i===void 0)i=!1;if(this.regexp_eatQuantifierPrefix(r,i))return r.eat(63),!0;return!1};Ti.regexp_eatQuantifierPrefix=function(r,i){return r.eat(42)||r.eat(43)||r.eat(63)||this.regexp_eatBracedQuantifier(r,i)};Ti.regexp_eatBracedQuantifier=function(r,i){var t=r.pos;if(r.eat(123)){var s=0,l=-1;if(this.regexp_eatDecimalDigits(r)){if(s=r.lastIntValue,r.eat(44)&&this.regexp_eatDecimalDigits(r))l=r.lastIntValue;if(r.eat(125)){if(l!==-1&&l<s&&!i)r.raise("numbers out of order in {} quantifier");return!0}}if(r.switchU&&!i)r.raise("Incomplete quantifier");r.pos=t}return!1};Ti.regexp_eatAtom=function(r){return this.regexp_eatPatternCharacters(r)||r.eat(46)||this.regexp_eatReverseSolidusAtomEscape(r)||this.regexp_eatCharacterClass(r)||this.regexp_eatUncapturingGroup(r)||this.regexp_eatCapturingGroup(r)};Ti.regexp_eatReverseSolidusAtomEscape=function(r){var i=r.pos;if(r.eat(92)){if(this.regexp_eatAtomEscape(r))return!0;r.pos=i}return!1};Ti.regexp_eatUncapturingGroup=function(r){var i=r.pos;if(r.eat(40)){if(r.eat(63)&&r.eat(58)){if(this.regexp_disjunction(r),r.eat(41))return!0;r.raise("Unterminated group")}r.pos=i}return!1};Ti.regexp_eatCapturingGroup=function(r){if(r.eat(40)){if(this.options.ecmaVersion>=9)this.regexp_groupSpecifier(r);else if(r.current()===63)r.raise("Invalid group");if(this.regexp_disjunction(r),r.eat(41))return r.numCapturingParens+=1,!0;r.raise("Unterminated group")}return!1};Ti.regexp_eatExtendedAtom=function(r){return r.eat(46)||this.regexp_eatReverseSolidusAtomEscape(r)||this.regexp_eatCharacterClass(r)||this.regexp_eatUncapturingGroup(r)||this.regexp_eatCapturingGroup(r)||this.regexp_eatInvalidBracedQuantifier(r)||this.regexp_eatExtendedPatternCharacter(r)};Ti.regexp_eatInvalidBracedQuantifier=function(r){if(this.regexp_eatBracedQuantifier(r,!0))r.raise("Nothing to repeat");return!1};Ti.regexp_eatSyntaxCharacter=function(r){var i=r.current();if(Hnr(i))return r.lastIntValue=i,r.advance(),!0;return!1};Ti.regexp_eatPatternCharacters=function(r){var i=r.pos,t=0;while((t=r.current())!==-1&&!Hnr(t))r.advance();return r.pos!==i};Ti.regexp_eatExtendedPatternCharacter=function(r){var i=r.current();if(i!==-1&&i!==36&&!(i>=40&&i<=43)&&i!==46&&i!==63&&i!==91&&i!==94&&i!==124)return r.advance(),!0;return!1};Ti.regexp_groupSpecifier=function(r){if(r.eat(63)){if(this.regexp_eatGroupName(r)){if(r.groupNames.indexOf(r.lastStringValue)!==-1)r.raise("Duplicate capture group name");r.groupNames.push(r.lastStringValue);return}r.raise("Invalid group")}};Ti.regexp_eatGroupName=function(r){if(r.lastStringValue="",r.eat(60)){if(this.regexp_eatRegExpIdentifierName(r)&&r.eat(62))return!0;r.raise("Invalid capture group name")}return!1};Ti.regexp_eatRegExpIdentifierName=function(r){if(r.lastStringValue="",this.regexp_eatRegExpIdentifierStart(r)){r.lastStringValue+=af(r.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(r))r.lastStringValue+=af(r.lastIntValue);return!0}return!1};Ti.regexp_eatRegExpIdentifierStart=function(r){var i=r.pos,t=this.options.ecmaVersion>=11,s=r.current(t);if(r.advance(t),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(r,t))s=r.lastIntValue;if(pBr(s))return r.lastIntValue=s,!0;return r.pos=i,!1};Ti.regexp_eatRegExpIdentifierPart=function(r){var i=r.pos,t=this.options.ecmaVersion>=11,s=r.current(t);if(r.advance(t),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(r,t))s=r.lastIntValue;if(mBr(s))return r.lastIntValue=s,!0;return r.pos=i,!1};Ti.regexp_eatAtomEscape=function(r){if(this.regexp_eatBackReference(r)||this.regexp_eatCharacterClassEscape(r)||this.regexp_eatCharacterEscape(r)||r.switchN&&this.regexp_eatKGroupName(r))return!0;if(r.switchU){if(r.current()===99)r.raise("Invalid unicode escape");r.raise("Invalid escape")}return!1};Ti.regexp_eatBackReference=function(r){var i=r.pos;if(this.regexp_eatDecimalEscape(r)){var t=r.lastIntValue;if(r.switchU){if(t>r.maxBackReference)r.maxBackReference=t;return!0}if(t<=r.numCapturingParens)return!0;r.pos=i}return!1};Ti.regexp_eatKGroupName=function(r){if(r.eat(107)){if(this.regexp_eatGroupName(r))return r.backReferenceNames.push(r.lastStringValue),!0;r.raise("Invalid named reference")}return!1};Ti.regexp_eatCharacterEscape=function(r){return this.regexp_eatControlEscape(r)||this.regexp_eatCControlLetter(r)||this.regexp_eatZero(r)||this.regexp_eatHexEscapeSequence(r)||this.regexp_eatRegExpUnicodeEscapeSequence(r,!1)||!r.switchU&&this.regexp_eatLegacyOctalEscapeSequence(r)||this.regexp_eatIdentityEscape(r)};Ti.regexp_eatCControlLetter=function(r){var i=r.pos;if(r.eat(99)){if(this.regexp_eatControlLetter(r))return!0;r.pos=i}return!1};Ti.regexp_eatZero=function(r){if(r.current()===48&&!v9(r.lookahead()))return r.lastIntValue=0,r.advance(),!0;return!1};Ti.regexp_eatControlEscape=function(r){var i=r.current();if(i===116)return r.lastIntValue=9,r.advance(),!0;if(i===110)return r.lastIntValue=10,r.advance(),!0;if(i===118)return r.lastIntValue=11,r.advance(),!0;if(i===102)return r.lastIntValue=12,r.advance(),!0;if(i===114)return r.lastIntValue=13,r.advance(),!0;return!1};Ti.regexp_eatControlLetter=function(r){var i=r.current();if(Unr(i))return r.lastIntValue=i%32,r.advance(),!0;return!1};Ti.regexp_eatRegExpUnicodeEscapeSequence=function(r,i){if(i===void 0)i=!1;var t=r.pos,s=i||r.switchU;if(r.eat(117)){if(this.regexp_eatFixedHexDigits(r,4)){var l=r.lastIntValue;if(s&&l>=55296&&l<=56319){var u=r.pos;if(r.eat(92)&&r.eat(117)&&this.regexp_eatFixedHexDigits(r,4)){var h=r.lastIntValue;if(h>=56320&&h<=57343)return r.lastIntValue=(l-55296)*1024+(h-56320)+65536,!0}r.pos=u,r.lastIntValue=l}return!0}if(s&&r.eat(123)&&this.regexp_eatHexDigits(r)&&r.eat(125)&&oBr(r.lastIntValue))return!0;if(s)r.raise("Invalid unicode escape");r.pos=t}return!1};Ti.regexp_eatIdentityEscape=function(r){if(r.switchU){if(this.regexp_eatSyntaxCharacter(r))return!0;if(r.eat(47))return r.lastIntValue=47,!0;return!1}var i=r.current();if(i!==99&&(!r.switchN||i!==107))return r.lastIntValue=i,r.advance(),!0;return!1};Ti.regexp_eatDecimalEscape=function(r){r.lastIntValue=0;var i=r.current();if(i>=49&&i<=57){do r.lastIntValue=10*r.lastIntValue+(i-48),r.advance();while((i=r.current())>=48&&i<=57);return!0}return!1};Ti.regexp_eatCharacterClassEscape=function(r){var i=r.current();if(bBr(i))return r.lastIntValue=-1,r.advance(),!0;if(r.switchU&&this.options.ecmaVersion>=9&&(i===80||i===112)){if(r.lastIntValue=-1,r.advance(),r.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(r)&&r.eat(125))return!0;r.raise("Invalid property name")}return!1};Ti.regexp_eatUnicodePropertyValueExpression=function(r){var i=r.pos;if(this.regexp_eatUnicodePropertyName(r)&&r.eat(61)){var t=r.lastStringValue;if(this.regexp_eatUnicodePropertyValue(r)){var s=r.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(r,t,s),!0}}if(r.pos=i,this.regexp_eatLoneUnicodePropertyNameOrValue(r)){var l=r.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(r,l),!0}return!1};Ti.regexp_validateUnicodePropertyNameAndValue=function(r,i,t){if(!Gp(r.unicodeProperties.nonBinary,i))r.raise("Invalid property name");if(!r.unicodeProperties.nonBinary[i].test(t))r.raise("Invalid property value")};Ti.regexp_validateUnicodePropertyNameOrValue=function(r,i){if(!r.unicodeProperties.binary.test(i))r.raise("Invalid property name")};Ti.regexp_eatUnicodePropertyName=function(r){var i=0;r.lastStringValue="";while(Nnr(i=r.current()))r.lastStringValue+=af(i),r.advance();return r.lastStringValue!==""};Ti.regexp_eatUnicodePropertyValue=function(r){var i=0;r.lastStringValue="";while(dBr(i=r.current()))r.lastStringValue+=af(i),r.advance();return r.lastStringValue!==""};Ti.regexp_eatLoneUnicodePropertyNameOrValue=function(r){return this.regexp_eatUnicodePropertyValue(r)};Ti.regexp_eatCharacterClass=function(r){if(r.eat(91)){if(r.eat(94),this.regexp_classRanges(r),r.eat(93))return!0;r.raise("Unterminated character class")}return!1};Ti.regexp_classRanges=function(r){while(this.regexp_eatClassAtom(r)){var i=r.lastIntValue;if(r.eat(45)&&this.regexp_eatClassAtom(r)){var t=r.lastIntValue;if(r.switchU&&(i===-1||t===-1))r.raise("Invalid character class");if(i!==-1&&t!==-1&&i>t)r.raise("Range out of order in character class")}}};Ti.regexp_eatClassAtom=function(r){var i=r.pos;if(r.eat(92)){if(this.regexp_eatClassEscape(r))return!0;if(r.switchU){var t=r.current();if(t===99||Znr(t))r.raise("Invalid class escape");r.raise("Invalid escape")}r.pos=i}var s=r.current();if(s!==93)return r.lastIntValue=s,r.advance(),!0;return!1};Ti.regexp_eatClassEscape=function(r){var i=r.pos;if(r.eat(98))return r.lastIntValue=8,!0;if(r.switchU&&r.eat(45))return r.lastIntValue=45,!0;if(!r.switchU&&r.eat(99)){if(this.regexp_eatClassControlLetter(r))return!0;r.pos=i}return this.regexp_eatCharacterClassEscape(r)||this.regexp_eatCharacterEscape(r)};Ti.regexp_eatClassControlLetter=function(r){var i=r.current();if(v9(i)||i===95)return r.lastIntValue=i%32,r.advance(),!0;return!1};Ti.regexp_eatHexEscapeSequence=function(r){var i=r.pos;if(r.eat(120)){if(this.regexp_eatFixedHexDigits(r,2))return!0;if(r.switchU)r.raise("Invalid escape");r.pos=i}return!1};Ti.regexp_eatDecimalDigits=function(r){var i=r.pos,t=0;r.lastIntValue=0;while(v9(t=r.current()))r.lastIntValue=10*r.lastIntValue+(t-48),r.advance();return r.pos!==i};Ti.regexp_eatHexDigits=function(r){var i=r.pos,t=0;r.lastIntValue=0;while(jnr(t=r.current()))r.lastIntValue=16*r.lastIntValue+znr(t),r.advance();return r.pos!==i};Ti.regexp_eatLegacyOctalEscapeSequence=function(r){if(this.regexp_eatOctalDigit(r)){var i=r.lastIntValue;if(this.regexp_eatOctalDigit(r)){var t=r.lastIntValue;if(i<=3&&this.regexp_eatOctalDigit(r))r.lastIntValue=i*64+t*8+r.lastIntValue;else r.lastIntValue=i*8+t}else r.lastIntValue=i;return!0}return!1};Ti.regexp_eatOctalDigit=function(r){var i=r.current();if(Znr(i))return r.lastIntValue=i-48,r.advance(),!0;return r.lastIntValue=0,!1};Ti.regexp_eatFixedHexDigits=function(r,i){var t=r.pos;r.lastIntValue=0;for(var s=0;s<i;++s){var l=r.current();if(!jnr(l))return r.pos=t,!1;r.lastIntValue=16*r.lastIntValue+znr(l),r.advance()}return!0};pt=Pe.prototype;pt.next=function(r){if(!r&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new T4(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};pt.getToken=function(){return this.next(),new T4(this)};if(typeof Symbol<"u")pt[Symbol.iterator]=function(){var r=this;return{next:function(){var i=r.getToken();return{done:i.type===fr.eof,value:i}}}};pt.nextToken=function(){var r=this.curContext();if(!r||!r.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(fr.eof);if(r.override)return r.override(this);else this.readToken(this.fullCharCodeAtPos())};pt.readToken=function(r){if(lu(r,this.options.ecmaVersion>=6)||r===92)return this.readWord();return this.getTokenFromCode(r)};pt.fullCharCodeAtPos=function(){var r=this.input.charCodeAt(this.pos);if(r<=55295||r>=56320)return r;var i=this.input.charCodeAt(this.pos+1);return i<=56319||i>=57344?r:(r<<10)+i-56613888};pt.skipBlockComment=function(){var r=this.options.onComment&&this.curPosition(),i=this.pos,t=this.input.indexOf("*/",this.pos+=2);if(t===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=t+2,this.options.locations)for(var s=void 0,l=i;(s=pnr(this.input,l,this.pos))>-1;)++this.curLine,l=this.lineStart=s;if(this.options.onComment)this.options.onComment(!0,this.input.slice(i+2,t),i,this.pos,r,this.curPosition())};pt.skipLineComment=function(r){var i=this.pos,t=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=r);while(this.pos<this.input.length&&!hn(s))s=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(i+r,this.pos),i,this.pos,t,this.curPosition())};pt.skipSpace=function(){r:while(this.pos<this.input.length){var r=this.input.charCodeAt(this.pos);switch(r){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 r}break;default:if(r>8&&r<14||r>=5760&&mnr.test(String.fromCharCode(r)))++this.pos;else break r}}};pt.finishToken=function(r,i){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var t=this.type;this.type=r,this.value=i,this.updateContext(t)};pt.readToken_dot=function(){var r=this.input.charCodeAt(this.pos+1);if(r>=48&&r<=57)return this.readNumber(!0);var i=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&r===46&&i===46)return this.pos+=3,this.finishToken(fr.ellipsis);else return++this.pos,this.finishToken(fr.dot)};pt.readToken_slash=function(){var r=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(r===61)return this.finishOp(fr.assign,2);return this.finishOp(fr.slash,1)};pt.readToken_mult_modulo_exp=function(r){var i=this.input.charCodeAt(this.pos+1),t=1,s=r===42?fr.star:fr.modulo;if(this.options.ecmaVersion>=7&&r===42&&i===42)++t,s=fr.starstar,i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(fr.assign,t+1);return this.finishOp(s,t)};pt.readToken_pipe_amp=function(r){var i=this.input.charCodeAt(this.pos+1);if(i===r){if(this.options.ecmaVersion>=12){var t=this.input.charCodeAt(this.pos+2);if(t===61)return this.finishOp(fr.assign,3)}return this.finishOp(r===124?fr.logicalOR:fr.logicalAND,2)}if(i===61)return this.finishOp(fr.assign,2);return this.finishOp(r===124?fr.bitwiseOR:fr.bitwiseAND,1)};pt.readToken_caret=function(){var r=this.input.charCodeAt(this.pos+1);if(r===61)return this.finishOp(fr.assign,2);return this.finishOp(fr.bitwiseXOR,1)};pt.readToken_plus_min=function(r){var i=this.input.charCodeAt(this.pos+1);if(i===r){if(i===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||ba.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(fr.incDec,2)}if(i===61)return this.finishOp(fr.assign,2);return this.finishOp(fr.plusMin,1)};pt.readToken_lt_gt=function(r){var i=this.input.charCodeAt(this.pos+1),t=1;if(i===r){if(t=r===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+t)===61)return this.finishOp(fr.assign,t+1);return this.finishOp(fr.bitShift,t)}if(i===33&&r===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(i===61)t=2;return this.finishOp(fr.relational,t)};pt.readToken_eq_excl=function(r){var i=this.input.charCodeAt(this.pos+1);if(i===61)return this.finishOp(fr.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(r===61&&i===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(fr.arrow);return this.finishOp(r===61?fr.eq:fr.prefix,1)};pt.readToken_question=function(){var r=this.options.ecmaVersion;if(r>=11){var i=this.input.charCodeAt(this.pos+1);if(i===46){var t=this.input.charCodeAt(this.pos+2);if(t<48||t>57)return this.finishOp(fr.questionDot,2)}if(i===63){if(r>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(fr.assign,3)}return this.finishOp(fr.coalesce,2)}}return this.finishOp(fr.question,1)};pt.readToken_numberSign=function(){var r=this.options.ecmaVersion,i=35;if(r>=13){if(++this.pos,i=this.fullCharCodeAtPos(),lu(i,!0)||i===92)return this.finishToken(fr.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+af(i)+"'")};pt.getTokenFromCode=function(r){switch(r){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(fr.parenL);case 41:return++this.pos,this.finishToken(fr.parenR);case 59:return++this.pos,this.finishToken(fr.semi);case 44:return++this.pos,this.finishToken(fr.comma);case 91:return++this.pos,this.finishToken(fr.bracketL);case 93:return++this.pos,this.finishToken(fr.bracketR);case 123:return++this.pos,this.finishToken(fr.braceL);case 125:return++this.pos,this.finishToken(fr.braceR);case 58:return++this.pos,this.finishToken(fr.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(fr.backQuote);case 48:var i=this.input.charCodeAt(this.pos+1);if(i===120||i===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(i===111||i===79)return this.readRadixNumber(8);if(i===98||i===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(r);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(r);case 124:case 38:return this.readToken_pipe_amp(r);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(r);case 60:case 62:return this.readToken_lt_gt(r);case 61:case 33:return this.readToken_eq_excl(r);case 63:return this.readToken_question();case 126:return this.finishOp(fr.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+af(r)+"'")};pt.finishOp=function(r,i){var t=this.input.slice(this.pos,this.pos+i);return this.pos+=i,this.finishToken(r,t)};pt.readRegexp=function(){var r,i,t=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(t,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(ba.test(s))this.raise(t,"Unterminated regular expression");if(!r){if(s==="[")i=!0;else if(s==="]"&&i)i=!1;else if(s==="/"&&!i)break;r=s==="\\"}else r=!1;++this.pos}var l=this.input.slice(t,this.pos);++this.pos;var u=this.pos,h=this.readWord1();if(this.containsEsc)this.unexpected(u);var c=this.regexpState||(this.regexpState=new uu(this));c.reset(t,l,h),this.validateRegExpFlags(c),this.validateRegExpPattern(c);var p=null;try{p=new RegExp(l,h)}catch(w){}return this.finishToken(fr.regexp,{pattern:l,flags:h,value:p})};pt.readInt=function(r,i,t){var s=this.options.ecmaVersion>=12&&i===void 0,l=t&&this.input.charCodeAt(this.pos)===48,u=this.pos,h=0,c=0;for(var p=0,w=i==null?1/0:i;p<w;++p,++this.pos){var P=this.input.charCodeAt(this.pos),M=void 0;if(s&&P===95){if(l)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(c===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(p===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");c=P;continue}if(P>=97)M=P-97+10;else if(P>=65)M=P-65+10;else if(P>=48&&P<=57)M=P-48;else M=1/0;if(M>=r)break;c=P,h=h*r+M}if(s&&c===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===u||i!=null&&this.pos-u!==i)return null;return h};pt.readRadixNumber=function(r){var i=this.pos;this.pos+=2;var t=this.readInt(r);if(t==null)this.raise(this.start+2,"Expected number in radix "+r);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)t=Qnr(this.input.slice(i,this.pos)),++this.pos;else if(lu(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(fr.num,t)};pt.readNumber=function(r){var i=this.pos;if(!r&&this.readInt(10,void 0,!0)===null)this.raise(i,"Invalid number");var t=this.pos-i>=2&&this.input.charCodeAt(i)===48;if(t&&this.strict)this.raise(i,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!t&&!r&&this.options.ecmaVersion>=11&&s===110){var l=Qnr(this.input.slice(i,this.pos));if(++this.pos,lu(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(fr.num,l)}if(t&&/[89]/.test(this.input.slice(i,this.pos)))t=!1;if(s===46&&!t)++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos);if((s===69||s===101)&&!t){if(s=this.input.charCodeAt(++this.pos),s===43||s===45)++this.pos;if(this.readInt(10)===null)this.raise(i,"Invalid number")}if(lu(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var u=wBr(this.input.slice(i,this.pos),t);return this.finishToken(fr.num,u)};pt.readCodePoint=function(){var r=this.input.charCodeAt(this.pos),i;if(r===123){if(this.options.ecmaVersion<6)this.unexpected();var t=++this.pos;if(i=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,i>1114111)this.invalidStringToken(t,"Code point out of bounds")}else i=this.readHexChar(4);return i};pt.readString=function(r){var i="",t=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===r)break;if(s===92)i+=this.input.slice(t,this.pos),i+=this.readEscapedChar(!1),t=this.pos;else if(s===8232||s===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(hn(s))this.raise(this.start,"Unterminated string constant");++this.pos}}return i+=this.input.slice(t,this.pos++),this.finishToken(fr.string,i)};Jnr={};pt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(r){if(r===Jnr)this.readInvalidTemplateToken();else throw r}this.inTemplateElement=!1};pt.invalidStringToken=function(r,i){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Jnr;else this.raise(r,i)};pt.readTmplToken=function(){var r="",i=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var t=this.input.charCodeAt(this.pos);if(t===96||t===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===fr.template||this.type===fr.invalidTemplate))if(t===36)return this.pos+=2,this.finishToken(fr.dollarBraceL);else return++this.pos,this.finishToken(fr.backQuote);return r+=this.input.slice(i,this.pos),this.finishToken(fr.template,r)}if(t===92)r+=this.input.slice(i,this.pos),r+=this.readEscapedChar(!0),i=this.pos;else if(hn(t)){switch(r+=this.input.slice(i,this.pos),++this.pos,t){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:r+=`
57
57
  `;break;default:r+=String.fromCharCode(t);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;i=this.pos}else++this.pos}};pt.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(fr.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")};pt.readEscapedChar=function(r){var i=this.input.charCodeAt(++this.pos);switch(++this.pos,i){case 110:return`
58
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return af(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(r){var t=this.pos-1;return this.invalidStringToken(t,"Invalid escape sequence in template string"),null}default:if(i>=48&&i<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],l=parseInt(s,8);if(l>255)s=s.slice(0,-1),l=parseInt(s,8);if(this.pos+=s.length-1,i=this.input.charCodeAt(this.pos),(s!=="0"||i===56||i===57)&&(this.strict||r))this.invalidStringToken(this.pos-1-s.length,r?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(l)}if(hn(i))return"";return String.fromCharCode(i)}};pt.readHexChar=function(r){var i=this.pos,t=this.readInt(16,r);if(t===null)this.invalidStringToken(i,"Bad character escape sequence");return t};pt.readWord1=function(){this.containsEsc=!1;var r="",i=!0,t=this.pos,s=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var l=this.fullCharCodeAtPos();if(ln(l,s))this.pos+=l<=65535?1:2;else if(l===92){this.containsEsc=!0,r+=this.input.slice(t,this.pos);var u=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var h=this.readCodePoint();if(!(i?lu:ln)(h,s))this.invalidStringToken(u,"Invalid Unicode escape");r+=af(h),t=this.pos}else break;i=!1}return r+this.input.slice(t,this.pos)};pt.readWord=function(){var r=this.readWord1(),i=fr.name;if(this.keywords.test(r))i=P4[r];return this.finishToken(i,r)};Pe.acorn={Parser:Pe,version:CBr,defaultOptions:M7,Position:Bp,SourceLocation:n9,getLineInfo:bnr,Node:y9,TokenType:gt,tokTypes:fr,keywordTypes:P4,TokContext:Ja,tokContexts:kt,isIdentifierChar:ln,isIdentifierStart:lu,Token:T4,isNewLine:hn,lineBreak:ba,lineBreakG:kFr,nonASCIIwhitespace:mnr};$Br=[{active:!0,deprecated:"resolveAssetUrl",replacement:"resolveFileUrl"}];MBr={delete(){return!1},get(){return},has(){return!1},set(){}};Wnr=class Wnr extends k7{constructor(){super();this.parent=null,this.variables.set("undefined",new o4)}findVariable(r){let i=this.variables.get(r);if(!i)i=new r9(r),this.variables.set(r,i);return i}};UBr={buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1},NBr=Object.keys(UBr);J2=new cEr;J2.setMaxListeners(0);E7.on(Q2,()=>J2.emit(Q2));YBr={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}},WBr={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}};fHr=/[\x00-\x1F\x7F<>*#"{}|^[\]`;?:&=+$,]/g,hHr=/^[a-z]:/i;bhr=new Set(["auto","esModule","default","defaultOnly",!0,!1]);(function(r){r[r.ENTRY_CHUNK=0]="ENTRY_CHUNK",r[r.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",r[r.ASSET=2]="ASSET"})($p||($p={}))});var f0r=cr((jHr)=>{function s0r(r,i,t){throw Error(t?`No known conditions for "${i}" specifier in "${r}" package`:`Missing "${i}" specifier in "${r}" package`)}function a0r(r,i,t,s){let l,u,h=F4(r,t),c=function(w){let P=new Set(["default",...w.conditions||[]]);return w.unsafe||P.add(w.require?"require":"import"),w.unsafe||P.add(w.browser?"browser":"node"),P}(s||{}),p=i[h];if(p===void 0){let w,P,M,b;for(b in i)P&&b.length<P.length||(b[b.length-1]==="/"&&h.startsWith(b)?(u=h.substring(b.length),P=b):b.length>1&&(M=b.indexOf("*",1),~M&&(w=RegExp("^"+b.substring(0,M)+"(.*)"+b.substring(1+M)+"$").exec(h),w&&w[1]&&(u=w[1],P=b))));p=i[P]}return p||s0r(r,h),l=I4(p,c),l||s0r(r,h,1),u&&function(w,P){let M,b=0,o=w.length,L=/[*]/g,I=/[/]$/;for(;b<o;b++)w[b]=L.test(M=w[b])?M.replace(L,P):I.test(M)?M+P:M}(l,u),l}function F4(r,i,t){if(r===i||i===".")return".";let s=r+"/",l=s.length,u=i.slice(0,l)===s,h=u?i.slice(l):i;return h[0]==="#"?h:u||!t?h.slice(0,2)==="./"?h:"./"+h:h}function I4(r,i,t){if(r){if(typeof r=="string")return t&&t.add(r),[r];let s,l;if(Array.isArray(r)){for(l=t||new Set,s=0;s<r.length;s++)I4(r[s],i,l);if(!t&&l.size)return[...l]}else for(s in r)if(i.has(s))return I4(r[s],i,t)}}function UHr(r,i={}){let t,s=0,l=i.browser,u=i.fields||["module","main"],h=typeof l=="string";for(l&&!u.includes("browser")&&(u.unshift("browser"),h&&(l=F4(r.name,l,!0)));s<u.length;s++)if(t=r[u[s]]){if(typeof t=="string");else{if(typeof t!="object"||u[s]!="browser")continue;if(h&&(t=t[l],t==null))return l}return typeof t=="string"?"./"+t.replace(/^\.?\//,""):t}}function l0r(r,i,t){let s,l=r.exports;if(l){if(typeof l=="string")l={".":l};else for(s in l){s[0]!=="."&&(l={".":l});break}return a0r(r.name,l,i||".",t)}}function u0r(r,i,t){if(r.imports)return a0r(r.name,r.imports,i,t)}function NHr(r,i,t){return(i=F4(r.name,i||"."))[0]==="#"?u0r(r,i,t):l0r(r,i,t)}jHr.exports=l0r;jHr.imports=u0r;jHr.legacy=UHr;jHr.resolve=NHr});var Dp=cr((Lvi,n0r)=>{var YHr=Ye("path"),h0r={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:"(?:^|\\/)"},WHr={...h0r,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:"(?:[\\\\/]|$)"},GHr={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};n0r.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:GHr,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:YHr.sep,extglobChars(r){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${r.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(r){return r===!0?WHr:h0r}}});var p9=cr((rUr)=>{var KHr=Ye("path"),XHr=process.platform==="win32",{REGEX_BACKSLASH:DHr,REGEX_REMOVE_BACKSLASH:kHr,REGEX_SPECIAL_CHARS:_Hr,REGEX_SPECIAL_CHARS_GLOBAL:xHr}=Dp();rUr.isObject=(r)=>r!==null&&typeof r==="object"&&!Array.isArray(r);rUr.hasRegexChars=(r)=>_Hr.test(r);rUr.isRegexChar=(r)=>r.length===1&&rUr.hasRegexChars(r);rUr.escapeRegex=(r)=>r.replace(xHr,"\\$1");rUr.toPosixSlashes=(r)=>r.replace(DHr,"/");rUr.removeBackslashes=(r)=>{return r.replace(kHr,(i)=>{return i==="\\"?"":i})};rUr.supportsLookbehinds=()=>{let r=process.version.slice(1).split(".").map(Number);if(r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10)return!0;return!1};rUr.isWindows=(r)=>{if(r&&typeof r.windows==="boolean")return r.windows;return XHr===!0||KHr.sep==="\\"};rUr.escapeLast=(r,i,t)=>{let s=r.lastIndexOf(i,t);if(s===-1)return r;if(r[s-1]==="\\")return rUr.escapeLast(r,i,s-1);return`${r.slice(0,s)}\\${r.slice(s)}`};rUr.removePrefix=(r,i={})=>{let t=r;if(t.startsWith("./"))t=t.slice(2),i.prefix="./";return t};rUr.wrapOutput=(r,i={},t={})=>{let s=t.contains?"":"^",l=t.contains?"":"$",u=`${s}(?:${r})${l}`;if(i.negated===!0)u=`(?:^(?!${u}).*$)`;return u}});var C0r=cr((Vvi,w0r)=>{var v0r=p9(),{CHAR_ASTERISK:B4,CHAR_AT:nUr,CHAR_BACKWARD_SLASH:kp,CHAR_COMMA:cUr,CHAR_DOT:H4,CHAR_EXCLAMATION_MARK:U4,CHAR_FORWARD_SLASH:d0r,CHAR_LEFT_CURLY_BRACE:N4,CHAR_LEFT_PARENTHESES:j4,CHAR_LEFT_SQUARE_BRACKET:yUr,CHAR_PLUS:vUr,CHAR_QUESTION_MARK:p0r,CHAR_RIGHT_CURLY_BRACE:pUr,CHAR_RIGHT_PARENTHESES:m0r,CHAR_RIGHT_SQUARE_BRACKET:mUr}=Dp(),o0r=(r)=>{return r===d0r||r===kp},b0r=(r)=>{if(r.isPrefix!==!0)r.depth=r.isGlobstar?1/0:1},oUr=(r,i)=>{let t=i||{},s=r.length-1,l=t.parts===!0||t.scanToEnd===!0,u=[],h=[],c=[],p=r,w=-1,P=0,M=0,b=!1,o=!1,L=!1,I=!1,j=!1,H=!1,J=!1,W=!1,sr=!1,rr=!1,hr=0,vr,q,T={value:"",depth:0,isGlob:!1},V=()=>w>=s,S=()=>p.charCodeAt(w+1),k=()=>{return vr=q,p.charCodeAt(++w)};while(w<s){q=k();let Cr;if(q===kp){if(J=T.backslashes=!0,q=k(),q===N4)H=!0;continue}if(H===!0||q===N4){hr++;while(V()!==!0&&(q=k())){if(q===kp){J=T.backslashes=!0,k();continue}if(q===N4){hr++;continue}if(H!==!0&&q===H4&&(q=k())===H4){if(b=T.isBrace=!0,L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(H!==!0&&q===cUr){if(b=T.isBrace=!0,L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===pUr){if(hr--,hr===0){H=!1,b=T.isBrace=!0,rr=!0;break}}}if(l===!0)continue;break}if(q===d0r){if(u.push(w),h.push(T),T={value:"",depth:0,isGlob:!1},rr===!0)continue;if(vr===H4&&w===P+1){P+=2;continue}M=w+1;continue}if(t.noext!==!0){if((q===vUr||q===nUr||q===B4||q===p0r||q===U4)===!0&&S()===j4){if(L=T.isGlob=!0,I=T.isExtglob=!0,rr=!0,q===U4&&w===P)sr=!0;if(l===!0){while(V()!==!0&&(q=k())){if(q===kp){J=T.backslashes=!0,q=k();continue}if(q===m0r){L=T.isGlob=!0,rr=!0;break}}continue}break}}if(q===B4){if(vr===B4)j=T.isGlobstar=!0;if(L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===p0r){if(L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===yUr){while(V()!==!0&&(Cr=k())){if(Cr===kp){J=T.backslashes=!0,k();continue}if(Cr===mUr){o=T.isBracket=!0,L=T.isGlob=!0,rr=!0;break}}if(l===!0)continue;break}if(t.nonegate!==!0&&q===U4&&w===P){W=T.negated=!0,P++;continue}if(t.noparen!==!0&&q===j4){if(L=T.isGlob=!0,l===!0){while(V()!==!0&&(q=k())){if(q===j4){J=T.backslashes=!0,q=k();continue}if(q===m0r){rr=!0;break}}continue}break}if(L===!0){if(rr=!0,l===!0)continue;break}}if(t.noext===!0)I=!1,L=!1;let er=p,tr="",U="";if(P>0)tr=p.slice(0,P),p=p.slice(P),M-=P;if(er&&L===!0&&M>0)er=p.slice(0,M),U=p.slice(M);else if(L===!0)er="",U=p;else er=p;if(er&&er!==""&&er!=="/"&&er!==p){if(o0r(er.charCodeAt(er.length-1)))er=er.slice(0,-1)}if(t.unescape===!0){if(U)U=v0r.removeBackslashes(U);if(er&&J===!0)er=v0r.removeBackslashes(er)}let Z={prefix:tr,input:r,start:P,base:er,glob:U,isBrace:b,isBracket:o,isGlob:L,isExtglob:I,isGlobstar:j,negated:W,negatedExtglob:sr};if(t.tokens===!0){if(Z.maxDepth=0,!o0r(q))h.push(T);Z.tokens=h}if(t.parts===!0||t.tokens===!0){let Cr;for(let Pr=0;Pr<u.length;Pr++){let zr=Cr?Cr+1:P,jr=u[Pr],ri=r.slice(zr,jr);if(t.tokens){if(Pr===0&&P!==0)h[Pr].isPrefix=!0,h[Pr].value=tr;else h[Pr].value=ri;b0r(h[Pr]),Z.maxDepth+=h[Pr].depth}if(Pr!==0||ri!=="")c.push(ri);Cr=jr}if(Cr&&Cr+1<r.length){let Pr=r.slice(Cr+1);if(c.push(Pr),t.tokens)h[h.length-1].value=Pr,b0r(h[h.length-1]),Z.maxDepth+=h[h.length-1].depth}Z.slashes=u,Z.parts=c}return Z};w0r.exports=oUr});var R0r=cr((Ivi,g0r)=>{var _p=Dp(),is=p9(),{MAX_LENGTH:m9,POSIX_REGEX_SOURCE:bUr,REGEX_NON_SPECIAL_CHARS:dUr,REGEX_SPECIAL_CHARS_BACKREF:wUr,REPLACEMENTS:q0r}=_p,CUr=(r,i)=>{if(typeof i.expandRange==="function")return i.expandRange(...r,i);r.sort();let t=`[${r.join("-")}]`;try{new RegExp(t)}catch(s){return r.map((l)=>is.escapeRegex(l)).join("..")}return t},vn=(r,i)=>{return`Missing ${r}: "${i}" - use "\\\\${i}" to match literal characters`},P0r=(r)=>{let i=[],t=0,s=0,l=0,u="",h=!1;for(let c of r){if(h===!0){u+=c,h=!1;continue}if(c==="\\"){u+=c,h=!0;continue}if(c==='"'){l=l===1?0:1,u+=c;continue}if(l===0){if(c==="[")t++;else if(c==="]"&&t>0)t--;else if(t===0){if(c==="(")s++;else if(c===")"&&s>0)s--;else if(c==="|"&&s===0){i.push(u),u="";continue}}}u+=c}return i.push(u),i},qUr=(r)=>{let i=!1;for(let t of r){if(i===!0){i=!1;continue}if(t==="\\"){i=!0;continue}if(/[?*+@!()[\]{}]/.test(t))return!1}return!0},$0r=(r)=>{let i=r.trim(),t=!0;while(t===!0)if(t=!1,/^@\([^\\()[\]{}|]+\)$/.test(i))i=i.slice(2,-1),t=!0;if(!qUr(i))return;return i.replace(/\\(.)/g,"$1")},PUr=(r)=>{let i=r.map($0r).filter(Boolean);for(let t=0;t<i.length;t++)for(let s=t+1;s<i.length;s++){let l=i[t],u=i[s],h=l[0];if(!h||l!==h.repeat(l.length)||u!==h.repeat(u.length))continue;if(l===u||l.startsWith(u)||u.startsWith(l))return!0}return!1},z4=(r,i=!0)=>{if(r[0]!=="+"&&r[0]!=="*"||r[1]!=="(")return;let t=0,s=0,l=0,u=!1;for(let h=1;h<r.length;h++){let c=r[h];if(u===!0){u=!1;continue}if(c==="\\"){u=!0;continue}if(c==='"'){l=l===1?0:1;continue}if(l===1)continue;if(c==="["){t++;continue}if(c==="]"&&t>0){t--;continue}if(t>0)continue;if(c==="("){s++;continue}if(c===")"){if(s--,s===0){if(i===!0&&h!==r.length-1)return;return{type:r[0],body:r.slice(2,h),end:h}}}}},$Ur=(r)=>{let i=0,t=[];while(i<r.length){let l=z4(r.slice(i),!1);if(!l||l.type!=="*")return;let u=P0r(l.body).map((c)=>c.trim());if(u.length!==1)return;let h=$0r(u[0]);if(!h||h.length!==1)return;t.push(h),i+=l.end+1}if(t.length<1)return;return`${t.length===1?is.escapeRegex(t[0]):`[${t.map((l)=>is.escapeRegex(l)).join("")}]`}*`},gUr=(r)=>{let i=0,t=r.trim(),s=z4(t);while(s)i++,t=s.body.trim(),s=z4(t);return i},RUr=(r,i)=>{if(i.maxExtglobRecursion===!1)return{risky:!1};let t=typeof i.maxExtglobRecursion==="number"?i.maxExtglobRecursion:_p.DEFAULT_MAX_EXTGLOB_RECURSION,s=P0r(r).map((l)=>l.trim());if(s.length>1){if(s.some((l)=>l==="")||s.some((l)=>/^[*?]+$/.test(l))||PUr(s))return{risky:!0}}for(let l of s){let u=$Ur(l);if(u)return{risky:!0,safeOutput:u};if(gUr(l)>t)return{risky:!0}}return{risky:!1}},Z4=(r,i)=>{if(typeof r!=="string")throw TypeError("Expected a string");r=q0r[r]||r;let t={...i},s=typeof t.maxLength==="number"?Math.min(m9,t.maxLength):m9,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);let u={type:"bos",value:"",output:t.prepend||""},h=[u],c=t.capture?"":"?:",p=is.isWindows(i),w=_p.globChars(p),P=_p.extglobChars(w),{DOT_LITERAL:M,PLUS_LITERAL:b,SLASH_LITERAL:o,ONE_CHAR:L,DOTS_SLASH:I,NO_DOT:j,NO_DOT_SLASH:H,NO_DOTS_SLASH:J,QMARK:W,QMARK_NO_DOT:sr,STAR:rr,START_ANCHOR:hr}=w,vr=(dr)=>{return`(${c}(?:(?!${hr}${dr.dot?I:M}).)*?)`},q=t.dot?"":j,T=t.dot?W:sr,V=t.bash===!0?vr(t):rr;if(t.capture)V=`(${V})`;if(typeof t.noext==="boolean")t.noextglob=t.noext;let S={input:r,index:-1,start:0,dot:t.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};r=is.removePrefix(r,S),l=r.length;let k=[],er=[],tr=[],U=u,Z,Cr=()=>S.index===l-1,Pr=S.peek=(dr=1)=>r[S.index+dr],zr=S.advance=()=>r[++S.index]||"",jr=()=>r.slice(S.index+1),ri=(dr="",Ar=0)=>{S.consumed+=dr,S.index+=Ar},$i=(dr)=>{S.output+=dr.output!=null?dr.output:dr.value,ri(dr.value)},ji=()=>{let dr=1;while(Pr()==="!"&&(Pr(2)!=="("||Pr(3)==="?"))zr(),S.start++,dr++;if(dr%2===0)return!1;return S.negated=!0,S.start++,!0},zi=(dr)=>{S[dr]++,tr.push(dr)},Yr=(dr)=>{S[dr]--,tr.pop()},Vr=(dr)=>{if(U.type==="globstar"){let Ar=S.braces>0&&(dr.type==="comma"||dr.type==="brace"),pr=dr.extglob===!0||k.length&&(dr.type==="pipe"||dr.type==="paren");if(dr.type!=="slash"&&dr.type!=="paren"&&!Ar&&!pr)S.output=S.output.slice(0,-U.output.length),U.type="star",U.value="*",U.output=V,S.output+=U.output}if(k.length&&dr.type!=="paren")k[k.length-1].inner+=dr.value;if(dr.value||dr.output)$i(dr);if(U&&U.type==="text"&&dr.type==="text"){U.value+=dr.value,U.output=(U.output||"")+dr.value;return}dr.prev=U,h.push(dr),U=dr},lt=(dr,Ar)=>{let pr={...P[Ar],conditions:1,inner:""};pr.prev=U,pr.parens=S.parens,pr.output=S.output,pr.startIndex=S.index,pr.tokensIndex=h.length;let Er=(t.capture?"(":"")+pr.open;zi("parens"),Vr({type:dr,value:Ar,output:S.output?"":L}),Vr({type:"paren",extglob:!0,value:zr(),output:Er}),k.push(pr)},Jr=(dr)=>{let Ar=r.slice(dr.startIndex,S.index+1),pr=r.slice(dr.startIndex+2,S.index),Er=RUr(pr,t);if((dr.type==="plus"||dr.type==="star")&&Er.risky){let Dr=Er.safeOutput?(dr.output?"":L)+(t.capture?`(${Er.safeOutput})`:Er.safeOutput):void 0,et=h[dr.tokensIndex];et.type="text",et.value=Ar,et.output=Dr||is.escapeRegex(Ar);for(let Pt=dr.tokensIndex+1;Pt<h.length;Pt++)h[Pt].value="",h[Pt].output="",delete h[Pt].suffix;S.output=dr.output+et.output,S.backtrack=!0,Vr({type:"paren",extglob:!0,value:Z,output:""}),Yr("parens");return}let Zr=dr.close+(t.capture?")":""),kr;if(dr.type==="negate"){let Dr=V;if(dr.inner&&dr.inner.length>1&&dr.inner.includes("/"))Dr=vr(t);if(Dr!==V||Cr()||/^\)+$/.test(jr()))Zr=dr.close=`)$))${Dr}`;if(dr.inner.includes("*")&&(kr=jr())&&/^\.[^\\/.]+$/.test(kr)){let et=Z4(kr,{...i,fastpaths:!1}).output;Zr=dr.close=`)${et})${Dr})`}if(dr.prev.type==="bos")S.negatedExtglob=!0}Vr({type:"paren",extglob:!0,value:Z,output:Zr}),Yr("parens")};if(t.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(r)){let dr=!1,Ar=r.replace(wUr,(pr,Er,Zr,kr,Dr,et)=>{if(kr==="\\")return dr=!0,pr;if(kr==="?"){if(Er)return Er+kr+(Dr?W.repeat(Dr.length):"");if(et===0)return T+(Dr?W.repeat(Dr.length):"");return W.repeat(Zr.length)}if(kr===".")return M.repeat(Zr.length);if(kr==="*"){if(Er)return Er+kr+(Dr?V:"");return V}return Er?pr:`\\${pr}`});if(dr===!0)if(t.unescape===!0)Ar=Ar.replace(/\\/g,"");else Ar=Ar.replace(/\\+/g,(pr)=>{return pr.length%2===0?"\\\\":pr?"\\":""});if(Ar===r&&t.contains===!0)return S.output=r,S;return S.output=is.wrapOutput(Ar,S,i),S}while(!Cr()){if(Z=zr(),Z==="\x00")continue;if(Z==="\\"){let pr=Pr();if(pr==="/"&&t.bash!==!0)continue;if(pr==="."||pr===";")continue;if(!pr){Z+="\\",Vr({type:"text",value:Z});continue}let Er=/^\\+/.exec(jr()),Zr=0;if(Er&&Er[0].length>2){if(Zr=Er[0].length,S.index+=Zr,Zr%2!==0)Z+="\\"}if(t.unescape===!0)Z=zr();else Z+=zr();if(S.brackets===0){Vr({type:"text",value:Z});continue}}if(S.brackets>0&&(Z!=="]"||U.value==="["||U.value==="[^")){if(t.posix!==!1&&Z===":"){let pr=U.value.slice(1);if(pr.includes("[")){if(U.posix=!0,pr.includes(":")){let Er=U.value.lastIndexOf("["),Zr=U.value.slice(0,Er),kr=U.value.slice(Er+2),Dr=bUr[kr];if(Dr){if(U.value=Zr+Dr,S.backtrack=!0,zr(),!u.output&&h.indexOf(U)===1)u.output=L;continue}}}}if(Z==="["&&Pr()!==":"||Z==="-"&&Pr()==="]")Z=`\\${Z}`;if(Z==="]"&&(U.value==="["||U.value==="[^"))Z=`\\${Z}`;if(t.posix===!0&&Z==="!"&&U.value==="[")Z="^";U.value+=Z,$i({value:Z});continue}if(S.quotes===1&&Z!=='"'){Z=is.escapeRegex(Z),U.value+=Z,$i({value:Z});continue}if(Z==='"'){if(S.quotes=S.quotes===1?0:1,t.keepQuotes===!0)Vr({type:"text",value:Z});continue}if(Z==="("){zi("parens"),Vr({type:"paren",value:Z});continue}if(Z===")"){if(S.parens===0&&t.strictBrackets===!0)throw SyntaxError(vn("opening","("));let pr=k[k.length-1];if(pr&&S.parens===pr.parens+1){Jr(k.pop());continue}Vr({type:"paren",value:Z,output:S.parens?")":"\\)"}),Yr("parens");continue}if(Z==="["){if(t.nobracket===!0||!jr().includes("]")){if(t.nobracket!==!0&&t.strictBrackets===!0)throw SyntaxError(vn("closing","]"));Z=`\\${Z}`}else zi("brackets");Vr({type:"bracket",value:Z});continue}if(Z==="]"){if(t.nobracket===!0||U&&U.type==="bracket"&&U.value.length===1){Vr({type:"text",value:Z,output:`\\${Z}`});continue}if(S.brackets===0){if(t.strictBrackets===!0)throw SyntaxError(vn("opening","["));Vr({type:"text",value:Z,output:`\\${Z}`});continue}Yr("brackets");let pr=U.value.slice(1);if(U.posix!==!0&&pr[0]==="^"&&!pr.includes("/"))Z=`/${Z}`;if(U.value+=Z,$i({value:Z}),t.literalBrackets===!1||is.hasRegexChars(pr))continue;let Er=is.escapeRegex(U.value);if(S.output=S.output.slice(0,-U.value.length),t.literalBrackets===!0){S.output+=Er,U.value=Er;continue}U.value=`(${c}${Er}|${U.value})`,S.output+=U.value;continue}if(Z==="{"&&t.nobrace!==!0){zi("braces");let pr={type:"brace",value:Z,output:"(",outputIndex:S.output.length,tokensIndex:S.tokens.length};er.push(pr),Vr(pr);continue}if(Z==="}"){let pr=er[er.length-1];if(t.nobrace===!0||!pr){Vr({type:"text",value:Z,output:Z});continue}let Er=")";if(pr.dots===!0){let Zr=h.slice(),kr=[];for(let Dr=Zr.length-1;Dr>=0;Dr--){if(h.pop(),Zr[Dr].type==="brace")break;if(Zr[Dr].type!=="dots")kr.unshift(Zr[Dr].value)}Er=CUr(kr,t),S.backtrack=!0}if(pr.comma!==!0&&pr.dots!==!0){let Zr=S.output.slice(0,pr.outputIndex),kr=S.tokens.slice(pr.tokensIndex);pr.value=pr.output="\\{",Z=Er="\\}",S.output=Zr;for(let Dr of kr)S.output+=Dr.output||Dr.value}Vr({type:"brace",value:Z,output:Er}),Yr("braces"),er.pop();continue}if(Z==="|"){if(k.length>0)k[k.length-1].conditions++;Vr({type:"text",value:Z});continue}if(Z===","){let pr=Z,Er=er[er.length-1];if(Er&&tr[tr.length-1]==="braces")Er.comma=!0,pr="|";Vr({type:"comma",value:Z,output:pr});continue}if(Z==="/"){if(U.type==="dot"&&S.index===S.start+1){S.start=S.index+1,S.consumed="",S.output="",h.pop(),U=u;continue}Vr({type:"slash",value:Z,output:o});continue}if(Z==="."){if(S.braces>0&&U.type==="dot"){if(U.value===".")U.output=M;let pr=er[er.length-1];U.type="dots",U.output+=Z,U.value+=Z,pr.dots=!0;continue}if(S.braces+S.parens===0&&U.type!=="bos"&&U.type!=="slash"){Vr({type:"text",value:Z,output:M});continue}Vr({type:"dot",value:Z,output:M});continue}if(Z==="?"){if(!(U&&U.value==="(")&&t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){lt("qmark",Z);continue}if(U&&U.type==="paren"){let Er=Pr(),Zr=Z;if(Er==="<"&&!is.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(U.value==="("&&!/[!=<:]/.test(Er)||Er==="<"&&!/<([!=]|\w+>)/.test(jr()))Zr=`\\${Z}`;Vr({type:"text",value:Z,output:Zr});continue}if(t.dot!==!0&&(U.type==="slash"||U.type==="bos")){Vr({type:"qmark",value:Z,output:sr});continue}Vr({type:"qmark",value:Z,output:W});continue}if(Z==="!"){if(t.noextglob!==!0&&Pr()==="("){if(Pr(2)!=="?"||!/[!=<:]/.test(Pr(3))){lt("negate",Z);continue}}if(t.nonegate!==!0&&S.index===0){ji();continue}}if(Z==="+"){if(t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){lt("plus",Z);continue}if(U&&U.value==="("||t.regex===!1){Vr({type:"plus",value:Z,output:b});continue}if(U&&(U.type==="bracket"||U.type==="paren"||U.type==="brace")||S.parens>0){Vr({type:"plus",value:Z});continue}Vr({type:"plus",value:b});continue}if(Z==="@"){if(t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){Vr({type:"at",extglob:!0,value:Z,output:""});continue}Vr({type:"text",value:Z});continue}if(Z!=="*"){if(Z==="$"||Z==="^")Z=`\\${Z}`;let pr=dUr.exec(jr());if(pr)Z+=pr[0],S.index+=pr[0].length;Vr({type:"text",value:Z});continue}if(U&&(U.type==="globstar"||U.star===!0)){U.type="star",U.star=!0,U.value+=Z,U.output=V,S.backtrack=!0,S.globstar=!0,ri(Z);continue}let dr=jr();if(t.noextglob!==!0&&/^\([^?]/.test(dr)){lt("star",Z);continue}if(U.type==="star"){if(t.noglobstar===!0){ri(Z);continue}let pr=U.prev,Er=pr.prev,Zr=pr.type==="slash"||pr.type==="bos",kr=Er&&(Er.type==="star"||Er.type==="globstar");if(t.bash===!0&&(!Zr||dr[0]&&dr[0]!=="/")){Vr({type:"star",value:Z,output:""});continue}let Dr=S.braces>0&&(pr.type==="comma"||pr.type==="brace"),et=k.length&&(pr.type==="pipe"||pr.type==="paren");if(!Zr&&pr.type!=="paren"&&!Dr&&!et){Vr({type:"star",value:Z,output:""});continue}while(dr.slice(0,3)==="/**"){let Pt=r[S.index+4];if(Pt&&Pt!=="/")break;dr=dr.slice(3),ri("/**",3)}if(pr.type==="bos"&&Cr()){U.type="globstar",U.value+=Z,U.output=vr(t),S.output=U.output,S.globstar=!0,ri(Z);continue}if(pr.type==="slash"&&pr.prev.type!=="bos"&&!kr&&Cr()){S.output=S.output.slice(0,-(pr.output+U.output).length),pr.output=`(?:${pr.output}`,U.type="globstar",U.output=vr(t)+(t.strictSlashes?")":"|$)"),U.value+=Z,S.globstar=!0,S.output+=pr.output+U.output,ri(Z);continue}if(pr.type==="slash"&&pr.prev.type!=="bos"&&dr[0]==="/"){let Pt=dr[1]!==void 0?"|$":"";S.output=S.output.slice(0,-(pr.output+U.output).length),pr.output=`(?:${pr.output}`,U.type="globstar",U.output=`${vr(t)}${o}|${o}${Pt})`,U.value+=Z,S.output+=pr.output+U.output,S.globstar=!0,ri(Z+zr()),Vr({type:"slash",value:"/",output:""});continue}if(pr.type==="bos"&&dr[0]==="/"){U.type="globstar",U.value+=Z,U.output=`(?:^|${o}|${vr(t)}${o})`,S.output=U.output,S.globstar=!0,ri(Z+zr()),Vr({type:"slash",value:"/",output:""});continue}S.output=S.output.slice(0,-U.output.length),U.type="globstar",U.output=vr(t),U.value+=Z,S.output+=U.output,S.globstar=!0,ri(Z);continue}let Ar={type:"star",value:Z,output:V};if(t.bash===!0){if(Ar.output=".*?",U.type==="bos"||U.type==="slash")Ar.output=q+Ar.output;Vr(Ar);continue}if(U&&(U.type==="bracket"||U.type==="paren")&&t.regex===!0){Ar.output=Z,Vr(Ar);continue}if(S.index===S.start||U.type==="slash"||U.type==="dot"){if(U.type==="dot")S.output+=H,U.output+=H;else if(t.dot===!0)S.output+=J,U.output+=J;else S.output+=q,U.output+=q;if(Pr()!=="*")S.output+=L,U.output+=L}Vr(Ar)}while(S.brackets>0){if(t.strictBrackets===!0)throw SyntaxError(vn("closing","]"));S.output=is.escapeLast(S.output,"["),Yr("brackets")}while(S.parens>0){if(t.strictBrackets===!0)throw SyntaxError(vn("closing",")"));S.output=is.escapeLast(S.output,"("),Yr("parens")}while(S.braces>0){if(t.strictBrackets===!0)throw SyntaxError(vn("closing","}"));S.output=is.escapeLast(S.output,"{"),Yr("braces")}if(t.strictSlashes!==!0&&(U.type==="star"||U.type==="bracket"))Vr({type:"maybe_slash",value:"",output:`${o}?`});if(S.backtrack===!0){S.output="";for(let dr of S.tokens)if(S.output+=dr.output!=null?dr.output:dr.value,dr.suffix)S.output+=dr.suffix}return S};Z4.fastpaths=(r,i)=>{let t={...i},s=typeof t.maxLength==="number"?Math.min(m9,t.maxLength):m9,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);r=q0r[r]||r;let u=is.isWindows(i),{DOT_LITERAL:h,SLASH_LITERAL:c,ONE_CHAR:p,DOTS_SLASH:w,NO_DOT:P,NO_DOTS:M,NO_DOTS_SLASH:b,STAR:o,START_ANCHOR:L}=_p.globChars(u),I=t.dot?M:P,j=t.dot?b:P,H=t.capture?"":"?:",J={negated:!1,prefix:""},W=t.bash===!0?".*?":o;if(t.capture)W=`(${W})`;let sr=(q)=>{if(q.noglobstar===!0)return W;return`(${H}(?:(?!${L}${q.dot?w:h}).)*?)`},rr=(q)=>{switch(q){case"*":return`${I}${p}${W}`;case".*":return`${h}${p}${W}`;case"*.*":return`${I}${W}${h}${p}${W}`;case"*/*":return`${I}${W}${c}${p}${j}${W}`;case"**":return I+sr(t);case"**/*":return`(?:${I}${sr(t)}${c})?${j}${p}${W}`;case"**/*.*":return`(?:${I}${sr(t)}${c})?${j}${W}${h}${p}${W}`;case"**/.*":return`(?:${I}${sr(t)}${c})?${h}${p}${W}`;default:{let T=/^(.*?)\.(\w+)$/.exec(q);if(!T)return;let V=rr(T[1]);if(!V)return;return V+h+T[2]}}},hr=is.removePrefix(r,J),vr=rr(hr);if(vr&&t.strictSlashes!==!0)vr+=`${c}?`;return vr};g0r.exports=Z4});var M0r=cr((Fvi,A0r)=>{var AUr=Ye("path"),MUr=C0r(),Q4=R0r(),J4=p9(),SUr=Dp(),TUr=(r)=>r&&typeof r==="object"&&!Array.isArray(r),ce=(r,i,t=!1)=>{if(Array.isArray(r)){let P=r.map((b)=>ce(b,i,t));return(b)=>{for(let o of P){let L=o(b);if(L)return L}return!1}}let s=TUr(r)&&r.tokens&&r.input;if(r===""||typeof r!=="string"&&!s)throw TypeError("Expected pattern to be a non-empty string");let l=i||{},u=J4.isWindows(i),h=s?ce.compileRe(r,i):ce.makeRe(r,i,!1,!0),c=h.state;delete h.state;let p=()=>!1;if(l.ignore){let P={...i,ignore:null,onMatch:null,onResult:null};p=ce(l.ignore,P,t)}let w=(P,M=!1)=>{let{isMatch:b,match:o,output:L}=ce.test(P,h,i,{glob:r,posix:u}),I={glob:r,state:c,regex:h,posix:u,input:P,output:L,match:o,isMatch:b};if(typeof l.onResult==="function")l.onResult(I);if(b===!1)return I.isMatch=!1,M?I:!1;if(p(P)){if(typeof l.onIgnore==="function")l.onIgnore(I);return I.isMatch=!1,M?I:!1}if(typeof l.onMatch==="function")l.onMatch(I);return M?I:!0};if(t)w.state=c;return w};ce.test=(r,i,t,{glob:s,posix:l}={})=>{if(typeof r!=="string")throw TypeError("Expected input to be a string");if(r==="")return{isMatch:!1,output:""};let u=t||{},h=u.format||(l?J4.toPosixSlashes:null),c=r===s,p=c&&h?h(r):r;if(c===!1)p=h?h(r):r,c=p===s;if(c===!1||u.capture===!0)if(u.matchBase===!0||u.basename===!0)c=ce.matchBase(r,i,t,l);else c=i.exec(p);return{isMatch:Boolean(c),match:c,output:p}};ce.matchBase=(r,i,t,s=J4.isWindows(t))=>{return(i instanceof RegExp?i:ce.makeRe(i,t)).test(AUr.basename(r))};ce.isMatch=(r,i,t)=>ce(i,t)(r);ce.parse=(r,i)=>{if(Array.isArray(r))return r.map((t)=>ce.parse(t,i));return Q4(r,{...i,fastpaths:!1})};ce.scan=(r,i)=>MUr(r,i);ce.compileRe=(r,i,t=!1,s=!1)=>{if(t===!0)return r.output;let l=i||{},u=l.contains?"":"^",h=l.contains?"":"$",c=`${u}(?:${r.output})${h}`;if(r&&r.negated===!0)c=`^(?!${c}).*$`;let p=ce.toRegex(c,i);if(s===!0)p.state=r;return p};ce.makeRe=(r,i={},t=!1,s=!1)=>{if(!r||typeof r!=="string")throw TypeError("Expected a non-empty string");let l={negated:!1,fastpaths:!0};if(i.fastpaths!==!1&&(r[0]==="."||r[0]==="*"))l.output=Q4.fastpaths(r,i);if(!l.output)l=Q4(r,i);return ce.compileRe(l,i,t,s)};ce.toRegex=(r,i)=>{try{let t=i||{};return new RegExp(r,t.flags||(t.nocase?"i":""))}catch(t){if(i&&i.debug===!0)throw t;return/$^/}};ce.constants=SUr;A0r.exports=ce});var B0r=cr((F0r)=>{Object.defineProperty(F0r,"__esModule",{value:!0});var bn=Ye("path"),OUr=M0r();function LUr(r){return r&&typeof r==="object"&&"default"in r?r:{default:r}}var EUr=LUr(OUr),T0r=function(i,t=".js"){let s=`${i}`;if(!bn.extname(i))s+=t;return s};class on{constructor(){on.prototype.__init.call(this),on.prototype.__init2.call(this),on.prototype.__init3.call(this),on.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:(r)=>this.replacement=r}}replace(r,i,t,s){if(r)if(t!==null)r[i][t]=s;else r[i]=s}remove(r,i,t){if(r)if(t!==null)r[i].splice(t,1);else delete r[i]}}class O0r extends on{constructor(r){super();this.enter=r.enter,this.leave=r.leave}visit(r,i,t,s,l,u){if(r){if(t){let h=this.should_skip,c=this.should_remove,p=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,t.call(this.context,r,i,l,u),this.replacement)r=this.replacement,this.replace(i,l,u,r);if(this.should_remove)this.remove(i,l,u);let w=this.should_skip,P=this.should_remove;if(this.should_skip=h,this.should_remove=c,this.replacement=p,w)return r;if(P)return null}for(let h in r){let c=r[h];if(typeof c!=="object")continue;else if(Array.isArray(c)){for(let p=0;p<c.length;p+=1)if(c[p]!==null&&typeof c[p].type==="string"){if(!this.visit(c[p],r,t,s,h,p))p--}}else if(c!==null&&typeof c.type==="string")this.visit(c,r,t,s,h,null)}if(s){let h=this.replacement,c=this.should_remove;if(this.replacement=null,this.should_remove=!1,s.call(this.context,r,i,l,u),this.replacement)r=this.replacement,this.replace(i,l,u,r);if(this.should_remove)this.remove(i,l,u);let p=this.should_remove;if(this.replacement=h,this.should_remove=c,p)return null}}return r}}function VUr(r,i){return new O0r(i).visit(r,null,i.enter,i.leave)}var pn={ArrayPattern(r,i){for(let t of i.elements)if(t)pn[t.type](r,t)},AssignmentPattern(r,i){pn[i.left.type](r,i.left)},Identifier(r,i){r.push(i.name)},MemberExpression(){},ObjectPattern(r,i){for(let t of i.properties)if(t.type==="RestElement")pn.RestElement(r,t);else pn[t.value.type](r,t.value)},RestElement(r,i){pn[i.argument.type](r,i.argument)}},o9=function(i){let t=[];return pn[i.type](t,i),t},IUr={const:!0,let:!0};class mn{constructor(r={}){if(this.parent=r.parent,this.isBlockScope=!!r.block,this.declarations=Object.create(null),r.params)r.params.forEach((i)=>{o9(i).forEach((t)=>{this.declarations[t]=!0})})}addDeclaration(r,i,t){if(!i&&this.isBlockScope)this.parent.addDeclaration(r,i,t);else if(r.id)o9(r.id).forEach((s)=>{this.declarations[s]=!0})}contains(r){return this.declarations[r]||(this.parent?this.parent.contains(r):!1)}}var L0r=function(i,t="scope"){let s=new mn;return VUr(i,{enter(l,u){let h=l;if(/(Function|Class)Declaration/.test(h.type))s.addDeclaration(h,!1,!1);if(h.type==="VariableDeclaration"){let{kind:p}=h,w=IUr[p];h.declarations.forEach((P)=>{s.addDeclaration(P,w,!0)})}let c;if(/Function/.test(h.type)){let p=h;if(c=new mn({parent:s,block:!1,params:p.params}),p.type==="FunctionExpression"&&p.id)c.addDeclaration(p,!1,!1)}if(/For(In|Of)?Statement/.test(h.type))c=new mn({parent:s,block:!0});if(h.type==="BlockStatement"&&!/Function/.test(u.type))c=new mn({parent:s,block:!0});if(h.type==="CatchClause")c=new mn({parent:s,params:h.param?[h.param]:[],block:!0});if(c)Object.defineProperty(h,t,{value:c,configurable:!0}),s=c},leave(l){if(l[t])s=s.parent}}),s};function FUr(r){return Array.isArray(r)}function S0r(r){if(FUr(r))return r;if(r==null)return[];return[r]}var dn=function(i){return i.split(bn.win32.sep).join(bn.posix.sep)};function BUr(r,i){if(i===!1||bn.isAbsolute(r)||r.startsWith("*"))return dn(r);let t=dn(bn.resolve(i||"")).replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return bn.posix.join(t,dn(r))}var E0r=function(i,t,s){let l=s&&s.resolve,u=(p)=>p instanceof RegExp?p:{test:(w)=>{let P=BUr(p,l);return EUr.default(P,{dot:!0})(w)}},h=S0r(i).map(u),c=S0r(t).map(u);return function(w){if(typeof w!=="string")return!1;if(/\0/.test(w))return!1;let P=dn(w);for(let M=0;M<c.length;++M)if(c[M].test(P))return!1;for(let M=0;M<h.length;++M)if(h[M].test(P))return!0;return!h.length}},HUr="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",UUr="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",V0r=new Set(`${HUr} ${UUr}`.split(" "));V0r.add("");var d9=function(i){let t=i.replace(/-(\w)/g,(s,l)=>l.toUpperCase()).replace(/[^$_a-zA-Z0-9]/g,"_");if(/\d/.test(t[0])||V0r.has(t))t=`_${t}`;return t||"_"};function b9(r){return(JSON.stringify(r)||"undefined").replace(/[\u2028\u2029]/g,(i)=>`\\u${`000${i.charCodeAt(0).toString(16)}`.slice(-4)}`)}function NUr(r,i,t){let s="[",l=i?`
58
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return af(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(r){var t=this.pos-1;return this.invalidStringToken(t,"Invalid escape sequence in template string"),null}default:if(i>=48&&i<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],l=parseInt(s,8);if(l>255)s=s.slice(0,-1),l=parseInt(s,8);if(this.pos+=s.length-1,i=this.input.charCodeAt(this.pos),(s!=="0"||i===56||i===57)&&(this.strict||r))this.invalidStringToken(this.pos-1-s.length,r?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(l)}if(hn(i))return"";return String.fromCharCode(i)}};pt.readHexChar=function(r){var i=this.pos,t=this.readInt(16,r);if(t===null)this.invalidStringToken(i,"Bad character escape sequence");return t};pt.readWord1=function(){this.containsEsc=!1;var r="",i=!0,t=this.pos,s=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var l=this.fullCharCodeAtPos();if(ln(l,s))this.pos+=l<=65535?1:2;else if(l===92){this.containsEsc=!0,r+=this.input.slice(t,this.pos);var u=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var h=this.readCodePoint();if(!(i?lu:ln)(h,s))this.invalidStringToken(u,"Invalid Unicode escape");r+=af(h),t=this.pos}else break;i=!1}return r+this.input.slice(t,this.pos)};pt.readWord=function(){var r=this.readWord1(),i=fr.name;if(this.keywords.test(r))i=P4[r];return this.finishToken(i,r)};Pe.acorn={Parser:Pe,version:CBr,defaultOptions:M7,Position:Bp,SourceLocation:n9,getLineInfo:bnr,Node:y9,TokenType:gt,tokTypes:fr,keywordTypes:P4,TokContext:Ja,tokContexts:kt,isIdentifierChar:ln,isIdentifierStart:lu,Token:T4,isNewLine:hn,lineBreak:ba,lineBreakG:kFr,nonASCIIwhitespace:mnr};$Br=[{active:!0,deprecated:"resolveAssetUrl",replacement:"resolveFileUrl"}];MBr={delete(){return!1},get(){return},has(){return!1},set(){}};Wnr=class Wnr extends k7{constructor(){super();this.parent=null,this.variables.set("undefined",new o4)}findVariable(r){let i=this.variables.get(r);if(!i)i=new r9(r),this.variables.set(r,i);return i}};UBr={buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1},NBr=Object.keys(UBr);J2=new cEr;J2.setMaxListeners(0);E7.on(Q2,()=>J2.emit(Q2));YBr={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}},WBr={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}};fHr=/[\x00-\x1F\x7F<>*#"{}|^[\]`;?:&=+$,]/g,hHr=/^[a-z]:/i;bhr=new Set(["auto","esModule","default","defaultOnly",!0,!1]);(function(r){r[r.ENTRY_CHUNK=0]="ENTRY_CHUNK",r[r.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",r[r.ASSET=2]="ASSET"})($p||($p={}))});var f0r=cr((jHr)=>{function s0r(r,i,t){throw Error(t?`No known conditions for "${i}" specifier in "${r}" package`:`Missing "${i}" specifier in "${r}" package`)}function a0r(r,i,t,s){let l,u,h=F4(r,t),c=function(w){let P=new Set(["default",...w.conditions||[]]);return w.unsafe||P.add(w.require?"require":"import"),w.unsafe||P.add(w.browser?"browser":"node"),P}(s||{}),p=i[h];if(p===void 0){let w,P,M,b;for(b in i)P&&b.length<P.length||(b[b.length-1]==="/"&&h.startsWith(b)?(u=h.substring(b.length),P=b):b.length>1&&(M=b.indexOf("*",1),~M&&(w=RegExp("^"+b.substring(0,M)+"(.*)"+b.substring(1+M)+"$").exec(h),w&&w[1]&&(u=w[1],P=b))));p=i[P]}return p||s0r(r,h),l=I4(p,c),l||s0r(r,h,1),u&&function(w,P){let M,b=0,o=w.length,L=/[*]/g,I=/[/]$/;for(;b<o;b++)w[b]=L.test(M=w[b])?M.replace(L,P):I.test(M)?M+P:M}(l,u),l}function F4(r,i,t){if(r===i||i===".")return".";let s=r+"/",l=s.length,u=i.slice(0,l)===s,h=u?i.slice(l):i;return h[0]==="#"?h:u||!t?h.slice(0,2)==="./"?h:"./"+h:h}function I4(r,i,t){if(r){if(typeof r=="string")return t&&t.add(r),[r];let s,l;if(Array.isArray(r)){for(l=t||new Set,s=0;s<r.length;s++)I4(r[s],i,l);if(!t&&l.size)return[...l]}else for(s in r)if(i.has(s))return I4(r[s],i,t)}}function UHr(r,i={}){let t,s=0,l=i.browser,u=i.fields||["module","main"],h=typeof l=="string";for(l&&!u.includes("browser")&&(u.unshift("browser"),h&&(l=F4(r.name,l,!0)));s<u.length;s++)if(t=r[u[s]]){if(typeof t=="string");else{if(typeof t!="object"||u[s]!="browser")continue;if(h&&(t=t[l],t==null))return l}return typeof t=="string"?"./"+t.replace(/^\.?\//,""):t}}function l0r(r,i,t){let s,l=r.exports;if(l){if(typeof l=="string")l={".":l};else for(s in l){s[0]!=="."&&(l={".":l});break}return a0r(r.name,l,i||".",t)}}function u0r(r,i,t){if(r.imports)return a0r(r.name,r.imports,i,t)}function NHr(r,i,t){return(i=F4(r.name,i||"."))[0]==="#"?u0r(r,i,t):l0r(r,i,t)}jHr.exports=l0r;jHr.imports=u0r;jHr.legacy=UHr;jHr.resolve=NHr});var Dp=cr((Lvi,n0r)=>{var YHr=Ye("path"),h0r={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:"(?:^|\\/)"},WHr={...h0r,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:"(?:[\\\\/]|$)"},GHr={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};n0r.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:GHr,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:YHr.sep,extglobChars(r){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${r.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(r){return r===!0?WHr:h0r}}});var p9=cr((rUr)=>{var KHr=Ye("path"),XHr=process.platform==="win32",{REGEX_BACKSLASH:DHr,REGEX_REMOVE_BACKSLASH:kHr,REGEX_SPECIAL_CHARS:_Hr,REGEX_SPECIAL_CHARS_GLOBAL:xHr}=Dp();rUr.isObject=(r)=>r!==null&&typeof r==="object"&&!Array.isArray(r);rUr.hasRegexChars=(r)=>_Hr.test(r);rUr.isRegexChar=(r)=>r.length===1&&rUr.hasRegexChars(r);rUr.escapeRegex=(r)=>r.replace(xHr,"\\$1");rUr.toPosixSlashes=(r)=>r.replace(DHr,"/");rUr.removeBackslashes=(r)=>{return r.replace(kHr,(i)=>{return i==="\\"?"":i})};rUr.supportsLookbehinds=()=>{let r=process.version.slice(1).split(".").map(Number);if(r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10)return!0;return!1};rUr.isWindows=(r)=>{if(r&&typeof r.windows==="boolean")return r.windows;return XHr===!0||KHr.sep==="\\"};rUr.escapeLast=(r,i,t)=>{let s=r.lastIndexOf(i,t);if(s===-1)return r;if(r[s-1]==="\\")return rUr.escapeLast(r,i,s-1);return`${r.slice(0,s)}\\${r.slice(s)}`};rUr.removePrefix=(r,i={})=>{let t=r;if(t.startsWith("./"))t=t.slice(2),i.prefix="./";return t};rUr.wrapOutput=(r,i={},t={})=>{let s=t.contains?"":"^",l=t.contains?"":"$",u=`${s}(?:${r})${l}`;if(i.negated===!0)u=`(?:^(?!${u}).*$)`;return u}});var C0r=cr((Vvi,w0r)=>{var v0r=p9(),{CHAR_ASTERISK:B4,CHAR_AT:nUr,CHAR_BACKWARD_SLASH:kp,CHAR_COMMA:cUr,CHAR_DOT:H4,CHAR_EXCLAMATION_MARK:U4,CHAR_FORWARD_SLASH:d0r,CHAR_LEFT_CURLY_BRACE:N4,CHAR_LEFT_PARENTHESES:j4,CHAR_LEFT_SQUARE_BRACKET:yUr,CHAR_PLUS:vUr,CHAR_QUESTION_MARK:p0r,CHAR_RIGHT_CURLY_BRACE:pUr,CHAR_RIGHT_PARENTHESES:m0r,CHAR_RIGHT_SQUARE_BRACKET:mUr}=Dp(),o0r=(r)=>{return r===d0r||r===kp},b0r=(r)=>{if(r.isPrefix!==!0)r.depth=r.isGlobstar?1/0:1},oUr=(r,i)=>{let t=i||{},s=r.length-1,l=t.parts===!0||t.scanToEnd===!0,u=[],h=[],c=[],p=r,w=-1,P=0,M=0,b=!1,o=!1,L=!1,I=!1,j=!1,H=!1,J=!1,W=!1,sr=!1,rr=!1,hr=0,vr,q,T={value:"",depth:0,isGlob:!1},V=()=>w>=s,S=()=>p.charCodeAt(w+1),k=()=>{return vr=q,p.charCodeAt(++w)};while(w<s){q=k();let Cr;if(q===kp){if(J=T.backslashes=!0,q=k(),q===N4)H=!0;continue}if(H===!0||q===N4){hr++;while(V()!==!0&&(q=k())){if(q===kp){J=T.backslashes=!0,k();continue}if(q===N4){hr++;continue}if(H!==!0&&q===H4&&(q=k())===H4){if(b=T.isBrace=!0,L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(H!==!0&&q===cUr){if(b=T.isBrace=!0,L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===pUr){if(hr--,hr===0){H=!1,b=T.isBrace=!0,rr=!0;break}}}if(l===!0)continue;break}if(q===d0r){if(u.push(w),h.push(T),T={value:"",depth:0,isGlob:!1},rr===!0)continue;if(vr===H4&&w===P+1){P+=2;continue}M=w+1;continue}if(t.noext!==!0){if((q===vUr||q===nUr||q===B4||q===p0r||q===U4)===!0&&S()===j4){if(L=T.isGlob=!0,I=T.isExtglob=!0,rr=!0,q===U4&&w===P)sr=!0;if(l===!0){while(V()!==!0&&(q=k())){if(q===kp){J=T.backslashes=!0,q=k();continue}if(q===m0r){L=T.isGlob=!0,rr=!0;break}}continue}break}}if(q===B4){if(vr===B4)j=T.isGlobstar=!0;if(L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===p0r){if(L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===yUr){while(V()!==!0&&(Cr=k())){if(Cr===kp){J=T.backslashes=!0,k();continue}if(Cr===mUr){o=T.isBracket=!0,L=T.isGlob=!0,rr=!0;break}}if(l===!0)continue;break}if(t.nonegate!==!0&&q===U4&&w===P){W=T.negated=!0,P++;continue}if(t.noparen!==!0&&q===j4){if(L=T.isGlob=!0,l===!0){while(V()!==!0&&(q=k())){if(q===j4){J=T.backslashes=!0,q=k();continue}if(q===m0r){rr=!0;break}}continue}break}if(L===!0){if(rr=!0,l===!0)continue;break}}if(t.noext===!0)I=!1,L=!1;let er=p,tr="",U="";if(P>0)tr=p.slice(0,P),p=p.slice(P),M-=P;if(er&&L===!0&&M>0)er=p.slice(0,M),U=p.slice(M);else if(L===!0)er="",U=p;else er=p;if(er&&er!==""&&er!=="/"&&er!==p){if(o0r(er.charCodeAt(er.length-1)))er=er.slice(0,-1)}if(t.unescape===!0){if(U)U=v0r.removeBackslashes(U);if(er&&J===!0)er=v0r.removeBackslashes(er)}let Z={prefix:tr,input:r,start:P,base:er,glob:U,isBrace:b,isBracket:o,isGlob:L,isExtglob:I,isGlobstar:j,negated:W,negatedExtglob:sr};if(t.tokens===!0){if(Z.maxDepth=0,!o0r(q))h.push(T);Z.tokens=h}if(t.parts===!0||t.tokens===!0){let Cr;for(let Pr=0;Pr<u.length;Pr++){let jr=Cr?Cr+1:P,zr=u[Pr],ri=r.slice(jr,zr);if(t.tokens){if(Pr===0&&P!==0)h[Pr].isPrefix=!0,h[Pr].value=tr;else h[Pr].value=ri;b0r(h[Pr]),Z.maxDepth+=h[Pr].depth}if(Pr!==0||ri!=="")c.push(ri);Cr=zr}if(Cr&&Cr+1<r.length){let Pr=r.slice(Cr+1);if(c.push(Pr),t.tokens)h[h.length-1].value=Pr,b0r(h[h.length-1]),Z.maxDepth+=h[h.length-1].depth}Z.slashes=u,Z.parts=c}return Z};w0r.exports=oUr});var R0r=cr((Ivi,g0r)=>{var _p=Dp(),is=p9(),{MAX_LENGTH:m9,POSIX_REGEX_SOURCE:bUr,REGEX_NON_SPECIAL_CHARS:dUr,REGEX_SPECIAL_CHARS_BACKREF:wUr,REPLACEMENTS:q0r}=_p,CUr=(r,i)=>{if(typeof i.expandRange==="function")return i.expandRange(...r,i);r.sort();let t=`[${r.join("-")}]`;try{new RegExp(t)}catch(s){return r.map((l)=>is.escapeRegex(l)).join("..")}return t},vn=(r,i)=>{return`Missing ${r}: "${i}" - use "\\\\${i}" to match literal characters`},P0r=(r)=>{let i=[],t=0,s=0,l=0,u="",h=!1;for(let c of r){if(h===!0){u+=c,h=!1;continue}if(c==="\\"){u+=c,h=!0;continue}if(c==='"'){l=l===1?0:1,u+=c;continue}if(l===0){if(c==="[")t++;else if(c==="]"&&t>0)t--;else if(t===0){if(c==="(")s++;else if(c===")"&&s>0)s--;else if(c==="|"&&s===0){i.push(u),u="";continue}}}u+=c}return i.push(u),i},qUr=(r)=>{let i=!1;for(let t of r){if(i===!0){i=!1;continue}if(t==="\\"){i=!0;continue}if(/[?*+@!()[\]{}]/.test(t))return!1}return!0},$0r=(r)=>{let i=r.trim(),t=!0;while(t===!0)if(t=!1,/^@\([^\\()[\]{}|]+\)$/.test(i))i=i.slice(2,-1),t=!0;if(!qUr(i))return;return i.replace(/\\(.)/g,"$1")},PUr=(r)=>{let i=r.map($0r).filter(Boolean);for(let t=0;t<i.length;t++)for(let s=t+1;s<i.length;s++){let l=i[t],u=i[s],h=l[0];if(!h||l!==h.repeat(l.length)||u!==h.repeat(u.length))continue;if(l===u||l.startsWith(u)||u.startsWith(l))return!0}return!1},z4=(r,i=!0)=>{if(r[0]!=="+"&&r[0]!=="*"||r[1]!=="(")return;let t=0,s=0,l=0,u=!1;for(let h=1;h<r.length;h++){let c=r[h];if(u===!0){u=!1;continue}if(c==="\\"){u=!0;continue}if(c==='"'){l=l===1?0:1;continue}if(l===1)continue;if(c==="["){t++;continue}if(c==="]"&&t>0){t--;continue}if(t>0)continue;if(c==="("){s++;continue}if(c===")"){if(s--,s===0){if(i===!0&&h!==r.length-1)return;return{type:r[0],body:r.slice(2,h),end:h}}}}},$Ur=(r)=>{let i=0,t=[];while(i<r.length){let l=z4(r.slice(i),!1);if(!l||l.type!=="*")return;let u=P0r(l.body).map((c)=>c.trim());if(u.length!==1)return;let h=$0r(u[0]);if(!h||h.length!==1)return;t.push(h),i+=l.end+1}if(t.length<1)return;return`${t.length===1?is.escapeRegex(t[0]):`[${t.map((l)=>is.escapeRegex(l)).join("")}]`}*`},gUr=(r)=>{let i=0,t=r.trim(),s=z4(t);while(s)i++,t=s.body.trim(),s=z4(t);return i},RUr=(r,i)=>{if(i.maxExtglobRecursion===!1)return{risky:!1};let t=typeof i.maxExtglobRecursion==="number"?i.maxExtglobRecursion:_p.DEFAULT_MAX_EXTGLOB_RECURSION,s=P0r(r).map((l)=>l.trim());if(s.length>1){if(s.some((l)=>l==="")||s.some((l)=>/^[*?]+$/.test(l))||PUr(s))return{risky:!0}}for(let l of s){let u=$Ur(l);if(u)return{risky:!0,safeOutput:u};if(gUr(l)>t)return{risky:!0}}return{risky:!1}},Z4=(r,i)=>{if(typeof r!=="string")throw TypeError("Expected a string");r=q0r[r]||r;let t={...i},s=typeof t.maxLength==="number"?Math.min(m9,t.maxLength):m9,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);let u={type:"bos",value:"",output:t.prepend||""},h=[u],c=t.capture?"":"?:",p=is.isWindows(i),w=_p.globChars(p),P=_p.extglobChars(w),{DOT_LITERAL:M,PLUS_LITERAL:b,SLASH_LITERAL:o,ONE_CHAR:L,DOTS_SLASH:I,NO_DOT:j,NO_DOT_SLASH:H,NO_DOTS_SLASH:J,QMARK:W,QMARK_NO_DOT:sr,STAR:rr,START_ANCHOR:hr}=w,vr=(dr)=>{return`(${c}(?:(?!${hr}${dr.dot?I:M}).)*?)`},q=t.dot?"":j,T=t.dot?W:sr,V=t.bash===!0?vr(t):rr;if(t.capture)V=`(${V})`;if(typeof t.noext==="boolean")t.noextglob=t.noext;let S={input:r,index:-1,start:0,dot:t.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};r=is.removePrefix(r,S),l=r.length;let k=[],er=[],tr=[],U=u,Z,Cr=()=>S.index===l-1,Pr=S.peek=(dr=1)=>r[S.index+dr],jr=S.advance=()=>r[++S.index]||"",zr=()=>r.slice(S.index+1),ri=(dr="",Ar=0)=>{S.consumed+=dr,S.index+=Ar},$i=(dr)=>{S.output+=dr.output!=null?dr.output:dr.value,ri(dr.value)},ji=()=>{let dr=1;while(Pr()==="!"&&(Pr(2)!=="("||Pr(3)==="?"))jr(),S.start++,dr++;if(dr%2===0)return!1;return S.negated=!0,S.start++,!0},zi=(dr)=>{S[dr]++,tr.push(dr)},Yr=(dr)=>{S[dr]--,tr.pop()},Vr=(dr)=>{if(U.type==="globstar"){let Ar=S.braces>0&&(dr.type==="comma"||dr.type==="brace"),pr=dr.extglob===!0||k.length&&(dr.type==="pipe"||dr.type==="paren");if(dr.type!=="slash"&&dr.type!=="paren"&&!Ar&&!pr)S.output=S.output.slice(0,-U.output.length),U.type="star",U.value="*",U.output=V,S.output+=U.output}if(k.length&&dr.type!=="paren")k[k.length-1].inner+=dr.value;if(dr.value||dr.output)$i(dr);if(U&&U.type==="text"&&dr.type==="text"){U.value+=dr.value,U.output=(U.output||"")+dr.value;return}dr.prev=U,h.push(dr),U=dr},lt=(dr,Ar)=>{let pr={...P[Ar],conditions:1,inner:""};pr.prev=U,pr.parens=S.parens,pr.output=S.output,pr.startIndex=S.index,pr.tokensIndex=h.length;let Er=(t.capture?"(":"")+pr.open;zi("parens"),Vr({type:dr,value:Ar,output:S.output?"":L}),Vr({type:"paren",extglob:!0,value:jr(),output:Er}),k.push(pr)},Jr=(dr)=>{let Ar=r.slice(dr.startIndex,S.index+1),pr=r.slice(dr.startIndex+2,S.index),Er=RUr(pr,t);if((dr.type==="plus"||dr.type==="star")&&Er.risky){let Dr=Er.safeOutput?(dr.output?"":L)+(t.capture?`(${Er.safeOutput})`:Er.safeOutput):void 0,et=h[dr.tokensIndex];et.type="text",et.value=Ar,et.output=Dr||is.escapeRegex(Ar);for(let Pt=dr.tokensIndex+1;Pt<h.length;Pt++)h[Pt].value="",h[Pt].output="",delete h[Pt].suffix;S.output=dr.output+et.output,S.backtrack=!0,Vr({type:"paren",extglob:!0,value:Z,output:""}),Yr("parens");return}let Zr=dr.close+(t.capture?")":""),kr;if(dr.type==="negate"){let Dr=V;if(dr.inner&&dr.inner.length>1&&dr.inner.includes("/"))Dr=vr(t);if(Dr!==V||Cr()||/^\)+$/.test(zr()))Zr=dr.close=`)$))${Dr}`;if(dr.inner.includes("*")&&(kr=zr())&&/^\.[^\\/.]+$/.test(kr)){let et=Z4(kr,{...i,fastpaths:!1}).output;Zr=dr.close=`)${et})${Dr})`}if(dr.prev.type==="bos")S.negatedExtglob=!0}Vr({type:"paren",extglob:!0,value:Z,output:Zr}),Yr("parens")};if(t.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(r)){let dr=!1,Ar=r.replace(wUr,(pr,Er,Zr,kr,Dr,et)=>{if(kr==="\\")return dr=!0,pr;if(kr==="?"){if(Er)return Er+kr+(Dr?W.repeat(Dr.length):"");if(et===0)return T+(Dr?W.repeat(Dr.length):"");return W.repeat(Zr.length)}if(kr===".")return M.repeat(Zr.length);if(kr==="*"){if(Er)return Er+kr+(Dr?V:"");return V}return Er?pr:`\\${pr}`});if(dr===!0)if(t.unescape===!0)Ar=Ar.replace(/\\/g,"");else Ar=Ar.replace(/\\+/g,(pr)=>{return pr.length%2===0?"\\\\":pr?"\\":""});if(Ar===r&&t.contains===!0)return S.output=r,S;return S.output=is.wrapOutput(Ar,S,i),S}while(!Cr()){if(Z=jr(),Z==="\x00")continue;if(Z==="\\"){let pr=Pr();if(pr==="/"&&t.bash!==!0)continue;if(pr==="."||pr===";")continue;if(!pr){Z+="\\",Vr({type:"text",value:Z});continue}let Er=/^\\+/.exec(zr()),Zr=0;if(Er&&Er[0].length>2){if(Zr=Er[0].length,S.index+=Zr,Zr%2!==0)Z+="\\"}if(t.unescape===!0)Z=jr();else Z+=jr();if(S.brackets===0){Vr({type:"text",value:Z});continue}}if(S.brackets>0&&(Z!=="]"||U.value==="["||U.value==="[^")){if(t.posix!==!1&&Z===":"){let pr=U.value.slice(1);if(pr.includes("[")){if(U.posix=!0,pr.includes(":")){let Er=U.value.lastIndexOf("["),Zr=U.value.slice(0,Er),kr=U.value.slice(Er+2),Dr=bUr[kr];if(Dr){if(U.value=Zr+Dr,S.backtrack=!0,jr(),!u.output&&h.indexOf(U)===1)u.output=L;continue}}}}if(Z==="["&&Pr()!==":"||Z==="-"&&Pr()==="]")Z=`\\${Z}`;if(Z==="]"&&(U.value==="["||U.value==="[^"))Z=`\\${Z}`;if(t.posix===!0&&Z==="!"&&U.value==="[")Z="^";U.value+=Z,$i({value:Z});continue}if(S.quotes===1&&Z!=='"'){Z=is.escapeRegex(Z),U.value+=Z,$i({value:Z});continue}if(Z==='"'){if(S.quotes=S.quotes===1?0:1,t.keepQuotes===!0)Vr({type:"text",value:Z});continue}if(Z==="("){zi("parens"),Vr({type:"paren",value:Z});continue}if(Z===")"){if(S.parens===0&&t.strictBrackets===!0)throw SyntaxError(vn("opening","("));let pr=k[k.length-1];if(pr&&S.parens===pr.parens+1){Jr(k.pop());continue}Vr({type:"paren",value:Z,output:S.parens?")":"\\)"}),Yr("parens");continue}if(Z==="["){if(t.nobracket===!0||!zr().includes("]")){if(t.nobracket!==!0&&t.strictBrackets===!0)throw SyntaxError(vn("closing","]"));Z=`\\${Z}`}else zi("brackets");Vr({type:"bracket",value:Z});continue}if(Z==="]"){if(t.nobracket===!0||U&&U.type==="bracket"&&U.value.length===1){Vr({type:"text",value:Z,output:`\\${Z}`});continue}if(S.brackets===0){if(t.strictBrackets===!0)throw SyntaxError(vn("opening","["));Vr({type:"text",value:Z,output:`\\${Z}`});continue}Yr("brackets");let pr=U.value.slice(1);if(U.posix!==!0&&pr[0]==="^"&&!pr.includes("/"))Z=`/${Z}`;if(U.value+=Z,$i({value:Z}),t.literalBrackets===!1||is.hasRegexChars(pr))continue;let Er=is.escapeRegex(U.value);if(S.output=S.output.slice(0,-U.value.length),t.literalBrackets===!0){S.output+=Er,U.value=Er;continue}U.value=`(${c}${Er}|${U.value})`,S.output+=U.value;continue}if(Z==="{"&&t.nobrace!==!0){zi("braces");let pr={type:"brace",value:Z,output:"(",outputIndex:S.output.length,tokensIndex:S.tokens.length};er.push(pr),Vr(pr);continue}if(Z==="}"){let pr=er[er.length-1];if(t.nobrace===!0||!pr){Vr({type:"text",value:Z,output:Z});continue}let Er=")";if(pr.dots===!0){let Zr=h.slice(),kr=[];for(let Dr=Zr.length-1;Dr>=0;Dr--){if(h.pop(),Zr[Dr].type==="brace")break;if(Zr[Dr].type!=="dots")kr.unshift(Zr[Dr].value)}Er=CUr(kr,t),S.backtrack=!0}if(pr.comma!==!0&&pr.dots!==!0){let Zr=S.output.slice(0,pr.outputIndex),kr=S.tokens.slice(pr.tokensIndex);pr.value=pr.output="\\{",Z=Er="\\}",S.output=Zr;for(let Dr of kr)S.output+=Dr.output||Dr.value}Vr({type:"brace",value:Z,output:Er}),Yr("braces"),er.pop();continue}if(Z==="|"){if(k.length>0)k[k.length-1].conditions++;Vr({type:"text",value:Z});continue}if(Z===","){let pr=Z,Er=er[er.length-1];if(Er&&tr[tr.length-1]==="braces")Er.comma=!0,pr="|";Vr({type:"comma",value:Z,output:pr});continue}if(Z==="/"){if(U.type==="dot"&&S.index===S.start+1){S.start=S.index+1,S.consumed="",S.output="",h.pop(),U=u;continue}Vr({type:"slash",value:Z,output:o});continue}if(Z==="."){if(S.braces>0&&U.type==="dot"){if(U.value===".")U.output=M;let pr=er[er.length-1];U.type="dots",U.output+=Z,U.value+=Z,pr.dots=!0;continue}if(S.braces+S.parens===0&&U.type!=="bos"&&U.type!=="slash"){Vr({type:"text",value:Z,output:M});continue}Vr({type:"dot",value:Z,output:M});continue}if(Z==="?"){if(!(U&&U.value==="(")&&t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){lt("qmark",Z);continue}if(U&&U.type==="paren"){let Er=Pr(),Zr=Z;if(Er==="<"&&!is.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(U.value==="("&&!/[!=<:]/.test(Er)||Er==="<"&&!/<([!=]|\w+>)/.test(zr()))Zr=`\\${Z}`;Vr({type:"text",value:Z,output:Zr});continue}if(t.dot!==!0&&(U.type==="slash"||U.type==="bos")){Vr({type:"qmark",value:Z,output:sr});continue}Vr({type:"qmark",value:Z,output:W});continue}if(Z==="!"){if(t.noextglob!==!0&&Pr()==="("){if(Pr(2)!=="?"||!/[!=<:]/.test(Pr(3))){lt("negate",Z);continue}}if(t.nonegate!==!0&&S.index===0){ji();continue}}if(Z==="+"){if(t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){lt("plus",Z);continue}if(U&&U.value==="("||t.regex===!1){Vr({type:"plus",value:Z,output:b});continue}if(U&&(U.type==="bracket"||U.type==="paren"||U.type==="brace")||S.parens>0){Vr({type:"plus",value:Z});continue}Vr({type:"plus",value:b});continue}if(Z==="@"){if(t.noextglob!==!0&&Pr()==="("&&Pr(2)!=="?"){Vr({type:"at",extglob:!0,value:Z,output:""});continue}Vr({type:"text",value:Z});continue}if(Z!=="*"){if(Z==="$"||Z==="^")Z=`\\${Z}`;let pr=dUr.exec(zr());if(pr)Z+=pr[0],S.index+=pr[0].length;Vr({type:"text",value:Z});continue}if(U&&(U.type==="globstar"||U.star===!0)){U.type="star",U.star=!0,U.value+=Z,U.output=V,S.backtrack=!0,S.globstar=!0,ri(Z);continue}let dr=zr();if(t.noextglob!==!0&&/^\([^?]/.test(dr)){lt("star",Z);continue}if(U.type==="star"){if(t.noglobstar===!0){ri(Z);continue}let pr=U.prev,Er=pr.prev,Zr=pr.type==="slash"||pr.type==="bos",kr=Er&&(Er.type==="star"||Er.type==="globstar");if(t.bash===!0&&(!Zr||dr[0]&&dr[0]!=="/")){Vr({type:"star",value:Z,output:""});continue}let Dr=S.braces>0&&(pr.type==="comma"||pr.type==="brace"),et=k.length&&(pr.type==="pipe"||pr.type==="paren");if(!Zr&&pr.type!=="paren"&&!Dr&&!et){Vr({type:"star",value:Z,output:""});continue}while(dr.slice(0,3)==="/**"){let Pt=r[S.index+4];if(Pt&&Pt!=="/")break;dr=dr.slice(3),ri("/**",3)}if(pr.type==="bos"&&Cr()){U.type="globstar",U.value+=Z,U.output=vr(t),S.output=U.output,S.globstar=!0,ri(Z);continue}if(pr.type==="slash"&&pr.prev.type!=="bos"&&!kr&&Cr()){S.output=S.output.slice(0,-(pr.output+U.output).length),pr.output=`(?:${pr.output}`,U.type="globstar",U.output=vr(t)+(t.strictSlashes?")":"|$)"),U.value+=Z,S.globstar=!0,S.output+=pr.output+U.output,ri(Z);continue}if(pr.type==="slash"&&pr.prev.type!=="bos"&&dr[0]==="/"){let Pt=dr[1]!==void 0?"|$":"";S.output=S.output.slice(0,-(pr.output+U.output).length),pr.output=`(?:${pr.output}`,U.type="globstar",U.output=`${vr(t)}${o}|${o}${Pt})`,U.value+=Z,S.output+=pr.output+U.output,S.globstar=!0,ri(Z+jr()),Vr({type:"slash",value:"/",output:""});continue}if(pr.type==="bos"&&dr[0]==="/"){U.type="globstar",U.value+=Z,U.output=`(?:^|${o}|${vr(t)}${o})`,S.output=U.output,S.globstar=!0,ri(Z+jr()),Vr({type:"slash",value:"/",output:""});continue}S.output=S.output.slice(0,-U.output.length),U.type="globstar",U.output=vr(t),U.value+=Z,S.output+=U.output,S.globstar=!0,ri(Z);continue}let Ar={type:"star",value:Z,output:V};if(t.bash===!0){if(Ar.output=".*?",U.type==="bos"||U.type==="slash")Ar.output=q+Ar.output;Vr(Ar);continue}if(U&&(U.type==="bracket"||U.type==="paren")&&t.regex===!0){Ar.output=Z,Vr(Ar);continue}if(S.index===S.start||U.type==="slash"||U.type==="dot"){if(U.type==="dot")S.output+=H,U.output+=H;else if(t.dot===!0)S.output+=J,U.output+=J;else S.output+=q,U.output+=q;if(Pr()!=="*")S.output+=L,U.output+=L}Vr(Ar)}while(S.brackets>0){if(t.strictBrackets===!0)throw SyntaxError(vn("closing","]"));S.output=is.escapeLast(S.output,"["),Yr("brackets")}while(S.parens>0){if(t.strictBrackets===!0)throw SyntaxError(vn("closing",")"));S.output=is.escapeLast(S.output,"("),Yr("parens")}while(S.braces>0){if(t.strictBrackets===!0)throw SyntaxError(vn("closing","}"));S.output=is.escapeLast(S.output,"{"),Yr("braces")}if(t.strictSlashes!==!0&&(U.type==="star"||U.type==="bracket"))Vr({type:"maybe_slash",value:"",output:`${o}?`});if(S.backtrack===!0){S.output="";for(let dr of S.tokens)if(S.output+=dr.output!=null?dr.output:dr.value,dr.suffix)S.output+=dr.suffix}return S};Z4.fastpaths=(r,i)=>{let t={...i},s=typeof t.maxLength==="number"?Math.min(m9,t.maxLength):m9,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);r=q0r[r]||r;let u=is.isWindows(i),{DOT_LITERAL:h,SLASH_LITERAL:c,ONE_CHAR:p,DOTS_SLASH:w,NO_DOT:P,NO_DOTS:M,NO_DOTS_SLASH:b,STAR:o,START_ANCHOR:L}=_p.globChars(u),I=t.dot?M:P,j=t.dot?b:P,H=t.capture?"":"?:",J={negated:!1,prefix:""},W=t.bash===!0?".*?":o;if(t.capture)W=`(${W})`;let sr=(q)=>{if(q.noglobstar===!0)return W;return`(${H}(?:(?!${L}${q.dot?w:h}).)*?)`},rr=(q)=>{switch(q){case"*":return`${I}${p}${W}`;case".*":return`${h}${p}${W}`;case"*.*":return`${I}${W}${h}${p}${W}`;case"*/*":return`${I}${W}${c}${p}${j}${W}`;case"**":return I+sr(t);case"**/*":return`(?:${I}${sr(t)}${c})?${j}${p}${W}`;case"**/*.*":return`(?:${I}${sr(t)}${c})?${j}${W}${h}${p}${W}`;case"**/.*":return`(?:${I}${sr(t)}${c})?${h}${p}${W}`;default:{let T=/^(.*?)\.(\w+)$/.exec(q);if(!T)return;let V=rr(T[1]);if(!V)return;return V+h+T[2]}}},hr=is.removePrefix(r,J),vr=rr(hr);if(vr&&t.strictSlashes!==!0)vr+=`${c}?`;return vr};g0r.exports=Z4});var M0r=cr((Fvi,A0r)=>{var AUr=Ye("path"),MUr=C0r(),Q4=R0r(),J4=p9(),SUr=Dp(),TUr=(r)=>r&&typeof r==="object"&&!Array.isArray(r),ce=(r,i,t=!1)=>{if(Array.isArray(r)){let P=r.map((b)=>ce(b,i,t));return(b)=>{for(let o of P){let L=o(b);if(L)return L}return!1}}let s=TUr(r)&&r.tokens&&r.input;if(r===""||typeof r!=="string"&&!s)throw TypeError("Expected pattern to be a non-empty string");let l=i||{},u=J4.isWindows(i),h=s?ce.compileRe(r,i):ce.makeRe(r,i,!1,!0),c=h.state;delete h.state;let p=()=>!1;if(l.ignore){let P={...i,ignore:null,onMatch:null,onResult:null};p=ce(l.ignore,P,t)}let w=(P,M=!1)=>{let{isMatch:b,match:o,output:L}=ce.test(P,h,i,{glob:r,posix:u}),I={glob:r,state:c,regex:h,posix:u,input:P,output:L,match:o,isMatch:b};if(typeof l.onResult==="function")l.onResult(I);if(b===!1)return I.isMatch=!1,M?I:!1;if(p(P)){if(typeof l.onIgnore==="function")l.onIgnore(I);return I.isMatch=!1,M?I:!1}if(typeof l.onMatch==="function")l.onMatch(I);return M?I:!0};if(t)w.state=c;return w};ce.test=(r,i,t,{glob:s,posix:l}={})=>{if(typeof r!=="string")throw TypeError("Expected input to be a string");if(r==="")return{isMatch:!1,output:""};let u=t||{},h=u.format||(l?J4.toPosixSlashes:null),c=r===s,p=c&&h?h(r):r;if(c===!1)p=h?h(r):r,c=p===s;if(c===!1||u.capture===!0)if(u.matchBase===!0||u.basename===!0)c=ce.matchBase(r,i,t,l);else c=i.exec(p);return{isMatch:Boolean(c),match:c,output:p}};ce.matchBase=(r,i,t,s=J4.isWindows(t))=>{return(i instanceof RegExp?i:ce.makeRe(i,t)).test(AUr.basename(r))};ce.isMatch=(r,i,t)=>ce(i,t)(r);ce.parse=(r,i)=>{if(Array.isArray(r))return r.map((t)=>ce.parse(t,i));return Q4(r,{...i,fastpaths:!1})};ce.scan=(r,i)=>MUr(r,i);ce.compileRe=(r,i,t=!1,s=!1)=>{if(t===!0)return r.output;let l=i||{},u=l.contains?"":"^",h=l.contains?"":"$",c=`${u}(?:${r.output})${h}`;if(r&&r.negated===!0)c=`^(?!${c}).*$`;let p=ce.toRegex(c,i);if(s===!0)p.state=r;return p};ce.makeRe=(r,i={},t=!1,s=!1)=>{if(!r||typeof r!=="string")throw TypeError("Expected a non-empty string");let l={negated:!1,fastpaths:!0};if(i.fastpaths!==!1&&(r[0]==="."||r[0]==="*"))l.output=Q4.fastpaths(r,i);if(!l.output)l=Q4(r,i);return ce.compileRe(l,i,t,s)};ce.toRegex=(r,i)=>{try{let t=i||{};return new RegExp(r,t.flags||(t.nocase?"i":""))}catch(t){if(i&&i.debug===!0)throw t;return/$^/}};ce.constants=SUr;A0r.exports=ce});var B0r=cr((F0r)=>{Object.defineProperty(F0r,"__esModule",{value:!0});var bn=Ye("path"),OUr=M0r();function LUr(r){return r&&typeof r==="object"&&"default"in r?r:{default:r}}var EUr=LUr(OUr),T0r=function(i,t=".js"){let s=`${i}`;if(!bn.extname(i))s+=t;return s};class on{constructor(){on.prototype.__init.call(this),on.prototype.__init2.call(this),on.prototype.__init3.call(this),on.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:(r)=>this.replacement=r}}replace(r,i,t,s){if(r)if(t!==null)r[i][t]=s;else r[i]=s}remove(r,i,t){if(r)if(t!==null)r[i].splice(t,1);else delete r[i]}}class O0r extends on{constructor(r){super();this.enter=r.enter,this.leave=r.leave}visit(r,i,t,s,l,u){if(r){if(t){let h=this.should_skip,c=this.should_remove,p=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,t.call(this.context,r,i,l,u),this.replacement)r=this.replacement,this.replace(i,l,u,r);if(this.should_remove)this.remove(i,l,u);let w=this.should_skip,P=this.should_remove;if(this.should_skip=h,this.should_remove=c,this.replacement=p,w)return r;if(P)return null}for(let h in r){let c=r[h];if(typeof c!=="object")continue;else if(Array.isArray(c)){for(let p=0;p<c.length;p+=1)if(c[p]!==null&&typeof c[p].type==="string"){if(!this.visit(c[p],r,t,s,h,p))p--}}else if(c!==null&&typeof c.type==="string")this.visit(c,r,t,s,h,null)}if(s){let h=this.replacement,c=this.should_remove;if(this.replacement=null,this.should_remove=!1,s.call(this.context,r,i,l,u),this.replacement)r=this.replacement,this.replace(i,l,u,r);if(this.should_remove)this.remove(i,l,u);let p=this.should_remove;if(this.replacement=h,this.should_remove=c,p)return null}}return r}}function VUr(r,i){return new O0r(i).visit(r,null,i.enter,i.leave)}var pn={ArrayPattern(r,i){for(let t of i.elements)if(t)pn[t.type](r,t)},AssignmentPattern(r,i){pn[i.left.type](r,i.left)},Identifier(r,i){r.push(i.name)},MemberExpression(){},ObjectPattern(r,i){for(let t of i.properties)if(t.type==="RestElement")pn.RestElement(r,t);else pn[t.value.type](r,t.value)},RestElement(r,i){pn[i.argument.type](r,i.argument)}},o9=function(i){let t=[];return pn[i.type](t,i),t},IUr={const:!0,let:!0};class mn{constructor(r={}){if(this.parent=r.parent,this.isBlockScope=!!r.block,this.declarations=Object.create(null),r.params)r.params.forEach((i)=>{o9(i).forEach((t)=>{this.declarations[t]=!0})})}addDeclaration(r,i,t){if(!i&&this.isBlockScope)this.parent.addDeclaration(r,i,t);else if(r.id)o9(r.id).forEach((s)=>{this.declarations[s]=!0})}contains(r){return this.declarations[r]||(this.parent?this.parent.contains(r):!1)}}var L0r=function(i,t="scope"){let s=new mn;return VUr(i,{enter(l,u){let h=l;if(/(Function|Class)Declaration/.test(h.type))s.addDeclaration(h,!1,!1);if(h.type==="VariableDeclaration"){let{kind:p}=h,w=IUr[p];h.declarations.forEach((P)=>{s.addDeclaration(P,w,!0)})}let c;if(/Function/.test(h.type)){let p=h;if(c=new mn({parent:s,block:!1,params:p.params}),p.type==="FunctionExpression"&&p.id)c.addDeclaration(p,!1,!1)}if(/For(In|Of)?Statement/.test(h.type))c=new mn({parent:s,block:!0});if(h.type==="BlockStatement"&&!/Function/.test(u.type))c=new mn({parent:s,block:!0});if(h.type==="CatchClause")c=new mn({parent:s,params:h.param?[h.param]:[],block:!0});if(c)Object.defineProperty(h,t,{value:c,configurable:!0}),s=c},leave(l){if(l[t])s=s.parent}}),s};function FUr(r){return Array.isArray(r)}function S0r(r){if(FUr(r))return r;if(r==null)return[];return[r]}var dn=function(i){return i.split(bn.win32.sep).join(bn.posix.sep)};function BUr(r,i){if(i===!1||bn.isAbsolute(r)||r.startsWith("*"))return dn(r);let t=dn(bn.resolve(i||"")).replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return bn.posix.join(t,dn(r))}var E0r=function(i,t,s){let l=s&&s.resolve,u=(p)=>p instanceof RegExp?p:{test:(w)=>{let P=BUr(p,l);return EUr.default(P,{dot:!0})(w)}},h=S0r(i).map(u),c=S0r(t).map(u);return function(w){if(typeof w!=="string")return!1;if(/\0/.test(w))return!1;let P=dn(w);for(let M=0;M<c.length;++M)if(c[M].test(P))return!1;for(let M=0;M<h.length;++M)if(h[M].test(P))return!0;return!h.length}},HUr="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",UUr="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",V0r=new Set(`${HUr} ${UUr}`.split(" "));V0r.add("");var d9=function(i){let t=i.replace(/-(\w)/g,(s,l)=>l.toUpperCase()).replace(/[^$_a-zA-Z0-9]/g,"_");if(/\d/.test(t[0])||V0r.has(t))t=`_${t}`;return t||"_"};function b9(r){return(JSON.stringify(r)||"undefined").replace(/[\u2028\u2029]/g,(i)=>`\\u${`000${i.charCodeAt(0).toString(16)}`.slice(-4)}`)}function NUr(r,i,t){let s="[",l=i?`
59
59
  ${t}${i}`:"";for(let u=0;u<r.length;u++){let h=r[u];s+=`${u>0?",":""}${l}${xp(h,i,t+i)}`}return`${s}${i?`
60
60
  ${t}`:""}]`}function jUr(r,i,t){let s="{",l=i?`
61
61
  ${t}${i}`:"",u=Object.entries(r);for(let h=0;h<u.length;h++){let[c,p]=u[h],w=d9(c)===c?c:b9(c);s+=`${h>0?",":""}${l}${w}:${i?" ":""}${xp(p,i,t+i)}`}return`${s}${i?`
62
62
  ${t}`:""}}`}function xp(r,i,t){if(typeof r==="object"&&r!==null){if(Array.isArray(r))return NUr(r,i,t);if(r instanceof Date)return`new Date(${r.getTime()})`;if(r instanceof RegExp)return r.toString();return jUr(r,i,t)}if(typeof r==="number"){if(r===1/0)return"Infinity";if(r===-1/0)return"-Infinity";if(r===0)return 1/r===1/0?"0":"-0";if(r!==r)return"NaN"}if(typeof r==="symbol"){let s=Symbol.keyFor(r);if(s!==void 0)return`Symbol.for(${b9(s)})`}if(typeof r==="bigint")return`${r}n`;return b9(r)}var I0r=function(i,t={}){let s=t.compact?"":("indent"in t)?t.indent:"\t",l=t.compact?"":" ",u=t.compact?"":`
63
- `,h=t.preferConst?"const":"var";if(t.namedExports===!1||typeof i!=="object"||Array.isArray(i)||i instanceof Date||i instanceof RegExp||i===null){let w=xp(i,t.compact?null:s,"");return`export default${l||(/^[{[\-\/]/.test(w)?"":" ")}${w};`}let c="",p=[];for(let[w,P]of Object.entries(i))if(w===d9(w)){if(t.objectShorthand)p.push(w);else p.push(`${w}:${l}${w}`);c+=`export ${h} ${w}${l}=${l}${xp(P,t.compact?null:s,"")};${u}`}else p.push(`${b9(w)}:${l}${xp(P,t.compact?null:s,"")}`);return`${c}export default${l}{${u}${s}${p.join(`,${u}${s}`)}${u}};${u}`},zUr={addExtension:T0r,attachScopes:L0r,createFilter:E0r,dataToEsm:I0r,extractAssignedNames:o9,makeLegalIdentifier:d9,normalizePath:dn};F0r.addExtension=T0r;F0r.attachScopes=L0r;F0r.createFilter=E0r;F0r.dataToEsm=I0r;F0r.default=zUr;F0r.extractAssignedNames=o9;F0r.makeLegalIdentifier=d9;F0r.normalizePath=dn});var U0r=cr((w9,H0r)=>{(function(r,i){typeof w9=="object"&&typeof H0r<"u"?i(w9):typeof define=="function"&&define.amd?define(["exports"],i):i((r=typeof globalThis<"u"?globalThis:r||self).svelte={})})(w9,function(r){function i(e,a,f){let n=f._,v=!1;function y(m,{next:C,state:R}){C(R)}return function m(C,R,A){if(v)return;if(!C.type)return;let O,$={},d={path:R,state:A,next:(N=A)=>{R.push(C);for(let Q in C){if(Q==="type")continue;let F=C[Q];if(F&&typeof F=="object")if(Array.isArray(F)){let G={};F.forEach((K,D)=>{if(K&&typeof K=="object"){let mr=m(K,R,N);mr&&(G[D]=mr)}}),Object.keys(G).length>0&&($[Q]=F.map((K,D)=>G[D]??K))}else{let G=m(F,R,N);G&&($[Q]=G)}}if(R.pop(),Object.keys($).length>0)return t(C,$)},stop:()=>{v=!0},visit:(N,Q=A)=>{R.push(C);let F=m(N,R,Q)??N;return R.pop(),F}},B=f[C.type]??y;if(n){let N;O=n(C,{...d,next:(Q=A)=>(A=Q,N=B(C,{...d,state:Q}),N)}),!O&&N&&(O=N)}else O=B(C,d);return O||Object.keys($).length>0&&(O=t(C,$)),O||void 0}(e,[],a)??e}function t(e,a){let f={},n=Object.getOwnPropertyDescriptors(e);for(let v in n)Object.defineProperty(f,v,n[v]);for(let v in a)f[v]=a[v];return f}let s=/\s/,l=/\s+/,u=/^\r?\n/,h=/^\s/,c=/^[ \t\r\n]+/,p=/\s$/,w=/[ \t\r\n]+$/,P=/[^ \t\r\n]/,M=/[ \t\n\r\f]+/g,b=/^[ \t\n\r\f]+$/,o=/[^\n]/g,L=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,I=/(^[^a-zA-Z_$]|[^a-zA-Z0-9_$])/g,j=/^[aeiou]/,H=/^h[1-6]$/,J=/(^[0-9-.])|[\^$@%&#?!|()[\]{}^*+~;]/,W=/[\u202a\u202b\u202c\u202d\u202e\u2066\u2067\u2068\u2069]+/g,sr=/^\W*javascript:/i,rr=/\b(image|picture|photo)\b/i,hr=1,vr=2,q=4,T=8,V=16,S=4,k=8,er=1,tr=2,U=4,Z="http://www.w3.org/2000/svg",Cr="http://www.w3.org/1998/Math/MathML";function Pr(e,a){if(a.length===0)return null;let f=new ji(a).get(e);return f&&f[0][0]>0.7?f[0][1]:null}function zr(e,a){if(e===null&&a===null)throw"Trying to compare two null values";if(e===null||a===null)return 0;return 1-function(n,v){let y=[],m=0;for(let C=0;C<=v.length;C++)for(let R=0;R<=n.length;R++){let A;A=C&&R?n.charAt(R-1)===v.charAt(C-1)?m:Math.min(y[R],y[R-1],m)+1:C+R,m=y[R],y[R]=A}return y.pop()}(e=String(e),a=String(a))/Math.max(e.length,a.length)}let jr=/[^\w, ]+/;function ri(e,a=2){let f={},n=function(y,m=2){let C="-"+y.toLowerCase().replace(jr,"")+"-",R=m-C.length,A=[];if(R>0)for(let O=0;O<R;++O)y+="-";for(let O=0;O<C.length-m+1;++O)A.push(C.slice(O,O+m));return A}(e,a),v=0;for(;v<n.length;++v)n[v]in f?f[n[v]]+=1:f[n[v]]=1;return f}function $i(e,a){return a[0]-e[0]}class ji{exact_set={};match_dict={};items={};constructor(e){for(let a=2;a<4;++a)this.items[a]=[];for(let a=0;a<e.length;++a)this.add(e[a])}add(e){if(e.toLowerCase()in this.exact_set)return!1;let a=2;for(;a<4;++a)this._add(e,a)}_add(e,a){let f=e.toLowerCase(),n=this.items[a]||[],v=n.length;n.push(0);let y=ri(f,a),m,C,R=0;for(m in y)C=y[m],R+=Math.pow(C,2),m in this.match_dict?this.match_dict[m].push([v,C]):this.match_dict[m]=[[v,C]];let A=Math.sqrt(R);n[v]=[A,f],this.items[a]=n,this.exact_set[f]=e}get(e){let a=e.toLowerCase(),f=this.exact_set[a];if(f)return[[1,f]];for(let n=3;n>=2;--n){let v=this.__get(e,n);if(v.length>0)return v}return null}__get(e,a){let f=e.toLowerCase(),n={},v=ri(f,a),y=this.items[a],m,C,R,A,O,$=0;for(m in v)if(C=v[m],$+=Math.pow(C,2),m in this.match_dict)for(R=0;R<this.match_dict[m].length;++R)A=this.match_dict[m][R][0],O=this.match_dict[m][R][1],A in n?n[A]+=C*O:n[A]=C*O;let d=Math.sqrt($),B,N=[];for(let G in n)B=n[G],N.push([B/(d*y[G][0]),y[G][1]]);N.sort($i);let Q=[],F=Math.min(50,N.length);for(let G=0;G<F;++G)Q.push([zr(N[G][1],f),N[G][1]]);N=Q,N.sort($i),Q=[];for(let G=0;G<N.length;++G)N[G][0]===N[0][0]&&Q.push([N[G][0],this.exact_set[N[G][1]]]);return Q}}function zi(e,a){return e.start<=a&&a<e.end}function Yr(e,a={}){let{offsetLine:f=0,offsetColumn:n=0}=a,v=0,y=e.split(`
63
+ `,h=t.preferConst?"const":"var";if(t.namedExports===!1||typeof i!=="object"||Array.isArray(i)||i instanceof Date||i instanceof RegExp||i===null){let w=xp(i,t.compact?null:s,"");return`export default${l||(/^[{[\-\/]/.test(w)?"":" ")}${w};`}let c="",p=[];for(let[w,P]of Object.entries(i))if(w===d9(w)){if(t.objectShorthand)p.push(w);else p.push(`${w}:${l}${w}`);c+=`export ${h} ${w}${l}=${l}${xp(P,t.compact?null:s,"")};${u}`}else p.push(`${b9(w)}:${l}${xp(P,t.compact?null:s,"")}`);return`${c}export default${l}{${u}${s}${p.join(`,${u}${s}`)}${u}};${u}`},zUr={addExtension:T0r,attachScopes:L0r,createFilter:E0r,dataToEsm:I0r,extractAssignedNames:o9,makeLegalIdentifier:d9,normalizePath:dn};F0r.addExtension=T0r;F0r.attachScopes=L0r;F0r.createFilter=E0r;F0r.dataToEsm=I0r;F0r.default=zUr;F0r.extractAssignedNames=o9;F0r.makeLegalIdentifier=d9;F0r.normalizePath=dn});var U0r=cr((w9,H0r)=>{(function(r,i){typeof w9=="object"&&typeof H0r<"u"?i(w9):typeof define=="function"&&define.amd?define(["exports"],i):i((r=typeof globalThis<"u"?globalThis:r||self).svelte={})})(w9,function(r){function i(e,a,f){let n=f._,v=!1;function y(m,{next:C,state:R}){C(R)}return function m(C,R,A){if(v)return;if(!C.type)return;let O,$={},d={path:R,state:A,next:(N=A)=>{R.push(C);for(let Q in C){if(Q==="type")continue;let F=C[Q];if(F&&typeof F=="object")if(Array.isArray(F)){let G={};F.forEach((K,D)=>{if(K&&typeof K=="object"){let mr=m(K,R,N);mr&&(G[D]=mr)}}),Object.keys(G).length>0&&($[Q]=F.map((K,D)=>G[D]??K))}else{let G=m(F,R,N);G&&($[Q]=G)}}if(R.pop(),Object.keys($).length>0)return t(C,$)},stop:()=>{v=!0},visit:(N,Q=A)=>{R.push(C);let F=m(N,R,Q)??N;return R.pop(),F}},B=f[C.type]??y;if(n){let N;O=n(C,{...d,next:(Q=A)=>(A=Q,N=B(C,{...d,state:Q}),N)}),!O&&N&&(O=N)}else O=B(C,d);return O||Object.keys($).length>0&&(O=t(C,$)),O||void 0}(e,[],a)??e}function t(e,a){let f={},n=Object.getOwnPropertyDescriptors(e);for(let v in n)Object.defineProperty(f,v,n[v]);for(let v in a)f[v]=a[v];return f}let s=/\s/,l=/\s+/,u=/^\r?\n/,h=/^\s/,c=/^[ \t\r\n]+/,p=/\s$/,w=/[ \t\r\n]+$/,P=/[^ \t\r\n]/,M=/[ \t\n\r\f]+/g,b=/^[ \t\n\r\f]+$/,o=/[^\n]/g,L=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,I=/(^[^a-zA-Z_$]|[^a-zA-Z0-9_$])/g,j=/^[aeiou]/,H=/^h[1-6]$/,J=/(^[0-9-.])|[\^$@%&#?!|()[\]{}^*+~;]/,W=/[\u202a\u202b\u202c\u202d\u202e\u2066\u2067\u2068\u2069]+/g,sr=/^\W*javascript:/i,rr=/\b(image|picture|photo)\b/i,hr=1,vr=2,q=4,T=8,V=16,S=4,k=8,er=1,tr=2,U=4,Z="http://www.w3.org/2000/svg",Cr="http://www.w3.org/1998/Math/MathML";function Pr(e,a){if(a.length===0)return null;let f=new ji(a).get(e);return f&&f[0][0]>0.7?f[0][1]:null}function jr(e,a){if(e===null&&a===null)throw"Trying to compare two null values";if(e===null||a===null)return 0;return 1-function(n,v){let y=[],m=0;for(let C=0;C<=v.length;C++)for(let R=0;R<=n.length;R++){let A;A=C&&R?n.charAt(R-1)===v.charAt(C-1)?m:Math.min(y[R],y[R-1],m)+1:C+R,m=y[R],y[R]=A}return y.pop()}(e=String(e),a=String(a))/Math.max(e.length,a.length)}let zr=/[^\w, ]+/;function ri(e,a=2){let f={},n=function(y,m=2){let C="-"+y.toLowerCase().replace(zr,"")+"-",R=m-C.length,A=[];if(R>0)for(let O=0;O<R;++O)y+="-";for(let O=0;O<C.length-m+1;++O)A.push(C.slice(O,O+m));return A}(e,a),v=0;for(;v<n.length;++v)n[v]in f?f[n[v]]+=1:f[n[v]]=1;return f}function $i(e,a){return a[0]-e[0]}class ji{exact_set={};match_dict={};items={};constructor(e){for(let a=2;a<4;++a)this.items[a]=[];for(let a=0;a<e.length;++a)this.add(e[a])}add(e){if(e.toLowerCase()in this.exact_set)return!1;let a=2;for(;a<4;++a)this._add(e,a)}_add(e,a){let f=e.toLowerCase(),n=this.items[a]||[],v=n.length;n.push(0);let y=ri(f,a),m,C,R=0;for(m in y)C=y[m],R+=Math.pow(C,2),m in this.match_dict?this.match_dict[m].push([v,C]):this.match_dict[m]=[[v,C]];let A=Math.sqrt(R);n[v]=[A,f],this.items[a]=n,this.exact_set[f]=e}get(e){let a=e.toLowerCase(),f=this.exact_set[a];if(f)return[[1,f]];for(let n=3;n>=2;--n){let v=this.__get(e,n);if(v.length>0)return v}return null}__get(e,a){let f=e.toLowerCase(),n={},v=ri(f,a),y=this.items[a],m,C,R,A,O,$=0;for(m in v)if(C=v[m],$+=Math.pow(C,2),m in this.match_dict)for(R=0;R<this.match_dict[m].length;++R)A=this.match_dict[m][R][0],O=this.match_dict[m][R][1],A in n?n[A]+=C*O:n[A]=C*O;let d=Math.sqrt($),B,N=[];for(let G in n)B=n[G],N.push([B/(d*y[G][0]),y[G][1]]);N.sort($i);let Q=[],F=Math.min(50,N.length);for(let G=0;G<F;++G)Q.push([jr(N[G][1],f),N[G][1]]);N=Q,N.sort($i),Q=[];for(let G=0;G<N.length;++G)N[G][0]===N[0][0]&&Q.push([N[G][0],this.exact_set[N[G][1]]]);return Q}}function zi(e,a){return e.start<=a&&a<e.end}function Yr(e,a={}){let{offsetLine:f=0,offsetColumn:n=0}=a,v=0,y=e.split(`
64
64
  `).map((C,R)=>{let A=v+C.length+1,O={start:v,end:A,line:R};return v=A,O}),m=0;return function(C,R){if(typeof C=="string"&&(C=e.indexOf(C,R??0)),C===-1)return;let A=y[m],O=C>=A.end?1:-1;for(;A;){if(zi(A,C))return{line:f+A.line,column:n+C-A.start,character:C};m+=O,A=y[m]}}}let Vr=/\r/g;function lt(e){let a=5381,f=(e=e.replace(Vr,"")).length;for(;f--;)a=(a<<5)-a^e.charCodeAt(f);return(a>>>0).toString(36)}let Jr=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function dr(e){return Jr.includes(e)||e.toLowerCase()==="!doctype"}let Ar=["arguments","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","new","null","package","private","protected","public","return","static","super","switch","this","throw","true","try","typeof","var","void","while","with","yield"];function pr(e){return Ar.includes(e)}let Er=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"],Zr=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];function kr(e){return Zr.includes(e)}let Dr={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"},et=[...Zr,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"],Pt=["autofocus","muted","defaultValue","defaultChecked"];function Be(e){return Pt.includes(e)}let Rn=["touchstart","touchmove"],B9=["textContent","innerHTML","innerText"];function H9(e){return B9.includes(e)}let hyr=["body","embed","iframe","img","link","object","script","style","track"];function n8(e){return hyr.includes(e)}let nyr=["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","discard","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hatch","hatchpath","hkern","image","line","linearGradient","marker","mask","mesh","meshgradient","meshpatch","meshrow","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tref","tspan","unknown","use","view","vkern"];function c8(e){return nyr.includes(e)}let cyr=["annotation","annotation-xml","maction","math","merror","mfrac","mi","mmultiscripts","mn","mo","mover","mpadded","mphantom","mprescripts","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","semantics"];function b3(e){return cyr.includes(e)}let d3=["$state","$state.raw","$derived","$derived.by"],yyr=[...d3,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];function hu(e){return yyr.includes(e)}let vyr=/^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9.\-_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]+)*$/u,ts,Ch=[],cf="(unknown)",An,hi,xt,w3,Mn="<unknown>",U9=[],N9=!1;function j9(e){An=e,U9=An.split(`
65
65
  `);let a=Yr(An,{offsetLine:1});xt=(f)=>{let n=a(f);if(!n)throw Error("An impossible situation occurred");return n}}function y8(e){let a=xt(e.start);return`${f=ts,f?.replace(/\//g,"/​")}:${a?.line}:${a.column}`;var f}let yf=[],v8=new Map,qh=null;function Rs(e,a){return hi&&!!v8.get(e)?.some((f)=>f.has(a))}function Sn(e){hi=!1,N9=!1,Mn=cf,An="",U9=[],ts=(e.filename??cf).replace(/\\/g,"/"),w3=e.warning??(()=>!0),Ch=[]}function C3(e){let a=e.rootDir?.replace(/\\/g,"/");hi=e.dev,N9=e.runes,Mn=e.component_name??cf,typeof a=="string"&&ts.startsWith(a)&&(ts=ts.replace(a,"").replace(/^[/\\]/,"")),yf=[],v8.clear(),qh=null}let pyr=/^\t+/;function z9(e){return e.replace(pyr,(a)=>a.split("\t").join(" "))}class Z9{name="CompileDiagnostic";constructor(e,a,f){this.code=e,this.message=a,ts!==cf&&(this.filename=ts),f&&(this.position=f,this.start=xt(f[0]),this.end=xt(f[1]),this.start&&this.end&&(this.frame=function(n,v){let y=U9,m=Math.max(0,n-2),C=Math.min(n+3,y.length),R=String(C+1).length;return y.slice(m,C).map((A,O)=>{let $=m+O===n,d=String(O+m+1).padStart(R," ");if($){let B=" ".repeat(R+2+z9(A.slice(0,v)).length)+"^";return`${d}: ${z9(A)}
66
66
  ${B}`}return`${d}: ${z9(A)}`}).join(`
@@ -355,7 +355,7 @@ ${n}`}}finally{Zy&&console.log(`One or more \`@migration-task\` comments were ad
355
355
  \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
356
356
  `),j0r=!0}catch(J){}},load(p){return u.get(p)||null},async transform(p,w){if(!l(w))return null;if(C9>4&&xUr.test(w)){let I=q9.compileModule(p,{filename:w,dev:i.dev,generate:i.generate});return(I.warnings||[]).forEach((j)=>{if(h)h(j,this.warn);else this.warn(j)}),I.js}let P=dh.extname(w);if(!~s.indexOf(P))return null;let M=[],b=dh.relative(process.cwd(),w),o={...i,filename:b};if(t.preprocess){let I=await q9.preprocess(p,t.preprocess,{filename:b});if(I.dependencies)M.push(...I.dependencies);if(I.map)o.sourcemap=I.map;p=I.code}let L=q9.compile(p,o);if((L.warnings||[]).forEach((I)=>{if(!c&&(I.code==="css-unused-selector"||I.code==="css_unused_selector"))return;if(h)h(I,this.warn);else this.warn(I)}),c&&L.css&&L.css.code){let I=w.replace(new RegExp(`\\${P}$`),".css");L.js.code+=`
357
357
  import ${JSON.stringify(I)};
358
- `,u.set(I,L.css)}if(this.addWatchFile)M.forEach(this.addWatchFile);else L.js.dependencies=M;return L.js}}}});var r8=cr((spi,ecr)=>{var tcr={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:"/"},rjr={...tcr,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:"\\"},ijr={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};ecr.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:ijr,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(r){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${r.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(r){return r===!0?rjr:tcr}}});var i8=cr((ljr)=>{var{REGEX_BACKSLASH:tjr,REGEX_REMOVE_BACKSLASH:ejr,REGEX_SPECIAL_CHARS:sjr,REGEX_SPECIAL_CHARS_GLOBAL:ajr}=r8();ljr.isObject=(r)=>r!==null&&typeof r==="object"&&!Array.isArray(r);ljr.hasRegexChars=(r)=>sjr.test(r);ljr.isRegexChar=(r)=>r.length===1&&ljr.hasRegexChars(r);ljr.escapeRegex=(r)=>r.replace(ajr,"\\$1");ljr.toPosixSlashes=(r)=>r.replace(tjr,"/");ljr.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let r=navigator.platform.toLowerCase();return r==="win32"||r==="windows"}if(typeof process<"u"&&process.platform)return process.platform==="win32";return!1};ljr.removeBackslashes=(r)=>{return r.replace(ejr,(i)=>{return i==="\\"?"":i})};ljr.escapeLast=(r,i,t)=>{let s=r.lastIndexOf(i,t);if(s===-1)return r;if(r[s-1]==="\\")return ljr.escapeLast(r,i,s-1);return`${r.slice(0,s)}\\${r.slice(s)}`};ljr.removePrefix=(r,i={})=>{let t=r;if(t.startsWith("./"))t=t.slice(2),i.prefix="./";return t};ljr.wrapOutput=(r,i={},t={})=>{let s=t.contains?"":"^",l=t.contains?"":"$",u=`${s}(?:${r})${l}`;if(i.negated===!0)u=`(?:^(?!${u}).*$)`;return u};ljr.basename=(r,{windows:i}={})=>{let t=r.split(i?/[\\/]/:"/"),s=t[t.length-1];if(s==="")return t[t.length-2];return s}});var vcr=cr((lpi,ycr)=>{var lcr=i8(),{CHAR_ASTERISK:G4,CHAR_AT:ojr,CHAR_BACKWARD_SLASH:t8,CHAR_COMMA:bjr,CHAR_DOT:K4,CHAR_EXCLAMATION_MARK:X4,CHAR_FORWARD_SLASH:ccr,CHAR_LEFT_CURLY_BRACE:D4,CHAR_LEFT_PARENTHESES:k4,CHAR_LEFT_SQUARE_BRACKET:djr,CHAR_PLUS:wjr,CHAR_QUESTION_MARK:ucr,CHAR_RIGHT_CURLY_BRACE:Cjr,CHAR_RIGHT_PARENTHESES:fcr,CHAR_RIGHT_SQUARE_BRACKET:qjr}=r8(),hcr=(r)=>{return r===ccr||r===t8},ncr=(r)=>{if(r.isPrefix!==!0)r.depth=r.isGlobstar?1/0:1},Pjr=(r,i)=>{let t=i||{},s=r.length-1,l=t.parts===!0||t.scanToEnd===!0,u=[],h=[],c=[],p=r,w=-1,P=0,M=0,b=!1,o=!1,L=!1,I=!1,j=!1,H=!1,J=!1,W=!1,sr=!1,rr=!1,hr=0,vr,q,T={value:"",depth:0,isGlob:!1},V=()=>w>=s,S=()=>p.charCodeAt(w+1),k=()=>{return vr=q,p.charCodeAt(++w)};while(w<s){q=k();let Cr;if(q===t8){if(J=T.backslashes=!0,q=k(),q===D4)H=!0;continue}if(H===!0||q===D4){hr++;while(V()!==!0&&(q=k())){if(q===t8){J=T.backslashes=!0,k();continue}if(q===D4){hr++;continue}if(H!==!0&&q===K4&&(q=k())===K4){if(b=T.isBrace=!0,L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(H!==!0&&q===bjr){if(b=T.isBrace=!0,L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===Cjr){if(hr--,hr===0){H=!1,b=T.isBrace=!0,rr=!0;break}}}if(l===!0)continue;break}if(q===ccr){if(u.push(w),h.push(T),T={value:"",depth:0,isGlob:!1},rr===!0)continue;if(vr===K4&&w===P+1){P+=2;continue}M=w+1;continue}if(t.noext!==!0){if((q===wjr||q===ojr||q===G4||q===ucr||q===X4)===!0&&S()===k4){if(L=T.isGlob=!0,I=T.isExtglob=!0,rr=!0,q===X4&&w===P)sr=!0;if(l===!0){while(V()!==!0&&(q=k())){if(q===t8){J=T.backslashes=!0,q=k();continue}if(q===fcr){L=T.isGlob=!0,rr=!0;break}}continue}break}}if(q===G4){if(vr===G4)j=T.isGlobstar=!0;if(L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===ucr){if(L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===djr){while(V()!==!0&&(Cr=k())){if(Cr===t8){J=T.backslashes=!0,k();continue}if(Cr===qjr){o=T.isBracket=!0,L=T.isGlob=!0,rr=!0;break}}if(l===!0)continue;break}if(t.nonegate!==!0&&q===X4&&w===P){W=T.negated=!0,P++;continue}if(t.noparen!==!0&&q===k4){if(L=T.isGlob=!0,l===!0){while(V()!==!0&&(q=k())){if(q===k4){J=T.backslashes=!0,q=k();continue}if(q===fcr){rr=!0;break}}continue}break}if(L===!0){if(rr=!0,l===!0)continue;break}}if(t.noext===!0)I=!1,L=!1;let er=p,tr="",U="";if(P>0)tr=p.slice(0,P),p=p.slice(P),M-=P;if(er&&L===!0&&M>0)er=p.slice(0,M),U=p.slice(M);else if(L===!0)er="",U=p;else er=p;if(er&&er!==""&&er!=="/"&&er!==p){if(hcr(er.charCodeAt(er.length-1)))er=er.slice(0,-1)}if(t.unescape===!0){if(U)U=lcr.removeBackslashes(U);if(er&&J===!0)er=lcr.removeBackslashes(er)}let Z={prefix:tr,input:r,start:P,base:er,glob:U,isBrace:b,isBracket:o,isGlob:L,isExtglob:I,isGlobstar:j,negated:W,negatedExtglob:sr};if(t.tokens===!0){if(Z.maxDepth=0,!hcr(q))h.push(T);Z.tokens=h}if(t.parts===!0||t.tokens===!0){let Cr;for(let Pr=0;Pr<u.length;Pr++){let zr=Cr?Cr+1:P,jr=u[Pr],ri=r.slice(zr,jr);if(t.tokens){if(Pr===0&&P!==0)h[Pr].isPrefix=!0,h[Pr].value=tr;else h[Pr].value=ri;ncr(h[Pr]),Z.maxDepth+=h[Pr].depth}if(Pr!==0||ri!=="")c.push(ri);Cr=jr}if(Cr&&Cr+1<r.length){let Pr=r.slice(Cr+1);if(c.push(Pr),t.tokens)h[h.length-1].value=Pr,ncr(h[h.length-1]),Z.maxDepth+=h[h.length-1].depth}Z.slashes=u,Z.parts=c}return Z};ycr.exports=Pjr});var dcr=cr((upi,bcr)=>{var e8=r8(),Js=i8(),{MAX_LENGTH:$9,POSIX_REGEX_SOURCE:$jr,REGEX_NON_SPECIAL_CHARS:gjr,REGEX_SPECIAL_CHARS_BACKREF:Rjr,REPLACEMENTS:pcr}=e8,Ajr=(r,i)=>{if(typeof i.expandRange==="function")return i.expandRange(...r,i);r.sort();let t=`[${r.join("-")}]`;try{new RegExp(t)}catch(s){return r.map((l)=>Js.escapeRegex(l)).join("..")}return t},Cn=(r,i)=>{return`Missing ${r}: "${i}" - use "\\\\${i}" to match literal characters`},mcr=(r)=>{let i=[],t=0,s=0,l=0,u="",h=!1;for(let c of r){if(h===!0){u+=c,h=!1;continue}if(c==="\\"){u+=c,h=!0;continue}if(c==='"'){l=l===1?0:1,u+=c;continue}if(l===0){if(c==="[")t++;else if(c==="]"&&t>0)t--;else if(t===0){if(c==="(")s++;else if(c===")"&&s>0)s--;else if(c==="|"&&s===0){i.push(u),u="";continue}}}u+=c}return i.push(u),i},Mjr=(r)=>{let i=!1;for(let t of r){if(i===!0){i=!1;continue}if(t==="\\"){i=!0;continue}if(/[?*+@!()[\]{}]/.test(t))return!1}return!0},ocr=(r)=>{let i=r.trim(),t=!0;while(t===!0)if(t=!1,/^@\([^\\()[\]{}|]+\)$/.test(i))i=i.slice(2,-1),t=!0;if(!Mjr(i))return;return i.replace(/\\(.)/g,"$1")},Sjr=(r)=>{let i=r.map(ocr).filter(Boolean);for(let t=0;t<i.length;t++)for(let s=t+1;s<i.length;s++){let l=i[t],u=i[s],h=l[0];if(!h||l!==h.repeat(l.length)||u!==h.repeat(u.length))continue;if(l===u||l.startsWith(u)||u.startsWith(l))return!0}return!1},_4=(r,i=!0)=>{if(r[0]!=="+"&&r[0]!=="*"||r[1]!=="(")return;let t=0,s=0,l=0,u=!1;for(let h=1;h<r.length;h++){let c=r[h];if(u===!0){u=!1;continue}if(c==="\\"){u=!0;continue}if(c==='"'){l=l===1?0:1;continue}if(l===1)continue;if(c==="["){t++;continue}if(c==="]"&&t>0){t--;continue}if(t>0)continue;if(c==="("){s++;continue}if(c===")"){if(s--,s===0){if(i===!0&&h!==r.length-1)return;return{type:r[0],body:r.slice(2,h),end:h}}}}},Tjr=(r)=>{let i=0,t=[];while(i<r.length){let l=_4(r.slice(i),!1);if(!l||l.type!=="*")return;let u=mcr(l.body).map((c)=>c.trim());if(u.length!==1)return;let h=ocr(u[0]);if(!h||h.length!==1)return;t.push(h),i+=l.end+1}if(t.length<1)return;return`${t.length===1?Js.escapeRegex(t[0]):`[${t.map((l)=>Js.escapeRegex(l)).join("")}]`}*`},Ojr=(r)=>{let i=0,t=r.trim(),s=_4(t);while(s)i++,t=s.body.trim(),s=_4(t);return i},Ljr=(r,i)=>{if(i.maxExtglobRecursion===!1)return{risky:!1};let t=typeof i.maxExtglobRecursion==="number"?i.maxExtglobRecursion:e8.DEFAULT_MAX_EXTGLOB_RECURSION,s=mcr(r).map((l)=>l.trim());if(s.length>1){if(s.some((l)=>l==="")||s.some((l)=>/^[*?]+$/.test(l))||Sjr(s))return{risky:!0}}for(let l of s){let u=Tjr(l);if(u)return{risky:!0,safeOutput:u};if(Ojr(l)>t)return{risky:!0}}return{risky:!1}},x4=(r,i)=>{if(typeof r!=="string")throw TypeError("Expected a string");r=pcr[r]||r;let t={...i},s=typeof t.maxLength==="number"?Math.min($9,t.maxLength):$9,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);let u={type:"bos",value:"",output:t.prepend||""},h=[u],c=t.capture?"":"?:",p=e8.globChars(t.windows),w=e8.extglobChars(p),{DOT_LITERAL:P,PLUS_LITERAL:M,SLASH_LITERAL:b,ONE_CHAR:o,DOTS_SLASH:L,NO_DOT:I,NO_DOT_SLASH:j,NO_DOTS_SLASH:H,QMARK:J,QMARK_NO_DOT:W,STAR:sr,START_ANCHOR:rr}=p,hr=(Jr)=>{return`(${c}(?:(?!${rr}${Jr.dot?L:P}).)*?)`},vr=t.dot?"":I,q=t.dot?J:W,T=t.bash===!0?hr(t):sr;if(t.capture)T=`(${T})`;if(typeof t.noext==="boolean")t.noextglob=t.noext;let V={input:r,index:-1,start:0,dot:t.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};r=Js.removePrefix(r,V),l=r.length;let S=[],k=[],er=[],tr=u,U,Z=()=>V.index===l-1,Cr=V.peek=(Jr=1)=>r[V.index+Jr],Pr=V.advance=()=>r[++V.index]||"",zr=()=>r.slice(V.index+1),jr=(Jr="",dr=0)=>{V.consumed+=Jr,V.index+=dr},ri=(Jr)=>{V.output+=Jr.output!=null?Jr.output:Jr.value,jr(Jr.value)},$i=()=>{let Jr=1;while(Cr()==="!"&&(Cr(2)!=="("||Cr(3)==="?"))Pr(),V.start++,Jr++;if(Jr%2===0)return!1;return V.negated=!0,V.start++,!0},ji=(Jr)=>{V[Jr]++,er.push(Jr)},zi=(Jr)=>{V[Jr]--,er.pop()},Yr=(Jr)=>{if(tr.type==="globstar"){let dr=V.braces>0&&(Jr.type==="comma"||Jr.type==="brace"),Ar=Jr.extglob===!0||S.length&&(Jr.type==="pipe"||Jr.type==="paren");if(Jr.type!=="slash"&&Jr.type!=="paren"&&!dr&&!Ar)V.output=V.output.slice(0,-tr.output.length),tr.type="star",tr.value="*",tr.output=T,V.output+=tr.output}if(S.length&&Jr.type!=="paren")S[S.length-1].inner+=Jr.value;if(Jr.value||Jr.output)ri(Jr);if(tr&&tr.type==="text"&&Jr.type==="text"){tr.output=(tr.output||tr.value)+Jr.value,tr.value+=Jr.value;return}Jr.prev=tr,h.push(Jr),tr=Jr},Vr=(Jr,dr)=>{let Ar={...w[dr],conditions:1,inner:""};Ar.prev=tr,Ar.parens=V.parens,Ar.output=V.output,Ar.startIndex=V.index,Ar.tokensIndex=h.length;let pr=(t.capture?"(":"")+Ar.open;ji("parens"),Yr({type:Jr,value:dr,output:V.output?"":o}),Yr({type:"paren",extglob:!0,value:Pr(),output:pr}),S.push(Ar)},lt=(Jr)=>{let dr=r.slice(Jr.startIndex,V.index+1),Ar=r.slice(Jr.startIndex+2,V.index),pr=Ljr(Ar,t);if((Jr.type==="plus"||Jr.type==="star")&&pr.risky){let kr=pr.safeOutput?(Jr.output?"":o)+(t.capture?`(${pr.safeOutput})`:pr.safeOutput):void 0,Dr=h[Jr.tokensIndex];Dr.type="text",Dr.value=dr,Dr.output=kr||Js.escapeRegex(dr);for(let et=Jr.tokensIndex+1;et<h.length;et++)h[et].value="",h[et].output="",delete h[et].suffix;V.output=Jr.output+Dr.output,V.backtrack=!0,Yr({type:"paren",extglob:!0,value:U,output:""}),zi("parens");return}let Er=Jr.close+(t.capture?")":""),Zr;if(Jr.type==="negate"){let kr=T;if(Jr.inner&&Jr.inner.length>1&&Jr.inner.includes("/"))kr=hr(t);if(kr!==T||Z()||/^\)+$/.test(zr()))Er=Jr.close=`)$))${kr}`;if(Jr.inner.includes("*")&&(Zr=zr())&&/^\.[^\\/.]+$/.test(Zr)){let Dr=x4(Zr,{...i,fastpaths:!1}).output;Er=Jr.close=`)${Dr})${kr})`}if(Jr.prev.type==="bos")V.negatedExtglob=!0}Yr({type:"paren",extglob:!0,value:U,output:Er}),zi("parens")};if(t.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(r)){let Jr=!1,dr=r.replace(Rjr,(Ar,pr,Er,Zr,kr,Dr)=>{if(Zr==="\\")return Jr=!0,Ar;if(Zr==="?"){if(pr)return pr+Zr+(kr?J.repeat(kr.length):"");if(Dr===0)return q+(kr?J.repeat(kr.length):"");return J.repeat(Er.length)}if(Zr===".")return P.repeat(Er.length);if(Zr==="*"){if(pr)return pr+Zr+(kr?T:"");return T}return pr?Ar:`\\${Ar}`});if(Jr===!0)if(t.unescape===!0)dr=dr.replace(/\\/g,"");else dr=dr.replace(/\\+/g,(Ar)=>{return Ar.length%2===0?"\\\\":Ar?"\\":""});if(dr===r&&t.contains===!0)return V.output=r,V;return V.output=Js.wrapOutput(dr,V,i),V}while(!Z()){if(U=Pr(),U==="\x00")continue;if(U==="\\"){let Ar=Cr();if(Ar==="/"&&t.bash!==!0)continue;if(Ar==="."||Ar===";")continue;if(!Ar){U+="\\",Yr({type:"text",value:U});continue}let pr=/^\\+/.exec(zr()),Er=0;if(pr&&pr[0].length>2){if(Er=pr[0].length,V.index+=Er,Er%2!==0)U+="\\"}if(t.unescape===!0)U=Pr();else U+=Pr();if(V.brackets===0){Yr({type:"text",value:U});continue}}if(V.brackets>0&&(U!=="]"||tr.value==="["||tr.value==="[^")){if(t.posix!==!1&&U===":"){let Ar=tr.value.slice(1);if(Ar.includes("[")){if(tr.posix=!0,Ar.includes(":")){let pr=tr.value.lastIndexOf("["),Er=tr.value.slice(0,pr),Zr=tr.value.slice(pr+2),kr=$jr[Zr];if(kr){if(tr.value=Er+kr,V.backtrack=!0,Pr(),!u.output&&h.indexOf(tr)===1)u.output=o;continue}}}}if(U==="["&&Cr()!==":"||U==="-"&&Cr()==="]")U=`\\${U}`;if(U==="]"&&(tr.value==="["||tr.value==="[^"))U=`\\${U}`;if(t.posix===!0&&U==="!"&&tr.value==="[")U="^";tr.value+=U,ri({value:U});continue}if(V.quotes===1&&U!=='"'){U=Js.escapeRegex(U),tr.value+=U,ri({value:U});continue}if(U==='"'){if(V.quotes=V.quotes===1?0:1,t.keepQuotes===!0)Yr({type:"text",value:U});continue}if(U==="("){ji("parens"),Yr({type:"paren",value:U});continue}if(U===")"){if(V.parens===0&&t.strictBrackets===!0)throw SyntaxError(Cn("opening","("));let Ar=S[S.length-1];if(Ar&&V.parens===Ar.parens+1){lt(S.pop());continue}Yr({type:"paren",value:U,output:V.parens?")":"\\)"}),zi("parens");continue}if(U==="["){if(t.nobracket===!0||!zr().includes("]")){if(t.nobracket!==!0&&t.strictBrackets===!0)throw SyntaxError(Cn("closing","]"));U=`\\${U}`}else ji("brackets");Yr({type:"bracket",value:U});continue}if(U==="]"){if(t.nobracket===!0||tr&&tr.type==="bracket"&&tr.value.length===1){Yr({type:"text",value:U,output:`\\${U}`});continue}if(V.brackets===0){if(t.strictBrackets===!0)throw SyntaxError(Cn("opening","["));Yr({type:"text",value:U,output:`\\${U}`});continue}zi("brackets");let Ar=tr.value.slice(1);if(tr.posix!==!0&&Ar[0]==="^"&&!Ar.includes("/"))U=`/${U}`;if(tr.value+=U,ri({value:U}),t.literalBrackets===!1||Js.hasRegexChars(Ar))continue;let pr=Js.escapeRegex(tr.value);if(V.output=V.output.slice(0,-tr.value.length),t.literalBrackets===!0){V.output+=pr,tr.value=pr;continue}tr.value=`(${c}${pr}|${tr.value})`,V.output+=tr.value;continue}if(U==="{"&&t.nobrace!==!0){ji("braces");let Ar={type:"brace",value:U,output:"(",outputIndex:V.output.length,tokensIndex:V.tokens.length};k.push(Ar),Yr(Ar);continue}if(U==="}"){let Ar=k[k.length-1];if(t.nobrace===!0||!Ar){Yr({type:"text",value:U,output:U});continue}let pr=")";if(Ar.dots===!0){let Er=h.slice(),Zr=[];for(let kr=Er.length-1;kr>=0;kr--){if(h.pop(),Er[kr].type==="brace")break;if(Er[kr].type!=="dots")Zr.unshift(Er[kr].value)}pr=Ajr(Zr,t),V.backtrack=!0}if(Ar.comma!==!0&&Ar.dots!==!0){let Er=V.output.slice(0,Ar.outputIndex),Zr=V.tokens.slice(Ar.tokensIndex);Ar.value=Ar.output="\\{",U=pr="\\}",V.output=Er;for(let kr of Zr)V.output+=kr.output||kr.value}Yr({type:"brace",value:U,output:pr}),zi("braces"),k.pop();continue}if(U==="|"){if(S.length>0)S[S.length-1].conditions++;Yr({type:"text",value:U});continue}if(U===","){let Ar=U,pr=k[k.length-1];if(pr&&er[er.length-1]==="braces")pr.comma=!0,Ar="|";Yr({type:"comma",value:U,output:Ar});continue}if(U==="/"){if(tr.type==="dot"&&V.index===V.start+1){V.start=V.index+1,V.consumed="",V.output="",h.pop(),tr=u;continue}Yr({type:"slash",value:U,output:b});continue}if(U==="."){if(V.braces>0&&tr.type==="dot"){if(tr.value===".")tr.output=P;let Ar=k[k.length-1];tr.type="dots",tr.output+=U,tr.value+=U,Ar.dots=!0;continue}if(V.braces+V.parens===0&&tr.type!=="bos"&&tr.type!=="slash"){Yr({type:"text",value:U,output:P});continue}Yr({type:"dot",value:U,output:P});continue}if(U==="?"){if(!(tr&&tr.value==="(")&&t.noextglob!==!0&&Cr()==="("&&Cr(2)!=="?"){Vr("qmark",U);continue}if(tr&&tr.type==="paren"){let pr=Cr(),Er=U;if(tr.value==="("&&!/[!=<:]/.test(pr)||pr==="<"&&!/<([!=]|\w+>)/.test(zr()))Er=`\\${U}`;Yr({type:"text",value:U,output:Er});continue}if(t.dot!==!0&&(tr.type==="slash"||tr.type==="bos")){Yr({type:"qmark",value:U,output:W});continue}Yr({type:"qmark",value:U,output:J});continue}if(U==="!"){if(t.noextglob!==!0&&Cr()==="("){if(Cr(2)!=="?"||!/[!=<:]/.test(Cr(3))){Vr("negate",U);continue}}if(t.nonegate!==!0&&V.index===0){$i();continue}}if(U==="+"){if(t.noextglob!==!0&&Cr()==="("&&Cr(2)!=="?"){Vr("plus",U);continue}if(tr&&tr.value==="("||t.regex===!1){Yr({type:"plus",value:U,output:M});continue}if(tr&&(tr.type==="bracket"||tr.type==="paren"||tr.type==="brace")||V.parens>0){Yr({type:"plus",value:U});continue}Yr({type:"plus",value:M});continue}if(U==="@"){if(t.noextglob!==!0&&Cr()==="("&&Cr(2)!=="?"){Yr({type:"at",extglob:!0,value:U,output:""});continue}Yr({type:"text",value:U});continue}if(U!=="*"){if(U==="$"||U==="^")U=`\\${U}`;let Ar=gjr.exec(zr());if(Ar)U+=Ar[0],V.index+=Ar[0].length;Yr({type:"text",value:U});continue}if(tr&&(tr.type==="globstar"||tr.star===!0)){tr.type="star",tr.star=!0,tr.value+=U,tr.output=T,V.backtrack=!0,V.globstar=!0,jr(U);continue}let Jr=zr();if(t.noextglob!==!0&&/^\([^?]/.test(Jr)){Vr("star",U);continue}if(tr.type==="star"){if(t.noglobstar===!0){jr(U);continue}let Ar=tr.prev,pr=Ar.prev,Er=Ar.type==="slash"||Ar.type==="bos",Zr=pr&&(pr.type==="star"||pr.type==="globstar");if(t.bash===!0&&(!Er||Jr[0]&&Jr[0]!=="/")){Yr({type:"star",value:U,output:""});continue}let kr=V.braces>0&&(Ar.type==="comma"||Ar.type==="brace"),Dr=S.length&&(Ar.type==="pipe"||Ar.type==="paren");if(!Er&&Ar.type!=="paren"&&!kr&&!Dr){Yr({type:"star",value:U,output:""});continue}while(Jr.slice(0,3)==="/**"){let et=r[V.index+4];if(et&&et!=="/")break;Jr=Jr.slice(3),jr("/**",3)}if(Ar.type==="bos"&&Z()){tr.type="globstar",tr.value+=U,tr.output=hr(t),V.output=tr.output,V.globstar=!0,jr(U);continue}if(Ar.type==="slash"&&Ar.prev.type!=="bos"&&!Zr&&Z()){V.output=V.output.slice(0,-(Ar.output+tr.output).length),Ar.output=`(?:${Ar.output}`,tr.type="globstar",tr.output=hr(t)+(t.strictSlashes?")":"|$)"),tr.value+=U,V.globstar=!0,V.output+=Ar.output+tr.output,jr(U);continue}if(Ar.type==="slash"&&Ar.prev.type!=="bos"&&Jr[0]==="/"){let et=Jr[1]!==void 0?"|$":"";V.output=V.output.slice(0,-(Ar.output+tr.output).length),Ar.output=`(?:${Ar.output}`,tr.type="globstar",tr.output=`${hr(t)}${b}|${b}${et})`,tr.value+=U,V.output+=Ar.output+tr.output,V.globstar=!0,jr(U+Pr()),Yr({type:"slash",value:"/",output:""});continue}if(Ar.type==="bos"&&Jr[0]==="/"){tr.type="globstar",tr.value+=U,tr.output=`(?:^|${b}|${hr(t)}${b})`,V.output=tr.output,V.globstar=!0,jr(U+Pr()),Yr({type:"slash",value:"/",output:""});continue}V.output=V.output.slice(0,-tr.output.length),tr.type="globstar",tr.output=hr(t),tr.value+=U,V.output+=tr.output,V.globstar=!0,jr(U);continue}let dr={type:"star",value:U,output:T};if(t.bash===!0){if(dr.output=".*?",tr.type==="bos"||tr.type==="slash")dr.output=vr+dr.output;Yr(dr);continue}if(tr&&(tr.type==="bracket"||tr.type==="paren")&&t.regex===!0){dr.output=U,Yr(dr);continue}if(V.index===V.start||tr.type==="slash"||tr.type==="dot"){if(tr.type==="dot")V.output+=j,tr.output+=j;else if(t.dot===!0)V.output+=H,tr.output+=H;else V.output+=vr,tr.output+=vr;if(Cr()!=="*")V.output+=o,tr.output+=o}Yr(dr)}while(V.brackets>0){if(t.strictBrackets===!0)throw SyntaxError(Cn("closing","]"));V.output=Js.escapeLast(V.output,"["),zi("brackets")}while(V.parens>0){if(t.strictBrackets===!0)throw SyntaxError(Cn("closing",")"));V.output=Js.escapeLast(V.output,"("),zi("parens")}while(V.braces>0){if(t.strictBrackets===!0)throw SyntaxError(Cn("closing","}"));V.output=Js.escapeLast(V.output,"{"),zi("braces")}if(t.strictSlashes!==!0&&(tr.type==="star"||tr.type==="bracket"))Yr({type:"maybe_slash",value:"",output:`${b}?`});if(V.backtrack===!0){V.output="";for(let Jr of V.tokens)if(V.output+=Jr.output!=null?Jr.output:Jr.value,Jr.suffix)V.output+=Jr.suffix}return V};x4.fastpaths=(r,i)=>{let t={...i},s=typeof t.maxLength==="number"?Math.min($9,t.maxLength):$9,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);r=pcr[r]||r;let{DOT_LITERAL:u,SLASH_LITERAL:h,ONE_CHAR:c,DOTS_SLASH:p,NO_DOT:w,NO_DOTS:P,NO_DOTS_SLASH:M,STAR:b,START_ANCHOR:o}=e8.globChars(t.windows),L=t.dot?P:w,I=t.dot?M:w,j=t.capture?"":"?:",H={negated:!1,prefix:""},J=t.bash===!0?".*?":b;if(t.capture)J=`(${J})`;let W=(vr)=>{if(vr.noglobstar===!0)return J;return`(${j}(?:(?!${o}${vr.dot?p:u}).)*?)`},sr=(vr)=>{switch(vr){case"*":return`${L}${c}${J}`;case".*":return`${u}${c}${J}`;case"*.*":return`${L}${J}${u}${c}${J}`;case"*/*":return`${L}${J}${h}${c}${I}${J}`;case"**":return L+W(t);case"**/*":return`(?:${L}${W(t)}${h})?${I}${c}${J}`;case"**/*.*":return`(?:${L}${W(t)}${h})?${I}${J}${u}${c}${J}`;case"**/.*":return`(?:${L}${W(t)}${h})?${u}${c}${J}`;default:{let q=/^(.*?)\.(\w+)$/.exec(vr);if(!q)return;let T=sr(q[1]);if(!T)return;return T+u+q[2]}}},rr=Js.removePrefix(r,H),hr=sr(rr);if(hr&&t.strictSlashes!==!0)hr+=`${h}?`;return hr};bcr.exports=x4});var qcr=cr((fpi,Ccr)=>{var Ejr=vcr(),r3=dcr(),wcr=i8(),Vjr=r8(),Ijr=(r)=>r&&typeof r==="object"&&!Array.isArray(r),ye=(r,i,t=!1)=>{if(Array.isArray(r)){let P=r.map((b)=>ye(b,i,t));return(b)=>{for(let o of P){let L=o(b);if(L)return L}return!1}}let s=Ijr(r)&&r.tokens&&r.input;if(r===""||typeof r!=="string"&&!s)throw TypeError("Expected pattern to be a non-empty string");let l=i||{},u=l.windows,h=s?ye.compileRe(r,i):ye.makeRe(r,i,!1,!0),c=h.state;delete h.state;let p=()=>!1;if(l.ignore){let P={...i,ignore:null,onMatch:null,onResult:null};p=ye(l.ignore,P,t)}let w=(P,M=!1)=>{let{isMatch:b,match:o,output:L}=ye.test(P,h,i,{glob:r,posix:u}),I={glob:r,state:c,regex:h,posix:u,input:P,output:L,match:o,isMatch:b};if(typeof l.onResult==="function")l.onResult(I);if(b===!1)return I.isMatch=!1,M?I:!1;if(p(P)){if(typeof l.onIgnore==="function")l.onIgnore(I);return I.isMatch=!1,M?I:!1}if(typeof l.onMatch==="function")l.onMatch(I);return M?I:!0};if(t)w.state=c;return w};ye.test=(r,i,t,{glob:s,posix:l}={})=>{if(typeof r!=="string")throw TypeError("Expected input to be a string");if(r==="")return{isMatch:!1,output:""};let u=t||{},h=u.format||(l?wcr.toPosixSlashes:null),c=r===s,p=c&&h?h(r):r;if(c===!1)p=h?h(r):r,c=p===s;if(c===!1||u.capture===!0)if(u.matchBase===!0||u.basename===!0)c=ye.matchBase(r,i,t,l);else c=i.exec(p);return{isMatch:Boolean(c),match:c,output:p}};ye.matchBase=(r,i,t)=>{return(i instanceof RegExp?i:ye.makeRe(i,t)).test(wcr.basename(r))};ye.isMatch=(r,i,t)=>ye(i,t)(r);ye.parse=(r,i)=>{if(Array.isArray(r))return r.map((t)=>ye.parse(t,i));return r3(r,{...i,fastpaths:!1})};ye.scan=(r,i)=>Ejr(r,i);ye.compileRe=(r,i,t=!1,s=!1)=>{if(t===!0)return r.output;let l=i||{},u=l.contains?"":"^",h=l.contains?"":"$",c=`${u}(?:${r.output})${h}`;if(r&&r.negated===!0)c=`^(?!${c}).*$`;let p=ye.toRegex(c,i);if(s===!0)p.state=r;return p};ye.makeRe=(r,i={},t=!1,s=!1)=>{if(!r||typeof r!=="string")throw TypeError("Expected a non-empty string");let l={negated:!1,fastpaths:!0};if(i.fastpaths!==!1&&(r[0]==="."||r[0]==="*"))l.output=r3.fastpaths(r,i);if(!l.output)l=r3(r,i);return ye.compileRe(l,i,t,s)};ye.toRegex=(r,i)=>{try{let t=i||{};return new RegExp(r,t.flags||(t.nocase?"i":""))}catch(t){if(i&&i.debug===!0)throw t;return/$^/}};ye.constants=Vjr;Ccr.exports=ye});var Rcr=cr((hpi,gcr)=>{var Pcr=qcr(),Fjr=i8();function $cr(r,i,t=!1){if(i&&(i.windows===null||i.windows===void 0))i={...i,windows:Fjr.isWindows()};return Pcr(r,i,t)}Object.assign($cr,Pcr);gcr.exports=$cr});var ra;(function(r){r.start="/**",r.nostart="/***",r.delim="*",r.end="*/"})(ra=ra||(ra={}));function bq(r){return/^\s+$/.test(r)}function aV(r){let i=r.match(/\r+$/);return i==null?["",r]:[r.slice(-i[0].length),r.slice(0,-i[0].length)]}function Hl(r){let i=r.match(/^\s+/);return i==null?["",r]:[r.slice(0,i[0].length),r.slice(i[0].length)]}function lV(r){return r.split(/\n/)}function uV(r={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},r)}function dq(r={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},r)}var Abr=/^@\S+/;function wq({fence:r="```"}={}){let i=Mbr(r),t=(s,l)=>i(s)?!l:l;return function(l){let u=[[]],h=!1;for(let c of l){if(Abr.test(c.tokens.description)&&!h)u.push([c]);else u[u.length-1].push(c);h=t(c.tokens.description,h)}return u}}function Mbr(r){if(typeof r==="string")return(i)=>i.split(r).length%2===0;return r}function Cq({startLine:r=0,markers:i=ra}={}){let t=null,s=r;return function(u){let h=u,c=dq();if([c.lineEnd,h]=aV(h),[c.start,h]=Hl(h),t===null&&h.startsWith(i.start)&&!h.startsWith(i.nostart))t=[],c.delimiter=h.slice(0,i.start.length),h=h.slice(i.start.length),[c.postDelimiter,h]=Hl(h);if(t===null)return s++,null;let p=h.trimRight().endsWith(i.end);if(c.delimiter===""&&h.startsWith(i.delim)&&!h.startsWith(i.end))c.delimiter=i.delim,h=h.slice(i.delim.length),[c.postDelimiter,h]=Hl(h);if(p){let w=h.trimRight();c.end=h.slice(w.length-i.end.length),h=w.slice(0,-i.end.length)}if(c.description=h,t.push({number:s,source:u,tokens:c}),s++,p){let w=t.slice();return t=null,w}return null}}function qq({tokenizers:r}){return function(t){var s;let l=uV({source:t});for(let u of r)if(l=u(l),(s=l.problems[l.problems.length-1])===null||s===void 0?void 0:s.critical)break;return l}}function _b(){return(r)=>{let{tokens:i}=r.source[0],t=i.description.match(/\s*(@(\S+))(\s*)/);if(t===null)return r.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:r.source[0].number,critical:!0}),r;return i.tag=t[1],i.postTag=t[3],i.description=i.description.slice(t[0].length),r.tag=t[2],r}}function xb(r="compact"){let i=Tbr(r);return(t)=>{let s=0,l=[];for(let[c,{tokens:p}]of t.source.entries()){let w="";if(c===0&&p.description[0]!=="{")return t;for(let P of p.description){if(P==="{")s++;if(P==="}")s--;if(w+=P,s===0)break}if(l.push([p,w]),s===0)break}if(s!==0)return t.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:t.source[0].number,critical:!0}),t;let u=[],h=l[0][0].postDelimiter.length;for(let[c,[p,w]]of l.entries()){if(p.type=w,c>0)p.type=p.postDelimiter.slice(h)+w,p.postDelimiter=p.postDelimiter.slice(0,h);[p.postType,p.description]=Hl(p.description.slice(w.length)),u.push(p.type)}return u[0]=u[0].slice(1),u[u.length-1]=u[u.length-1].slice(0,-1),t.type=i(u),t}}var Sbr=(r)=>r.trim();function Tbr(r){if(r==="compact")return(i)=>i.map(Sbr).join("");else if(r==="preserve")return(i)=>i.join(`
358
+ `,u.set(I,L.css)}if(this.addWatchFile)M.forEach(this.addWatchFile);else L.js.dependencies=M;return L.js}}}});var r8=cr((spi,ecr)=>{var tcr={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:"/"},rjr={...tcr,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:"\\"},ijr={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};ecr.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:ijr,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(r){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${r.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(r){return r===!0?rjr:tcr}}});var i8=cr((ljr)=>{var{REGEX_BACKSLASH:tjr,REGEX_REMOVE_BACKSLASH:ejr,REGEX_SPECIAL_CHARS:sjr,REGEX_SPECIAL_CHARS_GLOBAL:ajr}=r8();ljr.isObject=(r)=>r!==null&&typeof r==="object"&&!Array.isArray(r);ljr.hasRegexChars=(r)=>sjr.test(r);ljr.isRegexChar=(r)=>r.length===1&&ljr.hasRegexChars(r);ljr.escapeRegex=(r)=>r.replace(ajr,"\\$1");ljr.toPosixSlashes=(r)=>r.replace(tjr,"/");ljr.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let r=navigator.platform.toLowerCase();return r==="win32"||r==="windows"}if(typeof process<"u"&&process.platform)return process.platform==="win32";return!1};ljr.removeBackslashes=(r)=>{return r.replace(ejr,(i)=>{return i==="\\"?"":i})};ljr.escapeLast=(r,i,t)=>{let s=r.lastIndexOf(i,t);if(s===-1)return r;if(r[s-1]==="\\")return ljr.escapeLast(r,i,s-1);return`${r.slice(0,s)}\\${r.slice(s)}`};ljr.removePrefix=(r,i={})=>{let t=r;if(t.startsWith("./"))t=t.slice(2),i.prefix="./";return t};ljr.wrapOutput=(r,i={},t={})=>{let s=t.contains?"":"^",l=t.contains?"":"$",u=`${s}(?:${r})${l}`;if(i.negated===!0)u=`(?:^(?!${u}).*$)`;return u};ljr.basename=(r,{windows:i}={})=>{let t=r.split(i?/[\\/]/:"/"),s=t[t.length-1];if(s==="")return t[t.length-2];return s}});var vcr=cr((lpi,ycr)=>{var lcr=i8(),{CHAR_ASTERISK:G4,CHAR_AT:ojr,CHAR_BACKWARD_SLASH:t8,CHAR_COMMA:bjr,CHAR_DOT:K4,CHAR_EXCLAMATION_MARK:X4,CHAR_FORWARD_SLASH:ccr,CHAR_LEFT_CURLY_BRACE:D4,CHAR_LEFT_PARENTHESES:k4,CHAR_LEFT_SQUARE_BRACKET:djr,CHAR_PLUS:wjr,CHAR_QUESTION_MARK:ucr,CHAR_RIGHT_CURLY_BRACE:Cjr,CHAR_RIGHT_PARENTHESES:fcr,CHAR_RIGHT_SQUARE_BRACKET:qjr}=r8(),hcr=(r)=>{return r===ccr||r===t8},ncr=(r)=>{if(r.isPrefix!==!0)r.depth=r.isGlobstar?1/0:1},Pjr=(r,i)=>{let t=i||{},s=r.length-1,l=t.parts===!0||t.scanToEnd===!0,u=[],h=[],c=[],p=r,w=-1,P=0,M=0,b=!1,o=!1,L=!1,I=!1,j=!1,H=!1,J=!1,W=!1,sr=!1,rr=!1,hr=0,vr,q,T={value:"",depth:0,isGlob:!1},V=()=>w>=s,S=()=>p.charCodeAt(w+1),k=()=>{return vr=q,p.charCodeAt(++w)};while(w<s){q=k();let Cr;if(q===t8){if(J=T.backslashes=!0,q=k(),q===D4)H=!0;continue}if(H===!0||q===D4){hr++;while(V()!==!0&&(q=k())){if(q===t8){J=T.backslashes=!0,k();continue}if(q===D4){hr++;continue}if(H!==!0&&q===K4&&(q=k())===K4){if(b=T.isBrace=!0,L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(H!==!0&&q===bjr){if(b=T.isBrace=!0,L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===Cjr){if(hr--,hr===0){H=!1,b=T.isBrace=!0,rr=!0;break}}}if(l===!0)continue;break}if(q===ccr){if(u.push(w),h.push(T),T={value:"",depth:0,isGlob:!1},rr===!0)continue;if(vr===K4&&w===P+1){P+=2;continue}M=w+1;continue}if(t.noext!==!0){if((q===wjr||q===ojr||q===G4||q===ucr||q===X4)===!0&&S()===k4){if(L=T.isGlob=!0,I=T.isExtglob=!0,rr=!0,q===X4&&w===P)sr=!0;if(l===!0){while(V()!==!0&&(q=k())){if(q===t8){J=T.backslashes=!0,q=k();continue}if(q===fcr){L=T.isGlob=!0,rr=!0;break}}continue}break}}if(q===G4){if(vr===G4)j=T.isGlobstar=!0;if(L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===ucr){if(L=T.isGlob=!0,rr=!0,l===!0)continue;break}if(q===djr){while(V()!==!0&&(Cr=k())){if(Cr===t8){J=T.backslashes=!0,k();continue}if(Cr===qjr){o=T.isBracket=!0,L=T.isGlob=!0,rr=!0;break}}if(l===!0)continue;break}if(t.nonegate!==!0&&q===X4&&w===P){W=T.negated=!0,P++;continue}if(t.noparen!==!0&&q===k4){if(L=T.isGlob=!0,l===!0){while(V()!==!0&&(q=k())){if(q===k4){J=T.backslashes=!0,q=k();continue}if(q===fcr){rr=!0;break}}continue}break}if(L===!0){if(rr=!0,l===!0)continue;break}}if(t.noext===!0)I=!1,L=!1;let er=p,tr="",U="";if(P>0)tr=p.slice(0,P),p=p.slice(P),M-=P;if(er&&L===!0&&M>0)er=p.slice(0,M),U=p.slice(M);else if(L===!0)er="",U=p;else er=p;if(er&&er!==""&&er!=="/"&&er!==p){if(hcr(er.charCodeAt(er.length-1)))er=er.slice(0,-1)}if(t.unescape===!0){if(U)U=lcr.removeBackslashes(U);if(er&&J===!0)er=lcr.removeBackslashes(er)}let Z={prefix:tr,input:r,start:P,base:er,glob:U,isBrace:b,isBracket:o,isGlob:L,isExtglob:I,isGlobstar:j,negated:W,negatedExtglob:sr};if(t.tokens===!0){if(Z.maxDepth=0,!hcr(q))h.push(T);Z.tokens=h}if(t.parts===!0||t.tokens===!0){let Cr;for(let Pr=0;Pr<u.length;Pr++){let jr=Cr?Cr+1:P,zr=u[Pr],ri=r.slice(jr,zr);if(t.tokens){if(Pr===0&&P!==0)h[Pr].isPrefix=!0,h[Pr].value=tr;else h[Pr].value=ri;ncr(h[Pr]),Z.maxDepth+=h[Pr].depth}if(Pr!==0||ri!=="")c.push(ri);Cr=zr}if(Cr&&Cr+1<r.length){let Pr=r.slice(Cr+1);if(c.push(Pr),t.tokens)h[h.length-1].value=Pr,ncr(h[h.length-1]),Z.maxDepth+=h[h.length-1].depth}Z.slashes=u,Z.parts=c}return Z};ycr.exports=Pjr});var dcr=cr((upi,bcr)=>{var e8=r8(),Js=i8(),{MAX_LENGTH:$9,POSIX_REGEX_SOURCE:$jr,REGEX_NON_SPECIAL_CHARS:gjr,REGEX_SPECIAL_CHARS_BACKREF:Rjr,REPLACEMENTS:pcr}=e8,Ajr=(r,i)=>{if(typeof i.expandRange==="function")return i.expandRange(...r,i);r.sort();let t=`[${r.join("-")}]`;try{new RegExp(t)}catch(s){return r.map((l)=>Js.escapeRegex(l)).join("..")}return t},Cn=(r,i)=>{return`Missing ${r}: "${i}" - use "\\\\${i}" to match literal characters`},mcr=(r)=>{let i=[],t=0,s=0,l=0,u="",h=!1;for(let c of r){if(h===!0){u+=c,h=!1;continue}if(c==="\\"){u+=c,h=!0;continue}if(c==='"'){l=l===1?0:1,u+=c;continue}if(l===0){if(c==="[")t++;else if(c==="]"&&t>0)t--;else if(t===0){if(c==="(")s++;else if(c===")"&&s>0)s--;else if(c==="|"&&s===0){i.push(u),u="";continue}}}u+=c}return i.push(u),i},Mjr=(r)=>{let i=!1;for(let t of r){if(i===!0){i=!1;continue}if(t==="\\"){i=!0;continue}if(/[?*+@!()[\]{}]/.test(t))return!1}return!0},ocr=(r)=>{let i=r.trim(),t=!0;while(t===!0)if(t=!1,/^@\([^\\()[\]{}|]+\)$/.test(i))i=i.slice(2,-1),t=!0;if(!Mjr(i))return;return i.replace(/\\(.)/g,"$1")},Sjr=(r)=>{let i=r.map(ocr).filter(Boolean);for(let t=0;t<i.length;t++)for(let s=t+1;s<i.length;s++){let l=i[t],u=i[s],h=l[0];if(!h||l!==h.repeat(l.length)||u!==h.repeat(u.length))continue;if(l===u||l.startsWith(u)||u.startsWith(l))return!0}return!1},_4=(r,i=!0)=>{if(r[0]!=="+"&&r[0]!=="*"||r[1]!=="(")return;let t=0,s=0,l=0,u=!1;for(let h=1;h<r.length;h++){let c=r[h];if(u===!0){u=!1;continue}if(c==="\\"){u=!0;continue}if(c==='"'){l=l===1?0:1;continue}if(l===1)continue;if(c==="["){t++;continue}if(c==="]"&&t>0){t--;continue}if(t>0)continue;if(c==="("){s++;continue}if(c===")"){if(s--,s===0){if(i===!0&&h!==r.length-1)return;return{type:r[0],body:r.slice(2,h),end:h}}}}},Tjr=(r)=>{let i=0,t=[];while(i<r.length){let l=_4(r.slice(i),!1);if(!l||l.type!=="*")return;let u=mcr(l.body).map((c)=>c.trim());if(u.length!==1)return;let h=ocr(u[0]);if(!h||h.length!==1)return;t.push(h),i+=l.end+1}if(t.length<1)return;return`${t.length===1?Js.escapeRegex(t[0]):`[${t.map((l)=>Js.escapeRegex(l)).join("")}]`}*`},Ojr=(r)=>{let i=0,t=r.trim(),s=_4(t);while(s)i++,t=s.body.trim(),s=_4(t);return i},Ljr=(r,i)=>{if(i.maxExtglobRecursion===!1)return{risky:!1};let t=typeof i.maxExtglobRecursion==="number"?i.maxExtglobRecursion:e8.DEFAULT_MAX_EXTGLOB_RECURSION,s=mcr(r).map((l)=>l.trim());if(s.length>1){if(s.some((l)=>l==="")||s.some((l)=>/^[*?]+$/.test(l))||Sjr(s))return{risky:!0}}for(let l of s){let u=Tjr(l);if(u)return{risky:!0,safeOutput:u};if(Ojr(l)>t)return{risky:!0}}return{risky:!1}},x4=(r,i)=>{if(typeof r!=="string")throw TypeError("Expected a string");r=pcr[r]||r;let t={...i},s=typeof t.maxLength==="number"?Math.min($9,t.maxLength):$9,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);let u={type:"bos",value:"",output:t.prepend||""},h=[u],c=t.capture?"":"?:",p=e8.globChars(t.windows),w=e8.extglobChars(p),{DOT_LITERAL:P,PLUS_LITERAL:M,SLASH_LITERAL:b,ONE_CHAR:o,DOTS_SLASH:L,NO_DOT:I,NO_DOT_SLASH:j,NO_DOTS_SLASH:H,QMARK:J,QMARK_NO_DOT:W,STAR:sr,START_ANCHOR:rr}=p,hr=(Jr)=>{return`(${c}(?:(?!${rr}${Jr.dot?L:P}).)*?)`},vr=t.dot?"":I,q=t.dot?J:W,T=t.bash===!0?hr(t):sr;if(t.capture)T=`(${T})`;if(typeof t.noext==="boolean")t.noextglob=t.noext;let V={input:r,index:-1,start:0,dot:t.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};r=Js.removePrefix(r,V),l=r.length;let S=[],k=[],er=[],tr=u,U,Z=()=>V.index===l-1,Cr=V.peek=(Jr=1)=>r[V.index+Jr],Pr=V.advance=()=>r[++V.index]||"",jr=()=>r.slice(V.index+1),zr=(Jr="",dr=0)=>{V.consumed+=Jr,V.index+=dr},ri=(Jr)=>{V.output+=Jr.output!=null?Jr.output:Jr.value,zr(Jr.value)},$i=()=>{let Jr=1;while(Cr()==="!"&&(Cr(2)!=="("||Cr(3)==="?"))Pr(),V.start++,Jr++;if(Jr%2===0)return!1;return V.negated=!0,V.start++,!0},ji=(Jr)=>{V[Jr]++,er.push(Jr)},zi=(Jr)=>{V[Jr]--,er.pop()},Yr=(Jr)=>{if(tr.type==="globstar"){let dr=V.braces>0&&(Jr.type==="comma"||Jr.type==="brace"),Ar=Jr.extglob===!0||S.length&&(Jr.type==="pipe"||Jr.type==="paren");if(Jr.type!=="slash"&&Jr.type!=="paren"&&!dr&&!Ar)V.output=V.output.slice(0,-tr.output.length),tr.type="star",tr.value="*",tr.output=T,V.output+=tr.output}if(S.length&&Jr.type!=="paren")S[S.length-1].inner+=Jr.value;if(Jr.value||Jr.output)ri(Jr);if(tr&&tr.type==="text"&&Jr.type==="text"){tr.output=(tr.output||tr.value)+Jr.value,tr.value+=Jr.value;return}Jr.prev=tr,h.push(Jr),tr=Jr},Vr=(Jr,dr)=>{let Ar={...w[dr],conditions:1,inner:""};Ar.prev=tr,Ar.parens=V.parens,Ar.output=V.output,Ar.startIndex=V.index,Ar.tokensIndex=h.length;let pr=(t.capture?"(":"")+Ar.open;ji("parens"),Yr({type:Jr,value:dr,output:V.output?"":o}),Yr({type:"paren",extglob:!0,value:Pr(),output:pr}),S.push(Ar)},lt=(Jr)=>{let dr=r.slice(Jr.startIndex,V.index+1),Ar=r.slice(Jr.startIndex+2,V.index),pr=Ljr(Ar,t);if((Jr.type==="plus"||Jr.type==="star")&&pr.risky){let kr=pr.safeOutput?(Jr.output?"":o)+(t.capture?`(${pr.safeOutput})`:pr.safeOutput):void 0,Dr=h[Jr.tokensIndex];Dr.type="text",Dr.value=dr,Dr.output=kr||Js.escapeRegex(dr);for(let et=Jr.tokensIndex+1;et<h.length;et++)h[et].value="",h[et].output="",delete h[et].suffix;V.output=Jr.output+Dr.output,V.backtrack=!0,Yr({type:"paren",extglob:!0,value:U,output:""}),zi("parens");return}let Er=Jr.close+(t.capture?")":""),Zr;if(Jr.type==="negate"){let kr=T;if(Jr.inner&&Jr.inner.length>1&&Jr.inner.includes("/"))kr=hr(t);if(kr!==T||Z()||/^\)+$/.test(jr()))Er=Jr.close=`)$))${kr}`;if(Jr.inner.includes("*")&&(Zr=jr())&&/^\.[^\\/.]+$/.test(Zr)){let Dr=x4(Zr,{...i,fastpaths:!1}).output;Er=Jr.close=`)${Dr})${kr})`}if(Jr.prev.type==="bos")V.negatedExtglob=!0}Yr({type:"paren",extglob:!0,value:U,output:Er}),zi("parens")};if(t.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(r)){let Jr=!1,dr=r.replace(Rjr,(Ar,pr,Er,Zr,kr,Dr)=>{if(Zr==="\\")return Jr=!0,Ar;if(Zr==="?"){if(pr)return pr+Zr+(kr?J.repeat(kr.length):"");if(Dr===0)return q+(kr?J.repeat(kr.length):"");return J.repeat(Er.length)}if(Zr===".")return P.repeat(Er.length);if(Zr==="*"){if(pr)return pr+Zr+(kr?T:"");return T}return pr?Ar:`\\${Ar}`});if(Jr===!0)if(t.unescape===!0)dr=dr.replace(/\\/g,"");else dr=dr.replace(/\\+/g,(Ar)=>{return Ar.length%2===0?"\\\\":Ar?"\\":""});if(dr===r&&t.contains===!0)return V.output=r,V;return V.output=Js.wrapOutput(dr,V,i),V}while(!Z()){if(U=Pr(),U==="\x00")continue;if(U==="\\"){let Ar=Cr();if(Ar==="/"&&t.bash!==!0)continue;if(Ar==="."||Ar===";")continue;if(!Ar){U+="\\",Yr({type:"text",value:U});continue}let pr=/^\\+/.exec(jr()),Er=0;if(pr&&pr[0].length>2){if(Er=pr[0].length,V.index+=Er,Er%2!==0)U+="\\"}if(t.unescape===!0)U=Pr();else U+=Pr();if(V.brackets===0){Yr({type:"text",value:U});continue}}if(V.brackets>0&&(U!=="]"||tr.value==="["||tr.value==="[^")){if(t.posix!==!1&&U===":"){let Ar=tr.value.slice(1);if(Ar.includes("[")){if(tr.posix=!0,Ar.includes(":")){let pr=tr.value.lastIndexOf("["),Er=tr.value.slice(0,pr),Zr=tr.value.slice(pr+2),kr=$jr[Zr];if(kr){if(tr.value=Er+kr,V.backtrack=!0,Pr(),!u.output&&h.indexOf(tr)===1)u.output=o;continue}}}}if(U==="["&&Cr()!==":"||U==="-"&&Cr()==="]")U=`\\${U}`;if(U==="]"&&(tr.value==="["||tr.value==="[^"))U=`\\${U}`;if(t.posix===!0&&U==="!"&&tr.value==="[")U="^";tr.value+=U,ri({value:U});continue}if(V.quotes===1&&U!=='"'){U=Js.escapeRegex(U),tr.value+=U,ri({value:U});continue}if(U==='"'){if(V.quotes=V.quotes===1?0:1,t.keepQuotes===!0)Yr({type:"text",value:U});continue}if(U==="("){ji("parens"),Yr({type:"paren",value:U});continue}if(U===")"){if(V.parens===0&&t.strictBrackets===!0)throw SyntaxError(Cn("opening","("));let Ar=S[S.length-1];if(Ar&&V.parens===Ar.parens+1){lt(S.pop());continue}Yr({type:"paren",value:U,output:V.parens?")":"\\)"}),zi("parens");continue}if(U==="["){if(t.nobracket===!0||!jr().includes("]")){if(t.nobracket!==!0&&t.strictBrackets===!0)throw SyntaxError(Cn("closing","]"));U=`\\${U}`}else ji("brackets");Yr({type:"bracket",value:U});continue}if(U==="]"){if(t.nobracket===!0||tr&&tr.type==="bracket"&&tr.value.length===1){Yr({type:"text",value:U,output:`\\${U}`});continue}if(V.brackets===0){if(t.strictBrackets===!0)throw SyntaxError(Cn("opening","["));Yr({type:"text",value:U,output:`\\${U}`});continue}zi("brackets");let Ar=tr.value.slice(1);if(tr.posix!==!0&&Ar[0]==="^"&&!Ar.includes("/"))U=`/${U}`;if(tr.value+=U,ri({value:U}),t.literalBrackets===!1||Js.hasRegexChars(Ar))continue;let pr=Js.escapeRegex(tr.value);if(V.output=V.output.slice(0,-tr.value.length),t.literalBrackets===!0){V.output+=pr,tr.value=pr;continue}tr.value=`(${c}${pr}|${tr.value})`,V.output+=tr.value;continue}if(U==="{"&&t.nobrace!==!0){ji("braces");let Ar={type:"brace",value:U,output:"(",outputIndex:V.output.length,tokensIndex:V.tokens.length};k.push(Ar),Yr(Ar);continue}if(U==="}"){let Ar=k[k.length-1];if(t.nobrace===!0||!Ar){Yr({type:"text",value:U,output:U});continue}let pr=")";if(Ar.dots===!0){let Er=h.slice(),Zr=[];for(let kr=Er.length-1;kr>=0;kr--){if(h.pop(),Er[kr].type==="brace")break;if(Er[kr].type!=="dots")Zr.unshift(Er[kr].value)}pr=Ajr(Zr,t),V.backtrack=!0}if(Ar.comma!==!0&&Ar.dots!==!0){let Er=V.output.slice(0,Ar.outputIndex),Zr=V.tokens.slice(Ar.tokensIndex);Ar.value=Ar.output="\\{",U=pr="\\}",V.output=Er;for(let kr of Zr)V.output+=kr.output||kr.value}Yr({type:"brace",value:U,output:pr}),zi("braces"),k.pop();continue}if(U==="|"){if(S.length>0)S[S.length-1].conditions++;Yr({type:"text",value:U});continue}if(U===","){let Ar=U,pr=k[k.length-1];if(pr&&er[er.length-1]==="braces")pr.comma=!0,Ar="|";Yr({type:"comma",value:U,output:Ar});continue}if(U==="/"){if(tr.type==="dot"&&V.index===V.start+1){V.start=V.index+1,V.consumed="",V.output="",h.pop(),tr=u;continue}Yr({type:"slash",value:U,output:b});continue}if(U==="."){if(V.braces>0&&tr.type==="dot"){if(tr.value===".")tr.output=P;let Ar=k[k.length-1];tr.type="dots",tr.output+=U,tr.value+=U,Ar.dots=!0;continue}if(V.braces+V.parens===0&&tr.type!=="bos"&&tr.type!=="slash"){Yr({type:"text",value:U,output:P});continue}Yr({type:"dot",value:U,output:P});continue}if(U==="?"){if(!(tr&&tr.value==="(")&&t.noextglob!==!0&&Cr()==="("&&Cr(2)!=="?"){Vr("qmark",U);continue}if(tr&&tr.type==="paren"){let pr=Cr(),Er=U;if(tr.value==="("&&!/[!=<:]/.test(pr)||pr==="<"&&!/<([!=]|\w+>)/.test(jr()))Er=`\\${U}`;Yr({type:"text",value:U,output:Er});continue}if(t.dot!==!0&&(tr.type==="slash"||tr.type==="bos")){Yr({type:"qmark",value:U,output:W});continue}Yr({type:"qmark",value:U,output:J});continue}if(U==="!"){if(t.noextglob!==!0&&Cr()==="("){if(Cr(2)!=="?"||!/[!=<:]/.test(Cr(3))){Vr("negate",U);continue}}if(t.nonegate!==!0&&V.index===0){$i();continue}}if(U==="+"){if(t.noextglob!==!0&&Cr()==="("&&Cr(2)!=="?"){Vr("plus",U);continue}if(tr&&tr.value==="("||t.regex===!1){Yr({type:"plus",value:U,output:M});continue}if(tr&&(tr.type==="bracket"||tr.type==="paren"||tr.type==="brace")||V.parens>0){Yr({type:"plus",value:U});continue}Yr({type:"plus",value:M});continue}if(U==="@"){if(t.noextglob!==!0&&Cr()==="("&&Cr(2)!=="?"){Yr({type:"at",extglob:!0,value:U,output:""});continue}Yr({type:"text",value:U});continue}if(U!=="*"){if(U==="$"||U==="^")U=`\\${U}`;let Ar=gjr.exec(jr());if(Ar)U+=Ar[0],V.index+=Ar[0].length;Yr({type:"text",value:U});continue}if(tr&&(tr.type==="globstar"||tr.star===!0)){tr.type="star",tr.star=!0,tr.value+=U,tr.output=T,V.backtrack=!0,V.globstar=!0,zr(U);continue}let Jr=jr();if(t.noextglob!==!0&&/^\([^?]/.test(Jr)){Vr("star",U);continue}if(tr.type==="star"){if(t.noglobstar===!0){zr(U);continue}let Ar=tr.prev,pr=Ar.prev,Er=Ar.type==="slash"||Ar.type==="bos",Zr=pr&&(pr.type==="star"||pr.type==="globstar");if(t.bash===!0&&(!Er||Jr[0]&&Jr[0]!=="/")){Yr({type:"star",value:U,output:""});continue}let kr=V.braces>0&&(Ar.type==="comma"||Ar.type==="brace"),Dr=S.length&&(Ar.type==="pipe"||Ar.type==="paren");if(!Er&&Ar.type!=="paren"&&!kr&&!Dr){Yr({type:"star",value:U,output:""});continue}while(Jr.slice(0,3)==="/**"){let et=r[V.index+4];if(et&&et!=="/")break;Jr=Jr.slice(3),zr("/**",3)}if(Ar.type==="bos"&&Z()){tr.type="globstar",tr.value+=U,tr.output=hr(t),V.output=tr.output,V.globstar=!0,zr(U);continue}if(Ar.type==="slash"&&Ar.prev.type!=="bos"&&!Zr&&Z()){V.output=V.output.slice(0,-(Ar.output+tr.output).length),Ar.output=`(?:${Ar.output}`,tr.type="globstar",tr.output=hr(t)+(t.strictSlashes?")":"|$)"),tr.value+=U,V.globstar=!0,V.output+=Ar.output+tr.output,zr(U);continue}if(Ar.type==="slash"&&Ar.prev.type!=="bos"&&Jr[0]==="/"){let et=Jr[1]!==void 0?"|$":"";V.output=V.output.slice(0,-(Ar.output+tr.output).length),Ar.output=`(?:${Ar.output}`,tr.type="globstar",tr.output=`${hr(t)}${b}|${b}${et})`,tr.value+=U,V.output+=Ar.output+tr.output,V.globstar=!0,zr(U+Pr()),Yr({type:"slash",value:"/",output:""});continue}if(Ar.type==="bos"&&Jr[0]==="/"){tr.type="globstar",tr.value+=U,tr.output=`(?:^|${b}|${hr(t)}${b})`,V.output=tr.output,V.globstar=!0,zr(U+Pr()),Yr({type:"slash",value:"/",output:""});continue}V.output=V.output.slice(0,-tr.output.length),tr.type="globstar",tr.output=hr(t),tr.value+=U,V.output+=tr.output,V.globstar=!0,zr(U);continue}let dr={type:"star",value:U,output:T};if(t.bash===!0){if(dr.output=".*?",tr.type==="bos"||tr.type==="slash")dr.output=vr+dr.output;Yr(dr);continue}if(tr&&(tr.type==="bracket"||tr.type==="paren")&&t.regex===!0){dr.output=U,Yr(dr);continue}if(V.index===V.start||tr.type==="slash"||tr.type==="dot"){if(tr.type==="dot")V.output+=j,tr.output+=j;else if(t.dot===!0)V.output+=H,tr.output+=H;else V.output+=vr,tr.output+=vr;if(Cr()!=="*")V.output+=o,tr.output+=o}Yr(dr)}while(V.brackets>0){if(t.strictBrackets===!0)throw SyntaxError(Cn("closing","]"));V.output=Js.escapeLast(V.output,"["),zi("brackets")}while(V.parens>0){if(t.strictBrackets===!0)throw SyntaxError(Cn("closing",")"));V.output=Js.escapeLast(V.output,"("),zi("parens")}while(V.braces>0){if(t.strictBrackets===!0)throw SyntaxError(Cn("closing","}"));V.output=Js.escapeLast(V.output,"{"),zi("braces")}if(t.strictSlashes!==!0&&(tr.type==="star"||tr.type==="bracket"))Yr({type:"maybe_slash",value:"",output:`${b}?`});if(V.backtrack===!0){V.output="";for(let Jr of V.tokens)if(V.output+=Jr.output!=null?Jr.output:Jr.value,Jr.suffix)V.output+=Jr.suffix}return V};x4.fastpaths=(r,i)=>{let t={...i},s=typeof t.maxLength==="number"?Math.min($9,t.maxLength):$9,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);r=pcr[r]||r;let{DOT_LITERAL:u,SLASH_LITERAL:h,ONE_CHAR:c,DOTS_SLASH:p,NO_DOT:w,NO_DOTS:P,NO_DOTS_SLASH:M,STAR:b,START_ANCHOR:o}=e8.globChars(t.windows),L=t.dot?P:w,I=t.dot?M:w,j=t.capture?"":"?:",H={negated:!1,prefix:""},J=t.bash===!0?".*?":b;if(t.capture)J=`(${J})`;let W=(vr)=>{if(vr.noglobstar===!0)return J;return`(${j}(?:(?!${o}${vr.dot?p:u}).)*?)`},sr=(vr)=>{switch(vr){case"*":return`${L}${c}${J}`;case".*":return`${u}${c}${J}`;case"*.*":return`${L}${J}${u}${c}${J}`;case"*/*":return`${L}${J}${h}${c}${I}${J}`;case"**":return L+W(t);case"**/*":return`(?:${L}${W(t)}${h})?${I}${c}${J}`;case"**/*.*":return`(?:${L}${W(t)}${h})?${I}${J}${u}${c}${J}`;case"**/.*":return`(?:${L}${W(t)}${h})?${u}${c}${J}`;default:{let q=/^(.*?)\.(\w+)$/.exec(vr);if(!q)return;let T=sr(q[1]);if(!T)return;return T+u+q[2]}}},rr=Js.removePrefix(r,H),hr=sr(rr);if(hr&&t.strictSlashes!==!0)hr+=`${h}?`;return hr};bcr.exports=x4});var qcr=cr((fpi,Ccr)=>{var Ejr=vcr(),r3=dcr(),wcr=i8(),Vjr=r8(),Ijr=(r)=>r&&typeof r==="object"&&!Array.isArray(r),ye=(r,i,t=!1)=>{if(Array.isArray(r)){let P=r.map((b)=>ye(b,i,t));return(b)=>{for(let o of P){let L=o(b);if(L)return L}return!1}}let s=Ijr(r)&&r.tokens&&r.input;if(r===""||typeof r!=="string"&&!s)throw TypeError("Expected pattern to be a non-empty string");let l=i||{},u=l.windows,h=s?ye.compileRe(r,i):ye.makeRe(r,i,!1,!0),c=h.state;delete h.state;let p=()=>!1;if(l.ignore){let P={...i,ignore:null,onMatch:null,onResult:null};p=ye(l.ignore,P,t)}let w=(P,M=!1)=>{let{isMatch:b,match:o,output:L}=ye.test(P,h,i,{glob:r,posix:u}),I={glob:r,state:c,regex:h,posix:u,input:P,output:L,match:o,isMatch:b};if(typeof l.onResult==="function")l.onResult(I);if(b===!1)return I.isMatch=!1,M?I:!1;if(p(P)){if(typeof l.onIgnore==="function")l.onIgnore(I);return I.isMatch=!1,M?I:!1}if(typeof l.onMatch==="function")l.onMatch(I);return M?I:!0};if(t)w.state=c;return w};ye.test=(r,i,t,{glob:s,posix:l}={})=>{if(typeof r!=="string")throw TypeError("Expected input to be a string");if(r==="")return{isMatch:!1,output:""};let u=t||{},h=u.format||(l?wcr.toPosixSlashes:null),c=r===s,p=c&&h?h(r):r;if(c===!1)p=h?h(r):r,c=p===s;if(c===!1||u.capture===!0)if(u.matchBase===!0||u.basename===!0)c=ye.matchBase(r,i,t,l);else c=i.exec(p);return{isMatch:Boolean(c),match:c,output:p}};ye.matchBase=(r,i,t)=>{return(i instanceof RegExp?i:ye.makeRe(i,t)).test(wcr.basename(r))};ye.isMatch=(r,i,t)=>ye(i,t)(r);ye.parse=(r,i)=>{if(Array.isArray(r))return r.map((t)=>ye.parse(t,i));return r3(r,{...i,fastpaths:!1})};ye.scan=(r,i)=>Ejr(r,i);ye.compileRe=(r,i,t=!1,s=!1)=>{if(t===!0)return r.output;let l=i||{},u=l.contains?"":"^",h=l.contains?"":"$",c=`${u}(?:${r.output})${h}`;if(r&&r.negated===!0)c=`^(?!${c}).*$`;let p=ye.toRegex(c,i);if(s===!0)p.state=r;return p};ye.makeRe=(r,i={},t=!1,s=!1)=>{if(!r||typeof r!=="string")throw TypeError("Expected a non-empty string");let l={negated:!1,fastpaths:!0};if(i.fastpaths!==!1&&(r[0]==="."||r[0]==="*"))l.output=r3.fastpaths(r,i);if(!l.output)l=r3(r,i);return ye.compileRe(l,i,t,s)};ye.toRegex=(r,i)=>{try{let t=i||{};return new RegExp(r,t.flags||(t.nocase?"i":""))}catch(t){if(i&&i.debug===!0)throw t;return/$^/}};ye.constants=Vjr;Ccr.exports=ye});var Rcr=cr((hpi,gcr)=>{var Pcr=qcr(),Fjr=i8();function $cr(r,i,t=!1){if(i&&(i.windows===null||i.windows===void 0))i={...i,windows:Fjr.isWindows()};return Pcr(r,i,t)}Object.assign($cr,Pcr);gcr.exports=$cr});var ra;(function(r){r.start="/**",r.nostart="/***",r.delim="*",r.end="*/"})(ra=ra||(ra={}));function bq(r){return/^\s+$/.test(r)}function aV(r){let i=r.match(/\r+$/);return i==null?["",r]:[r.slice(-i[0].length),r.slice(0,-i[0].length)]}function Hl(r){let i=r.match(/^\s+/);return i==null?["",r]:[r.slice(0,i[0].length),r.slice(i[0].length)]}function lV(r){return r.split(/\n/)}function uV(r={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},r)}function dq(r={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},r)}var Abr=/^@\S+/;function wq({fence:r="```"}={}){let i=Mbr(r),t=(s,l)=>i(s)?!l:l;return function(l){let u=[[]],h=!1;for(let c of l){if(Abr.test(c.tokens.description)&&!h)u.push([c]);else u[u.length-1].push(c);h=t(c.tokens.description,h)}return u}}function Mbr(r){if(typeof r==="string")return(i)=>i.split(r).length%2===0;return r}function Cq({startLine:r=0,markers:i=ra}={}){let t=null,s=r;return function(u){let h=u,c=dq();if([c.lineEnd,h]=aV(h),[c.start,h]=Hl(h),t===null&&h.startsWith(i.start)&&!h.startsWith(i.nostart))t=[],c.delimiter=h.slice(0,i.start.length),h=h.slice(i.start.length),[c.postDelimiter,h]=Hl(h);if(t===null)return s++,null;let p=h.trimRight().endsWith(i.end);if(c.delimiter===""&&h.startsWith(i.delim)&&!h.startsWith(i.end))c.delimiter=i.delim,h=h.slice(i.delim.length),[c.postDelimiter,h]=Hl(h);if(p){let w=h.trimRight();c.end=h.slice(w.length-i.end.length),h=w.slice(0,-i.end.length)}if(c.description=h,t.push({number:s,source:u,tokens:c}),s++,p){let w=t.slice();return t=null,w}return null}}function qq({tokenizers:r}){return function(t){var s;let l=uV({source:t});for(let u of r)if(l=u(l),(s=l.problems[l.problems.length-1])===null||s===void 0?void 0:s.critical)break;return l}}function _b(){return(r)=>{let{tokens:i}=r.source[0],t=i.description.match(/\s*(@(\S+))(\s*)/);if(t===null)return r.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:r.source[0].number,critical:!0}),r;return i.tag=t[1],i.postTag=t[3],i.description=i.description.slice(t[0].length),r.tag=t[2],r}}function xb(r="compact"){let i=Tbr(r);return(t)=>{let s=0,l=[];for(let[c,{tokens:p}]of t.source.entries()){let w="";if(c===0&&p.description[0]!=="{")return t;for(let P of p.description){if(P==="{")s++;if(P==="}")s--;if(w+=P,s===0)break}if(l.push([p,w]),s===0)break}if(s!==0)return t.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:t.source[0].number,critical:!0}),t;let u=[],h=l[0][0].postDelimiter.length;for(let[c,[p,w]]of l.entries()){if(p.type=w,c>0)p.type=p.postDelimiter.slice(h)+w,p.postDelimiter=p.postDelimiter.slice(0,h);[p.postType,p.description]=Hl(p.description.slice(w.length)),u.push(p.type)}return u[0]=u[0].slice(1),u[u.length-1]=u[u.length-1].slice(0,-1),t.type=i(u),t}}var Sbr=(r)=>r.trim();function Tbr(r){if(r==="compact")return(i)=>i.map(Sbr).join("");else if(r==="preserve")return(i)=>i.join(`
359
359
  `);else return r}var Obr=(r)=>r&&r.startsWith('"')&&r.endsWith('"');function rd(){let r=(i,{tokens:t},s)=>t.type===""?i:s;return(i)=>{let{tokens:t}=i.source[i.source.reduce(r,0)],s=t.description.trimLeft(),l=s.split('"');if(l.length>1&&l[0]===""&&l.length%2===1)return i.name=l[1],t.name=`"${l[1]}"`,[t.postName,t.description]=Hl(s.slice(t.name.length)),i;let u=0,h="",c=!1,p;for(let P of s){if(u===0&&bq(P))break;if(P==="[")u++;if(P==="]")u--;h+=P}if(u!==0)return i.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:i.source[0].number,critical:!0}),i;let w=h;if(h[0]==="["&&h[h.length-1]==="]"){c=!0,h=h.slice(1,-1);let P=h.split("=");if(h=P[0].trim(),P[1]!==void 0)p=P.slice(1).join("=").trim();if(h==="")return i.problems.push({code:"spec:name:empty-name",message:"empty name",line:i.source[0].number,critical:!0}),i;if(p==="")return i.problems.push({code:"spec:name:empty-default",message:"empty default value",line:i.source[0].number,critical:!0}),i;if(!Obr(p)&&/=(?!>)/.test(p))return i.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:i.source[0].number,critical:!0}),i}if(i.optional=c,i.name=h,t.name=w,p!==void 0)i.default=p;return[t.postName,t.description]=Hl(s.slice(t.name.length)),i}}function id(r="compact",i=ra){let t=Pq(r);return(s)=>{return s.description=t(s.source,i),s}}function Pq(r){if(r==="compact")return Lbr;if(r==="preserve")return Ibr;return r}function Lbr(r,i=ra){return r.map(({tokens:{description:t}})=>t.trim()).filter((t)=>t!=="").join(" ")}var Ebr=(r,{tokens:i},t)=>i.type===""?r:t,Vbr=({tokens:r})=>(r.delimiter===""?r.start:r.postDelimiter.slice(1))+r.description;function Ibr(r,i=ra){if(r.length===0)return"";if(r[0].tokens.description===""&&r[0].tokens.delimiter===i.start)r=r.slice(1);let t=r[r.length-1];if(t!==void 0&&t.tokens.description===""&&t.tokens.end.endsWith(i.end))r=r.slice(0,-1);return r=r.slice(r.reduce(Ebr,0)),r.map(Vbr).join(`
360
360
  `)}function $q({startLine:r=0,fence:i="```",spacing:t="compact",markers:s=ra,tokenizers:l=[_b(),xb(t),rd(),id(t)]}={}){if(r<0||r%1>0)throw Error("Invalid startLine");let u=Cq({startLine:r,markers:s}),h=wq({fence:i}),c=qq({tokenizers:l}),p=Pq(t);return function(w){let P=[];for(let M of lV(w)){let b=u(M);if(b===null)continue;let o=h(b),L=o.slice(1).map(c);P.push({description:p(o[0],s),tags:L,source:b,problems:L.reduce((I,j)=>I.concat(j.problems),[])})}return P}}function Fbr(r){return r.start+r.delimiter+r.postDelimiter+r.tag+r.postTag+r.type+r.postType+r.name+r.postName+r.description+r.end+r.lineEnd}function gq(){return(r)=>r.source.map(({tokens:i})=>Fbr(i)).join(`
361
361
  `)}var Bbr={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 NZr=Object.keys(Bbr);function Yy(r,i={}){return $q(i)(r)}var aQr=gq();class td{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(r)=>this.replacement=r}}replace(r,i,t,s){if(r&&i)if(t!=null)r[i][t]=s;else r[i]=s}remove(r,i,t){if(r&&i)if(t!==null&&t!==void 0)r[i].splice(t,1);else delete r[i]}}class Aq extends td{constructor(r,i){super();this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(t)=>this.replacement=t},this.enter=r,this.leave=i}visit(r,i,t,s){if(r){if(this.enter){let u=this.should_skip,h=this.should_remove,c=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,r,i,t,s),this.replacement)r=this.replacement,this.replace(i,t,s,r);if(this.should_remove)this.remove(i,t,s);let p=this.should_skip,w=this.should_remove;if(this.should_skip=u,this.should_remove=h,this.replacement=c,p)return r;if(w)return null}let l;for(l in r){let u=r[l];if(u&&typeof u==="object"){if(Array.isArray(u)){let h=u;for(let c=0;c<h.length;c+=1){let p=h[c];if(fV(p)){if(!this.visit(p,r,l,c))c--}}}else if(fV(u))this.visit(u,r,l,null)}}if(this.leave){let u=this.replacement,h=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,r,i,t,s),this.replacement)r=this.replacement,this.replace(i,t,s,r);if(this.should_remove)this.remove(i,t,s);let c=this.should_remove;if(this.replacement=u,this.should_remove=h,c)return null}}return r}}function fV(r){return r!==null&&typeof r==="object"&&"type"in r&&typeof r.type==="string"}function ed(r,{enter:i,leave:t}){return new Aq(i,t).visit(r,null)}function gi(r,i,t){let s=t._,l=!1;function u(c,{next:p,state:w}){p(w)}function h(c,p,w){if(l)return;if(!c.type)return;let P,M={},b={path:p,state:w,next:(L=w)=>{p.push(c);for(let I in c){if(I==="type")continue;let j=c[I];if(j&&typeof j==="object")if(Array.isArray(j)){let H={},J=j.length,W=!1;for(let sr=0;sr<J;sr++){let rr=j[sr];if(rr&&typeof rr==="object"){let hr=h(rr,p,L);if(hr)H[sr]=hr,W=!0}}if(W)M[I]=j.map((sr,rr)=>H[rr]??sr)}else{let H=h(j,p,L);if(H)M[I]=H}}if(p.pop(),Object.keys(M).length>0)return hV(c,M)},stop:()=>{l=!0},visit:(L,I=w)=>{p.push(c);let j=h(L,p,I)??L;return p.pop(),j}},o=t[c.type]??u;if(s){let L;if(P=s(c,{...b,next:(I=w)=>{return w=I,L=o(c,{...b,state:I}),L}}),!P&&L)P=L}else P=o(c,b);if(!P){if(Object.keys(M).length>0)P=hV(c,M)}if(P)return P}return h(r,[],i)??r}function hV(r,i){let t={},s=Object.getOwnPropertyDescriptors(r);for(let l in s)Object.defineProperty(t,l,s[l]);for(let l in i)t[l]=i[l];return t}var nV=/\s/,sd=/\s+/,Of=/^\r?\n/,cV=/^\s/,Lf=/^[ \t\r\n]+/,Mq=/\s$/,Ru=/[ \t\r\n]+$/,tl=/[^ \t\r\n]/,Sq=/[ \t\n\r\f]+/g,yV=/^[ \t\n\r\f]+$/,ad=/[^\n]/g,Wy=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,vV=/(^[^a-zA-Z_$]|[^a-zA-Z0-9_$])/g,pV=/^[aeiou]/,mV=/^h[1-6]$/,oV=/(^[0-9-.])|[\^$@%&#?!|()[\]{}^*+~;]/,Ef=/[\u202a\u202b\u202c\u202d\u202e\u2066\u2067\u2068\u2069]+/g,bV=/^\W*javascript:/i,dV=/\b(image|picture|photo)\b/i;var ld=1,Gy=2,wV=4,CV=8,qV=16,PV=1,$V=2,gV=4,RV=8,AV=16,MV=1,SV=2,TV=4,ud=1,Tq=2,OV=4,LV=8,EV="[",VV="[!";var IV="]";var FV=1,Oq=2,BV=4,CQr=Symbol(),qQr=Symbol("filename"),PQr=Symbol("hmr");var fd="http://www.w3.org/2000/svg",hd="http://www.w3.org/1998/Math/MathML",HV=["await_waterfall","await_reactivity_loss","state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"];function Au(r,i){if(i.length===0)return null;let s=new jV(i).get(r);return s&&s[0][0]>0.7?s[0][1]:null}var Lq=2,Eq=3;function Hbr(r,i){if(r===null&&i===null)throw"Trying to compare two null values";if(r===null||i===null)return 0;return r=String(r),i=String(i),1-Ubr(r,i)/Math.max(r.length,i.length)}function Ubr(r,i){let t=[],s=0;for(let l=0;l<=i.length;l++)for(let u=0;u<=r.length;u++){let h;if(l&&u)if(r.charAt(u-1)===i.charAt(l-1))h=s;else h=Math.min(t[u],t[u-1],s)+1;else h=l+u;s=t[u],t[u]=h}return t.pop()}var Nbr=/[^\w, ]+/;function jbr(r,i=2){let t="-"+r.toLowerCase().replace(Nbr,"")+"-",s=i-t.length,l=[];if(s>0)for(let u=0;u<s;++u)r+="-";for(let u=0;u<t.length-i+1;++u)l.push(t.slice(u,u+i));return l}function UV(r,i=2){let t={},s=jbr(r,i),l=0;for(l;l<s.length;++l)if(s[l]in t)t[s[l]]+=1;else t[s[l]]=1;return t}function NV(r,i){return i[0]-r[0]}class jV{exact_set={};match_dict={};items={};constructor(r){for(let i=Lq;i<Eq+1;++i)this.items[i]=[];for(let i=0;i<r.length;++i)this.add(r[i])}add(r){if(r.toLowerCase()in this.exact_set)return!1;let t=Lq;for(t;t<Eq+1;++t)this._add(r,t)}_add(r,i){let t=r.toLowerCase(),s=this.items[i]||[],l=s.length;s.push(0);let u=UV(t,i),h=0,c,p;for(c in u)if(p=u[c],h+=Math.pow(p,2),c in this.match_dict)this.match_dict[c].push([l,p]);else this.match_dict[c]=[[l,p]];let w=Math.sqrt(h);s[l]=[w,t],this.items[i]=s,this.exact_set[t]=r}get(r){let i=r.toLowerCase(),t=this.exact_set[i];if(t)return[[1,t]];for(let s=Eq;s>=Lq;--s){let l=this.__get(r,s);if(l.length>0)return l}return null}__get(r,i){let t=r.toLowerCase(),s={},l=UV(t,i),u=this.items[i],h=0,c,p,w,P,M;for(c in l)if(p=l[c],h+=Math.pow(p,2),c in this.match_dict)for(w=0;w<this.match_dict[c].length;++w)if(P=this.match_dict[c][w][0],M=this.match_dict[c][w][1],P in s)s[P]+=p*M;else s[P]=p*M;let b=Math.sqrt(h),o=[],L;for(let H in s)L=s[H],o.push([L/(b*u[H][0]),u[H][1]]);o.sort(NV);let I=[],j=Math.min(50,o.length);for(let H=0;H<j;++H)I.push([Hbr(o[H][1],t),o[H][1]]);o=I,o.sort(NV),I=[];for(let H=0;H<o.length;++H)if(o[H][0]===o[0][0])I.push([o[H][0],this.exact_set[o[H][1]]]);return I}}function zbr(r,i){return r.start<=i&&i<r.end}function Vq(r,i={}){let{offsetLine:t=0,offsetColumn:s=0}=i,l=0,u=r.split(`
@@ -433,7 +433,7 @@ Defaulting to 2020, but this will stop working in the future.`);i.ecmaVersion=11
433
433
  `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};ct.readEscapedChar=function(r){var i=this.input.charCodeAt(++this.pos);switch(++this.pos,i){case 110:return`
434
434
  `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Nl(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(r){var t=this.pos-1;this.invalidStringToken(t,"Invalid escape sequence in template string")}default:if(i>=48&&i<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],l=parseInt(s,8);if(l>255)s=s.slice(0,-1),l=parseInt(s,8);if(this.pos+=s.length-1,i=this.input.charCodeAt(this.pos),(s!=="0"||i===56||i===57)&&(this.strict||r))this.invalidStringToken(this.pos-1-s.length,r?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(l)}if(Bf(i)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(i)}};ct.readHexChar=function(r){var i=this.pos,t=this.readInt(16,r);if(t===null)this.invalidStringToken(i,"Bad character escape sequence");return t};ct.readWord1=function(){this.containsEsc=!1;var r="",i=!0,t=this.pos,s=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var l=this.fullCharCodeAtPos();if(Oa(l,s))this.pos+=l<=65535?1:2;else if(l===92){this.containsEsc=!0,r+=this.input.slice(t,this.pos);var u=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var h=this.readCodePoint();if(!(i?Is:Oa)(h,s))this.invalidStringToken(u,"Invalid Unicode escape");r+=Nl(h),t=this.pos}else break;i=!1}return r+this.input.slice(t,this.pos)};ct.readWord=function(){var r=this.readWord1(),i=lr.name;if(this.keywords.test(r))i=e1[r];return this.finishToken(i,r)};var fB="8.16.0";Ut.acorn={Parser:Ut,version:fB,defaultOptions:bd,Position:t1,SourceLocation:rv,getLineInfo:kq,Node:tv,TokenType:it,tokTypes:lr,keywordTypes:e1,TokContext:We,tokContexts:Jt,isIdentifierChar:Oa,isIdentifierStart:Is,Token:Ad,isNewLine:Bf,lineBreak:us,lineBreakG:TF,nonASCIIwhitespace:Dq};function eP(r,i){return Ut.parse(r,i)}function Ndr(r,i,t){return Ut.parseExpressionAt(r,i,t)}function jdr(r,i){return Ut.tokenizer(r,i)}var Fs=!0;function Bs(r,i={}){return new it("name",i)}var zdr=new WeakMap,hB=Object.values(e1);function Zdr(r){let i=r.Parser.acorn||r,t=zdr.get(i);if(!t){let s=function(L){return L===lr.name||L===lr.string||L===lr.num||hB.includes(L)||P.includes(L)},l=function(L){return L===lr.name||hB.includes(L)||P.includes(L)},u=function(L){return L===lr.name||P.includes(L)},h=function(L){return L===w.abstract||L===w.declare||L===w.enum||L===w.module||L===w.namespace||L===w.interface||L===w.type},c=function(L){return L===w.keyof||L===w.readonly||L===w.unique},p=function(L){return L===lr.invalidTemplate},w=Ydr(),P=Object.values(w),M=Jdr(),b=Qdr(),o=new RegExp(`^(?:${Object.keys(w).join("|")})$`);M.jsxTagStart.updateContext=function(){this.context.push(b.tc_expr),this.context.push(b.tc_oTag),this.exprAllowed=!1},M.jsxTagEnd.updateContext=function(L){let I=this.context.pop();if(I===b.tc_oTag&&L===lr.slash||I===b.tc_cTag)this.context.pop(),this.exprAllowed=this.curContext()===b.tc_expr;else this.exprAllowed=!0},t={tokTypes:{...w,...M},tokContexts:{...b},keywordsRegExp:o,tokenIsLiteralPropertyName:s,tokenIsKeywordOrIdentifier:l,tokenIsIdentifier:u,tokenIsTSDeclarationStart:h,tokenIsTSTypeOperator:c,tokenIsTemplate:p}}return t}function Qdr(){return{tc_oTag:new We("<tag",!1,!1),tc_cTag:new We("</tag",!1,!1),tc_expr:new We("<tag>...</tag>",!0,!0)}}function Jdr(){return{at:new it("@"),jsxName:new it("jsxName"),jsxText:new it("jsxText",{beforeExpr:!0}),jsxTagStart:new it("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new it("jsxTagEnd")}}function Ydr(){return{assert:Bs("assert",{startsExpr:Fs}),asserts:Bs("asserts",{startsExpr:Fs}),global:Bs("global",{startsExpr:Fs}),keyof:Bs("keyof",{startsExpr:Fs}),readonly:Bs("readonly",{startsExpr:Fs}),unique:Bs("unique",{startsExpr:Fs}),abstract:Bs("abstract",{startsExpr:Fs}),declare:Bs("declare",{startsExpr:Fs}),enum:Bs("enum",{startsExpr:Fs}),module:Bs("module",{startsExpr:Fs}),namespace:Bs("namespace",{startsExpr:Fs}),interface:Bs("interface",{startsExpr:Fs}),type:Bs("type",{startsExpr:Fs})}}var Wdr=512,sv=1024,l1=1,Od=2,Gdr=4,lP=8,Kdr=16,mB=64,oB=128,Xdr=256,Ddr=512,bB=1024,jQr=l1|Od|lP|oB,zQr=l1|0|lP|0,ZQr=l1|0|Gdr|0,QQr=l1|0|Kdr|0,JQr=0|Od|0|oB,YQr=0|Od|0|0,kdr=l1|Od|lP|Xdr,WQr=0|bB,GQr=0|mB,KQr=l1|0|0|mB,XQr=kdr|Ddr,DQr=0|bB,dB=4,wB=2,CB=1,kQr=wB|CB,_Qr=wB|dB,xQr=CB|dB,_dr=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,nB=new RegExp("(?=("+_dr.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),av=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function xdr(r,i){let t=i.key.name,s=r[t],l="true";if(i.type==="MethodDefinition"&&(i.kind==="get"||i.kind==="set"))l=(i.static?"s":"i")+i.kind;if(s==="iget"&&l==="iset"||s==="iset"&&l==="iget"||s==="sget"&&l==="sset"||s==="sset"&&l==="sget")return r[t]="true",!1;else if(!s)return r[t]=l,!1;else return!0}function cB(r,i){let{computed:t,key:s}=r;return!t&&(s.type==="Identifier"&&s.name===i||s.type==="Literal"&&s.value===i)}var di={AbstractMethodHasImplementation:({methodName:r})=>`Method '${r}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:r})=>`Property '${r}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:({name:r})=>`Cannot find name '${r}'.`,ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:r})=>`'declare' is not allowed in ${r}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:()=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:r})=>`Duplicate modifier: '${r}'.`,EmptyHeritageClauseType:({token:r})=>`'${r}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:({modifiers:r})=>`'${r[0]}' modifier cannot be used with '${r[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:r})=>`Index signatures cannot have an accessibility modifier ('${r}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:r})=>`'${r}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:r})=>`'${r}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:r})=>`'${r}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:r})=>`'${r[0]}' modifier must precede '${r[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:r})=>`Private elements cannot have an accessibility modifier ('${r}').`,PrivateMethodsHasAccessibility:({modifier:r})=>`Private methods cannot have an accessibility modifier ('${r}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:r})=>`Single type parameter ${r} should have a trailing comma. Example usage: <${r},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:r})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${r}.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},Td={UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",TrailingDecorator:"Decorators must be attached to a class element.",SpreadElementDecorator:"Decorators can't be used with SpreadElement"};function rwr(r,i,t){let{tokTypes:s}=t,{tokTypes:l}=i;return class extends r{takeDecorators(h){let c=this.decoratorStack[this.decoratorStack.length-1];if(c.length)h.decorators=c,this.resetStartLocationFromNode(h,c[0]),this.decoratorStack[this.decoratorStack.length-1]=[]}parseDecorators(h){let c=this.decoratorStack[this.decoratorStack.length-1];while(this.match(l.at)){let p=this.parseDecorator();c.push(p)}if(this.match(s._export)){if(!h)this.unexpected()}else if(!this.canHaveLeadingDecorator())this.raise(this.start,Td.UnexpectedLeadingDecorator)}parseDecorator(){let h=this.startNode();this.next(),this.decoratorStack.push([]);let c=this.start,p=this.startLoc,w;if(this.match(s.parenL)){let P=this.start,M=this.startLoc;if(this.next(),w=this.parseExpression(),this.expect(s.parenR),this.options.preserveParens){let b=this.startNodeAt(P,M);b.expression=w,w=this.finishNode(b,"ParenthesizedExpression")}}else{w=this.parseIdent(!1);while(this.eat(s.dot)){let P=this.startNodeAt(c,p);P.object=w,P.property=this.parseIdent(!0),P.computed=!1,w=this.finishNode(P,"MemberExpression")}}return h.expression=this.parseMaybeDecoratorArguments(w),this.decoratorStack.pop(),this.finishNode(h,"Decorator")}parseMaybeDecoratorArguments(h){if(this.eat(s.parenL)){let c=this.startNodeAtNode(h);return c.callee=h,c.arguments=this.parseExprList(s.parenR,!1),this.finishNode(c,"CallExpression")}return h}}}var iwr={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},twr=/^[\da-fA-F]+$/,ewr=/^\d+$/;function lv(r){if(!r)return r;if(r.type==="JSXIdentifier")return r.name;if(r.type==="JSXNamespacedName")return r.namespace.name+":"+r.name.name;if(r.type==="JSXMemberExpression")return lv(r.object)+"."+lv(r.property)}function swr(r,i,t,s){let l=r.tokTypes,u=i.tokTypes,h=r.isNewLine,c=r.isIdentifierChar,p=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},s||{});return class extends t{jsx_readToken(){let P="",M=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated JSX contents");let b=this.input.charCodeAt(this.pos);switch(b){case 60:case 123:if(this.pos===this.start){if(b===60&&this.exprAllowed)return++this.pos,this.finishToken(u.jsxTagStart);return this.getTokenFromCode(b)}return P+=this.input.slice(M,this.pos),this.finishToken(u.jsxText,P);case 38:P+=this.input.slice(M,this.pos),P+=this.jsx_readEntity(),M=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(b===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:if(h(b))P+=this.input.slice(M,this.pos),P+=this.jsx_readNewLine(!0),M=this.pos;else++this.pos}}}jsx_readNewLine(P){let M=this.input.charCodeAt(this.pos),b;if(++this.pos,M===13&&this.input.charCodeAt(this.pos)===10)++this.pos,b=P?`
435
435
  `:`\r
436
- `;else b=String.fromCharCode(M);if(this.options.locations)++this.curLine,this.lineStart=this.pos;return b}jsx_readString(P){let M="",b=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");let o=this.input.charCodeAt(this.pos);if(o===P)break;if(o===38)M+=this.input.slice(b,this.pos),M+=this.jsx_readEntity(),b=this.pos;else if(h(o))M+=this.input.slice(b,this.pos),M+=this.jsx_readNewLine(!1),b=this.pos;else++this.pos}return M+=this.input.slice(b,this.pos++),this.finishToken(l.string,M)}jsx_readEntity(){let P="",M=0,b,o=this.input[this.pos];if(o!=="&")this.raise(this.pos,"Entity must start with an ampersand");let L=++this.pos;while(this.pos<this.input.length&&M++<10){if(o=this.input[this.pos++],o===";"){if(P[0]==="#"){if(P[1]==="x"){if(P=P.substr(2),twr.test(P))b=String.fromCharCode(parseInt(P,16))}else if(P=P.substr(1),ewr.test(P))b=String.fromCharCode(parseInt(P,10))}else b=iwr[P];break}P+=o}if(!b)return this.pos=L,"&";return b}jsx_readWord(){let P,M=this.pos;do P=this.input.charCodeAt(++this.pos);while(c(P)||P===45);return this.finishToken(u.jsxName,this.input.slice(M,this.pos))}jsx_parseIdentifier(){let P=this.startNode();if(this.type===u.jsxName)P.name=this.value;else if(this.type.keyword)P.name=this.type.keyword;else this.unexpected();return this.next(),this.finishNode(P,"JSXIdentifier")}jsx_parseNamespacedName(){let P=this.start,M=this.startLoc,b=this.jsx_parseIdentifier();if(!p.allowNamespaces||!this.eat(l.colon))return b;var o=this.startNodeAt(P,M);return o.namespace=b,o.name=this.jsx_parseIdentifier(),this.finishNode(o,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===u.jsxTagEnd)return"";let P=this.start,M=this.startLoc,b=this.jsx_parseNamespacedName();if(this.type===l.dot&&b.type==="JSXNamespacedName"&&!p.allowNamespacedObjects)this.unexpected();while(this.eat(l.dot)){let o=this.startNodeAt(P,M);o.object=b,o.property=this.jsx_parseIdentifier(),b=this.finishNode(o,"JSXMemberExpression")}return b}jsx_parseAttributeValue(){switch(this.type){case l.braceL:let P=this.jsx_parseExpressionContainer();if(P.expression.type==="JSXEmptyExpression")this.raise(P.start,"JSX attributes must only be assigned a non-empty expression");return P;case u.jsxTagStart:case l.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let P=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(P,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let P=this.startNode();return this.next(),P.expression=this.type===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(P,"JSXExpressionContainer")}jsx_parseAttribute(){let P=this.startNode();if(this.eat(l.braceL))return this.expect(l.ellipsis),P.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(P,"JSXSpreadAttribute");return P.name=this.jsx_parseNamespacedName(),P.value=this.eat(l.eq)?this.jsx_parseAttributeValue():null,this.finishNode(P,"JSXAttribute")}jsx_parseOpeningElementAt(P,M){let b=this.startNodeAt(P,M);b.attributes=[];let o=this.jsx_parseElementName();if(o)b.name=o;while(this.type!==l.slash&&this.type!==u.jsxTagEnd)b.attributes.push(this.jsx_parseAttribute());return b.selfClosing=this.eat(l.slash),this.expect(u.jsxTagEnd),this.finishNode(b,o?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(P,M){let b=this.startNodeAt(P,M),o=this.jsx_parseElementName();if(o)b.name=o;return this.expect(u.jsxTagEnd),this.finishNode(b,o?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(P,M){let b=this.startNodeAt(P,M),o=[],L=this.jsx_parseOpeningElementAt(P,M),I=null;if(!L.selfClosing){r:for(;;)switch(this.type){case u.jsxTagStart:if(P=this.start,M=this.startLoc,this.next(),this.eat(l.slash)){I=this.jsx_parseClosingElementAt(P,M);break r}o.push(this.jsx_parseElementAt(P,M));break;case u.jsxText:o.push(this.parseExprAtom());break;case l.braceL:o.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}if(lv(I.name)!==lv(L.name))this.raise(I.start,"Expected corresponding JSX closing tag for <"+lv(L.name)+">")}let j=L.name?"Element":"Fragment";if(b["opening"+j]=L,b["closing"+j]=I,b.children=o,this.type===l.relational&&this.value==="<")this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag");return this.finishNode(b,"JSX"+j)}jsx_parseText(){let P=this.parseLiteral(this.value);return P.type="JSXText",P}jsx_parseElement(){let P=this.start,M=this.startLoc;return this.next(),this.jsx_parseElementAt(P,M)}}}function awr(r,i,t){let{tokTypes:s}=i,{tokTypes:l}=t;return class extends r{parseMaybeImportAttributes(h){if(this.type===l._with||this.type===s.assert){this.next();let c=this.parseImportAttributes();if(c)h.attributes=c}}parseImportAttributes(){this.expect(l.braceL);let h=this.parseWithEntries();return this.expect(l.braceR),h}parseWithEntries(){let h=[],c=new Set;do{if(this.type===l.braceR)break;let p=this.startNode(),w;if(this.type===l.string)w=this.parseLiteral(this.value);else w=this.parseIdent(!0);if(this.next(),p.key=w,c.has(p.key.name))this.raise(this.pos,"Duplicated key in attributes");if(c.add(p.key.name),this.type!==l.string)this.raise(this.pos,"Only string is supported as an attribute value");p.value=this.parseLiteral(this.value),h.push(this.finishNode(p,"ImportAttribute"))}while(this.eat(l.comma));return h}}}var sP=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function yB(r){if(!r)throw Error("Assert fail")}function lwr(r){return r==="accessor"}function uwr(r){return r==="in"||r==="out"}var Sd=1,vB=2,fwr=4,Lt={SCOPE_TOP:1,SCOPE_FUNCTION:2,SCOPE_ASYNC:4,SCOPE_GENERATOR:8,SCOPE_ARROW:16,SCOPE_SIMPLE_CATCH:32,SCOPE_SUPER:64,SCOPE_DIRECT_SUPER:128,SCOPE_CLASS_STATIC_BLOCK:256,SCOPE_VAR:256,BIND_NONE:0,BIND_VAR:1,BIND_LEXICAL:2,BIND_FUNCTION:3,BIND_SIMPLE_CATCH:4,BIND_OUTSIDE:5,BIND_TS_TYPE:6,BIND_TS_INTERFACE:7,BIND_TS_NAMESPACE:8,BIND_FLAGS_TS_EXPORT_ONLY:1024,BIND_FLAGS_TS_IMPORT:4096,BIND_FLAGS_TS_ENUM:256,BIND_FLAGS_TS_CONST_ENUM:512,BIND_FLAGS_CLASS:128};function aP(r,i){return Lt.SCOPE_FUNCTION|(r?Lt.SCOPE_ASYNC:0)|(i?Lt.SCOPE_GENERATOR:0)}function hwr(r){if(r.type!=="MemberExpression")return!1;let{computed:i,property:t}=r;if(i&&(t.type!=="TemplateLiteral"||t.expressions.length>0))return!1;return qB(r.object)}function qB(r){if(r.type==="Identifier")return!0;if(r.type!=="MemberExpression")return!1;if(r.computed)return!1;return qB(r.object)}function pB(r){return r==="private"||r==="public"||r==="protected"}function nwr(r){return Boolean(r.startsExpr)}function cwr(r){if(r==null)throw Error(`Unexpected ${r} value.`);return r}function ywr(r){switch(r){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function PB(r){let{dts:i=!1}=r||{},t=!!r?.jsx;return function(s){let l=s.acorn||Md,u=Zdr(l),h=l.tokTypes,c=l.keywordTypes,p=l.isIdentifierStart,w=l.lineBreak,P=l.isNewLine,M=l.tokContexts,b=l.isIdentifierChar,{tokTypes:o,tokContexts:L,keywordsRegExp:I,tokenIsLiteralPropertyName:j,tokenIsTemplate:H,tokenIsTSDeclarationStart:J,tokenIsIdentifier:W,tokenIsKeywordOrIdentifier:sr,tokenIsTSTypeOperator:rr}=u;function hr(q,T,V=q.length){for(let S=T;S<V;S++){let k=q.charCodeAt(S);if(P(k))return S<V-1&&k===13&&q.charCodeAt(S+1)===10?S+2:S+1}return-1}if(s=rwr(s,u,l),r?.jsx)s=swr(l,u,s,typeof r.jsx==="boolean"?{}:r.jsx);s=awr(s,u,l);class vr extends s{constructor(q,T,V){super(q,T,V);this.preValue=null,this.preToken=null,this.isLookahead=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inType=!1,this.inDisallowConditionalTypesContext=!1,this.maybeInArrowParameters=!1,this.shouldParseArrowReturnType=void 0,this.shouldParseAsyncArrowReturnType=void 0,this.decoratorStack=[[]],this.importsStack=[[]],this.importOrExportOuterKind=void 0,this.tsParseConstModifier=(S)=>{this.tsParseModifiers({modified:S,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:di.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return u}get acornTypeScript(){return u}getTokenFromCodeInType(q){if(q===62)return this.finishOp(h.relational,1);if(q===60)return this.finishOp(h.relational,1);return super.getTokenFromCode(q)}readToken(q){if(!this.inType){let T=this.curContext();if(T===L.tc_expr)return this.jsx_readToken();if(T===L.tc_oTag||T===L.tc_cTag){if(p(q))return this.jsx_readWord();if(q==62)return++this.pos,this.finishToken(o.jsxTagEnd);if((q===34||q===39)&&T==L.tc_oTag)return this.jsx_readString(q)}if(q===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)if(++this.pos,r?.jsx)return this.finishToken(o.jsxTagStart);else return this.finishToken(h.relational,"<")}return super.readToken(q)}getTokenFromCode(q){if(this.inType)return this.getTokenFromCodeInType(q);if(q===64)return++this.pos,this.finishToken(o.at);return super.getTokenFromCode(q)}isAbstractClass(){return this.ts_isContextual(o.abstract)&&this.lookahead().type===h._class}finishNode(q,T){if(q.type!==""&&q.end!==0)return q;return super.finishNode(q,T)}tryParse(q,T=this.cloneCurLookaheadState()){let V={node:null};try{return{node:q((k=null)=>{throw V.node=k,V}),error:null,thrown:!1,aborted:!1,failState:null}}catch(S){let k=this.getCurLookaheadState();if(this.setLookaheadState(T),S instanceof SyntaxError)return{node:null,error:S,thrown:!0,aborted:!1,failState:k};if(S===V)return{node:V.node,error:null,thrown:!1,aborted:!0,failState:k};throw S}}setOptionalParametersError(q,T){q.optionalParametersLoc=T?.loc??this.startLoc}reScan_lt_gt(){if(this.type===h.relational)this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos())}reScan_lt(){let{type:q}=this;if(q===h.bitShift)return this.pos-=2,this.finishOp(h.relational,1),h.relational;return q}resetEndLocation(q,T=this.lastTokEnd,V=this.lastTokEndLoc){if(q.end=T,q.loc.end=V,this.options.ranges)q.range[1]=T}startNodeAtNode(q){return super.startNodeAt(q.start,q.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(q,T){return T.some((V)=>{if(pB(V))return q.accessibility===V;return!!q[V]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(q){q.forEach((T)=>{if(T?.type==="TSTypeCastExpression")this.raise(T.typeAnnotation.start,di.UnexpectedTypeAnnotation)})}atPossibleAsyncArrow(q){return q.type==="Identifier"&&q.name==="async"&&this.lastTokEnd===q.end&&!this.canInsertSemicolon()&&q.end-q.start===5&&q.start===this.potentialArrowAt}tsIsIdentifier(){return W(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(h.colon)?this.tsParseTypeOrTypePredicateAnnotation(h.colon):void 0}tsTryParseGenericAsyncArrowFunction(q,T,V){if(!this.tsMatchLeftRelational())return;let S=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let k=this.tsTryParseAndCatch(()=>{let er=this.startNodeAt(q,T);return er.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(er),er.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(h.arrow),er});if(this.maybeInArrowParameters=S,!k)return;return super.parseArrowExpression(k,null,!0,V)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==h.relational)return;return this.tsParseTypeArguments()}tsInNoContext(q){let T=this.context;this.context=[T[0]];try{return q()}finally{this.context=T}}tsTryParseTypeAnnotation(){return this.match(h.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(q,T){let V=q+T.length;if(this.input.slice(q,V)===T){let S=this.input.charCodeAt(V);return!(b(S)||(S&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(o.abstract)&&this.lookahead().type===h._new}nextTokenStartSince(q){return sP.lastIndex=q,sP.test(this.input)?sP.lastIndex:q}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(q,T){for(let V of Object.keys(q))if(q[V]!==T[V])return!1;return!0}createLookaheadState(){this.value=null,this.context=[this.curContext()]}getCurLookaheadState(){return{endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context,startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}}cloneCurLookaheadState(){return{pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context&&this.context.slice(),startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}}setLookaheadState(q){this.pos=q.pos,this.value=q.value,this.endLoc=q.endLoc,this.lastTokEnd=q.lastTokEnd,this.lastTokStart=q.lastTokStart,this.lastTokStartLoc=q.lastTokStartLoc,this.type=q.type,this.start=q.start,this.end=q.end,this.context=q.context,this.startLoc=q.startLoc,this.lastTokEndLoc=q.lastTokEndLoc,this.curLine=q.curLine,this.lineStart=q.lineStart,this.curPosition=q.curPosition,this.containsEsc=q.containsEsc}tsLookAhead(q){let T=this.getCurLookaheadState(),V=q();return this.setLookaheadState(T),V}lookahead(q){let T=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,q!==void 0)for(let S=0;S<q;S++)this.nextToken();else this.nextToken();this.isLookahead=!1;let V=this.getCurLookaheadState();return this.setLookaheadState(T),V}readWord(){let q=this.readWord1(),T=h.name;if(this.keywords.test(q))T=c[q];else if(new RegExp(I).test(q))T=o[q];return this.finishToken(T,q)}skipBlockComment(){let q;if(!this.isLookahead)q=this.options.onComment&&this.curPosition();let T=this.pos,V=this.input.indexOf("*/",this.pos+=2);if(V===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=V+2,this.options.locations)for(let S,k=T;(S=hr(this.input,k,this.pos))>-1;)++this.curLine,k=this.lineStart=S;if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!0,this.input.slice(T+2,V),T,this.pos,q,this.curPosition())}skipLineComment(q){let T=this.pos,V;if(!this.isLookahead)V=this.options.onComment&&this.curPosition();let S=this.input.charCodeAt(this.pos+=q);while(this.pos<this.input.length&&!P(S))S=this.input.charCodeAt(++this.pos);if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!1,this.input.slice(T+q,this.pos),T,this.pos,V,this.curPosition())}finishToken(q,T){if(this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();let V=this.type;if(this.type=q,this.value=T,!this.isLookahead)this.updateContext(V)}resetStartLocation(q,T,V){if(q.start=T,q.loc.start=V,this.options.ranges)q.range[0]=T}isLineTerminator(){return this.eat(h.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return nB.lastIndex=this.end,nB.test(this.input)}addExtra(q,T,V,S=!0){if(!q)return;let k=q.extra=q.extra||{};if(S)k[T]=V;else Object.defineProperty(k,T,{enumerable:S,value:V})}isLiteralPropertyName(){return j(this.type)}hasPrecedingLineBreak(){return w.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(q,T){return q.name=T,this.finishNode(q,"Identifier")}resetStartLocationFromNode(q,T){this.resetStartLocation(q,T.start,T.loc.start)}isThisParam(q){return q.type==="Identifier"&&q.name==="this"}isLookaheadContextual(q){let T=this.nextTokenStart();return this.isUnparsedContextual(T,q)}ts_type_isContextual(q,T){return q===T&&!this.containsEsc}ts_isContextual(q){return this.type===q&&!this.containsEsc}ts_isContextualWithState(q,T){return q.type===T&&!q.containsEsc}isContextualWithState(q,T){return T.type===h.name&&T.value===q&&!T.containsEsc}tsIsStartOfMappedType(){if(this.next(),this.eat(h.plusMin))return this.ts_isContextual(o.readonly);if(this.ts_isContextual(o.readonly))this.next();if(!this.match(h.bracketL))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(h._in)}tsInDisallowConditionalTypesContext(q){let T=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return q()}finally{this.inDisallowConditionalTypesContext=T}}tsTryParseType(){return this.tsEatThenParseType(h.colon)}match(q){return this.type===q}matchJsx(q){return this.type===u.tokTypes[q]}ts_eatWithState(q,T,V){let S=V.type;if(q===S){for(let k=0;k<T;k++)this.next();return!0}else return!1}ts_eatContextualWithState(q,T,V){if(I.test(q)){if(this.ts_isContextualWithState(V,o[q])){for(let S=0;S<T;S++)this.next();return!0}return!1}else{if(!this.isContextualWithState(q,V))return!1;for(let S=0;S<T;S++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(h._class)||this.isAbstractClass()}eatContextual(q){if(I.test(q)){if(this.ts_isContextual(o[q]))return this.next(),!0;return!1}else return super.eatContextual(q)}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseExternalModuleReference(){let q=this.startNode();if(this.expectContextual("require"),this.expect(h.parenL),!this.match(h.string))this.unexpected();return q.expression=this.parseExprAtom(),this.expect(h.parenR),this.finishNode(q,"TSExternalModuleReference")}tsParseEntityName(q=!0){let T=this.parseIdent(q);while(this.eat(h.dot)){let V=this.startNodeAtNode(T);V.left=T,V.right=this.parseIdent(q),T=this.finishNode(V,"TSQualifiedName")}return T}tsParseEnumMember(){let q=this.startNode();if(q.id=this.match(h.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(h.eq))q.initializer=this.parseMaybeAssign();return this.finishNode(q,"TSEnumMember")}tsParseEnumDeclaration(q,T={}){if(T.const)q.const=!0;if(T.declare)q.declare=!0;return this.expectContextual("enum"),q.id=this.parseIdent(),this.checkLValSimple(q.id),this.expect(h.braceL),q.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(h.braceR),this.finishNode(q,"TSEnumDeclaration")}tsParseModuleBlock(){let q=this.startNode();this.enterScope(Wdr),this.expect(h.braceL),q.body=[];while(this.type!==h.braceR){let T=this.parseStatement(null,!0);q.body.push(T)}return this.next(),super.exitScope(),this.finishNode(q,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(q){if(this.ts_isContextual(o.global))q.global=!0,q.id=this.parseIdent();else if(this.match(h.string))q.id=this.parseLiteral(this.value);else this.unexpected();if(this.match(h.braceL))this.enterScope(sv),q.body=this.tsParseModuleBlock(),super.exitScope();else super.semicolon();return this.finishNode(q,"TSModuleDeclaration")}tsTryParseDeclare(q){if(this.isLineTerminator())return;let T=this.type,V;if(this.isContextual("let"))T=h._var,V="let";return this.tsInAmbientContext(()=>{if(T===h._function)return q.declare=!0,this.parseFunctionStatement(q,!1,!0);if(T===h._class)return q.declare=!0,this.parseClass(q,!0);if(T===o.enum)return this.tsParseEnumDeclaration(q,{declare:!0});if(T===o.global)return this.tsParseAmbientExternalModuleDeclaration(q);if(T===h._const||T===h._var){if(!this.match(h._const)||!this.isLookaheadContextual("enum"))return q.declare=!0,this.parseVarStatement(q,V||this.value,!0);return this.expect(h._const),this.tsParseEnumDeclaration(q,{const:!0,declare:!0})}if(T===o.interface){let S=this.tsParseInterfaceDeclaration(q,{declare:!0});if(S)return S}if(W(T))return this.tsParseDeclaration(q,this.value,!0)})}tsIsListTerminator(q){switch(q){case"EnumMembers":case"TypeMembers":return this.match(h.braceR);case"HeritageClauseElement":return this.match(h.braceL);case"TupleElementTypes":return this.match(h.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}}tsParseDelimitedListWorker(q,T,V,S){let k=[],er=-1;for(;;){if(this.tsIsListTerminator(q))break;er=-1;let tr=T();if(tr==null)return;if(k.push(tr),this.eat(h.comma)){er=this.lastTokStart;continue}if(this.tsIsListTerminator(q))break;if(V)this.expect(h.comma);return}if(S)S.value=er;return k}tsParseDelimitedList(q,T,V){return cwr(this.tsParseDelimitedListWorker(q,T,!0,V))}tsParseBracketedList(q,T,V,S,k){if(!S)if(V)this.expect(h.bracketL);else this.expect(h.relational);let er=this.tsParseDelimitedList(q,T,k);if(V)this.expect(h.bracketR);else this.expect(h.relational);return er}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(q){return!this.match(q)?void 0:this.tsNextThenParseType()}tsExpectThenParseType(q){return this.tsDoThenParseType(()=>this.expect(q))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(q){return this.tsInType(()=>{return q(),this.tsParseType()})}tsSkipParameterStart(){if(W(this.type)||this.match(h._this))return this.next(),!0;if(this.match(h.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(h.bracketL)){this.next();try{return this.parseBindingList(h.bracketR,!0,!0),!0}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(h.parenR)||this.match(h.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(h.colon)||this.match(h.comma)||this.match(h.question)||this.match(h.eq))return!0;if(this.match(h.parenR)){if(this.next(),this.match(h.arrow))return!0}}return!1}tsIsStartOfFunctionType(){if(this.tsMatchLeftRelational())return!0;return this.match(h.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsInAllowConditionalTypesContext(q){let T=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return q()}finally{this.inDisallowConditionalTypesContext=T}}tsParseBindingListForSignature(){return super.parseBindingList(h.parenR,!0,!0).map((q)=>{if(q.type!=="Identifier"&&q.type!=="RestElement"&&q.type!=="ObjectPattern"&&q.type!=="ArrayPattern")this.raise(q.start,di.UnsupportedSignatureParameterKind({type:q.type}));return q})}tsParseTypePredicateAsserts(){if(this.type!==o.asserts)return!1;let q=this.containsEsc;if(this.next(),!W(this.type)&&!this.match(h._this))return!1;if(q)this.raise(this.lastTokStart,"Escape sequence in keyword asserts");return!0}tsParseThisTypeNode(){let q=this.startNode();return this.next(),this.finishNode(q,"TSThisType")}tsParseTypeAnnotation(q=!0,T=this.startNode()){return this.tsInType(()=>{if(q)this.expect(h.colon);T.typeAnnotation=this.tsParseType()}),this.finishNode(T,"TSTypeAnnotation")}tsParseThisTypePredicate(q){this.next();let T=this.startNodeAtNode(q);return T.parameterName=q,T.typeAnnotation=this.tsParseTypeAnnotation(!1),T.asserts=!1,this.finishNode(T,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){let q=this.tsParseThisTypeNode();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(q);else return q}tsParseTypePredicatePrefix(){let q=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),q}tsParseTypeOrTypePredicateAnnotation(q){return this.tsInType(()=>{let T=this.startNode();this.expect(q);let V=this.startNode(),S=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(S&&this.match(h._this)){let tr=this.tsParseThisTypeOrThisTypePredicate();if(tr.type==="TSThisType")V.parameterName=tr,V.asserts=!0,V.typeAnnotation=null,tr=this.finishNode(V,"TSTypePredicate");else this.resetStartLocationFromNode(tr,V),tr.asserts=!0;return T.typeAnnotation=tr,this.finishNode(T,"TSTypeAnnotation")}let k=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!k){if(!S)return this.tsParseTypeAnnotation(!1,T);return V.parameterName=this.parseIdent(),V.asserts=S,V.typeAnnotation=null,T.typeAnnotation=this.finishNode(V,"TSTypePredicate"),this.finishNode(T,"TSTypeAnnotation")}let er=this.tsParseTypeAnnotation(!1);return V.parameterName=k,V.typeAnnotation=er,V.asserts=S,T.typeAnnotation=this.finishNode(V,"TSTypePredicate"),this.finishNode(T,"TSTypeAnnotation")})}tsFillSignature(q,T){let V=q===h.arrow,S="parameters",k="typeAnnotation";if(T.typeParameters=this.tsTryParseTypeParameters(),this.expect(h.parenL),T.parameters=this.tsParseBindingListForSignature(),V)T.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(q);else if(this.match(q))T.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(q)}tsTryNextParseConstantContext(){if(this.lookahead().type!==h._const)return null;this.next();let q=this.tsParseTypeReference();if(q.typeParameters||q.typeArguments)this.raise(q.typeName.start,di.CannotFindName({name:"const"}));return q}tsParseFunctionOrConstructorType(q,T){let V=this.startNode();if(q==="TSConstructorType"){if(V.abstract=!!T,T)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(h.arrow,V)),this.finishNode(V,q)}tsParseUnionOrIntersectionType(q,T,V){let S=this.startNode(),k=this.eat(V),er=[];do er.push(T());while(this.eat(V));if(er.length===1&&!k)return er[0];return S.types=er,this.finishNode(S,q)}tsCheckTypeAnnotationForReadOnly(q){switch(q.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(q.start,di.UnexpectedReadonly)}}tsParseTypeOperator(){let q=this.startNode(),T=this.value;if(this.next(),q.operator=T,q.typeAnnotation=this.tsParseTypeOperatorOrHigher(),T==="readonly")this.tsCheckTypeAnnotationForReadOnly(q);return this.finishNode(q,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(h._extends)){let q=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.inDisallowConditionalTypesContext||!this.match(h.question))return q}}tsParseInferType(){let q=this.startNode();this.expectContextual("infer");let T=this.startNode();return T.name=this.tsParseTypeParameterName(),T.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),q.typeParameter=this.finishNode(T,"TSTypeParameter"),this.finishNode(q,"TSInferType")}tsParseLiteralTypeNode(){let q=this.startNode();return q.literal=(()=>{switch(this.type){case h.num:case h.string:case h._true:case h._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(q,"TSLiteralType")}tsParseImportType(){let q=this.startNode();if(this.expect(h._import),this.expect(h.parenL),!this.match(h.string))this.raise(this.start,di.UnsupportedImportTypeArgument);if(q.argument=this.parseExprAtom(),this.expect(h.parenR),this.eat(h.dot))q.qualifier=this.tsParseEntityName();if(this.tsMatchLeftRelational())q.typeArguments=this.tsParseTypeArguments();return this.finishNode(q,"TSImportType")}tsParseTypeQuery(){let q=this.startNode();if(this.expect(h._typeof),this.match(h._import))q.exprName=this.tsParseImportType();else q.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())q.typeArguments=this.tsParseTypeArguments();return this.finishNode(q,"TSTypeQuery")}tsParseMappedTypeParameter(){let q=this.startNode();return q.name=this.tsParseTypeParameterName(),q.constraint=this.tsExpectThenParseType(h._in),this.finishNode(q,"TSTypeParameter")}tsParseMappedType(){let q=this.startNode();if(this.expect(h.braceL),this.match(h.plusMin))q.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))q.readonly=!0;if(this.expect(h.bracketL),q.typeParameter=this.tsParseMappedTypeParameter(),q.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(h.bracketR),this.match(h.plusMin))q.optional=this.value,this.next(),this.expect(h.question);else if(this.eat(h.question))q.optional=!0;return q.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(h.braceR),this.finishNode(q,"TSMappedType")}tsParseTypeLiteral(){let q=this.startNode();return q.members=this.tsParseObjectTypeMembers(),this.finishNode(q,"TSTypeLiteral")}tsParseTupleElementType(){let q=this.startLoc,T=this.start,V=this.eat(h.ellipsis),S=this.tsParseType(),k=this.eat(h.question);if(this.eat(h.colon)){let tr=this.startNodeAtNode(S);if(tr.optional=k,S.type==="TSTypeReference"&&!S.typeArguments&&S.typeName.type==="Identifier")tr.label=S.typeName;else this.raise(S.start,di.InvalidTupleMemberLabel),tr.label=S;tr.elementType=this.tsParseType(),S=this.finishNode(tr,"TSNamedTupleMember")}else if(k){let tr=this.startNodeAtNode(S);tr.typeAnnotation=S,S=this.finishNode(tr,"TSOptionalType")}if(V){let tr=this.startNodeAt(T,q);tr.typeAnnotation=S,S=this.finishNode(tr,"TSRestType")}return S}tsParseTupleType(){let q=this.startNode();q.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let T=!1;return q.elementTypes.forEach((V)=>{let{type:S}=V;if(T&&S!=="TSRestType"&&S!=="TSOptionalType"&&!(S==="TSNamedTupleMember"&&V.optional))this.raise(V.start,di.OptionalTypeBeforeRequired);if(T||=S==="TSNamedTupleMember"&&V.optional||S==="TSOptionalType",S==="TSRestType")V=V.typeAnnotation}),this.finishNode(q,"TSTupleType")}tsParseTemplateLiteralType(){let q=this.startNode();return q.literal=this.parseTemplate({isTagged:!1}),this.finishNode(q,"TSLiteralType")}tsParseTypeReference(){let q=this.startNode();if(q.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())q.typeArguments=this.tsParseTypeArguments();return this.finishNode(q,"TSTypeReference")}tsMatchLeftRelational(){return this.match(h.relational)&&this.value==="<"}tsMatchRightRelational(){return this.match(h.relational)&&this.value===">"}tsParseParenthesizedType(){let q=this.startNode();return this.expect(h.parenL),q.typeAnnotation=this.tsParseType(),this.expect(h.parenR),this.finishNode(q,"TSParenthesizedType")}tsParseNonArrayType(){switch(this.type){case h.string:case h.num:case h._true:case h._false:return this.tsParseLiteralTypeNode();case h.plusMin:if(this.value==="-"){let q=this.startNode();if(this.lookahead().type!==h.num)this.unexpected();return q.literal=this.parseMaybeUnary(),this.finishNode(q,"TSLiteralType")}break;case h._this:return this.tsParseThisTypeOrThisTypePredicate();case h._typeof:return this.tsParseTypeQuery();case h._import:return this.tsParseImportType();case h.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case h.bracketL:return this.tsParseTupleType();case h.parenL:return this.tsParseParenthesizedType();case h.backQuote:case h.dollarBraceL:return this.tsParseTemplateLiteralType();default:{let{type:q}=this;if(W(q)||q===h._void||q===h._null){let T=q===h._void?"TSVoidKeyword":q===h._null?"TSNullKeyword":ywr(this.value);if(T!==void 0&&this.lookaheadCharCode()!==46){let V=this.startNode();return this.next(),this.finishNode(V,T)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let q=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(h.bracketL))if(this.match(h.bracketR)){let T=this.startNodeAtNode(q);T.elementType=q,this.expect(h.bracketR),q=this.finishNode(T,"TSArrayType")}else{let T=this.startNodeAtNode(q);T.objectType=q,T.indexType=this.tsParseType(),this.expect(h.bracketR),q=this.finishNode(T,"TSIndexedAccessType")}return q}tsParseTypeOperatorOrHigher(){return rr(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),h.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),h.bitwiseOR)}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(h._new))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseType(){yB(this.inType);let q=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(h._extends))return q;let T=this.startNodeAtNode(q);return T.checkType=q,T.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(h.question),T.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(h.colon),T.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(T,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){if(this.next(),W(this.type))return this.next(),this.match(h.colon);return!1}tsInType(q){let T=this.inType;this.inType=!0;try{return q()}finally{this.inType=T}}tsTryParseIndexSignature(q){if(!(this.match(h.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(h.bracketL);let T=this.parseIdent();T.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(T),this.expect(h.bracketR),q.parameters=[T];let V=this.tsTryParseTypeAnnotation();if(V)q.typeAnnotation=V;return this.tsParseTypeMemberSemicolon(),this.finishNode(q,"TSIndexSignature")}tsParseNoneModifiers(q){this.tsParseModifiers({modified:q,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:di.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(q=this.tsParseNoneModifiers.bind(this)){let T=this.startNode();return q(T),T.name=this.tsParseTypeParameterName(),T.constraint=this.tsEatThenParseType(h._extends),T.default=this.tsEatThenParseType(h.eq),this.finishNode(T,"TSTypeParameter")}tsParseTypeParameters(q){let T=this.startNode();if(this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart"))this.next();else this.unexpected();let V={value:-1};if(T.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,q),!1,!0,V),T.params.length===0)this.raise(this.start,di.EmptyTypeParameters);if(V.value!==-1)this.addExtra(T,"trailingComma",V.value);return this.finishNode(T,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(q){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(q)}tsTryParse(q){let T=this.getCurLookaheadState(),V=q();if(V!==void 0&&V!==!1)return V;else{this.setLookaheadState(T);return}}tsTokenCanFollowModifier(){return(this.match(h.bracketL)||this.match(h.braceL)||this.match(h.star)||this.match(h.ellipsis)||this.match(h.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(!0),this.tsTokenCanFollowModifier()}tsParseModifier(q,T){let V=this.value;if(q.indexOf(V)!==-1&&!this.containsEsc){if(T&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return V}return}tsParseModifiersByMap({modified:q,map:T}){for(let V of Object.keys(T))q[V]=T[V]}tsParseModifiers({modified:q,allowedModifiers:T,disallowedModifiers:V,stopOnStartOfClassStaticBlock:S,errorTemplate:k=di.InvalidModifierOnTypeMember}){let er={},tr=(Z,Cr,Pr,zr)=>{if(Cr===Pr&&q[zr])this.raise(Z.column,di.InvalidModifiersOrder({orderedModifiers:[Pr,zr]}))},U=(Z,Cr,Pr,zr)=>{if(q[Pr]&&Cr===zr||q[zr]&&Cr===Pr)this.raise(Z.column,di.IncompatibleModifiers({modifiers:[Pr,zr]}))};for(;;){let Z=this.startLoc,Cr=this.tsParseModifier(T.concat(V??[]),S);if(!Cr)break;if(pB(Cr))if(q.accessibility)this.raise(this.start,di.DuplicateAccessibilityModifier());else tr(Z,Cr,Cr,"override"),tr(Z,Cr,Cr,"static"),tr(Z,Cr,Cr,"readonly"),tr(Z,Cr,Cr,"accessor"),er.accessibility=Cr,q.accessibility=Cr;else if(uwr(Cr))if(q[Cr])this.raise(this.start,di.DuplicateModifier({modifier:Cr}));else tr(Z,Cr,"in","out"),er[Cr]=Cr,q[Cr]=!0;else if(lwr(Cr))if(q[Cr])this.raise(this.start,di.DuplicateModifier({modifier:Cr}));else U(Z,Cr,"accessor","readonly"),U(Z,Cr,"accessor","static"),U(Z,Cr,"accessor","override"),er[Cr]=Cr,q[Cr]=!0;else if(Cr==="const")if(q[Cr])this.raise(this.start,di.DuplicateModifier({modifier:Cr}));else er[Cr]=Cr,q[Cr]=!0;else if(Object.hasOwnProperty.call(q,Cr))this.raise(this.start,di.DuplicateModifier({modifier:Cr}));else tr(Z,Cr,"static","readonly"),tr(Z,Cr,"static","override"),tr(Z,Cr,"override","readonly"),tr(Z,Cr,"abstract","override"),U(Z,Cr,"declare","override"),U(Z,Cr,"static","abstract"),er[Cr]=Cr,q[Cr]=!0;if(V?.includes(Cr))this.raise(this.start,k)}return er}tsParseInOutModifiers(q){this.tsParseModifiers({modified:q,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:di.InvalidModifierOnTypeParameter})}parseMaybeUnary(q,T,V,S){if(!r?.jsx&&this.tsMatchLeftRelational())return this.tsParseTypeAssertion();else return super.parseMaybeUnary(q,T,V,S)}tsParseTypeAssertion(){if(t)this.raise(this.start,di.ReservedTypeAssertion);let q=this.tryParse(()=>{let T=this.startNode(),V=this.tsTryNextParseConstantContext();return T.typeAnnotation=V||this.tsNextThenParseType(),this.expect(h.relational),T.expression=this.parseMaybeUnary(),this.finishNode(T,"TSTypeAssertion")});if(q.error)return this.tsParseTypeParameters(this.tsParseConstModifier);else return q.node}tsParseTypeArguments(){let q=this.startNode();if(q.params=this.tsInType(()=>this.tsInNoContext(()=>{return this.expect(h.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),q.params.length===0)this.raise(this.start,di.EmptyTypeArguments);return this.exprAllowed=!1,this.expect(h.relational),this.finishNode(q,"TSTypeParameterInstantiation")}tsParseHeritageClause(q){let T=this.start,V=this.tsParseDelimitedList("HeritageClauseElement",()=>{let S=this.startNode();if(S.expression=this.tsParseEntityName(),this.tsMatchLeftRelational())S.typeParameters=this.tsParseTypeArguments();return this.finishNode(S,"TSExpressionWithTypeArguments")});if(!V.length)this.raise(T,di.EmptyHeritageClauseType({token:q}));return V}tsParseTypeMemberSemicolon(){if(!this.eat(h.comma)&&!this.isLineTerminator())this.expect(h.semi)}tsTryParseAndCatch(q){let T=this.tryParse((V)=>q()||V());if(T.aborted||!T.node)return;if(T.error)this.setLookaheadState(T.failState);return T.node}tsParseSignatureMember(q,T){return this.tsFillSignature(h.colon,T),this.tsParseTypeMemberSemicolon(),this.finishNode(T,q)}tsParsePropertyOrMethodSignature(q,T){if(this.eat(h.question))q.optional=!0;let V=q;if(this.match(h.parenL)||this.tsMatchLeftRelational()){if(T)this.raise(q.start,di.ReadonlyForMethodSignature);let S=V;if(S.kind&&this.tsMatchLeftRelational())this.raise(this.start,di.AccesorCannotHaveTypeParameters);this.tsFillSignature(h.colon,S),this.tsParseTypeMemberSemicolon();let k="parameters",er="typeAnnotation";if(S.kind==="get"){if(S[k].length>0){if(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(S[k][0]))this.raise(this.start,di.AccesorCannotDeclareThisParameter)}}else if(S.kind==="set"){if(S[k].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let tr=S[k][0];if(this.isThisParam(tr))this.raise(this.start,di.AccesorCannotDeclareThisParameter);if(tr.type==="Identifier"&&tr.optional)this.raise(this.start,di.SetAccesorCannotHaveOptionalParameter);if(tr.type==="RestElement")this.raise(this.start,di.SetAccesorCannotHaveRestParameter)}if(S[er])this.raise(S[er].start,di.SetAccesorCannotHaveReturnType)}else S.kind="method";return this.finishNode(S,"TSMethodSignature")}else{let S=V;if(T)S.readonly=!0;let k=this.tsTryParseTypeAnnotation();if(k)S.typeAnnotation=k;return this.tsParseTypeMemberSemicolon(),this.finishNode(S,"TSPropertySignature")}}tsParseTypeMember(){let q=this.startNode();if(this.match(h.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",q);if(this.match(h._new)){let V=this.startNode();if(this.next(),this.match(h.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSConstructSignatureDeclaration",q);else return q.key=this.createIdentifier(V,"new"),this.tsParsePropertyOrMethodSignature(q,!1)}this.tsParseModifiers({modified:q,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});let T=this.tsTryParseIndexSignature(q);if(T)return T;if(this.parsePropertyName(q),!q.computed&&q.key.type==="Identifier"&&(q.key.name==="get"||q.key.name==="set")&&this.tsTokenCanFollowModifier())q.kind=q.key.name,this.parsePropertyName(q);return this.tsParsePropertyOrMethodSignature(q,!!q.readonly)}tsParseList(q,T){let V=[];while(!this.tsIsListTerminator(q))V.push(T());return V}tsParseObjectTypeMembers(){this.expect(h.braceL);let q=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(h.braceR),q}tsParseInterfaceDeclaration(q,T={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),T.declare)q.declare=!0;if(W(this.type))q.id=this.parseIdent(),this.checkLValSimple(q.id,Lt.BIND_TS_INTERFACE);else q.id=null,this.raise(this.start,di.MissingInterfaceName);if(q.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(h._extends))q.extends=this.tsParseHeritageClause("extends");let V=this.startNode();return V.body=this.tsParseInterfaceBody(),q.body=this.finishNode(V,"TSInterfaceBody"),this.finishNode(q,"TSInterfaceDeclaration")}tsParseInterfaceBody(){this.expect(h.braceL);let q=this.inType;this.inType=!0;let T=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=q,this.expect(h.braceR),T}tsParseAbstractDeclaration(q){if(this.match(h._class))return q.abstract=!0,this.parseClass(q,!0);else if(this.ts_isContextual(o.interface)){if(!this.hasFollowingLineBreak())return q.abstract=!0,this.tsParseInterfaceDeclaration(q)}else this.unexpected(q.start)}tsIsDeclarationStart(){return J(this.type)}tsParseExpressionStatement(q,T){switch(T.name){case"declare":{let V=this.tsTryParseDeclare(q);if(V)return V.declare=!0,V;break}case"global":if(this.match(h.braceL)){this.enterScope(sv);let V=q;return V.global=!0,V.id=T,V.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(V,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(q,T.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:q}=this,T=this.isAsyncFunction(),V=this.isLet();if(W(q)){if(T&&!this.containsEsc||V)return!1;if((q===o.type||q===o.interface)&&!this.containsEsc){let er=this.lookahead();if(W(er.type)&&!this.isContextualWithState("from",er)||er.type===h.braceL)return!1}}else if(!this.match(h._default))return!1;let S=this.nextTokenStart(),k=this.isUnparsedContextual(S,"from");if(this.input.charCodeAt(S)===44||W(this.type)&&k)return!0;if(this.match(h._default)&&k){let er=this.input.charCodeAt(this.nextTokenStartSince(S+4));return er===34||er===39}return!1}tsInAmbientContext(q){let T=this.isAmbientContext;this.isAmbientContext=!0;try{return q()}finally{this.isAmbientContext=T}}tsCheckLineTerminator(q){if(q){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(q,T=!1){if(q.id=this.parseIdent(),!T)this.checkLValSimple(q.id,Lt.BIND_TS_NAMESPACE);if(this.eat(h.dot)){let V=this.startNode();this.tsParseModuleOrNamespaceDeclaration(V,!0),q.body=V}else this.enterScope(sv),q.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(q,"TSModuleDeclaration")}checkLValSimple(q,T=Lt.BIND_NONE,V){if(q.type==="TSNonNullExpression"||q.type==="TSAsExpression")q=q.expression;return super.checkLValSimple(q,T,V)}tsParseTypeAliasDeclaration(q){return q.id=this.parseIdent(),this.checkLValSimple(q.id,Lt.BIND_TS_TYPE),q.typeAnnotation=this.tsInType(()=>{if(q.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(h.eq),this.ts_isContextual(o.interface)&&this.lookahead().type!==h.dot){let T=this.startNode();return this.next(),this.finishNode(T,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(q,"TSTypeAliasDeclaration")}tsParseDeclaration(q,T,V){switch(T){case"abstract":if(this.tsCheckLineTerminator(V)&&(this.match(h._class)||W(this.type)))return this.tsParseAbstractDeclaration(q);break;case"module":if(this.tsCheckLineTerminator(V)){if(this.match(h.string))return this.tsParseAmbientExternalModuleDeclaration(q);else if(W(this.type))return this.tsParseModuleOrNamespaceDeclaration(q)}break;case"namespace":if(this.tsCheckLineTerminator(V)&&W(this.type))return this.tsParseModuleOrNamespaceDeclaration(q);break;case"type":if(this.tsCheckLineTerminator(V)&&W(this.type))return this.tsParseTypeAliasDeclaration(q);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(q,T){q.isExport=T||!1,q.id=this.parseIdent(),this.checkLValSimple(q.id,Lt.BIND_LEXICAL),super.expect(h.eq);let V=this.tsParseModuleReference();if(q.importKind==="type"&&V.type!=="TSExternalModuleReference")this.raise(V.start,di.ImportAliasHasImportType);return q.moduleReference=V,super.semicolon(),this.finishNode(q,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:q}=this;if(W(q)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((q===o.type||q===o.interface)&&!this.containsEsc){let S=this.lookahead();if(W(S.type)&&!this.isContextualWithState("from",S)||S.type===h.braceL)return!1}}else if(!this.match(h._default))return!1;let T=this.nextTokenStart(),V=this.isUnparsedContextual(T,"from");if(this.input.charCodeAt(T)===44||W(this.type)&&V)return!0;if(this.match(h._default)&&V){let S=this.input.charCodeAt(this.nextTokenStartSince(T+4));return S===34||S===39}return!1}parseTemplate({isTagged:q=!1}={}){let T=this.startNode();this.next(),T.expressions=[];let V=this.parseTemplateElement({isTagged:q});T.quasis=[V];while(!V.tail){if(this.type===h.eof)this.raise(this.pos,"Unterminated template literal");this.expect(h.dollarBraceL),T.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(h.braceR),T.quasis.push(V=this.parseTemplateElement({isTagged:q}))}return this.next(),this.finishNode(T,"TemplateLiteral")}parseFunction(q,T,V,S,k){if(this.initFunction(q),this.ecmaVersion>=9||this.ecmaVersion>=6&&!S){if(this.type===h.star&&T&vB)this.unexpected();q.generator=this.eat(h.star)}if(this.ecmaVersion>=8)q.async=!!S;if(T&Sd)q.id=T&fwr&&this.type!==h.name?null:this.parseIdent();let er=this.yieldPos,tr=this.awaitPos,U=this.awaitIdentPos,Z=this.maybeInArrowParameters;if(this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(aP(q.async,q.generator)),!(T&Sd))q.id=this.type===h.name?this.parseIdent():null;this.parseFunctionParams(q);let Cr=T&Sd;if(this.parseFunctionBody(q,V,!1,k,{isFunctionDeclaration:Cr}),this.yieldPos=er,this.awaitPos=tr,this.awaitIdentPos=U,T&Sd&&q.id&&!(T&vB))if(q.body)this.checkLValSimple(q.id,this.strict||q.generator||q.async?this.treatFunctionsAsVar?Lt.BIND_VAR:Lt.BIND_LEXICAL:Lt.BIND_FUNCTION);else this.checkLValSimple(q.id,Lt.BIND_NONE);return this.maybeInArrowParameters=Z,this.finishNode(q,Cr?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(q,T=!1,V=!1,S=!1,k){if(this.match(h.colon))q.returnType=this.tsParseTypeOrTypePredicateAnnotation(h.colon);let er=k?.isFunctionDeclaration?"TSDeclareFunction":k?.isClassMethod?"TSDeclareMethod":void 0;if(er&&!this.match(h.braceL)&&this.isLineTerminator())return this.exitScope(),this.finishNode(q,er);if(er==="TSDeclareFunction"&&this.isAmbientContext){if(this.raise(q.start,di.DeclareFunctionHasImplementation),q.declare)return super.parseFunctionBody(q,T,V,!1),this.finishNode(q,er)}return super.parseFunctionBody(q,T,V,S),q}parseNew(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");let q=this.startNode(),T=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(h.dot)){q.meta=T;let tr=this.containsEsc;if(q.property=this.parseIdent(!0),q.property.name!=="target")this.raiseRecoverable(q.property.start,"The only valid meta property for new is 'new.target'");if(tr)this.raiseRecoverable(q.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(q.start,"'new.target' can only be used in functions and class static block");return this.finishNode(q,"MetaProperty")}let V=this.start,S=this.startLoc,k=this.type===h._import;if(q.callee=this.parseSubscripts(this.parseExprAtom(),V,S,!0,!1),k&&q.callee.type==="ImportExpression")this.raise(V,"Cannot use new with import()");let{callee:er}=q;if(er.type==="TSInstantiationExpression"&&!er.extra?.parenthesized)q.typeArguments=er.typeArguments,q.callee=er.expression;if(this.eat(h.parenL))q.arguments=this.parseExprList(h.parenR,this.ecmaVersion>=8,!1);else q.arguments=[];return this.finishNode(q,"NewExpression")}parseExprOp(q,T,V,S,k){if(h._in.binop>S&&!this.hasPrecedingLineBreak()){let er;if(this.isContextual("as"))er="TSAsExpression";if(this.isContextual("satisfies"))er="TSSatisfiesExpression";if(er){let tr=this.startNodeAt(T,V);tr.expression=q;let U=this.tsTryNextParseConstantContext();if(U)tr.typeAnnotation=U;else tr.typeAnnotation=this.tsNextThenParseType();return this.finishNode(tr,er),this.reScan_lt_gt(),this.parseExprOp(tr,T,V,S,k)}}return super.parseExprOp(q,T,V,S,k)}parseImportSpecifiers(){let q=[],T=!0;if(u.tokenIsIdentifier(this.type)){if(q.push(this.parseImportDefaultSpecifier()),!this.eat(h.comma))return q}if(this.type===h.star)return q.push(this.parseImportNamespaceSpecifier()),q;this.expect(h.braceL);while(!this.eat(h.braceR)){if(!T){if(this.expect(h.comma),this.afterTrailingComma(h.braceR))break}else T=!1;q.push(this.parseImportSpecifier())}return q}parseImport(q){let T=this.lookahead();if(q.importKind="value",this.importOrExportOuterKind="value",W(T.type)||this.match(h.star)||this.match(h.braceL)){let V=this.lookahead(2);if(V.type!==h.comma&&!this.isContextualWithState("from",V)&&V.type!==h.eq&&this.ts_eatContextualWithState("type",1,T))this.importOrExportOuterKind="type",q.importKind="type",T=this.lookahead(),V=this.lookahead(2);if(W(T.type)&&V.type===h.eq){this.next();let S=this.tsParseImportEqualsDeclaration(q);return this.importOrExportOuterKind="value",S}}if(this.next(),this.type===h.string)q.specifiers=[],q.source=this.parseExprAtom();else q.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),q.source=this.type===h.string?this.parseExprAtom():this.unexpected();if(this.parseMaybeImportAttributes(q),this.semicolon(),this.finishNode(q,"ImportDeclaration"),this.importOrExportOuterKind="value",q.importKind==="type"&&q.specifiers.length>1&&q.specifiers[0].type==="ImportDefaultSpecifier")this.raise(q.start,di.TypeImportCannotSpecifyDefaultAndNamed);return q}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let q=this.startNode();return this.next(),q.abstract=!0,this.parseClass(q,!0)}if(this.match(o.interface)){let q=this.tsParseInterfaceDeclaration(this.startNode());if(q)return q}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(q,T){if(this.ecmaVersion>=11)if(this.eatContextual("as"))q.exported=this.parseModuleExportName(),this.checkExport(T,q.exported,this.lastTokStart);else q.exported=null;if(this.expectContextual("from"),this.type!==h.string)this.unexpected();return q.source=this.parseExprAtom(),this.parseMaybeImportAttributes(q),this.semicolon(),this.finishNode(q,"ExportAllDeclaration")}parseDynamicImport(q){if(this.next(),q.source=this.parseMaybeAssign(),this.eat(h.comma)){let T=this.parseExpression();q.arguments=[T]}if(!this.eat(h.parenR)){let T=this.start;if(this.eat(h.comma)&&this.eat(h.parenR))this.raiseRecoverable(T,"Trailing comma is not allowed in import()");else this.unexpected(T)}return this.finishNode(q,"ImportExpression")}parseExport(q,T){let V=this.lookahead();if(this.ts_eatWithState(h._import,2,V)){if(this.ts_isContextual(o.type)&&this.lookaheadCharCode()!==61)q.importKind="type",this.importOrExportOuterKind="type",this.next();else q.importKind="value",this.importOrExportOuterKind="value";let S=this.tsParseImportEqualsDeclaration(q,!0);return this.importOrExportOuterKind=void 0,S}else if(this.ts_eatWithState(h.eq,2,V)){let S=q;return S.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(S,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,V)){let S=q;return this.expectContextual("namespace"),S.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(S,"TSNamespaceExportDeclaration")}else{let S=this.lookahead(2).type;if(this.ts_isContextualWithState(V,o.type)&&(S===h.braceL||S===h.star))this.next(),this.importOrExportOuterKind="type",q.exportKind="type";else this.importOrExportOuterKind="value",q.exportKind="value";if(this.next(),this.eat(h.star))return this.parseExportAllDeclaration(q,T);if(this.eat(h._default))return this.checkExport(T,"default",this.lastTokStart),q.declaration=this.parseExportDefaultDeclaration(),this.finishNode(q,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(q.declaration=this.parseExportDeclaration(q),q.declaration.type==="VariableDeclaration")this.checkVariableExport(T,q.declaration.declarations);else this.checkExport(T,q.declaration.id,q.declaration.id.start);q.specifiers=[],q.source=null}else{if(q.declaration=null,q.specifiers=this.parseExportSpecifiers(T),this.eatContextual("from")){if(this.type!==h.string)this.unexpected();q.source=this.parseExprAtom(),this.parseMaybeImportAttributes(q)}else{for(let k of q.specifiers)if(this.checkUnreserved(k.local),this.checkLocalExport(k.local),k.local.type==="Literal")this.raise(k.local.start,"A string literal cannot be used as an exported binding without `from`.");q.source=null}this.semicolon()}return this.finishNode(q,"ExportNamedDeclaration")}}checkExport(q,T,V){if(!q)return;if(typeof T!=="string")T=T.type==="Identifier"?T.name:T.value;q[T]=!0}parseMaybeDefault(q,T,V){let S=super.parseMaybeDefault(q,T,V);if(S.type==="AssignmentPattern"&&S.typeAnnotation&&S.right.start<S.typeAnnotation.start)this.raise(S.typeAnnotation.start,di.TypeAnnotationAfterAssign);return S}typeCastToParameter(q){return q.expression.typeAnnotation=q.typeAnnotation,this.resetEndLocation(q.expression,q.typeAnnotation.end,q.typeAnnotation.loc?.end),q.expression}toAssignableList(q,T){if(!q)q=[];for(let V=0;V<q.length;V++){let S=q[V];if(S?.type==="TSTypeCastExpression")q[V]=this.typeCastToParameter(S)}return super.toAssignableList(q,T)}reportReservedArrowTypeParam(q){if(q.params.length===1&&!q.extra?.trailingComma&&t)this.raise(q.start,di.ReservedArrowTypeParam)}parseExprAtom(q,T,V){if(this.type===o.jsxText)return this.jsx_parseText();else if(this.type===o.jsxTagStart)return this.jsx_parseElement();else if(this.type===o.at)return this.parseDecorators(),this.parseExprAtom();else if(W(this.type)){let S=this.potentialArrowAt===this.start,k=this.start,er=this.startLoc,tr=this.containsEsc,U=this.parseIdent(!1);if(this.ecmaVersion>=8&&!tr&&U.name==="async"&&!this.canInsertSemicolon()&&this.eat(h._function))return this.overrideContext(M.f_expr),this.parseFunction(this.startNodeAt(k,er),0,!1,!0,T);if(S&&!this.canInsertSemicolon()){if(this.eat(h.arrow))return this.parseArrowExpression(this.startNodeAt(k,er),[U],!1,T);if(this.ecmaVersion>=8&&U.name==="async"&&this.type===h.name&&!tr&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(U=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(h.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(k,er),[U],!0,T)}}return U}else return super.parseExprAtom(q,T,V)}parseExprAtomDefault(){if(W(this.type)){let q=this.potentialArrowAt===this.start,T=this.containsEsc,V=this.parseIdent();if(!T&&V.name==="async"&&!this.canInsertSemicolon()){let{type:S}=this;if(S===h._function)return this.next(),this.parseFunction(this.startNodeAtNode(V),void 0,!0,!0);else if(W(S))if(this.lookaheadCharCode()===61){let k=this.parseIdent(!1);if(this.canInsertSemicolon()||!this.eat(h.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAtNode(V),[k],!0)}else return V}if(q&&this.match(h.arrow)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(V),[V],!1);return V}else this.unexpected()}parseIdentNode(){let q=this.startNode();if(sr(this.type)&&!((this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)))q.name=this.value;else return super.parseIdentNode();return q}parseVarStatement(q,T,V=!1){let{isAmbientContext:S}=this;this.next(),super.parseVar(q,!1,T,V||S),this.semicolon();let k=this.finishNode(q,"VariableDeclaration");if(!S)return k;for(let{id:er,init:tr}of k.declarations){if(!tr)continue;if(T!=="const"||!!er.typeAnnotation)this.raise(tr.start,di.InitializerNotAllowedInAmbientContext);else if(tr.type!=="StringLiteral"&&tr.type!=="BooleanLiteral"&&tr.type!=="NumericLiteral"&&tr.type!=="BigIntLiteral"&&(tr.type!=="TemplateLiteral"||tr.expressions.length>0)&&!hwr(tr))this.raise(tr.start,di.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference)}return k}parseStatement(q,T,V){if(this.match(o.at))this.parseDecorators(!0);if(this.match(h._const)&&this.isLookaheadContextual("enum")){let S=this.startNode();return this.expect(h._const),this.tsParseEnumDeclaration(S,{const:!0})}if(this.ts_isContextual(o.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(o.interface)){let S=this.tsParseInterfaceDeclaration(this.startNode());if(S)return S}return super.parseStatement(q,T,V)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(q){if(this.eat(h.question))q.optional=!0;if(q.readonly&&this.match(h.parenL))this.raise(q.start,di.ClassMethodHasReadonly);if(q.declare&&this.match(h.parenL))this.raise(q.start,di.ClassMethodHasDeclare)}parseExpressionStatement(q,T){return(T.type==="Identifier"?this.tsParseExpressionStatement(q,T):void 0)||super.parseExpressionStatement(q,T)}shouldParseExportStatement(){if(this.tsIsDeclarationStart())return!0;if(this.match(o.at))return!0;return super.shouldParseExportStatement()}parseConditional(q,T,V,S,k){if(this.eat(h.question)){let er=this.startNodeAt(T,V);return er.test=q,er.consequent=this.parseMaybeAssign(),this.expect(h.colon),er.alternate=this.parseMaybeAssign(S),this.finishNode(er,"ConditionalExpression")}return q}parseMaybeConditional(q,T){let V=this.start,S=this.startLoc,k=this.parseExprOps(q,T);if(this.checkExpressionErrors(T))return k;if(!this.maybeInArrowParameters||!this.match(h.question))return this.parseConditional(k,V,S,q,T);let er=this.tryParse(()=>this.parseConditional(k,V,S,q,T));if(!er.node){if(er.error)this.setOptionalParametersError(T,er.error);return k}if(er.error)this.setLookaheadState(er.failState);return er.node}parseParenItem(q){let T=this.start,V=this.startLoc;if(q=super.parseParenItem(q),this.eat(h.question))q.optional=!0,this.resetEndLocation(q);if(this.match(h.colon)){let S=this.startNodeAt(T,V);return S.expression=q,S.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(S,"TSTypeCastExpression")}return q}parseExportDeclaration(q){if(!this.isAmbientContext&&this.ts_isContextual(o.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(q));let T=this.start,V=this.startLoc,S=this.eatContextual("declare");if(S&&(this.ts_isContextual(o.declare)||!this.shouldParseExportStatement()))this.raise(this.start,di.ExpectedAmbientAfterExportDeclare);let er=W(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);if(!er)return null;if(er.type==="TSInterfaceDeclaration"||er.type==="TSTypeAliasDeclaration"||S)q.exportKind="type";if(S)this.resetStartLocation(er,T,V),er.declare=!0;return er}parseClassId(q,T){if(!T&&this.isContextual("implements"))return;super.parseClassId(q,T);let V=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));if(V)q.typeParameters=V}parseClassPropertyAnnotation(q){if(!q.optional){if(this.value==="!"&&this.eat(h.prefix))q.definite=!0;else if(this.eat(h.question))q.optional=!0}let T=this.tsTryParseTypeAnnotation();if(T)q.typeAnnotation=T}parseClassField(q){if(q.key.type==="PrivateIdentifier"){if(q.abstract)this.raise(q.start,di.PrivateElementHasAbstract);if(q.accessibility)this.raise(q.start,di.PrivateElementHasAccessibility({modifier:q.accessibility}));this.parseClassPropertyAnnotation(q)}else{if(this.parseClassPropertyAnnotation(q),this.isAmbientContext&&!(q.readonly&&!q.typeAnnotation)&&this.match(h.eq))this.raise(this.start,di.DeclareClassFieldHasInitializer);if(q.abstract&&this.match(h.eq)){let{key:V}=q;this.raise(this.start,di.AbstractPropertyHasInitializer({propertyName:V.type==="Identifier"&&!q.computed?V.name:`[${this.input.slice(V.start,V.end)}]`}))}}return super.parseClassField(q)}parseClassMethod(q,T,V,S){let k=q.kind==="constructor",er=q.key.type==="PrivateIdentifier",tr=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(er){if(tr)q.typeParameters=tr;if(q.accessibility)this.raise(q.start,di.PrivateMethodsHasAccessibility({modifier:q.accessibility}))}else if(tr&&k)this.raise(tr.start,di.ConstructorHasTypeParameters);let{declare:U=!1,kind:Z}=q;if(U&&(Z==="get"||Z==="set"))this.raise(q.start,di.DeclareAccessor({kind:Z}));if(tr)q.typeParameters=tr;let Cr=q.key;if(q.kind==="constructor"){if(T)this.raise(Cr.start,"Constructor can't be a generator");if(V)this.raise(Cr.start,"Constructor can't be an async method")}else if(q.static&&cB(q,"prototype"))this.raise(Cr.start,"Classes may not have a static property named prototype");let Pr=q.value=this.parseMethod(T,V,S,!0,q);if(q.kind==="get"&&Pr.params.length!==0)this.raiseRecoverable(Pr.start,"getter should have no params");if(q.kind==="set"&&Pr.params.length!==1)this.raiseRecoverable(Pr.start,"setter should have exactly one param");if(q.kind==="set"&&Pr.params[0].type==="RestElement")this.raiseRecoverable(Pr.params[0].start,"Setter cannot use rest params");return this.finishNode(q,"MethodDefinition")}isClassMethod(){return this.match(h.relational)}parseClassElement(q){if(this.eat(h.semi))return null;let T=this.startNode(),V="",S=!1,k=!1,er="method",tr=!1,U=["declare","private","public","protected","accessor","override","abstract","readonly","static"],Z=this.tsParseModifiers({modified:T,allowedModifiers:U,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:di.InvalidModifierOnTypeParameterPositions});tr=Boolean(Z.static);let Cr=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(T,U))this.raise(this.start,di.StaticBlockCannotHaveModifier);if(this.ecmaVersion>=13)return super.parseClassStaticBlock(T),T}else{let Pr=this.tsTryParseIndexSignature(T);if(Pr){if(T.abstract)this.raise(T.start,di.IndexSignatureHasAbstract);if(T.accessibility)this.raise(T.start,di.IndexSignatureHasAccessibility({modifier:T.accessibility}));if(T.declare)this.raise(T.start,di.IndexSignatureHasDeclare);if(T.override)this.raise(T.start,di.IndexSignatureHasOverride);return Pr}if(!this.inAbstractClass&&T.abstract)this.raise(T.start,di.NonAbstractClassHasAbstractMethod);if(T.override){if(!q)this.raise(T.start,di.OverrideNotInSubClass)}if(T.static=tr,tr){if(!(this.isClassElementNameStart()||this.type===h.star))V="static"}if(!V&&this.ecmaVersion>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===h.star)&&!this.canInsertSemicolon())k=!0;else V="async";if(!V&&(this.ecmaVersion>=9||!k)&&this.eat(h.star))S=!0;if(!V&&!k&&!S){let zr=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())er=zr;else V=zr}if(V)T.computed=!1,T.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),T.key.name=V,this.finishNode(T.key,"Identifier");else this.parseClassElementName(T);if(this.parsePostMemberNameModifiers(T),this.isClassMethod()||this.ecmaVersion<13||this.type===h.parenL||er!=="method"||S||k){let zr=!T.static&&cB(T,"constructor"),jr=zr&&q;if(zr&&er!=="method")this.raise(T.key.start,"Constructor can't have get/set modifier");T.kind=zr?"constructor":er,this.parseClassMethod(T,S,k,jr)}else this.parseClassField(T);return T}};if(T.declare)this.tsInAmbientContext(Cr);else Cr();return T}isClassElementNameStart(){if(this.tsIsIdentifier())return!0;return super.isClassElementNameStart()}parseClassSuper(q){if(super.parseClassSuper(q),q.superClass&&(this.tsMatchLeftRelational()||this.match(h.bitShift)))q.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual("implements"))q.implements=this.tsParseHeritageClause("implements")}parseFunctionParams(q){let T=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(T)q.typeParameters=T;super.parseFunctionParams(q)}parseVarId(q,T){if(super.parseVarId(q,T),q.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(h.prefix))q.definite=!0;let V=this.tsTryParseTypeAnnotation();if(V)q.id.typeAnnotation=V,this.resetEndLocation(q.id)}parseArrowExpression(q,T,V,S){if(this.match(h.colon))q.returnType=this.tsParseTypeAnnotation();let k=this.yieldPos,er=this.awaitPos,tr=this.awaitIdentPos;this.enterScope(aP(V,!1)|Lt.SCOPE_ARROW),this.initFunction(q);let U=this.maybeInArrowParameters;if(this.ecmaVersion>=8)q.async=!!V;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,q.params=this.toAssignableList(T,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(q,!0,!1,S),this.yieldPos=k,this.awaitPos=er,this.awaitIdentPos=tr,this.maybeInArrowParameters=U,this.finishNode(q,"ArrowFunctionExpression")}parseMaybeAssignOrigin(q,T,V){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(q);else this.exprAllowed=!1;let S=!1,k=-1,er=-1,tr=-1;if(T)k=T.parenthesizedAssign,er=T.trailingComma,tr=T.doubleProto,T.parenthesizedAssign=T.trailingComma=-1;else T=new av,S=!0;let U=this.start,Z=this.startLoc;if(this.type===h.parenL||W(this.type))this.potentialArrowAt=this.start,this.potentialArrowInForAwait=q==="await";let Cr=this.parseMaybeConditional(q,T);if(V)Cr=V.call(this,Cr,U,Z);if(this.type.isAssign){let Pr=this.startNodeAt(U,Z);if(Pr.operator=this.value,this.type===h.eq)Cr=this.toAssignable(Cr,!0,T);if(!S)T.parenthesizedAssign=T.trailingComma=T.doubleProto=-1;if(T.shorthandAssign>=Cr.start)T.shorthandAssign=-1;if(!this.maybeInArrowParameters)if(this.type===h.eq)this.checkLValPattern(Cr);else this.checkLValSimple(Cr);if(Pr.left=Cr,this.next(),Pr.right=this.parseMaybeAssign(q),tr>-1)T.doubleProto=tr;return this.finishNode(Pr,"AssignmentExpression")}else if(S)this.checkExpressionErrors(T,!0);if(k>-1)T.parenthesizedAssign=k;if(er>-1)T.trailingComma=er;return Cr}parseMaybeAssign(q,T,V){let S,k,er;if(r?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(S=this.cloneCurLookaheadState(),k=this.tryParse(()=>this.parseMaybeAssignOrigin(q,T,V),S),!k.error)return k.node;let Z=this.context,Cr=Z[Z.length-1],Pr=Z[Z.length-2];if(Cr===u.tokContexts.tc_oTag&&Pr===u.tokContexts.tc_expr)Z.pop(),Z.pop();else if(Cr===u.tokContexts.tc_oTag||Cr===u.tokContexts.tc_expr)Z.pop()}if(!k?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(q,T,V);if(!S||this.compareLookaheadState(S,this.getCurLookaheadState()))S=this.cloneCurLookaheadState();let tr,U=this.tryParse((Z)=>{tr=this.tsParseTypeParameters(this.tsParseConstModifier);let Cr=this.parseMaybeAssignOrigin(q,T,V);if(Cr.type!=="ArrowFunctionExpression"||Cr.extra?.parenthesized)Z();if(tr?.params.length!==0)this.resetStartLocationFromNode(Cr,tr);return Cr.typeParameters=tr,Cr},S);if(!U.error&&!U.aborted){if(tr)this.reportReservedArrowTypeParam(tr);return U.node}if(!k){if(yB(!0),er=this.tryParse(()=>this.parseMaybeAssignOrigin(q,T,V),S),!er.error)return er.node}if(k?.node)return this.setLookaheadState(k.failState),k.node;if(U.node){if(this.setLookaheadState(U.failState),tr)this.reportReservedArrowTypeParam(tr);return U.node}if(er?.node)return this.setLookaheadState(er.failState),er.node;if(k?.thrown)throw k.error;if(U.thrown)throw U.error;if(er?.thrown)throw er.error;throw k?.error||U.error||er?.error}parseAssignableListItem(q){let T=[];while(this.match(o.at))T.push(this.parseDecorator());let V=this.start,S=this.startLoc,k,er=!1,tr=!1;if(q!==void 0){let Cr={};if(this.tsParseModifiers({modified:Cr,allowedModifiers:["public","private","protected","override","readonly"]}),k=Cr.accessibility,tr=Cr.override,er=Cr.readonly,q===!1&&(k||er||tr))this.raise(S.column,di.UnexpectedParameterModifier)}let U=this.parseMaybeDefault(V,S);this.parseBindingListItem(U);let Z=this.parseMaybeDefault(U.start,U.loc.start,U);if(T.length)Z.decorators=T;if(k||er||tr){let Cr=this.startNodeAt(V,S);if(k)Cr.accessibility=k;if(er)Cr.readonly=er;if(tr)Cr.override=tr;if(Z.type!=="Identifier"&&Z.type!=="AssignmentPattern")this.raise(Cr.start,di.UnsupportedParameterPropertyKind);return Cr.parameter=Z,this.finishNode(Cr,"TSParameterProperty")}return Z}checkLValInnerPattern(q,T=Lt.BIND_NONE,V){switch(q.type){case"TSParameterProperty":this.checkLValInnerPattern(q.parameter,T,V);break;default:{super.checkLValInnerPattern(q,T,V);break}}}parseBindingListItem(q){if(this.eat(h.question)){if(q.type!=="Identifier"&&!this.isAmbientContext&&!this.inType)this.raise(q.start,di.PatternIsOptional);q.optional=!0}let T=this.tsTryParseTypeAnnotation();if(T)q.typeAnnotation=T;return this.resetEndLocation(q),q}isAssignable(q,T){switch(q.type){case"TSTypeCastExpression":return this.isAssignable(q.expression,T);case"TSParameterProperty":return!0;case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let V=q.properties.length-1;return q.properties.every((S,k)=>{return S.type!=="ObjectMethod"&&(k===V||S.type!=="SpreadElement")&&this.isAssignable(S)})}case"Property":case"ObjectProperty":return this.isAssignable(q.value);case"SpreadElement":return this.isAssignable(q.argument);case"ArrayExpression":return q.elements.every((V)=>V===null||this.isAssignable(V));case"AssignmentExpression":return q.operator==="=";case"ParenthesizedExpression":return this.isAssignable(q.expression);case"MemberExpression":case"OptionalMemberExpression":return!T;default:return!1}}toAssignable(q,T=!1,V=new av){switch(q.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(q,T,V);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(T);else this.raise(q.start,di.UnexpectedTypeCastInParameter);return this.toAssignable(q.expression,T,V);case"MemberExpression":break;case"AssignmentExpression":if(!T&&q.left.type==="TSTypeCastExpression")q.left=this.typeCastToParameter(q.left);return super.toAssignable(q,T,V);case"TSTypeCastExpression":return this.typeCastToParameter(q);default:return super.toAssignable(q,T,V)}return q}toAssignableParenthesizedExpression(q,T,V){switch(q.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(q.expression,T,V);default:return super.toAssignable(q,T,V)}}parseBindingAtom(){switch(this.type){case h._this:return this.parseIdent(!0);default:return super.parseBindingAtom()}}shouldParseArrow(q){let T;if(this.match(h.colon))T=q.every((V)=>this.isAssignable(V,!0));else T=!this.canInsertSemicolon();if(T){if(this.match(h.colon)){let V=this.tryParse((S)=>{let k=this.tsParseTypeOrTypePredicateAnnotation(h.colon);if(this.canInsertSemicolon()||!this.match(h.arrow))S();return k});if(V.aborted)return this.shouldParseArrowReturnType=void 0,!1;if(!V.thrown){if(V.error)this.setLookaheadState(V.failState);this.shouldParseArrowReturnType=V.node}}if(!this.match(h.arrow))return this.shouldParseArrowReturnType=void 0,!1;return!0}return this.shouldParseArrowReturnType=void 0,T}parseParenArrowList(q,T,V,S){let k=this.startNodeAt(q,T);return k.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(k,V,!1,S)}parseParenAndDistinguishExpression(q,T){let V=this.start,S=this.startLoc,k,er=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let tr=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let U=this.start,Z=this.startLoc,Cr=[],Pr=!0,zr=!1,jr=new av,ri=this.yieldPos,$i=this.awaitPos,ji;this.yieldPos=0,this.awaitPos=0;while(this.type!==h.parenR)if(Pr?Pr=!1:this.expect(h.comma),er&&this.afterTrailingComma(h.parenR,!0)){zr=!0;break}else if(this.type===h.ellipsis){if(ji=this.start,Cr.push(this.parseParenItem(this.parseRestBinding())),this.type===h.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else Cr.push(this.parseMaybeAssign(T,jr,this.parseParenItem));let zi=this.lastTokEnd,Yr=this.lastTokEndLoc;if(this.expect(h.parenR),this.maybeInArrowParameters=tr,q&&this.shouldParseArrow(Cr)&&this.eat(h.arrow))return this.checkPatternErrors(jr,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=ri,this.awaitPos=$i,this.parseParenArrowList(V,S,Cr,T);if(!Cr.length||zr)this.unexpected(this.lastTokStart);if(ji)this.unexpected(ji);if(this.checkExpressionErrors(jr,!0),this.yieldPos=ri||this.yieldPos,this.awaitPos=$i||this.awaitPos,Cr.length>1)k=this.startNodeAt(U,Z),k.expressions=Cr,this.finishNodeAt(k,"SequenceExpression",zi,Yr);else k=Cr[0]}else k=this.parseParenExpression();if(this.options.preserveParens){let tr=this.startNodeAt(V,S);return tr.expression=k,this.finishNode(tr,"ParenthesizedExpression")}else return k}parseTaggedTemplateExpression(q,T,V,S){let k=this.startNodeAt(T,V);if(k.tag=q,k.quasi=this.parseTemplate({isTagged:!0}),S)this.raise(T,"Tagged Template Literals are not allowed in optionalChain.");return this.finishNode(k,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(h.colon)){let q=this.tryParse((T)=>{let V=this.tsParseTypeOrTypePredicateAnnotation(h.colon);if(this.canInsertSemicolon()||!this.match(h.arrow))T();return V});if(q.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!q.thrown){if(q.error)this.setLookaheadState(q.failState);return this.shouldParseAsyncArrowReturnType=q.node,!this.canInsertSemicolon()&&this.eat(h.arrow)}}else return!this.canInsertSemicolon()&&this.eat(h.arrow)}parseSubscriptAsyncArrow(q,T,V,S){let k=this.startNodeAt(q,T);return k.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(k,V,!0,S)}parseExprList(q,T,V,S){let k=[],er=!0;while(!this.eat(q)){if(!er){if(this.expect(h.comma),T&&this.afterTrailingComma(q))break}else er=!1;let tr;if(V&&this.type===h.comma)tr=null;else if(this.type===h.ellipsis){if(tr=this.parseSpread(S),this.maybeInArrowParameters&&this.match(h.colon))tr.typeAnnotation=this.tsParseTypeAnnotation();if(S&&this.type===h.comma&&S.trailingComma<0)S.trailingComma=this.start}else tr=this.parseMaybeAssign(!1,S,this.parseParenItem);k.push(tr)}return k}parseSubscript(q,T,V,S,k,er,tr){let U=er;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(h.prefix)){this.exprAllowed=!1,this.next();let jr=this.startNodeAt(T,V);return jr.expression=q,q=this.finishNode(jr,"TSNonNullExpression"),q}let Z=!1;if(this.match(h.questionDot)&&this.lookaheadCharCode()===60){if(S)return q;q.optional=!0,U=Z=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(h.bitShift)){let jr,ri=this.tsTryParseAndCatch(()=>{if(!S&&this.atPossibleAsyncArrow(q)){let Yr=this.tsTryParseGenericAsyncArrowFunction(T,V,tr);if(Yr)return q=Yr,q}let $i=this.tsParseTypeArgumentsInExpression();if(!$i)return q;if(Z&&!this.match(h.parenL))return jr=this.curPosition(),q;if(H(this.type)||this.type===h.backQuote){let Yr=this.parseTaggedTemplateExpression(q,T,V,U);return Yr.typeArguments=$i,Yr}if(!S&&this.eat(h.parenL)){let Yr=new av,Vr=this.startNodeAt(T,V);if(Vr.callee=q,Vr.arguments=this.parseExprList(h.parenR,this.ecmaVersion>=8,!1,Yr),this.tsCheckForInvalidTypeCasts(Vr.arguments),Vr.typeArguments=$i,U)Vr.optional=Z;return this.checkExpressionErrors(Yr,!0),q=this.finishNode(Vr,"CallExpression"),q}let ji=this.type;if(this.tsMatchRightRelational()||ji===h.bitShift||ji!==h.parenL&&nwr(ji)&&!this.hasPrecedingLineBreak())return;let zi=this.startNodeAt(T,V);return zi.expression=q,zi.typeArguments=$i,this.finishNode(zi,"TSInstantiationExpression")});if(jr)this.unexpected(jr);if(ri){if(ri.type==="TSInstantiationExpression"&&(this.match(h.dot)||this.match(h.questionDot)&&this.lookaheadCharCode()!==40))this.raise(this.start,di.InvalidPropertyAccessAfterInstantiationExpression);return q=ri,q}}let Cr=this.ecmaVersion>=11,Pr=Cr&&this.eat(h.questionDot);if(S&&Pr)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let zr=this.eat(h.bracketL);if(zr||Pr&&this.type!==h.parenL&&this.type!==h.backQuote||this.eat(h.dot)){let jr=this.startNodeAt(T,V);if(jr.object=q,zr)jr.property=this.parseExpression(),this.expect(h.bracketR);else if(this.type===h.privateId&&q.type!=="Super")jr.property=this.parsePrivateIdent();else jr.property=this.parseIdent(this.options.allowReserved!=="never");if(jr.computed=!!zr,Cr)jr.optional=Pr;q=this.finishNode(jr,"MemberExpression")}else if(!S&&this.eat(h.parenL)){let jr=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let ri=new av,$i=this.yieldPos,ji=this.awaitPos,zi=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let Yr=this.parseExprList(h.parenR,this.ecmaVersion>=8,!1,ri);if(k&&!Pr&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(ri,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");this.yieldPos=$i,this.awaitPos=ji,this.awaitIdentPos=zi,q=this.parseSubscriptAsyncArrow(T,V,Yr,tr)}else{this.checkExpressionErrors(ri,!0),this.yieldPos=$i||this.yieldPos,this.awaitPos=ji||this.awaitPos,this.awaitIdentPos=zi||this.awaitIdentPos;let Vr=this.startNodeAt(T,V);if(Vr.callee=q,Vr.arguments=Yr,Cr)Vr.optional=Pr;q=this.finishNode(Vr,"CallExpression")}this.maybeInArrowParameters=jr}else if(this.type===h.backQuote){if(Pr||U)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let jr=this.startNodeAt(T,V);jr.tag=q,jr.quasi=this.parseTemplate({isTagged:!0}),q=this.finishNode(jr,"TaggedTemplateExpression")}return q}parseGetterSetter(q){q.kind=q.key.name,this.parsePropertyName(q);let T=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(q.value=this.parseMethod(!1),T)q.value.typeParameters=T;let V=q.kind==="get"?0:1,S=q.value.params[0];if(V=S&&this.isThisParam(S)?V+1:V,q.value.params.length!==V){let er=q.value.start;if(q.kind==="get")this.raiseRecoverable(er,"getter should have no params");else this.raiseRecoverable(er,"setter should have exactly one param")}else if(q.kind==="set"&&q.value.params[0].type==="RestElement")this.raiseRecoverable(q.value.params[0].start,"Setter cannot use rest params")}parsePropertyValue(q,T,V,S,k,er,tr,U){if(this.tsMatchLeftRelational()){if(T)this.unexpected();q.kind="init",q.method=!0;let Z=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(q.value=this.parseMethod(V,S),Z)q.value.typeParameters=Z;return}return super.parsePropertyValue(q,T,V,S,k,er,tr,U)}parseProperty(q,T){if(!q){let V=[];if(this.match(o.at))while(this.match(o.at))V.push(this.parseDecorator());let S=super.parseProperty(q,T);if(S.type==="SpreadElement"){if(V.length)this.raise(S.start,Td.SpreadElementDecorator)}if(V.length)S.decorators=V,V=[];return S}return super.parseProperty(q,T)}parseCatchClauseParam(){let q=this.parseBindingAtom(),T=q.type==="Identifier";this.enterScope(T?Lt.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(q,T?Lt.BIND_SIMPLE_CATCH:Lt.BIND_LEXICAL);let V=this.tsTryParseTypeAnnotation();if(V)q.typeAnnotation=V,this.resetEndLocation(q);return this.expect(h.parenR),q}parseClass(q,T){let V=this.inAbstractClass;this.inAbstractClass=!!q.abstract;try{this.next(),this.takeDecorators(q);let S=this.strict;this.strict=!0,this.parseClassId(q,T),this.parseClassSuper(q);let k=this.enterClassBody(),er=this.startNode(),tr=!1;er.body=[];let U=[];this.expect(h.braceL);while(this.type!==h.braceR){if(this.match(o.at)){U.push(this.parseDecorator());continue}let Z=this.parseClassElement(q.superClass!==null);if(U.length)Z.decorators=U,this.resetStartLocationFromNode(Z,U[0]),U=[];if(Z){if(er.body.push(Z),Z.type==="MethodDefinition"&&Z.kind==="constructor"&&Z.value.type==="FunctionExpression"){if(tr)this.raiseRecoverable(Z.start,"Duplicate constructor in the same class");if(tr=!0,Z.decorators&&Z.decorators.length>0)this.raise(Z.start,Td.DecoratorConstructor)}else if(Z.key&&Z.key.type==="PrivateIdentifier"&&Z.value?.type!=="TSDeclareMethod"&&xdr(k,Z))this.raiseRecoverable(Z.key.start,`Identifier '#${Z.key.name}' has already been declared`)}}if(this.strict=S,this.next(),U.length)this.raise(this.start,Td.TrailingDecorator);return q.body=this.finishNode(er,"ClassBody"),this.exitClassBody(),this.finishNode(q,T?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=V}}parseClassFunctionParams(){let q=this.tsTryParseTypeParameters(),T=this.parseBindingList(h.parenR,!1,this.ecmaVersion>=8,!0);if(q)T.typeParameters=q;return T}parseMethod(q,T,V,S,k){let er=this.startNode(),tr=this.yieldPos,U=this.awaitPos,Z=this.awaitIdentPos;if(this.initFunction(er),this.ecmaVersion>=6)er.generator=q;if(this.ecmaVersion>=8)er.async=!!T;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(aP(T,er.generator)|Lt.SCOPE_SUPER|(V?Lt.SCOPE_DIRECT_SUPER:0)),this.expect(h.parenL),er.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(er,!1,!0,!1,{isClassMethod:S}),this.yieldPos=tr,this.awaitPos=U,this.awaitIdentPos=Z,k&&k.abstract){if(!!er.body){let{key:Pr}=k;this.raise(k.start,di.AbstractMethodHasImplementation({methodName:Pr.type==="Identifier"&&!k.computed?Pr.name:`[${this.input.slice(Pr.start,Pr.end)}]`}))}}return this.finishNode(er,"FunctionExpression")}static parse(q,T){if(T.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else T.locations=!0;let V=new this(T,q);if(i)V.isAmbientContext=!0;return V.parse()}static parseExpressionAt(q,T,V){if(V.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else V.locations=!0;let S=new this(V,q,T);if(i)S.isAmbientContext=!0;return S.nextToken(),S.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(o.type)){let T=this.startNode();return T.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(T,!0,this.importOrExportOuterKind==="type"),this.finishNode(T,"ImportSpecifier")}else{let T=super.parseImportSpecifier();return T.importKind="value",T}}parseExportSpecifier(q){let T=this.ts_isContextual(o.type);if(!this.match(h.string)&&T){let S=this.startNode();return S.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(S,!1,this.importOrExportOuterKind==="type"),this.finishNode(S,"ExportSpecifier"),this.checkExport(q,S.exported,S.exported.start),S}else{let S=super.parseExportSpecifier(q);return S.exportKind="value",S}}parseTypeOnlyImportExportSpecifier(q,T,V){let S=T?"imported":"local",k=T?"local":"exported",er=q[S],tr,U=!1,Z=!0,Cr=er.start;if(this.isContextual("as")){let zr=this.parseIdent();if(this.isContextual("as")){let jr=this.parseIdent();if(sr(this.type))U=!0,er=zr,tr=T?this.parseIdent():this.parseModuleExportName(),Z=!1;else tr=jr,Z=!1}else if(sr(this.type))Z=!1,tr=T?this.parseIdent():this.parseModuleExportName();else U=!0,er=zr}else if(sr(this.type))if(U=!0,T){if(er=super.parseIdent(!0),!this.isContextual("as"))this.checkUnreserved(er)}else er=this.parseModuleExportName();if(U&&V)this.raise(Cr,T?di.TypeModifierIsUsedInTypeImports:di.TypeModifierIsUsedInTypeExports);q[S]=er,q[k]=tr;let Pr=T?"importKind":"exportKind";if(q[Pr]=U?"type":"value",Z&&this.eatContextual("as"))q[k]=T?this.parseIdent():this.parseModuleExportName();if(!q[k])q[k]=this.copyNode(q[S]);if(T)this.checkLValSimple(q[k],Lt.BIND_LEXICAL)}raiseCommonCheck(q,T,V){switch(T){case"Comma is not permitted after the rest element":if(this.isAmbientContext&&this.match(h.comma)&&this.lookaheadCharCode()===41){this.next();return}else return super.raise(q,T)}return V?super.raiseRecoverable(q,T):super.raise(q,T)}raiseRecoverable(q,T){return this.raiseCommonCheck(q,T,!0)}raise(q,T){return this.raiseCommonCheck(q,T,!0)}updateContext(q){let{type:T}=this;if(T==h.braceL){var V=this.curContext();if(V==L.tc_oTag)this.context.push(M.b_expr);else if(V==L.tc_expr)this.context.push(M.b_tmpl);else super.updateContext(q);this.exprAllowed=!0}else if(T===h.slash&&q===o.jsxTagStart)this.context.length-=2,this.context.push(L.tc_cTag),this.exprAllowed=!1;else return super.updateContext(q)}jsx_parseOpeningElementAt(q,T){let V=this.startNodeAt(q,T),S=this.jsx_parseElementName();if(S)V.name=S;if(this.match(h.relational)||this.match(h.bitShift)){let k=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(k)V.typeArguments=k}V.attributes=[];while(this.type!==h.slash&&this.type!==o.jsxTagEnd)V.attributes.push(this.jsx_parseAttribute());return V.selfClosing=this.eat(h.slash),this.expect(o.jsxTagEnd),this.finishNode(V,S?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(q){if(q===sv)this.importsStack.push([]);super.enterScope(q);let T=super.currentScope();T.types=[],T.enums=[],T.constEnums=[],T.classes=[],T.exportOnlyBindings=[]}exitScope(){if(super.currentScope().flags===sv)this.importsStack.pop();super.exitScope()}hasImport(q,T){let V=this.importsStack.length;if(this.importsStack[V-1].indexOf(q)>-1)return!0;if(!T&&V>1){for(let S=0;S<V-1;S++)if(this.importsStack[S].indexOf(q)>-1)return!0}return!1}maybeExportDefined(q,T){if(this.inModule&&q.flags&Lt.SCOPE_TOP)this.undefinedExports.delete(T)}declareName(q,T,V){if(T&Lt.BIND_FLAGS_TS_IMPORT){if(this.hasImport(q,!0))this.raise(V,`Identifier '${q}' has already been declared.`);this.importsStack[this.importsStack.length-1].push(q);return}let S=this.currentScope();if(T&Lt.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(S,q),S.exportOnlyBindings.push(q);return}if(T===Lt.BIND_TS_TYPE||T===Lt.BIND_TS_INTERFACE){if(T===Lt.BIND_TS_TYPE&&S.types.includes(q))this.raise(V,`type '${q}' has already been declared.`);S.types.push(q)}else super.declareName(q,T,V);if(T&Lt.BIND_FLAGS_TS_ENUM)S.enums.push(q);if(T&Lt.BIND_FLAGS_TS_CONST_ENUM)S.constEnums.push(q);if(T&Lt.BIND_FLAGS_CLASS)S.classes.push(q)}checkLocalExport(q){let{name:T}=q;if(this.hasImport(T))return;let V=this.scopeStack.length;for(let S=V-1;S>=0;S--){let k=this.scopeStack[S];if(k.types.indexOf(T)>-1||k.exportOnlyBindings.indexOf(T)>-1)return}super.checkLocalExport(q)}}return vr}}var $B=Ut.extend(PB());function uP(r,i,t,s){let l=t?$B:Ut,{onComment:u,add_comments:h}=gB(r,i),c=l.prototype.parseStatement;if(s)l.prototype.parseStatement=function(...w){let P=c.call(this,...w);return this.undefinedExports={},P};let p;try{p=l.parse(r,{onComment:u,sourceType:"module",ecmaVersion:16,locations:!0})}finally{if(s)l.prototype.parseStatement=c}return h(p),p}function Eu(r,i,t,s){let l=t?$B:Ut,{onComment:u,add_comments:h}=gB(r,i,s),c=l.parseExpressionAt(r,s,{onComment:u,sourceType:"module",ecmaVersion:16,locations:!0});return h(c),c}function gB(r,i,t=0){return{onComment:(s,l,u,h,c,p)=>{if(s&&/\n/.test(l)){let w=u;while(w>0&&r[w-1]!==`
436
+ `;else b=String.fromCharCode(M);if(this.options.locations)++this.curLine,this.lineStart=this.pos;return b}jsx_readString(P){let M="",b=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");let o=this.input.charCodeAt(this.pos);if(o===P)break;if(o===38)M+=this.input.slice(b,this.pos),M+=this.jsx_readEntity(),b=this.pos;else if(h(o))M+=this.input.slice(b,this.pos),M+=this.jsx_readNewLine(!1),b=this.pos;else++this.pos}return M+=this.input.slice(b,this.pos++),this.finishToken(l.string,M)}jsx_readEntity(){let P="",M=0,b,o=this.input[this.pos];if(o!=="&")this.raise(this.pos,"Entity must start with an ampersand");let L=++this.pos;while(this.pos<this.input.length&&M++<10){if(o=this.input[this.pos++],o===";"){if(P[0]==="#"){if(P[1]==="x"){if(P=P.substr(2),twr.test(P))b=String.fromCharCode(parseInt(P,16))}else if(P=P.substr(1),ewr.test(P))b=String.fromCharCode(parseInt(P,10))}else b=iwr[P];break}P+=o}if(!b)return this.pos=L,"&";return b}jsx_readWord(){let P,M=this.pos;do P=this.input.charCodeAt(++this.pos);while(c(P)||P===45);return this.finishToken(u.jsxName,this.input.slice(M,this.pos))}jsx_parseIdentifier(){let P=this.startNode();if(this.type===u.jsxName)P.name=this.value;else if(this.type.keyword)P.name=this.type.keyword;else this.unexpected();return this.next(),this.finishNode(P,"JSXIdentifier")}jsx_parseNamespacedName(){let P=this.start,M=this.startLoc,b=this.jsx_parseIdentifier();if(!p.allowNamespaces||!this.eat(l.colon))return b;var o=this.startNodeAt(P,M);return o.namespace=b,o.name=this.jsx_parseIdentifier(),this.finishNode(o,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===u.jsxTagEnd)return"";let P=this.start,M=this.startLoc,b=this.jsx_parseNamespacedName();if(this.type===l.dot&&b.type==="JSXNamespacedName"&&!p.allowNamespacedObjects)this.unexpected();while(this.eat(l.dot)){let o=this.startNodeAt(P,M);o.object=b,o.property=this.jsx_parseIdentifier(),b=this.finishNode(o,"JSXMemberExpression")}return b}jsx_parseAttributeValue(){switch(this.type){case l.braceL:let P=this.jsx_parseExpressionContainer();if(P.expression.type==="JSXEmptyExpression")this.raise(P.start,"JSX attributes must only be assigned a non-empty expression");return P;case u.jsxTagStart:case l.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let P=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(P,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let P=this.startNode();return this.next(),P.expression=this.type===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(P,"JSXExpressionContainer")}jsx_parseAttribute(){let P=this.startNode();if(this.eat(l.braceL))return this.expect(l.ellipsis),P.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(P,"JSXSpreadAttribute");return P.name=this.jsx_parseNamespacedName(),P.value=this.eat(l.eq)?this.jsx_parseAttributeValue():null,this.finishNode(P,"JSXAttribute")}jsx_parseOpeningElementAt(P,M){let b=this.startNodeAt(P,M);b.attributes=[];let o=this.jsx_parseElementName();if(o)b.name=o;while(this.type!==l.slash&&this.type!==u.jsxTagEnd)b.attributes.push(this.jsx_parseAttribute());return b.selfClosing=this.eat(l.slash),this.expect(u.jsxTagEnd),this.finishNode(b,o?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(P,M){let b=this.startNodeAt(P,M),o=this.jsx_parseElementName();if(o)b.name=o;return this.expect(u.jsxTagEnd),this.finishNode(b,o?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(P,M){let b=this.startNodeAt(P,M),o=[],L=this.jsx_parseOpeningElementAt(P,M),I=null;if(!L.selfClosing){r:for(;;)switch(this.type){case u.jsxTagStart:if(P=this.start,M=this.startLoc,this.next(),this.eat(l.slash)){I=this.jsx_parseClosingElementAt(P,M);break r}o.push(this.jsx_parseElementAt(P,M));break;case u.jsxText:o.push(this.parseExprAtom());break;case l.braceL:o.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}if(lv(I.name)!==lv(L.name))this.raise(I.start,"Expected corresponding JSX closing tag for <"+lv(L.name)+">")}let j=L.name?"Element":"Fragment";if(b["opening"+j]=L,b["closing"+j]=I,b.children=o,this.type===l.relational&&this.value==="<")this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag");return this.finishNode(b,"JSX"+j)}jsx_parseText(){let P=this.parseLiteral(this.value);return P.type="JSXText",P}jsx_parseElement(){let P=this.start,M=this.startLoc;return this.next(),this.jsx_parseElementAt(P,M)}}}function awr(r,i,t){let{tokTypes:s}=i,{tokTypes:l}=t;return class extends r{parseMaybeImportAttributes(h){if(this.type===l._with||this.type===s.assert){this.next();let c=this.parseImportAttributes();if(c)h.attributes=c}}parseImportAttributes(){this.expect(l.braceL);let h=this.parseWithEntries();return this.expect(l.braceR),h}parseWithEntries(){let h=[],c=new Set;do{if(this.type===l.braceR)break;let p=this.startNode(),w;if(this.type===l.string)w=this.parseLiteral(this.value);else w=this.parseIdent(!0);if(this.next(),p.key=w,c.has(p.key.name))this.raise(this.pos,"Duplicated key in attributes");if(c.add(p.key.name),this.type!==l.string)this.raise(this.pos,"Only string is supported as an attribute value");p.value=this.parseLiteral(this.value),h.push(this.finishNode(p,"ImportAttribute"))}while(this.eat(l.comma));return h}}}var sP=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function yB(r){if(!r)throw Error("Assert fail")}function lwr(r){return r==="accessor"}function uwr(r){return r==="in"||r==="out"}var Sd=1,vB=2,fwr=4,Lt={SCOPE_TOP:1,SCOPE_FUNCTION:2,SCOPE_ASYNC:4,SCOPE_GENERATOR:8,SCOPE_ARROW:16,SCOPE_SIMPLE_CATCH:32,SCOPE_SUPER:64,SCOPE_DIRECT_SUPER:128,SCOPE_CLASS_STATIC_BLOCK:256,SCOPE_VAR:256,BIND_NONE:0,BIND_VAR:1,BIND_LEXICAL:2,BIND_FUNCTION:3,BIND_SIMPLE_CATCH:4,BIND_OUTSIDE:5,BIND_TS_TYPE:6,BIND_TS_INTERFACE:7,BIND_TS_NAMESPACE:8,BIND_FLAGS_TS_EXPORT_ONLY:1024,BIND_FLAGS_TS_IMPORT:4096,BIND_FLAGS_TS_ENUM:256,BIND_FLAGS_TS_CONST_ENUM:512,BIND_FLAGS_CLASS:128};function aP(r,i){return Lt.SCOPE_FUNCTION|(r?Lt.SCOPE_ASYNC:0)|(i?Lt.SCOPE_GENERATOR:0)}function hwr(r){if(r.type!=="MemberExpression")return!1;let{computed:i,property:t}=r;if(i&&(t.type!=="TemplateLiteral"||t.expressions.length>0))return!1;return qB(r.object)}function qB(r){if(r.type==="Identifier")return!0;if(r.type!=="MemberExpression")return!1;if(r.computed)return!1;return qB(r.object)}function pB(r){return r==="private"||r==="public"||r==="protected"}function nwr(r){return Boolean(r.startsExpr)}function cwr(r){if(r==null)throw Error(`Unexpected ${r} value.`);return r}function ywr(r){switch(r){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function PB(r){let{dts:i=!1}=r||{},t=!!r?.jsx;return function(s){let l=s.acorn||Md,u=Zdr(l),h=l.tokTypes,c=l.keywordTypes,p=l.isIdentifierStart,w=l.lineBreak,P=l.isNewLine,M=l.tokContexts,b=l.isIdentifierChar,{tokTypes:o,tokContexts:L,keywordsRegExp:I,tokenIsLiteralPropertyName:j,tokenIsTemplate:H,tokenIsTSDeclarationStart:J,tokenIsIdentifier:W,tokenIsKeywordOrIdentifier:sr,tokenIsTSTypeOperator:rr}=u;function hr(q,T,V=q.length){for(let S=T;S<V;S++){let k=q.charCodeAt(S);if(P(k))return S<V-1&&k===13&&q.charCodeAt(S+1)===10?S+2:S+1}return-1}if(s=rwr(s,u,l),r?.jsx)s=swr(l,u,s,typeof r.jsx==="boolean"?{}:r.jsx);s=awr(s,u,l);class vr extends s{constructor(q,T,V){super(q,T,V);this.preValue=null,this.preToken=null,this.isLookahead=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inType=!1,this.inDisallowConditionalTypesContext=!1,this.maybeInArrowParameters=!1,this.shouldParseArrowReturnType=void 0,this.shouldParseAsyncArrowReturnType=void 0,this.decoratorStack=[[]],this.importsStack=[[]],this.importOrExportOuterKind=void 0,this.tsParseConstModifier=(S)=>{this.tsParseModifiers({modified:S,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:di.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return u}get acornTypeScript(){return u}getTokenFromCodeInType(q){if(q===62)return this.finishOp(h.relational,1);if(q===60)return this.finishOp(h.relational,1);return super.getTokenFromCode(q)}readToken(q){if(!this.inType){let T=this.curContext();if(T===L.tc_expr)return this.jsx_readToken();if(T===L.tc_oTag||T===L.tc_cTag){if(p(q))return this.jsx_readWord();if(q==62)return++this.pos,this.finishToken(o.jsxTagEnd);if((q===34||q===39)&&T==L.tc_oTag)return this.jsx_readString(q)}if(q===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)if(++this.pos,r?.jsx)return this.finishToken(o.jsxTagStart);else return this.finishToken(h.relational,"<")}return super.readToken(q)}getTokenFromCode(q){if(this.inType)return this.getTokenFromCodeInType(q);if(q===64)return++this.pos,this.finishToken(o.at);return super.getTokenFromCode(q)}isAbstractClass(){return this.ts_isContextual(o.abstract)&&this.lookahead().type===h._class}finishNode(q,T){if(q.type!==""&&q.end!==0)return q;return super.finishNode(q,T)}tryParse(q,T=this.cloneCurLookaheadState()){let V={node:null};try{return{node:q((k=null)=>{throw V.node=k,V}),error:null,thrown:!1,aborted:!1,failState:null}}catch(S){let k=this.getCurLookaheadState();if(this.setLookaheadState(T),S instanceof SyntaxError)return{node:null,error:S,thrown:!0,aborted:!1,failState:k};if(S===V)return{node:V.node,error:null,thrown:!1,aborted:!0,failState:k};throw S}}setOptionalParametersError(q,T){q.optionalParametersLoc=T?.loc??this.startLoc}reScan_lt_gt(){if(this.type===h.relational)this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos())}reScan_lt(){let{type:q}=this;if(q===h.bitShift)return this.pos-=2,this.finishOp(h.relational,1),h.relational;return q}resetEndLocation(q,T=this.lastTokEnd,V=this.lastTokEndLoc){if(q.end=T,q.loc.end=V,this.options.ranges)q.range[1]=T}startNodeAtNode(q){return super.startNodeAt(q.start,q.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(q,T){return T.some((V)=>{if(pB(V))return q.accessibility===V;return!!q[V]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(q){q.forEach((T)=>{if(T?.type==="TSTypeCastExpression")this.raise(T.typeAnnotation.start,di.UnexpectedTypeAnnotation)})}atPossibleAsyncArrow(q){return q.type==="Identifier"&&q.name==="async"&&this.lastTokEnd===q.end&&!this.canInsertSemicolon()&&q.end-q.start===5&&q.start===this.potentialArrowAt}tsIsIdentifier(){return W(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(h.colon)?this.tsParseTypeOrTypePredicateAnnotation(h.colon):void 0}tsTryParseGenericAsyncArrowFunction(q,T,V){if(!this.tsMatchLeftRelational())return;let S=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let k=this.tsTryParseAndCatch(()=>{let er=this.startNodeAt(q,T);return er.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(er),er.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(h.arrow),er});if(this.maybeInArrowParameters=S,!k)return;return super.parseArrowExpression(k,null,!0,V)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==h.relational)return;return this.tsParseTypeArguments()}tsInNoContext(q){let T=this.context;this.context=[T[0]];try{return q()}finally{this.context=T}}tsTryParseTypeAnnotation(){return this.match(h.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(q,T){let V=q+T.length;if(this.input.slice(q,V)===T){let S=this.input.charCodeAt(V);return!(b(S)||(S&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(o.abstract)&&this.lookahead().type===h._new}nextTokenStartSince(q){return sP.lastIndex=q,sP.test(this.input)?sP.lastIndex:q}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(q,T){for(let V of Object.keys(q))if(q[V]!==T[V])return!1;return!0}createLookaheadState(){this.value=null,this.context=[this.curContext()]}getCurLookaheadState(){return{endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context,startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}}cloneCurLookaheadState(){return{pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context&&this.context.slice(),startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}}setLookaheadState(q){this.pos=q.pos,this.value=q.value,this.endLoc=q.endLoc,this.lastTokEnd=q.lastTokEnd,this.lastTokStart=q.lastTokStart,this.lastTokStartLoc=q.lastTokStartLoc,this.type=q.type,this.start=q.start,this.end=q.end,this.context=q.context,this.startLoc=q.startLoc,this.lastTokEndLoc=q.lastTokEndLoc,this.curLine=q.curLine,this.lineStart=q.lineStart,this.curPosition=q.curPosition,this.containsEsc=q.containsEsc}tsLookAhead(q){let T=this.getCurLookaheadState(),V=q();return this.setLookaheadState(T),V}lookahead(q){let T=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,q!==void 0)for(let S=0;S<q;S++)this.nextToken();else this.nextToken();this.isLookahead=!1;let V=this.getCurLookaheadState();return this.setLookaheadState(T),V}readWord(){let q=this.readWord1(),T=h.name;if(this.keywords.test(q))T=c[q];else if(new RegExp(I).test(q))T=o[q];return this.finishToken(T,q)}skipBlockComment(){let q;if(!this.isLookahead)q=this.options.onComment&&this.curPosition();let T=this.pos,V=this.input.indexOf("*/",this.pos+=2);if(V===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=V+2,this.options.locations)for(let S,k=T;(S=hr(this.input,k,this.pos))>-1;)++this.curLine,k=this.lineStart=S;if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!0,this.input.slice(T+2,V),T,this.pos,q,this.curPosition())}skipLineComment(q){let T=this.pos,V;if(!this.isLookahead)V=this.options.onComment&&this.curPosition();let S=this.input.charCodeAt(this.pos+=q);while(this.pos<this.input.length&&!P(S))S=this.input.charCodeAt(++this.pos);if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!1,this.input.slice(T+q,this.pos),T,this.pos,V,this.curPosition())}finishToken(q,T){if(this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();let V=this.type;if(this.type=q,this.value=T,!this.isLookahead)this.updateContext(V)}resetStartLocation(q,T,V){if(q.start=T,q.loc.start=V,this.options.ranges)q.range[0]=T}isLineTerminator(){return this.eat(h.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return nB.lastIndex=this.end,nB.test(this.input)}addExtra(q,T,V,S=!0){if(!q)return;let k=q.extra=q.extra||{};if(S)k[T]=V;else Object.defineProperty(k,T,{enumerable:S,value:V})}isLiteralPropertyName(){return j(this.type)}hasPrecedingLineBreak(){return w.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(q,T){return q.name=T,this.finishNode(q,"Identifier")}resetStartLocationFromNode(q,T){this.resetStartLocation(q,T.start,T.loc.start)}isThisParam(q){return q.type==="Identifier"&&q.name==="this"}isLookaheadContextual(q){let T=this.nextTokenStart();return this.isUnparsedContextual(T,q)}ts_type_isContextual(q,T){return q===T&&!this.containsEsc}ts_isContextual(q){return this.type===q&&!this.containsEsc}ts_isContextualWithState(q,T){return q.type===T&&!q.containsEsc}isContextualWithState(q,T){return T.type===h.name&&T.value===q&&!T.containsEsc}tsIsStartOfMappedType(){if(this.next(),this.eat(h.plusMin))return this.ts_isContextual(o.readonly);if(this.ts_isContextual(o.readonly))this.next();if(!this.match(h.bracketL))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(h._in)}tsInDisallowConditionalTypesContext(q){let T=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return q()}finally{this.inDisallowConditionalTypesContext=T}}tsTryParseType(){return this.tsEatThenParseType(h.colon)}match(q){return this.type===q}matchJsx(q){return this.type===u.tokTypes[q]}ts_eatWithState(q,T,V){let S=V.type;if(q===S){for(let k=0;k<T;k++)this.next();return!0}else return!1}ts_eatContextualWithState(q,T,V){if(I.test(q)){if(this.ts_isContextualWithState(V,o[q])){for(let S=0;S<T;S++)this.next();return!0}return!1}else{if(!this.isContextualWithState(q,V))return!1;for(let S=0;S<T;S++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(h._class)||this.isAbstractClass()}eatContextual(q){if(I.test(q)){if(this.ts_isContextual(o[q]))return this.next(),!0;return!1}else return super.eatContextual(q)}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseExternalModuleReference(){let q=this.startNode();if(this.expectContextual("require"),this.expect(h.parenL),!this.match(h.string))this.unexpected();return q.expression=this.parseExprAtom(),this.expect(h.parenR),this.finishNode(q,"TSExternalModuleReference")}tsParseEntityName(q=!0){let T=this.parseIdent(q);while(this.eat(h.dot)){let V=this.startNodeAtNode(T);V.left=T,V.right=this.parseIdent(q),T=this.finishNode(V,"TSQualifiedName")}return T}tsParseEnumMember(){let q=this.startNode();if(q.id=this.match(h.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(h.eq))q.initializer=this.parseMaybeAssign();return this.finishNode(q,"TSEnumMember")}tsParseEnumDeclaration(q,T={}){if(T.const)q.const=!0;if(T.declare)q.declare=!0;return this.expectContextual("enum"),q.id=this.parseIdent(),this.checkLValSimple(q.id),this.expect(h.braceL),q.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(h.braceR),this.finishNode(q,"TSEnumDeclaration")}tsParseModuleBlock(){let q=this.startNode();this.enterScope(Wdr),this.expect(h.braceL),q.body=[];while(this.type!==h.braceR){let T=this.parseStatement(null,!0);q.body.push(T)}return this.next(),super.exitScope(),this.finishNode(q,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(q){if(this.ts_isContextual(o.global))q.global=!0,q.id=this.parseIdent();else if(this.match(h.string))q.id=this.parseLiteral(this.value);else this.unexpected();if(this.match(h.braceL))this.enterScope(sv),q.body=this.tsParseModuleBlock(),super.exitScope();else super.semicolon();return this.finishNode(q,"TSModuleDeclaration")}tsTryParseDeclare(q){if(this.isLineTerminator())return;let T=this.type,V;if(this.isContextual("let"))T=h._var,V="let";return this.tsInAmbientContext(()=>{if(T===h._function)return q.declare=!0,this.parseFunctionStatement(q,!1,!0);if(T===h._class)return q.declare=!0,this.parseClass(q,!0);if(T===o.enum)return this.tsParseEnumDeclaration(q,{declare:!0});if(T===o.global)return this.tsParseAmbientExternalModuleDeclaration(q);if(T===h._const||T===h._var){if(!this.match(h._const)||!this.isLookaheadContextual("enum"))return q.declare=!0,this.parseVarStatement(q,V||this.value,!0);return this.expect(h._const),this.tsParseEnumDeclaration(q,{const:!0,declare:!0})}if(T===o.interface){let S=this.tsParseInterfaceDeclaration(q,{declare:!0});if(S)return S}if(W(T))return this.tsParseDeclaration(q,this.value,!0)})}tsIsListTerminator(q){switch(q){case"EnumMembers":case"TypeMembers":return this.match(h.braceR);case"HeritageClauseElement":return this.match(h.braceL);case"TupleElementTypes":return this.match(h.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}}tsParseDelimitedListWorker(q,T,V,S){let k=[],er=-1;for(;;){if(this.tsIsListTerminator(q))break;er=-1;let tr=T();if(tr==null)return;if(k.push(tr),this.eat(h.comma)){er=this.lastTokStart;continue}if(this.tsIsListTerminator(q))break;if(V)this.expect(h.comma);return}if(S)S.value=er;return k}tsParseDelimitedList(q,T,V){return cwr(this.tsParseDelimitedListWorker(q,T,!0,V))}tsParseBracketedList(q,T,V,S,k){if(!S)if(V)this.expect(h.bracketL);else this.expect(h.relational);let er=this.tsParseDelimitedList(q,T,k);if(V)this.expect(h.bracketR);else this.expect(h.relational);return er}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(q){return!this.match(q)?void 0:this.tsNextThenParseType()}tsExpectThenParseType(q){return this.tsDoThenParseType(()=>this.expect(q))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(q){return this.tsInType(()=>{return q(),this.tsParseType()})}tsSkipParameterStart(){if(W(this.type)||this.match(h._this))return this.next(),!0;if(this.match(h.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(h.bracketL)){this.next();try{return this.parseBindingList(h.bracketR,!0,!0),!0}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(h.parenR)||this.match(h.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(h.colon)||this.match(h.comma)||this.match(h.question)||this.match(h.eq))return!0;if(this.match(h.parenR)){if(this.next(),this.match(h.arrow))return!0}}return!1}tsIsStartOfFunctionType(){if(this.tsMatchLeftRelational())return!0;return this.match(h.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsInAllowConditionalTypesContext(q){let T=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return q()}finally{this.inDisallowConditionalTypesContext=T}}tsParseBindingListForSignature(){return super.parseBindingList(h.parenR,!0,!0).map((q)=>{if(q.type!=="Identifier"&&q.type!=="RestElement"&&q.type!=="ObjectPattern"&&q.type!=="ArrayPattern")this.raise(q.start,di.UnsupportedSignatureParameterKind({type:q.type}));return q})}tsParseTypePredicateAsserts(){if(this.type!==o.asserts)return!1;let q=this.containsEsc;if(this.next(),!W(this.type)&&!this.match(h._this))return!1;if(q)this.raise(this.lastTokStart,"Escape sequence in keyword asserts");return!0}tsParseThisTypeNode(){let q=this.startNode();return this.next(),this.finishNode(q,"TSThisType")}tsParseTypeAnnotation(q=!0,T=this.startNode()){return this.tsInType(()=>{if(q)this.expect(h.colon);T.typeAnnotation=this.tsParseType()}),this.finishNode(T,"TSTypeAnnotation")}tsParseThisTypePredicate(q){this.next();let T=this.startNodeAtNode(q);return T.parameterName=q,T.typeAnnotation=this.tsParseTypeAnnotation(!1),T.asserts=!1,this.finishNode(T,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){let q=this.tsParseThisTypeNode();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(q);else return q}tsParseTypePredicatePrefix(){let q=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),q}tsParseTypeOrTypePredicateAnnotation(q){return this.tsInType(()=>{let T=this.startNode();this.expect(q);let V=this.startNode(),S=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(S&&this.match(h._this)){let tr=this.tsParseThisTypeOrThisTypePredicate();if(tr.type==="TSThisType")V.parameterName=tr,V.asserts=!0,V.typeAnnotation=null,tr=this.finishNode(V,"TSTypePredicate");else this.resetStartLocationFromNode(tr,V),tr.asserts=!0;return T.typeAnnotation=tr,this.finishNode(T,"TSTypeAnnotation")}let k=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!k){if(!S)return this.tsParseTypeAnnotation(!1,T);return V.parameterName=this.parseIdent(),V.asserts=S,V.typeAnnotation=null,T.typeAnnotation=this.finishNode(V,"TSTypePredicate"),this.finishNode(T,"TSTypeAnnotation")}let er=this.tsParseTypeAnnotation(!1);return V.parameterName=k,V.typeAnnotation=er,V.asserts=S,T.typeAnnotation=this.finishNode(V,"TSTypePredicate"),this.finishNode(T,"TSTypeAnnotation")})}tsFillSignature(q,T){let V=q===h.arrow,S="parameters",k="typeAnnotation";if(T.typeParameters=this.tsTryParseTypeParameters(),this.expect(h.parenL),T.parameters=this.tsParseBindingListForSignature(),V)T.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(q);else if(this.match(q))T.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(q)}tsTryNextParseConstantContext(){if(this.lookahead().type!==h._const)return null;this.next();let q=this.tsParseTypeReference();if(q.typeParameters||q.typeArguments)this.raise(q.typeName.start,di.CannotFindName({name:"const"}));return q}tsParseFunctionOrConstructorType(q,T){let V=this.startNode();if(q==="TSConstructorType"){if(V.abstract=!!T,T)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(h.arrow,V)),this.finishNode(V,q)}tsParseUnionOrIntersectionType(q,T,V){let S=this.startNode(),k=this.eat(V),er=[];do er.push(T());while(this.eat(V));if(er.length===1&&!k)return er[0];return S.types=er,this.finishNode(S,q)}tsCheckTypeAnnotationForReadOnly(q){switch(q.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(q.start,di.UnexpectedReadonly)}}tsParseTypeOperator(){let q=this.startNode(),T=this.value;if(this.next(),q.operator=T,q.typeAnnotation=this.tsParseTypeOperatorOrHigher(),T==="readonly")this.tsCheckTypeAnnotationForReadOnly(q);return this.finishNode(q,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(h._extends)){let q=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.inDisallowConditionalTypesContext||!this.match(h.question))return q}}tsParseInferType(){let q=this.startNode();this.expectContextual("infer");let T=this.startNode();return T.name=this.tsParseTypeParameterName(),T.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),q.typeParameter=this.finishNode(T,"TSTypeParameter"),this.finishNode(q,"TSInferType")}tsParseLiteralTypeNode(){let q=this.startNode();return q.literal=(()=>{switch(this.type){case h.num:case h.string:case h._true:case h._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(q,"TSLiteralType")}tsParseImportType(){let q=this.startNode();if(this.expect(h._import),this.expect(h.parenL),!this.match(h.string))this.raise(this.start,di.UnsupportedImportTypeArgument);if(q.argument=this.parseExprAtom(),this.expect(h.parenR),this.eat(h.dot))q.qualifier=this.tsParseEntityName();if(this.tsMatchLeftRelational())q.typeArguments=this.tsParseTypeArguments();return this.finishNode(q,"TSImportType")}tsParseTypeQuery(){let q=this.startNode();if(this.expect(h._typeof),this.match(h._import))q.exprName=this.tsParseImportType();else q.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())q.typeArguments=this.tsParseTypeArguments();return this.finishNode(q,"TSTypeQuery")}tsParseMappedTypeParameter(){let q=this.startNode();return q.name=this.tsParseTypeParameterName(),q.constraint=this.tsExpectThenParseType(h._in),this.finishNode(q,"TSTypeParameter")}tsParseMappedType(){let q=this.startNode();if(this.expect(h.braceL),this.match(h.plusMin))q.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))q.readonly=!0;if(this.expect(h.bracketL),q.typeParameter=this.tsParseMappedTypeParameter(),q.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(h.bracketR),this.match(h.plusMin))q.optional=this.value,this.next(),this.expect(h.question);else if(this.eat(h.question))q.optional=!0;return q.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(h.braceR),this.finishNode(q,"TSMappedType")}tsParseTypeLiteral(){let q=this.startNode();return q.members=this.tsParseObjectTypeMembers(),this.finishNode(q,"TSTypeLiteral")}tsParseTupleElementType(){let q=this.startLoc,T=this.start,V=this.eat(h.ellipsis),S=this.tsParseType(),k=this.eat(h.question);if(this.eat(h.colon)){let tr=this.startNodeAtNode(S);if(tr.optional=k,S.type==="TSTypeReference"&&!S.typeArguments&&S.typeName.type==="Identifier")tr.label=S.typeName;else this.raise(S.start,di.InvalidTupleMemberLabel),tr.label=S;tr.elementType=this.tsParseType(),S=this.finishNode(tr,"TSNamedTupleMember")}else if(k){let tr=this.startNodeAtNode(S);tr.typeAnnotation=S,S=this.finishNode(tr,"TSOptionalType")}if(V){let tr=this.startNodeAt(T,q);tr.typeAnnotation=S,S=this.finishNode(tr,"TSRestType")}return S}tsParseTupleType(){let q=this.startNode();q.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let T=!1;return q.elementTypes.forEach((V)=>{let{type:S}=V;if(T&&S!=="TSRestType"&&S!=="TSOptionalType"&&!(S==="TSNamedTupleMember"&&V.optional))this.raise(V.start,di.OptionalTypeBeforeRequired);if(T||=S==="TSNamedTupleMember"&&V.optional||S==="TSOptionalType",S==="TSRestType")V=V.typeAnnotation}),this.finishNode(q,"TSTupleType")}tsParseTemplateLiteralType(){let q=this.startNode();return q.literal=this.parseTemplate({isTagged:!1}),this.finishNode(q,"TSLiteralType")}tsParseTypeReference(){let q=this.startNode();if(q.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())q.typeArguments=this.tsParseTypeArguments();return this.finishNode(q,"TSTypeReference")}tsMatchLeftRelational(){return this.match(h.relational)&&this.value==="<"}tsMatchRightRelational(){return this.match(h.relational)&&this.value===">"}tsParseParenthesizedType(){let q=this.startNode();return this.expect(h.parenL),q.typeAnnotation=this.tsParseType(),this.expect(h.parenR),this.finishNode(q,"TSParenthesizedType")}tsParseNonArrayType(){switch(this.type){case h.string:case h.num:case h._true:case h._false:return this.tsParseLiteralTypeNode();case h.plusMin:if(this.value==="-"){let q=this.startNode();if(this.lookahead().type!==h.num)this.unexpected();return q.literal=this.parseMaybeUnary(),this.finishNode(q,"TSLiteralType")}break;case h._this:return this.tsParseThisTypeOrThisTypePredicate();case h._typeof:return this.tsParseTypeQuery();case h._import:return this.tsParseImportType();case h.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case h.bracketL:return this.tsParseTupleType();case h.parenL:return this.tsParseParenthesizedType();case h.backQuote:case h.dollarBraceL:return this.tsParseTemplateLiteralType();default:{let{type:q}=this;if(W(q)||q===h._void||q===h._null){let T=q===h._void?"TSVoidKeyword":q===h._null?"TSNullKeyword":ywr(this.value);if(T!==void 0&&this.lookaheadCharCode()!==46){let V=this.startNode();return this.next(),this.finishNode(V,T)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let q=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(h.bracketL))if(this.match(h.bracketR)){let T=this.startNodeAtNode(q);T.elementType=q,this.expect(h.bracketR),q=this.finishNode(T,"TSArrayType")}else{let T=this.startNodeAtNode(q);T.objectType=q,T.indexType=this.tsParseType(),this.expect(h.bracketR),q=this.finishNode(T,"TSIndexedAccessType")}return q}tsParseTypeOperatorOrHigher(){return rr(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),h.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),h.bitwiseOR)}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(h._new))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseType(){yB(this.inType);let q=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(h._extends))return q;let T=this.startNodeAtNode(q);return T.checkType=q,T.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(h.question),T.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(h.colon),T.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(T,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){if(this.next(),W(this.type))return this.next(),this.match(h.colon);return!1}tsInType(q){let T=this.inType;this.inType=!0;try{return q()}finally{this.inType=T}}tsTryParseIndexSignature(q){if(!(this.match(h.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(h.bracketL);let T=this.parseIdent();T.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(T),this.expect(h.bracketR),q.parameters=[T];let V=this.tsTryParseTypeAnnotation();if(V)q.typeAnnotation=V;return this.tsParseTypeMemberSemicolon(),this.finishNode(q,"TSIndexSignature")}tsParseNoneModifiers(q){this.tsParseModifiers({modified:q,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:di.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(q=this.tsParseNoneModifiers.bind(this)){let T=this.startNode();return q(T),T.name=this.tsParseTypeParameterName(),T.constraint=this.tsEatThenParseType(h._extends),T.default=this.tsEatThenParseType(h.eq),this.finishNode(T,"TSTypeParameter")}tsParseTypeParameters(q){let T=this.startNode();if(this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart"))this.next();else this.unexpected();let V={value:-1};if(T.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,q),!1,!0,V),T.params.length===0)this.raise(this.start,di.EmptyTypeParameters);if(V.value!==-1)this.addExtra(T,"trailingComma",V.value);return this.finishNode(T,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(q){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(q)}tsTryParse(q){let T=this.getCurLookaheadState(),V=q();if(V!==void 0&&V!==!1)return V;else{this.setLookaheadState(T);return}}tsTokenCanFollowModifier(){return(this.match(h.bracketL)||this.match(h.braceL)||this.match(h.star)||this.match(h.ellipsis)||this.match(h.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(!0),this.tsTokenCanFollowModifier()}tsParseModifier(q,T){let V=this.value;if(q.indexOf(V)!==-1&&!this.containsEsc){if(T&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return V}return}tsParseModifiersByMap({modified:q,map:T}){for(let V of Object.keys(T))q[V]=T[V]}tsParseModifiers({modified:q,allowedModifiers:T,disallowedModifiers:V,stopOnStartOfClassStaticBlock:S,errorTemplate:k=di.InvalidModifierOnTypeMember}){let er={},tr=(Z,Cr,Pr,jr)=>{if(Cr===Pr&&q[jr])this.raise(Z.column,di.InvalidModifiersOrder({orderedModifiers:[Pr,jr]}))},U=(Z,Cr,Pr,jr)=>{if(q[Pr]&&Cr===jr||q[jr]&&Cr===Pr)this.raise(Z.column,di.IncompatibleModifiers({modifiers:[Pr,jr]}))};for(;;){let Z=this.startLoc,Cr=this.tsParseModifier(T.concat(V??[]),S);if(!Cr)break;if(pB(Cr))if(q.accessibility)this.raise(this.start,di.DuplicateAccessibilityModifier());else tr(Z,Cr,Cr,"override"),tr(Z,Cr,Cr,"static"),tr(Z,Cr,Cr,"readonly"),tr(Z,Cr,Cr,"accessor"),er.accessibility=Cr,q.accessibility=Cr;else if(uwr(Cr))if(q[Cr])this.raise(this.start,di.DuplicateModifier({modifier:Cr}));else tr(Z,Cr,"in","out"),er[Cr]=Cr,q[Cr]=!0;else if(lwr(Cr))if(q[Cr])this.raise(this.start,di.DuplicateModifier({modifier:Cr}));else U(Z,Cr,"accessor","readonly"),U(Z,Cr,"accessor","static"),U(Z,Cr,"accessor","override"),er[Cr]=Cr,q[Cr]=!0;else if(Cr==="const")if(q[Cr])this.raise(this.start,di.DuplicateModifier({modifier:Cr}));else er[Cr]=Cr,q[Cr]=!0;else if(Object.hasOwnProperty.call(q,Cr))this.raise(this.start,di.DuplicateModifier({modifier:Cr}));else tr(Z,Cr,"static","readonly"),tr(Z,Cr,"static","override"),tr(Z,Cr,"override","readonly"),tr(Z,Cr,"abstract","override"),U(Z,Cr,"declare","override"),U(Z,Cr,"static","abstract"),er[Cr]=Cr,q[Cr]=!0;if(V?.includes(Cr))this.raise(this.start,k)}return er}tsParseInOutModifiers(q){this.tsParseModifiers({modified:q,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:di.InvalidModifierOnTypeParameter})}parseMaybeUnary(q,T,V,S){if(!r?.jsx&&this.tsMatchLeftRelational())return this.tsParseTypeAssertion();else return super.parseMaybeUnary(q,T,V,S)}tsParseTypeAssertion(){if(t)this.raise(this.start,di.ReservedTypeAssertion);let q=this.tryParse(()=>{let T=this.startNode(),V=this.tsTryNextParseConstantContext();return T.typeAnnotation=V||this.tsNextThenParseType(),this.expect(h.relational),T.expression=this.parseMaybeUnary(),this.finishNode(T,"TSTypeAssertion")});if(q.error)return this.tsParseTypeParameters(this.tsParseConstModifier);else return q.node}tsParseTypeArguments(){let q=this.startNode();if(q.params=this.tsInType(()=>this.tsInNoContext(()=>{return this.expect(h.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),q.params.length===0)this.raise(this.start,di.EmptyTypeArguments);return this.exprAllowed=!1,this.expect(h.relational),this.finishNode(q,"TSTypeParameterInstantiation")}tsParseHeritageClause(q){let T=this.start,V=this.tsParseDelimitedList("HeritageClauseElement",()=>{let S=this.startNode();if(S.expression=this.tsParseEntityName(),this.tsMatchLeftRelational())S.typeParameters=this.tsParseTypeArguments();return this.finishNode(S,"TSExpressionWithTypeArguments")});if(!V.length)this.raise(T,di.EmptyHeritageClauseType({token:q}));return V}tsParseTypeMemberSemicolon(){if(!this.eat(h.comma)&&!this.isLineTerminator())this.expect(h.semi)}tsTryParseAndCatch(q){let T=this.tryParse((V)=>q()||V());if(T.aborted||!T.node)return;if(T.error)this.setLookaheadState(T.failState);return T.node}tsParseSignatureMember(q,T){return this.tsFillSignature(h.colon,T),this.tsParseTypeMemberSemicolon(),this.finishNode(T,q)}tsParsePropertyOrMethodSignature(q,T){if(this.eat(h.question))q.optional=!0;let V=q;if(this.match(h.parenL)||this.tsMatchLeftRelational()){if(T)this.raise(q.start,di.ReadonlyForMethodSignature);let S=V;if(S.kind&&this.tsMatchLeftRelational())this.raise(this.start,di.AccesorCannotHaveTypeParameters);this.tsFillSignature(h.colon,S),this.tsParseTypeMemberSemicolon();let k="parameters",er="typeAnnotation";if(S.kind==="get"){if(S[k].length>0){if(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(S[k][0]))this.raise(this.start,di.AccesorCannotDeclareThisParameter)}}else if(S.kind==="set"){if(S[k].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let tr=S[k][0];if(this.isThisParam(tr))this.raise(this.start,di.AccesorCannotDeclareThisParameter);if(tr.type==="Identifier"&&tr.optional)this.raise(this.start,di.SetAccesorCannotHaveOptionalParameter);if(tr.type==="RestElement")this.raise(this.start,di.SetAccesorCannotHaveRestParameter)}if(S[er])this.raise(S[er].start,di.SetAccesorCannotHaveReturnType)}else S.kind="method";return this.finishNode(S,"TSMethodSignature")}else{let S=V;if(T)S.readonly=!0;let k=this.tsTryParseTypeAnnotation();if(k)S.typeAnnotation=k;return this.tsParseTypeMemberSemicolon(),this.finishNode(S,"TSPropertySignature")}}tsParseTypeMember(){let q=this.startNode();if(this.match(h.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",q);if(this.match(h._new)){let V=this.startNode();if(this.next(),this.match(h.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSConstructSignatureDeclaration",q);else return q.key=this.createIdentifier(V,"new"),this.tsParsePropertyOrMethodSignature(q,!1)}this.tsParseModifiers({modified:q,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});let T=this.tsTryParseIndexSignature(q);if(T)return T;if(this.parsePropertyName(q),!q.computed&&q.key.type==="Identifier"&&(q.key.name==="get"||q.key.name==="set")&&this.tsTokenCanFollowModifier())q.kind=q.key.name,this.parsePropertyName(q);return this.tsParsePropertyOrMethodSignature(q,!!q.readonly)}tsParseList(q,T){let V=[];while(!this.tsIsListTerminator(q))V.push(T());return V}tsParseObjectTypeMembers(){this.expect(h.braceL);let q=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(h.braceR),q}tsParseInterfaceDeclaration(q,T={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),T.declare)q.declare=!0;if(W(this.type))q.id=this.parseIdent(),this.checkLValSimple(q.id,Lt.BIND_TS_INTERFACE);else q.id=null,this.raise(this.start,di.MissingInterfaceName);if(q.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(h._extends))q.extends=this.tsParseHeritageClause("extends");let V=this.startNode();return V.body=this.tsParseInterfaceBody(),q.body=this.finishNode(V,"TSInterfaceBody"),this.finishNode(q,"TSInterfaceDeclaration")}tsParseInterfaceBody(){this.expect(h.braceL);let q=this.inType;this.inType=!0;let T=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=q,this.expect(h.braceR),T}tsParseAbstractDeclaration(q){if(this.match(h._class))return q.abstract=!0,this.parseClass(q,!0);else if(this.ts_isContextual(o.interface)){if(!this.hasFollowingLineBreak())return q.abstract=!0,this.tsParseInterfaceDeclaration(q)}else this.unexpected(q.start)}tsIsDeclarationStart(){return J(this.type)}tsParseExpressionStatement(q,T){switch(T.name){case"declare":{let V=this.tsTryParseDeclare(q);if(V)return V.declare=!0,V;break}case"global":if(this.match(h.braceL)){this.enterScope(sv);let V=q;return V.global=!0,V.id=T,V.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(V,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(q,T.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:q}=this,T=this.isAsyncFunction(),V=this.isLet();if(W(q)){if(T&&!this.containsEsc||V)return!1;if((q===o.type||q===o.interface)&&!this.containsEsc){let er=this.lookahead();if(W(er.type)&&!this.isContextualWithState("from",er)||er.type===h.braceL)return!1}}else if(!this.match(h._default))return!1;let S=this.nextTokenStart(),k=this.isUnparsedContextual(S,"from");if(this.input.charCodeAt(S)===44||W(this.type)&&k)return!0;if(this.match(h._default)&&k){let er=this.input.charCodeAt(this.nextTokenStartSince(S+4));return er===34||er===39}return!1}tsInAmbientContext(q){let T=this.isAmbientContext;this.isAmbientContext=!0;try{return q()}finally{this.isAmbientContext=T}}tsCheckLineTerminator(q){if(q){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(q,T=!1){if(q.id=this.parseIdent(),!T)this.checkLValSimple(q.id,Lt.BIND_TS_NAMESPACE);if(this.eat(h.dot)){let V=this.startNode();this.tsParseModuleOrNamespaceDeclaration(V,!0),q.body=V}else this.enterScope(sv),q.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(q,"TSModuleDeclaration")}checkLValSimple(q,T=Lt.BIND_NONE,V){if(q.type==="TSNonNullExpression"||q.type==="TSAsExpression")q=q.expression;return super.checkLValSimple(q,T,V)}tsParseTypeAliasDeclaration(q){return q.id=this.parseIdent(),this.checkLValSimple(q.id,Lt.BIND_TS_TYPE),q.typeAnnotation=this.tsInType(()=>{if(q.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(h.eq),this.ts_isContextual(o.interface)&&this.lookahead().type!==h.dot){let T=this.startNode();return this.next(),this.finishNode(T,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(q,"TSTypeAliasDeclaration")}tsParseDeclaration(q,T,V){switch(T){case"abstract":if(this.tsCheckLineTerminator(V)&&(this.match(h._class)||W(this.type)))return this.tsParseAbstractDeclaration(q);break;case"module":if(this.tsCheckLineTerminator(V)){if(this.match(h.string))return this.tsParseAmbientExternalModuleDeclaration(q);else if(W(this.type))return this.tsParseModuleOrNamespaceDeclaration(q)}break;case"namespace":if(this.tsCheckLineTerminator(V)&&W(this.type))return this.tsParseModuleOrNamespaceDeclaration(q);break;case"type":if(this.tsCheckLineTerminator(V)&&W(this.type))return this.tsParseTypeAliasDeclaration(q);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(q,T){q.isExport=T||!1,q.id=this.parseIdent(),this.checkLValSimple(q.id,Lt.BIND_LEXICAL),super.expect(h.eq);let V=this.tsParseModuleReference();if(q.importKind==="type"&&V.type!=="TSExternalModuleReference")this.raise(V.start,di.ImportAliasHasImportType);return q.moduleReference=V,super.semicolon(),this.finishNode(q,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:q}=this;if(W(q)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((q===o.type||q===o.interface)&&!this.containsEsc){let S=this.lookahead();if(W(S.type)&&!this.isContextualWithState("from",S)||S.type===h.braceL)return!1}}else if(!this.match(h._default))return!1;let T=this.nextTokenStart(),V=this.isUnparsedContextual(T,"from");if(this.input.charCodeAt(T)===44||W(this.type)&&V)return!0;if(this.match(h._default)&&V){let S=this.input.charCodeAt(this.nextTokenStartSince(T+4));return S===34||S===39}return!1}parseTemplate({isTagged:q=!1}={}){let T=this.startNode();this.next(),T.expressions=[];let V=this.parseTemplateElement({isTagged:q});T.quasis=[V];while(!V.tail){if(this.type===h.eof)this.raise(this.pos,"Unterminated template literal");this.expect(h.dollarBraceL),T.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(h.braceR),T.quasis.push(V=this.parseTemplateElement({isTagged:q}))}return this.next(),this.finishNode(T,"TemplateLiteral")}parseFunction(q,T,V,S,k){if(this.initFunction(q),this.ecmaVersion>=9||this.ecmaVersion>=6&&!S){if(this.type===h.star&&T&vB)this.unexpected();q.generator=this.eat(h.star)}if(this.ecmaVersion>=8)q.async=!!S;if(T&Sd)q.id=T&fwr&&this.type!==h.name?null:this.parseIdent();let er=this.yieldPos,tr=this.awaitPos,U=this.awaitIdentPos,Z=this.maybeInArrowParameters;if(this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(aP(q.async,q.generator)),!(T&Sd))q.id=this.type===h.name?this.parseIdent():null;this.parseFunctionParams(q);let Cr=T&Sd;if(this.parseFunctionBody(q,V,!1,k,{isFunctionDeclaration:Cr}),this.yieldPos=er,this.awaitPos=tr,this.awaitIdentPos=U,T&Sd&&q.id&&!(T&vB))if(q.body)this.checkLValSimple(q.id,this.strict||q.generator||q.async?this.treatFunctionsAsVar?Lt.BIND_VAR:Lt.BIND_LEXICAL:Lt.BIND_FUNCTION);else this.checkLValSimple(q.id,Lt.BIND_NONE);return this.maybeInArrowParameters=Z,this.finishNode(q,Cr?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(q,T=!1,V=!1,S=!1,k){if(this.match(h.colon))q.returnType=this.tsParseTypeOrTypePredicateAnnotation(h.colon);let er=k?.isFunctionDeclaration?"TSDeclareFunction":k?.isClassMethod?"TSDeclareMethod":void 0;if(er&&!this.match(h.braceL)&&this.isLineTerminator())return this.exitScope(),this.finishNode(q,er);if(er==="TSDeclareFunction"&&this.isAmbientContext){if(this.raise(q.start,di.DeclareFunctionHasImplementation),q.declare)return super.parseFunctionBody(q,T,V,!1),this.finishNode(q,er)}return super.parseFunctionBody(q,T,V,S),q}parseNew(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");let q=this.startNode(),T=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(h.dot)){q.meta=T;let tr=this.containsEsc;if(q.property=this.parseIdent(!0),q.property.name!=="target")this.raiseRecoverable(q.property.start,"The only valid meta property for new is 'new.target'");if(tr)this.raiseRecoverable(q.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(q.start,"'new.target' can only be used in functions and class static block");return this.finishNode(q,"MetaProperty")}let V=this.start,S=this.startLoc,k=this.type===h._import;if(q.callee=this.parseSubscripts(this.parseExprAtom(),V,S,!0,!1),k&&q.callee.type==="ImportExpression")this.raise(V,"Cannot use new with import()");let{callee:er}=q;if(er.type==="TSInstantiationExpression"&&!er.extra?.parenthesized)q.typeArguments=er.typeArguments,q.callee=er.expression;if(this.eat(h.parenL))q.arguments=this.parseExprList(h.parenR,this.ecmaVersion>=8,!1);else q.arguments=[];return this.finishNode(q,"NewExpression")}parseExprOp(q,T,V,S,k){if(h._in.binop>S&&!this.hasPrecedingLineBreak()){let er;if(this.isContextual("as"))er="TSAsExpression";if(this.isContextual("satisfies"))er="TSSatisfiesExpression";if(er){let tr=this.startNodeAt(T,V);tr.expression=q;let U=this.tsTryNextParseConstantContext();if(U)tr.typeAnnotation=U;else tr.typeAnnotation=this.tsNextThenParseType();return this.finishNode(tr,er),this.reScan_lt_gt(),this.parseExprOp(tr,T,V,S,k)}}return super.parseExprOp(q,T,V,S,k)}parseImportSpecifiers(){let q=[],T=!0;if(u.tokenIsIdentifier(this.type)){if(q.push(this.parseImportDefaultSpecifier()),!this.eat(h.comma))return q}if(this.type===h.star)return q.push(this.parseImportNamespaceSpecifier()),q;this.expect(h.braceL);while(!this.eat(h.braceR)){if(!T){if(this.expect(h.comma),this.afterTrailingComma(h.braceR))break}else T=!1;q.push(this.parseImportSpecifier())}return q}parseImport(q){let T=this.lookahead();if(q.importKind="value",this.importOrExportOuterKind="value",W(T.type)||this.match(h.star)||this.match(h.braceL)){let V=this.lookahead(2);if(V.type!==h.comma&&!this.isContextualWithState("from",V)&&V.type!==h.eq&&this.ts_eatContextualWithState("type",1,T))this.importOrExportOuterKind="type",q.importKind="type",T=this.lookahead(),V=this.lookahead(2);if(W(T.type)&&V.type===h.eq){this.next();let S=this.tsParseImportEqualsDeclaration(q);return this.importOrExportOuterKind="value",S}}if(this.next(),this.type===h.string)q.specifiers=[],q.source=this.parseExprAtom();else q.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),q.source=this.type===h.string?this.parseExprAtom():this.unexpected();if(this.parseMaybeImportAttributes(q),this.semicolon(),this.finishNode(q,"ImportDeclaration"),this.importOrExportOuterKind="value",q.importKind==="type"&&q.specifiers.length>1&&q.specifiers[0].type==="ImportDefaultSpecifier")this.raise(q.start,di.TypeImportCannotSpecifyDefaultAndNamed);return q}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let q=this.startNode();return this.next(),q.abstract=!0,this.parseClass(q,!0)}if(this.match(o.interface)){let q=this.tsParseInterfaceDeclaration(this.startNode());if(q)return q}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(q,T){if(this.ecmaVersion>=11)if(this.eatContextual("as"))q.exported=this.parseModuleExportName(),this.checkExport(T,q.exported,this.lastTokStart);else q.exported=null;if(this.expectContextual("from"),this.type!==h.string)this.unexpected();return q.source=this.parseExprAtom(),this.parseMaybeImportAttributes(q),this.semicolon(),this.finishNode(q,"ExportAllDeclaration")}parseDynamicImport(q){if(this.next(),q.source=this.parseMaybeAssign(),this.eat(h.comma)){let T=this.parseExpression();q.arguments=[T]}if(!this.eat(h.parenR)){let T=this.start;if(this.eat(h.comma)&&this.eat(h.parenR))this.raiseRecoverable(T,"Trailing comma is not allowed in import()");else this.unexpected(T)}return this.finishNode(q,"ImportExpression")}parseExport(q,T){let V=this.lookahead();if(this.ts_eatWithState(h._import,2,V)){if(this.ts_isContextual(o.type)&&this.lookaheadCharCode()!==61)q.importKind="type",this.importOrExportOuterKind="type",this.next();else q.importKind="value",this.importOrExportOuterKind="value";let S=this.tsParseImportEqualsDeclaration(q,!0);return this.importOrExportOuterKind=void 0,S}else if(this.ts_eatWithState(h.eq,2,V)){let S=q;return S.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(S,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,V)){let S=q;return this.expectContextual("namespace"),S.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(S,"TSNamespaceExportDeclaration")}else{let S=this.lookahead(2).type;if(this.ts_isContextualWithState(V,o.type)&&(S===h.braceL||S===h.star))this.next(),this.importOrExportOuterKind="type",q.exportKind="type";else this.importOrExportOuterKind="value",q.exportKind="value";if(this.next(),this.eat(h.star))return this.parseExportAllDeclaration(q,T);if(this.eat(h._default))return this.checkExport(T,"default",this.lastTokStart),q.declaration=this.parseExportDefaultDeclaration(),this.finishNode(q,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(q.declaration=this.parseExportDeclaration(q),q.declaration.type==="VariableDeclaration")this.checkVariableExport(T,q.declaration.declarations);else this.checkExport(T,q.declaration.id,q.declaration.id.start);q.specifiers=[],q.source=null}else{if(q.declaration=null,q.specifiers=this.parseExportSpecifiers(T),this.eatContextual("from")){if(this.type!==h.string)this.unexpected();q.source=this.parseExprAtom(),this.parseMaybeImportAttributes(q)}else{for(let k of q.specifiers)if(this.checkUnreserved(k.local),this.checkLocalExport(k.local),k.local.type==="Literal")this.raise(k.local.start,"A string literal cannot be used as an exported binding without `from`.");q.source=null}this.semicolon()}return this.finishNode(q,"ExportNamedDeclaration")}}checkExport(q,T,V){if(!q)return;if(typeof T!=="string")T=T.type==="Identifier"?T.name:T.value;q[T]=!0}parseMaybeDefault(q,T,V){let S=super.parseMaybeDefault(q,T,V);if(S.type==="AssignmentPattern"&&S.typeAnnotation&&S.right.start<S.typeAnnotation.start)this.raise(S.typeAnnotation.start,di.TypeAnnotationAfterAssign);return S}typeCastToParameter(q){return q.expression.typeAnnotation=q.typeAnnotation,this.resetEndLocation(q.expression,q.typeAnnotation.end,q.typeAnnotation.loc?.end),q.expression}toAssignableList(q,T){if(!q)q=[];for(let V=0;V<q.length;V++){let S=q[V];if(S?.type==="TSTypeCastExpression")q[V]=this.typeCastToParameter(S)}return super.toAssignableList(q,T)}reportReservedArrowTypeParam(q){if(q.params.length===1&&!q.extra?.trailingComma&&t)this.raise(q.start,di.ReservedArrowTypeParam)}parseExprAtom(q,T,V){if(this.type===o.jsxText)return this.jsx_parseText();else if(this.type===o.jsxTagStart)return this.jsx_parseElement();else if(this.type===o.at)return this.parseDecorators(),this.parseExprAtom();else if(W(this.type)){let S=this.potentialArrowAt===this.start,k=this.start,er=this.startLoc,tr=this.containsEsc,U=this.parseIdent(!1);if(this.ecmaVersion>=8&&!tr&&U.name==="async"&&!this.canInsertSemicolon()&&this.eat(h._function))return this.overrideContext(M.f_expr),this.parseFunction(this.startNodeAt(k,er),0,!1,!0,T);if(S&&!this.canInsertSemicolon()){if(this.eat(h.arrow))return this.parseArrowExpression(this.startNodeAt(k,er),[U],!1,T);if(this.ecmaVersion>=8&&U.name==="async"&&this.type===h.name&&!tr&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(U=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(h.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(k,er),[U],!0,T)}}return U}else return super.parseExprAtom(q,T,V)}parseExprAtomDefault(){if(W(this.type)){let q=this.potentialArrowAt===this.start,T=this.containsEsc,V=this.parseIdent();if(!T&&V.name==="async"&&!this.canInsertSemicolon()){let{type:S}=this;if(S===h._function)return this.next(),this.parseFunction(this.startNodeAtNode(V),void 0,!0,!0);else if(W(S))if(this.lookaheadCharCode()===61){let k=this.parseIdent(!1);if(this.canInsertSemicolon()||!this.eat(h.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAtNode(V),[k],!0)}else return V}if(q&&this.match(h.arrow)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(V),[V],!1);return V}else this.unexpected()}parseIdentNode(){let q=this.startNode();if(sr(this.type)&&!((this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)))q.name=this.value;else return super.parseIdentNode();return q}parseVarStatement(q,T,V=!1){let{isAmbientContext:S}=this;this.next(),super.parseVar(q,!1,T,V||S),this.semicolon();let k=this.finishNode(q,"VariableDeclaration");if(!S)return k;for(let{id:er,init:tr}of k.declarations){if(!tr)continue;if(T!=="const"||!!er.typeAnnotation)this.raise(tr.start,di.InitializerNotAllowedInAmbientContext);else if(tr.type!=="StringLiteral"&&tr.type!=="BooleanLiteral"&&tr.type!=="NumericLiteral"&&tr.type!=="BigIntLiteral"&&(tr.type!=="TemplateLiteral"||tr.expressions.length>0)&&!hwr(tr))this.raise(tr.start,di.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference)}return k}parseStatement(q,T,V){if(this.match(o.at))this.parseDecorators(!0);if(this.match(h._const)&&this.isLookaheadContextual("enum")){let S=this.startNode();return this.expect(h._const),this.tsParseEnumDeclaration(S,{const:!0})}if(this.ts_isContextual(o.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(o.interface)){let S=this.tsParseInterfaceDeclaration(this.startNode());if(S)return S}return super.parseStatement(q,T,V)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(q){if(this.eat(h.question))q.optional=!0;if(q.readonly&&this.match(h.parenL))this.raise(q.start,di.ClassMethodHasReadonly);if(q.declare&&this.match(h.parenL))this.raise(q.start,di.ClassMethodHasDeclare)}parseExpressionStatement(q,T){return(T.type==="Identifier"?this.tsParseExpressionStatement(q,T):void 0)||super.parseExpressionStatement(q,T)}shouldParseExportStatement(){if(this.tsIsDeclarationStart())return!0;if(this.match(o.at))return!0;return super.shouldParseExportStatement()}parseConditional(q,T,V,S,k){if(this.eat(h.question)){let er=this.startNodeAt(T,V);return er.test=q,er.consequent=this.parseMaybeAssign(),this.expect(h.colon),er.alternate=this.parseMaybeAssign(S),this.finishNode(er,"ConditionalExpression")}return q}parseMaybeConditional(q,T){let V=this.start,S=this.startLoc,k=this.parseExprOps(q,T);if(this.checkExpressionErrors(T))return k;if(!this.maybeInArrowParameters||!this.match(h.question))return this.parseConditional(k,V,S,q,T);let er=this.tryParse(()=>this.parseConditional(k,V,S,q,T));if(!er.node){if(er.error)this.setOptionalParametersError(T,er.error);return k}if(er.error)this.setLookaheadState(er.failState);return er.node}parseParenItem(q){let T=this.start,V=this.startLoc;if(q=super.parseParenItem(q),this.eat(h.question))q.optional=!0,this.resetEndLocation(q);if(this.match(h.colon)){let S=this.startNodeAt(T,V);return S.expression=q,S.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(S,"TSTypeCastExpression")}return q}parseExportDeclaration(q){if(!this.isAmbientContext&&this.ts_isContextual(o.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(q));let T=this.start,V=this.startLoc,S=this.eatContextual("declare");if(S&&(this.ts_isContextual(o.declare)||!this.shouldParseExportStatement()))this.raise(this.start,di.ExpectedAmbientAfterExportDeclare);let er=W(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);if(!er)return null;if(er.type==="TSInterfaceDeclaration"||er.type==="TSTypeAliasDeclaration"||S)q.exportKind="type";if(S)this.resetStartLocation(er,T,V),er.declare=!0;return er}parseClassId(q,T){if(!T&&this.isContextual("implements"))return;super.parseClassId(q,T);let V=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));if(V)q.typeParameters=V}parseClassPropertyAnnotation(q){if(!q.optional){if(this.value==="!"&&this.eat(h.prefix))q.definite=!0;else if(this.eat(h.question))q.optional=!0}let T=this.tsTryParseTypeAnnotation();if(T)q.typeAnnotation=T}parseClassField(q){if(q.key.type==="PrivateIdentifier"){if(q.abstract)this.raise(q.start,di.PrivateElementHasAbstract);if(q.accessibility)this.raise(q.start,di.PrivateElementHasAccessibility({modifier:q.accessibility}));this.parseClassPropertyAnnotation(q)}else{if(this.parseClassPropertyAnnotation(q),this.isAmbientContext&&!(q.readonly&&!q.typeAnnotation)&&this.match(h.eq))this.raise(this.start,di.DeclareClassFieldHasInitializer);if(q.abstract&&this.match(h.eq)){let{key:V}=q;this.raise(this.start,di.AbstractPropertyHasInitializer({propertyName:V.type==="Identifier"&&!q.computed?V.name:`[${this.input.slice(V.start,V.end)}]`}))}}return super.parseClassField(q)}parseClassMethod(q,T,V,S){let k=q.kind==="constructor",er=q.key.type==="PrivateIdentifier",tr=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(er){if(tr)q.typeParameters=tr;if(q.accessibility)this.raise(q.start,di.PrivateMethodsHasAccessibility({modifier:q.accessibility}))}else if(tr&&k)this.raise(tr.start,di.ConstructorHasTypeParameters);let{declare:U=!1,kind:Z}=q;if(U&&(Z==="get"||Z==="set"))this.raise(q.start,di.DeclareAccessor({kind:Z}));if(tr)q.typeParameters=tr;let Cr=q.key;if(q.kind==="constructor"){if(T)this.raise(Cr.start,"Constructor can't be a generator");if(V)this.raise(Cr.start,"Constructor can't be an async method")}else if(q.static&&cB(q,"prototype"))this.raise(Cr.start,"Classes may not have a static property named prototype");let Pr=q.value=this.parseMethod(T,V,S,!0,q);if(q.kind==="get"&&Pr.params.length!==0)this.raiseRecoverable(Pr.start,"getter should have no params");if(q.kind==="set"&&Pr.params.length!==1)this.raiseRecoverable(Pr.start,"setter should have exactly one param");if(q.kind==="set"&&Pr.params[0].type==="RestElement")this.raiseRecoverable(Pr.params[0].start,"Setter cannot use rest params");return this.finishNode(q,"MethodDefinition")}isClassMethod(){return this.match(h.relational)}parseClassElement(q){if(this.eat(h.semi))return null;let T=this.startNode(),V="",S=!1,k=!1,er="method",tr=!1,U=["declare","private","public","protected","accessor","override","abstract","readonly","static"],Z=this.tsParseModifiers({modified:T,allowedModifiers:U,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:di.InvalidModifierOnTypeParameterPositions});tr=Boolean(Z.static);let Cr=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(T,U))this.raise(this.start,di.StaticBlockCannotHaveModifier);if(this.ecmaVersion>=13)return super.parseClassStaticBlock(T),T}else{let Pr=this.tsTryParseIndexSignature(T);if(Pr){if(T.abstract)this.raise(T.start,di.IndexSignatureHasAbstract);if(T.accessibility)this.raise(T.start,di.IndexSignatureHasAccessibility({modifier:T.accessibility}));if(T.declare)this.raise(T.start,di.IndexSignatureHasDeclare);if(T.override)this.raise(T.start,di.IndexSignatureHasOverride);return Pr}if(!this.inAbstractClass&&T.abstract)this.raise(T.start,di.NonAbstractClassHasAbstractMethod);if(T.override){if(!q)this.raise(T.start,di.OverrideNotInSubClass)}if(T.static=tr,tr){if(!(this.isClassElementNameStart()||this.type===h.star))V="static"}if(!V&&this.ecmaVersion>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===h.star)&&!this.canInsertSemicolon())k=!0;else V="async";if(!V&&(this.ecmaVersion>=9||!k)&&this.eat(h.star))S=!0;if(!V&&!k&&!S){let jr=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())er=jr;else V=jr}if(V)T.computed=!1,T.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),T.key.name=V,this.finishNode(T.key,"Identifier");else this.parseClassElementName(T);if(this.parsePostMemberNameModifiers(T),this.isClassMethod()||this.ecmaVersion<13||this.type===h.parenL||er!=="method"||S||k){let jr=!T.static&&cB(T,"constructor"),zr=jr&&q;if(jr&&er!=="method")this.raise(T.key.start,"Constructor can't have get/set modifier");T.kind=jr?"constructor":er,this.parseClassMethod(T,S,k,zr)}else this.parseClassField(T);return T}};if(T.declare)this.tsInAmbientContext(Cr);else Cr();return T}isClassElementNameStart(){if(this.tsIsIdentifier())return!0;return super.isClassElementNameStart()}parseClassSuper(q){if(super.parseClassSuper(q),q.superClass&&(this.tsMatchLeftRelational()||this.match(h.bitShift)))q.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual("implements"))q.implements=this.tsParseHeritageClause("implements")}parseFunctionParams(q){let T=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(T)q.typeParameters=T;super.parseFunctionParams(q)}parseVarId(q,T){if(super.parseVarId(q,T),q.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(h.prefix))q.definite=!0;let V=this.tsTryParseTypeAnnotation();if(V)q.id.typeAnnotation=V,this.resetEndLocation(q.id)}parseArrowExpression(q,T,V,S){if(this.match(h.colon))q.returnType=this.tsParseTypeAnnotation();let k=this.yieldPos,er=this.awaitPos,tr=this.awaitIdentPos;this.enterScope(aP(V,!1)|Lt.SCOPE_ARROW),this.initFunction(q);let U=this.maybeInArrowParameters;if(this.ecmaVersion>=8)q.async=!!V;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,q.params=this.toAssignableList(T,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(q,!0,!1,S),this.yieldPos=k,this.awaitPos=er,this.awaitIdentPos=tr,this.maybeInArrowParameters=U,this.finishNode(q,"ArrowFunctionExpression")}parseMaybeAssignOrigin(q,T,V){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(q);else this.exprAllowed=!1;let S=!1,k=-1,er=-1,tr=-1;if(T)k=T.parenthesizedAssign,er=T.trailingComma,tr=T.doubleProto,T.parenthesizedAssign=T.trailingComma=-1;else T=new av,S=!0;let U=this.start,Z=this.startLoc;if(this.type===h.parenL||W(this.type))this.potentialArrowAt=this.start,this.potentialArrowInForAwait=q==="await";let Cr=this.parseMaybeConditional(q,T);if(V)Cr=V.call(this,Cr,U,Z);if(this.type.isAssign){let Pr=this.startNodeAt(U,Z);if(Pr.operator=this.value,this.type===h.eq)Cr=this.toAssignable(Cr,!0,T);if(!S)T.parenthesizedAssign=T.trailingComma=T.doubleProto=-1;if(T.shorthandAssign>=Cr.start)T.shorthandAssign=-1;if(!this.maybeInArrowParameters)if(this.type===h.eq)this.checkLValPattern(Cr);else this.checkLValSimple(Cr);if(Pr.left=Cr,this.next(),Pr.right=this.parseMaybeAssign(q),tr>-1)T.doubleProto=tr;return this.finishNode(Pr,"AssignmentExpression")}else if(S)this.checkExpressionErrors(T,!0);if(k>-1)T.parenthesizedAssign=k;if(er>-1)T.trailingComma=er;return Cr}parseMaybeAssign(q,T,V){let S,k,er;if(r?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(S=this.cloneCurLookaheadState(),k=this.tryParse(()=>this.parseMaybeAssignOrigin(q,T,V),S),!k.error)return k.node;let Z=this.context,Cr=Z[Z.length-1],Pr=Z[Z.length-2];if(Cr===u.tokContexts.tc_oTag&&Pr===u.tokContexts.tc_expr)Z.pop(),Z.pop();else if(Cr===u.tokContexts.tc_oTag||Cr===u.tokContexts.tc_expr)Z.pop()}if(!k?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(q,T,V);if(!S||this.compareLookaheadState(S,this.getCurLookaheadState()))S=this.cloneCurLookaheadState();let tr,U=this.tryParse((Z)=>{tr=this.tsParseTypeParameters(this.tsParseConstModifier);let Cr=this.parseMaybeAssignOrigin(q,T,V);if(Cr.type!=="ArrowFunctionExpression"||Cr.extra?.parenthesized)Z();if(tr?.params.length!==0)this.resetStartLocationFromNode(Cr,tr);return Cr.typeParameters=tr,Cr},S);if(!U.error&&!U.aborted){if(tr)this.reportReservedArrowTypeParam(tr);return U.node}if(!k){if(yB(!0),er=this.tryParse(()=>this.parseMaybeAssignOrigin(q,T,V),S),!er.error)return er.node}if(k?.node)return this.setLookaheadState(k.failState),k.node;if(U.node){if(this.setLookaheadState(U.failState),tr)this.reportReservedArrowTypeParam(tr);return U.node}if(er?.node)return this.setLookaheadState(er.failState),er.node;if(k?.thrown)throw k.error;if(U.thrown)throw U.error;if(er?.thrown)throw er.error;throw k?.error||U.error||er?.error}parseAssignableListItem(q){let T=[];while(this.match(o.at))T.push(this.parseDecorator());let V=this.start,S=this.startLoc,k,er=!1,tr=!1;if(q!==void 0){let Cr={};if(this.tsParseModifiers({modified:Cr,allowedModifiers:["public","private","protected","override","readonly"]}),k=Cr.accessibility,tr=Cr.override,er=Cr.readonly,q===!1&&(k||er||tr))this.raise(S.column,di.UnexpectedParameterModifier)}let U=this.parseMaybeDefault(V,S);this.parseBindingListItem(U);let Z=this.parseMaybeDefault(U.start,U.loc.start,U);if(T.length)Z.decorators=T;if(k||er||tr){let Cr=this.startNodeAt(V,S);if(k)Cr.accessibility=k;if(er)Cr.readonly=er;if(tr)Cr.override=tr;if(Z.type!=="Identifier"&&Z.type!=="AssignmentPattern")this.raise(Cr.start,di.UnsupportedParameterPropertyKind);return Cr.parameter=Z,this.finishNode(Cr,"TSParameterProperty")}return Z}checkLValInnerPattern(q,T=Lt.BIND_NONE,V){switch(q.type){case"TSParameterProperty":this.checkLValInnerPattern(q.parameter,T,V);break;default:{super.checkLValInnerPattern(q,T,V);break}}}parseBindingListItem(q){if(this.eat(h.question)){if(q.type!=="Identifier"&&!this.isAmbientContext&&!this.inType)this.raise(q.start,di.PatternIsOptional);q.optional=!0}let T=this.tsTryParseTypeAnnotation();if(T)q.typeAnnotation=T;return this.resetEndLocation(q),q}isAssignable(q,T){switch(q.type){case"TSTypeCastExpression":return this.isAssignable(q.expression,T);case"TSParameterProperty":return!0;case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let V=q.properties.length-1;return q.properties.every((S,k)=>{return S.type!=="ObjectMethod"&&(k===V||S.type!=="SpreadElement")&&this.isAssignable(S)})}case"Property":case"ObjectProperty":return this.isAssignable(q.value);case"SpreadElement":return this.isAssignable(q.argument);case"ArrayExpression":return q.elements.every((V)=>V===null||this.isAssignable(V));case"AssignmentExpression":return q.operator==="=";case"ParenthesizedExpression":return this.isAssignable(q.expression);case"MemberExpression":case"OptionalMemberExpression":return!T;default:return!1}}toAssignable(q,T=!1,V=new av){switch(q.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(q,T,V);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(T);else this.raise(q.start,di.UnexpectedTypeCastInParameter);return this.toAssignable(q.expression,T,V);case"MemberExpression":break;case"AssignmentExpression":if(!T&&q.left.type==="TSTypeCastExpression")q.left=this.typeCastToParameter(q.left);return super.toAssignable(q,T,V);case"TSTypeCastExpression":return this.typeCastToParameter(q);default:return super.toAssignable(q,T,V)}return q}toAssignableParenthesizedExpression(q,T,V){switch(q.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(q.expression,T,V);default:return super.toAssignable(q,T,V)}}parseBindingAtom(){switch(this.type){case h._this:return this.parseIdent(!0);default:return super.parseBindingAtom()}}shouldParseArrow(q){let T;if(this.match(h.colon))T=q.every((V)=>this.isAssignable(V,!0));else T=!this.canInsertSemicolon();if(T){if(this.match(h.colon)){let V=this.tryParse((S)=>{let k=this.tsParseTypeOrTypePredicateAnnotation(h.colon);if(this.canInsertSemicolon()||!this.match(h.arrow))S();return k});if(V.aborted)return this.shouldParseArrowReturnType=void 0,!1;if(!V.thrown){if(V.error)this.setLookaheadState(V.failState);this.shouldParseArrowReturnType=V.node}}if(!this.match(h.arrow))return this.shouldParseArrowReturnType=void 0,!1;return!0}return this.shouldParseArrowReturnType=void 0,T}parseParenArrowList(q,T,V,S){let k=this.startNodeAt(q,T);return k.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(k,V,!1,S)}parseParenAndDistinguishExpression(q,T){let V=this.start,S=this.startLoc,k,er=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let tr=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let U=this.start,Z=this.startLoc,Cr=[],Pr=!0,jr=!1,zr=new av,ri=this.yieldPos,$i=this.awaitPos,ji;this.yieldPos=0,this.awaitPos=0;while(this.type!==h.parenR)if(Pr?Pr=!1:this.expect(h.comma),er&&this.afterTrailingComma(h.parenR,!0)){jr=!0;break}else if(this.type===h.ellipsis){if(ji=this.start,Cr.push(this.parseParenItem(this.parseRestBinding())),this.type===h.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else Cr.push(this.parseMaybeAssign(T,zr,this.parseParenItem));let zi=this.lastTokEnd,Yr=this.lastTokEndLoc;if(this.expect(h.parenR),this.maybeInArrowParameters=tr,q&&this.shouldParseArrow(Cr)&&this.eat(h.arrow))return this.checkPatternErrors(zr,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=ri,this.awaitPos=$i,this.parseParenArrowList(V,S,Cr,T);if(!Cr.length||jr)this.unexpected(this.lastTokStart);if(ji)this.unexpected(ji);if(this.checkExpressionErrors(zr,!0),this.yieldPos=ri||this.yieldPos,this.awaitPos=$i||this.awaitPos,Cr.length>1)k=this.startNodeAt(U,Z),k.expressions=Cr,this.finishNodeAt(k,"SequenceExpression",zi,Yr);else k=Cr[0]}else k=this.parseParenExpression();if(this.options.preserveParens){let tr=this.startNodeAt(V,S);return tr.expression=k,this.finishNode(tr,"ParenthesizedExpression")}else return k}parseTaggedTemplateExpression(q,T,V,S){let k=this.startNodeAt(T,V);if(k.tag=q,k.quasi=this.parseTemplate({isTagged:!0}),S)this.raise(T,"Tagged Template Literals are not allowed in optionalChain.");return this.finishNode(k,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(h.colon)){let q=this.tryParse((T)=>{let V=this.tsParseTypeOrTypePredicateAnnotation(h.colon);if(this.canInsertSemicolon()||!this.match(h.arrow))T();return V});if(q.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!q.thrown){if(q.error)this.setLookaheadState(q.failState);return this.shouldParseAsyncArrowReturnType=q.node,!this.canInsertSemicolon()&&this.eat(h.arrow)}}else return!this.canInsertSemicolon()&&this.eat(h.arrow)}parseSubscriptAsyncArrow(q,T,V,S){let k=this.startNodeAt(q,T);return k.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(k,V,!0,S)}parseExprList(q,T,V,S){let k=[],er=!0;while(!this.eat(q)){if(!er){if(this.expect(h.comma),T&&this.afterTrailingComma(q))break}else er=!1;let tr;if(V&&this.type===h.comma)tr=null;else if(this.type===h.ellipsis){if(tr=this.parseSpread(S),this.maybeInArrowParameters&&this.match(h.colon))tr.typeAnnotation=this.tsParseTypeAnnotation();if(S&&this.type===h.comma&&S.trailingComma<0)S.trailingComma=this.start}else tr=this.parseMaybeAssign(!1,S,this.parseParenItem);k.push(tr)}return k}parseSubscript(q,T,V,S,k,er,tr){let U=er;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(h.prefix)){this.exprAllowed=!1,this.next();let zr=this.startNodeAt(T,V);return zr.expression=q,q=this.finishNode(zr,"TSNonNullExpression"),q}let Z=!1;if(this.match(h.questionDot)&&this.lookaheadCharCode()===60){if(S)return q;q.optional=!0,U=Z=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(h.bitShift)){let zr,ri=this.tsTryParseAndCatch(()=>{if(!S&&this.atPossibleAsyncArrow(q)){let Yr=this.tsTryParseGenericAsyncArrowFunction(T,V,tr);if(Yr)return q=Yr,q}let $i=this.tsParseTypeArgumentsInExpression();if(!$i)return q;if(Z&&!this.match(h.parenL))return zr=this.curPosition(),q;if(H(this.type)||this.type===h.backQuote){let Yr=this.parseTaggedTemplateExpression(q,T,V,U);return Yr.typeArguments=$i,Yr}if(!S&&this.eat(h.parenL)){let Yr=new av,Vr=this.startNodeAt(T,V);if(Vr.callee=q,Vr.arguments=this.parseExprList(h.parenR,this.ecmaVersion>=8,!1,Yr),this.tsCheckForInvalidTypeCasts(Vr.arguments),Vr.typeArguments=$i,U)Vr.optional=Z;return this.checkExpressionErrors(Yr,!0),q=this.finishNode(Vr,"CallExpression"),q}let ji=this.type;if(this.tsMatchRightRelational()||ji===h.bitShift||ji!==h.parenL&&nwr(ji)&&!this.hasPrecedingLineBreak())return;let zi=this.startNodeAt(T,V);return zi.expression=q,zi.typeArguments=$i,this.finishNode(zi,"TSInstantiationExpression")});if(zr)this.unexpected(zr);if(ri){if(ri.type==="TSInstantiationExpression"&&(this.match(h.dot)||this.match(h.questionDot)&&this.lookaheadCharCode()!==40))this.raise(this.start,di.InvalidPropertyAccessAfterInstantiationExpression);return q=ri,q}}let Cr=this.ecmaVersion>=11,Pr=Cr&&this.eat(h.questionDot);if(S&&Pr)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let jr=this.eat(h.bracketL);if(jr||Pr&&this.type!==h.parenL&&this.type!==h.backQuote||this.eat(h.dot)){let zr=this.startNodeAt(T,V);if(zr.object=q,jr)zr.property=this.parseExpression(),this.expect(h.bracketR);else if(this.type===h.privateId&&q.type!=="Super")zr.property=this.parsePrivateIdent();else zr.property=this.parseIdent(this.options.allowReserved!=="never");if(zr.computed=!!jr,Cr)zr.optional=Pr;q=this.finishNode(zr,"MemberExpression")}else if(!S&&this.eat(h.parenL)){let zr=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let ri=new av,$i=this.yieldPos,ji=this.awaitPos,zi=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let Yr=this.parseExprList(h.parenR,this.ecmaVersion>=8,!1,ri);if(k&&!Pr&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(ri,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");this.yieldPos=$i,this.awaitPos=ji,this.awaitIdentPos=zi,q=this.parseSubscriptAsyncArrow(T,V,Yr,tr)}else{this.checkExpressionErrors(ri,!0),this.yieldPos=$i||this.yieldPos,this.awaitPos=ji||this.awaitPos,this.awaitIdentPos=zi||this.awaitIdentPos;let Vr=this.startNodeAt(T,V);if(Vr.callee=q,Vr.arguments=Yr,Cr)Vr.optional=Pr;q=this.finishNode(Vr,"CallExpression")}this.maybeInArrowParameters=zr}else if(this.type===h.backQuote){if(Pr||U)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let zr=this.startNodeAt(T,V);zr.tag=q,zr.quasi=this.parseTemplate({isTagged:!0}),q=this.finishNode(zr,"TaggedTemplateExpression")}return q}parseGetterSetter(q){q.kind=q.key.name,this.parsePropertyName(q);let T=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(q.value=this.parseMethod(!1),T)q.value.typeParameters=T;let V=q.kind==="get"?0:1,S=q.value.params[0];if(V=S&&this.isThisParam(S)?V+1:V,q.value.params.length!==V){let er=q.value.start;if(q.kind==="get")this.raiseRecoverable(er,"getter should have no params");else this.raiseRecoverable(er,"setter should have exactly one param")}else if(q.kind==="set"&&q.value.params[0].type==="RestElement")this.raiseRecoverable(q.value.params[0].start,"Setter cannot use rest params")}parsePropertyValue(q,T,V,S,k,er,tr,U){if(this.tsMatchLeftRelational()){if(T)this.unexpected();q.kind="init",q.method=!0;let Z=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(q.value=this.parseMethod(V,S),Z)q.value.typeParameters=Z;return}return super.parsePropertyValue(q,T,V,S,k,er,tr,U)}parseProperty(q,T){if(!q){let V=[];if(this.match(o.at))while(this.match(o.at))V.push(this.parseDecorator());let S=super.parseProperty(q,T);if(S.type==="SpreadElement"){if(V.length)this.raise(S.start,Td.SpreadElementDecorator)}if(V.length)S.decorators=V,V=[];return S}return super.parseProperty(q,T)}parseCatchClauseParam(){let q=this.parseBindingAtom(),T=q.type==="Identifier";this.enterScope(T?Lt.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(q,T?Lt.BIND_SIMPLE_CATCH:Lt.BIND_LEXICAL);let V=this.tsTryParseTypeAnnotation();if(V)q.typeAnnotation=V,this.resetEndLocation(q);return this.expect(h.parenR),q}parseClass(q,T){let V=this.inAbstractClass;this.inAbstractClass=!!q.abstract;try{this.next(),this.takeDecorators(q);let S=this.strict;this.strict=!0,this.parseClassId(q,T),this.parseClassSuper(q);let k=this.enterClassBody(),er=this.startNode(),tr=!1;er.body=[];let U=[];this.expect(h.braceL);while(this.type!==h.braceR){if(this.match(o.at)){U.push(this.parseDecorator());continue}let Z=this.parseClassElement(q.superClass!==null);if(U.length)Z.decorators=U,this.resetStartLocationFromNode(Z,U[0]),U=[];if(Z){if(er.body.push(Z),Z.type==="MethodDefinition"&&Z.kind==="constructor"&&Z.value.type==="FunctionExpression"){if(tr)this.raiseRecoverable(Z.start,"Duplicate constructor in the same class");if(tr=!0,Z.decorators&&Z.decorators.length>0)this.raise(Z.start,Td.DecoratorConstructor)}else if(Z.key&&Z.key.type==="PrivateIdentifier"&&Z.value?.type!=="TSDeclareMethod"&&xdr(k,Z))this.raiseRecoverable(Z.key.start,`Identifier '#${Z.key.name}' has already been declared`)}}if(this.strict=S,this.next(),U.length)this.raise(this.start,Td.TrailingDecorator);return q.body=this.finishNode(er,"ClassBody"),this.exitClassBody(),this.finishNode(q,T?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=V}}parseClassFunctionParams(){let q=this.tsTryParseTypeParameters(),T=this.parseBindingList(h.parenR,!1,this.ecmaVersion>=8,!0);if(q)T.typeParameters=q;return T}parseMethod(q,T,V,S,k){let er=this.startNode(),tr=this.yieldPos,U=this.awaitPos,Z=this.awaitIdentPos;if(this.initFunction(er),this.ecmaVersion>=6)er.generator=q;if(this.ecmaVersion>=8)er.async=!!T;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(aP(T,er.generator)|Lt.SCOPE_SUPER|(V?Lt.SCOPE_DIRECT_SUPER:0)),this.expect(h.parenL),er.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(er,!1,!0,!1,{isClassMethod:S}),this.yieldPos=tr,this.awaitPos=U,this.awaitIdentPos=Z,k&&k.abstract){if(!!er.body){let{key:Pr}=k;this.raise(k.start,di.AbstractMethodHasImplementation({methodName:Pr.type==="Identifier"&&!k.computed?Pr.name:`[${this.input.slice(Pr.start,Pr.end)}]`}))}}return this.finishNode(er,"FunctionExpression")}static parse(q,T){if(T.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else T.locations=!0;let V=new this(T,q);if(i)V.isAmbientContext=!0;return V.parse()}static parseExpressionAt(q,T,V){if(V.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else V.locations=!0;let S=new this(V,q,T);if(i)S.isAmbientContext=!0;return S.nextToken(),S.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(o.type)){let T=this.startNode();return T.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(T,!0,this.importOrExportOuterKind==="type"),this.finishNode(T,"ImportSpecifier")}else{let T=super.parseImportSpecifier();return T.importKind="value",T}}parseExportSpecifier(q){let T=this.ts_isContextual(o.type);if(!this.match(h.string)&&T){let S=this.startNode();return S.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(S,!1,this.importOrExportOuterKind==="type"),this.finishNode(S,"ExportSpecifier"),this.checkExport(q,S.exported,S.exported.start),S}else{let S=super.parseExportSpecifier(q);return S.exportKind="value",S}}parseTypeOnlyImportExportSpecifier(q,T,V){let S=T?"imported":"local",k=T?"local":"exported",er=q[S],tr,U=!1,Z=!0,Cr=er.start;if(this.isContextual("as")){let jr=this.parseIdent();if(this.isContextual("as")){let zr=this.parseIdent();if(sr(this.type))U=!0,er=jr,tr=T?this.parseIdent():this.parseModuleExportName(),Z=!1;else tr=zr,Z=!1}else if(sr(this.type))Z=!1,tr=T?this.parseIdent():this.parseModuleExportName();else U=!0,er=jr}else if(sr(this.type))if(U=!0,T){if(er=super.parseIdent(!0),!this.isContextual("as"))this.checkUnreserved(er)}else er=this.parseModuleExportName();if(U&&V)this.raise(Cr,T?di.TypeModifierIsUsedInTypeImports:di.TypeModifierIsUsedInTypeExports);q[S]=er,q[k]=tr;let Pr=T?"importKind":"exportKind";if(q[Pr]=U?"type":"value",Z&&this.eatContextual("as"))q[k]=T?this.parseIdent():this.parseModuleExportName();if(!q[k])q[k]=this.copyNode(q[S]);if(T)this.checkLValSimple(q[k],Lt.BIND_LEXICAL)}raiseCommonCheck(q,T,V){switch(T){case"Comma is not permitted after the rest element":if(this.isAmbientContext&&this.match(h.comma)&&this.lookaheadCharCode()===41){this.next();return}else return super.raise(q,T)}return V?super.raiseRecoverable(q,T):super.raise(q,T)}raiseRecoverable(q,T){return this.raiseCommonCheck(q,T,!0)}raise(q,T){return this.raiseCommonCheck(q,T,!0)}updateContext(q){let{type:T}=this;if(T==h.braceL){var V=this.curContext();if(V==L.tc_oTag)this.context.push(M.b_expr);else if(V==L.tc_expr)this.context.push(M.b_tmpl);else super.updateContext(q);this.exprAllowed=!0}else if(T===h.slash&&q===o.jsxTagStart)this.context.length-=2,this.context.push(L.tc_cTag),this.exprAllowed=!1;else return super.updateContext(q)}jsx_parseOpeningElementAt(q,T){let V=this.startNodeAt(q,T),S=this.jsx_parseElementName();if(S)V.name=S;if(this.match(h.relational)||this.match(h.bitShift)){let k=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(k)V.typeArguments=k}V.attributes=[];while(this.type!==h.slash&&this.type!==o.jsxTagEnd)V.attributes.push(this.jsx_parseAttribute());return V.selfClosing=this.eat(h.slash),this.expect(o.jsxTagEnd),this.finishNode(V,S?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(q){if(q===sv)this.importsStack.push([]);super.enterScope(q);let T=super.currentScope();T.types=[],T.enums=[],T.constEnums=[],T.classes=[],T.exportOnlyBindings=[]}exitScope(){if(super.currentScope().flags===sv)this.importsStack.pop();super.exitScope()}hasImport(q,T){let V=this.importsStack.length;if(this.importsStack[V-1].indexOf(q)>-1)return!0;if(!T&&V>1){for(let S=0;S<V-1;S++)if(this.importsStack[S].indexOf(q)>-1)return!0}return!1}maybeExportDefined(q,T){if(this.inModule&&q.flags&Lt.SCOPE_TOP)this.undefinedExports.delete(T)}declareName(q,T,V){if(T&Lt.BIND_FLAGS_TS_IMPORT){if(this.hasImport(q,!0))this.raise(V,`Identifier '${q}' has already been declared.`);this.importsStack[this.importsStack.length-1].push(q);return}let S=this.currentScope();if(T&Lt.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(S,q),S.exportOnlyBindings.push(q);return}if(T===Lt.BIND_TS_TYPE||T===Lt.BIND_TS_INTERFACE){if(T===Lt.BIND_TS_TYPE&&S.types.includes(q))this.raise(V,`type '${q}' has already been declared.`);S.types.push(q)}else super.declareName(q,T,V);if(T&Lt.BIND_FLAGS_TS_ENUM)S.enums.push(q);if(T&Lt.BIND_FLAGS_TS_CONST_ENUM)S.constEnums.push(q);if(T&Lt.BIND_FLAGS_CLASS)S.classes.push(q)}checkLocalExport(q){let{name:T}=q;if(this.hasImport(T))return;let V=this.scopeStack.length;for(let S=V-1;S>=0;S--){let k=this.scopeStack[S];if(k.types.indexOf(T)>-1||k.exportOnlyBindings.indexOf(T)>-1)return}super.checkLocalExport(q)}}return vr}}var $B=Ut.extend(PB());function uP(r,i,t,s){let l=t?$B:Ut,{onComment:u,add_comments:h}=gB(r,i),c=l.prototype.parseStatement;if(s)l.prototype.parseStatement=function(...w){let P=c.call(this,...w);return this.undefinedExports={},P};let p;try{p=l.parse(r,{onComment:u,sourceType:"module",ecmaVersion:16,locations:!0})}finally{if(s)l.prototype.parseStatement=c}return h(p),p}function Eu(r,i,t,s){let l=t?$B:Ut,{onComment:u,add_comments:h}=gB(r,i,s),c=l.parseExpressionAt(r,s,{onComment:u,sourceType:"module",ecmaVersion:16,locations:!0});return h(c),c}function gB(r,i,t=0){return{onComment:(s,l,u,h,c,p)=>{if(s&&/\n/.test(l)){let w=u;while(w>0&&r[w-1]!==`
437
437
  `)w-=1;let P=w;while(/[ \t]/.test(r[P]))P+=1;let M=r.slice(w,P);l=l.replace(new RegExp(`^${M}`,"gm"),"")}i.push({type:s?"Block":"Line",value:l,start:u,end:h,loc:{start:c,end:p}})},add_comments(s){if(i.length===0)return;if(i=i.filter((l)=>l.start>=t).map(({type:l,value:u,start:h,end:c})=>({type:l,value:u,start:h,end:c})),gi(s,null,{_(l,{next:u,path:h}){let c;while(i[0]&&i[0].start<l.start)c=i.shift(),(l.leadingComments||=[]).push(c);if(u(),i[0]){let p=h.at(-1);if(p===void 0||l.end!==p.end){let w=r.slice(l.end,i[0].start);if((p?.type==="BlockStatement"||p?.type==="Program")&&p.body.indexOf(l)===p.body.length-1||p?.type==="ArrayExpression"&&p.elements.indexOf(l)===p.elements.length-1||p?.type==="ObjectExpression"&&p.properties.indexOf(l)===p.properties.length-1){let M=l.end;while(i.length){let b=i[0];if(p&&b.start>=p.end)break;(l.trailingComments||=[]).push(b),i.shift(),M=b.end}}else if(l.end<=i[0].start&&/^[,) \t]*$/.test(w))l.trailingComments=[i.shift()]}}}}),i.length>0&&(i[0].start>=s.end||s.type==="Program"))(s.trailingComments||=[]).push(...i.splice(0))}}}class RB extends Error{message="";#r;constructor(r,i,t){super(i);this.stack="",this.#r=new Dy(r,i,t),Object.assign(this,this.#r),this.name="CompileError"}toString(){return this.#r.toString()}toJSON(){return this.#r.toJSON()}}function Tr(r,i,t){let s=typeof r==="number"?r:r?.start,l=typeof r==="number"?r:r?.end;throw new RB(i,t,s!==void 0?[s,l??s]:void 0)}function AB(r,i){Tr(r,"options_invalid_value",`Invalid compiler option: ${i}
438
438
  https://svelte.dev/e/options_invalid_value`)}function MB(r,i){Tr(r,"options_removed",`Invalid compiler option: ${i}
439
439
  https://svelte.dev/e/options_removed`)}function SB(r,i){Tr(r,"options_unrecognised",`Unrecognised compiler option ${i}
@@ -569,11 +569,11 @@ Did you specify these with the most recent transformation maps first?`);let l=ys
569
569
  /*# sourceMappingURL=${h.map.toUrl()} */`;return h}var kSr={_:(r,i)=>{i.state.code.addSourcemapLocation(r.start),i.state.code.addSourcemapLocation(r.end),i.next()},Atrule(r,{state:i,next:t,path:s}){if(b1(r)){let l=r.start+r.name.length+1;while(i.code.original[l]===" ")l+=1;let u=l;while(i.code.original[u]!=="{"&&i.code.original[u]!==" ")u+=1;if(r.prelude.startsWith("-global-"))i.code.remove(l,l+8);else if(!jw(s))i.code.prependRight(l,`${i.hash}-`);return}t()},Declaration(r,{state:i}){let t=r.property&&DP(r.property.toLowerCase());if(t==="animation"||t==="animation-name"){let s=r.start+r.property.length+1,l="";while(s<i.code.original.length){let u=i.code.original[s];if(FN.test(u)){if(i.keyframes.includes(l))i.code.prependRight(s-l.length,`${i.hash}-`);if(u===";"||u==="}")break;l=""}else l+=u;s++}}else if(i.minify){if(zw(r.start,i),!r.property.startsWith("--")){let s=r.start+r.property.length+1,l=s;while(/\s/.test(i.code.original[l]))l++;if(l>s)i.code.remove(s,l)}}},Rule(r,{state:i,next:t,visit:s,path:l}){if(i.minify)zw(r.start,i),zw(r.block.end-1,i);if(!Wr&&dsr(r,jw(l))){if(i.minify)i.code.remove(r.start,r.end);else i.code.prependRight(r.start,"/* (empty) "),i.code.appendLeft(r.end,"*/"),bsr(r,i.code);return}if(!wsr(r)&&!jw(l)){if(i.minify)i.code.remove(r.start,r.end);else i.code.prependRight(r.start,"/* (unused) "),i.code.appendLeft(r.end,"*/"),bsr(r,i.code);return}if(r.metadata.is_global_block){let u=r.prelude.children[0];if(r.prelude.children.length===1&&u.children.length===1&&u.children[0].selectors.length===1){if(i.minify)i.code.remove(r.start,r.block.start+1),i.code.remove(r.block.end-1,r.end);else i.code.prependRight(r.start,"/* "),i.code.appendLeft(r.block.start+1,"*/"),i.code.prependRight(r.block.end-1,"/*"),i.code.appendLeft(r.block.end,"*/");s(r.block);return}}t()},SelectorList(r,{state:i,next:t,path:s}){let l=s.at(-1);if((!jw(s)||r.children.length>1&&l?.type==="Rule"&&l.metadata.is_global_block)&&!s.find((h)=>h.type==="ComplexSelector"&&!h.metadata.used)){let h=r.children,c=!1,p=h[0].start,w=p,P=!1;for(let M=0;M<h.length;M+=1){let b=h[M];if(b.metadata.used===c){if(c){let o=b.start;while(i.code.original[o]!==",")o--;if(i.minify)i.code.remove(p,P?o:o+1);else i.code.appendRight(P?o:o+1,"*/")}else if(M===0)if(i.minify)p=b.start;else i.code.prependRight(b.start,"/* (unused) ");else if(i.minify)p=w;else i.code.overwrite(w,b.start," /* (unused) ");c=!c}if(!c&&b.metadata.used)P=!0;w=b.end}if(c)if(i.minify)i.code.remove(p,w);else i.code.appendLeft(w,"*/")}let u=i.specificity;if(l?.type==="Rule"){u={bumped:!1};let h=l.metadata.parent_rule;while(h){if(h.metadata.has_local_selectors){u={bumped:!0};break}h=h.metadata.parent_rule}}t({...i,specificity:u})},ComplexSelector(r,i){let t=i.state.specificity.bumped;for(let s of r.children){if(s.metadata.is_global){let l=s.selectors[0];osr(l,s.combinator,i.state);let u=r.metadata.rule?.metadata.parent_rule;if(u&&l.args===null){if(s.combinator===null)i.state.code.prependRight(l.start,"&");if(u.prelude.children.length>1&&r.children.length===r.children.findIndex((h)=>h===s)-1){let h=u.prelude.children.find((c)=>c.start>l.end);if(h&&h.metadata.used)i.state.code.update(l.end,h.start,"")}}continue}else for(let l of s.selectors)if(l.type==="PseudoClassSelector"&&l.name==="global")osr(l,null,i.state);if(s.metadata.scoped){if(s.selectors.length===1){let h=s.selectors[0];if(h.type==="PseudoClassSelector"&&(h.name==="is"||h.name==="where"))continue}if(s.selectors.some((h)=>h.type==="NestingSelector"))continue;let l=i.state.selector;if(i.state.specificity.bumped)l=`:where(${l})`;i.state.specificity.bumped=!0;let u=s.selectors.length;while(u--){let h=s.selectors[u];if(h.type==="PseudoElementSelector"||h.type==="PseudoClassSelector"){if(h.name!=="root"&&h.name!=="host"){if(u===0)i.state.code.prependRight(h.start,l)}continue}if(h.type==="TypeSelector"&&h.name==="*")i.state.code.update(h.start,h.end,l);else i.state.code.appendLeft(h.end,l);break}}}i.next(),i.state.specificity.bumped=t},PseudoClassSelector(r,i){if(r.name==="is"||r.name==="where"||r.name==="has"||r.name==="not")i.next()}};function jw(r){return r.some((i)=>i.type==="Rule"&&i.metadata.is_global_block)}function osr(r,i,t){if(r.args===null){let s=r.start;if(i?.name===" ")while(/\s/.test(t.code.original[s-1]))s--;t.code.update(s,r.start+7,"")}else t.code.remove(r.start,r.start+8).remove(r.end-1,r.end)}function zw(r,i){let t=r;while(/\s/.test(i.code.original[t-1]))t--;if(t<r)i.code.remove(t,r)}function dsr(r,i){if(r.metadata.is_global_block)return r.block.children.length===0;for(let t of r.block.children){if(t.type==="Declaration")return!1;if(t.type==="Rule"){if((wsr(t)||i)&&!dsr(t,i))return!1}if(t.type==="Atrule"){if(t.block===null||t.block.children.length>0)return!1}}return!0}function wsr(r){return r.prelude.children.some((i)=>i.metadata.used)}function bsr(r,i){let t=!1,s=!1;for(let l=r.start;l<r.end;l++)if(t)t=!1;else{let u=i.original[l];if(s){if(u==="*"&&i.original[l+1]==="/")i.prependRight(++l,"\\"),s=!1}else if(u==="\\")t=!0;else if(u==="/"&&i.original[++l]==="*")s=!0}}function Zw(r,i,t){if(r.left.type==="ArrayPattern"||r.left.type==="ObjectPattern"||r.left.type==="RestElement"){let s=i.visit(r.right),l=s.type!=="Identifier",u=l?ir("$$value"):s,h=!1,{inserts:c,paths:p}=Ue(r.left,u);for(let{id:b}of c)b.name=i.state.scope.generate("$$array");let w=p.map((b)=>{let o=b.expression,L=t("=",b.node,o,i);if(L!==null)h=!0;return L??qi("=",i.visit(b.node),i.visit(o))});if(!h)return null;let P=i.path.at(-1).type.endsWith("Statement");if(c.length>0||l){let b=[...c.map(({id:j,value:H})=>Si(j,H)),...w.map($r)];if(!P)b.push(Xi(u));let o=At(s)||w.some((j)=>At(j)),L=Xr([u],Fr(b),o),I=X(L,s);return o?me(I):I}let M=oe(w);if(!P)M.expressions.push(u);return M}if(r.left.type!=="Identifier"&&r.left.type!=="MemberExpression")throw Error(`Unexpected assignment type ${r.left.type}`);return t(r.operator,r.left,r.right,i)}function Csr(r,i){return Zw(r,i,_Sr)??i.next()}function _Sr(r,i,t,s){if(s.state.analysis.runes&&i.type==="MemberExpression"&&i.object.type==="ThisExpression"&&!i.computed){let h=Ke(i.property),c=h&&s.state.state_fields.get(h);if(c&&c.node.type==="AssignmentExpression"&&i===c.node.left){let p=ft(t,s.state.scope);if(p){let w=i.property.type==="PrivateIdentifier"||p==="$state"||p==="$state.raw"?i.property:c.key;return qi(r,ai(ns,w,w.type==="Literal"),s.visit(t))}}else if(c&&(c.type==="$derived"||c.type==="$derived.by")&&i.property.type==="PrivateIdentifier"){let p=s.visit(Yf(r,i,t));return X(ai(ns,h),p)}}let l=i;while(l.type==="MemberExpression")l=l.object;if(l.type!=="Identifier")return null;if(xSr(l.name)){let h=l.name.slice(1);if(!s.state.scope.get(h))return null;if(l===i){let c=s.visit(Yf(r,i,t));return X("$.store_set",ir(h),c)}return X("$.store_mutate",qi("??=",ir("$$store_subs"),fi([])),qr(l.name),ir(h),qi(r,s.visit(i),s.visit(t)))}let u=s.state.scope.get(l.name);if(u?.kind==="derived"&&l===i){let h=s.visit(Yf(r,i,t));return X(u.node,h)}return null}function xSr(r){return r[0]==="$"&&/[A-Za-z_]/.test(r[1])}var rTr=/[&"<]/g,iTr=/[&<]/g;function pl(r,i){let t=String(r??""),s=i?rTr:iTr;s.lastIndex=0;let l="",u=0;while(s.test(t)){let h=s.lastIndex-1,c=t[h];l+=t.substring(u,h)+(c==="&"?"&amp;":c==='"'?"&quot;":"&lt;"),u=h+1}return l+t.substring(u)}var qsr=`<!--${EV}-->`,Psr=`<!--${VV}-->`,$sr=`<!--${IV}-->`,gsr="<!---->";var ca=qr(qsr),_f=qr(Psr),Ee=qr($sr),kl=qr(gsr);function _l(r,{visit:i,state:t}){let s=[];function l(){if(s.length===0)return;let u=Ia("",!1),h=[u],c=[];for(let p=0;p<s.length;p++){let w=s[p];if(w.type==="Text"||w.type==="Comment")u.value.cooked+=w.type==="Comment"?`<!--${w.data}-->`:pl(w.data);else{let P=t.scope.evaluate(w.expression);if(P.is_known)u.value.cooked+=pl((P.value??"")+"");else c.push(X("$.escape",i(w.expression))),u=Ia("",p+1===s.length),h.push(u)}}for(let p of h)p.value.raw=jf(p.value.cooked);t.template.push(Fu(h,c)),s=[]}for(let u of r)if(u.type==="ExpressionTag"&&u.metadata.expression.is_async()){l();let h=i(u.expression),c=X("$$renderer.push",Ir(X("$.escape",h),u.metadata.expression.has_await)),p=u.metadata.expression.blockers();if(p.elements.length>0)c=X("$$renderer.async",p,Xr([ir("$$renderer")],c));t.template.push($r(c))}else if(u.type==="Text"||u.type==="Comment"||u.type==="ExpressionTag")s.push(u);else l(),i(u,{...t});l()}function tTr(r){return r.type.endsWith("Statement")||r.type.endsWith("Declaration")}function Ve(r){let i=[],t=[],s=[],l=()=>{s.push($r(X(ir("$$renderer.push"),Fu(i.map((u,h)=>Ia(u,h===i.length-1)),t)))),i=[],t=[]};for(let u=0;u<r.length;u++){let h=r[u];if(tTr(h)){if(i.length!==0)l();s.push(h)}else{if(i.length===0)i.push("");if(h.type==="Literal")i[i.length-1]+=h.value;else if(h.type==="TemplateLiteral")i[i.length-1]+=h.quasis[0].value.cooked,i.push(...h.quasis.slice(1).map((c)=>c.value.cooked)),t.push(...h.expressions);else t.push(h),i.push("")}}if(i.length!==0)l();return s}function De(r,i,t,s=!1,l=!1){if(r===!0)return ci;if(!Array.isArray(r)||r.length===1){let p=Array.isArray(r)?r[0]:r;if(p.type==="Text"){let w=s?p.data.replace(Sq," ").trim():p.data;return qr(l?w:pl(w,!0))}return t(i.visit(p.expression),p.metadata.expression)}let u=Ia("",!1),h=[u],c=[];for(let p=0;p<r.length;p++){let w=r[p];if(w.type==="Text")u.value.cooked+=s?w.data.replace(Sq," "):w.data;else c.push(X("$.stringify",t(i.visit(w.expression),w.metadata.expression))),u=Ia("",p+1===r.length),h.push(u)}for(let p of h)p.value.raw=jf(p.value.cooked);return Fu(h,c)}function _$(r,i){let t=i.scope.get(r.name);if(t===null||r===t.node)return r;if(t.kind==="store_sub"){let s=ir(r.name.slice(1));return X("$.store_get",qi("??=",ir("$$store_subs"),fi([])),qr(r.name),_$(s,i))}if(t.kind==="derived")return(t.declaration_kind==="var"?al:X)(t.node);return r}function za(r,i,t){if(i.elements.length===0&&!t)return r;let s=Xr([ir("$$renderer")],Fr(r),t);return i.elements.length>0?[$r(X("$$renderer.async_block",i,s))]:[$r(X("$$renderer.child_block",s))]}class Za{expressions=[];has_await=!1;#r=new Set;transform=(r,i)=>{if(this.check_blockers(i),i.has_await){this.has_await=!0;let t=this.expressions.push(r);return ir(`$$${t-1}`)}return r};check_blockers(r){for(let i of r.dependencies)if(i.blocker)this.#r.add(i.blocker)}#i(){if(this.expressions.length===0)return Ji;if(this.expressions.length===1)return wt("$$0",this.expressions[0]);let r=li(this.expressions.map((i)=>{return i.type==="AwaitExpression"&&!n1(i.argument)?i.argument:X(Ir(i,!0))}));return wt(Iu(this.expressions.map((i,t)=>ir(`$$${t}`))),me(X("Promise.all",r)))}blockers(){return li([...this.#r])}is_async(){return this.expressions.length>0||this.#r.size>0}render(r){if(!this.is_async())return r;let i=Xr([ir("$$renderer")],Fr([this.#i(),...r]),this.has_await),t=this.blockers();return t.elements.length>0?[$r(X("$$renderer.async",t,i))]:[$r(X("$$renderer.child",i))]}render_block(r){if(!this.is_async())return r;return za([this.#i(),...r],this.blockers(),this.has_await)}}function Rsr(r,i){let t=$r(X("$.await",ir("$$renderer"),i.visit(r.expression),Ir(r.pending?i.visit(r.pending):Fr([])),Xr(r.value?[i.visit(r.value)]:[],r.then?i.visit(r.then):Fr([]))));i.state.template.push(...za([t],r.metadata.expression.blockers(),r.metadata.expression.has_await),Ee)}function Asr(r,i){let t=i.visit(r.argument);if(i.state.analysis.pickled_awaits.has(r))return fl(t);let s=i.path.length;while(s--){let l=i.path[s];if(l.type==="ArrowFunctionExpression"||l.type==="FunctionExpression"||l.type==="FunctionDeclaration")break;if(l.metadata){if(l.type!=="ExpressionTag"&&l.type!=="Fragment")return fl(t);break}}return t===r.argument?r:{...r,argument:t}}function eTr(r,i){let t=[],s=new Map;for(let p of r)if(p.type==="ConstTag"){let w=p.declaration.declarations[0],P=Ct(w.id).map((b)=>{return i.scope.get(b.name)}),M=new Set;gi(w.init,i,{_:o1,Identifier(b,o){let L=o.path.at(-1);if(Se(b,L)){let I=o.state.scope.get(b.name);if(I)M.add(I)}}});for(let b of P)s.set(b,{node:p,deps:M})}else t.push(p);if(s.size===0)return r;let l=[];for(let[p,w]of s)for(let P of w.deps)if(s.has(P))l.push([p,P]);let u=dv(l);if(u?.length){let p=s.get(u[0]);zH(p.node,u.map((w)=>w.node.name).join(" → "))}let h=[];function c(p){if(h.includes(p.node))return;for(let w of p.deps){let P=s.get(w);if(P)c(P)}h.push(p.node)}for(let p of s.values())c(p);return[...h,...t]}function Ku(r,i,t,s="html",l,u,h){if(!l.analysis.runes)i=eTr(i,l);let c=[],p=[];for(let M of i){if(M.type==="Comment"&&!h)continue;if(M.type==="ConstTag"||M.type==="DebugTag"||M.type==="SvelteBody"||M.type==="SvelteWindow"||M.type==="SvelteDocument"||M.type==="SvelteHead"||M.type==="TitleElement"||M.type==="SnippetBlock")c.push(M);else p.push(M)}let w=p;if(!u){w=[];let M,b;while((M=p[0])&&M.type==="Text"&&!tl.test(M.data))p.shift();if(M?.type==="Text")M.raw=M.raw.replace(Lf,""),M.data=M.data.replace(Lf,"");while((b=p.at(-1))&&b.type==="Text"&&!tl.test(b.data))p.pop();if(b?.type==="Text")b.raw=b.raw.replace(Ru,""),b.data=b.data.replace(Ru,"");let o=s==="svg"&&(r.type!=="RegularElement"||r.name!=="text")&&!t.some((L)=>L.type==="RegularElement"&&L.name==="text")||r.type==="RegularElement"&&(r.name==="select"||r.name==="tr"||r.name==="table"||r.name==="tbody"||r.name==="thead"||r.name==="tfoot"||r.name==="colgroup"||r.name==="datalist");for(let L=0;L<p.length;L++){let I=p[L-1],j=p[L],H=p[L+1];if(j.type==="Text"){if(I?.type!=="ExpressionTag"){let J=I?.type==="Text"&&Ru.test(I.data);j.data=j.data.replace(Lf,J?"":" "),j.raw=j.raw.replace(Lf,J?"":" ")}if(H?.type!=="ExpressionTag")j.data=j.data.replace(Ru," "),j.raw=j.raw.replace(Ru," ");if(j.data&&(j.data!==" "||!o))w.push(j)}else w.push(j)}}var P=w[0];if(r.type==="RegularElement"&&r.name==="pre"&&P?.type==="Text"){if(P.data===`
570
570
  `||P.data===`\r
571
571
  `)w.shift(),P=w[0]}if(w.length===1&&P.type==="RegularElement"&&P.name==="script")w.push({type:"Comment",data:"",start:-1,end:-1});return{hoisted:c,trimmed:w,is_standalone:w.length===1&&(P.type==="RenderTag"&&!P.metadata.dynamic||P.type==="Component"&&!l.options.hmr&&!P.metadata.dynamic&&!P.attributes.some((M)=>M.type==="Attribute"&&M.name.startsWith("--"))),is_text_first:(r.type==="Fragment"||r.type==="SnippetBlock"||r.type==="EachBlock"||r.type==="SvelteComponent"||r.type==="SvelteBoundary"||r.type==="Component"||r.type==="SvelteSelf")&&P&&(P?.type==="Text"||P?.type==="ExpressionTag")}}function Qw(r,i,t){if(i.type==="RegularElement"&&i.name==="foreignObject")return"html";if(i.type==="RegularElement"||i.type==="SvelteElement"){if(i.metadata.svg)return"svg";return i.metadata.mathml?"mathml":"html"}if(i.type==="Fragment"||i.type==="Root"||i.type==="Component"||i.type==="SvelteComponent"||i.type==="SvelteFragment"||i.type==="SnippetBlock"||i.type==="SlotElement"){let l=sTr(t,"keep");if(l!=="keep"&&l!=="maybe_html")return l}let s=null;for(let l of t){if(l.type!=="RegularElement")continue;if(l.metadata.mathml)s=s===null||s==="mathml"?"mathml":"html";else if(l.metadata.svg)s=s===null||s==="svg"?"svg":"html";else return"html"}return s??r}function sTr(r,i){let t=(s,{stop:l})=>{if(!s.metadata.svg&&!s.metadata.mathml)i="html",l();else if(i==="keep")i=s.metadata.svg?"svg":"mathml"};for(let s of r)if(gi(s,{},{_(l,{next:u}){if(l.type==="EachBlock"||l.type==="IfBlock"||l.type==="AwaitBlock"||l.type==="Fragment"||l.type==="KeyBlock"||l.type==="RegularElement"||l.type==="SvelteElement"||l.type==="Text")u()},SvelteElement:t,RegularElement:t,Text(l){if(l.data.trim()!=="")i="maybe_html"}}),i==="html")return i;return i}function Xu(r,i){if(r.name==="foreignObject")return"html";if(r.metadata.svg)return"svg";return r.metadata.mathml?"mathml":"html"}function Jw(r,i,t){return{args:(r==="$inspect"?i:i.callee.object).arguments.map((l)=>t(l)),inspector:r==="$inspect"?"console.log":t(i.arguments[0])}}function Msr(r,i){let t=ft(r,i.state.scope);if(t==="$host"||t==="$effect"||t==="$effect.pre"||t==="$inspect.trace")return Xt;if(t==="$effect.tracking")return Zl;if(t==="$effect.root")return Xr([],Fr([]));if(t==="$effect.pending")return qr(0);if(t==="$state"||t==="$state.raw")return r.arguments[0]?i.visit(r.arguments[0]):Xt;if(t==="$derived"||t==="$derived.by"){let s=i.visit(r.arguments[0]);return X("$.derived",t==="$derived"?Ir(s):s)}if(t==="$state.eager")return r.arguments[0];if(t==="$state.snapshot")return X("$.snapshot",i.visit(r.arguments[0]),Kt(r,"state_snapshot_uncloneable")&&ci);if(t==="$inspect"||t==="$inspect().with"){if(!Wr)return Ji;let{args:s,inspector:l}=Jw(t,r,i.visit);return t==="$inspect"?X(l,qr("$inspect("),...s,qr(")")):X(l,qr("init"),...s)}i.next()}function Ssr(r,i){let t=i.state.analysis.classes.get(r);if(!t){i.next();return}let s=[],l={...i.state,state_fields:t};for(let[u,h]of t){if(u[0]==="#")continue;if(h&&h.node.type==="AssignmentExpression"&&(h.type==="$derived"||h.type==="$derived.by")){let c=ai(ns,h.key);s.push(Jf(h.key,null),ll("get",Ae(u),[],[Xi(X(c))]),ll("set",Ae(u),[ir("$$value")],[Xi(X(c,ir("$$value")))]))}}for(let u of r.body){if(u.type!=="PropertyDefinition"){s.push(i.visit(u,l));continue}let h=Ke(u.key),c=h&&t.get(h);if(!c){s.push(i.visit(u,l));continue}if(h[0]==="#"||c.type==="$state"||c.type==="$state.raw")s.push(i.visit(u,l));else if(c.node===u){let p=ai(ns,c.key);s.push(Jf(c.key,i.visit(c.value,l)),ll("get",u.key,[],[Xi(X(p))]),ll("set",Ae(h),[ir("$$value")],[Xi(X(p,ir("$$value")))]))}}return{...r,body:s}}function O1(r,i,t){let s=[],l=[],u=[],h={default:[]},c={...t.state,scope:r.metadata.scopes.default},p={},w=r.attributes.some((J)=>J.type==="Attribute"&&J.name==="slot"),P=!1;function M(J,W=!1){let sr=()=>{let rr=s.at(-1),hr=Array.isArray(rr),vr=hr?rr:[];if(vr.push(J),!hr)s.push(vr)};if(W)l.push(sr);else sr()}let b=new Za;for(let J of r.attributes)if(J.type==="LetDirective"){if(!w)h.default.push(J)}else if(J.type==="SpreadAttribute"){let W=t.visit(J);s.push(b.transform(W,J.metadata.expression))}else if(J.type==="Attribute"){let W=De(J.value,t,b.transform,!1,!0);if(J.name.startsWith("--")){u.push(ni(J.name,W));continue}if(J.name==="children")P=!0;M(dt("init",Ae(J.name),W))}else if(J.type==="BindDirective"){if(b.check_blockers(J.metadata.expression),J.name==="this")continue;if(J.expression.type==="SequenceExpression"){let[W,sr]=t.visit(J.expression).expressions,rr=ir(t.state.scope.generate("bind_get")),hr=ir(t.state.scope.generate("bind_set"));t.state.init.push(Si(rr,W)),t.state.init.push(Si(hr,sr)),M(hs(J.name,[Xi(X(rr))])),M(Fa(J.name,[$r(X(hr,ir("$$value")))]))}else M(hs(J.name,[Xi(t.visit(J.expression))]),!0),M(Fa(J.name,[$r(t.visit(qi("=",J.expression,ir("$$value")))),$r(qi("=",ir("$$settled"),Zl))]),!0)}else if(J.type==="AttachTag")b.check_blockers(J.metadata.expression);l.forEach((J)=>J());let o=[],L=[];for(let J of r.fragment.nodes){if(J.type==="SnippetBlock"){t.visit(J,{...t.state,init:o}),M(dt("init",J.expression,J.expression)),L.push(ni(J.expression.name==="children"?"default":J.expression.name,ci));continue}let W="default";if(v1(J)){let sr=J.attributes.find((rr)=>rr.type==="Attribute"&&rr.name==="slot");if(sr!==void 0)W=sr.value[0].data,h[W]=J.attributes.filter((rr)=>rr.type==="LetDirective");else if(J.type==="SvelteFragment")h.default.push(...J.attributes.filter((rr)=>rr.type==="LetDirective"))}p[W]=p[W]||[],p[W].push(J)}for(let J of Object.keys(p)){let W=t.visit({...r.fragment,nodes:p[J]},J==="default"?c:{...t.state,scope:r.metadata.scopes[J]});if(W.body.length===0)continue;let sr=[ir("$$renderer")];if(h[J].length>0){let hr=Qf(h[J].map((vr)=>{if(vr.expression===null)return ni(vr.name,ir(vr.name));if(vr.expression.type==="ObjectExpression")return ni(vr.name,Qf(vr.expression.properties));if(vr.expression.type==="ArrayExpression")return ni(vr.name,Iu(vr.expression.elements));return ni(vr.name,vr.expression)}));sr.push(hr)}let rr=Xr(sr,Fr(W.body));if(J==="default"&&!P)if(h.default.length===0&&p.default.every((hr)=>hr.type!=="SvelteFragment"||!hr.attributes.some((vr)=>vr.type==="LetDirective")))M(dt("init",ir("children"),Wr?X("$.prevent_snippet_stringification",rr):rr)),L.push(ni(J,ci));else L.push(ni(J,rr)),M(ni("children",ir("$.invalid_default_snippet")));else L.push(ni(J,rr))}if(L.length>0)M(dt("init",ir("$$slots"),fi(L)));let I=s.length===0||s.length===1&&Array.isArray(s[0])?fi(s[0]||[]):X("$.spread_props",li(s.map((J)=>Array.isArray(J)?fi(J):J))),j=r.type==="SvelteComponent"||r.type==="Component"&&r.metadata.dynamic,H=$r(X(i,ir("$$renderer"),I));if(j)H=ue(i,Fr([$r(X("$$renderer.push",ca)),H,$r(X("$$renderer.push",Ee))]),Fr([$r(X("$$renderer.push",_f)),$r(X("$$renderer.push",Ee))]));if(o.length>0)H=Fr([...o,H]);if(u.length>0)H=$r(X("$.css_props",ir("$$renderer"),qr(t.state.namespace==="svg"?!1:!0),fi(u),Ir(Fr([H])),j&&ci));if(r.type!=="SvelteSelf")b.check_blockers(r.metadata.expression);if(t.state.template.push(...b.render_block([H])),!j&&!b.is_async()&&!t.state.is_standalone&&u.length===0)t.state.template.push(kl)}function Tsr(r,i){O1(r,i.visit(ir(r.name)),i)}function Osr(r,i){let t=r.declaration.declarations[0],s=i.visit(t.id),l=i.visit(t.init),u=r.metadata.expression.has_await,h=[...r.metadata.expression.dependencies].map((c)=>c.blocker).filter((c)=>c!==null&&c.object!==i.state.async_consts?.id);if(u||i.state.async_consts||h.length>0){let c=i.state.async_consts??={id:ir(i.state.scope.generate("promises")),thunks:[]},p=Ct(t.id),w=i.state.scope.get_bindings(t);for(let b of p)i.state.init.push(be(b.name));if(h.length===1)c.thunks.push(Ir(h[0]));else if(h.length>0)c.thunks.push(Ir(X("Promise.all",li(h))));let P=qi("=",s,l);c.thunks.push(Ir(Fr([$r(P)]),u));let M=ai(c.id,qr(c.thunks.length-1),!0);for(let b of w)b.blocker=M}else i.state.init.push(wt(s,l))}function Lsr(r,i){i.state.template.push($r(X("console.log",fi(r.identifiers.map((t)=>dt("init",t,i.visit(t)))))),Gd)}function Esr(r,i){let t=i.state,s=r.metadata,l=i.visit(r.expression),u=s.contains_group_binding||!r.index?s.index:ir(r.index),h=t.scope.root.unique("each_array"),c=[wt(h,X("$.ensure_array_like",l))],p=[];if(r.context)p.push(be(r.context,ai(h,u,!0)));if(u.name!==r.index&&r.index!=null)p.push(be(r.index,u));let w=i.visit(r.body).body;if(r.body)p.push(...w);let P=eN(Hs("let",[Fi(u,qr(0)),Fi("$$length",ai(h,"length"))]),Va("<",u,ir("$$length")),Wd("++",u,!1),Fr(p));if(r.fallback){let M=$r(X(ir("$$renderer.push"),ca)),b=i.visit(r.fallback);b.body.unshift($r(X(ir("$$renderer.push"),_f))),c.push(ue(Va("!==",ai(h,"length"),qr(0)),Fr([M,P]),b))}else t.template.push(ca),c.push(P);t.template.push(...za(c,r.metadata.expression.blockers(),r.metadata.expression.has_await),Ee)}function Vsr(r,i){let t=ft(r.expression,i.state.scope);if(t==="$effect"||t==="$effect.pre"||t==="$effect.root"||t==="$inspect.trace")return Ji;i.next()}function Isr(r,i){let t=i.path.at(-1)??r,s=Qw(i.state.namespace,t,r.nodes),{hoisted:l,trimmed:u,is_standalone:h,is_text_first:c}=Ku(t,r.nodes,i.path,s,i.state,i.state.preserve_whitespace,i.state.options.preserveComments),p={...i.state,init:[],template:[],namespace:s,is_standalone:h,async_consts:void 0};for(let w of l)i.visit(w,p);if(c)p.template.push(kl);if(_l(u,{...i,state:p}),p.async_consts&&p.async_consts.thunks.length>0)p.init.push(Si(p.async_consts.id,X("$$renderer.run",li(p.async_consts.thunks))));return Fr([...p.init,...Ve(p.template)])}function Fsr(r,i){let t=X("$.html",i.visit(r.expression));if(r.metadata.expression.is_async())i.state.template.push(...za([$r(X("$$renderer.push",t))],r.metadata.expression.blockers(),r.metadata.expression.has_await));else i.state.template.push(t)}function Bsr(r,i){if(Se(r,i.path.at(-1))){if(r.name==="$$props")return ir("$$sanitized_props");if(r.name.startsWith("$$derived_array"))return X(r);return _$(r,i.state)}}function Hsr(r,i){let t=i.visit(r.consequent);t.body.unshift($r(X(ir("$$renderer.push"),qr("<!--[0-->"))));let s=ue(i.visit(r.test),t),l=1,u=s,h=r.alternate;for(let p of r.metadata.flattened??[]){let w=i.visit(p.consequent);w.body.unshift($r(X(ir("$$renderer.push"),qr(`<!--[${l++}-->`)))),u=u.alternate=ue(i.visit(p.test),w),h=p.alternate}let c=h?i.visit(h):Fr([]);c.body.unshift($r(X(ir("$$renderer.push"),qr("<!--[-1-->")))),u.alternate=c,i.state.template.push(...za([s],r.metadata.expression.blockers(),r.metadata.expression.has_await),Ee)}function Usr(r,i){let t=r.metadata.expression.is_async();if(t)i.state.template.push(ca);if(i.state.template.push(kl,i.visit(r.fragment),kl),t)i.state.template.push(Ee)}function Nsr(r,i){if(i.state.analysis.runes||i.path.length>1||r.label.name!=="$")return;return i.state.legacy_reactive_statements.set(r,xU("$",i.visit(r.body))),Ji}function jsr(r,i){if(i.state.analysis.runes&&r.property.type==="PrivateIdentifier"){let t=i.state.state_fields?.get(`#${r.property.name}`);if(t?.type==="$derived"||t?.type==="$derived.by")return X(r)}i.next()}function Yw(r,i,t){let s=r.sync.map((l)=>t(l));if(r.declarations.length>0)s.push(Hs("var",r.declarations.map((l)=>Fi(l))));if(r.async.length>0){let l=r.async.map((u)=>{let h=[];for(let c of u.nodes)h.push(...aTr(c,t));if(h.length===0)return Ir(Xt,!1);if(h.length===1&&h[0].type==="ExpressionStatement")return Ir(h[0].expression,u.has_await);return Ir(Fr(h),u.has_await)});s.push(Si("$$promises",X(i,li(l))))}return s}function aTr(r,i){if(r.type==="VariableDeclarator"){let s=i(Si(r.id,r.init));return s.type==="VariableDeclaration"?s.declarations.map((l)=>{if(l.id.type==="Identifier"&&(l.id.name.startsWith("$$d")||l.id.name.startsWith("$$array")))return Si(l.id,l.init);return $r(qi("=",l.id,l.init??Xt))}):[]}if(r.type==="ClassDeclaration")return[$r(qi("=",r.id,{...r,type:"ClassExpression"}))];if(r.type==="ExpressionStatement"){let s=i(r.expression);if(s.type==="EmptyStatement")return[];if(s.type==="AwaitExpression")return[$r(s)];return[$r(yv("void",s))]}let t=i(r);return t.type==="EmptyStatement"?[]:[t]}function zsr(r,i){if(i.state.is_instance){let t=i.state;return{...r,body:Yw(t.analysis.instance_body,ir("$$renderer.run"),(s)=>i.visit(s))}}i.next()}function Zsr(r,i){if(i.state.analysis.runes&&r.value!=null&&r.value.type==="CallExpression"){let t=ft(r.value,i.state.scope);if(t==="$state"||t==="$state.raw")return{...r,value:r.value.arguments.length===0?null:i.visit(r.value.arguments[0])};if(t==="$derived.by"||t==="$derived"){let s=i.visit(r.value.arguments[0]);return{...r,value:r.value.arguments.length===0?null:X("$.derived",t==="$derived"?Ir(s):s)}}}i.next()}var x$=["class","style"];function Ww(r,i,t){let s=[],l=[],u=[],h=null,c=!1,p=new Set;for(let w of r.attributes)if(w.type==="Attribute"){if(w.name==="value"){if(r.name==="textarea"){if(w.value!==!0&&Array.isArray(w.value)&&w.value[0].type==="Text"&&Of.test(w.value[0].data))w.value[0].data=`
572
- `+w.value[0].data;h=X("$.escape",De(w.value,i,t))}else if(r.name!=="select")s.push(w)}else if(re(w)){if((w.name==="onload"||w.name==="onerror")&&Xh(r.name))p.add(w.name)}else if(w.name!=="defaultValue"&&w.name!=="defaultChecked")if(w.name==="class")if(w.metadata.needs_clsx)s.push({...w,value:{...w.value,expression:X("$.clsx",w.value.expression)}});else s.push(w);else s.push(w)}else if(w.type==="BindDirective"){if(w.name==="value"&&r.name==="select")continue;if(w.name==="value"&&s.some((b)=>b.type==="Attribute"&&b.name==="type"&&ut(b)&&b.value[0].data==="file"))continue;if(w.name==="this")continue;if(cl[w.name]?.omit_in_ssr)continue;let M=i.visit(w.expression);if(M.type==="SequenceExpression")M=X(M.expressions[0]);if(M=t(M,w.metadata.expression),w.name==="innerHTML")h=M;else if(Kh(w.name)||w.name==="value"&&r.name==="textarea")h=X("$.escape",M);else if(w.name==="group"&&w.expression.type!=="SequenceExpression"){let b=r.attributes.find((L)=>L.type==="Attribute"&&L.name==="value");if(!b)continue;let o=r.attributes.some((L)=>L.type==="Attribute"&&L.name==="type"&&ut(L)&&L.value[0].data==="checkbox");s.push(qs("checked",null,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,expression:o?X(ai(w.expression,"includes"),De(b.value,i,t)):Va("===",w.expression,De(b.value,i,t)),metadata:{expression:new vt}}]))}else s.push(qs(w.name,null,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,expression:M,metadata:{expression:new vt}}]))}else if(w.type==="SpreadAttribute"){if(s.push(w),c=!0,Xh(r.name))p.add("onload"),p.add("onerror")}else if(w.type==="UseDirective"){if(Xh(r.name))p.add("onload"),p.add("onerror")}else if(w.type==="ClassDirective")l.push(w);else if(w.type==="StyleDirective")u.push(w);else if(w.type==="LetDirective");else i.visit(w);if(c)uTr(r,s,u,l,i,t);else{let w=r.metadata.scoped?i.state.analysis.css.hash:null;for(let P of s){let M=r5(r,P),b=(M!=="class"||l.length===0)&&(M!=="style"||u.length===0);if(b&&(P.value===!0||ut(P))){let L=De(P.value,i,t,x$.includes(M)).value;if(M==="class"&&w)L=(String(L)+" "+w).trim();if(M!=="class"||L)i.state.template.push(qr(` ${M}="${L===!0?"":String(L)}"`));continue}let o=De(P.value,i,t,x$.includes(M));if(b&&o.type==="Literal"&&typeof o.value==="string"){if(M==="class"&&w)o.value=(o.value+" "+w).trim();i.state.template.push(qr(` ${M}="${pl(o.value,!0)}"`))}else if(M==="class")i.state.template.push(fTr(l,o,i,w,t));else if(M==="style")i.state.template.push(hTr(u,o,i,t));else i.state.template.push(X("$.attr",qr(M),o,Iq(M)&&ci))}}if(p.size!==0)for(let w of p)i.state.template.push(qr(` ${w}="this.__e=event"`));return h}function r5(r,i){let t=i.name;if(!r.metadata.svg&&!r.metadata.mathml)t=t.toLowerCase();return t}function lTr(r,i,t,s){return fi(i.map((u)=>{if(u.type==="Attribute"){let h=r5(r,u),c=De(u.value,t,s,x$.includes(h));return dt("init",Ae(h),c)}else if(u.type==="BindDirective"){let h=r5(r,u),c=u.expression.type==="SequenceExpression"?X(u.expression.expressions[0]):t.visit(u.expression);return dt("init",Ae(h),c)}return fa(s(t.visit(u),u.metadata.expression))}))}function uTr(r,i,t,s,l,u){let h=Qsr(r,i,t,s,l,u),c=X("$.attributes",...h);l.state.template.push(c)}function i5(r,i,t){let s=[],l=[],u=[];for(let h of r.attributes)if(h.type==="Attribute"||h.type==="BindDirective"||h.type==="SpreadAttribute")s.push(h);else if(h.type==="ClassDirective")l.push(h);else if(h.type==="StyleDirective")u.push(h);return Qsr(r,s,u,l,i,t)}function Qsr(r,i,t,s,l,u){let h,c,p=0;if(s.length){let M=s.map((b)=>ni(b.name,b.expression.type==="Identifier"&&b.expression.name===b.name?ir(b.name):u(l.visit(b.expression),b.metadata.expression)));h=fi(M)}if(t.length>0){let M=t.map((b)=>ni(b.name,b.value===!0?ir(b.name):De(b.value,l,u,!0)));c=fi(M)}if(r.metadata.svg||r.metadata.mathml)p|=FV|Oq;else if(Us(r))p|=Oq;else if(r.type==="RegularElement"&&r.name==="input")p|=BV;let w=lTr(r,i,l,u),P=r.metadata.scoped&&l.state.analysis.css.hash?qr(l.state.analysis.css.hash):void 0;return[w,P,h,c,p?qr(p):void 0]}function fTr(r,i,t,s,l){let u;if(r.length)u=fi(r.map((c)=>dt("init",qr(c.name),l(t.visit(c.expression,t.state),c.metadata.expression))));let h;if(s)if(i.type==="Literal"&&typeof i.value==="string")i.value=(i.value+" "+s).trim();else h=qr(s);return X("$.attr_class",i,h,u)}function hTr(r,i,t,s){let l;if(r.length){let u=[],h=[];for(let c of r){let p=c.value===!0?ir(c.name):De(c.value,t,s,!0),w=c.name;if(w[0]!=="-"||w[1]!=="-")w=w.toLowerCase();let P=ni(w,p);if(c.modifiers.includes("important"))h.push(P);else u.push(P)}if(h.length)l=li([fi(u),fi(h)]);else l=fi(u)}return X("$.attr_style",i,l)}function Jsr(r,i){let t=i.state.namespace==="html"?r.name.toLowerCase():r.name,s=Xu(r,i.state.namespace),l={...i.state,namespace:s,preserve_whitespace:i.state.preserve_whitespace||r.name==="pre"||r.name==="textarea",init:[],template:[]},u=Ta(t),h=new Za,c=t==="select"&&r.attributes.some((o)=>(o.type==="Attribute"||o.type==="BindDirective")&&o.name==="value"||o.type==="SpreadAttribute"),p=t==="option",w=c||p,P=null;if(!w)l.template.push(qr(`<${t}`)),P=Ww(r,{...i,state:l},h.transform),l.template.push(qr(u?"/>":">"));if((t==="script"||t==="style")&&r.fragment.nodes.length===1){l.template.push(qr(r.fragment.nodes[0].data),qr(`</${t}>`)),i.state.template.push(...h.render([...l.init,...Ve(l.template)]));return}let{hoisted:M,trimmed:b}=Ku(r,r.fragment.nodes,i.path,s,{...l,scope:l.scopes.get(r.fragment)},l.preserve_whitespace,l.options.preserveComments);for(let o of M)i.visit(o,l);if(Wr){let o=$t(r.start);l.template.push($r(X("$.push_element",ir("$$renderer"),qr(t),qr(o.line),qr(o.column))))}if(c){let o={...l,template:[],init:[]};_l(b,{...i,state:o});let L=Xr([ir("$$renderer")],Fr([...l.init,...Ve(o.template)])),[I,...j]=i5(r,i,h.transform);if(Uu(r))j.push(ci);let H=$r(X("$$renderer.select",I,L,...j));i.state.template.push(...h.render([...l.init,H]));return}if(p){let o;if(r.metadata.synthetic_value_node)o=h.transform(i.visit(r.metadata.synthetic_value_node.expression),r.metadata.synthetic_value_node.metadata.expression);else{let H={...l,template:[],init:[]};_l(b,{...i,state:H});let J=[...l.init,...Ve(H.template)];if(Wr){let W=$t(r.start);J.unshift($r(X("$.push_element",ir("$$renderer"),qr(t),qr(W.line),qr(W.column)))),J.push($r(X("$.pop_element")))}o=Xr([ir("$$renderer")],Fr(J))}let[L,...I]=i5(r,i,h.transform);if(Uu(r))I.push(ci);let j=$r(X("$$renderer.option",L,o,...I));i.state.template.push(...h.render([...l.init,j]));return}if(P!==null){let o={...l,template:[],init:[]};_l(b,{...i,state:o});let L=P;if(P.type!=="Identifier")L=ir(l.scope.generate("$$body")),l.template.push(wt(L,P));l.template.push(ue(L,Fr(Ve([L])),Fr([...o.init,...Ve(o.template)])))}else if(_l(b,{...i,state:l}),(t==="optgroup"||t==="select")&&Uu(r))l.template.push(qr("<!>"));if(!u)l.template.push(qr(`</${t}>`));if(Wr)l.template.push($r(X("$.pop_element")));if(h.is_async())i.state.template.push(...h.render([...l.init,...Ve(l.template)]));else i.state.init.push(...l.init),i.state.template.push(...l.template)}function Ysr(r,i){let t=new Za,s=Hu(r.expression).callee,l=Hu(r.expression).arguments,u=t.transform(i.visit(s),r.metadata.expression),h=l.map((p,w)=>{return t.transform(i.visit(p),r.metadata.arguments[w])}),c=$r((r.expression.type==="CallExpression"?X:al)(u,ir("$$renderer"),...h));if(i.state.template.push(...t.render_block([c])),!t.is_async()&&!i.state.is_standalone)i.state.template.push(kl)}function Wsr(r,i){let t=[],s=[],l=new Za,u=qr("default");for(let w of r.attributes)if(w.type==="SpreadAttribute"){let P=i.visit(w);s.push(l.transform(P,w.metadata.expression))}else if(w.type==="Attribute"){let P=De(w.value,i,l.transform,!1,!0);if(w.name==="name")u=P;else if(w.name!=="slot")t.push(ni(w.name,P))}let h=s.length===0?fi(t):X("$.spread_props",li([fi(t),...s])),c=r.fragment.nodes.length===0?Cs:Ir(i.visit(r.fragment)),p=X("$.slot",ir("$$renderer"),ir("$$props"),u,h,c);i.state.template.push(ca,...l.render_block([$r(p)]),Ee)}function Gsr(r,i){let t=Zf(r.expression,[ir("$$renderer"),...r.parameters],i.visit(r.body));t.___snippet=!0;let s=r.metadata.can_hoist?i.state.hoisted:i.state.init;if(Wr)t.body.body.unshift($r(X("$.validate_snippet_args",ir("$$renderer")))),s.push($r(X("$.prevent_snippet_stringification",t.id)));s.push(t)}function Ksr(r,i){return i.visit(r.expression)}function Xsr(r,i){O1(r,i.visit(r.expression),i)}function Dsr(r,i){let t=i.visit(r.tag);if(Wr){if(t.type!=="Identifier"){let p=i.state.scope.generate("$$tag");i.state.init.push(wt(p,t)),t=ir(p)}if(i.state.init.push($r(X("$.validate_dynamic_element_tag",Ir(t)))),r.fragment.nodes.length>0)i.state.init.push($r(X("$.validate_void_dynamic_element",Ir(t))))}let s={...i.state,namespace:Xu(r,i.state.namespace),template:[],init:[]},l=new Za,u=[];if(Ww(r,{...i,state:s},l.transform),Wr){let p=$t(r.start);u.push($r(X("$.push_element",ir("$$renderer"),t,qr(p.line),qr(p.column))))}let h=Fr([...s.init,...Ve(s.template)]),c=i.visit(r.fragment,s);if(u.push(...l.render([$r(X("$.element",ir("$$renderer"),t,h.body.length>0&&Ir(h),c.body.length>0&&Ir(c)))])),Wr)u.push($r(X("$.pop_element")));i.state.template.push(...za(u,r.metadata.expression.blockers(),r.metadata.expression.has_await))}function ksr(r,i){i.state.template.push(i.visit(r.fragment))}function _sr(r,i){let t=i.visit(r.fragment);i.state.template.push($r(X("$.head",qr(Wh(ee)),ir("$$renderer"),Xr([ir("$$renderer")],t))))}function xsr(r,i){O1(r,ir(i.state.analysis.name),i)}function rar(r,i){let t=[qr("<title>")];_l(r.fragment.nodes,{...i,state:{...i.state,template:t}}),t.push(qr("</title>")),i.state.init.push($r(X("$$renderer.title",Xr([ir("$$renderer")],Fr(Ve(t))))))}function iar(r,i){let t=r.argument;if(t.type==="Identifier"){let s=i.state.scope.get(t.name);if(s?.kind==="store_sub")return X(r.prefix?"$.update_store_pre":"$.update_store",qi("??=",ir("$$store_subs"),fi([])),qr(t.name),ir(t.name.slice(1)),r.operator==="--"&&qr(-1));if(s?.kind==="derived")return X(r.prefix?"$.update_derived_pre":"$.update_derived",s.node,r.operator==="--"&&qr(-1))}return i.next()}function ear(r,i){let t=[];if(i.state.analysis.runes)for(let s of r.declarations){let l=s.init,u=ft(l,i.state.scope);if(!u||u==="$effect.tracking"||u==="$inspect"||u==="$effect.root"){t.push(i.visit(s));continue}if(u==="$props.id")continue;if(u==="$props"){let p=!1,w=gi(s.id,null,{RestElement(M,b){if(b.path.at(-1)===s.id)p=!0},AssignmentPattern(M){if(M.right.type==="CallExpression"&&ft(M.right,i.state.scope)==="$bindable"){let b=M.right.arguments.length?i.visit(M.right.arguments[0]):Xt;return Yd(M.left,b)}}}),P=i.state.analysis.uses_slots?ir("$$slots_"):ir("$$slots");if(w.type==="ObjectPattern"&&p)w.properties.splice(w.properties.length-1,0,dt("init",ir("$$slots"),P),dt("init",ir("$$events"),ir("$$events")));else if(w.type==="Identifier")w=Qf([dt("init",ir("$$slots"),P),dt("init",ir("$$events"),ir("$$events")),h1(ir(w.name))]);t.push(Fi(i.visit(w),ir("$$props")));continue}let h=l.arguments,c=h.length>0?i.visit(h[0]):Xt;if(u==="$derived"||u==="$derived.by"){let w=u==="$derived"&&i.state.analysis.async_deriveds.has(s.init)?me(X("$.async_derived",Ir(c,!0))):X("$.derived",u==="$derived"?Ir(c):c);if(s.id.type==="Identifier")t.push(Fi(i.visit(s.id),w));else{let P=s.init,M=c;if(u!=="$derived"||P.arguments[0].type!=="Identifier"){let L=ir(i.state.scope.generate("$$d"));M=X(L),t.push(Fi(L,w))}let{inserts:b,paths:o}=Ue(s.id,M);for(let{id:L,value:I}of b){L.name=i.state.scope.generate("$$derived_array");let j=i.visit(Ir(I)),H=X("$.derived",j);t.push(Fi(L,H))}for(let L of o){let I=i.visit(L.expression),j=X("$.derived",Ir(I));t.push(Fi(L.node,j))}}continue}if(s.id.type==="Identifier"){t.push(Fi(s.id,c));continue}t.push(...tar(s,i.state.scope,c))}else for(let s of r.declarations){let l=i.state.scope.get_bindings(s),u=l.some((c)=>c.kind==="state"),h=l.some((c)=>c.kind==="bindable_prop");if(!u&&!h){t.push(i.visit(s));continue}if(h){if(s.id.type!=="Identifier"){let P=ir(i.state.scope.generate("tmp")),{inserts:M,paths:b}=Ue(s.id,P);t.push(Fi(P,i.visit(s.init)));for(let{id:o,value:L}of M)o.name=i.state.scope.generate("$$array"),t.push(Fi(o,L));for(let o of b){let L=o.expression,I=o.node.name,j=i.state.scope.get(I),H=ai(ir("$$props"),qr(j.prop_alias??I),!0);t.push(Fi(o.node,Dd(H,L)))}continue}let c=i.state.scope.get(s.id.name),p=ai(ir("$$props"),qr(c.prop_alias??s.id.name),!0),w=p;if(s.init){let P=i.visit(s.init);w=Dd(p,P)}t.push(Fi(s.id,w));continue}t.push(...tar(s,i.state.scope,s.init&&i.visit(s.init)))}if(t.length===0)return Ji;return{...r,declarations:t}}function tar(r,i,t){if(r.id.type==="Identifier")return[Fi(r.id,t)];let s=ir(i.generate("tmp")),{paths:l,inserts:u}=Ue(r.id,s);return[Fi(s,t),...u.map(({id:h,value:c})=>{return h.name=i.generate("$$array"),Fi(h,c)}),...l.map((h)=>{let c=h.expression;return Fi(h.node,c)})]}function aar(r,i){let t=r.fragment.nodes.find((b)=>b.type==="SnippetBlock"&&b.expression.name==="failed"),s=r.attributes.find((b)=>b.type==="Attribute"&&b.name==="failed"),l=r.attributes.find((b)=>b.type==="Attribute"&&b.name==="pending"),u=l&&typeof l.value==="object"&&!Array.isArray(l.value)&&!i.state.scope.evaluate(l.value.expression).is_defined,h=r.fragment.nodes.find((b)=>b.type==="SnippetBlock"&&b.expression.name==="pending"),c=r.fragment.nodes.filter((b)=>!(b.type==="SnippetBlock"&&["failed","pending"].includes(b.expression.name))),p={...r.fragment,nodes:c},w=i.visit(p,{...i.state,scope:i.state.scopes.get(r.fragment)??i.state.scope}),P;if(l||h)if(l&&u&&!h){let{callee:b,pending_block:o}=sar(l,i);P=Fr([ue(b,o,Fr(Ve([ca,w,Ee])))])}else P=l?sar(l,i).pending_block:nTr(h,i);else P=Fr(Ve([ca,w,Ee]));if(!t&&!s){i.state.template.push(...P.body);return}let M=fi([]);if(s&&!t){let b=De(s.value,i,(o)=>o,!1,!0);M.properties.push(ni("failed",b))}else if(t)i.visit(t,i.state),M.properties.push(ni("failed",t.expression));i.state.template.push($r(X("$$renderer.boundary",M,Xr([ir("$$renderer")],P))))}function sar(r,i){let t=De(r.value,i,(l)=>l,!1,!0),s=X(t,ir("$$renderer"));return{callee:t,pending_block:Fr(Ve([_f,$r(s),Ee]))}}function nTr(r,i){return Fr(Ve([_f,i.visit(r.body),Ee]))}var t5={_:o1,AssignmentExpression:Csr,AwaitExpression:Asr,CallExpression:Msr,ClassBody:Ssr,ExpressionStatement:Vsr,Identifier:Bsr,LabeledStatement:Nsr,MemberExpression:jsr,Program:zsr,PropertyDefinition:Zsr,UpdateExpression:iar,VariableDeclaration:ear},cTr={AwaitBlock:Rsr,Component:Tsr,ConstTag:Osr,DebugTag:Lsr,EachBlock:Esr,Fragment:Isr,HtmlTag:Fsr,IfBlock:Hsr,KeyBlock:Usr,RegularElement:Jsr,RenderTag:Ysr,SlotElement:Wsr,SnippetBlock:Gsr,SpreadAttribute:Ksr,SvelteComponent:Xsr,SvelteElement:Dsr,SvelteFragment:ksr,SvelteHead:_sr,SvelteSelf:xsr,TitleElement:rar,SvelteBoundary:aar};function lar(r,i){let t={analysis:r,options:i,scope:r.module.scope,scopes:r.module.scopes,hoisted:[Kd("$","svelte/internal/server"),...r.instance_body.hoisted],legacy_reactive_statements:new Map,init:null,template:null,namespace:i.namespace,preserve_whitespace:i.preserveWhitespace,state_fields:new Map,is_standalone:!1,is_instance:!1},s=gi(r.module.ast,t,t5),l=gi(r.instance.ast,{...t,scopes:r.instance.scopes,is_instance:!0},{...t5,ImportDeclaration(o){return t.hoisted.push(o),Ji},ExportNamedDeclaration(o,L){if(o.declaration)return L.visit(o.declaration);return Ji}}),u=gi(r.template.ast,{...t,scopes:r.template.scopes},{...t5,...cTr}),h=[];for(let[o]of r.reactive_statements){let L=[...t.legacy_reactive_statements].find(([I])=>I===o);if(L===void 0)throw Error("Could not find reactive statement");if(o.body.type==="ExpressionStatement"&&o.body.expression.type==="AssignmentExpression"){for(let I of Ct(o.body.expression.left))if(r.instance.scope.get(I.name)?.kind==="legacy_reactive")h.push(Fi(I))}l.body.push(L[1])}if(h.length>0)l.body.unshift({type:"VariableDeclaration",kind:"let",declarations:h});if(r.uses_component_bindings){let o=u.body.filter((I)=>I.type==="FunctionDeclaration"&&I.___snippet),L=u.body.filter((I)=>I.type!=="FunctionDeclaration"||!I.___snippet);u.body=[...o,be("$$settled",ci),be("$$inner_renderer"),Zf(ir("$$render_inner"),[ir("$$renderer")],Fr(L)),tN(yv("!",ir("$$settled")),Fr([$r(qi("=",ir("$$settled"),ci)),$r(qi("=",ir("$$inner_renderer"),X("$$renderer.copy"))),$r(X("$$render_inner",ir("$$inner_renderer")))])),$r(X("$$renderer.subsume",ir("$$inner_renderer")))]}if([...r.instance.scope.declarations.values()].some((o)=>o.kind==="store_sub"))l.body.unshift(Si("$$store_subs")),u.body.push(ue(ir("$$store_subs"),$r(X("$.unsubscribe_stores",ir("$$store_subs")))));let c=[];for(let[o,L]of r.instance.scope.declarations)if(L.kind==="bindable_prop"&&!o.startsWith("$$"))c.push(ni(L.prop_alias??o,ir(o)));for(let{name:o,alias:L}of r.exports)c.push(ni(L??o,ir(o)));if(c.length>0)u.body.push($r(X("$.bind_props",ir("$$props"),fi(c))));let p=Fr([...l.body,...u.body]);if(p.loc=l.loc,r.props_id)p.body.unshift(wt(r.props_id,X("$.props_id",ir("$$renderer"))));let w=Wr||r.needs_context;if(w)p=Fr([$r(X("$$renderer.component",Xr([ir("$$renderer")],p,!1),Wr&&ir(Su)))]);if(r.uses_rest_props){let o=r.exports.map(({name:L,alias:I})=>I??L);for(let[L,I]of r.instance.scope.declarations)if(I.kind==="bindable_prop")o.push(I.prop_alias??L);p.body.unshift(wt("$$restProps",X("$.rest_props",ir("$$sanitized_props"),li(o.map((L)=>qr(L))))))}if(r.uses_props||r.uses_rest_props)p.body.unshift(wt("$$sanitized_props",X("$.sanitize_props",ir("$$props"))));if(r.uses_slots)p.body.unshift(wt("$$slots",X("$.sanitize_slots",ir("$$props"))));let P=[...t.hoisted,...s.body];if(r.css.ast!==null&&r.inject_styles&&!r.custom_element){let o=qr(r.css.hash),L=qr(T1(r.source,r,i).code);P.push(wt("$$css",fi([ni("hash",o),ni("code",L)]))),p.body.unshift($r(X("$$renderer.global.css.add",ir("$$css"))))}let M=w||c.length>0||r.needs_props||r.uses_props||r.uses_rest_props||r.uses_slots||r.slot_names.size>0,b=Zf(ir(r.name),M?[ir("$$renderer"),ir("$$props")]:[ir("$$renderer")],p);if(i.compatibility.componentApi===4)P.unshift(Ql([["render","$$_render"]],"svelte/server")),P.push(b,$r(qi("=",f1(`${r.name}.render`),Re(null,[ir("$$props"),ir("$$opts")],Fr([Xi(X("$$_render",ir(r.name),fi([ni("props",ir("$$props")),ni("context",ai(ir("$$opts"),"context",!1,!0))])))])))),zf(ir(r.name)));else if(Wr)P.push(b,$r(qi("=",f1(`${r.name}.render`),Re(null,[],Fr([sN("Component.render(...) is no longer valid in Svelte 5. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes for more information")])))),zf(ir(r.name)));else P.push(zf(b));if(Wr)P.unshift($r(qi("=",ai(ir(r.name),"$.FILENAME",!0),qr(ee))));if(i.experimental.async)P.unshift(Ql([],"svelte/internal/flags/async"));return{type:"Program",sourceType:"module",body:P}}class ke{#r=[];#i=[];#t=new Set;add(r,i,t=!1){if(this.check_blockers(i),!(i.has_call||i.has_await||t&&i.has_state))return r;let l=ir("#");return(i.has_await?this.#i:this.#r).push({id:l,expression:r}),l}check_blockers(r){for(let i of r.dependencies)if(i.blocker)this.#t.add(i.blocker)}apply(){return[...this.#r,...this.#i].map((r,i)=>{return r.id.name=`$${i}`,r.id})}blockers(){return this.#t.size>0?li([...this.#t]):void 0}deriveds(r=!0){return this.#r.map((i)=>be(i.id,X(r?"$.derived":"$.derived_safe_equal",Ir(i.expression))))}async_ids(){return this.#i.map((r)=>r.id)}async_values(){if(this.#i.length===0)return;return li(this.#i.map((r)=>Xr([],r.expression,!0)))}sync_values(){if(this.#r.length===0)return;return li(this.#r.map((r)=>Xr([],r.expression)))}}function Du(r,i,t=i.state,s=(l,u)=>t.memoizer.add(l,u)){let l=[],u=Ia(""),h=[u],c=!1,p=!1;for(let P=0;P<r.length;P++){let M=r[P];if(M.type==="Text")u.value.cooked+=M.data;else if(M.expression.type==="Literal"){if(M.expression.value!=null)u.value.cooked+=M.expression.value+""}else if(M.expression.type!=="Identifier"||M.expression.name!=="undefined"||t.scope.get("undefined")){let b=s(ae(i,M.expression,M.metadata.expression,t),M.metadata.expression),o=t.scope.evaluate(b);if(p||=M.metadata.expression.has_await||M.metadata.expression.has_blockers(),c||=p||M.metadata.expression.has_state&&!o.is_known,r.length===1){if(o.is_known)b=qr((o.value??"")+"");return{value:b,has_state:c}}if(b.type==="LogicalExpression"&&b.right.type==="Literal"&&(b.operator==="??"||b.operator==="||")){if(b.right.value===null)b={...b,right:qr("")}}if(o.is_known)u.value.cooked+=(o.value??"")+"";else{if(!o.is_defined)b=ua("??",b,qr(""));l.push(b),u=Ia("",P+1===r.length),h.push(u)}}}for(let P of h)P.value.raw=jf(P.value.cooked);return{value:l.length>0?Fu(h,l):qr(u.value.cooked),has_state:c}}function xf(r){let{memoizer:i}=r,t=i.apply();return $r(X("$.template_effect",Xr(t,r.update.length===1&&r.update[0].type==="ExpressionStatement"?r.update[0].expression:Fr(r.update)),i.sync_values(),i.async_values(),i.blockers()))}function L1(r){let i=r.split("."),t=i.shift(),s=ir(t);while(t=i.shift()){let l=!Wy.test(t);s=ai(s,l?qr(t):ir(t),l)}return s}function Gw(r,i,{state:t,visit:s}){let[l,u]=r.type==="SequenceExpression"?r.expressions:[null,null],h=[],c=[],p=[],w={...t.transform};gi(l??r,null,{Identifier(L,{path:I}){if(p.includes(L.name))return;p.push(L.name);let j=I.at(-1);if(!Se(L,j))return;let H=t.scope.get(L.name);if(!H)return;for(let[J,W]of t.scopes)if(J.type==="EachBlock"&&W===H.scope){if(h.push(L),c.push(s(L)),w[L.name])w[L.name]={...w[L.name],read:(sr)=>sr};break}}});let P={...t,transform:w},M=s(l??r,P),b=s(u??qi("=",r,ir("$$value")),P),o=M;while(o.type==="MemberExpression")o.optional=!0,o=o.object;return M=M.type==="ArrowFunctionExpression"?Xr([...h],M.body):M.type==="FunctionExpression"?Re(null,[...h],M.body):l?M:Xr([...h],M),b=b.type==="ArrowFunctionExpression"?Xr([b.params[0]??ir("_"),...h],b.body):b.type==="FunctionExpression"?Re(null,[b.params[0]??ir("_"),...h],b.body):u?b:Xr([ir("$$value"),...h],b),X("$.bind_this",i,b,M,c.length>0&&Ir(li(c)))}function Kw(r,i,t){if(i.expression.type==="SequenceExpression")return;let s=se(i.expression);if((s&&r.scope.get(s.name))?.kind==="store_sub")return;let u=$t(i.start),h=t.object;r.init.push($r(X("$.validate_binding",qr(r.analysis.source.slice(i.start,i.end)),i.metadata.expression.blockers(),Ir(r.store_to_invalidate?oe([X("$.mark_store_binding"),h]):h),Ir(t.computed?t.property:qr(t.property.name)),qr(u.line),qr(u.column))))}function Xw(r,i,t){let s=r.type==="AssignmentExpression"?r.left:r.argument;if(!Wr||s.type!=="MemberExpression"||Kt(r,"ownership_invalid_mutation"))return t;let l=se(s);if(!l)return t;let u=i.state.scope.get(l.name);if(u?.kind!=="prop"&&u?.kind!=="bindable_prop")return t;let h=i.state;h.analysis.needs_mutation_validation=!0;let c=[];while(s.type==="MemberExpression"){if(s.property.type==="Literal")c.unshift(s.property);else if(s.property.type==="Identifier"){let w=Object.hasOwn(i.state.transform,s.property.name)?i.state.transform[s.property.name]:null;if(s.computed)c.unshift(w?.read?w.read(s.property):s.property);else c.unshift(qr(s.property.name))}else return t;s=s.object}c.unshift(qr(l.name));let p=$t(s.start);return X("$$ownership_validator.mutation",qr(u.prop_alias),li(c),t,p&&qr(p.line),p&&qr(p.column))}function ae(r,i,t,s=r.state){let l=r.visit(i,s);if(r.state.analysis.runes||r.state.analysis.maybe_runes)return l;if(!t.has_call&&!t.has_member_expression&&!t.has_assignment)return l;let u=oe([]);for(let c of t.references){if(c.kind==="normal"&&c.declaration_kind!=="import")continue;var h=Xe({...c.node},s);if(c.kind==="bindable_prop"||c.kind==="template"||c.declaration_kind==="import"||c.node.name==="$$props"||c.node.name==="$$restProps")h=X("$.deep_read_state",h);u.expressions.push(h)}return u.expressions.push(X("$.untrack",Ir(l))),u}function Ns(r,i,t,s){if(!Wr)return $r(r);let l=i.start!==void 0&&$t(i.start);if(!l)return $r(r);return $r(X("$.add_svelte_meta",Xr([],r),qr(t),ir(Su),qr(l.line),qr(l.column),s&&fi(Object.entries(s).map(([u,h])=>ni(u,qr(h))))))}function uar(r,i){let t=r.expression===null?Cs:Ir(i.visit(r.expression)),s=$r(X("$.animation",i.state.node,Ir(i.visit(L1(r.name))),t));if(r.metadata.expression.is_async())s=$r(X("$.run_after_blockers",r.metadata.expression.blockers(),Ir(Fr([s]))));i.state.after_update.push(s)}var Dw=(r,i)=>{let t={...i.state,in_constructor:!1,in_derived:!1};if(r.type==="FunctionExpression"){let s=i.path.at(-1);t.in_constructor=s.type==="MethodDefinition"&&s.kind==="constructor"}i.next(t)};function far(r,i){return Dw(r,i)}function har(r,i){let t=Zw(r,i,yTr)??i.next();return Xw(r,i,t)}function e5(r){return["=","||=","&&=","??="].includes(r)}function yTr(r,i,t,s){if(s.state.analysis.runes&&i.type==="MemberExpression"){let w=Ke(i.property),P=w&&s.state.state_fields.get(w);if(P){if(P.node.type==="AssignmentExpression"&&i===P.node.left){let M=ft(t,s.state.scope);if(M){let b={...s.state,in_constructor:M!=="$derived"&&M!=="$derived.by"},o=s.visit(t,b);if(Wr){let L=s.path.findLast((I)=>I.type==="ClassDeclaration"||I.type==="ClassExpression");o=X("$.tag",o,qr(`${L?.id?.name??"[class]"}.${w}`))}return qi(r,ai(ns,P.key),o)}}if(i.property.type==="PrivateIdentifier"){let M=s.visit(Yf(r,i,t)),b=P.type==="$state"&&e5(r)&&ja(M,s.state.scope);return X("$.set",i,M,b&&ci)}}}let l=i;while(l.type==="MemberExpression")l=l.object;if(l.type!=="Identifier")return null;let u=s.state.scope.get(l.name);if(!u)return null;let h=Object.hasOwn(s.state.transform,l.name)?s.state.transform[l.name]:null,c=s.path.map((w)=>w.type);if(l===i&&h?.assign){let w=c.at(-1)==="BindDirective"&&c.at(-2)==="RegularElement",P=s.visit(Yf(r,i,t));return h.assign(l,P,!w&&u.kind!=="prop"&&u.kind!=="bindable_prop"&&u.kind!=="raw_state"&&u.kind!=="derived"&&u.kind!=="store_sub"&&s.state.analysis.runes&&ja(t,s.state.scope)&&e5(r))}if(h?.mutate){let w=h.mutate(l,qi(r,s.visit(i),s.visit(t)));if(u.legacy_indirect_bindings.size>0)w=oe([w,X("$.invalidate_inner_signals",Xr([],Fr(Array.from(u.legacy_indirect_bindings).map((P)=>$r(Xe({...P.node},s.state))))))]);return w}let p=Wr&&c.at(-1)!=="ExpressionStatement"&&e5(r)&&!s.state.scope.evaluate(t).is_primitive;if(c.at(-1)==="ArrowFunctionExpression"&&(c.at(-2)==="RegularElement"||c.at(-2)==="SvelteElement")){if(s.path.at(-2).attributes.find((M)=>{if(M.type!=="Attribute"||!re(M))return!1;return Ba(M)===s.path.at(-1)}))p=!1}if(c.at(-1)==="BindDirective"||c.at(-1)==="Component"||c.at(-1)==="SvelteComponent"||c.at(-1)==="ArrowFunctionExpression"&&(c.at(-2)==="BindDirective"||c.at(-2)==="Component"&&c.at(-3)==="Fragment"||c.at(-2)==="SequenceExpression"&&(c.at(-3)==="Component"||c.at(-3)==="SvelteComponent"||c.at(-3)==="BindDirective")))p=!1;if(i.type==="MemberExpression"&&p){let w=r!=="=",P=w&&At(t),M=X(P?"$.assign_async":"$.assign",i.object,i.computed?i.property:qr(i.property.name),qr(r),w?Xr([],t,P):t,qr(Vf(i)));if(P)M=me(M);return s.visit(M)}return null}function kw(r,i){let t=!1,s=r.name.slice(2);if(zV(s))s=s.slice(0,-7),t=!0;let l=Array.isArray(r.value)?r.value[0]:r.value,u=Dv(l.expression,l.metadata.expression,i);if(r.metadata.delegated)i.state.events.add(s);let h=$r(s5(i,s,u,t,WV(s)?!0:void 0,r.metadata.delegated)),c=i.path.at(-1).type;if(c==="SvelteDocument"||c==="SvelteWindow"||c==="SvelteBody")i.state.init.push(h);else i.state.after_update.push(h)}function s5(r,i,t,s,l,u){let h=t;if(Wr&&t.type==="ArrowFunctionExpression"){let c=r.state.scope.generate(i);h=Re(ir(c),t.params,t.body.type==="BlockStatement"?t.body:Fr([Xi(t.body)]),t.async)}return X(u?"$.delegated":"$.event",qr(i),r.state.node,h,s&&ci,l===void 0?void 0:qr(l))}function Dv(r,i,t){if(r===null)return Re(null,[ir("$$arg")],Fr([$r(X("$.bubble_event.call",ns,ir("$$props"),ir("$$arg")))]));let s=t.visit(r);if(s.type==="ArrowFunctionExpression"||s.type==="FunctionExpression")return s;if(s.type==="Identifier"){let u=t.state.scope.get(s.name);if(u?.is_function())return s;if(!Wr&&u?.declaration_kind!=="import")return s}if(i.has_call){let u=ir(t.state.scope.generate("event_handler"));t.state.init.push(Si(u,X("$.derived",Ir(s)))),s=X("$.get",u)}let l=X(ai(s,"apply",!1,!0),ns,ir("$$args"));if(Wr){let u=$t(r.start),h=r.type==="CallExpression"&&r.arguments.length===0&&r.callee.type==="Identifier";l=X("$.apply",Ir(s),ns,ir("$$args"),ir(t.state.analysis.name),li([qr(u.line),qr(u.column)]),nar(r)&&ci,h&&ci)}return Re(null,[h1(ir("$$args"))],Fr([$r(l)]))}function nar(r){if(r.type==="CallExpression"||r.type==="NewExpression"||r.type==="AssignmentExpression"||r.type==="UpdateExpression")return!0;if(r.type==="SequenceExpression")return r.expressions.some(nar);return!1}function car(r,i){if(re(r))kw(r,i)}function fe(r){return X("$.get",r)}function _w(r){for(let[i,t]of r.state.scope.declarations)if(q1(t,r.state.analysis)||t.kind==="derived"||t.kind==="legacy_reactive")r.state.transform[i]={read:t.declaration_kind==="var"?(s)=>X("$.safe_get",s):fe,assign:(s,l,u=!1)=>{let h=X("$.set",s,l,u&&ci);if(r.state.scope.get(`$${s.name}`)?.kind==="store_sub")h=X("$.store_unsub",h,qr(`$${s.name}`),ir("$$stores"));return h},mutate:(s,l)=>{if(r.state.analysis.runes)return l;return X("$.mutate",s,l)},update:(s)=>{return X(s.prefix?"$.update_pre":"$.update",s.argument,s.operator==="--"&&qr(-1))}}}function par(r,i){i.state.template.push_comment();let t=Ir(ae(i,r.expression,r.metadata.expression),r.metadata.expression.has_await),s,l;if(r.then){let h={...i,state:{...i.state,transform:{...i.state.transform}}},c=r.value&&yar(r.value,h),p=[ir("$$anchor")];if(c)p.push(c.id);let w=c?.declarations??[],P=h.visit(r.then,h.state);s=Xr(p,Fr([...w,...P.body]))}if(r.catch){let h={...i,state:{...i.state}},c=r.error&&yar(r.error,h),p=[ir("$$anchor")];if(c)p.push(c.id);let w=c?.declarations??[],P=h.visit(r.catch,h.state);l=Xr(p,Fr([...w,...P.body]))}let u=Ns(X("$.await",i.state.node,t,r.pending?Xr([ir("$$anchor")],i.visit(r.pending)):Cs,s,l),r,"await");if(r.metadata.expression.has_blockers())i.state.init.push($r(X("$.async",i.state.node,r.metadata.expression.blockers(),li([]),Xr([i.state.node],Fr([u])))));else i.state.init.push(u)}function yar(r,i){if(r.type==="Identifier")return i.state.transform[r.name]={read:fe},{id:r,declarations:null};let t=i.visit(r),s=Ct(r),l=ir("$$source"),u=ir("$$value"),h=Fr([Si(t,X("$.get",l)),Xi(fi(s.map((p)=>dt("init",p,p))))]),c=[Si(u,Qu(i.state,h))];for(let p of s)i.state.transform[p.name]={read:fe},c.push(Si(p,Qu(i.state,ai(X("$.get",u),p))));return{id:l,declarations:c}}function mar(r,i){let t=i.visit(r.argument);if(i.state.analysis.pickled_awaits.has(r))return fl(t);else if(Wr&&!Kt(r,"await_reactivity_loss"))return X(me(X("$.track_reactivity_loss",t)));return t===r.argument?r:{...r,argument:t}}function oar(r,i){if(Wr){let t=r.operator;if(t==="==="||t==="!==")return X("$.strict_equals",i.visit(r.left),i.visit(r.right),t==="!=="&&Zl);if(t==="=="||t==="!=")return X("$.equals",i.visit(r.left),i.visit(r.right),t==="!="&&Zl)}i.next()}function rh(r,i,t,s){let l=s.state.metadata.bound_contenteditable,u=i,h=0,c=[];function p(M){if(h===0)return u(M);return X("$.sibling",u(!1),(M||h!==1)&&qr(h),M&&ci)}function w(M,b,o){let L=p(M),I=L;if(I.type!=="Identifier")I=ir(s.state.scope.generate(b),o),s.state.init.push(Si(I,L));return u=()=>I,h=1,I}function P(M){if(M.every((H)=>H.type==="Text")){h+=1,s.state.template.push_text(M);return}s.state.template.push_text([{type:"Text",data:" ",raw:" ",start:-1,end:-1}]);let{has_state:b,value:o}=Du(M,s),L=M.length===1,I=w(L,"text"),j=$r(X("$.set_text",I,o));if(b&&!l)s.state.update.push(j);else s.state.init.push($r(qi("=",ai(I,"nodeValue"),o)))}for(let M of r)if(M.type==="Text"||M.type==="ExpressionTag")c.push(M);else{if(c.length>0)P(c),c=[];let b=s.state;if(a5(M))h+=1;else if(M.type==="EachBlock"&&r.length===1&&t&&!M.metadata.expression.is_async())M.metadata.is_controlled=!0;else if(M.type==="HtmlTag"&&r.length===1&&t)M.metadata.is_controlled=!0;else{let o=w(!1,M.type==="RegularElement"?M.name:"node",M.type==="RegularElement"?M.name_loc:null);b={...s.state,node:o}}s.visit(M,b)}if(c.length>0)P(c);if(h>1)h-=1,s.state.init.push($r(X("$.next",h!==1&&qr(h))))}function a5(r){if(r.type!=="RegularElement")return!1;if(r.fragment.metadata.dynamic)return!1;if(Us(r))return!1;for(let i of r.attributes){if(i.type!=="Attribute")return!1;if(re(i))return!1;if(Gh(i.name))return!1;if(i.name==="dir")return!1;if(["input","textarea"].includes(r.name)&&["value","checked"].includes(i.name))return!1;if(r.name==="option"&&i.name==="value")return!1;if(r.name==="img"&&i.name==="loading")return!1;if(i.value!==!0&&!ut(i))return!1}return!0}var vTr="accent-height accumulate additive alignment-baseline allowReorder alphabetic amplitude arabic-form ascent attributeName attributeType autoReverse azimuth baseFrequency baseline-shift baseProfile bbox begin bias by calcMode cap-height class clip clipPathUnits clip-path clip-rule color color-interpolation color-interpolation-filters color-profile color-rendering contentScriptType contentStyleType cursor cx cy d decelerate descent diffuseConstant direction display divisor dominant-baseline dur dx dy edgeMode elevation enable-background end exponent externalResourcesRequired fill fill-opacity fill-rule filter filterRes filterUnits flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight format from fr fx fy g1 g2 glyph-name glyph-orientation-horizontal glyph-orientation-vertical glyphRef gradientTransform gradientUnits hanging height href horiz-adv-x horiz-origin-x id ideographic image-rendering in in2 intercept k k1 k2 k3 k4 kernelMatrix kernelUnitLength kerning keyPoints keySplines keyTimes lang lengthAdjust letter-spacing lighting-color limitingConeAngle local marker-end marker-mid marker-start markerHeight markerUnits markerWidth mask maskContentUnits maskUnits mathematical max media method min mode name numOctaves offset onabort onactivate onbegin onclick onend onerror onfocusin onfocusout onload onmousedown onmousemove onmouseout onmouseover onmouseup onrepeat onresize onscroll onunload opacity operator order orient orientation origin overflow overline-position overline-thickness panose-1 paint-order pathLength patternContentUnits patternTransform patternUnits pointer-events points pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits r radius refX refY rendering-intent repeatCount repeatDur requiredExtensions requiredFeatures restart result rotate rx ry scale seed shape-rendering slope spacing specularConstant specularExponent speed spreadMethod startOffset stdDeviation stemh stemv stitchTiles stop-color stop-opacity strikethrough-position strikethrough-thickness string stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width style surfaceScale systemLanguage tabindex tableValues target targetX targetY text-anchor text-decoration text-rendering textLength to transform type u1 u2 underline-position underline-thickness unicode unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical values version vert-adv-y vert-origin-x vert-origin-y viewBox viewTarget visibility width widths word-spacing writing-mode x x-height x1 x2 xChannelSelector xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xml:lang xml:space y y1 y2 yChannelSelector z zoomAndPan".split(" "),bar=new Map;vTr.forEach((r)=>{bar.set(r.toLowerCase(),r)});function l5(r){return r=r.toLowerCase(),bar.get(r)||r}class kv{contains_script_tag=!1;needs_import_node=!1;nodes=[];#r=[this.nodes];#i;#t=this.nodes;push_element(r,i,t){this.#i={type:"element",name:r,attributes:{},children:[],is_html:t,start:i},this.#t.push(this.#i),this.#t=this.#i.children,this.#r.push(this.#t)}push_comment(r){this.#t.push({type:"comment",data:r})}push_text(r){this.#t.push({type:"text",nodes:r})}pop_element(){this.#r.pop(),this.#t=this.#r.at(-1)}set_prop(r,i){this.#i.attributes[r]=i}as_html(){return Fu([Ia(this.nodes.map(dar).join(""),!0)],[])}as_tree(){if(this.nodes[0].type==="comment")this.nodes.unshift({type:"comment",data:void 0});return li(this.nodes.map(war))}}function dar(r){if(r.type==="text")return r.nodes.map((t)=>t.raw).join("");if(r.type==="comment")return r.data?`<!--${r.data}-->`:"<!>";let i=`<${r.name}`;for(let t in r.attributes){let s=r.attributes[t];if(i+=` ${r.is_html?t.toLowerCase():t}`,s!==void 0)i+=`="${pl(s,!0)}"`}if(Ta(r.name))i+="/>";else i+=">",i+=r.children.map(dar).join(""),i+=`</${r.name}>`;return i}function war(r){if(r.type==="text")return qr(r.nodes.map((s)=>s.data).join(""));if(r.type==="comment")return r.data?li([qr(`// ${r.data}`)]):null;let i=li([qr(r.name)]),t=fi([]);for(let s in r.attributes){let l=r.attributes[s];t.properties.push(dt("init",Ae(l5(s)),l===void 0?Xt:qr(l)))}if(t.properties.length>0||r.children.length>0)i.elements.push(t.properties.length>0?t:Cs);if(r.children.length>0){let s=r.children.map(war);if(i.elements.push(...s),r.name==="pre"||r.name==="textarea"){let l=s[0];if(l?.type==="Literal")l.value=l.value.replace(Of,"")}}return i}function Car(r){let i=li([]);for(let t of r){if(t.type!=="element")continue;let{line:s,column:l}=$t(t.start),u=li([qr(s),qr(l)]),h=Car(t.children);if(h.elements.length>0)u.elements.push(h);i.elements.push(u)}return i}function _v(r,i,t=0){let s=r.options.fragments==="tree",l=s?r.template.as_tree():r.template.as_html();if(s){if(i==="svg")t|=OV;if(i==="mathml")t|=LV}let u=X(s?"$.from_tree":`$.from_${i}`,l,t?qr(t):void 0);if(r.template.contains_script_tag)u=X("$.with_script",u);if(Wr)u=X("$.add_locations",u,ai(ir(r.analysis.name),"$.FILENAME",!0),Car(r.template.nodes));return u}function Par(r,i){let t=i.state.metadata.namespace==="html"&&r.name!=="svg",s=t?r.name.toLowerCase():r.name;if(i.state.template.push_element(s,r.start,t),s==="noscript"){i.state.template.pop_element();return}let l=Us(r);i.state.template.needs_import_node||=s==="video"||l,i.state.template.contains_script_tag||=s==="script";let u=[],h=[],c=[],p=[],w=[],P=new Map,M=new Map,b=r.metadata.has_spread,o=!1,L=!1;for(let q of r.attributes)switch(q.type){case"AnimateDirective":p.push(q);break;case"Attribute":if(q.name==="is"&&i.state.metadata.namespace==="html"){let{value:T}=de(q.value,i);if(T.type==="Literal"&&typeof T.value==="string"){i.state.template.set_prop("is",T.value);continue}}u.push(q),P.set(q.name,q);break;case"BindDirective":M.set(q.name,q),p.push(q);break;case"ClassDirective":h.push(q);break;case"LetDirective":i.visit(q,{...i.state,let_directives:w});break;case"OnDirective":p.push(q);break;case"SpreadAttribute":u.push(q);break;case"StyleDirective":c.push(q);break;case"TransitionDirective":p.push(q);break;case"UseDirective":o=!0,p.push(q);break;case"AttachTag":p.push(q);break}let I={...i.state,init:[],after_update:[]};for(let q of p)if(q.type==="OnDirective"){let T=i.visit(q);if(o)I.init.push($r(X("$.effect",Ir(T))));else I.after_update.push($r(T))}else i.visit(q,I);if(s==="input"){let q=u.some((V)=>V.type==="Attribute"&&(V.name==="value"||V.name==="checked")&&!ut(V));if(!u.some((V)=>V.type==="Attribute"&&(V.name==="defaultValue"||V.name==="defaultChecked"))&&(b||M.has("value")||M.has("checked")||M.has("group")||!M.has("group")&&q))if(b)L=!0;else i.state.init.push($r(X("$.remove_input_defaults",i.state.node)))}if(s==="textarea"){let q=P.get("value")??P.get("checked"),T=q&&!ut(q);if(b||M.has("value")||T)i.state.init.push($r(X("$.remove_textarea_child",i.state.node)))}i.state.init.push(...w);let j=i.state.node,H=s==="option"||s==="select"||M.has("group")||M.has("checked");if(b)xw(u,h,c,i,r,j,L);else for(let q of u){if(re(q)){kw(q,i);continue}if(H&&q.name==="value")continue;let T=$ar(r,q);if(!l&&!Gh(q.name)&&(q.value===!0||ut(q))&&(T!=="class"||h.length===0)&&(T!=="style"||c.length===0)){let V=ut(q)?q.value[0].data:!0;if(T==="class"&&r.metadata.scoped&&i.state.analysis.css.hash)if(V===!0||V==="")V=i.state.analysis.css.hash;else V+=" "+i.state.analysis.css.hash;if(T!=="class"||V)i.state.template.set_prop(q.name,V===!0?"":V)}else if(T==="autofocus"){let{value:V}=de(q.value,i);i.state.init.push($r(X("$.autofocus",j,V)))}else if(T==="class")r2(r,j,q,h,i,t);else if(T==="style")gar(j,q,c,i);else if(l)mTr(j,q,i);else{let{value:V,has_state:S}=de(q.value,i,(er,tr)=>i.state.memoizer.add(er,tr)),k=pTr(r,j,T,V,u);(S?i.state.update:i.state.init).push($r(k))}}if(Xh(s)&&(b||o||P.has("onload")||P.has("onerror")))i.state.after_update.push($r(X("$.replay_events",j)));let J={...i.state.metadata,namespace:Xu(r,i.state.metadata.namespace)};if(M.has("innerHTML")||M.has("innerText")||M.has("textContent")){let q=P.get("contenteditable");if(q&&(q.value===!0||ut(q)&&q.value[0].data==="true"))J.bound_contenteditable=!0}let W={...i.state,metadata:J,scope:i.state.scopes.get(r.fragment),preserve_whitespace:i.state.preserve_whitespace||s==="pre"||s==="textarea"},{hoisted:sr,trimmed:rr}=Ku(r,r.fragment.nodes,i.path,W.metadata.namespace,W,s==="script"||W.preserve_whitespace,W.options.preserveComments),hr={...W,init:[],update:[],after_update:[],snippets:[]};for(let q of sr)i.visit(q,hr);if(rr.every((q)=>q.type==="Text"||q.type==="ExpressionTag")&&rr.every((q)=>q.type==="Text"||!q.metadata.expression.has_state&&!q.metadata.expression.has_await&&!q.metadata.expression.has_blockers())&&rr.some((q)=>q.type==="ExpressionTag")){let{value:q}=Du(rr,i,hr);if(!(q.type==="Literal"&&q.value===""))hr.init.push($r(qi("=",ai(i.state.node,"textContent"),q)))}else if(Uu(r)){let q=i.state.node;i.state.template.push_comment();let T=i.state.scope.root.unique(`${s}_content`),V=ir(i.state.scope.generate("fragment")),S=ir(i.state.scope.generate("anchor")),k={...W,init:[],update:[],after_update:[],template:new kv};rh(rr,(U)=>X("$.first_child",V,U&&ci),!1,{...i,state:k});let er=_v(k,J.namespace,ud);i.state.hoisted.push(Si(T,er));let tr=Fr([Si(S,X("$.child",q)),Si(V,X(T)),...k.init,...k.update.length>0?[xf(k)]:[],...k.after_update,$r(X("$.append",S,V))]);hr.init.push($r(X("$.customizable_select",q,Xr([],tr))))}else{let q=i.state.node,T=rr.some((V)=>V.type!=="Text"&&!a5(V));if(s==="template")T=!0,hr.init.push($r(X("$.hydrate_template",q))),q=ai(q,"content");if(rh(rr,(V)=>X("$.child",q,V&&ci),!0,{...i,state:hr}),T)hr.init.push($r(X("$.reset",i.state.node)))}if(r.fragment.nodes.some((q)=>q.type==="SnippetBlock"))i.state.init.push(Fr([...hr.snippets,...hr.init,...I.init,hr.update.length>0?xf(hr):Ji,...hr.after_update,...I.after_update]));else if(r.fragment.metadata.dynamic)i.state.init.push(...hr.init,...I.init),i.state.update.push(...hr.update),i.state.after_update.push(...hr.after_update,...I.after_update);else i.state.init.push(...I.init),i.state.after_update.push(...I.after_update);if(s==="selectedcontent")i.state.init.push($r(X("$.selectedcontent",i.state.node,Xr([ir("$$element")],qi("=",i.state.node,ir("$$element"))))));if(P.has("dir")){let q=ai(j,"dir");i.state.update.push($r(qi("=",q,q)))}if(!b&&H){if(r.metadata.synthetic_value_node){let q=r.metadata.synthetic_value_node,T=qs("value",null,q.start,q.end,[q]);qar(s,j,T,i,!0)}else for(let q of u)if(q.name==="value"){qar(s,j,q,i);break}}i.state.template.pop_element()}function u5(r,i,t=i.state.memoizer){let s=[],l=new vt;for(let h of r){l.merge(h.metadata.expression);let c=i.visit(h.expression);s.push(ni(h.name,c))}let u=fi(s);return t.add(u,l)}function f5(r,i,t=i.state.memoizer){let s=fi([]),l=fi([]),u=new vt;for(let c of r){u.merge(c.metadata.expression);let p=c.value===!0?Xe(ir(c.name),i.state):de(c.value,i).value;(c.modifiers.includes("important")?l:s).properties.push(ni(c.name,p))}let h=l.properties.length?li([s,l]):s;return t.add(h,u)}function pTr(r,i,t,s,l){if(t==="muted")return qi("=",ai(i,ir("muted")),s);if(t==="value")return X("$.set_value",i,s);if(t==="checked")return X("$.set_checked",i,s);if(t==="selected")return X("$.set_selected",i,s);if(t==="defaultValue"&&(l.some((u)=>u.type==="Attribute"&&u.name==="value"&&ut(u))||r.name==="textarea"&&r.fragment.nodes.length>0))return X("$.set_default_value",i,s);if(t==="defaultChecked"&&l.some((u)=>u.type==="Attribute"&&u.name==="checked"&&u.value===!0))return X("$.set_default_checked",i,s);if(YV(t))return qi("=",ai(i,t),s);return X(t.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute",i,qr(t),s,Kt(r,"hydration_attribute_changed")&&ci)}function mTr(r,i,t){let{value:s,has_state:l}=de(i.value,t),u=X("$.set_custom_element_data",r,qr(i.name),s),h=l?X("$.template_effect",Ir(u)):u;t.state.init.push($r(h))}function qar(r,i,t,s,l=!1){let u=s.state,h=r==="select"&&t.value!==!0&&!ut(t),{value:c,has_state:p}=de(t.value,s,(o,L)=>u.memoizer.add(o,L)),w=s.state.scope.evaluate(c),P=qi("=",ai(i,"__value"),c),M=qi("=",ai(i,"value"),w.is_defined?P:ua("??",P,qr(""))),b=$r(h?oe([M,X("$.select_option",i,c)]):l?P:M);if(p){let o=ir(u.scope.generate(`${i.name}_value`)),L=r==="option"?fi([]):void 0;u.init.push(Si(o,L)),u.update.push(ue(Va("!==",o,qi("=",o,c)),Fr([b])))}else u.init.push(b);if(h)u.init.push($r(X("$.init_select",i)))}function xw(r,i,t,s,l,u,h=!1){let c=[],p=new ke;for(let P of r)if(P.type==="Attribute"){let{value:M}=de(P.value,s,(b,o)=>p.add(b,o));if(re(P)&&(M.type==="ArrowFunctionExpression"||M.type==="FunctionExpression")){let b=s.state.scope.generate("event_handler");s.state.init.push(Si(b,M)),c.push(ni(P.name,ir(b)))}else c.push(ni(P.name,M))}else{let M=s.visit(P);M=p.add(M,P.metadata.expression),c.push(fa(M))}if(i.length)c.push(dt("init",li([ir("$.CLASS")]),u5(i,s,p)));if(t.length)c.push(dt("init",li([ir("$.STYLE")]),f5(t,s,p)));let w=p.apply();s.state.init.push($r(X("$.attribute_effect",u,Xr(w,fi(c)),p.sync_values(),p.async_values(),p.blockers(),l.metadata.scoped&&s.state.analysis.css.hash!==""&&qr(s.state.analysis.css.hash),h&&ci,Kt(l,"hydration_attribute_changed")&&ci)))}function de(r,i,t=(s)=>s){if(r===!0)return{value:ci,has_state:!1};if(!Array.isArray(r)||r.length===1){let s=Array.isArray(r)?r[0]:r;if(s.type==="Text")return{value:qr(s.data),has_state:!1};let l=ae(i,s.expression,s.metadata.expression);return{value:t(l,s.metadata.expression),has_state:s.metadata.expression.has_state||s.metadata.expression.is_async()}}return Du(r,i,i.state,t)}function $ar(r,i){if(!r.metadata.svg&&!r.metadata.mathml)return JV(i.name);return i.name}function r2(r,i,t,s,l,u){let{value:h,has_state:c}=de(t.value,l,(o,L)=>{if(t.metadata.needs_clsx)o=X("$.clsx",o);return l.state.memoizer.add(o,L)}),p,w,P;if(s.length)if(P=u5(s,l),c||=s.some((o)=>o.metadata.expression.has_state||o.metadata.expression.is_async()),c)p=ir(l.state.scope.generate("classes")),l.state.init.push(Hs("let",[Fi(p)])),w=p;else w=fi([]);let M;if(r.metadata.scoped&&l.state.analysis.css.hash)if(h.type==="Literal"&&(h.value===""||h.value===null))h=qr(l.state.analysis.css.hash);else if(h.type==="Literal"&&typeof h.value==="string")h=qr(pl(h.value,!0)+" "+l.state.analysis.css.hash);else M=qr(l.state.analysis.css.hash);if(!M&&P)M=Cs;let b=X("$.set_class",i,u?qr(1):qr(0),h,M,w,P);if(p)b=qi("=",p,b);(c?l.state.update:l.state.init).push($r(b))}function gar(r,i,t,s){let{value:l,has_state:u}=de(i.value,s,(P,M)=>s.state.memoizer.add(P,M)),h,c,p;if(t.length)if(p=f5(t,s),u||=t.some((P)=>P.metadata.expression.has_state||P.metadata.expression.is_async()),u)h=ir(s.state.scope.generate("styles")),s.state.init.push(Hs("let",[Fi(h)])),c=h;else c=fi([]);let w=X("$.set_style",r,l,c,p);if(h)w=qi("=",h,w);(u?s.state.update:s.state.init).push($r(w))}function Rar(r,i){let t=i.visit(r.expression),s=cl[r.name],l=i.path.at(-1),u,h;if(t.type==="SequenceExpression")[u,h]=t.expressions;else{if(Wr&&i.state.analysis.runes&&t.type==="MemberExpression"&&(r.name!=="this"||i.path.some(({type:M})=>M==="IfBlock"||M==="EachBlock"||M==="AwaitBlock"||M==="KeyBlock"))&&!Kt(r,"binding_property_non_reactive"))Kw(i.state,r,t);let P=i.visit(qi("=",r.expression,ir("$$value")));if(Wr)u=Re(ir("get",r.name_loc),[],Fr([Xi(t)])),h=Re(ir("set",r.name_loc),[ir("$$value")],Fr([$r(P)]));else if(u=Ir(t),h=OP(Xr([ir("$$value")],i.visit(qi("=",r.expression,ir("$$value"))))),u===h)h=void 0}let c;if(s?.event)c=X("$.bind_property",qr(r.name),qr(s.event),i.state.node,h??u,s.bidirectional&&u);else switch(r.name){case"online":c=X("$.bind_online",h??u);break;case"scrollX":case"scrollY":c=X("$.bind_window_scroll",qr(r.name==="scrollX"?"x":"y"),u,h);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":c=X("$.bind_window_size",qr(r.name),h??u);break;case"activeElement":c=X("$.bind_active_element",h??u);break;case"muted":c=X("$.bind_muted",i.state.node,u,h);break;case"paused":c=X("$.bind_paused",i.state.node,u,h);break;case"volume":c=X("$.bind_volume",i.state.node,u,h);break;case"playbackRate":c=X("$.bind_playback_rate",i.state.node,u,h);break;case"currentTime":c=X("$.bind_current_time",i.state.node,u,h);break;case"buffered":c=X("$.bind_buffered",i.state.node,h??u);break;case"played":c=X("$.bind_played",i.state.node,h??u);break;case"seekable":c=X("$.bind_seekable",i.state.node,h??u);break;case"seeking":c=X("$.bind_seeking",i.state.node,h??u);break;case"ended":c=X("$.bind_ended",i.state.node,h??u);break;case"readyState":c=X("$.bind_ready_state",i.state.node,h??u);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":c=X("$.bind_resize_observer",i.state.node,qr(r.name),h??u);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":c=X("$.bind_element_size",i.state.node,qr(r.name),h??u);break;case"value":{if(l?.type==="RegularElement"&&l.name==="select")c=X("$.bind_select_value",i.state.node,u,h);else c=X("$.bind_value",i.state.node,u,h);break}case"files":c=X("$.bind_files",i.state.node,u,h);break;case"this":c=Gw(r.expression,i.state.node,i);break;case"textContent":case"innerHTML":case"innerText":c=X("$.bind_content_editable",qr(r.name),i.state.node,u,h);break;case"checked":c=X("$.bind_checked",i.state.node,u,h);break;case"focused":c=X("$.bind_focused",i.state.node,h??u);break;case"group":{let P=r.metadata.parent_each_blocks.map((b)=>{return b.metadata.keyed&&b.index?X("$.get",b.metadata.index):b.metadata.index}),M=u;if(l?.type==="RegularElement"){let b=l.attributes.find((o)=>o.type==="Attribute"&&o.name==="value"&&!ut(o)&&o.value!==!0)?.value;if(b!==void 0)M=Ir(Fr([$r(de(b,i).value),Xi(t)]))}c=X("$.bind_group",r.metadata.binding_group_name,li(P),i.state.node,M,h??u);break}default:throw Error("unknown binding "+r.name)}let p=r.name!=="this"&&l.type==="RegularElement"&&l.attributes.find((P)=>P.type==="UseDirective"),w=p?$r(X("$.effect",Ir(c))):$r(c);if(r.metadata.expression.is_async())w=$r(X("$.run_after_blockers",r.metadata.expression.blockers(),Ir(Fr([w]))));if(r.name==="this")i.state.init.push(w);else if(p)i.state.init.push(w);else i.state.after_update.push(w)}function Aar(r,i){_w(i);let t=i.state.scope.tracing;if(t!==null){let l=i.path.at(-1).async,u=X("$.trace",t,Ir(Fr(r.body.map((h)=>i.visit(h))),l));return Fr([Xi(l?me(u):u)])}i.next()}function Mar(r,i){if(i.state.analysis.runes||!r.label||r.label.name!=="$")return;if(i.path[1].type==="LabeledStatement"&&i.path[1].label.name==="$")return Xi()}function Sar(r,i){let t=ft(r,i.state.scope);switch(t){case"$host":return ir("$$props.$$host");case"$effect.tracking":return X("$.effect_tracking");case"$state":case"$state.raw":{let s=r.arguments[0],l=void 0;if(s){if(l=i.visit(r.arguments[0]),t==="$state"&&ja(s,i.state.scope))l=X("$.proxy",l)}let u=ir("$.state",r.callee.loc);return X(u,l)}case"$derived":case"$derived.by":{let s=i.visit(r.arguments[0]);return X("$.derived",t==="$derived"?Ir(s):s)}case"$state.eager":return X("$.eager",Ir(i.visit(r.arguments[0])));case"$state.snapshot":return X("$.snapshot",i.visit(r.arguments[0]),Kt(r,"state_snapshot_uncloneable")&&ci);case"$effect":case"$effect.pre":{let s=t==="$effect"?"$.user_effect":"$.user_pre_effect",l=i.visit(r.arguments[0]),u=X(s,l);return u.callee.loc=r.callee.loc,u}case"$effect.root":return X("$.effect_root",...r.arguments.map((s)=>i.visit(s)));case"$effect.pending":return X("$.eager",Ir(X("$.pending")));case"$inspect":case"$inspect().with":return oTr(t,r,i)}if(Wr&&r.callee.type==="MemberExpression"&&r.callee.object.type==="Identifier"&&r.callee.object.name==="console"&&i.state.scope.get("console")===null&&r.callee.property.type==="Identifier"&&["debug","dir","error","group","groupCollapsed","info","log","trace","warn"].includes(r.callee.property.name)&&r.arguments.some((s)=>s.type==="SpreadElement"||i.state.scope.evaluate(s).has_unknown))return X(r.callee,fa(X("$.log_if_contains_state",qr(r.callee.property.name),...r.arguments.map((s)=>i.visit(s)))));i.next()}function oTr(r,i,t){if(!Wr)return Ji;let{args:s,inspector:l}=Jw(r,i,t.visit),u=ir("$$args"),h=Xr([h1(u)],X(l,fa(u)));return X("$.inspect",Ir(li(s)),h,r==="$inspect"&&ci)}function Tar(r,i){let t=i.state.analysis.classes.get(r);if(!t){i.next();return}let s=[],l={...i.state,state_fields:t};for(let[h,c]of t){if(h[0]==="#")continue;if(c.node.type==="AssignmentExpression"){let p=ai(ns,c.key),w=c.type==="$state"&&!0,P=Ae(h);s.push(Jf(c.key,null),ll("get",P,[],[Xi(X("$.get",p))]),ll("set",P,[ir("value")],[$r(X("$.set",p,ir("value"),w&&ci))]))}}let u=Wl(i.path,-1);for(let h of r.body){if(h.type!=="PropertyDefinition"){s.push(i.visit(h,l));continue}let c=Ke(h.key),p=c&&t.get(c);if(!p){s.push(i.visit(h,l));continue}if(c[0]==="#"){let w=h.value?i.visit(h.value,l):void 0;if(Wr&&p.node===h)w=X("$.tag",w,qr(`${u.id?.name??"[class]"}.${c}`));s.push(Jf(h.key,w))}else if(p.node===h){let w=i.visit(p.value,l);if(Wr)w=X("$.tag",w,qr(`${u.id?.name??"[class]"}.${c}`));let P=ai(ns,p.key),M=p.type==="$state"&&!0;s.push(Jf(p.key,w),ll("get",h.key,[],[Xi(X("$.get",P))]),ll("set",h.key,[ir("value")],[$r(X("$.set",P,ir("value"),M&&ci))]))}}return{...r,body:s}}function Oar(r,i){i.state.template.push_comment(r.data)}function E1(r,i,t,s){let l=s.state.node,u=[],h=[],c=[],p={default:{...s.state,scope:r.metadata.scopes.default,transform:{...s.state.transform}}},w={},P={},M=new ke,b=[],o=null,L=[],I=r.type==="SvelteComponent"||r.type==="Component"&&r.metadata.dynamic,j=r.type==="Component"&&r.metadata.dynamic?s.state.scope.generate(r.name):"$$component",H=!!Kl(r),J=!1;function W(S,k=!1){let er=()=>{let tr=u.at(-1),U=Array.isArray(tr),Z=U?tr:[];if(Z.push(S),!U)u.push(Z)};if(k)h.push(er);else er()}if(H){for(let S of r.attributes)if(S.type==="LetDirective")s.visit(S,{...s.state,let_directives:c})}for(let S of r.attributes)if(S.type==="LetDirective"){if(!H)s.visit(S,{...p.default,let_directives:c})}else if(S.type==="OnDirective"){if(!S.expression)s.state.analysis.needs_props=!0;let k=Dv(S.expression,S.metadata.expression,s);if(S.modifiers.includes("once"))k=X("$.once",k);(P[S.name]||=[]).push(k)}else if(S.type==="SpreadAttribute"){let k=s.visit(S),er=M.add(k,S.metadata.expression),tr=k!==er;if(tr||S.metadata.expression.has_state||S.metadata.expression.has_await)u.push(Ir(tr?X("$.get",er):k));else u.push(k)}else if(S.type==="Attribute"){if(S.name.startsWith("--")){b.push(ni(S.name,de(S.value,s,(tr,U)=>{let Z=M.add(tr,U);return tr!==Z?X("$.get",Z):tr}).value));continue}if(S.name==="slot")H=!0;if(S.name==="children")J=!0;let{value:k,has_state:er}=de(S.value,s,(tr,U)=>{let Z=U.has_await||Bu(S.value).some((Pr)=>{return Pr.type==="ExpressionTag"&&Pr.expression.type!=="Identifier"&&Pr.expression.type!=="MemberExpression"}),Cr=M.add(tr,U,Z);return tr!==Cr?X("$.get",Cr):tr});if(er)W(hs(S.name,[Xi(k)]));else W(ni(S.name,k))}else if(S.type==="BindDirective"){let k=s.visit(S.expression,{...s.state,memoizer:M});if(M.check_blockers(S.metadata.expression),Wr&&S.name!=="this"&&!Kt(r,"ownership_invalid_binding")&&S.expression.type!=="SequenceExpression"){let er=se(S.expression),tr=er&&s.state.scope.get(er.name);if(tr?.kind==="bindable_prop"||tr?.kind==="prop")s.state.analysis.needs_mutation_validation=!0,L.push($r(X("$$ownership_validator.binding",qr(tr.node.name),ir(I?j:i),Ir(k))))}if(k.type==="SequenceExpression")if(S.name==="this")o=S.expression;else{let[er,tr]=k.expressions,U=ir(s.state.scope.generate("bind_get")),Z=ir(s.state.scope.generate("bind_set"));s.state.init.push(Si(U,er)),s.state.init.push(Si(Z,tr)),W(hs(S.name,[Xi(X(U))])),W(Fa(S.name,[$r(X(Z,ir("$$value")))]))}else{if(Wr&&k.type==="MemberExpression"&&s.state.analysis.runes&&!Kt(r,"binding_property_non_reactive"))Kw(s.state,S,k);if(S.name==="this")o=S.expression;else{let tr=S.expression.type==="Identifier"&&s.state.scope.get(S.expression.name)?.kind==="store_sub"?hs(S.name,[$r(X("$.mark_store_binding")),Xi(k)]):hs(S.name,[Xi(k)]),U=qi("=",S.expression,ir("$$value")),Z=Fa(S.name,[$r(s.visit(U))]);tr.key.loc=S.name_loc,Z.key.loc=S.name_loc,W(tr,!0),W(Z,!0)}}}else if(S.type==="AttachTag"){let k=s.state.scope.evaluate(S.expression),er=s.visit(S.expression);if(S.metadata.expression.has_state)er=Xr([ir("$$node")],X(k.is_function?er:ua("||",er,ir("$.noop")),ir("$$node")));M.check_blockers(S.metadata.expression),W(dt("init",X("$.attachment"),er,!0))}if(h.forEach((S)=>S()),H)s.state.init.push(...c);if(Object.keys(P).length>0){let S=fi(Object.keys(P).map((k)=>ni(k,P[k].length>1?li(P[k]):P[k][0])));W(ni("$$events",S))}let sr=[],rr=[];for(let S of r.fragment.nodes){if(S.type==="SnippetBlock"){s.visit(S,{...s.state,snippets:sr}),W(dt("init",S.expression,S.expression)),rr.push(ni(S.expression.name==="children"?"default":S.expression.name,ci));continue}let k=Kl(S)??"default";(w[k]||=[]).push(S)}for(let S of Object.keys(w)){let k=s.visit({...r.fragment,nodes:w[S]},S==="default"?H?s.state:p.default:{...s.state,scope:r.metadata.scopes[S],transform:{...s.state.transform}});if(k.body.length===0)continue;let er=Xr([ir("$$anchor"),ir("$$slotProps")],Fr([...S==="default"&&!H?c:[],...k.body]));if(S==="default"&&!J)if(c.length===0&&w.default.every((tr)=>tr.type!=="SvelteFragment"||!tr.attributes.some((U)=>U.type==="LetDirective")))W(ni("children",Wr?X("$.wrap_snippet",ir(s.state.analysis.name),er):er)),rr.push(ni(S,ci));else rr.push(ni(S,er)),W(ni("children",ir("$.invalid_default_snippet")));else rr.push(ni(S,er))}if(rr.length>0)W(ni("$$slots",fi(rr)));if(!s.state.analysis.runes&&r.attributes.some((S)=>S.type==="BindDirective"))W(ni("$$legacy",ci));let hr=u.length===0||u.length===1&&Array.isArray(u[0])?fi(u[0]||[]):X("$.spread_props",...u.map((S)=>Array.isArray(S)?fi(S):S)),vr=(S)=>{let k=I?ir(j):s.visit(f1(i));return k.loc=t,X(k,S,hr)};if(o!==null){let S=vr;vr=(k)=>{return Gw(o,S(k),s)}}if(r.type!=="SvelteSelf")M.check_blockers(r.metadata.expression);let q=[...sr,...M.deriveds(s.state.analysis.runes)];if(I){let S=vr;vr=(k)=>{return X("$.component",k,Ir(s.visit(r.type==="Component"?f1(i):r.expression)),Xr([ir("$$anchor"),ir(j)],Fr([...L,$r(S(ir("$$anchor")))])))}}else q.push(...L);if(Object.keys(b).length>0){if(s.state.metadata.namespace==="svg")s.state.template.push_element("g",r.start,!1);else s.state.template.push_element("svelte-css-wrapper",r.start,!1),s.state.template.set_prop("style","display: contents");s.state.template.push_comment(),s.state.template.pop_element(),q.push($r(X("$.css_props",l,Ir(fi(b)))),$r(vr(ai(l,"lastChild"))),$r(X("$.reset",l)))}else s.state.template.push_comment(),q.push(Ns(vr(l),r,"component",{componentTag:r.name}));M.apply();let T=M.async_values(),V=M.blockers();if(T||V){if(q=[$r(X("$.async",l,V,T,Xr([ir("$$anchor"),...M.async_ids()],Fr(q))))],s.state.is_standalone)q.push($r(X("$.next")))}return q.length>1?Fr(q):q[0]}function Lar(r,i){let t=E1(r,r.name,r.name_loc,i);i.state.init.push(t)}function Var(r,i){let t=r.declaration.declarations[0];if(t.id.type==="Identifier"){let s=ae(i,t.init,r.metadata.expression),l=Qu(i.state,s,r.metadata.expression.has_await);if(Wr)l=X("$.tag",l,qr(t.id.name));i.state.transform[t.id.name]={read:fe},Ear(i.state,t.id,l,r.metadata.expression,i.state.scope.get_bindings(t))}else{let s=Ct(t.id),l=ir(i.state.scope.generate("computed_const")),u={...i.state.transform};for(let P of s)delete u[P.name];let h={...i.state,transform:u},c=ae({...i,state:h},t.init,r.metadata.expression),p=Fr([wt(i.visit(t.id,h),c),Xi(fi(s.map((P)=>dt("init",P,P))))]),w=Qu(i.state,p,r.metadata.expression.has_await);if(Wr)w=X("$.tag",w,qr("[@const]"));Ear(i.state,l,w,r.metadata.expression,i.state.scope.get_bindings(t));for(let P of s)i.state.transform[P.name]={read:(M)=>ai(X("$.get",l),M)}}}function Ear(r,i,t,s,l){let u=Wr?[$r(X("$.get",i))]:[],h=s.has_await,c=[...s.dependencies].map((p)=>p.blocker).filter((p)=>p!==null&&p.object!==r.async_consts?.id);if(h||r.async_consts||c.length>0){let p=r.async_consts??={id:ir(r.scope.generate("promises")),thunks:[]};r.consts.push(be(i));let w=qi("=",i,t),P=u.length===0?w:Fr([$r(w),...u]);if(c.length===1)p.thunks.push(Ir(ai(c[0],"promise")));else if(c.length>0)p.thunks.push(Ir(X("$.wait",li(c))));p.thunks.push(Ir(P,h));let M=ai(p.id,qr(p.thunks.length-1),!0);for(let b of l)b.blocker=M}else r.consts.push(wt(i,t)),r.consts.push(...u)}function Iar(r,i){let t=fi(r.identifiers.map((l)=>{let u=X("$.snapshot",i.visit(l));return dt("init",l,i.state.analysis.runes?u:X("$.untrack",Ir(u)))})),s=X("console.log",t);i.state.init.push($r(X("$.template_effect",Ir(Fr([$r(s),Gd])))))}function Far(r,i){let t=r.metadata,s={...i.state,scope:i.state.scope.parent},l=ae({...i,state:s},r.expression,r.metadata.expression);if(!t.is_controlled)i.state.template.push_comment();let u=0;if(r.metadata.keyed&&r.index)u|=Gy;let h=r.key?.type==="Identifier"&&r.context?.type==="Identifier"&&r.context?.name===r.key.name,c;for(let S of r.metadata.expression.dependencies)if(S.kind==="store_sub"){c=!0;break}for(let S of r.metadata.expression.dependencies){if(S.scope.function_depth>=i.state.scope.function_depth)continue;if(!i.state.analysis.runes||!h||c){u|=ld;break}}if(i.state.analysis.runes&&!c)u|=qV;if(r.key&&r.body.nodes.some((S)=>{if(S.type!=="RegularElement"&&S.type!=="SvelteElement")return!1;return S.attributes.some((k)=>k.type==="AnimateDirective")}))u|=CV;if(t.is_controlled)u|=wV;let p="";for(let S of r.metadata.expression.dependencies)if(S.kind==="store_sub"){p=S.node.name;break}let w=null;for(let[S]of i.state.scope.declarations)if(i.state.scope.parent?.get(S)!=null){w=i.state.scope.root.unique("$$array");break}let P={...i.state,transform:{...i.state.transform},store_to_invalidate:p},M={...i.state,transform:{...i.state.transform}},b=t.contains_group_binding||!r.index?t.index:ir(r.index),o=r.context?.type==="Identifier"?r.context:ir("$$item"),L=t.contains_group_binding,I=!1;if(r.index)P.transform[r.index]={read:(S)=>{return L=!0,(u&Gy)!==0?fe(S):S}},M.transform[r.index]={read:(S)=>{return I=!0,S}};let j=[],H=p?X("$.invalidate_store",ir("$$stores"),qr(p)):void 0,J=[];if(!i.state.analysis.runes){let S=new Set;if(w)S.add(w),P.transform[w.name]={read:X};else for(let k of t.transitive_deps)S.add(k.node);for(let k of bTr(i))for(let er of k.metadata.transitive_deps)S.add(er.node);if(S.size>0){let k=X("$.invalidate_inner_signals",Ir(oe([...S].map((er)=>i.visit({...er},P)))));J.push(k)}}if(H)J.push(H);if(r.context?.type==="Identifier"){let S=i.state.scope.get(r.context.name);P.transform[r.context.name]={read:(k)=>{if(S.reassigned)return ai(w?X(w):l,(u&Gy)!==0?fe(b):b,!0);return(u&ld)!==0?fe(k):k},assign:(k,er)=>{L=!0;let tr=ai(w?X(w):l,(u&Gy)!==0?fe(b):b,!0);return oe([qi("=",tr,er),...J])},mutate:(k,er)=>{return L=!0,oe([er,...J])}},delete M.transform[r.context.name]}else if(r.context){let S=(u&ld)!==0?X("$.get",o):o,{inserts:k,paths:er}=Ue(r.context,S);for(let{id:tr,value:U}of k){tr.name=i.state.scope.generate("$$array"),P.transform[tr.name]={read:fe};let Z=i.visit(Ir(U),P);j.push(Si(tr,X("$.derived",Z)))}for(let tr of er){let U=tr.node.name,Z=tr.has_default_value,Cr=Ir(i.visit(tr.expression,P));j.push(be(tr.node,Z?X("$.derived_safe_equal",Cr):Cr));let Pr=Z?fe:X;if(P.transform[U]={read:Pr,assign:(zr,jr)=>{let ri=tr.update_expression;return oe([qi("=",ri,jr),...J])},mutate:(zr,jr)=>{return oe([jr,...J])}},Wr)j.push($r(Pr(ir(U))));delete M.transform[U]}}let W=i.visit(r.body,P),sr=ir("$.index");if(r.metadata.keyed){let S=r.context,k=i.visit(r.key,M);sr=Xr(I?[S,b]:[S],k)}if(r.index&&t.contains_group_binding)j.push(be(r.index,b));let rr=r.metadata.expression.has_await,hr=Ir(l,rr),vr=rr?Ir(X("$.get",ir("$$collection"))):hr,q=[ir("$$anchor"),o];if(L||w)q.push(b);if(w)q.push(w);let T=[i.state.node,qr(u),vr,sr,Xr(q,Fr(j.concat(W.body)))];if(r.fallback)T.push(Xr([ir("$$anchor")],i.visit(r.fallback)));let V=[Ns(X("$.each",...T),r,"each")];if(r.metadata.expression.is_async())i.state.init.push($r(X("$.async",i.state.node,r.metadata.expression.blockers(),rr?li([hr]):Xt,Xr(rr?[i.state.node,ir("$$collection")]:[i.state.node],Fr(V)))));else i.state.init.push(...V)}function bTr(r){return r.path.filter((i)=>i.type==="EachBlock")}function Bar(r,i){if(i.state.is_instance){if(r.declaration)return i.visit(r.declaration);return Ji}return i.next()}function Har(r,i){if(r.expression.type==="CallExpression"){if(ft(r.expression,i.state.scope)==="$inspect.trace")return Ji}i.next()}function Uar(r,i){if(r.await&&Wr&&!Kt(r,"await_reactivity_loss")&&i.state.options.experimental.async){let t=i.visit(r.left),s=i.visit(r.right),l=i.visit(r.body),u=X("$.for_await_track_reactivity_loss",s);return rN(t,u,l,!0)}i.next()}function Nar(r,i){let t=i.path.at(-1)??r,s=Qw(i.state.metadata.namespace,t,r.nodes),{hoisted:l,trimmed:u,is_standalone:h,is_text_first:c}=Ku(t,r.nodes,i.path,s,i.state,i.state.preserve_whitespace,i.state.options.preserveComments);if(l.length===0&&u.length===0)return Fr([]);let p=u.length===1&&u[0].type==="RegularElement",w=u.length===1&&(u[0].type==="SvelteFragment"||u[0].type==="TitleElement"||u[0].type==="IfBlock"&&u[0].elseif&&t.metadata.flattened?.includes(u[0])),P=i.state.scope.root.unique("root"),M=[],b=void 0,o={...i.state,is_standalone:h,init:[],snippets:[],consts:[],let_directives:[],update:[],after_update:[],memoizer:new ke,template:new kv,transform:{...i.state.transform},metadata:{namespace:s,bound_contenteditable:i.state.metadata.bound_contenteditable},async_consts:void 0};for(let L of l)i.visit(L,o);if(p){let L=u[0],I=ir(i.state.scope.generate(L.name),L.name_loc);i.visit(L,{...o,node:I});let j=o.template.needs_import_node?Tq:void 0,H=_v(o,s,j);o.hoisted.push(Si(P,H)),o.init.unshift(Si(I,X(P))),b=$r(X("$.append",ir("$$anchor"),I))}else if(w)i.visit(u[0],o);else if(u.length===1&&u[0].type==="Text"){let L=ir(i.state.scope.generate("text"));o.init.unshift(Si(L,X("$.text",qr(u[0].data)))),b=$r(X("$.append",ir("$$anchor"),L))}else if(u.length>0){let L=ir(i.state.scope.generate("fragment"));if(u.some((j)=>j.type==="ExpressionTag")&&u.every((j)=>j.type==="Text"||j.type==="ExpressionTag")){let j=ir(i.state.scope.generate("text"));rh(u,()=>j,!1,{...i,state:o}),o.init.unshift(Si(j,X("$.text"))),b=$r(X("$.append",ir("$$anchor"),j))}else if(h)rh(u,()=>ir("$$anchor"),!1,{...i,state:o});else{rh(u,(J)=>X("$.first_child",L,J&&ci),!1,{...i,state:o});let H=ud;if(o.template.needs_import_node)H|=Tq;if(o.template.nodes.length===1&&o.template.nodes[0].type==="comment")o.init.unshift(Si(L,X("$.comment")));else{let J=_v(o,s,H);o.hoisted.push(Si(P,J)),o.init.unshift(Si(L,X(P)))}b=$r(X("$.append",ir("$$anchor"),L))}}if(M.push(...o.snippets,...o.let_directives,...o.consts),o.async_consts&&o.async_consts.thunks.length>0)M.push(Si(o.async_consts.id,X("$.run",li(o.async_consts.thunks))));if(c)M.push($r(X("$.next")));if(M.push(...o.init),o.update.length>0)M.push(xf(o));if(M.push(...o.after_update),b!==void 0)M.push(b);return Fr(M)}function jar(r,i){let t={...i.state,in_constructor:!1,in_derived:!1};i.next(t)}function zar(r,i){return Dw(r,i)}function Zar(r,i){let t=r.metadata.is_controlled;if(!t)i.state.template.push_comment();let s=r.metadata.expression.has_await,l=r.metadata.expression.has_blockers(),u=ae(i,r.expression,r.metadata.expression),h=s?X("$.get",ir("$$html")):u,c=!t&&i.state.metadata.namespace==="svg",p=!t&&i.state.metadata.namespace==="mathml",w=$r(X("$.html",i.state.node,Ir(h),t&&ci,c&&ci,p&&ci,Kt(r,"hydration_html_changed")&&ci));if(s||l)i.state.init.push($r(X("$.async",i.state.node,r.metadata.expression.blockers(),s?li([Ir(u,!0)]):Xt,Xr(s?[i.state.node,ir("$$html")]:[i.state.node],Fr([w])))));else i.state.init.push(w)}function Qar(r,i){let t=i.path.at(-1);if(Se(r,t)){if(r.name==="$$props")return ir("$$sanitized_props");let s=i.state.scope.get(r.name);if(i.state.analysis.runes&&s!==null&&r!==s.node&&s.kind==="rest_prop"){let l=i.path.at(-2);if(t?.type==="MemberExpression"&&!t.computed&&l?.type!=="AssignmentExpression"&&l?.type!=="UpdateExpression"){let u=t.property;if(!s.metadata?.exclude_props?.includes(u.name))return ir("$$props")}}return Xe(r,i.state)}}function Jar(r,i){i.state.template.push_comment();let t=[],s=r.metadata.expression.has_await,l=r.metadata.expression.has_blockers(),u=ae(i,r.test,r.metadata.expression),h=0,c,p,w;for(let M of[r,...r.metadata.flattened??[]]){let b=i.visit(M.consequent),o=ir(i.state.scope.generate("consequent"));t.push(Si(o,Xr([ir("$$anchor")],b)));let L;if(M.metadata.expression.has_await)L=X("$.get",ir("$$condition"));else{let H=ae(i,M.test,M.metadata.expression);if(M.metadata.expression.has_call){let J=ir(i.state.scope.generate("d"));t.push(Si(J,X("$.derived",Xr([],H)))),L=X("$.get",J)}else L=H}let I=$r(X("$$render",o,h!==0&&qr(h))),j=ue(L,I);if(p)p.alternate=j;else c=j;w=M,p=j,h++}if(p&&w?.alternate){let M=i.visit(w.alternate),b=ir(i.state.scope.generate("alternate"));t.push(Si(b,Xr([ir("$$anchor")],M))),p.alternate=$r(X("$$render",b,qr(-1)))}let P=[i.state.node,Xr([ir("$$render")],c?Fr([c]):Fr([]))];if(r.elseif)P.push(ci);if(t.push(Ns(X("$.if",...P),r,"if")),s||l)i.state.init.push($r(X("$.async",i.state.node,r.metadata.expression.blockers(),s?li([Ir(u,!0)]):Xt,Xr(s?[i.state.node,ir("$$condition")]:[i.state.node],Fr(t)))));else i.state.init.push(Fr(t))}function Yar(r,i){i.state.template.push_comment();let t=r.metadata.expression.has_await,s=r.metadata.expression.has_blockers(),l=ae(i,r.expression,r.metadata.expression),u=Ir(t?X("$.get",ir("$$key")):l),h=i.visit(r.fragment),c=Ns(X("$.key",i.state.node,u,Xr([ir("$$anchor")],h)),r,"key");if(t||s)i.state.init.push($r(X("$.async",i.state.node,r.metadata.expression.blockers(),t?li([Ir(l,!0)]):Xt,Xr(t?[i.state.node,ir("$$key")]:[i.state.node],Fr([c])))));else i.state.init.push(c)}function War(r,i){if(i.state.analysis.runes||i.path.length>1||r.label.name!=="$"){i.next();return}let t=i.state.analysis.reactive_statements.get(r);if(!t)return;let s=i.visit(r.body);if(s.type!=="BlockStatement")s=Fr([s]);let l=s.body,u=[];for(let h of t.dependencies){if(h.kind==="normal"&&h.declaration_kind!=="import")continue;let c=h.node.name,p=Xe(ir(c),i.state);if(c==="$$props"||c==="$$restProps"||h.kind==="bindable_prop")p=X("$.deep_read_state",p);u.push(p)}return i.state.legacy_reactive_statements.set(r,$r(X("$.legacy_pre_effect",u.length>0?Ir(oe(u)):Ir(Fr([])),Ir(Fr(l))))),Ji}function Gar(r,i){if(r.expression&&r.expression.type!=="Identifier"){let t=i.state.scope.generate(r.name),s=i.state.scope.get_bindings(r);for(let l of s)i.state.transform[l.node.name]={read:(u)=>ai(X("$.get",ir(t)),u)};i.state.let_directives.push(wt(t,X("$.derived",Ir(Fr([be(r.expression.type==="ObjectExpression"?Qf(r.expression.properties):Iu(r.expression.elements),ai(ir("$$slotProps"),r.name)),Xi(fi(s.map((l)=>ni(l.node.name,l.node))))])))))}else{let t=r.expression===null?r.name:r.expression.name;i.state.transform[t]={read:(s)=>X("$.get",s)},i.state.let_directives.push(wt(t,Qu(i.state,ai(ir("$$slotProps"),r.name))))}}function Kar(r,i){if(r.property.type==="PrivateIdentifier"){let t=i.state.state_fields.get("#"+r.property.name);if(t)return i.state.in_constructor&&(t.type==="$state.raw"||t.type==="$state")?ai(r,"v"):X("$.get",r)}i.next()}var dTr=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function Xar(r,i){if(!r.expression)i.state.analysis.needs_props=!0;let t=Dv(r.expression,r.metadata.expression,i);for(let u of dTr)if(r.modifiers.includes(u))t=X("$."+u,t);let s=r.modifiers.includes("capture"),l=r.modifiers.includes("passive")||(r.modifiers.includes("nonpassive")?!1:void 0);return s5(i,r.name,t,s,l,!1)}function Dar(r,i){if(!i.state.analysis.runes){i.state.transform.$$props={read:(t)=>({...t,name:"$$sanitized_props"})};for(let[t,s]of i.state.scope.declarations)if(s.declaration_kind==="import"&&s.mutated){let{start:l,end:u}=i.state.analysis.instance.ast,h=s.initial;if(h.start>l&&h.end<u){let p=ir("$$_import_"+t);i.state.transform[t]={read:(w)=>X(p),mutate:(w,P)=>X(p,P)},i.state.legacy_reactive_imports.push(Si(p,X("$.reactive_import",Ir(ir(t)))))}}}for(let[t,s]of i.state.scope.declarations){if(s.kind==="store_sub"){let l,u=()=>{return l??=i.visit(ir(t.slice(1)))};i.state.transform[t]={read:X,assign:(h,c)=>X("$.store_set",u(),c),mutate:(h,c)=>{let p=X("$.untrack",h);function w(P){if(P.type==="MemberExpression")return{...P,object:w(P.object),property:P.property};return p}return X("$.store_mutate",u(),c.type==="AssignmentExpression"?qi(c.operator,w(c.left),c.right):Wd(c.operator,w(c.argument),c.prefix),p)},update:(h)=>{return X(h.prefix?"$.update_pre_store":"$.update_store",Xe(ir(t.slice(1)),i.state),X(h.argument),h.operator==="--"&&qr(-1))}}}if(s.kind==="prop"||s.kind==="bindable_prop")if(cw(s,i.state))i.state.transform[t]={read:X,assign:(l,u)=>X(l,u),mutate:(l,u)=>{if(s.kind==="bindable_prop")return X(l,u,ci);return u},update:(l)=>{return X(l.prefix?"$.update_pre_prop":"$.update_prop",l.argument,l.operator==="--"&&qr(-1))}};else if(s.prop_alias){let l=Ae(s.prop_alias);i.state.transform[t]={read:(u)=>ai(ir("$$props"),l,l.type==="Literal")}}else i.state.transform[t]={read:(l)=>ai(ir("$$props"),l)}}if(_w(i),i.state.is_instance)return{...r,body:Yw(i.state.analysis.instance_body,ir("$.run"),(t)=>i.visit(t))};i.next()}function kar(r,i){i.state.template.push_comment();let t=Hu(r.expression),s=[],l=new ke;for(let w=0;w<t.arguments.length;w++){let P=t.arguments[w],M=r.metadata.arguments[w],b=ae(i,P,M),o=l.add(b,M);if(b!==o)b=X("$.get",o);s.push(Ir(b))}l.apply();let u=l.deriveds(i.state.analysis.runes),h=ae(i,t.callee,r.metadata.expression);if(r.metadata.dynamic){if(r.expression.type==="ChainExpression")h=ua("??",h,ir("$.noop"));u.push(Ns(X("$.snippet",i.state.node,Ir(h),...s),r,"render"))}else u.push(Ns((r.expression.type==="CallExpression"?X:al)(h,i.state.node,...s),r,"render"));let c=l.async_values(),p=l.blockers();if(c||p){if(i.state.init.push($r(X("$.async",i.state.node,p,l.async_values(),Xr([i.state.node,...l.async_ids()],Fr(u))))),i.state.is_standalone)i.state.init.push($r(X("$.next")))}else i.state.init.push(u.length===1?u[0]:Fr(u))}function _ar(r,i){i.state.template.push_comment();let t=[],s=[],l=[],u=new ke,h=qr("default");for(let b of r.attributes)if(b.type==="SpreadAttribute")s.push(Ir(i.visit(b)));else if(b.type==="Attribute"){let{value:o,has_state:L}=de(b.value,i,(I,j)=>j.has_call||j.has_await?X("$.get",u.add(I,j)):I);if(b.name==="name")h=o;else if(b.name!=="slot")if(L)t.push(hs(b.name,[Xi(o)]));else t.push(ni(b.name,o))}else if(b.type==="LetDirective")i.visit(b,{...i.state,let_directives:l});u.apply(),i.state.init.push(...l);let c=u.deriveds(i.state.analysis.runes),p=s.length===0?fi(t):X("$.spread_props",fi(t),...s),w=r.fragment.nodes.length===0?Cs:Xr([ir("$$anchor")],i.visit(r.fragment));c.push($r(X("$.slot",i.state.node,ir("$$props"),h,p,w)));let P=u.async_values(),M=u.blockers();if(P||M)i.state.init.push($r(X("$.async",i.state.node,M,P,Xr([i.state.node,...u.async_ids()],Fr(c)))));else i.state.init.push(c.length===1?c[0]:Fr(c))}function xar(r,i){let t=[ir("$$anchor")],s,l=[],u={...i.state.transform},h={...i.state,transform:u};for(let P=0;P<r.parameters.length;P++){let M=r.parameters[P];if(!M)continue;if(M.type==="Identifier"){t.push(Yd(M,ir("$.noop"))),u[M.name]={read:X};continue}let b=`$$arg${P}`;t.push(ir(b));let{inserts:o,paths:L}=Ue(M,al(ir(b)));for(let{id:I,value:j}of o)I.name=i.state.scope.generate("$$array"),u[I.name]={read:fe},l.push(Si(I,X("$.derived",i.visit(Ir(j)))));for(let I of L){let j=I.node.name,H=I.has_default_value,J=Ir(i.visit(I.expression,h));if(l.push(be(I.node,H?X("$.derived_safe_equal",J):J)),u[j]={read:H?fe:X},Wr)l.push($r(u[j].read(ir(j))))}}let c=i.visit(r.body,h).body;s=Fr([Wr?$r(X("$.validate_snippet_args",fa(ir("arguments")))):Ji,...l,...c]);let p=Wr?X("$.wrap_snippet",ir(i.state.analysis.name),Re(null,t,s)):Xr(t,s),w=wt(r.expression,p);if(i.path.length===1&&i.path[0].type==="Fragment")if(r.metadata.can_hoist)i.state.module_level_snippets.push(w);else i.state.instance_level_snippets.push(w);else i.state.snippets.push(w)}function rlr(r,i){return i.visit(r.expression)}function V1(r,i,t){let s={...t.state,node:ir(i)};for(let l of r.attributes)if(l.type==="OnDirective")t.state.init.push($r(t.visit(l,s)));else t.visit(l,s)}function ilr(r,i){V1(r,"$.document.body",i)}function tlr(r,i){let t=E1(r,"$$component",null,i);i.state.init.push(t)}function elr(r,i){V1(r,"$.document",i)}function slr(r,i){i.state.template.push_comment();let t=[],s=void 0,l=[],u=[],h=[],c=ir(i.state.scope.generate("$$element")),p={...i,state:{...i.state,node:c,init:[],update:[],after_update:[],memoizer:new ke}};for(let I of r.attributes)if(I.type==="Attribute"){if(I.name==="xmlns"&&!ut(I))s=I.value;t.push(I)}else if(I.type==="SpreadAttribute")t.push(I);else if(I.type==="ClassDirective")l.push(I);else if(I.type==="StyleDirective")u.push(I);else if(I.type==="LetDirective")h.push(i.visit(I));else if(I.type==="OnDirective"){let j=i.visit(I,p.state);p.state.after_update.push($r(j))}else i.visit(I,p.state);if(t.length===1&&t[0].type==="Attribute"&&t[0].name.toLowerCase()==="class"&&ut(t[0]))r2(r,c,t[0],l,p,!1);else if(t.length)xw(t,l,u,p,r,c);let w=r.metadata.expression.has_await,P=r.metadata.expression.has_blockers(),M=i.visit(r.tag),b=Ir(w?X("$.get",ir("$$tag")):M),o=p.state.init;if(p.state.update.length>0)o.push(xf(p.state));if(o.push(...p.state.after_update),o.push(...i.visit(r.fragment,{...i.state,metadata:{...i.state.metadata,namespace:Xu(r,i.state.metadata.namespace)}}).body),Wr){if(h.push($r(X("$.validate_dynamic_element_tag",b))),r.fragment.nodes.length>0)h.push($r(X("$.validate_void_dynamic_element",b)))}let L=Wr&&$t(r.start);if(h.push($r(X("$.element",i.state.node,b,r.metadata.svg||r.metadata.mathml?ci:Zl,o.length>0&&Xr([c,ir("$$anchor")],Fr(o)),s&&Ir(de(s,i).value),L&&li([qr(L.line),qr(L.column)])))),w||P)i.state.init.push($r(X("$.async",i.state.node,r.metadata.expression.blockers(),w?li([Ir(M,!0)]):Xt,Xr(w?[i.state.node,ir("$$tag")]:[i.state.node],Fr(h)))));else i.state.init.push(h.length===1?h[0]:Fr(h))}function alr(r,i){for(let t of r.attributes)if(t.type==="LetDirective")i.visit(t);i.state.init.push(...i.visit(r.fragment).body)}function llr(r,i){let t=fi([]);for(let w of r.attributes){if(w.type!=="Attribute"||w.value===!0)continue;let P=Array.isArray(w.value)?w.value[0]:w.value,M=i.visit(P.expression,i.state);if(P.metadata.expression.has_state)t.properties.push(hs(w.name,[Xi(M)]));else t.properties.push(ni(w.name,M))}let s=[],l=[],u=[],h=!1;for(let w of r.fragment.nodes)if(w.type==="ConstTag"){if(h=!0,!i.state.options.experimental.async)i.visit(w,{...i.state,consts:l,scope:i.state.scopes.get(r.fragment)??i.state.scope})}for(let w of r.fragment.nodes){if(w.type==="ConstTag"){if(i.state.options.experimental.async)s.push(w);continue}if(w.type==="SnippetBlock"){if(i.state.options.experimental.async&&h&&!["failed","pending"].includes(w.expression.name))s.push(w);else{let P=[];i.visit(w,{...i.state,snippets:P});let M=P[0],b=Wr?M.declarations[0].init.arguments[1]:M.declarations[0].init;if(!i.state.options.experimental.async)b.body.body.unshift(...l.filter((o)=>o.type==="VariableDeclaration"));if(["failed","pending"].includes(w.expression.name))t.properties.push(dt("init",w.expression,w.expression));u.push(M)}continue}s.push(w)}let c=i.visit({...r.fragment,nodes:s},{...i.state,scope:i.state.scopes.get(r.fragment)??i.state.scope});if(!i.state.options.experimental.async)c.body.unshift(...l);let p=$r(X("$.boundary",i.state.node,t,Xr([ir("$$anchor")],c)));i.state.template.push_comment(),i.state.init.push(u.length>0?Fr([...u,p]):p)}function ulr(r,i){i.state.init.push($r(X(ir("$.head",r.name_loc),qr(Wh(ee)),Xr([ir("$$anchor")],i.visit(r.fragment)))))}function flr(r,i){let t=E1(r,Su,r.name_loc,i);i.state.init.push(t)}function hlr(r,i){V1(r,"$.window",i)}function nlr(r,i){let t=new ke,{has_state:s,value:l}=Du(r.fragment.nodes,i,i.state,(c,p)=>t.add(c,p)),u=i.state.scope.evaluate(l),h=$r(qi("=",ai(ir("$.document"),ir("title",r.name_loc)),u.is_known?qr(u.value):u.is_defined?l:ua("??",l,qr(""))));if(s)i.state.after_update.push($r(X("$.deferred_template_effect",Xr(t.apply(),Fr([h])),t.sync_values(),t.async_values(),t.blockers())));else i.state.after_update.push($r(X("$.effect",Ir(Fr([h])))))}function clr(r,i){let t=r.modifiers.includes("global")?TV:0;if(r.intro)t|=MV;if(r.outro)t|=SV;let s=[qr(t),i.state.node,Ir(i.visit(L1(r.name)))];if(r.expression)s.push(Ir(i.visit(r.expression)));let l=$r(X("$.transition",...s));if(r.metadata.expression.is_async())l=$r(X("$.run_after_blockers",r.metadata.expression.blockers(),Ir(Fr([l]))));i.state.after_update.push(l)}function ylr(r,i){let t=r.argument;if(t.type==="MemberExpression"&&t.object.type==="ThisExpression"&&t.property.type==="PrivateIdentifier"&&i.state.state_fields.has("#"+t.property.name)){let h="$.update";if(r.prefix)h+="_pre";let c=[t];if(r.operator==="--")c.push(qr(-1));return X(h,...c)}if(t.type!=="Identifier"&&t.type!=="MemberExpression")throw Error("An impossible state was reached");let s=se(t),l=s&&i.state.transform[s.name];if(s===t&&l?.update)return l.update(r);let u=i.next();if(s&&l?.mutate)u=l.mutate(s,u);return Xw(r,i,u)}function vlr(r,i){let t=[ir("$$node")];if(r.expression)t.push(ir("$$action_arg"));let s=[i.state.node,Xr(t,al(i.visit(L1(r.name)),...t))];if(r.expression)s.push(Ir(i.visit(r.expression)));let l=$r(X("$.action",...s));if(r.metadata.expression.is_async())l=$r(X("$.run_after_blockers",r.metadata.expression.blockers(),Ir(Fr([l]))));i.state.init.push(l),i.next()}function plr(r,i){let t=ae(i,r.expression,r.metadata.expression),s=$r(X("$.attach",i.state.node,Ir(t)));if(r.metadata.expression.is_async())s=$r(X("$.run_after_blockers",r.metadata.expression.blockers(),Ir(Fr([s]))));i.state.init.push(s),i.next()}function mlr(r,i){let t=[];if(i.state.analysis.runes)for(let s of r.declarations){let l=s.init,u=ft(l,i.state.scope);if(!u||u==="$effect.tracking"||u==="$effect.root"||u==="$inspect"||u==="$inspect.trace"||u==="$state.snapshot"||u==="$host"){t.push(i.visit(s));continue}if(u==="$props.id")continue;if(u==="$props"){let p=["$$slots","$$events","$$legacy"];if(i.state.analysis.custom_element)p.push("$$host");if(s.id.type==="Identifier"){let w=[ir("$$props"),li(p.map((P)=>qr(P)))];if(Wr)w.push(qr(s.id.name));t.push(Fi(s.id,X("$.rest_props",...w)))}else{Qv(s.id.type,"ObjectPattern");for(let w of s.id.properties)if(w.type==="Property"){let P=w.key,M=P.type==="Identifier"?P.name:P.value;p.push(M);let b=w.value.type==="AssignmentPattern"?w.value.left:w.value;Qv(b.type,"Identifier");let o=i.state.scope.get(b.name),L=o.initial&&i.visit(o.initial);if(L&&o.kind==="bindable_prop"&&ja(L,i.state.scope)){if(L=X("$.proxy",L),Wr)L=X("$.tag_proxy",L,qr(b.name))}if(cw(o,i.state))t.push(Fi(b,nw(o,i.state,M,L)))}else{let P=[ir("$$props"),li(p.map((M)=>qr(M)))];if(Wr)P.push(qr(w.argument.name));t.push(Fi(w.argument,X("$.rest_props",...P)))}}continue}let c=l.arguments[0]??Xt;if(u==="$state"||u==="$state.raw"){let p=(w,P)=>{let M=i.state.scope.get(w.name),b=q1(M,i.state.analysis),o=ja(P,i.state.scope);if(u==="$state"&&o){if(P=X("$.proxy",P),Wr&&!b)P=X("$.tag_proxy",P,qr(w.name))}if(b){let L=ir("$.state",l.callee.loc);if(P=X(L,P),Wr)P=X("$.tag",P,qr(w.name))}return P};if(s.id.type==="Identifier"){let w=i.visit(c);t.push(Fi(s.id,p(s.id,w)))}else{let w=ir(i.state.scope.generate("tmp")),{inserts:P,paths:M}=Ue(s.id,w);t.push(Fi(w,i.visit(c)),...P.map(({id:b,value:o})=>{b.name=i.state.scope.generate("$$array"),i.state.transform[b.name]={read:fe};let L=i.visit(Ir(o)),I=X("$.derived",L);if(Wr){let j=`[$state ${s.id.type==="ArrayPattern"?"iterable":"object"}]`;I=X("$.tag",I,qr(j))}return Fi(b,I)}),...M.map((b)=>{let o=i.visit(b.expression),L=i.state.scope.get(b.node.name);return Fi(b.node,L?.kind==="state"||L?.kind==="raw_state"?p(L.node,o):o)}))}continue}if(u==="$derived"||u==="$derived.by"){let p=i.state.analysis.async_deriveds.has(l),w=i.state.is_instance&&i.state.scope.function_depth>1;if(s.id.type==="Identifier"){let P=i.visit(c);if(p){let M=Wr&&!Kt(l,"await_waterfall")&&Vf(l),b=X("$.async_derived",Ir(P,!0),Wr&&qr(s.id.name),M?qr(M):void 0);b=w?fl(b):me(b),t.push(Fi(s.id,b))}else{if(u==="$derived")P=Ir(P);let M=X("$.derived",P);if(Wr)M=X("$.tag",M,qr(s.id.name));t.push(Fi(s.id,M))}}else{let P=s.init,M=i.visit(c),b=c;if(u!=="$derived"||P.arguments[0].type!=="Identifier"){let I=ir(i.state.scope.generate("$$d")),j=X("$.derived",u==="$derived"?Ir(M):M);if(b=X("$.get",I),p){let H=Wr&&!Kt(P,"await_waterfall")&&Vf(P);j=X("$.async_derived",Ir(M,!0),Wr&&qr(`[$derived ${s.id.type==="ArrayPattern"?"iterable":"object"}]`),H?qr(H):void 0),j=w?fl(j):me(j)}t.push(Fi(I,j))}let{inserts:o,paths:L}=Ue(s.id,b);for(let{id:I,value:j}of o){I.name=i.state.scope.generate("$$array"),i.state.transform[I.name]={read:fe};let H=i.visit(Ir(j)),J=X("$.derived",H);if(Wr){let W=`[$derived ${s.id.type==="ArrayPattern"?"iterable":"object"}]`;J=X("$.tag",J,qr(W))}t.push(Fi(I,J))}for(let I of L){let j=i.visit(I.expression),H=X("$.derived",Ir(j));t.push(Fi(I.node,Wr?X("$.tag",H,qr(I.node.name)):H))}}continue}}else for(let s of r.declarations){let l=i.state.scope.get_bindings(s),u=l.some((c)=>c.kind==="state"),h=l.some((c)=>c.kind==="bindable_prop");if(!u&&!h){t.push(i.visit(s));continue}if(h){if(s.id.type!=="Identifier"){let p=ir(i.state.scope.generate("tmp")),{inserts:w,paths:P}=Ue(s.id,p);t.push(Fi(p,i.visit(s.init)));for(let{id:M,value:b}of w){M.name=i.state.scope.generate("$$array"),i.state.transform[M.name]={read:fe};let o=i.visit(Ir(b));t.push(Fi(M,X("$.derived",o)))}for(let M of P){let b=M.node.name,o=i.state.scope.get(b),L=i.visit(M.expression);t.push(Fi(M.node,o.kind==="bindable_prop"?nw(o,i.state,o.prop_alias??b,L):L))}continue}let c=i.state.scope.get(s.id.name);t.push(Fi(s.id,nw(c,i.state,c.prop_alias??s.id.name,s.init&&i.visit(s.init))));continue}t.push(...wTr(s,i,s.init&&i.visit(s.init)))}if(t.length===0)return Ji;return{...r,declarations:t}}function wTr(r,i,t){if(r.id.type==="Identifier")return[Fi(r.id,X("$.mutable_source",t,i.state.analysis.immutable?ci:void 0))];let s=ir(i.state.scope.generate("tmp")),{inserts:l,paths:u}=Ue(r.id,s);return[Fi(s,t),...l.map(({id:h,value:c})=>{h.name=i.state.scope.generate("$$array"),i.state.transform[h.name]={read:fe};let p=i.visit(Ir(c));return Fi(h,X("$.derived",p))}),...u.map((h)=>{let c=i.visit(h.expression),p=i.state.scope.get(h.node.name);return Fi(h.node,p?.kind==="state"?X("$.mutable_source",c,i.state.analysis.immutable?ci:void 0):c)})]}var h5={_:function(i,{next:t,state:s}){let l=s.scopes.get(i);if(l&&l!==s.scope){let u={...s.transform};for(let[h,c]of l.declarations)if(c.kind==="normal"||c.kind==="state"&&!q1(c,s.analysis))delete u[h];t({...s,transform:u,scope:l})}else t()},AnimateDirective:uar,ArrowFunctionExpression:far,AssignmentExpression:har,Attribute:car,AwaitBlock:par,AwaitExpression:mar,BinaryExpression:oar,BindDirective:Rar,BlockStatement:Aar,BreakStatement:Mar,CallExpression:Sar,ClassBody:Tar,Comment:Oar,Component:Lar,ConstTag:Var,DebugTag:Iar,EachBlock:Far,ExportNamedDeclaration:Bar,ExpressionStatement:Har,ForOfStatement:Uar,Fragment:Nar,FunctionDeclaration:jar,FunctionExpression:zar,HtmlTag:Zar,Identifier:Qar,IfBlock:Jar,KeyBlock:Yar,LabeledStatement:War,LetDirective:Gar,MemberExpression:Kar,OnDirective:Xar,Program:Dar,RegularElement:Par,RenderTag:kar,SlotElement:_ar,SnippetBlock:xar,SpreadAttribute:rlr,SvelteBody:ilr,SvelteComponent:tlr,SvelteDocument:elr,SvelteElement:slr,SvelteFragment:alr,SvelteBoundary:llr,SvelteHead:ulr,SvelteSelf:flr,SvelteWindow:hlr,TitleElement:nlr,TransitionDirective:clr,UpdateExpression:ylr,UseDirective:vlr,AttachTag:plr,VariableDeclaration:mlr};function olr(r,i){let t={analysis:r,options:i,scope:r.module.scope,scopes:r.module.scopes,is_instance:!1,hoisted:[Kd("$","svelte/internal/client"),...r.instance_body.hoisted],node:null,legacy_reactive_imports:[],legacy_reactive_statements:new Map,metadata:{namespace:i.namespace,bound_contenteditable:!1},events:new Set,preserve_whitespace:i.preserveWhitespace,state_fields:new Map,transform:{},in_constructor:!1,instance_level_snippets:[],module_level_snippets:[],is_standalone:!1,init:null,consts:null,snippets:null,let_directives:null,update:null,after_update:null,template:null,memoizer:null},s=gi(r.module.ast,t,h5),l={...t,transform:{...t.transform},scope:r.instance.scope,scopes:r.instance.scopes,is_instance:!0},u=gi(r.instance.ast,l,h5),h=gi(r.template.ast,{...t,transform:l.transform,scope:r.instance.scope,scopes:r.template.scopes},h5);s.body.unshift(...t.legacy_reactive_imports);let c=[],p=Ji,w=[],P=!1;for(let[hr,vr]of r.instance.scope.declarations){if(vr.kind==="legacy_reactive")w.push(wt(hr,X("$.mutable_source",void 0,r.immutable?ci:void 0)));if(vr.kind==="store_sub"){if(c.length===0)P=!0,p=wt(Iu([ir("$$stores"),ir("$$cleanup")]),X("$.setup_stores"));let q=Xe(ir(hr.slice(1)),l),T=X("$.store_get",q,qr(hr),ir("$$stores"));c.push(wt(vr.node,Wr?Ir(oe([X("$.validate_store",q,qr(hr.slice(1))),T])):Ir(T)))}}for(let[hr]of r.reactive_statements){let vr=[...t.legacy_reactive_statements].find(([q])=>q===hr);if(vr===void 0)throw Error("Could not find reactive statement");u.body.push(vr[1])}if(r.reactive_statements.size>0)u.body.push($r(X("$.legacy_pre_effect_reset")));let M=[];for(let hr of r.binding_groups.values())M.push(wt(hr.name,li([])));let b=r.exports.flatMap(({name:hr,alias:vr})=>{let q=l.scope.get(hr),T=Xe(ir(hr),l),V=hs(vr??hr,[Xi(T)]);if(T.type==="Identifier"){if(q?.declaration_kind==="let"||q?.declaration_kind==="var")return[V,Fa(vr??hr,[$r(qi("=",T,ir("$$value")))])];else if(!Wr)return ni(vr??hr,T)}if(q?.kind==="prop"||q?.kind==="bindable_prop")return[V,Fa(vr??hr,[$r(X(hr,ir("$$value")))])];if(q?.kind==="state"||q?.kind==="raw_state"){let S=q.kind==="state"?X("$.proxy",ir("$$value")):ir("$$value");return[V,Fa(vr??hr,[$r(X("$.set",ir(hr),S))])]}return V}),o=[...r.instance.scope.declarations].filter(([hr,vr])=>(vr.kind==="prop"||vr.kind==="bindable_prop")&&!hr.startsWith("$$"));if(r.accessors)for(let[hr,vr]of o){let q=vr.prop_alias??hr,T=hs(q,[Xi(X(ir(hr)))]),V=Fa(q,[$r(X(ir(hr),ir("$$value"))),$r(X("$.flush"))]);if(r.runes&&vr.initial)V.value.params[0]={type:"AssignmentPattern",left:ir("$$value"),right:vr.initial};b.push(T,V)}if(i.compatibility.componentApi===4)b.push(ni("$set",ir("$.update_legacy_props")),ni("$on",Xr([ir("$$event_name"),ir("$$event_cb")],X("$.add_legacy_event_listener",ir("$$props"),ir("$$event_name"),ir("$$event_cb")))));else if(Wr)b.push(fa(X(ir("$.legacy_api"))));let L=[ir("$$props"),qr(r.runes)];if(Wr)L.push(ir(r.name));let I=Fr([p,...w,...M]),j=Wr||r.needs_context||r.reactive_statements.size>0||b.length>0;if(I.body.push(...t.instance_level_snippets,...u.body),j&&b.length>0)I.body.push(Si("$$exports",fi(b)));if(I.body.unshift(...c),!r.runes&&r.needs_context)I.body.push($r(X("$.init",r.immutable?ci:void 0)));if(I.body.push(...h.body),r.needs_mutation_validation)I.body.unshift(Si("$$ownership_validator",X("$.create_ownership_validator",ir("$$props"))));let H=j||r.needs_props||r.uses_props||r.uses_rest_props||r.uses_slots||r.slot_names.size>0;if(I.loc=u.loc,!r.runes)for(let{name:hr,alias:vr}of r.exports)I.body.push($r(X("$.bind_prop",ir("$$props"),qr(vr??hr),Xe(ir(hr),l))));if(r.css.ast!==null&&r.inject_styles){let hr=qr(r.css.hash),vr=qr(T1(r.source,r,i).code);t.hoisted.push(wt("$$css",fi([ni("hash",hr),ni("code",vr)]))),I.body.unshift($r(X("$.append_styles",ir("$$anchor"),ir("$$css"))))}if(j){I.body.unshift($r(X("$.push",...L)));let hr;if(b.length>0){let vr=X("$.pop",ir("$$exports"));hr=P?Si("$$pop",vr):Xi(vr)}else hr=$r(X("$.pop"));I.body.push(hr)}if(P){if(I.body.push($r(X("$$cleanup"))),b.length>0)I.body.push(Xi(ir("$$pop")))}if(r.uses_rest_props){let hr=r.exports.map(({name:vr,alias:q})=>q??vr);for(let[vr,q]of r.instance.scope.declarations)if(q.kind==="bindable_prop")hr.push(q.prop_alias??vr);I.body.unshift(wt("$$restProps",X("$.legacy_rest_props",ir("$$sanitized_props"),li(hr.map((vr)=>qr(vr))))))}if(r.uses_props||r.uses_rest_props){let hr=[qr("children"),qr("$$slots"),qr("$$events"),qr("$$legacy")];if(r.custom_element)hr.push(qr("$$host"));I.body.unshift(wt("$$sanitized_props",X("$.legacy_rest_props",ir("$$props"),li(hr))))}if(r.uses_slots)I.body.unshift(wt("$$slots",X("$.sanitize_slots",ir("$$props"))));let J=[],W=[];for(let hr of[...s.body,...t.hoisted])if(hr.type==="ImportDeclaration")J.push(hr);else W.push(hr);W=[...J,...t.module_level_snippets,...W];let sr=Zf(ir(r.name),H?[ir("$$anchor"),ir("$$props")]:[ir("$$anchor")],I);if(i.hmr){let hr=ir(r.name),vr=[$r(X(ai(ai(hr,ir("$.HMR"),!0),"update"),ir("module.default")))];if(r.css.hash)vr.unshift($r(X("$.cleanup_styles",qr(r.css.hash))));let q=Fr([$r(qi("=",hr,X("$.hmr",hr))),$r(X("import.meta.hot.accept",Xr([ir("module")],Fr(vr))))]);W.push(sr,ue(ir("import.meta.hot"),q),zf(ir(r.name)))}else W.push(zf(sr));if(Wr)W.unshift($r(qi("=",ai(ir(r.name),"$.FILENAME",!0),qr(ee))));if(i.experimental.async)W.unshift(Ql([],"svelte/internal/flags/async"));if(!r.runes)W.unshift(Ql([],"svelte/internal/flags/legacy"));if(r.tracing)W.unshift(Ql([],"svelte/internal/flags/tracing"));if(i.discloseVersion)W.unshift(Ql([],"svelte/internal/disclose-version"));if(i.compatibility.componentApi===4)W.unshift(Ql([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),I.body.unshift(ue(ir("new.target"),Xi(X("$$_createClassComponent",fi([ni("component",ir(r.name)),fa(ir("$$anchor"))])))));else if(Wr)I.body.unshift($r(X("$.check_target",ir("new.target"))));if(r.props_id)I.body.unshift(wt(r.props_id,X("$.props_id")));if(t.events.size>0)W.push($r(X("$.delegate",li(Array.from(t.events).map((hr)=>qr(hr))))));let rr=r.custom_element;if(rr){let hr=typeof rr==="boolean"?{}:rr.props||{},vr=[];for(let[k,er]of Object.entries(hr)){let tr=r.instance.scope.get(k),U=tr?.prop_alias??k;if(!er.type&&tr?.initial?.type==="Literal"&&typeof tr?.initial.value==="boolean")er.type="Boolean";let Z=fi([er.attribute?ni("attribute",qr(er.attribute)):void 0,er.reflect?ni("reflect",ci):void 0,er.type?ni("type",qr(er.type)):void 0].filter(Boolean));vr.push(ni(U,Z))}for(let[k,er]of o){let tr=er.prop_alias??k;if(hr[tr])continue;vr.push(ni(tr,fi([])))}let q=li([...r.slot_names.keys()].map((k)=>qr(k))),T=li(r.exports.map(({name:k,alias:er})=>qr(er??k))),V;if(typeof rr==="boolean"||rr.shadow==="open"||rr.shadow===void 0)V=fi([ni("mode",qr("open"))]);else if(rr.shadow==="none")V=void 0;else V=rr.shadow;let S=X("$.create_custom_element",ir(r.name),fi(vr),q,T,V,typeof rr!=="boolean"?rr.extend:void 0);if(typeof rr!=="boolean"&&typeof rr.tag==="string"){let k=$r(X("customElements.define",qr(rr.tag),S));if(i.hmr)W.push(ue(Va("==",X("customElements.get",qr(rr.tag)),Cs),k));else W.push(k)}else W.push($r(S))}return{type:"Program",sourceType:"module",body:W}}function blr(r,i,t){if(t.generate===!1)return{js:null,css:null,warnings:xh,metadata:{runes:r.runes},ast:null};let s=t.generate==="server"?lar(r,t):olr(r,t),l=msr(t.filename,t.outputFilename,"input.svelte"),u=Z$(s,Y$({comments:r.comments}),{sourceMapContent:i,sourceMapSource:l});Nw(u,t,l);let h=r.css.ast&&!r.inject_styles?T1(i,r,t):null;return{js:u,css:h,warnings:xh,metadata:{runes:r.runes},ast:null}}var Clr={filename:xv("(unknown)"),rootDir:xv(typeof process<"u"?process.cwd?.():typeof Deno<"u"?Deno.cwd():void 0),dev:xl(!1),generate:ih("client",(r,i)=>{if(r==="dom"||r==="ssr")return p5(GI),r==="dom"?"client":"server";if(r!=="client"&&r!=="server"&&r!==!1)Qa(`${i} must be "client", "server" or false`);return r}),warningFilter:Plr(()=>!0),experimental:i2({async:xl(!1)})},qlr={accessors:wlr(pd,xl(!1)),css:y5(()=>"external",(r)=>{if(r===!0||r===!1)Qa('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true');if(r==="none")Qa('css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case.');if(r!=="external"&&r!=="injected")Qa('css should be either "external" (default, recommended) or "injected"');return r}),cssHash:Plr(({css:r,filename:i,hash:t})=>{return`svelte-${t(i==="(unknown)"?r:i??r)}`}),cssOutputFilename:xv(void 0),customElement:y5(()=>!1,(r,i)=>{if(typeof r!=="boolean")Qa(`${i} should be true or false`);return r}),discloseVersion:xl(!0),immutable:wlr(md,xl(!1)),legacy:I1("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:i2({componentApi:c5([4,5],5)}),loopGuardTimeout:n5(WI),name:xv(void 0),namespace:c5(["html","mathml","svg"]),modernAst:xl(!1),outputFilename:xv(void 0),preserveComments:xl(!1),fragments:c5(["html","tree"]),preserveWhitespace:xl(!1),runes:y5(()=>{return}),hmr:xl(!1),sourcemap:ih(void 0,(r)=>{return r}),enableSourcemap:n5(JI),hydratable:n5(YI),format:I1('The format option has been removed in Svelte 4, the compiler only outputs ESM now. Remove "format" from your compiler options. If you did not set this yourself, bump the version of your bundler plugin (vite-plugin-svelte/rollup-plugin-svelte/svelte-loader)'),tag:I1('The tag option has been removed in Svelte 5. Use `<svelte:options customElement="tag-name" />` inside the component instead. If that does not solve your use case, please open an issue on GitHub with details.'),sveltePath:I1("The sveltePath option has been removed in Svelte 5. If this option was crucial for you, please open an issue on GitHub with your use case."),errorMode:I1("The errorMode option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead"),varsReport:I1("The vars option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead")},qTr=i2({...Clr,...Object.fromEntries(Object.keys(qlr).map((r)=>[r,()=>{}]))}),v5=i2({...Clr,...qlr});function I1(r){return(i)=>{if(i!==void 0)MB(null,r);return}}var dlr=new Set;function p5(r){if(!dlr.has(r))dlr.add(r),r(null)}function n5(r){return(i)=>{if(i!==void 0)p5(r);return}}function wlr(r,i){return(t,s)=>{if(t!==void 0)p5(r);return i(t,s)}}function i2(r,i=!1){return(t,s)=>{let l={};if(t&&typeof t!=="object"||Array.isArray(t))Qa(`${s} should be an object`);for(let u in t)if(!(u in r))if(i)l[u]=t[u];else SB(null,`${s?`${s}.${u}`:u}`);for(let u in r){let h=r[u];l[u]=h(t&&t[u],s?`${s}.${u}`:u)}return l}}function ih(r,i){return(t,s)=>{return t===void 0?r:i(t,s)}}function xv(r,i=!0){return ih(r,(t,s)=>{if(typeof t!=="string")Qa(`${s} should be a string, if specified`);if(!i&&t==="")Qa(`${s} cannot be empty`);return t})}function xl(r){return ih(r,(i,t)=>{if(typeof i!=="boolean")Qa(`${t} should be true or false, if specified`);return i})}function c5(r,i=r[0]){return ih(i,(t,s)=>{if(!r.includes(t)){let l=r.length>2?`${s} should be one of ${r.slice(0,-1).map((u)=>`"${u}"`).join(", ")} or "${r[r.length-1]}"`:`${s} should be either "${r[0]}" or "${r[1]}"`;Qa(l)}return t})}function Plr(r){return ih(r,(i,t)=>{if(typeof i!=="function")Qa(`${t} should be a function, if specified`);return i})}function y5(r,i=(t)=>t){return ih(r,(t,s)=>{if(typeof t==="function")return(...h)=>i(t(...h),s);return(...u)=>i(t,s)})}function Qa(r){AB(null,r)}function $lr(r,i){r=Rlr(r),vd({warning:i.warningFilter,filename:i.filename});let t=v5(i,""),s=iw(r),{customElement:l,...u}=s.options||{},h={...t,...u,customElementOptions:l,css:"css"in u?()=>u.css??"external":t.css,runes:"runes"in u?()=>u.runes:t.runes};if(s.metadata.ts){if(s={...s,fragment:s.fragment&&ov(s.fragment),instance:s.instance&&ov(s.instance),module:s.module&&ov(s.module)},h.customElementOptions?.extend)h.customElementOptions.extend=ov(h.customElementOptions?.extend)}let c=N$(s,r,h),p=blr(c,r,h);return p.ast=glr(r,s,i.modernAst),p}function rp(r,{modern:i,loose:t}={}){r=Rlr(r),vd({warning:()=>!1,filename:void 0});let s=iw(r,t);return glr(r,s,i)}function glr(r,i,t){if(t){let s=(l)=>{delete l.metadata};return i.options?.attributes.forEach((l)=>{if(s(l),s(l.value),Array.isArray(l.value))l.value.forEach(s)}),gi(i,null,{_(l,{next:u}){s(l),u()}})}return qF(r,i)}function Rlr(r){if(r.charCodeAt(0)===65279)return r.slice(1);return r}var Alr={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 Mlr(r){return r in Alr?Alr[r]:"HTMLElement"}var $Tr=/(?:const|let|function)\s+(\w+)\s*[=(]/,gTr=/^-\s*/,RTr=/\w/,ATr=/^\s*$/;function m5(r){if(!r)return;let i=r.lastIndexOf("-");return i>=0?r.substring(i+1).trim():r.trim()}function th(r){if(r===void 0)return;let i=r.replace(gTr,"").trim();return i===""?"":i}function Slr(r){if(r==="var")return"let";if(r==="using"||r==="await using")return"const";return r}var Llr=Symbol("sveld.parsedComponentTypeScriptMetadata");function Elr(r){return r[Llr]}var Tlr=null,MTr=/(\}|\};)$/,STr=/[-_.:/\s]+/,Olr=/^@component/,TTr=/\r/g,OTr=/[\r\n]+/g;class St{options;syntaxMode="legacy";source;compiled;parsed;rest_props;extends;componentComment;reactive_vars=new Set;vars=new Set;props=new Map;moduleExports=new Map;slots=new Map;events=new Map;eventDescriptions=new Map;forwardedEvents=new Map;typedefs=new Map;generics=null;bindings=new Map;contexts=new Map;variableInfoCache=new Map;propLocalToPublicName=new Map;restPropLocals=new Set;wholePropsLocals=new Set;snippetPropLocals=new Set;runesPropsDeclarationMetadataByDeclaratorStart=new Map;explicitPropTypesByName=new Map;typeImportBindingsByLocalName=new Map;localTypeDeclarationsByName=new Map;typedRunesPropsDeclarations=[];componentScope=new Map;scopeDeclarations=new WeakMap;activeScopes=[];sourceLinesCache;constructor(r){this.options=r}static mapToArray(r){return Array.from(r,([i,t])=>t)}static assignValue(r){return r===void 0||r===""?void 0:r}resolvePublicPropName(r){return this.propLocalToPublicName.get(r)??r}trackPropLocalName(r,i=r){this.propLocalToPublicName.set(i,r)}getPropByLocalOrPublic(r){return this.props.get(this.resolvePublicPropName(r))}getPropTypeByLocalOrPublic(r){return this.getPropByLocalOrPublic(r)?.type}getExplicitPropType(r){return this.explicitPropTypesByName.get(r)}getRunesPropsDeclarationMetadata(r){if(r===void 0)return;return this.runesPropsDeclarationMetadataByDeclaratorStart.get(r)}getRunesPropTypeMetadata(r,i){return this.getRunesPropsDeclarationMetadata(r)?.props.get(i)}getTypeReferenceName(r){if(!r||typeof r!=="object"||!("type"in r))return;if(r.type==="Identifier"&&"name"in r&&typeof r.name==="string")return r.name;if(r.type==="TSQualifiedName"&&"right"in r&&r.right&&typeof r.right==="object"&&"name"in r.right&&typeof r.right.name==="string")return r.right.name;return}getTypeDependencyName(r){if(!r||typeof r!=="object"||!("type"in r))return;if(r.type==="Identifier"&&"name"in r&&typeof r.name==="string")return r.name;if(r.type==="TSQualifiedName"&&"left"in r&&r.left&&typeof r.left==="object")return this.getTypeDependencyName(r.left);return}getTypeAnnotationText(r){let i=r?.start,t=r?.end;if(i===void 0||t===void 0)return;return this.sourceAtPos(i+1,t)?.trim()}collectReferencedTypeDependencies(r,i,t,s=new Set){if(!r?.type)return;switch(r.type){case"TSInterfaceDeclaration":this.collectReferencedTypeDependencies({type:"TSTypeLiteral",members:r.body?.body},i,t,s);return;case"TSTypeAliasDeclaration":case"TSParenthesizedType":case"TSTypeAnnotation":this.collectReferencedTypeDependencies(r.typeAnnotation,i,t,s);return;case"TSIntersectionType":case"TSUnionType":for(let l of r.types??[])this.collectReferencedTypeDependencies(l,i,t,s);return;case"TSTypeLiteral":for(let l of r.members??[]){if(!l||l.type!=="TSPropertySignature")continue;this.collectReferencedTypeDependencies(l.typeAnnotation?.typeAnnotation,i,t,s)}return;case"TSTypeReference":{let l=this.getTypeDependencyName(r.typeName);if(l){if(this.typeImportBindingsByLocalName.has(l))i.add(l);let u=this.localTypeDeclarationsByName.get(l);if(u&&!s.has(l))t.add(l),s.add(l),this.collectReferencedTypeDependencies(u.node,i,t,s),s.delete(l)}if("typeParameters"in r&&r.typeParameters&&typeof r.typeParameters==="object"){let u=r.typeParameters;for(let h of u.params??[])this.collectReferencedTypeDependencies(h,i,t,s)}return}case"TSArrayType":case"TSRestType":case"TSOptionalType":case"TSIndexedAccessType":case"TSTypeOperator":case"TSExpressionWithTypeArguments":case"TSTupleType":case"TSConditionalType":case"TSInferType":case"TSMappedType":case"TSFunctionType":case"TSConstructorType":case"TSTypeQuery":case"TSImportType":case"TSLiteralType":case"TSTypePredicate":case"TSNamedTupleMember":break;default:break}for(let l of Object.values(r)){if(!l||typeof l!=="object")continue;if(Array.isArray(l)){for(let u of l){if(!u||typeof u!=="object"||!("type"in u))continue;this.collectReferencedTypeDependencies(u,i,t,s)}continue}if("type"in l)this.collectReferencedTypeDependencies(l,i,t,s)}}buildTypeImportStatements(r){let i=new Map;for(let t of Array.from(r).sort()){let s=this.typeImportBindingsByLocalName.get(t);if(!s)continue;let l=i.get(s.source)??{default:[],named:[],namespace:[]};if(s.specifierType==="default")l.default.push(s.localName);else if(s.specifierType==="namespace")l.namespace.push(s.localName);else l.named.push({imported:s.importedName,local:s.localName});i.set(s.source,l)}return Array.from(i.entries()).sort(([t],[s])=>t.localeCompare(s)).map(([t,s])=>{if(s.namespace.length>0)return s.namespace.map((c)=>`import type * as ${c} from "${t}";`).join(`
572
+ `+w.value[0].data;h=X("$.escape",De(w.value,i,t))}else if(r.name!=="select")s.push(w)}else if(re(w)){if((w.name==="onload"||w.name==="onerror")&&Xh(r.name))p.add(w.name)}else if(w.name!=="defaultValue"&&w.name!=="defaultChecked")if(w.name==="class")if(w.metadata.needs_clsx)s.push({...w,value:{...w.value,expression:X("$.clsx",w.value.expression)}});else s.push(w);else s.push(w)}else if(w.type==="BindDirective"){if(w.name==="value"&&r.name==="select")continue;if(w.name==="value"&&s.some((b)=>b.type==="Attribute"&&b.name==="type"&&ut(b)&&b.value[0].data==="file"))continue;if(w.name==="this")continue;if(cl[w.name]?.omit_in_ssr)continue;let M=i.visit(w.expression);if(M.type==="SequenceExpression")M=X(M.expressions[0]);if(M=t(M,w.metadata.expression),w.name==="innerHTML")h=M;else if(Kh(w.name)||w.name==="value"&&r.name==="textarea")h=X("$.escape",M);else if(w.name==="group"&&w.expression.type!=="SequenceExpression"){let b=r.attributes.find((L)=>L.type==="Attribute"&&L.name==="value");if(!b)continue;let o=r.attributes.some((L)=>L.type==="Attribute"&&L.name==="type"&&ut(L)&&L.value[0].data==="checkbox");s.push(qs("checked",null,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,expression:o?X(ai(w.expression,"includes"),De(b.value,i,t)):Va("===",w.expression,De(b.value,i,t)),metadata:{expression:new vt}}]))}else s.push(qs(w.name,null,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,expression:M,metadata:{expression:new vt}}]))}else if(w.type==="SpreadAttribute"){if(s.push(w),c=!0,Xh(r.name))p.add("onload"),p.add("onerror")}else if(w.type==="UseDirective"){if(Xh(r.name))p.add("onload"),p.add("onerror")}else if(w.type==="ClassDirective")l.push(w);else if(w.type==="StyleDirective")u.push(w);else if(w.type==="LetDirective");else i.visit(w);if(c)uTr(r,s,u,l,i,t);else{let w=r.metadata.scoped?i.state.analysis.css.hash:null;for(let P of s){let M=r5(r,P),b=(M!=="class"||l.length===0)&&(M!=="style"||u.length===0);if(b&&(P.value===!0||ut(P))){let L=De(P.value,i,t,x$.includes(M)).value;if(M==="class"&&w)L=(String(L)+" "+w).trim();if(M!=="class"||L)i.state.template.push(qr(` ${M}="${L===!0?"":String(L)}"`));continue}let o=De(P.value,i,t,x$.includes(M));if(b&&o.type==="Literal"&&typeof o.value==="string"){if(M==="class"&&w)o.value=(o.value+" "+w).trim();i.state.template.push(qr(` ${M}="${pl(o.value,!0)}"`))}else if(M==="class")i.state.template.push(fTr(l,o,i,w,t));else if(M==="style")i.state.template.push(hTr(u,o,i,t));else i.state.template.push(X("$.attr",qr(M),o,Iq(M)&&ci))}}if(p.size!==0)for(let w of p)i.state.template.push(qr(` ${w}="this.__e=event"`));return h}function r5(r,i){let t=i.name;if(!r.metadata.svg&&!r.metadata.mathml)t=t.toLowerCase();return t}function lTr(r,i,t,s){return fi(i.map((u)=>{if(u.type==="Attribute"){let h=r5(r,u),c=De(u.value,t,s,x$.includes(h));return dt("init",Ae(h),c)}else if(u.type==="BindDirective"){let h=r5(r,u),c=u.expression.type==="SequenceExpression"?X(u.expression.expressions[0]):t.visit(u.expression);return dt("init",Ae(h),c)}return fa(s(t.visit(u),u.metadata.expression))}))}function uTr(r,i,t,s,l,u){let h=Qsr(r,i,t,s,l,u),c=X("$.attributes",...h);l.state.template.push(c)}function i5(r,i,t){let s=[],l=[],u=[];for(let h of r.attributes)if(h.type==="Attribute"||h.type==="BindDirective"||h.type==="SpreadAttribute")s.push(h);else if(h.type==="ClassDirective")l.push(h);else if(h.type==="StyleDirective")u.push(h);return Qsr(r,s,u,l,i,t)}function Qsr(r,i,t,s,l,u){let h,c,p=0;if(s.length){let M=s.map((b)=>ni(b.name,b.expression.type==="Identifier"&&b.expression.name===b.name?ir(b.name):u(l.visit(b.expression),b.metadata.expression)));h=fi(M)}if(t.length>0){let M=t.map((b)=>ni(b.name,b.value===!0?ir(b.name):De(b.value,l,u,!0)));c=fi(M)}if(r.metadata.svg||r.metadata.mathml)p|=FV|Oq;else if(Us(r))p|=Oq;else if(r.type==="RegularElement"&&r.name==="input")p|=BV;let w=lTr(r,i,l,u),P=r.metadata.scoped&&l.state.analysis.css.hash?qr(l.state.analysis.css.hash):void 0;return[w,P,h,c,p?qr(p):void 0]}function fTr(r,i,t,s,l){let u;if(r.length)u=fi(r.map((c)=>dt("init",qr(c.name),l(t.visit(c.expression,t.state),c.metadata.expression))));let h;if(s)if(i.type==="Literal"&&typeof i.value==="string")i.value=(i.value+" "+s).trim();else h=qr(s);return X("$.attr_class",i,h,u)}function hTr(r,i,t,s){let l;if(r.length){let u=[],h=[];for(let c of r){let p=c.value===!0?ir(c.name):De(c.value,t,s,!0),w=c.name;if(w[0]!=="-"||w[1]!=="-")w=w.toLowerCase();let P=ni(w,p);if(c.modifiers.includes("important"))h.push(P);else u.push(P)}if(h.length)l=li([fi(u),fi(h)]);else l=fi(u)}return X("$.attr_style",i,l)}function Jsr(r,i){let t=i.state.namespace==="html"?r.name.toLowerCase():r.name,s=Xu(r,i.state.namespace),l={...i.state,namespace:s,preserve_whitespace:i.state.preserve_whitespace||r.name==="pre"||r.name==="textarea",init:[],template:[]},u=Ta(t),h=new Za,c=t==="select"&&r.attributes.some((o)=>(o.type==="Attribute"||o.type==="BindDirective")&&o.name==="value"||o.type==="SpreadAttribute"),p=t==="option",w=c||p,P=null;if(!w)l.template.push(qr(`<${t}`)),P=Ww(r,{...i,state:l},h.transform),l.template.push(qr(u?"/>":">"));if((t==="script"||t==="style")&&r.fragment.nodes.length===1){l.template.push(qr(r.fragment.nodes[0].data),qr(`</${t}>`)),i.state.template.push(...h.render([...l.init,...Ve(l.template)]));return}let{hoisted:M,trimmed:b}=Ku(r,r.fragment.nodes,i.path,s,{...l,scope:l.scopes.get(r.fragment)},l.preserve_whitespace,l.options.preserveComments);for(let o of M)i.visit(o,l);if(Wr){let o=$t(r.start);l.template.push($r(X("$.push_element",ir("$$renderer"),qr(t),qr(o.line),qr(o.column))))}if(c){let o={...l,template:[],init:[]};_l(b,{...i,state:o});let L=Xr([ir("$$renderer")],Fr([...l.init,...Ve(o.template)])),[I,...j]=i5(r,i,h.transform);if(Uu(r))j.push(ci);let H=$r(X("$$renderer.select",I,L,...j));i.state.template.push(...h.render([...l.init,H]));return}if(p){let o;if(r.metadata.synthetic_value_node)o=h.transform(i.visit(r.metadata.synthetic_value_node.expression),r.metadata.synthetic_value_node.metadata.expression);else{let H={...l,template:[],init:[]};_l(b,{...i,state:H});let J=[...l.init,...Ve(H.template)];if(Wr){let W=$t(r.start);J.unshift($r(X("$.push_element",ir("$$renderer"),qr(t),qr(W.line),qr(W.column)))),J.push($r(X("$.pop_element")))}o=Xr([ir("$$renderer")],Fr(J))}let[L,...I]=i5(r,i,h.transform);if(Uu(r))I.push(ci);let j=$r(X("$$renderer.option",L,o,...I));i.state.template.push(...h.render([...l.init,j]));return}if(P!==null){let o={...l,template:[],init:[]};_l(b,{...i,state:o});let L=P;if(P.type!=="Identifier")L=ir(l.scope.generate("$$body")),l.template.push(wt(L,P));l.template.push(ue(L,Fr(Ve([L])),Fr([...o.init,...Ve(o.template)])))}else if(_l(b,{...i,state:l}),(t==="optgroup"||t==="select")&&Uu(r))l.template.push(qr("<!>"));if(!u)l.template.push(qr(`</${t}>`));if(Wr)l.template.push($r(X("$.pop_element")));if(h.is_async())i.state.template.push(...h.render([...l.init,...Ve(l.template)]));else i.state.init.push(...l.init),i.state.template.push(...l.template)}function Ysr(r,i){let t=new Za,s=Hu(r.expression).callee,l=Hu(r.expression).arguments,u=t.transform(i.visit(s),r.metadata.expression),h=l.map((p,w)=>{return t.transform(i.visit(p),r.metadata.arguments[w])}),c=$r((r.expression.type==="CallExpression"?X:al)(u,ir("$$renderer"),...h));if(i.state.template.push(...t.render_block([c])),!t.is_async()&&!i.state.is_standalone)i.state.template.push(kl)}function Wsr(r,i){let t=[],s=[],l=new Za,u=qr("default");for(let w of r.attributes)if(w.type==="SpreadAttribute"){let P=i.visit(w);s.push(l.transform(P,w.metadata.expression))}else if(w.type==="Attribute"){let P=De(w.value,i,l.transform,!1,!0);if(w.name==="name")u=P;else if(w.name!=="slot")t.push(ni(w.name,P))}let h=s.length===0?fi(t):X("$.spread_props",li([fi(t),...s])),c=r.fragment.nodes.length===0?Cs:Ir(i.visit(r.fragment)),p=X("$.slot",ir("$$renderer"),ir("$$props"),u,h,c);i.state.template.push(ca,...l.render_block([$r(p)]),Ee)}function Gsr(r,i){let t=Zf(r.expression,[ir("$$renderer"),...r.parameters],i.visit(r.body));t.___snippet=!0;let s=r.metadata.can_hoist?i.state.hoisted:i.state.init;if(Wr)t.body.body.unshift($r(X("$.validate_snippet_args",ir("$$renderer")))),s.push($r(X("$.prevent_snippet_stringification",t.id)));s.push(t)}function Ksr(r,i){return i.visit(r.expression)}function Xsr(r,i){O1(r,i.visit(r.expression),i)}function Dsr(r,i){let t=i.visit(r.tag);if(Wr){if(t.type!=="Identifier"){let p=i.state.scope.generate("$$tag");i.state.init.push(wt(p,t)),t=ir(p)}if(i.state.init.push($r(X("$.validate_dynamic_element_tag",Ir(t)))),r.fragment.nodes.length>0)i.state.init.push($r(X("$.validate_void_dynamic_element",Ir(t))))}let s={...i.state,namespace:Xu(r,i.state.namespace),template:[],init:[]},l=new Za,u=[];if(Ww(r,{...i,state:s},l.transform),Wr){let p=$t(r.start);u.push($r(X("$.push_element",ir("$$renderer"),t,qr(p.line),qr(p.column))))}let h=Fr([...s.init,...Ve(s.template)]),c=i.visit(r.fragment,s);if(u.push(...l.render([$r(X("$.element",ir("$$renderer"),t,h.body.length>0&&Ir(h),c.body.length>0&&Ir(c)))])),Wr)u.push($r(X("$.pop_element")));i.state.template.push(...za(u,r.metadata.expression.blockers(),r.metadata.expression.has_await))}function ksr(r,i){i.state.template.push(i.visit(r.fragment))}function _sr(r,i){let t=i.visit(r.fragment);i.state.template.push($r(X("$.head",qr(Wh(ee)),ir("$$renderer"),Xr([ir("$$renderer")],t))))}function xsr(r,i){O1(r,ir(i.state.analysis.name),i)}function rar(r,i){let t=[qr("<title>")];_l(r.fragment.nodes,{...i,state:{...i.state,template:t}}),t.push(qr("</title>")),i.state.init.push($r(X("$$renderer.title",Xr([ir("$$renderer")],Fr(Ve(t))))))}function iar(r,i){let t=r.argument;if(t.type==="Identifier"){let s=i.state.scope.get(t.name);if(s?.kind==="store_sub")return X(r.prefix?"$.update_store_pre":"$.update_store",qi("??=",ir("$$store_subs"),fi([])),qr(t.name),ir(t.name.slice(1)),r.operator==="--"&&qr(-1));if(s?.kind==="derived")return X(r.prefix?"$.update_derived_pre":"$.update_derived",s.node,r.operator==="--"&&qr(-1))}return i.next()}function ear(r,i){let t=[];if(i.state.analysis.runes)for(let s of r.declarations){let l=s.init,u=ft(l,i.state.scope);if(!u||u==="$effect.tracking"||u==="$inspect"||u==="$effect.root"){t.push(i.visit(s));continue}if(u==="$props.id")continue;if(u==="$props"){let p=!1,w=gi(s.id,null,{RestElement(M,b){if(b.path.at(-1)===s.id)p=!0},AssignmentPattern(M){if(M.right.type==="CallExpression"&&ft(M.right,i.state.scope)==="$bindable"){let b=M.right.arguments.length?i.visit(M.right.arguments[0]):Xt;return Yd(M.left,b)}}}),P=i.state.analysis.uses_slots?ir("$$slots_"):ir("$$slots");if(w.type==="ObjectPattern"&&p)w.properties.splice(w.properties.length-1,0,dt("init",ir("$$slots"),P),dt("init",ir("$$events"),ir("$$events")));else if(w.type==="Identifier")w=Qf([dt("init",ir("$$slots"),P),dt("init",ir("$$events"),ir("$$events")),h1(ir(w.name))]);t.push(Fi(i.visit(w),ir("$$props")));continue}let h=l.arguments,c=h.length>0?i.visit(h[0]):Xt;if(u==="$derived"||u==="$derived.by"){let w=u==="$derived"&&i.state.analysis.async_deriveds.has(s.init)?me(X("$.async_derived",Ir(c,!0))):X("$.derived",u==="$derived"?Ir(c):c);if(s.id.type==="Identifier")t.push(Fi(i.visit(s.id),w));else{let P=s.init,M=c;if(u!=="$derived"||P.arguments[0].type!=="Identifier"){let L=ir(i.state.scope.generate("$$d"));M=X(L),t.push(Fi(L,w))}let{inserts:b,paths:o}=Ue(s.id,M);for(let{id:L,value:I}of b){L.name=i.state.scope.generate("$$derived_array");let j=i.visit(Ir(I)),H=X("$.derived",j);t.push(Fi(L,H))}for(let L of o){let I=i.visit(L.expression),j=X("$.derived",Ir(I));t.push(Fi(L.node,j))}}continue}if(s.id.type==="Identifier"){t.push(Fi(s.id,c));continue}t.push(...tar(s,i.state.scope,c))}else for(let s of r.declarations){let l=i.state.scope.get_bindings(s),u=l.some((c)=>c.kind==="state"),h=l.some((c)=>c.kind==="bindable_prop");if(!u&&!h){t.push(i.visit(s));continue}if(h){if(s.id.type!=="Identifier"){let P=ir(i.state.scope.generate("tmp")),{inserts:M,paths:b}=Ue(s.id,P);t.push(Fi(P,i.visit(s.init)));for(let{id:o,value:L}of M)o.name=i.state.scope.generate("$$array"),t.push(Fi(o,L));for(let o of b){let L=o.expression,I=o.node.name,j=i.state.scope.get(I),H=ai(ir("$$props"),qr(j.prop_alias??I),!0);t.push(Fi(o.node,Dd(H,L)))}continue}let c=i.state.scope.get(s.id.name),p=ai(ir("$$props"),qr(c.prop_alias??s.id.name),!0),w=p;if(s.init){let P=i.visit(s.init);w=Dd(p,P)}t.push(Fi(s.id,w));continue}t.push(...tar(s,i.state.scope,s.init&&i.visit(s.init)))}if(t.length===0)return Ji;return{...r,declarations:t}}function tar(r,i,t){if(r.id.type==="Identifier")return[Fi(r.id,t)];let s=ir(i.generate("tmp")),{paths:l,inserts:u}=Ue(r.id,s);return[Fi(s,t),...u.map(({id:h,value:c})=>{return h.name=i.generate("$$array"),Fi(h,c)}),...l.map((h)=>{let c=h.expression;return Fi(h.node,c)})]}function aar(r,i){let t=r.fragment.nodes.find((b)=>b.type==="SnippetBlock"&&b.expression.name==="failed"),s=r.attributes.find((b)=>b.type==="Attribute"&&b.name==="failed"),l=r.attributes.find((b)=>b.type==="Attribute"&&b.name==="pending"),u=l&&typeof l.value==="object"&&!Array.isArray(l.value)&&!i.state.scope.evaluate(l.value.expression).is_defined,h=r.fragment.nodes.find((b)=>b.type==="SnippetBlock"&&b.expression.name==="pending"),c=r.fragment.nodes.filter((b)=>!(b.type==="SnippetBlock"&&["failed","pending"].includes(b.expression.name))),p={...r.fragment,nodes:c},w=i.visit(p,{...i.state,scope:i.state.scopes.get(r.fragment)??i.state.scope}),P;if(l||h)if(l&&u&&!h){let{callee:b,pending_block:o}=sar(l,i);P=Fr([ue(b,o,Fr(Ve([ca,w,Ee])))])}else P=l?sar(l,i).pending_block:nTr(h,i);else P=Fr(Ve([ca,w,Ee]));if(!t&&!s){i.state.template.push(...P.body);return}let M=fi([]);if(s&&!t){let b=De(s.value,i,(o)=>o,!1,!0);M.properties.push(ni("failed",b))}else if(t)i.visit(t,i.state),M.properties.push(ni("failed",t.expression));i.state.template.push($r(X("$$renderer.boundary",M,Xr([ir("$$renderer")],P))))}function sar(r,i){let t=De(r.value,i,(l)=>l,!1,!0),s=X(t,ir("$$renderer"));return{callee:t,pending_block:Fr(Ve([_f,$r(s),Ee]))}}function nTr(r,i){return Fr(Ve([_f,i.visit(r.body),Ee]))}var t5={_:o1,AssignmentExpression:Csr,AwaitExpression:Asr,CallExpression:Msr,ClassBody:Ssr,ExpressionStatement:Vsr,Identifier:Bsr,LabeledStatement:Nsr,MemberExpression:jsr,Program:zsr,PropertyDefinition:Zsr,UpdateExpression:iar,VariableDeclaration:ear},cTr={AwaitBlock:Rsr,Component:Tsr,ConstTag:Osr,DebugTag:Lsr,EachBlock:Esr,Fragment:Isr,HtmlTag:Fsr,IfBlock:Hsr,KeyBlock:Usr,RegularElement:Jsr,RenderTag:Ysr,SlotElement:Wsr,SnippetBlock:Gsr,SpreadAttribute:Ksr,SvelteComponent:Xsr,SvelteElement:Dsr,SvelteFragment:ksr,SvelteHead:_sr,SvelteSelf:xsr,TitleElement:rar,SvelteBoundary:aar};function lar(r,i){let t={analysis:r,options:i,scope:r.module.scope,scopes:r.module.scopes,hoisted:[Kd("$","svelte/internal/server"),...r.instance_body.hoisted],legacy_reactive_statements:new Map,init:null,template:null,namespace:i.namespace,preserve_whitespace:i.preserveWhitespace,state_fields:new Map,is_standalone:!1,is_instance:!1},s=gi(r.module.ast,t,t5),l=gi(r.instance.ast,{...t,scopes:r.instance.scopes,is_instance:!0},{...t5,ImportDeclaration(o){return t.hoisted.push(o),Ji},ExportNamedDeclaration(o,L){if(o.declaration)return L.visit(o.declaration);return Ji}}),u=gi(r.template.ast,{...t,scopes:r.template.scopes},{...t5,...cTr}),h=[];for(let[o]of r.reactive_statements){let L=[...t.legacy_reactive_statements].find(([I])=>I===o);if(L===void 0)throw Error("Could not find reactive statement");if(o.body.type==="ExpressionStatement"&&o.body.expression.type==="AssignmentExpression"){for(let I of Ct(o.body.expression.left))if(r.instance.scope.get(I.name)?.kind==="legacy_reactive")h.push(Fi(I))}l.body.push(L[1])}if(h.length>0)l.body.unshift({type:"VariableDeclaration",kind:"let",declarations:h});if(r.uses_component_bindings){let o=u.body.filter((I)=>I.type==="FunctionDeclaration"&&I.___snippet),L=u.body.filter((I)=>I.type!=="FunctionDeclaration"||!I.___snippet);u.body=[...o,be("$$settled",ci),be("$$inner_renderer"),Zf(ir("$$render_inner"),[ir("$$renderer")],Fr(L)),tN(yv("!",ir("$$settled")),Fr([$r(qi("=",ir("$$settled"),ci)),$r(qi("=",ir("$$inner_renderer"),X("$$renderer.copy"))),$r(X("$$render_inner",ir("$$inner_renderer")))])),$r(X("$$renderer.subsume",ir("$$inner_renderer")))]}if([...r.instance.scope.declarations.values()].some((o)=>o.kind==="store_sub"))l.body.unshift(Si("$$store_subs")),u.body.push(ue(ir("$$store_subs"),$r(X("$.unsubscribe_stores",ir("$$store_subs")))));let c=[];for(let[o,L]of r.instance.scope.declarations)if(L.kind==="bindable_prop"&&!o.startsWith("$$"))c.push(ni(L.prop_alias??o,ir(o)));for(let{name:o,alias:L}of r.exports)c.push(ni(L??o,ir(o)));if(c.length>0)u.body.push($r(X("$.bind_props",ir("$$props"),fi(c))));let p=Fr([...l.body,...u.body]);if(p.loc=l.loc,r.props_id)p.body.unshift(wt(r.props_id,X("$.props_id",ir("$$renderer"))));let w=Wr||r.needs_context;if(w)p=Fr([$r(X("$$renderer.component",Xr([ir("$$renderer")],p,!1),Wr&&ir(Su)))]);if(r.uses_rest_props){let o=r.exports.map(({name:L,alias:I})=>I??L);for(let[L,I]of r.instance.scope.declarations)if(I.kind==="bindable_prop")o.push(I.prop_alias??L);p.body.unshift(wt("$$restProps",X("$.rest_props",ir("$$sanitized_props"),li(o.map((L)=>qr(L))))))}if(r.uses_props||r.uses_rest_props)p.body.unshift(wt("$$sanitized_props",X("$.sanitize_props",ir("$$props"))));if(r.uses_slots)p.body.unshift(wt("$$slots",X("$.sanitize_slots",ir("$$props"))));let P=[...t.hoisted,...s.body];if(r.css.ast!==null&&r.inject_styles&&!r.custom_element){let o=qr(r.css.hash),L=qr(T1(r.source,r,i).code);P.push(wt("$$css",fi([ni("hash",o),ni("code",L)]))),p.body.unshift($r(X("$$renderer.global.css.add",ir("$$css"))))}let M=w||c.length>0||r.needs_props||r.uses_props||r.uses_rest_props||r.uses_slots||r.slot_names.size>0,b=Zf(ir(r.name),M?[ir("$$renderer"),ir("$$props")]:[ir("$$renderer")],p);if(i.compatibility.componentApi===4)P.unshift(Ql([["render","$$_render"]],"svelte/server")),P.push(b,$r(qi("=",f1(`${r.name}.render`),Re(null,[ir("$$props"),ir("$$opts")],Fr([Xi(X("$$_render",ir(r.name),fi([ni("props",ir("$$props")),ni("context",ai(ir("$$opts"),"context",!1,!0))])))])))),zf(ir(r.name)));else if(Wr)P.push(b,$r(qi("=",f1(`${r.name}.render`),Re(null,[],Fr([sN("Component.render(...) is no longer valid in Svelte 5. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes for more information")])))),zf(ir(r.name)));else P.push(zf(b));if(Wr)P.unshift($r(qi("=",ai(ir(r.name),"$.FILENAME",!0),qr(ee))));if(i.experimental.async)P.unshift(Ql([],"svelte/internal/flags/async"));return{type:"Program",sourceType:"module",body:P}}class ke{#r=[];#i=[];#t=new Set;add(r,i,t=!1){if(this.check_blockers(i),!(i.has_call||i.has_await||t&&i.has_state))return r;let l=ir("#");return(i.has_await?this.#i:this.#r).push({id:l,expression:r}),l}check_blockers(r){for(let i of r.dependencies)if(i.blocker)this.#t.add(i.blocker)}apply(){return[...this.#r,...this.#i].map((r,i)=>{return r.id.name=`$${i}`,r.id})}blockers(){return this.#t.size>0?li([...this.#t]):void 0}deriveds(r=!0){return this.#r.map((i)=>be(i.id,X(r?"$.derived":"$.derived_safe_equal",Ir(i.expression))))}async_ids(){return this.#i.map((r)=>r.id)}async_values(){if(this.#i.length===0)return;return li(this.#i.map((r)=>Xr([],r.expression,!0)))}sync_values(){if(this.#r.length===0)return;return li(this.#r.map((r)=>Xr([],r.expression)))}}function Du(r,i,t=i.state,s=(l,u)=>t.memoizer.add(l,u)){let l=[],u=Ia(""),h=[u],c=!1,p=!1;for(let P=0;P<r.length;P++){let M=r[P];if(M.type==="Text")u.value.cooked+=M.data;else if(M.expression.type==="Literal"){if(M.expression.value!=null)u.value.cooked+=M.expression.value+""}else if(M.expression.type!=="Identifier"||M.expression.name!=="undefined"||t.scope.get("undefined")){let b=s(ae(i,M.expression,M.metadata.expression,t),M.metadata.expression),o=t.scope.evaluate(b);if(p||=M.metadata.expression.has_await||M.metadata.expression.has_blockers(),c||=p||M.metadata.expression.has_state&&!o.is_known,r.length===1){if(o.is_known)b=qr((o.value??"")+"");return{value:b,has_state:c}}if(b.type==="LogicalExpression"&&b.right.type==="Literal"&&(b.operator==="??"||b.operator==="||")){if(b.right.value===null)b={...b,right:qr("")}}if(o.is_known)u.value.cooked+=(o.value??"")+"";else{if(!o.is_defined)b=ua("??",b,qr(""));l.push(b),u=Ia("",P+1===r.length),h.push(u)}}}for(let P of h)P.value.raw=jf(P.value.cooked);return{value:l.length>0?Fu(h,l):qr(u.value.cooked),has_state:c}}function xf(r){let{memoizer:i}=r,t=i.apply();return $r(X("$.template_effect",Xr(t,r.update.length===1&&r.update[0].type==="ExpressionStatement"?r.update[0].expression:Fr(r.update)),i.sync_values(),i.async_values(),i.blockers()))}function L1(r){let i=r.split("."),t=i.shift(),s=ir(t);while(t=i.shift()){let l=!Wy.test(t);s=ai(s,l?qr(t):ir(t),l)}return s}function Gw(r,i,{state:t,visit:s}){let[l,u]=r.type==="SequenceExpression"?r.expressions:[null,null],h=[],c=[],p=[],w={...t.transform};gi(l??r,null,{Identifier(L,{path:I}){if(p.includes(L.name))return;p.push(L.name);let j=I.at(-1);if(!Se(L,j))return;let H=t.scope.get(L.name);if(!H)return;for(let[J,W]of t.scopes)if(J.type==="EachBlock"&&W===H.scope){if(h.push(L),c.push(s(L)),w[L.name])w[L.name]={...w[L.name],read:(sr)=>sr};break}}});let P={...t,transform:w},M=s(l??r,P),b=s(u??qi("=",r,ir("$$value")),P),o=M;while(o.type==="MemberExpression")o.optional=!0,o=o.object;return M=M.type==="ArrowFunctionExpression"?Xr([...h],M.body):M.type==="FunctionExpression"?Re(null,[...h],M.body):l?M:Xr([...h],M),b=b.type==="ArrowFunctionExpression"?Xr([b.params[0]??ir("_"),...h],b.body):b.type==="FunctionExpression"?Re(null,[b.params[0]??ir("_"),...h],b.body):u?b:Xr([ir("$$value"),...h],b),X("$.bind_this",i,b,M,c.length>0&&Ir(li(c)))}function Kw(r,i,t){if(i.expression.type==="SequenceExpression")return;let s=se(i.expression);if((s&&r.scope.get(s.name))?.kind==="store_sub")return;let u=$t(i.start),h=t.object;r.init.push($r(X("$.validate_binding",qr(r.analysis.source.slice(i.start,i.end)),i.metadata.expression.blockers(),Ir(r.store_to_invalidate?oe([X("$.mark_store_binding"),h]):h),Ir(t.computed?t.property:qr(t.property.name)),qr(u.line),qr(u.column))))}function Xw(r,i,t){let s=r.type==="AssignmentExpression"?r.left:r.argument;if(!Wr||s.type!=="MemberExpression"||Kt(r,"ownership_invalid_mutation"))return t;let l=se(s);if(!l)return t;let u=i.state.scope.get(l.name);if(u?.kind!=="prop"&&u?.kind!=="bindable_prop")return t;let h=i.state;h.analysis.needs_mutation_validation=!0;let c=[];while(s.type==="MemberExpression"){if(s.property.type==="Literal")c.unshift(s.property);else if(s.property.type==="Identifier"){let w=Object.hasOwn(i.state.transform,s.property.name)?i.state.transform[s.property.name]:null;if(s.computed)c.unshift(w?.read?w.read(s.property):s.property);else c.unshift(qr(s.property.name))}else return t;s=s.object}c.unshift(qr(l.name));let p=$t(s.start);return X("$$ownership_validator.mutation",qr(u.prop_alias),li(c),t,p&&qr(p.line),p&&qr(p.column))}function ae(r,i,t,s=r.state){let l=r.visit(i,s);if(r.state.analysis.runes||r.state.analysis.maybe_runes)return l;if(!t.has_call&&!t.has_member_expression&&!t.has_assignment)return l;let u=oe([]);for(let c of t.references){if(c.kind==="normal"&&c.declaration_kind!=="import")continue;var h=Xe({...c.node},s);if(c.kind==="bindable_prop"||c.kind==="template"||c.declaration_kind==="import"||c.node.name==="$$props"||c.node.name==="$$restProps")h=X("$.deep_read_state",h);u.expressions.push(h)}return u.expressions.push(X("$.untrack",Ir(l))),u}function Ns(r,i,t,s){if(!Wr)return $r(r);let l=i.start!==void 0&&$t(i.start);if(!l)return $r(r);return $r(X("$.add_svelte_meta",Xr([],r),qr(t),ir(Su),qr(l.line),qr(l.column),s&&fi(Object.entries(s).map(([u,h])=>ni(u,qr(h))))))}function uar(r,i){let t=r.expression===null?Cs:Ir(i.visit(r.expression)),s=$r(X("$.animation",i.state.node,Ir(i.visit(L1(r.name))),t));if(r.metadata.expression.is_async())s=$r(X("$.run_after_blockers",r.metadata.expression.blockers(),Ir(Fr([s]))));i.state.after_update.push(s)}var Dw=(r,i)=>{let t={...i.state,in_constructor:!1,in_derived:!1};if(r.type==="FunctionExpression"){let s=i.path.at(-1);t.in_constructor=s.type==="MethodDefinition"&&s.kind==="constructor"}i.next(t)};function far(r,i){return Dw(r,i)}function har(r,i){let t=Zw(r,i,yTr)??i.next();return Xw(r,i,t)}function e5(r){return["=","||=","&&=","??="].includes(r)}function yTr(r,i,t,s){if(s.state.analysis.runes&&i.type==="MemberExpression"){let w=Ke(i.property),P=w&&s.state.state_fields.get(w);if(P){if(P.node.type==="AssignmentExpression"&&i===P.node.left){let M=ft(t,s.state.scope);if(M){let b={...s.state,in_constructor:M!=="$derived"&&M!=="$derived.by"},o=s.visit(t,b);if(Wr){let L=s.path.findLast((I)=>I.type==="ClassDeclaration"||I.type==="ClassExpression");o=X("$.tag",o,qr(`${L?.id?.name??"[class]"}.${w}`))}return qi(r,ai(ns,P.key),o)}}if(i.property.type==="PrivateIdentifier"){let M=s.visit(Yf(r,i,t)),b=P.type==="$state"&&e5(r)&&ja(M,s.state.scope);return X("$.set",i,M,b&&ci)}}}let l=i;while(l.type==="MemberExpression")l=l.object;if(l.type!=="Identifier")return null;let u=s.state.scope.get(l.name);if(!u)return null;let h=Object.hasOwn(s.state.transform,l.name)?s.state.transform[l.name]:null,c=s.path.map((w)=>w.type);if(l===i&&h?.assign){let w=c.at(-1)==="BindDirective"&&c.at(-2)==="RegularElement",P=s.visit(Yf(r,i,t));return h.assign(l,P,!w&&u.kind!=="prop"&&u.kind!=="bindable_prop"&&u.kind!=="raw_state"&&u.kind!=="derived"&&u.kind!=="store_sub"&&s.state.analysis.runes&&ja(t,s.state.scope)&&e5(r))}if(h?.mutate){let w=h.mutate(l,qi(r,s.visit(i),s.visit(t)));if(u.legacy_indirect_bindings.size>0)w=oe([w,X("$.invalidate_inner_signals",Xr([],Fr(Array.from(u.legacy_indirect_bindings).map((P)=>$r(Xe({...P.node},s.state))))))]);return w}let p=Wr&&c.at(-1)!=="ExpressionStatement"&&e5(r)&&!s.state.scope.evaluate(t).is_primitive;if(c.at(-1)==="ArrowFunctionExpression"&&(c.at(-2)==="RegularElement"||c.at(-2)==="SvelteElement")){if(s.path.at(-2).attributes.find((M)=>{if(M.type!=="Attribute"||!re(M))return!1;return Ba(M)===s.path.at(-1)}))p=!1}if(c.at(-1)==="BindDirective"||c.at(-1)==="Component"||c.at(-1)==="SvelteComponent"||c.at(-1)==="ArrowFunctionExpression"&&(c.at(-2)==="BindDirective"||c.at(-2)==="Component"&&c.at(-3)==="Fragment"||c.at(-2)==="SequenceExpression"&&(c.at(-3)==="Component"||c.at(-3)==="SvelteComponent"||c.at(-3)==="BindDirective")))p=!1;if(i.type==="MemberExpression"&&p){let w=r!=="=",P=w&&At(t),M=X(P?"$.assign_async":"$.assign",i.object,i.computed?i.property:qr(i.property.name),qr(r),w?Xr([],t,P):t,qr(Vf(i)));if(P)M=me(M);return s.visit(M)}return null}function kw(r,i){let t=!1,s=r.name.slice(2);if(zV(s))s=s.slice(0,-7),t=!0;let l=Array.isArray(r.value)?r.value[0]:r.value,u=Dv(l.expression,l.metadata.expression,i);if(r.metadata.delegated)i.state.events.add(s);let h=$r(s5(i,s,u,t,WV(s)?!0:void 0,r.metadata.delegated)),c=i.path.at(-1).type;if(c==="SvelteDocument"||c==="SvelteWindow"||c==="SvelteBody")i.state.init.push(h);else i.state.after_update.push(h)}function s5(r,i,t,s,l,u){let h=t;if(Wr&&t.type==="ArrowFunctionExpression"){let c=r.state.scope.generate(i);h=Re(ir(c),t.params,t.body.type==="BlockStatement"?t.body:Fr([Xi(t.body)]),t.async)}return X(u?"$.delegated":"$.event",qr(i),r.state.node,h,s&&ci,l===void 0?void 0:qr(l))}function Dv(r,i,t){if(r===null)return Re(null,[ir("$$arg")],Fr([$r(X("$.bubble_event.call",ns,ir("$$props"),ir("$$arg")))]));let s=t.visit(r);if(s.type==="ArrowFunctionExpression"||s.type==="FunctionExpression")return s;if(s.type==="Identifier"){let u=t.state.scope.get(s.name);if(u?.is_function())return s;if(!Wr&&u?.declaration_kind!=="import")return s}if(i.has_call){let u=ir(t.state.scope.generate("event_handler"));t.state.init.push(Si(u,X("$.derived",Ir(s)))),s=X("$.get",u)}let l=X(ai(s,"apply",!1,!0),ns,ir("$$args"));if(Wr){let u=$t(r.start),h=r.type==="CallExpression"&&r.arguments.length===0&&r.callee.type==="Identifier";l=X("$.apply",Ir(s),ns,ir("$$args"),ir(t.state.analysis.name),li([qr(u.line),qr(u.column)]),nar(r)&&ci,h&&ci)}return Re(null,[h1(ir("$$args"))],Fr([$r(l)]))}function nar(r){if(r.type==="CallExpression"||r.type==="NewExpression"||r.type==="AssignmentExpression"||r.type==="UpdateExpression")return!0;if(r.type==="SequenceExpression")return r.expressions.some(nar);return!1}function car(r,i){if(re(r))kw(r,i)}function fe(r){return X("$.get",r)}function _w(r){for(let[i,t]of r.state.scope.declarations)if(q1(t,r.state.analysis)||t.kind==="derived"||t.kind==="legacy_reactive")r.state.transform[i]={read:t.declaration_kind==="var"?(s)=>X("$.safe_get",s):fe,assign:(s,l,u=!1)=>{let h=X("$.set",s,l,u&&ci);if(r.state.scope.get(`$${s.name}`)?.kind==="store_sub")h=X("$.store_unsub",h,qr(`$${s.name}`),ir("$$stores"));return h},mutate:(s,l)=>{if(r.state.analysis.runes)return l;return X("$.mutate",s,l)},update:(s)=>{return X(s.prefix?"$.update_pre":"$.update",s.argument,s.operator==="--"&&qr(-1))}}}function par(r,i){i.state.template.push_comment();let t=Ir(ae(i,r.expression,r.metadata.expression),r.metadata.expression.has_await),s,l;if(r.then){let h={...i,state:{...i.state,transform:{...i.state.transform}}},c=r.value&&yar(r.value,h),p=[ir("$$anchor")];if(c)p.push(c.id);let w=c?.declarations??[],P=h.visit(r.then,h.state);s=Xr(p,Fr([...w,...P.body]))}if(r.catch){let h={...i,state:{...i.state}},c=r.error&&yar(r.error,h),p=[ir("$$anchor")];if(c)p.push(c.id);let w=c?.declarations??[],P=h.visit(r.catch,h.state);l=Xr(p,Fr([...w,...P.body]))}let u=Ns(X("$.await",i.state.node,t,r.pending?Xr([ir("$$anchor")],i.visit(r.pending)):Cs,s,l),r,"await");if(r.metadata.expression.has_blockers())i.state.init.push($r(X("$.async",i.state.node,r.metadata.expression.blockers(),li([]),Xr([i.state.node],Fr([u])))));else i.state.init.push(u)}function yar(r,i){if(r.type==="Identifier")return i.state.transform[r.name]={read:fe},{id:r,declarations:null};let t=i.visit(r),s=Ct(r),l=ir("$$source"),u=ir("$$value"),h=Fr([Si(t,X("$.get",l)),Xi(fi(s.map((p)=>dt("init",p,p))))]),c=[Si(u,Qu(i.state,h))];for(let p of s)i.state.transform[p.name]={read:fe},c.push(Si(p,Qu(i.state,ai(X("$.get",u),p))));return{id:l,declarations:c}}function mar(r,i){let t=i.visit(r.argument);if(i.state.analysis.pickled_awaits.has(r))return fl(t);else if(Wr&&!Kt(r,"await_reactivity_loss"))return X(me(X("$.track_reactivity_loss",t)));return t===r.argument?r:{...r,argument:t}}function oar(r,i){if(Wr){let t=r.operator;if(t==="==="||t==="!==")return X("$.strict_equals",i.visit(r.left),i.visit(r.right),t==="!=="&&Zl);if(t==="=="||t==="!=")return X("$.equals",i.visit(r.left),i.visit(r.right),t==="!="&&Zl)}i.next()}function rh(r,i,t,s){let l=s.state.metadata.bound_contenteditable,u=i,h=0,c=[];function p(M){if(h===0)return u(M);return X("$.sibling",u(!1),(M||h!==1)&&qr(h),M&&ci)}function w(M,b,o){let L=p(M),I=L;if(I.type!=="Identifier")I=ir(s.state.scope.generate(b),o),s.state.init.push(Si(I,L));return u=()=>I,h=1,I}function P(M){if(M.every((H)=>H.type==="Text")){h+=1,s.state.template.push_text(M);return}s.state.template.push_text([{type:"Text",data:" ",raw:" ",start:-1,end:-1}]);let{has_state:b,value:o}=Du(M,s),L=M.length===1,I=w(L,"text"),j=$r(X("$.set_text",I,o));if(b&&!l)s.state.update.push(j);else s.state.init.push($r(qi("=",ai(I,"nodeValue"),o)))}for(let M of r)if(M.type==="Text"||M.type==="ExpressionTag")c.push(M);else{if(c.length>0)P(c),c=[];let b=s.state;if(a5(M))h+=1;else if(M.type==="EachBlock"&&r.length===1&&t&&!M.metadata.expression.is_async())M.metadata.is_controlled=!0;else if(M.type==="HtmlTag"&&r.length===1&&t)M.metadata.is_controlled=!0;else{let o=w(!1,M.type==="RegularElement"?M.name:"node",M.type==="RegularElement"?M.name_loc:null);b={...s.state,node:o}}s.visit(M,b)}if(c.length>0)P(c);if(h>1)h-=1,s.state.init.push($r(X("$.next",h!==1&&qr(h))))}function a5(r){if(r.type!=="RegularElement")return!1;if(r.fragment.metadata.dynamic)return!1;if(Us(r))return!1;for(let i of r.attributes){if(i.type!=="Attribute")return!1;if(re(i))return!1;if(Gh(i.name))return!1;if(i.name==="dir")return!1;if(["input","textarea"].includes(r.name)&&["value","checked"].includes(i.name))return!1;if(r.name==="option"&&i.name==="value")return!1;if(r.name==="img"&&i.name==="loading")return!1;if(i.value!==!0&&!ut(i))return!1}return!0}var vTr="accent-height accumulate additive alignment-baseline allowReorder alphabetic amplitude arabic-form ascent attributeName attributeType autoReverse azimuth baseFrequency baseline-shift baseProfile bbox begin bias by calcMode cap-height class clip clipPathUnits clip-path clip-rule color color-interpolation color-interpolation-filters color-profile color-rendering contentScriptType contentStyleType cursor cx cy d decelerate descent diffuseConstant direction display divisor dominant-baseline dur dx dy edgeMode elevation enable-background end exponent externalResourcesRequired fill fill-opacity fill-rule filter filterRes filterUnits flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight format from fr fx fy g1 g2 glyph-name glyph-orientation-horizontal glyph-orientation-vertical glyphRef gradientTransform gradientUnits hanging height href horiz-adv-x horiz-origin-x id ideographic image-rendering in in2 intercept k k1 k2 k3 k4 kernelMatrix kernelUnitLength kerning keyPoints keySplines keyTimes lang lengthAdjust letter-spacing lighting-color limitingConeAngle local marker-end marker-mid marker-start markerHeight markerUnits markerWidth mask maskContentUnits maskUnits mathematical max media method min mode name numOctaves offset onabort onactivate onbegin onclick onend onerror onfocusin onfocusout onload onmousedown onmousemove onmouseout onmouseover onmouseup onrepeat onresize onscroll onunload opacity operator order orient orientation origin overflow overline-position overline-thickness panose-1 paint-order pathLength patternContentUnits patternTransform patternUnits pointer-events points pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits r radius refX refY rendering-intent repeatCount repeatDur requiredExtensions requiredFeatures restart result rotate rx ry scale seed shape-rendering slope spacing specularConstant specularExponent speed spreadMethod startOffset stdDeviation stemh stemv stitchTiles stop-color stop-opacity strikethrough-position strikethrough-thickness string stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width style surfaceScale systemLanguage tabindex tableValues target targetX targetY text-anchor text-decoration text-rendering textLength to transform type u1 u2 underline-position underline-thickness unicode unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical values version vert-adv-y vert-origin-x vert-origin-y viewBox viewTarget visibility width widths word-spacing writing-mode x x-height x1 x2 xChannelSelector xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xml:lang xml:space y y1 y2 yChannelSelector z zoomAndPan".split(" "),bar=new Map;vTr.forEach((r)=>{bar.set(r.toLowerCase(),r)});function l5(r){return r=r.toLowerCase(),bar.get(r)||r}class kv{contains_script_tag=!1;needs_import_node=!1;nodes=[];#r=[this.nodes];#i;#t=this.nodes;push_element(r,i,t){this.#i={type:"element",name:r,attributes:{},children:[],is_html:t,start:i},this.#t.push(this.#i),this.#t=this.#i.children,this.#r.push(this.#t)}push_comment(r){this.#t.push({type:"comment",data:r})}push_text(r){this.#t.push({type:"text",nodes:r})}pop_element(){this.#r.pop(),this.#t=this.#r.at(-1)}set_prop(r,i){this.#i.attributes[r]=i}as_html(){return Fu([Ia(this.nodes.map(dar).join(""),!0)],[])}as_tree(){if(this.nodes[0].type==="comment")this.nodes.unshift({type:"comment",data:void 0});return li(this.nodes.map(war))}}function dar(r){if(r.type==="text")return r.nodes.map((t)=>t.raw).join("");if(r.type==="comment")return r.data?`<!--${r.data}-->`:"<!>";let i=`<${r.name}`;for(let t in r.attributes){let s=r.attributes[t];if(i+=` ${r.is_html?t.toLowerCase():t}`,s!==void 0)i+=`="${pl(s,!0)}"`}if(Ta(r.name))i+="/>";else i+=">",i+=r.children.map(dar).join(""),i+=`</${r.name}>`;return i}function war(r){if(r.type==="text")return qr(r.nodes.map((s)=>s.data).join(""));if(r.type==="comment")return r.data?li([qr(`// ${r.data}`)]):null;let i=li([qr(r.name)]),t=fi([]);for(let s in r.attributes){let l=r.attributes[s];t.properties.push(dt("init",Ae(l5(s)),l===void 0?Xt:qr(l)))}if(t.properties.length>0||r.children.length>0)i.elements.push(t.properties.length>0?t:Cs);if(r.children.length>0){let s=r.children.map(war);if(i.elements.push(...s),r.name==="pre"||r.name==="textarea"){let l=s[0];if(l?.type==="Literal")l.value=l.value.replace(Of,"")}}return i}function Car(r){let i=li([]);for(let t of r){if(t.type!=="element")continue;let{line:s,column:l}=$t(t.start),u=li([qr(s),qr(l)]),h=Car(t.children);if(h.elements.length>0)u.elements.push(h);i.elements.push(u)}return i}function _v(r,i,t=0){let s=r.options.fragments==="tree",l=s?r.template.as_tree():r.template.as_html();if(s){if(i==="svg")t|=OV;if(i==="mathml")t|=LV}let u=X(s?"$.from_tree":`$.from_${i}`,l,t?qr(t):void 0);if(r.template.contains_script_tag)u=X("$.with_script",u);if(Wr)u=X("$.add_locations",u,ai(ir(r.analysis.name),"$.FILENAME",!0),Car(r.template.nodes));return u}function Par(r,i){let t=i.state.metadata.namespace==="html"&&r.name!=="svg",s=t?r.name.toLowerCase():r.name;if(i.state.template.push_element(s,r.start,t),s==="noscript"){i.state.template.pop_element();return}let l=Us(r);i.state.template.needs_import_node||=s==="video"||l,i.state.template.contains_script_tag||=s==="script";let u=[],h=[],c=[],p=[],w=[],P=new Map,M=new Map,b=r.metadata.has_spread,o=!1,L=!1;for(let q of r.attributes)switch(q.type){case"AnimateDirective":p.push(q);break;case"Attribute":if(q.name==="is"&&i.state.metadata.namespace==="html"){let{value:T}=de(q.value,i);if(T.type==="Literal"&&typeof T.value==="string"){i.state.template.set_prop("is",T.value);continue}}u.push(q),P.set(q.name,q);break;case"BindDirective":M.set(q.name,q),p.push(q);break;case"ClassDirective":h.push(q);break;case"LetDirective":i.visit(q,{...i.state,let_directives:w});break;case"OnDirective":p.push(q);break;case"SpreadAttribute":u.push(q);break;case"StyleDirective":c.push(q);break;case"TransitionDirective":p.push(q);break;case"UseDirective":o=!0,p.push(q);break;case"AttachTag":p.push(q);break}let I={...i.state,init:[],after_update:[]};for(let q of p)if(q.type==="OnDirective"){let T=i.visit(q);if(o)I.init.push($r(X("$.effect",Ir(T))));else I.after_update.push($r(T))}else i.visit(q,I);if(s==="input"){let q=u.some((V)=>V.type==="Attribute"&&(V.name==="value"||V.name==="checked")&&!ut(V));if(!u.some((V)=>V.type==="Attribute"&&(V.name==="defaultValue"||V.name==="defaultChecked"))&&(b||M.has("value")||M.has("checked")||M.has("group")||!M.has("group")&&q))if(b)L=!0;else i.state.init.push($r(X("$.remove_input_defaults",i.state.node)))}if(s==="textarea"){let q=P.get("value")??P.get("checked"),T=q&&!ut(q);if(b||M.has("value")||T)i.state.init.push($r(X("$.remove_textarea_child",i.state.node)))}i.state.init.push(...w);let j=i.state.node,H=s==="option"||s==="select"||M.has("group")||M.has("checked");if(b)xw(u,h,c,i,r,j,L);else for(let q of u){if(re(q)){kw(q,i);continue}if(H&&q.name==="value")continue;let T=$ar(r,q);if(!l&&!Gh(q.name)&&(q.value===!0||ut(q))&&(T!=="class"||h.length===0)&&(T!=="style"||c.length===0)){let V=ut(q)?q.value[0].data:!0;if(T==="class"&&r.metadata.scoped&&i.state.analysis.css.hash)if(V===!0||V==="")V=i.state.analysis.css.hash;else V+=" "+i.state.analysis.css.hash;if(T!=="class"||V)i.state.template.set_prop(q.name,V===!0?"":V)}else if(T==="autofocus"){let{value:V}=de(q.value,i);i.state.init.push($r(X("$.autofocus",j,V)))}else if(T==="class")r2(r,j,q,h,i,t);else if(T==="style")gar(j,q,c,i);else if(l)mTr(j,q,i);else{let{value:V,has_state:S}=de(q.value,i,(er,tr)=>i.state.memoizer.add(er,tr)),k=pTr(r,j,T,V,u);(S?i.state.update:i.state.init).push($r(k))}}if(Xh(s)&&(b||o||P.has("onload")||P.has("onerror")))i.state.after_update.push($r(X("$.replay_events",j)));let J={...i.state.metadata,namespace:Xu(r,i.state.metadata.namespace)};if(M.has("innerHTML")||M.has("innerText")||M.has("textContent")){let q=P.get("contenteditable");if(q&&(q.value===!0||ut(q)&&q.value[0].data==="true"))J.bound_contenteditable=!0}let W={...i.state,metadata:J,scope:i.state.scopes.get(r.fragment),preserve_whitespace:i.state.preserve_whitespace||s==="pre"||s==="textarea"},{hoisted:sr,trimmed:rr}=Ku(r,r.fragment.nodes,i.path,W.metadata.namespace,W,s==="script"||W.preserve_whitespace,W.options.preserveComments),hr={...W,init:[],update:[],after_update:[],snippets:[]};for(let q of sr)i.visit(q,hr);if(rr.every((q)=>q.type==="Text"||q.type==="ExpressionTag")&&rr.every((q)=>q.type==="Text"||!q.metadata.expression.has_state&&!q.metadata.expression.has_await&&!q.metadata.expression.has_blockers())&&rr.some((q)=>q.type==="ExpressionTag")){let{value:q}=Du(rr,i,hr);if(!(q.type==="Literal"&&q.value===""))hr.init.push($r(qi("=",ai(i.state.node,"textContent"),q)))}else if(Uu(r)){let q=i.state.node;i.state.template.push_comment();let T=i.state.scope.root.unique(`${s}_content`),V=ir(i.state.scope.generate("fragment")),S=ir(i.state.scope.generate("anchor")),k={...W,init:[],update:[],after_update:[],template:new kv};rh(rr,(U)=>X("$.first_child",V,U&&ci),!1,{...i,state:k});let er=_v(k,J.namespace,ud);i.state.hoisted.push(Si(T,er));let tr=Fr([Si(S,X("$.child",q)),Si(V,X(T)),...k.init,...k.update.length>0?[xf(k)]:[],...k.after_update,$r(X("$.append",S,V))]);hr.init.push($r(X("$.customizable_select",q,Xr([],tr))))}else{let q=i.state.node,T=rr.some((V)=>V.type!=="Text"&&!a5(V));if(s==="template")T=!0,hr.init.push($r(X("$.hydrate_template",q))),q=ai(q,"content");if(rh(rr,(V)=>X("$.child",q,V&&ci),!0,{...i,state:hr}),T)hr.init.push($r(X("$.reset",i.state.node)))}if(r.fragment.nodes.some((q)=>q.type==="SnippetBlock"))i.state.init.push(Fr([...hr.snippets,...hr.init,...I.init,hr.update.length>0?xf(hr):Ji,...hr.after_update,...I.after_update]));else if(r.fragment.metadata.dynamic)i.state.init.push(...hr.init,...I.init),i.state.update.push(...hr.update),i.state.after_update.push(...hr.after_update,...I.after_update);else i.state.init.push(...I.init),i.state.after_update.push(...I.after_update);if(s==="selectedcontent")i.state.init.push($r(X("$.selectedcontent",i.state.node,Xr([ir("$$element")],qi("=",i.state.node,ir("$$element"))))));if(P.has("dir")){let q=ai(j,"dir");i.state.update.push($r(qi("=",q,q)))}if(!b&&H){if(r.metadata.synthetic_value_node){let q=r.metadata.synthetic_value_node,T=qs("value",null,q.start,q.end,[q]);qar(s,j,T,i,!0)}else for(let q of u)if(q.name==="value"){qar(s,j,q,i);break}}i.state.template.pop_element()}function u5(r,i,t=i.state.memoizer){let s=[],l=new vt;for(let h of r){l.merge(h.metadata.expression);let c=i.visit(h.expression);s.push(ni(h.name,c))}let u=fi(s);return t.add(u,l)}function f5(r,i,t=i.state.memoizer){let s=fi([]),l=fi([]),u=new vt;for(let c of r){u.merge(c.metadata.expression);let p=c.value===!0?Xe(ir(c.name),i.state):de(c.value,i).value;(c.modifiers.includes("important")?l:s).properties.push(ni(c.name,p))}let h=l.properties.length?li([s,l]):s;return t.add(h,u)}function pTr(r,i,t,s,l){if(t==="muted")return qi("=",ai(i,ir("muted")),s);if(t==="value")return X("$.set_value",i,s);if(t==="checked")return X("$.set_checked",i,s);if(t==="selected")return X("$.set_selected",i,s);if(t==="defaultValue"&&(l.some((u)=>u.type==="Attribute"&&u.name==="value"&&ut(u))||r.name==="textarea"&&r.fragment.nodes.length>0))return X("$.set_default_value",i,s);if(t==="defaultChecked"&&l.some((u)=>u.type==="Attribute"&&u.name==="checked"&&u.value===!0))return X("$.set_default_checked",i,s);if(YV(t))return qi("=",ai(i,t),s);return X(t.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute",i,qr(t),s,Kt(r,"hydration_attribute_changed")&&ci)}function mTr(r,i,t){let{value:s,has_state:l}=de(i.value,t),u=X("$.set_custom_element_data",r,qr(i.name),s),h=l?X("$.template_effect",Ir(u)):u;t.state.init.push($r(h))}function qar(r,i,t,s,l=!1){let u=s.state,h=r==="select"&&t.value!==!0&&!ut(t),{value:c,has_state:p}=de(t.value,s,(o,L)=>u.memoizer.add(o,L)),w=s.state.scope.evaluate(c),P=qi("=",ai(i,"__value"),c),M=qi("=",ai(i,"value"),w.is_defined?P:ua("??",P,qr(""))),b=$r(h?oe([M,X("$.select_option",i,c)]):l?P:M);if(p){let o=ir(u.scope.generate(`${i.name}_value`)),L=r==="option"?fi([]):void 0;u.init.push(Si(o,L)),u.update.push(ue(Va("!==",o,qi("=",o,c)),Fr([b])))}else u.init.push(b);if(h)u.init.push($r(X("$.init_select",i)))}function xw(r,i,t,s,l,u,h=!1){let c=[],p=new ke;for(let P of r)if(P.type==="Attribute"){let{value:M}=de(P.value,s,(b,o)=>p.add(b,o));if(re(P)&&(M.type==="ArrowFunctionExpression"||M.type==="FunctionExpression")){let b=s.state.scope.generate("event_handler");s.state.init.push(Si(b,M)),c.push(ni(P.name,ir(b)))}else c.push(ni(P.name,M))}else{let M=s.visit(P);M=p.add(M,P.metadata.expression),c.push(fa(M))}if(i.length)c.push(dt("init",li([ir("$.CLASS")]),u5(i,s,p)));if(t.length)c.push(dt("init",li([ir("$.STYLE")]),f5(t,s,p)));let w=p.apply();s.state.init.push($r(X("$.attribute_effect",u,Xr(w,fi(c)),p.sync_values(),p.async_values(),p.blockers(),l.metadata.scoped&&s.state.analysis.css.hash!==""&&qr(s.state.analysis.css.hash),h&&ci,Kt(l,"hydration_attribute_changed")&&ci)))}function de(r,i,t=(s)=>s){if(r===!0)return{value:ci,has_state:!1};if(!Array.isArray(r)||r.length===1){let s=Array.isArray(r)?r[0]:r;if(s.type==="Text")return{value:qr(s.data),has_state:!1};let l=ae(i,s.expression,s.metadata.expression);return{value:t(l,s.metadata.expression),has_state:s.metadata.expression.has_state||s.metadata.expression.is_async()}}return Du(r,i,i.state,t)}function $ar(r,i){if(!r.metadata.svg&&!r.metadata.mathml)return JV(i.name);return i.name}function r2(r,i,t,s,l,u){let{value:h,has_state:c}=de(t.value,l,(o,L)=>{if(t.metadata.needs_clsx)o=X("$.clsx",o);return l.state.memoizer.add(o,L)}),p,w,P;if(s.length)if(P=u5(s,l),c||=s.some((o)=>o.metadata.expression.has_state||o.metadata.expression.is_async()),c)p=ir(l.state.scope.generate("classes")),l.state.init.push(Hs("let",[Fi(p)])),w=p;else w=fi([]);let M;if(r.metadata.scoped&&l.state.analysis.css.hash)if(h.type==="Literal"&&(h.value===""||h.value===null))h=qr(l.state.analysis.css.hash);else if(h.type==="Literal"&&typeof h.value==="string")h=qr(pl(h.value,!0)+" "+l.state.analysis.css.hash);else M=qr(l.state.analysis.css.hash);if(!M&&P)M=Cs;let b=X("$.set_class",i,u?qr(1):qr(0),h,M,w,P);if(p)b=qi("=",p,b);(c?l.state.update:l.state.init).push($r(b))}function gar(r,i,t,s){let{value:l,has_state:u}=de(i.value,s,(P,M)=>s.state.memoizer.add(P,M)),h,c,p;if(t.length)if(p=f5(t,s),u||=t.some((P)=>P.metadata.expression.has_state||P.metadata.expression.is_async()),u)h=ir(s.state.scope.generate("styles")),s.state.init.push(Hs("let",[Fi(h)])),c=h;else c=fi([]);let w=X("$.set_style",r,l,c,p);if(h)w=qi("=",h,w);(u?s.state.update:s.state.init).push($r(w))}function Rar(r,i){let t=i.visit(r.expression),s=cl[r.name],l=i.path.at(-1),u,h;if(t.type==="SequenceExpression")[u,h]=t.expressions;else{if(Wr&&i.state.analysis.runes&&t.type==="MemberExpression"&&(r.name!=="this"||i.path.some(({type:M})=>M==="IfBlock"||M==="EachBlock"||M==="AwaitBlock"||M==="KeyBlock"))&&!Kt(r,"binding_property_non_reactive"))Kw(i.state,r,t);let P=i.visit(qi("=",r.expression,ir("$$value")));if(Wr)u=Re(ir("get",r.name_loc),[],Fr([Xi(t)])),h=Re(ir("set",r.name_loc),[ir("$$value")],Fr([$r(P)]));else if(u=Ir(t),h=OP(Xr([ir("$$value")],i.visit(qi("=",r.expression,ir("$$value"))))),u===h)h=void 0}let c;if(s?.event)c=X("$.bind_property",qr(r.name),qr(s.event),i.state.node,h??u,s.bidirectional&&u);else switch(r.name){case"online":c=X("$.bind_online",h??u);break;case"scrollX":case"scrollY":c=X("$.bind_window_scroll",qr(r.name==="scrollX"?"x":"y"),u,h);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":c=X("$.bind_window_size",qr(r.name),h??u);break;case"activeElement":c=X("$.bind_active_element",h??u);break;case"muted":c=X("$.bind_muted",i.state.node,u,h);break;case"paused":c=X("$.bind_paused",i.state.node,u,h);break;case"volume":c=X("$.bind_volume",i.state.node,u,h);break;case"playbackRate":c=X("$.bind_playback_rate",i.state.node,u,h);break;case"currentTime":c=X("$.bind_current_time",i.state.node,u,h);break;case"buffered":c=X("$.bind_buffered",i.state.node,h??u);break;case"played":c=X("$.bind_played",i.state.node,h??u);break;case"seekable":c=X("$.bind_seekable",i.state.node,h??u);break;case"seeking":c=X("$.bind_seeking",i.state.node,h??u);break;case"ended":c=X("$.bind_ended",i.state.node,h??u);break;case"readyState":c=X("$.bind_ready_state",i.state.node,h??u);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":c=X("$.bind_resize_observer",i.state.node,qr(r.name),h??u);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":c=X("$.bind_element_size",i.state.node,qr(r.name),h??u);break;case"value":{if(l?.type==="RegularElement"&&l.name==="select")c=X("$.bind_select_value",i.state.node,u,h);else c=X("$.bind_value",i.state.node,u,h);break}case"files":c=X("$.bind_files",i.state.node,u,h);break;case"this":c=Gw(r.expression,i.state.node,i);break;case"textContent":case"innerHTML":case"innerText":c=X("$.bind_content_editable",qr(r.name),i.state.node,u,h);break;case"checked":c=X("$.bind_checked",i.state.node,u,h);break;case"focused":c=X("$.bind_focused",i.state.node,h??u);break;case"group":{let P=r.metadata.parent_each_blocks.map((b)=>{return b.metadata.keyed&&b.index?X("$.get",b.metadata.index):b.metadata.index}),M=u;if(l?.type==="RegularElement"){let b=l.attributes.find((o)=>o.type==="Attribute"&&o.name==="value"&&!ut(o)&&o.value!==!0)?.value;if(b!==void 0)M=Ir(Fr([$r(de(b,i).value),Xi(t)]))}c=X("$.bind_group",r.metadata.binding_group_name,li(P),i.state.node,M,h??u);break}default:throw Error("unknown binding "+r.name)}let p=r.name!=="this"&&l.type==="RegularElement"&&l.attributes.find((P)=>P.type==="UseDirective"),w=p?$r(X("$.effect",Ir(c))):$r(c);if(r.metadata.expression.is_async())w=$r(X("$.run_after_blockers",r.metadata.expression.blockers(),Ir(Fr([w]))));if(r.name==="this")i.state.init.push(w);else if(p)i.state.init.push(w);else i.state.after_update.push(w)}function Aar(r,i){_w(i);let t=i.state.scope.tracing;if(t!==null){let l=i.path.at(-1).async,u=X("$.trace",t,Ir(Fr(r.body.map((h)=>i.visit(h))),l));return Fr([Xi(l?me(u):u)])}i.next()}function Mar(r,i){if(i.state.analysis.runes||!r.label||r.label.name!=="$")return;if(i.path[1].type==="LabeledStatement"&&i.path[1].label.name==="$")return Xi()}function Sar(r,i){let t=ft(r,i.state.scope);switch(t){case"$host":return ir("$$props.$$host");case"$effect.tracking":return X("$.effect_tracking");case"$state":case"$state.raw":{let s=r.arguments[0],l=void 0;if(s){if(l=i.visit(r.arguments[0]),t==="$state"&&ja(s,i.state.scope))l=X("$.proxy",l)}let u=ir("$.state",r.callee.loc);return X(u,l)}case"$derived":case"$derived.by":{let s=i.visit(r.arguments[0]);return X("$.derived",t==="$derived"?Ir(s):s)}case"$state.eager":return X("$.eager",Ir(i.visit(r.arguments[0])));case"$state.snapshot":return X("$.snapshot",i.visit(r.arguments[0]),Kt(r,"state_snapshot_uncloneable")&&ci);case"$effect":case"$effect.pre":{let s=t==="$effect"?"$.user_effect":"$.user_pre_effect",l=i.visit(r.arguments[0]),u=X(s,l);return u.callee.loc=r.callee.loc,u}case"$effect.root":return X("$.effect_root",...r.arguments.map((s)=>i.visit(s)));case"$effect.pending":return X("$.eager",Ir(X("$.pending")));case"$inspect":case"$inspect().with":return oTr(t,r,i)}if(Wr&&r.callee.type==="MemberExpression"&&r.callee.object.type==="Identifier"&&r.callee.object.name==="console"&&i.state.scope.get("console")===null&&r.callee.property.type==="Identifier"&&["debug","dir","error","group","groupCollapsed","info","log","trace","warn"].includes(r.callee.property.name)&&r.arguments.some((s)=>s.type==="SpreadElement"||i.state.scope.evaluate(s).has_unknown))return X(r.callee,fa(X("$.log_if_contains_state",qr(r.callee.property.name),...r.arguments.map((s)=>i.visit(s)))));i.next()}function oTr(r,i,t){if(!Wr)return Ji;let{args:s,inspector:l}=Jw(r,i,t.visit),u=ir("$$args"),h=Xr([h1(u)],X(l,fa(u)));return X("$.inspect",Ir(li(s)),h,r==="$inspect"&&ci)}function Tar(r,i){let t=i.state.analysis.classes.get(r);if(!t){i.next();return}let s=[],l={...i.state,state_fields:t};for(let[h,c]of t){if(h[0]==="#")continue;if(c.node.type==="AssignmentExpression"){let p=ai(ns,c.key),w=c.type==="$state"&&!0,P=Ae(h);s.push(Jf(c.key,null),ll("get",P,[],[Xi(X("$.get",p))]),ll("set",P,[ir("value")],[$r(X("$.set",p,ir("value"),w&&ci))]))}}let u=Wl(i.path,-1);for(let h of r.body){if(h.type!=="PropertyDefinition"){s.push(i.visit(h,l));continue}let c=Ke(h.key),p=c&&t.get(c);if(!p){s.push(i.visit(h,l));continue}if(c[0]==="#"){let w=h.value?i.visit(h.value,l):void 0;if(Wr&&p.node===h)w=X("$.tag",w,qr(`${u.id?.name??"[class]"}.${c}`));s.push(Jf(h.key,w))}else if(p.node===h){let w=i.visit(p.value,l);if(Wr)w=X("$.tag",w,qr(`${u.id?.name??"[class]"}.${c}`));let P=ai(ns,p.key),M=p.type==="$state"&&!0;s.push(Jf(p.key,w),ll("get",h.key,[],[Xi(X("$.get",P))]),ll("set",h.key,[ir("value")],[$r(X("$.set",P,ir("value"),M&&ci))]))}}return{...r,body:s}}function Oar(r,i){i.state.template.push_comment(r.data)}function E1(r,i,t,s){let l=s.state.node,u=[],h=[],c=[],p={default:{...s.state,scope:r.metadata.scopes.default,transform:{...s.state.transform}}},w={},P={},M=new ke,b=[],o=null,L=[],I=r.type==="SvelteComponent"||r.type==="Component"&&r.metadata.dynamic,j=r.type==="Component"&&r.metadata.dynamic?s.state.scope.generate(r.name):"$$component",H=!!Kl(r),J=!1;function W(S,k=!1){let er=()=>{let tr=u.at(-1),U=Array.isArray(tr),Z=U?tr:[];if(Z.push(S),!U)u.push(Z)};if(k)h.push(er);else er()}if(H){for(let S of r.attributes)if(S.type==="LetDirective")s.visit(S,{...s.state,let_directives:c})}for(let S of r.attributes)if(S.type==="LetDirective"){if(!H)s.visit(S,{...p.default,let_directives:c})}else if(S.type==="OnDirective"){if(!S.expression)s.state.analysis.needs_props=!0;let k=Dv(S.expression,S.metadata.expression,s);if(S.modifiers.includes("once"))k=X("$.once",k);(P[S.name]||=[]).push(k)}else if(S.type==="SpreadAttribute"){let k=s.visit(S),er=M.add(k,S.metadata.expression),tr=k!==er;if(tr||S.metadata.expression.has_state||S.metadata.expression.has_await)u.push(Ir(tr?X("$.get",er):k));else u.push(k)}else if(S.type==="Attribute"){if(S.name.startsWith("--")){b.push(ni(S.name,de(S.value,s,(tr,U)=>{let Z=M.add(tr,U);return tr!==Z?X("$.get",Z):tr}).value));continue}if(S.name==="slot")H=!0;if(S.name==="children")J=!0;let{value:k,has_state:er}=de(S.value,s,(tr,U)=>{let Z=U.has_await||Bu(S.value).some((Pr)=>{return Pr.type==="ExpressionTag"&&Pr.expression.type!=="Identifier"&&Pr.expression.type!=="MemberExpression"}),Cr=M.add(tr,U,Z);return tr!==Cr?X("$.get",Cr):tr});if(er)W(hs(S.name,[Xi(k)]));else W(ni(S.name,k))}else if(S.type==="BindDirective"){let k=s.visit(S.expression,{...s.state,memoizer:M});if(M.check_blockers(S.metadata.expression),Wr&&S.name!=="this"&&!Kt(r,"ownership_invalid_binding")&&S.expression.type!=="SequenceExpression"){let er=se(S.expression),tr=er&&s.state.scope.get(er.name);if(tr?.kind==="bindable_prop"||tr?.kind==="prop")s.state.analysis.needs_mutation_validation=!0,L.push($r(X("$$ownership_validator.binding",qr(tr.node.name),ir(I?j:i),Ir(k))))}if(k.type==="SequenceExpression")if(S.name==="this")o=S.expression;else{let[er,tr]=k.expressions,U=ir(s.state.scope.generate("bind_get")),Z=ir(s.state.scope.generate("bind_set"));s.state.init.push(Si(U,er)),s.state.init.push(Si(Z,tr)),W(hs(S.name,[Xi(X(U))])),W(Fa(S.name,[$r(X(Z,ir("$$value")))]))}else{if(Wr&&k.type==="MemberExpression"&&s.state.analysis.runes&&!Kt(r,"binding_property_non_reactive"))Kw(s.state,S,k);if(S.name==="this")o=S.expression;else{let tr=S.expression.type==="Identifier"&&s.state.scope.get(S.expression.name)?.kind==="store_sub"?hs(S.name,[$r(X("$.mark_store_binding")),Xi(k)]):hs(S.name,[Xi(k)]),U=qi("=",S.expression,ir("$$value")),Z=Fa(S.name,[$r(s.visit(U))]);tr.key.loc=S.name_loc,Z.key.loc=S.name_loc,W(tr,!0),W(Z,!0)}}}else if(S.type==="AttachTag"){let k=s.state.scope.evaluate(S.expression),er=s.visit(S.expression);if(S.metadata.expression.has_state)er=Xr([ir("$$node")],X(k.is_function?er:ua("||",er,ir("$.noop")),ir("$$node")));M.check_blockers(S.metadata.expression),W(dt("init",X("$.attachment"),er,!0))}if(h.forEach((S)=>S()),H)s.state.init.push(...c);if(Object.keys(P).length>0){let S=fi(Object.keys(P).map((k)=>ni(k,P[k].length>1?li(P[k]):P[k][0])));W(ni("$$events",S))}let sr=[],rr=[];for(let S of r.fragment.nodes){if(S.type==="SnippetBlock"){s.visit(S,{...s.state,snippets:sr}),W(dt("init",S.expression,S.expression)),rr.push(ni(S.expression.name==="children"?"default":S.expression.name,ci));continue}let k=Kl(S)??"default";(w[k]||=[]).push(S)}for(let S of Object.keys(w)){let k=s.visit({...r.fragment,nodes:w[S]},S==="default"?H?s.state:p.default:{...s.state,scope:r.metadata.scopes[S],transform:{...s.state.transform}});if(k.body.length===0)continue;let er=Xr([ir("$$anchor"),ir("$$slotProps")],Fr([...S==="default"&&!H?c:[],...k.body]));if(S==="default"&&!J)if(c.length===0&&w.default.every((tr)=>tr.type!=="SvelteFragment"||!tr.attributes.some((U)=>U.type==="LetDirective")))W(ni("children",Wr?X("$.wrap_snippet",ir(s.state.analysis.name),er):er)),rr.push(ni(S,ci));else rr.push(ni(S,er)),W(ni("children",ir("$.invalid_default_snippet")));else rr.push(ni(S,er))}if(rr.length>0)W(ni("$$slots",fi(rr)));if(!s.state.analysis.runes&&r.attributes.some((S)=>S.type==="BindDirective"))W(ni("$$legacy",ci));let hr=u.length===0||u.length===1&&Array.isArray(u[0])?fi(u[0]||[]):X("$.spread_props",...u.map((S)=>Array.isArray(S)?fi(S):S)),vr=(S)=>{let k=I?ir(j):s.visit(f1(i));return k.loc=t,X(k,S,hr)};if(o!==null){let S=vr;vr=(k)=>{return Gw(o,S(k),s)}}if(r.type!=="SvelteSelf")M.check_blockers(r.metadata.expression);let q=[...sr,...M.deriveds(s.state.analysis.runes)];if(I){let S=vr;vr=(k)=>{return X("$.component",k,Ir(s.visit(r.type==="Component"?f1(i):r.expression)),Xr([ir("$$anchor"),ir(j)],Fr([...L,$r(S(ir("$$anchor")))])))}}else q.push(...L);if(Object.keys(b).length>0){if(s.state.metadata.namespace==="svg")s.state.template.push_element("g",r.start,!1);else s.state.template.push_element("svelte-css-wrapper",r.start,!1),s.state.template.set_prop("style","display: contents");s.state.template.push_comment(),s.state.template.pop_element(),q.push($r(X("$.css_props",l,Ir(fi(b)))),$r(vr(ai(l,"lastChild"))),$r(X("$.reset",l)))}else s.state.template.push_comment(),q.push(Ns(vr(l),r,"component",{componentTag:r.name}));M.apply();let T=M.async_values(),V=M.blockers();if(T||V){if(q=[$r(X("$.async",l,V,T,Xr([ir("$$anchor"),...M.async_ids()],Fr(q))))],s.state.is_standalone)q.push($r(X("$.next")))}return q.length>1?Fr(q):q[0]}function Lar(r,i){let t=E1(r,r.name,r.name_loc,i);i.state.init.push(t)}function Var(r,i){let t=r.declaration.declarations[0];if(t.id.type==="Identifier"){let s=ae(i,t.init,r.metadata.expression),l=Qu(i.state,s,r.metadata.expression.has_await);if(Wr)l=X("$.tag",l,qr(t.id.name));i.state.transform[t.id.name]={read:fe},Ear(i.state,t.id,l,r.metadata.expression,i.state.scope.get_bindings(t))}else{let s=Ct(t.id),l=ir(i.state.scope.generate("computed_const")),u={...i.state.transform};for(let P of s)delete u[P.name];let h={...i.state,transform:u},c=ae({...i,state:h},t.init,r.metadata.expression),p=Fr([wt(i.visit(t.id,h),c),Xi(fi(s.map((P)=>dt("init",P,P))))]),w=Qu(i.state,p,r.metadata.expression.has_await);if(Wr)w=X("$.tag",w,qr("[@const]"));Ear(i.state,l,w,r.metadata.expression,i.state.scope.get_bindings(t));for(let P of s)i.state.transform[P.name]={read:(M)=>ai(X("$.get",l),M)}}}function Ear(r,i,t,s,l){let u=Wr?[$r(X("$.get",i))]:[],h=s.has_await,c=[...s.dependencies].map((p)=>p.blocker).filter((p)=>p!==null&&p.object!==r.async_consts?.id);if(h||r.async_consts||c.length>0){let p=r.async_consts??={id:ir(r.scope.generate("promises")),thunks:[]};r.consts.push(be(i));let w=qi("=",i,t),P=u.length===0?w:Fr([$r(w),...u]);if(c.length===1)p.thunks.push(Ir(ai(c[0],"promise")));else if(c.length>0)p.thunks.push(Ir(X("$.wait",li(c))));p.thunks.push(Ir(P,h));let M=ai(p.id,qr(p.thunks.length-1),!0);for(let b of l)b.blocker=M}else r.consts.push(wt(i,t)),r.consts.push(...u)}function Iar(r,i){let t=fi(r.identifiers.map((l)=>{let u=X("$.snapshot",i.visit(l));return dt("init",l,i.state.analysis.runes?u:X("$.untrack",Ir(u)))})),s=X("console.log",t);i.state.init.push($r(X("$.template_effect",Ir(Fr([$r(s),Gd])))))}function Far(r,i){let t=r.metadata,s={...i.state,scope:i.state.scope.parent},l=ae({...i,state:s},r.expression,r.metadata.expression);if(!t.is_controlled)i.state.template.push_comment();let u=0;if(r.metadata.keyed&&r.index)u|=Gy;let h=r.key?.type==="Identifier"&&r.context?.type==="Identifier"&&r.context?.name===r.key.name,c;for(let S of r.metadata.expression.dependencies)if(S.kind==="store_sub"){c=!0;break}for(let S of r.metadata.expression.dependencies){if(S.scope.function_depth>=i.state.scope.function_depth)continue;if(!i.state.analysis.runes||!h||c){u|=ld;break}}if(i.state.analysis.runes&&!c)u|=qV;if(r.key&&r.body.nodes.some((S)=>{if(S.type!=="RegularElement"&&S.type!=="SvelteElement")return!1;return S.attributes.some((k)=>k.type==="AnimateDirective")}))u|=CV;if(t.is_controlled)u|=wV;let p="";for(let S of r.metadata.expression.dependencies)if(S.kind==="store_sub"){p=S.node.name;break}let w=null;for(let[S]of i.state.scope.declarations)if(i.state.scope.parent?.get(S)!=null){w=i.state.scope.root.unique("$$array");break}let P={...i.state,transform:{...i.state.transform},store_to_invalidate:p},M={...i.state,transform:{...i.state.transform}},b=t.contains_group_binding||!r.index?t.index:ir(r.index),o=r.context?.type==="Identifier"?r.context:ir("$$item"),L=t.contains_group_binding,I=!1;if(r.index)P.transform[r.index]={read:(S)=>{return L=!0,(u&Gy)!==0?fe(S):S}},M.transform[r.index]={read:(S)=>{return I=!0,S}};let j=[],H=p?X("$.invalidate_store",ir("$$stores"),qr(p)):void 0,J=[];if(!i.state.analysis.runes){let S=new Set;if(w)S.add(w),P.transform[w.name]={read:X};else for(let k of t.transitive_deps)S.add(k.node);for(let k of bTr(i))for(let er of k.metadata.transitive_deps)S.add(er.node);if(S.size>0){let k=X("$.invalidate_inner_signals",Ir(oe([...S].map((er)=>i.visit({...er},P)))));J.push(k)}}if(H)J.push(H);if(r.context?.type==="Identifier"){let S=i.state.scope.get(r.context.name);P.transform[r.context.name]={read:(k)=>{if(S.reassigned)return ai(w?X(w):l,(u&Gy)!==0?fe(b):b,!0);return(u&ld)!==0?fe(k):k},assign:(k,er)=>{L=!0;let tr=ai(w?X(w):l,(u&Gy)!==0?fe(b):b,!0);return oe([qi("=",tr,er),...J])},mutate:(k,er)=>{return L=!0,oe([er,...J])}},delete M.transform[r.context.name]}else if(r.context){let S=(u&ld)!==0?X("$.get",o):o,{inserts:k,paths:er}=Ue(r.context,S);for(let{id:tr,value:U}of k){tr.name=i.state.scope.generate("$$array"),P.transform[tr.name]={read:fe};let Z=i.visit(Ir(U),P);j.push(Si(tr,X("$.derived",Z)))}for(let tr of er){let U=tr.node.name,Z=tr.has_default_value,Cr=Ir(i.visit(tr.expression,P));j.push(be(tr.node,Z?X("$.derived_safe_equal",Cr):Cr));let Pr=Z?fe:X;if(P.transform[U]={read:Pr,assign:(jr,zr)=>{let ri=tr.update_expression;return oe([qi("=",ri,zr),...J])},mutate:(jr,zr)=>{return oe([zr,...J])}},Wr)j.push($r(Pr(ir(U))));delete M.transform[U]}}let W=i.visit(r.body,P),sr=ir("$.index");if(r.metadata.keyed){let S=r.context,k=i.visit(r.key,M);sr=Xr(I?[S,b]:[S],k)}if(r.index&&t.contains_group_binding)j.push(be(r.index,b));let rr=r.metadata.expression.has_await,hr=Ir(l,rr),vr=rr?Ir(X("$.get",ir("$$collection"))):hr,q=[ir("$$anchor"),o];if(L||w)q.push(b);if(w)q.push(w);let T=[i.state.node,qr(u),vr,sr,Xr(q,Fr(j.concat(W.body)))];if(r.fallback)T.push(Xr([ir("$$anchor")],i.visit(r.fallback)));let V=[Ns(X("$.each",...T),r,"each")];if(r.metadata.expression.is_async())i.state.init.push($r(X("$.async",i.state.node,r.metadata.expression.blockers(),rr?li([hr]):Xt,Xr(rr?[i.state.node,ir("$$collection")]:[i.state.node],Fr(V)))));else i.state.init.push(...V)}function bTr(r){return r.path.filter((i)=>i.type==="EachBlock")}function Bar(r,i){if(i.state.is_instance){if(r.declaration)return i.visit(r.declaration);return Ji}return i.next()}function Har(r,i){if(r.expression.type==="CallExpression"){if(ft(r.expression,i.state.scope)==="$inspect.trace")return Ji}i.next()}function Uar(r,i){if(r.await&&Wr&&!Kt(r,"await_reactivity_loss")&&i.state.options.experimental.async){let t=i.visit(r.left),s=i.visit(r.right),l=i.visit(r.body),u=X("$.for_await_track_reactivity_loss",s);return rN(t,u,l,!0)}i.next()}function Nar(r,i){let t=i.path.at(-1)??r,s=Qw(i.state.metadata.namespace,t,r.nodes),{hoisted:l,trimmed:u,is_standalone:h,is_text_first:c}=Ku(t,r.nodes,i.path,s,i.state,i.state.preserve_whitespace,i.state.options.preserveComments);if(l.length===0&&u.length===0)return Fr([]);let p=u.length===1&&u[0].type==="RegularElement",w=u.length===1&&(u[0].type==="SvelteFragment"||u[0].type==="TitleElement"||u[0].type==="IfBlock"&&u[0].elseif&&t.metadata.flattened?.includes(u[0])),P=i.state.scope.root.unique("root"),M=[],b=void 0,o={...i.state,is_standalone:h,init:[],snippets:[],consts:[],let_directives:[],update:[],after_update:[],memoizer:new ke,template:new kv,transform:{...i.state.transform},metadata:{namespace:s,bound_contenteditable:i.state.metadata.bound_contenteditable},async_consts:void 0};for(let L of l)i.visit(L,o);if(p){let L=u[0],I=ir(i.state.scope.generate(L.name),L.name_loc);i.visit(L,{...o,node:I});let j=o.template.needs_import_node?Tq:void 0,H=_v(o,s,j);o.hoisted.push(Si(P,H)),o.init.unshift(Si(I,X(P))),b=$r(X("$.append",ir("$$anchor"),I))}else if(w)i.visit(u[0],o);else if(u.length===1&&u[0].type==="Text"){let L=ir(i.state.scope.generate("text"));o.init.unshift(Si(L,X("$.text",qr(u[0].data)))),b=$r(X("$.append",ir("$$anchor"),L))}else if(u.length>0){let L=ir(i.state.scope.generate("fragment"));if(u.some((j)=>j.type==="ExpressionTag")&&u.every((j)=>j.type==="Text"||j.type==="ExpressionTag")){let j=ir(i.state.scope.generate("text"));rh(u,()=>j,!1,{...i,state:o}),o.init.unshift(Si(j,X("$.text"))),b=$r(X("$.append",ir("$$anchor"),j))}else if(h)rh(u,()=>ir("$$anchor"),!1,{...i,state:o});else{rh(u,(J)=>X("$.first_child",L,J&&ci),!1,{...i,state:o});let H=ud;if(o.template.needs_import_node)H|=Tq;if(o.template.nodes.length===1&&o.template.nodes[0].type==="comment")o.init.unshift(Si(L,X("$.comment")));else{let J=_v(o,s,H);o.hoisted.push(Si(P,J)),o.init.unshift(Si(L,X(P)))}b=$r(X("$.append",ir("$$anchor"),L))}}if(M.push(...o.snippets,...o.let_directives,...o.consts),o.async_consts&&o.async_consts.thunks.length>0)M.push(Si(o.async_consts.id,X("$.run",li(o.async_consts.thunks))));if(c)M.push($r(X("$.next")));if(M.push(...o.init),o.update.length>0)M.push(xf(o));if(M.push(...o.after_update),b!==void 0)M.push(b);return Fr(M)}function jar(r,i){let t={...i.state,in_constructor:!1,in_derived:!1};i.next(t)}function zar(r,i){return Dw(r,i)}function Zar(r,i){let t=r.metadata.is_controlled;if(!t)i.state.template.push_comment();let s=r.metadata.expression.has_await,l=r.metadata.expression.has_blockers(),u=ae(i,r.expression,r.metadata.expression),h=s?X("$.get",ir("$$html")):u,c=!t&&i.state.metadata.namespace==="svg",p=!t&&i.state.metadata.namespace==="mathml",w=$r(X("$.html",i.state.node,Ir(h),t&&ci,c&&ci,p&&ci,Kt(r,"hydration_html_changed")&&ci));if(s||l)i.state.init.push($r(X("$.async",i.state.node,r.metadata.expression.blockers(),s?li([Ir(u,!0)]):Xt,Xr(s?[i.state.node,ir("$$html")]:[i.state.node],Fr([w])))));else i.state.init.push(w)}function Qar(r,i){let t=i.path.at(-1);if(Se(r,t)){if(r.name==="$$props")return ir("$$sanitized_props");let s=i.state.scope.get(r.name);if(i.state.analysis.runes&&s!==null&&r!==s.node&&s.kind==="rest_prop"){let l=i.path.at(-2);if(t?.type==="MemberExpression"&&!t.computed&&l?.type!=="AssignmentExpression"&&l?.type!=="UpdateExpression"){let u=t.property;if(!s.metadata?.exclude_props?.includes(u.name))return ir("$$props")}}return Xe(r,i.state)}}function Jar(r,i){i.state.template.push_comment();let t=[],s=r.metadata.expression.has_await,l=r.metadata.expression.has_blockers(),u=ae(i,r.test,r.metadata.expression),h=0,c,p,w;for(let M of[r,...r.metadata.flattened??[]]){let b=i.visit(M.consequent),o=ir(i.state.scope.generate("consequent"));t.push(Si(o,Xr([ir("$$anchor")],b)));let L;if(M.metadata.expression.has_await)L=X("$.get",ir("$$condition"));else{let H=ae(i,M.test,M.metadata.expression);if(M.metadata.expression.has_call){let J=ir(i.state.scope.generate("d"));t.push(Si(J,X("$.derived",Xr([],H)))),L=X("$.get",J)}else L=H}let I=$r(X("$$render",o,h!==0&&qr(h))),j=ue(L,I);if(p)p.alternate=j;else c=j;w=M,p=j,h++}if(p&&w?.alternate){let M=i.visit(w.alternate),b=ir(i.state.scope.generate("alternate"));t.push(Si(b,Xr([ir("$$anchor")],M))),p.alternate=$r(X("$$render",b,qr(-1)))}let P=[i.state.node,Xr([ir("$$render")],c?Fr([c]):Fr([]))];if(r.elseif)P.push(ci);if(t.push(Ns(X("$.if",...P),r,"if")),s||l)i.state.init.push($r(X("$.async",i.state.node,r.metadata.expression.blockers(),s?li([Ir(u,!0)]):Xt,Xr(s?[i.state.node,ir("$$condition")]:[i.state.node],Fr(t)))));else i.state.init.push(Fr(t))}function Yar(r,i){i.state.template.push_comment();let t=r.metadata.expression.has_await,s=r.metadata.expression.has_blockers(),l=ae(i,r.expression,r.metadata.expression),u=Ir(t?X("$.get",ir("$$key")):l),h=i.visit(r.fragment),c=Ns(X("$.key",i.state.node,u,Xr([ir("$$anchor")],h)),r,"key");if(t||s)i.state.init.push($r(X("$.async",i.state.node,r.metadata.expression.blockers(),t?li([Ir(l,!0)]):Xt,Xr(t?[i.state.node,ir("$$key")]:[i.state.node],Fr([c])))));else i.state.init.push(c)}function War(r,i){if(i.state.analysis.runes||i.path.length>1||r.label.name!=="$"){i.next();return}let t=i.state.analysis.reactive_statements.get(r);if(!t)return;let s=i.visit(r.body);if(s.type!=="BlockStatement")s=Fr([s]);let l=s.body,u=[];for(let h of t.dependencies){if(h.kind==="normal"&&h.declaration_kind!=="import")continue;let c=h.node.name,p=Xe(ir(c),i.state);if(c==="$$props"||c==="$$restProps"||h.kind==="bindable_prop")p=X("$.deep_read_state",p);u.push(p)}return i.state.legacy_reactive_statements.set(r,$r(X("$.legacy_pre_effect",u.length>0?Ir(oe(u)):Ir(Fr([])),Ir(Fr(l))))),Ji}function Gar(r,i){if(r.expression&&r.expression.type!=="Identifier"){let t=i.state.scope.generate(r.name),s=i.state.scope.get_bindings(r);for(let l of s)i.state.transform[l.node.name]={read:(u)=>ai(X("$.get",ir(t)),u)};i.state.let_directives.push(wt(t,X("$.derived",Ir(Fr([be(r.expression.type==="ObjectExpression"?Qf(r.expression.properties):Iu(r.expression.elements),ai(ir("$$slotProps"),r.name)),Xi(fi(s.map((l)=>ni(l.node.name,l.node))))])))))}else{let t=r.expression===null?r.name:r.expression.name;i.state.transform[t]={read:(s)=>X("$.get",s)},i.state.let_directives.push(wt(t,Qu(i.state,ai(ir("$$slotProps"),r.name))))}}function Kar(r,i){if(r.property.type==="PrivateIdentifier"){let t=i.state.state_fields.get("#"+r.property.name);if(t)return i.state.in_constructor&&(t.type==="$state.raw"||t.type==="$state")?ai(r,"v"):X("$.get",r)}i.next()}var dTr=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function Xar(r,i){if(!r.expression)i.state.analysis.needs_props=!0;let t=Dv(r.expression,r.metadata.expression,i);for(let u of dTr)if(r.modifiers.includes(u))t=X("$."+u,t);let s=r.modifiers.includes("capture"),l=r.modifiers.includes("passive")||(r.modifiers.includes("nonpassive")?!1:void 0);return s5(i,r.name,t,s,l,!1)}function Dar(r,i){if(!i.state.analysis.runes){i.state.transform.$$props={read:(t)=>({...t,name:"$$sanitized_props"})};for(let[t,s]of i.state.scope.declarations)if(s.declaration_kind==="import"&&s.mutated){let{start:l,end:u}=i.state.analysis.instance.ast,h=s.initial;if(h.start>l&&h.end<u){let p=ir("$$_import_"+t);i.state.transform[t]={read:(w)=>X(p),mutate:(w,P)=>X(p,P)},i.state.legacy_reactive_imports.push(Si(p,X("$.reactive_import",Ir(ir(t)))))}}}for(let[t,s]of i.state.scope.declarations){if(s.kind==="store_sub"){let l,u=()=>{return l??=i.visit(ir(t.slice(1)))};i.state.transform[t]={read:X,assign:(h,c)=>X("$.store_set",u(),c),mutate:(h,c)=>{let p=X("$.untrack",h);function w(P){if(P.type==="MemberExpression")return{...P,object:w(P.object),property:P.property};return p}return X("$.store_mutate",u(),c.type==="AssignmentExpression"?qi(c.operator,w(c.left),c.right):Wd(c.operator,w(c.argument),c.prefix),p)},update:(h)=>{return X(h.prefix?"$.update_pre_store":"$.update_store",Xe(ir(t.slice(1)),i.state),X(h.argument),h.operator==="--"&&qr(-1))}}}if(s.kind==="prop"||s.kind==="bindable_prop")if(cw(s,i.state))i.state.transform[t]={read:X,assign:(l,u)=>X(l,u),mutate:(l,u)=>{if(s.kind==="bindable_prop")return X(l,u,ci);return u},update:(l)=>{return X(l.prefix?"$.update_pre_prop":"$.update_prop",l.argument,l.operator==="--"&&qr(-1))}};else if(s.prop_alias){let l=Ae(s.prop_alias);i.state.transform[t]={read:(u)=>ai(ir("$$props"),l,l.type==="Literal")}}else i.state.transform[t]={read:(l)=>ai(ir("$$props"),l)}}if(_w(i),i.state.is_instance)return{...r,body:Yw(i.state.analysis.instance_body,ir("$.run"),(t)=>i.visit(t))};i.next()}function kar(r,i){i.state.template.push_comment();let t=Hu(r.expression),s=[],l=new ke;for(let w=0;w<t.arguments.length;w++){let P=t.arguments[w],M=r.metadata.arguments[w],b=ae(i,P,M),o=l.add(b,M);if(b!==o)b=X("$.get",o);s.push(Ir(b))}l.apply();let u=l.deriveds(i.state.analysis.runes),h=ae(i,t.callee,r.metadata.expression);if(r.metadata.dynamic){if(r.expression.type==="ChainExpression")h=ua("??",h,ir("$.noop"));u.push(Ns(X("$.snippet",i.state.node,Ir(h),...s),r,"render"))}else u.push(Ns((r.expression.type==="CallExpression"?X:al)(h,i.state.node,...s),r,"render"));let c=l.async_values(),p=l.blockers();if(c||p){if(i.state.init.push($r(X("$.async",i.state.node,p,l.async_values(),Xr([i.state.node,...l.async_ids()],Fr(u))))),i.state.is_standalone)i.state.init.push($r(X("$.next")))}else i.state.init.push(u.length===1?u[0]:Fr(u))}function _ar(r,i){i.state.template.push_comment();let t=[],s=[],l=[],u=new ke,h=qr("default");for(let b of r.attributes)if(b.type==="SpreadAttribute")s.push(Ir(i.visit(b)));else if(b.type==="Attribute"){let{value:o,has_state:L}=de(b.value,i,(I,j)=>j.has_call||j.has_await?X("$.get",u.add(I,j)):I);if(b.name==="name")h=o;else if(b.name!=="slot")if(L)t.push(hs(b.name,[Xi(o)]));else t.push(ni(b.name,o))}else if(b.type==="LetDirective")i.visit(b,{...i.state,let_directives:l});u.apply(),i.state.init.push(...l);let c=u.deriveds(i.state.analysis.runes),p=s.length===0?fi(t):X("$.spread_props",fi(t),...s),w=r.fragment.nodes.length===0?Cs:Xr([ir("$$anchor")],i.visit(r.fragment));c.push($r(X("$.slot",i.state.node,ir("$$props"),h,p,w)));let P=u.async_values(),M=u.blockers();if(P||M)i.state.init.push($r(X("$.async",i.state.node,M,P,Xr([i.state.node,...u.async_ids()],Fr(c)))));else i.state.init.push(c.length===1?c[0]:Fr(c))}function xar(r,i){let t=[ir("$$anchor")],s,l=[],u={...i.state.transform},h={...i.state,transform:u};for(let P=0;P<r.parameters.length;P++){let M=r.parameters[P];if(!M)continue;if(M.type==="Identifier"){t.push(Yd(M,ir("$.noop"))),u[M.name]={read:X};continue}let b=`$$arg${P}`;t.push(ir(b));let{inserts:o,paths:L}=Ue(M,al(ir(b)));for(let{id:I,value:j}of o)I.name=i.state.scope.generate("$$array"),u[I.name]={read:fe},l.push(Si(I,X("$.derived",i.visit(Ir(j)))));for(let I of L){let j=I.node.name,H=I.has_default_value,J=Ir(i.visit(I.expression,h));if(l.push(be(I.node,H?X("$.derived_safe_equal",J):J)),u[j]={read:H?fe:X},Wr)l.push($r(u[j].read(ir(j))))}}let c=i.visit(r.body,h).body;s=Fr([Wr?$r(X("$.validate_snippet_args",fa(ir("arguments")))):Ji,...l,...c]);let p=Wr?X("$.wrap_snippet",ir(i.state.analysis.name),Re(null,t,s)):Xr(t,s),w=wt(r.expression,p);if(i.path.length===1&&i.path[0].type==="Fragment")if(r.metadata.can_hoist)i.state.module_level_snippets.push(w);else i.state.instance_level_snippets.push(w);else i.state.snippets.push(w)}function rlr(r,i){return i.visit(r.expression)}function V1(r,i,t){let s={...t.state,node:ir(i)};for(let l of r.attributes)if(l.type==="OnDirective")t.state.init.push($r(t.visit(l,s)));else t.visit(l,s)}function ilr(r,i){V1(r,"$.document.body",i)}function tlr(r,i){let t=E1(r,"$$component",null,i);i.state.init.push(t)}function elr(r,i){V1(r,"$.document",i)}function slr(r,i){i.state.template.push_comment();let t=[],s=void 0,l=[],u=[],h=[],c=ir(i.state.scope.generate("$$element")),p={...i,state:{...i.state,node:c,init:[],update:[],after_update:[],memoizer:new ke}};for(let I of r.attributes)if(I.type==="Attribute"){if(I.name==="xmlns"&&!ut(I))s=I.value;t.push(I)}else if(I.type==="SpreadAttribute")t.push(I);else if(I.type==="ClassDirective")l.push(I);else if(I.type==="StyleDirective")u.push(I);else if(I.type==="LetDirective")h.push(i.visit(I));else if(I.type==="OnDirective"){let j=i.visit(I,p.state);p.state.after_update.push($r(j))}else i.visit(I,p.state);if(t.length===1&&t[0].type==="Attribute"&&t[0].name.toLowerCase()==="class"&&ut(t[0]))r2(r,c,t[0],l,p,!1);else if(t.length)xw(t,l,u,p,r,c);let w=r.metadata.expression.has_await,P=r.metadata.expression.has_blockers(),M=i.visit(r.tag),b=Ir(w?X("$.get",ir("$$tag")):M),o=p.state.init;if(p.state.update.length>0)o.push(xf(p.state));if(o.push(...p.state.after_update),o.push(...i.visit(r.fragment,{...i.state,metadata:{...i.state.metadata,namespace:Xu(r,i.state.metadata.namespace)}}).body),Wr){if(h.push($r(X("$.validate_dynamic_element_tag",b))),r.fragment.nodes.length>0)h.push($r(X("$.validate_void_dynamic_element",b)))}let L=Wr&&$t(r.start);if(h.push($r(X("$.element",i.state.node,b,r.metadata.svg||r.metadata.mathml?ci:Zl,o.length>0&&Xr([c,ir("$$anchor")],Fr(o)),s&&Ir(de(s,i).value),L&&li([qr(L.line),qr(L.column)])))),w||P)i.state.init.push($r(X("$.async",i.state.node,r.metadata.expression.blockers(),w?li([Ir(M,!0)]):Xt,Xr(w?[i.state.node,ir("$$tag")]:[i.state.node],Fr(h)))));else i.state.init.push(h.length===1?h[0]:Fr(h))}function alr(r,i){for(let t of r.attributes)if(t.type==="LetDirective")i.visit(t);i.state.init.push(...i.visit(r.fragment).body)}function llr(r,i){let t=fi([]);for(let w of r.attributes){if(w.type!=="Attribute"||w.value===!0)continue;let P=Array.isArray(w.value)?w.value[0]:w.value,M=i.visit(P.expression,i.state);if(P.metadata.expression.has_state)t.properties.push(hs(w.name,[Xi(M)]));else t.properties.push(ni(w.name,M))}let s=[],l=[],u=[],h=!1;for(let w of r.fragment.nodes)if(w.type==="ConstTag"){if(h=!0,!i.state.options.experimental.async)i.visit(w,{...i.state,consts:l,scope:i.state.scopes.get(r.fragment)??i.state.scope})}for(let w of r.fragment.nodes){if(w.type==="ConstTag"){if(i.state.options.experimental.async)s.push(w);continue}if(w.type==="SnippetBlock"){if(i.state.options.experimental.async&&h&&!["failed","pending"].includes(w.expression.name))s.push(w);else{let P=[];i.visit(w,{...i.state,snippets:P});let M=P[0],b=Wr?M.declarations[0].init.arguments[1]:M.declarations[0].init;if(!i.state.options.experimental.async)b.body.body.unshift(...l.filter((o)=>o.type==="VariableDeclaration"));if(["failed","pending"].includes(w.expression.name))t.properties.push(dt("init",w.expression,w.expression));u.push(M)}continue}s.push(w)}let c=i.visit({...r.fragment,nodes:s},{...i.state,scope:i.state.scopes.get(r.fragment)??i.state.scope});if(!i.state.options.experimental.async)c.body.unshift(...l);let p=$r(X("$.boundary",i.state.node,t,Xr([ir("$$anchor")],c)));i.state.template.push_comment(),i.state.init.push(u.length>0?Fr([...u,p]):p)}function ulr(r,i){i.state.init.push($r(X(ir("$.head",r.name_loc),qr(Wh(ee)),Xr([ir("$$anchor")],i.visit(r.fragment)))))}function flr(r,i){let t=E1(r,Su,r.name_loc,i);i.state.init.push(t)}function hlr(r,i){V1(r,"$.window",i)}function nlr(r,i){let t=new ke,{has_state:s,value:l}=Du(r.fragment.nodes,i,i.state,(c,p)=>t.add(c,p)),u=i.state.scope.evaluate(l),h=$r(qi("=",ai(ir("$.document"),ir("title",r.name_loc)),u.is_known?qr(u.value):u.is_defined?l:ua("??",l,qr(""))));if(s)i.state.after_update.push($r(X("$.deferred_template_effect",Xr(t.apply(),Fr([h])),t.sync_values(),t.async_values(),t.blockers())));else i.state.after_update.push($r(X("$.effect",Ir(Fr([h])))))}function clr(r,i){let t=r.modifiers.includes("global")?TV:0;if(r.intro)t|=MV;if(r.outro)t|=SV;let s=[qr(t),i.state.node,Ir(i.visit(L1(r.name)))];if(r.expression)s.push(Ir(i.visit(r.expression)));let l=$r(X("$.transition",...s));if(r.metadata.expression.is_async())l=$r(X("$.run_after_blockers",r.metadata.expression.blockers(),Ir(Fr([l]))));i.state.after_update.push(l)}function ylr(r,i){let t=r.argument;if(t.type==="MemberExpression"&&t.object.type==="ThisExpression"&&t.property.type==="PrivateIdentifier"&&i.state.state_fields.has("#"+t.property.name)){let h="$.update";if(r.prefix)h+="_pre";let c=[t];if(r.operator==="--")c.push(qr(-1));return X(h,...c)}if(t.type!=="Identifier"&&t.type!=="MemberExpression")throw Error("An impossible state was reached");let s=se(t),l=s&&i.state.transform[s.name];if(s===t&&l?.update)return l.update(r);let u=i.next();if(s&&l?.mutate)u=l.mutate(s,u);return Xw(r,i,u)}function vlr(r,i){let t=[ir("$$node")];if(r.expression)t.push(ir("$$action_arg"));let s=[i.state.node,Xr(t,al(i.visit(L1(r.name)),...t))];if(r.expression)s.push(Ir(i.visit(r.expression)));let l=$r(X("$.action",...s));if(r.metadata.expression.is_async())l=$r(X("$.run_after_blockers",r.metadata.expression.blockers(),Ir(Fr([l]))));i.state.init.push(l),i.next()}function plr(r,i){let t=ae(i,r.expression,r.metadata.expression),s=$r(X("$.attach",i.state.node,Ir(t)));if(r.metadata.expression.is_async())s=$r(X("$.run_after_blockers",r.metadata.expression.blockers(),Ir(Fr([s]))));i.state.init.push(s),i.next()}function mlr(r,i){let t=[];if(i.state.analysis.runes)for(let s of r.declarations){let l=s.init,u=ft(l,i.state.scope);if(!u||u==="$effect.tracking"||u==="$effect.root"||u==="$inspect"||u==="$inspect.trace"||u==="$state.snapshot"||u==="$host"){t.push(i.visit(s));continue}if(u==="$props.id")continue;if(u==="$props"){let p=["$$slots","$$events","$$legacy"];if(i.state.analysis.custom_element)p.push("$$host");if(s.id.type==="Identifier"){let w=[ir("$$props"),li(p.map((P)=>qr(P)))];if(Wr)w.push(qr(s.id.name));t.push(Fi(s.id,X("$.rest_props",...w)))}else{Qv(s.id.type,"ObjectPattern");for(let w of s.id.properties)if(w.type==="Property"){let P=w.key,M=P.type==="Identifier"?P.name:P.value;p.push(M);let b=w.value.type==="AssignmentPattern"?w.value.left:w.value;Qv(b.type,"Identifier");let o=i.state.scope.get(b.name),L=o.initial&&i.visit(o.initial);if(L&&o.kind==="bindable_prop"&&ja(L,i.state.scope)){if(L=X("$.proxy",L),Wr)L=X("$.tag_proxy",L,qr(b.name))}if(cw(o,i.state))t.push(Fi(b,nw(o,i.state,M,L)))}else{let P=[ir("$$props"),li(p.map((M)=>qr(M)))];if(Wr)P.push(qr(w.argument.name));t.push(Fi(w.argument,X("$.rest_props",...P)))}}continue}let c=l.arguments[0]??Xt;if(u==="$state"||u==="$state.raw"){let p=(w,P)=>{let M=i.state.scope.get(w.name),b=q1(M,i.state.analysis),o=ja(P,i.state.scope);if(u==="$state"&&o){if(P=X("$.proxy",P),Wr&&!b)P=X("$.tag_proxy",P,qr(w.name))}if(b){let L=ir("$.state",l.callee.loc);if(P=X(L,P),Wr)P=X("$.tag",P,qr(w.name))}return P};if(s.id.type==="Identifier"){let w=i.visit(c);t.push(Fi(s.id,p(s.id,w)))}else{let w=ir(i.state.scope.generate("tmp")),{inserts:P,paths:M}=Ue(s.id,w);t.push(Fi(w,i.visit(c)),...P.map(({id:b,value:o})=>{b.name=i.state.scope.generate("$$array"),i.state.transform[b.name]={read:fe};let L=i.visit(Ir(o)),I=X("$.derived",L);if(Wr){let j=`[$state ${s.id.type==="ArrayPattern"?"iterable":"object"}]`;I=X("$.tag",I,qr(j))}return Fi(b,I)}),...M.map((b)=>{let o=i.visit(b.expression),L=i.state.scope.get(b.node.name);return Fi(b.node,L?.kind==="state"||L?.kind==="raw_state"?p(L.node,o):o)}))}continue}if(u==="$derived"||u==="$derived.by"){let p=i.state.analysis.async_deriveds.has(l),w=i.state.is_instance&&i.state.scope.function_depth>1;if(s.id.type==="Identifier"){let P=i.visit(c);if(p){let M=Wr&&!Kt(l,"await_waterfall")&&Vf(l),b=X("$.async_derived",Ir(P,!0),Wr&&qr(s.id.name),M?qr(M):void 0);b=w?fl(b):me(b),t.push(Fi(s.id,b))}else{if(u==="$derived")P=Ir(P);let M=X("$.derived",P);if(Wr)M=X("$.tag",M,qr(s.id.name));t.push(Fi(s.id,M))}}else{let P=s.init,M=i.visit(c),b=c;if(u!=="$derived"||P.arguments[0].type!=="Identifier"){let I=ir(i.state.scope.generate("$$d")),j=X("$.derived",u==="$derived"?Ir(M):M);if(b=X("$.get",I),p){let H=Wr&&!Kt(P,"await_waterfall")&&Vf(P);j=X("$.async_derived",Ir(M,!0),Wr&&qr(`[$derived ${s.id.type==="ArrayPattern"?"iterable":"object"}]`),H?qr(H):void 0),j=w?fl(j):me(j)}t.push(Fi(I,j))}let{inserts:o,paths:L}=Ue(s.id,b);for(let{id:I,value:j}of o){I.name=i.state.scope.generate("$$array"),i.state.transform[I.name]={read:fe};let H=i.visit(Ir(j)),J=X("$.derived",H);if(Wr){let W=`[$derived ${s.id.type==="ArrayPattern"?"iterable":"object"}]`;J=X("$.tag",J,qr(W))}t.push(Fi(I,J))}for(let I of L){let j=i.visit(I.expression),H=X("$.derived",Ir(j));t.push(Fi(I.node,Wr?X("$.tag",H,qr(I.node.name)):H))}}continue}}else for(let s of r.declarations){let l=i.state.scope.get_bindings(s),u=l.some((c)=>c.kind==="state"),h=l.some((c)=>c.kind==="bindable_prop");if(!u&&!h){t.push(i.visit(s));continue}if(h){if(s.id.type!=="Identifier"){let p=ir(i.state.scope.generate("tmp")),{inserts:w,paths:P}=Ue(s.id,p);t.push(Fi(p,i.visit(s.init)));for(let{id:M,value:b}of w){M.name=i.state.scope.generate("$$array"),i.state.transform[M.name]={read:fe};let o=i.visit(Ir(b));t.push(Fi(M,X("$.derived",o)))}for(let M of P){let b=M.node.name,o=i.state.scope.get(b),L=i.visit(M.expression);t.push(Fi(M.node,o.kind==="bindable_prop"?nw(o,i.state,o.prop_alias??b,L):L))}continue}let c=i.state.scope.get(s.id.name);t.push(Fi(s.id,nw(c,i.state,c.prop_alias??s.id.name,s.init&&i.visit(s.init))));continue}t.push(...wTr(s,i,s.init&&i.visit(s.init)))}if(t.length===0)return Ji;return{...r,declarations:t}}function wTr(r,i,t){if(r.id.type==="Identifier")return[Fi(r.id,X("$.mutable_source",t,i.state.analysis.immutable?ci:void 0))];let s=ir(i.state.scope.generate("tmp")),{inserts:l,paths:u}=Ue(r.id,s);return[Fi(s,t),...l.map(({id:h,value:c})=>{h.name=i.state.scope.generate("$$array"),i.state.transform[h.name]={read:fe};let p=i.visit(Ir(c));return Fi(h,X("$.derived",p))}),...u.map((h)=>{let c=i.visit(h.expression),p=i.state.scope.get(h.node.name);return Fi(h.node,p?.kind==="state"?X("$.mutable_source",c,i.state.analysis.immutable?ci:void 0):c)})]}var h5={_:function(i,{next:t,state:s}){let l=s.scopes.get(i);if(l&&l!==s.scope){let u={...s.transform};for(let[h,c]of l.declarations)if(c.kind==="normal"||c.kind==="state"&&!q1(c,s.analysis))delete u[h];t({...s,transform:u,scope:l})}else t()},AnimateDirective:uar,ArrowFunctionExpression:far,AssignmentExpression:har,Attribute:car,AwaitBlock:par,AwaitExpression:mar,BinaryExpression:oar,BindDirective:Rar,BlockStatement:Aar,BreakStatement:Mar,CallExpression:Sar,ClassBody:Tar,Comment:Oar,Component:Lar,ConstTag:Var,DebugTag:Iar,EachBlock:Far,ExportNamedDeclaration:Bar,ExpressionStatement:Har,ForOfStatement:Uar,Fragment:Nar,FunctionDeclaration:jar,FunctionExpression:zar,HtmlTag:Zar,Identifier:Qar,IfBlock:Jar,KeyBlock:Yar,LabeledStatement:War,LetDirective:Gar,MemberExpression:Kar,OnDirective:Xar,Program:Dar,RegularElement:Par,RenderTag:kar,SlotElement:_ar,SnippetBlock:xar,SpreadAttribute:rlr,SvelteBody:ilr,SvelteComponent:tlr,SvelteDocument:elr,SvelteElement:slr,SvelteFragment:alr,SvelteBoundary:llr,SvelteHead:ulr,SvelteSelf:flr,SvelteWindow:hlr,TitleElement:nlr,TransitionDirective:clr,UpdateExpression:ylr,UseDirective:vlr,AttachTag:plr,VariableDeclaration:mlr};function olr(r,i){let t={analysis:r,options:i,scope:r.module.scope,scopes:r.module.scopes,is_instance:!1,hoisted:[Kd("$","svelte/internal/client"),...r.instance_body.hoisted],node:null,legacy_reactive_imports:[],legacy_reactive_statements:new Map,metadata:{namespace:i.namespace,bound_contenteditable:!1},events:new Set,preserve_whitespace:i.preserveWhitespace,state_fields:new Map,transform:{},in_constructor:!1,instance_level_snippets:[],module_level_snippets:[],is_standalone:!1,init:null,consts:null,snippets:null,let_directives:null,update:null,after_update:null,template:null,memoizer:null},s=gi(r.module.ast,t,h5),l={...t,transform:{...t.transform},scope:r.instance.scope,scopes:r.instance.scopes,is_instance:!0},u=gi(r.instance.ast,l,h5),h=gi(r.template.ast,{...t,transform:l.transform,scope:r.instance.scope,scopes:r.template.scopes},h5);s.body.unshift(...t.legacy_reactive_imports);let c=[],p=Ji,w=[],P=!1;for(let[hr,vr]of r.instance.scope.declarations){if(vr.kind==="legacy_reactive")w.push(wt(hr,X("$.mutable_source",void 0,r.immutable?ci:void 0)));if(vr.kind==="store_sub"){if(c.length===0)P=!0,p=wt(Iu([ir("$$stores"),ir("$$cleanup")]),X("$.setup_stores"));let q=Xe(ir(hr.slice(1)),l),T=X("$.store_get",q,qr(hr),ir("$$stores"));c.push(wt(vr.node,Wr?Ir(oe([X("$.validate_store",q,qr(hr.slice(1))),T])):Ir(T)))}}for(let[hr]of r.reactive_statements){let vr=[...t.legacy_reactive_statements].find(([q])=>q===hr);if(vr===void 0)throw Error("Could not find reactive statement");u.body.push(vr[1])}if(r.reactive_statements.size>0)u.body.push($r(X("$.legacy_pre_effect_reset")));let M=[];for(let hr of r.binding_groups.values())M.push(wt(hr.name,li([])));let b=r.exports.flatMap(({name:hr,alias:vr})=>{let q=l.scope.get(hr),T=Xe(ir(hr),l),V=hs(vr??hr,[Xi(T)]);if(T.type==="Identifier"){if(q?.declaration_kind==="let"||q?.declaration_kind==="var")return[V,Fa(vr??hr,[$r(qi("=",T,ir("$$value")))])];else if(!Wr)return ni(vr??hr,T)}if(q?.kind==="prop"||q?.kind==="bindable_prop")return[V,Fa(vr??hr,[$r(X(hr,ir("$$value")))])];if(q?.kind==="state"||q?.kind==="raw_state"){let S=q.kind==="state"?X("$.proxy",ir("$$value")):ir("$$value");return[V,Fa(vr??hr,[$r(X("$.set",ir(hr),S))])]}return V}),o=[...r.instance.scope.declarations].filter(([hr,vr])=>(vr.kind==="prop"||vr.kind==="bindable_prop")&&!hr.startsWith("$$"));if(r.accessors)for(let[hr,vr]of o){let q=vr.prop_alias??hr,T=hs(q,[Xi(X(ir(hr)))]),V=Fa(q,[$r(X(ir(hr),ir("$$value"))),$r(X("$.flush"))]);if(r.runes&&vr.initial)V.value.params[0]={type:"AssignmentPattern",left:ir("$$value"),right:vr.initial};b.push(T,V)}if(i.compatibility.componentApi===4)b.push(ni("$set",ir("$.update_legacy_props")),ni("$on",Xr([ir("$$event_name"),ir("$$event_cb")],X("$.add_legacy_event_listener",ir("$$props"),ir("$$event_name"),ir("$$event_cb")))));else if(Wr)b.push(fa(X(ir("$.legacy_api"))));let L=[ir("$$props"),qr(r.runes)];if(Wr)L.push(ir(r.name));let I=Fr([p,...w,...M]),j=Wr||r.needs_context||r.reactive_statements.size>0||b.length>0;if(I.body.push(...t.instance_level_snippets,...u.body),j&&b.length>0)I.body.push(Si("$$exports",fi(b)));if(I.body.unshift(...c),!r.runes&&r.needs_context)I.body.push($r(X("$.init",r.immutable?ci:void 0)));if(I.body.push(...h.body),r.needs_mutation_validation)I.body.unshift(Si("$$ownership_validator",X("$.create_ownership_validator",ir("$$props"))));let H=j||r.needs_props||r.uses_props||r.uses_rest_props||r.uses_slots||r.slot_names.size>0;if(I.loc=u.loc,!r.runes)for(let{name:hr,alias:vr}of r.exports)I.body.push($r(X("$.bind_prop",ir("$$props"),qr(vr??hr),Xe(ir(hr),l))));if(r.css.ast!==null&&r.inject_styles){let hr=qr(r.css.hash),vr=qr(T1(r.source,r,i).code);t.hoisted.push(wt("$$css",fi([ni("hash",hr),ni("code",vr)]))),I.body.unshift($r(X("$.append_styles",ir("$$anchor"),ir("$$css"))))}if(j){I.body.unshift($r(X("$.push",...L)));let hr;if(b.length>0){let vr=X("$.pop",ir("$$exports"));hr=P?Si("$$pop",vr):Xi(vr)}else hr=$r(X("$.pop"));I.body.push(hr)}if(P){if(I.body.push($r(X("$$cleanup"))),b.length>0)I.body.push(Xi(ir("$$pop")))}if(r.uses_rest_props){let hr=r.exports.map(({name:vr,alias:q})=>q??vr);for(let[vr,q]of r.instance.scope.declarations)if(q.kind==="bindable_prop")hr.push(q.prop_alias??vr);I.body.unshift(wt("$$restProps",X("$.legacy_rest_props",ir("$$sanitized_props"),li(hr.map((vr)=>qr(vr))))))}if(r.uses_props||r.uses_rest_props){let hr=[qr("children"),qr("$$slots"),qr("$$events"),qr("$$legacy")];if(r.custom_element)hr.push(qr("$$host"));I.body.unshift(wt("$$sanitized_props",X("$.legacy_rest_props",ir("$$props"),li(hr))))}if(r.uses_slots)I.body.unshift(wt("$$slots",X("$.sanitize_slots",ir("$$props"))));let J=[],W=[];for(let hr of[...s.body,...t.hoisted])if(hr.type==="ImportDeclaration")J.push(hr);else W.push(hr);W=[...J,...t.module_level_snippets,...W];let sr=Zf(ir(r.name),H?[ir("$$anchor"),ir("$$props")]:[ir("$$anchor")],I);if(i.hmr){let hr=ir(r.name),vr=[$r(X(ai(ai(hr,ir("$.HMR"),!0),"update"),ir("module.default")))];if(r.css.hash)vr.unshift($r(X("$.cleanup_styles",qr(r.css.hash))));let q=Fr([$r(qi("=",hr,X("$.hmr",hr))),$r(X("import.meta.hot.accept",Xr([ir("module")],Fr(vr))))]);W.push(sr,ue(ir("import.meta.hot"),q),zf(ir(r.name)))}else W.push(zf(sr));if(Wr)W.unshift($r(qi("=",ai(ir(r.name),"$.FILENAME",!0),qr(ee))));if(i.experimental.async)W.unshift(Ql([],"svelte/internal/flags/async"));if(!r.runes)W.unshift(Ql([],"svelte/internal/flags/legacy"));if(r.tracing)W.unshift(Ql([],"svelte/internal/flags/tracing"));if(i.discloseVersion)W.unshift(Ql([],"svelte/internal/disclose-version"));if(i.compatibility.componentApi===4)W.unshift(Ql([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),I.body.unshift(ue(ir("new.target"),Xi(X("$$_createClassComponent",fi([ni("component",ir(r.name)),fa(ir("$$anchor"))])))));else if(Wr)I.body.unshift($r(X("$.check_target",ir("new.target"))));if(r.props_id)I.body.unshift(wt(r.props_id,X("$.props_id")));if(t.events.size>0)W.push($r(X("$.delegate",li(Array.from(t.events).map((hr)=>qr(hr))))));let rr=r.custom_element;if(rr){let hr=typeof rr==="boolean"?{}:rr.props||{},vr=[];for(let[k,er]of Object.entries(hr)){let tr=r.instance.scope.get(k),U=tr?.prop_alias??k;if(!er.type&&tr?.initial?.type==="Literal"&&typeof tr?.initial.value==="boolean")er.type="Boolean";let Z=fi([er.attribute?ni("attribute",qr(er.attribute)):void 0,er.reflect?ni("reflect",ci):void 0,er.type?ni("type",qr(er.type)):void 0].filter(Boolean));vr.push(ni(U,Z))}for(let[k,er]of o){let tr=er.prop_alias??k;if(hr[tr])continue;vr.push(ni(tr,fi([])))}let q=li([...r.slot_names.keys()].map((k)=>qr(k))),T=li(r.exports.map(({name:k,alias:er})=>qr(er??k))),V;if(typeof rr==="boolean"||rr.shadow==="open"||rr.shadow===void 0)V=fi([ni("mode",qr("open"))]);else if(rr.shadow==="none")V=void 0;else V=rr.shadow;let S=X("$.create_custom_element",ir(r.name),fi(vr),q,T,V,typeof rr!=="boolean"?rr.extend:void 0);if(typeof rr!=="boolean"&&typeof rr.tag==="string"){let k=$r(X("customElements.define",qr(rr.tag),S));if(i.hmr)W.push(ue(Va("==",X("customElements.get",qr(rr.tag)),Cs),k));else W.push(k)}else W.push($r(S))}return{type:"Program",sourceType:"module",body:W}}function blr(r,i,t){if(t.generate===!1)return{js:null,css:null,warnings:xh,metadata:{runes:r.runes},ast:null};let s=t.generate==="server"?lar(r,t):olr(r,t),l=msr(t.filename,t.outputFilename,"input.svelte"),u=Z$(s,Y$({comments:r.comments}),{sourceMapContent:i,sourceMapSource:l});Nw(u,t,l);let h=r.css.ast&&!r.inject_styles?T1(i,r,t):null;return{js:u,css:h,warnings:xh,metadata:{runes:r.runes},ast:null}}var Clr={filename:xv("(unknown)"),rootDir:xv(typeof process<"u"?process.cwd?.():typeof Deno<"u"?Deno.cwd():void 0),dev:xl(!1),generate:ih("client",(r,i)=>{if(r==="dom"||r==="ssr")return p5(GI),r==="dom"?"client":"server";if(r!=="client"&&r!=="server"&&r!==!1)Qa(`${i} must be "client", "server" or false`);return r}),warningFilter:Plr(()=>!0),experimental:i2({async:xl(!1)})},qlr={accessors:wlr(pd,xl(!1)),css:y5(()=>"external",(r)=>{if(r===!0||r===!1)Qa('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true');if(r==="none")Qa('css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case.');if(r!=="external"&&r!=="injected")Qa('css should be either "external" (default, recommended) or "injected"');return r}),cssHash:Plr(({css:r,filename:i,hash:t})=>{return`svelte-${t(i==="(unknown)"?r:i??r)}`}),cssOutputFilename:xv(void 0),customElement:y5(()=>!1,(r,i)=>{if(typeof r!=="boolean")Qa(`${i} should be true or false`);return r}),discloseVersion:xl(!0),immutable:wlr(md,xl(!1)),legacy:I1("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:i2({componentApi:c5([4,5],5)}),loopGuardTimeout:n5(WI),name:xv(void 0),namespace:c5(["html","mathml","svg"]),modernAst:xl(!1),outputFilename:xv(void 0),preserveComments:xl(!1),fragments:c5(["html","tree"]),preserveWhitespace:xl(!1),runes:y5(()=>{return}),hmr:xl(!1),sourcemap:ih(void 0,(r)=>{return r}),enableSourcemap:n5(JI),hydratable:n5(YI),format:I1('The format option has been removed in Svelte 4, the compiler only outputs ESM now. Remove "format" from your compiler options. If you did not set this yourself, bump the version of your bundler plugin (vite-plugin-svelte/rollup-plugin-svelte/svelte-loader)'),tag:I1('The tag option has been removed in Svelte 5. Use `<svelte:options customElement="tag-name" />` inside the component instead. If that does not solve your use case, please open an issue on GitHub with details.'),sveltePath:I1("The sveltePath option has been removed in Svelte 5. If this option was crucial for you, please open an issue on GitHub with your use case."),errorMode:I1("The errorMode option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead"),varsReport:I1("The vars option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead")},qTr=i2({...Clr,...Object.fromEntries(Object.keys(qlr).map((r)=>[r,()=>{}]))}),v5=i2({...Clr,...qlr});function I1(r){return(i)=>{if(i!==void 0)MB(null,r);return}}var dlr=new Set;function p5(r){if(!dlr.has(r))dlr.add(r),r(null)}function n5(r){return(i)=>{if(i!==void 0)p5(r);return}}function wlr(r,i){return(t,s)=>{if(t!==void 0)p5(r);return i(t,s)}}function i2(r,i=!1){return(t,s)=>{let l={};if(t&&typeof t!=="object"||Array.isArray(t))Qa(`${s} should be an object`);for(let u in t)if(!(u in r))if(i)l[u]=t[u];else SB(null,`${s?`${s}.${u}`:u}`);for(let u in r){let h=r[u];l[u]=h(t&&t[u],s?`${s}.${u}`:u)}return l}}function ih(r,i){return(t,s)=>{return t===void 0?r:i(t,s)}}function xv(r,i=!0){return ih(r,(t,s)=>{if(typeof t!=="string")Qa(`${s} should be a string, if specified`);if(!i&&t==="")Qa(`${s} cannot be empty`);return t})}function xl(r){return ih(r,(i,t)=>{if(typeof i!=="boolean")Qa(`${t} should be true or false, if specified`);return i})}function c5(r,i=r[0]){return ih(i,(t,s)=>{if(!r.includes(t)){let l=r.length>2?`${s} should be one of ${r.slice(0,-1).map((u)=>`"${u}"`).join(", ")} or "${r[r.length-1]}"`:`${s} should be either "${r[0]}" or "${r[1]}"`;Qa(l)}return t})}function Plr(r){return ih(r,(i,t)=>{if(typeof i!=="function")Qa(`${t} should be a function, if specified`);return i})}function y5(r,i=(t)=>t){return ih(r,(t,s)=>{if(typeof t==="function")return(...h)=>i(t(...h),s);return(...u)=>i(t,s)})}function Qa(r){AB(null,r)}function $lr(r,i){r=Rlr(r),vd({warning:i.warningFilter,filename:i.filename});let t=v5(i,""),s=iw(r),{customElement:l,...u}=s.options||{},h={...t,...u,customElementOptions:l,css:"css"in u?()=>u.css??"external":t.css,runes:"runes"in u?()=>u.runes:t.runes};if(s.metadata.ts){if(s={...s,fragment:s.fragment&&ov(s.fragment),instance:s.instance&&ov(s.instance),module:s.module&&ov(s.module)},h.customElementOptions?.extend)h.customElementOptions.extend=ov(h.customElementOptions?.extend)}let c=N$(s,r,h),p=blr(c,r,h);return p.ast=glr(r,s,i.modernAst),p}function rp(r,{modern:i,loose:t}={}){r=Rlr(r),vd({warning:()=>!1,filename:void 0});let s=iw(r,t);return glr(r,s,i)}function glr(r,i,t){if(t){let s=(l)=>{delete l.metadata};return i.options?.attributes.forEach((l)=>{if(s(l),s(l.value),Array.isArray(l.value))l.value.forEach(s)}),gi(i,null,{_(l,{next:u}){s(l),u()}})}return qF(r,i)}function Rlr(r){if(r.charCodeAt(0)===65279)return r.slice(1);return r}var Alr={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 Mlr(r){return r in Alr?Alr[r]:"HTMLElement"}var $Tr=/(?:const|let|function)\s+(\w+)\s*[=(]/,gTr=/^-\s*/,RTr=/\w/,ATr=/^\s*$/;function m5(r){if(!r)return;let i=r.lastIndexOf("-");return i>=0?r.substring(i+1).trim():r.trim()}function th(r){if(r===void 0)return;let i=r.replace(gTr,"").trim();return i===""?"":i}function Slr(r){if(r==="var")return"let";if(r==="using"||r==="await using")return"const";return r}var Llr=Symbol("sveld.parsedComponentTypeScriptMetadata");function Elr(r){return r[Llr]}var Tlr=null,MTr=/(\}|\};)$/,STr=/[-_.:/\s]+/,Olr=/^@component/,TTr=/\r/g,OTr=/[\r\n]+/g;class St{options;syntaxMode="legacy";source;compiled;parsed;rest_props;extends;componentComment;reactive_vars=new Set;vars=new Set;props=new Map;moduleExports=new Map;slots=new Map;events=new Map;eventDescriptions=new Map;forwardedEvents=new Map;typedefs=new Map;generics=null;bindings=new Map;contexts=new Map;variableInfoCache=new Map;propLocalToPublicName=new Map;restPropLocals=new Set;wholePropsLocals=new Set;snippetPropLocals=new Set;runesPropsDeclarationMetadataByDeclaratorStart=new Map;explicitPropTypesByName=new Map;typeImportBindingsByLocalName=new Map;localTypeDeclarationsByName=new Map;typedRunesPropsDeclarations=[];componentScope=new Map;scopeDeclarations=new WeakMap;activeScopes=[];sourceLinesCache;constructor(r){this.options=r}static mapToArray(r){return Array.from(r,([i,t])=>t)}static assignValue(r){return r===void 0||r===""?void 0:r}resolvePublicPropName(r){return this.propLocalToPublicName.get(r)??r}trackPropLocalName(r,i=r){this.propLocalToPublicName.set(i,r)}getPropByLocalOrPublic(r){return this.props.get(this.resolvePublicPropName(r))}getPropTypeByLocalOrPublic(r){return this.getPropByLocalOrPublic(r)?.type}getExplicitPropType(r){return this.explicitPropTypesByName.get(r)}getRunesPropsDeclarationMetadata(r){if(r===void 0)return;return this.runesPropsDeclarationMetadataByDeclaratorStart.get(r)}getRunesPropTypeMetadata(r,i){return this.getRunesPropsDeclarationMetadata(r)?.props.get(i)}getTypeReferenceName(r){if(!r||typeof r!=="object"||!("type"in r))return;if(r.type==="Identifier"&&"name"in r&&typeof r.name==="string")return r.name;if(r.type==="TSQualifiedName"&&"right"in r&&r.right&&typeof r.right==="object"&&"name"in r.right&&typeof r.right.name==="string")return r.right.name;return}getTypeDependencyName(r){if(!r||typeof r!=="object"||!("type"in r))return;if(r.type==="Identifier"&&"name"in r&&typeof r.name==="string")return r.name;if(r.type==="TSQualifiedName"&&"left"in r&&r.left&&typeof r.left==="object")return this.getTypeDependencyName(r.left);return}getTypeAnnotationText(r){let i=r?.start,t=r?.end;if(i===void 0||t===void 0)return;return this.sourceAtPos(i+1,t)?.trim()}collectReferencedTypeDependencies(r,i,t,s=new Set){if(!r?.type)return;switch(r.type){case"TSInterfaceDeclaration":this.collectReferencedTypeDependencies({type:"TSTypeLiteral",members:r.body?.body},i,t,s);return;case"TSTypeAliasDeclaration":case"TSParenthesizedType":case"TSTypeAnnotation":this.collectReferencedTypeDependencies(r.typeAnnotation,i,t,s);return;case"TSIntersectionType":case"TSUnionType":for(let l of r.types??[])this.collectReferencedTypeDependencies(l,i,t,s);return;case"TSTypeLiteral":for(let l of r.members??[]){if(!l||l.type!=="TSPropertySignature")continue;this.collectReferencedTypeDependencies(l.typeAnnotation?.typeAnnotation,i,t,s)}return;case"TSTypeReference":{let l=this.getTypeDependencyName(r.typeName);if(l){if(this.typeImportBindingsByLocalName.has(l))i.add(l);let u=this.localTypeDeclarationsByName.get(l);if(u&&!s.has(l))t.add(l),s.add(l),this.collectReferencedTypeDependencies(u.node,i,t,s),s.delete(l)}if("typeParameters"in r&&r.typeParameters&&typeof r.typeParameters==="object"){let u=r.typeParameters;for(let h of u.params??[])this.collectReferencedTypeDependencies(h,i,t,s)}return}case"TSArrayType":case"TSRestType":case"TSOptionalType":case"TSIndexedAccessType":case"TSTypeOperator":case"TSExpressionWithTypeArguments":case"TSTupleType":case"TSConditionalType":case"TSInferType":case"TSMappedType":case"TSFunctionType":case"TSConstructorType":case"TSTypeQuery":case"TSImportType":case"TSLiteralType":case"TSTypePredicate":case"TSNamedTupleMember":break;default:break}for(let l of Object.values(r)){if(!l||typeof l!=="object")continue;if(Array.isArray(l)){for(let u of l){if(!u||typeof u!=="object"||!("type"in u))continue;this.collectReferencedTypeDependencies(u,i,t,s)}continue}if("type"in l)this.collectReferencedTypeDependencies(l,i,t,s)}}buildTypeImportStatements(r){let i=new Map;for(let t of Array.from(r).sort()){let s=this.typeImportBindingsByLocalName.get(t);if(!s)continue;let l=i.get(s.source)??{default:[],named:[],namespace:[]};if(s.specifierType==="default")l.default.push(s.localName);else if(s.specifierType==="namespace")l.namespace.push(s.localName);else l.named.push({imported:s.importedName,local:s.localName});i.set(s.source,l)}return Array.from(i.entries()).sort(([t],[s])=>t.localeCompare(s)).map(([t,s])=>{if(s.namespace.length>0)return s.namespace.map((c)=>`import type * as ${c} from "${t}";`).join(`
573
573
  `);let l=s.named.map(({imported:c,local:p})=>{if(!c||c===p)return p;return`${c} as ${p}`}),u=s.default[0],h=l.length>0?`{ ${l.join(", ")} }`:"";if(u&&h)return`import type ${u}, ${h} from "${t}";`;if(u)return`import type ${u} from "${t}";`;return`import type ${h} from "${t}";`})}buildTypeScriptMetadata(){if(this.typedRunesPropsDeclarations.length!==1)return;let[r]=this.typedRunesPropsDeclarations;if(!r.canonicalType)return;let i=Array.from(r.referencedLocalTypes).map((t)=>this.localTypeDeclarationsByName.get(t)).filter((t)=>t!==void 0).sort((t,s)=>t.start-s.start).map((t)=>t.code);return{canonicalPropsType:r.canonicalType,canonicalPropNames:Array.from(r.props.keys()).sort(),localTypeDeclarations:i,typeImportStatements:this.buildTypeImportStatements(r.referencedImportedTypes)}}buildRunesPropTypeMetadataMap(r,i,t=new Set){let s=new Map;if(!r?.type)return s;let l=(u)=>{for(let h of u){if(!h||h.type!=="TSPropertySignature"||h.computed)continue;if(!h.key)continue;let c=this.getPropertyName(h.key);if(!c)continue;let p=h.typeAnnotation?.start,w=h.typeAnnotation?.end;if(p===void 0||w===void 0)continue;let P=this.sourceAtPos(p+1,w)?.trim();if(!P)continue;s.set(c,{type:P,optional:h.optional===!0})}};switch(r.type){case"TSTypeLiteral":l(r.members??[]);break;case"TSInterfaceDeclaration":l(r.body?.body??[]);break;case"TSTypeAliasDeclaration":{let u=this.buildRunesPropTypeMetadataMap(r.typeAnnotation,i,t);for(let[h,c]of u)s.set(h,c);break}case"TSTypeReference":{let u=this.getTypeReferenceName(r.typeName);if(!u||t.has(u))break;let h=i.get(u);if(!h)break;t.add(u);let c=this.buildRunesPropTypeMetadataMap(h,i,t);t.delete(u);for(let[p,w]of c)s.set(p,w);break}case"TSIntersectionType":for(let u of r.types??[]){let h=this.buildRunesPropTypeMetadataMap(u,i,t);for(let[c,p]of h)s.set(c,p)}break;case"TSParenthesizedType":{let u=this.buildRunesPropTypeMetadataMap(r.typeAnnotation,i,t);for(let[h,c]of u)s.set(h,c);break}}return s}declareScopeBinding(r,i,t){if(St.assignValue(i)===void 0||r.has(i))return;r.set(i,t)}resolveIdentifierToReactiveProp(r){for(let i=this.activeScopes.length-1;i>=0;i-=1){let t=this.activeScopes[i]?.get(r);if(!t)continue;return t.kind==="prop"?t.publicPropName:void 0}return}collectPatternIdentifiers(r,i=new Set){if(!r||typeof r!=="object"||!("type"in r))return i;switch(r.type){case"Identifier":i.add(r.name);break;case"AssignmentPattern":this.collectPatternIdentifiers(r.left,i);break;case"ArrayPattern":for(let t of r.elements)this.collectPatternIdentifiers(t??void 0,i);break;case"ObjectPattern":for(let t of r.properties)if(t.type==="Property")this.collectPatternIdentifiers(t.value,i);else if(t.type==="RestElement")this.collectPatternIdentifiers(t.argument,i);break;case"RestElement":this.collectPatternIdentifiers(r.argument,i);break}return i}markReactivePropsFromMutationTarget(r){let i=this.collectPatternIdentifiers(r);if(!i)return;for(let t of i){let s=this.resolveIdentifierToReactiveProp(t);if(s)this.reactive_vars.add(s)}}isScopeOwner(r){if(!r||typeof r!=="object"||!("type"in r))return!1;switch(String(r.type)){case"BlockStatement":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"CatchClause":case"EachBlock":case"ThenBlock":case"CatchBlock":return!0;default:return!1}}isFunctionScopeOwner(r){if(!r||typeof r!=="object"||!("type"in r))return!1;let i=String(r.type);return i==="FunctionDeclaration"||i==="FunctionExpression"||i==="ArrowFunctionExpression"}getOrCreateScope(r){let i=this.scopeDeclarations.get(r);if(!i)i=new Map,this.scopeDeclarations.set(r,i);return i}declareVariableDeclaration(r,i,t,s){if(!r||typeof r!=="object"||!("type"in r)||r.type!=="VariableDeclaration")return;let l=s?.allowRunesProps??!1,u=s?.forceProp??!1,h=r;for(let c of h.declarations){if(l&&this.isCallExpressionNamed(c.init,"$props")){for(let P of this.extractRunesScopeBindings(h,c))this.declareScopeBinding(P.kind==="prop"?i:t,P.name,P.kind==="prop"?{kind:"prop",publicPropName:P.publicPropName}:{kind:"local"});continue}let p=h.kind==="var"?t:i,w=u?"prop":"local";for(let P of this.collectPatternIdentifiers(c.id))this.declareScopeBinding(p,P,w==="prop"?{kind:"prop",publicPropName:P}:{kind:"local"})}}declareFunctionLikeScopeBindings(r,i){if("id"in r&&r.id&&typeof r.id==="object"&&"name"in r.id&&typeof r.id.name==="string")this.declareScopeBinding(i,r.id.name,{kind:"local"});for(let t of r.params)for(let s of this.collectPatternIdentifiers(t))this.declareScopeBinding(i,s,{kind:"local"})}collectDirectBlockDeclarations(r,i,t){if(!Array.isArray(r))return;for(let s of r){if(!s||typeof s!=="object"||!("type"in s))continue;switch(s.type){case"VariableDeclaration":this.declareVariableDeclaration(s,i,t);break;case"FunctionDeclaration":if(s.id?.name)this.declareScopeBinding(i,s.id.name,{kind:"local"});break;case"ClassDeclaration":if(s.id?.name)this.declareScopeBinding(i,s.id.name,{kind:"local"});break}}}extractRunesScopeBindings(r,i){let t=[];if(i.id.type==="Identifier")return t.push({kind:"local",name:i.id.name}),t;if(i.id.type!=="ObjectPattern")return t;for(let s of i.id.properties){if(s.type==="RestElement"){if(s.argument.type==="Identifier")t.push({kind:"local",name:s.argument.name});continue}if(s.computed)continue;let l=this.getPropertyName(s.key);if(!l)continue;let u;if(s.value.type==="Identifier")u=s.value.name;else if(s.value.type==="AssignmentPattern"&&s.value.left.type==="Identifier")u=s.value.left.name;if(!u)continue;t.push({kind:"prop",name:u,publicPropName:l})}return t}collectComponentScopeDeclarations(r){if(!r||typeof r!=="object")return;let i="content"in r&&r.content&&typeof r.content==="object"&&"body"in r.content&&Array.isArray(r.content.body)?r.content:("body"in r)&&Array.isArray(r.body)?r:void 0;if(!i||!("body"in i)||!Array.isArray(i.body))return;for(let t of i.body){if(!t||typeof t!=="object"||!("type"in t))continue;switch(t.type){case"ImportDeclaration":for(let s of t.specifiers??[])if(s.local?.name)this.declareScopeBinding(this.componentScope,s.local.name,{kind:"local"});break;case"VariableDeclaration":this.declareVariableDeclaration(t,this.componentScope,this.componentScope,{allowRunesProps:!0});break;case"FunctionDeclaration":if(t.id?.name)this.declareScopeBinding(this.componentScope,t.id.name,{kind:"local"});break;case"ClassDeclaration":if(t.id?.name)this.declareScopeBinding(this.componentScope,t.id.name,{kind:"local"});break;case"ExportNamedDeclaration":if(!t.declaration||typeof t.declaration!=="object"||!("type"in t.declaration))break;if(t.declaration.type==="VariableDeclaration")this.declareVariableDeclaration(t.declaration,this.componentScope,this.componentScope,{forceProp:!0});else if(t.declaration.type==="FunctionDeclaration"&&t.declaration.id?.name)this.declareScopeBinding(this.componentScope,t.declaration.id.name,{kind:"prop",publicPropName:t.declaration.id.name});break}}}collectNestedScopeDeclarations(r){let i=[this.componentScope];ed(r,{enter:(t)=>{if(!this.isScopeOwner(t))return;let s=this.getOrCreateScope(t),l=i[i.length-1]??this.componentScope;switch(String(t.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":this.declareFunctionLikeScopeBindings(t,s);break;case"BlockStatement":this.collectDirectBlockDeclarations(t.body,s,l);break;case"CatchClause":if("param"in t)for(let h of this.collectPatternIdentifiers(t.param))this.declareScopeBinding(s,h,{kind:"local"});break;case"EachBlock":{let h=t;for(let c of this.collectPatternIdentifiers(h.context))this.declareScopeBinding(s,c,{kind:"local"});if(typeof h.index==="string")this.declareScopeBinding(s,h.index,{kind:"local"});else if(h.index&&"name"in h.index)this.declareScopeBinding(s,h.index.name,{kind:"local"});break}case"ThenBlock":if("value"in t)for(let h of this.collectPatternIdentifiers(t.value))this.declareScopeBinding(s,h,{kind:"local"});break;case"CatchBlock":if("error"in t)for(let h of this.collectPatternIdentifiers(t.error))this.declareScopeBinding(s,h,{kind:"local"});break}if(this.isFunctionScopeOwner(t))i.push(s)},leave:(t)=>{if(this.isFunctionScopeOwner(t))i.pop()}})}buildScopeDeclarations(r){this.componentScope.clear(),this.scopeDeclarations=new WeakMap,this.activeScopes.length=0,this.collectComponentScopeDeclarations(this.parsed?.instance),this.collectNestedScopeDeclarations(r)}createRestPropsFromParent(r){if(!r||typeof r!=="object"||!("type"in r))return;let i=String(r.type);if(i!=="InlineComponent"&&i!=="Element")return;let t="name"in r&&typeof r.name==="string"?r.name:void 0;if(!t)return;let s=i==="InlineComponent"?{type:"InlineComponent",name:t}:{type:"Element",name:t};if(i==="Element"&&t==="svelte:element"&&"tag"in r&&typeof r.tag==="string")s.thisValue=r.tag;return s}maybeSetRestProps(r){if(this.rest_props!==void 0)return;let i=this.createRestPropsFromParent(r);if(i)this.rest_props=i}isCallExpressionNamed(r,i){if(!r||typeof r!=="object"||!("type"in r)||r.type!=="CallExpression")return!1;let t=r;return!!t.callee&&typeof t.callee==="object"&&"name"in t.callee&&t.callee.name===i}getPropertyName(r){if(!r||typeof r!=="object"||!("type"in r))return;if(r.type==="Identifier")return r.name;if(r.type==="Literal")return r.value==null?void 0:String(r.value);return}logUnsupportedRunesPattern(r){if(this.options?.verbose&&this.syntaxMode==="runes")console.warn(`Warning: ${r}`)}static formatComment(r){let i=r;if(!i.startsWith("/*"))i=`/*${i}`;if(!i.endsWith("*/"))i+="*/";return i}getCommentTags(r){let i=r[0]?.tags??[],t=new Set(["type","param","returns","return","extends","extendProps","restProps","slot","snippet","event","typedef","callback"]),s,l=[],u,h=[];for(let c of i)if(c.tag==="type")s=c;else if(c.tag==="param")l.push(c);else if(c.tag==="returns"||c.tag==="return")u=c;else if(!t.has(c.tag))h.push(c);return{type:s,param:l,returns:u,additional:h,description:r[0]?.description}}static findJSDocComment(r){if(!r||r.length===0)return;let i=r[r.length-1];return i&&typeof i==="object"&&"value"in i?i:void 0}findAdjacentJSDocComment(r,i){if(!r||r.length===0||i===void 0||!this.source)return;for(let t=r.length-1;t>=0;t--){let s=r[t];if(!s||typeof s!=="object"||!("value"in s)||!("end"in s))continue;if(typeof s.end!=="number")continue;let l=this.source.slice(s.end,i);if(ATr.test(l))return s}return}processNodeJSDoc(r){if(!r?.leadingComments)return;let i=this.findAdjacentJSDocComment(r.leadingComments,r.start);if(!i)return;return this.processJSDocComment([i])}processLeadingCommentsJSDoc(r){if(!r?.leadingComments)return;return this.processNodeJSDoc(r)}processJSDocComment(r){if(!r)return;let i=St.findJSDocComment(r);if(!i)return;let t=Yy(St.formatComment(i.value),{spacing:"preserve"}),{type:s,param:l,returns:u,additional:h,description:c}=this.getCommentTags(t),p,w,P,M;if(s)p=this.aliasType(s.type);if(l.length>0)w=l.filter((o)=>!o.name.includes(".")).map((o)=>({name:o.name,type:this.aliasType(o.type),description:th(o.description),optional:o.optional||!1}));if(u)P=this.aliasType(u.type);let b=St.assignValue(c?.trim());if(b||h.length>0){let o=[];if(b)o.push(b);for(let L of h){let I=`@${L.tag}${L.name?` ${L.name}`:""}${L.description?` ${L.description}`:""}`;o.push(I)}M=o.join(`
574
574
  `)}return{type:p,params:w,returnType:P,description:M}}buildRunesPropTypeMetadata(){if(this.runesPropsDeclarationMetadataByDeclaratorStart.clear(),this.explicitPropTypesByName.clear(),this.typeImportBindingsByLocalName.clear(),this.localTypeDeclarationsByName.clear(),this.typedRunesPropsDeclarations.length=0,!this.source)return;let i=rp(this.source,{modern:!0}).instance?.content?.body??[];for(let t of i){if(!t?.type)continue;if(t.type==="ImportDeclaration"&&t.source?.value)for(let s of t.specifiers??[]){let l=s.local?.name;if(!l)continue;if(!(t.importKind==="type"||s.importKind==="type"))continue;let h,c;if(s.type==="ImportSpecifier")h="named",c=s.imported?.type==="Identifier"?s.imported.name:typeof s.imported?.value==="string"?s.imported.value:void 0;else if(s.type==="ImportDefaultSpecifier")h="default";else if(s.type==="ImportNamespaceSpecifier")h="namespace";if(!h)continue;this.typeImportBindingsByLocalName.set(l,{importedName:c,localName:l,source:String(t.source.value),specifierType:h})}if((t.type==="TSInterfaceDeclaration"||t.type==="TSTypeAliasDeclaration")&&t.id?.name&&t.start!==void 0&&t.end!==void 0)this.localTypeDeclarationsByName.set(t.id.name,{code:this.sourceAtPos(t.start,t.end)?.trim()??"",node:t,start:t.start});if(t.type==="ExportNamedDeclaration"&&t.declaration?.type==="VariableDeclaration")for(let s of t.declaration.declarations??[]){if(s.id?.type!=="Identifier"||!s.id.name)continue;let l=this.getTypeAnnotationText(s.id.typeAnnotation);if(l)this.explicitPropTypesByName.set(s.id.name,l)}}for(let t of i){if(!t||typeof t!=="object"||!("declarations"in t))continue;for(let s of t.declarations??[]){if(!this.isCallExpressionNamed(s.init,"$props"))continue;let l=this.getTypeAnnotationText(s.id?.typeAnnotation),u=this.buildRunesPropTypeMetadataMap(s.id?.typeAnnotation?.typeAnnotation,new Map(Array.from(this.localTypeDeclarationsByName.entries(),([p,w])=>[p,w.node]))),h=new Set,c=new Set;if(this.collectReferencedTypeDependencies(s.id?.typeAnnotation?.typeAnnotation,h,c),s.start!==void 0){let p={canonicalType:l,props:u,referencedImportedTypes:h,referencedLocalTypes:c};if(this.runesPropsDeclarationMetadataByDeclaratorStart.set(s.start,p),l)this.typedRunesPropsDeclarations.push(p)}}}}isNumericConstant(r){if(!r||typeof r!=="object"||!("type"in r))return!1;if(r.type!=="MemberExpression")return!1;let i=r,t=i.object&&"name"in i.object?i.object.name:void 0,s=i.property&&"name"in i.property?i.property.name:void 0;if(!t||!s)return!1;if(t==="Number")return["POSITIVE_INFINITY","NEGATIVE_INFINITY","MAX_VALUE","MIN_VALUE","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","EPSILON","NaN"].includes(s);if(t==="Math")return["PI","E","LN2","LN10","LOG2E","LOG10E","SQRT2","SQRT1_2"].includes(s);return!1}sourceAtPos(r,i){return this.source?.slice(r,i)}processInitializer(r,i=0){let t,s,l=!1;if(!r||typeof r!=="object"||!("type"in r))return{value:t,type:s,isFunction:l};if(r.type==="ObjectExpression"||r.type==="BinaryExpression"||r.type==="ArrayExpression"||r.type==="ArrowFunctionExpression"){let u=r;if("start"in u&&"end"in u&&typeof u.start==="number"&&typeof u.end==="number")t=this.sourceAtPos(u.start,u.end)?.replace(OTr," ");if(s=t,l=r.type==="ArrowFunctionExpression",r.type==="BinaryExpression"){let h=r;if(h.left&&typeof h.left==="object"&&"type"in h.left&&h.left.type==="Literal"&&"value"in h.left&&typeof h.left.value==="string")s="string"}if(r.type==="ArrowFunctionExpression")s="(...args: any[]) => any",t=void 0}else if(r.type==="UnaryExpression"){let u=r;if("start"in u&&"end"in u&&typeof u.start==="number"&&typeof u.end==="number")t=this.sourceAtPos(u.start,u.end);if(u.argument){if(typeof u.argument==="object"&&"type"in u.argument&&u.argument.type==="UnaryExpression")s=this.processInitializer(u.argument).type;else if(typeof u.argument==="object"&&"value"in u.argument)s=typeof u.argument.value}}else if(r.type==="NewExpression"){let u=r;if("start"in u&&"end"in u&&typeof u.start==="number"&&typeof u.end==="number")t=this.sourceAtPos(u.start,u.end);if(u.callee&&typeof u.callee==="object"&&"type"in u.callee&&u.callee.type==="Identifier"){let h=u.callee.name;if(h==="Date")s="Date";else if(h==="Map")s="Map<any, any>";else if(h==="Set")s="Set<any>";else if(h==="WeakMap")s="WeakMap<object, any>";else if(h==="WeakSet")s="WeakSet<object>";else if(h==="Array")s="any[]";else if(h==="RegExp"||h==="Regexp")s="RegExp";else if(h==="Error")s="Error";else s=h}}else if(r.type==="CallExpression"){let u=r;if("start"in u&&"end"in u&&typeof u.start==="number"&&typeof u.end==="number")t=this.sourceAtPos(u.start,u.end)}else if(r.type==="Identifier"){let u=r;if(i<5){let h=this.resolveLocalVarInitializer(u.name);if(h)return this.processInitializer(h,i+1)}if("start"in u&&"end"in u&&typeof u.start==="number"&&typeof u.end==="number")t=this.sourceAtPos(u.start,u.end)}else if(r.type==="MemberExpression"){let u=r;if("start"in u&&"end"in u&&typeof u.start==="number"&&typeof u.end==="number")t=this.sourceAtPos(u.start,u.end);if(this.isNumericConstant(r))s="number"}else if(r.type==="TemplateLiteral"){let u=r;if("start"in u&&"end"in u&&typeof u.start==="number"&&typeof u.end==="number")t=this.sourceAtPos(u.start,u.end);s="string"}else if("raw"in r&&typeof r.raw==="string"){if(t=r.raw,"value"in r)s=r.value==null?void 0:typeof r.value}return{value:t,type:s,isFunction:l}}resolveLocalVarInitializer(r){for(let i of this.vars)for(let t of i.declarations)if(t.id&&typeof t.id==="object"&&"type"in t.id&&t.id.type==="Identifier"&&"name"in t.id&&t.id.name===r&&t.init)return t.init;return}unwrapBindableInitializer(r){if(this.isCallExpressionNamed(r,"$bindable"))return{init:r.arguments[0],bindable:!0};return{init:r,bindable:!1}}parseRunesPropsDeclaration(r){for(let i of r.declarations){if(!this.isCallExpressionNamed(i.init,"$props"))continue;if(i.id.type==="Identifier"){this.wholePropsLocals.add(i.id.name),this.restPropLocals.add(i.id.name);let l=this.getRunesPropsDeclarationMetadata(i.start);if(l)for(let[u,h]of l.props)this.addProp(u,{name:u,kind:"let",type:h.type,isFunction:!1,isFunctionDeclaration:!1,isRequired:!h.optional,constant:!1,reactive:!1});continue}if(i.id.type!=="ObjectPattern"){this.logUnsupportedRunesPattern("Skipping unsupported $props() declaration pattern.");continue}let t=this.processNodeJSDoc(r),s=i.id.properties.filter((l)=>{if(l.type!=="Property"||l.computed)return!1;if(!this.getPropertyName(l.key))return!1;if(l.value.type==="Identifier")return!0;return l.value.type==="AssignmentPattern"&&l.value.left.type==="Identifier"}).length;for(let l of i.id.properties){if(l.type==="RestElement"){if(l.argument.type==="Identifier")this.restPropLocals.add(l.argument.name);else this.logUnsupportedRunesPattern("Skipping unsupported rest element in $props() destructuring.");continue}if(l.computed){this.logUnsupportedRunesPattern("Skipping computed property in $props() destructuring.");continue}let u=this.getPropertyName(l.key);if(!u){this.logUnsupportedRunesPattern("Skipping unsupported property name in $props() destructuring.");continue}let h,c;if(l.value.type==="Identifier")h=l.value.name;else if(l.value.type==="AssignmentPattern"){if(l.value.left.type!=="Identifier"){this.logUnsupportedRunesPattern(`Skipping nested pattern for prop "${u}" in $props() destructuring.`);continue}h=l.value.left.name,c=l.value.right}else{this.logUnsupportedRunesPattern(`Skipping nested pattern for prop "${u}" in $props() destructuring.`);continue}if(!h)continue;if(this.trackPropLocalName(u,h),u==="children")this.snippetPropLocals.add(h);let p=this.processLeadingCommentsJSDoc(l)??(s===1?t:void 0),w=this.getRunesPropTypeMetadata(i.start,u),{init:P,bindable:M}=this.unwrapBindableInitializer(c),b=P==null?{isFunction:!1}:this.processInitializer(P),{value:o,type:L,isFunction:I}=b,j=!!p?.params?.length||p?.returnType!==void 0||p?.type?.includes("=>"),H=w?.type??p?.type??L;if(M)this.reactive_vars.add(u);this.addProp(u,{name:u,kind:"let",description:p?.description,type:H,value:o,params:p?.params,returnType:p?.returnType,isFunction:Boolean(I||j),isFunctionDeclaration:!1,isRequired:P==null&&w?.optional!==!0,constant:!1,reactive:M})}}}inferSlotPropValueFromExpression(r){let i={value:void 0,replace:!1};if(!r||typeof r!=="object"||!("type"in r))return i;if(r.type==="Identifier")i.value=r.name,i.replace=!0;else if(r.type==="Literal")i.value=String(r.value);else if(r.type==="MemberExpression")i.value=this.resolveMemberExpressionType(r);else if((r.type==="ObjectExpression"||r.type==="TemplateLiteral")&&"start"in r&&"end"in r&&typeof r.start==="number"&&typeof r.end==="number")i.value=this.sourceAtPos(r.start,r.end);return i}buildSlotPropsFromObjectExpression(r){let i={};for(let t of r.properties){if(t.type!=="Property"||t.computed)continue;let s=this.getPropertyName(t.key);if(!s)continue;i[s]=this.inferSlotPropValueFromExpression(t.value)}return i}resolveRenderTagPropReference(r){if(!r||typeof r!=="object"||!("type"in r))return null;if(r.type==="Identifier"){let l=r,u=this.propLocalToPublicName.get(l.name);if(!u)return null;return{publicName:u,trackingName:l.name}}if(r.type!=="MemberExpression")return null;let i=r,t=i.object&&typeof i.object==="object"&&"type"in i.object&&i.object.type==="Identifier"?i.object.name:void 0;if(!t||!this.wholePropsLocals.has(t))return null;let s;if(!i.computed&&i.property&&typeof i.property==="object"&&"type"in i.property){if(i.property.type==="Identifier")s=i.property.name;else if(i.property.type==="Literal"&&i.property.value!=null)s=String(i.property.value)}else if(i.computed&&i.property&&typeof i.property==="object"&&"type"in i.property&&i.property.type==="Literal"&&"value"in i.property&&i.property.value!=null)s=String(i.property.value);if(!s)return null;return{publicName:s,trackingName:s}}extractRenderTagInfo(r){let i=r;if(i&&typeof i==="object"&&"type"in i&&i.type==="ChainExpression")i=i.expression;if(!i||typeof i!=="object"||!("type"in i)||i.type!=="CallExpression")return null;let t=i;if(!t.callee||typeof t.callee!=="object"||!("type"in t.callee))return null;let s=this.resolveRenderTagPropReference(t.callee);if(!s)return null;return{...s,arguments:t.arguments}}addProp(r,i){if(St.assignValue(r)===void 0)return;if(this.trackPropLocalName(r),this.props.has(r)){let t=this.props.get(r);this.props.set(r,{...t,...i})}else this.props.set(r,i)}addModuleExport(r,i){if(St.assignValue(r)===void 0)return;if(this.moduleExports.has(r)){let t=this.moduleExports.get(r);this.moduleExports.set(r,{...t,...i})}else this.moduleExports.set(r,i)}aliasType(r){if(r==="*")return"any";return r.trim()}extractPropertyType(r,i){let t=r.trim();if(!t.startsWith("{")||!t.endsWith("}"))return;let s=t.slice(1,-1),l=[],u=0,h="";for(let c of s)if(c==="{"||c==="<"||c==="("||c==="[")u++,h+=c;else if(c==="}"||c===">"||c===")"||c==="]")u--,h+=c;else if((c===";"||c===",")&&u===0)l.push(h.trim()),h="";else h+=c;if(h.trim())l.push(h.trim());for(let c of l){if(!c.startsWith(i))continue;let p=c.slice(i.length);if(p.length>0&&RTr.test(p[0]))continue;let w=p.trimStart();if(w.startsWith("?"))w=w.slice(1).trimStart();if(w.startsWith(":"))return w.slice(1).trim()}return}resolveMemberExpressionType(r){let i=r;if(i.computed||i.object?.type!=="Identifier"||i.property?.type!=="Identifier")return;let t=i.object.name,s=i.property.name;if(!t||!s)return;if(this.wholePropsLocals.has(t))return this.getPropTypeByLocalOrPublic(s);let l=this.getPropTypeByLocalOrPublic(t)??this.findVariableTypeAndDescription(t)?.type;if(!l)return;return this.extractPropertyType(l,s)}addSlot({slot_name:r,slot_props:i,slot_fallback:t,slot_description:s,slot_tags:l}){let u=r===void 0||r==="",h=u?Tlr:r??"",c=St.assignValue(t),p=St.assignValue(i),w=s?.trim()||void 0;if(this.slots.has(h)){let P=this.slots.get(h);if(P)this.slots.set(h,{...P,default:P.default??u,fallback:c,slot_props:P.slot_props===void 0?p:P.slot_props,description:P.description||w,tags:P.tags||l})}else this.slots.set(h,{name:h,default:u,fallback:c,slot_props:i,description:w,tags:l})}addDispatchedEvent({name:r,detail:i,has_argument:t,description:s}){if(r===void 0)return;let l=!t&&!i?"null":St.assignValue(i),u=m5(s);if(this.events.has(r)){let h=this.events.get(r);this.events.set(r,{...h,detail:h.detail===void 0?l:h.detail,description:h.description||u})}else this.events.set(r,{type:"dispatched",name:r,detail:l,description:u})}normalizeRunesCallbackProps(r){if(this.syntaxMode!=="runes")return;for(let[i,t]of Array.from(this.events.entries())){if(t.type!=="dispatched")continue;if(r.has(i)||this.forwardedEvents.has(i))continue;let s=`on${i}`,l=this.props.get(s);if(!l)continue;let u=l.type!==void 0||l.params!==void 0||l.returnType!==void 0,h=t.detail===void 0||t.detail==="undefined"||t.detail==="null"?"() => void":`(detail: ${t.detail}) => void`;this.props.set(s,{...l,description:l.description??t.description,type:u?l.type:h,isFunction:!0}),this.events.delete(i)}}parseCustomTypes(){if(!this.source)return;for(let{tags:r,description:i,source:t}of Yy(this.source,{spacing:"preserve"})){let s,l,u,h=[],c,p,w,P=[],M,b,o=[],L,I=!1,j=!0,H=[],J=new Map,W=new Set;for(let T of r)if(T.source&&T.source.length>0)W.add(T.source[0].number);for(let T of t)if(!T.tokens.tag&&T.tokens.description&&T.tokens.description.trim()!=="}")J.set(T.number,T.tokens.description);let sr=(T)=>{if(!T||T.length===0)return;let V=T[0].number,S=[],k=!1;for(let er=V-1;er>=1;er--){if(W.has(er))break;let tr=J.get(er);if(tr)S.unshift(tr),k=!0;else if(k){let U=t.find((Cr)=>Cr.number===er);if(!(!U||!U.tokens.tag&&(!U.tokens.description||U.tokens.description.trim()==="")))break}}return S.length>0?S.join(`
575
575
  `).trim():void 0},rr=(T)=>{if(!T||T.length===0)return"";let V=[];for(let S of T){let k=S.tokens;if((k.end??"").trim()==="*/")break;if(k.tag){let er=`${k.name}${k.postName}${k.description}`.trimEnd();if(er)V.push(er)}else V.push(`${k.postDelimiter}${k.description}`)}return V.join(`
576
- `)},hr=()=>{if(s!==void 0){let T;if(h.length>0)T=this.buildEventDetailFromProperties(h,s,!0);else T=l||"";this.addDispatchedEvent({name:s,detail:T,has_argument:!1,description:u}),this.eventDescriptions.set(s,u),h.length=0,s=void 0,l=void 0,u=void 0}},vr=()=>{if(c!==void 0){let T,V;if(P.length>0)T=this.buildEventDetailFromProperties(P,void 0,!0),V=`type ${c} = ${T}`;else if(p)T=p,V=MTr.test(T)?`interface ${c} ${T}`:`type ${c} = ${T}`;else T="{}",V=`type ${c} = ${T}`;this.typedefs.set(c,{type:T,name:c,description:St.assignValue(w),ts:V}),P.length=0,c=void 0,p=void 0,w=void 0}},q=()=>{if(M!==void 0){let S=`(${o.map(({name:er,type:tr,optional:U})=>{return`${er}${U?"?":""}: ${tr}`}).join(", ")}) => ${L||"void"}`,k=`type ${M} = ${S}`;this.typedefs.set(M,{type:S,name:M,description:St.assignValue(b),ts:k}),o.length=0,L=void 0,M=void 0,b=void 0}};for(let{tag:T,type:V,name:S,description:k,optional:er,default:tr,source:U}of r){let Z=this.aliasType(V),Cr=sr(U);switch(T){case"extends":case"extendProps":if(this.extends={interface:S,import:Z},j)j=!1;break;case"restProps":{let Pr=S?k?`${S} ${k}`:S:k,jr=th(Pr)||Cr;if(!jr&&j&&!I&&i)jr=i,I=!0;if(this.rest_props={type:"Element",name:Z,description:jr||void 0},j)j=!1;break}case"slot":case"snippet":{let zr=th(k)||Cr;if(!zr&&j&&!I&&i)zr=i,I=!0;if(j)j=!1;this.addSlot({slot_name:S,slot_props:Z,slot_description:zr||void 0,slot_tags:H.length>0?[...H]:void 0}),H.length=0;break}case"event":{if(hr(),s=S,l=Z,u=th(k)||Cr,!u&&j&&!I&&i)u=i,I=!0;if(j)j=!1;break}case"type":if(s!==void 0)l=Z;break;case"param":if(M!==void 0)o.push({name:S,type:Z,optional:er||!1});break;case"returns":case"return":if(M!==void 0)L=Z;break;case"property":{let Pr={name:S,type:Z,description:th(k),optional:er||!1,default:tr};if(s!==void 0)h.push(Pr);else if(c!==void 0)P.push(Pr);break}case"typedef":{if(vr(),c=S,p=Z,w=th(k)||Cr,!w&&j&&!I&&i)w=i,I=!0;if(j)j=!1;break}case"callback":{if(q(),M=S,b=th(k)||Cr,!b&&j&&!I&&i)b=i,I=!0;if(j)j=!1;break}case"generics":if(this.generics=[S,Z],j)j=!1;break;case"template":case"enum":case"class":case"implements":case"this":case"namespace":case"memberof":case"module":case"file":case"overview":break;default:H.push({name:T,body:rr(U)});break}}hr(),vr(),q()}}buildEventDetailFromProperties(r,i,t=!1){if(r.length===0)return"null";let s=r.map(({name:l,type:u,description:h,optional:c,default:p})=>{let w=c?"?":"",P=h||"";if(p&&P)P=`${P} @default ${p}`;else if(p)P=`@default ${p}`;if(P){if(t)return`/** ${P} */
576
+ `)},hr=()=>{if(s!==void 0){let T;if(h.length>0)T=this.buildEventDetailFromProperties(h,s,!0);else T=l||"";this.addDispatchedEvent({name:s,detail:T,has_argument:!1,description:u}),this.eventDescriptions.set(s,u),h.length=0,s=void 0,l=void 0,u=void 0}},vr=()=>{if(c!==void 0){let T,V;if(P.length>0)T=this.buildEventDetailFromProperties(P,void 0,!0),V=`type ${c} = ${T}`;else if(p)T=p,V=MTr.test(T)?`interface ${c} ${T}`:`type ${c} = ${T}`;else T="{}",V=`type ${c} = ${T}`;this.typedefs.set(c,{type:T,name:c,description:St.assignValue(w),ts:V}),P.length=0,c=void 0,p=void 0,w=void 0}},q=()=>{if(M!==void 0){let S=`(${o.map(({name:er,type:tr,optional:U})=>{return`${er}${U?"?":""}: ${tr}`}).join(", ")}) => ${L||"void"}`,k=`type ${M} = ${S}`;this.typedefs.set(M,{type:S,name:M,description:St.assignValue(b),ts:k}),o.length=0,L=void 0,M=void 0,b=void 0}};for(let{tag:T,type:V,name:S,description:k,optional:er,default:tr,source:U}of r){let Z=this.aliasType(V),Cr=sr(U);switch(T){case"extends":case"extendProps":if(this.extends={interface:S,import:Z},j)j=!1;break;case"restProps":{let Pr=S?k?`${S} ${k}`:S:k,zr=th(Pr)||Cr;if(!zr&&j&&!I&&i)zr=i,I=!0;if(this.rest_props={type:"Element",name:Z,description:zr||void 0},j)j=!1;break}case"slot":case"snippet":{let jr=th(k);if(!jr&&j&&!I&&i)jr=i,I=!0;if(!jr&&H.length===0)jr=Cr;if(j)j=!1;this.addSlot({slot_name:S,slot_props:Z,slot_description:jr||void 0,slot_tags:H.length>0?[...H]:void 0}),H.length=0;break}case"event":{if(hr(),s=S,l=Z,u=th(k)||Cr,!u&&j&&!I&&i)u=i,I=!0;if(j)j=!1;break}case"type":if(s!==void 0)l=Z;break;case"param":if(M!==void 0)o.push({name:S,type:Z,optional:er||!1});break;case"returns":case"return":if(M!==void 0)L=Z;break;case"property":{let Pr={name:S,type:Z,description:th(k),optional:er||!1,default:tr};if(s!==void 0)h.push(Pr);else if(c!==void 0)P.push(Pr);break}case"typedef":{if(vr(),c=S,p=Z,w=th(k)||Cr,!w&&j&&!I&&i)w=i,I=!0;if(j)j=!1;break}case"callback":{if(q(),M=S,b=th(k)||Cr,!b&&j&&!I&&i)b=i,I=!0;if(j)j=!1;break}case"generics":if(this.generics=[S,Z],j)j=!1;break;case"template":case"enum":case"class":case"implements":case"this":case"namespace":case"memberof":case"module":case"file":case"overview":break;default:H.push({name:T,body:rr(U)});break}}hr(),vr(),q()}}buildEventDetailFromProperties(r,i,t=!1){if(r.length===0)return"null";let s=r.map(({name:l,type:u,description:h,optional:c,default:p})=>{let w=c?"?":"",P=h||"";if(p&&P)P=`${P} @default ${p}`;else if(p)P=`@default ${p}`;if(P){if(t)return`/** ${P} */
577
577
  ${l}${w}: ${u};`;return`/** ${P} */ ${l}${w}: ${u};`}return`${l}${w}: ${u};`}).join(t?`
578
578
  `:" ");return t?`{
579
579
  ${s}
@@ -582,7 +582,7 @@ Did you specify these with the most recent transformation maps first?`);let l=ys
582
582
  `),w=Yy(p,{spacing:"preserve"}),{type:P,description:M}=this.getCommentTags(w);if(P)this.variableInfoCache.set(l,{type:this.aliasType(P.type),description:M||P.description});break}}}}}static VAR_NAME_REGEX_CACHE=new Map;static getVarNameRegexes(r){let i=St.VAR_NAME_REGEX_CACHE.get(r);if(!i){let t=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");i=[new RegExp(`const\\s+${t}\\s*=`),new RegExp(`let\\s+${t}\\s*=`),new RegExp(`function\\s+${t}\\s*\\(`)],St.VAR_NAME_REGEX_CACHE.set(r,i)}return i}findVariableTypeAndDescription(r){let i=this.getPropByLocalOrPublic(r);if(i?.type)return{type:i.type,description:i.description};let t=this.variableInfoCache.get(r);if(t)return t;if(!this.source)return null;if(!this.sourceLinesCache)this.sourceLinesCache=this.source.split(`
583
583
  `);let s=this.sourceLinesCache,[l,u,h]=St.getVarNameRegexes(r);for(let c=0;c<s.length;c++){let p=s[c].trim(),w=p.match(l),P=p.match(u),M=p.match(h);if(w||P||M)for(let b=c-1;b>=0;b--){let o=s[b].trim();if(o&&!o.startsWith("*")&&!o.startsWith("/*")&&!o.startsWith("//"))break;if(o.startsWith("/**")){let L=[];for(let W=b;W<c;W++)L.push(s[W]);let I=L.join(`
584
584
  `),j=Yy(I,{spacing:"preserve"}),{type:H,description:J}=this.getCommentTags(j);if(H)return{type:this.aliasType(H.type),description:J||H.description};break}}}return null}parseContextValue(r,i){if(!r||typeof r!=="object"||!("type"in r))return null;if(r.type==="ObjectExpression"){let t=[],s=r;for(let l of s.properties)if(l.type==="Property"){let u=l,h=u.key&&"name"in u.key?u.key.name:u.key&&("value"in u.key)?String(u.key.value):void 0;if(!h)continue;let c="any",p;if(u.value&&typeof u.value==="object"&&"type"in u.value){if(u.value.type==="Identifier"){let w=u.value.name,P=this.findVariableTypeAndDescription(w);if(P)c=P.type,p=P.description;else if(this.options?.verbose)console.warn(`Warning: Context "${i}" property "${h}" has no type annotation. Using "any".`)}else if(u.value.type==="ArrowFunctionExpression"||u.value.type==="FunctionExpression")c=`(${u.value.params?.map((M)=>{if(M&&typeof M==="object"&&"name"in M)return`${M.name||"arg"}: any`;return"arg: any"}).join(", ")||""}) => any`;else if(u.value.type==="Literal"){let w=u.value;c=w.value==null?"null":typeof w.value}}t.push({name:h,type:c,description:p,optional:!1})}return{key:i,typeName:this.generateContextTypeName(i),properties:t,description:void 0}}else if(r.type==="Identifier"){let s=r.name,l=this.findVariableTypeAndDescription(s);if(l)return{key:i,typeName:this.generateContextTypeName(i),properties:[{name:s,type:l.type,description:l.description,optional:!1}]};else if(this.options?.verbose)console.warn(`Warning: Context "${i}" variable "${s}" has no type annotation. Using "any".`);return{key:i,typeName:this.generateContextTypeName(i),properties:[{name:s,type:"any",description:void 0,optional:!1}]}}return null}parseSetContextCall(r,i){if(!r||typeof r!=="object"||!("type"in r)||r.type!=="CallExpression")return;let t=r,s=t.arguments[0];if(!s)return;let l=null;if(s.type==="Literal"){let c=s;l=typeof c.value==="string"?c.value:String(c.value)}else if(s.type==="TemplateLiteral"){if(s.quasis?.length===1){let c=s.quasis[0].value.cooked;l=c==null?null:c}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: ${s.type})`);if(!l)return;let u=t.arguments[1];if(!u)return;let h=this.parseContextValue(u,l);if(h)if(this.contexts.has(l)){if(this.options?.verbose)console.warn(`Warning: Multiple setContext calls with key "${l}". Using first occurrence.`)}else this.contexts.set(l,h)}cleanup(){this.syntaxMode="legacy",this.source=void 0,this.compiled=void 0,this.parsed=void 0,this.rest_props=void 0,this.extends=void 0,this.componentComment=void 0,this.reactive_vars.clear(),this.props.clear(),this.moduleExports.clear(),this.slots.clear(),this.events.clear(),this.eventDescriptions.clear(),this.forwardedEvents.clear(),this.typedefs.clear(),this.generics=null,this.bindings.clear(),this.contexts.clear(),this.variableInfoCache.clear(),this.propLocalToPublicName.clear(),this.restPropLocals.clear(),this.wholePropsLocals.clear(),this.snippetPropLocals.clear(),this.runesPropsDeclarationMetadataByDeclaratorStart.clear(),this.explicitPropTypesByName.clear(),this.typeImportBindingsByLocalName.clear(),this.localTypeDeclarationsByName.clear(),this.typedRunesPropsDeclarations.length=0,this.componentScope.clear(),this.scopeDeclarations=new WeakMap,this.activeScopes.length=0,this.sourceLinesCache=void 0}static SCRIPT_BLOCK_REGEX=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi;static TS_DIRECTIVE_REGEX=/\/\/\s*@ts-[^\n\r]*/g;static stripTypeScriptDirectivesFromScripts(r){return St.SCRIPT_BLOCK_REGEX.lastIndex=0,r.replace(St.SCRIPT_BLOCK_REGEX,(i,t,s,l)=>{St.TS_DIRECTIVE_REGEX.lastIndex=0;let u=s.replace(St.TS_DIRECTIVE_REGEX,"");return t+u+l})}parseSvelteComponent(r,i){if(this.options?.verbose)console.log(`[parsing] "${i.moduleName}" ${i.filePath}`);this.cleanup();let t=St.stripTypeScriptDirectivesFromScripts(r);this.source=t,this.buildRunesPropTypeMetadata();let s=$lr(t,{generate:!1,modernAst:!1});if(this.compiled=s,this.syntaxMode=s.metadata.runes?"runes":"legacy",this.parsed=s.ast||rp(t,{modern:!1}),this.sourceLinesCache=this.source.split(`
585
- `),this.buildVariableInfoCache(),this.parseCustomTypes(),this.parsed?.module)ed(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 J,W,sr,rr=!1,hr,vr,q,T=!1,V,S;if(H.declaration.type==="FunctionDeclaration"){let er=H.declaration;if(!er.id?.name)return;J=er.id.name,W="function",hr=void 0,vr="() => any",T=!0,rr=!0}else if(H.declaration.type==="VariableDeclaration"){let er=H.declaration,tr=er.declarations[0];if(!tr||typeof tr!=="object"||!("id"in tr))return;let{id:U,init:Z}=tr;if(!U||typeof U!=="object"||!("name"in U))return;let Cr=U.name;J=Cr,W=Slr(er.kind),{value:hr,type:vr,isFunction:T}=Z==null?{isFunction:!1}:this.processInitializer(Z),q=this.getExplicitPropType(Cr),vr=q??vr}else return;let k=this.processNodeJSDoc(H);if(k){if(k.type&&q===void 0)vr=k.type;if(V=k.params,S=k.returnType,k.description)sr=k.description}if(rr&&vr==="() => any"&&S)if(V&&V.length>0)vr=`(${V.map((U)=>{let Z=U.optional?"?":"";return`${U.name}${Z}: ${U.type}`}).join(", ")}) => ${S}`;else vr=`() => ${S}`;if(!sr&&vr&&this.typedefs.has(vr))sr=this.typedefs.get(vr)?.description;this.addModuleExport(J,{name:J,kind:W,description:sr,type:vr,value:hr,params:V,returnType:S,isFunction:T,isFunctionDeclaration:rr,isRequired:!1,constant:W==="const",reactive:!1})}}});let l,u=[],h={type:"ComponentRoot",instance:this.parsed.instance,html:this.parsed.html};if(this.buildScopeDeclarations(h),this.activeScopes.push(this.componentScope),ed(h,{enter:(H,J,W)=>{let sr=this.scopeDeclarations.get(H);if(sr)this.activeScopes.push(sr);if(H.type==="AssignmentExpression")this.markReactivePropsFromMutationTarget(H.left);if(H.type==="UpdateExpression")this.markReactivePropsFromMutationTarget(H.argument);if(H.type==="CallExpression"){let rr=H,hr=rr.callee&&typeof rr.callee==="object"&&"name"in rr.callee?rr.callee.name:void 0;if(hr==="createEventDispatcher"){if(J&&typeof J==="object"&&"id"in J&&J.id&&typeof J.id==="object"&&"name"in J.id)l=J.id.name}if(hr==="setContext")this.parseSetContextCall(H,J??void 0);if(hr)u.push({name:hr,arguments:rr.arguments})}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="Spread"){let rr=H;if(rr.expression?.name==="$$restProps"||this.restPropLocals.has(rr.expression?.name??""))this.maybeSetRestProps(J)}if(H.type==="VariableDeclaration"){if(this.vars.add(H),J&&typeof J==="object"&&"type"in J&&J.type==="Program"&&H.declarations.some((rr)=>this.isCallExpressionNamed(rr.init,"$props")))this.parseRunesPropsDeclaration(H)}if(H.type==="ExportNamedDeclaration"){if(H.declaration==null&&H.specifiers.length===0)return;let rr;if(H.declaration==null&&H.specifiers[0]?.type==="ExportSpecifier"){let Cr=H.specifiers[0],Pr=Cr.local&&typeof Cr.local==="object"&&"name"in Cr.local?Cr.local.name:void 0,zr=Cr.exported&&typeof Cr.exported==="object"&&"name"in Cr.exported?Cr.exported.name:void 0;if(!Pr||!zr)return;let jr;for(let ri of Array.from(this.vars))if(ri.declarations.some(($i)=>$i.id&&typeof $i.id==="object"&&("type"in $i.id)&&$i.id.type==="Identifier"&&$i.id.name===Pr)){jr=ri;break}H.declaration=jr,rr=zr}if(H.declaration==null)return;if(!H.declaration||typeof H.declaration!=="object"||!("type"in H.declaration))return;let hr,vr,q=!1,T,V,S,k=!1,er,tr,U=!1;if(H.declaration.type==="FunctionDeclaration"){let Cr=H.declaration;if(!Cr.id?.name)return;rr??=Cr.id.name,hr="function",T=void 0,V="() => any",k=!0,q=!0,U=!1}else if(H.declaration.type==="VariableDeclaration"){let Cr=H.declaration,Pr=Cr.declarations[0];if(!Pr||typeof Pr!=="object"||!("id"in Pr))return;let{id:zr,init:jr}=Pr;if(zr&&typeof zr==="object"&&"name"in zr){let $i=zr.name;rr??=$i,S=this.getExplicitPropType($i)}else return;hr=Slr(Cr.kind),U=hr==="let"&&jr==null,{value:T,type:V,isFunction:k}=jr==null?{isFunction:!1}:this.processInitializer(jr),V=S??V}else return;let Z=this.processNodeJSDoc(H);if(Z){if(Z.type&&S===void 0)V=Z.type;if(er=Z.params,tr=Z.returnType,Z.description)vr=Z.description}if(q&&V==="() => any"&&tr)if(er&&er.length>0)V=`(${er.map((zr)=>{let jr=zr.optional?"?":"";return`${zr.name}${jr}: ${zr.type}`}).join(", ")}) => ${tr}`;else V=`() => ${tr}`;if(!vr&&V&&this.typedefs.has(V))vr=this.typedefs.get(V)?.description;this.addProp(rr,{name:rr,kind:hr,description:vr,type:V,value:T,params:er,returnType:tr,isFunction:k,isFunctionDeclaration:q,isRequired:U,constant:hr==="const",reactive:this.reactive_vars.has(rr)})}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="Comment"){let hr=H?.data?.trim()??"";if(Olr.test(hr))this.componentComment=hr.replace(Olr,"").replace(TTr,"")}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="Slot"){let rr=H,hr=rr.attributes?.find((T)=>T.name==="name")?.value?.[0]?.data,vr=(rr.attributes||[]).filter((T)=>T.name!=="name").reduce((T,V)=>{let S={value:void 0,replace:!1},k=V.value;if(k===void 0)return T;if(k[0]){let er=k[0],{type:tr,expression:U,raw:Z,start:Cr,end:Pr}=er;if(tr==="Text"&&Z!==void 0)S.value=Z;else if(tr==="AttributeShorthand"&&U&&typeof U==="object"&&"name"in U)S.value=U.name,S.replace=!0;if(U&&typeof U==="object"&&"type"in U){if(U.type==="Literal"&&"value"in U)S.value=String(U.value);else if(U.type==="MemberExpression")S.value=this.resolveMemberExpressionType(U);else if(U.type!=="Identifier"){if(Cr!==void 0&&Pr!==void 0){if(U.type==="ObjectExpression"||U.type==="TemplateLiteral")S.value=this.sourceAtPos(Cr+1,Pr-1)}}}}if(V.name)T[V.name]=S;return T},{}),q=rr.children?.map(({start:T,end:V})=>{if(T===void 0||V===void 0)return"";return this.sourceAtPos(T,V)??""}).join("").trim();this.addSlot({slot_name:hr,slot_props:JSON.stringify(vr,null,2),slot_fallback:q})}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="RenderTag"){let rr=H,hr=this.extractRenderTagInfo(rr.expression);if(hr){let vr;if(hr.arguments.length===0)vr=JSON.stringify({},null,2);else if(hr.arguments.length===1&&typeof hr.arguments[0]==="object"&&hr.arguments[0]&&"type"in hr.arguments[0]&&hr.arguments[0].type==="ObjectExpression")vr=JSON.stringify(this.buildSlotPropsFromObjectExpression(hr.arguments[0]),null,2);else this.logUnsupportedRunesPattern(`Skipping unsupported {@render ...} argument for snippet prop "${hr.publicName}".`);let q=hr.publicName==="children"?void 0:hr.publicName,T=q===void 0?Tlr:q;if(vr!==void 0)this.addSlot({slot_name:q,slot_props:vr});if(vr!==void 0||this.slots.has(T))this.snippetPropLocals.add(hr.trackingName)}}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="EventHandler"){let rr=H;if(rr.expression==null&&rr.name){if(J!=null&&typeof J==="object"&&"name"in J){let hr=typeof J.name==="string"?J.name:void 0,vr="type"in J?String(J.type):void 0;if(hr&&vr){let q=vr==="InlineComponent"?{type:"InlineComponent",name:hr}:{type:"Element",name:hr};this.forwardedEvents.set(rr.name,q);let T=this.events.get(rr.name),V=this.eventDescriptions.get(rr.name),S=m5(V);if(!T)this.events.set(rr.name,{type:"forwarded",name:rr.name,element:q,description:S});else if(T.type==="forwarded"&&S&&!T.description)this.events.set(rr.name,{...T,description:S})}}}}if(J&&typeof J==="object"&&"type"in J&&(String(J.type)==="Element"||String(J.type)==="InlineComponent")&&H&&typeof H==="object"&&"type"in H&&String(H.type)==="Binding"){let rr=H;if(rr.expression?.name){let hr=this.resolveIdentifierToReactiveProp(rr.expression.name);if(hr)this.reactive_vars.add(hr)}if(String(J.type)==="Element"&&rr.name==="this"&&rr.expression?.name&&"name"in J&&typeof J.name==="string"){let hr=this.resolveIdentifierToReactiveProp(rr.expression.name);if(!hr)return;let vr=J.name;if(this.bindings.has(hr)){let q=this.bindings.get(hr);if(q&&!q.elements.includes(vr))this.bindings.set(hr,{...q,elements:[...q.elements,vr]})}else this.bindings.set(hr,{elements:[vr]})}}},leave:(H)=>{if(this.scopeDeclarations.has(H))this.activeScopes.pop()}}),l!==void 0){for(let H of u)if(H.name===l){let J=H.arguments[0],W=J&&typeof J==="object"&&"value"in J?J.value:void 0,sr=H.arguments[1],rr=sr&&typeof sr==="object"&&"value"in sr?sr.value:void 0;if(W!=null)this.addDispatchedEvent({name:String(W),detail:rr==null?"":String(rr),has_argument:Boolean(sr)})}}let c=new Set;if(l!==void 0){for(let H of u)if(H.name===l){let J=H.arguments[0],W=J&&typeof J==="object"&&"value"in J?J.value:void 0;if(W!=null)c.add(String(W))}}this.forwardedEvents.forEach((H,J)=>{let W=this.events.get(J);if(W&&W.type==="dispatched"&&!c.has(J)){let sr=this.eventDescriptions.get(J),rr=m5(sr),hr={type:"forwarded",name:J,element:H,description:rr};if(W.detail!==void 0&&W.detail!=="undefined")hr.detail=W.detail;this.events.set(J,hr)}}),this.normalizeRunesCallbackProps(c);let p=this.syntaxMode==="runes"?new Set(Array.from(this.snippetPropLocals,(H)=>this.resolvePublicPropName(H))):new Set,w=St.mapToArray(this.props).filter((H)=>!p.has(H.name)).map((H)=>{if(this.bindings.has(H.name)){let J=this.bindings.get(H.name)?.elements.sort().map((W)=>Mlr(W)).join(" | ");return{...H,type:`null | ${J}`,reactive:H.reactive||this.reactive_vars.has(H.name)}}return{...H,reactive:H.reactive||this.reactive_vars.has(H.name)}});this.activeScopes.length=0;let P=St.mapToArray(this.slots).map((H)=>{try{if(!H.slot_props)return H;let J=JSON.parse(H.slot_props),W=[];for(let rr of Object.keys(J)){if(J[rr].replace&&J[rr].value!==void 0)J[rr].value=this.getPropTypeByLocalOrPublic(J[rr].value);if(J[rr].value===void 0)J[rr].value="any";W.push(`${rr}: ${J[rr].value}`)}let sr=W.length===0?"Record<string, never>":`{ ${W.join(", ")} }`;return{...H,slot_props:sr}}catch(J){return H}}).sort((H,J)=>{let W=H.name??"",sr=J.name??"";if(W<sr)return-1;if(W>sr)return 1;return 0}),M=St.mapToArray(this.moduleExports),b=St.mapToArray(this.events).map((H)=>{if(H.type==="forwarded")return{...H,element:H.element.name};return H}).sort((H,J)=>{let W=H.name.localeCompare(J.name);if(W!==0)return W;let sr=H.type.localeCompare(J.type);if(sr!==0)return sr;if(H.type==="forwarded"&&J.type==="forwarded"){let rr=H.element.localeCompare(J.element);if(rr!==0)return rr}return(H.detail??"").localeCompare(J.detail??"")}),o=St.mapToArray(this.typedefs),L=St.mapToArray(this.contexts),I={props:w,moduleExports:M,slots:P,events:b,typedefs:o,generics:this.generics,rest_props:this.rest_props,extends:this.extends,componentComment:this.componentComment,contexts:L},j=this.buildTypeScriptMetadata();if(j)I[Llr]=j;return I}}var Xur=Sa(Blr(),1),Dur=Sa(jlr(),1),kur=Sa(Zlr(),1),_ur=Sa(Pur(),1);import L5,{dirname as V5,resolve as U1,extname as QLr,normalize as JLr,sep as YLr}from"path";import j1,{realpathSync as WLr}from"fs";import{promisify as z1}from"util";import{pathToFileURL as l2,fileURLToPath as Wur}from"url";var Jur=Sa(zur(),1);import{extname as lvi,sep as Qur,resolve as BLr,posix as HLr}from"path";function ULr(r){return Array.isArray(r)}function Zur(r){if(ULr(r))return r;if(r==null)return[];return[r]}function NLr(r,i){if(i===!1)return r;let t=BLr(i||"").split(Qur).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return HLr.join(t,r)}var Yur=function(i,t,s){let l=s&&s.resolve,u=(p)=>p instanceof RegExp?p:{test:(w)=>{let P=NLr(p,l);return Jur.default(P,{dot:!0})(w)}},h=Zur(i).map(u),c=Zur(t).map(u);return function(w){if(typeof w!=="string")return!1;if(/\0/.test(w))return!1;let P=w.split(Qur).join("/");for(let M=0;M<c.length;++M)if(c[M].test(P))return!1;for(let M=0;M<h.length;++M)if(h[M].test(P))return!0;return!h.length}},jLr="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",zLr="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",ZLr=new Set(`${jLr} ${zLr}`.split(" "));ZLr.add("");var GLr="13.3.0";z1(j1.access);var xur=z1(j1.readFile),rfr=z1(j1.realpath),I5=z1(j1.stat);async function u2(r){try{return(await I5(r)).isFile()}catch{return!1}}async function E5(r){return await u2(r)?rfr(r):r}var ifr=(r)=>{if(r.code==="ENOENT")return!1;throw r},F5=(r)=>{let i=new Map,t=async(s,l)=>{if(i.has(s)===!1)i.set(s,r(s).catch((u)=>{throw i.delete(s),u}));try{let h=await i.get(s);return l(null,h)}catch(u){return l(u)}};return t.clear=()=>i.clear(),t},B5=F5(async(r)=>{try{return(await I5(r)).isDirectory()}catch(i){return ifr(i)}}),H5=F5(async(r)=>{try{return(await I5(r)).isFile()}catch(i){return ifr(i)}}),U5=F5(xur);function KLr(r){let i=[];if(r.customResolveOptions){let{customResolveOptions:t}=r;if(t.moduleDirectory)r.moduleDirectories=Array.isArray(t.moduleDirectory)?t.moduleDirectory:[t.moduleDirectory],i.push("node-resolve: The `customResolveOptions.moduleDirectory` option has been deprecated. Use `moduleDirectories`, which must be an array.");if(t.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((s)=>{if(t[s])throw Error(`node-resolve: \`customResolveOptions.${s}\` is no longer an option. If you need this, please open an issue.`)})}return{warnings:i}}function tfr(r){if(r.startsWith(".")||r.startsWith("/"))return null;let i=r.split("/");if(i[0][0]==="@")return`${i[0]}/${i[1]}`;return i[0]}function XLr(r){let i;if(r.mainFields)({mainFields:i}=r);else i=["module","main"];if(r.browser&&i.indexOf("browser")===-1)return["browser"].concat(i);if(!i.length)throw Error("Please ensure at least one `mainFields` value is specified");return i}function efr(r){let{cache:i,extensions:t,pkg:s,mainFields:l,preserveSymlinks:u,useBrowserOverrides:h,rootDir:c,ignoreSideEffectsForRoot:p}=r,{pkgPath:w}=r;if(i.has(w))return i.get(w);if(!u)w=WLr(w);let P=V5(w),M={packageJson:{...s},packageJsonPath:w,root:P,resolvedMainField:"main",browserMappedMain:!1,resolvedEntryPoint:""},b=!1;for(let I=0;I<l.length;I++){let j=l[I];if(typeof s[j]==="string"){s.main=s[j],M.resolvedMainField=j,b=!0;break}}let o={cachedPkg:s,hasModuleSideEffects:()=>null,hasPackageEntry:b!==!1||l.indexOf("main")!==-1,packageBrowserField:h&&typeof s.browser==="object"&&Object.keys(s.browser).reduce((I,j)=>{let H=s.browser[j];if(H&&H[0]===".")H=U1(P,H);if(I[j]=H,j[0]==="."){let J=U1(P,j);if(I[J]=H,!QLr(j))t.reduce((W,sr)=>{return W[J+sr]=W[j],W},I)}return I},{}),packageInfo:M},L=o.packageBrowserField;if(h&&typeof s.browser==="object"&&L.hasOwnProperty(s.main))M.resolvedEntryPoint=L[s.main],M.browserMappedMain=!0;else M.resolvedEntryPoint=U1(P,s.main||"index.js"),M.browserMappedMain=!1;if(!p||c!==P){let I=s.sideEffects;if(typeof I==="boolean")o.hasModuleSideEffects=()=>I;else if(Array.isArray(I)){let j=I.map((H)=>{if(H.includes("/"))return H;return`**/${H}`});o.hasModuleSideEffects=Yur(j,null,{resolve:P})}}return i.set(w,o),o}function DLr(r){if(Array.isArray(r))return r;else if(typeof r==="object")return Object.values(r);return[r]}function kLr(r,i){return i.some((t)=>r.endsWith(t))}async function sfr(r,i){let{root:t}=L5.parse(r),s=r;while(s!==t&&!kLr(s,i)){let l=L5.join(s,"package.json");if(await u2(l)){let u=j1.readFileSync(l,"utf-8");return{pkgJson:JSON.parse(u),pkgPath:s,pkgJsonPath:l}}s=L5.resolve(s,"..")}return null}function _Lr(r){try{return!!new URL(r)}catch(i){return!1}}function afr(r){return typeof r==="object"&&Object.keys(r).every((i)=>!i.startsWith("."))}function Gur(r){return typeof r==="object"&&!afr(r)}function xLr(r){let i=Object.keys(r);return i.some((t)=>t.startsWith("."))&&i.some((t)=>!t.startsWith("."))}function lfr(r,i){return`Could not resolve import "${r}" in ${i}`}function N5(r,i,t){let{importSpecifier:s,importer:l,pkgJsonPath:u}=r;return`${lfr(s,l)} using ${t?"imports":"exports"} defined in ${u}.${i?` ${i}`:""}`}class np extends Error{}class ufr extends np{constructor(r,i){super(N5(r,`Invalid "exports" field. ${i}`))}}class ah extends np{constructor(r,i,t){super(N5(r,t,i))}}class H1 extends np{constructor(r,i){super(N5(r,i))}}function Kur(r,i){return r.split("/").slice(1).some((t)=>[".","..",...i].includes(t))}async function N1(r,{target:i,subpath:t,pattern:s,internal:l}){if(typeof i==="string"){if(!s&&t.length>0&&!i.endsWith("/"))throw new ah(r);if(!i.startsWith("./")){if(l&&!["/","../"].some((h)=>i.startsWith(h))&&!_Lr(i)){if(s){let c=await r.resolveId(i.replace(/\*/g,t),r.pkgURL.href);return c?l2(c.location).href:null}let h=await r.resolveId(`${i}${t}`,r.pkgURL.href);return h?l2(h.location).href:null}throw new H1(r,`Invalid mapping: "${i}".`)}if(Kur(i,r.moduleDirs))throw new H1(r,`Invalid mapping: "${i}".`);let u=new URL(i,r.pkgURL);if(!u.href.startsWith(r.pkgURL.href))throw new H1(r,`Resolved to ${u.href} which is outside package ${r.pkgURL.href}`);if(Kur(t,r.moduleDirs))throw new ah(r);if(s)return u.href.replace(/\*/g,t);return new URL(t,u).href}if(Array.isArray(i)){let u;for(let h of i)try{let c=await N1(r,{target:h,subpath:t,pattern:s,internal:l});if(c!==void 0)return c}catch(c){if(!(c instanceof H1))throw c;else u=c}if(u)throw u;return null}if(i&&typeof i==="object"){for(let[u,h]of Object.entries(i))if(u==="default"||r.conditions.includes(u)){let c=await N1(r,{target:h,subpath:t,pattern:s,internal:l});if(c!==void 0)return c}return}if(i===null)return null;throw new H1(r,"Invalid exports field.")}async function ffr(r,{matchKey:i,matchObj:t,internal:s}){if(!i.endsWith("*")&&i in t){let u=t[i];return await N1(r,{target:u,subpath:"",internal:s})}let l=Object.keys(t).filter((u)=>u.endsWith("/")||u.endsWith("*")).sort((u,h)=>h.length-u.length);for(let u of l){let h=u.substring(0,u.length-1);if(u.endsWith("*")&&i.startsWith(h)){let c=t[u],p=i.substring(u.length-1);return await N1(r,{target:c,subpath:p,pattern:!0,internal:s})}if(i.startsWith(u)){let c=t[u],p=i.substring(u.length);return await N1(r,{target:c,subpath:p,internal:s})}}throw new ah(r,s)}async function rEr(r,i,t){if(xLr(t))throw new ufr(r,"All keys must either start with ./, or without one.");if(i==="."){let s;if(typeof t==="string"||Array.isArray(t)||afr(t))s=t;else if(Gur(t))s=t["."];if(s){let l=await N1(r,{target:s,subpath:""});if(l)return l}}else if(Gur(t)){let s=await ffr(r,{matchKey:i,matchObj:t});if(s)return s}throw new ah(r)}async function iEr({importSpecifier:r,importer:i,moduleDirs:t,conditions:s,resolveId:l}){let u=await sfr(i,t);if(!u)throw Error(lfr(". Could not find a parent package.json."));let{pkgPath:h,pkgJsonPath:c,pkgJson:p}=u,w=l2(`${h}/`),P={importer:i,importSpecifier:r,moduleDirs:t,pkgURL:w,pkgJsonPath:c,conditions:s,resolveId:l},{imports:M}=p;if(!M)throw new ah(P,!0);if(r==="#"||r.startsWith("#/"))throw new ah(P,!0,"Invalid import specifier.");return ffr(P,{matchKey:r,matchObj:M,internal:!0})}var hfr=z1(_ur.default),tEr=z1(j1.readFile);async function eEr(r,i,t,s){if(r){let l=await sfr(r,s);if(l&&l.pkgJson.name===i)return l}try{let l=await hfr(`${i}/package.json`,t),u=JSON.parse(await tEr(l,"utf-8"));return{pkgJsonPath:l,pkgJson:u,pkgPath:V5(l)}}catch(l){return null}}async function nfr({importSpecifier:r,packageInfoCache:i,extensions:t,mainFields:s,preserveSymlinks:l,useBrowserOverrides:u,baseDir:h,moduleDirectories:c,rootDir:p,ignoreSideEffectsForRoot:w}){let P=()=>null,M=!0,b=!1,o,I={basedir:h,readFile:U5,isFile:H5,isDirectory:B5,extensions:t,includeCoreModules:!1,moduleDirectory:c,preserveSymlinks:l,packageFilter:(H,J)=>{let W=efr({cache:i,extensions:t,pkg:H,pkgPath:J,mainFields:s,preserveSymlinks:l,useBrowserOverrides:u,rootDir:p,ignoreSideEffectsForRoot:w});return{packageInfo:o,hasModuleSideEffects:P,hasPackageEntry:M,packageBrowserField:b}=W,W.cachedPkg}},j;try{j=await hfr(r,I)}catch(H){if(H.code!=="MODULE_NOT_FOUND")throw H;return null}return{location:l?j:await E5(j),hasModuleSideEffects:P,hasPackageEntry:M,packageBrowserField:b,packageInfo:o}}async function sEr({importer:r,importSpecifier:i,exportConditions:t,packageInfoCache:s,extensions:l,mainFields:u,preserveSymlinks:h,useBrowserOverrides:c,baseDir:p,moduleDirectories:w,rootDir:P,ignoreSideEffectsForRoot:M}){if(i.startsWith("#")){let o=await iEr({importSpecifier:i,importer:r,moduleDirs:w,conditions:t,resolveId(I){return nfr({importSpecifier:I,packageInfoCache:s,extensions:l,mainFields:u,preserveSymlinks:h,useBrowserOverrides:c,baseDir:p,moduleDirectories:w})}}),L=Wur(o);return{location:h?L:await E5(L),hasModuleSideEffects:()=>null,hasPackageEntry:!0,packageBrowserField:!1,packageInfo:void 0}}let b=tfr(i);if(b){let o=()=>null,L=!0,I=!1,j,W=await eEr(r,b,{basedir:p,readFile:U5,isFile:H5,isDirectory:B5,extensions:l,includeCoreModules:!1,moduleDirectory:w,preserveSymlinks:h,packageFilter:(sr,rr)=>{let hr=efr({cache:s,extensions:l,pkg:sr,pkgPath:rr,mainFields:u,preserveSymlinks:h,useBrowserOverrides:c,rootDir:P,ignoreSideEffectsForRoot:M});return{packageInfo:j,hasModuleSideEffects:o,hasPackageEntry:L,packageBrowserField:I}=hr,hr.cachedPkg}},w);if(W&&W.pkgJson.exports){let{pkgJson:sr,pkgJsonPath:rr}=W,hr=b===i?".":`.${i.substring(b.length)}`,vr=rr.replace("package.json",""),q=l2(vr),V=await rEr({importer:r,importSpecifier:i,moduleDirs:w,pkgURL:q,pkgJsonPath:rr,conditions:t},hr,sr.exports),S=Wur(V);if(S)return{location:h?S:await E5(S),hasModuleSideEffects:o,hasPackageEntry:L,packageBrowserField:I,packageInfo:j}}}return null}async function aEr({importer:r,importSpecifierList:i,exportConditions:t,warn:s,packageInfoCache:l,extensions:u,mainFields:h,preserveSymlinks:c,useBrowserOverrides:p,baseDir:w,moduleDirectories:P,rootDir:M,ignoreSideEffectsForRoot:b}){for(let o=0;o<i.length;o++){let L=await nfr({importer:r,importSpecifier:i[o],exportConditions:t,warn:s,packageInfoCache:l,extensions:u,mainFields:h,preserveSymlinks:c,useBrowserOverrides:p,baseDir:w,moduleDirectories:P,rootDir:M,ignoreSideEffectsForRoot:b});if(L)return L}return null}async function lEr({importer:r,importSpecifierList:i,exportConditions:t,warn:s,packageInfoCache:l,extensions:u,mainFields:h,preserveSymlinks:c,useBrowserOverrides:p,baseDir:w,moduleDirectories:P,rootDir:M,ignoreSideEffectsForRoot:b}){try{let o=await sEr({importer:r,importSpecifier:i[0],exportConditions:t,packageInfoCache:l,extensions:u,mainFields:h,preserveSymlinks:c,useBrowserOverrides:p,baseDir:w,moduleDirectories:P,rootDir:M,ignoreSideEffectsForRoot:b});if(o)return o}catch(o){if(o instanceof np)return s(o),null;throw o}return aEr({importer:r,importSpecifierList:i,exportConditions:t,warn:s,packageInfoCache:l,extensions:u,mainFields:h,preserveSymlinks:c,useBrowserOverrides:p,baseDir:w,moduleDirectories:P,rootDir:M,ignoreSideEffectsForRoot:b})}var a2="\x00node-resolve:empty.js",cfr=(r)=>{Object.freeze(r);for(let i of Object.values(r))if(typeof i==="object"&&!Object.isFrozen(i))cfr(i);return r},yfr=["default","module"],uEr=[...yfr,"import"],fEr=[...yfr,"require"],vfr={dedupe:[],extensions:[".mjs",".js",".json",".node"],resolveOnly:[],moduleDirectories:["node_modules"],ignoreSideEffectsForRoot:!1},vvi=cfr(Dur.default({},vfr));function pfr(r={}){let{warnings:i}=KLr(r),t={...vfr,...r},{extensions:s,jail:l,moduleDirectories:u,ignoreSideEffectsForRoot:h}=t,c=[...uEr,...t.exportConditions||[]],p=[...fEr,...t.exportConditions||[]],w=new Map,P=new Map,M=XLr(t),b=M.indexOf("browser")!==-1,o=t.preferBuiltins===!0||t.preferBuiltins===!1,L=o?t.preferBuiltins:!0,I=U1(t.rootDir||process.cwd()),{dedupe:j}=t,H;if(typeof j!=="function")j=(vr)=>t.dedupe.includes(vr)||t.dedupe.includes(tfr(vr));let J=(vr)=>{let q=vr.map((T)=>{if(T instanceof RegExp)return T;let V=T.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(`^${V}$`)});return(T)=>!q.length||q.some((V)=>V.test(T))},W=typeof t.resolveOnly==="function"?t.resolveOnly:J(t.resolveOnly),sr=new Map,rr,hr=async(vr,q,T,V)=>{let[S,k]=q.split("?"),er=`${k?`?${k}`:""}`;q=S;let tr=!T||j(q)?I:V5(T),U=sr.get(T);if(b&&U){let pr=U1(tr,q);if(U[q]===!1||U[pr]===!1)return{id:a2};let Er=q[0]!=="."&&U[q]||U[pr]||U[`${pr}.js`]||U[`${pr}.json`];if(Er)q=Er}let Z=q.split(/[/\\]/),Cr=Z.shift(),Pr=!1;if(Cr[0]==="@"&&Z.length>0)Cr+=`/${Z.shift()}`;else if(Cr[0]===".")Cr=U1(tr,q),Pr=!0;if(!Pr&&!W(Cr)){if(DLr(H.input).includes(q))return null;return!1}let zr=[q];if(T===void 0&&!q[0].match(/^\.?\.?\//))zr.push(`./${q}`);if(T&&q.endsWith(".js")){for(let pr of[".ts",".tsx"])if(T.endsWith(pr)&&s.includes(pr))zr.push(q.replace(/.js$/,pr))}let jr=(...pr)=>vr.warn(...pr),$i=V&&V["node-resolve"]&&V["node-resolve"].isRequire?p:c;if(b&&!$i.includes("browser"))$i.push("browser");let ji=await lEr({importer:T,importSpecifierList:zr,exportConditions:$i,warn:jr,packageInfoCache:w,extensions:s,mainFields:M,preserveSymlinks:rr,useBrowserOverrides:b,baseDir:tr,moduleDirectories:u,rootDir:I,ignoreSideEffectsForRoot:h}),zi=Xur.default(q),Yr=zi&&L?{packageInfo:void 0,hasModuleSideEffects:()=>null,hasPackageEntry:!0,packageBrowserField:!1}:ji;if(!Yr)return null;let{packageInfo:Vr,hasModuleSideEffects:lt,hasPackageEntry:Jr,packageBrowserField:dr}=Yr,{location:Ar}=Yr;if(dr){if(Object.prototype.hasOwnProperty.call(dr,Ar)){if(!dr[Ar])return sr.set(Ar,dr),{id:a2};Ar=dr[Ar]}sr.set(Ar,dr)}if(Jr&&!rr){if(await u2(Ar))Ar=await rfr(Ar)}if(P.set(Ar,Vr),Jr){if(zi&&L){if(!o&&ji&&Yr!==q)vr.warn(`preferring built-in module '${q}' over local alternative at '${ji.location}', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning`);return!1}else if(l&&Ar.indexOf(JLr(l.trim(YLr)))!==0)return null}if(t.modulesOnly&&await u2(Ar)){let pr=await xur(Ar,"utf-8");if(kur.default(pr))return{id:`${Ar}${er}`,moduleSideEffects:lt(Ar)};return null}return{id:`${Ar}${er}`,moduleSideEffects:lt(Ar)}};return{name:"node-resolve",version:GLr,buildStart(vr){H=vr;for(let q of i)this.warn(q);({preserveSymlinks:rr}=vr)},generateBundle(){U5.clear(),H5.clear(),B5.clear()},async resolveId(vr,q,T){if(vr===a2)return vr;if(/\0/.test(vr))return null;if(/\0/.test(q))q=void 0;let V=await hr(this,vr,q,T.custom);if(V){let S=await this.resolve(V.id,q,Object.assign({skipSelf:!0},T));if(S){if(S.external)return!1;if(S.id!==V.id)return S;return{...V,meta:S.meta}}}return V},load(vr){if(vr===a2)return"export default {};";return null},getPackageInfoForId(vr){return P.get(vr)}}}e0r();var fyr=Sa(Z0r(),1);import{existsSync as Q0r,readFileSync as rNr}from"node:fs";import{join as J0r}from"node:path";function wn(r){if(r){let t=J0r(process.cwd(),r);if(Q0r(t))return r;else return console.log(`Invalid entry point: ${t}.`),null}let i=J0r(process.cwd(),"package.json");if(!Q0r(i))return console.log(`Could not locate a package.json file.
585
+ `),this.buildVariableInfoCache(),this.parseCustomTypes(),this.parsed?.module)ed(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 J,W,sr,rr=!1,hr,vr,q,T=!1,V,S;if(H.declaration.type==="FunctionDeclaration"){let er=H.declaration;if(!er.id?.name)return;J=er.id.name,W="function",hr=void 0,vr="() => any",T=!0,rr=!0}else if(H.declaration.type==="VariableDeclaration"){let er=H.declaration,tr=er.declarations[0];if(!tr||typeof tr!=="object"||!("id"in tr))return;let{id:U,init:Z}=tr;if(!U||typeof U!=="object"||!("name"in U))return;let Cr=U.name;J=Cr,W=Slr(er.kind),{value:hr,type:vr,isFunction:T}=Z==null?{isFunction:!1}:this.processInitializer(Z),q=this.getExplicitPropType(Cr),vr=q??vr}else return;let k=this.processNodeJSDoc(H);if(k){if(k.type&&q===void 0)vr=k.type;if(V=k.params,S=k.returnType,k.description)sr=k.description}if(rr&&vr==="() => any"&&S)if(V&&V.length>0)vr=`(${V.map((U)=>{let Z=U.optional?"?":"";return`${U.name}${Z}: ${U.type}`}).join(", ")}) => ${S}`;else vr=`() => ${S}`;if(!sr&&vr&&this.typedefs.has(vr))sr=this.typedefs.get(vr)?.description;this.addModuleExport(J,{name:J,kind:W,description:sr,type:vr,value:hr,params:V,returnType:S,isFunction:T,isFunctionDeclaration:rr,isRequired:!1,constant:W==="const",reactive:!1})}}});let l,u=[],h={type:"ComponentRoot",instance:this.parsed.instance,html:this.parsed.html};if(this.buildScopeDeclarations(h),this.activeScopes.push(this.componentScope),ed(h,{enter:(H,J,W)=>{let sr=this.scopeDeclarations.get(H);if(sr)this.activeScopes.push(sr);if(H.type==="AssignmentExpression")this.markReactivePropsFromMutationTarget(H.left);if(H.type==="UpdateExpression")this.markReactivePropsFromMutationTarget(H.argument);if(H.type==="CallExpression"){let rr=H,hr=rr.callee&&typeof rr.callee==="object"&&"name"in rr.callee?rr.callee.name:void 0;if(hr==="createEventDispatcher"){if(J&&typeof J==="object"&&"id"in J&&J.id&&typeof J.id==="object"&&"name"in J.id)l=J.id.name}if(hr==="setContext")this.parseSetContextCall(H,J??void 0);if(hr)u.push({name:hr,arguments:rr.arguments})}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="Spread"){let rr=H;if(rr.expression?.name==="$$restProps"||this.restPropLocals.has(rr.expression?.name??""))this.maybeSetRestProps(J)}if(H.type==="VariableDeclaration"){if(this.vars.add(H),J&&typeof J==="object"&&"type"in J&&J.type==="Program"&&H.declarations.some((rr)=>this.isCallExpressionNamed(rr.init,"$props")))this.parseRunesPropsDeclaration(H)}if(H.type==="ExportNamedDeclaration"){if(H.declaration==null&&H.specifiers.length===0)return;let rr;if(H.declaration==null&&H.specifiers[0]?.type==="ExportSpecifier"){let Cr=H.specifiers[0],Pr=Cr.local&&typeof Cr.local==="object"&&"name"in Cr.local?Cr.local.name:void 0,jr=Cr.exported&&typeof Cr.exported==="object"&&"name"in Cr.exported?Cr.exported.name:void 0;if(!Pr||!jr)return;let zr;for(let ri of Array.from(this.vars))if(ri.declarations.some(($i)=>$i.id&&typeof $i.id==="object"&&("type"in $i.id)&&$i.id.type==="Identifier"&&$i.id.name===Pr)){zr=ri;break}H.declaration=zr,rr=jr}if(H.declaration==null)return;if(!H.declaration||typeof H.declaration!=="object"||!("type"in H.declaration))return;let hr,vr,q=!1,T,V,S,k=!1,er,tr,U=!1;if(H.declaration.type==="FunctionDeclaration"){let Cr=H.declaration;if(!Cr.id?.name)return;rr??=Cr.id.name,hr="function",T=void 0,V="() => any",k=!0,q=!0,U=!1}else if(H.declaration.type==="VariableDeclaration"){let Cr=H.declaration,Pr=Cr.declarations[0];if(!Pr||typeof Pr!=="object"||!("id"in Pr))return;let{id:jr,init:zr}=Pr;if(jr&&typeof jr==="object"&&"name"in jr){let $i=jr.name;rr??=$i,S=this.getExplicitPropType($i)}else return;hr=Slr(Cr.kind),U=hr==="let"&&zr==null,{value:T,type:V,isFunction:k}=zr==null?{isFunction:!1}:this.processInitializer(zr),V=S??V}else return;let Z=this.processNodeJSDoc(H);if(Z){if(Z.type&&S===void 0)V=Z.type;if(er=Z.params,tr=Z.returnType,Z.description)vr=Z.description}if(q&&V==="() => any"&&tr)if(er&&er.length>0)V=`(${er.map((jr)=>{let zr=jr.optional?"?":"";return`${jr.name}${zr}: ${jr.type}`}).join(", ")}) => ${tr}`;else V=`() => ${tr}`;if(!vr&&V&&this.typedefs.has(V))vr=this.typedefs.get(V)?.description;this.addProp(rr,{name:rr,kind:hr,description:vr,type:V,value:T,params:er,returnType:tr,isFunction:k,isFunctionDeclaration:q,isRequired:U,constant:hr==="const",reactive:this.reactive_vars.has(rr)})}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="Comment"){let hr=H?.data?.trim()??"";if(Olr.test(hr))this.componentComment=hr.replace(Olr,"").replace(TTr,"")}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="Slot"){let rr=H,hr=rr.attributes?.find((T)=>T.name==="name")?.value?.[0]?.data,vr=(rr.attributes||[]).filter((T)=>T.name!=="name").reduce((T,V)=>{let S={value:void 0,replace:!1},k=V.value;if(k===void 0)return T;if(k[0]){let er=k[0],{type:tr,expression:U,raw:Z,start:Cr,end:Pr}=er;if(tr==="Text"&&Z!==void 0)S.value=Z;else if(tr==="AttributeShorthand"&&U&&typeof U==="object"&&"name"in U)S.value=U.name,S.replace=!0;if(U&&typeof U==="object"&&"type"in U){if(U.type==="Literal"&&"value"in U)S.value=String(U.value);else if(U.type==="MemberExpression")S.value=this.resolveMemberExpressionType(U);else if(U.type!=="Identifier"){if(Cr!==void 0&&Pr!==void 0){if(U.type==="ObjectExpression"||U.type==="TemplateLiteral")S.value=this.sourceAtPos(Cr+1,Pr-1)}}}}if(V.name)T[V.name]=S;return T},{}),q=rr.children?.map(({start:T,end:V})=>{if(T===void 0||V===void 0)return"";return this.sourceAtPos(T,V)??""}).join("").trim();this.addSlot({slot_name:hr,slot_props:JSON.stringify(vr,null,2),slot_fallback:q})}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="RenderTag"){let rr=H,hr=this.extractRenderTagInfo(rr.expression);if(hr){let vr;if(hr.arguments.length===0)vr=JSON.stringify({},null,2);else if(hr.arguments.length===1&&typeof hr.arguments[0]==="object"&&hr.arguments[0]&&"type"in hr.arguments[0]&&hr.arguments[0].type==="ObjectExpression")vr=JSON.stringify(this.buildSlotPropsFromObjectExpression(hr.arguments[0]),null,2);else this.logUnsupportedRunesPattern(`Skipping unsupported {@render ...} argument for snippet prop "${hr.publicName}".`);let q=hr.publicName==="children"?void 0:hr.publicName,T=q===void 0?Tlr:q;if(vr!==void 0)this.addSlot({slot_name:q,slot_props:vr});if(vr!==void 0||this.slots.has(T))this.snippetPropLocals.add(hr.trackingName)}}if(H&&typeof H==="object"&&"type"in H&&String(H.type)==="EventHandler"){let rr=H;if(rr.expression==null&&rr.name){if(J!=null&&typeof J==="object"&&"name"in J){let hr=typeof J.name==="string"?J.name:void 0,vr="type"in J?String(J.type):void 0;if(hr&&vr){let q=vr==="InlineComponent"?{type:"InlineComponent",name:hr}:{type:"Element",name:hr};this.forwardedEvents.set(rr.name,q);let T=this.events.get(rr.name),V=this.eventDescriptions.get(rr.name),S=m5(V);if(!T)this.events.set(rr.name,{type:"forwarded",name:rr.name,element:q,description:S});else if(T.type==="forwarded"&&S&&!T.description)this.events.set(rr.name,{...T,description:S})}}}}if(J&&typeof J==="object"&&"type"in J&&(String(J.type)==="Element"||String(J.type)==="InlineComponent")&&H&&typeof H==="object"&&"type"in H&&String(H.type)==="Binding"){let rr=H;if(rr.expression?.name){let hr=this.resolveIdentifierToReactiveProp(rr.expression.name);if(hr)this.reactive_vars.add(hr)}if(String(J.type)==="Element"&&rr.name==="this"&&rr.expression?.name&&"name"in J&&typeof J.name==="string"){let hr=this.resolveIdentifierToReactiveProp(rr.expression.name);if(!hr)return;let vr=J.name;if(this.bindings.has(hr)){let q=this.bindings.get(hr);if(q&&!q.elements.includes(vr))this.bindings.set(hr,{...q,elements:[...q.elements,vr]})}else this.bindings.set(hr,{elements:[vr]})}}},leave:(H)=>{if(this.scopeDeclarations.has(H))this.activeScopes.pop()}}),l!==void 0){for(let H of u)if(H.name===l){let J=H.arguments[0],W=J&&typeof J==="object"&&"value"in J?J.value:void 0,sr=H.arguments[1],rr=sr&&typeof sr==="object"&&"value"in sr?sr.value:void 0;if(W!=null)this.addDispatchedEvent({name:String(W),detail:rr==null?"":String(rr),has_argument:Boolean(sr)})}}let c=new Set;if(l!==void 0){for(let H of u)if(H.name===l){let J=H.arguments[0],W=J&&typeof J==="object"&&"value"in J?J.value:void 0;if(W!=null)c.add(String(W))}}this.forwardedEvents.forEach((H,J)=>{let W=this.events.get(J);if(W&&W.type==="dispatched"&&!c.has(J)){let sr=this.eventDescriptions.get(J),rr=m5(sr),hr={type:"forwarded",name:J,element:H,description:rr};if(W.detail!==void 0&&W.detail!=="undefined")hr.detail=W.detail;this.events.set(J,hr)}}),this.normalizeRunesCallbackProps(c);let p=this.syntaxMode==="runes"?new Set(Array.from(this.snippetPropLocals,(H)=>this.resolvePublicPropName(H))):new Set,w=St.mapToArray(this.props).filter((H)=>!p.has(H.name)).map((H)=>{if(this.bindings.has(H.name)){let J=this.bindings.get(H.name)?.elements.sort().map((W)=>Mlr(W)).join(" | ");return{...H,type:`null | ${J}`,reactive:H.reactive||this.reactive_vars.has(H.name)}}return{...H,reactive:H.reactive||this.reactive_vars.has(H.name)}});this.activeScopes.length=0;let P=St.mapToArray(this.slots).map((H)=>{try{if(!H.slot_props)return H;let J=JSON.parse(H.slot_props),W=[];for(let rr of Object.keys(J)){if(J[rr].replace&&J[rr].value!==void 0)J[rr].value=this.getPropTypeByLocalOrPublic(J[rr].value);if(J[rr].value===void 0)J[rr].value="any";W.push(`${rr}: ${J[rr].value}`)}let sr=W.length===0?"Record<string, never>":`{ ${W.join(", ")} }`;return{...H,slot_props:sr}}catch(J){return H}}).sort((H,J)=>{let W=H.name??"",sr=J.name??"";if(W<sr)return-1;if(W>sr)return 1;return 0}),M=St.mapToArray(this.moduleExports),b=St.mapToArray(this.events).map((H)=>{if(H.type==="forwarded")return{...H,element:H.element.name};return H}).sort((H,J)=>{let W=H.name.localeCompare(J.name);if(W!==0)return W;let sr=H.type.localeCompare(J.type);if(sr!==0)return sr;if(H.type==="forwarded"&&J.type==="forwarded"){let rr=H.element.localeCompare(J.element);if(rr!==0)return rr}return(H.detail??"").localeCompare(J.detail??"")}),o=St.mapToArray(this.typedefs),L=St.mapToArray(this.contexts),I={props:w,moduleExports:M,slots:P,events:b,typedefs:o,generics:this.generics,rest_props:this.rest_props,extends:this.extends,componentComment:this.componentComment,contexts:L},j=this.buildTypeScriptMetadata();if(j)I[Llr]=j;return I}}var Xur=Sa(Blr(),1),Dur=Sa(jlr(),1),kur=Sa(Zlr(),1),_ur=Sa(Pur(),1);import L5,{dirname as V5,resolve as U1,extname as QLr,normalize as JLr,sep as YLr}from"path";import j1,{realpathSync as WLr}from"fs";import{promisify as z1}from"util";import{pathToFileURL as l2,fileURLToPath as Wur}from"url";var Jur=Sa(zur(),1);import{extname as lvi,sep as Qur,resolve as BLr,posix as HLr}from"path";function ULr(r){return Array.isArray(r)}function Zur(r){if(ULr(r))return r;if(r==null)return[];return[r]}function NLr(r,i){if(i===!1)return r;let t=BLr(i||"").split(Qur).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return HLr.join(t,r)}var Yur=function(i,t,s){let l=s&&s.resolve,u=(p)=>p instanceof RegExp?p:{test:(w)=>{let P=NLr(p,l);return Jur.default(P,{dot:!0})(w)}},h=Zur(i).map(u),c=Zur(t).map(u);return function(w){if(typeof w!=="string")return!1;if(/\0/.test(w))return!1;let P=w.split(Qur).join("/");for(let M=0;M<c.length;++M)if(c[M].test(P))return!1;for(let M=0;M<h.length;++M)if(h[M].test(P))return!0;return!h.length}},jLr="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",zLr="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",ZLr=new Set(`${jLr} ${zLr}`.split(" "));ZLr.add("");var GLr="13.3.0";z1(j1.access);var xur=z1(j1.readFile),rfr=z1(j1.realpath),I5=z1(j1.stat);async function u2(r){try{return(await I5(r)).isFile()}catch{return!1}}async function E5(r){return await u2(r)?rfr(r):r}var ifr=(r)=>{if(r.code==="ENOENT")return!1;throw r},F5=(r)=>{let i=new Map,t=async(s,l)=>{if(i.has(s)===!1)i.set(s,r(s).catch((u)=>{throw i.delete(s),u}));try{let h=await i.get(s);return l(null,h)}catch(u){return l(u)}};return t.clear=()=>i.clear(),t},B5=F5(async(r)=>{try{return(await I5(r)).isDirectory()}catch(i){return ifr(i)}}),H5=F5(async(r)=>{try{return(await I5(r)).isFile()}catch(i){return ifr(i)}}),U5=F5(xur);function KLr(r){let i=[];if(r.customResolveOptions){let{customResolveOptions:t}=r;if(t.moduleDirectory)r.moduleDirectories=Array.isArray(t.moduleDirectory)?t.moduleDirectory:[t.moduleDirectory],i.push("node-resolve: The `customResolveOptions.moduleDirectory` option has been deprecated. Use `moduleDirectories`, which must be an array.");if(t.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((s)=>{if(t[s])throw Error(`node-resolve: \`customResolveOptions.${s}\` is no longer an option. If you need this, please open an issue.`)})}return{warnings:i}}function tfr(r){if(r.startsWith(".")||r.startsWith("/"))return null;let i=r.split("/");if(i[0][0]==="@")return`${i[0]}/${i[1]}`;return i[0]}function XLr(r){let i;if(r.mainFields)({mainFields:i}=r);else i=["module","main"];if(r.browser&&i.indexOf("browser")===-1)return["browser"].concat(i);if(!i.length)throw Error("Please ensure at least one `mainFields` value is specified");return i}function efr(r){let{cache:i,extensions:t,pkg:s,mainFields:l,preserveSymlinks:u,useBrowserOverrides:h,rootDir:c,ignoreSideEffectsForRoot:p}=r,{pkgPath:w}=r;if(i.has(w))return i.get(w);if(!u)w=WLr(w);let P=V5(w),M={packageJson:{...s},packageJsonPath:w,root:P,resolvedMainField:"main",browserMappedMain:!1,resolvedEntryPoint:""},b=!1;for(let I=0;I<l.length;I++){let j=l[I];if(typeof s[j]==="string"){s.main=s[j],M.resolvedMainField=j,b=!0;break}}let o={cachedPkg:s,hasModuleSideEffects:()=>null,hasPackageEntry:b!==!1||l.indexOf("main")!==-1,packageBrowserField:h&&typeof s.browser==="object"&&Object.keys(s.browser).reduce((I,j)=>{let H=s.browser[j];if(H&&H[0]===".")H=U1(P,H);if(I[j]=H,j[0]==="."){let J=U1(P,j);if(I[J]=H,!QLr(j))t.reduce((W,sr)=>{return W[J+sr]=W[j],W},I)}return I},{}),packageInfo:M},L=o.packageBrowserField;if(h&&typeof s.browser==="object"&&L.hasOwnProperty(s.main))M.resolvedEntryPoint=L[s.main],M.browserMappedMain=!0;else M.resolvedEntryPoint=U1(P,s.main||"index.js"),M.browserMappedMain=!1;if(!p||c!==P){let I=s.sideEffects;if(typeof I==="boolean")o.hasModuleSideEffects=()=>I;else if(Array.isArray(I)){let j=I.map((H)=>{if(H.includes("/"))return H;return`**/${H}`});o.hasModuleSideEffects=Yur(j,null,{resolve:P})}}return i.set(w,o),o}function DLr(r){if(Array.isArray(r))return r;else if(typeof r==="object")return Object.values(r);return[r]}function kLr(r,i){return i.some((t)=>r.endsWith(t))}async function sfr(r,i){let{root:t}=L5.parse(r),s=r;while(s!==t&&!kLr(s,i)){let l=L5.join(s,"package.json");if(await u2(l)){let u=j1.readFileSync(l,"utf-8");return{pkgJson:JSON.parse(u),pkgPath:s,pkgJsonPath:l}}s=L5.resolve(s,"..")}return null}function _Lr(r){try{return!!new URL(r)}catch(i){return!1}}function afr(r){return typeof r==="object"&&Object.keys(r).every((i)=>!i.startsWith("."))}function Gur(r){return typeof r==="object"&&!afr(r)}function xLr(r){let i=Object.keys(r);return i.some((t)=>t.startsWith("."))&&i.some((t)=>!t.startsWith("."))}function lfr(r,i){return`Could not resolve import "${r}" in ${i}`}function N5(r,i,t){let{importSpecifier:s,importer:l,pkgJsonPath:u}=r;return`${lfr(s,l)} using ${t?"imports":"exports"} defined in ${u}.${i?` ${i}`:""}`}class np extends Error{}class ufr extends np{constructor(r,i){super(N5(r,`Invalid "exports" field. ${i}`))}}class ah extends np{constructor(r,i,t){super(N5(r,t,i))}}class H1 extends np{constructor(r,i){super(N5(r,i))}}function Kur(r,i){return r.split("/").slice(1).some((t)=>[".","..",...i].includes(t))}async function N1(r,{target:i,subpath:t,pattern:s,internal:l}){if(typeof i==="string"){if(!s&&t.length>0&&!i.endsWith("/"))throw new ah(r);if(!i.startsWith("./")){if(l&&!["/","../"].some((h)=>i.startsWith(h))&&!_Lr(i)){if(s){let c=await r.resolveId(i.replace(/\*/g,t),r.pkgURL.href);return c?l2(c.location).href:null}let h=await r.resolveId(`${i}${t}`,r.pkgURL.href);return h?l2(h.location).href:null}throw new H1(r,`Invalid mapping: "${i}".`)}if(Kur(i,r.moduleDirs))throw new H1(r,`Invalid mapping: "${i}".`);let u=new URL(i,r.pkgURL);if(!u.href.startsWith(r.pkgURL.href))throw new H1(r,`Resolved to ${u.href} which is outside package ${r.pkgURL.href}`);if(Kur(t,r.moduleDirs))throw new ah(r);if(s)return u.href.replace(/\*/g,t);return new URL(t,u).href}if(Array.isArray(i)){let u;for(let h of i)try{let c=await N1(r,{target:h,subpath:t,pattern:s,internal:l});if(c!==void 0)return c}catch(c){if(!(c instanceof H1))throw c;else u=c}if(u)throw u;return null}if(i&&typeof i==="object"){for(let[u,h]of Object.entries(i))if(u==="default"||r.conditions.includes(u)){let c=await N1(r,{target:h,subpath:t,pattern:s,internal:l});if(c!==void 0)return c}return}if(i===null)return null;throw new H1(r,"Invalid exports field.")}async function ffr(r,{matchKey:i,matchObj:t,internal:s}){if(!i.endsWith("*")&&i in t){let u=t[i];return await N1(r,{target:u,subpath:"",internal:s})}let l=Object.keys(t).filter((u)=>u.endsWith("/")||u.endsWith("*")).sort((u,h)=>h.length-u.length);for(let u of l){let h=u.substring(0,u.length-1);if(u.endsWith("*")&&i.startsWith(h)){let c=t[u],p=i.substring(u.length-1);return await N1(r,{target:c,subpath:p,pattern:!0,internal:s})}if(i.startsWith(u)){let c=t[u],p=i.substring(u.length);return await N1(r,{target:c,subpath:p,internal:s})}}throw new ah(r,s)}async function rEr(r,i,t){if(xLr(t))throw new ufr(r,"All keys must either start with ./, or without one.");if(i==="."){let s;if(typeof t==="string"||Array.isArray(t)||afr(t))s=t;else if(Gur(t))s=t["."];if(s){let l=await N1(r,{target:s,subpath:""});if(l)return l}}else if(Gur(t)){let s=await ffr(r,{matchKey:i,matchObj:t});if(s)return s}throw new ah(r)}async function iEr({importSpecifier:r,importer:i,moduleDirs:t,conditions:s,resolveId:l}){let u=await sfr(i,t);if(!u)throw Error(lfr(". Could not find a parent package.json."));let{pkgPath:h,pkgJsonPath:c,pkgJson:p}=u,w=l2(`${h}/`),P={importer:i,importSpecifier:r,moduleDirs:t,pkgURL:w,pkgJsonPath:c,conditions:s,resolveId:l},{imports:M}=p;if(!M)throw new ah(P,!0);if(r==="#"||r.startsWith("#/"))throw new ah(P,!0,"Invalid import specifier.");return ffr(P,{matchKey:r,matchObj:M,internal:!0})}var hfr=z1(_ur.default),tEr=z1(j1.readFile);async function eEr(r,i,t,s){if(r){let l=await sfr(r,s);if(l&&l.pkgJson.name===i)return l}try{let l=await hfr(`${i}/package.json`,t),u=JSON.parse(await tEr(l,"utf-8"));return{pkgJsonPath:l,pkgJson:u,pkgPath:V5(l)}}catch(l){return null}}async function nfr({importSpecifier:r,packageInfoCache:i,extensions:t,mainFields:s,preserveSymlinks:l,useBrowserOverrides:u,baseDir:h,moduleDirectories:c,rootDir:p,ignoreSideEffectsForRoot:w}){let P=()=>null,M=!0,b=!1,o,I={basedir:h,readFile:U5,isFile:H5,isDirectory:B5,extensions:t,includeCoreModules:!1,moduleDirectory:c,preserveSymlinks:l,packageFilter:(H,J)=>{let W=efr({cache:i,extensions:t,pkg:H,pkgPath:J,mainFields:s,preserveSymlinks:l,useBrowserOverrides:u,rootDir:p,ignoreSideEffectsForRoot:w});return{packageInfo:o,hasModuleSideEffects:P,hasPackageEntry:M,packageBrowserField:b}=W,W.cachedPkg}},j;try{j=await hfr(r,I)}catch(H){if(H.code!=="MODULE_NOT_FOUND")throw H;return null}return{location:l?j:await E5(j),hasModuleSideEffects:P,hasPackageEntry:M,packageBrowserField:b,packageInfo:o}}async function sEr({importer:r,importSpecifier:i,exportConditions:t,packageInfoCache:s,extensions:l,mainFields:u,preserveSymlinks:h,useBrowserOverrides:c,baseDir:p,moduleDirectories:w,rootDir:P,ignoreSideEffectsForRoot:M}){if(i.startsWith("#")){let o=await iEr({importSpecifier:i,importer:r,moduleDirs:w,conditions:t,resolveId(I){return nfr({importSpecifier:I,packageInfoCache:s,extensions:l,mainFields:u,preserveSymlinks:h,useBrowserOverrides:c,baseDir:p,moduleDirectories:w})}}),L=Wur(o);return{location:h?L:await E5(L),hasModuleSideEffects:()=>null,hasPackageEntry:!0,packageBrowserField:!1,packageInfo:void 0}}let b=tfr(i);if(b){let o=()=>null,L=!0,I=!1,j,W=await eEr(r,b,{basedir:p,readFile:U5,isFile:H5,isDirectory:B5,extensions:l,includeCoreModules:!1,moduleDirectory:w,preserveSymlinks:h,packageFilter:(sr,rr)=>{let hr=efr({cache:s,extensions:l,pkg:sr,pkgPath:rr,mainFields:u,preserveSymlinks:h,useBrowserOverrides:c,rootDir:P,ignoreSideEffectsForRoot:M});return{packageInfo:j,hasModuleSideEffects:o,hasPackageEntry:L,packageBrowserField:I}=hr,hr.cachedPkg}},w);if(W&&W.pkgJson.exports){let{pkgJson:sr,pkgJsonPath:rr}=W,hr=b===i?".":`.${i.substring(b.length)}`,vr=rr.replace("package.json",""),q=l2(vr),V=await rEr({importer:r,importSpecifier:i,moduleDirs:w,pkgURL:q,pkgJsonPath:rr,conditions:t},hr,sr.exports),S=Wur(V);if(S)return{location:h?S:await E5(S),hasModuleSideEffects:o,hasPackageEntry:L,packageBrowserField:I,packageInfo:j}}}return null}async function aEr({importer:r,importSpecifierList:i,exportConditions:t,warn:s,packageInfoCache:l,extensions:u,mainFields:h,preserveSymlinks:c,useBrowserOverrides:p,baseDir:w,moduleDirectories:P,rootDir:M,ignoreSideEffectsForRoot:b}){for(let o=0;o<i.length;o++){let L=await nfr({importer:r,importSpecifier:i[o],exportConditions:t,warn:s,packageInfoCache:l,extensions:u,mainFields:h,preserveSymlinks:c,useBrowserOverrides:p,baseDir:w,moduleDirectories:P,rootDir:M,ignoreSideEffectsForRoot:b});if(L)return L}return null}async function lEr({importer:r,importSpecifierList:i,exportConditions:t,warn:s,packageInfoCache:l,extensions:u,mainFields:h,preserveSymlinks:c,useBrowserOverrides:p,baseDir:w,moduleDirectories:P,rootDir:M,ignoreSideEffectsForRoot:b}){try{let o=await sEr({importer:r,importSpecifier:i[0],exportConditions:t,packageInfoCache:l,extensions:u,mainFields:h,preserveSymlinks:c,useBrowserOverrides:p,baseDir:w,moduleDirectories:P,rootDir:M,ignoreSideEffectsForRoot:b});if(o)return o}catch(o){if(o instanceof np)return s(o),null;throw o}return aEr({importer:r,importSpecifierList:i,exportConditions:t,warn:s,packageInfoCache:l,extensions:u,mainFields:h,preserveSymlinks:c,useBrowserOverrides:p,baseDir:w,moduleDirectories:P,rootDir:M,ignoreSideEffectsForRoot:b})}var a2="\x00node-resolve:empty.js",cfr=(r)=>{Object.freeze(r);for(let i of Object.values(r))if(typeof i==="object"&&!Object.isFrozen(i))cfr(i);return r},yfr=["default","module"],uEr=[...yfr,"import"],fEr=[...yfr,"require"],vfr={dedupe:[],extensions:[".mjs",".js",".json",".node"],resolveOnly:[],moduleDirectories:["node_modules"],ignoreSideEffectsForRoot:!1},vvi=cfr(Dur.default({},vfr));function pfr(r={}){let{warnings:i}=KLr(r),t={...vfr,...r},{extensions:s,jail:l,moduleDirectories:u,ignoreSideEffectsForRoot:h}=t,c=[...uEr,...t.exportConditions||[]],p=[...fEr,...t.exportConditions||[]],w=new Map,P=new Map,M=XLr(t),b=M.indexOf("browser")!==-1,o=t.preferBuiltins===!0||t.preferBuiltins===!1,L=o?t.preferBuiltins:!0,I=U1(t.rootDir||process.cwd()),{dedupe:j}=t,H;if(typeof j!=="function")j=(vr)=>t.dedupe.includes(vr)||t.dedupe.includes(tfr(vr));let J=(vr)=>{let q=vr.map((T)=>{if(T instanceof RegExp)return T;let V=T.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(`^${V}$`)});return(T)=>!q.length||q.some((V)=>V.test(T))},W=typeof t.resolveOnly==="function"?t.resolveOnly:J(t.resolveOnly),sr=new Map,rr,hr=async(vr,q,T,V)=>{let[S,k]=q.split("?"),er=`${k?`?${k}`:""}`;q=S;let tr=!T||j(q)?I:V5(T),U=sr.get(T);if(b&&U){let pr=U1(tr,q);if(U[q]===!1||U[pr]===!1)return{id:a2};let Er=q[0]!=="."&&U[q]||U[pr]||U[`${pr}.js`]||U[`${pr}.json`];if(Er)q=Er}let Z=q.split(/[/\\]/),Cr=Z.shift(),Pr=!1;if(Cr[0]==="@"&&Z.length>0)Cr+=`/${Z.shift()}`;else if(Cr[0]===".")Cr=U1(tr,q),Pr=!0;if(!Pr&&!W(Cr)){if(DLr(H.input).includes(q))return null;return!1}let jr=[q];if(T===void 0&&!q[0].match(/^\.?\.?\//))jr.push(`./${q}`);if(T&&q.endsWith(".js")){for(let pr of[".ts",".tsx"])if(T.endsWith(pr)&&s.includes(pr))jr.push(q.replace(/.js$/,pr))}let zr=(...pr)=>vr.warn(...pr),$i=V&&V["node-resolve"]&&V["node-resolve"].isRequire?p:c;if(b&&!$i.includes("browser"))$i.push("browser");let ji=await lEr({importer:T,importSpecifierList:jr,exportConditions:$i,warn:zr,packageInfoCache:w,extensions:s,mainFields:M,preserveSymlinks:rr,useBrowserOverrides:b,baseDir:tr,moduleDirectories:u,rootDir:I,ignoreSideEffectsForRoot:h}),zi=Xur.default(q),Yr=zi&&L?{packageInfo:void 0,hasModuleSideEffects:()=>null,hasPackageEntry:!0,packageBrowserField:!1}:ji;if(!Yr)return null;let{packageInfo:Vr,hasModuleSideEffects:lt,hasPackageEntry:Jr,packageBrowserField:dr}=Yr,{location:Ar}=Yr;if(dr){if(Object.prototype.hasOwnProperty.call(dr,Ar)){if(!dr[Ar])return sr.set(Ar,dr),{id:a2};Ar=dr[Ar]}sr.set(Ar,dr)}if(Jr&&!rr){if(await u2(Ar))Ar=await rfr(Ar)}if(P.set(Ar,Vr),Jr){if(zi&&L){if(!o&&ji&&Yr!==q)vr.warn(`preferring built-in module '${q}' over local alternative at '${ji.location}', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning`);return!1}else if(l&&Ar.indexOf(JLr(l.trim(YLr)))!==0)return null}if(t.modulesOnly&&await u2(Ar)){let pr=await xur(Ar,"utf-8");if(kur.default(pr))return{id:`${Ar}${er}`,moduleSideEffects:lt(Ar)};return null}return{id:`${Ar}${er}`,moduleSideEffects:lt(Ar)}};return{name:"node-resolve",version:GLr,buildStart(vr){H=vr;for(let q of i)this.warn(q);({preserveSymlinks:rr}=vr)},generateBundle(){U5.clear(),H5.clear(),B5.clear()},async resolveId(vr,q,T){if(vr===a2)return vr;if(/\0/.test(vr))return null;if(/\0/.test(q))q=void 0;let V=await hr(this,vr,q,T.custom);if(V){let S=await this.resolve(V.id,q,Object.assign({skipSelf:!0},T));if(S){if(S.external)return!1;if(S.id!==V.id)return S;return{...V,meta:S.meta}}}return V},load(vr){if(vr===a2)return"export default {};";return null},getPackageInfoForId(vr){return P.get(vr)}}}e0r();var fyr=Sa(Z0r(),1);import{existsSync as Q0r,readFileSync as rNr}from"node:fs";import{join as J0r}from"node:path";function wn(r){if(r){let t=J0r(process.cwd(),r);if(Q0r(t))return r;else return console.log(`Invalid entry point: ${t}.`),null}let i=J0r(process.cwd(),"package.json");if(!Q0r(i))return console.log(`Could not locate a package.json file.
586
586
  `),null;try{let t=JSON.parse(rNr(i,"utf-8"));if(typeof t.svelte==="string"&&t.svelte.trim())return t.svelte;return console.log(`Could not determine an entry point.
587
587
  `),console.log(`Specify an entry point to your Svelte code in the "svelte" field of your package.json.
588
588
  `),null}catch(t){throw console.error("Error reading package.json:",t),t}}import{lstatSync as Wzr,readFileSync as Gzr}from"node:fs";import{readFile as Kzr}from"node:fs/promises";import{dirname as lyr,isAbsolute as Xzr,parse as I9,relative as Dzr,resolve as F9}from"node:path";import qn from"fs";import Mcr,{posix as wh}from"path";import{fileURLToPath as Bjr}from"url";import{createRequire as iNr}from"module";import{basename as tNr,dirname as W4,normalize as eNr,relative as sNr,resolve as aNr,sep as G0r}from"path";import*as lNr from"fs";var Y0r=iNr(import.meta.url);function uNr(r){let i=eNr(r);if(i.length>1&&i[i.length-1]===G0r)i=i.substring(0,i.length-1);return i}var fNr=/[\\/]/g;function K0r(r,i){return r.replace(fNr,i)}var hNr=/^[a-z]:[\\/]$/i;function nNr(r){return r==="/"||hNr.test(r)}function Y4(r,i){let{resolvePaths:t,normalizePath:s,pathSeparator:l}=i,u=process.platform==="win32"&&r.includes("/")||r.startsWith(".");if(t)r=aNr(r);if(s||u)r=uNr(r);if(r===".")return"";let h=r[r.length-1]!==l;return K0r(h?r+l:r,l)}function X0r(r,i){return i+r}function cNr(r,i){return function(t,s){if(s.startsWith(r))return s.slice(r.length)+t;else return K0r(sNr(r,s),i.pathSeparator)+i.pathSeparator+t}}function yNr(r){return r}function vNr(r,i,t){return i+r+t}function pNr(r,i){let{relativePaths:t,includeBasePath:s}=i;return t&&r?cNr(r,i):s?X0r:yNr}function mNr(r){return function(i,t){t.push(i.substring(r.length)||".")}}function oNr(r){return function(i,t,s){let l=i.substring(r.length)||".";if(s.every((u)=>u(l,!0)))t.push(l)}}var bNr=(r,i)=>{i.push(r||".")},dNr=(r,i,t)=>{let s=r||".";if(t.every((l)=>l(s,!0)))i.push(s)},wNr=()=>{};function CNr(r,i){let{includeDirs:t,filters:s,relativePaths:l}=i;if(!t)return wNr;if(l)return s&&s.length?oNr(r):mNr(r);return s&&s.length?dNr:bNr}var qNr=(r,i,t,s)=>{if(s.every((l)=>l(r,!1)))t.files++},PNr=(r,i,t,s)=>{if(s.every((l)=>l(r,!1)))i.push(r)},$Nr=(r,i,t,s)=>{t.files++},gNr=(r,i)=>{i.push(r)},RNr=()=>{};function ANr(r){let{excludeFiles:i,filters:t,onlyCounts:s}=r;if(i)return RNr;if(t&&t.length)return s?qNr:PNr;else if(s)return $Nr;else return gNr}var MNr=(r)=>{return r},SNr=()=>{return[""].slice(0,0)};function TNr(r){return r.group?SNr:MNr}var ONr=(r,i,t)=>{r.push({directory:i,files:t,dir:i})},LNr=()=>{};function ENr(r){return r.group?ONr:LNr}var VNr=function(r,i,t){let{queue:s,fs:l,options:{suppressErrors:u}}=i;s.enqueue(),l.realpath(r,(h,c)=>{if(h)return s.dequeue(u?null:h,i);l.stat(c,(p,w)=>{if(p)return s.dequeue(u?null:p,i);if(w.isDirectory()&&D0r(r,c,i))return s.dequeue(null,i);t(w,c),s.dequeue(null,i)})})},INr=function(r,i,t){let{queue:s,fs:l,options:{suppressErrors:u}}=i;s.enqueue();try{let h=l.realpathSync(r),c=l.statSync(h);if(c.isDirectory()&&D0r(r,h,i))return;t(c,h)}catch(h){if(!u)throw h}};function FNr(r,i){if(!r.resolveSymlinks||r.excludeSymlinks)return null;return i?INr:VNr}function D0r(r,i,t){if(t.options.useRealPaths)return BNr(i,t);let s=W4(r),l=1;while(s!==t.root&&l<2){let u=t.symlinks.get(s);if(!!u&&(u===i||u.startsWith(i)||i.startsWith(u)))l++;else s=W4(s)}return t.symlinks.set(r,i),l>1}function BNr(r,i){return i.visited.includes(r+i.options.pathSeparator)}var HNr=(r)=>{return r.counts},UNr=(r)=>{return r.groups},NNr=(r)=>{return r.paths},jNr=(r)=>{return r.paths.slice(0,r.options.maxFiles)},zNr=(r,i,t)=>{return P9(i,t,r.counts,r.options.suppressErrors),null},ZNr=(r,i,t)=>{return P9(i,t,r.paths,r.options.suppressErrors),null},QNr=(r,i,t)=>{return P9(i,t,r.paths.slice(0,r.options.maxFiles),r.options.suppressErrors),null},JNr=(r,i,t)=>{return P9(i,t,r.groups,r.options.suppressErrors),null};function P9(r,i,t,s){if(r&&!s)i(r,t);else i(null,t)}function YNr(r,i){let{onlyCounts:t,group:s,maxFiles:l}=r;if(t)return i?HNr:zNr;else if(s)return i?UNr:JNr;else if(l)return i?jNr:QNr;else return i?NNr:ZNr}var k0r={withFileTypes:!0},WNr=(r,i,t,s,l)=>{if(r.queue.enqueue(),s<0)return r.queue.dequeue(null,r);let{fs:u}=r;r.visited.push(i),r.counts.directories++,u.readdir(i||".",k0r,(h,c=[])=>{l(c,t,s),r.queue.dequeue(r.options.suppressErrors?null:h,r)})},GNr=(r,i,t,s,l)=>{let{fs:u}=r;if(s<0)return;r.visited.push(i),r.counts.directories++;let h=[];try{h=u.readdirSync(i||".",k0r)}catch(c){if(!r.options.suppressErrors)throw c}l(h,t,s)};function KNr(r){return r?GNr:WNr}var XNr=class{count=0;constructor(r){this.onQueueEmpty=r}enqueue(){return this.count++,this.count}dequeue(r,i){if(this.onQueueEmpty&&(--this.count<=0||r)){if(this.onQueueEmpty(r,i),r)i.controller.abort(),this.onQueueEmpty=void 0}}},DNr=class{_files=0;_directories=0;set files(r){this._files=r}get files(){return this._files}set directories(r){this._directories=r}get directories(){return this._directories}get dirs(){return this._directories}},kNr=class{aborted=!1;abort(){this.aborted=!0}},_0r=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(r,i,t){this.isSynchronous=!t,this.callbackInvoker=YNr(i,this.isSynchronous),this.root=Y4(r,i),this.state={root:nNr(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new DNr,options:i,queue:new XNr((s,l)=>this.callbackInvoker(l,s,t)),symlinks:new Map,visited:[""].slice(0,0),controller:new kNr,fs:i.fs||lNr},this.joinPath=pNr(this.root,i),this.pushDirectory=CNr(this.root,i),this.pushFile=ANr(i),this.getArray=TNr(i),this.groupFiles=ENr(i),this.resolveSymlink=FNr(i,this.isSynchronous),this.walkDirectory=KNr(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=(r,i,t)=>{let{paths:s,options:{filters:l,resolveSymlinks:u,excludeSymlinks:h,exclude:c,maxFiles:p,signal:w,useRealPaths:P,pathSeparator:M},controller:b}=this.state;if(b.aborted||w&&w.aborted||p&&s.length>p)return;let o=this.getArray(this.state.paths);for(let L=0;L<r.length;++L){let I=r[L];if(I.isFile()||I.isSymbolicLink()&&!u&&!h){let j=this.joinPath(I.name,i);this.pushFile(j,o,this.state.counts,l)}else if(I.isDirectory()){let j=vNr(I.name,i,this.state.options.pathSeparator);if(c&&c(I.name,j))continue;this.pushDirectory(j,s,l),this.walkDirectory(this.state,j,j,t-1,this.walk)}else if(this.resolveSymlink&&I.isSymbolicLink()){let j=X0r(I.name,i);this.resolveSymlink(j,this.state,(H,J)=>{if(H.isDirectory()){if(J=Y4(J,this.state.options),c&&c(I.name,P?J:j+M))return;this.walkDirectory(this.state,J,P?J:j+M,t-1,this.walk)}else{J=P?J:j;let W=tNr(J),sr=Y4(W4(J),this.state.options);J=this.joinPath(W,sr),this.pushFile(J,o,this.state.counts,l)}})}}this.groupFiles(this.state.groups,i,o)}};function _Nr(r,i){return new Promise((t,s)=>{x0r(r,i,(l,u)=>{if(l)return s(l);t(u)})})}function x0r(r,i,t){new _0r(r,i,t).start()}function xNr(r,i){return new _0r(r,i).start()}var W0r=class{constructor(r,i){this.root=r,this.options=i}withPromise(){return _Nr(this.root,this.options)}withCallback(r){x0r(this.root,this.options,r)}sync(){return xNr(this.root,this.options)}},rcr=null;try{Y0r.resolve("picomatch"),rcr=Y0r("picomatch")}catch{}var icr=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:G0r,filters:[]};globFunction;constructor(r){this.options={...this.options,...r},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(r){return this.options.pathSeparator=r,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(r){return this.options.maxDepth=r,this}withMaxFiles(r){return this.options.maxFiles=r,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:r=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=r,this.withFullPaths()}withAbortSignal(r){return this.options.signal=r,this}normalize(){return this.options.normalizePath=!0,this}filter(r){return this.options.filters.push(r),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(r){return this.options.exclude=r,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(r){return new W0r(r||".",this.options)}withGlobFunction(r){return this.globFunction=r,this}crawlWithOptions(r,i){return this.options={...this.options,...i},new W0r(r||".",this.options)}glob(...r){if(this.globFunction)return this.globWithOptions(r);return this.globWithOptions(r,...[{dot:!0}])}globWithOptions(r,...i){let t=this.globFunction||rcr;if(!t)throw Error("Please specify a glob function to use glob matching.");var s=this.globCache[r.join("\x00")];if(!s)s=t(r,...i),this.globCache[r.join("\x00")]=s;return this.options.filters.push((l)=>s(l)),this}};var $n=Sa(Rcr(),1),Hjr=Array.isArray,Scr=process.platform==="win32",Ujr=/^(\/?\.\.)+$/;function Njr(r,i={}){let t=r.length,s=Array(t),l=Array(t),u=!i.noglobstar;for(let h=0;h<t;h++){let c=Tcr(r[h]);s[h]=c;let p=c.length,w=Array(p);for(let P=0;P<p;P++)w[P]=$n.default(c[P],i);l[h]=w}return(h)=>{let c=h.split("/");if(c[0]===".."&&Ujr.test(h))return!0;for(let p=0;p<r.length;p++){let w=s[p],P=l[p],M=c.length,b=Math.min(M,w.length),o=0;while(o<b){let L=w[o];if(L.includes("/"))return!0;if(!P[o](c[o]))break;if(u&&L==="**")return!0;o++}if(o===M)return!0}return!1}}var jjr=/^[A-Z]:\/$/i,zjr=Scr?(r)=>jjr.test(r):(r)=>r==="/";function Acr(r,i,t){if(r===i||i.startsWith(`${r}/`)){if(t){let l=zjr(r)?r.length:r.length+1;return(u,h)=>u.slice(l,h?-1:void 0)||"."}let s=i.slice(r.length+1);if(s)return(l,u)=>{if(l===".")return s;let h=`${s}/${l}`;return u?h.slice(0,-1):h};return(l,u)=>u&&l!=="."?l.slice(0,-1):l}if(t)return(s)=>wh.relative(r,s)||".";return(s)=>wh.relative(r,`${i}/${s}`)||"."}function Zjr(r,i){if(i.startsWith(`${r}/`)){let t=i.slice(r.length+1);return(s)=>`${t}/${s}`}return(t)=>{let s=wh.relative(r,`${i}/${t}`);if(t.endsWith("/")&&s!=="")return`${s}/`;return s||"."}}var Qjr={parts:!0};function Tcr(r){var i;let t=$n.default.scan(r,Qjr);return((i=t.parts)===null||i===void 0?void 0:i.length)?t.parts:[r]}var Jjr=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,Yjr=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,Wjr=(r)=>r.replace(Jjr,"\\$&"),Gjr=(r)=>r.replace(Yjr,"\\$&"),Kjr=Scr?Gjr:Wjr;function Xjr(r,i){if((i===null||i===void 0?void 0:i.caseSensitiveMatch)===!1)return!0;let t=$n.default.scan(r);return t.isGlob||t.negated}function Pn(...r){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...r)}var Djr=/^(\/?\.\.)+/,kjr=/\\(?=[()[\]{}!*+?@|])/g,g9=/\\/g;function i3(r,i,t,s,l){let u=r;if(r.endsWith("/"))u=r.slice(0,-1);if(!u.endsWith("*")&&i)u+="/**";let h=Kjr(t);if(Mcr.isAbsolute(u.replace(kjr,"")))u=wh.relative(h,u);else u=wh.normalize(u);let c=Djr.exec(u),p=Tcr(u);if(c===null||c===void 0?void 0:c[0]){let P=(c[0].length+1)/3,M=0,b=h.split("/");while(M<P&&p[M+P]===b[b.length+M-P])u=u.slice(0,(P-M-1)*3)+u.slice((P-M)*3+p[M+P].length+1)||".",M++;let o=wh.join(t,c[0].slice(M*3));if(!o.startsWith(".")&&s.root.length>o.length)s.root=o,s.depthOffset=-P+M}if(!l&&s.depthOffset>=0){var w;(w=s.commonPath)!==null&&w!==void 0||(s.commonPath=p);let P=[],M=Math.min(s.commonPath.length,p.length);for(let b=0;b<M;b++){let o=p[b];if(o==="**"&&!p[b+1]){P.pop();break}if(o!==s.commonPath[b]||Xjr(o)||b===p.length-1)break;P.push(o)}s.depthOffset=P.length,s.commonPath=P,s.root=P.length>0?wh.join(t,...P):t}return u}function _jr({patterns:r=["**/*"],ignore:i=[],expandDirectories:t=!0},s,l){if(typeof r==="string")r=[r];if(typeof i==="string")i=[i];let u=[],h=[];for(let c of i){if(!c)continue;if(c[0]!=="!"||c[1]==="(")h.push(i3(c,t,s,l,!0))}for(let c of r){if(!c)continue;if(c[0]!=="!"||c[1]==="(")u.push(i3(c,t,s,l,!1));else if(c[1]!=="!"||c[2]==="(")h.push(i3(c.slice(1),t,s,l,!0))}return{match:u,ignore:h}}function xjr(r,i){for(let t=r.length-1;t>=0;t--){let s=r[t];r[t]=i(s)}return r}function rzr(r){if(!r)return process.cwd().replace(g9,"/");if(r instanceof URL)return Bjr(r).replace(g9,"/");return Mcr.resolve(r).replace(g9,"/")}function izr(r,i={}){let t=process.env.TINYGLOBBY_DEBUG?{...i,debug:!0}:i,s=rzr(t.cwd);if(t.debug)Pn("globbing with:",{patterns:r,options:t,cwd:s});if(Array.isArray(r)&&r.length===0)return[{sync:()=>[],withPromise:async()=>[]},!1];let l={root:s,commonPath:null,depthOffset:0},u=_jr({...t,patterns:r},s,l);if(t.debug)Pn("internal processing patterns:",u);let h={dot:t.dot,nobrace:t.braceExpansion===!1,nocase:t.caseSensitiveMatch===!1,noextglob:t.extglob===!1,noglobstar:t.globstar===!1,posix:!0},c=$n.default(u.match,{...h,ignore:u.ignore}),p=$n.default(u.ignore,h),w=Njr(u.match,h),P=Acr(s,l.root,t.absolute),M=t.absolute?P:Acr(s,l.root,!0),b={filters:[t.debug?(I,j)=>{let H=P(I,j),J=c(H);if(J)Pn(`matched ${H}`);return J}:(I,j)=>c(P(I,j))],exclude:t.debug?(I,j)=>{let H=M(j,!0),J=H!=="."&&!w(H)||p(H);if(J)Pn(`skipped ${j}`);else Pn(`crawling ${j}`);return J}:(I,j)=>{let H=M(j,!0);return H!=="."&&!w(H)||p(H)},fs:t.fs?{readdir:t.fs.readdir||qn.readdir,readdirSync:t.fs.readdirSync||qn.readdirSync,realpath:t.fs.realpath||qn.realpath,realpathSync:t.fs.realpathSync||qn.realpathSync,stat:t.fs.stat||qn.stat,statSync:t.fs.statSync||qn.statSync}:void 0,pathSeparator:"/",relativePaths:!0,resolveSymlinks:!0,signal:t.signal};if(t.deep!==void 0)b.maxDepth=Math.round(t.deep-l.depthOffset);if(t.absolute)b.relativePaths=!1,b.resolvePaths=!0,b.includeBasePath=!0;if(t.followSymbolicLinks===!1)b.resolveSymlinks=!1,b.excludeSymlinks=!0;if(t.onlyDirectories)b.excludeFiles=!0,b.includeDirs=!0;else if(t.onlyFiles===!1)b.includeDirs=!0;l.root=l.root.replace(g9,"");let o=l.root;if(t.debug)Pn("internal properties:",l);let L=s!==o&&!t.absolute&&Zjr(s,l.root);return[new icr(b).crawl(o),L]}function Ocr(r,i){if(r&&(i===null||i===void 0?void 0:i.patterns))throw Error("Cannot pass patterns as both an argument and an option");let t=Hjr(r)||typeof r==="string",s=t?i:r,l=t?r:r.patterns,[u,h]=izr(l,s);if(!h)return u.sync();return xjr(u.sync(),h)}import{lstatSync as hzr,readdirSync as nzr,readFileSync as czr}from"node:fs";import{dirname as yzr,join as Fcr,resolve as vzr}from"node:path";import{sep as Lcr}from"node:path";function hf(r){return Lcr==="/"?r:r.split(Lcr).join("/")}import{existsSync as Vcr,readFileSync as tzr}from"node:fs";import{dirname as t3,isAbsolute as ezr,join as szr,relative as azr,resolve as A9}from"node:path";var R9=new Map,Ecr=new Map,lzr=/\/\*[\s\S]*?\*\/|\/\/.*/g,uzr=/[.+?^${}()|[\]\\]/g;function fzr(r){let i=r,t=A9(i,"/");while(i!==t){for(let s of["tsconfig.json","jsconfig.json"]){let l=szr(i,s);if(Vcr(l))return l}i=t3(i)}return null}function Icr(r){if(R9.has(r))return R9.get(r)??null;try{let t=tzr(r,"utf-8").replace(lzr,""),s=JSON.parse(t);if(s.extends){let l=ezr(s.extends)?s.extends:A9(t3(r),s.extends),u=l.endsWith(".json")?l:`${l}.json`;if(Vcr(u)){let h=Icr(u);if(h)s.compilerOptions={...h.compilerOptions,...s.compilerOptions,paths:{...h.compilerOptions?.paths,...s.compilerOptions?.paths}}}}return R9.set(r,s),s}catch{return R9.set(r,null),null}}function e3(r,i){if(r.startsWith(".")||r.startsWith("/"))return r;let t=fzr(i);if(!t)return r;let s=Icr(t);if(!s?.compilerOptions?.paths)return r;let{baseUrl:l=".",paths:u}=s.compilerOptions,h=t3(t),c=A9(h,l);for(let[p,w]of Object.entries(u)){let P=Ecr.get(p);if(!P){let b=p.split("*").map((o)=>o.replace(uzr,"\\$&")).join("(.*)");P=new RegExp(`^${b}$`),Ecr.set(p,P)}let M=r.match(P);if(M){let b=w[0];if(!b)continue;let o=b;for(let I=1;I<M.length;I++)o=o.replace("*",M[I]);return A9(c,o)}}return r}function s8(r,i){if(r.startsWith(".")||r.startsWith("/"))return r;let t=e3(r,i);if(t===r)return r;let s=azr(i,t);return s=hf(s),s.startsWith(".")?s:`./${s}`}var Bcr=new Map;function s3(r,i){let t=Bcr.get(r);if(!t)t=eP(r,{ecmaVersion:"latest",sourceType:"module"}),Bcr.set(r,t);let s={};for(let l of t.body)if(l.type==="ExportDefaultDeclaration"){let u=l.declaration.name;if(u in s)s[u].default=!0;else s[u]={source:"",default:!0}}else if(l.type==="ExportAllDeclaration"){if(!l.source)continue;let u=e3(l.source.value,i),h=vzr(i,u);if(!hzr(h).isFile()){let w=nzr(h);for(let P of w)if(P.includes("index")){h=Fcr(h,P);break}}let c=czr(h,"utf-8"),p=s3(c,yzr(h));for(let[w,P]of Object.entries(p)){let M=hf(`./${Fcr(l.source.value,P.source)}`);s[w]={...P,source:M}}}else if(l.type==="ExportNamedDeclaration")for(let u of l.specifiers){let h=u.exported.name,c=u.local.name,p=h||c;if(p in s){if(l.type==="ExportNamedDeclaration")s[p].mixed=!0;if(!s[p].source)s[p].source=s8(l.source?.value??"",i)}else s[p]={source:s8(l.source?.value??"",i),default:c==="default"}}else if(l.type==="ImportDeclaration"){let u=l.specifiers[0].local.name;if(u in s){if(!s[u].source)s[u].source=s8(l.source?.value??"",i)}else s[u]={source:s8(l.source?.value??"",i),default:u==="default"}}return s}import a8 from"node:path";import{mkdir as pzr,writeFile as mzr}from"node:fs/promises";import{parse as ozr}from"node:path";import{format as bzr}from"prettier";var dzr=80;class gn{options;constructor(r){this.options=r}async format(r){try{return await bzr(r,this.options)}catch(i){return console.error(i),r}}async write(r,i){await pzr(ozr(r).dir,{recursive:!0}),await mzr(r,await this.format(i))}}function a3(){return new gn({parser:"json",printWidth:80})}function Hcr(r=dzr){return new gn({parser:"typescript",printWidth:r})}function Ucr(r,i){return Array.from(r,([t,s])=>({...s,filePath:hf(a8.join(i,a8.normalize(s.filePath)))})).sort((t,s)=>t.moduleName.localeCompare(s.moduleName))}async function wzr(r,i){let t=Ucr(r,i.inputDir);await Promise.all(t.map((s)=>{let l=a8.resolve(a8.join(i.outDir||"",`${s.moduleName}.api.json`)),u=a3();return console.log(`created ${l}"