@airalogy/aimd-editor 1.9.1 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
- import { defineComponent as Gi, ref as Mt, onMounted as zi, onBeforeUnmount as Qi, watch as ut, openBlock as Ft, createElementBlock as jt, normalizeStyle as Hi, toDisplayString as Ji, createCommentVNode as Yi, createElementVNode as Zi } from "vue";
2
- var Xi = [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], Yt = [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], es = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Zt = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", lt = {
1
+ import { defineComponent as Hi, ref as Bt, onMounted as Qi, onBeforeUnmount as Ji, watch as ut, openBlock as Ft, createElementBlock as jt, normalizeStyle as Yi, toDisplayString as Zi, createCommentVNode as Xi, createElementVNode as es } from "vue";
2
+ var ts = [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], Zt = [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], is = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Xt = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", lt = {
3
3
  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",
4
4
  5: "class enum extends super const export import",
5
5
  6: "enum",
6
6
  strict: "implements interface let package private protected public static yield",
7
7
  strictBind: "eval arguments"
8
- }, ht = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", ts = {
9
- 5: ht,
10
- "5module": ht + " export import",
11
- 6: ht + " const class extends export import super"
12
- }, is = /^in(stanceof)?$/, ss = new RegExp("[" + Zt + "]"), rs = new RegExp("[" + Zt + es + "]");
8
+ }, ct = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", ss = {
9
+ 5: ct,
10
+ "5module": ct + " export import",
11
+ 6: ct + " const class extends export import super"
12
+ }, rs = /^in(stanceof)?$/, ns = new RegExp("[" + Xt + "]"), as = new RegExp("[" + Xt + is + "]");
13
13
  function mt(e, t) {
14
14
  for (var i = 65536, s = 0; s < t.length; s += 2) {
15
15
  if (i += t[s], i > e)
@@ -20,27 +20,27 @@ function mt(e, t) {
20
20
  return !1;
21
21
  }
22
22
  function J(e, t) {
23
- return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && ss.test(String.fromCharCode(e)) : t === !1 ? !1 : mt(e, Yt);
23
+ return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && ns.test(String.fromCharCode(e)) : t === !1 ? !1 : mt(e, Zt);
24
24
  }
25
25
  function ae(e, t) {
26
- 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 && rs.test(String.fromCharCode(e)) : t === !1 ? !1 : mt(e, Yt) || mt(e, Xi);
26
+ 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 && as.test(String.fromCharCode(e)) : t === !1 ? !1 : mt(e, Zt) || mt(e, ts);
27
27
  }
28
28
  var C = function(t, i) {
29
29
  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;
30
30
  };
31
- function W(e, t) {
31
+ function K(e, t) {
32
32
  return new C(e, { beforeExpr: !0, binop: t });
33
33
  }
34
- var K = { beforeExpr: !0 }, M = { startsExpr: !0 }, kt = {};
34
+ var W = { beforeExpr: !0 }, B = { startsExpr: !0 }, kt = {};
35
35
  function w(e, t) {
36
36
  return t === void 0 && (t = {}), t.keyword = e, kt[e] = new C(e, t);
37
37
  }
38
38
  var a = {
39
- num: new C("num", M),
40
- regexp: new C("regexp", M),
41
- string: new C("string", M),
42
- name: new C("name", M),
43
- privateId: new C("privateId", M),
39
+ num: new C("num", B),
40
+ regexp: new C("regexp", B),
41
+ string: new C("string", B),
42
+ name: new C("name", B),
43
+ privateId: new C("privateId", B),
44
44
  eof: new C("eof"),
45
45
  // Punctuation token types.
46
46
  bracketL: new C("[", { beforeExpr: !0, startsExpr: !0 }),
@@ -49,17 +49,17 @@ var a = {
49
49
  braceR: new C("}"),
50
50
  parenL: new C("(", { beforeExpr: !0, startsExpr: !0 }),
51
51
  parenR: new C(")"),
52
- comma: new C(",", K),
53
- semi: new C(";", K),
54
- colon: new C(":", K),
52
+ comma: new C(",", W),
53
+ semi: new C(";", W),
54
+ colon: new C(":", W),
55
55
  dot: new C("."),
56
- question: new C("?", K),
56
+ question: new C("?", W),
57
57
  questionDot: new C("?."),
58
- arrow: new C("=>", K),
58
+ arrow: new C("=>", W),
59
59
  template: new C("template"),
60
60
  invalidTemplate: new C("invalidTemplate"),
61
- ellipsis: new C("...", K),
62
- backQuote: new C("`", M),
61
+ ellipsis: new C("...", W),
62
+ backQuote: new C("`", B),
63
63
  dollarBraceL: new C("${", { beforeExpr: !0, startsExpr: !0 }),
64
64
  // Operators. These carry several kinds of properties to help the
65
65
  // parser use them properly (the presence of these properties is
@@ -78,61 +78,61 @@ var a = {
78
78
  assign: new C("_=", { beforeExpr: !0, isAssign: !0 }),
79
79
  incDec: new C("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
80
80
  prefix: new C("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
81
- logicalOR: W("||", 1),
82
- logicalAND: W("&&", 2),
83
- bitwiseOR: W("|", 3),
84
- bitwiseXOR: W("^", 4),
85
- bitwiseAND: W("&", 5),
86
- equality: W("==/!=/===/!==", 6),
87
- relational: W("</>/<=/>=", 7),
88
- bitShift: W("<</>>/>>>", 8),
81
+ logicalOR: K("||", 1),
82
+ logicalAND: K("&&", 2),
83
+ bitwiseOR: K("|", 3),
84
+ bitwiseXOR: K("^", 4),
85
+ bitwiseAND: K("&", 5),
86
+ equality: K("==/!=/===/!==", 6),
87
+ relational: K("</>/<=/>=", 7),
88
+ bitShift: K("<</>>/>>>", 8),
89
89
  plusMin: new C("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
90
- modulo: W("%", 10),
91
- star: W("*", 10),
92
- slash: W("/", 10),
90
+ modulo: K("%", 10),
91
+ star: K("*", 10),
92
+ slash: K("/", 10),
93
93
  starstar: new C("**", { beforeExpr: !0 }),
94
- coalesce: W("??", 1),
94
+ coalesce: K("??", 1),
95
95
  // Keyword token types.
96
96
  _break: w("break"),
97
- _case: w("case", K),
97
+ _case: w("case", W),
98
98
  _catch: w("catch"),
99
99
  _continue: w("continue"),
100
100
  _debugger: w("debugger"),
101
- _default: w("default", K),
101
+ _default: w("default", W),
102
102
  _do: w("do", { isLoop: !0, beforeExpr: !0 }),
103
- _else: w("else", K),
103
+ _else: w("else", W),
104
104
  _finally: w("finally"),
105
105
  _for: w("for", { isLoop: !0 }),
106
- _function: w("function", M),
106
+ _function: w("function", B),
107
107
  _if: w("if"),
108
- _return: w("return", K),
108
+ _return: w("return", W),
109
109
  _switch: w("switch"),
110
- _throw: w("throw", K),
110
+ _throw: w("throw", W),
111
111
  _try: w("try"),
112
112
  _var: w("var"),
113
113
  _const: w("const"),
114
114
  _while: w("while", { isLoop: !0 }),
115
115
  _with: w("with"),
116
116
  _new: w("new", { beforeExpr: !0, startsExpr: !0 }),
117
- _this: w("this", M),
118
- _super: w("super", M),
119
- _class: w("class", M),
120
- _extends: w("extends", K),
117
+ _this: w("this", B),
118
+ _super: w("super", B),
119
+ _class: w("class", B),
120
+ _extends: w("extends", W),
121
121
  _export: w("export"),
122
- _import: w("import", M),
123
- _null: w("null", M),
124
- _true: w("true", M),
125
- _false: w("false", M),
122
+ _import: w("import", B),
123
+ _null: w("null", B),
124
+ _true: w("true", B),
125
+ _false: w("false", B),
126
126
  _in: w("in", { beforeExpr: !0, binop: 7 }),
127
127
  _instanceof: w("instanceof", { beforeExpr: !0, binop: 7 }),
128
128
  _typeof: w("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
129
129
  _void: w("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
130
130
  _delete: w("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
131
- }, F = /\r\n?|\n|\u2028|\u2029/, ns = new RegExp(F.source, "g");
131
+ }, F = /\r\n?|\n|\u2028|\u2029/, os = new RegExp(F.source, "g");
132
132
  function ve(e) {
133
133
  return e === 10 || e === 13 || e === 8232 || e === 8233;
134
134
  }
135
- function Xt(e, t, i) {
135
+ function ei(e, t, i) {
136
136
  i === void 0 && (i = e.length);
137
137
  for (var s = t; s < i; s++) {
138
138
  var r = e.charCodeAt(s);
@@ -141,18 +141,18 @@ function Xt(e, t, i) {
141
141
  }
142
142
  return -1;
143
143
  }
144
- var ei = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, R = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, ti = Object.prototype, as = ti.hasOwnProperty, os = ti.toString, Se = Object.hasOwn || (function(e, t) {
145
- return as.call(e, t);
146
- }), Ut = Array.isArray || (function(e) {
147
- return os.call(e) === "[object Array]";
148
- }), $t = /* @__PURE__ */ Object.create(null);
144
+ var ti = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, R = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, ii = Object.prototype, us = ii.hasOwnProperty, ls = ii.toString, Se = Object.hasOwn || (function(e, t) {
145
+ return us.call(e, t);
146
+ }), $t = Array.isArray || (function(e) {
147
+ return ls.call(e) === "[object Array]";
148
+ }), Ut = /* @__PURE__ */ Object.create(null);
149
149
  function ne(e) {
150
- return $t[e] || ($t[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
150
+ return Ut[e] || (Ut[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
151
151
  }
152
152
  function te(e) {
153
153
  return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
154
154
  }
155
- var us = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, Ie = function(t, i) {
155
+ var cs = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, Ie = function(t, i) {
156
156
  this.line = t, this.column = i;
157
157
  };
158
158
  Ie.prototype.offset = function(t) {
@@ -161,9 +161,9 @@ Ie.prototype.offset = function(t) {
161
161
  var Je = function(t, i, s) {
162
162
  this.start = i, this.end = s, t.sourceFile !== null && (this.source = t.sourceFile);
163
163
  };
164
- function ii(e, t) {
164
+ function si(e, t) {
165
165
  for (var i = 1, s = 0; ; ) {
166
- var r = Xt(e, s, t);
166
+ var r = ei(e, s, t);
167
167
  if (r < 0)
168
168
  return new Ie(i, t - s);
169
169
  ++i, s = r;
@@ -266,20 +266,20 @@ var gt = {
266
266
  // (non-standard) ParenthesizedExpression nodes
267
267
  preserveParens: !1
268
268
  }, qt = !1;
269
- function ls(e) {
269
+ function hs(e) {
270
270
  var t = {};
271
271
  for (var i in gt)
272
272
  t[i] = e && Se(e, i) ? e[i] : gt[i];
273
273
  if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!qt && typeof console == "object" && console.warn && (qt = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
274
- Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14), Ut(t.onToken)) {
274
+ Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14), $t(t.onToken)) {
275
275
  var s = t.onToken;
276
276
  t.onToken = function(r) {
277
277
  return s.push(r);
278
278
  };
279
279
  }
280
- return Ut(t.onComment) && (t.onComment = hs(t, t.onComment)), t;
280
+ return $t(t.onComment) && (t.onComment = fs(t, t.onComment)), t;
281
281
  }
282
- function hs(e, t) {
282
+ function fs(e, t) {
283
283
  return function(i, s, r, n, o, l) {
284
284
  var u = {
285
285
  type: i ? "Block" : "Line",
@@ -290,12 +290,12 @@ function hs(e, t) {
290
290
  e.locations && (u.loc = new Je(this, o, l)), e.ranges && (u.range = [r, n]), t.push(u);
291
291
  };
292
292
  }
293
- var Ne = 1, ke = 2, wt = 4, si = 8, _t = 16, ri = 32, Ye = 64, ni = 128, pe = 256, Oe = 512, Ze = Ne | ke | pe;
293
+ var Ne = 1, ke = 2, wt = 4, ri = 8, _t = 16, ni = 32, Ye = 64, ai = 128, pe = 256, Oe = 512, Ze = Ne | ke | pe;
294
294
  function Ct(e, t) {
295
- return ke | (e ? wt : 0) | (t ? si : 0);
295
+ return ke | (e ? wt : 0) | (t ? ri : 0);
296
296
  }
297
- var qe = 0, Et = 1, se = 2, ai = 3, oi = 4, ui = 5, L = function(t, i, s) {
298
- this.options = t = ls(t), this.sourceFile = t.sourceFile, this.keywords = ne(ts[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
297
+ var qe = 0, Et = 1, se = 2, oi = 3, ui = 4, li = 5, L = function(t, i, s) {
298
+ this.options = t = hs(t), this.sourceFile = t.sourceFile, this.keywords = ne(ss[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
299
299
  var r = "";
300
300
  t.allowReserved !== !0 && (r = lt[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = ne(r);
301
301
  var n = (r ? r + " " : "") + lt.strict;
@@ -310,7 +310,7 @@ Y.inFunction.get = function() {
310
310
  return (this.currentVarScope().flags & ke) > 0;
311
311
  };
312
312
  Y.inGenerator.get = function() {
313
- return (this.currentVarScope().flags & si) > 0;
313
+ return (this.currentVarScope().flags & ri) > 0;
314
314
  };
315
315
  Y.inAsync.get = function() {
316
316
  return (this.currentVarScope().flags & wt) > 0;
@@ -330,7 +330,7 @@ Y.allowSuper.get = function() {
330
330
  return (t & Ye) > 0 || this.options.allowSuperOutsideMethod;
331
331
  };
332
332
  Y.allowDirectSuper.get = function() {
333
- return (this.currentThisScope().flags & ni) > 0;
333
+ return (this.currentThisScope().flags & ai) > 0;
334
334
  };
335
335
  Y.treatFunctionsAsVar.get = function() {
336
336
  return this.treatFunctionsAsVarInScope(this.currentScope());
@@ -363,13 +363,13 @@ L.tokenizer = function(t, i) {
363
363
  return new this(i, t);
364
364
  };
365
365
  Object.defineProperties(L.prototype, Y);
366
- var D = L.prototype, cs = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
367
- D.strictDirective = function(e) {
366
+ var M = L.prototype, ps = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
367
+ M.strictDirective = function(e) {
368
368
  if (this.options.ecmaVersion < 5)
369
369
  return !1;
370
370
  for (; ; ) {
371
371
  R.lastIndex = e, e += R.exec(this.input)[0].length;
372
- var t = cs.exec(this.input.slice(e));
372
+ var t = ps.exec(this.input.slice(e));
373
373
  if (!t)
374
374
  return !1;
375
375
  if ((t[1] || t[2]) === "use strict") {
@@ -380,49 +380,49 @@ D.strictDirective = function(e) {
380
380
  e += t[0].length, R.lastIndex = e, e += R.exec(this.input)[0].length, this.input[e] === ";" && e++;
381
381
  }
382
382
  };
383
- D.eat = function(e) {
383
+ M.eat = function(e) {
384
384
  return this.type === e ? (this.next(), !0) : !1;
385
385
  };
386
- D.isContextual = function(e) {
386
+ M.isContextual = function(e) {
387
387
  return this.type === a.name && this.value === e && !this.containsEsc;
388
388
  };
389
- D.eatContextual = function(e) {
389
+ M.eatContextual = function(e) {
390
390
  return this.isContextual(e) ? (this.next(), !0) : !1;
391
391
  };
392
- D.expectContextual = function(e) {
392
+ M.expectContextual = function(e) {
393
393
  this.eatContextual(e) || this.unexpected();
394
394
  };
395
- D.canInsertSemicolon = function() {
395
+ M.canInsertSemicolon = function() {
396
396
  return this.type === a.eof || this.type === a.braceR || F.test(this.input.slice(this.lastTokEnd, this.start));
397
397
  };
398
- D.insertSemicolon = function() {
398
+ M.insertSemicolon = function() {
399
399
  if (this.canInsertSemicolon())
400
400
  return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), !0;
401
401
  };
402
- D.semicolon = function() {
402
+ M.semicolon = function() {
403
403
  !this.eat(a.semi) && !this.insertSemicolon() && this.unexpected();
404
404
  };
405
- D.afterTrailingComma = function(e, t) {
405
+ M.afterTrailingComma = function(e, t) {
406
406
  if (this.type === e)
407
407
  return this.options.onTrailingComma && this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc), t || this.next(), !0;
408
408
  };
409
- D.expect = function(e) {
409
+ M.expect = function(e) {
410
410
  this.eat(e) || this.unexpected();
411
411
  };
412
- D.unexpected = function(e) {
412
+ M.unexpected = function(e) {
413
413
  this.raise(e ?? this.start, "Unexpected token");
414
414
  };
415
415
  var Xe = function() {
416
416
  this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
417
417
  };
418
- D.checkPatternErrors = function(e, t) {
418
+ M.checkPatternErrors = function(e, t) {
419
419
  if (e) {
420
420
  e.trailingComma > -1 && this.raiseRecoverable(e.trailingComma, "Comma is not permitted after the rest element");
421
421
  var i = t ? e.parenthesizedAssign : e.parenthesizedBind;
422
422
  i > -1 && this.raiseRecoverable(i, t ? "Assigning to rvalue" : "Parenthesized pattern");
423
423
  }
424
424
  };
425
- D.checkExpressionErrors = function(e, t) {
425
+ M.checkExpressionErrors = function(e, t) {
426
426
  if (!e)
427
427
  return !1;
428
428
  var i = e.shorthandAssign, s = e.doubleProto;
@@ -430,10 +430,10 @@ D.checkExpressionErrors = function(e, t) {
430
430
  return i >= 0 || s >= 0;
431
431
  i >= 0 && this.raise(i, "Shorthand property assignments are valid only in destructuring patterns"), s >= 0 && this.raiseRecoverable(s, "Redefinition of __proto__ property");
432
432
  };
433
- D.checkYieldAwaitInDefaultParams = function() {
433
+ M.checkYieldAwaitInDefaultParams = function() {
434
434
  this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos) && this.raise(this.yieldPos, "Yield expression cannot be a default value"), this.awaitPos && this.raise(this.awaitPos, "Await expression cannot be a default value");
435
435
  };
436
- D.isSimpleAssignTarget = function(e) {
436
+ M.isSimpleAssignTarget = function(e) {
437
437
  return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExpression";
438
438
  };
439
439
  var g = L.prototype;
@@ -450,7 +450,7 @@ g.parseTopLevel = function(e) {
450
450
  }
451
451
  return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
452
452
  };
453
- var At = { kind: "loop" }, fs = { kind: "switch" };
453
+ var At = { kind: "loop" }, ds = { kind: "switch" };
454
454
  g.isLet = function(e) {
455
455
  if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
456
456
  return !1;
@@ -468,7 +468,7 @@ g.isLet = function(e) {
468
468
  if (s === 92 || s > 55295 && s < 56320)
469
469
  return !0;
470
470
  var n = this.input.slice(i, r);
471
- if (!is.test(n))
471
+ if (!rs.test(n))
472
472
  return !0;
473
473
  }
474
474
  return !1;
@@ -501,8 +501,8 @@ g.isUsingKeyword = function(e, t) {
501
501
  if (this.input.slice(s, l) === "of" && (l === this.input.length || !ae(u = this.input.charCodeAt(l)) && !(u > 55295 && u < 56320)))
502
502
  return !1;
503
503
  }
504
- var h = this.input.charCodeAt(s);
505
- return J(h, !0) || h === 92;
504
+ var c = this.input.charCodeAt(s);
505
+ return J(c, !0) || c === 92;
506
506
  };
507
507
  g.isAwaitUsing = function(e) {
508
508
  return this.isUsingKeyword(!0, e);
@@ -564,11 +564,11 @@ g.parseStatement = function(e, t, i) {
564
564
  default:
565
565
  if (this.isAsyncFunction())
566
566
  return e && this.unexpected(), this.next(), this.parseFunctionStatement(r, !0, !e);
567
- var h = this.isAwaitUsing(!1) ? "await using" : this.isUsing(!1) ? "using" : null;
568
- if (h)
569
- return t && this.options.sourceType === "script" && this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`"), h === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(r, !1, h), this.semicolon(), this.finishNode(r, "VariableDeclaration");
570
- var f = this.value, c = this.parseExpression();
571
- return s === a.name && c.type === "Identifier" && this.eat(a.colon) ? this.parseLabeledStatement(r, f, c, e) : this.parseExpressionStatement(r, c);
567
+ var c = this.isAwaitUsing(!1) ? "await using" : this.isUsing(!1) ? "using" : null;
568
+ if (c)
569
+ return t && this.options.sourceType === "script" && this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`"), c === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(r, !1, c), this.semicolon(), this.finishNode(r, "VariableDeclaration");
570
+ var f = this.value, h = this.parseExpression();
571
+ return s === a.name && h.type === "Identifier" && this.eat(a.colon) ? this.parseLabeledStatement(r, f, h, e) : this.parseExpressionStatement(r, h);
572
572
  }
573
573
  };
574
574
  g.parseBreakContinueStatement = function(e, t) {
@@ -602,8 +602,8 @@ g.parseForStatement = function(e) {
602
602
  var u = this.startNode();
603
603
  return this.next(), l === "await using" && this.next(), this.parseVar(u, !0, l), this.finishNode(u, "VariableDeclaration"), this.parseForAfterInit(e, u, t);
604
604
  }
605
- var h = this.containsEsc, f = new Xe(), c = this.start, p = t > -1 ? this.parseExprSubscripts(f, "await") : this.parseExpression(!0, f);
606
- return this.type === a._in || (o = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === a._in && this.unexpected(t), e.await = !0) : o && this.options.ecmaVersion >= 8 && (p.start === c && !h && p.type === "Identifier" && p.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), n && o && this.raise(p.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(p, !1, f), this.checkLValPattern(p), this.parseForIn(e, p)) : (this.checkExpressionErrors(f, !0), t > -1 && this.unexpected(t), this.parseFor(e, p));
605
+ var c = this.containsEsc, f = new Xe(), h = this.start, p = t > -1 ? this.parseExprSubscripts(f, "await") : this.parseExpression(!0, f);
606
+ return this.type === a._in || (o = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === a._in && this.unexpected(t), e.await = !0) : o && this.options.ecmaVersion >= 8 && (p.start === h && !c && p.type === "Identifier" && p.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), n && o && this.raise(p.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(p, !1, f), this.checkLValPattern(p), this.parseForIn(e, p)) : (this.checkExpressionErrors(f, !0), t > -1 && this.unexpected(t), this.parseFor(e, p));
607
607
  };
608
608
  g.parseForAfterInit = function(e, t, i) {
609
609
  return (this.type === a._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === a._in ? i > -1 && this.unexpected(i) : e.await = i > -1), this.parseForIn(e, t)) : (i > -1 && this.unexpected(i), this.parseFor(e, t));
@@ -618,7 +618,7 @@ g.parseReturnStatement = function(e) {
618
618
  return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(a.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
619
619
  };
620
620
  g.parseSwitchStatement = function(e) {
621
- this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(a.braceL), this.labels.push(fs), this.enterScope(0);
621
+ this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(a.braceL), this.labels.push(ds), this.enterScope(0);
622
622
  for (var t, i = !1; this.type !== a.braceR; )
623
623
  if (this.type === a._case || this.type === a._default) {
624
624
  var s = this.type === a._case;
@@ -630,10 +630,10 @@ g.parseSwitchStatement = function(e) {
630
630
  g.parseThrowStatement = function(e) {
631
631
  return this.next(), F.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
632
632
  };
633
- var ps = [];
633
+ var ms = [];
634
634
  g.parseCatchClauseParam = function() {
635
635
  var e = this.parseBindingAtom(), t = e.type === "Identifier";
636
- return this.enterScope(t ? ri : 0), this.checkLValPattern(e, t ? oi : se), this.expect(a.parenR), e;
636
+ return this.enterScope(t ? ni : 0), this.checkLValPattern(e, t ? ui : se), this.expect(a.parenR), e;
637
637
  };
638
638
  g.parseTryStatement = function(e) {
639
639
  if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === a._catch) {
@@ -660,9 +660,9 @@ g.parseLabeledStatement = function(e, t, i, s) {
660
660
  o.name === t && this.raise(i.start, "Label '" + t + "' is already declared");
661
661
  }
662
662
  for (var l = this.type.isLoop ? "loop" : this.type === a._switch ? "switch" : null, u = this.labels.length - 1; u >= 0; u--) {
663
- var h = this.labels[u];
664
- if (h.statementStart === e.start)
665
- h.statementStart = this.start, h.kind = l;
663
+ var c = this.labels[u];
664
+ if (c.statementStart === e.start)
665
+ c.statementStart = this.start, c.kind = l;
666
666
  else
667
667
  break;
668
668
  }
@@ -699,9 +699,9 @@ g.parseVar = function(e, t, i, s) {
699
699
  g.parseVarId = function(e, t) {
700
700
  e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Et : se, !1);
701
701
  };
702
- var Ce = 1, bt = 2, li = 4;
702
+ var Ce = 1, bt = 2, ci = 4;
703
703
  g.parseFunction = function(e, t, i, s, r) {
704
- this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === a.star && t & bt && this.unexpected(), e.generator = this.eat(a.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & Ce && (e.id = t & li && this.type !== a.name ? null : this.parseIdent(), e.id && !(t & bt) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Et : se : ai));
704
+ this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === a.star && t & bt && this.unexpected(), e.generator = this.eat(a.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & Ce && (e.id = t & ci && this.type !== a.name ? null : this.parseIdent(), e.id && !(t & bt) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Et : se : oi));
705
705
  var n = this.yieldPos, o = this.awaitPos, l = this.awaitIdentPos;
706
706
  return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ct(e.async, e.generator)), t & Ce || (e.id = this.type === a.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, !1, r), this.yieldPos = n, this.awaitPos = o, this.awaitIdentPos = l, this.finishNode(e, t & Ce ? "FunctionDeclaration" : "FunctionExpression");
707
707
  };
@@ -715,7 +715,7 @@ g.parseClass = function(e, t) {
715
715
  var s = this.enterClassBody(), r = this.startNode(), n = !1;
716
716
  for (r.body = [], this.expect(a.braceL); this.type !== a.braceR; ) {
717
717
  var o = this.parseClassElement(e.superClass !== null);
718
- o && (r.body.push(o), o.type === "MethodDefinition" && o.kind === "constructor" ? (n && this.raiseRecoverable(o.start, "Duplicate constructor in the same class"), n = !0) : o.key && o.key.type === "PrivateIdentifier" && ds(s, o) && this.raiseRecoverable(o.key.start, "Identifier '#" + o.key.name + "' has already been declared"));
718
+ o && (r.body.push(o), o.type === "MethodDefinition" && o.kind === "constructor" ? (n && this.raiseRecoverable(o.start, "Duplicate constructor in the same class"), n = !0) : o.key && o.key.type === "PrivateIdentifier" && gs(s, o) && this.raiseRecoverable(o.key.start, "Identifier '#" + o.key.name + "' has already been declared"));
719
719
  }
720
720
  return this.strict = i, this.next(), e.body = this.finishNode(r, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
721
721
  };
@@ -733,8 +733,8 @@ g.parseClassElement = function(e) {
733
733
  (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? o = u : s = u);
734
734
  }
735
735
  if (s ? (i.computed = !1, i.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), i.key.name = s, this.finishNode(i.key, "Identifier")) : this.parseClassElementName(i), t < 13 || this.type === a.parenL || o !== "method" || r || n) {
736
- var h = !i.static && We(i, "constructor"), f = h && e;
737
- h && o !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = h ? "constructor" : o, this.parseClassMethod(i, r, n, f);
736
+ var c = !i.static && Ke(i, "constructor"), f = c && e;
737
+ c && o !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = c ? "constructor" : o, this.parseClassMethod(i, r, n, f);
738
738
  } else
739
739
  this.parseClassField(i);
740
740
  return i;
@@ -747,12 +747,12 @@ g.parseClassElementName = function(e) {
747
747
  };
748
748
  g.parseClassMethod = function(e, t, i, s) {
749
749
  var r = e.key;
750
- e.kind === "constructor" ? (t && this.raise(r.start, "Constructor can't be a generator"), i && this.raise(r.start, "Constructor can't be an async method")) : e.static && We(e, "prototype") && this.raise(r.start, "Classes may not have a static property named prototype");
750
+ e.kind === "constructor" ? (t && this.raise(r.start, "Constructor can't be a generator"), i && this.raise(r.start, "Constructor can't be an async method")) : e.static && Ke(e, "prototype") && this.raise(r.start, "Classes may not have a static property named prototype");
751
751
  var n = e.value = this.parseMethod(t, i, s);
752
752
  return e.kind === "get" && n.params.length !== 0 && this.raiseRecoverable(n.start, "getter should have no params"), e.kind === "set" && n.params.length !== 1 && this.raiseRecoverable(n.start, "setter should have exactly one param"), e.kind === "set" && n.params[0].type === "RestElement" && this.raiseRecoverable(n.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
753
753
  };
754
754
  g.parseClassField = function(e) {
755
- return We(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && We(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(a.eq) ? (this.enterScope(Oe | Ye), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
755
+ return Ke(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && Ke(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(a.eq) ? (this.enterScope(Oe | Ye), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
756
756
  };
757
757
  g.parseClassStaticBlock = function(e) {
758
758
  e.body = [];
@@ -781,11 +781,11 @@ g.exitClassBody = function() {
781
781
  Se(t, o.name) || (r ? r.used.push(o) : this.raiseRecoverable(o.start, "Private field '#" + o.name + "' must be declared in an enclosing class"));
782
782
  }
783
783
  };
784
- function ds(e, t) {
784
+ function gs(e, t) {
785
785
  var i = t.key.name, s = e[i], r = "true";
786
786
  return t.type === "MethodDefinition" && (t.kind === "get" || t.kind === "set") && (r = (t.static ? "s" : "i") + t.kind), s === "iget" && r === "iset" || s === "iset" && r === "iget" || s === "sget" && r === "sset" || s === "sset" && r === "sget" ? (e[i] = "true", !1) : s ? !0 : (e[i] = r, !1);
787
787
  }
788
- function We(e, t) {
788
+ function Ke(e, t) {
789
789
  var i = e.computed, s = e.key;
790
790
  return !i && (s.type === "Identifier" && s.name === t || s.type === "Literal" && s.value === t);
791
791
  }
@@ -820,7 +820,7 @@ g.parseExportDefaultDeclaration = function() {
820
820
  var e;
821
821
  if (this.type === a._function || (e = this.isAsyncFunction())) {
822
822
  var t = this.startNode();
823
- return this.next(), e && this.next(), this.parseFunction(t, Ce | li, !1, e);
823
+ return this.next(), e && this.next(), this.parseFunction(t, Ce | ci, !1, e);
824
824
  } else if (this.type === a._class) {
825
825
  var i = this.startNode();
826
826
  return this.parseClass(i, "nullableID");
@@ -878,7 +878,7 @@ g.parseExportSpecifiers = function(e) {
878
878
  return t;
879
879
  };
880
880
  g.parseImport = function(e) {
881
- return this.next(), this.type === a.string ? (e.specifiers = ps, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === a.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
881
+ return this.next(), this.type === a.string ? (e.specifiers = ms, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === a.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
882
882
  };
883
883
  g.parseImportSpecifier = function() {
884
884
  var e = this.startNode();
@@ -929,7 +929,7 @@ g.parseImportAttribute = function() {
929
929
  g.parseModuleExportName = function() {
930
930
  if (this.options.ecmaVersion >= 13 && this.type === a.string) {
931
931
  var e = this.parseLiteral(this.value);
932
- return us.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
932
+ return cs.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
933
933
  }
934
934
  return this.parseIdent(!0);
935
935
  };
@@ -1051,7 +1051,7 @@ z.checkLValSimple = function(e, t, i) {
1051
1051
  var s = t !== qe;
1052
1052
  switch (e.type) {
1053
1053
  case "Identifier":
1054
- this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t === se && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (Se(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !== ui && this.declareName(e.name, t, e.start));
1054
+ this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t === se && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (Se(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !== li && this.declareName(e.name, t, e.start));
1055
1055
  break;
1056
1056
  case "ChainExpression":
1057
1057
  this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
@@ -1098,21 +1098,21 @@ z.checkLValInnerPattern = function(e, t, i) {
1098
1098
  this.checkLValPattern(e, t, i);
1099
1099
  }
1100
1100
  };
1101
- var Q = function(t, i, s, r, n) {
1101
+ var H = function(t, i, s, r, n) {
1102
1102
  this.token = t, this.isExpr = !!i, this.preserveSpace = !!s, this.override = r, this.generator = !!n;
1103
1103
  }, N = {
1104
- b_stat: new Q("{", !1),
1105
- b_expr: new Q("{", !0),
1106
- b_tmpl: new Q("${", !1),
1107
- p_stat: new Q("(", !1),
1108
- p_expr: new Q("(", !0),
1109
- q_tmpl: new Q("`", !0, !0, function(e) {
1104
+ b_stat: new H("{", !1),
1105
+ b_expr: new H("{", !0),
1106
+ b_tmpl: new H("${", !1),
1107
+ p_stat: new H("(", !1),
1108
+ p_expr: new H("(", !0),
1109
+ q_tmpl: new H("`", !0, !0, function(e) {
1110
1110
  return e.tryReadTemplateToken();
1111
1111
  }),
1112
- f_stat: new Q("function", !1),
1113
- f_expr: new Q("function", !0),
1114
- f_expr_gen: new Q("function", !0, !1, null, !0),
1115
- f_gen: new Q("function", !1, !1, null, !0)
1112
+ f_stat: new H("function", !1),
1113
+ f_expr: new H("function", !0),
1114
+ f_expr_gen: new H("function", !0, !1, null, !0),
1115
+ f_gen: new H("function", !1, !1, null, !0)
1116
1116
  }, we = L.prototype;
1117
1117
  we.initialContext = function() {
1118
1118
  return [N.b_stat];
@@ -1232,13 +1232,13 @@ S.parseMaybeAssign = function(e, t, i) {
1232
1232
  t ? (r = t.parenthesizedAssign, n = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new Xe(), s = !0);
1233
1233
  var l = this.start, u = this.startLoc;
1234
1234
  (this.type === a.parenL || this.type === a.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
1235
- var h = this.parseMaybeConditional(e, t);
1236
- if (i && (h = i.call(this, h, l, u)), this.type.isAssign) {
1235
+ var c = this.parseMaybeConditional(e, t);
1236
+ if (i && (c = i.call(this, c, l, u)), this.type.isAssign) {
1237
1237
  var f = this.startNodeAt(l, u);
1238
- return f.operator = this.value, this.type === a.eq && (h = this.toAssignable(h, !1, t)), s || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= h.start && (t.shorthandAssign = -1), this.type === a.eq ? this.checkLValPattern(h) : this.checkLValSimple(h), f.left = h, this.next(), f.right = this.parseMaybeAssign(e), o > -1 && (t.doubleProto = o), this.finishNode(f, "AssignmentExpression");
1238
+ return f.operator = this.value, this.type === a.eq && (c = this.toAssignable(c, !1, t)), s || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= c.start && (t.shorthandAssign = -1), this.type === a.eq ? this.checkLValPattern(c) : this.checkLValSimple(c), f.left = c, this.next(), f.right = this.parseMaybeAssign(e), o > -1 && (t.doubleProto = o), this.finishNode(f, "AssignmentExpression");
1239
1239
  } else
1240
1240
  s && this.checkExpressionErrors(t, !0);
1241
- return r > -1 && (t.parenthesizedAssign = r), n > -1 && (t.trailingComma = n), h;
1241
+ return r > -1 && (t.parenthesizedAssign = r), n > -1 && (t.trailingComma = n), c;
1242
1242
  };
1243
1243
  S.parseMaybeConditional = function(e, t) {
1244
1244
  var i = this.start, s = this.startLoc, r = this.parseExprOps(e, t);
@@ -1261,7 +1261,7 @@ S.parseExprOp = function(e, t, i, s, r) {
1261
1261
  l && (n = a.logicalAND.binop);
1262
1262
  var u = this.value;
1263
1263
  this.next();
1264
- var h = this.start, f = this.startLoc, c = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, r), h, f, n, r), p = this.buildBinary(t, i, e, c, u, o || l);
1264
+ var c = this.start, f = this.startLoc, h = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, r), c, f, n, r), p = this.buildBinary(t, i, e, h, u, o || l);
1265
1265
  return (o && this.type === a.coalesce || l && (this.type === a.logicalOR || this.type === a.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(p, t, i, s, r);
1266
1266
  }
1267
1267
  return e;
@@ -1284,8 +1284,8 @@ S.parseMaybeUnary = function(e, t, i, s) {
1284
1284
  if (o = this.parseExprSubscripts(e, s), this.checkExpressionErrors(e))
1285
1285
  return o;
1286
1286
  for (; this.type.postfix && !this.canInsertSemicolon(); ) {
1287
- var h = this.startNodeAt(r, n);
1288
- h.operator = this.value, h.prefix = !1, h.argument = o, this.checkLValSimple(o), this.next(), o = this.finishNode(h, "UpdateExpression");
1287
+ var c = this.startNodeAt(r, n);
1288
+ c.operator = this.value, c.prefix = !1, c.argument = o, this.checkLValSimple(o), this.next(), o = this.finishNode(c, "UpdateExpression");
1289
1289
  }
1290
1290
  }
1291
1291
  if (!i && this.eat(a.starstar))
@@ -1331,17 +1331,17 @@ S.parseSubscriptAsyncArrow = function(e, t, i, s) {
1331
1331
  S.parseSubscript = function(e, t, i, s, r, n, o) {
1332
1332
  var l = this.options.ecmaVersion >= 11, u = l && this.eat(a.questionDot);
1333
1333
  s && u && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
1334
- var h = this.eat(a.bracketL);
1335
- if (h || u && this.type !== a.parenL && this.type !== a.backQuote || this.eat(a.dot)) {
1334
+ var c = this.eat(a.bracketL);
1335
+ if (c || u && this.type !== a.parenL && this.type !== a.backQuote || this.eat(a.dot)) {
1336
1336
  var f = this.startNodeAt(t, i);
1337
- f.object = e, h ? (f.property = this.parseExpression(), this.expect(a.bracketR)) : this.type === a.privateId && e.type !== "Super" ? f.property = this.parsePrivateIdent() : f.property = this.parseIdent(this.options.allowReserved !== "never"), f.computed = !!h, l && (f.optional = u), e = this.finishNode(f, "MemberExpression");
1337
+ f.object = e, c ? (f.property = this.parseExpression(), this.expect(a.bracketR)) : this.type === a.privateId && e.type !== "Super" ? f.property = this.parsePrivateIdent() : f.property = this.parseIdent(this.options.allowReserved !== "never"), f.computed = !!c, l && (f.optional = u), e = this.finishNode(f, "MemberExpression");
1338
1338
  } else if (!s && this.eat(a.parenL)) {
1339
- var c = new Xe(), p = this.yieldPos, x = this.awaitPos, y = this.awaitIdentPos;
1339
+ var h = new Xe(), p = this.yieldPos, x = this.awaitPos, y = this.awaitIdentPos;
1340
1340
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
1341
- var d = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1, c);
1341
+ var d = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1, h);
1342
1342
  if (r && !u && this.shouldParseAsyncArrow())
1343
- return this.checkPatternErrors(c, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = p, this.awaitPos = x, this.awaitIdentPos = y, this.parseSubscriptAsyncArrow(t, i, d, o);
1344
- this.checkExpressionErrors(c, !0), this.yieldPos = p || this.yieldPos, this.awaitPos = x || this.awaitPos, this.awaitIdentPos = y || this.awaitIdentPos;
1343
+ return this.checkPatternErrors(h, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = p, this.awaitPos = x, this.awaitIdentPos = y, this.parseSubscriptAsyncArrow(t, i, d, o);
1344
+ this.checkExpressionErrors(h, !0), this.yieldPos = p || this.yieldPos, this.awaitPos = x || this.awaitPos, this.awaitIdentPos = y || this.awaitIdentPos;
1345
1345
  var b = this.startNodeAt(t, i);
1346
1346
  b.callee = e, b.arguments = d, l && (b.optional = u), e = this.finishNode(b, "CallExpression");
1347
1347
  } else if (this.type === a.backQuote) {
@@ -1371,8 +1371,8 @@ S.parseExprAtom = function(e, t, i) {
1371
1371
  }
1372
1372
  return u;
1373
1373
  case a.regexp:
1374
- var h = this.value;
1375
- return s = this.parseLiteral(h.value), s.regex = { pattern: h.pattern, flags: h.flags }, s;
1374
+ var c = this.value;
1375
+ return s = this.parseLiteral(c.value), s.regex = { pattern: c.pattern, flags: c.flags }, s;
1376
1376
  case a.num:
1377
1377
  case a.string:
1378
1378
  return this.parseLiteral(this.value);
@@ -1381,8 +1381,8 @@ S.parseExprAtom = function(e, t, i) {
1381
1381
  case a._false:
1382
1382
  return s = this.startNode(), s.value = this.type === a._null ? null : this.type === a._true, s.raw = this.type.keyword, this.next(), this.finishNode(s, "Literal");
1383
1383
  case a.parenL:
1384
- var f = this.start, c = this.parseParenAndDistinguishExpression(r, t);
1385
- return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(c) && (e.parenthesizedAssign = f), e.parenthesizedBind < 0 && (e.parenthesizedBind = f)), c;
1384
+ var f = this.start, h = this.parseParenAndDistinguishExpression(r, t);
1385
+ return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(h) && (e.parenthesizedAssign = f), e.parenthesizedBind < 0 && (e.parenthesizedBind = f)), h;
1386
1386
  case a.bracketL:
1387
1387
  return s = this.startNode(), this.next(), s.elements = this.parseExprList(a.bracketR, !0, !0, e), this.finishNode(s, "ArrayExpression");
1388
1388
  case a.braceL:
@@ -1444,9 +1444,9 @@ S.parseParenAndDistinguishExpression = function(e, t) {
1444
1444
  var i = this.start, s = this.startLoc, r, n = this.options.ecmaVersion >= 8;
1445
1445
  if (this.options.ecmaVersion >= 6) {
1446
1446
  this.next();
1447
- var o = this.start, l = this.startLoc, u = [], h = !0, f = !1, c = new Xe(), p = this.yieldPos, x = this.awaitPos, y;
1447
+ var o = this.start, l = this.startLoc, u = [], c = !0, f = !1, h = new Xe(), p = this.yieldPos, x = this.awaitPos, y;
1448
1448
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== a.parenR; )
1449
- if (h ? h = !1 : this.expect(a.comma), n && this.afterTrailingComma(a.parenR, !0)) {
1449
+ if (c ? c = !1 : this.expect(a.comma), n && this.afterTrailingComma(a.parenR, !0)) {
1450
1450
  f = !0;
1451
1451
  break;
1452
1452
  } else if (this.type === a.ellipsis) {
@@ -1456,11 +1456,11 @@ S.parseParenAndDistinguishExpression = function(e, t) {
1456
1456
  );
1457
1457
  break;
1458
1458
  } else
1459
- u.push(this.parseMaybeAssign(!1, c, this.parseParenItem));
1459
+ u.push(this.parseMaybeAssign(!1, h, this.parseParenItem));
1460
1460
  var d = this.lastTokEnd, b = this.lastTokEndLoc;
1461
1461
  if (this.expect(a.parenR), e && this.shouldParseArrow(u) && this.eat(a.arrow))
1462
- return this.checkPatternErrors(c, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = p, this.awaitPos = x, this.parseParenArrowList(i, s, u, t);
1463
- (!u.length || f) && this.unexpected(this.lastTokStart), y && this.unexpected(y), this.checkExpressionErrors(c, !0), this.yieldPos = p || this.yieldPos, this.awaitPos = x || this.awaitPos, u.length > 1 ? (r = this.startNodeAt(o, l), r.expressions = u, this.finishNodeAt(r, "SequenceExpression", d, b)) : r = u[0];
1462
+ return this.checkPatternErrors(h, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = p, this.awaitPos = x, this.parseParenArrowList(i, s, u, t);
1463
+ (!u.length || f) && this.unexpected(this.lastTokStart), y && this.unexpected(y), this.checkExpressionErrors(h, !0), this.yieldPos = p || this.yieldPos, this.awaitPos = x || this.awaitPos, u.length > 1 ? (r = this.startNodeAt(o, l), r.expressions = u, this.finishNodeAt(r, "SequenceExpression", d, b)) : r = u[0];
1464
1464
  } else
1465
1465
  r = this.parseParenExpression();
1466
1466
  if (this.options.preserveParens) {
@@ -1475,7 +1475,7 @@ S.parseParenItem = function(e) {
1475
1475
  S.parseParenArrowList = function(e, t, i, s) {
1476
1476
  return this.parseArrowExpression(this.startNodeAt(e, t), i, !1, s);
1477
1477
  };
1478
- var ms = [];
1478
+ var bs = [];
1479
1479
  S.parseNew = function() {
1480
1480
  this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
1481
1481
  var e = this.startNode();
@@ -1486,7 +1486,7 @@ S.parseNew = function() {
1486
1486
  return e.property = this.parseIdent(!0), e.property.name !== "target" && this.raiseRecoverable(e.property.start, "The only valid meta property for new is 'new.target'"), i && this.raiseRecoverable(e.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(e.start, "'new.target' can only be used in functions and class static block"), this.finishNode(e, "MetaProperty");
1487
1487
  }
1488
1488
  var s = this.start, r = this.startLoc;
1489
- return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), s, r, !0, !1), this.eat(a.parenL) ? e.arguments = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = ms, this.finishNode(e, "NewExpression");
1489
+ return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), s, r, !0, !1), this.eat(a.parenL) ? e.arguments = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = bs, this.finishNode(e, "NewExpression");
1490
1490
  };
1491
1491
  S.parseTemplateElement = function(e) {
1492
1492
  var t = e.isTagged, i = this.startNode();
@@ -1560,7 +1560,7 @@ S.initFunction = function(e) {
1560
1560
  };
1561
1561
  S.parseMethod = function(e, t, i) {
1562
1562
  var s = this.startNode(), r = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
1563
- return this.initFunction(s), this.options.ecmaVersion >= 6 && (s.generator = e), this.options.ecmaVersion >= 8 && (s.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ct(t, s.generator) | Ye | (i ? ni : 0)), this.expect(a.parenL), s.params = this.parseBindingList(a.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(s, !1, !0, !1), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = o, this.finishNode(s, "FunctionExpression");
1563
+ return this.initFunction(s), this.options.ecmaVersion >= 6 && (s.generator = e), this.options.ecmaVersion >= 8 && (s.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ct(t, s.generator) | Ye | (i ? ai : 0)), this.expect(a.parenL), s.params = this.parseBindingList(a.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(s, !1, !0, !1), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = o, this.finishNode(s, "FunctionExpression");
1564
1564
  };
1565
1565
  S.parseArrowExpression = function(e, t, i, s) {
1566
1566
  var r = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
@@ -1574,7 +1574,7 @@ S.parseFunctionBody = function(e, t, i, s) {
1574
1574
  var l = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
1575
1575
  (!n || l) && (o = this.strictDirective(this.end), o && l && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
1576
1576
  var u = this.labels;
1577
- this.labels = [], o && (this.strict = !0), this.checkParams(e, !n && !o && !t && !i && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, ui), e.body = this.parseBlock(!1, void 0, o && !n), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = u;
1577
+ this.labels = [], o && (this.strict = !0), this.checkParams(e, !n && !o && !t && !i && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, li), e.body = this.parseBlock(!1, void 0, o && !n), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = u;
1578
1578
  }
1579
1579
  this.exitScope();
1580
1580
  };
@@ -1632,23 +1632,23 @@ S.parseAwait = function(e) {
1632
1632
  var t = this.startNode();
1633
1633
  return this.next(), t.argument = this.parseMaybeUnary(null, !0, !1, e), this.finishNode(t, "AwaitExpression");
1634
1634
  };
1635
- var Ke = L.prototype;
1636
- Ke.raise = function(e, t) {
1637
- var i = ii(this.input, e);
1635
+ var We = L.prototype;
1636
+ We.raise = function(e, t) {
1637
+ var i = si(this.input, e);
1638
1638
  t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
1639
1639
  var s = new SyntaxError(t);
1640
1640
  throw s.pos = e, s.loc = i, s.raisedAt = this.pos, s;
1641
1641
  };
1642
- Ke.raiseRecoverable = Ke.raise;
1643
- Ke.curPosition = function() {
1642
+ We.raiseRecoverable = We.raise;
1643
+ We.curPosition = function() {
1644
1644
  if (this.options.locations)
1645
1645
  return new Ie(this.curLine, this.pos - this.lineStart);
1646
1646
  };
1647
- var oe = L.prototype, gs = function(t) {
1647
+ var oe = L.prototype, xs = function(t) {
1648
1648
  this.flags = t, this.var = [], this.lexical = [], this.functions = [];
1649
1649
  };
1650
1650
  oe.enterScope = function(e) {
1651
- this.scopeStack.push(new gs(e));
1651
+ this.scopeStack.push(new xs(e));
1652
1652
  };
1653
1653
  oe.exitScope = function() {
1654
1654
  this.scopeStack.pop();
@@ -1661,16 +1661,16 @@ oe.declareName = function(e, t, i) {
1661
1661
  if (t === se) {
1662
1662
  var r = this.currentScope();
1663
1663
  s = r.lexical.indexOf(e) > -1 || r.functions.indexOf(e) > -1 || r.var.indexOf(e) > -1, r.lexical.push(e), this.inModule && r.flags & Ne && delete this.undefinedExports[e];
1664
- } else if (t === oi) {
1664
+ } else if (t === ui) {
1665
1665
  var n = this.currentScope();
1666
1666
  n.lexical.push(e);
1667
- } else if (t === ai) {
1667
+ } else if (t === oi) {
1668
1668
  var o = this.currentScope();
1669
1669
  this.treatFunctionsAsVar ? s = o.lexical.indexOf(e) > -1 : s = o.lexical.indexOf(e) > -1 || o.var.indexOf(e) > -1, o.functions.push(e);
1670
1670
  } else
1671
1671
  for (var l = this.scopeStack.length - 1; l >= 0; --l) {
1672
1672
  var u = this.scopeStack[l];
1673
- if (u.lexical.indexOf(e) > -1 && !(u.flags & ri && u.lexical[0] === e) || !this.treatFunctionsAsVarInScope(u) && u.functions.indexOf(e) > -1) {
1673
+ if (u.lexical.indexOf(e) > -1 && !(u.flags & ni && u.lexical[0] === e) || !this.treatFunctionsAsVarInScope(u) && u.functions.indexOf(e) > -1) {
1674
1674
  s = !0;
1675
1675
  break;
1676
1676
  }
@@ -1708,14 +1708,14 @@ Ve.startNode = function() {
1708
1708
  Ve.startNodeAt = function(e, t) {
1709
1709
  return new et(this, e, t);
1710
1710
  };
1711
- function ci(e, t, i, s) {
1711
+ function fi(e, t, i, s) {
1712
1712
  return e.type = t, e.end = i, this.options.locations && (e.loc.end = s), this.options.ranges && (e.range[1] = i), e;
1713
1713
  }
1714
1714
  Ve.finishNode = function(e, t) {
1715
- return ci.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
1715
+ return fi.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
1716
1716
  };
1717
1717
  Ve.finishNodeAt = function(e, t, i, s) {
1718
- return ci.call(this, e, t, i, s);
1718
+ return fi.call(this, e, t, i, s);
1719
1719
  };
1720
1720
  Ve.copyNode = function(e) {
1721
1721
  var t = new et(this, e.start, this.startLoc);
@@ -1723,42 +1723,42 @@ Ve.copyNode = function(e) {
1723
1723
  t[i] = e[i];
1724
1724
  return t;
1725
1725
  };
1726
- var bs = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz", fi = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", pi = fi + " Extended_Pictographic", di = pi, mi = di + " EBase EComp EMod EPres ExtPict", gi = mi, xs = gi, ys = {
1727
- 9: fi,
1728
- 10: pi,
1729
- 11: di,
1730
- 12: mi,
1731
- 13: gi,
1732
- 14: xs
1733
- }, vs = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", Ss = {
1726
+ var ys = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz", pi = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", di = pi + " Extended_Pictographic", mi = di, gi = mi + " EBase EComp EMod EPres ExtPict", bi = gi, vs = bi, Ss = {
1727
+ 9: pi,
1728
+ 10: di,
1729
+ 11: mi,
1730
+ 12: gi,
1731
+ 13: bi,
1732
+ 14: vs
1733
+ }, ks = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", ws = {
1734
1734
  9: "",
1735
1735
  10: "",
1736
1736
  11: "",
1737
1737
  12: "",
1738
1738
  13: "",
1739
- 14: vs
1740
- }, Wt = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", bi = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", xi = bi + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", yi = xi + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", vi = yi + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Si = vi + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", ks = Si + " " + bs, ws = {
1741
- 9: bi,
1742
- 10: xi,
1743
- 11: yi,
1744
- 12: vi,
1745
- 13: Si,
1746
1739
  14: ks
1747
- }, ki = {};
1748
- function _s(e) {
1749
- var t = ki[e] = {
1750
- binary: ne(ys[e] + " " + Wt),
1751
- binaryOfStrings: ne(Ss[e]),
1740
+ }, Kt = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", xi = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", yi = xi + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", vi = yi + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", Si = vi + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", ki = Si + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", _s = ki + " " + ys, Cs = {
1741
+ 9: xi,
1742
+ 10: yi,
1743
+ 11: vi,
1744
+ 12: Si,
1745
+ 13: ki,
1746
+ 14: _s
1747
+ }, wi = {};
1748
+ function Es(e) {
1749
+ var t = wi[e] = {
1750
+ binary: ne(Ss[e] + " " + Kt),
1751
+ binaryOfStrings: ne(ws[e]),
1752
1752
  nonBinary: {
1753
- General_Category: ne(Wt),
1754
- Script: ne(ws[e])
1753
+ General_Category: ne(Kt),
1754
+ Script: ne(Cs[e])
1755
1755
  }
1756
1756
  };
1757
1757
  t.nonBinary.Script_Extensions = t.nonBinary.Script, t.nonBinary.gc = t.nonBinary.General_Category, t.nonBinary.sc = t.nonBinary.Script, t.nonBinary.scx = t.nonBinary.Script_Extensions;
1758
1758
  }
1759
- for (var ct = 0, Kt = [9, 10, 11, 12, 13, 14]; ct < Kt.length; ct += 1) {
1760
- var Cs = Kt[ct];
1761
- _s(Cs);
1759
+ for (var ht = 0, Wt = [9, 10, 11, 12, 13, 14]; ht < Wt.length; ht += 1) {
1760
+ var As = Wt[ht];
1761
+ Es(As);
1762
1762
  }
1763
1763
  var m = L.prototype, Ge = function(t, i) {
1764
1764
  this.parent = t, this.base = i || this;
@@ -1774,7 +1774,7 @@ Ge.prototype.sibling = function() {
1774
1774
  return new Ge(this.parent, this.base);
1775
1775
  };
1776
1776
  var Z = function(t) {
1777
- this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.ecmaVersion >= 13 ? "d" : "") + (t.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = ki[t.options.ecmaVersion >= 14 ? 14 : t.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
1777
+ this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.ecmaVersion >= 13 ? "d" : "") + (t.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = wi[t.options.ecmaVersion >= 14 ? 14 : t.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
1778
1778
  };
1779
1779
  Z.prototype.reset = function(t, i, s) {
1780
1780
  var r = s.indexOf("v") !== -1, n = s.indexOf("u") !== -1;
@@ -1831,13 +1831,13 @@ m.validateRegExpFlags = function(e) {
1831
1831
  }
1832
1832
  this.options.ecmaVersion >= 15 && s && r && this.raise(e.start, "Invalid regular expression flag");
1833
1833
  };
1834
- function Es(e) {
1834
+ function Is(e) {
1835
1835
  for (var t in e)
1836
1836
  return !0;
1837
1837
  return !1;
1838
1838
  }
1839
1839
  m.validateRegExpPattern = function(e) {
1840
- this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && Es(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
1840
+ this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && Is(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
1841
1841
  };
1842
1842
  m.regexp_pattern = function(e) {
1843
1843
  e.pos = 0, e.lastIntValue = 0, e.lastStringValue = "", e.lastAssertionIsQuantifiable = !1, e.numCapturingParens = 0, e.maxBackReference = 0, e.groupNames = /* @__PURE__ */ Object.create(null), e.backReferenceNames.length = 0, e.branchID = null, this.regexp_disjunction(e), e.pos !== e.source.length && (e.eat(
@@ -2039,11 +2039,11 @@ m.regexp_eatCapturingGroup = function(e) {
2039
2039
  return !1;
2040
2040
  };
2041
2041
  m.regexp_eatModifiers = function(e) {
2042
- for (var t = "", i = 0; (i = e.current()) !== -1 && As(i); )
2042
+ for (var t = "", i = 0; (i = e.current()) !== -1 && Ns(i); )
2043
2043
  t += te(i), e.advance();
2044
2044
  return t;
2045
2045
  };
2046
- function As(e) {
2046
+ function Ns(e) {
2047
2047
  return e === 105 || e === 109 || e === 115;
2048
2048
  }
2049
2049
  m.regexp_eatExtendedAtom = function(e) {
@@ -2057,13 +2057,13 @@ m.regexp_eatInvalidBracedQuantifier = function(e) {
2057
2057
  };
2058
2058
  m.regexp_eatSyntaxCharacter = function(e) {
2059
2059
  var t = e.current();
2060
- return wi(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2060
+ return _i(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2061
2061
  };
2062
- function wi(e) {
2062
+ function _i(e) {
2063
2063
  return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
2064
2064
  }
2065
2065
  m.regexp_eatPatternCharacters = function(e) {
2066
- for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !wi(i); )
2066
+ for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !_i(i); )
2067
2067
  e.advance();
2068
2068
  return e.pos !== t;
2069
2069
  };
@@ -2113,16 +2113,16 @@ m.regexp_eatRegExpIdentifierName = function(e) {
2113
2113
  };
2114
2114
  m.regexp_eatRegExpIdentifierStart = function(e) {
2115
2115
  var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
2116
- return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), Is(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
2116
+ return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), Ps(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
2117
2117
  };
2118
- function Is(e) {
2118
+ function Ps(e) {
2119
2119
  return J(e, !0) || e === 36 || e === 95;
2120
2120
  }
2121
2121
  m.regexp_eatRegExpIdentifierPart = function(e) {
2122
2122
  var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
2123
- return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), Ns(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
2123
+ return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), Os(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
2124
2124
  };
2125
- function Ns(e) {
2125
+ function Os(e) {
2126
2126
  return ae(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
2127
2127
  }
2128
2128
  m.regexp_eatAtomEscape = function(e) {
@@ -2175,9 +2175,9 @@ m.regexp_eatControlEscape = function(e) {
2175
2175
  };
2176
2176
  m.regexp_eatControlLetter = function(e) {
2177
2177
  var t = e.current();
2178
- return _i(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2178
+ return Ci(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2179
2179
  };
2180
- function _i(e) {
2180
+ function Ci(e) {
2181
2181
  return e >= 65 && e <= 90 || e >= 97 && e <= 122;
2182
2182
  }
2183
2183
  m.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
@@ -2212,13 +2212,13 @@ m.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
2212
2212
  ) && this.regexp_eatHexDigits(e) && e.eat(
2213
2213
  125
2214
2214
  /* } */
2215
- ) && Ps(e.lastIntValue))
2215
+ ) && Vs(e.lastIntValue))
2216
2216
  return !0;
2217
2217
  s && e.raise("Invalid unicode escape"), e.pos = i;
2218
2218
  }
2219
2219
  return !1;
2220
2220
  };
2221
- function Ps(e) {
2221
+ function Vs(e) {
2222
2222
  return e >= 0 && e <= 1114111;
2223
2223
  }
2224
2224
  m.regexp_eatIdentityEscape = function(e) {
@@ -2241,10 +2241,10 @@ m.regexp_eatDecimalEscape = function(e) {
2241
2241
  }
2242
2242
  return !1;
2243
2243
  };
2244
- var Ci = 0, ie = 1, G = 2;
2244
+ var Ei = 0, ie = 1, G = 2;
2245
2245
  m.regexp_eatCharacterClassEscape = function(e) {
2246
2246
  var t = e.current();
2247
- if (Os(t))
2247
+ if (Ls(t))
2248
2248
  return e.lastIntValue = -1, e.advance(), ie;
2249
2249
  var i = !1;
2250
2250
  if (e.switchU && this.options.ecmaVersion >= 9 && ((i = t === 80) || t === 112)) {
@@ -2260,9 +2260,9 @@ m.regexp_eatCharacterClassEscape = function(e) {
2260
2260
  return i && s === G && e.raise("Invalid property name"), s;
2261
2261
  e.raise("Invalid property name");
2262
2262
  }
2263
- return Ci;
2263
+ return Ei;
2264
2264
  };
2265
- function Os(e) {
2265
+ function Ls(e) {
2266
2266
  return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
2267
2267
  }
2268
2268
  m.regexp_eatUnicodePropertyValueExpression = function(e) {
@@ -2281,7 +2281,7 @@ m.regexp_eatUnicodePropertyValueExpression = function(e) {
2281
2281
  var r = e.lastStringValue;
2282
2282
  return this.regexp_validateUnicodePropertyNameOrValue(e, r);
2283
2283
  }
2284
- return Ci;
2284
+ return Ei;
2285
2285
  };
2286
2286
  m.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
2287
2287
  Se(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(i) || e.raise("Invalid property value");
@@ -2295,21 +2295,21 @@ m.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
2295
2295
  };
2296
2296
  m.regexp_eatUnicodePropertyName = function(e) {
2297
2297
  var t = 0;
2298
- for (e.lastStringValue = ""; Ei(t = e.current()); )
2298
+ for (e.lastStringValue = ""; Ai(t = e.current()); )
2299
2299
  e.lastStringValue += te(t), e.advance();
2300
2300
  return e.lastStringValue !== "";
2301
2301
  };
2302
- function Ei(e) {
2303
- return _i(e) || e === 95;
2302
+ function Ai(e) {
2303
+ return Ci(e) || e === 95;
2304
2304
  }
2305
2305
  m.regexp_eatUnicodePropertyValue = function(e) {
2306
2306
  var t = 0;
2307
- for (e.lastStringValue = ""; Vs(t = e.current()); )
2307
+ for (e.lastStringValue = ""; Ts(t = e.current()); )
2308
2308
  e.lastStringValue += te(t), e.advance();
2309
2309
  return e.lastStringValue !== "";
2310
2310
  };
2311
- function Vs(e) {
2312
- return Ei(e) || tt(e);
2311
+ function Ts(e) {
2312
+ return Ai(e) || tt(e);
2313
2313
  }
2314
2314
  m.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2315
2315
  return this.regexp_eatUnicodePropertyValue(e);
@@ -2355,7 +2355,7 @@ m.regexp_eatClassAtom = function(e) {
2355
2355
  return !0;
2356
2356
  if (e.switchU) {
2357
2357
  var i = e.current();
2358
- (i === 99 || Ni(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
2358
+ (i === 99 || Pi(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
2359
2359
  }
2360
2360
  e.pos = t;
2361
2361
  }
@@ -2508,19 +2508,19 @@ m.regexp_eatClassSetCharacter = function(e) {
2508
2508
  /* b */
2509
2509
  ) ? (e.lastIntValue = 8, !0) : (e.pos = t, !1);
2510
2510
  var i = e.current();
2511
- return i < 0 || i === e.lookahead() && Ls(i) || Ts(i) ? !1 : (e.advance(), e.lastIntValue = i, !0);
2511
+ return i < 0 || i === e.lookahead() && Rs(i) || Ds(i) ? !1 : (e.advance(), e.lastIntValue = i, !0);
2512
2512
  };
2513
- function Ls(e) {
2513
+ function Rs(e) {
2514
2514
  return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
2515
2515
  }
2516
- function Ts(e) {
2516
+ function Ds(e) {
2517
2517
  return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
2518
2518
  }
2519
2519
  m.regexp_eatClassSetReservedPunctuator = function(e) {
2520
2520
  var t = e.current();
2521
- return Rs(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2521
+ return Ms(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2522
2522
  };
2523
- function Rs(e) {
2523
+ function Ms(e) {
2524
2524
  return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
2525
2525
  }
2526
2526
  m.regexp_eatClassControlLetter = function(e) {
@@ -2550,14 +2550,14 @@ function tt(e) {
2550
2550
  }
2551
2551
  m.regexp_eatHexDigits = function(e) {
2552
2552
  var t = e.pos, i = 0;
2553
- for (e.lastIntValue = 0; Ai(i = e.current()); )
2554
- e.lastIntValue = 16 * e.lastIntValue + Ii(i), e.advance();
2553
+ for (e.lastIntValue = 0; Ii(i = e.current()); )
2554
+ e.lastIntValue = 16 * e.lastIntValue + Ni(i), e.advance();
2555
2555
  return e.pos !== t;
2556
2556
  };
2557
- function Ai(e) {
2557
+ function Ii(e) {
2558
2558
  return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
2559
2559
  }
2560
- function Ii(e) {
2560
+ function Ni(e) {
2561
2561
  return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
2562
2562
  }
2563
2563
  m.regexp_eatLegacyOctalEscapeSequence = function(e) {
@@ -2574,9 +2574,9 @@ m.regexp_eatLegacyOctalEscapeSequence = function(e) {
2574
2574
  };
2575
2575
  m.regexp_eatOctalDigit = function(e) {
2576
2576
  var t = e.current();
2577
- return Ni(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
2577
+ return Pi(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
2578
2578
  };
2579
- function Ni(e) {
2579
+ function Pi(e) {
2580
2580
  return e >= 48 && e <= 55;
2581
2581
  }
2582
2582
  m.regexp_eatFixedHexDigits = function(e, t) {
@@ -2584,9 +2584,9 @@ m.regexp_eatFixedHexDigits = function(e, t) {
2584
2584
  e.lastIntValue = 0;
2585
2585
  for (var s = 0; s < t; ++s) {
2586
2586
  var r = e.current();
2587
- if (!Ai(r))
2587
+ if (!Ii(r))
2588
2588
  return e.pos = i, !1;
2589
- e.lastIntValue = 16 * e.lastIntValue + Ii(r), e.advance();
2589
+ e.lastIntValue = 16 * e.lastIntValue + Ni(r), e.advance();
2590
2590
  }
2591
2591
  return !0;
2592
2592
  };
@@ -2632,7 +2632,7 @@ k.fullCharCodeAtPos = function() {
2632
2632
  k.skipBlockComment = function() {
2633
2633
  var e = this.options.onComment && this.curPosition(), t = this.pos, i = this.input.indexOf("*/", this.pos += 2);
2634
2634
  if (i === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = i + 2, this.options.locations)
2635
- for (var s = void 0, r = t; (s = Xt(this.input, r, this.pos)) > -1; )
2635
+ for (var s = void 0, r = t; (s = ei(this.input, r, this.pos)) > -1; )
2636
2636
  ++this.curLine, r = this.lineStart = s;
2637
2637
  this.options.onComment && this.options.onComment(
2638
2638
  !0,
@@ -2683,7 +2683,7 @@ k.skipSpace = function() {
2683
2683
  }
2684
2684
  break;
2685
2685
  default:
2686
- if (e > 8 && e < 14 || e >= 5760 && ei.test(String.fromCharCode(e)))
2686
+ if (e > 8 && e < 14 || e >= 5760 && ti.test(String.fromCharCode(e)))
2687
2687
  ++this.pos;
2688
2688
  else
2689
2689
  break e;
@@ -2886,29 +2886,29 @@ k.readRegexp = function() {
2886
2886
  return this.finishToken(a.regexp, { pattern: r, flags: o, value: u });
2887
2887
  };
2888
2888
  k.readInt = function(e, t, i) {
2889
- for (var s = this.options.ecmaVersion >= 12 && t === void 0, r = i && this.input.charCodeAt(this.pos) === 48, n = this.pos, o = 0, l = 0, u = 0, h = t ?? 1 / 0; u < h; ++u, ++this.pos) {
2890
- var f = this.input.charCodeAt(this.pos), c = void 0;
2889
+ for (var s = this.options.ecmaVersion >= 12 && t === void 0, r = i && this.input.charCodeAt(this.pos) === 48, n = this.pos, o = 0, l = 0, u = 0, c = t ?? 1 / 0; u < c; ++u, ++this.pos) {
2890
+ var f = this.input.charCodeAt(this.pos), h = void 0;
2891
2891
  if (s && f === 95) {
2892
2892
  r && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), l === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), u === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), l = f;
2893
2893
  continue;
2894
2894
  }
2895
- if (f >= 97 ? c = f - 97 + 10 : f >= 65 ? c = f - 65 + 10 : f >= 48 && f <= 57 ? c = f - 48 : c = 1 / 0, c >= e)
2895
+ if (f >= 97 ? h = f - 97 + 10 : f >= 65 ? h = f - 65 + 10 : f >= 48 && f <= 57 ? h = f - 48 : h = 1 / 0, h >= e)
2896
2896
  break;
2897
- l = f, o = o * e + c;
2897
+ l = f, o = o * e + h;
2898
2898
  }
2899
2899
  return s && l === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === n || t != null && this.pos - n !== t ? null : o;
2900
2900
  };
2901
2901
  function Bs(e, t) {
2902
2902
  return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
2903
2903
  }
2904
- function Pi(e) {
2904
+ function Oi(e) {
2905
2905
  return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
2906
2906
  }
2907
2907
  k.readRadixNumber = function(e) {
2908
2908
  var t = this.pos;
2909
2909
  this.pos += 2;
2910
2910
  var i = this.readInt(e);
2911
- return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = Pi(this.input.slice(t, this.pos)), ++this.pos) : J(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, i);
2911
+ return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = Oi(this.input.slice(t, this.pos)), ++this.pos) : J(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, i);
2912
2912
  };
2913
2913
  k.readNumber = function(e) {
2914
2914
  var t = this.pos;
@@ -2917,7 +2917,7 @@ k.readNumber = function(e) {
2917
2917
  i && this.strict && this.raise(t, "Invalid number");
2918
2918
  var s = this.input.charCodeAt(this.pos);
2919
2919
  if (!i && !e && this.options.ecmaVersion >= 11 && s === 110) {
2920
- var r = Pi(this.input.slice(t, this.pos));
2920
+ var r = Oi(this.input.slice(t, this.pos));
2921
2921
  return ++this.pos, J(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, r);
2922
2922
  }
2923
2923
  i && /[89]/.test(this.input.slice(t, this.pos)) && (i = !1), s === 46 && !i && (++this.pos, this.readInt(10), s = this.input.charCodeAt(this.pos)), (s === 69 || s === 101) && !i && (s = this.input.charCodeAt(++this.pos), (s === 43 || s === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), J(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
@@ -2944,13 +2944,13 @@ k.readString = function(e) {
2944
2944
  }
2945
2945
  return t += this.input.slice(i, this.pos++), this.finishToken(a.string, t);
2946
2946
  };
2947
- var Oi = {};
2947
+ var Vi = {};
2948
2948
  k.tryReadTemplateToken = function() {
2949
2949
  this.inTemplateElement = !0;
2950
2950
  try {
2951
2951
  this.readTmplToken();
2952
2952
  } catch (e) {
2953
- if (e === Oi)
2953
+ if (e === Vi)
2954
2954
  this.readInvalidTemplateToken();
2955
2955
  else
2956
2956
  throw e;
@@ -2959,7 +2959,7 @@ k.tryReadTemplateToken = function() {
2959
2959
  };
2960
2960
  k.invalidStringToken = function(e, t) {
2961
2961
  if (this.inTemplateElement && this.options.ecmaVersion >= 9)
2962
- throw Oi;
2962
+ throw Vi;
2963
2963
  this.raise(e, t);
2964
2964
  };
2965
2965
  k.readTmplToken = function() {
@@ -3094,79 +3094,79 @@ k.readWord = function() {
3094
3094
  var e = this.readWord1(), t = a.name;
3095
3095
  return this.keywords.test(e) && (t = kt[e]), this.finishToken(t, e);
3096
3096
  };
3097
- var Ds = "8.15.0";
3097
+ var Fs = "8.15.0";
3098
3098
  L.acorn = {
3099
3099
  Parser: L,
3100
- version: Ds,
3100
+ version: Fs,
3101
3101
  defaultOptions: gt,
3102
3102
  Position: Ie,
3103
3103
  SourceLocation: Je,
3104
- getLineInfo: ii,
3104
+ getLineInfo: si,
3105
3105
  Node: et,
3106
3106
  TokenType: C,
3107
3107
  tokTypes: a,
3108
3108
  keywordTypes: kt,
3109
- TokContext: Q,
3109
+ TokContext: H,
3110
3110
  tokContexts: N,
3111
3111
  isIdentifierChar: ae,
3112
3112
  isIdentifierStart: J,
3113
3113
  Token: It,
3114
3114
  isNewLine: ve,
3115
3115
  lineBreak: F,
3116
- lineBreakG: ns,
3117
- nonASCIIwhitespace: ei
3116
+ lineBreakG: os,
3117
+ nonASCIIwhitespace: ti
3118
3118
  };
3119
3119
  function ye(e) {
3120
3120
  const t = [];
3121
3121
  let i = "", s = null, r = !1, n = 0, o = 0, l = 0;
3122
- for (const h of e) {
3122
+ for (const c of e) {
3123
3123
  if (r) {
3124
- i += h, r = !1;
3124
+ i += c, r = !1;
3125
3125
  continue;
3126
3126
  }
3127
3127
  if (s) {
3128
- i += h, h === "\\" ? r = !0 : h === s && (s = null);
3128
+ i += c, c === "\\" ? r = !0 : c === s && (s = null);
3129
3129
  continue;
3130
3130
  }
3131
- if (h === '"' || h === "'") {
3132
- s = h, i += h;
3131
+ if (c === '"' || c === "'") {
3132
+ s = c, i += c;
3133
3133
  continue;
3134
3134
  }
3135
- if (h === "(") {
3136
- n += 1, i += h;
3135
+ if (c === "(") {
3136
+ n += 1, i += c;
3137
3137
  continue;
3138
3138
  }
3139
- if (h === ")") {
3140
- n = Math.max(0, n - 1), i += h;
3139
+ if (c === ")") {
3140
+ n = Math.max(0, n - 1), i += c;
3141
3141
  continue;
3142
3142
  }
3143
- if (h === "[") {
3144
- o += 1, i += h;
3143
+ if (c === "[") {
3144
+ o += 1, i += c;
3145
3145
  continue;
3146
3146
  }
3147
- if (h === "]") {
3148
- o = Math.max(0, o - 1), i += h;
3147
+ if (c === "]") {
3148
+ o = Math.max(0, o - 1), i += c;
3149
3149
  continue;
3150
3150
  }
3151
- if (h === "{") {
3152
- l += 1, i += h;
3151
+ if (c === "{") {
3152
+ l += 1, i += c;
3153
3153
  continue;
3154
3154
  }
3155
- if (h === "}") {
3156
- l = Math.max(0, l - 1), i += h;
3155
+ if (c === "}") {
3156
+ l = Math.max(0, l - 1), i += c;
3157
3157
  continue;
3158
3158
  }
3159
- if (h === "," && n === 0 && o === 0 && l === 0) {
3159
+ if (c === "," && n === 0 && o === 0 && l === 0) {
3160
3160
  const f = i.trim();
3161
3161
  f && t.push(f), i = "";
3162
3162
  continue;
3163
3163
  }
3164
- i += h;
3164
+ i += c;
3165
3165
  }
3166
3166
  const u = i.trim();
3167
3167
  return u && t.push(u), t;
3168
3168
  }
3169
- function Ms(e, t) {
3169
+ function js(e, t) {
3170
3170
  return e.replace(/\\\\/g, "\\").replace(t === '"' ? /\\"/g : /\\'/g, t);
3171
3171
  }
3172
3172
  function Nt(e) {
@@ -3178,7 +3178,7 @@ function Nt(e) {
3178
3178
  return i[2];
3179
3179
  if (t.startsWith('"') && t.endsWith('"') || t.startsWith("'") && t.endsWith("'")) {
3180
3180
  const s = t[0];
3181
- return Ms(t.slice(1, -1), s);
3181
+ return js(t.slice(1, -1), s);
3182
3182
  }
3183
3183
  if (t.startsWith("[") && t.endsWith("]")) {
3184
3184
  const s = t.slice(1, -1).trim();
@@ -3186,7 +3186,7 @@ function Nt(e) {
3186
3186
  }
3187
3187
  return t === "True" || t === "true" ? !0 : t === "False" || t === "false" ? !1 : t === "None" || t === "null" ? null : /^-?\d+$/.test(t) ? Number.parseInt(t, 10) : /^-?(?:\d+\.\d*|\.\d+)(?:[eE][+-]?\d+)?$/.test(t) || /^-?\d+[eE][+-]?\d+$/.test(t) ? Number.parseFloat(t) : t;
3188
3188
  }
3189
- function Fs(e) {
3189
+ function $s(e) {
3190
3190
  const t = {};
3191
3191
  for (const i of ye(e)) {
3192
3192
  const s = i.match(/^(\w+)\s*=\s*([\s\S]+)$/);
@@ -3194,27 +3194,27 @@ function Fs(e) {
3194
3194
  }
3195
3195
  return t;
3196
3196
  }
3197
- function js(e) {
3197
+ function Us(e) {
3198
3198
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null;
3199
3199
  }
3200
- function Vi(e) {
3201
- return Array.isArray(e) ? e.filter(js) : [];
3200
+ function Li(e) {
3201
+ return Array.isArray(e) ? e.filter(Us) : [];
3202
3202
  }
3203
- function Us(e) {
3203
+ function qs(e) {
3204
3204
  const t = e?.trim().match(/^(?:(?:typing|typing_extensions)\.)?Literal\s*\[([\s\S]*)\]$/);
3205
- return t ? Vi(
3205
+ return t ? Li(
3206
3206
  ye(t[1]).map(Nt)
3207
3207
  ) : [];
3208
3208
  }
3209
- function $s(e, t) {
3210
- const i = Vi(t?.enum);
3211
- return i.length > 0 ? i : Us(e);
3209
+ function Ks(e, t) {
3210
+ const i = Li(t?.enum);
3211
+ return i.length > 0 ? i : qs(e);
3212
3212
  }
3213
3213
  function ft(e) {
3214
- const t = $s(e.type, e.kwargs);
3214
+ const t = Ks(e.type, e.kwargs);
3215
3215
  return t.length > 0 && (e.enum = t), e;
3216
3216
  }
3217
- function qs(e, t) {
3217
+ function Ws(e, t) {
3218
3218
  let i = null, s = !1, r = 0;
3219
3219
  for (let n = t; n < e.length; n += 1) {
3220
3220
  const o = e[n];
@@ -3239,17 +3239,17 @@ function qs(e, t) {
3239
3239
  }
3240
3240
  return -1;
3241
3241
  }
3242
- const Ws = /* @__PURE__ */ new Set(["int", "integer", "float", "number"]), Ks = ["gt", "ge", "lt", "le", "multiple_of"];
3243
- function Gs(e) {
3244
- return e !== void 0 && Ws.has(e.toLowerCase());
3242
+ const Gs = /* @__PURE__ */ new Set(["int", "integer", "float", "number"]), zs = ["gt", "ge", "lt", "le", "multiple_of"];
3243
+ function Hs(e) {
3244
+ return e !== void 0 && Gs.has(e.toLowerCase());
3245
3245
  }
3246
- function zs(e) {
3246
+ function Qs(e) {
3247
3247
  const t = e.trim(), i = t.indexOf("subvars");
3248
3248
  let s, r;
3249
3249
  if (i !== -1) {
3250
3250
  const l = t.indexOf("[", i);
3251
3251
  if (l !== -1) {
3252
- const u = qs(t, l);
3252
+ const u = Ws(t, l);
3253
3253
  u !== -1 && (s = t.slice(l + 1, u));
3254
3254
  }
3255
3255
  }
@@ -3258,8 +3258,8 @@ function zs(e) {
3258
3258
  r = {};
3259
3259
  for (const u of l)
3260
3260
  if (/^var\s*\(/.test(u) || /^[A-Za-z_]\w*\s*[:=]/.test(u)) {
3261
- const h = Gt(u);
3262
- r[h.id] = h;
3261
+ const c = Gt(u);
3262
+ r[c.id] = c;
3263
3263
  } else
3264
3264
  r[u] = { id: u };
3265
3265
  }
@@ -3272,7 +3272,7 @@ function zs(e) {
3272
3272
  function Gt(e) {
3273
3273
  let t = e.trim();
3274
3274
  t.startsWith("var(") && t.endsWith(")") ? t = t.slice(4, -1).trim() : t.startsWith("var (") && t.endsWith(")") && (t = t.slice(5, -1).trim());
3275
- const i = ye(t), s = (i[0] || "").trim(), r = i.slice(1).filter((y) => /^\w+\s*=/.test(y)), n = Fs(r.join(", "));
3275
+ const i = ye(t), s = (i[0] || "").trim(), r = i.slice(1).filter((y) => /^\w+\s*=/.test(y)), n = $s(r.join(", "));
3276
3276
  if (!s.includes(":")) {
3277
3277
  const y = s.indexOf("=");
3278
3278
  if (y > 0) {
@@ -3286,11 +3286,11 @@ function Gt(e) {
3286
3286
  const d = { id: s.split(/\s/)[0].trim() };
3287
3287
  return Object.keys(n).length > 0 && (d.kwargs = n), ft(d);
3288
3288
  }
3289
- const o = s.indexOf(":"), l = s.slice(0, o).trim(), u = s.slice(o + 1).trim(), h = u.indexOf("=");
3290
- let f, c, p;
3291
- h > 0 ? (f = u.slice(0, h).trim(), p = u.slice(h + 1).trim(), c = zt(p)) : f = u.trim();
3289
+ const o = s.indexOf(":"), l = s.slice(0, o).trim(), u = s.slice(o + 1).trim(), c = u.indexOf("=");
3290
+ let f, h, p;
3291
+ c > 0 ? (f = u.slice(0, c).trim(), p = u.slice(c + 1).trim(), h = zt(p)) : f = u.trim();
3292
3292
  const x = { id: l, type: f };
3293
- return c !== void 0 && (x.default = c, x.defaultRaw = p), Object.keys(n).length > 0 && (x.kwargs = n), ft(x);
3293
+ return h !== void 0 && (x.default = h, x.defaultRaw = p), Object.keys(n).length > 0 && (x.kwargs = n), ft(x);
3294
3294
  }
3295
3295
  function zt(e) {
3296
3296
  const t = e.trim();
@@ -3313,7 +3313,7 @@ function zt(e) {
3313
3313
  }
3314
3314
  return t;
3315
3315
  }
3316
- function Qs(e) {
3316
+ function Js(e) {
3317
3317
  if (e.type === void 0 || e.default === void 0 || e.default === null)
3318
3318
  return [];
3319
3319
  const t = [], i = e.type.toLowerCase(), s = e.default;
@@ -3341,13 +3341,13 @@ function Qs(e) {
3341
3341
  }
3342
3342
  return t;
3343
3343
  }
3344
- function Li(e) {
3344
+ function Ti(e) {
3345
3345
  const t = [], i = e.kwargs, s = e.type?.toLowerCase();
3346
3346
  if (i) {
3347
- const r = Ks.filter(
3347
+ const r = zs.filter(
3348
3348
  (n) => Object.prototype.hasOwnProperty.call(i, n)
3349
3349
  );
3350
- if (r.length > 0 && !Gs(s)) {
3350
+ if (r.length > 0 && !Hs(s)) {
3351
3351
  const n = s ?? "untyped";
3352
3352
  t.push(
3353
3353
  `"${e.id}": numeric constraints (${r.join(", ")}) only apply to int/integer/float/number variables, not ${n}`
@@ -3360,26 +3360,81 @@ function Li(e) {
3360
3360
  }
3361
3361
  if (e.subvars)
3362
3362
  for (const r of Object.values(e.subvars))
3363
- t.push(...Li(r));
3363
+ t.push(...Ti(r));
3364
3364
  return t;
3365
3365
  }
3366
- function Ti(e) {
3367
- const t = Qs(e);
3366
+ function Ri(e) {
3367
+ const t = Js(e);
3368
3368
  if (e.subvars)
3369
3369
  for (const i of Object.values(e.subvars))
3370
- t.push(...Ti(i));
3370
+ t.push(...Ri(i));
3371
3371
  return t;
3372
3372
  }
3373
- function Hs(e) {
3373
+ function Ys(e) {
3374
3374
  return [
3375
- ...Ti(e),
3376
- ...Li(e)
3375
+ ...Ri(e),
3376
+ ...Ti(e)
3377
3377
  ];
3378
3378
  }
3379
+ function Ht(e) {
3380
+ const t = e.trim();
3381
+ if (t.length >= 2) {
3382
+ const i = t[0];
3383
+ if ((i === '"' || i === "'") && t[t.length - 1] === i)
3384
+ try {
3385
+ return i === '"' ? JSON.parse(t) : t.slice(1, -1).replace(/\\'/g, "'");
3386
+ } catch {
3387
+ return t.slice(1, -1);
3388
+ }
3389
+ }
3390
+ return t;
3391
+ }
3392
+ function Zs(e) {
3393
+ const t = e.split(`
3394
+ `), i = {};
3395
+ let s = null, r = "", n = !1;
3396
+ for (const o of t) {
3397
+ const l = o.trim();
3398
+ if (!l && !n)
3399
+ continue;
3400
+ const u = l.match(/^(\w+):\s*(.*)$/);
3401
+ if (u) {
3402
+ s && (i[s] = Ht(r)), s = u[1];
3403
+ const c = u[2];
3404
+ c === "|" ? (n = !0, r = "") : (n = !1, r = c);
3405
+ } else s && (n || l) && (r ? r += `
3406
+ ${o}` : r = o);
3407
+ }
3408
+ return s && (i[s] = Ht(r)), i;
3409
+ }
3410
+ const Xs = ["video", "audio", "file"];
3411
+ function Di(e) {
3412
+ return (e || "file").trim().toLowerCase() || "file";
3413
+ }
3414
+ function er(e) {
3415
+ return Xs.includes(Di(e));
3416
+ }
3417
+ function tr(e) {
3418
+ const t = Di(e.kind);
3419
+ return er(t) ? [] : [
3420
+ `media "${e.id}": unsupported kind "${e.kind}". Supported media kinds are video, audio, and file; static images must use a fig block.`
3421
+ ];
3422
+ }
3423
+ function ir(e) {
3424
+ const t = Zs(e);
3425
+ if (!t.id || !t.src)
3426
+ throw new Error('media block must have "id" and "src" fields');
3427
+ const i = {
3428
+ id: t.id,
3429
+ kind: t.kind || "file",
3430
+ src: t.src
3431
+ };
3432
+ return t.mime && (i.mime = t.mime), t.provider && (i.provider = t.provider), t.poster && (i.poster = t.poster), t.title && (i.title = t.title), t.legend && (i.legend = t.legend), i;
3433
+ }
3379
3434
  new TextEncoder();
3380
3435
  new TextDecoder();
3381
- const Pt = /* @__PURE__ */ Symbol.for("yaml.alias"), Js = /* @__PURE__ */ Symbol.for("yaml.document"), fe = /* @__PURE__ */ Symbol.for("yaml.map"), Ri = /* @__PURE__ */ Symbol.for("yaml.pair"), Ot = /* @__PURE__ */ Symbol.for("yaml.scalar"), Le = /* @__PURE__ */ Symbol.for("yaml.seq"), X = /* @__PURE__ */ Symbol.for("yaml.node.type"), de = (e) => !!e && typeof e == "object" && e[X] === Pt, it = (e) => !!e && typeof e == "object" && e[X] === Js, Bi = (e) => !!e && typeof e == "object" && e[X] === fe, T = (e) => !!e && typeof e == "object" && e[X] === Ri, V = (e) => !!e && typeof e == "object" && e[X] === Ot, Vt = (e) => !!e && typeof e == "object" && e[X] === Le;
3382
- function $(e) {
3436
+ const Pt = /* @__PURE__ */ Symbol.for("yaml.alias"), sr = /* @__PURE__ */ Symbol.for("yaml.document"), fe = /* @__PURE__ */ Symbol.for("yaml.map"), Mi = /* @__PURE__ */ Symbol.for("yaml.pair"), Ot = /* @__PURE__ */ Symbol.for("yaml.scalar"), Le = /* @__PURE__ */ Symbol.for("yaml.seq"), X = /* @__PURE__ */ Symbol.for("yaml.node.type"), de = (e) => !!e && typeof e == "object" && e[X] === Pt, it = (e) => !!e && typeof e == "object" && e[X] === sr, Bi = (e) => !!e && typeof e == "object" && e[X] === fe, T = (e) => !!e && typeof e == "object" && e[X] === Mi, V = (e) => !!e && typeof e == "object" && e[X] === Ot, Vt = (e) => !!e && typeof e == "object" && e[X] === Le;
3437
+ function U(e) {
3383
3438
  if (e && typeof e == "object")
3384
3439
  switch (e[X]) {
3385
3440
  case fe:
@@ -3388,7 +3443,7 @@ function $(e) {
3388
3443
  }
3389
3444
  return !1;
3390
3445
  }
3391
- function B(e) {
3446
+ function D(e) {
3392
3447
  if (e && typeof e == "object")
3393
3448
  switch (e[X]) {
3394
3449
  case Pt:
@@ -3399,46 +3454,46 @@ function B(e) {
3399
3454
  }
3400
3455
  return !1;
3401
3456
  }
3402
- const Di = (e) => (V(e) || $(e)) && !!e.anchor, he = /* @__PURE__ */ Symbol("break visit"), Ys = /* @__PURE__ */ Symbol("skip children"), Ee = /* @__PURE__ */ Symbol("remove node");
3457
+ const Fi = (e) => (V(e) || U(e)) && !!e.anchor, ce = /* @__PURE__ */ Symbol("break visit"), rr = /* @__PURE__ */ Symbol("skip children"), Ee = /* @__PURE__ */ Symbol("remove node");
3403
3458
  function st(e, t) {
3404
- const i = Zs(t);
3459
+ const i = nr(t);
3405
3460
  it(e) ? ge(null, e.contents, i, Object.freeze([e])) === Ee && (e.contents = null) : ge(null, e, i, Object.freeze([]));
3406
3461
  }
3407
- st.BREAK = he;
3408
- st.SKIP = Ys;
3462
+ st.BREAK = ce;
3463
+ st.SKIP = rr;
3409
3464
  st.REMOVE = Ee;
3410
3465
  function ge(e, t, i, s) {
3411
- const r = Xs(e, t, i, s);
3412
- if (B(r) || T(r))
3413
- return er(e, s, r), ge(e, r, i, s);
3466
+ const r = ar(e, t, i, s);
3467
+ if (D(r) || T(r))
3468
+ return or(e, s, r), ge(e, r, i, s);
3414
3469
  if (typeof r != "symbol") {
3415
- if ($(t)) {
3470
+ if (U(t)) {
3416
3471
  s = Object.freeze(s.concat(t));
3417
3472
  for (let n = 0; n < t.items.length; ++n) {
3418
3473
  const o = ge(n, t.items[n], i, s);
3419
3474
  if (typeof o == "number")
3420
3475
  n = o - 1;
3421
3476
  else {
3422
- if (o === he)
3423
- return he;
3477
+ if (o === ce)
3478
+ return ce;
3424
3479
  o === Ee && (t.items.splice(n, 1), n -= 1);
3425
3480
  }
3426
3481
  }
3427
3482
  } else if (T(t)) {
3428
3483
  s = Object.freeze(s.concat(t));
3429
3484
  const n = ge("key", t.key, i, s);
3430
- if (n === he)
3431
- return he;
3485
+ if (n === ce)
3486
+ return ce;
3432
3487
  n === Ee && (t.key = null);
3433
3488
  const o = ge("value", t.value, i, s);
3434
- if (o === he)
3435
- return he;
3489
+ if (o === ce)
3490
+ return ce;
3436
3491
  o === Ee && (t.value = null);
3437
3492
  }
3438
3493
  }
3439
3494
  return r;
3440
3495
  }
3441
- function Zs(e) {
3496
+ function nr(e) {
3442
3497
  return typeof e == "object" && (e.Collection || e.Node || e.Value) ? Object.assign({
3443
3498
  Alias: e.Node,
3444
3499
  Map: e.Node,
@@ -3453,7 +3508,7 @@ function Zs(e) {
3453
3508
  Seq: e.Collection
3454
3509
  }, e) : e;
3455
3510
  }
3456
- function Xs(e, t, i, s) {
3511
+ function ar(e, t, i, s) {
3457
3512
  if (typeof i == "function")
3458
3513
  return i(e, t, s);
3459
3514
  if (Bi(t))
@@ -3467,9 +3522,9 @@ function Xs(e, t, i, s) {
3467
3522
  if (de(t))
3468
3523
  return i.Alias?.(e, t, s);
3469
3524
  }
3470
- function er(e, t, i) {
3525
+ function or(e, t, i) {
3471
3526
  const s = t[t.length - 1];
3472
- if ($(s))
3527
+ if (U(s))
3473
3528
  s.items[e] = i;
3474
3529
  else if (T(s))
3475
3530
  e === "key" ? s.key = i : s.value = i;
@@ -3480,7 +3535,7 @@ function er(e, t, i) {
3480
3535
  throw new Error(`Cannot replace node with ${r} parent`);
3481
3536
  }
3482
3537
  }
3483
- function Mi(e) {
3538
+ function ji(e) {
3484
3539
  if (/[\x00-\x19\s,[\]{}]/.test(e)) {
3485
3540
  const i = `Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;
3486
3541
  throw new Error(i);
@@ -3511,11 +3566,11 @@ function _e(e, t, i, s) {
3511
3566
  }
3512
3567
  return e.call(t, i, s);
3513
3568
  }
3514
- function H(e, t, i) {
3569
+ function Q(e, t, i) {
3515
3570
  if (Array.isArray(e))
3516
- return e.map((s, r) => H(s, String(r), i));
3571
+ return e.map((s, r) => Q(s, String(r), i));
3517
3572
  if (e && typeof e.toJSON == "function") {
3518
- if (!i || !Di(e))
3573
+ if (!i || !Fi(e))
3519
3574
  return e.toJSON(t, i);
3520
3575
  const s = { aliasCount: 0, count: 1, res: void 0 };
3521
3576
  i.anchors.set(e, s), i.onCreate = (n) => {
@@ -3546,14 +3601,14 @@ class Lt {
3546
3601
  mapAsMap: i === !0,
3547
3602
  mapKeyWarned: !1,
3548
3603
  maxAliasCount: typeof s == "number" ? s : 100
3549
- }, l = H(this, "", o);
3604
+ }, l = Q(this, "", o);
3550
3605
  if (typeof r == "function")
3551
- for (const { count: u, res: h } of o.anchors.values())
3552
- r(h, u);
3606
+ for (const { count: u, res: c } of o.anchors.values())
3607
+ r(c, u);
3553
3608
  return typeof n == "function" ? _e(n, { "": l }, "", l) : l;
3554
3609
  }
3555
3610
  }
3556
- class tr extends Lt {
3611
+ class ur extends Lt {
3557
3612
  constructor(t) {
3558
3613
  super(Pt), this.source = t, Object.defineProperty(this, "tag", {
3559
3614
  set() {
@@ -3569,7 +3624,7 @@ class tr extends Lt {
3569
3624
  let s;
3570
3625
  i?.aliasResolveCache ? s = i.aliasResolveCache : (s = [], st(t, {
3571
3626
  Node: (n, o) => {
3572
- (de(o) || Di(o)) && s.push(o);
3627
+ (de(o) || Fi(o)) && s.push(o);
3573
3628
  }
3574
3629
  }), i && (i.aliasResolveCache = s));
3575
3630
  let r;
@@ -3589,7 +3644,7 @@ class tr extends Lt {
3589
3644
  throw new ReferenceError(u);
3590
3645
  }
3591
3646
  let l = s.get(o);
3592
- if (l || (H(o, null, i), l = s.get(o)), l?.res === void 0) {
3647
+ if (l || (Q(o, null, i), l = s.get(o)), l?.res === void 0) {
3593
3648
  const u = "This should not happen: Alias anchor was not resolved?";
3594
3649
  throw new ReferenceError(u);
3595
3650
  }
@@ -3602,7 +3657,7 @@ class tr extends Lt {
3602
3657
  toString(t, i, s) {
3603
3658
  const r = `*${this.source}`;
3604
3659
  if (t) {
3605
- if (Mi(this.source), t.options.verifyAliasOrder && !t.anchors.has(this.source)) {
3660
+ if (ji(this.source), t.options.verifyAliasOrder && !t.anchors.has(this.source)) {
3606
3661
  const n = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
3607
3662
  throw new Error(n);
3608
3663
  }
@@ -3616,7 +3671,7 @@ function je(e, t, i) {
3616
3671
  if (de(t)) {
3617
3672
  const s = t.resolve(e), r = i && s && i.get(s);
3618
3673
  return r ? r.count * r.aliasCount : 0;
3619
- } else if ($(t)) {
3674
+ } else if (U(t)) {
3620
3675
  let s = 0;
3621
3676
  for (const r of t.items) {
3622
3677
  const n = je(e, r, i);
@@ -3629,13 +3684,13 @@ function je(e, t, i) {
3629
3684
  }
3630
3685
  return 1;
3631
3686
  }
3632
- const Fi = (e) => !e || typeof e != "function" && typeof e != "object";
3687
+ const $i = (e) => !e || typeof e != "function" && typeof e != "object";
3633
3688
  class O extends Lt {
3634
3689
  constructor(t) {
3635
3690
  super(Ot), this.value = t;
3636
3691
  }
3637
3692
  toJSON(t, i) {
3638
- return i?.keep ? this.value : H(this.value, t, i);
3693
+ return i?.keep ? this.value : Q(this.value, t, i);
3639
3694
  }
3640
3695
  toString() {
3641
3696
  return String(this.value);
@@ -3646,35 +3701,35 @@ O.BLOCK_LITERAL = "BLOCK_LITERAL";
3646
3701
  O.PLAIN = "PLAIN";
3647
3702
  O.QUOTE_DOUBLE = "QUOTE_DOUBLE";
3648
3703
  O.QUOTE_SINGLE = "QUOTE_SINGLE";
3649
- function ir(e, t, i) {
3704
+ function lr(e, t, i) {
3650
3705
  return i.find((s) => s.identify?.(e) && !s.format);
3651
3706
  }
3652
3707
  function ze(e, t, i) {
3653
- if (it(e) && (e = e.contents), B(e))
3708
+ if (it(e) && (e = e.contents), D(e))
3654
3709
  return e;
3655
3710
  if (T(e)) {
3656
- const c = i.schema[fe].createNode?.(i.schema, null, i);
3657
- return c.items.push(e), c;
3711
+ const h = i.schema[fe].createNode?.(i.schema, null, i);
3712
+ return h.items.push(e), h;
3658
3713
  }
3659
3714
  (e instanceof String || e instanceof Number || e instanceof Boolean || typeof BigInt < "u" && e instanceof BigInt) && (e = e.valueOf());
3660
3715
  const { aliasDuplicateObjects: s, onAnchor: r, onTagObj: n, schema: o, sourceObjects: l } = i;
3661
3716
  let u;
3662
3717
  if (s && e && typeof e == "object") {
3663
3718
  if (u = l.get(e), u)
3664
- return u.anchor ?? (u.anchor = r(e)), new tr(u.anchor);
3719
+ return u.anchor ?? (u.anchor = r(e)), new ur(u.anchor);
3665
3720
  u = { anchor: null, node: null }, l.set(e, u);
3666
3721
  }
3667
- let h = ir(e, t, o.tags);
3668
- if (!h) {
3722
+ let c = lr(e, t, o.tags);
3723
+ if (!c) {
3669
3724
  if (e && typeof e.toJSON == "function" && (e = e.toJSON()), !e || typeof e != "object") {
3670
- const c = new O(e);
3671
- return u && (u.node = c), c;
3725
+ const h = new O(e);
3726
+ return u && (u.node = h), h;
3672
3727
  }
3673
- h = e instanceof Map ? o[fe] : Symbol.iterator in Object(e) ? o[Le] : o[fe];
3728
+ c = e instanceof Map ? o[fe] : Symbol.iterator in Object(e) ? o[Le] : o[fe];
3674
3729
  }
3675
- n && (n(h), delete i.onTagObj);
3676
- const f = h?.createNode ? h.createNode(i.schema, e, i) : typeof h?.nodeClass?.from == "function" ? h.nodeClass.from(i.schema, e, i) : new O(e);
3677
- return h.default || (f.tag = h.tag), u && (u.node = f), f;
3730
+ n && (n(c), delete i.onTagObj);
3731
+ const f = c?.createNode ? c.createNode(i.schema, e, i) : typeof c?.nodeClass?.from == "function" ? c.nodeClass.from(i.schema, e, i) : new O(e);
3732
+ return c.default || (f.tag = c.tag), u && (u.node = f), f;
3678
3733
  }
3679
3734
  function Qt(e, t, i) {
3680
3735
  let s = i;
@@ -3696,8 +3751,8 @@ function Qt(e, t, i) {
3696
3751
  sourceObjects: /* @__PURE__ */ new Map()
3697
3752
  });
3698
3753
  }
3699
- const sr = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next().done;
3700
- class ji extends Lt {
3754
+ const cr = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next().done;
3755
+ class Ui extends Lt {
3701
3756
  constructor(t, i) {
3702
3757
  super(t), Object.defineProperty(this, "schema", {
3703
3758
  value: i,
@@ -3713,7 +3768,7 @@ class ji extends Lt {
3713
3768
  */
3714
3769
  clone(t) {
3715
3770
  const i = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
3716
- return t && (i.schema = t), i.items = i.items.map((s) => B(s) || T(s) ? s.clone(t) : s), this.range && (i.range = this.range.slice()), i;
3771
+ return t && (i.schema = t), i.items = i.items.map((s) => D(s) || T(s) ? s.clone(t) : s), this.range && (i.range = this.range.slice()), i;
3717
3772
  }
3718
3773
  /**
3719
3774
  * Adds a value to the collection. For `!!map` and `!!omap` the value must
@@ -3721,11 +3776,11 @@ class ji extends Lt {
3721
3776
  * that already exists in the map.
3722
3777
  */
3723
3778
  addIn(t, i) {
3724
- if (sr(t))
3779
+ if (cr(t))
3725
3780
  this.add(i);
3726
3781
  else {
3727
3782
  const [s, ...r] = t, n = this.get(s, !0);
3728
- if ($(n))
3783
+ if (U(n))
3729
3784
  n.addIn(r, i);
3730
3785
  else if (n === void 0 && this.schema)
3731
3786
  this.set(s, Qt(this.schema, r, i));
@@ -3742,7 +3797,7 @@ class ji extends Lt {
3742
3797
  if (s.length === 0)
3743
3798
  return this.delete(i);
3744
3799
  const r = this.get(i, !0);
3745
- if ($(r))
3800
+ if (U(r))
3746
3801
  return r.deleteIn(s);
3747
3802
  throw new Error(`Expected YAML collection at ${i}. Remaining path: ${s}`);
3748
3803
  }
@@ -3753,7 +3808,7 @@ class ji extends Lt {
3753
3808
  */
3754
3809
  getIn(t, i) {
3755
3810
  const [s, ...r] = t, n = this.get(s, !0);
3756
- return r.length === 0 ? !i && V(n) ? n.value : n : $(n) ? n.getIn(r, i) : void 0;
3811
+ return r.length === 0 ? !i && V(n) ? n.value : n : U(n) ? n.getIn(r, i) : void 0;
3757
3812
  }
3758
3813
  hasAllNullValues(t) {
3759
3814
  return this.items.every((i) => {
@@ -3771,7 +3826,7 @@ class ji extends Lt {
3771
3826
  if (s.length === 0)
3772
3827
  return this.has(i);
3773
3828
  const r = this.get(i, !0);
3774
- return $(r) ? r.hasIn(s) : !1;
3829
+ return U(r) ? r.hasIn(s) : !1;
3775
3830
  }
3776
3831
  /**
3777
3832
  * Sets a value in this collection. For `!!set`, `value` needs to be a
@@ -3783,7 +3838,7 @@ class ji extends Lt {
3783
3838
  this.set(s, i);
3784
3839
  else {
3785
3840
  const n = this.get(s, !0);
3786
- if ($(n))
3841
+ if (U(n))
3787
3842
  n.setIn(r, i);
3788
3843
  else if (n === void 0 && this.schema)
3789
3844
  this.set(s, Qt(this.schema, r, i));
@@ -3792,14 +3847,14 @@ class ji extends Lt {
3792
3847
  }
3793
3848
  }
3794
3849
  }
3795
- const rr = (e) => e.replace(/^(?!$)(?: $)?/gm, "#");
3850
+ const hr = (e) => e.replace(/^(?!$)(?: $)?/gm, "#");
3796
3851
  function Pe(e, t) {
3797
3852
  return /^\n+$/.test(e) ? e.substring(1) : t ? e.replace(/^(?! *$)/gm, t) : e;
3798
3853
  }
3799
3854
  const be = (e, t, i) => e.endsWith(`
3800
3855
  `) ? Pe(i, t) : i.includes(`
3801
3856
  `) ? `
3802
- ` + Pe(i, t) : (e.endsWith(" ") ? "" : " ") + i, Ui = "flow", yt = "block", Ue = "quoted";
3857
+ ` + Pe(i, t) : (e.endsWith(" ") ? "" : " ") + i, qi = "flow", yt = "block", $e = "quoted";
3803
3858
  function rt(e, t, i = "flow", { indentAtStart: s, lineWidth: r = 80, minContentWidth: n = 20, onFold: o, onOverflow: l } = {}) {
3804
3859
  if (!r || r < 0)
3805
3860
  return e;
@@ -3807,13 +3862,13 @@ function rt(e, t, i = "flow", { indentAtStart: s, lineWidth: r = 80, minContentW
3807
3862
  const u = Math.max(1 + n, 1 + r - t.length);
3808
3863
  if (e.length <= u)
3809
3864
  return e;
3810
- const h = [], f = {};
3811
- let c = r - t.length;
3812
- typeof s == "number" && (s > r - Math.max(2, n) ? h.push(0) : c = r - s);
3865
+ const c = [], f = {};
3866
+ let h = r - t.length;
3867
+ typeof s == "number" && (s > r - Math.max(2, n) ? c.push(0) : h = r - s);
3813
3868
  let p, x, y = !1, d = -1, b = -1, _ = -1;
3814
- i === yt && (d = Ht(e, d, t.length), d !== -1 && (c = d + u));
3869
+ i === yt && (d = Jt(e, d, t.length), d !== -1 && (h = d + u));
3815
3870
  for (let A; A = e[d += 1]; ) {
3816
- if (i === Ue && A === "\\") {
3871
+ if (i === $e && A === "\\") {
3817
3872
  switch (b = d, e[d + 1]) {
3818
3873
  case "x":
3819
3874
  d += 3;
@@ -3831,7 +3886,7 @@ function rt(e, t, i = "flow", { indentAtStart: s, lineWidth: r = 80, minContentW
3831
3886
  }
3832
3887
  if (A === `
3833
3888
  `)
3834
- i === yt && (d = Ht(e, d, t.length)), c = d + t.length + u, p = void 0;
3889
+ i === yt && (d = Jt(e, d, t.length)), h = d + t.length + u, p = void 0;
3835
3890
  else {
3836
3891
  if (A === " " && x && x !== " " && x !== `
3837
3892
  ` && x !== " ") {
@@ -3839,34 +3894,34 @@ function rt(e, t, i = "flow", { indentAtStart: s, lineWidth: r = 80, minContentW
3839
3894
  I && I !== " " && I !== `
3840
3895
  ` && I !== " " && (p = d);
3841
3896
  }
3842
- if (d >= c)
3897
+ if (d >= h)
3843
3898
  if (p)
3844
- h.push(p), c = p + u, p = void 0;
3845
- else if (i === Ue) {
3899
+ c.push(p), h = p + u, p = void 0;
3900
+ else if (i === $e) {
3846
3901
  for (; x === " " || x === " "; )
3847
3902
  x = A, A = e[d += 1], y = !0;
3848
3903
  const I = d > _ + 1 ? d - 2 : b - 1;
3849
3904
  if (f[I])
3850
3905
  return e;
3851
- h.push(I), f[I] = !0, c = I + u, p = void 0;
3906
+ c.push(I), f[I] = !0, h = I + u, p = void 0;
3852
3907
  } else
3853
3908
  y = !0;
3854
3909
  }
3855
3910
  x = A;
3856
3911
  }
3857
- if (y && l && l(), h.length === 0)
3912
+ if (y && l && l(), c.length === 0)
3858
3913
  return e;
3859
3914
  o && o();
3860
- let E = e.slice(0, h[0]);
3861
- for (let A = 0; A < h.length; ++A) {
3862
- const I = h[A], P = h[A + 1] || e.length;
3915
+ let E = e.slice(0, c[0]);
3916
+ for (let A = 0; A < c.length; ++A) {
3917
+ const I = c[A], P = c[A + 1] || e.length;
3863
3918
  I === 0 ? E = `
3864
- ${t}${e.slice(0, P)}` : (i === Ue && f[I] && (E += `${e[I]}\\`), E += `
3919
+ ${t}${e.slice(0, P)}` : (i === $e && f[I] && (E += `${e[I]}\\`), E += `
3865
3920
  ${t}${e.slice(I + 1, P)}`);
3866
3921
  }
3867
3922
  return E;
3868
3923
  }
3869
- function Ht(e, t, i) {
3924
+ function Jt(e, t, i) {
3870
3925
  let s = t, r = t + 1, n = e[r];
3871
3926
  for (; n === " " || n === " "; )
3872
3927
  if (t < r + i)
@@ -3885,7 +3940,7 @@ const nt = (e, t) => ({
3885
3940
  lineWidth: e.options.lineWidth,
3886
3941
  minContentWidth: e.options.minContentWidth
3887
3942
  }), at = (e) => /^(%|---|\.\.\.)/m.test(e);
3888
- function nr(e, t, i) {
3943
+ function fr(e, t, i) {
3889
3944
  if (!t || t < 0)
3890
3945
  return !1;
3891
3946
  const s = t - i, r = e.length;
@@ -3907,8 +3962,8 @@ function Ae(e, t) {
3907
3962
  return i;
3908
3963
  const { implicitKey: s } = t, r = t.options.doubleQuotedMinMultiLineLength, n = t.indent || (at(e) ? " " : "");
3909
3964
  let o = "", l = 0;
3910
- for (let u = 0, h = i[u]; h; h = i[++u])
3911
- if (h === " " && i[u + 1] === "\\" && i[u + 2] === "n" && (o += i.slice(l, u) + "\\ ", u += 1, l = u, h = "\\"), h === "\\")
3965
+ for (let u = 0, c = i[u]; c; c = i[++u])
3966
+ if (c === " " && i[u + 1] === "\\" && i[u + 2] === "n" && (o += i.slice(l, u) + "\\ ", u += 1, l = u, c = "\\"), c === "\\")
3912
3967
  switch (i[u + 1]) {
3913
3968
  case "u":
3914
3969
  {
@@ -3960,7 +4015,7 @@ function Ae(e, t) {
3960
4015
  default:
3961
4016
  u += 1;
3962
4017
  }
3963
- return o = l ? o + i.slice(l) : i, s ? o : rt(o, n, Ue, nt(t, !1));
4018
+ return o = l ? o + i.slice(l) : i, s ? o : rt(o, n, $e, nt(t, !1));
3964
4019
  }
3965
4020
  function vt(e, t) {
3966
4021
  if (t.options.singleQuote === !1 || t.implicitKey && e.includes(`
@@ -3968,7 +4023,7 @@ function vt(e, t) {
3968
4023
  return Ae(e, t);
3969
4024
  const i = t.indent || (at(e) ? " " : ""), s = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&
3970
4025
  ${i}`) + "'";
3971
- return t.implicitKey ? s : rt(s, i, Ui, nt(t, !1));
4026
+ return t.implicitKey ? s : rt(s, i, qi, nt(t, !1));
3972
4027
  }
3973
4028
  function xe(e, t) {
3974
4029
  const { singleQuote: i } = t.options;
@@ -3990,16 +4045,16 @@ try {
3990
4045
  } catch {
3991
4046
  St = /\n+(?!\n|$)/g;
3992
4047
  }
3993
- function $e({ comment: e, type: t, value: i }, s, r, n) {
4048
+ function Ue({ comment: e, type: t, value: i }, s, r, n) {
3994
4049
  const { blockQuote: o, commentString: l, lineWidth: u } = s.options;
3995
4050
  if (!o || /\n[\t ]+$/.test(i))
3996
4051
  return xe(i, s);
3997
- const h = s.indent || (s.forceBlockIndent || at(i) ? " " : ""), f = o === "literal" ? !0 : o === "folded" || t === O.BLOCK_FOLDED ? !1 : t === O.BLOCK_LITERAL ? !0 : !nr(i, u, h.length);
4052
+ const c = s.indent || (s.forceBlockIndent || at(i) ? " " : ""), f = o === "literal" ? !0 : o === "folded" || t === O.BLOCK_FOLDED ? !1 : t === O.BLOCK_LITERAL ? !0 : !fr(i, u, c.length);
3998
4053
  if (!i)
3999
4054
  return f ? `|
4000
4055
  ` : `>
4001
4056
  `;
4002
- let c, p;
4057
+ let h, p;
4003
4058
  for (p = i.length; p > 0; --p) {
4004
4059
  const P = i[p - 1];
4005
4060
  if (P !== `
@@ -4009,8 +4064,8 @@ function $e({ comment: e, type: t, value: i }, s, r, n) {
4009
4064
  let x = i.substring(p);
4010
4065
  const y = x.indexOf(`
4011
4066
  `);
4012
- y === -1 ? c = "-" : i === x || y !== x.length - 1 ? (c = "+", n && n()) : c = "", x && (i = i.slice(0, -x.length), x[x.length - 1] === `
4013
- ` && (x = x.slice(0, -1)), x = x.replace(St, `$&${h}`));
4067
+ y === -1 ? h = "-" : i === x || y !== x.length - 1 ? (h = "+", n && n()) : h = "", x && (i = i.slice(0, -x.length), x[x.length - 1] === `
4068
+ ` && (x = x.slice(0, -1)), x = x.replace(St, `$&${c}`));
4014
4069
  let d = !1, b, _ = -1;
4015
4070
  for (b = 0; b < i.length; ++b) {
4016
4071
  const P = i[b];
@@ -4023,51 +4078,51 @@ function $e({ comment: e, type: t, value: i }, s, r, n) {
4023
4078
  break;
4024
4079
  }
4025
4080
  let E = i.substring(0, _ < b ? _ + 1 : b);
4026
- E && (i = i.substring(E.length), E = E.replace(/\n+/g, `$&${h}`));
4027
- let I = (d ? h ? "2" : "1" : "") + c;
4081
+ E && (i = i.substring(E.length), E = E.replace(/\n+/g, `$&${c}`));
4082
+ let I = (d ? c ? "2" : "1" : "") + h;
4028
4083
  if (e && (I += " " + l(e.replace(/ ?[\r\n]+/g, " ")), r && r()), !f) {
4029
4084
  const P = i.replace(/\n+/g, `
4030
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${h}`);
4085
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
4031
4086
  let j = !1;
4032
4087
  const q = nt(s, !0);
4033
4088
  o !== "folded" && t !== O.BLOCK_FOLDED && (q.onOverflow = () => {
4034
4089
  j = !0;
4035
4090
  });
4036
- const ue = rt(`${E}${P}${x}`, h, yt, q);
4091
+ const ue = rt(`${E}${P}${x}`, c, yt, q);
4037
4092
  if (!j)
4038
4093
  return `>${I}
4039
- ${h}${ue}`;
4094
+ ${c}${ue}`;
4040
4095
  }
4041
- return i = i.replace(/\n+/g, `$&${h}`), `|${I}
4042
- ${h}${E}${i}${x}`;
4096
+ return i = i.replace(/\n+/g, `$&${c}`), `|${I}
4097
+ ${c}${E}${i}${x}`;
4043
4098
  }
4044
- function ar(e, t, i, s) {
4045
- const { type: r, value: n } = e, { actualString: o, implicitKey: l, indent: u, indentStep: h, inFlow: f } = t;
4099
+ function pr(e, t, i, s) {
4100
+ const { type: r, value: n } = e, { actualString: o, implicitKey: l, indent: u, indentStep: c, inFlow: f } = t;
4046
4101
  if (l && n.includes(`
4047
4102
  `) || f && /[[\]{},]/.test(n))
4048
4103
  return xe(n, t);
4049
4104
  if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(n))
4050
4105
  return l || f || !n.includes(`
4051
- `) ? xe(n, t) : $e(e, t, i, s);
4106
+ `) ? xe(n, t) : Ue(e, t, i, s);
4052
4107
  if (!l && !f && r !== O.PLAIN && n.includes(`
4053
4108
  `))
4054
- return $e(e, t, i, s);
4109
+ return Ue(e, t, i, s);
4055
4110
  if (at(n)) {
4056
4111
  if (u === "")
4057
- return t.forceBlockIndent = !0, $e(e, t, i, s);
4058
- if (l && u === h)
4112
+ return t.forceBlockIndent = !0, Ue(e, t, i, s);
4113
+ if (l && u === c)
4059
4114
  return xe(n, t);
4060
4115
  }
4061
- const c = n.replace(/\n+/g, `$&
4116
+ const h = n.replace(/\n+/g, `$&
4062
4117
  ${u}`);
4063
4118
  if (o) {
4064
- const p = (d) => d.default && d.tag !== "tag:yaml.org,2002:str" && d.test?.test(c), { compat: x, tags: y } = t.doc.schema;
4119
+ const p = (d) => d.default && d.tag !== "tag:yaml.org,2002:str" && d.test?.test(h), { compat: x, tags: y } = t.doc.schema;
4065
4120
  if (y.some(p) || x?.some(p))
4066
4121
  return xe(n, t);
4067
4122
  }
4068
- return l ? c : rt(c, u, Ui, nt(t, !1));
4123
+ return l ? h : rt(h, u, qi, nt(t, !1));
4069
4124
  }
4070
- function or(e, t, i, s) {
4125
+ function dr(e, t, i, s) {
4071
4126
  const { implicitKey: r, inFlow: n } = t, o = typeof e.value == "string" ? e : Object.assign({}, e, { value: String(e.value) });
4072
4127
  let { type: l } = e;
4073
4128
  l !== O.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (l = O.QUOTE_DOUBLE);
@@ -4075,29 +4130,29 @@ function or(e, t, i, s) {
4075
4130
  switch (f) {
4076
4131
  case O.BLOCK_FOLDED:
4077
4132
  case O.BLOCK_LITERAL:
4078
- return r || n ? xe(o.value, t) : $e(o, t, i, s);
4133
+ return r || n ? xe(o.value, t) : Ue(o, t, i, s);
4079
4134
  case O.QUOTE_DOUBLE:
4080
4135
  return Ae(o.value, t);
4081
4136
  case O.QUOTE_SINGLE:
4082
4137
  return vt(o.value, t);
4083
4138
  case O.PLAIN:
4084
- return ar(o, t, i, s);
4139
+ return pr(o, t, i, s);
4085
4140
  default:
4086
4141
  return null;
4087
4142
  }
4088
4143
  };
4089
- let h = u(l);
4090
- if (h === null) {
4091
- const { defaultKeyType: f, defaultStringType: c } = t.options, p = r && f || c;
4092
- if (h = u(p), h === null)
4144
+ let c = u(l);
4145
+ if (c === null) {
4146
+ const { defaultKeyType: f, defaultStringType: h } = t.options, p = r && f || h;
4147
+ if (c = u(p), c === null)
4093
4148
  throw new Error(`Unsupported default string type ${p}`);
4094
4149
  }
4095
- return h;
4150
+ return c;
4096
4151
  }
4097
- function ur(e, t) {
4152
+ function mr(e, t) {
4098
4153
  const i = Object.assign({
4099
4154
  blockQuote: !0,
4100
- commentString: rr,
4155
+ commentString: hr,
4101
4156
  defaultKeyType: null,
4102
4157
  defaultStringType: "PLAIN",
4103
4158
  directives: null,
@@ -4135,7 +4190,7 @@ function ur(e, t) {
4135
4190
  options: i
4136
4191
  };
4137
4192
  }
4138
- function lr(e, t) {
4193
+ function gr(e, t) {
4139
4194
  if (t.tag) {
4140
4195
  const r = e.filter((n) => n.tag === t.tag);
4141
4196
  if (r.length > 0)
@@ -4158,15 +4213,15 @@ function lr(e, t) {
4158
4213
  }
4159
4214
  return i;
4160
4215
  }
4161
- function hr(e, t, { anchors: i, doc: s }) {
4216
+ function br(e, t, { anchors: i, doc: s }) {
4162
4217
  if (!s.directives)
4163
4218
  return "";
4164
- const r = [], n = (V(e) || $(e)) && e.anchor;
4165
- n && Mi(n) && (i.add(n), r.push(`&${n}`));
4219
+ const r = [], n = (V(e) || U(e)) && e.anchor;
4220
+ n && ji(n) && (i.add(n), r.push(`&${n}`));
4166
4221
  const o = e.tag ?? (t.default ? null : t.tag);
4167
4222
  return o && r.push(s.directives.tagString(o)), r.join(" ");
4168
4223
  }
4169
- function Qe(e, t, i, s) {
4224
+ function He(e, t, i, s) {
4170
4225
  if (T(e))
4171
4226
  return e.toString(t, i, s);
4172
4227
  if (de(e)) {
@@ -4177,53 +4232,53 @@ function Qe(e, t, i, s) {
4177
4232
  t.resolvedAliases ? t.resolvedAliases.add(e) : t.resolvedAliases = /* @__PURE__ */ new Set([e]), e = e.resolve(t.doc);
4178
4233
  }
4179
4234
  let r;
4180
- const n = B(e) ? e : t.doc.createNode(e, { onTagObj: (u) => r = u });
4181
- r ?? (r = lr(t.doc.schema.tags, n));
4182
- const o = hr(n, r, t);
4235
+ const n = D(e) ? e : t.doc.createNode(e, { onTagObj: (u) => r = u });
4236
+ r ?? (r = gr(t.doc.schema.tags, n));
4237
+ const o = br(n, r, t);
4183
4238
  o.length > 0 && (t.indentAtStart = (t.indentAtStart ?? 0) + o.length + 1);
4184
- const l = typeof r.stringify == "function" ? r.stringify(n, t, i, s) : V(n) ? or(n, t, i, s) : n.toString(t, i, s);
4239
+ const l = typeof r.stringify == "function" ? r.stringify(n, t, i, s) : V(n) ? dr(n, t, i, s) : n.toString(t, i, s);
4185
4240
  return o ? V(n) || l[0] === "{" || l[0] === "[" ? `${o} ${l}` : `${o}
4186
4241
  ${t.indent}${l}` : l;
4187
4242
  }
4188
- function cr({ key: e, value: t }, i, s, r) {
4189
- const { allNullValues: n, doc: o, indent: l, indentStep: u, options: { commentString: h, indentSeq: f, simpleKeys: c } } = i;
4190
- let p = B(e) && e.comment || null;
4191
- if (c) {
4243
+ function xr({ key: e, value: t }, i, s, r) {
4244
+ const { allNullValues: n, doc: o, indent: l, indentStep: u, options: { commentString: c, indentSeq: f, simpleKeys: h } } = i;
4245
+ let p = D(e) && e.comment || null;
4246
+ if (h) {
4192
4247
  if (p)
4193
4248
  throw new Error("With simple keys, key nodes cannot have comments");
4194
- if ($(e) || !B(e) && typeof e == "object") {
4249
+ if (U(e) || !D(e) && typeof e == "object") {
4195
4250
  const q = "With simple keys, collection cannot be used as a key value";
4196
4251
  throw new Error(q);
4197
4252
  }
4198
4253
  }
4199
- let x = !c && (!e || p && t == null && !i.inFlow || $(e) || (V(e) ? e.type === O.BLOCK_FOLDED || e.type === O.BLOCK_LITERAL : typeof e == "object"));
4254
+ let x = !h && (!e || p && t == null && !i.inFlow || U(e) || (V(e) ? e.type === O.BLOCK_FOLDED || e.type === O.BLOCK_LITERAL : typeof e == "object"));
4200
4255
  i = Object.assign({}, i, {
4201
4256
  allNullValues: !1,
4202
- implicitKey: !x && (c || !n),
4257
+ implicitKey: !x && (h || !n),
4203
4258
  indent: l + u
4204
4259
  });
4205
- let y = !1, d = !1, b = Qe(e, i, () => y = !0, () => d = !0);
4260
+ let y = !1, d = !1, b = He(e, i, () => y = !0, () => d = !0);
4206
4261
  if (!x && !i.inFlow && b.length > 1024) {
4207
- if (c)
4262
+ if (h)
4208
4263
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
4209
4264
  x = !0;
4210
4265
  }
4211
4266
  if (i.inFlow) {
4212
4267
  if (n || t == null)
4213
4268
  return y && s && s(), b === "" ? "?" : x ? `? ${b}` : b;
4214
- } else if (n && !c || t == null && x)
4215
- return b = `? ${b}`, p && !y ? b += be(b, i.indent, h(p)) : d && r && r(), b;
4216
- y && (p = null), x ? (p && (b += be(b, i.indent, h(p))), b = `? ${b}
4217
- ${l}:`) : (b = `${b}:`, p && (b += be(b, i.indent, h(p))));
4269
+ } else if (n && !h || t == null && x)
4270
+ return b = `? ${b}`, p && !y ? b += be(b, i.indent, c(p)) : d && r && r(), b;
4271
+ y && (p = null), x ? (p && (b += be(b, i.indent, c(p))), b = `? ${b}
4272
+ ${l}:`) : (b = `${b}:`, p && (b += be(b, i.indent, c(p))));
4218
4273
  let _, E, A;
4219
- B(t) ? (_ = !!t.spaceBefore, E = t.commentBefore, A = t.comment) : (_ = !1, E = null, A = null, t && typeof t == "object" && (t = o.createNode(t))), i.implicitKey = !1, !x && !p && V(t) && (i.indentAtStart = b.length + 1), d = !1, !f && u.length >= 2 && !i.inFlow && !x && Vt(t) && !t.flow && !t.tag && !t.anchor && (i.indent = i.indent.substring(2));
4274
+ D(t) ? (_ = !!t.spaceBefore, E = t.commentBefore, A = t.comment) : (_ = !1, E = null, A = null, t && typeof t == "object" && (t = o.createNode(t))), i.implicitKey = !1, !x && !p && V(t) && (i.indentAtStart = b.length + 1), d = !1, !f && u.length >= 2 && !i.inFlow && !x && Vt(t) && !t.flow && !t.tag && !t.anchor && (i.indent = i.indent.substring(2));
4220
4275
  let I = !1;
4221
- const P = Qe(t, i, () => I = !0, () => d = !0);
4276
+ const P = He(t, i, () => I = !0, () => d = !0);
4222
4277
  let j = " ";
4223
4278
  if (p || _ || E) {
4224
4279
  if (j = _ ? `
4225
4280
  ` : "", E) {
4226
- const q = h(E);
4281
+ const q = c(E);
4227
4282
  j += `
4228
4283
  ${Pe(q, i.indent)}`;
4229
4284
  }
@@ -4232,7 +4287,7 @@ ${Pe(q, i.indent)}`;
4232
4287
 
4233
4288
  `) : j += `
4234
4289
  ${i.indent}`;
4235
- } else if (!x && $(t)) {
4290
+ } else if (!x && U(t)) {
4236
4291
  const q = P[0], ue = P.indexOf(`
4237
4292
  `), Te = ue !== -1, ot = i.inFlow ?? t.flow ?? t.items.length === 0;
4238
4293
  if (Te || !ot) {
@@ -4246,22 +4301,22 @@ ${i.indent}`);
4246
4301
  }
4247
4302
  } else (P === "" || P[0] === `
4248
4303
  `) && (j = "");
4249
- return b += j + P, i.inFlow ? I && s && s() : A && !I ? b += be(b, i.indent, h(A)) : d && r && r(), b;
4304
+ return b += j + P, i.inFlow ? I && s && s() : A && !I ? b += be(b, i.indent, c(A)) : d && r && r(), b;
4250
4305
  }
4251
- function fr(e, t) {
4306
+ function yr(e, t) {
4252
4307
  (e === "debug" || e === "warn") && console.warn(t);
4253
4308
  }
4254
- const Me = "<<", pt = {
4255
- identify: (e) => e === Me || typeof e == "symbol" && e.description === Me,
4309
+ const Be = "<<", pt = {
4310
+ identify: (e) => e === Be || typeof e == "symbol" && e.description === Be,
4256
4311
  default: "key",
4257
4312
  tag: "tag:yaml.org,2002:merge",
4258
4313
  test: /^<<$/,
4259
- resolve: () => Object.assign(new O(Symbol(Me)), {
4260
- addToJSMap: $i
4314
+ resolve: () => Object.assign(new O(Symbol(Be)), {
4315
+ addToJSMap: Ki
4261
4316
  }),
4262
- stringify: () => Me
4263
- }, pr = (e, t) => (pt.identify(t) || V(t) && (!t.type || t.type === O.PLAIN) && pt.identify(t.value)) && e?.doc.schema.tags.some((i) => i.tag === pt.tag && i.default);
4264
- function $i(e, t, i) {
4317
+ stringify: () => Be
4318
+ }, vr = (e, t) => (pt.identify(t) || V(t) && (!t.type || t.type === O.PLAIN) && pt.identify(t.value)) && e?.doc.schema.tags.some((i) => i.tag === pt.tag && i.default);
4319
+ function Ki(e, t, i) {
4265
4320
  if (i = e && de(i) ? i.resolve(e.doc) : i, Vt(i))
4266
4321
  for (const s of i.items)
4267
4322
  dt(e, t, s);
@@ -4285,19 +4340,19 @@ function dt(e, t, i) {
4285
4340
  });
4286
4341
  return t;
4287
4342
  }
4288
- function qi(e, t, { key: i, value: s }) {
4289
- if (B(i) && i.addToJSMap)
4343
+ function Wi(e, t, { key: i, value: s }) {
4344
+ if (D(i) && i.addToJSMap)
4290
4345
  i.addToJSMap(e, t, s);
4291
- else if (pr(e, i))
4292
- $i(e, t, s);
4346
+ else if (vr(e, i))
4347
+ Ki(e, t, s);
4293
4348
  else {
4294
- const r = H(i, "", e);
4349
+ const r = Q(i, "", e);
4295
4350
  if (t instanceof Map)
4296
- t.set(r, H(s, r, e));
4351
+ t.set(r, Q(s, r, e));
4297
4352
  else if (t instanceof Set)
4298
4353
  t.add(r);
4299
4354
  else {
4300
- const n = dr(i, r, e), o = H(s, n, e);
4355
+ const n = Sr(i, r, e), o = Q(s, n, e);
4301
4356
  n in t ? Object.defineProperty(t, n, {
4302
4357
  value: o,
4303
4358
  writable: !0,
@@ -4308,13 +4363,13 @@ function qi(e, t, { key: i, value: s }) {
4308
4363
  }
4309
4364
  return t;
4310
4365
  }
4311
- function dr(e, t, i) {
4366
+ function Sr(e, t, i) {
4312
4367
  if (t === null)
4313
4368
  return "";
4314
4369
  if (typeof t != "object")
4315
4370
  return String(t);
4316
- if (B(e) && i?.doc) {
4317
- const s = ur(i.doc, {});
4371
+ if (D(e) && i?.doc) {
4372
+ const s = mr(i.doc, {});
4318
4373
  s.anchors = /* @__PURE__ */ new Set();
4319
4374
  for (const n of i.anchors.keys())
4320
4375
  s.anchors.add(n.anchor);
@@ -4322,7 +4377,7 @@ function dr(e, t, i) {
4322
4377
  const r = e.toString(s);
4323
4378
  if (!i.mapKeyWarned) {
4324
4379
  let n = JSON.stringify(r);
4325
- n.length > 40 && (n = n.substring(0, 36) + '..."'), fr(i.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${n}. Set mapAsMap: true to use object keys.`), i.mapKeyWarned = !0;
4380
+ n.length > 40 && (n = n.substring(0, 36) + '..."'), yr(i.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${n}. Set mapAsMap: true to use object keys.`), i.mapKeyWarned = !0;
4326
4381
  }
4327
4382
  return r;
4328
4383
  }
@@ -4334,39 +4389,39 @@ function Tt(e, t, i) {
4334
4389
  }
4335
4390
  class ee {
4336
4391
  constructor(t, i = null) {
4337
- Object.defineProperty(this, X, { value: Ri }), this.key = t, this.value = i;
4392
+ Object.defineProperty(this, X, { value: Mi }), this.key = t, this.value = i;
4338
4393
  }
4339
4394
  clone(t) {
4340
4395
  let { key: i, value: s } = this;
4341
- return B(i) && (i = i.clone(t)), B(s) && (s = s.clone(t)), new ee(i, s);
4396
+ return D(i) && (i = i.clone(t)), D(s) && (s = s.clone(t)), new ee(i, s);
4342
4397
  }
4343
4398
  toJSON(t, i) {
4344
4399
  const s = i?.mapAsMap ? /* @__PURE__ */ new Map() : {};
4345
- return qi(i, s, this);
4400
+ return Wi(i, s, this);
4346
4401
  }
4347
4402
  toString(t, i, s) {
4348
- return t?.doc ? cr(this, t, i, s) : JSON.stringify(this);
4403
+ return t?.doc ? xr(this, t, i, s) : JSON.stringify(this);
4349
4404
  }
4350
4405
  }
4351
- function Wi(e, t, i) {
4352
- return (t.inFlow ?? e.flow ? gr : mr)(e, t, i);
4406
+ function Gi(e, t, i) {
4407
+ return (t.inFlow ?? e.flow ? wr : kr)(e, t, i);
4353
4408
  }
4354
- function mr({ comment: e, items: t }, i, { blockItemPrefix: s, flowChars: r, itemIndent: n, onChompKeep: o, onComment: l }) {
4355
- const { indent: u, options: { commentString: h } } = i, f = Object.assign({}, i, { indent: n, type: null });
4356
- let c = !1;
4409
+ function kr({ comment: e, items: t }, i, { blockItemPrefix: s, flowChars: r, itemIndent: n, onChompKeep: o, onComment: l }) {
4410
+ const { indent: u, options: { commentString: c } } = i, f = Object.assign({}, i, { indent: n, type: null });
4411
+ let h = !1;
4357
4412
  const p = [];
4358
4413
  for (let y = 0; y < t.length; ++y) {
4359
4414
  const d = t[y];
4360
4415
  let b = null;
4361
- if (B(d))
4362
- !c && d.spaceBefore && p.push(""), He(i, p, d.commentBefore, c), d.comment && (b = d.comment);
4416
+ if (D(d))
4417
+ !h && d.spaceBefore && p.push(""), Qe(i, p, d.commentBefore, h), d.comment && (b = d.comment);
4363
4418
  else if (T(d)) {
4364
- const E = B(d.key) ? d.key : null;
4365
- E && (!c && E.spaceBefore && p.push(""), He(i, p, E.commentBefore, c));
4419
+ const E = D(d.key) ? d.key : null;
4420
+ E && (!h && E.spaceBefore && p.push(""), Qe(i, p, E.commentBefore, h));
4366
4421
  }
4367
- c = !1;
4368
- let _ = Qe(d, f, () => b = null, () => c = !0);
4369
- b && (_ += be(_, n, h(b))), c && b && (c = !1), p.push(s + _);
4422
+ h = !1;
4423
+ let _ = He(d, f, () => b = null, () => h = !0);
4424
+ b && (_ += be(_, n, c(b))), h && b && (h = !1), p.push(s + _);
4370
4425
  }
4371
4426
  let x;
4372
4427
  if (p.length === 0)
@@ -4381,9 +4436,9 @@ ${u}${d}` : `
4381
4436
  }
4382
4437
  }
4383
4438
  return e ? (x += `
4384
- ` + Pe(h(e), u), l && l()) : c && o && o(), x;
4439
+ ` + Pe(c(e), u), l && l()) : h && o && o(), x;
4385
4440
  }
4386
- function gr({ items: e }, t, { flowChars: i, itemIndent: s }) {
4441
+ function wr({ items: e }, t, { flowChars: i, itemIndent: s }) {
4387
4442
  const { indent: r, indentStep: n, flowCollectionPadding: o, options: { commentString: l } } = t;
4388
4443
  s += n;
4389
4444
  const u = Object.assign({}, t, {
@@ -4391,55 +4446,55 @@ function gr({ items: e }, t, { flowChars: i, itemIndent: s }) {
4391
4446
  inFlow: !0,
4392
4447
  type: null
4393
4448
  });
4394
- let h = !1, f = 0;
4395
- const c = [];
4449
+ let c = !1, f = 0;
4450
+ const h = [];
4396
4451
  for (let y = 0; y < e.length; ++y) {
4397
4452
  const d = e[y];
4398
4453
  let b = null;
4399
- if (B(d))
4400
- d.spaceBefore && c.push(""), He(t, c, d.commentBefore, !1), d.comment && (b = d.comment);
4454
+ if (D(d))
4455
+ d.spaceBefore && h.push(""), Qe(t, h, d.commentBefore, !1), d.comment && (b = d.comment);
4401
4456
  else if (T(d)) {
4402
- const E = B(d.key) ? d.key : null;
4403
- E && (E.spaceBefore && c.push(""), He(t, c, E.commentBefore, !1), E.comment && (h = !0));
4404
- const A = B(d.value) ? d.value : null;
4405
- A ? (A.comment && (b = A.comment), A.commentBefore && (h = !0)) : d.value == null && E?.comment && (b = E.comment);
4457
+ const E = D(d.key) ? d.key : null;
4458
+ E && (E.spaceBefore && h.push(""), Qe(t, h, E.commentBefore, !1), E.comment && (c = !0));
4459
+ const A = D(d.value) ? d.value : null;
4460
+ A ? (A.comment && (b = A.comment), A.commentBefore && (c = !0)) : d.value == null && E?.comment && (b = E.comment);
4406
4461
  }
4407
- b && (h = !0);
4408
- let _ = Qe(d, u, () => b = null);
4409
- y < e.length - 1 && (_ += ","), b && (_ += be(_, s, l(b))), !h && (c.length > f || _.includes(`
4410
- `)) && (h = !0), c.push(_), f = c.length;
4462
+ b && (c = !0);
4463
+ let _ = He(d, u, () => b = null);
4464
+ y < e.length - 1 && (_ += ","), b && (_ += be(_, s, l(b))), !c && (h.length > f || _.includes(`
4465
+ `)) && (c = !0), h.push(_), f = h.length;
4411
4466
  }
4412
4467
  const { start: p, end: x } = i;
4413
- if (c.length === 0)
4468
+ if (h.length === 0)
4414
4469
  return p + x;
4415
- if (!h) {
4416
- const y = c.reduce((d, b) => d + b.length + 2, 2);
4417
- h = t.options.lineWidth > 0 && y > t.options.lineWidth;
4470
+ if (!c) {
4471
+ const y = h.reduce((d, b) => d + b.length + 2, 2);
4472
+ c = t.options.lineWidth > 0 && y > t.options.lineWidth;
4418
4473
  }
4419
- if (h) {
4474
+ if (c) {
4420
4475
  let y = p;
4421
- for (const d of c)
4476
+ for (const d of h)
4422
4477
  y += d ? `
4423
4478
  ${n}${r}${d}` : `
4424
4479
  `;
4425
4480
  return `${y}
4426
4481
  ${r}${x}`;
4427
4482
  } else
4428
- return `${p}${o}${c.join(" ")}${o}${x}`;
4483
+ return `${p}${o}${h.join(" ")}${o}${x}`;
4429
4484
  }
4430
- function He({ indent: e, options: { commentString: t } }, i, s, r) {
4485
+ function Qe({ indent: e, options: { commentString: t } }, i, s, r) {
4431
4486
  if (s && r && (s = s.replace(/^\n+/, "")), s) {
4432
4487
  const n = Pe(t(s), e);
4433
4488
  i.push(n.trimStart());
4434
4489
  }
4435
4490
  }
4436
- function ce(e, t) {
4491
+ function he(e, t) {
4437
4492
  const i = V(t) ? t.value : t;
4438
4493
  for (const s of e)
4439
4494
  if (T(s) && (s.key === t || s.key === i || V(s.key) && s.key.value === i))
4440
4495
  return s;
4441
4496
  }
4442
- class me extends ji {
4497
+ class me extends Ui {
4443
4498
  static get tagName() {
4444
4499
  return "tag:yaml.org,2002:map";
4445
4500
  }
@@ -4451,16 +4506,16 @@ class me extends ji {
4451
4506
  * to other node classes that inherit from YAMLMap
4452
4507
  */
4453
4508
  static from(t, i, s) {
4454
- const { keepUndefined: r, replacer: n } = s, o = new this(t), l = (u, h) => {
4509
+ const { keepUndefined: r, replacer: n } = s, o = new this(t), l = (u, c) => {
4455
4510
  if (typeof n == "function")
4456
- h = n.call(i, u, h);
4511
+ c = n.call(i, u, c);
4457
4512
  else if (Array.isArray(n) && !n.includes(u))
4458
4513
  return;
4459
- (h !== void 0 || r) && o.items.push(Tt(u, h, s));
4514
+ (c !== void 0 || r) && o.items.push(Tt(u, c, s));
4460
4515
  };
4461
4516
  if (i instanceof Map)
4462
- for (const [u, h] of i)
4463
- l(u, h);
4517
+ for (const [u, c] of i)
4518
+ l(u, c);
4464
4519
  else if (i && typeof i == "object")
4465
4520
  for (const u of Object.keys(i))
4466
4521
  l(u, i[u]);
@@ -4475,11 +4530,11 @@ class me extends ji {
4475
4530
  add(t, i) {
4476
4531
  let s;
4477
4532
  T(t) ? s = t : !t || typeof t != "object" || !("key" in t) ? s = new ee(t, t?.value) : s = new ee(t.key, t.value);
4478
- const r = ce(this.items, s.key), n = this.schema?.sortMapEntries;
4533
+ const r = he(this.items, s.key), n = this.schema?.sortMapEntries;
4479
4534
  if (r) {
4480
4535
  if (!i)
4481
4536
  throw new Error(`Key ${s.key} already set`);
4482
- V(r.value) && Fi(s.value) ? r.value.value = s.value : r.value = s.value;
4537
+ V(r.value) && $i(s.value) ? r.value.value = s.value : r.value = s.value;
4483
4538
  } else if (n) {
4484
4539
  const o = this.items.findIndex((l) => n(s, l) < 0);
4485
4540
  o === -1 ? this.items.push(s) : this.items.splice(o, 0, s);
@@ -4487,15 +4542,15 @@ class me extends ji {
4487
4542
  this.items.push(s);
4488
4543
  }
4489
4544
  delete(t) {
4490
- const i = ce(this.items, t);
4545
+ const i = he(this.items, t);
4491
4546
  return i ? this.items.splice(this.items.indexOf(i), 1).length > 0 : !1;
4492
4547
  }
4493
4548
  get(t, i) {
4494
- const r = ce(this.items, t)?.value;
4549
+ const r = he(this.items, t)?.value;
4495
4550
  return (!i && V(r) ? r.value : r) ?? void 0;
4496
4551
  }
4497
4552
  has(t) {
4498
- return !!ce(this.items, t);
4553
+ return !!he(this.items, t);
4499
4554
  }
4500
4555
  set(t, i) {
4501
4556
  this.add(new ee(t, i), !0);
@@ -4509,7 +4564,7 @@ class me extends ji {
4509
4564
  const r = s ? new s() : i?.mapAsMap ? /* @__PURE__ */ new Map() : {};
4510
4565
  i?.onCreate && i.onCreate(r);
4511
4566
  for (const n of this.items)
4512
- qi(i, r, n);
4567
+ Wi(i, r, n);
4513
4568
  return r;
4514
4569
  }
4515
4570
  toString(t, i, s) {
@@ -4518,7 +4573,7 @@ class me extends ji {
4518
4573
  for (const r of this.items)
4519
4574
  if (!T(r))
4520
4575
  throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`);
4521
- return !t.allNullValues && this.hasAllNullValues(!1) && (t = Object.assign({}, t, { allNullValues: !0 })), Wi(this, t, {
4576
+ return !t.allNullValues && this.hasAllNullValues(!1) && (t = Object.assign({}, t, { allNullValues: !0 })), Gi(this, t, {
4522
4577
  blockItemPrefix: "",
4523
4578
  flowChars: { start: "{", end: "}" },
4524
4579
  itemIndent: t.indent || "",
@@ -4527,7 +4582,7 @@ class me extends ji {
4527
4582
  });
4528
4583
  }
4529
4584
  }
4530
- class Ki extends ji {
4585
+ class zi extends Ui {
4531
4586
  static get tagName() {
4532
4587
  return "tag:yaml.org,2002:seq";
4533
4588
  }
@@ -4578,18 +4633,18 @@ class Ki extends ji {
4578
4633
  if (typeof s != "number")
4579
4634
  throw new Error(`Expected a valid index, not ${t}.`);
4580
4635
  const r = this.items[s];
4581
- V(r) && Fi(i) ? r.value = i : this.items[s] = i;
4636
+ V(r) && $i(i) ? r.value = i : this.items[s] = i;
4582
4637
  }
4583
4638
  toJSON(t, i) {
4584
4639
  const s = [];
4585
4640
  i?.onCreate && i.onCreate(s);
4586
4641
  let r = 0;
4587
4642
  for (const n of this.items)
4588
- s.push(H(n, String(r++), i));
4643
+ s.push(Q(n, String(r++), i));
4589
4644
  return s;
4590
4645
  }
4591
4646
  toString(t, i, s) {
4592
- return t ? Wi(this, t, {
4647
+ return t ? Gi(this, t, {
4593
4648
  blockItemPrefix: "- ",
4594
4649
  flowChars: { start: "[", end: "]" },
4595
4650
  itemIndent: (t.indent || "") + " ",
@@ -4616,8 +4671,8 @@ function Fe(e) {
4616
4671
  let t = V(e) ? e.value : e;
4617
4672
  return t && typeof t == "string" && (t = Number(t)), typeof t == "number" && Number.isInteger(t) && t >= 0 ? t : null;
4618
4673
  }
4619
- function br(e, t, i) {
4620
- const { replacer: s } = i, r = new Ki(e);
4674
+ function _r(e, t, i) {
4675
+ const { replacer: s } = i, r = new zi(e);
4621
4676
  r.tag = "tag:yaml.org,2002:pairs";
4622
4677
  let n = 0;
4623
4678
  if (t && Symbol.iterator in Object(t))
@@ -4630,18 +4685,18 @@ function br(e, t, i) {
4630
4685
  else
4631
4686
  throw new TypeError(`Expected [key, value] tuple: ${o}`);
4632
4687
  else if (o && o instanceof Object) {
4633
- const h = Object.keys(o);
4634
- if (h.length === 1)
4635
- l = h[0], u = o[l];
4688
+ const c = Object.keys(o);
4689
+ if (c.length === 1)
4690
+ l = c[0], u = o[l];
4636
4691
  else
4637
- throw new TypeError(`Expected tuple with one key, not ${h.length} keys`);
4692
+ throw new TypeError(`Expected tuple with one key, not ${c.length} keys`);
4638
4693
  } else
4639
4694
  l = o;
4640
4695
  r.items.push(Tt(l, u, i));
4641
4696
  }
4642
4697
  return r;
4643
4698
  }
4644
- class Rt extends Ki {
4699
+ class Rt extends zi {
4645
4700
  constructor() {
4646
4701
  super(), this.add = me.prototype.add.bind(this), this.delete = me.prototype.delete.bind(this), this.get = me.prototype.get.bind(this), this.has = me.prototype.has.bind(this), this.set = me.prototype.set.bind(this), this.tag = Rt.tag;
4647
4702
  }
@@ -4656,38 +4711,38 @@ class Rt extends Ki {
4656
4711
  i?.onCreate && i.onCreate(s);
4657
4712
  for (const r of this.items) {
4658
4713
  let n, o;
4659
- if (T(r) ? (n = H(r.key, "", i), o = H(r.value, n, i)) : n = H(r, "", i), s.has(n))
4714
+ if (T(r) ? (n = Q(r.key, "", i), o = Q(r.value, n, i)) : n = Q(r, "", i), s.has(n))
4660
4715
  throw new Error("Ordered maps must not include duplicate keys");
4661
4716
  s.set(n, o);
4662
4717
  }
4663
4718
  return s;
4664
4719
  }
4665
4720
  static from(t, i, s) {
4666
- const r = br(t, i, s), n = new this();
4721
+ const r = _r(t, i, s), n = new this();
4667
4722
  return n.items = r.items, n;
4668
4723
  }
4669
4724
  }
4670
4725
  Rt.tag = "tag:yaml.org,2002:omap";
4671
- class Bt extends me {
4726
+ class Dt extends me {
4672
4727
  constructor(t) {
4673
- super(t), this.tag = Bt.tag;
4728
+ super(t), this.tag = Dt.tag;
4674
4729
  }
4675
4730
  add(t) {
4676
4731
  let i;
4677
- T(t) ? i = t : t && typeof t == "object" && "key" in t && "value" in t && t.value === null ? i = new ee(t.key, null) : i = new ee(t, null), ce(this.items, i.key) || this.items.push(i);
4732
+ T(t) ? i = t : t && typeof t == "object" && "key" in t && "value" in t && t.value === null ? i = new ee(t.key, null) : i = new ee(t, null), he(this.items, i.key) || this.items.push(i);
4678
4733
  }
4679
4734
  /**
4680
4735
  * If `keepPair` is `true`, returns the Pair matching `key`.
4681
4736
  * Otherwise, returns the value of that Pair's key.
4682
4737
  */
4683
4738
  get(t, i) {
4684
- const s = ce(this.items, t);
4739
+ const s = he(this.items, t);
4685
4740
  return !i && T(s) ? V(s.key) ? s.key.value : s.key : s;
4686
4741
  }
4687
4742
  set(t, i) {
4688
4743
  if (typeof i != "boolean")
4689
4744
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof i}`);
4690
- const s = ce(this.items, t);
4745
+ const s = he(this.items, t);
4691
4746
  s && !i ? this.items.splice(this.items.indexOf(s), 1) : !s && i && this.items.push(new ee(t));
4692
4747
  }
4693
4748
  toJSON(t, i) {
@@ -4708,19 +4763,19 @@ class Bt extends me {
4708
4763
  return n;
4709
4764
  }
4710
4765
  }
4711
- Bt.tag = "tag:yaml.org,2002:set";
4766
+ Dt.tag = "tag:yaml.org,2002:set";
4712
4767
  new Set("0123456789ABCDEFabcdef");
4713
4768
  new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");
4714
4769
  new Set(",[]{}");
4715
4770
  new Set(` ,[]{}
4716
4771
  \r `);
4717
- const xr = /\{\{\s*(var_table|var)\s*\|([\s\S]*?)\}\}/g;
4718
- function yr(e) {
4772
+ const Cr = /\{\{\s*(var_table|var)\s*\|([\s\S]*?)\}\}/g, Er = /^[ \t]*(```|~~~)[ \t]*media(?:[^\n]*)?\r?\n([\s\S]*?)^[ \t]*\1[ \t]*$/gm;
4773
+ function Ar(e) {
4719
4774
  const t = [];
4720
- for (const i of e.matchAll(xr)) {
4775
+ for (const i of e.matchAll(Cr)) {
4721
4776
  const s = i.index ?? 0, r = i[0], n = i[2] ?? "";
4722
4777
  try {
4723
- const o = Hs(zs(n));
4778
+ const o = Ys(Qs(n));
4724
4779
  o.length > 0 && t.push({
4725
4780
  message: o.join(`
4726
4781
  `),
@@ -4731,12 +4786,26 @@ function yr(e) {
4731
4786
  } catch {
4732
4787
  }
4733
4788
  }
4789
+ for (const i of e.matchAll(Er)) {
4790
+ const s = i.index ?? 0, r = i[0], n = i[2] ?? "";
4791
+ try {
4792
+ const o = tr(ir(n));
4793
+ o.length > 0 && t.push({
4794
+ message: o.join(`
4795
+ `),
4796
+ severity: "error",
4797
+ startOffset: s,
4798
+ endOffset: s + r.length
4799
+ });
4800
+ } catch {
4801
+ }
4802
+ }
4734
4803
  return t;
4735
4804
  }
4736
- const vr = {
4805
+ const Ir = {
4737
4806
  key: 0,
4738
4807
  class: "aimd-editor-loading"
4739
- }, Jt = "airalogy-aimd", kr = /* @__PURE__ */ Gi({
4808
+ }, Yt = "airalogy-aimd", Pr = /* @__PURE__ */ Hi({
4740
4809
  __name: "AimdSourceEditor",
4741
4810
  props: {
4742
4811
  content: {},
@@ -4748,11 +4817,11 @@ const vr = {
4748
4817
  },
4749
4818
  emits: ["content-change", "ready", "monaco-loaded"],
4750
4819
  setup(e, { expose: t, emit: i }) {
4751
- const s = e, r = i, n = /^\s*(```|~~~)\s*assigner(?:\s+.*\bruntime\s*=\s*(?:"client"|'client'|client)\b.*)\s*$/, o = /^\s*(```|~~~)\s*assigner(?:\s+.*)?\s*$/, l = /^\s*(```|~~~)\s*quiz(?:\s+.*)?\s*$/, u = /^\s*(```|~~~)\s*((?:\w|[/#-])+)(?:\s+.*)?\s*$/, h = /^\s*(```|~~~)\s*$/, f = Mt(null);
4752
- let c = null, p = null, x = !1;
4753
- const y = Mt(!0);
4820
+ const s = e, r = i, n = /^\s*(```|~~~)\s*assigner(?:\s+.*\bruntime\s*=\s*(?:"client"|'client'|client)\b.*)\s*$/, o = /^\s*(```|~~~)\s*assigner(?:\s+.*)?\s*$/, l = /^\s*(```|~~~)\s*quiz(?:\s+.*)?\s*$/, u = /^\s*(```|~~~)\s*((?:\w|[/#-])+)(?:\s+.*)?\s*$/, c = /^\s*(```|~~~)\s*$/, f = Bt(null);
4821
+ let h = null, p = null, x = !1;
4822
+ const y = Bt(!0);
4754
4823
  function d(v) {
4755
- const U = s.resolvedMessages;
4824
+ const $ = s.resolvedMessages;
4756
4825
  v.languages.getLanguages().some((re) => re.id === "aimd") || (v.languages.register({
4757
4826
  id: "aimd",
4758
4827
  extensions: [".aimd"],
@@ -4792,7 +4861,7 @@ const vr = {
4792
4861
  [n, { token: "string.code", next: "@embeddedCodeblock", nextEmbedded: "javascript" }],
4793
4862
  [o, { token: "string.code", next: "@embeddedCodeblock", nextEmbedded: "python" }],
4794
4863
  [u, { token: "string.code", next: "@embeddedCodeblock", nextEmbedded: "$2" }],
4795
- [h, { token: "string.code", next: "@codeblock" }],
4864
+ [c, { token: "string.code", next: "@codeblock" }],
4796
4865
  [/`[^`]+`/, "string.code"],
4797
4866
  [/\*\*[^*]+\*\*/, "strong"],
4798
4867
  [/__[^_]+__/, "strong"],
@@ -4837,7 +4906,7 @@ const vr = {
4837
4906
  }
4838
4907
  }), v.languages.registerCompletionItemProvider("aimd", {
4839
4908
  provideCompletionItems: () => {
4840
- const re = ["var", "var_table", "step", "check", "ref_step", "ref_var", "ref_fig", "cite"], Be = {
4909
+ const re = ["var", "var_table", "step", "check", "ref_step", "ref_var", "ref_fig", "cite"], De = {
4841
4910
  var: "var_id",
4842
4911
  var_table: "table_id",
4843
4912
  step: "step_id",
@@ -4846,15 +4915,15 @@ const vr = {
4846
4915
  ref_var: "var_id",
4847
4916
  ref_fig: "fig_id",
4848
4917
  cite: "ref_id"
4849
- }, Dt = re.map((De) => ({
4850
- label: `{{${De}|}}`,
4918
+ }, Mt = re.map((Me) => ({
4919
+ label: `{{${Me}|}}`,
4851
4920
  kind: v.languages.CompletionItemKind.Snippet,
4852
- insertText: `{{${De}|\${1:${Be[De] ?? "id"}}}}`,
4921
+ insertText: `{{${Me}|\${1:${De[Me] ?? "id"}}}}`,
4853
4922
  insertTextRules: v.languages.CompletionItemInsertTextRule.InsertAsSnippet,
4854
- documentation: U.completions.insertAimdField(De)
4923
+ documentation: $.completions.insertAimdField(Me)
4855
4924
  }));
4856
- return Dt.push({
4857
- label: U.completions.quizBlockLabel,
4925
+ return Mt.push({
4926
+ label: $.completions.quizBlockLabel,
4858
4927
  kind: v.languages.CompletionItemKind.Snippet,
4859
4928
  insertText: [
4860
4929
  "```quiz",
@@ -4862,19 +4931,19 @@ const vr = {
4862
4931
  "type: choice",
4863
4932
  "mode: single",
4864
4933
  "stem: |",
4865
- ` \${2:${U.defaults.questionStem}}`,
4934
+ ` \${2:${$.defaults.questionStem}}`,
4866
4935
  "options:",
4867
4936
  " - key: A",
4868
- ` text: ${U.defaults.optionText("A")}`,
4937
+ ` text: ${$.defaults.optionText("A")}`,
4869
4938
  " - key: B",
4870
- ` text: ${U.defaults.optionText("B")}`,
4939
+ ` text: ${$.defaults.optionText("B")}`,
4871
4940
  "answer: A",
4872
4941
  "```"
4873
4942
  ].join(`
4874
4943
  `),
4875
4944
  insertTextRules: v.languages.CompletionItemInsertTextRule.InsertAsSnippet,
4876
- documentation: U.completions.quizBlock
4877
- }), { suggestions: Dt };
4945
+ documentation: $.completions.quizBlock
4946
+ }), { suggestions: Mt };
4878
4947
  }
4879
4948
  }), v.editor.defineTheme("aimd-light", {
4880
4949
  base: "vs",
@@ -4913,34 +4982,34 @@ const vr = {
4913
4982
  }));
4914
4983
  }
4915
4984
  function b() {
4916
- if (!p || !c) return;
4917
- const v = c.getModel();
4985
+ if (!p || !h) return;
4986
+ const v = h.getModel();
4918
4987
  if (!v) return;
4919
- const U = yr(v.getValue()).map((le) => {
4920
- const re = v.getPositionAt(le.startOffset), Be = v.getPositionAt(le.endOffset);
4988
+ const $ = Ar(v.getValue()).map((le) => {
4989
+ const re = v.getPositionAt(le.startOffset), De = v.getPositionAt(le.endOffset);
4921
4990
  return {
4922
4991
  severity: le.severity === "error" ? p.MarkerSeverity.Error : p.MarkerSeverity.Warning,
4923
4992
  message: le.message,
4924
4993
  source: "AIMD",
4925
4994
  startLineNumber: re.lineNumber,
4926
4995
  startColumn: re.column,
4927
- endLineNumber: Be.lineNumber,
4928
- endColumn: Be.column
4996
+ endLineNumber: De.lineNumber,
4997
+ endColumn: De.column
4929
4998
  };
4930
4999
  });
4931
- p.editor.setModelMarkers(v, Jt, U);
5000
+ p.editor.setModelMarkers(v, Yt, $);
4932
5001
  }
4933
5002
  function _() {
4934
- if (!p || !c) return;
4935
- const v = c.getModel();
4936
- v && p.editor.setModelMarkers(v, Jt, []);
5003
+ if (!p || !h) return;
5004
+ const v = h.getModel();
5005
+ v && p.editor.setModelMarkers(v, Yt, []);
4937
5006
  }
4938
5007
  function E(v) {
4939
- if (!f.value || c) return;
4940
- const U = /* @__PURE__ */ new Set(["value", "language", "model"]), le = Object.fromEntries(
4941
- Object.entries(s.monacoOptions).filter(([re]) => !U.has(re))
5008
+ if (!f.value || h) return;
5009
+ const $ = /* @__PURE__ */ new Set(["value", "language", "model"]), le = Object.fromEntries(
5010
+ Object.entries(s.monacoOptions).filter(([re]) => !$.has(re))
4942
5011
  );
4943
- c = v.editor.create(f.value, {
5012
+ h = v.editor.create(f.value, {
4944
5013
  value: s.content,
4945
5014
  language: "aimd",
4946
5015
  theme: s.theme,
@@ -4954,11 +5023,11 @@ const vr = {
4954
5023
  padding: { top: 12 },
4955
5024
  readOnly: s.readonly,
4956
5025
  ...le
4957
- }), c.onDidChangeModelContent(() => {
4958
- b(), x || r("content-change", c.getValue());
4959
- }), b(), r("ready", c), r("monaco-loaded", v, c);
5026
+ }), h.onDidChangeModelContent(() => {
5027
+ b(), x || r("content-change", h.getValue());
5028
+ }), b(), r("ready", h), r("monaco-loaded", v, h);
4960
5029
  }
4961
- zi(async () => {
5030
+ Qi(async () => {
4962
5031
  try {
4963
5032
  y.value = !0;
4964
5033
  const v = await import("monaco-editor");
@@ -4966,41 +5035,41 @@ const vr = {
4966
5035
  } finally {
4967
5036
  y.value = !1;
4968
5037
  }
4969
- }), Qi(() => {
4970
- _(), c?.dispose();
5038
+ }), Ji(() => {
5039
+ _(), h?.dispose();
4971
5040
  }), ut(() => s.content, (v) => {
4972
- !c || v === c.getValue() || (x = !0, c.setValue(v), x = !1);
5041
+ !h || v === h.getValue() || (x = !0, h.setValue(v), x = !1);
4973
5042
  }), ut(() => s.theme, (v) => {
4974
5043
  p && p.editor.setTheme(v);
4975
5044
  }), ut(() => s.readonly, (v) => {
4976
- c?.updateOptions({ readOnly: v });
5045
+ h?.updateOptions({ readOnly: v });
4977
5046
  });
4978
5047
  function A() {
4979
- return c;
5048
+ return h;
4980
5049
  }
4981
5050
  function I() {
4982
5051
  return p;
4983
5052
  }
4984
5053
  function P(v) {
4985
- c && (x = !0, c.setValue(v), x = !1);
5054
+ h && (x = !0, h.setValue(v), x = !1);
4986
5055
  }
4987
5056
  function j() {
4988
- return c?.getSelection();
5057
+ return h?.getSelection();
4989
5058
  }
4990
- function q(v, U) {
4991
- c?.executeEdits(v, U);
5059
+ function q(v, $) {
5060
+ h?.executeEdits(v, $);
4992
5061
  }
4993
5062
  function ue() {
4994
- c?.focus();
5063
+ h?.focus();
4995
5064
  }
4996
5065
  function Te() {
4997
- return c?.getModel();
5066
+ return h?.getModel();
4998
5067
  }
4999
5068
  function ot() {
5000
- return c?.getPosition();
5069
+ return h?.getPosition();
5001
5070
  }
5002
5071
  function Re() {
5003
- return c?.getValue();
5072
+ return h?.getValue();
5004
5073
  }
5005
5074
  return t({
5006
5075
  getEditor: A,
@@ -5013,12 +5082,12 @@ const vr = {
5013
5082
  getPosition: ot,
5014
5083
  getValue: Re,
5015
5084
  loading: y
5016
- }), (v, U) => (Ft(), jt("div", {
5085
+ }), (v, $) => (Ft(), jt("div", {
5017
5086
  class: "aimd-editor-source-mode",
5018
- style: Hi({ height: e.minHeight + "px" })
5087
+ style: Yi({ minHeight: e.minHeight + "px" })
5019
5088
  }, [
5020
- y.value ? (Ft(), jt("div", vr, Ji(e.resolvedMessages.common.loadingEditor), 1)) : Yi("", !0),
5021
- Zi("div", {
5089
+ y.value ? (Ft(), jt("div", Ir, Zi(e.resolvedMessages.common.loadingEditor), 1)) : Xi("", !0),
5090
+ es("div", {
5022
5091
  ref_key: "editorContainer",
5023
5092
  ref: f,
5024
5093
  class: "aimd-editor-container"
@@ -5027,5 +5096,5 @@ const vr = {
5027
5096
  }
5028
5097
  });
5029
5098
  export {
5030
- kr as _
5099
+ Pr as _
5031
5100
  };