@hy-bricks/core 0.1.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),e=function(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const s in t)if("default"!==s){const i=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>t[s]})}return e.default=t,Object.freeze(e)}(t),s="__default__",i="__hcCanvasId",r=t.ref(0),n=new Map;function a(t,e,s,i){var a;const o=function(t){let e=n.get(t);return e||(e=new Map,n.set(t,e)),e}(t);o.has(e)&&(console.warn(`[hc-registry] instance ${e} already registered in canvas "${t}", overwriting`),null==(a=o.get(e))||a.__dispose());const h=function(t,e,s){const i={all:r=r||new Map,on:function(t,e){var s=r.get(t);s?s.push(e):r.set(t,[e])},off:function(t,e){var s=r.get(t);s&&(e?s.splice(s.indexOf(e)>>>0,1):r.set(t,[]))},emit:function(t,e){var s=r.get(t);s&&s.slice().map(function(t){t(e)}),(s=r.get("*"))&&s.slice().map(function(s){s(t,e)})}};var r;return{instanceId:t,componentId:e,vm:s,call(e,...i){const r=s[e];if("function"!=typeof r)throw new Error(`[hc-registry] method "${e}" not found on instance ${t}`);return r.apply(s,i)},on:(t,e)=>(i.on(t,e),()=>i.off(t,e)),emit(t,e){i.emit(t,e)},setProp(t,e){s[t]=e},setDataInput(e,i){const r=s.custom;if(!r||!(e in r))return void console.warn(`[hc-registry] setDataInput("${e}"): vm.custom["${e}"] not declared on instance ${t}; binding 改了一个未声明的 dataInput key,组件不会响应`);const n=r[e];n&&"object"==typeof n?!0===n.dataInput?n.value=i:console.warn(`[hc-registry] setDataInput("${e}"): vm.custom["${e}"] is not declared with dataInput:true on instance ${t}; 请在组件源码 custom.${e} 上加 \`dataInput: true\` 才能被 binding 灌入`):console.warn(`[hc-registry] setDataInput("${e}"): vm.custom["${e}"] not a {value:...} slot`)},__dispose(){i.all.clear()}}}(e,s,i);return o.set(e,h),r.value++,h}function o(t){const e=n.get(t);if(e){for(const t of e.values())t.__dispose();e.clear(),n.delete(t),r.value++}}function h(){return[...n.keys()]}function c(t,e=s){const i=n.get(e);if(!i)return;const a=i.get(t);a&&(a.__dispose(),i.delete(t),r.value++)}function l(t,e){var s;if(void 0!==e)return(null==(s=n.get(e))?void 0:s.get(t))??null;let i=null;const r=[];for(const[e,s]of n){const n=s.get(t);n&&(i||(i=n),r.push(e))}return r.length>1&&console.warn(`[hc-registry] getInstance("${t}") matched ${r.length} canvases [${r.join(", ")}]; returning first. Prefer __HYPERCARD__.canvases.callComponent(canvasId, instanceId, ...) for explicit scope.`),i}function p(t){const e=null==t?void 0:t.componentId,s=e?t=>t.componentId===e:()=>!0;if(void 0!==(null==t?void 0:t.canvasId)){const e=n.get(t.canvasId);return e?[...e.values()].filter(s):[]}const i=[];for(const t of n.values())for(const e of t.values())s(e)&&i.push(e);return i}const u={getInstance:l,listInstances:p,call(t,e,...s){const i=l(t);if(i)return i.call(e,...s);console.debug(`[hc-runtime] call: instance "${t}" not found`)},on(t,e,s){const i=l(t);if(i)return i.on(e,s);console.debug(`[hc-runtime] on: instance "${t}" not found`)},emit(t,e,s){const i=l(t);i?i.emit(e,s):console.debug(`[hc-runtime] emit: instance "${t}" not found`)}},f={pickerUrl:t=>`/a/${t}`};function d(t){return{canvasId:t,listInstances:e=>p({canvasId:t,componentId:null==e?void 0:e.componentId}),getInstance:e=>l(e,t),call(e,s,...i){const r=l(e,t);if(r)try{return r.call(s,...i)}catch(i){return void console.warn(`[hc-canvases] call error: canvas="${t}" instance="${e}" method="${s}":`,i)}else console.warn(`[hc-canvases] call: instance "${e}" not found in canvas "${t}"`)},emit(e,s,i){const r=l(e,t);if(r)try{r.emit(s,i)}catch(i){console.warn(`[hc-canvases] emit error: canvas="${t}" instance="${e}" event="${s}":`,i)}else console.warn(`[hc-canvases] emit: instance "${e}" not found in canvas "${t}"`)},broadcastInCanvas(e,s){const i=p({canvasId:t});for(const r of i)try{r.emit(e,s)}catch(s){console.warn(`[hc-canvases] broadcastInCanvas: canvas="${t}" instance="${r.instanceId}" event="${e}" emit failed:`,s)}},dispose(){o(t)}}}function m(){return{list:()=>h().map(t=>d(t)),get:t=>h().includes(t)?d(t):null,getAll(){const t={};for(const e of h())t[e]=d(e);return t},callComponent(t,e,s,...i){const r=l(e,t);if(r)try{return r.call(s,...i)}catch(i){return void console.warn(`[hc-canvases] callComponent error: canvas="${t}" instance="${e}" method="${s}":`,i)}else console.warn(`[hc-canvases] callComponent: canvas="${t}" instance="${e}" not found`)},emitToCanvas(t,e,s,i){const r=l(e,t);if(r)try{r.emit(s,i)}catch(i){console.warn(`[hc-canvases] emitToCanvas error: canvas="${t}" instance="${e}" event="${s}":`,i)}else console.warn(`[hc-canvases] emitToCanvas: canvas="${t}" instance="${e}" not found`)},broadcast(t,e){for(const s of h())try{const i=p({canvasId:s});for(const r of i)try{r.emit(t,e)}catch(e){console.warn(`[hc-canvases] broadcast: canvas="${s}" instance="${r.instanceId}" event="${t}" emit failed:`,e)}}catch(e){console.warn(`[hc-canvases] broadcast: canvas="${s}" event="${t}" failed:`,e)}}}}const g=new Set(["vue","Vue","window","global","globalThis","console","document","process","$","libs","runtime","assets","version"]);function x(t){return Array.isArray(t)&&t.length>=1?x(t[0]):"object"==typeof t&&null!==t&&"function"==typeof t.install}function y(t){return Array.isArray(t)&&t.length>=1?[t[0],t.slice(1)]:[t,[]]}function v(t){return x(t)?Array.isArray(t)?"✓ Vue plugin (with options) → 已 app.use":"✓ Vue plugin → 已 app.use":"function"==typeof t?"· function":Array.isArray(t)?"· array":"object"==typeof t&&null!==t?"· object":"· "+typeof t}const w="__HYPERCARD__";var b=[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,78,5,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,199,7,137,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,55,9,266,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,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],S=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,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,5,57,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,24,43,261,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],C="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",k={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},E="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",_={5:E,"5module":E+" export import",6:E+" const class extends export import super"},A=/^in(stanceof)?$/,I=new RegExp("["+C+"]"),P=new RegExp("["+C+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function O(t,e){for(var s=65536,i=0;i<e.length;i+=2){if((s+=e[i])>t)return!1;if((s+=e[i+1])>=t)return!0}return!1}function N(t,e){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&I.test(String.fromCharCode(t)):!1!==e&&O(t,S)))}function V(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&P.test(String.fromCharCode(t)):!1!==e&&(O(t,S)||O(t,b)))))}var R=function(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function T(t,e){return new R(t,{beforeExpr:!0,binop:e})}var L={beforeExpr:!0},D={startsExpr:!0},M={};function B(t,e){return void 0===e&&(e={}),e.keyword=t,M[t]=new R(t,e)}var F={num:new R("num",D),regexp:new R("regexp",D),string:new R("string",D),name:new R("name",D),privateId:new R("privateId",D),eof:new R("eof"),bracketL:new R("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new R("]"),braceL:new R("{",{beforeExpr:!0,startsExpr:!0}),braceR:new R("}"),parenL:new R("(",{beforeExpr:!0,startsExpr:!0}),parenR:new R(")"),comma:new R(",",L),semi:new R(";",L),colon:new R(":",L),dot:new R("."),question:new R("?",L),questionDot:new R("?."),arrow:new R("=>",L),template:new R("template"),invalidTemplate:new R("invalidTemplate"),ellipsis:new R("...",L),backQuote:new R("`",D),dollarBraceL:new R("${",{beforeExpr:!0,startsExpr:!0}),eq:new R("=",{beforeExpr:!0,isAssign:!0}),assign:new R("_=",{beforeExpr:!0,isAssign:!0}),incDec:new R("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new R("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:T("||",1),logicalAND:T("&&",2),bitwiseOR:T("|",3),bitwiseXOR:T("^",4),bitwiseAND:T("&",5),equality:T("==/!=/===/!==",6),relational:T("</>/<=/>=",7),bitShift:T("<</>>/>>>",8),plusMin:new R("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:T("%",10),star:T("*",10),slash:T("/",10),starstar:new R("**",{beforeExpr:!0}),coalesce:T("??",1),_break:B("break"),_case:B("case",L),_catch:B("catch"),_continue:B("continue"),_debugger:B("debugger"),_default:B("default",L),_do:B("do",{isLoop:!0,beforeExpr:!0}),_else:B("else",L),_finally:B("finally"),_for:B("for",{isLoop:!0}),_function:B("function",D),_if:B("if"),_return:B("return",L),_switch:B("switch"),_throw:B("throw",L),_try:B("try"),_var:B("var"),_const:B("const"),_while:B("while",{isLoop:!0}),_with:B("with"),_new:B("new",{beforeExpr:!0,startsExpr:!0}),_this:B("this",D),_super:B("super",D),_class:B("class",D),_extends:B("extends",L),_export:B("export"),_import:B("import",D),_null:B("null",D),_true:B("true",D),_false:B("false",D),_in:B("in",{beforeExpr:!0,binop:7}),_instanceof:B("instanceof",{beforeExpr:!0,binop:7}),_typeof:B("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:B("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:B("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},j=/\r\n?|\n|\u2028|\u2029/,U=new RegExp(j.source,"g");function $(t){return 10===t||13===t||8232===t||8233===t}function z(t,e,s){void 0===s&&(s=t.length);for(var i=e;i<s;i++){var r=t.charCodeAt(i);if($(r))return i<s-1&&13===r&&10===t.charCodeAt(i+1)?i+2:i+1}return-1}var q=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,W=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,G=Object.prototype,H=G.hasOwnProperty,K=G.toString,Q=Object.hasOwn||function(t,e){return H.call(t,e)},Y=Array.isArray||function(t){return"[object Array]"===K.call(t)},J=Object.create(null);function Z(t){return J[t]||(J[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function X(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}var tt=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,et=function(t,e){this.line=t,this.column=e};et.prototype.offset=function(t){return new et(this.line,this.column+t)};var st=function(t,e,s){this.start=e,this.end=s,null!==t.sourceFile&&(this.source=t.sourceFile)};function it(t,e){for(var s=1,i=0;;){var r=z(t,i,e);if(r<0)return new et(s,e-i);++s,i=r}}var rt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},nt=!1;function at(t,e){return 2|(t?4:0)|(e?8:0)}var ot=function(t,e,s){this.options=t=function(t){var e={};for(var s in rt)e[s]=t&&Q(t,s)?t[s]:rt[s];if("latest"===e.ecmaVersion?e.ecmaVersion=1e8:null==e.ecmaVersion?(!nt&&"object"==typeof console&&console.warn&&(nt=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=e.ecmaVersion<5),t&&null!=t.allowHashBang||(e.allowHashBang=e.ecmaVersion>=14),Y(e.onToken)){var i=e.onToken;e.onToken=function(t){return i.push(t)}}if(Y(e.onComment)&&(e.onComment=function(t,e){return function(s,i,r,n,a,o){var h={type:s?"Block":"Line",value:i,start:r,end:n};t.locations&&(h.loc=new st(this,a,o)),t.ranges&&(h.range=[r,n]),e.push(h)}}(e,e.onComment)),"commonjs"===e.sourceType&&e.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return e}(t),this.sourceFile=t.sourceFile,this.keywords=Z(_[t.ecmaVersion>=6?6:"module"===t.sourceType?"5module":5]);var i="";!0!==t.allowReserved&&(i=k[t.ecmaVersion>=6?6:5===t.ecmaVersion?5:3],"module"===t.sourceType&&(i+=" await")),this.reservedWords=Z(i);var r=(i?i+" ":"")+k.strict;this.reservedWordsStrict=Z(r),this.reservedWordsStrictBind=Z(r+" "+k.strictBind),this.input=String(e),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf("\n",s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(j).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=F.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===t.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope("commonjs"===this.options.sourceType?2:1),this.regexpState=null,this.privateNameStack=[]},ht={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};ot.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},ht.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},ht.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},ht.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},ht.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e)return!1;if(2&e)return(4&e)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},ht.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},ht.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},ht.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},ht.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},ht.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e||2&e&&!(16&e))return!0}return!1},ht.allowUsing.get=function(){var t=this.currentScope().flags;return!(1024&t||!this.inModule&&1&t)},ht.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},ot.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var s=this,i=0;i<t.length;i++)s=t[i](s);return s},ot.parse=function(t,e){return new this(e,t).parse()},ot.parseExpressionAt=function(t,e,s){var i=new this(s,t,e);return i.nextToken(),i.parseExpression()},ot.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(ot.prototype,ht);var ct=ot.prototype,lt=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ct.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){W.lastIndex=t,t+=W.exec(this.input)[0].length;var e=lt.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2])){W.lastIndex=t+e[0].length;var s=W.exec(this.input),i=s.index+s[0].length,r=this.input.charAt(i);return";"===r||"}"===r||j.test(s[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(i+1))}t+=e[0].length,W.lastIndex=t,t+=W.exec(this.input)[0].length,";"===this.input[t]&&t++}},ct.eat=function(t){return this.type===t&&(this.next(),!0)},ct.isContextual=function(t){return this.type===F.name&&this.value===t&&!this.containsEsc},ct.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},ct.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},ct.canInsertSemicolon=function(){return this.type===F.eof||this.type===F.braceR||j.test(this.input.slice(this.lastTokEnd,this.start))},ct.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ct.semicolon=function(){this.eat(F.semi)||this.insertSemicolon()||this.unexpected()},ct.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},ct.expect=function(t){this.eat(t)||this.unexpected()},ct.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")};var pt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ct.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var s=e?t.parenthesizedAssign:t.parenthesizedBind;s>-1&&this.raiseRecoverable(s,e?"Assigning to rvalue":"Parenthesized pattern")}},ct.checkExpressionErrors=function(t,e){if(!t)return!1;var s=t.shorthandAssign,i=t.doubleProto;if(!e)return s>=0||i>=0;s>=0&&this.raise(s,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")},ct.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},ct.isSimpleAssignTarget=function(t){return"ParenthesizedExpression"===t.type?this.isSimpleAssignTarget(t.expression):"Identifier"===t.type||"MemberExpression"===t.type};var ut=ot.prototype;ut.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==F.eof;){var s=this.parseStatement(null,!0,e);t.body.push(s)}if(this.inModule)for(var i=0,r=Object.keys(this.undefinedExports);i<r.length;i+=1){var n=r[i];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType="commonjs"===this.options.sourceType?"script":this.options.sourceType,this.finishNode(t,"Program")};var ft={kind:"loop"},dt={kind:"switch"};ut.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;W.lastIndex=this.pos;var e=W.exec(this.input),s=this.pos+e[0].length,i=this.fullCharCodeAt(s);if(91===i||92===i)return!0;if(t)return!1;if(123===i)return!0;if(N(i)){var r=s;do{s+=i<=65535?1:2}while(V(i=this.fullCharCodeAt(s)));if(92===i)return!0;var n=this.input.slice(r,s);if(!A.test(n))return!0}return!1},ut.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;W.lastIndex=this.pos;var t,e=W.exec(this.input),s=this.pos+e[0].length;return!(j.test(this.input.slice(this.pos,s))||"function"!==this.input.slice(s,s+8)||s+8!==this.input.length&&(V(t=this.fullCharCodeAt(s+8))||92===t))},ut.isUsingKeyword=function(t,e){if(this.options.ecmaVersion<17||!this.isContextual(t?"await":"using"))return!1;W.lastIndex=this.pos;var s=W.exec(this.input),i=this.pos+s[0].length;if(j.test(this.input.slice(this.pos,i)))return!1;if(t){var r,n=i+5;if("using"!==this.input.slice(i,n)||n===this.input.length||V(r=this.fullCharCodeAt(n))||92===r)return!1;W.lastIndex=n;var a=W.exec(this.input);if(i=n+a[0].length,a&&j.test(this.input.slice(n,i)))return!1}var o=this.fullCharCodeAt(i);if(!N(o)&&92!==o)return!1;var h=i;do{i+=o<=65535?1:2}while(V(o=this.fullCharCodeAt(i)));if(92===o)return!0;var c=this.input.slice(h,i);return!(A.test(c)||e&&"of"===c)},ut.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)},ut.isUsing=function(t){return this.isUsingKeyword(!1,t)},ut.parseStatement=function(t,e,s){var i,r=this.type,n=this.startNode();switch(this.isLet(t)&&(r=F._var,i="let"),r){case F._break:case F._continue:return this.parseBreakContinueStatement(n,r.keyword);case F._debugger:return this.parseDebuggerStatement(n);case F._do:return this.parseDoStatement(n);case F._for:return this.parseForStatement(n);case F._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!t);case F._class:return t&&this.unexpected(),this.parseClass(n,!0);case F._if:return this.parseIfStatement(n);case F._return:return this.parseReturnStatement(n);case F._switch:return this.parseSwitchStatement(n);case F._throw:return this.parseThrowStatement(n);case F._try:return this.parseTryStatement(n);case F._const:case F._var:return i=i||this.value,t&&"var"!==i&&this.unexpected(),this.parseVarStatement(n,i);case F._while:return this.parseWhileStatement(n);case F._with:return this.parseWithStatement(n);case F.braceL:return this.parseBlock(!0,n);case F.semi:return this.parseEmptyStatement(n);case F._export:case F._import:if(this.options.ecmaVersion>10&&r===F._import){W.lastIndex=this.pos;var a=W.exec(this.input),o=this.pos+a[0].length,h=this.input.charCodeAt(o);if(40===h||46===h)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===F._import?this.parseImport(n):this.parseExport(n,s);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!t);var c=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(c)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),"await using"===c&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(n,!1,c),this.semicolon(),this.finishNode(n,"VariableDeclaration");var l=this.value,p=this.parseExpression();return r===F.name&&"Identifier"===p.type&&this.eat(F.colon)?this.parseLabeledStatement(n,l,p,t):this.parseExpressionStatement(n,p)}},ut.parseBreakContinueStatement=function(t,e){var s="break"===e;this.next(),this.eat(F.semi)||this.insertSemicolon()?t.label=null:this.type!==F.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var r=this.labels[i];if(null==t.label||r.name===t.label.name){if(null!=r.kind&&(s||"loop"===r.kind))break;if(t.label&&s)break}}return i===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,s?"BreakStatement":"ContinueStatement")},ut.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},ut.parseDoStatement=function(t){return this.next(),this.labels.push(ft),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(F._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(F.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},ut.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ft),this.enterScope(0),this.expect(F.parenL),this.type===F.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var s=this.isLet();if(this.type===F._var||this.type===F._const||s){var i=this.startNode(),r=s?"let":this.value;return this.next(),this.parseVar(i,!0,r),this.finishNode(i,"VariableDeclaration"),this.parseForAfterInit(t,i,e)}var n=this.isContextual("let"),a=!1,o=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(o){var h=this.startNode();return this.next(),"await using"===o&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(h,!0,o),this.finishNode(h,"VariableDeclaration"),this.parseForAfterInit(t,h,e)}var c=this.containsEsc,l=new pt,p=this.start,u=e>-1?this.parseExprSubscripts(l,"await"):this.parseExpression(!0,l);return this.type===F._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===F._in&&this.unexpected(e),t.await=!0):a&&this.options.ecmaVersion>=8&&(u.start!==p||c||"Identifier"!==u.type||"async"!==u.name?this.options.ecmaVersion>=9&&(t.await=!1):this.unexpected()),n&&a&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,l),this.checkLValPattern(u),this.parseForIn(t,u)):(this.checkExpressionErrors(l,!0),e>-1&&this.unexpected(e),this.parseFor(t,u))},ut.parseForAfterInit=function(t,e,s){return(this.type===F._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===e.declarations.length?(this.options.ecmaVersion>=9&&(this.type===F._in?s>-1&&this.unexpected(s):t.await=s>-1),this.parseForIn(t,e)):(s>-1&&this.unexpected(s),this.parseFor(t,e))},ut.parseFunctionStatement=function(t,e,s){return this.next(),this.parseFunction(t,gt|(s?0:xt),!1,e)},ut.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(F._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},ut.parseReturnStatement=function(t){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(F.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},ut.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(F.braceL),this.labels.push(dt),this.enterScope(1024);for(var s=!1;this.type!==F.braceR;)if(this.type===F._case||this.type===F._default){var i=this.type===F._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),i?e.test=this.parseExpression():(s&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),s=!0,e.test=null),this.expect(F.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},ut.parseThrowStatement=function(t){return this.next(),j.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var mt=[];ut.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e="Identifier"===t.type;return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(F.parenR),t},ut.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===F._catch){var e=this.startNode();this.next(),this.eat(F.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(F._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},ut.parseVarStatement=function(t,e,s){return this.next(),this.parseVar(t,!1,e,s),this.semicolon(),this.finishNode(t,"VariableDeclaration")},ut.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(ft),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},ut.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},ut.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},ut.parseLabeledStatement=function(t,e,s,i){for(var r=0,n=this.labels;r<n.length;r+=1)n[r].name===e&&this.raise(s.start,"Label '"+e+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===F._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var h=this.labels[o];if(h.statementStart!==t.start)break;h.statementStart=this.start,h.kind=a}return this.labels.push({name:e,kind:a,statementStart:this.start}),t.body=this.parseStatement(i?-1===i.indexOf("label")?i+"label":i:"label"),this.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")},ut.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},ut.parseBlock=function(t,e,s){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(F.braceL),t&&this.enterScope(0);this.type!==F.braceR;){var i=this.parseStatement(null);e.body.push(i)}return s&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},ut.parseFor=function(t,e){return t.init=e,this.expect(F.semi),t.test=this.type===F.semi?null:this.parseExpression(),this.expect(F.semi),t.update=this.type===F.parenR?null:this.parseExpression(),this.expect(F.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},ut.parseForIn=function(t,e){var s=this.type===F._in;return this.next(),"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(!s||this.options.ecmaVersion<8||this.strict||"var"!==e.kind||"Identifier"!==e.declarations[0].id.type)&&this.raise(e.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(F.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,s?"ForInStatement":"ForOfStatement")},ut.parseVar=function(t,e,s,i){for(t.declarations=[],t.kind=s;;){var r=this.startNode();if(this.parseVarId(r,s),this.eat(F.eq)?r.init=this.parseMaybeAssign(e):i||"const"!==s||this.type===F._in||this.options.ecmaVersion>=6&&this.isContextual("of")?i||"using"!==s&&"await using"!==s||!(this.options.ecmaVersion>=17)||this.type===F._in||this.isContextual("of")?i||"Identifier"===r.id.type||e&&(this.type===F._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+s+" declaration"):this.unexpected(),t.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(F.comma))break}return t},ut.parseVarId=function(t,e){t.id="using"===e||"await using"===e?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(t.id,"var"===e?1:2,!1)};var gt=1,xt=2;function yt(t,e){var s=e.key.name,i=t[s],r="true";return"MethodDefinition"!==e.type||"get"!==e.kind&&"set"!==e.kind||(r=(e.static?"s":"i")+e.kind),"iget"===i&&"iset"===r||"iset"===i&&"iget"===r||"sget"===i&&"sset"===r||"sset"===i&&"sget"===r?(t[s]="true",!1):!!i||(t[s]=r,!1)}function vt(t,e){var s=t.computed,i=t.key;return!s&&("Identifier"===i.type&&i.name===e||"Literal"===i.type&&i.value===e)}ut.parseFunction=function(t,e,s,i,r){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===F.star&&e&xt&&this.unexpected(),t.generator=this.eat(F.star)),this.options.ecmaVersion>=8&&(t.async=!!i),e&gt&&(t.id=4&e&&this.type!==F.name?null:this.parseIdent(),!t.id||e&xt||this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(at(t.async,t.generator)),e&gt||(t.id=this.type===F.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,s,!1,r),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(t,e&gt?"FunctionDeclaration":"FunctionExpression")},ut.parseFunctionParams=function(t){this.expect(F.parenL),t.params=this.parseBindingList(F.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ut.parseClass=function(t,e){this.next();var s=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var i=this.enterClassBody(),r=this.startNode(),n=!1;for(r.body=[],this.expect(F.braceL);this.type!==F.braceR;){var a=this.parseClassElement(null!==t.superClass);a&&(r.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(n&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),n=!0):a.key&&"PrivateIdentifier"===a.key.type&&yt(i,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=s,this.next(),t.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},ut.parseClassElement=function(t){if(this.eat(F.semi))return null;var e=this.options.ecmaVersion,s=this.startNode(),i="",r=!1,n=!1,a="method",o=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(F.braceL))return this.parseClassStaticBlock(s),s;this.isClassElementNameStart()||this.type===F.star?o=!0:i="static"}if(s.static=o,!i&&e>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==F.star||this.canInsertSemicolon()?i="async":n=!0),!i&&(e>=9||!n)&&this.eat(F.star)&&(r=!0),!i&&!n&&!r){var h=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=h:i=h)}if(i?(s.computed=!1,s.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),s.key.name=i,this.finishNode(s.key,"Identifier")):this.parseClassElementName(s),e<13||this.type===F.parenL||"method"!==a||r||n){var c=!s.static&&vt(s,"constructor"),l=c&&t;c&&"method"!==a&&this.raise(s.key.start,"Constructor can't have get/set modifier"),s.kind=c?"constructor":a,this.parseClassMethod(s,r,n,l)}else this.parseClassField(s);return s},ut.isClassElementNameStart=function(){return this.type===F.name||this.type===F.privateId||this.type===F.num||this.type===F.string||this.type===F.bracketL||this.type.keyword},ut.parseClassElementName=function(t){this.type===F.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)},ut.parseClassMethod=function(t,e,s,i){var r=t.key;"constructor"===t.kind?(e&&this.raise(r.start,"Constructor can't be a generator"),s&&this.raise(r.start,"Constructor can't be an async method")):t.static&&vt(t,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var n=t.value=this.parseMethod(e,s,i);return"get"===t.kind&&0!==n.params.length&&this.raiseRecoverable(n.start,"getter should have no params"),"set"===t.kind&&1!==n.params.length&&this.raiseRecoverable(n.start,"setter should have exactly one param"),"set"===t.kind&&"RestElement"===n.params[0].type&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},ut.parseClassField=function(t){return vt(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&vt(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(F.eq)?(this.enterScope(576),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")},ut.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==F.braceR;){var s=this.parseStatement(null);t.body.push(s)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},ut.parseClassId=function(t,e){this.type===F.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},ut.parseClassSuper=function(t){t.superClass=this.eat(F._extends)?this.parseExprSubscripts(null,!1):null},ut.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},ut.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,s=t.used;if(this.options.checkPrivateFields)for(var i=this.privateNameStack.length,r=0===i?null:this.privateNameStack[i-1],n=0;n<s.length;++n){var a=s[n];Q(e,a.name)||(r?r.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},ut.parseExportAllDeclaration=function(t,e){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==F.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},ut.parseExport=function(t,e){if(this.next(),this.eat(F.star))return this.parseExportAllDeclaration(t,e);if(this.eat(F._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[]);else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==F.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause());else{for(var s=0,i=t.specifiers;s<i.length;s+=1){var r=i[s];this.checkUnreserved(r.local),this.checkLocalExport(r.local),"Literal"===r.local.type&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[])}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},ut.parseExportDeclaration=function(t){return this.parseStatement(null)},ut.parseExportDefaultDeclaration=function(){var t;if(this.type===F._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,4|gt,!1,t)}if(this.type===F._class){var s=this.startNode();return this.parseClass(s,"nullableID")}var i=this.parseMaybeAssign();return this.semicolon(),i},ut.checkExport=function(t,e,s){t&&("string"!=typeof e&&(e="Identifier"===e.type?e.name:e.value),Q(t,e)&&this.raiseRecoverable(s,"Duplicate export '"+e+"'"),t[e]=!0)},ut.checkPatternExport=function(t,e){var s=e.type;if("Identifier"===s)this.checkExport(t,e,e.start);else if("ObjectPattern"===s)for(var i=0,r=e.properties;i<r.length;i+=1){var n=r[i];this.checkPatternExport(t,n)}else if("ArrayPattern"===s)for(var a=0,o=e.elements;a<o.length;a+=1){var h=o[a];h&&this.checkPatternExport(t,h)}else"Property"===s?this.checkPatternExport(t,e.value):"AssignmentPattern"===s?this.checkPatternExport(t,e.left):"RestElement"===s&&this.checkPatternExport(t,e.argument)},ut.checkVariableExport=function(t,e){if(t)for(var s=0,i=e;s<i.length;s+=1){var r=i[s];this.checkPatternExport(t,r.id)}},ut.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},ut.parseExportSpecifier=function(t){var e=this.startNode();return e.local=this.parseModuleExportName(),e.exported=this.eatContextual("as")?this.parseModuleExportName():e.local,this.checkExport(t,e.exported,e.exported.start),this.finishNode(e,"ExportSpecifier")},ut.parseExportSpecifiers=function(t){var e=[],s=!0;for(this.expect(F.braceL);!this.eat(F.braceR);){if(s)s=!1;else if(this.expect(F.comma),this.afterTrailingComma(F.braceR))break;e.push(this.parseExportSpecifier(t))}return e},ut.parseImport=function(t){return this.next(),this.type===F.string?(t.specifiers=mt,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===F.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},ut.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportSpecifier")},ut.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportDefaultSpecifier")},ut.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportNamespaceSpecifier")},ut.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===F.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(F.comma)))return t;if(this.type===F.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(F.braceL);!this.eat(F.braceR);){if(e)e=!1;else if(this.expect(F.comma),this.afterTrailingComma(F.braceR))break;t.push(this.parseImportSpecifier())}return t},ut.parseWithClause=function(){var t=[];if(!this.eat(F._with))return t;this.expect(F.braceL);for(var e={},s=!0;!this.eat(F.braceR);){if(s)s=!1;else if(this.expect(F.comma),this.afterTrailingComma(F.braceR))break;var i=this.parseImportAttribute(),r="Identifier"===i.key.type?i.key.name:i.key.value;Q(e,r)&&this.raiseRecoverable(i.key.start,"Duplicate attribute key '"+r+"'"),e[r]=!0,t.push(i)}return t},ut.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===F.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(F.colon),this.type!==F.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")},ut.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===F.string){var t=this.parseLiteral(this.value);return tt.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},ut.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},ut.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var wt=ot.prototype;wt.toAssignable=function(t,e,s){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",s&&this.checkPatternErrors(s,!0);for(var i=0,r=t.properties;i<r.length;i+=1){var n=r[i];this.toAssignable(n,e),"RestElement"!==n.type||"ArrayPattern"!==n.argument.type&&"ObjectPattern"!==n.argument.type||this.raise(n.argument.start,"Unexpected token")}break;case"Property":"init"!==t.kind&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",s&&this.checkPatternErrors(s,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),"AssignmentPattern"===t.argument.type&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==t.operator&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,s);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else s&&this.checkPatternErrors(s,!0);return t},wt.toAssignableList=function(t,e){for(var s=t.length,i=0;i<s;i++){var r=t[i];r&&this.toAssignable(r,e)}if(s){var n=t[s-1];6===this.options.ecmaVersion&&e&&n&&"RestElement"===n.type&&"Identifier"!==n.argument.type&&this.unexpected(n.argument.start)}return t},wt.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},wt.parseRestBinding=function(){var t=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==F.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},wt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case F.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(F.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case F.braceL:return this.parseObj(!0)}return this.parseIdent()},wt.parseBindingList=function(t,e,s,i){for(var r=[],n=!0;!this.eat(t);)if(n?n=!1:this.expect(F.comma),e&&this.type===F.comma)r.push(null);else{if(s&&this.afterTrailingComma(t))break;if(this.type===F.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===F.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}r.push(this.parseAssignableListItem(i))}return r},wt.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e},wt.parseBindingListItem=function(t){return t},wt.parseMaybeDefault=function(t,e,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(F.eq))return s;var i=this.startNodeAt(t,e);return i.left=s,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")},wt.checkLValSimple=function(t,e,s){void 0===e&&(e=0);var i=0!==e;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(i?"Binding ":"Assigning to ")+t.name+" in strict mode"),i&&(2===e&&"let"===t.name&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),s&&(Q(s,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),s[t.name]=!0),5!==e&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":i&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return i&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,s);default:this.raise(t.start,(i?"Binding":"Assigning to")+" rvalue")}},wt.checkLValPattern=function(t,e,s){switch(void 0===e&&(e=0),t.type){case"ObjectPattern":for(var i=0,r=t.properties;i<r.length;i+=1){var n=r[i];this.checkLValInnerPattern(n,e,s)}break;case"ArrayPattern":for(var a=0,o=t.elements;a<o.length;a+=1){var h=o[a];h&&this.checkLValInnerPattern(h,e,s)}break;default:this.checkLValSimple(t,e,s)}},wt.checkLValInnerPattern=function(t,e,s){switch(void 0===e&&(e=0),t.type){case"Property":this.checkLValInnerPattern(t.value,e,s);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,s);break;case"RestElement":this.checkLValPattern(t.argument,e,s);break;default:this.checkLValPattern(t,e,s)}};var bt=function(t,e,s,i,r){this.token=t,this.isExpr=!!e,this.preserveSpace=!!s,this.override=i,this.generator=!!r},St={b_stat:new bt("{",!1),b_expr:new bt("{",!0),b_tmpl:new bt("${",!1),p_stat:new bt("(",!1),p_expr:new bt("(",!0),q_tmpl:new bt("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new bt("function",!1),f_expr:new bt("function",!0),f_expr_gen:new bt("function",!0,!1,null,!0),f_gen:new bt("function",!1,!1,null,!0)},Ct=ot.prototype;Ct.initialContext=function(){return[St.b_stat]},Ct.curContext=function(){return this.context[this.context.length-1]},Ct.braceIsBlock=function(t){var e=this.curContext();return e===St.f_expr||e===St.f_stat||(t!==F.colon||e!==St.b_stat&&e!==St.b_expr?t===F._return||t===F.name&&this.exprAllowed?j.test(this.input.slice(this.lastTokEnd,this.start)):t===F._else||t===F.semi||t===F.eof||t===F.parenR||t===F.arrow||(t===F.braceL?e===St.b_stat:t!==F._var&&t!==F._const&&t!==F.name&&!this.exprAllowed):!e.isExpr)},Ct.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if("function"===e.token)return e.generator}return!1},Ct.updateContext=function(t){var e,s=this.type;s.keyword&&t===F.dot?this.exprAllowed=!1:(e=s.updateContext)?e.call(this,t):this.exprAllowed=s.beforeExpr},Ct.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)},F.parenR.updateContext=F.braceR.updateContext=function(){if(1!==this.context.length){var t=this.context.pop();t===St.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},F.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?St.b_stat:St.b_expr),this.exprAllowed=!0},F.dollarBraceL.updateContext=function(){this.context.push(St.b_tmpl),this.exprAllowed=!0},F.parenL.updateContext=function(t){var e=t===F._if||t===F._for||t===F._with||t===F._while;this.context.push(e?St.p_stat:St.p_expr),this.exprAllowed=!0},F.incDec.updateContext=function(){},F._function.updateContext=F._class.updateContext=function(t){!t.beforeExpr||t===F._else||t===F.semi&&this.curContext()!==St.p_stat||t===F._return&&j.test(this.input.slice(this.lastTokEnd,this.start))||(t===F.colon||t===F.braceL)&&this.curContext()===St.b_stat?this.context.push(St.f_stat):this.context.push(St.f_expr),this.exprAllowed=!1},F.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},F.backQuote.updateContext=function(){this.curContext()===St.q_tmpl?this.context.pop():this.context.push(St.q_tmpl),this.exprAllowed=!1},F.star.updateContext=function(t){if(t===F._function){var e=this.context.length-1;this.context[e]===St.f_expr?this.context[e]=St.f_expr_gen:this.context[e]=St.f_gen}this.exprAllowed=!0},F.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==F.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var kt=ot.prototype;function Et(t){return"Identifier"===t.type||"ParenthesizedExpression"===t.type&&Et(t.expression)}function _t(t){return"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type||"ChainExpression"===t.type&&_t(t.expression)||"ParenthesizedExpression"===t.type&&_t(t.expression)}kt.checkPropClash=function(t,e,s){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===t.type||this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var i,r=t.key;switch(r.type){case"Identifier":i=r.name;break;case"Literal":i=String(r.value);break;default:return}var n=t.kind;if(this.options.ecmaVersion>=6)"__proto__"===i&&"init"===n&&(e.proto&&(s?s.doubleProto<0&&(s.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0);else{var a=e[i="$"+i];a?("init"===n?this.strict&&a.init||a.get||a.set:a.init||a[n])&&this.raiseRecoverable(r.start,"Redefinition of property"):a=e[i]={init:!1,get:!1,set:!1},a[n]=!0}}},kt.parseExpression=function(t,e){var s=this.start,i=this.startLoc,r=this.parseMaybeAssign(t,e);if(this.type===F.comma){var n=this.startNodeAt(s,i);for(n.expressions=[r];this.eat(F.comma);)n.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(n,"SequenceExpression")}return r},kt.parseMaybeAssign=function(t,e,s){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var i=!1,r=-1,n=-1,a=-1;e?(r=e.parenthesizedAssign,n=e.trailingComma,a=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new pt,i=!0);var o=this.start,h=this.startLoc;this.type!==F.parenL&&this.type!==F.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===t);var c=this.parseMaybeConditional(t,e);if(s&&(c=s.call(this,c,o,h)),this.type.isAssign){var l=this.startNodeAt(o,h);return l.operator=this.value,this.type===F.eq&&(c=this.toAssignable(c,!1,e)),i||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=c.start&&(e.shorthandAssign=-1),this.type===F.eq?this.checkLValPattern(c):this.checkLValSimple(c),l.left=c,this.next(),l.right=this.parseMaybeAssign(t),a>-1&&(e.doubleProto=a),this.finishNode(l,"AssignmentExpression")}return i&&this.checkExpressionErrors(e,!0),r>-1&&(e.parenthesizedAssign=r),n>-1&&(e.trailingComma=n),c},kt.parseMaybeConditional=function(t,e){var s=this.start,i=this.startLoc,r=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return r;if(this.eat(F.question)){var n=this.startNodeAt(s,i);return n.test=r,n.consequent=this.parseMaybeAssign(),this.expect(F.colon),n.alternate=this.parseMaybeAssign(t),this.finishNode(n,"ConditionalExpression")}return r},kt.parseExprOps=function(t,e){var s=this.start,i=this.startLoc,r=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||r.start===s&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,s,i,-1,t)},kt.parseExprOp=function(t,e,s,i,r){var n=this.type.binop;if(null!=n&&(!r||this.type!==F._in)&&n>i){var a=this.type===F.logicalOR||this.type===F.logicalAND,o=this.type===F.coalesce;o&&(n=F.logicalAND.binop);var h=this.value;this.next();var c=this.start,l=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),c,l,n,r),u=this.buildBinary(e,s,t,p,h,a||o);return(a&&this.type===F.coalesce||o&&(this.type===F.logicalOR||this.type===F.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(u,e,s,i,r)}return t},kt.buildBinary=function(t,e,s,i,r,n){"PrivateIdentifier"===i.type&&this.raise(i.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(t,e);return a.left=s,a.operator=r,a.right=i,this.finishNode(a,n?"LogicalExpression":"BinaryExpression")},kt.parseMaybeUnary=function(t,e,s,i){var r,n=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(i),e=!0;else if(this.type.prefix){var o=this.startNode(),h=this.type===F.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,h,i),this.checkExpressionErrors(t,!0),h?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&Et(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&_t(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):e=!0,r=this.finishNode(o,h?"UpdateExpression":"UnaryExpression")}else if(e||this.type!==F.privateId){if(r=this.parseExprSubscripts(t,i),this.checkExpressionErrors(t))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(n,a);c.operator=this.value,c.prefix=!1,c.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(c,"UpdateExpression")}}else(i||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==F._in&&this.unexpected();return s||!this.eat(F.starstar)?r:e?void this.unexpected(this.lastTokStart):this.buildBinary(n,a,r,this.parseMaybeUnary(null,!1,!1,i),"**",!1)},kt.parseExprSubscripts=function(t,e){var s=this.start,i=this.startLoc,r=this.parseExprAtom(t,e);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var n=this.parseSubscripts(r,s,i,!1,e);return t&&"MemberExpression"===n.type&&(t.parenthesizedAssign>=n.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=n.start&&(t.parenthesizedBind=-1),t.trailingComma>=n.start&&(t.trailingComma=-1)),n},kt.parseSubscripts=function(t,e,s,i,r){for(var n=this.options.ecmaVersion>=8&&"Identifier"===t.type&&"async"===t.name&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,a=!1;;){var o=this.parseSubscript(t,e,s,i,n,a,r);if(o.optional&&(a=!0),o===t||"ArrowFunctionExpression"===o.type){if(a){var h=this.startNodeAt(e,s);h.expression=o,o=this.finishNode(h,"ChainExpression")}return o}t=o}},kt.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(F.arrow)},kt.parseSubscriptAsyncArrow=function(t,e,s,i){return this.parseArrowExpression(this.startNodeAt(t,e),s,!0,i)},kt.parseSubscript=function(t,e,s,i,r,n,a){var o=this.options.ecmaVersion>=11,h=o&&this.eat(F.questionDot);i&&h&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(F.bracketL);if(c||h&&this.type!==F.parenL&&this.type!==F.backQuote||this.eat(F.dot)){var l=this.startNodeAt(e,s);l.object=t,c?(l.property=this.parseExpression(),this.expect(F.bracketR)):this.type===F.privateId&&"Super"!==t.type?l.property=this.parsePrivateIdent():l.property=this.parseIdent("never"!==this.options.allowReserved),l.computed=!!c,o&&(l.optional=h),t=this.finishNode(l,"MemberExpression")}else if(!i&&this.eat(F.parenL)){var p=new pt,u=this.yieldPos,f=this.awaitPos,d=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(F.parenR,this.options.ecmaVersion>=8,!1,p);if(r&&!h&&this.shouldParseAsyncArrow())return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=u,this.awaitPos=f,this.awaitIdentPos=d,this.parseSubscriptAsyncArrow(e,s,m,a);this.checkExpressionErrors(p,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=f||this.awaitPos,this.awaitIdentPos=d||this.awaitIdentPos;var g=this.startNodeAt(e,s);g.callee=t,g.arguments=m,o&&(g.optional=h),t=this.finishNode(g,"CallExpression")}else if(this.type===F.backQuote){(h||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var x=this.startNodeAt(e,s);x.tag=t,x.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(x,"TaggedTemplateExpression")}return t},kt.parseExprAtom=function(t,e,s){this.type===F.slash&&this.readRegexp();var i,r=this.potentialArrowAt===this.start;switch(this.type){case F._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type!==F.parenL||this.allowDirectSuper||this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==F.dot&&this.type!==F.bracketL&&this.type!==F.parenL&&this.unexpected(),this.finishNode(i,"Super");case F._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case F.name:var n=this.start,a=this.startLoc,o=this.containsEsc,h=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===h.name&&!this.canInsertSemicolon()&&this.eat(F._function))return this.overrideContext(St.f_expr),this.parseFunction(this.startNodeAt(n,a),0,!1,!0,e);if(r&&!this.canInsertSemicolon()){if(this.eat(F.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[h],!1,e);if(this.options.ecmaVersion>=8&&"async"===h.name&&this.type===F.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return h=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(F.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[h],!0,e)}return h;case F.regexp:var c=this.value;return(i=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},i;case F.num:case F.string:return this.parseLiteral(this.value);case F._null:case F._true:case F._false:return(i=this.startNode()).value=this.type===F._null?null:this.type===F._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case F.parenL:var l=this.start,p=this.parseParenAndDistinguishExpression(r,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(t.parenthesizedAssign=l),t.parenthesizedBind<0&&(t.parenthesizedBind=l)),p;case F.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(F.bracketR,!0,!0,t),this.finishNode(i,"ArrayExpression");case F.braceL:return this.overrideContext(St.b_expr),this.parseObj(!1,t);case F._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case F._class:return this.parseClass(this.startNode(),!1);case F._new:return this.parseNew();case F.backQuote:return this.parseTemplate();case F._import:return this.options.ecmaVersion>=11?this.parseExprImport(s):this.unexpected();default:return this.parseExprAtomDefault()}},kt.parseExprAtomDefault=function(){this.unexpected()},kt.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===F.parenL&&!t)return this.parseDynamicImport(e);if(this.type===F.dot){var s=this.startNodeAt(e.start,e.loc&&e.loc.start);return s.name="import",e.meta=this.finishNode(s,"Identifier"),this.parseImportMeta(e)}this.unexpected()},kt.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(F.parenR)?t.options=null:(this.expect(F.comma),this.afterTrailingComma(F.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(F.parenR)||(this.expect(F.comma),this.afterTrailingComma(F.parenR)||this.unexpected())));else if(!this.eat(F.parenR)){var e=this.start;this.eat(F.comma)&&this.eat(F.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},kt.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),"meta"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},kt.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=null!=e.value?e.value.toString():e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},kt.parseParenExpression=function(){this.expect(F.parenL);var t=this.parseExpression();return this.expect(F.parenR),t},kt.shouldParseArrow=function(t){return!this.canInsertSemicolon()},kt.parseParenAndDistinguishExpression=function(t,e){var s,i=this.start,r=this.startLoc,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,h=this.startLoc,c=[],l=!0,p=!1,u=new pt,f=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==F.parenR;){if(l?l=!1:this.expect(F.comma),n&&this.afterTrailingComma(F.parenR,!0)){p=!0;break}if(this.type===F.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===F.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,u,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(F.parenR),t&&this.shouldParseArrow(c)&&this.eat(F.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=d,this.parseParenArrowList(i,r,c,e);c.length&&!p||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(u,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=d||this.awaitPos,c.length>1?((s=this.startNodeAt(o,h)).expressions=c,this.finishNodeAt(s,"SequenceExpression",m,g)):s=c[0]}else s=this.parseParenExpression();if(this.options.preserveParens){var x=this.startNodeAt(i,r);return x.expression=s,this.finishNode(x,"ParenthesizedExpression")}return s},kt.parseParenItem=function(t){return t},kt.parseParenArrowList=function(t,e,s,i){return this.parseArrowExpression(this.startNodeAt(t,e),s,!1,i)};var At=[];kt.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===F.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var s=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),s&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var i=this.start,r=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),i,r,!0,!1),this.eat(F.parenL)?t.arguments=this.parseExprList(F.parenR,this.options.ecmaVersion>=8,!1):t.arguments=At,this.finishNode(t,"NewExpression")},kt.parseTemplateElement=function(t){var e=t.isTagged,s=this.startNode();return this.type===F.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),s.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):s.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),s.tail=this.type===F.backQuote,this.finishNode(s,"TemplateElement")},kt.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var s=this.startNode();this.next(),s.expressions=[];var i=this.parseTemplateElement({isTagged:e});for(s.quasis=[i];!i.tail;)this.type===F.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(F.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(F.braceR),s.quasis.push(i=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(s,"TemplateLiteral")},kt.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===F.name||this.type===F.num||this.type===F.string||this.type===F.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===F.star)&&!j.test(this.input.slice(this.lastTokEnd,this.start))},kt.parseObj=function(t,e){var s=this.startNode(),i=!0,r={};for(s.properties=[],this.next();!this.eat(F.braceR);){if(i)i=!1;else if(this.expect(F.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(F.braceR))break;var n=this.parseProperty(t,e);t||this.checkPropClash(n,r,e),s.properties.push(n)}return this.finishNode(s,t?"ObjectPattern":"ObjectExpression")},kt.parseProperty=function(t,e){var s,i,r,n,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(F.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===F.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,e),this.type===F.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(t||e)&&(r=this.start,n=this.startLoc),t||(s=this.eat(F.star)));var o=this.containsEsc;return this.parsePropertyName(a),!t&&!o&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(a)?(i=!0,s=this.options.ecmaVersion>=9&&this.eat(F.star),this.parsePropertyName(a)):i=!1,this.parsePropertyValue(a,t,s,i,r,n,e,o),this.finishNode(a,"Property")},kt.parseGetterSetter=function(t){var e=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=e;var s="get"===t.kind?0:1;if(t.value.params.length!==s){var i=t.value.start;"get"===t.kind?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")},kt.parsePropertyValue=function(t,e,s,i,r,n,a,o){(s||i)&&this.type===F.colon&&this.unexpected(),this.eat(F.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):this.options.ecmaVersion>=6&&this.type===F.parenL?(e&&this.unexpected(),t.method=!0,t.value=this.parseMethod(s,i),t.kind="init"):e||o||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===F.comma||this.type===F.braceR||this.type===F.eq?this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?((s||i)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),e?t.value=this.parseMaybeDefault(r,n,this.copyNode(t.key)):this.type===F.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(r,n,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):this.unexpected():((s||i)&&this.unexpected(),this.parseGetterSetter(t))},kt.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(F.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(F.bracketR),t.key;t.computed=!1}return t.key=this.type===F.num||this.type===F.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},kt.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},kt.parseMethod=function(t,e,s){var i=this.startNode(),r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=t),this.options.ecmaVersion>=8&&(i.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|at(e,i.generator)|(s?128:0)),this.expect(F.parenL),i.params=this.parseBindingList(F.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(i,"FunctionExpression")},kt.parseArrowExpression=function(t,e,s,i){var r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|at(s,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,i),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")},kt.parseFunctionBody=function(t,e,s,i){var r=e&&this.type!==F.braceL,n=this.strict,a=!1;if(r)t.body=this.parseMaybeAssign(i),t.expression=!0,this.checkParams(t,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);n&&!o||(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var h=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(t,!n&&!a&&!e&&!s&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,a&&!n),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=h}this.exitScope()},kt.isSimpleParamList=function(t){for(var e=0,s=t;e<s.length;e+=1)if("Identifier"!==s[e].type)return!1;return!0},kt.checkParams=function(t,e){for(var s=Object.create(null),i=0,r=t.params;i<r.length;i+=1){var n=r[i];this.checkLValInnerPattern(n,1,e?null:s)}},kt.parseExprList=function(t,e,s,i){for(var r=[],n=!0;!this.eat(t);){if(n)n=!1;else if(this.expect(F.comma),e&&this.afterTrailingComma(t))break;var a=void 0;s&&this.type===F.comma?a=null:this.type===F.ellipsis?(a=this.parseSpread(i),i&&this.type===F.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):a=this.parseMaybeAssign(!1,i),r.push(a)}return r},kt.checkUnreserved=function(t){var e=t.start,s=t.end,i=t.name;this.inGenerator&&"yield"===i&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===i&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),259&this.currentThisScope().flags||"arguments"!==i||this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==i&&"await"!==i||this.raise(e,"Cannot use "+i+" in class static initialization block"),this.keywords.test(i)&&this.raise(e,"Unexpected keyword '"+i+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(e,s).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(i)&&(this.inAsync||"await"!==i||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+i+"' is reserved"))},kt.parseIdent=function(t){var e=this.parseIdentNode();return this.next(!!t),this.finishNode(e,"Identifier"),t||(this.checkUnreserved(e),"await"!==e.name||this.awaitIdentPos||(this.awaitIdentPos=e.start)),e},kt.parseIdentNode=function(){var t=this.startNode();return this.type===F.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,"class"!==t.name&&"function"!==t.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=F.name):this.unexpected(),t},kt.parsePrivateIdent=function(){var t=this.startNode();return this.type===F.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t},kt.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===F.semi||this.canInsertSemicolon()||this.type!==F.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(F.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},kt.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var It=ot.prototype;It.raise=function(t,e){var s=it(this.input,t);e+=" ("+s.line+":"+s.column+")",this.sourceFile&&(e+=" in "+this.sourceFile);var i=new SyntaxError(e);throw i.pos=t,i.loc=s,i.raisedAt=this.pos,i},It.raiseRecoverable=It.raise,It.curPosition=function(){if(this.options.locations)return new et(this.curLine,this.pos-this.lineStart)};var Pt=ot.prototype,Ot=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Pt.enterScope=function(t){this.scopeStack.push(new Ot(t))},Pt.exitScope=function(){this.scopeStack.pop()},Pt.treatFunctionsAsVarInScope=function(t){return 2&t.flags||!this.inModule&&1&t.flags},Pt.declareName=function(t,e,s){var i=!1;if(2===e){var r=this.currentScope();i=r.lexical.indexOf(t)>-1||r.functions.indexOf(t)>-1||r.var.indexOf(t)>-1,r.lexical.push(t),this.inModule&&1&r.flags&&delete this.undefinedExports[t]}else if(4===e)this.currentScope().lexical.push(t);else if(3===e){var n=this.currentScope();i=this.treatFunctionsAsVar?n.lexical.indexOf(t)>-1:n.lexical.indexOf(t)>-1||n.var.indexOf(t)>-1,n.functions.push(t)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(t)>-1&&!(32&o.flags&&o.lexical[0]===t)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(t)>-1){i=!0;break}if(o.var.push(t),this.inModule&&1&o.flags&&delete this.undefinedExports[t],259&o.flags)break}i&&this.raiseRecoverable(s,"Identifier '"+t+"' has already been declared")},Pt.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},Pt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Pt.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags)return e}},Pt.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags&&!(16&e.flags))return e}};var Nt=function(t,e,s){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new st(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},Vt=ot.prototype;function Rt(t,e,s,i){return t.type=e,t.end=s,this.options.locations&&(t.loc.end=i),this.options.ranges&&(t.range[1]=s),t}Vt.startNode=function(){return new Nt(this,this.start,this.startLoc)},Vt.startNodeAt=function(t,e){return new Nt(this,t,e)},Vt.finishNode=function(t,e){return Rt.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},Vt.finishNodeAt=function(t,e,s,i){return Rt.call(this,t,e,s,i)},Vt.copyNode=function(t){var e=new Nt(this,t.start,this.startLoc);for(var s in t)e[s]=t[s];return e};var Tt="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",Lt=Tt+" Extended_Pictographic",Dt=Lt+" EBase EComp EMod EPres ExtPict",Mt={9:Tt,10:Lt,11:Lt,12:Dt,13:Dt,14:Dt},Bt={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Ft="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",jt="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",Ut=jt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",$t=Ut+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",zt=$t+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",qt=zt+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Wt={9:jt,10:Ut,11:$t,12:zt,13:qt,14:qt+" Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz"},Gt={};function Ht(t){var e=Gt[t]={binary:Z(Mt[t]+" "+Ft),binaryOfStrings:Z(Bt[t]),nonBinary:{General_Category:Z(Ft),Script:Z(Wt[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}for(var Kt=0,Qt=[9,10,11,12,13,14];Kt<Qt.length;Kt+=1)Ht(Qt[Kt]);var Yt=ot.prototype,Jt=function(t,e){this.parent=t,this.base=e||this};Jt.prototype.separatedFrom=function(t){for(var e=this;e;e=e.parent)for(var s=t;s;s=s.parent)if(e.base===s.base&&e!==s)return!0;return!1},Jt.prototype.sibling=function(){return new Jt(this.parent,this.base)};var Zt=function(t){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=Gt[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=Object.create(null),this.backReferenceNames=[],this.branchID=null};function Xt(t){return 105===t||109===t||115===t}function te(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function ee(t){return t>=65&&t<=90||t>=97&&t<=122}function se(t){return ee(t)||95===t}function ie(t){return se(t)||re(t)}function re(t){return t>=48&&t<=57}function ne(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function ae(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function oe(t){return t>=48&&t<=55}Zt.prototype.reset=function(t,e,s){var i=-1!==s.indexOf("v"),r=-1!==s.indexOf("u");this.start=0|t,this.source=e+"",this.flags=s,i&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=r&&this.parser.options.ecmaVersion>=9)},Zt.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},Zt.prototype.at=function(t,e){void 0===e&&(e=!1);var s=this.source,i=s.length;if(t>=i)return-1;var r=s.charCodeAt(t);if(!e&&!this.switchU||r<=55295||r>=57344||t+1>=i)return r;var n=s.charCodeAt(t+1);return n>=56320&&n<=57343?(r<<10)+n-56613888:r},Zt.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var s=this.source,i=s.length;if(t>=i)return i;var r,n=s.charCodeAt(t);return!e&&!this.switchU||n<=55295||n>=57344||t+1>=i||(r=s.charCodeAt(t+1))<56320||r>57343?t+1:t+2},Zt.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},Zt.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},Zt.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},Zt.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},Zt.prototype.eatChars=function(t,e){void 0===e&&(e=!1);for(var s=this.pos,i=0,r=t;i<r.length;i+=1){var n=r[i],a=this.at(s,e);if(-1===a||a!==n)return!1;s=this.nextIndex(s,e)}return this.pos=s,!0},Yt.validateRegExpFlags=function(t){for(var e=t.validFlags,s=t.flags,i=!1,r=!1,n=0;n<s.length;n++){var a=s.charAt(n);-1===e.indexOf(a)&&this.raise(t.start,"Invalid regular expression flag"),s.indexOf(a,n+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),"u"===a&&(i=!0),"v"===a&&(r=!0)}this.options.ecmaVersion>=15&&i&&r&&this.raise(t.start,"Invalid regular expression flag")},Yt.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&function(t){for(var e in t)return!0;return!1}(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))},Yt.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,s=t.backReferenceNames;e<s.length;e+=1){var i=s[e];t.groupNames[i]||t.raise("Invalid named capture referenced")}},Yt.regexp_disjunction=function(t){var e=this.options.ecmaVersion>=16;for(e&&(t.branchID=new Jt(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)e&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);e&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},Yt.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},Yt.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):!!(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))&&(this.regexp_eatQuantifier(t),!0)},Yt.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var s=!1;if(this.options.ecmaVersion>=9&&(s=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!s,!0}return t.pos=e,!1},Yt.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},Yt.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},Yt.regexp_eatBracedQuantifier=function(t,e){var s=t.pos;if(t.eat(123)){var i=0,r=-1;if(this.regexp_eatDecimalDigits(t)&&(i=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue),t.eat(125)))return-1!==r&&r<i&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=s}return!1},Yt.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)},Yt.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},Yt.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)){if(this.options.ecmaVersion>=16){var s=this.regexp_eatModifiers(t),i=t.eat(45);if(s||i){for(var r=0;r<s.length;r++){var n=s.charAt(r);s.indexOf(n,r+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(i){var a=this.regexp_eatModifiers(t);s||a||58!==t.current()||t.raise("Invalid regular expression modifiers");for(var o=0;o<a.length;o++){var h=a.charAt(o);(a.indexOf(h,o+1)>-1||s.indexOf(h)>-1)&&t.raise("Duplicate regular expression modifiers")}}}}if(t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}}t.pos=e}return!1},Yt.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):63===t.current()&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},Yt.regexp_eatModifiers=function(t){for(var e="",s=0;-1!==(s=t.current())&&Xt(s);)e+=X(s),t.advance();return e},Yt.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},Yt.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},Yt.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!te(e)&&(t.lastIntValue=e,t.advance(),!0)},Yt.regexp_eatPatternCharacters=function(t){for(var e=t.pos,s=0;-1!==(s=t.current())&&!te(s);)t.advance();return t.pos!==e},Yt.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(-1===e||36===e||e>=40&&e<=43||46===e||63===e||91===e||94===e||124===e||(t.advance(),0))},Yt.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var e=this.options.ecmaVersion>=16,s=t.groupNames[t.lastStringValue];if(s)if(e)for(var i=0,r=s;i<r.length;i+=1)r[i].separatedFrom(t.branchID)||t.raise("Duplicate capture group name");else t.raise("Duplicate capture group name");e?(s||(t.groupNames[t.lastStringValue]=[])).push(t.branchID):t.groupNames[t.lastStringValue]=!0}},Yt.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},Yt.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=X(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=X(t.lastIntValue);return!0}return!1},Yt.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,s=this.options.ecmaVersion>=11,i=t.current(s);return t.advance(s),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(t,s)&&(i=t.lastIntValue),function(t){return N(t,!0)||36===t||95===t}(i)?(t.lastIntValue=i,!0):(t.pos=e,!1)},Yt.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,s=this.options.ecmaVersion>=11,i=t.current(s);return t.advance(s),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(t,s)&&(i=t.lastIntValue),function(t){return V(t,!0)||36===t||95===t||8204===t||8205===t}(i)?(t.lastIntValue=i,!0):(t.pos=e,!1)},Yt.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(99===t.current()&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},Yt.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var s=t.lastIntValue;if(t.switchU)return s>t.maxBackReference&&(t.maxBackReference=s),!0;if(s<=t.numCapturingParens)return!0;t.pos=e}return!1},Yt.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},Yt.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},Yt.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},Yt.regexp_eatZero=function(t){return 48===t.current()&&!re(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},Yt.regexp_eatControlEscape=function(t){var e=t.current();return 116===e?(t.lastIntValue=9,t.advance(),!0):110===e?(t.lastIntValue=10,t.advance(),!0):118===e?(t.lastIntValue=11,t.advance(),!0):102===e?(t.lastIntValue=12,t.advance(),!0):114===e&&(t.lastIntValue=13,t.advance(),!0)},Yt.regexp_eatControlLetter=function(t){var e=t.current();return!!ee(e)&&(t.lastIntValue=e%32,t.advance(),!0)},Yt.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var s,i=t.pos,r=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var n=t.lastIntValue;if(r&&n>=55296&&n<=56319){var a=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&o<=57343)return t.lastIntValue=1024*(n-55296)+(o-56320)+65536,!0}t.pos=a,t.lastIntValue=n}return!0}if(r&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&(s=t.lastIntValue)>=0&&s<=1114111)return!0;r&&t.raise("Invalid unicode escape"),t.pos=i}return!1},Yt.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(99===e||t.switchN&&107===e||(t.lastIntValue=e,t.advance(),0))},Yt.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do{t.lastIntValue=10*t.lastIntValue+(e-48),t.advance()}while((e=t.current())>=48&&e<=57);return!0}return!1},Yt.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(function(t){return 100===t||68===t||115===t||83===t||119===t||87===t}(e))return t.lastIntValue=-1,t.advance(),1;var s=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((s=80===e)||112===e)){var i;if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(i=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return s&&2===i&&t.raise("Invalid property name"),i;t.raise("Invalid property name")}return 0},Yt.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var s=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var i=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,s,i),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,r)}return 0},Yt.regexp_validateUnicodePropertyNameAndValue=function(t,e,s){Q(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(s)||t.raise("Invalid property value")},Yt.regexp_validateUnicodePropertyNameOrValue=function(t,e){return t.unicodeProperties.binary.test(e)?1:t.switchV&&t.unicodeProperties.binaryOfStrings.test(e)?2:void t.raise("Invalid property name")},Yt.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";se(e=t.current());)t.lastStringValue+=X(e),t.advance();return""!==t.lastStringValue},Yt.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";ie(e=t.current());)t.lastStringValue+=X(e),t.advance();return""!==t.lastStringValue},Yt.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},Yt.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),s=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&2===s&&t.raise("Negated character class may contain strings"),!0}return!1},Yt.regexp_classContents=function(t){return 93===t.current()?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},Yt.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var s=t.lastIntValue;!t.switchU||-1!==e&&-1!==s||t.raise("Invalid character class"),-1!==e&&-1!==s&&e>s&&t.raise("Range out of order in character class")}}},Yt.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var s=t.current();(99===s||oe(s))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var i=t.current();return 93!==i&&(t.lastIntValue=i,t.advance(),!0)},Yt.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},Yt.regexp_classSetExpression=function(t){var e,s=1;if(this.regexp_eatClassSetRange(t));else if(e=this.regexp_eatClassSetOperand(t)){2===e&&(s=2);for(var i=t.pos;t.eatChars([38,38]);)38!==t.current()&&(e=this.regexp_eatClassSetOperand(t))?2!==e&&(s=1):t.raise("Invalid character in character class");if(i!==t.pos)return s;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(i!==t.pos)return s}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return s;2===e&&(s=2)}},Yt.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var s=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var i=t.lastIntValue;return-1!==s&&-1!==i&&s>i&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},Yt.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},Yt.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var s=t.eat(94),i=this.regexp_classContents(t);if(t.eat(93))return s&&2===i&&t.raise("Negated character class may contain strings"),i;t.pos=e}if(t.eat(92)){var r=this.regexp_eatCharacterClassEscape(t);if(r)return r;t.pos=e}return null},Yt.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var s=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return s}else t.raise("Invalid escape");t.pos=e}return null},Yt.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)2===this.regexp_classString(t)&&(e=2);return e},Yt.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return 1===e?1:2},Yt.regexp_eatClassSetCharacter=function(t){var e=t.pos;if(t.eat(92))return!(!this.regexp_eatCharacterEscape(t)&&!this.regexp_eatClassSetReservedPunctuator(t)&&(t.eat(98)?(t.lastIntValue=8,0):(t.pos=e,1)));var s=t.current();return!(s<0||s===t.lookahead()&&function(t){return 33===t||t>=35&&t<=38||t>=42&&t<=44||46===t||t>=58&&t<=64||94===t||96===t||126===t}(s)||function(t){return 40===t||41===t||45===t||47===t||t>=91&&t<=93||t>=123&&t<=125}(s)||(t.advance(),t.lastIntValue=s,0))},Yt.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return!!function(t){return 33===t||35===t||37===t||38===t||44===t||45===t||t>=58&&t<=62||64===t||96===t||126===t}(e)&&(t.lastIntValue=e,t.advance(),!0)},Yt.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!re(e)&&95!==e||(t.lastIntValue=e%32,t.advance(),0))},Yt.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},Yt.regexp_eatDecimalDigits=function(t){var e=t.pos,s=0;for(t.lastIntValue=0;re(s=t.current());)t.lastIntValue=10*t.lastIntValue+(s-48),t.advance();return t.pos!==e},Yt.regexp_eatHexDigits=function(t){var e=t.pos,s=0;for(t.lastIntValue=0;ne(s=t.current());)t.lastIntValue=16*t.lastIntValue+ae(s),t.advance();return t.pos!==e},Yt.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var s=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*s+t.lastIntValue:t.lastIntValue=8*e+s}else t.lastIntValue=e;return!0}return!1},Yt.regexp_eatOctalDigit=function(t){var e=t.current();return oe(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},Yt.regexp_eatFixedHexDigits=function(t,e){var s=t.pos;t.lastIntValue=0;for(var i=0;i<e;++i){var r=t.current();if(!ne(r))return t.pos=s,!1;t.lastIntValue=16*t.lastIntValue+ae(r),t.advance()}return!0};var he=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new st(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},ce=ot.prototype;function le(t){return"function"!=typeof BigInt?null:BigInt(t.replace(/_/g,""))}ce.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new he(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ce.getToken=function(){return this.next(),new he(this)},"undefined"!=typeof Symbol&&(ce[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===F.eof,value:e}}}}),ce.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(F.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},ce.readToken=function(t){return N(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},ce.fullCharCodeAt=function(t){var e=this.input.charCodeAt(t);if(e<=55295||e>=56320)return e;var s=this.input.charCodeAt(t+1);return s<=56319||s>=57344?e:(e<<10)+s-56613888},ce.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},ce.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,s=this.input.indexOf("*/",this.pos+=2);if(-1===s&&this.raise(this.pos-2,"Unterminated comment"),this.pos=s+2,this.options.locations)for(var i=void 0,r=e;(i=z(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=i;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,s),e,this.pos,t,this.curPosition())},ce.skipLineComment=function(t){for(var e=this.pos,s=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!$(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,s,this.curPosition())},ce.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(!(t>8&&t<14||t>=5760&&q.test(String.fromCharCode(t))))break t;++this.pos}}},ce.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var s=this.type;this.type=t,this.value=e,this.updateContext(s)},ce.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(F.ellipsis)):(++this.pos,this.finishToken(F.dot))},ce.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(F.assign,2):this.finishOp(F.slash,1)},ce.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),s=1,i=42===t?F.star:F.modulo;return this.options.ecmaVersion>=7&&42===t&&42===e&&(++s,i=F.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(F.assign,s+1):this.finishOp(i,s)},ce.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(F.assign,3):this.finishOp(124===t?F.logicalOR:F.logicalAND,2):61===e?this.finishOp(F.assign,2):this.finishOp(124===t?F.bitwiseOR:F.bitwiseAND,1)},ce.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(F.assign,2):this.finishOp(F.bitwiseXOR,1)},ce.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45!==e||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!j.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(F.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(F.assign,2):this.finishOp(F.plusMin,1)},ce.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),s=1;return e===t?(s=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+s)?this.finishOp(F.assign,s+1):this.finishOp(F.bitShift,s)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(s=2),this.finishOp(F.relational,s)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},ce.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(F.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(F.arrow)):this.finishOp(61===t?F.eq:F.prefix,1)},ce.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(46===e){var s=this.input.charCodeAt(this.pos+2);if(s<48||s>57)return this.finishOp(F.questionDot,2)}if(63===e)return t>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(F.assign,3):this.finishOp(F.coalesce,2)}return this.finishOp(F.question,1)},ce.readToken_numberSign=function(){var t=35;if(this.options.ecmaVersion>=13&&(++this.pos,N(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(F.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+X(t)+"'")},ce.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(F.parenL);case 41:return++this.pos,this.finishToken(F.parenR);case 59:return++this.pos,this.finishToken(F.semi);case 44:return++this.pos,this.finishToken(F.comma);case 91:return++this.pos,this.finishToken(F.bracketL);case 93:return++this.pos,this.finishToken(F.bracketR);case 123:return++this.pos,this.finishToken(F.braceL);case 125:return++this.pos,this.finishToken(F.braceR);case 58:return++this.pos,this.finishToken(F.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(F.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(F.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+X(t)+"'")},ce.finishOp=function(t,e){var s=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,s)},ce.readRegexp=function(){for(var t,e,s=this.pos;;){this.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(j.test(i)&&this.raise(s,"Unterminated regular expression"),t)t=!1;else{if("["===i)e=!0;else if("]"===i&&e)e=!1;else if("/"===i&&!e)break;t="\\"===i}++this.pos}var r=this.input.slice(s,this.pos);++this.pos;var n=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(n);var o=this.regexpState||(this.regexpState=new Zt(this));o.reset(s,r,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var h=null;try{h=new RegExp(r,a)}catch(t){}return this.finishToken(F.regexp,{pattern:r,flags:a,value:h})},ce.readInt=function(t,e,s){for(var i=this.options.ecmaVersion>=12&&void 0===e,r=s&&48===this.input.charCodeAt(this.pos),n=this.pos,a=0,o=0,h=0,c=null==e?1/0:e;h<c;++h,++this.pos){var l=this.input.charCodeAt(this.pos),p=void 0;if(i&&95===l)r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===h&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=l;else{if((p=l>=97?l-97+10:l>=65?l-65+10:l>=48&&l<=57?l-48:1/0)>=t)break;o=l,a=a*t+p}}return i&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||null!=e&&this.pos-n!==e?null:a},ce.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var s=this.readInt(t);return null==s&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(s=le(this.input.slice(e,this.pos)),++this.pos):N(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(F.num,s)},ce.readNumber=function(t){var e=this.pos;t||null!==this.readInt(10,void 0,!0)||this.raise(e,"Invalid number");var s=this.pos-e>=2&&48===this.input.charCodeAt(e);s&&this.strict&&this.raise(e,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!s&&!t&&this.options.ecmaVersion>=11&&110===i){var r=le(this.input.slice(e,this.pos));return++this.pos,N(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(F.num,r)}s&&/[89]/.test(this.input.slice(e,this.pos))&&(s=!1),46!==i||s||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||s||(43!==(i=this.input.charCodeAt(++this.pos))&&45!==i||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),N(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n,a=(n=this.input.slice(e,this.pos),s?parseInt(n,8):parseFloat(n.replace(/_/g,"")));return this.finishToken(F.num,a)},ce.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},ce.readString=function(t){for(var e="",s=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===t)break;92===i?(e+=this.input.slice(s,this.pos),e+=this.readEscapedChar(!1),s=this.pos):8232===i||8233===i?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):($(i)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(s,this.pos++),this.finishToken(F.string,e)};var pe={};function ue(t,e){return ot.parse(t,e)}ce.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==pe)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},ce.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw pe;this.raise(t,e)},ce.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(96===s||36===s&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==F.template&&this.type!==F.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(F.template,t)):36===s?(this.pos+=2,this.finishToken(F.dollarBraceL)):(++this.pos,this.finishToken(F.backQuote));if(92===s)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if($(s)){switch(t+=this.input.slice(e,this.pos),++this.pos,s){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(s)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},ce.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(F.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},ce.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return X(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var s=this.pos-1;this.invalidStringToken(s,"Invalid escape sequence in template string")}default:if(e>=48&&e<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(i,8);return r>255&&(i=i.slice(0,-1),r=parseInt(i,8)),this.pos+=i.length-1,e=this.input.charCodeAt(this.pos),"0"===i&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-i.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return $(e)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(e)}},ce.readHexChar=function(t){var e=this.pos,s=this.readInt(16,t);return null===s&&this.invalidStringToken(e,"Bad character escape sequence"),s},ce.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,s=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(V(r,i))this.pos+=r<=65535?1:2;else{if(92!==r)break;this.containsEsc=!0,t+=this.input.slice(s,this.pos);var n=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(e?N:V)(a,i)||this.invalidStringToken(n,"Invalid Unicode escape"),t+=X(a),s=this.pos}e=!1}return t+this.input.slice(s,this.pos)},ce.readWord=function(){var t=this.readWord1(),e=F.name;return this.keywords.test(t)&&(e=M[t]),this.finishToken(e,t)},ot.acorn={Parser:ot,version:"8.16.0",defaultOptions:rt,Position:et,SourceLocation:st,getLineInfo:it,Node:Nt,TokenType:R,tokTypes:F,keywordTypes:M,TokContext:bt,tokContexts:St,isIdentifierChar:V,isIdentifierStart:N,Token:he,isNewLine:$,lineBreak:j,lineBreakG:U,nonASCIIwhitespace:q};const fe=new Set(["init","onClick","onMouseover","onMouseout","onResize","onDestroy"]),de=new Map;function me(t,e){for(de.has(t)&&de.delete(t),de.set(t,e);de.size>100;){const t=de.keys().next().value;if(void 0===t)break;de.delete(t)}}function ge(t){let e=5381;for(let s=0;s<t.length;s++)e=(e<<5)+e+t.charCodeAt(s)|0;return(e>>>0).toString(36)}async function xe(t){const s=ge(t.html)+"_"+ge(t.js),i=de.get(s);if(i)return me(s,i),i;const r=(async()=>function(t,s){if(!t||"object"!=typeof t)throw new Error("[hc-compile] component.js must `export default` an object");const i=t,r=i.name,n=i.method??{},a=i.attribute??{},o=i.custom??{},h=i.style??{},c=i.data,l=i.methods??{},p=i.computed,u=i.watch,f=i.mounted,d=i.beforeUnmount,m=i.props,g=new Set(["name","method","attribute","custom","style","option","data","methods","computed","watch","mounted","beforeUnmount","props"]),x={};for(const t of Object.keys(i))g.has(t)||(x[t]=i[t]);const y={};for(const[t,e]of Object.entries(n))fe.has(t)||"function"!=typeof e||(y[t]=e);const v=Object.keys(y),w={...y,...l},b=(s??"").trim()||"<div></div>";return{options:{render:e.compile(b),props:{...m?Array.isArray(m)?Object.fromEntries(m.map(t=>[t,null])):"object"==typeof m?m:{}:{},hcCustomValues:{type:Object,default:()=>({})}},data(){const t="function"==typeof c?c.call(this):c??{},e=this.hcCustomValues??{},s={};for(const[t,i]of Object.entries(o)){let r;try{r=JSON.parse(JSON.stringify(i??{}))}catch{r={...i??{}}}t in e&&r&&"object"==typeof r&&(r.value=e[t]),s[t]=r}return{custom:s,...t}},methods:w,computed:p,watch:(()=>{const t=u&&"object"==typeof u?{...u}:{};return t.hcCustomValues={handler(t){if(t&&this.custom)for(const[e,s]of Object.entries(t)){const t=this.custom[e];t&&"object"==typeof t&&(t.value=s)}},deep:!0},t})(),mounted(){const t=[],e=this.$el;if(e&&e instanceof HTMLElement){Object.assign(e.style,h);for(const[t,s]of Object.entries(a))"string"==typeof s&&s&&e.setAttribute(t,s);for(const s of fe){if("init"===s)continue;const i=n[s];if("function"==typeof i){const r=s.replace(/^on/,"").toLowerCase(),n=t=>{i.call(this,{event:t,data:t})};e.addEventListener(r,n),t.push(()=>e.removeEventListener(r,n))}}}this.__hcCleanup=t;const s=n.init;"function"==typeof s&&s.call(this),"function"==typeof f&&f.call(this)},beforeUnmount(){var t;null==(t=this.__hcCleanup)||t.forEach(t=>{try{t()}catch{}}),this.__hcCleanup=void 0,"function"==typeof d&&d.call(this)},...x},meta:{name:r,attribute:a,style:h,customDecl:o,methodNames:v}}}(function(t){let e;try{const s=ue(t,{ecmaVersion:"latest",sourceType:"module",allowAwaitOutsideFunction:!0}).body.find(t=>"ExportDefaultDeclaration"===t.type);if(!s)throw new Error("[hc-compile] component.js must `export default` an object");e=t.slice(0,s.start)+"module.exports = "+t.slice(s.declaration.start)}catch(t){throw t instanceof Error?t:new Error(String(t))}const s=new Function("module","exports",`"use strict";\n${e}\n;return module.exports;`),i={exports:{}};try{return s(i,i.exports)}catch(t){throw t instanceof Error?t:new Error(String(t))}}(t.js),t.html))();return me(s,r),r.catch(()=>de.delete(s)),r}var ye,ve={exports:{}};const we=function(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if("function"==typeof e){var s=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};s.prototype=e.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(s,e,i.get?i:{enumerable:!0,get:function(){return t[e]}})}),s}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var be,Se,Ce,ke,Ee,_e;function Ae(){if(Se)return be;Se=1;let t=function(){if(ye)return ve.exports;ye=1;var t=String,e=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};return ve.exports=e(),ve.exports.createColors=e,ve.exports}(),e=we;class s extends Error{constructor(t,e,i,r,n,a){super(t),this.name="CssSyntaxError",this.reason=t,n&&(this.file=n),r&&(this.source=r),a&&(this.plugin=a),void 0!==e&&void 0!==i&&("number"==typeof e?(this.line=e,this.column=i):(this.line=e.line,this.column=e.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let i=this.source;null==s&&(s=t.isColorSupported);let r=t=>t,n=t=>t,a=t=>t;if(s){let{bold:s,gray:i,red:o}=t.createColors(!0);n=t=>s(o(t)),r=t=>i(t),e&&(a=t=>e(t))}let o=i.split(/\r?\n/),h=Math.max(this.line-3,0),c=Math.min(this.line+2,o.length),l=String(c).length;return o.slice(h,c).map((t,e)=>{let s=h+1+e,i=" "+(" "+s).slice(-l)+" | ";if(s===this.line){if(t.length>160){let e=20,s=Math.max(0,this.column-e),o=Math.max(this.column+e,this.endColumn+e),h=t.slice(s,o),c=r(i.replace(/\d/g," "))+t.slice(0,Math.min(this.column-1,e-1)).replace(/[^\t]/g," ");return n(">")+r(i)+a(h)+"\n "+c+n("^")}let e=r(i.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(i)+a(t)+"\n "+e+n("^")}return" "+r(i)+a(t)}).join("\n")}toString(){let t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}}return be=s,s.default=s,be}function Ie(){if(ke)return Ce;ke=1;const t=/(<)(\/?style\b)/gi,e=/(<)(!--)/g;function s(s){return"string"!=typeof s?s:s.includes("<")?s.replace(t,"\\3c $2").replace(e,"\\3c $2"):s}const i={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class r{constructor(t){this.builder=t}atrule(t,e){let i=t.raws,r="@"+t.name,n=t.params?this.rawValue(t,"params"):"";if(void 0!==i.afterName?r+=i.afterName:n&&(r+=" "),t.nodes)this.block(t,r+n);else{let a=(i.between||"")+(e?";":"");this.builder(s(r+n+a),t)}}beforeAfter(t,e){let s;s="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");let i=t.parent,r=0;for(;i&&"root"!==i.type;)r+=1,i=i.parent;if(s.includes("\n")){let e=this.raw(t,null,"indent");if(e.length)for(let t=0;t<r;t++)s+=e}return s}block(t,e){let i,r=this.raw(t,"between","beforeOpen");this.builder(s(e+r)+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),i=this.raw(t,"after")):i=this.raw(t,"after","emptyBody"),i&&this.builder(s(i)),this.builder("}",t,"end")}body(t){let e=t.nodes,i=e.length-1;for(;i>0&&"comment"===e[i].type;)i-=1;let r=this.raw(t,"semicolon"),n="document"===t.type;for(let t=0;t<e.length;t++){let a=e[t],o=this.raw(a,"before");o&&this.builder(n?o:s(o)),this.stringify(a,i!==t||r)}}comment(t){let e=this.raw(t,"left","commentLeft"),i=this.raw(t,"right","commentRight");this.builder(s("/*"+e+t.text+i+"*/"),t)}decl(t,e){let i=t.raws,r=this.raw(t,"between","colon"),n=t.prop+r+this.rawValue(t,"value");t.important&&(n+=i.important||" !important"),e&&(n+=";"),this.builder(s(n),t)}document(t){this.body(t)}raw(t,e,s){let r;if(s||(s=e),e&&(r=t.raws[e],void 0!==r))return r;let n=t.parent;if("before"===s){if(!n||"root"===n.type&&n.first===t)return"";if(n&&"document"===n.type)return""}if(!n)return i[s];let a=t.root(),o=a.rawCache||(a.rawCache={});if(void 0!==o[s])return o[s];if("before"===s||"after"===s)return this.beforeAfter(t,s);{let i="raw"+((h=s)[0].toUpperCase()+h.slice(1));this[i]?r=this[i](a,t):a.walk(t=>{if(r=t.raws[e],void 0!==r)return!1})}var h;return void 0===r&&(r=i[s]),o[s]=r,r}rawBeforeClose(t){let e;return t.walk(t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return e=t.raws.after,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){let s;return t.walkComments(t=>{if(void 0!==t.raws.before)return s=t.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),void 0===s?s=this.raw(e,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(t,e){let s;return t.walkDecls(t=>{if(void 0!==t.raws.before)return s=t.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),void 0===s?s=this.raw(e,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(t){let e;return t.walk(t=>{if("decl"!==t.type&&(e=t.raws.between,void 0!==e))return!1}),e}rawBeforeRule(t){let e;return t.walk(s=>{if(s.nodes&&(s.parent!==t||t.first!==s)&&void 0!==s.raws.before)return e=s.raws.before,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){let e;return t.walkDecls(t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1}),e}rawEmptyBody(t){let e;return t.walk(t=>{if(t.nodes&&0===t.nodes.length&&(e=t.raws.after,void 0!==e))return!1}),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk(s=>{let i=s.parent;if(i&&i!==t&&i.parent&&i.parent===t&&void 0!==s.raws.before){let t=s.raws.before.split("\n");return e=t[t.length-1],e=e.replace(/\S/g,""),!1}}),e}rawSemicolon(t){let e;return t.walk(t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&(e=t.raws.semicolon,void 0!==e))return!1}),e}rawValue(t,e){let s=t[e],i=t.raws[e];return i&&i.value===s?i.raw:s}root(t){if(this.body(t),t.raws.after){let e=t.raws.after,i=t.parent&&"document"===t.parent.type;this.builder(i?e:s(e))}}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(s(t.raws.ownSemicolon),t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}}return Ce=r,r.default=r,Ce}function Pe(){if(_e)return Ee;_e=1;let t=Ie();function e(e,s){new t(s).stringify(e)}return Ee=e,e.default=e,Ee}var Oe,Ne,Ve,Re,Te,Le,De,Me,Be,Fe,je,Ue,$e,ze,qe,We,Ge,He,Ke,Qe,Ye,Je,Ze,Xe,ts,es,ss,is,rs,ns,as,os,hs,cs,ls,ps,us,fs,ds,ms,gs,xs,ys,vs,ws,bs,Ss,Cs,ks,Es={};function _s(){return Oe||(Oe=1,Es.isClean=Symbol("isClean"),Es.my=Symbol("my")),Es}function As(){if(Ve)return Ne;Ve=1;let t=Ae(),e=Ie(),s=Pe(),{isClean:i,my:r}=_s();function n(t,e){let s=new t.constructor;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;if("proxyCache"===i)continue;let r=t[i],a=typeof r;"parent"===i&&"object"===a?e&&(s[i]=e):"source"===i?s[i]=r:Array.isArray(r)?s[i]=r.map(t=>n(t,s)):("object"===a&&null!==r&&(r=n(r)),s[i]=r)}return s}function a(t,e){if(e&&void 0!==e.offset)return e.offset;let s=1,i=1,r=0;for(let n=0;n<t.length;n++){if(i===e.line&&s===e.column){r=n;break}"\n"===t[n]?(s=1,i+=1):s+=1}return r}class o{get proxyOf(){return this}constructor(t={}){this.raws={},this[i]=!1,this[r]=!0;for(let e in t)if("nodes"===e){this.nodes=[];for(let s of t[e])"function"==typeof s.clone?this.append(s.clone()):this.append(s)}else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let e in t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let e=n(this);for(let s in t)e[s]=t[s];return e}cloneAfter(t={}){let e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t={}){let e=this.clone(t);return this.parent.insertBefore(this,e),e}error(e,s={}){if(this.source){let{end:t,start:i}=this.rangeBy(s);return this.source.input.error(e,{column:i.column,line:i.line},{column:t.column,line:t.line},s)}return new t(e)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,s)=>(t[e]===s||(t[e]=s,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;let t=this;for(;t=t.parent;)t[i]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let e=this.source.start;if(t.index)e=this.positionInside(t.index);else if(t.word){let s="document"in this.source.input?this.source.input.document:this.source.input.css,i=s.slice(a(s,this.source.start),a(s,this.source.end)).indexOf(t.word);-1!==i&&(e=this.positionInside(i))}return e}positionInside(t){let e=this.source.start.column,s=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,r=a(i,this.source.start),n=r+t;for(let t=r;t<n;t++)"\n"===i[t]?(e=1,s+=1):e+=1;return{column:e,line:s,offset:n}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,s={column:this.source.start.column,line:this.source.start.line,offset:a(e,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:a(e,this.source.end)+1}:{column:s.column+1,line:s.line,offset:s.offset+1};if(t.word){let r=e.slice(a(e,this.source.start),a(e,this.source.end)).indexOf(t.word);-1!==r&&(s=this.positionInside(r),i=this.positionInside(r+t.word.length))}else t.start?s={column:t.start.column,line:t.start.line,offset:a(e,t.start)}:t.index&&(s=this.positionInside(t.index)),t.end?i={column:t.end.column,line:t.end.line,offset:a(e,t.end)}:"number"==typeof t.endIndex?i=this.positionInside(t.endIndex):t.index&&(i=this.positionInside(t.index+1));return(i.line<s.line||i.line===s.line&&i.column<=s.column)&&(i={column:s.column+1,line:s.line,offset:s.offset+1}),{end:i,start:s}}raw(t,s){return(new e).raw(this,t,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let e=this,s=!1;for(let i of t)i===this?s=!0:s?(this.parent.insertAfter(e,i),e=i):this.parent.insertBefore(e,i);s||this.remove()}return this}root(){let t=this;for(;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){let s={},i=null==e;e=e||new Map;let r=0;for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t))continue;if("parent"===t||"proxyCache"===t)continue;let i=this[t];if(Array.isArray(i))s[t]=i.map(t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t);else if("object"==typeof i&&i.toJSON)s[t]=i.toJSON(null,e);else if("source"===t){if(null==i)continue;let n=e.get(i.input);null==n&&(n=r,e.set(i.input,r),r++),s[t]={end:i.end,inputId:n,start:i.start}}else s[t]=i}return i&&(s.inputs=[...e.keys()].map(t=>t.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=s){t.stringify&&(t=t.stringify);let e="";return t(this,t=>{e+=t}),e}warn(t,e,s={}){let i={node:this};for(let t in s)i[t]=s[t];return t.warn(e,i)}}return Ne=o,o.default=o,Ne}function Is(){if(Te)return Re;Te=1;let t=As();class e extends t{constructor(t){super(t),this.type="comment"}}return Re=e,e.default=e,Re}function Ps(){if(De)return Le;De=1;let t=As();class e extends t{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}}return Le=e,e.default=e,Le}function Os(){if(Be)return Me;Be=1;let t,e,s,i,r=Is(),n=Ps(),a=As(),{isClean:o,my:h}=_s();function c(t){return t.map(t=>(t.nodes&&(t.nodes=c(t.nodes)),delete t.source,t))}function l(t){if(t[o]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)l(e)}class p extends a{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...t){for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let e of this.nodes)e.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let e,s,i=this.getIterator();for(;this.indexes[i]<this.proxyOf.nodes.length&&(e=this.indexes[i],s=t(this.proxyOf.nodes[e],e),!1!==s);)this.indexes[i]+=1;return delete this.indexes[i],s}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?(...s)=>t[e](...s.map(t=>"function"==typeof t?(e,s)=>t(e.toProxy(),s):t)):"every"===e||"some"===e?s=>t[e]((t,...e)=>s(t.toProxy(),...e)):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map(t=>t.toProxy()):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,s)=>(t[e]===s||(t[e]=s,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){let s,i=this.index(t),r=this.normalize(e,this.proxyOf.nodes[i]).reverse();i=this.index(t);for(let t of r)this.proxyOf.nodes.splice(i+1,0,t);for(let t in this.indexes)s=this.indexes[t],i<s&&(this.indexes[t]=s+r.length);return this.markDirty(),this}insertBefore(t,e){let s,i=this.index(t),r=0===i&&"prepend",n=this.normalize(e,this.proxyOf.nodes[i],r).reverse();i=this.index(t);for(let t of n)this.proxyOf.nodes.splice(i,0,t);for(let t in this.indexes)s=this.indexes[t],i<=s&&(this.indexes[t]=s+n.length);return this.markDirty(),this}normalize(s,a){if("string"==typeof s)s=c(e(s).nodes);else if(void 0===s)s=[];else if(Array.isArray(s)){s=s.slice(0);for(let t of s)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===s.type&&"document"!==this.type){s=s.nodes.slice(0);for(let t of s)t.parent&&t.parent.removeChild(t,"ignore")}else if(s.type)s=[s];else if(s.prop){if(void 0===s.value)throw new Error("Value field is missed in node creation");"string"!=typeof s.value&&(s.value=String(s.value)),s=[new n(s)]}else if(s.selector||s.selectors)s=[new i(s)];else if(s.name)s=[new t(s)];else{if(!s.text)throw new Error("Unknown node type in node creation");s=[new r(s)]}let u=s.map(t=>(t[h]||p.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[o]&&l(t),t.raws||(t.raws={}),void 0===t.raws.before&&a&&void 0!==a.raws.before&&(t.raws.before=a.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t));return u}prepend(...t){t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){let e;t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);for(let s in this.indexes)e=this.indexes[s],e>=t&&(this.indexes[s]=e-1);return this.markDirty(),this}replaceValues(t,e,s){return s||(s=e,e={}),this.walkDecls(i=>{e.props&&!e.props.includes(i.prop)||e.fast&&!i.value.includes(e.fast)||(i.value=i.value.replace(t,s))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each((e,s)=>{let i;try{i=t(e,s)}catch(t){throw e.addToError(t)}return!1!==i&&e.walk&&(i=e.walk(t)),i})}walkAtRules(t,e){return e?t instanceof RegExp?this.walk((s,i)=>{if("atrule"===s.type&&t.test(s.name))return e(s,i)}):this.walk((s,i)=>{if("atrule"===s.type&&s.name===t)return e(s,i)}):(e=t,this.walk((t,s)=>{if("atrule"===t.type)return e(t,s)}))}walkComments(t){return this.walk((e,s)=>{if("comment"===e.type)return t(e,s)})}walkDecls(t,e){return e?t instanceof RegExp?this.walk((s,i)=>{if("decl"===s.type&&t.test(s.prop))return e(s,i)}):this.walk((s,i)=>{if("decl"===s.type&&s.prop===t)return e(s,i)}):(e=t,this.walk((t,s)=>{if("decl"===t.type)return e(t,s)}))}walkRules(t,e){return e?t instanceof RegExp?this.walk((s,i)=>{if("rule"===s.type&&t.test(s.selector))return e(s,i)}):this.walk((s,i)=>{if("rule"===s.type&&s.selector===t)return e(s,i)}):(e=t,this.walk((t,s)=>{if("rule"===t.type)return e(t,s)}))}}return p.registerParse=t=>{e=t},p.registerRule=t=>{i=t},p.registerAtRule=e=>{t=e},p.registerRoot=t=>{s=t},Me=p,p.default=p,p.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,t.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,n.prototype):"comment"===e.type?Object.setPrototypeOf(e,r.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[h]=!0,e.nodes&&e.nodes.forEach(t=>{p.rebuild(t)})},Me}function Ns(){if(je)return Fe;je=1;let t=Os();class e extends t{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}}return Fe=e,e.default=e,t.registerAtRule(e),Fe}function Vs(){if($e)return Ue;$e=1;let t,e,s=Os();class i extends s{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(s={}){return new t(new e,this,s).stringify()}}return i.registerLazyResult=e=>{t=e},i.registerProcessor=t=>{e=t},Ue=i,i.default=i,Ue}function Rs(){if(Ge)return We;Ge=1;let{existsSync:t,readFileSync:e}=we,{dirname:s,join:i}=we,{SourceMapConsumer:r,SourceMapGenerator:n}=we;class a{constructor(t,e){if(!1===e.map)return;e.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let i=e.map?e.map.prev:void 0,r=this.loadMap(e.from,i);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=s(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new r(this.json||this.text)),this.consumerCache}decodeInline(t){let e=t.match(/^data:application\/json;charset=utf-?8,/)||t.match(/^data:application\/json,/);if(e)return decodeURIComponent(t.substr(e[0].length));let s=t.match(/^data:application\/json;charset=utf-?8;base64,/)||t.match(/^data:application\/json;base64,/);if(s)return i=t.substr(s[0].length),Buffer?Buffer.from(i,"base64").toString():window.atob(i);var i;let r=t.slice(22);throw r=r.slice(0,r.indexOf(",")),new Error("Unsupported source map encoding "+r)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/g);if(!e)return;let s=t.lastIndexOf(e.pop()),i=t.indexOf("*/",s);s>-1&&i>-1&&(this.annotation=this.getAnnotationURL(t.substring(s,i)))}loadFile(i,r,n){if(n||this.unsafeMap||/\.map$/i.test(i))return this.root=s(i),t(i)?(this.mapFile=i,e(i,"utf-8").toString().trim()):void 0}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof r)return n.fromSourceMap(e).toString();if(e instanceof n)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}{let s=e(t);if(s){let e=this.loadFile(s,t,!0);if(!e)throw new Error("Unable to load previous source map: "+s.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;t&&(e=i(s(t),e));let r=this.loadFile(e,t,!1);if(r)try{this.json=JSON.parse(r.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return r}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return We=a,a.default=a,We}function Ts(){if(Ke)return He;Ke=1;let{nanoid:t}=(qe||(qe=1,ze={nanoid:(t=21)=>{let e="",s=0|t;for(;s--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e=21)=>(s=e)=>{let i="",r=0|s;for(;r--;)i+=t[Math.random()*t.length|0];return i}}),ze),{isAbsolute:e,resolve:s}=we,{SourceMapConsumer:i,SourceMapGenerator:r}=we,{fileURLToPath:n,pathToFileURL:a}=we,o=Ae(),h=Rs(),c=we,l=Symbol("lineToIndexCache"),p=Boolean(i&&r),u=Boolean(s&&e);function f(t){if(t[l])return t[l];let e=t.css.split("\n"),s=new Array(e.length),i=0;for(let t=0,r=e.length;t<r;t++)s[t]=i,i+=e[t].length+1;return t[l]=s,s}class d{get from(){return this.file||this.id}constructor(i,r={}){if(null==i||"object"==typeof i&&!i.toString)throw new Error(`PostCSS received ${i} instead of CSS string`);if(this.css=i.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,r.document&&(this.document=r.document.toString()),r.from&&(!u||/^\w+:\/\//.test(r.from)||e(r.from)?this.file=r.from:this.file=s(r.from)),u&&p){let t=new h(this.css,r);if(t.text){this.map=t;let e=t.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}}this.file||(this.id="<input css "+t(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,s,i={}){let r,n,h,c,l;if(e&&"object"==typeof e){let t=e,i=s;if("number"==typeof t.offset){c=t.offset;let i=this.fromOffset(c);e=i.line,s=i.col}else e=t.line,s=t.column,c=this.fromLineAndColumn(e,s);if("number"==typeof i.offset){h=i.offset;let t=this.fromOffset(h);n=t.line,r=t.col}else n=i.line,r=i.column,h=this.fromLineAndColumn(i.line,i.column)}else if(s)c=this.fromLineAndColumn(e,s);else{c=e;let t=this.fromOffset(c);e=t.line,s=t.col}let p=this.origin(e,s,n,r);return l=p?new o(t,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,i.plugin):new o(t,void 0===n?e:{column:s,line:e},void 0===n?s:{column:r,line:n},this.css,this.file,i.plugin),l.input={column:s,endColumn:r,endLine:n,endOffset:h,line:e,offset:c,source:this.css},this.file&&(a&&(l.input.url=a(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(t,e){return f(this)[t-1]+e-1}fromOffset(t){let e=f(this),s=0;if(t>=e[e.length-1])s=e.length-1;else{let i,r=e.length-2;for(;s<r;)if(i=s+(r-s>>1),t<e[i])r=i-1;else{if(!(t>=e[i+1])){s=i;break}s=i+1}}return{col:t-e[s]+1,line:s+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:s(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,s,i,r){if(!this.map)return!1;let o,h,c=this.map.consumer(),l=c.originalPositionFor({column:s,line:t});if(!l.source)return!1;"number"==typeof i&&(o=c.originalPositionFor({column:r,line:i})),h=e(l.source)?a(l.source):new URL(l.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let p={column:l.column,endColumn:o&&o.column,endLine:o&&o.line,line:l.line,url:h.toString()};if("file:"===h.protocol){if(!n)throw new Error("file: protocol is not available in this PostCSS build");p.file=n(h)}let u=c.sourceContentFor(l.source);return u&&(p.source=u),p}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}}return He=d,d.default=d,c&&c.registerInput&&c.registerInput(d),He}function Ls(){if(Ye)return Qe;Ye=1;let t,e,s=Os();class i extends s{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,s){let i=super.normalize(t);if(e)if("prepend"===s)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let t of i)t.raws.before=e.raws.before;return i}removeChild(t,e){let s=this.index(t);return!e&&0===s&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(t)}toResult(s={}){return new t(new e,this,s).stringify()}}return i.registerLazyResult=e=>{t=e},i.registerProcessor=t=>{e=t},Qe=i,i.default=i,s.registerRoot(i),Qe}function Ds(){if(Ze)return Je;Ze=1;let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n","\t"]),split(t,e,s){let i=[],r="",n=!1,a=0,o=!1,h="",c=!1;for(let s of t)c?c=!1:"\\"===s?c=!0:o?s===h&&(o=!1):'"'===s||"'"===s?(o=!0,h=s):"("===s?a+=1:")"===s?a>0&&(a-=1):0===a&&e.includes(s)&&(n=!0),n?(""!==r&&i.push(r.trim()),r="",n=!1):r+=s;return(s||""!==r)&&i.push(r.trim()),i}};return Je=t,t.default=t,Je}function Ms(){if(ts)return Xe;ts=1;let t=Os(),e=Ds();class s extends t{get selectors(){return e.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,s=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(s)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}}return Xe=s,s.default=s,t.registerRule(s),Xe}function Bs(){if(rs)return is;rs=1;let{dirname:t,relative:e,resolve:s,sep:i}=we,{SourceMapConsumer:r,SourceMapGenerator:n}=we,{pathToFileURL:a}=we,o=Ts(),h=Boolean(r&&n),c=Boolean(t&&s&&e&&i);return is=class{constructor(t,e,s,i){this.stringify=t,this.mapOpts=s.map||{},this.root=e,this.opts=s,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let e of this.previous()){let s,i=this.toUrl(this.path(e.file)),n=e.root||t(e.file);!1===this.mapOpts.sourcesContent?(s=new r(e.text),s.sourcesContent&&(s.sourcesContent=null)):s=e.consumer(),this.map.applySourceMap(s,i,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],"comment"===t.type&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(e)}else if(this.css){let t;for(;-1!==(t=this.css.lastIndexOf("/*#"));){let e=this.css.indexOf("*/",t+3);if(-1===e)break;for(;t>0&&"\n"===this.css[t-1];)t--;this.css=this.css.slice(0,t)+this.css.slice(e+2)}}}generate(){if(this.clearAnnotation(),c&&h&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,e=>{t+=e}),[t]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=n.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new n({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new n({file:this.outputFile(),ignoreInvalidMapping:!0});let t,e,s=1,i=1,r="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(n,o,h)=>{if(this.css+=n,o&&"end"!==h&&(a.generated.line=s,a.generated.column=i-1,o.source&&o.source.start?(a.source=this.sourcePath(o),a.original.line=o.source.start.line,a.original.column=o.source.start.column-1,this.map.addMapping(a)):(a.source=r,a.original.line=1,a.original.column=0,this.map.addMapping(a))),e=n.match(/\n/g),e?(s+=e.length,t=n.lastIndexOf("\n"),i=n.length-t):i+=n.length,o&&"start"!==h){let t=o.parent||{raws:{}};("decl"===o.type||"atrule"===o.type&&!o.nodes)&&o===t.last&&!t.raws.semicolon||(o.source&&o.source.end?(a.source=this.sourcePath(o),a.original.line=o.source.end.line,a.original.column=o.source.end.column-1,a.generated.line=s,a.generated.column=i-2,this.map.addMapping(a)):(a.source=r,a.original.line=1,a.original.column=0,a.generated.line=s,a.generated.column=i-1,this.map.addMapping(a)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(t=>t.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some(t=>t.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(t=>t.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(i){if(this.mapOpts.absolute)return i;if(60===i.charCodeAt(0))return i;if(/^\w+:\/\//.test(i))return i;let r=this.memoizedPaths.get(i);if(r)return r;let n=this.opts.to?t(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=t(s(n,this.mapOpts.annotation)));let a=e(n,i);return this.memoizedPaths.set(i,a),a}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}});else{let t=new o(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(e=>{if(e.source){let s=e.source.input.from;if(s&&!t[s]){t[s]=!0;let i=this.usesFileUrls?this.toFileUrl(s):this.toUrl(this.path(s));this.map.setSourceContent(i,e.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let e=this.memoizedFileURLs.get(t);if(e)return e;if(a){let e=a(t).toString();return this.memoizedFileURLs.set(t,e),e}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let e=this.memoizedURLs.get(t);if(e)return e;"\\"===i&&(t=t.replace(/\\/g,"/"));let s=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,s),s}},is}function Fs(){if(ls)return cs;ls=1;let t=Os(),e=Ts(),s=function(){if(hs)return os;hs=1;let t=Ns(),e=Is(),s=Ps(),i=Ls(),r=Ms(),n=function(){if(as)return ns;as=1;const t="'".charCodeAt(0),e='"'.charCodeAt(0),s="\\".charCodeAt(0),i="/".charCodeAt(0),r="\n".charCodeAt(0),n=" ".charCodeAt(0),a="\f".charCodeAt(0),o="\t".charCodeAt(0),h="\r".charCodeAt(0),c="[".charCodeAt(0),l="]".charCodeAt(0),p="(".charCodeAt(0),u=")".charCodeAt(0),f="{".charCodeAt(0),d="}".charCodeAt(0),m=";".charCodeAt(0),g="*".charCodeAt(0),x=":".charCodeAt(0),y="@".charCodeAt(0),v=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return ns=function(C,k={}){let E,_,A,I,P,O,N,V,R,T,L=C.css.valueOf(),D=k.ignoreErrors,M=L.length,B=0,F=[],j=[],U=-1;function $(t){throw C.error("Unclosed "+t,B)}return{back:function(t){j.push(t)},endOfFile:function(){return 0===j.length&&B>=M},nextToken:function(C){if(j.length)return j.pop();if(B>=M)return;let k=!!C&&C.ignoreUnclosed;switch(E=L.charCodeAt(B),E){case r:case n:case o:case h:case a:I=B;do{I+=1,E=L.charCodeAt(I)}while(E===n||E===r||E===o||E===h||E===a);O=["space",L.slice(B,I)],B=I-1;break;case c:case l:case f:case d:case x:case m:case u:{let t=String.fromCharCode(E);O=[t,t,B];break}case p:if(T=F.length?F.pop()[1]:"",R=L.charCodeAt(B+1),"url"===T&&R!==t&&R!==e&&R!==n&&R!==r&&R!==o&&R!==a&&R!==h){I=B;do{if(N=!1,I=L.indexOf(")",I+1),-1===I){if(D||k){I=B;break}$("bracket")}for(V=I;L.charCodeAt(V-1)===s;)V-=1,N=!N}while(N);O=["brackets",L.slice(B,I+1),B,I],B=I}else B<=U?O=["(","(",B]:(I=L.indexOf(")",B+1),_=L.slice(B,I+1),-1===I||b.test(_)?(U=-1===I?M:I,O=["(","(",B]):(O=["brackets",_,B,I],B=I));break;case t:case e:P=E===t?"'":'"',I=B;do{if(N=!1,I=L.indexOf(P,I+1),-1===I){if(D||k){I=B+1;break}$("string")}for(V=I;L.charCodeAt(V-1)===s;)V-=1,N=!N}while(N);O=["string",L.slice(B,I+1),B,I],B=I;break;case y:v.lastIndex=B+1,v.test(L),I=0===v.lastIndex?L.length-1:v.lastIndex-2,O=["at-word",L.slice(B,I+1),B,I],B=I;break;case s:for(I=B,A=!0;L.charCodeAt(I+1)===s;)I+=1,A=!A;if(E=L.charCodeAt(I+1),A&&E!==i&&E!==n&&E!==r&&E!==o&&E!==h&&E!==a&&(I+=1,S.test(L.charAt(I)))){for(;S.test(L.charAt(I+1));)I+=1;L.charCodeAt(I+1)===n&&(I+=1)}O=["word",L.slice(B,I+1),B,I],B=I;break;default:E===i&&L.charCodeAt(B+1)===g?(I=L.indexOf("*/",B+2)+1,0===I&&(D||k?I=L.length:$("comment")),O=["comment",L.slice(B,I+1),B,I],B=I):(w.lastIndex=B+1,w.test(L),I=0===w.lastIndex?L.length-1:w.lastIndex-2,O=["word",L.slice(B,I+1),B,I],F.push(O),B=I)}return B++,O},position:function(){return B}}}}();const a={empty:!0,space:!0};return os=class{constructor(t){this.input=t,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(e){let s,i,r,n=new t;n.name=e[1].slice(1),""===n.name&&this.unnamedAtrule(n,e),this.init(n,e[2]);let a=!1,o=!1,h=[],c=[];for(;!this.tokenizer.endOfFile();){if(s=(e=this.tokenizer.nextToken())[0],"("===s||"["===s?c.push("("===s?")":"]"):"{"===s&&c.length>0?c.push("}"):s===c[c.length-1]&&c.pop(),0===c.length){if(";"===s){n.source.end=this.getPosition(e[2]),n.source.end.offset++,this.semicolon=!0;break}if("{"===s){o=!0;break}if("}"===s){if(h.length>0){for(r=h.length-1,i=h[r];i&&"space"===i[0];)i=h[--r];i&&(n.source.end=this.getPosition(i[3]||i[2]),n.source.end.offset++)}this.end(e);break}h.push(e)}else h.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(h),h.length?(n.raws.afterName=this.spacesAndCommentsFromStart(h),this.raw(n,"params",h),a&&(e=h[h.length-1],n.source.end=this.getPosition(e[3]||e[2]),n.source.end.offset++,this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),o&&(n.nodes=[],this.current=n)}checkMissedSemicolon(t){let e=this.colon(t);if(!1===e)return;let s,i=0;for(let r=e-1;r>=0&&(s=t[r],"space"===s[0]||(i+=1,2!==i));r--);throw this.input.error("Missed semicolon","word"===s[0]?s[3]+1:s[2])}colon(t){let e,s,i,r=0;for(let[n,a]of t.entries()){if(s=a,i=s[0],"("===i&&(r+=1),")"===i&&(r-=1),0===r&&":"===i){if(e){if("word"===e[0]&&"progid"===e[1])continue;return n}this.doubleColon(s)}e=s}return!1}comment(t){let s=new e;this.init(s,t[2]),s.source.end=this.getPosition(t[3]||t[2]),s.source.end.offset++;let i=t[1].slice(2,-2);if(i.trim()){let t=i.match(/^(\s*)([^]*\S)(\s*)$/);s.text=t[2],s.raws.left=t[1],s.raws.right=t[3]}else s.text="",s.raws.left=i,s.raws.right=""}createTokenizer(){this.tokenizer=n(this.input)}decl(t,e){let i=new s;this.init(i,t[0][2]);let r,n=t[t.length-1];for(";"===n[0]&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(n[3]||n[2]||function(t){for(let e=t.length-1;e>=0;e--){let s=t[e],i=s[3]||s[2];if(i)return i}}(t)),i.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;i.prop+=t.shift()[1]}for(i.raws.between="";t.length;){if(r=t.shift(),":"===r[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}"_"!==i.prop[0]&&"*"!==i.prop[0]||(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let a,o=[];for(;t.length&&(a=t[0][0],"space"===a||"comment"===a);)o.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(r=t[e],"!important"===r[1].toLowerCase()){i.important=!0;let s=this.stringFrom(t,e);s=this.spacesFromEnd(t)+s," !important"!==s&&(i.raws.important=s);break}if("important"===r[1].toLowerCase()){let s=t.slice(0),r="";for(let t=e;t>0;t--){let e=s[t][0];if(r.trim().startsWith("!")&&"space"!==e)break;r=s.pop()[1]+r}r.trim().startsWith("!")&&(i.important=!0,i.raws.important=r,t=s)}if("space"!==r[0]&&"comment"!==r[0])break}t.some(t=>"space"!==t[0]&&"comment"!==t[0])&&(i.raws.between+=o.map(t=>t[1]).join(""),o=[]),this.raw(i,"value",o.concat(t),e),i.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let e=new r;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="",e.source.end=this.getPosition(t[2]),e.source.end.offset+=e.raws.ownSemicolon.length)}}getPosition(t){let e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){let e=!1,s=null,i=!1,r=null,n=[],a=t[1].startsWith("--"),o=[],h=t;for(;h;){if(s=h[0],o.push(h),"("===s||"["===s)r||(r=h),n.push("("===s?")":"]");else if(a&&i&&"{"===s)r||(r=h),n.push("}");else if(0===n.length){if(";"===s){if(i)return void this.decl(o,a);break}if("{"===s)return void this.rule(o);if("}"===s){this.tokenizer.back(o.pop()),e=!0;break}":"===s&&(i=!0)}else s===n[n.length-1]&&(n.pop(),0===n.length&&(r=null));h=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),n.length>0&&this.unclosedBracket(r),e&&i){if(!a)for(;o.length&&(h=o[o.length-1][0],"space"===h||"comment"===h);)this.tokenizer.back(o.pop());this.decl(o,a)}else this.unknownWord(o)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,s,i){let r,n,o,h,c=s.length,l="",p=!0;for(let t=0;t<c;t+=1)r=s[t],n=r[0],"space"!==n||t!==c-1||i?"comment"===n?(h=s[t-1]?s[t-1][0]:"empty",o=s[t+1]?s[t+1][0]:"empty",a[h]||a[o]||","===l.slice(-1)?p=!1:l+=r[1]):l+=r[1]:p=!1;if(!p){let i=s.reduce((t,e)=>t+e[1],"");t.raws[e]={raw:i,value:l}}t[e]=l}rule(t){t.pop();let e=new r;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){let e,s="";for(;t.length&&(e=t[t.length-1][0],"space"===e||"comment"===e);)s=t.pop()[1]+s;return s}spacesAndCommentsFromStart(t){let e,s="";for(;t.length&&(e=t[0][0],"space"===e||"comment"===e);)s+=t.shift()[1];return s}spacesFromEnd(t){let e,s="";for(;t.length&&(e=t[t.length-1][0],"space"===e);)s=t.pop()[1]+s;return s}stringFrom(t,e){let s="";for(let i=e;i<t.length;i++)s+=t[i][1];return t.splice(e,t.length-e),s}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}},os}();function i(t,i){let r=new e(t,i),n=new s(r);try{n.parse()}catch(t){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===t.name&&i&&i.from&&(/\.scss$/i.test(i.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(i.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(i.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return n.root}return cs=i,i.default=i,t.registerParse(i),cs}function js(){if(us)return ps;us=1;class t{constructor(t,e={}){if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ps=t,t.default=t,ps}function Us(){if(ds)return fs;ds=1;let t=js();class e{get content(){return this.css}constructor(t,e,s){this.processor=t,this.messages=[],this.root=e,this.opts=s,this.css="",this.map=void 0}toString(){return this.css}warn(e,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let i=new t(e,s);return this.messages.push(i),i}warnings(){return this.messages.filter(t=>"warning"===t.type)}}return fs=e,e.default=e,fs}function $s(){if(gs)return ms;gs=1;let t={};return ms=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}}function zs(){if(ys)return xs;ys=1;let t=Os(),e=Vs(),s=Bs(),i=Fs(),r=Us(),n=Ls(),a=Pe(),{isClean:o,my:h}=_s(),c=$s();const l={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},u={Once:!0,postcssPlugin:!0,prepare:!0};function f(t){return"object"==typeof t&&"function"==typeof t.then}function d(t){let e=!1,s=l[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[s,s+"-"+e,0,s+"Exit",s+"Exit-"+e]:e?[s,s+"-"+e,s+"Exit",s+"Exit-"+e]:t.append?[s,0,s+"Exit"]:[s,s+"Exit"]}function m(t){let e;return e="document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:d(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function g(t){return t[o]=!1,t.nodes&&t.nodes.forEach(t=>g(t)),t}let x={};class y{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,s,n){let a;if(this.stringified=!1,this.processed=!1,"object"!=typeof s||null===s||"root"!==s.type&&"document"!==s.type)if(s instanceof y||s instanceof r)a=g(s.root),s.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=s.map);else{let e=i;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{a=e(s,n)}catch(t){this.processed=!0,this.error=t}a&&!a[h]&&t.rebuild(a)}else a=g(s);this.result=new r(e,a,n),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let s=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(s.postcssVersion&&"production"!==process.env.NODE_ENV){let t=s.postcssPlugin,e=s.postcssVersion,i=this.result.processor.version,r=e.split("."),n=i.split(".");(r[0]!==n[0]||parseInt(r[1])>parseInt(n[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+t+" uses "+e+". Perhaps this is the source of the error below.")}}else t.plugin=s.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};let t=(t,e,s)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,s])};for(let e of this.plugins)if("object"==typeof e)for(let s in e){if(!p[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[s])if("object"==typeof e[s])for(let i in e[s])t(e,"*"===i?s:s+"-"+i.toLowerCase(),e[s][i]);else"function"==typeof e[s]&&t(e,s,e[s])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let e=this.plugins[t],s=this.runOnRoot(e);if(f(s))try{await s}catch(t){throw this.handleError(t)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[o];){t[o]=!0;let e=[m(t)];for(;e.length>0;){let t=this.visitTick(e);if(f(t))try{await t}catch(t){let s=e[e.length-1].node;throw this.handleError(t,s)}}}if(this.listeners.OnceExit)for(let[e,s]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map(t=>s(t,this.helpers));await Promise.all(e)}else await s(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map(e=>t.Once(e,this.helpers));return f(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=a;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let i=this.result.root.source;if(void 0===t.map&&!(i&&i.input&&i.input.map)){let t="";return e(this.result.root,e=>{t+=e}),this.result.css=t,this.result}let r=new s(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins)if(f(this.runOnRoot(t)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[o];)t[o]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||c("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(let[s,i]of t){let t;this.result.lastPlugin=s;try{t=i(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(f(t))throw this.getAsyncError()}}visitTick(t){let e=t[t.length-1],{node:s,visitors:i}=e;if("root"!==s.type&&"document"!==s.type&&!s.parent)return void t.pop();if(i.length>0&&e.visitorIndex<i.length){let[t,r]=i[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===i.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=t;try{return r(s.toProxy(),this.helpers)}catch(t){throw this.handleError(t,s)}}if(0!==e.iterator){let i,r=e.iterator;for(;i=s.nodes[s.indexes[r]];)if(s.indexes[r]+=1,!i[o])return i[o]=!0,void t.push(m(i));e.iterator=0,delete s.indexes[r]}let r=e.events;for(;e.eventIndex<r.length;){let t=r[e.eventIndex];if(e.eventIndex+=1,0===t)return void(s.nodes&&s.nodes.length&&(s[o]=!0,e.iterator=s.getIterator()));if(this.listeners[t])return void(e.visitors=this.listeners[t])}t.pop()}walkSync(t){t[o]=!0;let e=d(t);for(let s of e)if(0===s)t.nodes&&t.each(t=>{t[o]||this.walkSync(t)});else{let e=this.listeners[s];if(e&&this.visitSync(e,t.toProxy()))return}}warnings(){return this.sync().warnings()}}return y.registerPostcss=t=>{x=t},xs=y,y.default=y,n.registerLazyResult(y),e.registerLazyResult(y),xs}var qs=function(){if(ks)return Cs;ks=1;let t=Ns(),e=Is(),s=Os(),i=Ae(),r=Ps(),n=Vs(),a=function(){if(ss)return es;ss=1;let t=Ns(),e=Is(),s=Ps(),i=Ts(),r=Rs(),n=Ls(),a=Ms();function o(h,c){if(Array.isArray(h))return h.map(t=>o(t));let{inputs:l,...p}=h;if(l){c=[];for(let t of l){let e={...t,__proto__:i.prototype};e.map&&(e.map={...e.map,__proto__:r.prototype}),c.push(e)}}if(p.nodes&&(p.nodes=h.nodes.map(t=>o(t,c))),p.source){let{inputId:t,...e}=p.source;p.source=e,null!=t&&(p.source.input=c[t])}if("root"===p.type)return new n(p);if("decl"===p.type)return new s(p);if("rule"===p.type)return new a(p);if("comment"===p.type)return new e(p);if("atrule"===p.type)return new t(p);throw new Error("Unknown node type: "+h.type)}return es=o,o.default=o,es}(),o=Ts(),h=zs(),c=Ds(),l=As(),p=Fs(),u=function(){if(Ss)return bs;Ss=1;let t=Vs(),e=zs(),s=function(){if(ws)return vs;ws=1;let t=Bs(),e=Fs(),s=Us(),i=Pe(),r=$s();class n{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,s=e;try{t=s(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let a=i;this.result=new s(this._processor,void 0,this._opts),this.result.css=r;let o=this;Object.defineProperty(this.result,"root",{get:()=>o.root});let h=new t(a,void 0,this._opts,r);if(h.isMap()){let[t,e]=h.generate();t&&(this.result.css=t),e&&(this.result.map=e)}else h.clearAnnotation(),this.result.css=h.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this._opts||r("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}toString(){return this._css}warnings(){return[]}}return vs=n,n.default=n,vs}(),i=Ls();class r{constructor(t=[]){this.version="8.5.14",this.plugins=this.normalize(t)}normalize(t){let e=[];for(let s of t)if(!0===s.postcss?s=s():s.postcss&&(s=s.postcss),"object"==typeof s&&Array.isArray(s.plugins))e=e.concat(s.plugins);else if("object"==typeof s&&s.postcssPlugin)e.push(s);else if("function"==typeof s)e.push(s);else{if("object"!=typeof s||!s.parse&&!s.stringify)throw new Error(s+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return e}process(t,i={}){return this.plugins.length||i.parser||i.stringifier||i.syntax?new e(this,t,i):new s(this,t,i)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}}return bs=r,r.default=r,i.registerProcessor(r),t.registerProcessor(r),bs}(),f=Us(),d=Ls(),m=Ms(),g=Pe(),x=js();function y(...t){return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new u(t)}return y.plugin=function(t,e){let s,i=!1;function r(...s){console&&console.warn&&!i&&(i=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let r=e(...s);return r.postcssPlugin=t,r.postcssVersion=(new u).version,r}return Object.defineProperty(r,"postcss",{get:()=>(s||(s=r()),s)}),r.process=function(t,e,s){return y([r(s)]).process(t,e)},r},y.stringify=g,y.parse=p,y.fromJSON=a,y.list=c,y.comment=t=>new e(t),y.atRule=e=>new t(e),y.decl=t=>new r(t),y.rule=t=>new m(t),y.root=t=>new d(t),y.document=t=>new n(t),y.CssSyntaxError=i,y.Declaration=r,y.Container=s,y.Processor=u,y.Document=n,y.Comment=e,y.Warning=x,y.AtRule=t,y.Result=f,y.Input=o,y.Rule=m,y.Root=d,y.Node=l,h.registerPostcss(y),Cs=y,y.default=y,Cs}();const Ws=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(qs);Ws.stringify,Ws.fromJSON,Ws.plugin,Ws.parse,Ws.list,Ws.document,Ws.comment,Ws.atRule,Ws.rule,Ws.decl,Ws.root,Ws.CssSyntaxError,Ws.Declaration,Ws.Container,Ws.Processor,Ws.Document,Ws.Comment,Ws.Warning,Ws.AtRule,Ws.Result,Ws.Input,Ws.Rule,Ws.Root,Ws.Node;const Gs=new Set(["body","html",":root","*"]);function Hs(t,e){return t&&t.trim()?Ws([(s=`[data-vbi-type="${e}"]`,{postcssPlugin:"hc-scope",AtRule(t){if("import"===t.name)return console.warn("[hc-css-scope] @import 已被拒绝(防外部资源加载):",t.params),void t.remove();"font-face"===t.name&&console.warn("[hc-css-scope] @font-face 全局生效,font-family 命名注意冲突")},Rule(t){(function(t){let e=t.parent;for(;e&&"object"==typeof e;){const t=e;if("atrule"===t.type&&/keyframes$/i.test(t.name??""))return!0;e=t.parent}return!1})(t)||(t.selectors=t.selectors.map(t=>function(t,e){const s=t.trim();if(!s)return s;if(Gs.has(s))return e;for(const t of Gs){const i=s.charAt(t.length);if(s.startsWith(t)&&(" "===i||">"===i||"+"===i||"~"===i||","===i))return e+s.slice(t.length)}return`${e} ${s}`}(t,s)))}})]).process(t,{from:void 0}).css:"";var s}const Ks=new Map;function Qs(t){let e=5381;for(let s=0;s<t.length;s++)e=(e<<5)+e+t.charCodeAt(s)|0;return(e>>>0).toString(36)}function Ys(t){const e=t.replace(/[^a-zA-Z0-9_-]/g,"_");return e===t?`hc-style-${e}`:`hc-style-${e}-${Qs(t).slice(0,6)}`}function Js(t,e){var s;const i=e??"",r=Ys(t),n=Ks.get(t);if(!i.trim())return null==(s=document.getElementById(r))||s.remove(),void(n&&Ks.set(t,{...n,cssHash:""}));const a=Qs(i);if(n&&n.cssHash===a)return;let o;try{o=Hs(i,t)}catch(e){return void console.warn("[hc-css-scope]",t,"PostCSS process failed:",e)}!function(t,e){const s=Ys(t);let i=document.getElementById(s);i||(i=document.createElement("style"),i.id=s,i.setAttribute("data-hc-scope",t),document.head.appendChild(i)),i.textContent=e}(t,o),n?Ks.set(t,{...n,cssHash:a}):Ks.set(t,{cssHash:a,refCount:0})}function Zs(t,e){Js(t,e);const s=Ks.get(t);s?Ks.set(t,{...s,refCount:s.refCount+1}):Ks.set(t,{cssHash:"",refCount:1})}function Xs(t){var e;const s=Ks.get(t);if(!s)return;const i=s.refCount-1;i<=0?(null==(e=document.getElementById(Ys(t)))||e.remove(),Ks.delete(t)):Ks.set(t,{...s,refCount:i})}function ti(t,e,s){s(t,e)}function ei(t,e,s){}var si={};si.Program=si.BlockStatement=si.StaticBlock=function(t,e,s){for(var i=0,r=t.body;i<r.length;i+=1)s(r[i],e,"Statement")},si.Statement=ti,si.EmptyStatement=ei,si.ExpressionStatement=si.ParenthesizedExpression=si.ChainExpression=function(t,e,s){return s(t.expression,e,"Expression")},si.IfStatement=function(t,e,s){s(t.test,e,"Expression"),s(t.consequent,e,"Statement"),t.alternate&&s(t.alternate,e,"Statement")},si.LabeledStatement=function(t,e,s){return s(t.body,e,"Statement")},si.BreakStatement=si.ContinueStatement=ei,si.WithStatement=function(t,e,s){s(t.object,e,"Expression"),s(t.body,e,"Statement")},si.SwitchStatement=function(t,e,s){s(t.discriminant,e,"Expression");for(var i=0,r=t.cases;i<r.length;i+=1)s(r[i],e)},si.SwitchCase=function(t,e,s){t.test&&s(t.test,e,"Expression");for(var i=0,r=t.consequent;i<r.length;i+=1)s(r[i],e,"Statement")},si.ReturnStatement=si.YieldExpression=si.AwaitExpression=function(t,e,s){t.argument&&s(t.argument,e,"Expression")},si.ThrowStatement=si.SpreadElement=function(t,e,s){return s(t.argument,e,"Expression")},si.TryStatement=function(t,e,s){s(t.block,e,"Statement"),t.handler&&s(t.handler,e),t.finalizer&&s(t.finalizer,e,"Statement")},si.CatchClause=function(t,e,s){t.param&&s(t.param,e,"Pattern"),s(t.body,e,"Statement")},si.WhileStatement=si.DoWhileStatement=function(t,e,s){s(t.test,e,"Expression"),s(t.body,e,"Statement")},si.ForStatement=function(t,e,s){t.init&&s(t.init,e,"ForInit"),t.test&&s(t.test,e,"Expression"),t.update&&s(t.update,e,"Expression"),s(t.body,e,"Statement")},si.ForInStatement=si.ForOfStatement=function(t,e,s){s(t.left,e,"ForInit"),s(t.right,e,"Expression"),s(t.body,e,"Statement")},si.ForInit=function(t,e,s){"VariableDeclaration"===t.type?s(t,e):s(t,e,"Expression")},si.DebuggerStatement=ei,si.FunctionDeclaration=function(t,e,s){return s(t,e,"Function")},si.VariableDeclaration=function(t,e,s){for(var i=0,r=t.declarations;i<r.length;i+=1)s(r[i],e)},si.VariableDeclarator=function(t,e,s){s(t.id,e,"Pattern"),t.init&&s(t.init,e,"Expression")},si.Function=function(t,e,s){t.id&&s(t.id,e,"Pattern");for(var i=0,r=t.params;i<r.length;i+=1)s(r[i],e,"Pattern");s(t.body,e,t.expression?"Expression":"Statement")},si.Pattern=function(t,e,s){"Identifier"===t.type?s(t,e,"VariablePattern"):"MemberExpression"===t.type?s(t,e,"MemberPattern"):s(t,e)},si.VariablePattern=ei,si.MemberPattern=ti,si.RestElement=function(t,e,s){return s(t.argument,e,"Pattern")},si.ArrayPattern=function(t,e,s){for(var i=0,r=t.elements;i<r.length;i+=1){var n=r[i];n&&s(n,e,"Pattern")}},si.ObjectPattern=function(t,e,s){for(var i=0,r=t.properties;i<r.length;i+=1){var n=r[i];"Property"===n.type?(n.computed&&s(n.key,e,"Expression"),s(n.value,e,"Pattern")):"RestElement"===n.type&&s(n.argument,e,"Pattern")}},si.Expression=ti,si.ThisExpression=si.Super=si.MetaProperty=ei,si.ArrayExpression=function(t,e,s){for(var i=0,r=t.elements;i<r.length;i+=1){var n=r[i];n&&s(n,e,"Expression")}},si.ObjectExpression=function(t,e,s){for(var i=0,r=t.properties;i<r.length;i+=1)s(r[i],e)},si.FunctionExpression=si.ArrowFunctionExpression=si.FunctionDeclaration,si.SequenceExpression=function(t,e,s){for(var i=0,r=t.expressions;i<r.length;i+=1)s(r[i],e,"Expression")},si.TemplateLiteral=function(t,e,s){for(var i=0,r=t.quasis;i<r.length;i+=1)s(r[i],e);for(var n=0,a=t.expressions;n<a.length;n+=1)s(a[n],e,"Expression")},si.TemplateElement=ei,si.UnaryExpression=si.UpdateExpression=function(t,e,s){s(t.argument,e,"Expression")},si.BinaryExpression=si.LogicalExpression=function(t,e,s){s(t.left,e,"Expression"),s(t.right,e,"Expression")},si.AssignmentExpression=si.AssignmentPattern=function(t,e,s){s(t.left,e,"Pattern"),s(t.right,e,"Expression")},si.ConditionalExpression=function(t,e,s){s(t.test,e,"Expression"),s(t.consequent,e,"Expression"),s(t.alternate,e,"Expression")},si.NewExpression=si.CallExpression=function(t,e,s){if(s(t.callee,e,"Expression"),t.arguments)for(var i=0,r=t.arguments;i<r.length;i+=1)s(r[i],e,"Expression")},si.MemberExpression=function(t,e,s){s(t.object,e,"Expression"),t.computed&&s(t.property,e,"Expression")},si.ExportNamedDeclaration=si.ExportDefaultDeclaration=function(t,e,s){if(t.declaration&&s(t.declaration,e,"ExportNamedDeclaration"===t.type||t.declaration.id?"Statement":"Expression"),t.source&&s(t.source,e,"Expression"),t.attributes)for(var i=0,r=t.attributes;i<r.length;i+=1)s(r[i],e)},si.ExportAllDeclaration=function(t,e,s){if(t.exported&&s(t.exported,e),s(t.source,e,"Expression"),t.attributes)for(var i=0,r=t.attributes;i<r.length;i+=1)s(r[i],e)},si.ImportAttribute=function(t,e,s){s(t.value,e,"Expression")},si.ImportDeclaration=function(t,e,s){for(var i=0,r=t.specifiers;i<r.length;i+=1)s(r[i],e);if(s(t.source,e,"Expression"),t.attributes)for(var n=0,a=t.attributes;n<a.length;n+=1)s(a[n],e)},si.ImportExpression=function(t,e,s){s(t.source,e,"Expression"),t.options&&s(t.options,e,"Expression")},si.ImportSpecifier=si.ImportDefaultSpecifier=si.ImportNamespaceSpecifier=si.Identifier=si.PrivateIdentifier=si.Literal=ei,si.TaggedTemplateExpression=function(t,e,s){s(t.tag,e,"Expression"),s(t.quasi,e,"Expression")},si.ClassDeclaration=si.ClassExpression=function(t,e,s){return s(t,e,"Class")},si.Class=function(t,e,s){t.id&&s(t.id,e,"Pattern"),t.superClass&&s(t.superClass,e,"Expression"),s(t.body,e)},si.ClassBody=function(t,e,s){for(var i=0,r=t.body;i<r.length;i+=1)s(r[i],e)},si.MethodDefinition=si.PropertyDefinition=si.Property=function(t,e,s){t.computed&&s(t.key,e,"Expression"),t.value&&s(t.value,e,"Expression")};const ii=new Set(["init","onClick","onMouseover","onMouseout","onResize","onDestroy"]);function ri(t){return t&&"Property"===t.type?"Identifier"===t.key.type?t.key.name:"Literal"===t.key.type&&"string"==typeof t.key.value?t.key.value:null:null}function ni(t,e){return t&&"ObjectExpression"===t.type?t.properties.find(t=>"Property"===t.type&&ri(t)===e):null}function ai(t){const e=ni(t,"method");if(!e||"ObjectExpression"!==e.value.type)return[];const s=[];for(const t of e.value.properties){if("Property"!==t.type)continue;const e=ri(t);if(!e)continue;if(ii.has(e))continue;const i=t.value;"FunctionExpression"!==i.type&&"ArrowFunctionExpression"!==i.type&&!0!==t.method||s.push({name:e,params:oi(i)})}return s}function oi(t){return(null==t?void 0:t.params)?t.params.map(t=>"Identifier"===t.type?t.name:"AssignmentPattern"===t.type&&"Identifier"===t.left.type?t.left.name:"RestElement"===t.type&&"Identifier"===t.argument.type?"..."+t.argument.name:"_"):[]}function hi(t){const e=ni(t,"custom");if(!e||"ObjectExpression"!==e.value.type)return[];const s=[];for(const t of e.value.properties){if("Property"!==t.type)continue;const e=ri(t);if(!e)continue;if("ObjectExpression"!==t.value.type){s.push({key:e,type:"unknown"});continue}const i={key:e};for(const e of t.value.properties){if("Property"!==e.type)continue;const t=ri(e);if(!t)continue;const s=e.value;"value"===t||"type"===t||"name"===t?i[t]=ci(s):"enum"===t&&"ArrayExpression"===s.type&&(i.enum=s.elements.map(ci).filter(t=>void 0!==t))}s.push(i)}return s}function ci(t){if(t){if("Literal"===t.type)return t.value;if("TemplateLiteral"===t.type&&0===t.expressions.length)return t.quasis.map(t=>t.value.cooked).join("");if("UnaryExpression"===t.type&&"-"===t.operator){const e=ci(t.argument);if("number"==typeof e)return-e}}}function li(t){const e=new Set;return s=t,i={CallExpression(t){if(!function(t){if("MemberExpression"!==t.type)return!1;const e=t.property;return"Identifier"===e.type&&("emit"===e.name||"$emit"===e.name)}(t.callee))return;const s=ci(t.arguments[0]);"string"==typeof s&&s&&e.add(s)}},r||(r=si),function t(e,s,n){var a=n||e.type;!function(t,e,s,i,r){if(null==t[e])throw new Error("No walker function defined for node type "+e);t[e](s,i,r)}(r,a,e,s,t),i[a]&&i[a](e,s)}(s,void 0,void 0),Array.from(e).map(t=>({event:t}));var s,i,r}const pi={key:1,class:"rounded-md border-2 border-rose-300 bg-rose-50 p-4 text-sm text-rose-900 space-y-2 min-h-[140px] overflow-auto"},ui={class:"font-semibold flex items-center gap-1.5"},fi={class:"font-mono text-xs text-rose-800 break-all"},di={key:0,class:"text-[10px] font-mono bg-rose-100/60 p-2 rounded overflow-auto max-h-60 text-rose-800"},mi=t.defineComponent({__name:"ErrorBoundary",props:{label:{}},setup(e){const s=e,i=t.ref(null),r=t.ref(0),n=t.ref(!1);function a(){i.value=null,n.value=!1,r.value++}return t.onErrorCaptured(t=>(console.error(`[hc-eb${s.label?" "+s.label:""}]`,t),i.value=t,!1)),(s,o)=>(t.openBlock(),t.createElementBlock("div",{key:r.value,class:"hc-eb-root",style:{width:"100%",height:"100%"}},[i.value?(t.openBlock(),t.createElementBlock("div",pi,[t.createElementVNode("div",ui,[o[1]||(o[1]=t.createElementVNode("span",null,"⚠️",-1)),t.createElementVNode("span",null,"组件渲染失败"+t.toDisplayString(e.label?` — ${e.label}`:""),1)]),t.createElementVNode("div",fi,t.toDisplayString(i.value.message),1),t.createElementVNode("button",{class:"text-xs text-rose-700 hover:text-rose-900 underline",onClick:o[0]||(o[0]=t=>n.value=!n.value)},t.toDisplayString(n.value?"隐藏":"展开")+"堆栈 ",1),n.value?(t.openBlock(),t.createElementBlock("pre",di,t.toDisplayString(i.value.stack),1)):t.createCommentVNode("",!0),t.createElementVNode("button",{class:"text-xs px-3 py-1 rounded bg-rose-600 hover:bg-rose-700 text-white transition-colors",onClick:a}," 重试 ")])):t.renderSlot(s.$slots,"default",{key:0})]))}}),gi=["data-vbi-id","data-vbi-type","data-vbi-canvas"],xi={key:0,class:"rounded-md border-2 border-amber-300 bg-amber-50 p-4 text-sm text-amber-900 space-y-2 min-h-[140px] overflow-auto"},yi={class:"text-[11px] font-mono break-all whitespace-pre-wrap"},vi={key:1,class:"grid place-items-center min-h-[140px] text-xs text-zinc-400"},wi=t.defineComponent({__name:"RuntimeBox",props:{instanceId:{},componentId:{},scopeId:{},canvasId:{},htmlSource:{},jsSource:{},cssSource:{default:""},customValues:{default:()=>({})},position:{},size:{},zIndex:{}},setup(e){const r=e,n=t.computed(()=>r.scopeId??r.componentId),o=t.inject(i,null),h=t.computed(()=>r.canvasId??o??s),l=t.shallowRef(null),p=t.ref(null),u=t.ref(!1),f=t.ref(0);t.watch(()=>[r.htmlSource,r.jsSource],()=>{!async function(){u.value=!0,p.value=null;try{const t=await xe({html:r.htmlSource,js:r.jsSource});l.value=t,f.value++}catch(t){p.value=t instanceof Error?t:new Error(String(t)),l.value=null}finally{u.value=!1}}()},{immediate:!0});let d=!1;t.watch(()=>[r.cssSource,n.value],([t,e],s)=>{const i=(null==s?void 0:s[1])??null;i&&i!==e?(Xs(i),Zs(e,t),d=!0):d?Js(e,t):(Zs(e,t),d=!0)},{immediate:!0});const m=t.computed(()=>{const t={width:"100%",height:"100%"};return r.position&&(t.position="absolute",t.left=`${r.position.x}px`,t.top=`${r.position.y}px`),void 0!==r.zIndex&&(t.zIndex=String(r.zIndex)),t});let g=null,x=null;function y(t){if(t!==g)if(g=t,t&&"object"==typeof t){const e=h.value;a(e,r.instanceId,r.componentId,t),x=e}else null!==x&&(c(r.instanceId,x),x=null)}return t.onBeforeUnmount(()=>{null!==x&&(c(r.instanceId,x),x=null),g=null,d&&(Xs(n.value),d=!1)}),(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"_vbi_box","data-vbi-id":e.instanceId,"data-vbi-type":n.value,"data-vbi-canvas":h.value,style:t.normalizeStyle(m.value)},[p.value?(t.openBlock(),t.createElementBlock("div",xi,[i[0]||(i[0]=t.createElementVNode("div",{class:"font-semibold"},"⚠️ 编译失败",-1)),t.createElementVNode("pre",yi,t.toDisplayString(p.value.message),1)])):u.value&&!l.value?(t.openBlock(),t.createElementBlock("div",vi," 编译中… ")):l.value?(t.openBlock(),t.createBlock(mi,{key:f.value,label:e.instanceId},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value.options),{"hc-custom-values":e.customValues,ref:y},null,8,["hc-custom-values"]))]),_:1},8,["label"])):t.createCommentVNode("",!0)],12,gi))}});exports.DEFAULT_CANVAS_ID=s,exports.ErrorBoundary=mi,exports.HC_CANVAS_ID_KEY=i,exports.HC_INJECT_KEY=w,exports.RuntimeBox=wi,exports.VERSION="0.0.0-stage2b",exports.assets=f,exports.attachScope=Zs,exports.clearCompileCache=function(){de.clear()},exports.compileComponent=xe,exports.createCanvasesRegistry=m,exports.createHyperCard=function(t={}){const e=t.strict??!1,s=t.libs??{},i=t.version??"v1";return{install(t){const r=Object.entries(s),n=r.filter(([,t])=>x(t)),a=r.filter(([t])=>g.has(t)),o=[`[hypercard] 已注册 ${r.length} 个 libs:`];for(const[t,e]of r)o.push(` ${t.padEnd(16)} ${v(e)}`);console.info(o.join("\n"));const h=[];n.length>1&&h.push(`检测到 ${n.length} 个 Vue plugin(${n.map(([t])=>t).join(", ")}),请确认全局组件命名不冲突`);for(const[t]of a)h.push(`lib 名 "${t}" 是保留词,建议改名`);if(h.length>0){const t=h.map(t=>` - ${t}`).join("\n");if(e)throw new Error(`[hypercard] strict mode 阻止启动:\n${t}`);console.warn(`[hypercard] 警告:\n${t}`)}for(const[s,i]of n){const[r,n]=y(i);try{t.use(r,...n)}catch(t){if(console.error(`[hypercard] app.use("${s}") 失败:`,t),e)throw t}}const c={};for(const[t,e]of r){const[s]=y(e);c[t]=s}const l={libs:c,runtime:u,assets:f,version:i,canvases:m()};t.provide(w,l),t.config.globalProperties.$hc=l,"undefined"!=typeof window&&(window.__HYPERCARD__=l)}}},exports.debugScopedCssRefs=function(){return[...Ks.entries()].map(([t,e])=>({scopeId:t,componentId:t,refCount:e.refCount,cssHash:e.cssHash}))},exports.detachScope=Xs,exports.disposeCanvas=o,exports.getCompileCacheSize=function(){return de.size},exports.getInstance=l,exports.getScopedCssCount=function(){return Ks.size},exports.injectScopedCss=Js,exports.isVuePlugin=x,exports.listCanvasIds=h,exports.listInstances=p,exports.parseComponentSource=function(t){if("string"!=typeof t||!t.trim())return{methodsDecl:[],emitsDecl:[],propsDecl:[]};let e;try{e=ue(t,{ecmaVersion:"latest",sourceType:"module",allowAwaitOutsideFunction:!0})}catch{return{methodsDecl:[],emitsDecl:[],propsDecl:[]}}const s=function(t){for(const e of t.body){if("ExportDefaultDeclaration"!==e.type)continue;const s=e.declaration;if("ObjectExpression"===s.type)return s;if("Identifier"===s.type)for(const e of t.body)if("VariableDeclaration"===e.type&&e.declarations.some(t=>{var e;return t.id.name===s.name&&"ObjectExpression"===(null==(e=t.init)?void 0:e.type)}))return e.declarations.find(t=>t.id.name===s.name).init}return null}(e);return{methodsDecl:s?ai(s):[],propsDecl:s?hi(s):[],emitsDecl:li(e)}},exports.register=function(t,e,i){return a(s,t,e,i)},exports.registerInCanvas=a,exports.registryVersion=r,exports.removeScopedCss=function(t){var e;null==(e=document.getElementById(Ys(t)))||e.remove(),Ks.delete(t)},exports.runtime=u,exports.scopeCss=Hs,exports.unregister=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./parseSourceEntry-UTE53-N3.cjs"),s=function(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const s in e)if("default"!==s){const r=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:()=>e[s]})}return t.default=e,Object.freeze(t)}(e);function r(e){return{all:e=e||new Map,on:function(t,s){var r=e.get(t);r?r.push(s):e.set(t,[s])},off:function(t,s){var r=e.get(t);r&&(s?r.splice(r.indexOf(s)>>>0,1):e.set(t,[]))},emit:function(t,s){var r=e.get(t);r&&r.slice().map(function(e){e(s)}),(r=e.get("*"))&&r.slice().map(function(e){e(t,s)})}}}const n="__default__",o="__hcCanvasId",i=e.ref(0),l=r();function a(e,t){l.emit(e,t)}const c=new Set,u=new Map;function h(e,t,s,n){var o;const l=function(e,t){return`${e}\0${t}`}(e,t);if(c.has(l)){const s=`[hc-registry] re-entrant registerInCanvas("${e}", "${t}") detected — a lifecycle listener tried to register the same id while the outer register is in flight. Nested register blocked to prevent state divergence; defer your register via microtask / setTimeout if you need to re-mount on lifecycle events.`;throw console.warn(s),new Error(s)}c.add(l);try{const l=function(e){let t=u.get(e);return t||(t=new Map,u.set(e,t)),t}(e);l.has(t)&&(console.warn(`[hc-registry] instance ${t} already registered in canvas "${e}", overwriting`),null==(o=l.get(t))||o.__dispose(),l.delete(t),a("instance:unmounted",{canvasId:e,instanceId:t}));const c=function(e,t,s){const n=r();return{instanceId:e,componentId:t,vm:s,call(t,...r){const n=s[t];if("function"!=typeof n)throw new Error(`[hc-registry] method "${t}" not found on instance ${e}`);return n.apply(s,r)},on:(e,t)=>(n.on(e,t),()=>n.off(e,t)),emit(e,t){n.emit(e,t)},setProp(e,t){s[e]=t},setDataInput(t,r){const n=s.custom;if(!n||!(t in n))return void console.warn(`[hc-registry] setDataInput("${t}"): vm.custom["${t}"] not declared on instance ${e}; binding 改了一个未声明的 dataInput key,组件不会响应`);const o=n[t];o&&"object"==typeof o?!0===o.dataInput?o.value=r:console.warn(`[hc-registry] setDataInput("${t}"): vm.custom["${t}"] is not declared with dataInput:true on instance ${e}; 请在组件源码 custom.${t} 上加 \`dataInput: true\` 才能被 binding 灌入`):console.warn(`[hc-registry] setDataInput("${t}"): vm.custom["${t}"] not a {value:...} slot`)},__dispose(){n.all.clear()}}}(t,s,n);return l.set(t,c),i.value++,a("instance:ready",{canvasId:e,instanceId:t}),c}finally{c.delete(l)}}function p(e){const t=u.get(e);if(!t)return;const s=[];for(const[e,r]of t)r.__dispose(),s.push(e);t.clear(),u.delete(e),i.value++;for(const t of s)a("instance:unmounted",{canvasId:e,instanceId:t})}function f(){return[...u.keys()]}function d(e,t=n){const s=u.get(t);if(!s)return;const r=s.get(e);r&&(r.__dispose(),s.delete(e),i.value++,a("instance:unmounted",{canvasId:t,instanceId:e}))}function m(e,t){var s;if(void 0!==t)return(null==(s=u.get(t))?void 0:s.get(e))??null;let r=null;const n=[];for(const[t,s]of u){const o=s.get(e);o&&(r||(r=o),n.push(t))}return n.length>1&&console.warn(`[hc-registry] getInstance("${e}") matched ${n.length} canvases [${n.join(", ")}]; returning first. Prefer __HYPERCARD__.canvases.callComponent(canvasId, instanceId, ...) for explicit scope.`),r}function g(e){const t=null==e?void 0:e.componentId,s=t?e=>e.componentId===t:()=>!0;if(void 0!==(null==e?void 0:e.canvasId)){const t=u.get(e.canvasId);return t?[...t.values()].filter(s):[]}const r=[];for(const e of u.values())for(const t of e.values())s(t)&&r.push(t);return r}const y={getInstance:m,listInstances:g,call(e,t,...s){const r=m(e);if(r)return r.call(t,...s);console.debug(`[hc-runtime] call: instance "${e}" not found`)},on(e,t,s){const r=m(e);if(r)return r.on(t,s);console.debug(`[hc-runtime] on: instance "${e}" not found`)},emit(e,t,s){const r=m(e);r?r.emit(t,s):console.debug(`[hc-runtime] emit: instance "${e}" not found`)}},w={pickerUrl:e=>`/a/${e}`};function v(e){return{canvasId:e,listInstances:t=>g({canvasId:e,componentId:null==t?void 0:t.componentId}),getInstance:t=>m(t,e),call(t,s,...r){const n=m(t,e);if(n)try{return n.call(s,...r)}catch(r){return void console.warn(`[hc-canvases] call error: canvas="${e}" instance="${t}" method="${s}":`,r)}else console.warn(`[hc-canvases] call: instance "${t}" not found in canvas "${e}"`)},emit(t,s,r){const n=m(t,e);if(n)try{n.emit(s,r)}catch(r){console.warn(`[hc-canvases] emit error: canvas="${e}" instance="${t}" event="${s}":`,r)}else console.warn(`[hc-canvases] emit: instance "${t}" not found in canvas "${e}"`)},broadcastInCanvas(t,s){const r=g({canvasId:e});for(const n of r)try{n.emit(t,s)}catch(s){console.warn(`[hc-canvases] broadcastInCanvas: canvas="${e}" instance="${n.instanceId}" event="${t}" emit failed:`,s)}},dispose(){p(e)}}}function b(){return{list:()=>f().map(e=>v(e)),get:e=>f().includes(e)?v(e):null,getAll(){const e={};for(const t of f())e[t]=v(t);return e},callComponent(e,t,s,...r){const n=m(t,e);if(n)try{return n.call(s,...r)}catch(r){return void console.warn(`[hc-canvases] callComponent error: canvas="${e}" instance="${t}" method="${s}":`,r)}else console.warn(`[hc-canvases] callComponent: canvas="${e}" instance="${t}" not found`)},emitToCanvas(e,t,s,r){const n=m(t,e);if(n)try{n.emit(s,r)}catch(r){console.warn(`[hc-canvases] emitToCanvas error: canvas="${e}" instance="${t}" event="${s}":`,r)}else console.warn(`[hc-canvases] emitToCanvas: canvas="${e}" instance="${t}" not found`)},broadcast(e,t){for(const s of f())try{const r=g({canvasId:s});for(const n of r)try{n.emit(e,t)}catch(t){console.warn(`[hc-canvases] broadcast: canvas="${s}" instance="${n.instanceId}" event="${e}" emit failed:`,t)}}catch(t){console.warn(`[hc-canvases] broadcast: canvas="${s}" event="${e}" failed:`,t)}}}}const x=new Set(["vue","Vue","window","global","globalThis","console","document","process","$","libs","runtime","assets","version"]);function C(e){return Array.isArray(e)&&e.length>=1?C(e[0]):"object"==typeof e&&null!==e&&"function"==typeof e.install}function S(e){return Array.isArray(e)&&e.length>=1?[e[0],e.slice(1)]:[e,[]]}function k(e){return C(e)?Array.isArray(e)?"✓ Vue plugin (with options) → 已 app.use":"✓ Vue plugin → 已 app.use":"function"==typeof e?"· function":Array.isArray(e)?"· array":"object"==typeof e&&null!==e?"· object":"· "+typeof e}const O="__HYPERCARD__",E=new Set(["init","onClick","onMouseover","onMouseout","onResize","onDestroy"]),I=new Map;function A(e,t){for(I.has(e)&&I.delete(e),I.set(e,t);I.size>100;){const e=I.keys().next().value;if(void 0===e)break;I.delete(e)}}function P(e){let t=5381;for(let s=0;s<e.length;s++)t=(t<<5)+t+e.charCodeAt(s)|0;return(t>>>0).toString(36)}function R(e){if(!Array.isArray(e))return[];const t=[];for(const s of e){if(!s||"object"!=typeof s)continue;const e=s;if("string"!=typeof e.name)continue;const r={name:e.name};"boolean"==typeof e.multiple&&(r.multiple=e.multiple),Array.isArray(e.accepts)&&(r.accepts=e.accepts.filter(e=>"string"==typeof e)),"number"==typeof e.maxChildren&&(r.maxChildren=e.maxChildren),"string"==typeof e.label&&(r.label=e.label),t.push(r)}return t}async function $(e){const r=P(e.html)+"_"+P(e.js),n=I.get(r);if(n)return A(r,n),n;const o=(async()=>function(e,t){if(!e||"object"!=typeof e)throw new Error("[hc-compile] component.js must `export default` an object");const r=e,n=r.name,o=r.method??{},i=r.attribute??{},l=r.custom??{},a=r.style??{},c=r.slots,u=r.data,h=r.methods??{},p=r.computed,f=r.watch,d=r.mounted,m=r.beforeUnmount,g=r.props,y=new Set(["name","method","attribute","custom","style","option","data","methods","computed","watch","mounted","beforeUnmount","props","slots"]),w={};for(const e of Object.keys(r))y.has(e)||(w[e]=r[e]);const v={};for(const[e,t]of Object.entries(o))E.has(e)||"function"!=typeof t||(v[e]=t);const b=Object.keys(v),x={...v,...h},C=(t??"").trim()||"<div></div>";return{options:{render:s.compile(C),props:{...g?Array.isArray(g)?Object.fromEntries(g.map(e=>[e,null])):"object"==typeof g?g:{}:{},hcCustomValues:{type:Object,default:()=>({})}},data(){const e="function"==typeof u?u.call(this):u??{},t=this.hcCustomValues??{},s={};for(const[e,r]of Object.entries(l)){let n;try{n=JSON.parse(JSON.stringify(r??{}))}catch{n={...r??{}}}e in t&&n&&"object"==typeof n&&(n.value=t[e]),s[e]=n}return{custom:s,...e}},methods:x,computed:p,watch:(()=>{const e=f&&"object"==typeof f?{...f}:{};return e.hcCustomValues={handler(e){if(e&&this.custom)for(const[t,s]of Object.entries(e)){const e=this.custom[t];e&&"object"==typeof e&&(e.value=s)}},deep:!0},e})(),mounted(){const e=[],t=this.$el;if(t&&t instanceof HTMLElement){Object.assign(t.style,a);for(const[e,s]of Object.entries(i))"string"==typeof s&&s&&t.setAttribute(e,s);for(const s of E){if("init"===s)continue;const r=o[s];if("function"==typeof r){const n=s.replace(/^on/,"").toLowerCase(),o=e=>{r.call(this,{event:e,data:e})};t.addEventListener(n,o),e.push(()=>t.removeEventListener(n,o))}}}this.__hcCleanup=e;const s=o.init;"function"==typeof s&&s.call(this),"function"==typeof d&&d.call(this)},beforeUnmount(){var e;null==(e=this.__hcCleanup)||e.forEach(e=>{try{e()}catch{}}),this.__hcCleanup=void 0,"function"==typeof m&&m.call(this)},...w},meta:{name:n,attribute:i,style:a,customDecl:l,methodNames:b,slotsDecl:R(c)}}}(function(e){let s;try{const r=t.parse(e,{ecmaVersion:"latest",sourceType:"module",allowAwaitOutsideFunction:!0}).body.find(e=>"ExportDefaultDeclaration"===e.type);if(!r)throw new Error("[hc-compile] component.js must `export default` an object");s=e.slice(0,r.start)+"module.exports = "+e.slice(r.declaration.start)}catch(e){throw e instanceof Error?e:new Error(String(e))}const r=new Function("module","exports",`"use strict";\n${s}\n;return module.exports;`),n={exports:{}};try{return r(n,n.exports)}catch(e){throw e instanceof Error?e:new Error(String(e))}}(e.js),e.html))();return A(r,o),o.catch(()=>I.delete(r)),o}var _,j={exports:{}};const B=function(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var s=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),s}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var M,D,U,z,L,N;function F(){if(D)return M;D=1;let e=function(){if(_)return j.exports;_=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return j.exports=t(),j.exports.createColors=t,j.exports}(),t=B;class s extends Error{constructor(e,t,r,n,o,i){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),n&&(this.source=n),i&&(this.plugin=i),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let r=this.source;null==s&&(s=e.isColorSupported);let n=e=>e,o=e=>e,i=e=>e;if(s){let{bold:s,gray:r,red:l}=e.createColors(!0);o=e=>s(l(e)),n=e=>r(e),t&&(i=e=>t(e))}let l=r.split(/\r?\n/),a=Math.max(this.line-3,0),c=Math.min(this.line+2,l.length),u=String(c).length;return l.slice(a,c).map((e,t)=>{let s=a+1+t,r=" "+(" "+s).slice(-u)+" | ";if(s===this.line){if(e.length>160){let t=20,s=Math.max(0,this.column-t),l=Math.max(this.column+t,this.endColumn+t),a=e.slice(s,l),c=n(r.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return o(">")+n(r)+i(a)+"\n "+c+o("^")}let t=n(r.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(r)+i(e)+"\n "+t+o("^")}return" "+n(r)+i(e)}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}return M=s,s.default=s,M}function V(){if(z)return U;z=1;const e=/(<)(\/?style\b)/gi,t=/(<)(!--)/g;function s(s){return"string"!=typeof s?s:s.includes("<")?s.replace(e,"\\3c $2").replace(t,"\\3c $2"):s}const r={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class n{constructor(e){this.builder=e}atrule(e,t){let r=e.raws,n="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(void 0!==r.afterName?n+=r.afterName:o&&(n+=" "),e.nodes)this.block(e,n+o);else{let i=(r.between||"")+(t?";":"");this.builder(s(n+o+i),e)}}beforeAfter(e,t){let s;s="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,n=0;for(;r&&"root"!==r.type;)n+=1,r=r.parent;if(s.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<n;e++)s+=t}return s}block(e,t){let r,n=this.raw(e,"between","beforeOpen");this.builder(s(t+n)+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(s(r)),this.builder("}",e,"end")}body(e){let t=e.nodes,r=t.length-1;for(;r>0&&"comment"===t[r].type;)r-=1;let n=this.raw(e,"semicolon"),o="document"===e.type;for(let e=0;e<t.length;e++){let i=t[e],l=this.raw(i,"before");l&&this.builder(o?l:s(l)),this.stringify(i,r!==e||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(s("/*"+t+e.text+r+"*/"),e)}decl(e,t){let r=e.raws,n=this.raw(e,"between","colon"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=r.important||" !important"),t&&(o+=";"),this.builder(s(o),e)}document(e){this.body(e)}raw(e,t,s){let n;if(s||(s=t),t&&(n=e.raws[t],void 0!==n))return n;let o=e.parent;if("before"===s){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return r[s];let i=e.root(),l=i.rawCache||(i.rawCache={});if(void 0!==l[s])return l[s];if("before"===s||"after"===s)return this.beforeAfter(e,s);{let r="raw"+((a=s)[0].toUpperCase()+a.slice(1));this[r]?n=this[r](i,e):i.walk(e=>{if(n=e.raws[t],void 0!==n)return!1})}var a;return void 0===n&&(n=r[s]),l[s]=n,n}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let s;return e.walkComments(e=>{if(void 0!==e.raws.before)return s=e.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),void 0===s?s=this.raw(t,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(e,t){let s;return e.walkDecls(e=>{if(void 0!==e.raws.before)return s=e.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),void 0===s?s=this.raw(t,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(s=>{if(s.nodes&&(s.parent!==e||e.first!==s)&&void 0!==s.raws.before)return t=s.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(s=>{let r=s.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==s.raws.before){let e=s.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let s=e[t],r=e.raws[t];return r&&r.value===s?r.raw:s}root(e){if(this.body(e),e.raws.after){let t=e.raws.after,r=e.parent&&"document"===e.parent.type;this.builder(r?t:s(t))}}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(s(e.raws.ownSemicolon),e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}return U=n,n.default=n,U}function T(){if(N)return L;N=1;let e=V();function t(t,s){new e(s).stringify(t)}return L=t,t.default=t,L}var W,H,J,Y,G,q,K,Z,Q,X,ee,te,se,re,ne,oe,ie,le,ae,ce,ue,he,pe,fe,de,me,ge,ye,we,ve,be,xe,Ce,Se,ke,Oe,Ee,Ie,Ae,Pe,Re,$e,_e,je,Be,Me,De,Ue,ze,Le={};function Ne(){return W||(W=1,Le.isClean=Symbol("isClean"),Le.my=Symbol("my")),Le}function Fe(){if(J)return H;J=1;let e=F(),t=V(),s=T(),{isClean:r,my:n}=Ne();function o(e,t){let s=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let n=e[r],i=typeof n;"parent"===r&&"object"===i?t&&(s[r]=t):"source"===r?s[r]=n:Array.isArray(n)?s[r]=n.map(e=>o(e,s)):("object"===i&&null!==n&&(n=o(n)),s[r]=n)}return s}function i(e,t){if(t&&void 0!==t.offset)return t.offset;let s=1,r=1,n=0;for(let o=0;o<e.length;o++){if(r===t.line&&s===t.column){n=o;break}"\n"===e[o]?(s=1,r+=1):s+=1}return n}class l{get proxyOf(){return this}constructor(e={}){this.raws={},this[r]=!1,this[n]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let s of e[t])"function"==typeof s.clone?this.append(s.clone()):this.append(s)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=o(this);for(let s in e)t[s]=e[s];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(t,s={}){if(this.source){let{end:e,start:r}=this.rangeBy(s);return this.source.input.error(t,{column:r.column,line:r.line},{column:e.column,line:e.line},s)}return new e(t)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,s)=>(e[t]===s||(e[t]=s,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[r]=!0}markDirty(){if(this[r]){this[r]=!1;let e=this;for(;e=e.parent;)e[r]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let s="document"in this.source.input?this.source.input.document:this.source.input.css,r=s.slice(i(s,this.source.start),i(s,this.source.end)).indexOf(e.word);-1!==r&&(t=this.positionInside(r))}return t}positionInside(e){let t=this.source.start.column,s=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,n=i(r,this.source.start),o=n+e;for(let e=n;e<o;e++)"\n"===r[e]?(t=1,s+=1):t+=1;return{column:t,line:s,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,s={column:this.source.start.column,line:this.source.start.line,offset:i(t,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:i(t,this.source.end)+1}:{column:s.column+1,line:s.line,offset:s.offset+1};if(e.word){let n=t.slice(i(t,this.source.start),i(t,this.source.end)).indexOf(e.word);-1!==n&&(s=this.positionInside(n),r=this.positionInside(n+e.word.length))}else e.start?s={column:e.start.column,line:e.start.line,offset:i(t,e.start)}:e.index&&(s=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:i(t,e.end)}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<s.line||r.line===s.line&&r.column<=s.column)&&(r={column:s.column+1,line:s.line,offset:s.offset+1}),{end:r,start:s}}raw(e,s){return(new t).raw(this,e,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,s=!1;for(let r of e)r===this?s=!0:s?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);s||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let s={},r=null==t;t=t||new Map;let n=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))s[e]=r.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof r&&r.toJSON)s[e]=r.toJSON(null,t);else if("source"===e){if(null==r)continue;let o=t.get(r.input);null==o&&(o=n,t.set(r.input,n),n++),s[e]={end:r.end,inputId:o,start:r.start}}else s[e]=r}return r&&(s.inputs=[...t.keys()].map(e=>e.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=s){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,s={}){let r={node:this};for(let e in s)r[e]=s[e];return e.warn(t,r)}}return H=l,l.default=l,H}function Ve(){if(G)return Y;G=1;let e=Fe();class t extends e{constructor(e){super(e),this.type="comment"}}return Y=t,t.default=t,Y}function Te(){if(K)return q;K=1;let e=Fe();class t extends e{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}}return q=t,t.default=t,q}function We(){if(Q)return Z;Q=1;let e,t,s,r,n=Ve(),o=Te(),i=Fe(),{isClean:l,my:a}=Ne();function c(e){return e.map(e=>(e.nodes&&(e.nodes=c(e.nodes)),delete e.source,e))}function u(e){if(e[l]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)u(t)}class h extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,s,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],s=e(this.proxyOf.nodes[t],t),!1!==s);)this.indexes[r]+=1;return delete this.indexes[r],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...s)=>e[t](...s.map(e=>"function"==typeof e?(t,s)=>e(t.toProxy(),s):e)):"every"===t||"some"===t?s=>e[t]((e,...t)=>s(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,s)=>(e[t]===s||(e[t]=s,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let s,r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of n)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)s=this.indexes[e],r<s&&(this.indexes[e]=s+n.length);return this.markDirty(),this}insertBefore(e,t){let s,r=this.index(e),n=0===r&&"prepend",o=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(let e of o)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)s=this.indexes[e],r<=s&&(this.indexes[e]=s+o.length);return this.markDirty(),this}normalize(s,i){if("string"==typeof s)s=c(t(s).nodes);else if(void 0===s)s=[];else if(Array.isArray(s)){s=s.slice(0);for(let e of s)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===s.type&&"document"!==this.type){s=s.nodes.slice(0);for(let e of s)e.parent&&e.parent.removeChild(e,"ignore")}else if(s.type)s=[s];else if(s.prop){if(void 0===s.value)throw new Error("Value field is missed in node creation");"string"!=typeof s.value&&(s.value=String(s.value)),s=[new o(s)]}else if(s.selector||s.selectors)s=[new r(s)];else if(s.name)s=[new e(s)];else{if(!s.text)throw new Error("Unknown node type in node creation");s=[new n(s)]}return s.map(e=>(e[a]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[l]&&u(e),e.raws||(e.raws={}),void 0===e.raws.before&&i&&void 0!==i.raws.before&&(e.raws.before=i.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let s in this.indexes)t=this.indexes[s],t>=e&&(this.indexes[s]=t-1);return this.markDirty(),this}replaceValues(e,t,s){return s||(s=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,s))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,s)=>{let r;try{r=e(t,s)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if("atrule"===s.type&&e.test(s.name))return t(s,r)}):this.walk((s,r)=>{if("atrule"===s.type&&s.name===e)return t(s,r)}):(t=e,this.walk((e,s)=>{if("atrule"===e.type)return t(e,s)}))}walkComments(e){return this.walk((t,s)=>{if("comment"===t.type)return e(t,s)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if("decl"===s.type&&e.test(s.prop))return t(s,r)}):this.walk((s,r)=>{if("decl"===s.type&&s.prop===e)return t(s,r)}):(t=e,this.walk((e,s)=>{if("decl"===e.type)return t(e,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((s,r)=>{if("rule"===s.type&&e.test(s.selector))return t(s,r)}):this.walk((s,r)=>{if("rule"===s.type&&s.selector===e)return t(s,r)}):(t=e,this.walk((e,s)=>{if("rule"===e.type)return t(e,s)}))}}return h.registerParse=e=>{t=e},h.registerRule=e=>{r=e},h.registerAtRule=t=>{e=t},h.registerRoot=e=>{s=e},Z=h,h.default=h,h.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,e.prototype):"rule"===t.type?Object.setPrototypeOf(t,r.prototype):"decl"===t.type?Object.setPrototypeOf(t,o.prototype):"comment"===t.type?Object.setPrototypeOf(t,n.prototype):"root"===t.type&&Object.setPrototypeOf(t,s.prototype),t[a]=!0,t.nodes&&t.nodes.forEach(e=>{h.rebuild(e)})},Z}function He(){if(ee)return X;ee=1;let e=We();class t extends e{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}return X=t,t.default=t,e.registerAtRule(t),X}function Je(){if(se)return te;se=1;let e,t,s=We();class r extends s{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(s={}){return new e(new t,this,s).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=e=>{t=e},te=r,r.default=r,te}function Ye(){if(ie)return oe;ie=1;let{existsSync:e,readFileSync:t}=B,{dirname:s,join:r}=B,{SourceMapConsumer:n,SourceMapGenerator:o}=B;class i{constructor(e,t){if(!1===t.map)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new n(this.json||this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let s=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(s)return r=e.substr(s[0].length),Buffer?Buffer.from(r,"base64").toString():window.atob(r);var r;let n=e.slice(22);throw n=n.slice(0,n.indexOf(",")),new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let s=e.lastIndexOf(t.pop()),r=e.indexOf("*/",s);s>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,r)))}loadFile(r,n,o){if(o||this.unsafeMap||/\.map$/i.test(r))return this.root=s(r),e(r)?(this.mapFile=r,t(r,"utf-8").toString().trim()):void 0}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof n)return o.fromSourceMap(t).toString();if(t instanceof o)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let s=t(e);if(s){let t=this.loadFile(s,e,!0);if(!t)throw new Error("Unable to load previous source map: "+s.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;e&&(t=r(s(e),t));let n=this.loadFile(t,e,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return oe=i,i.default=i,oe}function Ge(){if(ae)return le;ae=1;let{nanoid:e}=ne?re:(ne=1,re={nanoid:(e=21)=>{let t="",s=0|e;for(;s--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(s=t)=>{let r="",n=0|s;for(;n--;)r+=e[Math.random()*e.length|0];return r}}),{isAbsolute:t,resolve:s}=B,{SourceMapConsumer:r,SourceMapGenerator:n}=B,{fileURLToPath:o,pathToFileURL:i}=B,l=F(),a=Ye(),c=B,u=Symbol("lineToIndexCache"),h=Boolean(r&&n),p=Boolean(s&&t);function f(e){if(e[u])return e[u];let t=e.css.split("\n"),s=new Array(t.length),r=0;for(let e=0,n=t.length;e<n;e++)s[e]=r,r+=t[e].length+1;return e[u]=s,s}class d{get from(){return this.file||this.id}constructor(r,n={}){if(null==r||"object"==typeof r&&!r.toString)throw new Error(`PostCSS received ${r} instead of CSS string`);if(this.css=r.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,n.document&&(this.document=n.document.toString()),n.from&&(!p||/^\w+:\/\//.test(n.from)||t(n.from)?this.file=n.from:this.file=s(n.from)),p&&h){let e=new a(this.css,n);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,s,r={}){let n,o,a,c,u;if(t&&"object"==typeof t){let e=t,r=s;if("number"==typeof e.offset){c=e.offset;let r=this.fromOffset(c);t=r.line,s=r.col}else t=e.line,s=e.column,c=this.fromLineAndColumn(t,s);if("number"==typeof r.offset){a=r.offset;let e=this.fromOffset(a);o=e.line,n=e.col}else o=r.line,n=r.column,a=this.fromLineAndColumn(r.line,r.column)}else if(s)c=this.fromLineAndColumn(t,s);else{c=t;let e=this.fromOffset(c);t=e.line,s=e.col}let h=this.origin(t,s,o,n);return u=h?new l(e,void 0===h.endLine?h.line:{column:h.column,line:h.line},void 0===h.endLine?h.column:{column:h.endColumn,line:h.endLine},h.source,h.file,r.plugin):new l(e,void 0===o?t:{column:s,line:t},void 0===o?s:{column:n,line:o},this.css,this.file,r.plugin),u.input={column:s,endColumn:n,endLine:o,endOffset:a,line:t,offset:c,source:this.css},this.file&&(i&&(u.input.url=i(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(e,t){return f(this)[e-1]+t-1}fromOffset(e){let t=f(this),s=0;if(e>=t[t.length-1])s=t.length-1;else{let r,n=t.length-2;for(;s<n;)if(r=s+(n-s>>1),e<t[r])n=r-1;else{if(!(e>=t[r+1])){s=r;break}s=r+1}}return{col:e-t[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:s(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,s,r,n){if(!this.map)return!1;let l,a,c=this.map.consumer(),u=c.originalPositionFor({column:s,line:e});if(!u.source)return!1;"number"==typeof r&&(l=c.originalPositionFor({column:n,line:r})),a=t(u.source)?i(u.source):new URL(u.source,this.map.consumer().sourceRoot||i(this.map.mapFile));let h={column:u.column,endColumn:l&&l.column,endLine:l&&l.line,line:u.line,url:a.toString()};if("file:"===a.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");h.file=o(a)}let p=c.sourceContentFor(u.source);return p&&(h.source=p),h}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}return le=d,d.default=d,c&&c.registerInput&&c.registerInput(d),le}function qe(){if(ue)return ce;ue=1;let e,t,s=We();class r extends s{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,s){let r=super.normalize(e);if(t)if("prepend"===s)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let s=this.index(e);return!t&&0===s&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(e)}toResult(s={}){return new e(new t,this,s).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=e=>{t=e},ce=r,r.default=r,s.registerRoot(r),ce}function Ke(){if(pe)return he;pe=1;let e={comma:t=>e.split(t,[","],!0),space:t=>e.split(t,[" ","\n","\t"]),split(e,t,s){let r=[],n="",o=!1,i=0,l=!1,a="",c=!1;for(let s of e)c?c=!1:"\\"===s?c=!0:l?s===a&&(l=!1):'"'===s||"'"===s?(l=!0,a=s):"("===s?i+=1:")"===s?i>0&&(i-=1):0===i&&t.includes(s)&&(o=!0),o?(""!==n&&r.push(n.trim()),n="",o=!1):n+=s;return(s||""!==n)&&r.push(n.trim()),r}};return he=e,e.default=e,he}function Ze(){if(de)return fe;de=1;let e=We(),t=Ke();class s extends e{get selectors(){return t.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,s=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}return fe=s,s.default=s,e.registerRule(s),fe}function Qe(){if(we)return ye;we=1;let{dirname:e,relative:t,resolve:s,sep:r}=B,{SourceMapConsumer:n,SourceMapGenerator:o}=B,{pathToFileURL:i}=B,l=Ge(),a=Boolean(n&&o),c=Boolean(e&&s&&t&&r);return ye=class{constructor(e,t,s,r){this.stringify=e,this.mapOpts=s.map||{},this.root=t,this.opts=s,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let t of this.previous()){let s,r=this.toUrl(this.path(t.file)),o=t.root||e(t.file);!1===this.mapOpts.sourcesContent?(s=new n(t.text),s.sourcesContent&&(s.sourcesContent=null)):s=t.consumer(),this.map.applySourceMap(s,r,this.toUrl(this.path(o)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else if(this.css){let e;for(;-1!==(e=this.css.lastIndexOf("/*#"));){let t=this.css.indexOf("*/",e+3);if(-1===t)break;for(;e>0&&"\n"===this.css[e-1];)e--;this.css=this.css.slice(0,e)+this.css.slice(t+2)}}}generate(){if(this.clearAnnotation(),c&&a&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=o.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,s=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,l,a)=>{if(this.css+=o,l&&"end"!==a&&(i.generated.line=s,i.generated.column=r-1,l.source&&l.source.start?(i.source=this.sourcePath(l),i.original.line=l.source.start.line,i.original.column=l.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),t=o.match(/\n/g),t?(s+=t.length,e=o.lastIndexOf("\n"),r=o.length-e):r+=o.length,l&&"start"!==a){let e=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===e.last&&!e.raws.semicolon||(l.source&&l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=s,i.generated.column=r-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=s,i.generated.column=r-1,this.map.addMapping(i)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(r){if(this.mapOpts.absolute)return r;if(60===r.charCodeAt(0))return r;if(/^\w+:\/\//.test(r))return r;let n=this.memoizedPaths.get(r);if(n)return n;let o=this.opts.to?e(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(o=e(s(o,this.mapOpts.annotation)));let i=t(o,r);return this.memoizedPaths.set(r,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new l(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let s=t.source.input.from;if(s&&!e[s]){e[s]=!0;let r=this.usesFileUrls?this.toFileUrl(s):this.toUrl(this.path(s));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(i){let t=i(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===r&&(e=e.replace(/\\/g,"/"));let s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s}}}function Xe(){if(ke)return Se;ke=1;let e=We(),t=Ge(),s=function(){if(Ce)return xe;Ce=1;let e=He(),t=Ve(),s=Te(),r=qe(),n=Ze(),o=function(){if(be)return ve;be=1;const e="'".charCodeAt(0),t='"'.charCodeAt(0),s="\\".charCodeAt(0),r="/".charCodeAt(0),n="\n".charCodeAt(0),o=" ".charCodeAt(0),i="\f".charCodeAt(0),l="\t".charCodeAt(0),a="\r".charCodeAt(0),c="[".charCodeAt(0),u="]".charCodeAt(0),h="(".charCodeAt(0),p=")".charCodeAt(0),f="{".charCodeAt(0),d="}".charCodeAt(0),m=";".charCodeAt(0),g="*".charCodeAt(0),y=":".charCodeAt(0),w="@".charCodeAt(0),v=/[\t\n\f\r "#'()/;[\\\]{}]/g,b=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,x=/.[\r\n"'(/\\]/,C=/[\da-f]/i;return ve=function(S,k={}){let O,E,I,A,P,R,$,_,j,B,M=S.css.valueOf(),D=k.ignoreErrors,U=M.length,z=0,L=[],N=[],F=-1;function V(e){throw S.error("Unclosed "+e,z)}return{back:function(e){N.push(e)},endOfFile:function(){return 0===N.length&&z>=U},nextToken:function(S){if(N.length)return N.pop();if(z>=U)return;let k=!!S&&S.ignoreUnclosed;switch(O=M.charCodeAt(z),O){case n:case o:case l:case a:case i:A=z;do{A+=1,O=M.charCodeAt(A)}while(O===o||O===n||O===l||O===a||O===i);R=["space",M.slice(z,A)],z=A-1;break;case c:case u:case f:case d:case y:case m:case p:{let e=String.fromCharCode(O);R=[e,e,z];break}case h:if(B=L.length?L.pop()[1]:"",j=M.charCodeAt(z+1),"url"===B&&j!==e&&j!==t&&j!==o&&j!==n&&j!==l&&j!==i&&j!==a){A=z;do{if($=!1,A=M.indexOf(")",A+1),-1===A){if(D||k){A=z;break}V("bracket")}for(_=A;M.charCodeAt(_-1)===s;)_-=1,$=!$}while($);R=["brackets",M.slice(z,A+1),z,A],z=A}else z<=F?R=["(","(",z]:(A=M.indexOf(")",z+1),E=M.slice(z,A+1),-1===A||x.test(E)?(F=-1===A?U:A,R=["(","(",z]):(R=["brackets",E,z,A],z=A));break;case e:case t:P=O===e?"'":'"',A=z;do{if($=!1,A=M.indexOf(P,A+1),-1===A){if(D||k){A=z+1;break}V("string")}for(_=A;M.charCodeAt(_-1)===s;)_-=1,$=!$}while($);R=["string",M.slice(z,A+1),z,A],z=A;break;case w:v.lastIndex=z+1,v.test(M),A=0===v.lastIndex?M.length-1:v.lastIndex-2,R=["at-word",M.slice(z,A+1),z,A],z=A;break;case s:for(A=z,I=!0;M.charCodeAt(A+1)===s;)A+=1,I=!I;if(O=M.charCodeAt(A+1),I&&O!==r&&O!==o&&O!==n&&O!==l&&O!==a&&O!==i&&(A+=1,C.test(M.charAt(A)))){for(;C.test(M.charAt(A+1));)A+=1;M.charCodeAt(A+1)===o&&(A+=1)}R=["word",M.slice(z,A+1),z,A],z=A;break;default:O===r&&M.charCodeAt(z+1)===g?(A=M.indexOf("*/",z+2)+1,0===A&&(D||k?A=M.length:V("comment")),R=["comment",M.slice(z,A+1),z,A],z=A):(b.lastIndex=z+1,b.test(M),A=0===b.lastIndex?M.length-1:b.lastIndex-2,R=["word",M.slice(z,A+1),z,A],L.push(R),z=A)}return z++,R},position:function(){return z}}}}();const i={empty:!0,space:!0};return xe=class{constructor(e){this.input=e,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(t){let s,r,n,o=new e;o.name=t[1].slice(1),""===o.name&&this.unnamedAtrule(o,t),this.init(o,t[2]);let i=!1,l=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(s=(t=this.tokenizer.nextToken())[0],"("===s||"["===s?c.push("("===s?")":"]"):"{"===s&&c.length>0?c.push("}"):s===c[c.length-1]&&c.pop(),0===c.length){if(";"===s){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===s){l=!0;break}if("}"===s){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(t);break}a.push(t)}else a.push(t);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(o.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(o,"params",a),i&&(t=a[a.length-1],o.source.end=this.getPosition(t[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),l&&(o.nodes=[],this.current=o)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let s,r=0;for(let n=t-1;n>=0&&(s=e[n],"space"===s[0]||(r+=1,2!==r));n--);throw this.input.error("Missed semicolon","word"===s[0]?s[3]+1:s[2])}colon(e){let t,s,r,n=0;for(let[o,i]of e.entries()){if(s=i,r=s[0],"("===r&&(n+=1),")"===r&&(n-=1),0===n&&":"===r){if(t){if("word"===t[0]&&"progid"===t[1])continue;return o}this.doubleColon(s)}t=s}return!1}comment(e){let s=new t;this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++;let r=e[1].slice(2,-2);if(r.trim()){let e=r.match(/^(\s*)([^]*\S)(\s*)$/);s.text=e[2],s.raws.left=e[1],s.raws.right=e[3]}else s.text="",s.raws.left=r,s.raws.right=""}createTokenizer(){this.tokenizer=o(this.input)}decl(e,t){let r=new s;this.init(r,e[0][2]);let n,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let s=e[t],r=s[3]||s[2];if(r)return r}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(n=e.shift(),":"===n[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let i,l=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)l.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(n=e[t],"!important"===n[1].toLowerCase()){r.important=!0;let s=this.stringFrom(e,t);s=this.spacesFromEnd(e)+s," !important"!==s&&(r.raws.important=s);break}if("important"===n[1].toLowerCase()){let s=e.slice(0),n="";for(let e=t;e>0;e--){let t=s[e][0];if(n.trim().startsWith("!")&&"space"!==t)break;n=s.pop()[1]+n}n.trim().startsWith("!")&&(r.important=!0,r.raws.important=n,e=s)}if("space"!==n[0]&&"comment"!==n[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(r.raws.between+=l.map(e=>e[1]).join(""),l=[]),this.raw(r,"value",l.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new n;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,s=null,r=!1,n=null,o=[],i=e[1].startsWith("--"),l=[],a=e;for(;a;){if(s=a[0],l.push(a),"("===s||"["===s)n||(n=a),o.push("("===s?")":"]");else if(i&&r&&"{"===s)n||(n=a),o.push("}");else if(0===o.length){if(";"===s){if(r)return void this.decl(l,i);break}if("{"===s)return void this.rule(l);if("}"===s){this.tokenizer.back(l.pop()),t=!0;break}":"===s&&(r=!0)}else s===o[o.length-1]&&(o.pop(),0===o.length&&(n=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(n),t&&r){if(!i)for(;l.length&&(a=l[l.length-1][0],"space"===a||"comment"===a);)this.tokenizer.back(l.pop());this.decl(l,i)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,s,r){let n,o,l,a,c=s.length,u="",h=!0;for(let e=0;e<c;e+=1)n=s[e],o=n[0],"space"!==o||e!==c-1||r?"comment"===o?(a=s[e-1]?s[e-1][0]:"empty",l=s[e+1]?s[e+1][0]:"empty",i[a]||i[l]||","===u.slice(-1)?h=!1:u+=n[1]):u+=n[1]:h=!1;if(!h){let r=s.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:r,value:u}}e[t]=u}rule(e){e.pop();let t=new n;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)s=e.pop()[1]+s;return s}spacesAndCommentsFromStart(e){let t,s="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)s+=e.shift()[1];return s}spacesFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)s=e.pop()[1]+s;return s}stringFrom(e,t){let s="";for(let r=t;r<e.length;r++)s+=e[r][1];return e.splice(t,e.length-t),s}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}}();function r(e,r){let n=new t(e,r),o=new s(n);try{o.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&r&&r.from&&(/\.scss$/i.test(r.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(r.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(r.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return o.root}return Se=r,r.default=r,e.registerParse(r),Se}function et(){if(Ee)return Oe;Ee=1;class e{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Oe=e,e.default=e,Oe}function tt(){if(Ae)return Ie;Ae=1;let e=et();class t{get content(){return this.css}constructor(e,t,s){this.processor=e,this.messages=[],this.root=t,this.opts=s,this.css="",this.map=void 0}toString(){return this.css}warn(t,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new e(t,s);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}}return Ie=t,t.default=t,Ie}function st(){if(Re)return Pe;Re=1;let e={};return Pe=function(t){e[t]||(e[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))}}function rt(){if(_e)return $e;_e=1;let e=We(),t=Je(),s=Qe(),r=Xe(),n=tt(),o=qe(),i=T(),{isClean:l,my:a}=Ne(),c=st();const u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0};function f(e){return"object"==typeof e&&"function"==typeof e.then}function d(e){let t=!1,s=u[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[s,s+"-"+t,0,s+"Exit",s+"Exit-"+t]:t?[s,s+"-"+t,s+"Exit",s+"Exit-"+t]:e.append?[s,0,s+"Exit"]:[s,s+"Exit"]}function m(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:d(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function g(e){return e[l]=!1,e.nodes&&e.nodes.forEach(e=>g(e)),e}let y={};class w{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,s,o){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof s||null===s||"root"!==s.type&&"document"!==s.type)if(s instanceof w||s instanceof n)i=g(s.root),s.map&&(void 0===o.map&&(o.map={}),o.map.inline||(o.map.inline=!1),o.map.prev=s.map);else{let t=r;o.syntax&&(t=o.syntax.parse),o.parser&&(t=o.parser),t.parse&&(t=t.parse);try{i=t(s,o)}catch(e){this.processed=!0,this.error=e}i&&!i[a]&&e.rebuild(i)}else i=g(s);this.result=new n(t,i,o),this.helpers={...y,postcss:y,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let s=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(s.postcssVersion&&"production"!==process.env.NODE_ENV){let e=s.postcssPlugin,t=s.postcssVersion,r=this.result.processor.version,n=t.split("."),o=r.split(".");(n[0]!==o[0]||parseInt(n[1])>parseInt(o[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+r+", but "+e+" uses "+t+". Perhaps this is the source of the error below.")}}else e.plugin=s.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,s)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,s])};for(let t of this.plugins)if("object"==typeof t)for(let s in t){if(!h[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[s])if("object"==typeof t[s])for(let r in t[s])e(t,"*"===r?s:s+"-"+r.toLowerCase(),t[s][r]);else"function"==typeof t[s]&&e(t,s,t[s])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],s=this.runOnRoot(t);if(f(s))try{await s}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];){e[l]=!0;let t=[m(e)];for(;t.length>0;){let e=this.visitTick(t);if(f(e))try{await e}catch(e){let s=t[t.length-1].node;throw this.handleError(e,s)}}}if(this.listeners.OnceExit)for(let[t,s]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>s(e,this.helpers));await Promise.all(t)}else await s(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return f(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=i;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=this.result.root.source;if(void 0===e.map&&!(r&&r.input&&r.input.map)){let e="";return t(this.result.root,t=>{e+=t}),this.result.css=e,this.result}let n=new s(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(f(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];)e[l]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||c("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[s,r]of e){let e;this.result.lastPlugin=s;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(f(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:s,visitors:r}=t;if("root"!==s.type&&"document"!==s.type&&!s.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,n]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return n(s.toProxy(),this.helpers)}catch(e){throw this.handleError(e,s)}}if(0!==t.iterator){let r,n=t.iterator;for(;r=s.nodes[s.indexes[n]];)if(s.indexes[n]+=1,!r[l])return r[l]=!0,void e.push(m(r));t.iterator=0,delete s.indexes[n]}let n=t.events;for(;t.eventIndex<n.length;){let e=n[t.eventIndex];if(t.eventIndex+=1,0===e)return void(s.nodes&&s.nodes.length&&(s[l]=!0,t.iterator=s.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[l]=!0;let t=d(e);for(let s of t)if(0===s)e.nodes&&e.each(e=>{e[l]||this.walkSync(e)});else{let t=this.listeners[s];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}}return w.registerPostcss=e=>{y=e},$e=w,w.default=w,o.registerLazyResult(w),t.registerLazyResult(w),$e}const nt=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(){if(ze)return Ue;ze=1;let e=He(),t=Ve(),s=We(),r=F(),n=Te(),o=Je(),i=function(){if(ge)return me;ge=1;let e=He(),t=Ve(),s=Te(),r=Ge(),n=Ye(),o=qe(),i=Ze();function l(a,c){if(Array.isArray(a))return a.map(e=>l(e));let{inputs:u,...h}=a;if(u){c=[];for(let e of u){let t={...e,__proto__:r.prototype};t.map&&(t.map={...t.map,__proto__:n.prototype}),c.push(t)}}if(h.nodes&&(h.nodes=a.nodes.map(e=>l(e,c))),h.source){let{inputId:e,...t}=h.source;h.source=t,null!=e&&(h.source.input=c[e])}if("root"===h.type)return new o(h);if("decl"===h.type)return new s(h);if("rule"===h.type)return new i(h);if("comment"===h.type)return new t(h);if("atrule"===h.type)return new e(h);throw new Error("Unknown node type: "+a.type)}return me=l,l.default=l,me}(),l=Ge(),a=rt(),c=Ke(),u=Fe(),h=Xe(),p=function(){if(De)return Me;De=1;let e=Je(),t=rt(),s=function(){if(Be)return je;Be=1;let e=Qe(),t=Xe(),s=tt(),r=T(),n=st();class o{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,s=t;try{e=s(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,n,o){n=n.toString(),this.stringified=!1,this._processor=t,this._css=n,this._opts=o,this._map=void 0;let i=r;this.result=new s(this._processor,void 0,this._opts),this.result.css=n;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let a=new e(i,void 0,this._opts,n);if(a.isMap()){let[e,t]=a.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||n("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}}return je=o,o.default=o,je}(),r=qe();class n{constructor(e=[]){this.version="8.5.14",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let s of e)if(!0===s.postcss?s=s():s.postcss&&(s=s.postcss),"object"==typeof s&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if("object"==typeof s&&s.postcssPlugin)t.push(s);else if("function"==typeof s)t.push(s);else{if("object"!=typeof s||!s.parse&&!s.stringify)throw new Error(s+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return t}process(e,r={}){return this.plugins.length||r.parser||r.stringifier||r.syntax?new t(this,e,r):new s(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return Me=n,n.default=n,r.registerProcessor(n),e.registerProcessor(n),Me}(),f=tt(),d=qe(),m=Ze(),g=T(),y=et();function w(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new p(e)}return w.plugin=function(e,t){let s,r=!1;function n(...s){console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let n=t(...s);return n.postcssPlugin=e,n.postcssVersion=(new p).version,n}return Object.defineProperty(n,"postcss",{get:()=>(s||(s=n()),s)}),n.process=function(e,t,s){return w([n(s)]).process(e,t)},n},w.stringify=g,w.parse=h,w.fromJSON=i,w.list=c,w.comment=e=>new t(e),w.atRule=t=>new e(t),w.decl=e=>new n(e),w.rule=e=>new m(e),w.root=e=>new d(e),w.document=e=>new o(e),w.CssSyntaxError=r,w.Declaration=n,w.Container=s,w.Processor=p,w.Document=o,w.Comment=t,w.Warning=y,w.AtRule=e,w.Result=f,w.Input=l,w.Rule=m,w.Root=d,w.Node=u,a.registerPostcss(w),Ue=w,w.default=w,Ue}());nt.stringify,nt.fromJSON,nt.plugin,nt.parse,nt.list,nt.document,nt.comment,nt.atRule,nt.rule,nt.decl,nt.root,nt.CssSyntaxError,nt.Declaration,nt.Container,nt.Processor,nt.Document,nt.Comment,nt.Warning,nt.AtRule,nt.Result,nt.Input,nt.Rule,nt.Root,nt.Node;const ot=new Set(["body","html",":root","*"]);function it(e,t){return e&&e.trim()?nt([(s=`[data-vbi-type="${t}"]`,{postcssPlugin:"hc-scope",AtRule(e){if("import"===e.name)return console.warn("[hc-css-scope] @import 已被拒绝(防外部资源加载):",e.params),void e.remove();"font-face"===e.name&&console.warn("[hc-css-scope] @font-face 全局生效,font-family 命名注意冲突")},Rule(e){(function(e){let t=e.parent;for(;t&&"object"==typeof t;){const e=t;if("atrule"===e.type&&/keyframes$/i.test(e.name??""))return!0;t=e.parent}return!1})(e)||(e.selectors=e.selectors.map(e=>function(e,t){const s=e.trim();if(!s)return s;if(ot.has(s))return t;for(const e of ot){const r=s.charAt(e.length);if(s.startsWith(e)&&(" "===r||">"===r||"+"===r||"~"===r||","===r))return t+s.slice(e.length)}return`${t} ${s}`}(e,s)))}})]).process(e,{from:void 0}).css:"";var s}const lt=new Map;function at(e){let t=5381;for(let s=0;s<e.length;s++)t=(t<<5)+t+e.charCodeAt(s)|0;return(t>>>0).toString(36)}function ct(e){const t=e.replace(/[^a-zA-Z0-9_-]/g,"_");return t===e?`hc-style-${t}`:`hc-style-${t}-${at(e).slice(0,6)}`}function ut(e,t){var s;const r=t??"",n=ct(e),o=lt.get(e);if(!r.trim())return null==(s=document.getElementById(n))||s.remove(),void(o&&lt.set(e,{...o,cssHash:""}));const i=at(r);if(o&&o.cssHash===i)return;let l;try{l=it(r,e)}catch(t){return void console.warn("[hc-css-scope]",e,"PostCSS process failed:",t)}!function(e,t){const s=ct(e);let r=document.getElementById(s);r||(r=document.createElement("style"),r.id=s,r.setAttribute("data-hc-scope",e),document.head.appendChild(r)),r.textContent=t}(e,l),o?lt.set(e,{...o,cssHash:i}):lt.set(e,{cssHash:i,refCount:0})}function ht(e,t){ut(e,t);const s=lt.get(e);s?lt.set(e,{...s,refCount:s.refCount+1}):lt.set(e,{cssHash:"",refCount:1})}function pt(e){var t;const s=lt.get(e);if(!s)return;const r=s.refCount-1;r<=0?(null==(t=document.getElementById(ct(e)))||t.remove(),lt.delete(e)):lt.set(e,{...s,refCount:r})}const ft={key:1,class:"rounded-md border-2 border-rose-300 bg-rose-50 p-4 text-sm text-rose-900 space-y-2 min-h-[140px] overflow-auto"},dt={class:"font-semibold flex items-center gap-1.5"},mt={class:"font-mono text-xs text-rose-800 break-all"},gt={key:0,class:"text-[10px] font-mono bg-rose-100/60 p-2 rounded overflow-auto max-h-60 text-rose-800"},yt=e.defineComponent({__name:"ErrorBoundary",props:{label:{}},setup(t){const s=t,r=e.ref(null),n=e.ref(0),o=e.ref(!1);function i(){r.value=null,o.value=!1,n.value++}return e.onErrorCaptured(e=>(console.error(`[hc-eb${s.label?" "+s.label:""}]`,e),r.value=e,!1)),(s,l)=>(e.openBlock(),e.createElementBlock("div",{key:n.value,class:"hc-eb-root",style:{width:"100%",height:"100%"}},[r.value?(e.openBlock(),e.createElementBlock("div",ft,[e.createElementVNode("div",dt,[l[1]||(l[1]=e.createElementVNode("span",null,"⚠️",-1)),e.createElementVNode("span",null,"组件渲染失败"+e.toDisplayString(t.label?` — ${t.label}`:""),1)]),e.createElementVNode("div",mt,e.toDisplayString(r.value.message),1),e.createElementVNode("button",{class:"text-xs text-rose-700 hover:text-rose-900 underline",onClick:l[0]||(l[0]=e=>o.value=!o.value)},e.toDisplayString(o.value?"隐藏":"展开")+"堆栈 ",1),o.value?(e.openBlock(),e.createElementBlock("pre",gt,e.toDisplayString(r.value.stack),1)):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"text-xs px-3 py-1 rounded bg-rose-600 hover:bg-rose-700 text-white transition-colors",onClick:i}," 重试 ")])):e.renderSlot(s.$slots,"default",{key:0})]))}}),wt=["data-vbi-id","data-vbi-type","data-vbi-canvas"],vt={key:0,class:"rounded-md border-2 border-amber-300 bg-amber-50 p-4 text-sm text-amber-900 space-y-2 min-h-[140px] overflow-auto"},bt={class:"text-[11px] font-mono break-all whitespace-pre-wrap"},xt={key:1,class:"grid place-items-center min-h-[140px] text-xs text-zinc-400"},Ct=e.defineComponent({__name:"RuntimeBox",props:{instanceId:{},componentId:{},scopeId:{},canvasId:{},htmlSource:{},jsSource:{},cssSource:{default:""},customValues:{default:()=>({})},position:{},size:{},zIndex:{}},setup(t){const s=t,r=e.computed(()=>s.scopeId??s.componentId),i=e.inject(o,null),l=e.computed(()=>s.canvasId??i??n),a=e.shallowRef(null),c=e.ref(null),u=e.ref(!1),p=e.ref(0);e.watch(()=>[s.htmlSource,s.jsSource],()=>{!async function(){u.value=!0,c.value=null;try{const e=await $({html:s.htmlSource,js:s.jsSource});a.value=e,p.value++}catch(e){c.value=e instanceof Error?e:new Error(String(e)),a.value=null}finally{u.value=!1}}()},{immediate:!0});let f=!1;e.watch(()=>[s.cssSource,r.value],([e,t],s)=>{const r=(null==s?void 0:s[1])??null;r&&r!==t?(pt(r),ht(t,e),f=!0):f?ut(t,e):(ht(t,e),f=!0)},{immediate:!0});const m=e.computed(()=>{const e={width:"100%",height:"100%"};return s.position&&(e.position="absolute",e.left=`${s.position.x}px`,e.top=`${s.position.y}px`),void 0!==s.zIndex&&(e.zIndex=String(s.zIndex)),e});let g=null,y=null;function w(e){if(e!==g)if(g=e,e&&"object"==typeof e){const t=l.value;h(t,s.instanceId,s.componentId,e),y=t}else null!==y&&(d(s.instanceId,y),y=null)}return e.onBeforeUnmount(()=>{null!==y&&(d(s.instanceId,y),y=null),g=null,f&&(pt(r.value),f=!1)}),(s,n)=>(e.openBlock(),e.createElementBlock("div",{class:"_vbi_box","data-vbi-id":t.instanceId,"data-vbi-type":r.value,"data-vbi-canvas":l.value,style:e.normalizeStyle(m.value)},[c.value?(e.openBlock(),e.createElementBlock("div",vt,[n[0]||(n[0]=e.createElementVNode("div",{class:"font-semibold"},"⚠️ 编译失败",-1)),e.createElementVNode("pre",bt,e.toDisplayString(c.value.message),1)])):u.value&&!a.value?(e.openBlock(),e.createElementBlock("div",xt," 编译中… ")):a.value?(e.openBlock(),e.createBlock(yt,{key:p.value,label:t.instanceId},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value.options),{"hc-custom-values":t.customValues,ref:w},null,8,["hc-custom-values"]))]),_:1},8,["label"])):e.createCommentVNode("",!0)],12,wt))}});exports.parseComponentSource=t.parseComponentSource,exports.DEFAULT_CANVAS_ID=n,exports.ErrorBoundary=yt,exports.HC_CANVAS_ID_KEY=o,exports.HC_INJECT_KEY=O,exports.RuntimeBox=Ct,exports.VERSION="0.0.0-stage2b",exports.__resetLifecycleEmitter=function(){l.all.clear()},exports.__resetRegistry=function(){const e=[];for(const[t,s]of u)for(const[r,n]of s)n.__dispose(),e.push({canvasId:t,instanceId:r});u.clear(),i.value++;for(const t of e)a("instance:unmounted",t)},exports.assets=w,exports.attachScope=ht,exports.clearCompileCache=function(){I.clear()},exports.compileComponent=$,exports.createCanvasesRegistry=b,exports.createHyperCard=function(e={}){const t=e.strict??!1,s=e.libs??{},r=e.version??"v1";return{install(e){const n=Object.entries(s),o=n.filter(([,e])=>C(e)),i=n.filter(([e])=>x.has(e)),l=[`[hypercard] 已注册 ${n.length} 个 libs:`];for(const[e,t]of n)l.push(` ${e.padEnd(16)} ${k(t)}`);console.info(l.join("\n"));const a=[];o.length>1&&a.push(`检测到 ${o.length} 个 Vue plugin(${o.map(([e])=>e).join(", ")}),请确认全局组件命名不冲突`);for(const[e]of i)a.push(`lib 名 "${e}" 是保留词,建议改名`);if(a.length>0){const e=a.map(e=>` - ${e}`).join("\n");if(t)throw new Error(`[hypercard] strict mode 阻止启动:\n${e}`);console.warn(`[hypercard] 警告:\n${e}`)}for(const[s,r]of o){const[n,o]=S(r);try{e.use(n,...o)}catch(e){if(console.error(`[hypercard] app.use("${s}") 失败:`,e),t)throw e}}const c={};for(const[e,t]of n){const[s]=S(t);c[e]=s}const u={libs:c,runtime:y,assets:w,version:r,canvases:b()};e.provide(O,u),e.config.globalProperties.$hc=u,"undefined"!=typeof window&&(window.__HYPERCARD__=u)}}},exports.debugScopedCssRefs=function(){return[...lt.entries()].map(([e,t])=>({scopeId:e,componentId:e,refCount:t.refCount,cssHash:t.cssHash}))},exports.detachScope=pt,exports.disposeCanvas=p,exports.getCompileCacheSize=function(){return I.size},exports.getInstance=m,exports.getScopedCssCount=function(){return lt.size},exports.injectScopedCss=ut,exports.isVuePlugin=C,exports.listCanvasIds=f,exports.listInstances=g,exports.onInstanceLifecycle=function(e,t){const s=e=>{try{t(e)}catch(e){console.error("[hc-registry] instance lifecycle listener threw",e)}};return l.on(e,s),()=>l.off(e,s)},exports.register=function(e,t,s){return h(n,e,t,s)},exports.registerInCanvas=h,exports.registryVersion=i,exports.removeScopedCss=function(e){var t;null==(t=document.getElementById(ct(e)))||t.remove(),lt.delete(e)},exports.runtime=y,exports.scopeCss=it,exports.unregister=d;