@styleframe/cli 2.3.2 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/build-ur0w63-6.js +49 -0
- package/dist/export-DbajI91o.js +139 -0
- package/dist/import-CwuwczM7.js +90 -0
- package/dist/{build-aC0xw4RW.js → index-BX6dI2z2.js} +175 -211
- package/dist/index-C3Gqfamh.js +3689 -0
- package/dist/index-D1u8JN2Q.js +14 -0
- package/dist/index.cjs +5927 -2003
- package/dist/index.js +4 -3
- package/dist/{init-CzpnWkDQ.js → init-iaRyWohK.js} +1 -0
- package/package.json +3 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import path from "node:path";
|
|
2
1
|
import { rm, mkdir, writeFile, stat } from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
3
|
import { validateInstanceLicense, getLicenseKeyFromEnv } from "@styleframe/license";
|
|
4
4
|
import require$$1, { createRequire } from "node:module";
|
|
5
5
|
import require$$0 from "node:os";
|
|
@@ -13,8 +13,6 @@ import require$$9 from "node:crypto";
|
|
|
13
13
|
import require$$10 from "node:tty";
|
|
14
14
|
import require$$11 from "node:perf_hooks";
|
|
15
15
|
import require$$12 from "node:vm";
|
|
16
|
-
import { defineCommand } from "citty";
|
|
17
|
-
import consola from "consola";
|
|
18
16
|
function getDefaultExportFromCjs(x2) {
|
|
19
17
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
20
18
|
}
|
|
@@ -49,7 +47,7 @@ function requireJiti() {
|
|
|
49
47
|
(() => {
|
|
50
48
|
__webpack_require__.d(i, { default: () => createJiti2 });
|
|
51
49
|
const e2 = require$$0;
|
|
52
|
-
var t2 = [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], s = [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 = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", n = { 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" }, a = "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", o = { 5: a, "5module": a + " export import", 6: a + " const class extends export import super" }, h2 = /^in(stanceof)?$/, c = new RegExp("[" + r + "]"),
|
|
50
|
+
var t2 = [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], s = [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 = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", n = { 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" }, a = "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", o = { 5: a, "5module": a + " export import", 6: a + " const class extends export import super" }, h2 = /^in(stanceof)?$/, c = new RegExp("[" + r + "]"), p = new RegExp("[" + r + "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");
|
|
53
51
|
function isInAstralSet(e3, t3) {
|
|
54
52
|
for (var i2 = 65536, s2 = 0; s2 < t3.length; s2 += 2) {
|
|
55
53
|
if ((i2 += t3[s2]) > e3) return false;
|
|
@@ -61,7 +59,7 @@ function requireJiti() {
|
|
|
61
59
|
return e3 < 65 ? 36 === e3 : e3 < 91 || (e3 < 97 ? 95 === e3 : e3 < 123 || (e3 <= 65535 ? e3 >= 170 && c.test(String.fromCharCode(e3)) : false !== t3 && isInAstralSet(e3, s)));
|
|
62
60
|
}
|
|
63
61
|
function isIdentifierChar(e3, i2) {
|
|
64
|
-
return e3 < 48 ? 36 === e3 : e3 < 58 || !(e3 < 65) && (e3 < 91 || (e3 < 97 ? 95 === e3 : e3 < 123 || (e3 <= 65535 ? e3 >= 170 &&
|
|
62
|
+
return e3 < 48 ? 36 === e3 : e3 < 58 || !(e3 < 65) && (e3 < 91 || (e3 < 97 ? 95 === e3 : e3 < 123 || (e3 <= 65535 ? e3 >= 170 && p.test(String.fromCharCode(e3)) : false !== i2 && (isInAstralSet(e3, s) || isInAstralSet(e3, t2)))));
|
|
65
63
|
}
|
|
66
64
|
var acorn_TokenType = function(e3, t3) {
|
|
67
65
|
void 0 === t3 && (t3 = {}), this.label = e3, this.keyword = t3.keyword, this.beforeExpr = !!t3.beforeExpr, this.startsExpr = !!t3.startsExpr, this.isLoop = !!t3.isLoop, this.isAssign = !!t3.isAssign, this.prefix = !!t3.prefix, this.postfix = !!t3.postfix, this.binop = t3.binop || null, this.updateContext = null;
|
|
@@ -73,7 +71,7 @@ function requireJiti() {
|
|
|
73
71
|
function kw(e3, t3) {
|
|
74
72
|
return void 0 === t3 && (t3 = {}), t3.keyword = e3, d2[e3] = new acorn_TokenType(e3, t3);
|
|
75
73
|
}
|
|
76
|
-
var f = { num: new acorn_TokenType("num", u), regexp: new acorn_TokenType("regexp", u), string: new acorn_TokenType("string", u), name: new acorn_TokenType("name", u), privateId: new acorn_TokenType("privateId", u), eof: new acorn_TokenType("eof"), bracketL: new acorn_TokenType("[", { beforeExpr: true, startsExpr: true }), bracketR: new acorn_TokenType("]"), braceL: new acorn_TokenType("{", { beforeExpr: true, startsExpr: true }), braceR: new acorn_TokenType("}"), parenL: new acorn_TokenType("(", { beforeExpr: true, startsExpr: true }), parenR: new acorn_TokenType(")"), comma: new acorn_TokenType(",", l), semi: new acorn_TokenType(";", l), colon: new acorn_TokenType(":", l), dot: new acorn_TokenType("."), question: new acorn_TokenType("?", l), questionDot: new acorn_TokenType("?."), arrow: new acorn_TokenType("=>", l), template: new acorn_TokenType("template"), invalidTemplate: new acorn_TokenType("invalidTemplate"), ellipsis: new acorn_TokenType("...", l), backQuote: new acorn_TokenType("`", u), dollarBraceL: new acorn_TokenType("${", { beforeExpr: true, startsExpr: true }), eq: new acorn_TokenType("=", { beforeExpr: true, isAssign: true }), assign: new acorn_TokenType("_=", { beforeExpr: true, isAssign: true }), incDec: new acorn_TokenType("++/--", { prefix: true, postfix: true, startsExpr: true }), prefix: new acorn_TokenType("!/~", { beforeExpr: true, prefix: true, startsExpr: true }), logicalOR: binop("||", 1), logicalAND: binop("&&", 2), bitwiseOR: binop("|", 3), bitwiseXOR: binop("^", 4), bitwiseAND: binop("&", 5), equality: binop("==/!=/===/!==", 6), relational: binop("</>/<=/>=", 7), bitShift: binop("<</>>/>>>", 8), plusMin: new acorn_TokenType("+/-", { beforeExpr: true, binop: 9, prefix: true, startsExpr: true }), modulo: binop("%", 10), star: binop("*", 10), slash: binop("/", 10), starstar: new acorn_TokenType("**", { beforeExpr: true }), coalesce: binop("??", 1), _break: kw("break"), _case: kw("case", l), _catch: kw("catch"), _continue: kw("continue"), _debugger: kw("debugger"), _default: kw("default", l), _do: kw("do", { isLoop: true, beforeExpr: true }), _else: kw("else", l), _finally: kw("finally"), _for: kw("for", { isLoop: true }), _function: kw("function", u), _if: kw("if"), _return: kw("return", l), _switch: kw("switch"), _throw: kw("throw", l), _try: kw("try"), _var: kw("var"), _const: kw("const"), _while: kw("while", { isLoop: true }), _with: kw("with"), _new: kw("new", { beforeExpr: true, startsExpr: true }), _this: kw("this", u), _super: kw("super", u), _class: kw("class", u), _extends: kw("extends", l), _export: kw("export"), _import: kw("import", u), _null: kw("null", u), _true: kw("true", u), _false: kw("false", u), _in: kw("in", { beforeExpr: true, binop: 7 }), _instanceof: kw("instanceof", { beforeExpr: true, binop: 7 }), _typeof: kw("typeof", { beforeExpr: true, prefix: true, startsExpr: true }), _void: kw("void", { beforeExpr: true, prefix: true, startsExpr: true }), _delete: kw("delete", { beforeExpr: true, prefix: true, startsExpr: true }) },
|
|
74
|
+
var f = { num: new acorn_TokenType("num", u), regexp: new acorn_TokenType("regexp", u), string: new acorn_TokenType("string", u), name: new acorn_TokenType("name", u), privateId: new acorn_TokenType("privateId", u), eof: new acorn_TokenType("eof"), bracketL: new acorn_TokenType("[", { beforeExpr: true, startsExpr: true }), bracketR: new acorn_TokenType("]"), braceL: new acorn_TokenType("{", { beforeExpr: true, startsExpr: true }), braceR: new acorn_TokenType("}"), parenL: new acorn_TokenType("(", { beforeExpr: true, startsExpr: true }), parenR: new acorn_TokenType(")"), comma: new acorn_TokenType(",", l), semi: new acorn_TokenType(";", l), colon: new acorn_TokenType(":", l), dot: new acorn_TokenType("."), question: new acorn_TokenType("?", l), questionDot: new acorn_TokenType("?."), arrow: new acorn_TokenType("=>", l), template: new acorn_TokenType("template"), invalidTemplate: new acorn_TokenType("invalidTemplate"), ellipsis: new acorn_TokenType("...", l), backQuote: new acorn_TokenType("`", u), dollarBraceL: new acorn_TokenType("${", { beforeExpr: true, startsExpr: true }), eq: new acorn_TokenType("=", { beforeExpr: true, isAssign: true }), assign: new acorn_TokenType("_=", { beforeExpr: true, isAssign: true }), incDec: new acorn_TokenType("++/--", { prefix: true, postfix: true, startsExpr: true }), prefix: new acorn_TokenType("!/~", { beforeExpr: true, prefix: true, startsExpr: true }), logicalOR: binop("||", 1), logicalAND: binop("&&", 2), bitwiseOR: binop("|", 3), bitwiseXOR: binop("^", 4), bitwiseAND: binop("&", 5), equality: binop("==/!=/===/!==", 6), relational: binop("</>/<=/>=", 7), bitShift: binop("<</>>/>>>", 8), plusMin: new acorn_TokenType("+/-", { beforeExpr: true, binop: 9, prefix: true, startsExpr: true }), modulo: binop("%", 10), star: binop("*", 10), slash: binop("/", 10), starstar: new acorn_TokenType("**", { beforeExpr: true }), coalesce: binop("??", 1), _break: kw("break"), _case: kw("case", l), _catch: kw("catch"), _continue: kw("continue"), _debugger: kw("debugger"), _default: kw("default", l), _do: kw("do", { isLoop: true, beforeExpr: true }), _else: kw("else", l), _finally: kw("finally"), _for: kw("for", { isLoop: true }), _function: kw("function", u), _if: kw("if"), _return: kw("return", l), _switch: kw("switch"), _throw: kw("throw", l), _try: kw("try"), _var: kw("var"), _const: kw("const"), _while: kw("while", { isLoop: true }), _with: kw("with"), _new: kw("new", { beforeExpr: true, startsExpr: true }), _this: kw("this", u), _super: kw("super", u), _class: kw("class", u), _extends: kw("extends", l), _export: kw("export"), _import: kw("import", u), _null: kw("null", u), _true: kw("true", u), _false: kw("false", u), _in: kw("in", { beforeExpr: true, binop: 7 }), _instanceof: kw("instanceof", { beforeExpr: true, binop: 7 }), _typeof: kw("typeof", { beforeExpr: true, prefix: true, startsExpr: true }), _void: kw("void", { beforeExpr: true, prefix: true, startsExpr: true }), _delete: kw("delete", { beforeExpr: true, prefix: true, startsExpr: true }) }, m2 = /\r\n?|\n|\u2028|\u2029/, g2 = new RegExp(m2.source, "g");
|
|
77
75
|
function isNewLine(e3) {
|
|
78
76
|
return 10 === e3 || 13 === e3 || 8232 === e3 || 8233 === e3;
|
|
79
77
|
}
|
|
@@ -85,8 +83,8 @@ function requireJiti() {
|
|
|
85
83
|
}
|
|
86
84
|
return -1;
|
|
87
85
|
}
|
|
88
|
-
var x2 = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, v2 = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, y = Object.prototype,
|
|
89
|
-
return
|
|
86
|
+
var x2 = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, v2 = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, y = Object.prototype, _ = y.hasOwnProperty, E2 = y.toString, b = Object.hasOwn || function(e3, t3) {
|
|
87
|
+
return _.call(e3, t3);
|
|
90
88
|
}, S2 = Array.isArray || function(e3) {
|
|
91
89
|
return "[object Array]" === E2.call(e3);
|
|
92
90
|
}, k2 = /* @__PURE__ */ Object.create(null);
|
|
@@ -138,7 +136,7 @@ function requireJiti() {
|
|
|
138
136
|
var s2 = "";
|
|
139
137
|
true !== e3.allowReserved && (s2 = n[e3.ecmaVersion >= 6 ? 6 : 5 === e3.ecmaVersion ? 5 : 3], "module" === e3.sourceType && (s2 += " await")), this.reservedWords = wordsRegexp(s2);
|
|
140
138
|
var r2 = (s2 ? s2 + " " : "") + n.strict;
|
|
141
|
-
this.reservedWordsStrict = wordsRegexp(r2), this.reservedWordsStrictBind = wordsRegexp(r2 + " " + n.strictBind), this.input = String(t3), this.containsEsc = false, i2 ? (this.pos = i2, this.lineStart = this.input.lastIndexOf("\n", i2 - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(
|
|
139
|
+
this.reservedWordsStrict = wordsRegexp(r2), this.reservedWordsStrictBind = wordsRegexp(r2 + " " + n.strictBind), this.input = String(t3), this.containsEsc = false, i2 ? (this.pos = i2, this.lineStart = this.input.lastIndexOf("\n", i2 - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(m2).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = f.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 = true, this.inModule = "module" === e3.sourceType, this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = false, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), 0 === this.pos && e3.allowHashBang && "#!" === this.input.slice(0, 2) && this.skipLineComment(2), this.scopeStack = [], this.enterScope(1), this.regexpState = null, this.privateNameStack = [];
|
|
142
140
|
}, T2 = { inFunction: { configurable: true }, inGenerator: { configurable: true }, inAsync: { configurable: true }, canAwait: { configurable: true }, allowSuper: { configurable: true }, allowDirectSuper: { configurable: true }, treatFunctionsAsVar: { configurable: true }, allowNewDotTarget: { configurable: true }, inClassStaticBlock: { configurable: true } };
|
|
143
141
|
acorn_Parser.prototype.parse = function() {
|
|
144
142
|
var e3 = this.options.program || this.startNode();
|
|
@@ -192,7 +190,7 @@ function requireJiti() {
|
|
|
192
190
|
if ("use strict" === (t3[1] || t3[2])) {
|
|
193
191
|
v2.lastIndex = e3 + t3[0].length;
|
|
194
192
|
var i2 = v2.exec(this.input), s2 = i2.index + i2[0].length, r2 = this.input.charAt(s2);
|
|
195
|
-
return ";" === r2 || "}" === r2 ||
|
|
193
|
+
return ";" === r2 || "}" === r2 || m2.test(i2[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(r2) || "!" === r2 && "=" === this.input.charAt(s2 + 1));
|
|
196
194
|
}
|
|
197
195
|
e3 += t3[0].length, v2.lastIndex = e3, e3 += v2.exec(this.input)[0].length, ";" === this.input[e3] && e3++;
|
|
198
196
|
}
|
|
@@ -205,7 +203,7 @@ function requireJiti() {
|
|
|
205
203
|
}, A2.expectContextual = function(e3) {
|
|
206
204
|
this.eatContextual(e3) || this.unexpected();
|
|
207
205
|
}, A2.canInsertSemicolon = function() {
|
|
208
|
-
return this.type === f.eof || this.type === f.braceR ||
|
|
206
|
+
return this.type === f.eof || this.type === f.braceR || m2.test(this.input.slice(this.lastTokEnd, this.start));
|
|
209
207
|
}, A2.insertSemicolon = function() {
|
|
210
208
|
if (this.canInsertSemicolon()) return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), true;
|
|
211
209
|
}, A2.semicolon = function() {
|
|
@@ -268,18 +266,18 @@ function requireJiti() {
|
|
|
268
266
|
if (this.options.ecmaVersion < 8 || !this.isContextual("async")) return false;
|
|
269
267
|
v2.lastIndex = this.pos;
|
|
270
268
|
var e3, t3 = v2.exec(this.input), i2 = this.pos + t3[0].length;
|
|
271
|
-
return !(
|
|
269
|
+
return !(m2.test(this.input.slice(this.pos, i2)) || "function" !== this.input.slice(i2, i2 + 8) || i2 + 8 !== this.input.length && (isIdentifierChar(e3 = this.input.charCodeAt(i2 + 8)) || e3 > 55295 && e3 < 56320));
|
|
272
270
|
}, L2.isUsingKeyword = function(e3, t3) {
|
|
273
271
|
if (this.options.ecmaVersion < 17 || !this.isContextual(e3 ? "await" : "using")) return false;
|
|
274
272
|
v2.lastIndex = this.pos;
|
|
275
273
|
var i2 = v2.exec(this.input), s2 = this.pos + i2[0].length;
|
|
276
|
-
if (
|
|
274
|
+
if (m2.test(this.input.slice(this.pos, s2))) return false;
|
|
277
275
|
if (e3) {
|
|
278
276
|
var r2, n2 = s2 + 5;
|
|
279
277
|
if ("using" !== this.input.slice(s2, n2) || n2 === this.input.length || isIdentifierChar(r2 = this.input.charCodeAt(n2)) || r2 > 55295 && r2 < 56320) return false;
|
|
280
278
|
v2.lastIndex = n2;
|
|
281
279
|
var a2 = v2.exec(this.input);
|
|
282
|
-
if (a2 &&
|
|
280
|
+
if (a2 && m2.test(this.input.slice(n2, n2 + a2[0].length))) return false;
|
|
283
281
|
}
|
|
284
282
|
if (t3) {
|
|
285
283
|
var o2, h3 = s2 + 2;
|
|
@@ -340,8 +338,8 @@ function requireJiti() {
|
|
|
340
338
|
if (this.isAsyncFunction()) return e3 && this.unexpected(), this.next(), this.parseFunctionStatement(n2, true, !e3);
|
|
341
339
|
var c2 = this.isAwaitUsing(false) ? "await using" : this.isUsing(false) ? "using" : null;
|
|
342
340
|
if (c2) return t3 && "script" === this.options.sourceType && this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`"), "await using" === c2 && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(n2, false, c2), this.semicolon(), this.finishNode(n2, "VariableDeclaration");
|
|
343
|
-
var
|
|
344
|
-
return r2 === f.name && "Identifier" === l2.type && this.eat(f.colon) ? this.parseLabeledStatement(n2,
|
|
341
|
+
var p2 = this.value, l2 = this.parseExpression();
|
|
342
|
+
return r2 === f.name && "Identifier" === l2.type && this.eat(f.colon) ? this.parseLabeledStatement(n2, p2, l2, e3) : this.parseExpressionStatement(n2, l2);
|
|
345
343
|
}
|
|
346
344
|
}, L2.parseBreakContinueStatement = function(e3, t3) {
|
|
347
345
|
var i2 = "break" === t3;
|
|
@@ -372,8 +370,8 @@ function requireJiti() {
|
|
|
372
370
|
var h3 = this.startNode();
|
|
373
371
|
return this.next(), "await using" === o2 && this.next(), this.parseVar(h3, true, o2), this.finishNode(h3, "VariableDeclaration"), this.parseForAfterInit(e3, h3, t3);
|
|
374
372
|
}
|
|
375
|
-
var c2 = this.containsEsc,
|
|
376
|
-
return this.type === f._in || (a2 = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t3 > -1 ? (this.type === f._in && this.unexpected(t3), e3.await = true) : a2 && this.options.ecmaVersion >= 8 && (u2.start !== l2 || c2 || "Identifier" !== u2.type || "async" !== u2.name ? this.options.ecmaVersion >= 9 && (e3.await = false) : this.unexpected()), n2 && a2 && this.raise(u2.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(u2, false,
|
|
373
|
+
var c2 = this.containsEsc, p2 = new acorn_DestructuringErrors(), l2 = this.start, u2 = t3 > -1 ? this.parseExprSubscripts(p2, "await") : this.parseExpression(true, p2);
|
|
374
|
+
return this.type === f._in || (a2 = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t3 > -1 ? (this.type === f._in && this.unexpected(t3), e3.await = true) : a2 && this.options.ecmaVersion >= 8 && (u2.start !== l2 || c2 || "Identifier" !== u2.type || "async" !== u2.name ? this.options.ecmaVersion >= 9 && (e3.await = false) : this.unexpected()), n2 && a2 && this.raise(u2.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(u2, false, p2), this.checkLValPattern(u2), this.parseForIn(e3, u2)) : (this.checkExpressionErrors(p2, true), t3 > -1 && this.unexpected(t3), this.parseFor(e3, u2));
|
|
377
375
|
}, L2.parseForAfterInit = function(e3, t3, i2) {
|
|
378
376
|
return (this.type === f._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && 1 === t3.declarations.length ? (this.options.ecmaVersion >= 9 && (this.type === f._in ? i2 > -1 && this.unexpected(i2) : e3.await = i2 > -1), this.parseForIn(e3, t3)) : (i2 > -1 && this.unexpected(i2), this.parseFor(e3, t3));
|
|
379
377
|
}, L2.parseFunctionStatement = function(e3, t3, i2) {
|
|
@@ -391,7 +389,7 @@ function requireJiti() {
|
|
|
391
389
|
} else t3 || this.unexpected(), t3.consequent.push(this.parseStatement(null));
|
|
392
390
|
return this.exitScope(), t3 && this.finishNode(t3, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e3, "SwitchStatement");
|
|
393
391
|
}, L2.parseThrowStatement = function(e3) {
|
|
394
|
-
return this.next(),
|
|
392
|
+
return this.next(), m2.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e3.argument = this.parseExpression(), this.semicolon(), this.finishNode(e3, "ThrowStatement");
|
|
395
393
|
};
|
|
396
394
|
var V2 = [];
|
|
397
395
|
L2.parseCatchClauseParam = function() {
|
|
@@ -480,8 +478,8 @@ function requireJiti() {
|
|
|
480
478
|
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? a2 = h3 : s2 = h3);
|
|
481
479
|
}
|
|
482
480
|
if (s2 ? (i2.computed = false, i2.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), i2.key.name = s2, this.finishNode(i2.key, "Identifier")) : this.parseClassElementName(i2), t3 < 13 || this.type === f.parenL || "method" !== a2 || r2 || n2) {
|
|
483
|
-
var c2 = !i2.static && checkKeyName(i2, "constructor"),
|
|
484
|
-
c2 && "method" !== a2 && this.raise(i2.key.start, "Constructor can't have get/set modifier"), i2.kind = c2 ? "constructor" : a2, this.parseClassMethod(i2, r2, n2,
|
|
481
|
+
var c2 = !i2.static && checkKeyName(i2, "constructor"), p2 = c2 && e3;
|
|
482
|
+
c2 && "method" !== a2 && this.raise(i2.key.start, "Constructor can't have get/set modifier"), i2.kind = c2 ? "constructor" : a2, this.parseClassMethod(i2, r2, n2, p2);
|
|
485
483
|
} else this.parseClassField(i2);
|
|
486
484
|
return i2;
|
|
487
485
|
}, L2.isClassElementNameStart = function() {
|
|
@@ -776,7 +774,7 @@ function requireJiti() {
|
|
|
776
774
|
return this.context[this.context.length - 1];
|
|
777
775
|
}, B2.braceIsBlock = function(e3) {
|
|
778
776
|
var t3 = this.curContext();
|
|
779
|
-
return t3 === F2.f_expr || t3 === F2.f_stat || (e3 !== f.colon || t3 !== F2.b_stat && t3 !== F2.b_expr ? e3 === f._return || e3 === f.name && this.exprAllowed ?
|
|
777
|
+
return t3 === F2.f_expr || t3 === F2.f_stat || (e3 !== f.colon || t3 !== F2.b_stat && t3 !== F2.b_expr ? e3 === f._return || e3 === f.name && this.exprAllowed ? m2.test(this.input.slice(this.lastTokEnd, this.start)) : e3 === f._else || e3 === f.semi || e3 === f.eof || e3 === f.parenR || e3 === f.arrow || (e3 === f.braceL ? t3 === F2.b_stat : e3 !== f._var && e3 !== f._const && e3 !== f.name && !this.exprAllowed) : !t3.isExpr);
|
|
780
778
|
}, B2.inGeneratorContext = function() {
|
|
781
779
|
for (var e3 = this.context.length - 1; e3 >= 1; e3--) {
|
|
782
780
|
var t3 = this.context[e3];
|
|
@@ -802,7 +800,7 @@ function requireJiti() {
|
|
|
802
800
|
this.context.push(t3 ? F2.p_stat : F2.p_expr), this.exprAllowed = true;
|
|
803
801
|
}, f.incDec.updateContext = function() {
|
|
804
802
|
}, f._function.updateContext = f._class.updateContext = function(e3) {
|
|
805
|
-
!e3.beforeExpr || e3 === f._else || e3 === f.semi && this.curContext() !== F2.p_stat || e3 === f._return &&
|
|
803
|
+
!e3.beforeExpr || e3 === f._else || e3 === f.semi && this.curContext() !== F2.p_stat || e3 === f._return && m2.test(this.input.slice(this.lastTokEnd, this.start)) || (e3 === f.colon || e3 === f.braceL) && this.curContext() === F2.b_stat ? this.context.push(F2.f_stat) : this.context.push(F2.f_expr), this.exprAllowed = false;
|
|
806
804
|
}, f.colon.updateContext = function() {
|
|
807
805
|
"function" === this.curContext().token && this.context.pop(), this.exprAllowed = true;
|
|
808
806
|
}, f.backQuote.updateContext = function() {
|
|
@@ -865,8 +863,8 @@ function requireJiti() {
|
|
|
865
863
|
this.type !== f.parenL && this.type !== f.name || (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = "await" === e3);
|
|
866
864
|
var c2 = this.parseMaybeConditional(e3, t3);
|
|
867
865
|
if (i2 && (c2 = i2.call(this, c2, o2, h3)), this.type.isAssign) {
|
|
868
|
-
var
|
|
869
|
-
return
|
|
866
|
+
var p2 = this.startNodeAt(o2, h3);
|
|
867
|
+
return p2.operator = this.value, this.type === f.eq && (c2 = this.toAssignable(c2, false, t3)), s2 || (t3.parenthesizedAssign = t3.trailingComma = t3.doubleProto = -1), t3.shorthandAssign >= c2.start && (t3.shorthandAssign = -1), this.type === f.eq ? this.checkLValPattern(c2) : this.checkLValSimple(c2), p2.left = c2, this.next(), p2.right = this.parseMaybeAssign(e3), a2 > -1 && (t3.doubleProto = a2), this.finishNode(p2, "AssignmentExpression");
|
|
870
868
|
}
|
|
871
869
|
return s2 && this.checkExpressionErrors(t3, true), r2 > -1 && (t3.parenthesizedAssign = r2), n2 > -1 && (t3.trailingComma = n2), c2;
|
|
872
870
|
}, $2.parseMaybeConditional = function(e3, t3) {
|
|
@@ -887,7 +885,7 @@ function requireJiti() {
|
|
|
887
885
|
o2 && (n2 = f.logicalAND.binop);
|
|
888
886
|
var h3 = this.value;
|
|
889
887
|
this.next();
|
|
890
|
-
var c2 = this.start,
|
|
888
|
+
var c2 = this.start, p2 = this.startLoc, l2 = this.parseExprOp(this.parseMaybeUnary(null, false, false, r2), c2, p2, n2, r2), u2 = this.buildBinary(t3, i2, e3, l2, h3, a2 || o2);
|
|
891
889
|
return (a2 && this.type === f.coalesce || o2 && (this.type === f.logicalOR || this.type === f.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(u2, t3, i2, s2, r2);
|
|
892
890
|
}
|
|
893
891
|
return e3;
|
|
@@ -935,14 +933,14 @@ function requireJiti() {
|
|
|
935
933
|
s2 && h3 && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
936
934
|
var c2 = this.eat(f.bracketL);
|
|
937
935
|
if (c2 || h3 && this.type !== f.parenL && this.type !== f.backQuote || this.eat(f.dot)) {
|
|
938
|
-
var
|
|
939
|
-
|
|
936
|
+
var p2 = this.startNodeAt(t3, i2);
|
|
937
|
+
p2.object = e3, c2 ? (p2.property = this.parseExpression(), this.expect(f.bracketR)) : this.type === f.privateId && "Super" !== e3.type ? p2.property = this.parsePrivateIdent() : p2.property = this.parseIdent("never" !== this.options.allowReserved), p2.computed = !!c2, o2 && (p2.optional = h3), e3 = this.finishNode(p2, "MemberExpression");
|
|
940
938
|
} else if (!s2 && this.eat(f.parenL)) {
|
|
941
|
-
var l2 = new acorn_DestructuringErrors(), u2 = this.yieldPos, d3 = this.awaitPos,
|
|
939
|
+
var l2 = new acorn_DestructuringErrors(), u2 = this.yieldPos, d3 = this.awaitPos, m3 = this.awaitIdentPos;
|
|
942
940
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
943
941
|
var g3 = this.parseExprList(f.parenR, this.options.ecmaVersion >= 8, false, l2);
|
|
944
|
-
if (r2 && !h3 && this.shouldParseAsyncArrow()) return this.checkPatternErrors(l2, false), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = u2, this.awaitPos = d3, this.awaitIdentPos =
|
|
945
|
-
this.checkExpressionErrors(l2, true), this.yieldPos = u2 || this.yieldPos, this.awaitPos = d3 || this.awaitPos, this.awaitIdentPos =
|
|
942
|
+
if (r2 && !h3 && this.shouldParseAsyncArrow()) return this.checkPatternErrors(l2, false), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = u2, this.awaitPos = d3, this.awaitIdentPos = m3, this.parseSubscriptAsyncArrow(t3, i2, g3, a2);
|
|
943
|
+
this.checkExpressionErrors(l2, true), this.yieldPos = u2 || this.yieldPos, this.awaitPos = d3 || this.awaitPos, this.awaitIdentPos = m3 || this.awaitIdentPos;
|
|
946
944
|
var x3 = this.startNodeAt(t3, i2);
|
|
947
945
|
x3.callee = e3, x3.arguments = g3, o2 && (x3.optional = h3), e3 = this.finishNode(x3, "CallExpression");
|
|
948
946
|
} else if (this.type === f.backQuote) {
|
|
@@ -978,8 +976,8 @@ function requireJiti() {
|
|
|
978
976
|
case f._false:
|
|
979
977
|
return (s2 = this.startNode()).value = this.type === f._null ? null : this.type === f._true, s2.raw = this.type.keyword, this.next(), this.finishNode(s2, "Literal");
|
|
980
978
|
case f.parenL:
|
|
981
|
-
var
|
|
982
|
-
return e3 && (e3.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(l2) && (e3.parenthesizedAssign =
|
|
979
|
+
var p2 = this.start, l2 = this.parseParenAndDistinguishExpression(r2, t3);
|
|
980
|
+
return e3 && (e3.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(l2) && (e3.parenthesizedAssign = p2), e3.parenthesizedBind < 0 && (e3.parenthesizedBind = p2)), l2;
|
|
983
981
|
case f.bracketL:
|
|
984
982
|
return s2 = this.startNode(), this.next(), s2.elements = this.parseExprList(f.bracketR, true, true, e3), this.finishNode(s2, "ArrayExpression");
|
|
985
983
|
case f.braceL:
|
|
@@ -1031,9 +1029,9 @@ function requireJiti() {
|
|
|
1031
1029
|
var i2, s2 = this.start, r2 = this.startLoc, n2 = this.options.ecmaVersion >= 8;
|
|
1032
1030
|
if (this.options.ecmaVersion >= 6) {
|
|
1033
1031
|
this.next();
|
|
1034
|
-
var a2, o2 = this.start, h3 = this.startLoc, c2 = [],
|
|
1032
|
+
var a2, o2 = this.start, h3 = this.startLoc, c2 = [], p2 = true, l2 = false, u2 = new acorn_DestructuringErrors(), d3 = this.yieldPos, m3 = this.awaitPos;
|
|
1035
1033
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== f.parenR; ) {
|
|
1036
|
-
if (
|
|
1034
|
+
if (p2 ? p2 = false : this.expect(f.comma), n2 && this.afterTrailingComma(f.parenR, true)) {
|
|
1037
1035
|
l2 = true;
|
|
1038
1036
|
break;
|
|
1039
1037
|
}
|
|
@@ -1044,8 +1042,8 @@ function requireJiti() {
|
|
|
1044
1042
|
c2.push(this.parseMaybeAssign(false, u2, this.parseParenItem));
|
|
1045
1043
|
}
|
|
1046
1044
|
var g3 = this.lastTokEnd, x3 = this.lastTokEndLoc;
|
|
1047
|
-
if (this.expect(f.parenR), e3 && this.shouldParseArrow(c2) && this.eat(f.arrow)) return this.checkPatternErrors(u2, false), this.checkYieldAwaitInDefaultParams(), this.yieldPos = d3, this.awaitPos =
|
|
1048
|
-
c2.length && !l2 || this.unexpected(this.lastTokStart), a2 && this.unexpected(a2), this.checkExpressionErrors(u2, true), this.yieldPos = d3 || this.yieldPos, this.awaitPos =
|
|
1045
|
+
if (this.expect(f.parenR), e3 && this.shouldParseArrow(c2) && this.eat(f.arrow)) return this.checkPatternErrors(u2, false), this.checkYieldAwaitInDefaultParams(), this.yieldPos = d3, this.awaitPos = m3, this.parseParenArrowList(s2, r2, c2, t3);
|
|
1046
|
+
c2.length && !l2 || this.unexpected(this.lastTokStart), a2 && this.unexpected(a2), this.checkExpressionErrors(u2, true), this.yieldPos = d3 || this.yieldPos, this.awaitPos = m3 || this.awaitPos, c2.length > 1 ? ((i2 = this.startNodeAt(o2, h3)).expressions = c2, this.finishNodeAt(i2, "SequenceExpression", g3, x3)) : i2 = c2[0];
|
|
1049
1047
|
} else i2 = this.parseParenExpression();
|
|
1050
1048
|
if (this.options.preserveParens) {
|
|
1051
1049
|
var v3 = this.startNodeAt(s2, r2);
|
|
@@ -1082,7 +1080,7 @@ function requireJiti() {
|
|
|
1082
1080
|
for (i2.quasis = [s2]; !s2.tail; ) this.type === f.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(f.dollarBraceL), i2.expressions.push(this.parseExpression()), this.expect(f.braceR), i2.quasis.push(s2 = this.parseTemplateElement({ isTagged: t3 }));
|
|
1083
1081
|
return this.next(), this.finishNode(i2, "TemplateLiteral");
|
|
1084
1082
|
}, $2.isAsyncProp = function(e3) {
|
|
1085
|
-
return !e3.computed && "Identifier" === e3.key.type && "async" === e3.key.name && (this.type === f.name || this.type === f.num || this.type === f.string || this.type === f.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === f.star) && !
|
|
1083
|
+
return !e3.computed && "Identifier" === e3.key.type && "async" === e3.key.name && (this.type === f.name || this.type === f.num || this.type === f.string || this.type === f.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === f.star) && !m2.test(this.input.slice(this.lastTokEnd, this.start));
|
|
1086
1084
|
}, $2.parseObj = function(e3, t3) {
|
|
1087
1085
|
var i2 = this.startNode(), s2 = true, r2 = {};
|
|
1088
1086
|
for (i2.properties = [], this.next(); !this.eat(f.braceR); ) {
|
|
@@ -1815,7 +1813,7 @@ function requireJiti() {
|
|
|
1815
1813
|
return 61 === this.input.charCodeAt(this.pos + 1) ? this.finishOp(f.assign, 2) : this.finishOp(f.bitwiseXOR, 1);
|
|
1816
1814
|
}, ce2.readToken_plus_min = function(e3) {
|
|
1817
1815
|
var t3 = this.input.charCodeAt(this.pos + 1);
|
|
1818
|
-
return t3 === e3 ? 45 !== t3 || this.inModule || 62 !== this.input.charCodeAt(this.pos + 2) || 0 !== this.lastTokEnd && !
|
|
1816
|
+
return t3 === e3 ? 45 !== t3 || this.inModule || 62 !== this.input.charCodeAt(this.pos + 2) || 0 !== this.lastTokEnd && !m2.test(this.input.slice(this.lastTokEnd, this.pos)) ? this.finishOp(f.incDec, 2) : (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : 61 === t3 ? this.finishOp(f.assign, 2) : this.finishOp(f.plusMin, 1);
|
|
1819
1817
|
}, ce2.readToken_lt_gt = function(e3) {
|
|
1820
1818
|
var t3 = this.input.charCodeAt(this.pos + 1), i2 = 1;
|
|
1821
1819
|
return t3 === e3 ? (i2 = 62 === e3 && 62 === this.input.charCodeAt(this.pos + 2) ? 3 : 2, 61 === this.input.charCodeAt(this.pos + i2) ? this.finishOp(f.assign, i2 + 1) : this.finishOp(f.bitShift, i2)) : 33 !== t3 || 60 !== e3 || this.inModule || 45 !== this.input.charCodeAt(this.pos + 2) || 45 !== this.input.charCodeAt(this.pos + 3) ? (61 === t3 && (i2 = 2), this.finishOp(f.relational, i2)) : (this.skipLineComment(4), this.skipSpace(), this.nextToken());
|
|
@@ -1921,7 +1919,7 @@ function requireJiti() {
|
|
|
1921
1919
|
for (var e3, t3, i2 = this.pos; ; ) {
|
|
1922
1920
|
this.pos >= this.input.length && this.raise(i2, "Unterminated regular expression");
|
|
1923
1921
|
var s2 = this.input.charAt(this.pos);
|
|
1924
|
-
if (
|
|
1922
|
+
if (m2.test(s2) && this.raise(i2, "Unterminated regular expression"), e3) e3 = false;
|
|
1925
1923
|
else {
|
|
1926
1924
|
if ("[" === s2) t3 = true;
|
|
1927
1925
|
else if ("]" === s2 && t3) t3 = false;
|
|
@@ -1944,11 +1942,11 @@ function requireJiti() {
|
|
|
1944
1942
|
return this.finishToken(f.regexp, { pattern: r2, flags: a2, value: h3 });
|
|
1945
1943
|
}, ce2.readInt = function(e3, t3, i2) {
|
|
1946
1944
|
for (var s2 = this.options.ecmaVersion >= 12 && void 0 === t3, r2 = i2 && 48 === this.input.charCodeAt(this.pos), n2 = this.pos, a2 = 0, o2 = 0, h3 = 0, c2 = null == t3 ? 1 / 0 : t3; h3 < c2; ++h3, ++this.pos) {
|
|
1947
|
-
var
|
|
1948
|
-
if (s2 && 95 ===
|
|
1945
|
+
var p2 = this.input.charCodeAt(this.pos), l2 = void 0;
|
|
1946
|
+
if (s2 && 95 === p2) r2 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), 95 === o2 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), 0 === h3 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), o2 = p2;
|
|
1949
1947
|
else {
|
|
1950
|
-
if ((l2 =
|
|
1951
|
-
o2 =
|
|
1948
|
+
if ((l2 = p2 >= 97 ? p2 - 97 + 10 : p2 >= 65 ? p2 - 65 + 10 : p2 >= 48 && p2 <= 57 ? p2 - 48 : 1 / 0) >= e3) break;
|
|
1949
|
+
o2 = p2, a2 = a2 * e3 + l2;
|
|
1952
1950
|
}
|
|
1953
1951
|
}
|
|
1954
1952
|
return s2 && 95 === o2 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === n2 || null != t3 && this.pos - n2 !== t3 ? null : a2;
|
|
@@ -2095,7 +2093,7 @@ function requireJiti() {
|
|
|
2095
2093
|
var e3 = this.readWord1(), t3 = f.name;
|
|
2096
2094
|
return this.keywords.test(e3) && (t3 = d2[e3]), this.finishToken(t3, e3);
|
|
2097
2095
|
};
|
|
2098
|
-
acorn_Parser.acorn = { Parser: acorn_Parser, version: "8.15.0", defaultOptions: I2, Position: acorn_Position, SourceLocation: acorn_SourceLocation, getLineInfo, Node: acorn_Node, TokenType: acorn_TokenType, tokTypes: f, keywordTypes: d2, TokContext: acorn_TokContext, tokContexts: F2, isIdentifierChar, isIdentifierStart, Token: acorn_Token, isNewLine, lineBreak:
|
|
2096
|
+
acorn_Parser.acorn = { Parser: acorn_Parser, version: "8.15.0", defaultOptions: I2, Position: acorn_Position, SourceLocation: acorn_SourceLocation, getLineInfo, Node: acorn_Node, TokenType: acorn_TokenType, tokTypes: f, keywordTypes: d2, TokContext: acorn_TokContext, tokContexts: F2, isIdentifierChar, isIdentifierStart, Token: acorn_Token, isNewLine, lineBreak: m2, lineBreakG: g2, nonASCIIwhitespace: x2 };
|
|
2099
2097
|
const le2 = require$$1, ue2 = require$$2;
|
|
2100
2098
|
const fe2 = /^\.?\//;
|
|
2101
2099
|
function withTrailingSlash(e3 = "", t3) {
|
|
@@ -2408,8 +2406,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2408
2406
|
emitInvalidSegmentDeprecation(n2 ? Be2.call(et, e3, () => t3) : e3, o3, i2, s2, a2, r2, true);
|
|
2409
2407
|
}
|
|
2410
2408
|
}
|
|
2411
|
-
const c2 = new _e2.URL(e3, s2),
|
|
2412
|
-
if (!
|
|
2409
|
+
const c2 = new _e2.URL(e3, s2), p2 = c2.pathname, l2 = new _e2.URL(".", s2).pathname;
|
|
2410
|
+
if (!p2.startsWith(l2)) throw invalidPackageTarget(i2, e3, s2, a2, r2);
|
|
2413
2411
|
if ("" === t3) return c2;
|
|
2414
2412
|
if (null !== Qe.exec(t3)) {
|
|
2415
2413
|
const h4 = n2 ? i2.replace("*", () => t3) : i2 + t3;
|
|
@@ -2433,32 +2431,32 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2433
2431
|
if (Array.isArray(t3)) {
|
|
2434
2432
|
const c2 = t3;
|
|
2435
2433
|
if (0 === c2.length) return null;
|
|
2436
|
-
let
|
|
2434
|
+
let p2, l2 = -1;
|
|
2437
2435
|
for (; ++l2 < c2.length; ) {
|
|
2438
2436
|
const t4 = c2[l2];
|
|
2439
2437
|
let u2;
|
|
2440
2438
|
try {
|
|
2441
2439
|
u2 = resolvePackageTarget(e3, t4, i2, s2, r2, n2, a2, o2, h3);
|
|
2442
2440
|
} catch (e4) {
|
|
2443
|
-
if (
|
|
2441
|
+
if (p2 = e4, "ERR_INVALID_PACKAGE_TARGET" === e4.code) continue;
|
|
2444
2442
|
throw e4;
|
|
2445
2443
|
}
|
|
2446
2444
|
if (void 0 !== u2) {
|
|
2447
2445
|
if (null !== u2) return u2;
|
|
2448
|
-
|
|
2446
|
+
p2 = null;
|
|
2449
2447
|
}
|
|
2450
2448
|
}
|
|
2451
|
-
if (null ==
|
|
2452
|
-
throw
|
|
2449
|
+
if (null == p2) return null;
|
|
2450
|
+
throw p2;
|
|
2453
2451
|
}
|
|
2454
2452
|
if ("object" == typeof t3 && null !== t3) {
|
|
2455
2453
|
const c2 = Object.getOwnPropertyNames(t3);
|
|
2456
|
-
let
|
|
2457
|
-
for (; ++
|
|
2458
|
-
if (isArrayIndex(c2[
|
|
2454
|
+
let p2 = -1;
|
|
2455
|
+
for (; ++p2 < c2.length; ) {
|
|
2456
|
+
if (isArrayIndex(c2[p2])) throw new qe((0, _e2.fileURLToPath)(e3), r2, '"exports" cannot contain numeric property keys.');
|
|
2459
2457
|
}
|
|
2460
|
-
for (
|
|
2461
|
-
const l2 = c2[
|
|
2458
|
+
for (p2 = -1; ++p2 < c2.length; ) {
|
|
2459
|
+
const l2 = c2[p2];
|
|
2462
2460
|
if ("default" === l2 || h3 && h3.has(l2)) {
|
|
2463
2461
|
const c3 = resolvePackageTarget(e3, t3[l2], i2, s2, r2, n2, a2, o2, h3);
|
|
2464
2462
|
if (void 0 === c3) continue;
|
|
@@ -2568,8 +2566,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2568
2566
|
o2 = c2, h3 = new _e2.URL((n2 ? "../../../../node_modules/" : "../../../node_modules/") + s2 + "/package.json", h3), c2 = (0, _e2.fileURLToPath)(h3);
|
|
2569
2567
|
continue;
|
|
2570
2568
|
}
|
|
2571
|
-
const
|
|
2572
|
-
return void 0 !==
|
|
2569
|
+
const p2 = read(c2, { base: t3, specifier: e3 });
|
|
2570
|
+
return void 0 !== p2.exports && null !== p2.exports ? packageExportsResolve(h3, r2, p2, t3, i2) : "." === r2 ? legacyMainResolve(h3, p2, t3) : new _e2.URL(r2, h3);
|
|
2573
2571
|
} while (c2.length !== o2.length);
|
|
2574
2572
|
throw new Ge(s2, (0, _e2.fileURLToPath)(t3), false);
|
|
2575
2573
|
}
|
|
@@ -2947,8 +2945,8 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2947
2945
|
} catch {
|
|
2948
2946
|
}
|
|
2949
2947
|
}
|
|
2950
|
-
})(r2)?.type, c2 = ".cjs" === n2,
|
|
2951
|
-
if (
|
|
2948
|
+
})(r2)?.type, c2 = ".cjs" === n2, p2 = i2.forceTranspile ?? (!c2 && !(h3 && i2.async) && (o2 || h3 || e3.isTransformRe.test(r2) || hasESMSyntax(t3))), l2 = Gt.performance.now();
|
|
2949
|
+
if (p2) {
|
|
2952
2950
|
t3 = transform(e3, { filename: r2, source: t3, ts: o2, async: i2.async ?? false, jsx: e3.opts.jsx });
|
|
2953
2951
|
const s3 = Math.round(1e3 * (Gt.performance.now() - l2)) / 1e3;
|
|
2954
2952
|
debug(e3, "[transpile]", i2.async ? "[esm]" : "[cjs]", r2, `(${s3}ms)`);
|
|
@@ -2965,17 +2963,17 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
2965
2963
|
const d3 = createJiti2(r2, e3.opts, { parentModule: u2, parentCache: a2, nativeImport: e3.nativeImport, onError: e3.onError, createRequire: e3.createRequire }, true);
|
|
2966
2964
|
let f2;
|
|
2967
2965
|
u2.require = d3, u2.path = pathe_M_eThtNZ_dirname(r2), u2.paths = le2.Module._nodeModulePaths(u2.path), a2[r2] = u2, e3.opts.moduleCache && (e3.nativeRequire.cache[r2] = u2);
|
|
2968
|
-
const
|
|
2966
|
+
const m3 = (function(e4, t4) {
|
|
2969
2967
|
return `(${t4?.async ? "async " : ""}function (exports, require, module, __filename, __dirname, jitiImport, jitiESMResolve) { ${e4}
|
|
2970
2968
|
});`;
|
|
2971
2969
|
})(t3, { async: i2.async });
|
|
2972
2970
|
try {
|
|
2973
|
-
f2 = Kt().runInThisContext(
|
|
2971
|
+
f2 = Kt().runInThisContext(m3, { filename: r2, lineOffset: 0, displayErrors: false });
|
|
2974
2972
|
} catch (t4) {
|
|
2975
2973
|
"SyntaxError" === t4.name && i2.async && e3.nativeImport ? (debug(e3, "[esm]", "[import]", "[fallback]", r2), f2 = (function(e4, t5) {
|
|
2976
2974
|
const i3 = `data:text/javascript;base64,${Buffer.from(`export default ${e4}`).toString("base64")}`;
|
|
2977
2975
|
return (...e5) => t5(i3).then((t6) => t6.default(...e5));
|
|
2978
|
-
})(
|
|
2976
|
+
})(m3, e3.nativeImport)) : (e3.opts.moduleCache && delete e3.nativeRequire.cache[r2], e3.onError(t4));
|
|
2979
2977
|
}
|
|
2980
2978
|
let g3;
|
|
2981
2979
|
try {
|
|
@@ -3003,7 +3001,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3003
3001
|
return void 0 !== e4.cache && (i3.fsCache = e4.cache), void 0 !== e4.requireCache && (i3.moduleCache = e4.requireCache), { ...t4, ...i3, ...e4 };
|
|
3004
3002
|
})(t3), n2 = r2.alias && Object.keys(r2.alias).length > 0 ? normalizeAliases(r2.alias || {}) : void 0, a2 = ["typescript", "jiti", ...r2.nativeModules || []], o2 = new RegExp(`node_modules/(${a2.map((e4) => escapeStringRegexp(e4)).join("|")})/`), h3 = [...r2.transformModules || []], c2 = new RegExp(`node_modules/(${h3.map((e4) => escapeStringRegexp(e4)).join("|")})/`);
|
|
3005
3003
|
e3 || (e3 = process.cwd()), !s2 && isDir(e3) && (e3 = pathe_M_eThtNZ_join(e3, "_index.js"));
|
|
3006
|
-
const
|
|
3004
|
+
const p2 = pathToFileURL(e3), l2 = [...r2.extensions].filter((e4) => ".js" !== e4), u2 = i2.createRequire(Jt ? e3.replace(/\//g, "\\") : e3), d3 = { filename: e3, url: p2, opts: r2, alias: n2, nativeModules: a2, transformModules: h3, isNativeRe: o2, isTransformRe: c2, additionalExts: l2, nativeRequire: u2, onError: i2.onError, parentModule: i2.parentModule, parentCache: i2.parentCache, nativeImport: i2.nativeImport, createRequire: i2.createRequire };
|
|
3007
3005
|
s2 || debug(d3, "[init]", ...[["version:", ut.rE], ["module-cache:", r2.moduleCache], ["fs-cache:", r2.fsCache], ["rebuild-fs-cache:", r2.rebuildFsCache], ["interop-defaults:", r2.interopDefault]].flat()), s2 || prepareCacheDir(d3);
|
|
3008
3006
|
const f2 = Object.assign(function(e4) {
|
|
3009
3007
|
return jitiRequire(d3, e4, { async: false });
|
|
@@ -3014,7 +3012,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
3014
3012
|
return t4?.default ? i3?.default ?? i3 : i3;
|
|
3015
3013
|
}, esmResolve(e4, t4) {
|
|
3016
3014
|
"string" == typeof t4 && (t4 = { parentURL: t4 });
|
|
3017
|
-
const i3 = jitiResolve(d3, e4, { parentURL:
|
|
3015
|
+
const i3 = jitiResolve(d3, e4, { parentURL: p2, ...t4, async: true });
|
|
3018
3016
|
return !i3 || "string" != typeof i3 || i3.startsWith("file://") ? i3 : pathToFileURL(i3);
|
|
3019
3017
|
} });
|
|
3020
3018
|
return f2;
|
|
@@ -3054,9 +3052,9 @@ const F$1 = ["charset", "import", "namespace"], L$1 = ["layer"], D = ({ name: e
|
|
|
3054
3052
|
function I$1(e, t) {
|
|
3055
3053
|
return `@${e}${t ? " " : ""}${t}`;
|
|
3056
3054
|
}
|
|
3057
|
-
const U = /\d/, P$1 = ["-", "_", "/", "."];
|
|
3055
|
+
const U$1 = /\d/, P$1 = ["-", "_", "/", "."];
|
|
3058
3056
|
function M(e = "") {
|
|
3059
|
-
if (!U.test(e))
|
|
3057
|
+
if (!U$1.test(e))
|
|
3060
3058
|
return e !== e.toLowerCase();
|
|
3061
3059
|
}
|
|
3062
3060
|
function N(e, t) {
|
|
@@ -3086,17 +3084,17 @@ function N(e, t) {
|
|
|
3086
3084
|
}
|
|
3087
3085
|
return n.push(o), n;
|
|
3088
3086
|
}
|
|
3089
|
-
function k(e) {
|
|
3087
|
+
function k$1(e) {
|
|
3090
3088
|
return e ? e[0].toUpperCase() + e.slice(1) : "";
|
|
3091
3089
|
}
|
|
3092
|
-
function V
|
|
3090
|
+
function V(e) {
|
|
3093
3091
|
return e ? e[0].toLowerCase() + e.slice(1) : "";
|
|
3094
3092
|
}
|
|
3095
|
-
function
|
|
3096
|
-
return e ? (Array.isArray(e) ? e : N(e)).map((r) => k(r)).join("") : "";
|
|
3093
|
+
function K$1(e, t) {
|
|
3094
|
+
return e ? (Array.isArray(e) ? e : N(e)).map((r) => k$1(r)).join("") : "";
|
|
3097
3095
|
}
|
|
3098
|
-
function
|
|
3099
|
-
return V
|
|
3096
|
+
function q$1(e, t) {
|
|
3097
|
+
return V(K$1(e || ""));
|
|
3100
3098
|
}
|
|
3101
3099
|
function z$1(e, t) {
|
|
3102
3100
|
return e ? (Array.isArray(e) ? e : N(e)).map((r) => r.toLowerCase()).join("-") : "";
|
|
@@ -3113,7 +3111,7 @@ function J$1(e) {
|
|
|
3113
3111
|
return e === e.toUpperCase();
|
|
3114
3112
|
}
|
|
3115
3113
|
function Z$1(e) {
|
|
3116
|
-
return
|
|
3114
|
+
return q$1(e);
|
|
3117
3115
|
}
|
|
3118
3116
|
function W$1(e) {
|
|
3119
3117
|
return z$1(e);
|
|
@@ -3129,14 +3127,14 @@ function Y$1(e) {
|
|
|
3129
3127
|
` : ""}${e.map((t) => `${Q$1(`${t}`)}
|
|
3130
3128
|
`).join("")}}`;
|
|
3131
3129
|
}
|
|
3132
|
-
function
|
|
3130
|
+
function B(e) {
|
|
3133
3131
|
return `--${(e.startsWith("--") ? e.slice(2) : e).replace(/[^a-zA-Z0-9_\-\u0080-\uFFFF]/g, "-") || "unknown-variable"}`;
|
|
3134
3132
|
}
|
|
3135
3133
|
function X$1(e, t) {
|
|
3136
|
-
return O(
|
|
3134
|
+
return O(B(e), t);
|
|
3137
3135
|
}
|
|
3138
3136
|
function ee$1(e, t) {
|
|
3139
|
-
return `var(${
|
|
3137
|
+
return `var(${B(e)}${t ? `, ${t}` : ""})`;
|
|
3140
3138
|
}
|
|
3141
3139
|
function R$1(e, t) {
|
|
3142
3140
|
return `${e} ${Y$1(t)}`;
|
|
@@ -3146,38 +3144,38 @@ function te$1(e) {
|
|
|
3146
3144
|
return Object.entries(r).map(([o, s]) => O(o, e(s, n)));
|
|
3147
3145
|
};
|
|
3148
3146
|
}
|
|
3149
|
-
function
|
|
3147
|
+
function E$1(e) {
|
|
3150
3148
|
return function(r, n) {
|
|
3151
3149
|
const s = (n.variables?.name ?? w)({ name: r.name });
|
|
3152
3150
|
return X$1(s, e(r.value, n));
|
|
3153
3151
|
};
|
|
3154
3152
|
}
|
|
3155
3153
|
function S$1(e) {
|
|
3156
|
-
const t =
|
|
3154
|
+
const t = E$1(e), r = te$1(e);
|
|
3157
3155
|
return function(o, s, u) {
|
|
3158
3156
|
const { variables: a, declarations: c, children: i } = s, f = o === ":root", l = (a ?? []).map(
|
|
3159
3157
|
(A2) => t(A2, u)
|
|
3160
|
-
),
|
|
3158
|
+
), m2 = r(
|
|
3161
3159
|
c ?? {},
|
|
3162
3160
|
u
|
|
3163
3161
|
), y = (i ?? []).map(
|
|
3164
3162
|
(A2) => e(A2, u)
|
|
3165
|
-
),
|
|
3166
|
-
return f ? `${
|
|
3163
|
+
), p = l.length > 0, b = m2.length > 0, C2 = y.length > 0;
|
|
3164
|
+
return f ? `${p || b ? R$1(o, [
|
|
3167
3165
|
...l,
|
|
3168
|
-
...
|
|
3169
|
-
...
|
|
3170
|
-
]) : ""}${C2 && (
|
|
3166
|
+
...p && b ? [""] : [],
|
|
3167
|
+
...m2
|
|
3168
|
+
]) : ""}${C2 && (p || b) ? `
|
|
3171
3169
|
|
|
3172
3170
|
` : ""}${y.join(`
|
|
3173
3171
|
|
|
3174
3172
|
`)}` : R$1(o, [
|
|
3175
3173
|
...l,
|
|
3176
|
-
...
|
|
3177
|
-
...
|
|
3174
|
+
...p && (C2 || b) ? [""] : [],
|
|
3175
|
+
...m2,
|
|
3178
3176
|
...b && C2 ? [""] : [],
|
|
3179
3177
|
...y.flatMap(
|
|
3180
|
-
(A2,
|
|
3178
|
+
(A2, _) => _ === y.length - 1 ? [A2] : [A2, ""]
|
|
3181
3179
|
)
|
|
3182
3180
|
]);
|
|
3183
3181
|
};
|
|
@@ -3260,8 +3258,8 @@ function pe$1(e) {
|
|
|
3260
3258
|
function n(u, a) {
|
|
3261
3259
|
const c = Object.keys(u), i = Array.from({ length: c.length });
|
|
3262
3260
|
for (let f = 0; f < c.length; f++) {
|
|
3263
|
-
const l = c[f],
|
|
3264
|
-
typeof
|
|
3261
|
+
const l = c[f], m2 = u[l];
|
|
3262
|
+
typeof m2 != "object" || m2 === null ? i[l] = m2 : m2.constructor !== Object && (r = t.get(m2.constructor)) ? i[l] = r(m2, a) : ArrayBuffer.isView(m2) ? i[l] = g(m2) : i[l] = a(m2);
|
|
3265
3263
|
}
|
|
3266
3264
|
return i;
|
|
3267
3265
|
}
|
|
@@ -3306,17 +3304,17 @@ function ye$1(e) {
|
|
|
3306
3304
|
return e.proto ? a : u;
|
|
3307
3305
|
function s(c, i) {
|
|
3308
3306
|
const f = Object.keys(c), l = Array.from({ length: f.length });
|
|
3309
|
-
for (let
|
|
3310
|
-
const y = f[
|
|
3311
|
-
if (typeof
|
|
3312
|
-
l[y] =
|
|
3313
|
-
else if (
|
|
3314
|
-
l[y] = o(
|
|
3315
|
-
else if (ArrayBuffer.isView(
|
|
3316
|
-
l[y] = g(
|
|
3307
|
+
for (let m2 = 0; m2 < f.length; m2++) {
|
|
3308
|
+
const y = f[m2], p = c[y];
|
|
3309
|
+
if (typeof p != "object" || p === null)
|
|
3310
|
+
l[y] = p;
|
|
3311
|
+
else if (p.constructor !== Object && (o = n.get(p.constructor)))
|
|
3312
|
+
l[y] = o(p, i);
|
|
3313
|
+
else if (ArrayBuffer.isView(p))
|
|
3314
|
+
l[y] = g(p);
|
|
3317
3315
|
else {
|
|
3318
|
-
const b = t.indexOf(
|
|
3319
|
-
b !== -1 ? l[y] = r[b] : l[y] = i(
|
|
3316
|
+
const b = t.indexOf(p);
|
|
3317
|
+
b !== -1 ? l[y] = r[b] : l[y] = i(p);
|
|
3320
3318
|
}
|
|
3321
3319
|
}
|
|
3322
3320
|
return l;
|
|
@@ -3338,8 +3336,8 @@ function ye$1(e) {
|
|
|
3338
3336
|
else if (ArrayBuffer.isView(l))
|
|
3339
3337
|
i[f] = g(l);
|
|
3340
3338
|
else {
|
|
3341
|
-
const
|
|
3342
|
-
|
|
3339
|
+
const m2 = t.indexOf(l);
|
|
3340
|
+
m2 !== -1 ? i[f] = r[m2] : i[f] = u(l);
|
|
3343
3341
|
}
|
|
3344
3342
|
}
|
|
3345
3343
|
return t.pop(), r.pop(), i;
|
|
@@ -3360,8 +3358,8 @@ function ye$1(e) {
|
|
|
3360
3358
|
else if (ArrayBuffer.isView(l))
|
|
3361
3359
|
i[f] = g(l);
|
|
3362
3360
|
else {
|
|
3363
|
-
const
|
|
3364
|
-
|
|
3361
|
+
const m2 = t.indexOf(l);
|
|
3362
|
+
m2 !== -1 ? i[f] = r[m2] : i[f] = a(l);
|
|
3365
3363
|
}
|
|
3366
3364
|
}
|
|
3367
3365
|
return t.pop(), r.pop(), i;
|
|
@@ -3382,7 +3380,7 @@ function he(e) {
|
|
|
3382
3380
|
);
|
|
3383
3381
|
};
|
|
3384
3382
|
}
|
|
3385
|
-
function be
|
|
3383
|
+
function be(e) {
|
|
3386
3384
|
const t = S$1(e);
|
|
3387
3385
|
return function(n, o) {
|
|
3388
3386
|
return n.themes.reduce(
|
|
@@ -3400,7 +3398,7 @@ function Ae$1(e) {
|
|
|
3400
3398
|
return t(n.query, n, o);
|
|
3401
3399
|
};
|
|
3402
3400
|
}
|
|
3403
|
-
function ge(e) {
|
|
3401
|
+
function ge$1(e) {
|
|
3404
3402
|
const t = S$1(e);
|
|
3405
3403
|
return function(n, o) {
|
|
3406
3404
|
const u = (o.themes?.selector ?? D)({ name: n.name });
|
|
@@ -3421,7 +3419,7 @@ function Se(e) {
|
|
|
3421
3419
|
};
|
|
3422
3420
|
}
|
|
3423
3421
|
function d(e, t) {
|
|
3424
|
-
const r = be
|
|
3422
|
+
const r = be(d), n = Ae$1(d), o = Se(d), s = re$1(d), u = ge$1(d), a = E$1(d), c = he(d), i = ne$1(d), f = de$1();
|
|
3425
3423
|
switch (true) {
|
|
3426
3424
|
case v$1(e):
|
|
3427
3425
|
return n(e, t);
|
|
@@ -3519,7 +3517,7 @@ async function Oe(e) {
|
|
|
3519
3517
|
["verify"]
|
|
3520
3518
|
);
|
|
3521
3519
|
}
|
|
3522
|
-
async function
|
|
3520
|
+
async function Be({
|
|
3523
3521
|
payload: e,
|
|
3524
3522
|
signature: t
|
|
3525
3523
|
}) {
|
|
@@ -3538,7 +3536,7 @@ async function Ee({
|
|
|
3538
3536
|
);
|
|
3539
3537
|
return JSON.parse(e);
|
|
3540
3538
|
}
|
|
3541
|
-
function
|
|
3539
|
+
function Ee(e) {
|
|
3542
3540
|
return Object.prototype.hasOwnProperty.call(e, we);
|
|
3543
3541
|
}
|
|
3544
3542
|
async function Te(e) {
|
|
@@ -3562,7 +3560,7 @@ async function Te(e) {
|
|
|
3562
3560
|
valid: false
|
|
3563
3561
|
};
|
|
3564
3562
|
try {
|
|
3565
|
-
return await
|
|
3563
|
+
return await Be(
|
|
3566
3564
|
r
|
|
3567
3565
|
);
|
|
3568
3566
|
} catch {
|
|
@@ -3598,7 +3596,7 @@ function _e(e) {
|
|
|
3598
3596
|
}
|
|
3599
3597
|
});
|
|
3600
3598
|
}
|
|
3601
|
-
function
|
|
3599
|
+
function $(e, t = "") {
|
|
3602
3600
|
return {
|
|
3603
3601
|
name: e,
|
|
3604
3602
|
content: t
|
|
@@ -3609,19 +3607,19 @@ async function Le(e, {
|
|
|
3609
3607
|
consumers: r = { css: d, ts: j$1 }
|
|
3610
3608
|
} = {}) {
|
|
3611
3609
|
const n = { files: [] }, o = e.options;
|
|
3612
|
-
if (
|
|
3610
|
+
if (Ee(e)) {
|
|
3613
3611
|
const s = await Te(e);
|
|
3614
3612
|
(!s.valid || s.instanceId !== e.id) && _e(e);
|
|
3615
3613
|
}
|
|
3616
3614
|
if (t === "all" || t === "css") {
|
|
3617
|
-
const s =
|
|
3615
|
+
const s = $(
|
|
3618
3616
|
"index.css",
|
|
3619
3617
|
r.css(e.root, o)
|
|
3620
3618
|
);
|
|
3621
3619
|
n.files.push(s);
|
|
3622
3620
|
}
|
|
3623
3621
|
if (t === "all" || t === "ts") {
|
|
3624
|
-
const s =
|
|
3622
|
+
const s = $(
|
|
3625
3623
|
"index.ts",
|
|
3626
3624
|
r.ts(e.root, o)
|
|
3627
3625
|
);
|
|
@@ -3637,7 +3635,7 @@ async function directoryExists(path2) {
|
|
|
3637
3635
|
return false;
|
|
3638
3636
|
}
|
|
3639
3637
|
}
|
|
3640
|
-
async function build
|
|
3638
|
+
async function build(instance, { clean = true, outputDir = "./styleframe", transpiler } = {}) {
|
|
3641
3639
|
await validateInstanceLicense(instance, {
|
|
3642
3640
|
licenseKey: getLicenseKeyFromEnv() || "",
|
|
3643
3641
|
environment: process.env.NODE_ENV || "development",
|
|
@@ -3658,38 +3656,38 @@ async function build$1(instance, { clean = true, outputDir = "./styleframe", tra
|
|
|
3658
3656
|
await writeFile(filePath, file.content);
|
|
3659
3657
|
}
|
|
3660
3658
|
}
|
|
3661
|
-
function
|
|
3659
|
+
function K(e) {
|
|
3662
3660
|
return typeof e == "object" && e !== null;
|
|
3663
3661
|
}
|
|
3664
|
-
function
|
|
3665
|
-
return
|
|
3662
|
+
function m(e, r) {
|
|
3663
|
+
return K(e) && "type" in e && e.type === r;
|
|
3666
3664
|
}
|
|
3667
3665
|
function L(e) {
|
|
3668
|
-
return
|
|
3666
|
+
return m(e, "variable");
|
|
3669
3667
|
}
|
|
3670
3668
|
function A(e) {
|
|
3671
|
-
return
|
|
3669
|
+
return m(e, "reference");
|
|
3672
3670
|
}
|
|
3673
|
-
function
|
|
3674
|
-
return
|
|
3671
|
+
function ge(e) {
|
|
3672
|
+
return m(e, "selector");
|
|
3675
3673
|
}
|
|
3676
3674
|
function q(e) {
|
|
3677
|
-
return
|
|
3675
|
+
return m(e, "modifier");
|
|
3678
3676
|
}
|
|
3679
3677
|
function E(e) {
|
|
3680
|
-
return
|
|
3678
|
+
return m(e, "css");
|
|
3681
3679
|
}
|
|
3682
3680
|
function Ae(e) {
|
|
3683
|
-
return
|
|
3681
|
+
return m(e, "recipe");
|
|
3684
3682
|
}
|
|
3685
3683
|
function G(e) {
|
|
3686
3684
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null;
|
|
3687
3685
|
}
|
|
3688
|
-
function
|
|
3689
|
-
return G(e) || A(e) || E(e) || Array.isArray(e) && e.every(
|
|
3686
|
+
function U(e) {
|
|
3687
|
+
return G(e) || A(e) || E(e) || Array.isArray(e) && e.every(U);
|
|
3690
3688
|
}
|
|
3691
3689
|
function I(e) {
|
|
3692
|
-
return
|
|
3690
|
+
return K(e) && "children" in e && "declarations" in e && "variables" in e;
|
|
3693
3691
|
}
|
|
3694
3692
|
function z(e = (r) => r) {
|
|
3695
3693
|
return (r) => {
|
|
@@ -3714,7 +3712,7 @@ function W(e, r) {
|
|
|
3714
3712
|
};
|
|
3715
3713
|
};
|
|
3716
3714
|
}
|
|
3717
|
-
function
|
|
3715
|
+
function S(e, r) {
|
|
3718
3716
|
return function(t, i, c) {
|
|
3719
3717
|
const o = {
|
|
3720
3718
|
type: "at-rule",
|
|
@@ -3724,17 +3722,17 @@ function C(e, r) {
|
|
|
3724
3722
|
variables: [],
|
|
3725
3723
|
children: []
|
|
3726
3724
|
}, u = v(o, r);
|
|
3727
|
-
return typeof c == "function" ? o.declarations = c(u) ?? {} : c && (o.declarations = c),
|
|
3725
|
+
return typeof c == "function" ? o.declarations = c(u) ?? {} : c && (o.declarations = c), k(o.declarations, u), e.children.push(o), o;
|
|
3728
3726
|
};
|
|
3729
3727
|
}
|
|
3730
3728
|
function Y(e, r) {
|
|
3731
|
-
const n =
|
|
3729
|
+
const n = S(e, r);
|
|
3732
3730
|
return function(i, c) {
|
|
3733
3731
|
return n("media", i, c);
|
|
3734
3732
|
};
|
|
3735
3733
|
}
|
|
3736
3734
|
function Z(e, r) {
|
|
3737
|
-
const n =
|
|
3735
|
+
const n = S(e, r);
|
|
3738
3736
|
return function(i, c) {
|
|
3739
3737
|
return n("keyframes", i, c);
|
|
3740
3738
|
};
|
|
@@ -3761,7 +3759,7 @@ function Q(e, r) {
|
|
|
3761
3759
|
variables: [],
|
|
3762
3760
|
children: []
|
|
3763
3761
|
}, o = v(c, r);
|
|
3764
|
-
return typeof i == "function" ? c.declarations = i(o) ?? {} : I(i) ? (c.variables = i.variables, c.declarations = i.declarations, c.children = i.children) : c.declarations = i,
|
|
3762
|
+
return typeof i == "function" ? c.declarations = i(o) ?? {} : I(i) ? (c.variables = i.variables, c.declarations = i.declarations, c.children = i.children) : c.declarations = i, k(c.declarations, o), e.children.push(c), c;
|
|
3765
3763
|
};
|
|
3766
3764
|
}
|
|
3767
3765
|
function X(e, r) {
|
|
@@ -3784,7 +3782,7 @@ function X(e, r) {
|
|
|
3784
3782
|
};
|
|
3785
3783
|
}
|
|
3786
3784
|
function v(e, r) {
|
|
3787
|
-
const n = X(e), t = Q(e, r), i =
|
|
3785
|
+
const n = X(e), t = Q(e, r), i = S(e, r), c = Z(r, r), o = Y(e, r), u = J(), s = W();
|
|
3788
3786
|
return {
|
|
3789
3787
|
variable: n,
|
|
3790
3788
|
selector: t,
|
|
@@ -3795,11 +3793,11 @@ function v(e, r) {
|
|
|
3795
3793
|
css: s
|
|
3796
3794
|
};
|
|
3797
3795
|
}
|
|
3798
|
-
function
|
|
3796
|
+
function k(e, r) {
|
|
3799
3797
|
for (const n in e)
|
|
3800
3798
|
if (n.startsWith("@")) {
|
|
3801
3799
|
const t = e[n];
|
|
3802
|
-
if (typeof t == "object" && t !== null &&
|
|
3800
|
+
if (typeof t == "object" && t !== null && !U(t)) {
|
|
3803
3801
|
const i = n.replace(/^@(\w+).*/, "$1"), c = n.replace(`@${i}`, "").trim();
|
|
3804
3802
|
r.atRule(i, c, t), delete e[n];
|
|
3805
3803
|
}
|
|
@@ -3884,16 +3882,16 @@ function te(e) {
|
|
|
3884
3882
|
function c(s, f) {
|
|
3885
3883
|
const l = Object.keys(s), a = Array.from({ length: l.length });
|
|
3886
3884
|
for (let y = 0; y < l.length; y++) {
|
|
3887
|
-
const
|
|
3885
|
+
const p = l[y], d2 = s[p];
|
|
3888
3886
|
if (typeof d2 != "object" || d2 === null)
|
|
3889
|
-
a[
|
|
3887
|
+
a[p] = d2;
|
|
3890
3888
|
else if (d2.constructor !== Object && (i = t.get(d2.constructor)))
|
|
3891
|
-
a[
|
|
3889
|
+
a[p] = i(d2, f);
|
|
3892
3890
|
else if (ArrayBuffer.isView(d2))
|
|
3893
|
-
a[
|
|
3891
|
+
a[p] = j(d2);
|
|
3894
3892
|
else {
|
|
3895
3893
|
const h2 = r.indexOf(d2);
|
|
3896
|
-
h2 !== -1 ? a[
|
|
3894
|
+
h2 !== -1 ? a[p] = n[h2] : a[p] = f(d2);
|
|
3897
3895
|
}
|
|
3898
3896
|
}
|
|
3899
3897
|
return a;
|
|
@@ -3989,7 +3987,7 @@ function fe(e, r, n) {
|
|
|
3989
3987
|
declarations: R(t.declarations),
|
|
3990
3988
|
variables: R(t.variables),
|
|
3991
3989
|
children: R(t.children)
|
|
3992
|
-
}),
|
|
3990
|
+
}), k(t.declarations, i);
|
|
3993
3991
|
return t;
|
|
3994
3992
|
}
|
|
3995
3993
|
function ue(e, r) {
|
|
@@ -4037,7 +4035,7 @@ function le(e, r) {
|
|
|
4037
4035
|
for (const [l, a] of Object.entries(f)) {
|
|
4038
4036
|
const y = o.values.find(
|
|
4039
4037
|
(h2) => h2.key === l && h2.modifiers.length === 0
|
|
4040
|
-
),
|
|
4038
|
+
), p = {
|
|
4041
4039
|
type: "utility",
|
|
4042
4040
|
name: t,
|
|
4043
4041
|
value: l,
|
|
@@ -4046,32 +4044,32 @@ function le(e, r) {
|
|
|
4046
4044
|
children: [],
|
|
4047
4045
|
modifiers: []
|
|
4048
4046
|
}, d2 = v(
|
|
4049
|
-
|
|
4047
|
+
p,
|
|
4050
4048
|
r
|
|
4051
4049
|
);
|
|
4052
|
-
if (
|
|
4050
|
+
if (p.declarations = i({
|
|
4053
4051
|
...d2,
|
|
4054
4052
|
value: a
|
|
4055
|
-
}) ?? {},
|
|
4053
|
+
}) ?? {}, k(p.declarations, d2), y || (o.values.push({
|
|
4056
4054
|
key: l,
|
|
4057
4055
|
value: a,
|
|
4058
4056
|
modifiers: []
|
|
4059
|
-
}), e.children.push(
|
|
4060
|
-
const h2 = s.map((
|
|
4061
|
-
(
|
|
4062
|
-
)).reduce((
|
|
4057
|
+
}), e.children.push(p)), s && s.length > 0) {
|
|
4058
|
+
const h2 = s.map((g2) => g2.key), H2 = ce(h2).filter((g2) => !o.values.find(
|
|
4059
|
+
(b) => b.key === l && b.modifiers.length === g2.length && b.modifiers.every((w2) => g2.includes(w2))
|
|
4060
|
+
)).reduce((g2, b) => {
|
|
4063
4061
|
const w2 = /* @__PURE__ */ new Map();
|
|
4064
|
-
for (const
|
|
4065
|
-
const
|
|
4066
|
-
(N2) => N2.key.includes(
|
|
4062
|
+
for (const $2 of b) {
|
|
4063
|
+
const V2 = s.find(
|
|
4064
|
+
(N2) => N2.key.includes($2)
|
|
4067
4065
|
);
|
|
4068
|
-
|
|
4066
|
+
V2 && q(V2) && w2.set($2, V2);
|
|
4069
4067
|
}
|
|
4070
4068
|
return o.values.push({
|
|
4071
4069
|
key: l,
|
|
4072
4070
|
value: a,
|
|
4073
|
-
modifiers:
|
|
4074
|
-
}),
|
|
4071
|
+
modifiers: b
|
|
4072
|
+
}), g2.push(fe(p, r, w2)), g2;
|
|
4075
4073
|
}, []);
|
|
4076
4074
|
e.children.push(...H2);
|
|
4077
4075
|
}
|
|
@@ -4101,10 +4099,10 @@ function de(e, r) {
|
|
|
4101
4099
|
type: "recipe",
|
|
4102
4100
|
...t
|
|
4103
4101
|
};
|
|
4104
|
-
return i._runtime =
|
|
4102
|
+
return i._runtime = pe(i, r), me(i, r), r.recipes.push(i), i;
|
|
4105
4103
|
};
|
|
4106
4104
|
}
|
|
4107
|
-
function
|
|
4105
|
+
function C(e, r) {
|
|
4108
4106
|
const n = e.autogenerate(r);
|
|
4109
4107
|
return Object.keys(n)[0] ?? "default";
|
|
4110
4108
|
}
|
|
@@ -4115,21 +4113,25 @@ function F(e, r) {
|
|
|
4115
4113
|
const c = {};
|
|
4116
4114
|
for (const [o, u] of Object.entries(i)) {
|
|
4117
4115
|
const s = T(r, o);
|
|
4118
|
-
s
|
|
4116
|
+
s ? c[o] = C(
|
|
4119
4117
|
s,
|
|
4120
4118
|
u
|
|
4121
|
-
)
|
|
4119
|
+
) : console.warn(
|
|
4120
|
+
`[styleframe] Utility "${o}" not found in registry. Skipping runtime generation for this declaration.`
|
|
4121
|
+
);
|
|
4122
4122
|
}
|
|
4123
4123
|
n[t] = c;
|
|
4124
4124
|
} else if (typeof i == "boolean")
|
|
4125
4125
|
n[t] = i;
|
|
4126
4126
|
else {
|
|
4127
4127
|
const c = T(r, t);
|
|
4128
|
-
c
|
|
4128
|
+
c ? n[t] = C(c, i) : console.warn(
|
|
4129
|
+
`[styleframe] Utility "${t}" not found in registry. Skipping runtime generation for this declaration.`
|
|
4130
|
+
);
|
|
4129
4131
|
}
|
|
4130
4132
|
return n;
|
|
4131
4133
|
}
|
|
4132
|
-
function
|
|
4134
|
+
function pe(e, r) {
|
|
4133
4135
|
const n = {};
|
|
4134
4136
|
if (e.base && (n.base = F(e.base, r)), e.variants) {
|
|
4135
4137
|
const t = {};
|
|
@@ -4174,7 +4176,7 @@ function T(e, r) {
|
|
|
4174
4176
|
const t = r.replace(/[A-Z]/g, (i) => `-${i.toLowerCase()}`);
|
|
4175
4177
|
return e.utilities.find((i) => i.name === t);
|
|
4176
4178
|
}
|
|
4177
|
-
function
|
|
4179
|
+
function me(e, r) {
|
|
4178
4180
|
const n = /* @__PURE__ */ new Map();
|
|
4179
4181
|
if (e.base && x(e.base, n), e.variants)
|
|
4180
4182
|
for (const i of Object.values(e.variants))
|
|
@@ -4217,7 +4219,7 @@ function pe(e, r) {
|
|
|
4217
4219
|
}
|
|
4218
4220
|
}
|
|
4219
4221
|
function Re(e) {
|
|
4220
|
-
const r = ne("sf-"), n = ae(), t = { ...e }, i = le(n, n), c = ue(n, n), o = de(n, n), u = ye(n, n), { variable: s, selector: f, atRule: l, keyframes: a, media: y, ref:
|
|
4222
|
+
const r = ne("sf-"), n = ae(), t = { ...e }, i = le(n, n), c = ue(n, n), o = de(n, n), u = ye(n, n), { variable: s, selector: f, atRule: l, keyframes: a, media: y, ref: p, css: d2 } = v(n, n);
|
|
4221
4223
|
return {
|
|
4222
4224
|
id: r,
|
|
4223
4225
|
root: n,
|
|
@@ -4230,7 +4232,7 @@ function Re(e) {
|
|
|
4230
4232
|
atRule: l,
|
|
4231
4233
|
keyframes: a,
|
|
4232
4234
|
media: y,
|
|
4233
|
-
ref:
|
|
4235
|
+
ref: p,
|
|
4234
4236
|
css: d2,
|
|
4235
4237
|
options: t
|
|
4236
4238
|
};
|
|
@@ -4257,7 +4259,7 @@ function trackNamedExports(module) {
|
|
|
4257
4259
|
if (exportName === "default") continue;
|
|
4258
4260
|
if (Ae(exportValue)) {
|
|
4259
4261
|
exportValue._exportName = exportName;
|
|
4260
|
-
} else if (
|
|
4262
|
+
} else if (ge(exportValue)) {
|
|
4261
4263
|
exportValue._exportName = exportName;
|
|
4262
4264
|
}
|
|
4263
4265
|
}
|
|
@@ -4270,7 +4272,10 @@ async function loadConfiguration({
|
|
|
4270
4272
|
if (!resolvedPath) {
|
|
4271
4273
|
return Re();
|
|
4272
4274
|
}
|
|
4273
|
-
const jiti2 = createJiti(path.dirname(resolvedPath), {
|
|
4275
|
+
const jiti2 = createJiti(path.dirname(resolvedPath), {
|
|
4276
|
+
fsCache: false,
|
|
4277
|
+
moduleCache: false
|
|
4278
|
+
});
|
|
4274
4279
|
const module = await jiti2.import(resolvedPath);
|
|
4275
4280
|
if (!module.default) {
|
|
4276
4281
|
throw new Error(
|
|
@@ -4280,48 +4285,7 @@ async function loadConfiguration({
|
|
|
4280
4285
|
trackNamedExports(module);
|
|
4281
4286
|
return module.default;
|
|
4282
4287
|
}
|
|
4283
|
-
const build = defineCommand({
|
|
4284
|
-
meta: {
|
|
4285
|
-
name: "build",
|
|
4286
|
-
description: "Build Styleframe project from source files"
|
|
4287
|
-
},
|
|
4288
|
-
args: {
|
|
4289
|
-
entry: {
|
|
4290
|
-
type: "positional",
|
|
4291
|
-
description: "Entry point file(s) for the build",
|
|
4292
|
-
default: "styleframe.config.ts",
|
|
4293
|
-
valueHint: "path"
|
|
4294
|
-
},
|
|
4295
|
-
outputDir: {
|
|
4296
|
-
type: "string",
|
|
4297
|
-
description: "Output directory for built files",
|
|
4298
|
-
default: "styleframe",
|
|
4299
|
-
alias: ["o", "out"],
|
|
4300
|
-
valueHint: "path"
|
|
4301
|
-
},
|
|
4302
|
-
clean: {
|
|
4303
|
-
type: "boolean",
|
|
4304
|
-
description: "Clean output directory before build",
|
|
4305
|
-
default: false
|
|
4306
|
-
}
|
|
4307
|
-
},
|
|
4308
|
-
async run({ args }) {
|
|
4309
|
-
consola.info(
|
|
4310
|
-
`Loading configuration from "${path.relative(process.cwd(), path.resolve(args.entry))}"...`
|
|
4311
|
-
);
|
|
4312
|
-
const instance = await loadConfiguration({ entry: args.entry });
|
|
4313
|
-
consola.info("Building styleframe...");
|
|
4314
|
-
try {
|
|
4315
|
-
await build$1(instance, {
|
|
4316
|
-
outputDir: args.outputDir,
|
|
4317
|
-
clean: args.clean
|
|
4318
|
-
});
|
|
4319
|
-
consola.success("Styleframe built successfully!");
|
|
4320
|
-
} catch (error) {
|
|
4321
|
-
consola.error("Failed to build Styleframe:", error);
|
|
4322
|
-
}
|
|
4323
|
-
}
|
|
4324
|
-
});
|
|
4325
4288
|
export {
|
|
4326
|
-
build as
|
|
4289
|
+
build as b,
|
|
4290
|
+
loadConfiguration as l
|
|
4327
4291
|
};
|