@datapos/datapos-development 0.3.268 → 0.3.270
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/dist/datapos-development.es.js +314 -312
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { promises as
|
|
1
|
+
import { promises as Ce } from "node:fs";
|
|
2
2
|
import { nanoid as Os } from "nanoid";
|
|
3
3
|
import { promisify as Rs } from "node:util";
|
|
4
4
|
import { exec as Ds, spawn as Ms } from "node:child_process";
|
|
5
|
-
var Vs = [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],
|
|
5
|
+
var Vs = [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], _r = [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], zs = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", wr = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ti = {
|
|
6
6
|
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",
|
|
7
7
|
5: "class enum extends super const export import",
|
|
8
8
|
6: "enum",
|
|
@@ -22,11 +22,11 @@ function ui(e, t) {
|
|
|
22
22
|
}
|
|
23
23
|
return !1;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Fs.test(String.fromCharCode(e)) : t === !1 ? !1 : ui(e,
|
|
25
|
+
function Ae(e, t) {
|
|
26
|
+
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Fs.test(String.fromCharCode(e)) : t === !1 ? !1 : ui(e, _r);
|
|
27
27
|
}
|
|
28
28
|
function De(e, t) {
|
|
29
|
-
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Bs.test(String.fromCharCode(e)) : t === !1 ? !1 : ui(e,
|
|
29
|
+
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Bs.test(String.fromCharCode(e)) : t === !1 ? !1 : ui(e, _r) || ui(e, Vs);
|
|
30
30
|
}
|
|
31
31
|
var z = function(t, i) {
|
|
32
32
|
i === void 0 && (i = {}), this.label = t, this.keyword = i.keyword, this.beforeExpr = !!i.beforeExpr, this.startsExpr = !!i.startsExpr, this.isLoop = !!i.isLoop, this.isAssign = !!i.isAssign, this.prefix = !!i.prefix, this.postfix = !!i.postfix, this.binop = i.binop || null, this.updateContext = null;
|
|
@@ -293,17 +293,17 @@ function Ws(e, t) {
|
|
|
293
293
|
e.locations && (y.loc = new wt(this, h, d)), e.ranges && (y.range = [n, u]), t.push(y);
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
var
|
|
296
|
+
var kt = 1, pt = 2, xi = 4, Cr = 8, gi = 16, Ar = 32, Ut = 64, Er = 128, Xe = 256, St = 512, qt = kt | pt | Xe;
|
|
297
297
|
function bi(e, t) {
|
|
298
298
|
return pt | (e ? xi : 0) | (t ? Cr : 0);
|
|
299
299
|
}
|
|
300
|
-
var Mt = 0,
|
|
300
|
+
var Mt = 0, ki = 1, je = 2, Ir = 3, Nr = 4, Lr = 5, X = function(t, i, r) {
|
|
301
301
|
this.options = t = Hs(t), this.sourceFile = t.sourceFile, this.keywords = Ze(js[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
|
|
302
302
|
var n = "";
|
|
303
303
|
t.allowReserved !== !0 && (n = ti[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (n += " await")), this.reservedWords = Ze(n);
|
|
304
304
|
var u = (n ? n + " " : "") + ti.strict;
|
|
305
305
|
this.reservedWordsStrict = Ze(u), this.reservedWordsStrictBind = Ze(u + " " + ti.strictBind), this.input = String(i), this.containsEsc = !1, r ? (this.pos = r, this.lineStart = this.input.lastIndexOf(`
|
|
306
|
-
`, r - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(ce).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = p.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 = t.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 = /* @__PURE__ */ Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(
|
|
306
|
+
`, r - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(ce).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = p.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 = t.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 = /* @__PURE__ */ Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(kt), this.regexpState = null, this.privateNameStack = [];
|
|
307
307
|
}, Ne = { 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 } };
|
|
308
308
|
X.prototype.parse = function() {
|
|
309
309
|
var t = this.options.program || this.startNode();
|
|
@@ -453,7 +453,7 @@ A.parseTopLevel = function(e) {
|
|
|
453
453
|
}
|
|
454
454
|
return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
|
|
455
455
|
};
|
|
456
|
-
var
|
|
456
|
+
var _i = { kind: "loop" }, Gs = { kind: "switch" };
|
|
457
457
|
A.isLet = function(e) {
|
|
458
458
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
459
459
|
return !1;
|
|
@@ -465,7 +465,7 @@ A.isLet = function(e) {
|
|
|
465
465
|
return !1;
|
|
466
466
|
if (r === 123 || r > 55295 && r < 56320)
|
|
467
467
|
return !0;
|
|
468
|
-
if (
|
|
468
|
+
if (Ae(r, !0)) {
|
|
469
469
|
for (var n = i + 1; De(r = this.input.charCodeAt(n), !0); )
|
|
470
470
|
++n;
|
|
471
471
|
if (r === 92 || r > 55295 && r < 56320)
|
|
@@ -505,7 +505,7 @@ A.isUsingKeyword = function(e, t) {
|
|
|
505
505
|
return !1;
|
|
506
506
|
}
|
|
507
507
|
var o = this.input.charCodeAt(r);
|
|
508
|
-
return
|
|
508
|
+
return Ae(o, !0) || o === 92;
|
|
509
509
|
};
|
|
510
510
|
A.isAwaitUsing = function(e) {
|
|
511
511
|
return this.isUsingKeyword(!0, e);
|
|
@@ -588,12 +588,12 @@ A.parseDebuggerStatement = function(e) {
|
|
|
588
588
|
return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
|
|
589
589
|
};
|
|
590
590
|
A.parseDoStatement = function(e) {
|
|
591
|
-
return this.next(), this.labels.push(
|
|
591
|
+
return this.next(), this.labels.push(_i), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(p._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(p.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
|
|
592
592
|
};
|
|
593
593
|
A.parseForStatement = function(e) {
|
|
594
594
|
this.next();
|
|
595
595
|
var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
|
|
596
|
-
if (this.labels.push(
|
|
596
|
+
if (this.labels.push(_i), this.enterScope(0), this.expect(p.parenL), this.type === p.semi)
|
|
597
597
|
return t > -1 && this.unexpected(t), this.parseFor(e, null);
|
|
598
598
|
var i = this.isLet();
|
|
599
599
|
if (this.type === p._var || this.type === p._const || i) {
|
|
@@ -649,7 +649,7 @@ A.parseVarStatement = function(e, t, i) {
|
|
|
649
649
|
return this.next(), this.parseVar(e, !1, t, i), this.semicolon(), this.finishNode(e, "VariableDeclaration");
|
|
650
650
|
};
|
|
651
651
|
A.parseWhileStatement = function(e) {
|
|
652
|
-
return this.next(), e.test = this.parseParenExpression(), this.labels.push(
|
|
652
|
+
return this.next(), e.test = this.parseParenExpression(), this.labels.push(_i), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
|
|
653
653
|
};
|
|
654
654
|
A.parseWithStatement = function(e) {
|
|
655
655
|
return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), e.object = this.parseParenExpression(), e.body = this.parseStatement("with"), this.finishNode(e, "WithStatement");
|
|
@@ -700,11 +700,11 @@ A.parseVar = function(e, t, i, r) {
|
|
|
700
700
|
return e;
|
|
701
701
|
};
|
|
702
702
|
A.parseVarId = function(e, t) {
|
|
703
|
-
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ?
|
|
703
|
+
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? ki : je, !1);
|
|
704
704
|
};
|
|
705
705
|
var gt = 1, ci = 2, Or = 4;
|
|
706
706
|
A.parseFunction = function(e, t, i, r, n) {
|
|
707
|
-
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === p.star && t & ci && this.unexpected(), e.generator = this.eat(p.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & gt && (e.id = t & Or && this.type !== p.name ? null : this.parseIdent(), e.id && !(t & ci) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ?
|
|
707
|
+
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === p.star && t & ci && this.unexpected(), e.generator = this.eat(p.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & gt && (e.id = t & Or && this.type !== p.name ? null : this.parseIdent(), e.id && !(t & ci) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? ki : je : Ir));
|
|
708
708
|
var u = this.yieldPos, h = this.awaitPos, d = this.awaitIdentPos;
|
|
709
709
|
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(bi(e.async, e.generator)), t & gt || (e.id = this.type === p.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, !1, n), this.yieldPos = u, this.awaitPos = h, this.awaitIdentPos = d, this.finishNode(e, t & gt ? "FunctionDeclaration" : "FunctionExpression");
|
|
710
710
|
};
|
|
@@ -944,8 +944,8 @@ A.isDirectiveCandidate = function(e) {
|
|
|
944
944
|
return this.options.ecmaVersion >= 5 && e.type === "ExpressionStatement" && e.expression.type === "Literal" && typeof e.expression.value == "string" && // Reject parenthesized strings.
|
|
945
945
|
(this.input[e.start] === '"' || this.input[e.start] === "'");
|
|
946
946
|
};
|
|
947
|
-
var
|
|
948
|
-
|
|
947
|
+
var Se = X.prototype;
|
|
948
|
+
Se.toAssignable = function(e, t, i) {
|
|
949
949
|
if (this.options.ecmaVersion >= 6 && e)
|
|
950
950
|
switch (e.type) {
|
|
951
951
|
case "Identifier":
|
|
@@ -990,7 +990,7 @@ we.toAssignable = function(e, t, i) {
|
|
|
990
990
|
else i && this.checkPatternErrors(i, !0);
|
|
991
991
|
return e;
|
|
992
992
|
};
|
|
993
|
-
|
|
993
|
+
Se.toAssignableList = function(e, t) {
|
|
994
994
|
for (var i = e.length, r = 0; r < i; r++) {
|
|
995
995
|
var n = e[r];
|
|
996
996
|
n && this.toAssignable(n, t);
|
|
@@ -1001,15 +1001,15 @@ we.toAssignableList = function(e, t) {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
return e;
|
|
1003
1003
|
};
|
|
1004
|
-
|
|
1004
|
+
Se.parseSpread = function(e) {
|
|
1005
1005
|
var t = this.startNode();
|
|
1006
1006
|
return this.next(), t.argument = this.parseMaybeAssign(!1, e), this.finishNode(t, "SpreadElement");
|
|
1007
1007
|
};
|
|
1008
|
-
|
|
1008
|
+
Se.parseRestBinding = function() {
|
|
1009
1009
|
var e = this.startNode();
|
|
1010
1010
|
return this.next(), this.options.ecmaVersion === 6 && this.type !== p.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.finishNode(e, "RestElement");
|
|
1011
1011
|
};
|
|
1012
|
-
|
|
1012
|
+
Se.parseBindingAtom = function() {
|
|
1013
1013
|
if (this.options.ecmaVersion >= 6)
|
|
1014
1014
|
switch (this.type) {
|
|
1015
1015
|
case p.bracketL:
|
|
@@ -1020,7 +1020,7 @@ we.parseBindingAtom = function() {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
return this.parseIdent();
|
|
1022
1022
|
};
|
|
1023
|
-
|
|
1023
|
+
Se.parseBindingList = function(e, t, i, r) {
|
|
1024
1024
|
for (var n = [], u = !0; !this.eat(e); )
|
|
1025
1025
|
if (u ? u = !1 : this.expect(p.comma), t && this.type === p.comma)
|
|
1026
1026
|
n.push(null);
|
|
@@ -1036,20 +1036,20 @@ we.parseBindingList = function(e, t, i, r) {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
return n;
|
|
1038
1038
|
};
|
|
1039
|
-
|
|
1039
|
+
Se.parseAssignableListItem = function(e) {
|
|
1040
1040
|
var t = this.parseMaybeDefault(this.start, this.startLoc);
|
|
1041
1041
|
return this.parseBindingListItem(t), t;
|
|
1042
1042
|
};
|
|
1043
|
-
|
|
1043
|
+
Se.parseBindingListItem = function(e) {
|
|
1044
1044
|
return e;
|
|
1045
1045
|
};
|
|
1046
|
-
|
|
1046
|
+
Se.parseMaybeDefault = function(e, t, i) {
|
|
1047
1047
|
if (i = i || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(p.eq))
|
|
1048
1048
|
return i;
|
|
1049
1049
|
var r = this.startNodeAt(e, t);
|
|
1050
1050
|
return r.left = i, r.right = this.parseMaybeAssign(), this.finishNode(r, "AssignmentPattern");
|
|
1051
1051
|
};
|
|
1052
|
-
|
|
1052
|
+
Se.checkLValSimple = function(e, t, i) {
|
|
1053
1053
|
t === void 0 && (t = Mt);
|
|
1054
1054
|
var r = t !== Mt;
|
|
1055
1055
|
switch (e.type) {
|
|
@@ -1068,7 +1068,7 @@ we.checkLValSimple = function(e, t, i) {
|
|
|
1068
1068
|
this.raise(e.start, (r ? "Binding" : "Assigning to") + " rvalue");
|
|
1069
1069
|
}
|
|
1070
1070
|
};
|
|
1071
|
-
|
|
1071
|
+
Se.checkLValPattern = function(e, t, i) {
|
|
1072
1072
|
switch (t === void 0 && (t = Mt), e.type) {
|
|
1073
1073
|
case "ObjectPattern":
|
|
1074
1074
|
for (var r = 0, n = e.properties; r < n.length; r += 1) {
|
|
@@ -1086,7 +1086,7 @@ we.checkLValPattern = function(e, t, i) {
|
|
|
1086
1086
|
this.checkLValSimple(e, t, i);
|
|
1087
1087
|
}
|
|
1088
1088
|
};
|
|
1089
|
-
|
|
1089
|
+
Se.checkLValInnerPattern = function(e, t, i) {
|
|
1090
1090
|
switch (t === void 0 && (t = Mt), e.type) {
|
|
1091
1091
|
case "Property":
|
|
1092
1092
|
this.checkLValInnerPattern(e.value, t, i);
|
|
@@ -1592,7 +1592,7 @@ M.isSimpleParamList = function(e) {
|
|
|
1592
1592
|
M.checkParams = function(e, t) {
|
|
1593
1593
|
for (var i = /* @__PURE__ */ Object.create(null), r = 0, n = e.params; r < n.length; r += 1) {
|
|
1594
1594
|
var u = n[r];
|
|
1595
|
-
this.checkLValInnerPattern(u,
|
|
1595
|
+
this.checkLValInnerPattern(u, ki, t ? null : i);
|
|
1596
1596
|
}
|
|
1597
1597
|
};
|
|
1598
1598
|
M.parseExprList = function(e, t, i, r) {
|
|
@@ -1657,13 +1657,13 @@ We.exitScope = function() {
|
|
|
1657
1657
|
this.scopeStack.pop();
|
|
1658
1658
|
};
|
|
1659
1659
|
We.treatFunctionsAsVarInScope = function(e) {
|
|
1660
|
-
return e.flags & pt || !this.inModule && e.flags &
|
|
1660
|
+
return e.flags & pt || !this.inModule && e.flags & kt;
|
|
1661
1661
|
};
|
|
1662
1662
|
We.declareName = function(e, t, i) {
|
|
1663
1663
|
var r = !1;
|
|
1664
1664
|
if (t === je) {
|
|
1665
1665
|
var n = this.currentScope();
|
|
1666
|
-
r = n.lexical.indexOf(e) > -1 || n.functions.indexOf(e) > -1 || n.var.indexOf(e) > -1, n.lexical.push(e), this.inModule && n.flags &
|
|
1666
|
+
r = n.lexical.indexOf(e) > -1 || n.functions.indexOf(e) > -1 || n.var.indexOf(e) > -1, n.lexical.push(e), this.inModule && n.flags & kt && delete this.undefinedExports[e];
|
|
1667
1667
|
} else if (t === Nr) {
|
|
1668
1668
|
var u = this.currentScope();
|
|
1669
1669
|
u.lexical.push(e);
|
|
@@ -1677,7 +1677,7 @@ We.declareName = function(e, t, i) {
|
|
|
1677
1677
|
r = !0;
|
|
1678
1678
|
break;
|
|
1679
1679
|
}
|
|
1680
|
-
if (y.var.push(e), this.inModule && y.flags &
|
|
1680
|
+
if (y.var.push(e), this.inModule && y.flags & kt && delete this.undefinedExports[e], y.flags & qt)
|
|
1681
1681
|
break;
|
|
1682
1682
|
}
|
|
1683
1683
|
r && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
|
|
@@ -2119,7 +2119,7 @@ P.regexp_eatRegExpIdentifierStart = function(e) {
|
|
|
2119
2119
|
return e.advance(i), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (r = e.lastIntValue), ln(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
|
|
2120
2120
|
};
|
|
2121
2121
|
function ln(e) {
|
|
2122
|
-
return
|
|
2122
|
+
return Ae(e, !0) || e === 36 || e === 95;
|
|
2123
2123
|
}
|
|
2124
2124
|
P.regexp_eatRegExpIdentifierPart = function(e) {
|
|
2125
2125
|
var t = e.pos, i = this.options.ecmaVersion >= 11, r = e.current(i);
|
|
@@ -2244,7 +2244,7 @@ P.regexp_eatDecimalEscape = function(e) {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
return !1;
|
|
2246
2246
|
};
|
|
2247
|
-
var Gr = 0, Ve = 1,
|
|
2247
|
+
var Gr = 0, Ve = 1, ke = 2;
|
|
2248
2248
|
P.regexp_eatCharacterClassEscape = function(e) {
|
|
2249
2249
|
var t = e.current();
|
|
2250
2250
|
if (mn(t))
|
|
@@ -2260,7 +2260,7 @@ P.regexp_eatCharacterClassEscape = function(e) {
|
|
|
2260
2260
|
125
|
|
2261
2261
|
/* } */
|
|
2262
2262
|
))
|
|
2263
|
-
return i && r ===
|
|
2263
|
+
return i && r === ke && e.raise("Invalid property name"), r;
|
|
2264
2264
|
e.raise("Invalid property name");
|
|
2265
2265
|
}
|
|
2266
2266
|
return Gr;
|
|
@@ -2293,7 +2293,7 @@ P.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
|
2293
2293
|
if (e.unicodeProperties.binary.test(t))
|
|
2294
2294
|
return Ve;
|
|
2295
2295
|
if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t))
|
|
2296
|
-
return
|
|
2296
|
+
return ke;
|
|
2297
2297
|
e.raise("Invalid property name");
|
|
2298
2298
|
};
|
|
2299
2299
|
P.regexp_eatUnicodePropertyName = function(e) {
|
|
@@ -2329,7 +2329,7 @@ P.regexp_eatCharacterClass = function(e) {
|
|
|
2329
2329
|
return e.eat(
|
|
2330
2330
|
93
|
|
2331
2331
|
/* ] */
|
|
2332
|
-
) || e.raise("Unterminated character class"), t && i ===
|
|
2332
|
+
) || e.raise("Unterminated character class"), t && i === ke && e.raise("Negated character class may contain strings"), !0;
|
|
2333
2333
|
}
|
|
2334
2334
|
return !1;
|
|
2335
2335
|
};
|
|
@@ -2390,13 +2390,13 @@ P.regexp_eatClassEscape = function(e) {
|
|
|
2390
2390
|
P.regexp_classSetExpression = function(e) {
|
|
2391
2391
|
var t = Ve, i;
|
|
2392
2392
|
if (!this.regexp_eatClassSetRange(e)) if (i = this.regexp_eatClassSetOperand(e)) {
|
|
2393
|
-
i ===
|
|
2393
|
+
i === ke && (t = ke);
|
|
2394
2394
|
for (var r = e.pos; e.eatChars(
|
|
2395
2395
|
[38, 38]
|
|
2396
2396
|
/* && */
|
|
2397
2397
|
); ) {
|
|
2398
2398
|
if (e.current() !== 38 && (i = this.regexp_eatClassSetOperand(e))) {
|
|
2399
|
-
i !==
|
|
2399
|
+
i !== ke && (t = Ve);
|
|
2400
2400
|
continue;
|
|
2401
2401
|
}
|
|
2402
2402
|
e.raise("Invalid character in character class");
|
|
@@ -2416,7 +2416,7 @@ P.regexp_classSetExpression = function(e) {
|
|
|
2416
2416
|
if (!this.regexp_eatClassSetRange(e)) {
|
|
2417
2417
|
if (i = this.regexp_eatClassSetOperand(e), !i)
|
|
2418
2418
|
return t;
|
|
2419
|
-
i ===
|
|
2419
|
+
i === ke && (t = ke);
|
|
2420
2420
|
}
|
|
2421
2421
|
};
|
|
2422
2422
|
P.regexp_eatClassSetRange = function(e) {
|
|
@@ -2451,7 +2451,7 @@ P.regexp_eatNestedClass = function(e) {
|
|
|
2451
2451
|
93
|
|
2452
2452
|
/* ] */
|
|
2453
2453
|
))
|
|
2454
|
-
return i && r ===
|
|
2454
|
+
return i && r === ke && e.raise("Negated character class may contain strings"), r;
|
|
2455
2455
|
e.pos = t;
|
|
2456
2456
|
}
|
|
2457
2457
|
if (e.eat(
|
|
@@ -2492,13 +2492,13 @@ P.regexp_classStringDisjunctionContents = function(e) {
|
|
|
2492
2492
|
124
|
|
2493
2493
|
/* | */
|
|
2494
2494
|
); )
|
|
2495
|
-
this.regexp_classString(e) ===
|
|
2495
|
+
this.regexp_classString(e) === ke && (t = ke);
|
|
2496
2496
|
return t;
|
|
2497
2497
|
};
|
|
2498
2498
|
P.regexp_classString = function(e) {
|
|
2499
2499
|
for (var t = 0; this.regexp_eatClassSetCharacter(e); )
|
|
2500
2500
|
t++;
|
|
2501
|
-
return t === 1 ? Ve :
|
|
2501
|
+
return t === 1 ? Ve : ke;
|
|
2502
2502
|
};
|
|
2503
2503
|
P.regexp_eatClassSetCharacter = function(e) {
|
|
2504
2504
|
var t = e.pos;
|
|
@@ -2623,7 +2623,7 @@ j.nextToken = function() {
|
|
|
2623
2623
|
this.readToken(this.fullCharCodeAtPos());
|
|
2624
2624
|
};
|
|
2625
2625
|
j.readToken = function(e) {
|
|
2626
|
-
return
|
|
2626
|
+
return Ae(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
|
|
2627
2627
|
};
|
|
2628
2628
|
j.fullCharCodeAtPos = function() {
|
|
2629
2629
|
var e = this.input.charCodeAt(this.pos);
|
|
@@ -2763,7 +2763,7 @@ j.readToken_question = function() {
|
|
|
2763
2763
|
};
|
|
2764
2764
|
j.readToken_numberSign = function() {
|
|
2765
2765
|
var e = this.options.ecmaVersion, t = 35;
|
|
2766
|
-
if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(),
|
|
2766
|
+
if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), Ae(t, !0) || t === 92))
|
|
2767
2767
|
return this.finishToken(p.privateId, this.readWord1());
|
|
2768
2768
|
this.raise(this.pos, "Unexpected character '" + Me(t) + "'");
|
|
2769
2769
|
};
|
|
@@ -2911,7 +2911,7 @@ j.readRadixNumber = function(e) {
|
|
|
2911
2911
|
var t = this.pos;
|
|
2912
2912
|
this.pos += 2;
|
|
2913
2913
|
var i = this.readInt(e);
|
|
2914
|
-
return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = es(this.input.slice(t, this.pos)), ++this.pos) :
|
|
2914
|
+
return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = es(this.input.slice(t, this.pos)), ++this.pos) : Ae(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(p.num, i);
|
|
2915
2915
|
};
|
|
2916
2916
|
j.readNumber = function(e) {
|
|
2917
2917
|
var t = this.pos;
|
|
@@ -2921,9 +2921,9 @@ j.readNumber = function(e) {
|
|
|
2921
2921
|
var r = this.input.charCodeAt(this.pos);
|
|
2922
2922
|
if (!i && !e && this.options.ecmaVersion >= 11 && r === 110) {
|
|
2923
2923
|
var n = es(this.input.slice(t, this.pos));
|
|
2924
|
-
return ++this.pos,
|
|
2924
|
+
return ++this.pos, Ae(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(p.num, n);
|
|
2925
2925
|
}
|
|
2926
|
-
i && /[89]/.test(this.input.slice(t, this.pos)) && (i = !1), r === 46 && !i && (++this.pos, this.readInt(10), r = this.input.charCodeAt(this.pos)), (r === 69 || r === 101) && !i && (r = this.input.charCodeAt(++this.pos), (r === 43 || r === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")),
|
|
2926
|
+
i && /[89]/.test(this.input.slice(t, this.pos)) && (i = !1), r === 46 && !i && (++this.pos, this.readInt(10), r = this.input.charCodeAt(this.pos)), (r === 69 || r === 101) && !i && (r = this.input.charCodeAt(++this.pos), (r === 43 || r === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), Ae(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
2927
2927
|
var u = bn(this.input.slice(t, this.pos), i);
|
|
2928
2928
|
return this.finishToken(p.num, u);
|
|
2929
2929
|
};
|
|
@@ -3086,7 +3086,7 @@ j.readWord1 = function() {
|
|
|
3086
3086
|
var u = this.pos;
|
|
3087
3087
|
this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
|
|
3088
3088
|
var h = this.readCodePoint();
|
|
3089
|
-
(t ?
|
|
3089
|
+
(t ? Ae : De)(h, r) || this.invalidStringToken(u, "Invalid Unicode escape"), e += Me(h), i = this.pos;
|
|
3090
3090
|
} else
|
|
3091
3091
|
break;
|
|
3092
3092
|
t = !1;
|
|
@@ -3112,17 +3112,17 @@ X.acorn = {
|
|
|
3112
3112
|
TokContext: ue,
|
|
3113
3113
|
tokContexts: q,
|
|
3114
3114
|
isIdentifierChar: De,
|
|
3115
|
-
isIdentifierStart:
|
|
3115
|
+
isIdentifierStart: Ae,
|
|
3116
3116
|
Token: Kt,
|
|
3117
3117
|
isNewLine: Je,
|
|
3118
3118
|
lineBreak: ce,
|
|
3119
3119
|
lineBreakG: Sr,
|
|
3120
3120
|
nonASCIIwhitespace: yi
|
|
3121
3121
|
};
|
|
3122
|
-
function
|
|
3122
|
+
function kn(e, t) {
|
|
3123
3123
|
return X.parse(e, t);
|
|
3124
3124
|
}
|
|
3125
|
-
function
|
|
3125
|
+
function _n(e, t, i) {
|
|
3126
3126
|
return X.parseExpressionAt(e, t, i);
|
|
3127
3127
|
}
|
|
3128
3128
|
function wn(e, t) {
|
|
@@ -3140,14 +3140,14 @@ const Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3140
3140
|
defaultOptions: Dt,
|
|
3141
3141
|
getLineInfo: vi,
|
|
3142
3142
|
isIdentifierChar: De,
|
|
3143
|
-
isIdentifierStart:
|
|
3143
|
+
isIdentifierStart: Ae,
|
|
3144
3144
|
isNewLine: Je,
|
|
3145
3145
|
keywordTypes: st,
|
|
3146
3146
|
lineBreak: ce,
|
|
3147
3147
|
lineBreakG: Sr,
|
|
3148
3148
|
nonASCIIwhitespace: yi,
|
|
3149
|
-
parse:
|
|
3150
|
-
parseExpressionAt:
|
|
3149
|
+
parse: kn,
|
|
3150
|
+
parseExpressionAt: _n,
|
|
3151
3151
|
tokContexts: q,
|
|
3152
3152
|
tokTypes: p,
|
|
3153
3153
|
tokenizer: wn,
|
|
@@ -3319,7 +3319,7 @@ function Wi(e) {
|
|
|
3319
3319
|
function Dn(e) {
|
|
3320
3320
|
var t = {}, i = t.dts, r = i !== void 0 && i, n = t.allowSatisfies, u = n !== void 0 && n;
|
|
3321
3321
|
return function(h) {
|
|
3322
|
-
var d = h.acorn || Sn, y = Pn(d), o = d.tokTypes, w = d.keywordTypes, E = d.isIdentifierStart, D = d.lineBreak, B = d.isNewLine, H = d.tokContexts, Ee = d.isIdentifierChar, R = y.tokTypes, ne = y.tokContexts, dt = y.keywordsRegExp,
|
|
3322
|
+
var d = h.acorn || Sn, y = Pn(d), o = d.tokTypes, w = d.keywordTypes, E = d.isIdentifierStart, D = d.lineBreak, B = d.isNewLine, H = d.tokContexts, Ee = d.isIdentifierChar, R = y.tokTypes, ne = y.tokContexts, dt = y.keywordsRegExp, Pe = y.tokenIsLiteralPropertyName, xe = y.tokenIsTemplate, Ge = y.tokenIsTSDeclarationStart, U = y.tokenIsIdentifier, Ct = y.tokenIsKeywordOrIdentifier, Is = y.tokenIsTSTypeOperator;
|
|
3323
3323
|
function Ns(T, pe, oe) {
|
|
3324
3324
|
oe === void 0 && (oe = T.length);
|
|
3325
3325
|
for (var te = pe; te < oe; te++) {
|
|
@@ -3352,8 +3352,8 @@ function Dn(e) {
|
|
|
3352
3352
|
if (this.match(te.parenL)) {
|
|
3353
3353
|
var x = this.start, b = this.startLoc;
|
|
3354
3354
|
if (this.next(), l = this.parseExpression(), this.expect(te.parenR), this.options.preserveParens) {
|
|
3355
|
-
var
|
|
3356
|
-
|
|
3355
|
+
var k = this.startNodeAt(x, b);
|
|
3356
|
+
k.expression = l, l = this.finishNode(k, "ParenthesizedExpression");
|
|
3357
3357
|
}
|
|
3358
3358
|
} else for (l = this.parseIdent(!1); this.eat(te.dot); ) {
|
|
3359
3359
|
var S = this.startNodeAt(m, v);
|
|
@@ -3379,38 +3379,38 @@ function Dn(e) {
|
|
|
3379
3379
|
return v.jsx_readToken = function() {
|
|
3380
3380
|
for (var x = "", b = this.pos; ; ) {
|
|
3381
3381
|
this.pos >= this.input.length && this.raise(this.start, "Unterminated JSX contents");
|
|
3382
|
-
var
|
|
3383
|
-
switch (
|
|
3382
|
+
var k = this.input.charCodeAt(this.pos);
|
|
3383
|
+
switch (k) {
|
|
3384
3384
|
case 60:
|
|
3385
3385
|
case 123:
|
|
3386
|
-
return this.pos === this.start ?
|
|
3386
|
+
return this.pos === this.start ? k === 60 && this.exprAllowed ? (++this.pos, this.finishToken(f.jsxTagStart)) : this.getTokenFromCode(k) : (x += this.input.slice(b, this.pos), this.finishToken(f.jsxText, x));
|
|
3387
3387
|
case 38:
|
|
3388
3388
|
x += this.input.slice(b, this.pos), x += this.jsx_readEntity(), b = this.pos;
|
|
3389
3389
|
break;
|
|
3390
3390
|
case 62:
|
|
3391
3391
|
case 125:
|
|
3392
|
-
this.raise(this.pos, "Unexpected token `" + this.input[this.pos] + "`. Did you mean `" + (
|
|
3392
|
+
this.raise(this.pos, "Unexpected token `" + this.input[this.pos] + "`. Did you mean `" + (k === 62 ? ">" : "}") + '` or `{"' + this.input[this.pos] + '"}`?');
|
|
3393
3393
|
default:
|
|
3394
|
-
s(
|
|
3394
|
+
s(k) ? (x += this.input.slice(b, this.pos), x += this.jsx_readNewLine(!0), b = this.pos) : ++this.pos;
|
|
3395
3395
|
}
|
|
3396
3396
|
}
|
|
3397
3397
|
}, v.jsx_readNewLine = function(x) {
|
|
3398
|
-
var b,
|
|
3399
|
-
return ++this.pos,
|
|
3398
|
+
var b, k = this.input.charCodeAt(this.pos);
|
|
3399
|
+
return ++this.pos, k === 13 && this.input.charCodeAt(this.pos) === 10 ? (++this.pos, b = x ? `
|
|
3400
3400
|
` : `\r
|
|
3401
|
-
`) : b = String.fromCharCode(
|
|
3401
|
+
`) : b = String.fromCharCode(k), this.options.locations && (++this.curLine, this.lineStart = this.pos), b;
|
|
3402
3402
|
}, v.jsx_readString = function(x) {
|
|
3403
|
-
for (var b = "",
|
|
3403
|
+
for (var b = "", k = ++this.pos; ; ) {
|
|
3404
3404
|
this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
|
|
3405
3405
|
var S = this.input.charCodeAt(this.pos);
|
|
3406
3406
|
if (S === x) break;
|
|
3407
|
-
S === 38 ? (b += this.input.slice(
|
|
3407
|
+
S === 38 ? (b += this.input.slice(k, this.pos), b += this.jsx_readEntity(), k = this.pos) : s(S) ? (b += this.input.slice(k, this.pos), b += this.jsx_readNewLine(!1), k = this.pos) : ++this.pos;
|
|
3408
3408
|
}
|
|
3409
|
-
return b += this.input.slice(
|
|
3409
|
+
return b += this.input.slice(k, this.pos++), this.finishToken(F.string, b);
|
|
3410
3410
|
}, v.jsx_readEntity = function() {
|
|
3411
|
-
var x, b = "",
|
|
3411
|
+
var x, b = "", k = 0, S = this.input[this.pos];
|
|
3412
3412
|
S !== "&" && this.raise(this.pos, "Entity must start with an ampersand");
|
|
3413
|
-
for (var N = ++this.pos; this.pos < this.input.length &&
|
|
3413
|
+
for (var N = ++this.pos; this.pos < this.input.length && k++ < 10; ) {
|
|
3414
3414
|
if ((S = this.input[this.pos++]) === ";") {
|
|
3415
3415
|
b[0] === "#" ? b[1] === "x" ? (b = b.substr(2), In.test(b) && (x = String.fromCharCode(parseInt(b, 16)))) : (b = b.substr(1), Nn.test(b) && (x = String.fromCharCode(parseInt(b, 10)))) : x = En[b];
|
|
3416
3416
|
break;
|
|
@@ -3428,18 +3428,18 @@ function Dn(e) {
|
|
|
3428
3428
|
var x = this.startNode();
|
|
3429
3429
|
return this.type === f.jsxName ? x.name = this.value : this.type.keyword ? x.name = this.type.keyword : this.unexpected(), this.next(), this.finishNode(x, "JSXIdentifier");
|
|
3430
3430
|
}, v.jsx_parseNamespacedName = function() {
|
|
3431
|
-
var x = this.start, b = this.startLoc,
|
|
3432
|
-
if (!c.allowNamespaces || !this.eat(F.colon)) return
|
|
3431
|
+
var x = this.start, b = this.startLoc, k = this.jsx_parseIdentifier();
|
|
3432
|
+
if (!c.allowNamespaces || !this.eat(F.colon)) return k;
|
|
3433
3433
|
var S = this.startNodeAt(x, b);
|
|
3434
|
-
return S.namespace =
|
|
3434
|
+
return S.namespace = k, S.name = this.jsx_parseIdentifier(), this.finishNode(S, "JSXNamespacedName");
|
|
3435
3435
|
}, v.jsx_parseElementName = function() {
|
|
3436
3436
|
if (this.type === f.jsxTagEnd) return "";
|
|
3437
|
-
var x = this.start, b = this.startLoc,
|
|
3438
|
-
for (this.type !== F.dot ||
|
|
3437
|
+
var x = this.start, b = this.startLoc, k = this.jsx_parseNamespacedName();
|
|
3438
|
+
for (this.type !== F.dot || k.type !== "JSXNamespacedName" || c.allowNamespacedObjects || this.unexpected(); this.eat(F.dot); ) {
|
|
3439
3439
|
var S = this.startNodeAt(x, b);
|
|
3440
|
-
S.object =
|
|
3440
|
+
S.object = k, S.property = this.jsx_parseIdentifier(), k = this.finishNode(S, "JSXMemberExpression");
|
|
3441
3441
|
}
|
|
3442
|
-
return
|
|
3442
|
+
return k;
|
|
3443
3443
|
}, v.jsx_parseAttributeValue = function() {
|
|
3444
3444
|
switch (this.type) {
|
|
3445
3445
|
case F.braceL:
|
|
@@ -3461,16 +3461,16 @@ function Dn(e) {
|
|
|
3461
3461
|
var x = this.startNode();
|
|
3462
3462
|
return this.eat(F.braceL) ? (this.expect(F.ellipsis), x.argument = this.parseMaybeAssign(), this.expect(F.braceR), this.finishNode(x, "JSXSpreadAttribute")) : (x.name = this.jsx_parseNamespacedName(), x.value = this.eat(F.eq) ? this.jsx_parseAttributeValue() : null, this.finishNode(x, "JSXAttribute"));
|
|
3463
3463
|
}, v.jsx_parseOpeningElementAt = function(x, b) {
|
|
3464
|
-
var
|
|
3465
|
-
|
|
3464
|
+
var k = this.startNodeAt(x, b);
|
|
3465
|
+
k.attributes = [];
|
|
3466
3466
|
var S = this.jsx_parseElementName();
|
|
3467
|
-
for (S && (
|
|
3468
|
-
return
|
|
3467
|
+
for (S && (k.name = S); this.type !== F.slash && this.type !== f.jsxTagEnd; ) k.attributes.push(this.jsx_parseAttribute());
|
|
3468
|
+
return k.selfClosing = this.eat(F.slash), this.expect(f.jsxTagEnd), this.finishNode(k, S ? "JSXOpeningElement" : "JSXOpeningFragment");
|
|
3469
3469
|
}, v.jsx_parseClosingElementAt = function(x, b) {
|
|
3470
|
-
var
|
|
3471
|
-
return S && (
|
|
3470
|
+
var k = this.startNodeAt(x, b), S = this.jsx_parseElementName();
|
|
3471
|
+
return S && (k.name = S), this.expect(f.jsxTagEnd), this.finishNode(k, S ? "JSXClosingElement" : "JSXClosingFragment");
|
|
3472
3472
|
}, v.jsx_parseElementAt = function(x, b) {
|
|
3473
|
-
var
|
|
3473
|
+
var k = this.startNodeAt(x, b), S = [], N = this.jsx_parseOpeningElementAt(x, b), V = null;
|
|
3474
3474
|
if (!N.selfClosing) {
|
|
3475
3475
|
e: for (; ; ) switch (this.type) {
|
|
3476
3476
|
case f.jsxTagStart:
|
|
@@ -3492,7 +3492,7 @@ function Dn(e) {
|
|
|
3492
3492
|
bt(V.name) !== bt(N.name) && this.raise(V.start, "Expected corresponding JSX closing tag for <" + bt(N.name) + ">");
|
|
3493
3493
|
}
|
|
3494
3494
|
var C = N.name ? "Element" : "Fragment";
|
|
3495
|
-
return
|
|
3495
|
+
return k["opening" + C] = N, k["closing" + C] = V, k.children = S, this.type === F.relational && this.value === "<" && this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(k, "JSX" + C);
|
|
3496
3496
|
}, v.jsx_parseText = function() {
|
|
3497
3497
|
var x = this.parseLiteral(this.value);
|
|
3498
3498
|
return x.type = "JSXText", x;
|
|
@@ -3694,7 +3694,7 @@ function Dn(e) {
|
|
|
3694
3694
|
l ? m[a] = c : Object.defineProperty(m, a, { enumerable: l, value: c });
|
|
3695
3695
|
}
|
|
3696
3696
|
}, f.isLiteralPropertyName = function() {
|
|
3697
|
-
return
|
|
3697
|
+
return Pe(this.type);
|
|
3698
3698
|
}, f.hasPrecedingLineBreak = function() {
|
|
3699
3699
|
return D.test(this.input.slice(this.lastTokEndLoc.index, this.start));
|
|
3700
3700
|
}, f.createIdentifier = function(s, a) {
|
|
@@ -4178,16 +4178,16 @@ function Dn(e) {
|
|
|
4178
4178
|
a[v] = c[v];
|
|
4179
4179
|
}
|
|
4180
4180
|
}, f.tsParseModifiers = function(s) {
|
|
4181
|
-
for (var a = this, c = s.modified, l = s.allowedModifiers, m = s.disallowedModifiers, v = s.stopOnStartOfClassStaticBlock, x = s.errorTemplate, b = x === void 0 ? I.InvalidModifierOnTypeMember : x,
|
|
4181
|
+
for (var a = this, c = s.modified, l = s.allowedModifiers, m = s.disallowedModifiers, v = s.stopOnStartOfClassStaticBlock, x = s.errorTemplate, b = x === void 0 ? I.InvalidModifierOnTypeMember : x, k = {}, S = function(G, W, J, ie) {
|
|
4182
4182
|
W === J && c[ie] && a.raise(G.column, I.InvalidModifiersOrder({ orderedModifiers: [J, ie] }));
|
|
4183
4183
|
}, N = function(G, W, J, ie) {
|
|
4184
4184
|
(c[J] && W === ie || c[ie] && W === J) && a.raise(G.column, I.IncompatibleModifiers({ modifiers: [J, ie] }));
|
|
4185
4185
|
}; ; ) {
|
|
4186
4186
|
var V = this.startLoc, C = this.tsParseModifier(l.concat(m ?? []), v);
|
|
4187
4187
|
if (!C) break;
|
|
4188
|
-
Wi(C) ? c.accessibility ? this.raise(this.start, I.DuplicateAccessibilityModifier()) : (S(V, C, C, "override"), S(V, C, C, "static"), S(V, C, C, "readonly"), S(V, C, C, "accessor"),
|
|
4188
|
+
Wi(C) ? c.accessibility ? this.raise(this.start, I.DuplicateAccessibilityModifier()) : (S(V, C, C, "override"), S(V, C, C, "static"), S(V, C, C, "readonly"), S(V, C, C, "accessor"), k.accessibility = C, c.accessibility = C) : On(C) ? c[C] ? this.raise(this.start, I.DuplicateModifier({ modifier: C })) : (S(V, C, "in", "out"), k[C] = C, c[C] = !0) : Ln(C) ? c[C] ? this.raise(this.start, I.DuplicateModifier({ modifier: C })) : (N(V, C, "accessor", "readonly"), N(V, C, "accessor", "static"), N(V, C, "accessor", "override"), k[C] = C, c[C] = !0) : Object.hasOwnProperty.call(c, C) ? this.raise(this.start, I.DuplicateModifier({ modifier: C })) : (S(V, C, "static", "readonly"), S(V, C, "static", "override"), S(V, C, "override", "readonly"), S(V, C, "abstract", "override"), N(V, C, "declare", "override"), N(V, C, "static", "abstract"), k[C] = C, c[C] = !0), m != null && m.includes(C) && this.raise(this.start, b);
|
|
4189
4189
|
}
|
|
4190
|
-
return
|
|
4190
|
+
return k;
|
|
4191
4191
|
}, f.tsParseInOutModifiers = function(s) {
|
|
4192
4192
|
this.tsParseModifiers({ modified: s, allowedModifiers: ["in", "out"], disallowedModifiers: ["public", "private", "protected", "readonly", "declare", "abstract", "override"], errorTemplate: I.InvalidModifierOnTypeParameter });
|
|
4193
4193
|
}, f.tsParseTypeArguments = function() {
|
|
@@ -4233,8 +4233,8 @@ function Dn(e) {
|
|
|
4233
4233
|
}
|
|
4234
4234
|
var b = c;
|
|
4235
4235
|
a && (b.readonly = !0);
|
|
4236
|
-
var
|
|
4237
|
-
return
|
|
4236
|
+
var k = this.tsTryParseTypeAnnotation();
|
|
4237
|
+
return k && (b.typeAnnotation = k), this.tsParseTypeMemberSemicolon(), this.finishNode(b, "TSPropertySignature");
|
|
4238
4238
|
}, f.tsParseTypeMember = function() {
|
|
4239
4239
|
var s = this.startNode();
|
|
4240
4240
|
if (this.match(o.parenL) || this.tsMatchLeftRelational()) return this.tsParseSignatureMember("TSCallSignatureDeclaration", s);
|
|
@@ -4371,10 +4371,10 @@ function Dn(e) {
|
|
|
4371
4371
|
return this.next(), this.finishNode(l, "TemplateLiteral");
|
|
4372
4372
|
}, f.parseFunction = function(s, a, c, l, m) {
|
|
4373
4373
|
this.initFunction(s), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !l) && (this.type === o.star && 2 & a && this.unexpected(), s.generator = this.eat(o.star)), this.options.ecmaVersion >= 8 && (s.async = !!l), 1 & a && (s.id = 4 & a && this.type !== o.name ? null : this.parseIdent());
|
|
4374
|
-
var v = this.yieldPos, x = this.awaitPos, b = this.awaitIdentPos,
|
|
4374
|
+
var v = this.yieldPos, x = this.awaitPos, b = this.awaitIdentPos, k = this.maybeInArrowParameters;
|
|
4375
4375
|
this.maybeInArrowParameters = !1, this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(ni(s.async, s.generator)), 1 & a || (s.id = this.type === o.name ? this.parseIdent() : null), this.parseFunctionParams(s);
|
|
4376
4376
|
var S = 1 & a;
|
|
4377
|
-
return this.parseFunctionBody(s, c, !1, m, { isFunctionDeclaration: S }), this.yieldPos = v, this.awaitPos = x, this.awaitIdentPos = b, 1 & a && s.id && !(2 & a) && this.checkLValSimple(s.id, s.body ? this.strict || s.generator || s.async ? this.treatFunctionsAsVar ? 1 : 2 : 3 : 0), this.maybeInArrowParameters =
|
|
4377
|
+
return this.parseFunctionBody(s, c, !1, m, { isFunctionDeclaration: S }), this.yieldPos = v, this.awaitPos = x, this.awaitIdentPos = b, 1 & a && s.id && !(2 & a) && this.checkLValSimple(s.id, s.body ? this.strict || s.generator || s.async ? this.treatFunctionsAsVar ? 1 : 2 : 3 : 0), this.maybeInArrowParameters = k, this.finishNode(s, S ? "FunctionDeclaration" : "FunctionExpression");
|
|
4378
4378
|
}, f.parseFunctionBody = function(s, a, c, l, m) {
|
|
4379
4379
|
a === void 0 && (a = !1), c === void 0 && (c = !1), l === void 0 && (l = !1), this.match(o.colon) && (s.returnType = this.tsParseTypeOrTypePredicateAnnotation(o.colon));
|
|
4380
4380
|
var v = m != null && m.isFunctionDeclaration ? "TSDeclareFunction" : m != null && m.isClassMethod ? "TSDeclareMethod" : void 0;
|
|
@@ -4466,8 +4466,8 @@ function Dn(e) {
|
|
|
4466
4466
|
if (s.declaration = null, s.specifiers = this.parseExportSpecifiers(a), this.eatContextual("from")) this.type !== o.string && this.unexpected(), s.source = this.parseExprAtom(), this.parseMaybeImportAttributes(s);
|
|
4467
4467
|
else {
|
|
4468
4468
|
for (var x, b = Zi(s.specifiers); !(x = b()).done; ) {
|
|
4469
|
-
var
|
|
4470
|
-
this.checkUnreserved(
|
|
4469
|
+
var k = x.value;
|
|
4470
|
+
this.checkUnreserved(k.local), this.checkLocalExport(k.local), k.local.type === "Literal" && this.raise(k.local.start, "A string literal cannot be used as an exported binding without `from`.");
|
|
4471
4471
|
}
|
|
4472
4472
|
s.source = null;
|
|
4473
4473
|
}
|
|
@@ -4529,8 +4529,8 @@ function Dn(e) {
|
|
|
4529
4529
|
var m = this.finishNode(s, "VariableDeclaration");
|
|
4530
4530
|
if (!l) return m;
|
|
4531
4531
|
for (var v, x = Zi(m.declarations); !(v = x()).done; ) {
|
|
4532
|
-
var b = v.value,
|
|
4533
|
-
|
|
4532
|
+
var b = v.value, k = b.init;
|
|
4533
|
+
k && (a !== "const" || b.id.typeAnnotation ? this.raise(k.start, I.InitializerNotAllowedInAmbientContext) : k.type !== "StringLiteral" && k.type !== "BooleanLiteral" && k.type !== "NumericLiteral" && k.type !== "BigIntLiteral" && (k.type !== "TemplateLiteral" || k.expressions.length > 0) && !Rn(k) && this.raise(k.start, I.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));
|
|
4534
4534
|
}
|
|
4535
4535
|
return m;
|
|
4536
4536
|
}, f.parseStatement = function(s, a, c) {
|
|
@@ -4602,8 +4602,8 @@ function Dn(e) {
|
|
|
4602
4602
|
}, f.parseClassMethod = function(s, a, c, l) {
|
|
4603
4603
|
var m = s.kind === "constructor", v = s.key.type === "PrivateIdentifier", x = this.tsTryParseTypeParameters();
|
|
4604
4604
|
v ? (x && (s.typeParameters = x), s.accessibility && this.raise(s.start, I.PrivateMethodsHasAccessibility({ modifier: s.accessibility }))) : x && m && this.raise(x.start, I.ConstructorHasTypeParameters);
|
|
4605
|
-
var b = s.declare,
|
|
4606
|
-
!(b !== void 0 && b) ||
|
|
4605
|
+
var b = s.declare, k = s.kind;
|
|
4606
|
+
!(b !== void 0 && b) || k !== "get" && k !== "set" || this.raise(s.start, I.DeclareAccessor({ kind: k })), x && (s.typeParameters = x);
|
|
4607
4607
|
var S = s.key;
|
|
4608
4608
|
s.kind === "constructor" ? (a && this.raise(S.start, "Constructor can't be a generator"), c && this.raise(S.start, "Constructor can't be an async method")) : s.static && qi(s, "prototype") && this.raise(S.start, "Classes may not have a static property named prototype");
|
|
4609
4609
|
var N = s.value = this.parseMethod(a, c, l, !0, s);
|
|
@@ -4613,7 +4613,7 @@ function Dn(e) {
|
|
|
4613
4613
|
}, f.parseClassElement = function(s) {
|
|
4614
4614
|
var a = this;
|
|
4615
4615
|
if (this.eat(o.semi)) return null;
|
|
4616
|
-
var c, l = this.options.ecmaVersion, m = this.startNode(), v = "", x = !1, b = !1,
|
|
4616
|
+
var c, l = this.options.ecmaVersion, m = this.startNode(), v = "", x = !1, b = !1, k = "method", S = ["declare", "private", "public", "protected", "accessor", "override", "abstract", "readonly", "static"], N = this.tsParseModifiers({ modified: m, allowedModifiers: S, disallowedModifiers: ["in", "out"], stopOnStartOfClassStaticBlock: !0, errorTemplate: I.InvalidModifierOnTypeParameterPositions });
|
|
4617
4617
|
c = !!N.static;
|
|
4618
4618
|
var V = function() {
|
|
4619
4619
|
if (!a.tsIsStartOfStaticBlocks()) {
|
|
@@ -4621,11 +4621,11 @@ function Dn(e) {
|
|
|
4621
4621
|
if (C) return m.abstract && a.raise(m.start, I.IndexSignatureHasAbstract), m.accessibility && a.raise(m.start, I.IndexSignatureHasAccessibility({ modifier: m.accessibility })), m.declare && a.raise(m.start, I.IndexSignatureHasDeclare), m.override && a.raise(m.start, I.IndexSignatureHasOverride), C;
|
|
4622
4622
|
if (!a.inAbstractClass && m.abstract && a.raise(m.start, I.NonAbstractClassHasAbstractMethod), m.override && s && a.raise(m.start, I.OverrideNotInSubClass), m.static = c, c && (a.isClassElementNameStart() || a.type === o.star || (v = "static")), !v && l >= 8 && a.eatContextual("async") && (!a.isClassElementNameStart() && a.type !== o.star || a.canInsertSemicolon() ? v = "async" : b = !0), !v && (l >= 9 || !b) && a.eat(o.star) && (x = !0), !v && !b && !x) {
|
|
4623
4623
|
var G = a.value;
|
|
4624
|
-
(a.eatContextual("get") || a.eatContextual("set")) && (a.isClassElementNameStart() ?
|
|
4624
|
+
(a.eatContextual("get") || a.eatContextual("set")) && (a.isClassElementNameStart() ? k = G : v = G);
|
|
4625
4625
|
}
|
|
4626
|
-
if (v ? (m.computed = !1, m.key = a.startNodeAt(a.lastTokStart, a.lastTokStartLoc), m.key.name = v, a.finishNode(m.key, "Identifier")) : a.parseClassElementName(m), a.parsePostMemberNameModifiers(m), a.isClassMethod() || l < 13 || a.type === o.parenL ||
|
|
4626
|
+
if (v ? (m.computed = !1, m.key = a.startNodeAt(a.lastTokStart, a.lastTokStartLoc), m.key.name = v, a.finishNode(m.key, "Identifier")) : a.parseClassElementName(m), a.parsePostMemberNameModifiers(m), a.isClassMethod() || l < 13 || a.type === o.parenL || k !== "method" || x || b) {
|
|
4627
4627
|
var W = !m.static && qi(m, "constructor"), J = W && s;
|
|
4628
|
-
W &&
|
|
4628
|
+
W && k !== "method" && a.raise(m.key.start, "Constructor can't have get/set modifier"), m.kind = W ? "constructor" : k, a.parseClassMethod(m, x, b, J);
|
|
4629
4629
|
} else a.parseClassField(m);
|
|
4630
4630
|
return m;
|
|
4631
4631
|
}
|
|
@@ -4656,16 +4656,16 @@ function Dn(e) {
|
|
|
4656
4656
|
}
|
|
4657
4657
|
var l = !1, m = -1, v = -1, x = -1;
|
|
4658
4658
|
a ? (m = a.parenthesizedAssign, v = a.trailingComma, x = a.doubleProto, a.parenthesizedAssign = a.trailingComma = -1) : (a = new xt(), l = !0);
|
|
4659
|
-
var b = this.start,
|
|
4659
|
+
var b = this.start, k = this.startLoc;
|
|
4660
4660
|
(this.type === o.parenL || U(this.type)) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = s === "await");
|
|
4661
4661
|
var S = this.parseMaybeConditional(s, a);
|
|
4662
|
-
if (c && (S = c.call(this, S, b,
|
|
4663
|
-
var N = this.startNodeAt(b,
|
|
4662
|
+
if (c && (S = c.call(this, S, b, k)), this.type.isAssign) {
|
|
4663
|
+
var N = this.startNodeAt(b, k);
|
|
4664
4664
|
return N.operator = this.value, this.type === o.eq && (S = this.toAssignable(S, !0, a)), l || (a.parenthesizedAssign = a.trailingComma = a.doubleProto = -1), a.shorthandAssign >= S.start && (a.shorthandAssign = -1), this.type === o.eq ? this.checkLValPattern(S) : this.checkLValSimple(S), N.left = S, this.next(), N.right = this.parseMaybeAssign(s), x > -1 && (a.doubleProto = x), this.finishNode(N, "AssignmentExpression");
|
|
4665
4665
|
}
|
|
4666
4666
|
return l && this.checkExpressionErrors(a, !0), m > -1 && (a.parenthesizedAssign = m), v > -1 && (a.trailingComma = v), S;
|
|
4667
4667
|
}, f.parseMaybeAssign = function(s, a, c) {
|
|
4668
|
-
var l, m, v, x, b,
|
|
4668
|
+
var l, m, v, x, b, k, S, N, V, C, G, W = this;
|
|
4669
4669
|
if (this.matchJsx("jsxTagStart") || this.tsMatchLeftRelational()) {
|
|
4670
4670
|
if (N = this.cloneCurLookaheadState(), !(V = this.tryParse(function() {
|
|
4671
4671
|
return W.parseMaybeAssignOrigin(s, a, c);
|
|
@@ -4688,7 +4688,7 @@ function Dn(e) {
|
|
|
4688
4688
|
if ((m = V) != null && m.node) return this.setLookaheadState(V.failState), V.node;
|
|
4689
4689
|
if (de.node) return this.setLookaheadState(de.failState), G && this.reportReservedArrowTypeParam(G), de.node;
|
|
4690
4690
|
if ((v = C) != null && v.node) return this.setLookaheadState(C.failState), C.node;
|
|
4691
|
-
throw (x = V) != null && x.thrown ? V.error : de.thrown ? de.error : (b = C) != null && b.thrown ? C.error : ((
|
|
4691
|
+
throw (x = V) != null && x.thrown ? V.error : de.thrown ? de.error : (b = C) != null && b.thrown ? C.error : ((k = V) == null ? void 0 : k.error) || de.error || ((S = C) == null ? void 0 : S.error);
|
|
4692
4692
|
}, f.parseAssignableListItem = function(s) {
|
|
4693
4693
|
for (var a = []; this.match(R.at); ) a.push(this.parseDecorator());
|
|
4694
4694
|
var c, l = this.start, m = this.startLoc, v = !1, x = !1;
|
|
@@ -4696,9 +4696,9 @@ function Dn(e) {
|
|
|
4696
4696
|
var b = {};
|
|
4697
4697
|
this.tsParseModifiers({ modified: b, allowedModifiers: ["public", "private", "protected", "override", "readonly"] }), c = b.accessibility, x = b.override, v = b.readonly, s === !1 && (c || v || x) && this.raise(m.start, I.UnexpectedParameterModifier);
|
|
4698
4698
|
}
|
|
4699
|
-
var
|
|
4700
|
-
this.parseBindingListItem(
|
|
4701
|
-
var S = this.parseMaybeDefault(
|
|
4699
|
+
var k = this.parseMaybeDefault(l, m);
|
|
4700
|
+
this.parseBindingListItem(k);
|
|
4701
|
+
var S = this.parseMaybeDefault(k.start, k.loc, k);
|
|
4702
4702
|
if (a.length && (S.decorators = a), c || v || x) {
|
|
4703
4703
|
var N = this.startNodeAt(l, m);
|
|
4704
4704
|
return c && (N.accessibility = c), v && (N.readonly = v), x && (N.override = x), S.type !== "Identifier" && S.type !== "AssignmentPattern" && this.raise(N.start, I.UnsupportedParameterPropertyKind), N.parameter = S, this.finishNode(N, "TSParameterProperty");
|
|
@@ -4812,7 +4812,7 @@ function Dn(e) {
|
|
|
4812
4812
|
if (this.options.ecmaVersion >= 6) {
|
|
4813
4813
|
var x = this.maybeInArrowParameters;
|
|
4814
4814
|
this.maybeInArrowParameters = !0, this.next();
|
|
4815
|
-
var b,
|
|
4815
|
+
var b, k = this.start, S = this.startLoc, N = [], V = !0, C = !1, G = new xt(), W = this.yieldPos, J = this.awaitPos;
|
|
4816
4816
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== o.parenR; ) {
|
|
4817
4817
|
if (V ? V = !1 : this.expect(o.comma), v && this.afterTrailingComma(o.parenR, !0)) {
|
|
4818
4818
|
C = !0;
|
|
@@ -4826,7 +4826,7 @@ function Dn(e) {
|
|
|
4826
4826
|
}
|
|
4827
4827
|
var ie = this.lastTokEnd, de = this.lastTokEndLoc;
|
|
4828
4828
|
if (this.expect(o.parenR), this.maybeInArrowParameters = x, s && this.shouldParseArrow(N) && this.eat(o.arrow)) return this.checkPatternErrors(G, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = W, this.awaitPos = J, this.parseParenArrowList(l, m, N, a);
|
|
4829
|
-
N.length && !C || this.unexpected(this.lastTokStart), b && this.unexpected(b), this.checkExpressionErrors(G, !0), this.yieldPos = W || this.yieldPos, this.awaitPos = J || this.awaitPos, N.length > 1 ? ((c = this.startNodeAt(
|
|
4829
|
+
N.length && !C || this.unexpected(this.lastTokStart), b && this.unexpected(b), this.checkExpressionErrors(G, !0), this.yieldPos = W || this.yieldPos, this.awaitPos = J || this.awaitPos, N.length > 1 ? ((c = this.startNodeAt(k, S)).expressions = N, this.finishNodeAt(c, "SequenceExpression", ie, de)) : c = N[0];
|
|
4830
4830
|
} else c = this.parseParenExpression();
|
|
4831
4831
|
if (this.options.preserveParens) {
|
|
4832
4832
|
var Fe = this.startNodeAt(l, m);
|
|
@@ -4856,7 +4856,7 @@ function Dn(e) {
|
|
|
4856
4856
|
}
|
|
4857
4857
|
return m;
|
|
4858
4858
|
}, f.parseSubscript = function(s, a, c, l, m, v, x) {
|
|
4859
|
-
var b = this,
|
|
4859
|
+
var b = this, k = v;
|
|
4860
4860
|
if (!this.hasPrecedingLineBreak() && this.value === "!" && this.match(o.prefix)) {
|
|
4861
4861
|
this.exprAllowed = !1, this.next();
|
|
4862
4862
|
var S = this.startNodeAt(a, c);
|
|
@@ -4865,7 +4865,7 @@ function Dn(e) {
|
|
|
4865
4865
|
var N = !1;
|
|
4866
4866
|
if (this.match(o.questionDot) && this.lookaheadCharCode() === 60) {
|
|
4867
4867
|
if (l) return s;
|
|
4868
|
-
s.optional = !0,
|
|
4868
|
+
s.optional = !0, k = N = !0, this.next();
|
|
4869
4869
|
}
|
|
4870
4870
|
if (this.tsMatchLeftRelational() || this.match(o.bitShift)) {
|
|
4871
4871
|
var V, C = this.tsTryParseAndCatch(function() {
|
|
@@ -4877,12 +4877,12 @@ function Dn(e) {
|
|
|
4877
4877
|
if (!Et) return s;
|
|
4878
4878
|
if (N && !b.match(o.parenL)) return V = b.curPosition(), s;
|
|
4879
4879
|
if (xe(b.type) || b.type === o.backQuote) {
|
|
4880
|
-
var Oi = b.parseTaggedTemplateExpression(s, a, c,
|
|
4880
|
+
var Oi = b.parseTaggedTemplateExpression(s, a, c, k);
|
|
4881
4881
|
return Oi.typeParameters = Et, Oi;
|
|
4882
4882
|
}
|
|
4883
4883
|
if (!l && b.eat(o.parenL)) {
|
|
4884
4884
|
var Ri = new xt(), et = b.startNodeAt(a, c);
|
|
4885
|
-
return et.callee = s, et.arguments = b.parseExprList(o.parenR, b.options.ecmaVersion >= 8, !1, Ri), b.tsCheckForInvalidTypeCasts(et.arguments), et.typeParameters = Et,
|
|
4885
|
+
return et.callee = s, et.arguments = b.parseExprList(o.parenR, b.options.ecmaVersion >= 8, !1, Ri), b.tsCheckForInvalidTypeCasts(et.arguments), et.typeParameters = Et, k && (et.optional = N), b.checkExpressionErrors(Ri, !0), s = b.finishNode(et, "CallExpression");
|
|
4886
4886
|
}
|
|
4887
4887
|
var Yt = b.type;
|
|
4888
4888
|
if (!(b.tsMatchRightRelational() || Yt === o.bitShift || Yt !== o.parenL && (Di = Yt, !!Di.startsExpr) && !b.hasPrecedingLineBreak())) {
|
|
@@ -4912,7 +4912,7 @@ function Dn(e) {
|
|
|
4912
4912
|
}
|
|
4913
4913
|
this.maybeInArrowParameters = de;
|
|
4914
4914
|
} else if (this.type === o.backQuote) {
|
|
4915
|
-
(W ||
|
|
4915
|
+
(W || k) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
|
|
4916
4916
|
var Qt = this.startNodeAt(a, c);
|
|
4917
4917
|
Qt.tag = s, Qt.quasi = this.parseTemplate({ isTagged: !0 }), s = this.finishNode(Qt, "TaggedTemplateExpression");
|
|
4918
4918
|
}
|
|
@@ -4946,8 +4946,8 @@ function Dn(e) {
|
|
|
4946
4946
|
var b = [];
|
|
4947
4947
|
for (this.expect(o.braceL); this.type !== o.braceR; ) if (this.match(R.at)) b.push(this.parseDecorator());
|
|
4948
4948
|
else {
|
|
4949
|
-
var
|
|
4950
|
-
b.length && (
|
|
4949
|
+
var k = this.parseClassElement(s.superClass !== null);
|
|
4950
|
+
b.length && (k.decorators = b, this.resetStartLocationFromNode(k, b[0]), b = []), k && (v.body.push(k), k.type === "MethodDefinition" && k.kind === "constructor" && k.value.type === "FunctionExpression" ? (x && this.raiseRecoverable(k.start, "Duplicate constructor in the same class"), x = !0, k.decorators && k.decorators.length > 0 && this.raise(k.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")) : k.key && k.key.type === "PrivateIdentifier" && An(m, k) && this.raiseRecoverable(k.key.start, "Identifier '#" + k.key.name + "' has already been declared"));
|
|
4951
4951
|
}
|
|
4952
4952
|
return this.strict = l, this.next(), b.length && this.raise(this.start, "Decorators must be attached to a class element."), s.body = this.finishNode(v, "ClassBody"), this.exitClassBody(), this.finishNode(s, a ? "ClassDeclaration" : "ClassExpression");
|
|
4953
4953
|
} finally {
|
|
@@ -4957,8 +4957,8 @@ function Dn(e) {
|
|
|
4957
4957
|
var s = this.tsTryParseTypeParameters(this.tsParseConstModifier), a = this.parseBindingList(o.parenR, !1, this.options.ecmaVersion >= 8, !0);
|
|
4958
4958
|
return s && (a.typeParameters = s), a;
|
|
4959
4959
|
}, f.parseMethod = function(s, a, c, l, m) {
|
|
4960
|
-
var v = this.startNode(), x = this.yieldPos, b = this.awaitPos,
|
|
4961
|
-
if (this.initFunction(v), this.options.ecmaVersion >= 6 && (v.generator = s), this.options.ecmaVersion >= 8 && (v.async = !!a), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(64 | ni(a, v.generator) | (c ? 128 : 0)), this.expect(o.parenL), v.params = this.parseClassFunctionParams(), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(v, !1, !0, !1, { isClassMethod: l }), this.yieldPos = x, this.awaitPos = b, this.awaitIdentPos =
|
|
4960
|
+
var v = this.startNode(), x = this.yieldPos, b = this.awaitPos, k = this.awaitIdentPos;
|
|
4961
|
+
if (this.initFunction(v), this.options.ecmaVersion >= 6 && (v.generator = s), this.options.ecmaVersion >= 8 && (v.async = !!a), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(64 | ni(a, v.generator) | (c ? 128 : 0)), this.expect(o.parenL), v.params = this.parseClassFunctionParams(), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(v, !1, !0, !1, { isClassMethod: l }), this.yieldPos = x, this.awaitPos = b, this.awaitIdentPos = k, m && m.abstract && v.body) {
|
|
4962
4962
|
var S = m.key;
|
|
4963
4963
|
this.raise(m.start, I.AbstractMethodHasImplementation({ methodName: S.type !== "Identifier" || m.computed ? "[" + this.input.slice(S.start, S.end) + "]" : S.name }));
|
|
4964
4964
|
}
|
|
@@ -4989,15 +4989,15 @@ function Dn(e) {
|
|
|
4989
4989
|
var l = T.prototype.parseExportSpecifier.call(this, s);
|
|
4990
4990
|
return l.exportKind = "value", l;
|
|
4991
4991
|
}, f.parseTypeOnlyImportExportSpecifier = function(s, a, c) {
|
|
4992
|
-
var l, m = a ? "imported" : "local", v = a ? "local" : "exported", x = s[m], b = !1,
|
|
4992
|
+
var l, m = a ? "imported" : "local", v = a ? "local" : "exported", x = s[m], b = !1, k = !0, S = x.start;
|
|
4993
4993
|
if (this.isContextual("as")) {
|
|
4994
4994
|
var N = this.parseIdent();
|
|
4995
4995
|
if (this.isContextual("as")) {
|
|
4996
4996
|
var V = this.parseIdent();
|
|
4997
|
-
Ct(this.type) ? (b = !0, x = N, l = a ? this.parseIdent() : this.parseModuleExportName(),
|
|
4998
|
-
} else Ct(this.type) ? (
|
|
4997
|
+
Ct(this.type) ? (b = !0, x = N, l = a ? this.parseIdent() : this.parseModuleExportName(), k = !1) : (l = V, k = !1);
|
|
4998
|
+
} else Ct(this.type) ? (k = !1, l = a ? this.parseIdent() : this.parseModuleExportName()) : (b = !0, x = N);
|
|
4999
4999
|
} else Ct(this.type) && (b = !0, a ? (x = T.prototype.parseIdent.call(this, !0), this.isContextual("as") || this.checkUnreserved(x)) : x = this.parseModuleExportName());
|
|
5000
|
-
b && c && this.raise(S, a ? I.TypeModifierIsUsedInTypeImports : I.TypeModifierIsUsedInTypeExports), s[m] = x, s[v] = l, s[a ? "importKind" : "exportKind"] = b ? "type" : "value",
|
|
5000
|
+
b && c && this.raise(S, a ? I.TypeModifierIsUsedInTypeImports : I.TypeModifierIsUsedInTypeExports), s[m] = x, s[v] = l, s[a ? "importKind" : "exportKind"] = b ? "type" : "value", k && this.eatContextual("as") && (s[v] = a ? this.parseIdent() : this.parseModuleExportName()), s[v] || (s[v] = this.copyNode(s[m])), a && this.checkLValSimple(s[v], 2);
|
|
5001
5001
|
}, f.raiseCommonCheck = function(s, a, c) {
|
|
5002
5002
|
return a === "Comma is not permitted after the rest element" ? this.isAmbientContext && this.match(o.comma) && this.lookaheadCharCode() === 41 ? void this.next() : T.prototype.raise.call(this, s, a) : c ? T.prototype.raiseRecoverable.call(this, s, a) : T.prototype.raise.call(this, s, a);
|
|
5003
5003
|
}, f.raiseRecoverable = function(s, a) {
|
|
@@ -5080,14 +5080,14 @@ function wi(e) {
|
|
|
5080
5080
|
d && d !== "constructor" && u.accessibility !== "private" && r.push(d);
|
|
5081
5081
|
}), r;
|
|
5082
5082
|
}
|
|
5083
|
-
async function
|
|
5083
|
+
async function _e(e, t, i = [], r) {
|
|
5084
5084
|
const n = `${t} ${i.join(" ")}`;
|
|
5085
5085
|
e !== void 0 && se(`${e} - exec(${n})`);
|
|
5086
5086
|
const { stdout: u, stderr: h } = await Mn(n);
|
|
5087
|
-
r === void 0 ? u.trim() && console.log(u.trim()) : await
|
|
5087
|
+
r === void 0 ? u.trim() && console.log(u.trim()) : await Ce.writeFile(r, u.trim(), "utf8"), h.trim() && console.error(h.trim());
|
|
5088
5088
|
}
|
|
5089
5089
|
async function Vn(e, t) {
|
|
5090
|
-
return
|
|
5090
|
+
return Ce.readdir(e, t);
|
|
5091
5091
|
}
|
|
5092
5092
|
async function zn() {
|
|
5093
5093
|
se("Load environment variables"), (await import("dotenv")).config();
|
|
@@ -5107,11 +5107,11 @@ function se(e) {
|
|
|
5107
5107
|
${e}
|
|
5108
5108
|
`);
|
|
5109
5109
|
}
|
|
5110
|
-
async function
|
|
5111
|
-
return JSON.parse(await
|
|
5110
|
+
async function we(e) {
|
|
5111
|
+
return JSON.parse(await Ce.readFile(e, "utf8"));
|
|
5112
5112
|
}
|
|
5113
5113
|
async function at(e) {
|
|
5114
|
-
return await
|
|
5114
|
+
return await Ce.readFile(e, "utf8");
|
|
5115
5115
|
}
|
|
5116
5116
|
async function Ie(e, t, i = [], r = !1) {
|
|
5117
5117
|
return se(`${e} - spawn(${t} ${i.join(" ")})`), new Promise((n, u) => {
|
|
@@ -5121,10 +5121,10 @@ async function Ie(e, t, i = [], r = !1) {
|
|
|
5121
5121
|
});
|
|
5122
5122
|
}
|
|
5123
5123
|
async function ot(e, t) {
|
|
5124
|
-
await
|
|
5124
|
+
await Ce.writeFile(e, JSON.stringify(t, void 0, 4), "utf8");
|
|
5125
5125
|
}
|
|
5126
5126
|
async function ss(e, t) {
|
|
5127
|
-
await
|
|
5127
|
+
await Ce.writeFile(e, t, "utf8");
|
|
5128
5128
|
}
|
|
5129
5129
|
function li(e, t) {
|
|
5130
5130
|
t(e);
|
|
@@ -5140,7 +5140,7 @@ function li(e, t) {
|
|
|
5140
5140
|
}
|
|
5141
5141
|
}
|
|
5142
5142
|
const jn = ["createObject", "dropObject", "removeRecords", "upsertRecords"], $n = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
|
|
5143
|
-
function
|
|
5143
|
+
function _(e, t, i) {
|
|
5144
5144
|
function r(d, y) {
|
|
5145
5145
|
if (d._zod || Object.defineProperty(d, "_zod", {
|
|
5146
5146
|
value: {
|
|
@@ -5469,7 +5469,7 @@ function qe(e, t, i) {
|
|
|
5469
5469
|
function Ci(e) {
|
|
5470
5470
|
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
5471
5471
|
}
|
|
5472
|
-
function
|
|
5472
|
+
function _t(...e) {
|
|
5473
5473
|
const [t, i, r] = e;
|
|
5474
5474
|
return typeof t == "string" ? {
|
|
5475
5475
|
message: t,
|
|
@@ -5489,7 +5489,7 @@ const cs = (e, t) => {
|
|
|
5489
5489
|
value: () => e.message,
|
|
5490
5490
|
enumerable: !1
|
|
5491
5491
|
});
|
|
5492
|
-
}, hs =
|
|
5492
|
+
}, hs = _("$ZodError", cs), ps = _("$ZodError", cs, { Parent: Error });
|
|
5493
5493
|
function ta(e, t = (i) => i.message) {
|
|
5494
5494
|
const i = {}, r = [];
|
|
5495
5495
|
for (const n of e.issues)
|
|
@@ -5561,9 +5561,9 @@ const Ai = (e) => (t, i, r, n) => {
|
|
|
5561
5561
|
}, ha = (e) => (t, i, r) => Gt(e)(t, i, r), pa = (e) => async (t, i, r) => {
|
|
5562
5562
|
const n = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
5563
5563
|
return Jt(e)(t, i, n);
|
|
5564
|
-
}, la = (e) => async (t, i, r) => Jt(e)(t, i, r), fa = /^[cC][^\s-]{8,}$/, da = /^[0-9a-z]+$/, ma = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, ya = /^[0-9a-vA-V]{20}$/, va = /^[A-Za-z0-9]{27}$/, xa = /^[a-zA-Z0-9_-]{21}$/, ga = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, ba = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Ji = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,
|
|
5564
|
+
}, la = (e) => async (t, i, r) => Jt(e)(t, i, r), fa = /^[cC][^\s-]{8,}$/, da = /^[0-9a-z]+$/, ma = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, ya = /^[0-9a-vA-V]{20}$/, va = /^[A-Za-z0-9]{27}$/, xa = /^[a-zA-Z0-9_-]{21}$/, ga = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, ba = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Ji = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, ka = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, _a = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
5565
5565
|
function wa() {
|
|
5566
|
-
return new RegExp(
|
|
5566
|
+
return new RegExp(_a, "u");
|
|
5567
5567
|
}
|
|
5568
5568
|
const Sa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Ta = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Pa = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Ca = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Aa = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, ls = /^[A-Za-z0-9_-]*$/, Ea = /^\+(?:[0-9]){6,14}[0-9]$/, fs = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Ia = /* @__PURE__ */ new RegExp(`^${fs}$`);
|
|
5569
5569
|
function ds(e) {
|
|
@@ -5582,14 +5582,14 @@ function La(e) {
|
|
|
5582
5582
|
const Oa = (e) => {
|
|
5583
5583
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
5584
5584
|
return new RegExp(`^${t}$`);
|
|
5585
|
-
}, Ra = /^-?\d+$/, Da = /^-?\d+(?:\.\d+)?/, Ma = /^(?:true|false)$/i, Va = /^[^A-Z]*$/, za = /^[^a-z]*$/, fe = /* @__PURE__ */
|
|
5585
|
+
}, Ra = /^-?\d+$/, Da = /^-?\d+(?:\.\d+)?/, Ma = /^(?:true|false)$/i, Va = /^[^A-Z]*$/, za = /^[^a-z]*$/, fe = /* @__PURE__ */ _("$ZodCheck", (e, t) => {
|
|
5586
5586
|
var i;
|
|
5587
5587
|
e._zod ?? (e._zod = {}), e._zod.def = t, (i = e._zod).onattach ?? (i.onattach = []);
|
|
5588
5588
|
}), ms = {
|
|
5589
5589
|
number: "number",
|
|
5590
5590
|
bigint: "bigint",
|
|
5591
5591
|
object: "date"
|
|
5592
|
-
}, ys = /* @__PURE__ */
|
|
5592
|
+
}, ys = /* @__PURE__ */ _("$ZodCheckLessThan", (e, t) => {
|
|
5593
5593
|
fe.init(e, t);
|
|
5594
5594
|
const i = ms[typeof t.value];
|
|
5595
5595
|
e._zod.onattach.push((r) => {
|
|
@@ -5606,7 +5606,7 @@ const Oa = (e) => {
|
|
|
5606
5606
|
continue: !t.abort
|
|
5607
5607
|
});
|
|
5608
5608
|
};
|
|
5609
|
-
}), vs = /* @__PURE__ */
|
|
5609
|
+
}), vs = /* @__PURE__ */ _("$ZodCheckGreaterThan", (e, t) => {
|
|
5610
5610
|
fe.init(e, t);
|
|
5611
5611
|
const i = ms[typeof t.value];
|
|
5612
5612
|
e._zod.onattach.push((r) => {
|
|
@@ -5623,7 +5623,7 @@ const Oa = (e) => {
|
|
|
5623
5623
|
continue: !t.abort
|
|
5624
5624
|
});
|
|
5625
5625
|
};
|
|
5626
|
-
}), ja = /* @__PURE__ */
|
|
5626
|
+
}), ja = /* @__PURE__ */ _("$ZodCheckMultipleOf", (e, t) => {
|
|
5627
5627
|
fe.init(e, t), e._zod.onattach.push((i) => {
|
|
5628
5628
|
var r;
|
|
5629
5629
|
(r = i._zod.bag).multipleOf ?? (r.multipleOf = t.value);
|
|
@@ -5639,7 +5639,7 @@ const Oa = (e) => {
|
|
|
5639
5639
|
continue: !t.abort
|
|
5640
5640
|
});
|
|
5641
5641
|
};
|
|
5642
|
-
}), $a = /* @__PURE__ */
|
|
5642
|
+
}), $a = /* @__PURE__ */ _("$ZodCheckNumberFormat", (e, t) => {
|
|
5643
5643
|
fe.init(e, t), t.format = t.format || "float64";
|
|
5644
5644
|
const i = t.format?.includes("int"), r = i ? "int" : "number", [n, u] = Wn[t.format];
|
|
5645
5645
|
e._zod.onattach.push((h) => {
|
|
@@ -5696,7 +5696,7 @@ const Oa = (e) => {
|
|
|
5696
5696
|
inst: e
|
|
5697
5697
|
});
|
|
5698
5698
|
};
|
|
5699
|
-
}), Fa = /* @__PURE__ */
|
|
5699
|
+
}), Fa = /* @__PURE__ */ _("$ZodCheckMaxLength", (e, t) => {
|
|
5700
5700
|
var i;
|
|
5701
5701
|
fe.init(e, t), (i = e._zod.def).when ?? (i.when = (r) => {
|
|
5702
5702
|
const n = r.value;
|
|
@@ -5719,7 +5719,7 @@ const Oa = (e) => {
|
|
|
5719
5719
|
continue: !t.abort
|
|
5720
5720
|
});
|
|
5721
5721
|
};
|
|
5722
|
-
}), Ba = /* @__PURE__ */
|
|
5722
|
+
}), Ba = /* @__PURE__ */ _("$ZodCheckMinLength", (e, t) => {
|
|
5723
5723
|
var i;
|
|
5724
5724
|
fe.init(e, t), (i = e._zod.def).when ?? (i.when = (r) => {
|
|
5725
5725
|
const n = r.value;
|
|
@@ -5742,7 +5742,7 @@ const Oa = (e) => {
|
|
|
5742
5742
|
continue: !t.abort
|
|
5743
5743
|
});
|
|
5744
5744
|
};
|
|
5745
|
-
}), Za = /* @__PURE__ */
|
|
5745
|
+
}), Za = /* @__PURE__ */ _("$ZodCheckLengthEquals", (e, t) => {
|
|
5746
5746
|
var i;
|
|
5747
5747
|
fe.init(e, t), (i = e._zod.def).when ?? (i.when = (r) => {
|
|
5748
5748
|
const n = r.value;
|
|
@@ -5765,7 +5765,7 @@ const Oa = (e) => {
|
|
|
5765
5765
|
continue: !t.abort
|
|
5766
5766
|
});
|
|
5767
5767
|
};
|
|
5768
|
-
}), Xt = /* @__PURE__ */
|
|
5768
|
+
}), Xt = /* @__PURE__ */ _("$ZodCheckStringFormat", (e, t) => {
|
|
5769
5769
|
var i, r;
|
|
5770
5770
|
fe.init(e, t), e._zod.onattach.push((n) => {
|
|
5771
5771
|
const u = n._zod.bag;
|
|
@@ -5782,7 +5782,7 @@ const Oa = (e) => {
|
|
|
5782
5782
|
});
|
|
5783
5783
|
}) : (r = e._zod).check ?? (r.check = () => {
|
|
5784
5784
|
});
|
|
5785
|
-
}), Ua = /* @__PURE__ */
|
|
5785
|
+
}), Ua = /* @__PURE__ */ _("$ZodCheckRegex", (e, t) => {
|
|
5786
5786
|
Xt.init(e, t), e._zod.check = (i) => {
|
|
5787
5787
|
t.pattern.lastIndex = 0, !t.pattern.test(i.value) && i.issues.push({
|
|
5788
5788
|
origin: "string",
|
|
@@ -5794,11 +5794,11 @@ const Oa = (e) => {
|
|
|
5794
5794
|
continue: !t.abort
|
|
5795
5795
|
});
|
|
5796
5796
|
};
|
|
5797
|
-
}), qa = /* @__PURE__ */
|
|
5797
|
+
}), qa = /* @__PURE__ */ _("$ZodCheckLowerCase", (e, t) => {
|
|
5798
5798
|
t.pattern ?? (t.pattern = Va), Xt.init(e, t);
|
|
5799
|
-
}), Ha = /* @__PURE__ */
|
|
5799
|
+
}), Ha = /* @__PURE__ */ _("$ZodCheckUpperCase", (e, t) => {
|
|
5800
5800
|
t.pattern ?? (t.pattern = za), Xt.init(e, t);
|
|
5801
|
-
}), Wa = /* @__PURE__ */
|
|
5801
|
+
}), Wa = /* @__PURE__ */ _("$ZodCheckIncludes", (e, t) => {
|
|
5802
5802
|
fe.init(e, t);
|
|
5803
5803
|
const i = ct(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${i}` : i);
|
|
5804
5804
|
t.pattern = r, e._zod.onattach.push((n) => {
|
|
@@ -5815,7 +5815,7 @@ const Oa = (e) => {
|
|
|
5815
5815
|
continue: !t.abort
|
|
5816
5816
|
});
|
|
5817
5817
|
};
|
|
5818
|
-
}), Ka = /* @__PURE__ */
|
|
5818
|
+
}), Ka = /* @__PURE__ */ _("$ZodCheckStartsWith", (e, t) => {
|
|
5819
5819
|
fe.init(e, t);
|
|
5820
5820
|
const i = new RegExp(`^${ct(t.prefix)}.*`);
|
|
5821
5821
|
t.pattern ?? (t.pattern = i), e._zod.onattach.push((r) => {
|
|
@@ -5832,7 +5832,7 @@ const Oa = (e) => {
|
|
|
5832
5832
|
continue: !t.abort
|
|
5833
5833
|
});
|
|
5834
5834
|
};
|
|
5835
|
-
}), Ga = /* @__PURE__ */
|
|
5835
|
+
}), Ga = /* @__PURE__ */ _("$ZodCheckEndsWith", (e, t) => {
|
|
5836
5836
|
fe.init(e, t);
|
|
5837
5837
|
const i = new RegExp(`.*${ct(t.suffix)}$`);
|
|
5838
5838
|
t.pattern ?? (t.pattern = i), e._zod.onattach.push((r) => {
|
|
@@ -5849,7 +5849,7 @@ const Oa = (e) => {
|
|
|
5849
5849
|
continue: !t.abort
|
|
5850
5850
|
});
|
|
5851
5851
|
};
|
|
5852
|
-
}), Ja = /* @__PURE__ */
|
|
5852
|
+
}), Ja = /* @__PURE__ */ _("$ZodCheckOverwrite", (e, t) => {
|
|
5853
5853
|
fe.init(e, t), e._zod.check = (i) => {
|
|
5854
5854
|
i.value = t.tx(i.value);
|
|
5855
5855
|
};
|
|
@@ -5881,7 +5881,7 @@ const Qa = {
|
|
|
5881
5881
|
major: 4,
|
|
5882
5882
|
minor: 1,
|
|
5883
5883
|
patch: 13
|
|
5884
|
-
}, Q = /* @__PURE__ */
|
|
5884
|
+
}, Q = /* @__PURE__ */ _("$ZodType", (e, t) => {
|
|
5885
5885
|
var i;
|
|
5886
5886
|
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Qa;
|
|
5887
5887
|
const r = [...e._zod.def.checks ?? []];
|
|
@@ -5955,7 +5955,7 @@ const Qa = {
|
|
|
5955
5955
|
vendor: "zod",
|
|
5956
5956
|
version: 1
|
|
5957
5957
|
};
|
|
5958
|
-
}), Ii = /* @__PURE__ */
|
|
5958
|
+
}), Ii = /* @__PURE__ */ _("$ZodString", (e, t) => {
|
|
5959
5959
|
Q.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Oa(e._zod.bag), e._zod.parse = (i, r) => {
|
|
5960
5960
|
if (t.coerce)
|
|
5961
5961
|
try {
|
|
@@ -5969,11 +5969,11 @@ const Qa = {
|
|
|
5969
5969
|
inst: e
|
|
5970
5970
|
}), i;
|
|
5971
5971
|
};
|
|
5972
|
-
}), K = /* @__PURE__ */
|
|
5972
|
+
}), K = /* @__PURE__ */ _("$ZodStringFormat", (e, t) => {
|
|
5973
5973
|
Xt.init(e, t), Ii.init(e, t);
|
|
5974
|
-
}), Ya = /* @__PURE__ */
|
|
5974
|
+
}), Ya = /* @__PURE__ */ _("$ZodGUID", (e, t) => {
|
|
5975
5975
|
t.pattern ?? (t.pattern = ba), K.init(e, t);
|
|
5976
|
-
}), eo = /* @__PURE__ */
|
|
5976
|
+
}), eo = /* @__PURE__ */ _("$ZodUUID", (e, t) => {
|
|
5977
5977
|
if (t.version) {
|
|
5978
5978
|
const r = {
|
|
5979
5979
|
v1: 1,
|
|
@@ -5991,9 +5991,9 @@ const Qa = {
|
|
|
5991
5991
|
} else
|
|
5992
5992
|
t.pattern ?? (t.pattern = Ji());
|
|
5993
5993
|
K.init(e, t);
|
|
5994
|
-
}), to = /* @__PURE__ */
|
|
5995
|
-
t.pattern ?? (t.pattern =
|
|
5996
|
-
}), io = /* @__PURE__ */
|
|
5994
|
+
}), to = /* @__PURE__ */ _("$ZodEmail", (e, t) => {
|
|
5995
|
+
t.pattern ?? (t.pattern = ka), K.init(e, t);
|
|
5996
|
+
}), io = /* @__PURE__ */ _("$ZodURL", (e, t) => {
|
|
5997
5997
|
K.init(e, t), e._zod.check = (i) => {
|
|
5998
5998
|
try {
|
|
5999
5999
|
const r = i.value.trim(), n = new URL(r);
|
|
@@ -6025,31 +6025,31 @@ const Qa = {
|
|
|
6025
6025
|
});
|
|
6026
6026
|
}
|
|
6027
6027
|
};
|
|
6028
|
-
}), ro = /* @__PURE__ */
|
|
6028
|
+
}), ro = /* @__PURE__ */ _("$ZodEmoji", (e, t) => {
|
|
6029
6029
|
t.pattern ?? (t.pattern = wa()), K.init(e, t);
|
|
6030
|
-
}), so = /* @__PURE__ */
|
|
6030
|
+
}), so = /* @__PURE__ */ _("$ZodNanoID", (e, t) => {
|
|
6031
6031
|
t.pattern ?? (t.pattern = xa), K.init(e, t);
|
|
6032
|
-
}), no = /* @__PURE__ */
|
|
6032
|
+
}), no = /* @__PURE__ */ _("$ZodCUID", (e, t) => {
|
|
6033
6033
|
t.pattern ?? (t.pattern = fa), K.init(e, t);
|
|
6034
|
-
}), ao = /* @__PURE__ */
|
|
6034
|
+
}), ao = /* @__PURE__ */ _("$ZodCUID2", (e, t) => {
|
|
6035
6035
|
t.pattern ?? (t.pattern = da), K.init(e, t);
|
|
6036
|
-
}), oo = /* @__PURE__ */
|
|
6036
|
+
}), oo = /* @__PURE__ */ _("$ZodULID", (e, t) => {
|
|
6037
6037
|
t.pattern ?? (t.pattern = ma), K.init(e, t);
|
|
6038
|
-
}), uo = /* @__PURE__ */
|
|
6038
|
+
}), uo = /* @__PURE__ */ _("$ZodXID", (e, t) => {
|
|
6039
6039
|
t.pattern ?? (t.pattern = ya), K.init(e, t);
|
|
6040
|
-
}), co = /* @__PURE__ */
|
|
6040
|
+
}), co = /* @__PURE__ */ _("$ZodKSUID", (e, t) => {
|
|
6041
6041
|
t.pattern ?? (t.pattern = va), K.init(e, t);
|
|
6042
|
-
}), ho = /* @__PURE__ */
|
|
6042
|
+
}), ho = /* @__PURE__ */ _("$ZodISODateTime", (e, t) => {
|
|
6043
6043
|
t.pattern ?? (t.pattern = La(t)), K.init(e, t);
|
|
6044
|
-
}), po = /* @__PURE__ */
|
|
6044
|
+
}), po = /* @__PURE__ */ _("$ZodISODate", (e, t) => {
|
|
6045
6045
|
t.pattern ?? (t.pattern = Ia), K.init(e, t);
|
|
6046
|
-
}), lo = /* @__PURE__ */
|
|
6046
|
+
}), lo = /* @__PURE__ */ _("$ZodISOTime", (e, t) => {
|
|
6047
6047
|
t.pattern ?? (t.pattern = Na(t)), K.init(e, t);
|
|
6048
|
-
}), fo = /* @__PURE__ */
|
|
6048
|
+
}), fo = /* @__PURE__ */ _("$ZodISODuration", (e, t) => {
|
|
6049
6049
|
t.pattern ?? (t.pattern = ga), K.init(e, t);
|
|
6050
|
-
}), mo = /* @__PURE__ */
|
|
6050
|
+
}), mo = /* @__PURE__ */ _("$ZodIPv4", (e, t) => {
|
|
6051
6051
|
t.pattern ?? (t.pattern = Sa), K.init(e, t), e._zod.bag.format = "ipv4";
|
|
6052
|
-
}), yo = /* @__PURE__ */
|
|
6052
|
+
}), yo = /* @__PURE__ */ _("$ZodIPv6", (e, t) => {
|
|
6053
6053
|
t.pattern ?? (t.pattern = Ta), K.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (i) => {
|
|
6054
6054
|
try {
|
|
6055
6055
|
new URL(`http://[${i.value}]`);
|
|
@@ -6063,9 +6063,9 @@ const Qa = {
|
|
|
6063
6063
|
});
|
|
6064
6064
|
}
|
|
6065
6065
|
};
|
|
6066
|
-
}), vo = /* @__PURE__ */
|
|
6066
|
+
}), vo = /* @__PURE__ */ _("$ZodCIDRv4", (e, t) => {
|
|
6067
6067
|
t.pattern ?? (t.pattern = Pa), K.init(e, t);
|
|
6068
|
-
}), xo = /* @__PURE__ */
|
|
6068
|
+
}), xo = /* @__PURE__ */ _("$ZodCIDRv6", (e, t) => {
|
|
6069
6069
|
t.pattern ?? (t.pattern = Ca), K.init(e, t), e._zod.check = (i) => {
|
|
6070
6070
|
const r = i.value.split("/");
|
|
6071
6071
|
try {
|
|
@@ -6102,7 +6102,7 @@ function xs(e) {
|
|
|
6102
6102
|
return !1;
|
|
6103
6103
|
}
|
|
6104
6104
|
}
|
|
6105
|
-
const go = /* @__PURE__ */
|
|
6105
|
+
const go = /* @__PURE__ */ _("$ZodBase64", (e, t) => {
|
|
6106
6106
|
t.pattern ?? (t.pattern = Aa), K.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (i) => {
|
|
6107
6107
|
xs(i.value) || i.issues.push({
|
|
6108
6108
|
code: "invalid_format",
|
|
@@ -6119,7 +6119,7 @@ function bo(e) {
|
|
|
6119
6119
|
const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), i = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
|
|
6120
6120
|
return xs(i);
|
|
6121
6121
|
}
|
|
6122
|
-
const
|
|
6122
|
+
const ko = /* @__PURE__ */ _("$ZodBase64URL", (e, t) => {
|
|
6123
6123
|
t.pattern ?? (t.pattern = ls), K.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (i) => {
|
|
6124
6124
|
bo(i.value) || i.issues.push({
|
|
6125
6125
|
code: "invalid_format",
|
|
@@ -6129,7 +6129,7 @@ const _o = /* @__PURE__ */ k("$ZodBase64URL", (e, t) => {
|
|
|
6129
6129
|
continue: !t.abort
|
|
6130
6130
|
});
|
|
6131
6131
|
};
|
|
6132
|
-
}),
|
|
6132
|
+
}), _o = /* @__PURE__ */ _("$ZodE164", (e, t) => {
|
|
6133
6133
|
t.pattern ?? (t.pattern = Ea), K.init(e, t);
|
|
6134
6134
|
});
|
|
6135
6135
|
function wo(e, t = null) {
|
|
@@ -6146,7 +6146,7 @@ function wo(e, t = null) {
|
|
|
6146
6146
|
return !1;
|
|
6147
6147
|
}
|
|
6148
6148
|
}
|
|
6149
|
-
const So = /* @__PURE__ */
|
|
6149
|
+
const So = /* @__PURE__ */ _("$ZodJWT", (e, t) => {
|
|
6150
6150
|
K.init(e, t), e._zod.check = (i) => {
|
|
6151
6151
|
wo(i.value, t.alg) || i.issues.push({
|
|
6152
6152
|
code: "invalid_format",
|
|
@@ -6156,7 +6156,7 @@ const So = /* @__PURE__ */ k("$ZodJWT", (e, t) => {
|
|
|
6156
6156
|
continue: !t.abort
|
|
6157
6157
|
});
|
|
6158
6158
|
};
|
|
6159
|
-
}), gs = /* @__PURE__ */
|
|
6159
|
+
}), gs = /* @__PURE__ */ _("$ZodNumber", (e, t) => {
|
|
6160
6160
|
Q.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Da, e._zod.parse = (i, r) => {
|
|
6161
6161
|
if (t.coerce)
|
|
6162
6162
|
try {
|
|
@@ -6175,9 +6175,9 @@ const So = /* @__PURE__ */ k("$ZodJWT", (e, t) => {
|
|
|
6175
6175
|
...u ? { received: u } : {}
|
|
6176
6176
|
}), i;
|
|
6177
6177
|
};
|
|
6178
|
-
}), To = /* @__PURE__ */
|
|
6178
|
+
}), To = /* @__PURE__ */ _("$ZodNumberFormat", (e, t) => {
|
|
6179
6179
|
$a.init(e, t), gs.init(e, t);
|
|
6180
|
-
}), Po = /* @__PURE__ */
|
|
6180
|
+
}), Po = /* @__PURE__ */ _("$ZodBoolean", (e, t) => {
|
|
6181
6181
|
Q.init(e, t), e._zod.pattern = Ma, e._zod.parse = (i, r) => {
|
|
6182
6182
|
if (t.coerce)
|
|
6183
6183
|
try {
|
|
@@ -6192,9 +6192,9 @@ const So = /* @__PURE__ */ k("$ZodJWT", (e, t) => {
|
|
|
6192
6192
|
inst: e
|
|
6193
6193
|
}), i;
|
|
6194
6194
|
};
|
|
6195
|
-
}), Co = /* @__PURE__ */
|
|
6195
|
+
}), Co = /* @__PURE__ */ _("$ZodUnknown", (e, t) => {
|
|
6196
6196
|
Q.init(e, t), e._zod.parse = (i) => i;
|
|
6197
|
-
}), Ao = /* @__PURE__ */
|
|
6197
|
+
}), Ao = /* @__PURE__ */ _("$ZodNever", (e, t) => {
|
|
6198
6198
|
Q.init(e, t), e._zod.parse = (i, r) => (i.issues.push({
|
|
6199
6199
|
expected: "never",
|
|
6200
6200
|
code: "invalid_type",
|
|
@@ -6205,7 +6205,7 @@ const So = /* @__PURE__ */ k("$ZodJWT", (e, t) => {
|
|
|
6205
6205
|
function Xi(e, t, i) {
|
|
6206
6206
|
e.issues.length && t.issues.push(...it(i, e.issues)), t.value[i] = e.value;
|
|
6207
6207
|
}
|
|
6208
|
-
const Eo = /* @__PURE__ */
|
|
6208
|
+
const Eo = /* @__PURE__ */ _("$ZodArray", (e, t) => {
|
|
6209
6209
|
Q.init(e, t), e._zod.parse = (i, r) => {
|
|
6210
6210
|
const n = i.value;
|
|
6211
6211
|
if (!Array.isArray(n))
|
|
@@ -6244,7 +6244,7 @@ function bs(e) {
|
|
|
6244
6244
|
optionalKeys: new Set(i)
|
|
6245
6245
|
};
|
|
6246
6246
|
}
|
|
6247
|
-
function
|
|
6247
|
+
function ks(e, t, i, r, n, u) {
|
|
6248
6248
|
const h = [], d = n.keySet, y = n.catchall._zod, o = y.def.type;
|
|
6249
6249
|
for (const w in t) {
|
|
6250
6250
|
if (d.has(w))
|
|
@@ -6263,7 +6263,7 @@ function _s(e, t, i, r, n, u) {
|
|
|
6263
6263
|
inst: u
|
|
6264
6264
|
}), e.length ? Promise.all(e).then(() => i) : i;
|
|
6265
6265
|
}
|
|
6266
|
-
const Io = /* @__PURE__ */
|
|
6266
|
+
const Io = /* @__PURE__ */ _("$ZodObject", (e, t) => {
|
|
6267
6267
|
if (Q.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
6268
6268
|
const d = t.shape;
|
|
6269
6269
|
Object.defineProperty(t, "shape", {
|
|
@@ -6306,24 +6306,24 @@ const Io = /* @__PURE__ */ k("$ZodObject", (e, t) => {
|
|
|
6306
6306
|
const H = E[D]._zod.run({ value: o[D], issues: [] }, y);
|
|
6307
6307
|
H instanceof Promise ? w.push(H.then((Ee) => Bt(Ee, d, D, o))) : Bt(H, d, D, o);
|
|
6308
6308
|
}
|
|
6309
|
-
return u ?
|
|
6309
|
+
return u ? ks(w, o, d, y, r.value, e) : w.length ? Promise.all(w).then(() => d) : d;
|
|
6310
6310
|
};
|
|
6311
|
-
}), No = /* @__PURE__ */
|
|
6311
|
+
}), No = /* @__PURE__ */ _("$ZodObjectJIT", (e, t) => {
|
|
6312
6312
|
Io.init(e, t);
|
|
6313
6313
|
const i = e._zod.parse, r = Si(() => bs(t)), n = (D) => {
|
|
6314
|
-
const B = new Xa(["shape", "payload", "ctx"]), H = r.value, Ee = (
|
|
6315
|
-
const xe = Gi(
|
|
6314
|
+
const B = new Xa(["shape", "payload", "ctx"]), H = r.value, Ee = (Pe) => {
|
|
6315
|
+
const xe = Gi(Pe);
|
|
6316
6316
|
return `shape[${xe}]._zod.run({ value: input[${xe}], issues: [] }, ctx)`;
|
|
6317
6317
|
};
|
|
6318
6318
|
B.write("const input = payload.value;");
|
|
6319
6319
|
const R = /* @__PURE__ */ Object.create(null);
|
|
6320
6320
|
let ne = 0;
|
|
6321
|
-
for (const
|
|
6322
|
-
R[
|
|
6321
|
+
for (const Pe of H.keys)
|
|
6322
|
+
R[Pe] = `key_${ne++}`;
|
|
6323
6323
|
B.write("const newResult = {};");
|
|
6324
|
-
for (const
|
|
6325
|
-
const xe = R[
|
|
6326
|
-
B.write(`const ${xe} = ${Ee(
|
|
6324
|
+
for (const Pe of H.keys) {
|
|
6325
|
+
const xe = R[Pe], Ge = Gi(Pe);
|
|
6326
|
+
B.write(`const ${xe} = ${Ee(Pe)};`), B.write(`
|
|
6327
6327
|
if (${xe}.issues.length) {
|
|
6328
6328
|
payload.issues = payload.issues.concat(${xe}.issues.map(iss => ({
|
|
6329
6329
|
...iss,
|
|
@@ -6344,7 +6344,7 @@ const Io = /* @__PURE__ */ k("$ZodObject", (e, t) => {
|
|
|
6344
6344
|
}
|
|
6345
6345
|
B.write("payload.value = newResult;"), B.write("return payload;");
|
|
6346
6346
|
const dt = B.compile();
|
|
6347
|
-
return (
|
|
6347
|
+
return (Pe, xe) => dt(D, Pe, xe);
|
|
6348
6348
|
};
|
|
6349
6349
|
let u;
|
|
6350
6350
|
const h = Ft, d = !as.jitless, o = d && Un.value, w = t.catchall;
|
|
@@ -6352,7 +6352,7 @@ const Io = /* @__PURE__ */ k("$ZodObject", (e, t) => {
|
|
|
6352
6352
|
e._zod.parse = (D, B) => {
|
|
6353
6353
|
E ?? (E = r.value);
|
|
6354
6354
|
const H = D.value;
|
|
6355
|
-
return h(H) ? d && o && B?.async === !1 && B.jitless !== !0 ? (u || (u = n(t.shape)), D = u(D, B), w ?
|
|
6355
|
+
return h(H) ? d && o && B?.async === !1 && B.jitless !== !0 ? (u || (u = n(t.shape)), D = u(D, B), w ? ks([], H, D, B, E, e) : D) : i(D, B) : (D.issues.push({
|
|
6356
6356
|
expected: "object",
|
|
6357
6357
|
code: "invalid_type",
|
|
6358
6358
|
input: H,
|
|
@@ -6372,7 +6372,7 @@ function Qi(e, t, i, r) {
|
|
|
6372
6372
|
errors: e.map((u) => u.issues.map((h) => qe(h, r, Ue())))
|
|
6373
6373
|
}), t);
|
|
6374
6374
|
}
|
|
6375
|
-
const Lo = /* @__PURE__ */
|
|
6375
|
+
const Lo = /* @__PURE__ */ _("$ZodUnion", (e, t) => {
|
|
6376
6376
|
Q.init(e, t), Z(e._zod, "optin", () => t.options.some((n) => n._zod.optin === "optional") ? "optional" : void 0), Z(e._zod, "optout", () => t.options.some((n) => n._zod.optout === "optional") ? "optional" : void 0), Z(e._zod, "values", () => {
|
|
6377
6377
|
if (t.options.every((n) => n._zod.values))
|
|
6378
6378
|
return new Set(t.options.flatMap((n) => Array.from(n._zod.values)));
|
|
@@ -6403,7 +6403,7 @@ const Lo = /* @__PURE__ */ k("$ZodUnion", (e, t) => {
|
|
|
6403
6403
|
}
|
|
6404
6404
|
return h ? Promise.all(d).then((y) => Qi(y, n, e, u)) : Qi(d, n, e, u);
|
|
6405
6405
|
};
|
|
6406
|
-
}), Oo = /* @__PURE__ */
|
|
6406
|
+
}), Oo = /* @__PURE__ */ _("$ZodIntersection", (e, t) => {
|
|
6407
6407
|
Q.init(e, t), e._zod.parse = (i, r) => {
|
|
6408
6408
|
const n = i.value, u = t.left._zod.run({ value: n, issues: [] }, r), h = t.right._zod.run({ value: n, issues: [] }, r);
|
|
6409
6409
|
return u instanceof Promise || h instanceof Promise ? Promise.all([u, h]).then(([y, o]) => Yi(i, y, o)) : Yi(i, u, h);
|
|
@@ -6452,7 +6452,7 @@ function Yi(e, t, i) {
|
|
|
6452
6452
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
|
|
6453
6453
|
return e.value = r.data, e;
|
|
6454
6454
|
}
|
|
6455
|
-
const Ro = /* @__PURE__ */
|
|
6455
|
+
const Ro = /* @__PURE__ */ _("$ZodRecord", (e, t) => {
|
|
6456
6456
|
Q.init(e, t), e._zod.parse = (i, r) => {
|
|
6457
6457
|
const n = i.value;
|
|
6458
6458
|
if (!ut(n))
|
|
@@ -6510,7 +6510,7 @@ const Ro = /* @__PURE__ */ k("$ZodRecord", (e, t) => {
|
|
|
6510
6510
|
}
|
|
6511
6511
|
return u.length ? Promise.all(u).then(() => i) : i;
|
|
6512
6512
|
};
|
|
6513
|
-
}), Do = /* @__PURE__ */
|
|
6513
|
+
}), Do = /* @__PURE__ */ _("$ZodEnum", (e, t) => {
|
|
6514
6514
|
Q.init(e, t);
|
|
6515
6515
|
const i = Fn(t.entries), r = new Set(i);
|
|
6516
6516
|
e._zod.values = r, e._zod.pattern = new RegExp(`^(${i.filter((n) => qn.has(typeof n)).map((n) => typeof n == "string" ? ct(n) : n.toString()).join("|")})$`), e._zod.parse = (n, u) => {
|
|
@@ -6522,7 +6522,7 @@ const Ro = /* @__PURE__ */ k("$ZodRecord", (e, t) => {
|
|
|
6522
6522
|
inst: e
|
|
6523
6523
|
}), n;
|
|
6524
6524
|
};
|
|
6525
|
-
}), Mo = /* @__PURE__ */
|
|
6525
|
+
}), Mo = /* @__PURE__ */ _("$ZodLiteral", (e, t) => {
|
|
6526
6526
|
if (Q.init(e, t), t.values.length === 0)
|
|
6527
6527
|
throw new Error("Cannot create literal schema with no valid values");
|
|
6528
6528
|
const i = new Set(t.values);
|
|
@@ -6535,7 +6535,7 @@ const Ro = /* @__PURE__ */ k("$ZodRecord", (e, t) => {
|
|
|
6535
6535
|
inst: e
|
|
6536
6536
|
}), r;
|
|
6537
6537
|
};
|
|
6538
|
-
}), Vo = /* @__PURE__ */
|
|
6538
|
+
}), Vo = /* @__PURE__ */ _("$ZodTransform", (e, t) => {
|
|
6539
6539
|
Q.init(e, t), e._zod.parse = (i, r) => {
|
|
6540
6540
|
if (r.direction === "backward")
|
|
6541
6541
|
throw new ns(e.constructor.name);
|
|
@@ -6550,7 +6550,7 @@ const Ro = /* @__PURE__ */ k("$ZodRecord", (e, t) => {
|
|
|
6550
6550
|
function er(e, t) {
|
|
6551
6551
|
return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
|
|
6552
6552
|
}
|
|
6553
|
-
const zo = /* @__PURE__ */
|
|
6553
|
+
const zo = /* @__PURE__ */ _("$ZodOptional", (e, t) => {
|
|
6554
6554
|
Q.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", Z(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), Z(e._zod, "pattern", () => {
|
|
6555
6555
|
const i = t.innerType._zod.pattern;
|
|
6556
6556
|
return i ? new RegExp(`^(${Pi(i.source)})?$`) : void 0;
|
|
@@ -6561,12 +6561,12 @@ const zo = /* @__PURE__ */ k("$ZodOptional", (e, t) => {
|
|
|
6561
6561
|
}
|
|
6562
6562
|
return i.value === void 0 ? i : t.innerType._zod.run(i, r);
|
|
6563
6563
|
};
|
|
6564
|
-
}), jo = /* @__PURE__ */
|
|
6564
|
+
}), jo = /* @__PURE__ */ _("$ZodNullable", (e, t) => {
|
|
6565
6565
|
Q.init(e, t), Z(e._zod, "optin", () => t.innerType._zod.optin), Z(e._zod, "optout", () => t.innerType._zod.optout), Z(e._zod, "pattern", () => {
|
|
6566
6566
|
const i = t.innerType._zod.pattern;
|
|
6567
6567
|
return i ? new RegExp(`^(${Pi(i.source)}|null)$`) : void 0;
|
|
6568
6568
|
}), Z(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (i, r) => i.value === null ? i : t.innerType._zod.run(i, r);
|
|
6569
|
-
}), $o = /* @__PURE__ */
|
|
6569
|
+
}), $o = /* @__PURE__ */ _("$ZodDefault", (e, t) => {
|
|
6570
6570
|
Q.init(e, t), e._zod.optin = "optional", Z(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (i, r) => {
|
|
6571
6571
|
if (r.direction === "backward")
|
|
6572
6572
|
return t.innerType._zod.run(i, r);
|
|
@@ -6579,9 +6579,9 @@ const zo = /* @__PURE__ */ k("$ZodOptional", (e, t) => {
|
|
|
6579
6579
|
function tr(e, t) {
|
|
6580
6580
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
6581
6581
|
}
|
|
6582
|
-
const Fo = /* @__PURE__ */
|
|
6582
|
+
const Fo = /* @__PURE__ */ _("$ZodPrefault", (e, t) => {
|
|
6583
6583
|
Q.init(e, t), e._zod.optin = "optional", Z(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (i, r) => (r.direction === "backward" || i.value === void 0 && (i.value = t.defaultValue), t.innerType._zod.run(i, r));
|
|
6584
|
-
}), Bo = /* @__PURE__ */
|
|
6584
|
+
}), Bo = /* @__PURE__ */ _("$ZodNonOptional", (e, t) => {
|
|
6585
6585
|
Q.init(e, t), Z(e._zod, "values", () => {
|
|
6586
6586
|
const i = t.innerType._zod.values;
|
|
6587
6587
|
return i ? new Set([...i].filter((r) => r !== void 0)) : void 0;
|
|
@@ -6598,7 +6598,7 @@ function ir(e, t) {
|
|
|
6598
6598
|
inst: t
|
|
6599
6599
|
}), e;
|
|
6600
6600
|
}
|
|
6601
|
-
const Zo = /* @__PURE__ */
|
|
6601
|
+
const Zo = /* @__PURE__ */ _("$ZodCatch", (e, t) => {
|
|
6602
6602
|
Q.init(e, t), Z(e._zod, "optin", () => t.innerType._zod.optin), Z(e._zod, "optout", () => t.innerType._zod.optout), Z(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (i, r) => {
|
|
6603
6603
|
if (r.direction === "backward")
|
|
6604
6604
|
return t.innerType._zod.run(i, r);
|
|
@@ -6617,7 +6617,7 @@ const Zo = /* @__PURE__ */ k("$ZodCatch", (e, t) => {
|
|
|
6617
6617
|
input: i.value
|
|
6618
6618
|
}), i.issues = []), i);
|
|
6619
6619
|
};
|
|
6620
|
-
}), Uo = /* @__PURE__ */
|
|
6620
|
+
}), Uo = /* @__PURE__ */ _("$ZodPipe", (e, t) => {
|
|
6621
6621
|
Q.init(e, t), Z(e._zod, "values", () => t.in._zod.values), Z(e._zod, "optin", () => t.in._zod.optin), Z(e._zod, "optout", () => t.out._zod.optout), Z(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (i, r) => {
|
|
6622
6622
|
if (r.direction === "backward") {
|
|
6623
6623
|
const u = t.out._zod.run(i, r);
|
|
@@ -6630,7 +6630,7 @@ const Zo = /* @__PURE__ */ k("$ZodCatch", (e, t) => {
|
|
|
6630
6630
|
function Lt(e, t, i) {
|
|
6631
6631
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, i);
|
|
6632
6632
|
}
|
|
6633
|
-
const qo = /* @__PURE__ */
|
|
6633
|
+
const qo = /* @__PURE__ */ _("$ZodReadonly", (e, t) => {
|
|
6634
6634
|
Q.init(e, t), Z(e._zod, "propValues", () => t.innerType._zod.propValues), Z(e._zod, "values", () => t.innerType._zod.values), Z(e._zod, "optin", () => t.innerType?._zod?.optin), Z(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (i, r) => {
|
|
6635
6635
|
if (r.direction === "backward")
|
|
6636
6636
|
return t.innerType._zod.run(i, r);
|
|
@@ -6641,7 +6641,7 @@ const qo = /* @__PURE__ */ k("$ZodReadonly", (e, t) => {
|
|
|
6641
6641
|
function rr(e) {
|
|
6642
6642
|
return e.value = Object.freeze(e.value), e;
|
|
6643
6643
|
}
|
|
6644
|
-
const Ho = /* @__PURE__ */
|
|
6644
|
+
const Ho = /* @__PURE__ */ _("$ZodCustom", (e, t) => {
|
|
6645
6645
|
fe.init(e, t), Q.init(e, t), e._zod.parse = (i, r) => i, e._zod.check = (i) => {
|
|
6646
6646
|
const r = i.value, n = t.fn(r);
|
|
6647
6647
|
if (n instanceof Promise)
|
|
@@ -6661,7 +6661,7 @@ function sr(e, t, i, r) {
|
|
|
6661
6661
|
continue: !r._zod.def.abort
|
|
6662
6662
|
// params: inst._zod.def.params,
|
|
6663
6663
|
};
|
|
6664
|
-
r._zod.def.params && (n.params = r._zod.def.params), t.issues.push(
|
|
6664
|
+
r._zod.def.params && (n.params = r._zod.def.params), t.issues.push(_t(n));
|
|
6665
6665
|
}
|
|
6666
6666
|
}
|
|
6667
6667
|
var nr;
|
|
@@ -6947,14 +6947,14 @@ function bu(e, t) {
|
|
|
6947
6947
|
...O(t)
|
|
6948
6948
|
});
|
|
6949
6949
|
}
|
|
6950
|
-
function
|
|
6950
|
+
function ku(e, t) {
|
|
6951
6951
|
return new e({
|
|
6952
6952
|
type: "number",
|
|
6953
6953
|
checks: [],
|
|
6954
6954
|
...O(t)
|
|
6955
6955
|
});
|
|
6956
6956
|
}
|
|
6957
|
-
function
|
|
6957
|
+
function _u(e, t) {
|
|
6958
6958
|
return new e({
|
|
6959
6959
|
type: "number",
|
|
6960
6960
|
check: "number_format",
|
|
@@ -7019,7 +7019,7 @@ function cr(e, t) {
|
|
|
7019
7019
|
value: e
|
|
7020
7020
|
});
|
|
7021
7021
|
}
|
|
7022
|
-
function
|
|
7022
|
+
function _s(e, t) {
|
|
7023
7023
|
return new Fa({
|
|
7024
7024
|
check: "max_length",
|
|
7025
7025
|
...O(t),
|
|
@@ -7128,10 +7128,10 @@ function zu(e, t, i) {
|
|
|
7128
7128
|
function ju(e) {
|
|
7129
7129
|
const t = $u((i) => (i.addIssue = (r) => {
|
|
7130
7130
|
if (typeof r == "string")
|
|
7131
|
-
i.issues.push(
|
|
7131
|
+
i.issues.push(_t(r, i.value, t._zod.def));
|
|
7132
7132
|
else {
|
|
7133
7133
|
const n = r;
|
|
7134
|
-
n.fatal && (n.continue = !1), n.code ?? (n.code = "custom"), n.input ?? (n.input = i.value), n.inst ?? (n.inst = t), n.continue ?? (n.continue = !t._zod.def.abort), i.issues.push(
|
|
7134
|
+
n.fatal && (n.continue = !1), n.code ?? (n.code = "custom"), n.input ?? (n.input = i.value), n.inst ?? (n.inst = t), n.continue ?? (n.continue = !t._zod.def.abort), i.issues.push(_t(n));
|
|
7135
7135
|
}
|
|
7136
7136
|
}, e(i.value, i)));
|
|
7137
7137
|
return t;
|
|
@@ -7143,25 +7143,25 @@ function $u(e, t) {
|
|
|
7143
7143
|
});
|
|
7144
7144
|
return i._zod.check = e, i;
|
|
7145
7145
|
}
|
|
7146
|
-
const Fu = /* @__PURE__ */
|
|
7146
|
+
const Fu = /* @__PURE__ */ _("ZodISODateTime", (e, t) => {
|
|
7147
7147
|
ho.init(e, t), Y.init(e, t);
|
|
7148
7148
|
});
|
|
7149
7149
|
function Bu(e) {
|
|
7150
7150
|
return vu(Fu, e);
|
|
7151
7151
|
}
|
|
7152
|
-
const Zu = /* @__PURE__ */
|
|
7152
|
+
const Zu = /* @__PURE__ */ _("ZodISODate", (e, t) => {
|
|
7153
7153
|
po.init(e, t), Y.init(e, t);
|
|
7154
7154
|
});
|
|
7155
7155
|
function Uu(e) {
|
|
7156
7156
|
return xu(Zu, e);
|
|
7157
7157
|
}
|
|
7158
|
-
const qu = /* @__PURE__ */
|
|
7158
|
+
const qu = /* @__PURE__ */ _("ZodISOTime", (e, t) => {
|
|
7159
7159
|
lo.init(e, t), Y.init(e, t);
|
|
7160
7160
|
});
|
|
7161
7161
|
function Hu(e) {
|
|
7162
7162
|
return gu(qu, e);
|
|
7163
7163
|
}
|
|
7164
|
-
const Wu = /* @__PURE__ */
|
|
7164
|
+
const Wu = /* @__PURE__ */ _("ZodISODuration", (e, t) => {
|
|
7165
7165
|
fo.init(e, t), Y.init(e, t);
|
|
7166
7166
|
});
|
|
7167
7167
|
function Ku(e) {
|
|
@@ -7196,9 +7196,9 @@ const Gu = (e, t) => {
|
|
|
7196
7196
|
// enumerable: false,
|
|
7197
7197
|
}
|
|
7198
7198
|
});
|
|
7199
|
-
},
|
|
7199
|
+
}, Te = _("ZodError", Gu, {
|
|
7200
7200
|
Parent: Error
|
|
7201
|
-
}), Ju = /* @__PURE__ */ Ai(
|
|
7201
|
+
}), Ju = /* @__PURE__ */ Ai(Te), Xu = /* @__PURE__ */ Ei(Te), Qu = /* @__PURE__ */ Gt(Te), Yu = /* @__PURE__ */ Jt(Te), ec = /* @__PURE__ */ na(Te), tc = /* @__PURE__ */ aa(Te), ic = /* @__PURE__ */ oa(Te), rc = /* @__PURE__ */ ua(Te), sc = /* @__PURE__ */ ca(Te), nc = /* @__PURE__ */ ha(Te), ac = /* @__PURE__ */ pa(Te), oc = /* @__PURE__ */ la(Te), ee = /* @__PURE__ */ _("ZodType", (e, t) => (Q.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...i) => e.clone(Ye(t, {
|
|
7202
7202
|
checks: [
|
|
7203
7203
|
...t.checks ?? [],
|
|
7204
7204
|
...i.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
|
|
@@ -7216,95 +7216,95 @@ const Gu = (e, t) => {
|
|
|
7216
7216
|
return Ot.get(e);
|
|
7217
7217
|
const r = e.clone();
|
|
7218
7218
|
return Ot.add(r, i[0]), r;
|
|
7219
|
-
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), Ss = /* @__PURE__ */
|
|
7219
|
+
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), Ss = /* @__PURE__ */ _("_ZodString", (e, t) => {
|
|
7220
7220
|
Ii.init(e, t), ee.init(e, t);
|
|
7221
7221
|
const i = e._zod.bag;
|
|
7222
|
-
e.format = i.format ?? null, e.minLength = i.minimum ?? null, e.maxLength = i.maximum ?? null, e.regex = (...r) => e.check(Pu(...r)), e.includes = (...r) => e.check(Eu(...r)), e.startsWith = (...r) => e.check(Iu(...r)), e.endsWith = (...r) => e.check(Nu(...r)), e.min = (...r) => e.check(Zt(...r)), e.max = (...r) => e.check(
|
|
7223
|
-
}), uc = /* @__PURE__ */
|
|
7224
|
-
Ii.init(e, t), Ss.init(e, t), e.email = (i) => e.check(Jo(cc, i)), e.url = (i) => e.check(tu(hc, i)), e.jwt = (i) => e.check(yu(Tc, i)), e.emoji = (i) => e.check(iu(pc, i)), e.guid = (i) => e.check(ar(hr, i)), e.uuid = (i) => e.check(Xo(Rt, i)), e.uuidv4 = (i) => e.check(Qo(Rt, i)), e.uuidv6 = (i) => e.check(Yo(Rt, i)), e.uuidv7 = (i) => e.check(eu(Rt, i)), e.nanoid = (i) => e.check(ru(lc, i)), e.guid = (i) => e.check(ar(hr, i)), e.cuid = (i) => e.check(su(fc, i)), e.cuid2 = (i) => e.check(nu(dc, i)), e.ulid = (i) => e.check(au(mc, i)), e.base64 = (i) => e.check(fu(
|
|
7222
|
+
e.format = i.format ?? null, e.minLength = i.minimum ?? null, e.maxLength = i.maximum ?? null, e.regex = (...r) => e.check(Pu(...r)), e.includes = (...r) => e.check(Eu(...r)), e.startsWith = (...r) => e.check(Iu(...r)), e.endsWith = (...r) => e.check(Nu(...r)), e.min = (...r) => e.check(Zt(...r)), e.max = (...r) => e.check(_s(...r)), e.length = (...r) => e.check(ws(...r)), e.nonempty = (...r) => e.check(Zt(1, ...r)), e.lowercase = (r) => e.check(Cu(r)), e.uppercase = (r) => e.check(Au(r)), e.trim = () => e.check(Ou()), e.normalize = (...r) => e.check(Lu(...r)), e.toLowerCase = () => e.check(Ru()), e.toUpperCase = () => e.check(Du()), e.slugify = () => e.check(Mu());
|
|
7223
|
+
}), uc = /* @__PURE__ */ _("ZodString", (e, t) => {
|
|
7224
|
+
Ii.init(e, t), Ss.init(e, t), e.email = (i) => e.check(Jo(cc, i)), e.url = (i) => e.check(tu(hc, i)), e.jwt = (i) => e.check(yu(Tc, i)), e.emoji = (i) => e.check(iu(pc, i)), e.guid = (i) => e.check(ar(hr, i)), e.uuid = (i) => e.check(Xo(Rt, i)), e.uuidv4 = (i) => e.check(Qo(Rt, i)), e.uuidv6 = (i) => e.check(Yo(Rt, i)), e.uuidv7 = (i) => e.check(eu(Rt, i)), e.nanoid = (i) => e.check(ru(lc, i)), e.guid = (i) => e.check(ar(hr, i)), e.cuid = (i) => e.check(su(fc, i)), e.cuid2 = (i) => e.check(nu(dc, i)), e.ulid = (i) => e.check(au(mc, i)), e.base64 = (i) => e.check(fu(_c, i)), e.base64url = (i) => e.check(du(wc, i)), e.xid = (i) => e.check(ou(yc, i)), e.ksuid = (i) => e.check(uu(vc, i)), e.ipv4 = (i) => e.check(cu(xc, i)), e.ipv6 = (i) => e.check(hu(gc, i)), e.cidrv4 = (i) => e.check(pu(bc, i)), e.cidrv6 = (i) => e.check(lu(kc, i)), e.e164 = (i) => e.check(mu(Sc, i)), e.datetime = (i) => e.check(Bu(i)), e.date = (i) => e.check(Uu(i)), e.time = (i) => e.check(Hu(i)), e.duration = (i) => e.check(Ku(i));
|
|
7225
7225
|
});
|
|
7226
7226
|
function L(e) {
|
|
7227
7227
|
return Go(uc, e);
|
|
7228
7228
|
}
|
|
7229
|
-
const Y = /* @__PURE__ */
|
|
7229
|
+
const Y = /* @__PURE__ */ _("ZodStringFormat", (e, t) => {
|
|
7230
7230
|
K.init(e, t), Ss.init(e, t);
|
|
7231
|
-
}), cc = /* @__PURE__ */
|
|
7231
|
+
}), cc = /* @__PURE__ */ _("ZodEmail", (e, t) => {
|
|
7232
7232
|
to.init(e, t), Y.init(e, t);
|
|
7233
|
-
}), hr = /* @__PURE__ */
|
|
7233
|
+
}), hr = /* @__PURE__ */ _("ZodGUID", (e, t) => {
|
|
7234
7234
|
Ya.init(e, t), Y.init(e, t);
|
|
7235
|
-
}), Rt = /* @__PURE__ */
|
|
7235
|
+
}), Rt = /* @__PURE__ */ _("ZodUUID", (e, t) => {
|
|
7236
7236
|
eo.init(e, t), Y.init(e, t);
|
|
7237
|
-
}), hc = /* @__PURE__ */
|
|
7237
|
+
}), hc = /* @__PURE__ */ _("ZodURL", (e, t) => {
|
|
7238
7238
|
io.init(e, t), Y.init(e, t);
|
|
7239
|
-
}), pc = /* @__PURE__ */
|
|
7239
|
+
}), pc = /* @__PURE__ */ _("ZodEmoji", (e, t) => {
|
|
7240
7240
|
ro.init(e, t), Y.init(e, t);
|
|
7241
|
-
}), lc = /* @__PURE__ */
|
|
7241
|
+
}), lc = /* @__PURE__ */ _("ZodNanoID", (e, t) => {
|
|
7242
7242
|
so.init(e, t), Y.init(e, t);
|
|
7243
|
-
}), fc = /* @__PURE__ */
|
|
7243
|
+
}), fc = /* @__PURE__ */ _("ZodCUID", (e, t) => {
|
|
7244
7244
|
no.init(e, t), Y.init(e, t);
|
|
7245
|
-
}), dc = /* @__PURE__ */
|
|
7245
|
+
}), dc = /* @__PURE__ */ _("ZodCUID2", (e, t) => {
|
|
7246
7246
|
ao.init(e, t), Y.init(e, t);
|
|
7247
|
-
}), mc = /* @__PURE__ */
|
|
7247
|
+
}), mc = /* @__PURE__ */ _("ZodULID", (e, t) => {
|
|
7248
7248
|
oo.init(e, t), Y.init(e, t);
|
|
7249
|
-
}), yc = /* @__PURE__ */
|
|
7249
|
+
}), yc = /* @__PURE__ */ _("ZodXID", (e, t) => {
|
|
7250
7250
|
uo.init(e, t), Y.init(e, t);
|
|
7251
|
-
}), vc = /* @__PURE__ */
|
|
7251
|
+
}), vc = /* @__PURE__ */ _("ZodKSUID", (e, t) => {
|
|
7252
7252
|
co.init(e, t), Y.init(e, t);
|
|
7253
|
-
}), xc = /* @__PURE__ */
|
|
7253
|
+
}), xc = /* @__PURE__ */ _("ZodIPv4", (e, t) => {
|
|
7254
7254
|
mo.init(e, t), Y.init(e, t);
|
|
7255
|
-
}), gc = /* @__PURE__ */
|
|
7255
|
+
}), gc = /* @__PURE__ */ _("ZodIPv6", (e, t) => {
|
|
7256
7256
|
yo.init(e, t), Y.init(e, t);
|
|
7257
|
-
}), bc = /* @__PURE__ */
|
|
7257
|
+
}), bc = /* @__PURE__ */ _("ZodCIDRv4", (e, t) => {
|
|
7258
7258
|
vo.init(e, t), Y.init(e, t);
|
|
7259
|
-
}),
|
|
7259
|
+
}), kc = /* @__PURE__ */ _("ZodCIDRv6", (e, t) => {
|
|
7260
7260
|
xo.init(e, t), Y.init(e, t);
|
|
7261
|
-
}),
|
|
7261
|
+
}), _c = /* @__PURE__ */ _("ZodBase64", (e, t) => {
|
|
7262
7262
|
go.init(e, t), Y.init(e, t);
|
|
7263
|
-
}), wc = /* @__PURE__ */
|
|
7264
|
-
_o.init(e, t), Y.init(e, t);
|
|
7265
|
-
}), Sc = /* @__PURE__ */ k("ZodE164", (e, t) => {
|
|
7263
|
+
}), wc = /* @__PURE__ */ _("ZodBase64URL", (e, t) => {
|
|
7266
7264
|
ko.init(e, t), Y.init(e, t);
|
|
7267
|
-
}),
|
|
7265
|
+
}), Sc = /* @__PURE__ */ _("ZodE164", (e, t) => {
|
|
7266
|
+
_o.init(e, t), Y.init(e, t);
|
|
7267
|
+
}), Tc = /* @__PURE__ */ _("ZodJWT", (e, t) => {
|
|
7268
7268
|
So.init(e, t), Y.init(e, t);
|
|
7269
|
-
}), Ts = /* @__PURE__ */
|
|
7269
|
+
}), Ts = /* @__PURE__ */ _("ZodNumber", (e, t) => {
|
|
7270
7270
|
gs.init(e, t), ee.init(e, t), e.gt = (r, n) => e.check(ur(r, n)), e.gte = (r, n) => e.check(oi(r, n)), e.min = (r, n) => e.check(oi(r, n)), e.lt = (r, n) => e.check(or(r, n)), e.lte = (r, n) => e.check(ai(r, n)), e.max = (r, n) => e.check(ai(r, n)), e.int = (r) => e.check(pr(r)), e.safe = (r) => e.check(pr(r)), e.positive = (r) => e.check(ur(0, r)), e.nonnegative = (r) => e.check(oi(0, r)), e.negative = (r) => e.check(or(0, r)), e.nonpositive = (r) => e.check(ai(0, r)), e.multipleOf = (r, n) => e.check(cr(r, n)), e.step = (r, n) => e.check(cr(r, n)), e.finite = () => e;
|
|
7271
7271
|
const i = e._zod.bag;
|
|
7272
7272
|
e.minValue = Math.max(i.minimum ?? Number.NEGATIVE_INFINITY, i.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(i.maximum ?? Number.POSITIVE_INFINITY, i.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (i.format ?? "").includes("int") || Number.isSafeInteger(i.multipleOf ?? 0.5), e.isFinite = !0, e.format = i.format ?? null;
|
|
7273
7273
|
});
|
|
7274
7274
|
function ze(e) {
|
|
7275
|
-
return
|
|
7275
|
+
return ku(Ts, e);
|
|
7276
7276
|
}
|
|
7277
|
-
const Pc = /* @__PURE__ */
|
|
7277
|
+
const Pc = /* @__PURE__ */ _("ZodNumberFormat", (e, t) => {
|
|
7278
7278
|
To.init(e, t), Ts.init(e, t);
|
|
7279
7279
|
});
|
|
7280
7280
|
function pr(e) {
|
|
7281
|
-
return
|
|
7281
|
+
return _u(Pc, e);
|
|
7282
7282
|
}
|
|
7283
|
-
const Cc = /* @__PURE__ */
|
|
7283
|
+
const Cc = /* @__PURE__ */ _("ZodBoolean", (e, t) => {
|
|
7284
7284
|
Po.init(e, t), ee.init(e, t);
|
|
7285
7285
|
});
|
|
7286
7286
|
function Ac(e) {
|
|
7287
7287
|
return wu(Cc, e);
|
|
7288
7288
|
}
|
|
7289
|
-
const Ec = /* @__PURE__ */
|
|
7289
|
+
const Ec = /* @__PURE__ */ _("ZodUnknown", (e, t) => {
|
|
7290
7290
|
Co.init(e, t), ee.init(e, t);
|
|
7291
7291
|
});
|
|
7292
7292
|
function lr() {
|
|
7293
7293
|
return Su(Ec);
|
|
7294
7294
|
}
|
|
7295
|
-
const Ic = /* @__PURE__ */
|
|
7295
|
+
const Ic = /* @__PURE__ */ _("ZodNever", (e, t) => {
|
|
7296
7296
|
Ao.init(e, t), ee.init(e, t);
|
|
7297
7297
|
});
|
|
7298
7298
|
function Nc(e) {
|
|
7299
7299
|
return Tu(Ic, e);
|
|
7300
7300
|
}
|
|
7301
|
-
const Lc = /* @__PURE__ */
|
|
7302
|
-
Eo.init(e, t), ee.init(e, t), e.element = t.element, e.min = (i, r) => e.check(Zt(i, r)), e.nonempty = (i) => e.check(Zt(1, i)), e.max = (i, r) => e.check(
|
|
7301
|
+
const Lc = /* @__PURE__ */ _("ZodArray", (e, t) => {
|
|
7302
|
+
Eo.init(e, t), ee.init(e, t), e.element = t.element, e.min = (i, r) => e.check(Zt(i, r)), e.nonempty = (i) => e.check(Zt(1, i)), e.max = (i, r) => e.check(_s(i, r)), e.length = (i, r) => e.check(ws(i, r)), e.unwrap = () => e.element;
|
|
7303
7303
|
});
|
|
7304
7304
|
function He(e, t) {
|
|
7305
7305
|
return Vu(Lc, e, t);
|
|
7306
7306
|
}
|
|
7307
|
-
const Oc = /* @__PURE__ */
|
|
7307
|
+
const Oc = /* @__PURE__ */ _("ZodObject", (e, t) => {
|
|
7308
7308
|
No.init(e, t), ee.init(e, t), Z(e, "shape", () => t.shape), e.keyof = () => zc(Object.keys(e._zod.def.shape)), e.catchall = (i) => e.clone({ ...e._zod.def, catchall: i }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: lr() }), e.loose = () => e.clone({ ...e._zod.def, catchall: lr() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Nc() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (i) => Jn(e, i), e.safeExtend = (i) => Xn(e, i), e.merge = (i) => Qn(e, i), e.pick = (i) => Kn(e, i), e.omit = (i) => Gn(e, i), e.partial = (...i) => Yn(Ps, e, i[0]), e.required = (...i) => ea(Cs, e, i[0]);
|
|
7309
7309
|
});
|
|
7310
7310
|
function Re(e, t) {
|
|
@@ -7315,7 +7315,7 @@ function Re(e, t) {
|
|
|
7315
7315
|
};
|
|
7316
7316
|
return new Oc(i);
|
|
7317
7317
|
}
|
|
7318
|
-
const Rc = /* @__PURE__ */
|
|
7318
|
+
const Rc = /* @__PURE__ */ _("ZodUnion", (e, t) => {
|
|
7319
7319
|
Lo.init(e, t), ee.init(e, t), e.options = t.options;
|
|
7320
7320
|
});
|
|
7321
7321
|
function re(e, t) {
|
|
@@ -7325,7 +7325,7 @@ function re(e, t) {
|
|
|
7325
7325
|
...O(t)
|
|
7326
7326
|
});
|
|
7327
7327
|
}
|
|
7328
|
-
const Dc = /* @__PURE__ */
|
|
7328
|
+
const Dc = /* @__PURE__ */ _("ZodIntersection", (e, t) => {
|
|
7329
7329
|
Oo.init(e, t), ee.init(e, t);
|
|
7330
7330
|
});
|
|
7331
7331
|
function Mc(e, t) {
|
|
@@ -7335,7 +7335,7 @@ function Mc(e, t) {
|
|
|
7335
7335
|
right: t
|
|
7336
7336
|
});
|
|
7337
7337
|
}
|
|
7338
|
-
const Vc = /* @__PURE__ */
|
|
7338
|
+
const Vc = /* @__PURE__ */ _("ZodRecord", (e, t) => {
|
|
7339
7339
|
Ro.init(e, t), ee.init(e, t), e.keyType = t.keyType, e.valueType = t.valueType;
|
|
7340
7340
|
});
|
|
7341
7341
|
function ve(e, t, i) {
|
|
@@ -7346,7 +7346,7 @@ function ve(e, t, i) {
|
|
|
7346
7346
|
...O(i)
|
|
7347
7347
|
});
|
|
7348
7348
|
}
|
|
7349
|
-
const mi = /* @__PURE__ */
|
|
7349
|
+
const mi = /* @__PURE__ */ _("ZodEnum", (e, t) => {
|
|
7350
7350
|
Do.init(e, t), ee.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
7351
7351
|
const i = new Set(Object.keys(t.entries));
|
|
7352
7352
|
e.extract = (r, n) => {
|
|
@@ -7385,7 +7385,7 @@ function zc(e, t) {
|
|
|
7385
7385
|
...O(t)
|
|
7386
7386
|
});
|
|
7387
7387
|
}
|
|
7388
|
-
const jc = /* @__PURE__ */
|
|
7388
|
+
const jc = /* @__PURE__ */ _("ZodLiteral", (e, t) => {
|
|
7389
7389
|
Mo.init(e, t), ee.init(e, t), e.values = new Set(t.values), Object.defineProperty(e, "value", {
|
|
7390
7390
|
get() {
|
|
7391
7391
|
if (t.values.length > 1)
|
|
@@ -7401,16 +7401,16 @@ function g(e, t) {
|
|
|
7401
7401
|
...O(t)
|
|
7402
7402
|
});
|
|
7403
7403
|
}
|
|
7404
|
-
const $c = /* @__PURE__ */
|
|
7404
|
+
const $c = /* @__PURE__ */ _("ZodTransform", (e, t) => {
|
|
7405
7405
|
Vo.init(e, t), ee.init(e, t), e._zod.parse = (i, r) => {
|
|
7406
7406
|
if (r.direction === "backward")
|
|
7407
7407
|
throw new ns(e.constructor.name);
|
|
7408
7408
|
i.addIssue = (u) => {
|
|
7409
7409
|
if (typeof u == "string")
|
|
7410
|
-
i.issues.push(
|
|
7410
|
+
i.issues.push(_t(u, i.value, t));
|
|
7411
7411
|
else {
|
|
7412
7412
|
const h = u;
|
|
7413
|
-
h.fatal && (h.continue = !1), h.code ?? (h.code = "custom"), h.input ?? (h.input = i.value), h.inst ?? (h.inst = e), i.issues.push(
|
|
7413
|
+
h.fatal && (h.continue = !1), h.code ?? (h.code = "custom"), h.input ?? (h.input = i.value), h.inst ?? (h.inst = e), i.issues.push(_t(h));
|
|
7414
7414
|
}
|
|
7415
7415
|
};
|
|
7416
7416
|
const n = t.transform(i.value, i);
|
|
@@ -7423,7 +7423,7 @@ function Fc(e) {
|
|
|
7423
7423
|
transform: e
|
|
7424
7424
|
});
|
|
7425
7425
|
}
|
|
7426
|
-
const Ps = /* @__PURE__ */
|
|
7426
|
+
const Ps = /* @__PURE__ */ _("ZodOptional", (e, t) => {
|
|
7427
7427
|
zo.init(e, t), ee.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
7428
7428
|
});
|
|
7429
7429
|
function fr(e) {
|
|
@@ -7432,7 +7432,7 @@ function fr(e) {
|
|
|
7432
7432
|
innerType: e
|
|
7433
7433
|
});
|
|
7434
7434
|
}
|
|
7435
|
-
const Bc = /* @__PURE__ */
|
|
7435
|
+
const Bc = /* @__PURE__ */ _("ZodNullable", (e, t) => {
|
|
7436
7436
|
jo.init(e, t), ee.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
7437
7437
|
});
|
|
7438
7438
|
function dr(e) {
|
|
@@ -7441,7 +7441,7 @@ function dr(e) {
|
|
|
7441
7441
|
innerType: e
|
|
7442
7442
|
});
|
|
7443
7443
|
}
|
|
7444
|
-
const Zc = /* @__PURE__ */
|
|
7444
|
+
const Zc = /* @__PURE__ */ _("ZodDefault", (e, t) => {
|
|
7445
7445
|
$o.init(e, t), ee.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
7446
7446
|
});
|
|
7447
7447
|
function Uc(e, t) {
|
|
@@ -7453,7 +7453,7 @@ function Uc(e, t) {
|
|
|
7453
7453
|
}
|
|
7454
7454
|
});
|
|
7455
7455
|
}
|
|
7456
|
-
const qc = /* @__PURE__ */
|
|
7456
|
+
const qc = /* @__PURE__ */ _("ZodPrefault", (e, t) => {
|
|
7457
7457
|
Fo.init(e, t), ee.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
7458
7458
|
});
|
|
7459
7459
|
function Hc(e, t) {
|
|
@@ -7465,7 +7465,7 @@ function Hc(e, t) {
|
|
|
7465
7465
|
}
|
|
7466
7466
|
});
|
|
7467
7467
|
}
|
|
7468
|
-
const Cs = /* @__PURE__ */
|
|
7468
|
+
const Cs = /* @__PURE__ */ _("ZodNonOptional", (e, t) => {
|
|
7469
7469
|
Bo.init(e, t), ee.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
7470
7470
|
});
|
|
7471
7471
|
function Wc(e, t) {
|
|
@@ -7475,7 +7475,7 @@ function Wc(e, t) {
|
|
|
7475
7475
|
...O(t)
|
|
7476
7476
|
});
|
|
7477
7477
|
}
|
|
7478
|
-
const Kc = /* @__PURE__ */
|
|
7478
|
+
const Kc = /* @__PURE__ */ _("ZodCatch", (e, t) => {
|
|
7479
7479
|
Zo.init(e, t), ee.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
7480
7480
|
});
|
|
7481
7481
|
function Gc(e, t) {
|
|
@@ -7485,7 +7485,7 @@ function Gc(e, t) {
|
|
|
7485
7485
|
catchValue: typeof t == "function" ? t : () => t
|
|
7486
7486
|
});
|
|
7487
7487
|
}
|
|
7488
|
-
const Jc = /* @__PURE__ */
|
|
7488
|
+
const Jc = /* @__PURE__ */ _("ZodPipe", (e, t) => {
|
|
7489
7489
|
Uo.init(e, t), ee.init(e, t), e.in = t.in, e.out = t.out;
|
|
7490
7490
|
});
|
|
7491
7491
|
function mr(e, t) {
|
|
@@ -7496,7 +7496,7 @@ function mr(e, t) {
|
|
|
7496
7496
|
// ...util.normalizeParams(params),
|
|
7497
7497
|
});
|
|
7498
7498
|
}
|
|
7499
|
-
const Xc = /* @__PURE__ */
|
|
7499
|
+
const Xc = /* @__PURE__ */ _("ZodReadonly", (e, t) => {
|
|
7500
7500
|
qo.init(e, t), ee.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
7501
7501
|
});
|
|
7502
7502
|
function Qc(e) {
|
|
@@ -7505,7 +7505,7 @@ function Qc(e) {
|
|
|
7505
7505
|
innerType: e
|
|
7506
7506
|
});
|
|
7507
7507
|
}
|
|
7508
|
-
const Yc = /* @__PURE__ */
|
|
7508
|
+
const Yc = /* @__PURE__ */ _("ZodCustom", (e, t) => {
|
|
7509
7509
|
Ho.init(e, t), ee.init(e, t);
|
|
7510
7510
|
});
|
|
7511
7511
|
function eh(e, t = {}) {
|
|
@@ -7638,7 +7638,7 @@ const ih = re([g("amber"), g("green"), g("red"), g("other")]), rh = re([
|
|
|
7638
7638
|
id: L(),
|
|
7639
7639
|
color: vh,
|
|
7640
7640
|
label: L()
|
|
7641
|
-
}),
|
|
7641
|
+
}), kh = Re({
|
|
7642
7642
|
id: L(),
|
|
7643
7643
|
label: ve(L(), L()),
|
|
7644
7644
|
description: ve(L(), L()),
|
|
@@ -7657,11 +7657,11 @@ const ih = re([g("amber"), g("green"), g("red"), g("other")]), rh = re([
|
|
|
7657
7657
|
status: bh.optional(),
|
|
7658
7658
|
statusId: xh,
|
|
7659
7659
|
typeId: gh
|
|
7660
|
-
}),
|
|
7661
|
-
typeId:
|
|
7660
|
+
}), _h = re([g("app"), g("engine"), g("connector"), g("context"), g("presenter"), g("tool")]), wh = As.extend({
|
|
7661
|
+
typeId: _h,
|
|
7662
7662
|
version: L()
|
|
7663
7663
|
}), Sh = As.extend({
|
|
7664
|
-
modelRefs: He(
|
|
7664
|
+
modelRefs: He(kh),
|
|
7665
7665
|
order: ze()
|
|
7666
7666
|
}), Th = g("list"), Ph = wh.extend({
|
|
7667
7667
|
models: He(Sh),
|
|
@@ -7699,7 +7699,7 @@ const ih = re([g("amber"), g("green"), g("red"), g("other")]), rh = re([
|
|
|
7699
7699
|
typeId: g("presenter")
|
|
7700
7700
|
});
|
|
7701
7701
|
async function Vh() {
|
|
7702
|
-
const e = await
|
|
7702
|
+
const e = await we("config.json"), t = {
|
|
7703
7703
|
body: JSON.stringify(e),
|
|
7704
7704
|
headers: { "Content-Type": "application/json" },
|
|
7705
7705
|
method: "PUT"
|
|
@@ -7707,7 +7707,7 @@ async function Vh() {
|
|
|
7707
7707
|
if (!i.ok) throw new Error(await i.text());
|
|
7708
7708
|
}
|
|
7709
7709
|
async function xr() {
|
|
7710
|
-
const e = await
|
|
7710
|
+
const e = await we("config.json"), t = e.id, i = {
|
|
7711
7711
|
body: JSON.stringify(e),
|
|
7712
7712
|
headers: { "Content-Type": "application/json" },
|
|
7713
7713
|
method: "PUT"
|
|
@@ -7715,14 +7715,14 @@ async function xr() {
|
|
|
7715
7715
|
if (!r.ok) throw new Error(await r.text());
|
|
7716
7716
|
}
|
|
7717
7717
|
async function gr(e) {
|
|
7718
|
-
const i = `v${JSON.parse(await
|
|
7718
|
+
const i = `v${JSON.parse(await Ce.readFile("package.json", "utf8")).version}`;
|
|
7719
7719
|
async function r(n, u = "") {
|
|
7720
7720
|
const h = await Vn(n, { withFileTypes: !0 });
|
|
7721
7721
|
for (const d of h) {
|
|
7722
7722
|
const y = `${n}/${d.name}`, o = u ? `${u}/${d.name}` : d.name;
|
|
7723
7723
|
if (d.isDirectory()) continue;
|
|
7724
7724
|
const w = `${e}_${i}/${o}`.replaceAll("\\", "/"), E = d.name.endsWith(".css") ? "text/css" : "application/octet-stream", D = d.name.endsWith(".js") ? "application/javascript" : E;
|
|
7725
|
-
console.info(`⚙️ Uploading '${o}' → '${w}'...`), await
|
|
7725
|
+
console.info(`⚙️ Uploading '${o}' → '${w}'...`), await _e(void 0, `wrangler r2 object put "${w}" --file="${y}" --content-type ${D} --jurisdiction=eu --remote`);
|
|
7726
7726
|
}
|
|
7727
7727
|
}
|
|
7728
7728
|
await r("dist");
|
|
@@ -7737,7 +7737,7 @@ async function rp() {
|
|
|
7737
7737
|
async function sp() {
|
|
7738
7738
|
try {
|
|
7739
7739
|
Oe("Release Project");
|
|
7740
|
-
const e = await
|
|
7740
|
+
const e = await we("package.json"), t = await we("config.json");
|
|
7741
7741
|
await Es("1️⃣", e);
|
|
7742
7742
|
const i = Uh(e);
|
|
7743
7743
|
switch (i) {
|
|
@@ -7753,7 +7753,7 @@ async function sp() {
|
|
|
7753
7753
|
default:
|
|
7754
7754
|
await zh("2️⃣", e);
|
|
7755
7755
|
}
|
|
7756
|
-
await Ie("3️⃣ Bundle project", "vite", ["build"]), await
|
|
7756
|
+
await Ie("3️⃣ Bundle project", "vite", ["build"]), await _e("4️⃣ Stage changes", "git", ["add", "."]), await _e("5️⃣ Commit changes", "git", ["commit", "-m", `"v${e.version}"`]), await _e("6️⃣ Push changes", "git", ["push", "origin", "main:main"]);
|
|
7757
7757
|
const r = Zh(i);
|
|
7758
7758
|
if (i === "app")
|
|
7759
7759
|
se("7️⃣ Register module"), await Vh();
|
|
@@ -7774,8 +7774,8 @@ async function sp() {
|
|
|
7774
7774
|
async function np() {
|
|
7775
7775
|
try {
|
|
7776
7776
|
Oe("Synchronise Project with GitHub");
|
|
7777
|
-
const e = await
|
|
7778
|
-
se("Bump project version"), await Es("1️⃣", e), await
|
|
7777
|
+
const e = await we("package.json");
|
|
7778
|
+
se("Bump project version"), await Es("1️⃣", e), await _e("2️⃣ Stage changes", "git", ["add", "."]), await _e("3️⃣ Commit changes", "git", ["commit", "-m", `"v${e.version}"`]), await _e("4️⃣ Push changes", "git", ["push", "origin", "main:main"]), $e(`Project version '${e.version}' synchronised with GitHub.`);
|
|
7779
7779
|
} catch (e) {
|
|
7780
7780
|
console.error("❌ Error synchronising project with GitHub.", e), process.exit(1);
|
|
7781
7781
|
}
|
|
@@ -7791,12 +7791,12 @@ function ap() {
|
|
|
7791
7791
|
}
|
|
7792
7792
|
async function zh(e, t) {
|
|
7793
7793
|
se(`${e} Build project configuration`);
|
|
7794
|
-
const i = await
|
|
7794
|
+
const i = await we("config.json");
|
|
7795
7795
|
t.name != null && (i.id = t.name.replace("@datapos/", "").replace("@data-positioning/", "")), t.version != null && (i.version = t.version), await ot("config.json", i);
|
|
7796
7796
|
}
|
|
7797
7797
|
async function jh(e, t) {
|
|
7798
7798
|
se(`${e} Build connector project configuration`);
|
|
7799
|
-
const [i, r] = await Promise.all([
|
|
7799
|
+
const [i, r] = await Promise.all([we("config.json"), at("src/index.ts")]), n = yh.safeParse(i);
|
|
7800
7800
|
if (!n.success) {
|
|
7801
7801
|
console.log("❌ Configuration is invalid:"), console.table(n.error.issues);
|
|
7802
7802
|
return;
|
|
@@ -7806,7 +7806,7 @@ async function jh(e, t) {
|
|
|
7806
7806
|
}
|
|
7807
7807
|
async function $h(e, t) {
|
|
7808
7808
|
se(`${e} Build context project configuration`);
|
|
7809
|
-
const [i, r] = await Promise.all([
|
|
7809
|
+
const [i, r] = await Promise.all([we("config.json"), at("src/index.ts")]), n = Ph.safeParse(i);
|
|
7810
7810
|
if (!n.success) {
|
|
7811
7811
|
console.log("❌ Configuration is invalid:"), console.table(n.error.issues);
|
|
7812
7812
|
return;
|
|
@@ -7816,7 +7816,7 @@ async function $h(e, t) {
|
|
|
7816
7816
|
}
|
|
7817
7817
|
async function Fh(e, t) {
|
|
7818
7818
|
se(`${e} Build presenter project configuration`);
|
|
7819
|
-
const [i, r] = await Promise.all([
|
|
7819
|
+
const [i, r] = await Promise.all([we("config.json"), at("src/index.ts")]), n = Mh.safeParse(i);
|
|
7820
7820
|
if (!n.success) {
|
|
7821
7821
|
console.log("❌ Configuration is invalid:"), console.table(n.error.issues);
|
|
7822
7822
|
return;
|
|
@@ -7868,9 +7868,11 @@ const qh = ["critical", "high", "moderate", "low", "unknown"], Hh = {
|
|
|
7868
7868
|
}, br = "<!-- OWASP_BADGES_START -->", Wh = "<!-- OWASP_BADGES_END -->";
|
|
7869
7869
|
async function op() {
|
|
7870
7870
|
try {
|
|
7871
|
-
Oe("Audit Dependencies"), await zn()
|
|
7871
|
+
Oe("Audit Dependencies"), await zn();
|
|
7872
|
+
const e = await we("package.json");
|
|
7873
|
+
await Ie("1️⃣", "owasp-dependency-check", [
|
|
7872
7874
|
"--project",
|
|
7873
|
-
"
|
|
7875
|
+
e.name ?? "unknown",
|
|
7874
7876
|
"--enableRetired",
|
|
7875
7877
|
"--nodePackageSkipDevDependencies",
|
|
7876
7878
|
"--nvdApiKey",
|
|
@@ -7882,7 +7884,7 @@ async function op() {
|
|
|
7882
7884
|
}
|
|
7883
7885
|
async function Kh(e) {
|
|
7884
7886
|
se(`${e} Insert OWASP Badge(s) into 'README.md'`);
|
|
7885
|
-
const t = await
|
|
7887
|
+
const t = await we("./dependency-check-reports/dependency-check-report.json"), i = { critical: 0, high: 0, moderate: 0, low: 0, unknown: 0 };
|
|
7886
7888
|
for (const o of t.dependencies)
|
|
7887
7889
|
if (o.vulnerabilities != null)
|
|
7888
7890
|
for (const w of o.vulnerabilities) {
|
|
@@ -7902,7 +7904,7 @@ async function Kh(e) {
|
|
|
7902
7904
|
await ss("README.md", y), console.info("OWASP audit badge(s) inserted into 'README.md'");
|
|
7903
7905
|
}
|
|
7904
7906
|
async function Gh(e) {
|
|
7905
|
-
const t = await
|
|
7907
|
+
const t = await we("config.json"), i = [];
|
|
7906
7908
|
if (Object.values(e).reduce((n, u) => n + u, 0) === 0)
|
|
7907
7909
|
console.info("No vulnerabilities found."), i.push(`[](https://data-positioning.github.io/${t.id}/dependency-check-reports/dependency-check-report.html)`);
|
|
7908
7910
|
else
|
|
@@ -7921,34 +7923,34 @@ async function up() {
|
|
|
7921
7923
|
console.error("❌ Error checking dependencies.", e), process.exit(1);
|
|
7922
7924
|
}
|
|
7923
7925
|
}
|
|
7924
|
-
const
|
|
7926
|
+
const kr = "<!-- DEPENDENCY_LICENSES_START -->", Jh = "<!-- DEPENDENCY_LICENSES_END -->";
|
|
7925
7927
|
async function cp(e = [], t = !0) {
|
|
7926
7928
|
try {
|
|
7927
7929
|
Oe("Document Dependencies");
|
|
7928
7930
|
const i = e.flatMap((r) => ["--allowed", r]);
|
|
7929
|
-
await
|
|
7931
|
+
await _e(
|
|
7930
7932
|
"1️⃣ Generate 'licenses.json' file",
|
|
7931
7933
|
"license-report",
|
|
7932
7934
|
["--only=prod,peer", "--output=json", "--department.value=n/a", "--licensePeriod=n/a", "--material=n/a", "--relatedTo.value=n/a"],
|
|
7933
7935
|
"licenses.json"
|
|
7934
|
-
), await
|
|
7936
|
+
), await _e("2️⃣ Generate 'licenses.md' file", "license-report", ["--config", "license-report-config.json", "--only=prod,peer", "--output=markdown"], "licenses.md"), await _e("3️⃣ Check 'licenses.json' file", "license-report-check", ["--source", "./licenses.json", "--output=table", ...i]), t ? (await _e(
|
|
7935
7937
|
"4️⃣ Generate 'licenseTree.json' file",
|
|
7936
7938
|
"license-report-recursive",
|
|
7937
7939
|
["--only=prod,peer", "--output=tree", " --recurse", "--department.value=n/a", "--licensePeriod=n/a", "--material=n/a", "--relatedTo.value=n/a"],
|
|
7938
7940
|
"licenseTree.json"
|
|
7939
|
-
), await
|
|
7941
|
+
), await _e("5️⃣ Check 'licenseTree.json' file", "license-report-check", ["--source", "./licenseTree.json", "--output=table", ...i])) : (se("4️⃣ Skip 'licenseTree.json' file generate"), se("5️⃣ Skip 'licenseTree.json' file check")), await Xh("6️⃣"), $e("Dependencies documented.");
|
|
7940
7942
|
} catch (i) {
|
|
7941
7943
|
console.error("❌ Error documenting dependencies.", i), process.exit(1);
|
|
7942
7944
|
}
|
|
7943
7945
|
}
|
|
7944
7946
|
async function Xh(e) {
|
|
7945
7947
|
se(`${e} Insert licenses into 'README.md'`);
|
|
7946
|
-
const i = (await at("./licenses.md")).trim(), r = await at("./README.md"), n = r.indexOf(
|
|
7948
|
+
const i = (await at("./licenses.md")).trim(), r = await at("./README.md"), n = r.indexOf(kr), u = r.indexOf(Jh);
|
|
7947
7949
|
if (n === -1 || u === -1) {
|
|
7948
7950
|
console.error("❌ No dependency license markers found in 'README.md'.");
|
|
7949
7951
|
return;
|
|
7950
7952
|
}
|
|
7951
|
-
const h = `${r.slice(0, Math.max(0, n +
|
|
7953
|
+
const h = `${r.slice(0, Math.max(0, n + kr.length))}
|
|
7952
7954
|
${i}
|
|
7953
7955
|
${r.slice(Math.max(0, u))}`;
|
|
7954
7956
|
await ss("README.md", h);
|
|
@@ -7991,9 +7993,9 @@ async function fp(e) {
|
|
|
7991
7993
|
for (const y of u) {
|
|
7992
7994
|
const o = `${n}/${y}`;
|
|
7993
7995
|
try {
|
|
7994
|
-
const w = await
|
|
7996
|
+
const w = await Ce.stat(o);
|
|
7995
7997
|
if (w.isDirectory()) {
|
|
7996
|
-
const E = await
|
|
7998
|
+
const E = await Ce.readdir(o), D = { childCount: E.length, name: y, typeId: "folder" };
|
|
7997
7999
|
h.push(D), await i(o, E);
|
|
7998
8000
|
} else {
|
|
7999
8001
|
const E = { id: Os(), lastModifiedAt: w.mtimeMs, name: y, size: w.size, typeId: "object" };
|
|
@@ -8008,8 +8010,8 @@ async function fp(e) {
|
|
|
8008
8010
|
return w === 0 ? y.name.localeCompare(o.name) : w;
|
|
8009
8011
|
});
|
|
8010
8012
|
}
|
|
8011
|
-
const r = await
|
|
8012
|
-
await i(`public/${e}`, r), await
|
|
8013
|
+
const r = await Ce.readdir(`public/${e}`);
|
|
8014
|
+
await i(`public/${e}`, r), await Ce.writeFile(`./public/${e}Index.json`, JSON.stringify(t), "utf8"), console.info("✅ Public directory index built.");
|
|
8013
8015
|
} catch (t) {
|
|
8014
8016
|
console.error("❌ Error building public directory index.", t);
|
|
8015
8017
|
}
|