@batijs/core 0.0.449 → 0.0.450

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.
@@ -1,12 +1,12 @@
1
- import { createRequire } from 'module';
1
+ import { createRequire as BATI_core_createRequire } from 'module';
2
2
  import { fileURLToPath as BATI_fileURLToPath } from "node:url";
3
3
  import { dirname as BATI_dirname } from "node:path";
4
- const require = createRequire(import.meta.url);
4
+ const require = BATI_core_createRequire(import.meta.url);
5
5
 
6
6
  const __filename = BATI_fileURLToPath(import.meta.url);
7
7
  const __dirname = BATI_dirname(__filename);
8
8
 
9
- import{a as Xt,b as _r,c as zi,e as Yi}from"./chunk-RBCZH3S6.js";var Ji=zi((kr,Xi)=>{"use strict";(()=>{var qn={"./node_modules/.pnpm/mlly@1.7.3/node_modules/mlly/dist lazy recursive":ne=>{function t(v){return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+v+"'");throw r.code="MODULE_NOT_FOUND",r})}t.keys=()=>[],t.resolve=t,t.id="./node_modules/.pnpm/mlly@1.7.3/node_modules/mlly/dist lazy recursive",ne.exports=t}},Wn={};function Wt(ne){var t=Wn[ne];if(t!==void 0)return t.exports;var v=Wn[ne]={exports:{}};return qn[ne](v,v.exports,Wt),v.exports}Wt.n=ne=>{var t=ne&&ne.__esModule?()=>ne.default:()=>ne;return Wt.d(t,{a:t}),t},Wt.d=(ne,t)=>{for(var v in t)Wt.o(t,v)&&!Wt.o(ne,v)&&Object.defineProperty(ne,v,{enumerable:!0,get:t[v]})},Wt.o=(ne,t)=>Object.prototype.hasOwnProperty.call(ne,t);var fi={};(()=>{"use strict";Wt.d(fi,{default:()=>Hi});let ne=Xt("os");var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],v=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],r="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",f={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"},p="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",e={5:p,"5module":p+" export import",6:p+" const class extends export import super"},i=/^in(stanceof)?$/,h=new RegExp("["+r+"]"),E=new RegExp("["+r+"\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65]");function T(s,P){for(var N=65536,B=0;B<P.length;B+=2){if((N+=P[B])>s)return!1;if((N+=P[B+1])>=s)return!0}return!1}function S(s,P){return s<65?s===36:s<91||(s<97?s===95:s<123||(s<=65535?s>=170&&h.test(String.fromCharCode(s)):P!==!1&&T(s,v)))}function l(s,P){return s<48?s===36:s<58||!(s<65)&&(s<91||(s<97?s===95:s<123||(s<=65535?s>=170&&E.test(String.fromCharCode(s)):P!==!1&&(T(s,v)||T(s,t)))))}var d=function(s,P){P===void 0&&(P={}),this.label=s,this.keyword=P.keyword,this.beforeExpr=!!P.beforeExpr,this.startsExpr=!!P.startsExpr,this.isLoop=!!P.isLoop,this.isAssign=!!P.isAssign,this.prefix=!!P.prefix,this.postfix=!!P.postfix,this.binop=P.binop||null,this.updateContext=null};function c(s,P){return new d(s,{beforeExpr:!0,binop:P})}var u={beforeExpr:!0},m={startsExpr:!0},b={};function _(s,P){return P===void 0&&(P={}),P.keyword=s,b[s]=new d(s,P)}var y={num:new d("num",m),regexp:new d("regexp",m),string:new d("string",m),name:new d("name",m),privateId:new d("privateId",m),eof:new d("eof"),bracketL:new d("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new d("]"),braceL:new d("{",{beforeExpr:!0,startsExpr:!0}),braceR:new d("}"),parenL:new d("(",{beforeExpr:!0,startsExpr:!0}),parenR:new d(")"),comma:new d(",",u),semi:new d(";",u),colon:new d(":",u),dot:new d("."),question:new d("?",u),questionDot:new d("?."),arrow:new d("=>",u),template:new d("template"),invalidTemplate:new d("invalidTemplate"),ellipsis:new d("...",u),backQuote:new d("`",m),dollarBraceL:new d("${",{beforeExpr:!0,startsExpr:!0}),eq:new d("=",{beforeExpr:!0,isAssign:!0}),assign:new d("_=",{beforeExpr:!0,isAssign:!0}),incDec:new d("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new d("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:c("||",1),logicalAND:c("&&",2),bitwiseOR:c("|",3),bitwiseXOR:c("^",4),bitwiseAND:c("&",5),equality:c("==/!=/===/!==",6),relational:c("</>/<=/>=",7),bitShift:c("<</>>/>>>",8),plusMin:new d("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:c("%",10),star:c("*",10),slash:c("/",10),starstar:new d("**",{beforeExpr:!0}),coalesce:c("??",1),_break:_("break"),_case:_("case",u),_catch:_("catch"),_continue:_("continue"),_debugger:_("debugger"),_default:_("default",u),_do:_("do",{isLoop:!0,beforeExpr:!0}),_else:_("else",u),_finally:_("finally"),_for:_("for",{isLoop:!0}),_function:_("function",m),_if:_("if"),_return:_("return",u),_switch:_("switch"),_throw:_("throw",u),_try:_("try"),_var:_("var"),_const:_("const"),_while:_("while",{isLoop:!0}),_with:_("with"),_new:_("new",{beforeExpr:!0,startsExpr:!0}),_this:_("this",m),_super:_("super",m),_class:_("class",m),_extends:_("extends",u),_export:_("export"),_import:_("import",m),_null:_("null",m),_true:_("true",m),_false:_("false",m),_in:_("in",{beforeExpr:!0,binop:7}),_instanceof:_("instanceof",{beforeExpr:!0,binop:7}),_typeof:_("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:_("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:_("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},C=/\r\n?|\n|\u2028|\u2029/,D=new RegExp(C.source,"g");function k(s){return s===10||s===13||s===8232||s===8233}function I(s,P,N){N===void 0&&(N=s.length);for(var B=P;B<N;B++){var te=s.charCodeAt(B);if(k(te))return B<N-1&&te===13&&s.charCodeAt(B+1)===10?B+2:B+1}return-1}var O=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,j=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,K=Object.prototype,G=K.hasOwnProperty,re=K.toString,R=Object.hasOwn||function(s,P){return G.call(s,P)},w=Array.isArray||function(s){return re.call(s)==="[object Array]"},V=Object.create(null);function Q(s){return V[s]||(V[s]=new RegExp("^(?:"+s.replace(/ /g,"|")+")$"))}function se(s){return s<=65535?String.fromCharCode(s):(s-=65536,String.fromCharCode(55296+(s>>10),56320+(1023&s)))}var H=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ae=function(s,P){this.line=s,this.column=P};ae.prototype.offset=function(s){return new ae(this.line,this.column+s)};var $=function(s,P,N){this.start=P,this.end=N,s.sourceFile!==null&&(this.source=s.sourceFile)};function M(s,P){for(var N=1,B=0;;){var te=I(s,B,P);if(te<0)return new ae(N,P-B);++N,B=te}}var z={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},W=!1;function ee(s){var P={};for(var N in z)P[N]=s&&R(s,N)?s[N]:z[N];if(P.ecmaVersion==="latest"?P.ecmaVersion=1e8:P.ecmaVersion==null?(!W&&typeof console=="object"&&console.warn&&(W=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
9
+ import{a as Xt,b as _r,c as zi,e as Yi}from"./chunk-C2T5VISX.js";var Ji=zi((kr,Xi)=>{"use strict";(()=>{var qn={"./node_modules/.pnpm/mlly@1.7.3/node_modules/mlly/dist lazy recursive":ne=>{function t(v){return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+v+"'");throw r.code="MODULE_NOT_FOUND",r})}t.keys=()=>[],t.resolve=t,t.id="./node_modules/.pnpm/mlly@1.7.3/node_modules/mlly/dist lazy recursive",ne.exports=t}},Wn={};function Wt(ne){var t=Wn[ne];if(t!==void 0)return t.exports;var v=Wn[ne]={exports:{}};return qn[ne](v,v.exports,Wt),v.exports}Wt.n=ne=>{var t=ne&&ne.__esModule?()=>ne.default:()=>ne;return Wt.d(t,{a:t}),t},Wt.d=(ne,t)=>{for(var v in t)Wt.o(t,v)&&!Wt.o(ne,v)&&Object.defineProperty(ne,v,{enumerable:!0,get:t[v]})},Wt.o=(ne,t)=>Object.prototype.hasOwnProperty.call(ne,t);var fi={};(()=>{"use strict";Wt.d(fi,{default:()=>Hi});let ne=Xt("os");var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],v=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],r="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",f={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"},p="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",e={5:p,"5module":p+" export import",6:p+" const class extends export import super"},i=/^in(stanceof)?$/,h=new RegExp("["+r+"]"),E=new RegExp("["+r+"\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65]");function T(s,P){for(var N=65536,B=0;B<P.length;B+=2){if((N+=P[B])>s)return!1;if((N+=P[B+1])>=s)return!0}return!1}function S(s,P){return s<65?s===36:s<91||(s<97?s===95:s<123||(s<=65535?s>=170&&h.test(String.fromCharCode(s)):P!==!1&&T(s,v)))}function l(s,P){return s<48?s===36:s<58||!(s<65)&&(s<91||(s<97?s===95:s<123||(s<=65535?s>=170&&E.test(String.fromCharCode(s)):P!==!1&&(T(s,v)||T(s,t)))))}var d=function(s,P){P===void 0&&(P={}),this.label=s,this.keyword=P.keyword,this.beforeExpr=!!P.beforeExpr,this.startsExpr=!!P.startsExpr,this.isLoop=!!P.isLoop,this.isAssign=!!P.isAssign,this.prefix=!!P.prefix,this.postfix=!!P.postfix,this.binop=P.binop||null,this.updateContext=null};function c(s,P){return new d(s,{beforeExpr:!0,binop:P})}var u={beforeExpr:!0},m={startsExpr:!0},b={};function _(s,P){return P===void 0&&(P={}),P.keyword=s,b[s]=new d(s,P)}var y={num:new d("num",m),regexp:new d("regexp",m),string:new d("string",m),name:new d("name",m),privateId:new d("privateId",m),eof:new d("eof"),bracketL:new d("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new d("]"),braceL:new d("{",{beforeExpr:!0,startsExpr:!0}),braceR:new d("}"),parenL:new d("(",{beforeExpr:!0,startsExpr:!0}),parenR:new d(")"),comma:new d(",",u),semi:new d(";",u),colon:new d(":",u),dot:new d("."),question:new d("?",u),questionDot:new d("?."),arrow:new d("=>",u),template:new d("template"),invalidTemplate:new d("invalidTemplate"),ellipsis:new d("...",u),backQuote:new d("`",m),dollarBraceL:new d("${",{beforeExpr:!0,startsExpr:!0}),eq:new d("=",{beforeExpr:!0,isAssign:!0}),assign:new d("_=",{beforeExpr:!0,isAssign:!0}),incDec:new d("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new d("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:c("||",1),logicalAND:c("&&",2),bitwiseOR:c("|",3),bitwiseXOR:c("^",4),bitwiseAND:c("&",5),equality:c("==/!=/===/!==",6),relational:c("</>/<=/>=",7),bitShift:c("<</>>/>>>",8),plusMin:new d("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:c("%",10),star:c("*",10),slash:c("/",10),starstar:new d("**",{beforeExpr:!0}),coalesce:c("??",1),_break:_("break"),_case:_("case",u),_catch:_("catch"),_continue:_("continue"),_debugger:_("debugger"),_default:_("default",u),_do:_("do",{isLoop:!0,beforeExpr:!0}),_else:_("else",u),_finally:_("finally"),_for:_("for",{isLoop:!0}),_function:_("function",m),_if:_("if"),_return:_("return",u),_switch:_("switch"),_throw:_("throw",u),_try:_("try"),_var:_("var"),_const:_("const"),_while:_("while",{isLoop:!0}),_with:_("with"),_new:_("new",{beforeExpr:!0,startsExpr:!0}),_this:_("this",m),_super:_("super",m),_class:_("class",m),_extends:_("extends",u),_export:_("export"),_import:_("import",m),_null:_("null",m),_true:_("true",m),_false:_("false",m),_in:_("in",{beforeExpr:!0,binop:7}),_instanceof:_("instanceof",{beforeExpr:!0,binop:7}),_typeof:_("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:_("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:_("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},C=/\r\n?|\n|\u2028|\u2029/,D=new RegExp(C.source,"g");function k(s){return s===10||s===13||s===8232||s===8233}function I(s,P,N){N===void 0&&(N=s.length);for(var B=P;B<N;B++){var te=s.charCodeAt(B);if(k(te))return B<N-1&&te===13&&s.charCodeAt(B+1)===10?B+2:B+1}return-1}var O=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,j=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,K=Object.prototype,G=K.hasOwnProperty,re=K.toString,R=Object.hasOwn||function(s,P){return G.call(s,P)},w=Array.isArray||function(s){return re.call(s)==="[object Array]"},V=Object.create(null);function Q(s){return V[s]||(V[s]=new RegExp("^(?:"+s.replace(/ /g,"|")+")$"))}function se(s){return s<=65535?String.fromCharCode(s):(s-=65536,String.fromCharCode(55296+(s>>10),56320+(1023&s)))}var H=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,ae=function(s,P){this.line=s,this.column=P};ae.prototype.offset=function(s){return new ae(this.line,this.column+s)};var $=function(s,P,N){this.start=P,this.end=N,s.sourceFile!==null&&(this.source=s.sourceFile)};function M(s,P){for(var N=1,B=0;;){var te=I(s,B,P);if(te<0)return new ae(N,P-B);++N,B=te}}var z={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},W=!1;function ee(s){var P={};for(var N in z)P[N]=s&&R(s,N)?s[N]:z[N];if(P.ecmaVersion==="latest"?P.ecmaVersion=1e8:P.ecmaVersion==null?(!W&&typeof console=="object"&&console.warn&&(W=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
10
10
  Defaulting to 2020, but this will stop working in the future.`)),P.ecmaVersion=11):P.ecmaVersion>=2015&&(P.ecmaVersion-=2009),P.allowReserved==null&&(P.allowReserved=P.ecmaVersion<5),s&&s.allowHashBang!=null||(P.allowHashBang=P.ecmaVersion>=14),w(P.onToken)){var B=P.onToken;P.onToken=function(te){return B.push(te)}}return w(P.onComment)&&(P.onComment=function(te,me){return function(ye,Pe,Ve,st,Ge,St){var pt={type:ye?"Block":"Line",value:Pe,start:Ve,end:st};te.locations&&(pt.loc=new $(this,Ge,St)),te.ranges&&(pt.range=[Ve,st]),me.push(pt)}}(P,P.onComment)),P}function fe(s,P){return 2|(s?4:0)|(P?8:0)}var le=function(s,P,N){this.options=s=ee(s),this.sourceFile=s.sourceFile,this.keywords=Q(e[s.ecmaVersion>=6?6:s.sourceType==="module"?"5module":5]);var B="";s.allowReserved!==!0&&(B=f[s.ecmaVersion>=6?6:s.ecmaVersion===5?5:3],s.sourceType==="module"&&(B+=" await")),this.reservedWords=Q(B);var te=(B?B+" ":"")+f.strict;this.reservedWordsStrict=Q(te),this.reservedWordsStrictBind=Q(te+" "+f.strictBind),this.input=String(P),this.containsEsc=!1,N?(this.pos=N,this.lineStart=this.input.lastIndexOf(`
11
11
  `,N-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(C).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=y.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=s.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&&s.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},Ee={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}};le.prototype.parse=function(){var s=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(s)},Ee.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Ee.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Ee.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Ee.canAwait.get=function(){for(var s=this.scopeStack.length-1;s>=0;s--){var P=this.scopeStack[s];if(P.inClassFieldInit||256&P.flags)return!1;if(2&P.flags)return(4&P.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ee.allowSuper.get=function(){var s=this.currentThisScope(),P=s.flags,N=s.inClassFieldInit;return(64&P)>0||N||this.options.allowSuperOutsideMethod},Ee.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Ee.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ee.allowNewDotTarget.get=function(){var s=this.currentThisScope(),P=s.flags,N=s.inClassFieldInit;return(258&P)>0||N},Ee.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},le.extend=function(){for(var s=[],P=arguments.length;P--;)s[P]=arguments[P];for(var N=this,B=0;B<s.length;B++)N=s[B](N);return N},le.parse=function(s,P){return new this(P,s).parse()},le.parseExpressionAt=function(s,P,N){var B=new this(N,s,P);return B.nextToken(),B.parseExpression()},le.tokenizer=function(s,P){return new this(P,s)},Object.defineProperties(le.prototype,Ee);var Ce=le.prototype,ve=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Ce.strictDirective=function(s){if(this.options.ecmaVersion<5)return!1;for(;;){j.lastIndex=s,s+=j.exec(this.input)[0].length;var P=ve.exec(this.input.slice(s));if(!P)return!1;if((P[1]||P[2])==="use strict"){j.lastIndex=s+P[0].length;var N=j.exec(this.input),B=N.index+N[0].length,te=this.input.charAt(B);return te===";"||te==="}"||C.test(N[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(te)||te==="!"&&this.input.charAt(B+1)==="=")}s+=P[0].length,j.lastIndex=s,s+=j.exec(this.input)[0].length,this.input[s]===";"&&s++}},Ce.eat=function(s){return this.type===s&&(this.next(),!0)},Ce.isContextual=function(s){return this.type===y.name&&this.value===s&&!this.containsEsc},Ce.eatContextual=function(s){return!!this.isContextual(s)&&(this.next(),!0)},Ce.expectContextual=function(s){this.eatContextual(s)||this.unexpected()},Ce.canInsertSemicolon=function(){return this.type===y.eof||this.type===y.braceR||C.test(this.input.slice(this.lastTokEnd,this.start))},Ce.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Ce.semicolon=function(){this.eat(y.semi)||this.insertSemicolon()||this.unexpected()},Ce.afterTrailingComma=function(s,P){if(this.type===s)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),P||this.next(),!0},Ce.expect=function(s){this.eat(s)||this.unexpected()},Ce.unexpected=function(s){this.raise(s??this.start,"Unexpected token")};var ie=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ce.checkPatternErrors=function(s,P){if(s){s.trailingComma>-1&&this.raiseRecoverable(s.trailingComma,"Comma is not permitted after the rest element");var N=P?s.parenthesizedAssign:s.parenthesizedBind;N>-1&&this.raiseRecoverable(N,P?"Assigning to rvalue":"Parenthesized pattern")}},Ce.checkExpressionErrors=function(s,P){if(!s)return!1;var N=s.shorthandAssign,B=s.doubleProto;if(!P)return N>=0||B>=0;N>=0&&this.raise(N,"Shorthand property assignments are valid only in destructuring patterns"),B>=0&&this.raiseRecoverable(B,"Redefinition of __proto__ property")},Ce.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Ce.isSimpleAssignTarget=function(s){return s.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(s.expression):s.type==="Identifier"||s.type==="MemberExpression"};var Z=le.prototype;Z.parseTopLevel=function(s){var P=Object.create(null);for(s.body||(s.body=[]);this.type!==y.eof;){var N=this.parseStatement(null,!0,P);s.body.push(N)}if(this.inModule)for(var B=0,te=Object.keys(this.undefinedExports);B<te.length;B+=1){var me=te[B];this.raiseRecoverable(this.undefinedExports[me].start,"Export '"+me+"' is not defined")}return this.adaptDirectivePrologue(s.body),this.next(),s.sourceType=this.options.sourceType,this.finishNode(s,"Program")};var Te={kind:"loop"},Ae={kind:"switch"};Z.isLet=function(s){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;j.lastIndex=this.pos;var P=j.exec(this.input),N=this.pos+P[0].length,B=this.input.charCodeAt(N);if(B===91||B===92)return!0;if(s)return!1;if(B===123||B>55295&&B<56320)return!0;if(S(B,!0)){for(var te=N+1;l(B=this.input.charCodeAt(te),!0);)++te;if(B===92||B>55295&&B<56320)return!0;var me=this.input.slice(N,te);if(!i.test(me))return!0}return!1},Z.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;j.lastIndex=this.pos;var s,P=j.exec(this.input),N=this.pos+P[0].length;return!(C.test(this.input.slice(this.pos,N))||this.input.slice(N,N+8)!=="function"||N+8!==this.input.length&&(l(s=this.input.charCodeAt(N+8))||s>55295&&s<56320))},Z.parseStatement=function(s,P,N){var B,te=this.type,me=this.startNode();switch(this.isLet(s)&&(te=y._var,B="let"),te){case y._break:case y._continue:return this.parseBreakContinueStatement(me,te.keyword);case y._debugger:return this.parseDebuggerStatement(me);case y._do:return this.parseDoStatement(me);case y._for:return this.parseForStatement(me);case y._function:return s&&(this.strict||s!=="if"&&s!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(me,!1,!s);case y._class:return s&&this.unexpected(),this.parseClass(me,!0);case y._if:return this.parseIfStatement(me);case y._return:return this.parseReturnStatement(me);case y._switch:return this.parseSwitchStatement(me);case y._throw:return this.parseThrowStatement(me);case y._try:return this.parseTryStatement(me);case y._const:case y._var:return B=B||this.value,s&&B!=="var"&&this.unexpected(),this.parseVarStatement(me,B);case y._while:return this.parseWhileStatement(me);case y._with:return this.parseWithStatement(me);case y.braceL:return this.parseBlock(!0,me);case y.semi:return this.parseEmptyStatement(me);case y._export:case y._import:if(this.options.ecmaVersion>10&&te===y._import){j.lastIndex=this.pos;var ye=j.exec(this.input),Pe=this.pos+ye[0].length,Ve=this.input.charCodeAt(Pe);if(Ve===40||Ve===46)return this.parseExpressionStatement(me,this.parseExpression())}return this.options.allowImportExportEverywhere||(P||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),te===y._import?this.parseImport(me):this.parseExport(me,N);default:if(this.isAsyncFunction())return s&&this.unexpected(),this.next(),this.parseFunctionStatement(me,!0,!s);var st=this.value,Ge=this.parseExpression();return te===y.name&&Ge.type==="Identifier"&&this.eat(y.colon)?this.parseLabeledStatement(me,st,Ge,s):this.parseExpressionStatement(me,Ge)}},Z.parseBreakContinueStatement=function(s,P){var N=P==="break";this.next(),this.eat(y.semi)||this.insertSemicolon()?s.label=null:this.type!==y.name?this.unexpected():(s.label=this.parseIdent(),this.semicolon());for(var B=0;B<this.labels.length;++B){var te=this.labels[B];if((s.label==null||te.name===s.label.name)&&(te.kind!=null&&(N||te.kind==="loop")||s.label&&N))break}return B===this.labels.length&&this.raise(s.start,"Unsyntactic "+P),this.finishNode(s,N?"BreakStatement":"ContinueStatement")},Z.parseDebuggerStatement=function(s){return this.next(),this.semicolon(),this.finishNode(s,"DebuggerStatement")},Z.parseDoStatement=function(s){return this.next(),this.labels.push(Te),s.body=this.parseStatement("do"),this.labels.pop(),this.expect(y._while),s.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(y.semi):this.semicolon(),this.finishNode(s,"DoWhileStatement")},Z.parseForStatement=function(s){this.next();var P=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Te),this.enterScope(0),this.expect(y.parenL),this.type===y.semi)return P>-1&&this.unexpected(P),this.parseFor(s,null);var N=this.isLet();if(this.type===y._var||this.type===y._const||N){var B=this.startNode(),te=N?"let":this.value;return this.next(),this.parseVar(B,!0,te),this.finishNode(B,"VariableDeclaration"),(this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&B.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===y._in?P>-1&&this.unexpected(P):s.await=P>-1),this.parseForIn(s,B)):(P>-1&&this.unexpected(P),this.parseFor(s,B))}var me=this.isContextual("let"),ye=!1,Pe=this.containsEsc,Ve=new ie,st=this.start,Ge=P>-1?this.parseExprSubscripts(Ve,"await"):this.parseExpression(!0,Ve);return this.type===y._in||(ye=this.options.ecmaVersion>=6&&this.isContextual("of"))?(P>-1?(this.type===y._in&&this.unexpected(P),s.await=!0):ye&&this.options.ecmaVersion>=8&&(Ge.start!==st||Pe||Ge.type!=="Identifier"||Ge.name!=="async"?this.options.ecmaVersion>=9&&(s.await=!1):this.unexpected()),me&&ye&&this.raise(Ge.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(Ge,!1,Ve),this.checkLValPattern(Ge),this.parseForIn(s,Ge)):(this.checkExpressionErrors(Ve,!0),P>-1&&this.unexpected(P),this.parseFor(s,Ge))},Z.parseFunctionStatement=function(s,P,N){return this.next(),this.parseFunction(s,F|(N?0:ge),!1,P)},Z.parseIfStatement=function(s){return this.next(),s.test=this.parseParenExpression(),s.consequent=this.parseStatement("if"),s.alternate=this.eat(y._else)?this.parseStatement("if"):null,this.finishNode(s,"IfStatement")},Z.parseReturnStatement=function(s){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(y.semi)||this.insertSemicolon()?s.argument=null:(s.argument=this.parseExpression(),this.semicolon()),this.finishNode(s,"ReturnStatement")},Z.parseSwitchStatement=function(s){var P;this.next(),s.discriminant=this.parseParenExpression(),s.cases=[],this.expect(y.braceL),this.labels.push(Ae),this.enterScope(0);for(var N=!1;this.type!==y.braceR;)if(this.type===y._case||this.type===y._default){var B=this.type===y._case;P&&this.finishNode(P,"SwitchCase"),s.cases.push(P=this.startNode()),P.consequent=[],this.next(),B?P.test=this.parseExpression():(N&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),N=!0,P.test=null),this.expect(y.colon)}else P||this.unexpected(),P.consequent.push(this.parseStatement(null));return this.exitScope(),P&&this.finishNode(P,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(s,"SwitchStatement")},Z.parseThrowStatement=function(s){return this.next(),C.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),s.argument=this.parseExpression(),this.semicolon(),this.finishNode(s,"ThrowStatement")};var de=[];Z.parseCatchClauseParam=function(){var s=this.parseBindingAtom(),P=s.type==="Identifier";return this.enterScope(P?32:0),this.checkLValPattern(s,P?4:2),this.expect(y.parenR),s},Z.parseTryStatement=function(s){if(this.next(),s.block=this.parseBlock(),s.handler=null,this.type===y._catch){var P=this.startNode();this.next(),this.eat(y.parenL)?P.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),P.param=null,this.enterScope(0)),P.body=this.parseBlock(!1),this.exitScope(),s.handler=this.finishNode(P,"CatchClause")}return s.finalizer=this.eat(y._finally)?this.parseBlock():null,s.handler||s.finalizer||this.raise(s.start,"Missing catch or finally clause"),this.finishNode(s,"TryStatement")},Z.parseVarStatement=function(s,P,N){return this.next(),this.parseVar(s,!1,P,N),this.semicolon(),this.finishNode(s,"VariableDeclaration")},Z.parseWhileStatement=function(s){return this.next(),s.test=this.parseParenExpression(),this.labels.push(Te),s.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(s,"WhileStatement")},Z.parseWithStatement=function(s){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),s.object=this.parseParenExpression(),s.body=this.parseStatement("with"),this.finishNode(s,"WithStatement")},Z.parseEmptyStatement=function(s){return this.next(),this.finishNode(s,"EmptyStatement")},Z.parseLabeledStatement=function(s,P,N,B){for(var te=0,me=this.labels;te<me.length;te+=1)me[te].name===P&&this.raise(N.start,"Label '"+P+"' is already declared");for(var ye=this.type.isLoop?"loop":this.type===y._switch?"switch":null,Pe=this.labels.length-1;Pe>=0;Pe--){var Ve=this.labels[Pe];if(Ve.statementStart!==s.start)break;Ve.statementStart=this.start,Ve.kind=ye}return this.labels.push({name:P,kind:ye,statementStart:this.start}),s.body=this.parseStatement(B?B.indexOf("label")===-1?B+"label":B:"label"),this.labels.pop(),s.label=N,this.finishNode(s,"LabeledStatement")},Z.parseExpressionStatement=function(s,P){return s.expression=P,this.semicolon(),this.finishNode(s,"ExpressionStatement")},Z.parseBlock=function(s,P,N){for(s===void 0&&(s=!0),P===void 0&&(P=this.startNode()),P.body=[],this.expect(y.braceL),s&&this.enterScope(0);this.type!==y.braceR;){var B=this.parseStatement(null);P.body.push(B)}return N&&(this.strict=!1),this.next(),s&&this.exitScope(),this.finishNode(P,"BlockStatement")},Z.parseFor=function(s,P){return s.init=P,this.expect(y.semi),s.test=this.type===y.semi?null:this.parseExpression(),this.expect(y.semi),s.update=this.type===y.parenR?null:this.parseExpression(),this.expect(y.parenR),s.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(s,"ForStatement")},Z.parseForIn=function(s,P){var N=this.type===y._in;return this.next(),P.type==="VariableDeclaration"&&P.declarations[0].init!=null&&(!N||this.options.ecmaVersion<8||this.strict||P.kind!=="var"||P.declarations[0].id.type!=="Identifier")&&this.raise(P.start,(N?"for-in":"for-of")+" loop variable declaration may not have an initializer"),s.left=P,s.right=N?this.parseExpression():this.parseMaybeAssign(),this.expect(y.parenR),s.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(s,N?"ForInStatement":"ForOfStatement")},Z.parseVar=function(s,P,N,B){for(s.declarations=[],s.kind=N;;){var te=this.startNode();if(this.parseVarId(te,N),this.eat(y.eq)?te.init=this.parseMaybeAssign(P):B||N!=="const"||this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of")?B||te.id.type==="Identifier"||P&&(this.type===y._in||this.isContextual("of"))?te.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),s.declarations.push(this.finishNode(te,"VariableDeclarator")),!this.eat(y.comma))break}return s},Z.parseVarId=function(s,P){s.id=this.parseBindingAtom(),this.checkLValPattern(s.id,P==="var"?1:2,!1)};var F=1,ge=2;function Ie(s,P){var N=P.key.name,B=s[N],te="true";return P.type!=="MethodDefinition"||P.kind!=="get"&&P.kind!=="set"||(te=(P.static?"s":"i")+P.kind),B==="iget"&&te==="iset"||B==="iset"&&te==="iget"||B==="sget"&&te==="sset"||B==="sset"&&te==="sget"?(s[N]="true",!1):!!B||(s[N]=te,!1)}function Ne(s,P){var N=s.computed,B=s.key;return!N&&(B.type==="Identifier"&&B.name===P||B.type==="Literal"&&B.value===P)}Z.parseFunction=function(s,P,N,B,te){this.initFunction(s),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!B)&&(this.type===y.star&&P&ge&&this.unexpected(),s.generator=this.eat(y.star)),this.options.ecmaVersion>=8&&(s.async=!!B),P&F&&(s.id=4&P&&this.type!==y.name?null:this.parseIdent(),!s.id||P&ge||this.checkLValSimple(s.id,this.strict||s.generator||s.async?this.treatFunctionsAsVar?1:2:3));var me=this.yieldPos,ye=this.awaitPos,Pe=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(fe(s.async,s.generator)),P&F||(s.id=this.type===y.name?this.parseIdent():null),this.parseFunctionParams(s),this.parseFunctionBody(s,N,!1,te),this.yieldPos=me,this.awaitPos=ye,this.awaitIdentPos=Pe,this.finishNode(s,P&F?"FunctionDeclaration":"FunctionExpression")},Z.parseFunctionParams=function(s){this.expect(y.parenL),s.params=this.parseBindingList(y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Z.parseClass=function(s,P){this.next();var N=this.strict;this.strict=!0,this.parseClassId(s,P),this.parseClassSuper(s);var B=this.enterClassBody(),te=this.startNode(),me=!1;for(te.body=[],this.expect(y.braceL);this.type!==y.braceR;){var ye=this.parseClassElement(s.superClass!==null);ye&&(te.body.push(ye),ye.type==="MethodDefinition"&&ye.kind==="constructor"?(me&&this.raiseRecoverable(ye.start,"Duplicate constructor in the same class"),me=!0):ye.key&&ye.key.type==="PrivateIdentifier"&&Ie(B,ye)&&this.raiseRecoverable(ye.key.start,"Identifier '#"+ye.key.name+"' has already been declared"))}return this.strict=N,this.next(),s.body=this.finishNode(te,"ClassBody"),this.exitClassBody(),this.finishNode(s,P?"ClassDeclaration":"ClassExpression")},Z.parseClassElement=function(s){if(this.eat(y.semi))return null;var P=this.options.ecmaVersion,N=this.startNode(),B="",te=!1,me=!1,ye="method",Pe=!1;if(this.eatContextual("static")){if(P>=13&&this.eat(y.braceL))return this.parseClassStaticBlock(N),N;this.isClassElementNameStart()||this.type===y.star?Pe=!0:B="static"}if(N.static=Pe,!B&&P>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==y.star||this.canInsertSemicolon()?B="async":me=!0),!B&&(P>=9||!me)&&this.eat(y.star)&&(te=!0),!B&&!me&&!te){var Ve=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?ye=Ve:B=Ve)}if(B?(N.computed=!1,N.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),N.key.name=B,this.finishNode(N.key,"Identifier")):this.parseClassElementName(N),P<13||this.type===y.parenL||ye!=="method"||te||me){var st=!N.static&&Ne(N,"constructor"),Ge=st&&s;st&&ye!=="method"&&this.raise(N.key.start,"Constructor can't have get/set modifier"),N.kind=st?"constructor":ye,this.parseClassMethod(N,te,me,Ge)}else this.parseClassField(N);return N},Z.isClassElementNameStart=function(){return this.type===y.name||this.type===y.privateId||this.type===y.num||this.type===y.string||this.type===y.bracketL||this.type.keyword},Z.parseClassElementName=function(s){this.type===y.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),s.computed=!1,s.key=this.parsePrivateIdent()):this.parsePropertyName(s)},Z.parseClassMethod=function(s,P,N,B){var te=s.key;s.kind==="constructor"?(P&&this.raise(te.start,"Constructor can't be a generator"),N&&this.raise(te.start,"Constructor can't be an async method")):s.static&&Ne(s,"prototype")&&this.raise(te.start,"Classes may not have a static property named prototype");var me=s.value=this.parseMethod(P,N,B);return s.kind==="get"&&me.params.length!==0&&this.raiseRecoverable(me.start,"getter should have no params"),s.kind==="set"&&me.params.length!==1&&this.raiseRecoverable(me.start,"setter should have exactly one param"),s.kind==="set"&&me.params[0].type==="RestElement"&&this.raiseRecoverable(me.params[0].start,"Setter cannot use rest params"),this.finishNode(s,"MethodDefinition")},Z.parseClassField=function(s){if(Ne(s,"constructor")?this.raise(s.key.start,"Classes can't have a field named 'constructor'"):s.static&&Ne(s,"prototype")&&this.raise(s.key.start,"Classes can't have a static field named 'prototype'"),this.eat(y.eq)){var P=this.currentThisScope(),N=P.inClassFieldInit;P.inClassFieldInit=!0,s.value=this.parseMaybeAssign(),P.inClassFieldInit=N}else s.value=null;return this.semicolon(),this.finishNode(s,"PropertyDefinition")},Z.parseClassStaticBlock=function(s){s.body=[];var P=this.labels;for(this.labels=[],this.enterScope(320);this.type!==y.braceR;){var N=this.parseStatement(null);s.body.push(N)}return this.next(),this.exitScope(),this.labels=P,this.finishNode(s,"StaticBlock")},Z.parseClassId=function(s,P){this.type===y.name?(s.id=this.parseIdent(),P&&this.checkLValSimple(s.id,2,!1)):(P===!0&&this.unexpected(),s.id=null)},Z.parseClassSuper=function(s){s.superClass=this.eat(y._extends)?this.parseExprSubscripts(null,!1):null},Z.enterClassBody=function(){var s={declared:Object.create(null),used:[]};return this.privateNameStack.push(s),s.declared},Z.exitClassBody=function(){var s=this.privateNameStack.pop(),P=s.declared,N=s.used;if(this.options.checkPrivateFields)for(var B=this.privateNameStack.length,te=B===0?null:this.privateNameStack[B-1],me=0;me<N.length;++me){var ye=N[me];R(P,ye.name)||(te?te.used.push(ye):this.raiseRecoverable(ye.start,"Private field '#"+ye.name+"' must be declared in an enclosing class"))}},Z.parseExportAllDeclaration=function(s,P){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(s.exported=this.parseModuleExportName(),this.checkExport(P,s.exported,this.lastTokStart)):s.exported=null),this.expectContextual("from"),this.type!==y.string&&this.unexpected(),s.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(s.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(s,"ExportAllDeclaration")},Z.parseExport=function(s,P){if(this.next(),this.eat(y.star))return this.parseExportAllDeclaration(s,P);if(this.eat(y._default))return this.checkExport(P,"default",this.lastTokStart),s.declaration=this.parseExportDefaultDeclaration(),this.finishNode(s,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())s.declaration=this.parseExportDeclaration(s),s.declaration.type==="VariableDeclaration"?this.checkVariableExport(P,s.declaration.declarations):this.checkExport(P,s.declaration.id,s.declaration.id.start),s.specifiers=[],s.source=null;else{if(s.declaration=null,s.specifiers=this.parseExportSpecifiers(P),this.eatContextual("from"))this.type!==y.string&&this.unexpected(),s.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(s.attributes=this.parseWithClause());else{for(var N=0,B=s.specifiers;N<B.length;N+=1){var te=B[N];this.checkUnreserved(te.local),this.checkLocalExport(te.local),te.local.type==="Literal"&&this.raise(te.local.start,"A string literal cannot be used as an exported binding without `from`.")}s.source=null}this.semicolon()}return this.finishNode(s,"ExportNamedDeclaration")},Z.parseExportDeclaration=function(s){return this.parseStatement(null)},Z.parseExportDefaultDeclaration=function(){var s;if(this.type===y._function||(s=this.isAsyncFunction())){var P=this.startNode();return this.next(),s&&this.next(),this.parseFunction(P,4|F,!1,s)}if(this.type===y._class){var N=this.startNode();return this.parseClass(N,"nullableID")}var B=this.parseMaybeAssign();return this.semicolon(),B},Z.checkExport=function(s,P,N){s&&(typeof P!="string"&&(P=P.type==="Identifier"?P.name:P.value),R(s,P)&&this.raiseRecoverable(N,"Duplicate export '"+P+"'"),s[P]=!0)},Z.checkPatternExport=function(s,P){var N=P.type;if(N==="Identifier")this.checkExport(s,P,P.start);else if(N==="ObjectPattern")for(var B=0,te=P.properties;B<te.length;B+=1){var me=te[B];this.checkPatternExport(s,me)}else if(N==="ArrayPattern")for(var ye=0,Pe=P.elements;ye<Pe.length;ye+=1){var Ve=Pe[ye];Ve&&this.checkPatternExport(s,Ve)}else N==="Property"?this.checkPatternExport(s,P.value):N==="AssignmentPattern"?this.checkPatternExport(s,P.left):N==="RestElement"&&this.checkPatternExport(s,P.argument)},Z.checkVariableExport=function(s,P){if(s)for(var N=0,B=P;N<B.length;N+=1){var te=B[N];this.checkPatternExport(s,te.id)}},Z.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},Z.parseExportSpecifier=function(s){var P=this.startNode();return P.local=this.parseModuleExportName(),P.exported=this.eatContextual("as")?this.parseModuleExportName():P.local,this.checkExport(s,P.exported,P.exported.start),this.finishNode(P,"ExportSpecifier")},Z.parseExportSpecifiers=function(s){var P=[],N=!0;for(this.expect(y.braceL);!this.eat(y.braceR);){if(N)N=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;P.push(this.parseExportSpecifier(s))}return P},Z.parseImport=function(s){return this.next(),this.type===y.string?(s.specifiers=de,s.source=this.parseExprAtom()):(s.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),s.source=this.type===y.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(s.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(s,"ImportDeclaration")},Z.parseImportSpecifier=function(){var s=this.startNode();return s.imported=this.parseModuleExportName(),this.eatContextual("as")?s.local=this.parseIdent():(this.checkUnreserved(s.imported),s.local=s.imported),this.checkLValSimple(s.local,2),this.finishNode(s,"ImportSpecifier")},Z.parseImportDefaultSpecifier=function(){var s=this.startNode();return s.local=this.parseIdent(),this.checkLValSimple(s.local,2),this.finishNode(s,"ImportDefaultSpecifier")},Z.parseImportNamespaceSpecifier=function(){var s=this.startNode();return this.next(),this.expectContextual("as"),s.local=this.parseIdent(),this.checkLValSimple(s.local,2),this.finishNode(s,"ImportNamespaceSpecifier")},Z.parseImportSpecifiers=function(){var s=[],P=!0;if(this.type===y.name&&(s.push(this.parseImportDefaultSpecifier()),!this.eat(y.comma)))return s;if(this.type===y.star)return s.push(this.parseImportNamespaceSpecifier()),s;for(this.expect(y.braceL);!this.eat(y.braceR);){if(P)P=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;s.push(this.parseImportSpecifier())}return s},Z.parseWithClause=function(){var s=[];if(!this.eat(y._with))return s;this.expect(y.braceL);for(var P={},N=!0;!this.eat(y.braceR);){if(N)N=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;var B=this.parseImportAttribute(),te=B.key.type==="Identifier"?B.key.name:B.key.value;R(P,te)&&this.raiseRecoverable(B.key.start,"Duplicate attribute key '"+te+"'"),P[te]=!0,s.push(B)}return s},Z.parseImportAttribute=function(){var s=this.startNode();return s.key=this.type===y.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(y.colon),this.type!==y.string&&this.unexpected(),s.value=this.parseExprAtom(),this.finishNode(s,"ImportAttribute")},Z.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===y.string){var s=this.parseLiteral(this.value);return H.test(s.value)&&this.raise(s.start,"An export name cannot include a lone surrogate."),s}return this.parseIdent(!0)},Z.adaptDirectivePrologue=function(s){for(var P=0;P<s.length&&this.isDirectiveCandidate(s[P]);++P)s[P].directive=s[P].expression.raw.slice(1,-1)},Z.isDirectiveCandidate=function(s){return this.options.ecmaVersion>=5&&s.type==="ExpressionStatement"&&s.expression.type==="Literal"&&typeof s.expression.value=="string"&&(this.input[s.start]==='"'||this.input[s.start]==="'")};var Oe=le.prototype;Oe.toAssignable=function(s,P,N){if(this.options.ecmaVersion>=6&&s)switch(s.type){case"Identifier":this.inAsync&&s.name==="await"&&this.raise(s.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":s.type="ObjectPattern",N&&this.checkPatternErrors(N,!0);for(var B=0,te=s.properties;B<te.length;B+=1){var me=te[B];this.toAssignable(me,P),me.type!=="RestElement"||me.argument.type!=="ArrayPattern"&&me.argument.type!=="ObjectPattern"||this.raise(me.argument.start,"Unexpected token")}break;case"Property":s.kind!=="init"&&this.raise(s.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(s.value,P);break;case"ArrayExpression":s.type="ArrayPattern",N&&this.checkPatternErrors(N,!0),this.toAssignableList(s.elements,P);break;case"SpreadElement":s.type="RestElement",this.toAssignable(s.argument,P),s.argument.type==="AssignmentPattern"&&this.raise(s.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":s.operator!=="="&&this.raise(s.left.end,"Only '=' operator can be used for specifying default value."),s.type="AssignmentPattern",delete s.operator,this.toAssignable(s.left,P);break;case"ParenthesizedExpression":this.toAssignable(s.expression,P,N);break;case"ChainExpression":this.raiseRecoverable(s.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!P)break;default:this.raise(s.start,"Assigning to rvalue")}else N&&this.checkPatternErrors(N,!0);return s},Oe.toAssignableList=function(s,P){for(var N=s.length,B=0;B<N;B++){var te=s[B];te&&this.toAssignable(te,P)}if(N){var me=s[N-1];this.options.ecmaVersion===6&&P&&me&&me.type==="RestElement"&&me.argument.type!=="Identifier"&&this.unexpected(me.argument.start)}return s},Oe.parseSpread=function(s){var P=this.startNode();return this.next(),P.argument=this.parseMaybeAssign(!1,s),this.finishNode(P,"SpreadElement")},Oe.parseRestBinding=function(){var s=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==y.name&&this.unexpected(),s.argument=this.parseBindingAtom(),this.finishNode(s,"RestElement")},Oe.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case y.bracketL:var s=this.startNode();return this.next(),s.elements=this.parseBindingList(y.bracketR,!0,!0),this.finishNode(s,"ArrayPattern");case y.braceL:return this.parseObj(!0)}return this.parseIdent()},Oe.parseBindingList=function(s,P,N,B){for(var te=[],me=!0;!this.eat(s);)if(me?me=!1:this.expect(y.comma),P&&this.type===y.comma)te.push(null);else{if(N&&this.afterTrailingComma(s))break;if(this.type===y.ellipsis){var ye=this.parseRestBinding();this.parseBindingListItem(ye),te.push(ye),this.type===y.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(s);break}te.push(this.parseAssignableListItem(B))}return te},Oe.parseAssignableListItem=function(s){var P=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(P),P},Oe.parseBindingListItem=function(s){return s},Oe.parseMaybeDefault=function(s,P,N){if(N=N||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(y.eq))return N;var B=this.startNodeAt(s,P);return B.left=N,B.right=this.parseMaybeAssign(),this.finishNode(B,"AssignmentPattern")},Oe.checkLValSimple=function(s,P,N){P===void 0&&(P=0);var B=P!==0;switch(s.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(s.name)&&this.raiseRecoverable(s.start,(B?"Binding ":"Assigning to ")+s.name+" in strict mode"),B&&(P===2&&s.name==="let"&&this.raiseRecoverable(s.start,"let is disallowed as a lexically bound name"),N&&(R(N,s.name)&&this.raiseRecoverable(s.start,"Argument name clash"),N[s.name]=!0),P!==5&&this.declareName(s.name,P,s.start));break;case"ChainExpression":this.raiseRecoverable(s.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":B&&this.raiseRecoverable(s.start,"Binding member expression");break;case"ParenthesizedExpression":return B&&this.raiseRecoverable(s.start,"Binding parenthesized expression"),this.checkLValSimple(s.expression,P,N);default:this.raise(s.start,(B?"Binding":"Assigning to")+" rvalue")}},Oe.checkLValPattern=function(s,P,N){switch(P===void 0&&(P=0),s.type){case"ObjectPattern":for(var B=0,te=s.properties;B<te.length;B+=1){var me=te[B];this.checkLValInnerPattern(me,P,N)}break;case"ArrayPattern":for(var ye=0,Pe=s.elements;ye<Pe.length;ye+=1){var Ve=Pe[ye];Ve&&this.checkLValInnerPattern(Ve,P,N)}break;default:this.checkLValSimple(s,P,N)}},Oe.checkLValInnerPattern=function(s,P,N){switch(P===void 0&&(P=0),s.type){case"Property":this.checkLValInnerPattern(s.value,P,N);break;case"AssignmentPattern":this.checkLValPattern(s.left,P,N);break;case"RestElement":this.checkLValPattern(s.argument,P,N);break;default:this.checkLValPattern(s,P,N)}};var Qe=function(s,P,N,B,te){this.token=s,this.isExpr=!!P,this.preserveSpace=!!N,this.override=B,this.generator=!!te},We={b_stat:new Qe("{",!1),b_expr:new Qe("{",!0),b_tmpl:new Qe("${",!1),p_stat:new Qe("(",!1),p_expr:new Qe("(",!0),q_tmpl:new Qe("`",!0,!0,function(s){return s.tryReadTemplateToken()}),f_stat:new Qe("function",!1),f_expr:new Qe("function",!0),f_expr_gen:new Qe("function",!0,!1,null,!0),f_gen:new Qe("function",!1,!1,null,!0)},ot=le.prototype;ot.initialContext=function(){return[We.b_stat]},ot.curContext=function(){return this.context[this.context.length-1]},ot.braceIsBlock=function(s){var P=this.curContext();return P===We.f_expr||P===We.f_stat||(s!==y.colon||P!==We.b_stat&&P!==We.b_expr?s===y._return||s===y.name&&this.exprAllowed?C.test(this.input.slice(this.lastTokEnd,this.start)):s===y._else||s===y.semi||s===y.eof||s===y.parenR||s===y.arrow||(s===y.braceL?P===We.b_stat:s!==y._var&&s!==y._const&&s!==y.name&&!this.exprAllowed):!P.isExpr)},ot.inGeneratorContext=function(){for(var s=this.context.length-1;s>=1;s--){var P=this.context[s];if(P.token==="function")return P.generator}return!1},ot.updateContext=function(s){var P,N=this.type;N.keyword&&s===y.dot?this.exprAllowed=!1:(P=N.updateContext)?P.call(this,s):this.exprAllowed=N.beforeExpr},ot.overrideContext=function(s){this.curContext()!==s&&(this.context[this.context.length-1]=s)},y.parenR.updateContext=y.braceR.updateContext=function(){if(this.context.length!==1){var s=this.context.pop();s===We.b_stat&&this.curContext().token==="function"&&(s=this.context.pop()),this.exprAllowed=!s.isExpr}else this.exprAllowed=!0},y.braceL.updateContext=function(s){this.context.push(this.braceIsBlock(s)?We.b_stat:We.b_expr),this.exprAllowed=!0},y.dollarBraceL.updateContext=function(){this.context.push(We.b_tmpl),this.exprAllowed=!0},y.parenL.updateContext=function(s){var P=s===y._if||s===y._for||s===y._with||s===y._while;this.context.push(P?We.p_stat:We.p_expr),this.exprAllowed=!0},y.incDec.updateContext=function(){},y._function.updateContext=y._class.updateContext=function(s){!s.beforeExpr||s===y._else||s===y.semi&&this.curContext()!==We.p_stat||s===y._return&&C.test(this.input.slice(this.lastTokEnd,this.start))||(s===y.colon||s===y.braceL)&&this.curContext()===We.b_stat?this.context.push(We.f_stat):this.context.push(We.f_expr),this.exprAllowed=!1},y.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},y.backQuote.updateContext=function(){this.curContext()===We.q_tmpl?this.context.pop():this.context.push(We.q_tmpl),this.exprAllowed=!1},y.star.updateContext=function(s){if(s===y._function){var P=this.context.length-1;this.context[P]===We.f_expr?this.context[P]=We.f_expr_gen:this.context[P]=We.f_gen}this.exprAllowed=!0},y.name.updateContext=function(s){var P=!1;this.options.ecmaVersion>=6&&s!==y.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(P=!0),this.exprAllowed=P};var Ue=le.prototype;function xe(s){return s.type==="Identifier"||s.type==="ParenthesizedExpression"&&xe(s.expression)}function ke(s){return s.type==="MemberExpression"&&s.property.type==="PrivateIdentifier"||s.type==="ChainExpression"&&ke(s.expression)||s.type==="ParenthesizedExpression"&&ke(s.expression)}Ue.checkPropClash=function(s,P,N){if(!(this.options.ecmaVersion>=9&&s.type==="SpreadElement"||this.options.ecmaVersion>=6&&(s.computed||s.method||s.shorthand))){var B,te=s.key;switch(te.type){case"Identifier":B=te.name;break;case"Literal":B=String(te.value);break;default:return}var me=s.kind;if(this.options.ecmaVersion>=6)B==="__proto__"&&me==="init"&&(P.proto&&(N?N.doubleProto<0&&(N.doubleProto=te.start):this.raiseRecoverable(te.start,"Redefinition of __proto__ property")),P.proto=!0);else{var ye=P[B="$"+B];ye?(me==="init"?this.strict&&ye.init||ye.get||ye.set:ye.init||ye[me])&&this.raiseRecoverable(te.start,"Redefinition of property"):ye=P[B]={init:!1,get:!1,set:!1},ye[me]=!0}}},Ue.parseExpression=function(s,P){var N=this.start,B=this.startLoc,te=this.parseMaybeAssign(s,P);if(this.type===y.comma){var me=this.startNodeAt(N,B);for(me.expressions=[te];this.eat(y.comma);)me.expressions.push(this.parseMaybeAssign(s,P));return this.finishNode(me,"SequenceExpression")}return te},Ue.parseMaybeAssign=function(s,P,N){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(s);this.exprAllowed=!1}var B=!1,te=-1,me=-1,ye=-1;P?(te=P.parenthesizedAssign,me=P.trailingComma,ye=P.doubleProto,P.parenthesizedAssign=P.trailingComma=-1):(P=new ie,B=!0);var Pe=this.start,Ve=this.startLoc;this.type!==y.parenL&&this.type!==y.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=s==="await");var st=this.parseMaybeConditional(s,P);if(N&&(st=N.call(this,st,Pe,Ve)),this.type.isAssign){var Ge=this.startNodeAt(Pe,Ve);return Ge.operator=this.value,this.type===y.eq&&(st=this.toAssignable(st,!1,P)),B||(P.parenthesizedAssign=P.trailingComma=P.doubleProto=-1),P.shorthandAssign>=st.start&&(P.shorthandAssign=-1),this.type===y.eq?this.checkLValPattern(st):this.checkLValSimple(st),Ge.left=st,this.next(),Ge.right=this.parseMaybeAssign(s),ye>-1&&(P.doubleProto=ye),this.finishNode(Ge,"AssignmentExpression")}return B&&this.checkExpressionErrors(P,!0),te>-1&&(P.parenthesizedAssign=te),me>-1&&(P.trailingComma=me),st},Ue.parseMaybeConditional=function(s,P){var N=this.start,B=this.startLoc,te=this.parseExprOps(s,P);if(this.checkExpressionErrors(P))return te;if(this.eat(y.question)){var me=this.startNodeAt(N,B);return me.test=te,me.consequent=this.parseMaybeAssign(),this.expect(y.colon),me.alternate=this.parseMaybeAssign(s),this.finishNode(me,"ConditionalExpression")}return te},Ue.parseExprOps=function(s,P){var N=this.start,B=this.startLoc,te=this.parseMaybeUnary(P,!1,!1,s);return this.checkExpressionErrors(P)||te.start===N&&te.type==="ArrowFunctionExpression"?te:this.parseExprOp(te,N,B,-1,s)},Ue.parseExprOp=function(s,P,N,B,te){var me=this.type.binop;if(me!=null&&(!te||this.type!==y._in)&&me>B){var ye=this.type===y.logicalOR||this.type===y.logicalAND,Pe=this.type===y.coalesce;Pe&&(me=y.logicalAND.binop);var Ve=this.value;this.next();var st=this.start,Ge=this.startLoc,St=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,te),st,Ge,me,te),pt=this.buildBinary(P,N,s,St,Ve,ye||Pe);return(ye&&this.type===y.coalesce||Pe&&(this.type===y.logicalOR||this.type===y.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(pt,P,N,B,te)}return s},Ue.buildBinary=function(s,P,N,B,te,me){B.type==="PrivateIdentifier"&&this.raise(B.start,"Private identifier can only be left side of binary expression");var ye=this.startNodeAt(s,P);return ye.left=N,ye.operator=te,ye.right=B,this.finishNode(ye,me?"LogicalExpression":"BinaryExpression")},Ue.parseMaybeUnary=function(s,P,N,B){var te,me=this.start,ye=this.startLoc;if(this.isContextual("await")&&this.canAwait)te=this.parseAwait(B),P=!0;else if(this.type.prefix){var Pe=this.startNode(),Ve=this.type===y.incDec;Pe.operator=this.value,Pe.prefix=!0,this.next(),Pe.argument=this.parseMaybeUnary(null,!0,Ve,B),this.checkExpressionErrors(s,!0),Ve?this.checkLValSimple(Pe.argument):this.strict&&Pe.operator==="delete"&&xe(Pe.argument)?this.raiseRecoverable(Pe.start,"Deleting local variable in strict mode"):Pe.operator==="delete"&&ke(Pe.argument)?this.raiseRecoverable(Pe.start,"Private fields can not be deleted"):P=!0,te=this.finishNode(Pe,Ve?"UpdateExpression":"UnaryExpression")}else if(P||this.type!==y.privateId){if(te=this.parseExprSubscripts(s,B),this.checkExpressionErrors(s))return te;for(;this.type.postfix&&!this.canInsertSemicolon();){var st=this.startNodeAt(me,ye);st.operator=this.value,st.prefix=!1,st.argument=te,this.checkLValSimple(te),this.next(),te=this.finishNode(st,"UpdateExpression")}}else(B||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),te=this.parsePrivateIdent(),this.type!==y._in&&this.unexpected();return N||!this.eat(y.starstar)?te:P?void this.unexpected(this.lastTokStart):this.buildBinary(me,ye,te,this.parseMaybeUnary(null,!1,!1,B),"**",!1)},Ue.parseExprSubscripts=function(s,P){var N=this.start,B=this.startLoc,te=this.parseExprAtom(s,P);if(te.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return te;var me=this.parseSubscripts(te,N,B,!1,P);return s&&me.type==="MemberExpression"&&(s.parenthesizedAssign>=me.start&&(s.parenthesizedAssign=-1),s.parenthesizedBind>=me.start&&(s.parenthesizedBind=-1),s.trailingComma>=me.start&&(s.trailingComma=-1)),me},Ue.parseSubscripts=function(s,P,N,B,te){for(var me=this.options.ecmaVersion>=8&&s.type==="Identifier"&&s.name==="async"&&this.lastTokEnd===s.end&&!this.canInsertSemicolon()&&s.end-s.start==5&&this.potentialArrowAt===s.start,ye=!1;;){var Pe=this.parseSubscript(s,P,N,B,me,ye,te);if(Pe.optional&&(ye=!0),Pe===s||Pe.type==="ArrowFunctionExpression"){if(ye){var Ve=this.startNodeAt(P,N);Ve.expression=Pe,Pe=this.finishNode(Ve,"ChainExpression")}return Pe}s=Pe}},Ue.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(y.arrow)},Ue.parseSubscriptAsyncArrow=function(s,P,N,B){return this.parseArrowExpression(this.startNodeAt(s,P),N,!0,B)},Ue.parseSubscript=function(s,P,N,B,te,me,ye){var Pe=this.options.ecmaVersion>=11,Ve=Pe&&this.eat(y.questionDot);B&&Ve&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var st=this.eat(y.bracketL);if(st||Ve&&this.type!==y.parenL&&this.type!==y.backQuote||this.eat(y.dot)){var Ge=this.startNodeAt(P,N);Ge.object=s,st?(Ge.property=this.parseExpression(),this.expect(y.bracketR)):this.type===y.privateId&&s.type!=="Super"?Ge.property=this.parsePrivateIdent():Ge.property=this.parseIdent(this.options.allowReserved!=="never"),Ge.computed=!!st,Pe&&(Ge.optional=Ve),s=this.finishNode(Ge,"MemberExpression")}else if(!B&&this.eat(y.parenL)){var St=new ie,pt=this.yieldPos,kt=this.awaitPos,nn=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Ft=this.parseExprList(y.parenR,this.options.ecmaVersion>=8,!1,St);if(te&&!Ve&&this.shouldParseAsyncArrow())return this.checkPatternErrors(St,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=pt,this.awaitPos=kt,this.awaitIdentPos=nn,this.parseSubscriptAsyncArrow(P,N,Ft,ye);this.checkExpressionErrors(St,!0),this.yieldPos=pt||this.yieldPos,this.awaitPos=kt||this.awaitPos,this.awaitIdentPos=nn||this.awaitIdentPos;var Zt=this.startNodeAt(P,N);Zt.callee=s,Zt.arguments=Ft,Pe&&(Zt.optional=Ve),s=this.finishNode(Zt,"CallExpression")}else if(this.type===y.backQuote){(Ve||me)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var qt=this.startNodeAt(P,N);qt.tag=s,qt.quasi=this.parseTemplate({isTagged:!0}),s=this.finishNode(qt,"TaggedTemplateExpression")}return s},Ue.parseExprAtom=function(s,P,N){this.type===y.slash&&this.readRegexp();var B,te=this.potentialArrowAt===this.start;switch(this.type){case y._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),B=this.startNode(),this.next(),this.type!==y.parenL||this.allowDirectSuper||this.raise(B.start,"super() call outside constructor of a subclass"),this.type!==y.dot&&this.type!==y.bracketL&&this.type!==y.parenL&&this.unexpected(),this.finishNode(B,"Super");case y._this:return B=this.startNode(),this.next(),this.finishNode(B,"ThisExpression");case y.name:var me=this.start,ye=this.startLoc,Pe=this.containsEsc,Ve=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!Pe&&Ve.name==="async"&&!this.canInsertSemicolon()&&this.eat(y._function))return this.overrideContext(We.f_expr),this.parseFunction(this.startNodeAt(me,ye),0,!1,!0,P);if(te&&!this.canInsertSemicolon()){if(this.eat(y.arrow))return this.parseArrowExpression(this.startNodeAt(me,ye),[Ve],!1,P);if(this.options.ecmaVersion>=8&&Ve.name==="async"&&this.type===y.name&&!Pe&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return Ve=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(y.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(me,ye),[Ve],!0,P)}return Ve;case y.regexp:var st=this.value;return(B=this.parseLiteral(st.value)).regex={pattern:st.pattern,flags:st.flags},B;case y.num:case y.string:return this.parseLiteral(this.value);case y._null:case y._true:case y._false:return(B=this.startNode()).value=this.type===y._null?null:this.type===y._true,B.raw=this.type.keyword,this.next(),this.finishNode(B,"Literal");case y.parenL:var Ge=this.start,St=this.parseParenAndDistinguishExpression(te,P);return s&&(s.parenthesizedAssign<0&&!this.isSimpleAssignTarget(St)&&(s.parenthesizedAssign=Ge),s.parenthesizedBind<0&&(s.parenthesizedBind=Ge)),St;case y.bracketL:return B=this.startNode(),this.next(),B.elements=this.parseExprList(y.bracketR,!0,!0,s),this.finishNode(B,"ArrayExpression");case y.braceL:return this.overrideContext(We.b_expr),this.parseObj(!1,s);case y._function:return B=this.startNode(),this.next(),this.parseFunction(B,0);case y._class:return this.parseClass(this.startNode(),!1);case y._new:return this.parseNew();case y.backQuote:return this.parseTemplate();case y._import:return this.options.ecmaVersion>=11?this.parseExprImport(N):this.unexpected();default:return this.parseExprAtomDefault()}},Ue.parseExprAtomDefault=function(){this.unexpected()},Ue.parseExprImport=function(s){var P=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===y.parenL&&!s)return this.parseDynamicImport(P);if(this.type===y.dot){var N=this.startNodeAt(P.start,P.loc&&P.loc.start);return N.name="import",P.meta=this.finishNode(N,"Identifier"),this.parseImportMeta(P)}this.unexpected()},Ue.parseDynamicImport=function(s){if(this.next(),s.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(y.parenR)?s.options=null:(this.expect(y.comma),this.afterTrailingComma(y.parenR)?s.options=null:(s.options=this.parseMaybeAssign(),this.eat(y.parenR)||(this.expect(y.comma),this.afterTrailingComma(y.parenR)||this.unexpected())));else if(!this.eat(y.parenR)){var P=this.start;this.eat(y.comma)&&this.eat(y.parenR)?this.raiseRecoverable(P,"Trailing comma is not allowed in import()"):this.unexpected(P)}return this.finishNode(s,"ImportExpression")},Ue.parseImportMeta=function(s){this.next();var P=this.containsEsc;return s.property=this.parseIdent(!0),s.property.name!=="meta"&&this.raiseRecoverable(s.property.start,"The only valid meta property for import is 'import.meta'"),P&&this.raiseRecoverable(s.start,"'import.meta' must not contain escaped characters"),this.options.sourceType==="module"||this.options.allowImportExportEverywhere||this.raiseRecoverable(s.start,"Cannot use 'import.meta' outside a module"),this.finishNode(s,"MetaProperty")},Ue.parseLiteral=function(s){var P=this.startNode();return P.value=s,P.raw=this.input.slice(this.start,this.end),P.raw.charCodeAt(P.raw.length-1)===110&&(P.bigint=P.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(P,"Literal")},Ue.parseParenExpression=function(){this.expect(y.parenL);var s=this.parseExpression();return this.expect(y.parenR),s},Ue.shouldParseArrow=function(s){return!this.canInsertSemicolon()},Ue.parseParenAndDistinguishExpression=function(s,P){var N,B=this.start,te=this.startLoc,me=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var ye,Pe=this.start,Ve=this.startLoc,st=[],Ge=!0,St=!1,pt=new ie,kt=this.yieldPos,nn=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==y.parenR;){if(Ge?Ge=!1:this.expect(y.comma),me&&this.afterTrailingComma(y.parenR,!0)){St=!0;break}if(this.type===y.ellipsis){ye=this.start,st.push(this.parseParenItem(this.parseRestBinding())),this.type===y.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}st.push(this.parseMaybeAssign(!1,pt,this.parseParenItem))}var Ft=this.lastTokEnd,Zt=this.lastTokEndLoc;if(this.expect(y.parenR),s&&this.shouldParseArrow(st)&&this.eat(y.arrow))return this.checkPatternErrors(pt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=kt,this.awaitPos=nn,this.parseParenArrowList(B,te,st,P);st.length&&!St||this.unexpected(this.lastTokStart),ye&&this.unexpected(ye),this.checkExpressionErrors(pt,!0),this.yieldPos=kt||this.yieldPos,this.awaitPos=nn||this.awaitPos,st.length>1?((N=this.startNodeAt(Pe,Ve)).expressions=st,this.finishNodeAt(N,"SequenceExpression",Ft,Zt)):N=st[0]}else N=this.parseParenExpression();if(this.options.preserveParens){var qt=this.startNodeAt(B,te);return qt.expression=N,this.finishNode(qt,"ParenthesizedExpression")}return N},Ue.parseParenItem=function(s){return s},Ue.parseParenArrowList=function(s,P,N,B){return this.parseArrowExpression(this.startNodeAt(s,P),N,!1,B)};var Fe=[];Ue.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var s=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===y.dot){var P=this.startNodeAt(s.start,s.loc&&s.loc.start);P.name="new",s.meta=this.finishNode(P,"Identifier"),this.next();var N=this.containsEsc;return s.property=this.parseIdent(!0),s.property.name!=="target"&&this.raiseRecoverable(s.property.start,"The only valid meta property for new is 'new.target'"),N&&this.raiseRecoverable(s.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(s.start,"'new.target' can only be used in functions and class static block"),this.finishNode(s,"MetaProperty")}var B=this.start,te=this.startLoc;return s.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),B,te,!0,!1),this.eat(y.parenL)?s.arguments=this.parseExprList(y.parenR,this.options.ecmaVersion>=8,!1):s.arguments=Fe,this.finishNode(s,"NewExpression")},Ue.parseTemplateElement=function(s){var P=s.isTagged,N=this.startNode();return this.type===y.invalidTemplate?(P||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),N.value={raw:this.value.replace(/\r\n?/g,`
12
12
  `),cooked:null}):N.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
@@ -1,9 +1,9 @@
1
- import { createRequire } from 'module';
1
+ import { createRequire as BATI_core_createRequire } from 'module';
2
2
  import { fileURLToPath as BATI_fileURLToPath } from "node:url";
3
3
  import { dirname as BATI_dirname } from "node:path";
4
- const require = createRequire(import.meta.url);
4
+ const require = BATI_core_createRequire(import.meta.url);
5
5
 
6
6
  const __filename = BATI_fileURLToPath(import.meta.url);
7
7
  const __dirname = BATI_dirname(__filename);
8
8
 
9
- import{b as h}from"./chunk-RBCZH3S6.js";function i(s){if(!s||!(s instanceof URL)&&typeof s!="string")throw new TypeError("Path must be a non-empty string or URL.")}function U(s){if(typeof s!="string"&&!(s instanceof ArrayBuffer)&&!ArrayBuffer.isView(s))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")}function N(s){if(s instanceof Uint8Array)return s;if(typeof s=="string")return z.encode(s);if(s instanceof ArrayBuffer)return new Uint8Array(s);if(ArrayBuffer.isView(s)){let t=s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength);return new Uint8Array(t)}throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.")}var M,z,E,T,A,g,l,O=h(()=>{"use strict";M=new TextDecoder,z=new TextEncoder,E=class extends Error{constructor(t){super(`Method "${t}" does not exist on impl.`)}},T=class extends Error{constructor(t){super(`Method "${t}" is not supported on this impl.`)}},A=class extends Error{constructor(){super("Implementation already set.")}};g=class{type;data;timestamp=Date.now();constructor(t,e){this.type=t,this.data=e}},l=class{#t;#e;#i=new Map;constructor({impl:t}){this.#t=t,this.#e=t}#s(t,...e){for(let r of this.#i.values())r.push(new g("call",{methodName:t,args:e}))}logStart(t){if(!t||typeof t!="string")throw new TypeError("Log name must be a non-empty string.");if(this.#i.has(t))throw new Error(`Log "${t}" already exists.`);this.#i.set(t,[])}logEnd(t){if(this.#i.has(t)){let e=this.#i.get(t);return this.#i.delete(t),e}throw new Error(`Log "${t}" does not exist.`)}isBaseImpl(){return this.#e===this.#t}setImpl(t){if(this.#s("implSet",t),this.#e!==this.#t)throw new A;this.#e=t}resetImpl(){this.#s("implReset"),this.#e=this.#t}#n(t){if(typeof this.#e[t]!="function")throw new E(t)}#o(t,e){if(typeof this.#e[t]!="function")throw new T(e)}#r(t,...e){return this.#s(t,...e),this.#n(t),this.#e[t](...e)}#c(t,...e){return this.#n(t),this.#e[t](...e)}#a(t,e,...r){return this.#s(e,...r),this.#o(t,e),this.#e[t](...r)}async text(t){i(t);let e=await this.#a("bytes","text",t);return e?M.decode(e):void 0}async json(t){i(t);let e=await this.#a("bytes","json",t);return e?JSON.parse(M.decode(e)):void 0}async arrayBuffer(t){return i(t),(await this.#a("bytes","arrayBuffer",t))?.buffer}async bytes(t){return i(t),this.#r("bytes",t)}async write(t,e){i(t),U(e),this.#s("write",t,e);let r=N(e);return this.#c("write",t,r)}async append(t,e){i(t),U(e),this.#s("append",t,e);let r=N(e);return this.#c("append",t,r)}async isFile(t){return i(t),this.#r("isFile",t)}async isDirectory(t){return i(t),this.#r("isDirectory",t)}async createDirectory(t){return i(t),this.#r("createDirectory",t)}async delete(t){return i(t),this.#r("delete",t)}async deleteAll(t){return i(t),this.#r("deleteAll",t)}async*list(t){i(t),yield*await this.#r("list",t)}async*walk(t,{directoryFilter:e=()=>!0,entryFilter:r=()=>!0}={}){i(t),this.#s("walk",t,{directoryFilter:e,entryFilter:r});let n=async function*(o,{directoryFilter:c,entryFilter:f,parentPath:L="",depth:S=1}){let v;try{v=await this.#c("list",o)}catch(a){if(a.code==="ENOENT")return;throw a}for await(let a of v){let u={path:a.name,depth:S,...a};L&&(u.path=`${L}/${u.path}`);let p=f(u);if(p.then&&(p=await p),p&&(yield u),a.isDirectory){let y=c(u);if(y.then&&(y=await y),!y)continue;let j=o instanceof URL?new URL(a.name,o.href.endsWith("/")?o.href:`${o.href}/`):`${o.endsWith("/")?o:`${o}/`}${a.name}`;yield*n(j,{directoryFilter:c,entryFilter:f,parentPath:u.path,depth:S+1})}}}.bind(this);yield*n(t,{directoryFilter:e,entryFilter:r})}async size(t){return i(t),this.#r("size",t)}async lastModified(t){return i(t),this.#r("lastModified",t)}async copy(t,e){return i(t),i(e),this.#r("copy",t,e)}async copyAll(t,e){return i(t),i(e),this.#r("copyAll",t,e)}async move(t,e){return i(t),i(e),this.#r("move",t,e)}async moveAll(t,e){return i(t),i(e),this.#r("moveAll",t,e)}}});var F=h(()=>{"use strict"});var $=h(()=>{"use strict"});var x=h(()=>{"use strict";O();F();$()});function W(s,t){let e=Date.now()-s.lastAttempt,r=Math.max(s.lastAttempt-s.timestamp,1),n=Math.min(r*1.2,t);return e>=n}function _(s,t){return s.age>t}var b,m,B=h(()=>{"use strict";b=class{id=Math.random().toString(36).slice(2);fn;error;timestamp=Date.now();lastAttempt=this.timestamp;resolve;reject;signal;constructor(t,e,r,n,o){this.fn=t,this.error=e,this.timestamp=Date.now(),this.lastAttempt=Date.now(),this.resolve=r,this.reject=n,this.signal=o}get age(){return Date.now()-this.timestamp}},m=class{#t=[];#e;#i;#s;#n;constructor(t,{timeout:e=6e4,maxDelay:r=100}={}){if(typeof t!="function")throw new Error("Missing function to check errors");this.#n=t,this.#e=e,this.#i=r}retry(t,{signal:e}={}){e?.throwIfAborted();let r;try{r=t()}catch(n){return Promise.reject(new Error(`Synchronous error: ${n.message}`,{cause:n}))}return!r||typeof r.then!="function"?Promise.reject(new Error("Result is not a promise.")):Promise.resolve(r).catch(n=>{if(!this.#n(n))throw n;return new Promise((o,c)=>{this.#t.push(new b(t,n,o,c,e)),e?.addEventListener("abort",()=>{c(e.reason)}),this.#o()})})}#o(){clearTimeout(this.#s),this.#s=void 0;let t=this.#t.shift();if(!t)return;let e=()=>{this.#s=setTimeout(()=>this.#o(),0)};if(_(t,this.#e)){t.reject(t.error),e();return}if(!W(t,this.#i)){this.#t.push(t),e();return}t.lastAttempt=Date.now(),Promise.resolve(t.fn()).then(r=>t.resolve(r)).catch(r=>{if(!this.#n(r)){t.reject(r);return}t.lastAttempt=Date.now(),this.#t.push(t)}).finally(()=>this.#o())}}});import w from"path";import V from"fs/promises";import{fileURLToPath as d}from"url";var Y,D,R,I,nt,k=h(()=>{"use strict";x();B();Y=new Set(["ENFILE","EMFILE"]),D=class{name;isFile;isDirectory;isSymlink;constructor(t){this.name=t.name,this.isFile=t.isFile(),this.isDirectory=t.isDirectory(),this.isSymlink=t.isSymbolicLink()}},R=class{#t;#e;constructor({fsp:t=V}={}){this.#t=t,this.#e=new m(e=>Y.has(e.code))}bytes(t){return this.#e.retry(()=>this.#t.readFile(t)).then(e=>new Uint8Array(e.buffer)).catch(e=>{if(e.code!=="ENOENT")throw e})}async write(t,e){let r=Buffer.from(e);return this.#e.retry(()=>this.#t.writeFile(t,r)).catch(n=>{if(n.code==="ENOENT"){let o=w.dirname(t instanceof URL?d(t):t);return this.#t.mkdir(o,{recursive:!0}).then(()=>this.#t.writeFile(t,r))}throw n})}async append(t,e){let r=Buffer.from(e);return this.#e.retry(()=>this.#t.appendFile(t,r)).catch(n=>{if(n.code==="ENOENT"){let o=w.dirname(t instanceof URL?d(t):t);return this.#t.mkdir(o,{recursive:!0}).then(()=>this.#t.appendFile(t,r))}throw n})}isFile(t){return this.#t.stat(t).then(e=>e.isFile()).catch(e=>{if(e.code==="ENOENT")return!1;throw e})}isDirectory(t){return this.#t.stat(t).then(e=>e.isDirectory()).catch(e=>{if(e.code==="ENOENT")return!1;throw e})}async createDirectory(t){await this.#t.mkdir(t,{recursive:!0})}delete(t){return this.#t.rm(t).then(()=>!0).catch(e=>{if(e.code==="ERR_FS_EISDIR")return this.#t.rmdir(t).then(()=>!0);if(e.code==="ENOENT")return!1;throw e})}deleteAll(t){return this.#t.rm(t,{recursive:!0}).then(()=>!0).catch(e=>{if(e.code==="ENOENT")return!1;throw e})}async*list(t){let e=await this.#t.readdir(t,{withFileTypes:!0});for(let r of e)yield new D(r)}size(t){return this.#t.stat(t).then(e=>e.size).catch(e=>{if(e.code!=="ENOENT")throw e})}lastModified(t){return this.#t.stat(t).then(e=>e.mtime).catch(e=>{if(e.code!=="ENOENT")throw e})}copy(t,e){return this.#t.copyFile(t,e)}async copyAll(t,e){if(await this.isFile(t))return this.copy(t,e);let r=t instanceof URL?d(t):t,n=e instanceof URL?d(e):e;await this.createDirectory(e);for await(let o of this.list(t)){let c=w.join(r,o.name),f=w.join(n,o.name);o.isDirectory?await this.copyAll(c,f):await this.copy(c,f)}}move(t,e){return this.#t.stat(t).then(r=>{if(r.isDirectory())throw new Error(`EISDIR: illegal operation on a directory, move '${t}' -> '${e}'`);return this.#t.rename(t,e)})}async moveAll(t,e){return this.#t.rename(t,e)}},I=class extends l{constructor({fsp:t}={}){super({impl:new R({fsp:t})})}},nt=new I});var K=h(()=>{k();x()});K();export{l as Hfs,I as NodeHfs,R as NodeHfsImpl,nt as hfs};
9
+ import{b as h}from"./chunk-C2T5VISX.js";function i(s){if(!s||!(s instanceof URL)&&typeof s!="string")throw new TypeError("Path must be a non-empty string or URL.")}function U(s){if(typeof s!="string"&&!(s instanceof ArrayBuffer)&&!ArrayBuffer.isView(s))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")}function N(s){if(s instanceof Uint8Array)return s;if(typeof s=="string")return z.encode(s);if(s instanceof ArrayBuffer)return new Uint8Array(s);if(ArrayBuffer.isView(s)){let t=s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength);return new Uint8Array(t)}throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.")}var M,z,E,T,A,g,l,O=h(()=>{"use strict";M=new TextDecoder,z=new TextEncoder,E=class extends Error{constructor(t){super(`Method "${t}" does not exist on impl.`)}},T=class extends Error{constructor(t){super(`Method "${t}" is not supported on this impl.`)}},A=class extends Error{constructor(){super("Implementation already set.")}};g=class{type;data;timestamp=Date.now();constructor(t,e){this.type=t,this.data=e}},l=class{#t;#e;#i=new Map;constructor({impl:t}){this.#t=t,this.#e=t}#s(t,...e){for(let r of this.#i.values())r.push(new g("call",{methodName:t,args:e}))}logStart(t){if(!t||typeof t!="string")throw new TypeError("Log name must be a non-empty string.");if(this.#i.has(t))throw new Error(`Log "${t}" already exists.`);this.#i.set(t,[])}logEnd(t){if(this.#i.has(t)){let e=this.#i.get(t);return this.#i.delete(t),e}throw new Error(`Log "${t}" does not exist.`)}isBaseImpl(){return this.#e===this.#t}setImpl(t){if(this.#s("implSet",t),this.#e!==this.#t)throw new A;this.#e=t}resetImpl(){this.#s("implReset"),this.#e=this.#t}#n(t){if(typeof this.#e[t]!="function")throw new E(t)}#o(t,e){if(typeof this.#e[t]!="function")throw new T(e)}#r(t,...e){return this.#s(t,...e),this.#n(t),this.#e[t](...e)}#c(t,...e){return this.#n(t),this.#e[t](...e)}#a(t,e,...r){return this.#s(e,...r),this.#o(t,e),this.#e[t](...r)}async text(t){i(t);let e=await this.#a("bytes","text",t);return e?M.decode(e):void 0}async json(t){i(t);let e=await this.#a("bytes","json",t);return e?JSON.parse(M.decode(e)):void 0}async arrayBuffer(t){return i(t),(await this.#a("bytes","arrayBuffer",t))?.buffer}async bytes(t){return i(t),this.#r("bytes",t)}async write(t,e){i(t),U(e),this.#s("write",t,e);let r=N(e);return this.#c("write",t,r)}async append(t,e){i(t),U(e),this.#s("append",t,e);let r=N(e);return this.#c("append",t,r)}async isFile(t){return i(t),this.#r("isFile",t)}async isDirectory(t){return i(t),this.#r("isDirectory",t)}async createDirectory(t){return i(t),this.#r("createDirectory",t)}async delete(t){return i(t),this.#r("delete",t)}async deleteAll(t){return i(t),this.#r("deleteAll",t)}async*list(t){i(t),yield*await this.#r("list",t)}async*walk(t,{directoryFilter:e=()=>!0,entryFilter:r=()=>!0}={}){i(t),this.#s("walk",t,{directoryFilter:e,entryFilter:r});let n=async function*(o,{directoryFilter:c,entryFilter:f,parentPath:L="",depth:S=1}){let v;try{v=await this.#c("list",o)}catch(a){if(a.code==="ENOENT")return;throw a}for await(let a of v){let u={path:a.name,depth:S,...a};L&&(u.path=`${L}/${u.path}`);let p=f(u);if(p.then&&(p=await p),p&&(yield u),a.isDirectory){let y=c(u);if(y.then&&(y=await y),!y)continue;let j=o instanceof URL?new URL(a.name,o.href.endsWith("/")?o.href:`${o.href}/`):`${o.endsWith("/")?o:`${o}/`}${a.name}`;yield*n(j,{directoryFilter:c,entryFilter:f,parentPath:u.path,depth:S+1})}}}.bind(this);yield*n(t,{directoryFilter:e,entryFilter:r})}async size(t){return i(t),this.#r("size",t)}async lastModified(t){return i(t),this.#r("lastModified",t)}async copy(t,e){return i(t),i(e),this.#r("copy",t,e)}async copyAll(t,e){return i(t),i(e),this.#r("copyAll",t,e)}async move(t,e){return i(t),i(e),this.#r("move",t,e)}async moveAll(t,e){return i(t),i(e),this.#r("moveAll",t,e)}}});var F=h(()=>{"use strict"});var $=h(()=>{"use strict"});var x=h(()=>{"use strict";O();F();$()});function W(s,t){let e=Date.now()-s.lastAttempt,r=Math.max(s.lastAttempt-s.timestamp,1),n=Math.min(r*1.2,t);return e>=n}function _(s,t){return s.age>t}var b,m,B=h(()=>{"use strict";b=class{id=Math.random().toString(36).slice(2);fn;error;timestamp=Date.now();lastAttempt=this.timestamp;resolve;reject;signal;constructor(t,e,r,n,o){this.fn=t,this.error=e,this.timestamp=Date.now(),this.lastAttempt=Date.now(),this.resolve=r,this.reject=n,this.signal=o}get age(){return Date.now()-this.timestamp}},m=class{#t=[];#e;#i;#s;#n;constructor(t,{timeout:e=6e4,maxDelay:r=100}={}){if(typeof t!="function")throw new Error("Missing function to check errors");this.#n=t,this.#e=e,this.#i=r}retry(t,{signal:e}={}){e?.throwIfAborted();let r;try{r=t()}catch(n){return Promise.reject(new Error(`Synchronous error: ${n.message}`,{cause:n}))}return!r||typeof r.then!="function"?Promise.reject(new Error("Result is not a promise.")):Promise.resolve(r).catch(n=>{if(!this.#n(n))throw n;return new Promise((o,c)=>{this.#t.push(new b(t,n,o,c,e)),e?.addEventListener("abort",()=>{c(e.reason)}),this.#o()})})}#o(){clearTimeout(this.#s),this.#s=void 0;let t=this.#t.shift();if(!t)return;let e=()=>{this.#s=setTimeout(()=>this.#o(),0)};if(_(t,this.#e)){t.reject(t.error),e();return}if(!W(t,this.#i)){this.#t.push(t),e();return}t.lastAttempt=Date.now(),Promise.resolve(t.fn()).then(r=>t.resolve(r)).catch(r=>{if(!this.#n(r)){t.reject(r);return}t.lastAttempt=Date.now(),this.#t.push(t)}).finally(()=>this.#o())}}});import w from"path";import V from"fs/promises";import{fileURLToPath as d}from"url";var Y,D,R,I,nt,k=h(()=>{"use strict";x();B();Y=new Set(["ENFILE","EMFILE"]),D=class{name;isFile;isDirectory;isSymlink;constructor(t){this.name=t.name,this.isFile=t.isFile(),this.isDirectory=t.isDirectory(),this.isSymlink=t.isSymbolicLink()}},R=class{#t;#e;constructor({fsp:t=V}={}){this.#t=t,this.#e=new m(e=>Y.has(e.code))}bytes(t){return this.#e.retry(()=>this.#t.readFile(t)).then(e=>new Uint8Array(e.buffer)).catch(e=>{if(e.code!=="ENOENT")throw e})}async write(t,e){let r=Buffer.from(e);return this.#e.retry(()=>this.#t.writeFile(t,r)).catch(n=>{if(n.code==="ENOENT"){let o=w.dirname(t instanceof URL?d(t):t);return this.#t.mkdir(o,{recursive:!0}).then(()=>this.#t.writeFile(t,r))}throw n})}async append(t,e){let r=Buffer.from(e);return this.#e.retry(()=>this.#t.appendFile(t,r)).catch(n=>{if(n.code==="ENOENT"){let o=w.dirname(t instanceof URL?d(t):t);return this.#t.mkdir(o,{recursive:!0}).then(()=>this.#t.appendFile(t,r))}throw n})}isFile(t){return this.#t.stat(t).then(e=>e.isFile()).catch(e=>{if(e.code==="ENOENT")return!1;throw e})}isDirectory(t){return this.#t.stat(t).then(e=>e.isDirectory()).catch(e=>{if(e.code==="ENOENT")return!1;throw e})}async createDirectory(t){await this.#t.mkdir(t,{recursive:!0})}delete(t){return this.#t.rm(t).then(()=>!0).catch(e=>{if(e.code==="ERR_FS_EISDIR")return this.#t.rmdir(t).then(()=>!0);if(e.code==="ENOENT")return!1;throw e})}deleteAll(t){return this.#t.rm(t,{recursive:!0}).then(()=>!0).catch(e=>{if(e.code==="ENOENT")return!1;throw e})}async*list(t){let e=await this.#t.readdir(t,{withFileTypes:!0});for(let r of e)yield new D(r)}size(t){return this.#t.stat(t).then(e=>e.size).catch(e=>{if(e.code!=="ENOENT")throw e})}lastModified(t){return this.#t.stat(t).then(e=>e.mtime).catch(e=>{if(e.code!=="ENOENT")throw e})}copy(t,e){return this.#t.copyFile(t,e)}async copyAll(t,e){if(await this.isFile(t))return this.copy(t,e);let r=t instanceof URL?d(t):t,n=e instanceof URL?d(e):e;await this.createDirectory(e);for await(let o of this.list(t)){let c=w.join(r,o.name),f=w.join(n,o.name);o.isDirectory?await this.copyAll(c,f):await this.copy(c,f)}}move(t,e){return this.#t.stat(t).then(r=>{if(r.isDirectory())throw new Error(`EISDIR: illegal operation on a directory, move '${t}' -> '${e}'`);return this.#t.rename(t,e)})}async moveAll(t,e){return this.#t.rename(t,e)}},I=class extends l{constructor({fsp:t}={}){super({impl:new R({fsp:t})})}},nt=new I});var K=h(()=>{k();x()});K();export{l as Hfs,I as NodeHfs,R as NodeHfsImpl,nt as hfs};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/core",
3
- "version": "0.0.449",
3
+ "version": "0.0.450",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -13,8 +13,8 @@
13
13
  "@types/estree": "^1.0.8",
14
14
  "@types/node": "^20.19.0",
15
15
  "@types/which": "^3.0.4",
16
- "@typescript-eslint/parser": "^8.34.0",
17
- "@typescript-eslint/utils": "^8.34.0",
16
+ "@typescript-eslint/parser": "^8.34.1",
17
+ "@typescript-eslint/utils": "^8.34.1",
18
18
  "attributes-parser": "^2.2.3",
19
19
  "colorette": "^2.0.20",
20
20
  "esbuild": "^0.25.5",
@@ -28,17 +28,17 @@
28
28
  "mdast-util-to-markdown": "^2.1.2",
29
29
  "mdast-util-to-string": "^4.0.0",
30
30
  "mdast-util-toc": "^7.1.0",
31
- "prettier": "^3.5.3",
31
+ "prettier": "^3.6.0",
32
32
  "squirrelly": "^9.1.0",
33
33
  "tsup": "^8.5.0",
34
34
  "tsx": "^4.20.3",
35
35
  "typescript": "^5.8.3",
36
36
  "unplugin-purge-polyfills": "^0.1.0",
37
- "vitest": "^3.2.3",
37
+ "vitest": "^3.2.4",
38
38
  "vue-eslint-parser": "^10.1.3",
39
39
  "which": "^5.0.0",
40
40
  "yaml": "^2.8.0",
41
- "@batijs/features": "0.0.449"
41
+ "@batijs/features": "0.0.450"
42
42
  },
43
43
  "exports": {
44
44
  ".": "./dist/index.js",