import{S as Yp,c as Jp,a as Zp,t as xt,h as Ba,b as _t,j as Va,l as mu,d as Wt,e as Ha,m as Qt,f as Xt,F as fr,V as Ym}from"./index-CFSywFfb.js";import{e as Mt,i as Ua,d as za,o as Jm,S as hr}from"./lifecycle-u0QeOdKt.js";import{g as mr,a as gr}from"./spread-CgU5AtxT.js";import{d as Zm}from"./index-DrFu-skq.js";import{c as _r}from"./_commonjsHelpers-Cpj98o6Y.js";var eg=Object.defineProperty,tg=(e,t)=>{for(var r in t)eg(e,r,{get:t[r],enumerable:!0})};function rg(e){let t,r,a;const n=[e[2]];var i=e[1];function o(u,l){let s={};for(let d=0;d{Xt(s,1)}),Ba()}i?(t=hr(i,o(u,l)),u[9](t),Wt(t.$$.fragment),_t(t.$$.fragment,1),Qt(t,r.parentNode,r)):t=null}else if(i){const s=l&4?mr(n,[gr(u[2])]):{};t.$set(s)}},i(u){a||(t&&_t(t.$$.fragment,u),a=!0)},o(u){t&&xt(t.$$.fragment,u),a=!1},d(u){u&&za(r),e[9](null),t&&Xt(t,u)}}}function ag(e){let t,r,a;const n=[e[0].props];var i=e[0].Component;function o(u,l){let s={$$slots:{default:[ng]},$$scope:{ctx:u}};for(let d=0;d{Xt(s,1)}),Ba()}i?(t=hr(i,o(u,l)),u[8](t),Wt(t.$$.fragment),_t(t.$$.fragment,1),Qt(t,r.parentNode,r)):t=null}else if(i){const s=l&1?mr(n,[gr(u[0].props)]):{};l&1038&&(s.$$scope={dirty:l,ctx:u}),t.$set(s)}},i(u){a||(t&&_t(t.$$.fragment,u),a=!0)},o(u){t&&xt(t.$$.fragment,u),a=!1},d(u){u&&za(r),e[8](null),t&&Xt(t,u)}}}function ng(e){let t,r,a;const n=[e[2]];var i=e[1];function o(u,l){let s={};for(let d=0;d{Xt(s,1)}),Ba()}i?(t=hr(i,o(u,l)),u[7](t),Wt(t.$$.fragment),_t(t.$$.fragment,1),Qt(t,r.parentNode,r)):t=null}else if(i){const s=l&4?mr(n,[gr(u[2])]):{};t.$set(s)}},i(u){a||(t&&_t(t.$$.fragment,u),a=!0)},o(u){t&&xt(t.$$.fragment,u),a=!1},d(u){u&&za(r),e[7](null),t&&Xt(t,u)}}}function ig(e){let t,r,a,n;const i=[ag,rg],o=[];function u(l,s){return l[0]?0:1}return t=u(e),r=o[t]=i[t](e),{c(){r.c(),a=Mt()},l(l){r.l(l),a=Mt()},m(l,s){o[t].m(l,s),Ua(l,a,s),n=!0},p(l,[s]){let d=t;t=u(l),t===d?o[t].p(l,s):(Va(),xt(o[d],1,1,()=>{o[d]=null}),Ba(),r=o[t],r?r.p(l,s):(r=o[t]=i[t](l),r.c()),_t(r,1),r.m(a.parentNode,a))},i(l){n||(_t(r),n=!0)},o(l){xt(r),n=!1},d(l){l&&za(a),o[t].d(l)}}}function og(e,t,r){let{svelteVersion:a}=t,{decorator:n=void 0}=t,{Component:i}=t,{props:o={}}=t,{on:u=void 0}=t,l,s;u&&a<5&&Jm(()=>{Object.entries(u).forEach(([_,T])=>{var V;const L=l??s;(V=L==null?void 0:L.$on)==null||V.call(L,_,T)})});function d(_){mu[_?"unshift":"push"](()=>{l=_,r(3,l)})}function p(_){mu[_?"unshift":"push"](()=>{s=_,r(4,s)})}function y(_){mu[_?"unshift":"push"](()=>{l=_,r(3,l)})}return e.$$set=_=>{"svelteVersion"in _&&r(5,a=_.svelteVersion),"decorator"in _&&r(0,n=_.decorator),"Component"in _&&r(1,i=_.Component),"props"in _&&r(2,o=_.props),"on"in _&&r(6,u=_.on)},[n,i,o,l,s,a,u,d,p,y]}class Oc extends Yp{constructor(t){super(),Jp(this,t,og,ig,Zp,{svelteVersion:5,decorator:0,Component:1,props:2,on:6})}}Oc.__docgen={version:3,name:"SlotDecorator.svelte",data:[{visibility:"public",description:null,keywords:[],name:"svelteVersion",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"decorator",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"Component",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"props",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}},{visibility:"public",description:null,keywords:[],name:"on",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};function sg(e){let t,r;return t=new Oc({props:{svelteVersion:e[0],Component:e[1],props:e[2],on:{...e[4],...e[3]}}}),{c(){Wt(t.$$.fragment)},l(a){Ha(t.$$.fragment,a)},m(a,n){Qt(t,a,n),r=!0},p(a,[n]){const i={};n&1&&(i.svelteVersion=a[0]),n&2&&(i.Component=a[1]),n&4&&(i.props=a[2]),n&8&&(i.on={...a[4],...a[3]}),t.$set(i)},i(a){r||(_t(t.$$.fragment,a),r=!0)},o(a){xt(t.$$.fragment,a),r=!1},d(a){Xt(t,a)}}}function lg(e,t,r){let{svelteVersion:a}=t,{name:n}=t,{title:i}=t,{storyFn:o}=t,{showError:u}=t,{storyContext:l}=t,{Component:s,props:d={},on:p}=o(),y=!0;function _(L){return y?(y=!1,{Component:s,props:d,on:p}):L()}const T=Object.fromEntries(Object.entries(l.argTypes).filter(([L,V])=>V.action&&d[L]!=null).map(([L,V])=>[V.action,d[L]]));return s||u({title:`Expecting a Svelte component from the story: "${n}" of "${i}".`,description:Zm` Did you forget to return the Svelte component configuration from the story? Use "() => ({ Component: YourComponent, props: {} })" when defining the story. `}),e.$$set=L=>{"svelteVersion"in L&&r(0,a=L.svelteVersion),"name"in L&&r(5,n=L.name),"title"in L&&r(6,i=L.title),"storyFn"in L&&r(7,o=L.storyFn),"showError"in L&&r(8,u=L.showError),"storyContext"in L&&r(9,l=L.storyContext)},e.$$.update=()=>{e.$$.dirty&128&&r(1,{Component:s,props:d={},on:p}=_(o),s,(r(2,d),r(7,o)),(r(3,p),r(7,o)))},[a,s,d,p,T,n,i,o,u,l]}class Mc extends Yp{constructor(t){super(),Jp(this,t,lg,sg,Zp,{svelteVersion:0,name:5,title:6,storyFn:7,showError:8,storyContext:9})}}Mc.__docgen={version:3,name:"PreviewRender.svelte",data:[{visibility:"public",description:null,keywords:[],name:"svelteVersion",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"name",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"title",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"storyFn",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"showError",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"storyContext",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const ug=e=>$state(e);var cg=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239],ef=[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,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,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,159,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,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],dg="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",tf="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",gu={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"},vu="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",pg={5:vu,"5module":vu+" export import",6:vu+" const class extends export import super"},fg=/^in(stanceof)?$/,hg=new RegExp("["+tf+"]"),mg=new RegExp("["+tf+dg+"]");function Ju(e,t){for(var r=65536,a=0;ae)return!1;if(r+=t[a+1],r>=e)return!0}return!1}function Ct(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&hg.test(String.fromCharCode(e)):t===!1?!1:Ju(e,ef)}function vr(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&mg.test(String.fromCharCode(e)):t===!1?!1:Ju(e,ef)||Ju(e,cg)}var re=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function Ue(e,t){return new re(e,{beforeExpr:!0,binop:t})}var ze={beforeExpr:!0},Ne={startsExpr:!0},Tc={};function Z(e,t){return t===void 0&&(t={}),t.keyword=e,Tc[e]=new re(e,t)}var c={num:new re("num",Ne),regexp:new re("regexp",Ne),string:new re("string",Ne),name:new re("name",Ne),privateId:new re("privateId",Ne),eof:new re("eof"),bracketL:new re("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new re("]"),braceL:new re("{",{beforeExpr:!0,startsExpr:!0}),braceR:new re("}"),parenL:new re("(",{beforeExpr:!0,startsExpr:!0}),parenR:new re(")"),comma:new re(",",ze),semi:new re(";",ze),colon:new re(":",ze),dot:new re("."),question:new re("?",ze),questionDot:new re("?."),arrow:new re("=>",ze),template:new re("template"),invalidTemplate:new re("invalidTemplate"),ellipsis:new re("...",ze),backQuote:new re("`",Ne),dollarBraceL:new re("${",{beforeExpr:!0,startsExpr:!0}),eq:new re("=",{beforeExpr:!0,isAssign:!0}),assign:new re("_=",{beforeExpr:!0,isAssign:!0}),incDec:new re("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new re("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Ue("||",1),logicalAND:Ue("&&",2),bitwiseOR:Ue("|",3),bitwiseXOR:Ue("^",4),bitwiseAND:Ue("&",5),equality:Ue("==/!=/===/!==",6),relational:Ue("/<=/>=",7),bitShift:Ue("<>/>>>",8),plusMin:new re("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Ue("%",10),star:Ue("*",10),slash:Ue("/",10),starstar:new re("**",{beforeExpr:!0}),coalesce:Ue("??",1),_break:Z("break"),_case:Z("case",ze),_catch:Z("catch"),_continue:Z("continue"),_debugger:Z("debugger"),_default:Z("default",ze),_do:Z("do",{isLoop:!0,beforeExpr:!0}),_else:Z("else",ze),_finally:Z("finally"),_for:Z("for",{isLoop:!0}),_function:Z("function",Ne),_if:Z("if"),_return:Z("return",ze),_switch:Z("switch"),_throw:Z("throw",ze),_try:Z("try"),_var:Z("var"),_const:Z("const"),_while:Z("while",{isLoop:!0}),_with:Z("with"),_new:Z("new",{beforeExpr:!0,startsExpr:!0}),_this:Z("this",Ne),_super:Z("super",Ne),_class:Z("class",Ne),_extends:Z("extends",ze),_export:Z("export"),_import:Z("import",Ne),_null:Z("null",Ne),_true:Z("true",Ne),_false:Z("false",Ne),_in:Z("in",{beforeExpr:!0,binop:7}),_instanceof:Z("instanceof",{beforeExpr:!0,binop:7}),_typeof:Z("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Z("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Z("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Ze=/\r\n?|\n|\u2028|\u2029/,gg=new RegExp(Ze.source,"g");function Cr(e){return e===10||e===13||e===8232||e===8233}function rf(e,t,r){r===void 0&&(r=e.length);for(var a=t;a>10)+55296,(e&1023)+56320))}var yg=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ur=function(t,r){this.line=t,this.column=r};Ur.prototype.offset=function(t){return new Ur(this.line,this.column+t)};var Ga=function(t,r,a){this.start=r,this.end=a,t.sourceFile!==null&&(this.source=t.sourceFile)};function of(e,t){for(var r=1,a=0;;){var n=rf(e,a,t);if(n<0)return new Ur(r,t-a);++r,a=n}}var Zu={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},_d=!1;function xg(e){var t={};for(var r in Zu)t[r]=e&&Yr(e,r)?e[r]:Zu[r];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!_d&&typeof console=="object"&&console.warn&&(_d=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),yd(t.onToken)){var a=t.onToken;t.onToken=function(n){return a.push(n)}}return yd(t.onComment)&&(t.onComment=_g(t,t.onComment)),t}function _g(e,t){return function(r,a,n,i,o,u){var l={type:r?"Block":"Line",value:a,start:n,end:i};e.locations&&(l.loc=new Ga(this,o,u)),e.ranges&&(l.range=[n,i]),t.push(l)}}var zr=1,wr=2,Lc=4,sf=8,lf=16,uf=32,$c=64,cf=128,Jr=256,Ic=zr|wr|Jr;function Nc(e,t){return wr|(e?Lc:0)|(t?sf:0)}var Ea=0,jc=1,kt=2,df=3,pf=4,ff=5,Re=function(t,r,a){this.options=t=xg(t),this.sourceFile=t.sourceFile,this.keywords=Ot(pg[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";t.allowReserved!==!0&&(n=gu[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(n+=" await")),this.reservedWords=Ot(n);var i=(n?n+" ":"")+gu.strict;this.reservedWordsStrict=Ot(i),this.reservedWordsStrictBind=Ot(i+" "+gu.strictBind),this.input=String(r),this.containsEsc=!1,a?(this.pos=a,this.lineStart=this.input.lastIndexOf(` `,a-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Ze).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=c.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(zr),this.regexpState=null,this.privateNameStack=[]},ht={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Re.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};ht.inFunction.get=function(){return(this.currentVarScope().flags&wr)>0};ht.inGenerator.get=function(){return(this.currentVarScope().flags&sf)>0&&!this.currentVarScope().inClassFieldInit};ht.inAsync.get=function(){return(this.currentVarScope().flags&Lc)>0&&!this.currentVarScope().inClassFieldInit};ht.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Jr)return!1;if(t.flags&wr)return(t.flags&Lc)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};ht.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&$c)>0||r||this.options.allowSuperOutsideMethod};ht.allowDirectSuper.get=function(){return(this.currentThisScope().flags&cf)>0};ht.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};ht.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&(wr|Jr))>0||r};ht.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Jr)>0};Re.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var a=this,n=0;n=,?^&]/.test(n)||n==="!"&&this.input.charAt(a+1)==="=")}e+=t[0].length,Qe.lastIndex=e,e+=Qe.exec(this.input)[0].length,this.input[e]===";"&&e++}};Te.eat=function(e){return this.type===e?(this.next(),!0):!1};Te.isContextual=function(e){return this.type===c.name&&this.value===e&&!this.containsEsc};Te.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Te.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Te.canInsertSemicolon=function(){return this.type===c.eof||this.type===c.braceR||Ze.test(this.input.slice(this.lastTokEnd,this.start))};Te.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Te.semicolon=function(){!this.eat(c.semi)&&!this.insertSemicolon()&&this.unexpected()};Te.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Te.expect=function(e){this.eat(e)||this.unexpected()};Te.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Wa=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Te.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}};Te.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,a=e.doubleProto;if(!t)return r>=0||a>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),a>=0&&this.raiseRecoverable(a,"Redefinition of __proto__ property")};Te.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&a<56320)return!0;if(Ct(a,!0)){for(var n=r+1;vr(a=this.input.charCodeAt(n),!0);)++n;if(a===92||a>55295&&a<56320)return!0;var i=this.input.slice(r,n);if(!fg.test(i))return!0}return!1};j.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Qe.lastIndex=this.pos;var e=Qe.exec(this.input),t=this.pos+e[0].length,r;return!Ze.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(vr(r=this.input.charCodeAt(t+8))||r>55295&&r<56320))};j.parseStatement=function(e,t,r){var a=this.type,n=this.startNode(),i;switch(this.isLet(e)&&(a=c._var,i="let"),a){case c._break:case c._continue:return this.parseBreakContinueStatement(n,a.keyword);case c._debugger:return this.parseDebuggerStatement(n);case c._do:return this.parseDoStatement(n);case c._for:return this.parseForStatement(n);case c._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case c._class:return e&&this.unexpected(),this.parseClass(n,!0);case c._if:return this.parseIfStatement(n);case c._return:return this.parseReturnStatement(n);case c._switch:return this.parseSwitchStatement(n);case c._throw:return this.parseThrowStatement(n);case c._try:return this.parseTryStatement(n);case c._const:case c._var:return i=i||this.value,e&&i!=="var"&&this.unexpected(),this.parseVarStatement(n,i);case c._while:return this.parseWhileStatement(n);case c._with:return this.parseWithStatement(n);case c.braceL:return this.parseBlock(!0,n);case c.semi:return this.parseEmptyStatement(n);case c._export:case c._import:if(this.options.ecmaVersion>10&&a===c._import){Qe.lastIndex=this.pos;var o=Qe.exec(this.input),u=this.pos+o[0].length,l=this.input.charCodeAt(u);if(l===40||l===46)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||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'")),a===c._import?this.parseImport(n):this.parseExport(n,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var s=this.value,d=this.parseExpression();return a===c.name&&d.type==="Identifier"&&this.eat(c.colon)?this.parseLabeledStatement(n,s,d,e):this.parseExpressionStatement(n,d)}};j.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(c.semi)||this.insertSemicolon()?e.label=null:this.type!==c.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var a=0;a=6?this.eat(c.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};j.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Dc),this.enterScope(0),this.expect(c.parenL),this.type===c.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===c._var||this.type===c._const||r){var a=this.startNode(),n=r?"let":this.value;return this.next(),this.parseVar(a,!0,n),this.finishNode(a,"VariableDeclaration"),(this.type===c._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&a.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===c._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,a)):(t>-1&&this.unexpected(t),this.parseFor(e,a))}var i=this.isContextual("let"),o=!1,u=new Wa,l=this.parseExpression(t>-1?"await":!0,u);return this.type===c._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===c._in?t>-1&&this.unexpected(t):e.await=t>-1),i&&o&&this.raise(l.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(l,!1,u),this.checkLValPattern(l),this.parseForIn(e,l)):(this.checkExpressionErrors(u,!0),t>-1&&this.unexpected(t),this.parseFor(e,l))};j.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,jr|(r?0:ec),!1,t)};j.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(c._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};j.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(c.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};j.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(c.braceL),this.labels.push(wg),this.enterScope(0);for(var t,r=!1;this.type!==c.braceR;)if(this.type===c._case||this.type===c._default){var a=this.type===c._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),a?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(c.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};j.parseThrowStatement=function(e){return this.next(),Ze.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Rg=[];j.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?uf:0),this.checkLValPattern(e,t?pf:kt),this.expect(c.parenR),e};j.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===c._catch){var t=this.startNode();this.next(),this.eat(c.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(c._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};j.parseVarStatement=function(e,t,r){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")};j.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Dc),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};j.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};j.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};j.parseLabeledStatement=function(e,t,r,a){for(var n=0,i=this.labels;n=0;l--){var s=this.labels[l];if(s.statementStart===e.start)s.statementStart=this.start,s.kind=u;else break}return this.labels.push({name:t,kind:u,statementStart:this.start}),e.body=this.parseStatement(a?a.indexOf("label")===-1?a+"label":a:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};j.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};j.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(c.braceL),e&&this.enterScope(0);this.type!==c.braceR;){var a=this.parseStatement(null);t.body.push(a)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};j.parseFor=function(e,t){return e.init=t,this.expect(c.semi),e.test=this.type===c.semi?null:this.parseExpression(),this.expect(c.semi),e.update=this.type===c.parenR?null:this.parseExpression(),this.expect(c.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};j.parseForIn=function(e,t){var r=this.type===c._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(c.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};j.parseVar=function(e,t,r,a){for(e.declarations=[],e.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(c.eq)?n.init=this.parseMaybeAssign(t):!a&&r==="const"&&!(this.type===c._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!a&&n.id.type!=="Identifier"&&!(t&&(this.type===c._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):n.init=null,e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(c.comma))break}return e};j.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?jc:kt,!1)};var jr=1,ec=2,hf=4;j.parseFunction=function(e,t,r,a,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!a)&&(this.type===c.star&&t&ec&&this.unexpected(),e.generator=this.eat(c.star)),this.options.ecmaVersion>=8&&(e.async=!!a),t&jr&&(e.id=t&hf&&this.type!==c.name?null:this.parseIdent(),e.id&&!(t&ec)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?jc:kt:df));var i=this.yieldPos,o=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Nc(e.async,e.generator)),t&jr||(e.id=this.type===c.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,n),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=u,this.finishNode(e,t&jr?"FunctionDeclaration":"FunctionExpression")};j.parseFunctionParams=function(e){this.expect(c.parenL),e.params=this.parseBindingList(c.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};j.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var a=this.enterClassBody(),n=this.startNode(),i=!1;for(n.body=[],this.expect(c.braceL);this.type!==c.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(n.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(i&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),i=!0):o.key&&o.key.type==="PrivateIdentifier"&&kg(a,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};j.parseClassElement=function(e){if(this.eat(c.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),a="",n=!1,i=!1,o="method",u=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(c.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===c.star?u=!0:a="static"}if(r.static=u,!a&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===c.star)&&!this.canInsertSemicolon()?i=!0:a="async"),!a&&(t>=9||!i)&&this.eat(c.star)&&(n=!0),!a&&!i&&!n){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=l:a=l)}if(a?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=a,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===c.parenL||o!=="method"||n||i){var s=!r.static&&qa(r,"constructor"),d=s&&e;s&&o!=="method"&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=s?"constructor":o,this.parseClassMethod(r,n,i,d)}else this.parseClassField(r);return r};j.isClassElementNameStart=function(){return this.type===c.name||this.type===c.privateId||this.type===c.num||this.type===c.string||this.type===c.bracketL||this.type.keyword};j.parseClassElementName=function(e){this.type===c.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};j.parseClassMethod=function(e,t,r,a){var n=e.key;e.kind==="constructor"?(t&&this.raise(n.start,"Constructor can't be a generator"),r&&this.raise(n.start,"Constructor can't be an async method")):e.static&&qa(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var i=e.value=this.parseMethod(t,r,a);return e.kind==="get"&&i.params.length!==0&&this.raiseRecoverable(i.start,"getter should have no params"),e.kind==="set"&&i.params.length!==1&&this.raiseRecoverable(i.start,"setter should have exactly one param"),e.kind==="set"&&i.params[0].type==="RestElement"&&this.raiseRecoverable(i.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};j.parseClassField=function(e){if(qa(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&qa(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(c.eq)){var t=this.currentThisScope(),r=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=r}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};j.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Jr|$c);this.type!==c.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};j.parseClassId=function(e,t){this.type===c.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,kt,!1)):(t===!0&&this.unexpected(),e.id=null)};j.parseClassSuper=function(e){e.superClass=this.eat(c._extends)?this.parseExprSubscripts(null,!1):null};j.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};j.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,r=e.used;if(this.options.checkPrivateFields)for(var a=this.privateNameStack.length,n=a===0?null:this.privateNameStack[a-1],i=0;i=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==c.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};j.parseExport=function(e,t){if(this.next(),this.eat(c.star))return this.parseExportAllDeclaration(e,t);if(this.eat(c._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==c.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var r=0,a=e.specifiers;r=13&&this.type===c.string){var e=this.parseLiteral(this.value);return yg.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};j.adaptDirectivePrologue=function(e){for(var t=0;t=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var et=Re.prototype;et.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var a=0,n=e.properties;a=8&&!u&&l.name==="async"&&!this.canInsertSemicolon()&&this.eat(c._function))return this.overrideContext(he.f_expr),this.parseFunction(this.startNodeAt(i,o),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(c.arrow))return this.parseArrowExpression(this.startNodeAt(i,o),[l],!1,t);if(this.options.ecmaVersion>=8&&l.name==="async"&&this.type===c.name&&!u&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return l=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(c.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,o),[l],!0,t)}return l;case c.regexp:var s=this.value;return a=this.parseLiteral(s.value),a.regex={pattern:s.pattern,flags:s.flags},a;case c.num:case c.string:return this.parseLiteral(this.value);case c._null:case c._true:case c._false:return a=this.startNode(),a.value=this.type===c._null?null:this.type===c._true,a.raw=this.type.keyword,this.next(),this.finishNode(a,"Literal");case c.parenL:var d=this.start,p=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(e.parenthesizedAssign=d),e.parenthesizedBind<0&&(e.parenthesizedBind=d)),p;case c.bracketL:return a=this.startNode(),this.next(),a.elements=this.parseExprList(c.bracketR,!0,!0,e),this.finishNode(a,"ArrayExpression");case c.braceL:return this.overrideContext(he.b_expr),this.parseObj(!1,e);case c._function:return a=this.startNode(),this.next(),this.parseFunction(a,0);case c._class:return this.parseClass(this.startNode(),!1);case c._new:return this.parseNew();case c.backQuote:return this.parseTemplate();case c._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}};H.parseExprAtomDefault=function(){this.unexpected()};H.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===c.parenL&&!e)return this.parseDynamicImport(t);if(this.type===c.dot){var r=this.startNodeAt(t.start,t.loc&&t.loc.start);return r.name="import",t.meta=this.finishNode(r,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};H.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(c.parenR)){var t=this.start;this.eat(c.comma)&&this.eat(c.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};H.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};H.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};H.parseParenExpression=function(){this.expect(c.parenL);var e=this.parseExpression();return this.expect(c.parenR),e};H.shouldParseArrow=function(e){return!this.canInsertSemicolon()};H.parseParenAndDistinguishExpression=function(e,t){var r=this.start,a=this.startLoc,n,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,u=this.startLoc,l=[],s=!0,d=!1,p=new Wa,y=this.yieldPos,_=this.awaitPos,T;for(this.yieldPos=0,this.awaitPos=0;this.type!==c.parenR;)if(s?s=!1:this.expect(c.comma),i&&this.afterTrailingComma(c.parenR,!0)){d=!0;break}else if(this.type===c.ellipsis){T=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===c.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else l.push(this.parseMaybeAssign(!1,p,this.parseParenItem));var L=this.lastTokEnd,V=this.lastTokEndLoc;if(this.expect(c.parenR),e&&this.shouldParseArrow(l)&&this.eat(c.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=y,this.awaitPos=_,this.parseParenArrowList(r,a,l,t);(!l.length||d)&&this.unexpected(this.lastTokStart),T&&this.unexpected(T),this.checkExpressionErrors(p,!0),this.yieldPos=y||this.yieldPos,this.awaitPos=_||this.awaitPos,l.length>1?(n=this.startNodeAt(o,u),n.expressions=l,this.finishNodeAt(n,"SequenceExpression",L,V)):n=l[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var b=this.startNodeAt(r,a);return b.expression=n,this.finishNode(b,"ParenthesizedExpression")}else return n};H.parseParenItem=function(e){return e};H.parseParenArrowList=function(e,t,r,a){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,a)};var Sg=[];H.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===c.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var a=this.start,n=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),a,n,!0,!1),this.eat(c.parenL)?e.arguments=this.parseExprList(c.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Sg,this.finishNode(e,"NewExpression")};H.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===c.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` `),cooked:this.value},this.next(),r.tail=this.type===c.backQuote,this.finishNode(r,"TemplateElement")};H.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var a=this.parseTemplateElement({isTagged:t});for(r.quasis=[a];!a.tail;)this.type===c.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(c.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(c.braceR),r.quasis.push(a=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};H.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===c.name||this.type===c.num||this.type===c.string||this.type===c.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===c.star)&&!Ze.test(this.input.slice(this.lastTokEnd,this.start))};H.parseObj=function(e,t){var r=this.startNode(),a=!0,n={};for(r.properties=[],this.next();!this.eat(c.braceR);){if(a)a=!1;else if(this.expect(c.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(c.braceR))break;var i=this.parseProperty(e,t);e||this.checkPropClash(i,n,t),r.properties.push(i)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};H.parseProperty=function(e,t){var r=this.startNode(),a,n,i,o;if(this.options.ecmaVersion>=9&&this.eat(c.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===c.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,t),this.type===c.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(i=this.start,o=this.startLoc),e||(a=this.eat(c.star)));var u=this.containsEsc;return this.parsePropertyName(r),!e&&!u&&this.options.ecmaVersion>=8&&!a&&this.isAsyncProp(r)?(n=!0,a=this.options.ecmaVersion>=9&&this.eat(c.star),this.parsePropertyName(r)):n=!1,this.parsePropertyValue(r,e,a,n,i,o,t,u),this.finishNode(r,"Property")};H.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var r=e.value.start;e.kind==="get"?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};H.parsePropertyValue=function(e,t,r,a,n,i,o,u){(r||a)&&this.type===c.colon&&this.unexpected(),this.eat(c.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===c.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,a)):!t&&!u&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==c.comma&&this.type!==c.braceR&&this.type!==c.eq?((r||a)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||a)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,i,this.copyNode(e.key)):this.type===c.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,i,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};H.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(c.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(c.bracketR),e.key;e.computed=!1}return e.key=this.type===c.num||this.type===c.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};H.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};H.parseMethod=function(e,t,r){var a=this.startNode(),n=this.yieldPos,i=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(a),this.options.ecmaVersion>=6&&(a.generator=e),this.options.ecmaVersion>=8&&(a.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Nc(t,a.generator)|$c|(r?cf:0)),this.expect(c.parenL),a.params=this.parseBindingList(c.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(a,!1,!0,!1),this.yieldPos=n,this.awaitPos=i,this.awaitIdentPos=o,this.finishNode(a,"FunctionExpression")};H.parseArrowExpression=function(e,t,r,a){var n=this.yieldPos,i=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(Nc(r,!1)|lf),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,a),this.yieldPos=n,this.awaitPos=i,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};H.parseFunctionBody=function(e,t,r,a){var n=t&&this.type!==c.braceL,i=this.strict,o=!1;if(n)e.body=this.parseMaybeAssign(a),e.expression=!0,this.checkParams(e,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!i||u)&&(o=this.strictDirective(this.end),o&&u&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var l=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!i&&!o&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,ff),e.body=this.parseBlock(!1,void 0,o&&!i),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()};H.isSimpleParamList=function(e){for(var t=0,r=e;t-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&n.flags&zr&&delete this.undefinedExports[e]}else if(t===pf){var i=this.currentScope();i.lexical.push(e)}else if(t===df){var o=this.currentScope();this.treatFunctionsAsVar?a=o.lexical.indexOf(e)>-1:a=o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var u=this.scopeStack.length-1;u>=0;--u){var l=this.scopeStack[u];if(l.lexical.indexOf(e)>-1&&!(l.flags&uf&&l.lexical[0]===e)||!this.treatFunctionsAsVarInScope(l)&&l.functions.indexOf(e)>-1){a=!0;break}if(l.var.push(e),this.inModule&&l.flags&zr&&delete this.undefinedExports[e],l.flags&Ic)break}a&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};$t.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};$t.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};$t.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Ic)return t}};$t.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Ic&&!(t.flags&lf))return t}};var Qa=function(t,r,a){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new Ga(t,a)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},Zr=Re.prototype;Zr.startNode=function(){return new Qa(this,this.start,this.startLoc)};Zr.startNodeAt=function(e,t){return new Qa(this,e,t)};function gf(e,t,r,a){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=a),this.options.ranges&&(e.range[1]=r),e}Zr.finishNode=function(e,t){return gf.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Zr.finishNodeAt=function(e,t,r,a){return gf.call(this,e,t,r,a)};Zr.copyNode=function(e){var t=new Qa(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var vf="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",bf=vf+" Extended_Pictographic",yf=bf,xf=yf+" EBase EComp EMod EPres ExtPict",_f=xf,Ag=_f,Eg={9:vf,10:bf,11:yf,12:xf,13:_f,14:Ag},qg="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Og={9:"",10:"",11:"",12:"",13:"",14:qg},Cd="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",Cf="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",wf=Cf+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Rf=wf+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",kf=Rf+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Sf=kf+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Mg=Sf+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",Tg={9:Cf,10:wf,11:Rf,12:kf,13:Sf,14:Mg},Pf={};function Lg(e){var t=Pf[e]={binary:Ot(Eg[e]+" "+Cd),binaryOfStrings:Ot(Og[e]),nonBinary:{General_Category:Ot(Cd),Script:Ot(Tg[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var bu=0,wd=[9,10,11,12,13,14];bu=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Pf[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=[],this.backReferenceNames=[]};mt.prototype.reset=function(t,r,a){var n=a.indexOf("v")!==-1,i=a.indexOf("u")!==-1;this.start=t|0,this.source=r+"",this.flags=a,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)};mt.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};mt.prototype.at=function(t,r){r===void 0&&(r=!1);var a=this.source,n=a.length;if(t>=n)return-1;var i=a.charCodeAt(t);if(!(r||this.switchU)||i<=55295||i>=57344||t+1>=n)return i;var o=a.charCodeAt(t+1);return o>=56320&&o<=57343?(i<<10)+o-56613888:i};mt.prototype.nextIndex=function(t,r){r===void 0&&(r=!1);var a=this.source,n=a.length;if(t>=n)return n;var i=a.charCodeAt(t),o;return!(r||this.switchU)||i<=55295||i>=57344||t+1>=n||(o=a.charCodeAt(t+1))<56320||o>57343?t+1:t+2};mt.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};mt.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};mt.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};mt.prototype.eat=function(t,r){return r===void 0&&(r=!1),this.current(r)===t?(this.advance(r),!0):!1};mt.prototype.eatChars=function(t,r){r===void 0&&(r=!1);for(var a=this.pos,n=0,i=t;n-1&&this.raise(e.start,"Duplicate regular expression flag"),o==="u"&&(a=!0),o==="v"&&(n=!0)}this.options.ecmaVersion>=15&&a&&n&&this.raise(e.start,"Invalid regular expression flag")};$.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))};$.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1};$.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};$.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};$.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var a=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(a=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return n!==-1&&n=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};$.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};$.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};$.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Af(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Af(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}$.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!Af(r);)e.advance();return e.pos!==t};$.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};$.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};$.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};$.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Tt(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Tt(e.lastIntValue);return!0}return!1};$.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,a=e.current(r);return e.advance(r),a===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(a=e.lastIntValue),Ig(a)?(e.lastIntValue=a,!0):(e.pos=t,!1)};function Ig(e){return Ct(e,!0)||e===36||e===95}$.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,a=e.current(r);return e.advance(r),a===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(a=e.lastIntValue),Ng(a)?(e.lastIntValue=a,!0):(e.pos=t,!1)};function Ng(e){return vr(e,!0)||e===36||e===95||e===8204||e===8205}$.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};$.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1};$.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};$.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};$.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};$.regexp_eatZero=function(e){return e.current()===48&&!Xa(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};$.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};$.regexp_eatControlLetter=function(e){var t=e.current();return Ef(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Ef(e){return e>=65&&e<=90||e>=97&&e<=122}$.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,a=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(a&&n>=55296&&n<=56319){var i=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(n-55296)*1024+(o-56320)+65536,!0}e.pos=i,e.lastIntValue=n}return!0}if(a&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&jg(e.lastIntValue))return!0;a&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function jg(e){return e>=0&&e<=1114111}$.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};$.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var qf=0,wt=1,Ke=2;$.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Dg(t))return e.lastIntValue=-1,e.advance(),wt;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=t===80)||t===112)){e.lastIntValue=-1,e.advance();var a;if(e.eat(123)&&(a=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&a===Ke&&e.raise("Invalid property name"),a;e.raise("Invalid property name")}return qf};function Dg(e){return e===100||e===68||e===115||e===83||e===119||e===87}$.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var a=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,a),wt}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n)}return qf};$.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){Yr(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")};$.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return wt;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return Ke;e.raise("Invalid property name")};$.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Of(t=e.current());)e.lastStringValue+=Tt(t),e.advance();return e.lastStringValue!==""};function Of(e){return Ef(e)||e===95}$.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Fg(t=e.current());)e.lastStringValue+=Tt(t),e.advance();return e.lastStringValue!==""};function Fg(e){return Of(e)||Xa(e)}$.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};$.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),r=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&r===Ke&&e.raise("Negated character class may contain strings"),!0}return!1};$.regexp_classContents=function(e){return e.current()===93?wt:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),wt)};$.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}};$.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||Lf(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var a=e.current();return a!==93?(e.lastIntValue=a,e.advance(),!0):!1};$.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};$.regexp_classSetExpression=function(e){var t=wt,r;if(!this.regexp_eatClassSetRange(e))if(r=this.regexp_eatClassSetOperand(e)){r===Ke&&(t=Ke);for(var a=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(r=this.regexp_eatClassSetOperand(e))){r!==Ke&&(t=wt);continue}e.raise("Invalid character in character class")}if(a!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(a!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(r=this.regexp_eatClassSetOperand(e),!r)return t;r===Ke&&(t=Ke)}};$.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var a=e.lastIntValue;return r!==-1&&a!==-1&&r>a&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};$.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?wt:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};$.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var r=e.eat(94),a=this.regexp_classContents(e);if(e.eat(93))return r&&a===Ke&&e.raise("Negated character class may contain strings"),a;e.pos=t}if(e.eat(92)){var n=this.regexp_eatCharacterClassEscape(e);if(n)return n;e.pos=t}return null};$.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var r=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return r}else e.raise("Invalid escape");e.pos=t}return null};$.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Ke&&(t=Ke);return t};$.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?wt:Ke};$.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var r=e.current();return r<0||r===e.lookahead()&&Bg(r)||Vg(r)?!1:(e.advance(),e.lastIntValue=r,!0)};function Bg(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Vg(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}$.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Hg(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Hg(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}$.regexp_eatClassControlLetter=function(e){var t=e.current();return Xa(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};$.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};$.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Xa(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function Xa(e){return e>=48&&e<=57}$.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Mf(r=e.current());)e.lastIntValue=16*e.lastIntValue+Tf(r),e.advance();return e.pos!==t};function Mf(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Tf(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}$.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1};$.regexp_eatOctalDigit=function(e){var t=e.current();return Lf(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Lf(e){return e>=48&&e<=55}$.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var a=0;a=this.input.length)return this.finishToken(c.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};J.readToken=function(e){return Ct(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};J.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888};J.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var a=void 0,n=t;(a=rf(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=a;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())};J.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),a=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&af.test(String.fromCharCode(e)))++this.pos;else break e}}};J.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)};J.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(c.ellipsis)):(++this.pos,this.finishToken(c.dot))};J.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(c.assign,2):this.finishOp(c.slash,1)};J.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,a=e===42?c.star:c.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,a=c.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(c.assign,r+1):this.finishOp(a,r)};J.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(c.assign,3)}return this.finishOp(e===124?c.logicalOR:c.logicalAND,2)}return t===61?this.finishOp(c.assign,2):this.finishOp(e===124?c.bitwiseOR:c.bitwiseAND,1)};J.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(c.assign,2):this.finishOp(c.bitwiseXOR,1)};J.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Ze.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(c.incDec,2):t===61?this.finishOp(c.assign,2):this.finishOp(c.plusMin,1)};J.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(c.assign,r+1):this.finishOp(c.bitShift,r)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(r=2),this.finishOp(c.relational,r))};J.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(c.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(c.arrow)):this.finishOp(e===61?c.eq:c.prefix,1)};J.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(c.questionDot,2)}if(t===63){if(e>=12){var a=this.input.charCodeAt(this.pos+2);if(a===61)return this.finishOp(c.assign,3)}return this.finishOp(c.coalesce,2)}}return this.finishOp(c.question,1)};J.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Ct(t,!0)||t===92))return this.finishToken(c.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Tt(t)+"'")};J.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(c.parenL);case 41:return++this.pos,this.finishToken(c.parenR);case 59:return++this.pos,this.finishToken(c.semi);case 44:return++this.pos,this.finishToken(c.comma);case 91:return++this.pos,this.finishToken(c.bracketL);case 93:return++this.pos,this.finishToken(c.bracketR);case 123:return++this.pos,this.finishToken(c.braceL);case 125:return++this.pos,this.finishToken(c.braceR);case 58:return++this.pos,this.finishToken(c.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(c.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)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(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(c.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Tt(e)+"'")};J.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};J.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var a=this.input.charAt(this.pos);if(Ze.test(a)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(a==="[")t=!0;else if(a==="]"&&t)t=!1;else if(a==="/"&&!t)break;e=a==="\\"}++this.pos}var n=this.input.slice(r,this.pos);++this.pos;var i=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(i);var u=this.regexpState||(this.regexpState=new mt(this));u.reset(r,n,o),this.validateRegExpFlags(u),this.validateRegExpPattern(u);var l=null;try{l=new RegExp(n,o)}catch{}return this.finishToken(c.regexp,{pattern:n,flags:o,value:l})};J.readInt=function(e,t,r){for(var a=this.options.ecmaVersion>=12&&t===void 0,n=r&&this.input.charCodeAt(this.pos)===48,i=this.pos,o=0,u=0,l=0,s=t??1/0;l=97?p=d-97+10:d>=65?p=d-65+10:d>=48&&d<=57?p=d-48:p=1/0,p>=e)break;u=d,o=o*e+p}return a&&u===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===i||t!=null&&this.pos-i!==t?null:o};function Ug(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function $f(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}J.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=$f(this.input.slice(t,this.pos)),++this.pos):Ct(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(c.num,r)};J.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var a=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&a===110){var n=$f(this.input.slice(t,this.pos));return++this.pos,Ct(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(c.num,n)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),a===46&&!r&&(++this.pos,this.readInt(10),a=this.input.charCodeAt(this.pos)),(a===69||a===101)&&!r&&(a=this.input.charCodeAt(++this.pos),(a===43||a===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Ct(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var i=Ug(this.input.slice(t,this.pos),r);return this.finishToken(c.num,i)};J.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t};J.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var a=this.input.charCodeAt(this.pos);if(a===e)break;a===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):a===8232||a===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Cr(a)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(c.string,t)};var If={};J.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===If)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};J.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw If;this.raise(e,t)};J.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===c.template||this.type===c.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(c.dollarBraceL)):(++this.pos,this.finishToken(c.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(c.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Cr(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=` `;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};J.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var a=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(a,8);return n>255&&(a=a.slice(0,-1),n=parseInt(a,8)),this.pos+=a.length-1,t=this.input.charCodeAt(this.pos),(a!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-a.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return Cr(t)?"":String.fromCharCode(t)}};J.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};J.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,a=this.options.ecmaVersion>=6;this.posthis.should_skip=!0,remove:()=>this.should_remove=!0,replace:t=>this.replacement=t}}replace(t,r,a,n){t&&r&&(a!=null?t[r][a]=n:t[r]=n)}remove(t,r,a){t&&r&&(a!=null?t[r].splice(a,1):delete t[r])}}class Qg extends Wg{constructor(t,r){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:a=>this.replacement=a},this.enter=t,this.leave=r}visit(t,r,a,n){if(t){if(this.enter){const o=this.should_skip,u=this.should_remove,l=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,t,r,a,n),this.replacement&&(t=this.replacement,this.replace(r,a,n,t)),this.should_remove&&this.remove(r,a,n);const s=this.should_skip,d=this.should_remove;if(this.should_skip=o,this.should_remove=u,this.replacement=l,s)return t;if(d)return null}let i;for(i in t){const o=t[i];if(o&&typeof o=="object")if(Array.isArray(o)){const u=o;for(let l=0;l({onComment:(r,a,n,i)=>{if(r&&/\n/.test(a)){let o=n;for(;o>0&&t[o-1]!==` `;)o-=1;let u=o;for(;/[ \t]/.test(t[u]);)u+=1;const l=t.slice(o,u);a=a.replace(new RegExp(`^${l}`,"gm"),"")}e.push({type:r?"Block":"Line",value:a,start:n,end:i})},enter(r){let a;for(;e[0]&&e[0].startl?`#${s}`:u?`@${s}`:i);const n=e[0]||r;a.has_trailing_newline=a.type==="Line"||/\n/.test(t.slice(a.end,n.start)),(r.leadingComments||(r.leadingComments=[])).push(a)}},leave(r){if(e[0]){const a=t.slice(r.end,e[0].start);/^[,) \t]*$/.test(a)&&(r.trailingComments=[e.shift()])}}});var la={exports:{}},kd;function Bc(){return kd||(kd=1,function(e,t){(function(r,a){a(t)})(_r,function(r){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=new Uint8Array(64),u=new Uint8Array(128);for(let b=0;b>>=1,f&&(w=-2147483648|-w),g[C]+=w,R}function y(b,R,g){return R>=g?!1:b.charCodeAt(R)!==44}function _(b){b.sort(T)}function T(b,R){return b[0]-R[0]}function L(b){const R=new Int32Array(5),g=1024*16,C=g-36,w=new Uint8Array(g),N=w.subarray(0,C);let E=0,f="";for(let h=0;h0&&(E===g&&(f+=l.decode(w),E=0),w[E++]=59),P.length!==0){R[0]=0;for(let x=0;xC&&(f+=l.decode(N),w.copyWithin(0,C,E),E-=C),x>0&&(w[E++]=44),E=V(w,E,R,ee,0),ee.length!==1&&(E=V(w,E,R,ee,1),E=V(w,E,R,ee,2),E=V(w,E,R,ee,3),ee.length!==4&&(E=V(w,E,R,ee,4)))}}}return f+l.decode(w.subarray(0,E))}function V(b,R,g,C,w){const N=C[w];let E=N-g[w];g[w]=N,E=E<0?-E<<1|1:E<<1;do{let f=E&31;E>>>=5,E>0&&(f|=32),b[R++]=o[f]}while(E>0);return R}r.decode=s,r.encode=L,Object.defineProperty(r,"__esModule",{value:!0})})}(la,la.exports)),la.exports}Bc();const Kg={"@":"AT","#":"HASH"},Yg=e=>{let t=e[0];for(let r=1;r`_${tc}_${Kg[a]}_${n}`)},rc=(e,t)=>{for(let r=0;r{for(let r=0;r{for(let r=0;r{const{onComment:r}=Nf(e,t);return{ecmaVersion:2022,sourceType:"module",allowAwaitOutsideFunction:!0,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,onComment:r}},Zg=(e,t,r,a)=>{a.forEach(o=>{o.value=o.value.replace(lt,(u,l)=>+l in r?r[+l]:u)});const{enter:n,leave:i}=Nf(a,e);return Xg(t,{enter:n,leave(o){if(o.type==="Identifier"){lt.lastIndex=0;const u=lt.exec(o.name);if(u)if(u[1]){if(+u[1]in r){let l=r[+u[1]];typeof l=="string"?l={type:"Identifier",name:l,leadingComments:o.leadingComments,trailingComments:o.trailingComments}:typeof l=="number"&&(l={type:"Literal",value:l,leadingComments:o.leadingComments,trailingComments:o.trailingComments}),this.replace(l||zt)}}else o.name=`${u[2]?"@":"#"}${u[4]}`}if(o.type==="Literal"&&typeof o.value=="string"){lt.lastIndex=0;const u=o.value.replace(lt,(s,d)=>+d in r?r[+d]:s),l=u!==o.value;o.value=u,l&&o.raw&&(o.raw=`${o.raw[0]}${JSON.stringify(o.value).slice(1,-1)}${o.raw[o.raw.length-1]}`)}o.type==="TemplateElement"&&(lt.lastIndex=0,o.value.raw=o.value.raw.replace(lt,(u,l)=>+l in r?r[+l]:u)),(o.type==="Program"||o.type==="BlockStatement")&&(o.body=rc(o.body,[])),(o.type==="ObjectExpression"||o.type==="ObjectPattern")&&(o.properties=jf(o.properties,[])),(o.type==="ArrayExpression"||o.type==="ArrayPattern")&&(o.elements=Mr(o.elements,[])),(o.type==="FunctionExpression"||o.type==="FunctionDeclaration"||o.type==="ArrowFunctionExpression")&&(o.params=Mr(o.params,[])),(o.type==="CallExpression"||o.type==="NewExpression")&&(o.arguments=Mr(o.arguments,[])),(o.type==="ImportDeclaration"||o.type==="ExportNamedDeclaration")&&(o.specifiers=Mr(o.specifiers,[])),o.type==="ForStatement"&&(o.init=o.init===zt?null:o.init,o.test=o.test===zt?null:o.test,o.update=o.update===zt?null:o.update),i(o)}})};function Df(e,...t){const r=Yg(e),a=[];try{let n=Gg(r,0,Jg(a,r));const i=/\S+/.exec(r.slice(n.end));if(i)throw new Error(`Unexpected token '${i[0]}'`);return n=Zg(r,n,t,a),n}catch(n){ev(r,n)}}function ev(e,t){throw lt.lastIndex=0,e=e.replace(lt,(r,a,n,i,o)=>n?`@${o}`:i?`#${o}`:"${...}"),console.log(`failed to parse: ${e}`),t}const Ca=0,q=1,W=2,Ce=3,ce=4,gt=5,Ka=6,Oe=7,je=8,z=9,B=10,ge=11,K=12,de=13,ea=14,De=15,_e=16,Fe=17,vt=18,Ve=19,ot=20,me=21,Q=22,Pe=23,Ye=24,Ae=25,tv=0;function Se(e){return e>=48&&e<=57}function Lt(e){return Se(e)||e>=65&&e<=70||e>=97&&e<=102}function Vc(e){return e>=65&&e<=90}function rv(e){return e>=97&&e<=122}function av(e){return Vc(e)||rv(e)}function nv(e){return e>=128}function Ma(e){return av(e)||nv(e)||e===95}function Ff(e){return Ma(e)||Se(e)||e===45}function iv(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function Ta(e){return e===10||e===13||e===12}function Kt(e){return Ta(e)||e===32||e===9}function ft(e,t){return!(e!==92||Ta(t)||t===tv)}function wa(e,t,r){return e===45?Ma(t)||t===45||ft(t,r):Ma(e)?!0:e===92?ft(e,t):!1}function yu(e,t,r){return e===43||e===45?Se(t)?2:t===46&&Se(r)?3:0:e===46?Se(t)?2:0:Se(e)?1:0}function Bf(e){return e===65279||e===65534?1:0}const ac=new Array(128),ov=128,Ra=130,Vf=131,Hc=132,Hf=133;for(let e=0;ee.length)return!1;for(let n=t;n=0&&Kt(e.charCodeAt(t));t--);return t+1}function ua(e,t){for(;t=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}const zf=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"],lv=16*1024;function La(e=null,t){return e===null||e.length0?Bf(t.charCodeAt(0)):0,n=La(e.lines,r),i=La(e.columns,r);let o=e.startLine,u=e.startColumn;for(let l=a;l{}){t=String(t||"");const a=t.length,n=La(this.offsetAndType,t.length+1),i=La(this.balance,t.length+1);let o=0,u=0,l=0,s=-1;for(this.offsetAndType=null,this.balance=null,r(t,(d,p,y)=>{switch(d){default:i[o]=a;break;case u:{let _=l&Ge;for(l=i[_],u=l>>St,i[o]=_,i[_++]=o;_>St:Ca}lookupOffset(t){return t+=this.tokenIndex,t0?t>St,this.tokenEnd=r&Ge):(this.tokenIndex=this.tokenCount,this.next())}next(){let t=this.tokenIndex+1;t>St,this.tokenEnd=t&Ge):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=Ca,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===de||this.tokenType===Ae;)this.next()}skipUntilBalanced(t,r){let a=t,n,i;e:for(;a0?this.offsetAndType[a-1]&Ge:this.firstCharOffset,r(this.source.charCodeAt(i))){case 1:break e;case 2:a++;break e;default:this.balance[n]===a&&(a=n)}}this.skip(a-this.tokenIndex)}forEachToken(t){for(let r=0,a=this.firstCharOffset;r>St;a=o,t(u,n,o,r)}}dump(){const t=new Array(this.tokenCount);return this.forEachToken((r,a,n,i)=>{t[i]={idx:i,type:zf[r],chunk:this.source.substring(a,n),balance:this.balance[i]}}),t}}function Ja(e,t){function r(p){return p=e.length){sString(d+_+1).padStart(l)+" |"+y).join(` `)}const i=e.split(/\r\n?|\n|\f/),o=Math.max(1,t-a)-1,u=Math.min(t+a,i.length+1),l=Math.max(4,String(u).length)+1;let s=0;r+=(qd.length-1)*(i[t-1].substr(0,r-1).match(/\t/g)||[]).length,r>wu&&(s=r-Ed+3,r=Ed-2);for(let d=o;d<=u;d++)d>=0&&d0&&i[d].length>s?"…":"")+i[d].substr(s,wu-2)+(i[d].length>s+wu-1?"…":""));return[n(o,t),new Array(r+l+2).join("-")+"^",n(t,u)].filter(Boolean).join(` `)}function Md(e,t,r,a,n){return Object.assign(Za("SyntaxError",e),{source:t,offset:r,line:a,column:n,sourceFragment(o){return Od({source:t,line:a,column:n},isNaN(o)?0:o)},get formattedMessage(){return`Parse error: ${e} `+Od({source:t,line:a,column:n},2)}})}function fv(e){const t=this.createList();let r=!1;const a={recognizer:e};for(;!this.eof;){switch(this.tokenType){case Ae:this.next();continue;case de:r=!0,this.next();continue}let n=e.getNode.call(this,a);if(n===void 0)break;r&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,n,t,a),r=!1),t.push(n)}return r&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,a),t}const Td=()=>{},hv=33,mv=35,Ru=59,Ld=123,$d=0;function gv(e){return function(){return this[e]()}}function ku(e){const t=Object.create(null);for(const r in e){const a=e[r],n=a.parse||a;n&&(t[r]=n)}return t}function vv(e){const t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:ku(e.atrule),pseudo:ku(e.pseudo),node:ku(e.node)};for(const r in e.parseContext)switch(typeof e.parseContext[r]){case"function":t.context[r]=e.parseContext[r];break;case"string":t.context[r]=gv(e.parseContext[r]);break}return{config:t,...t,...t.node}}function bv(e){let t="",r="",a=!1,n=Td,i=!1;const o=new cv,u=Object.assign(new pv,vv(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:fv,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(s){return s===Ld?1:0},consumeUntilLeftCurlyBracketOrSemicolon(s){return s===Ld||s===Ru?1:0},consumeUntilExclamationMarkOrSemicolon(s){return s===hv||s===Ru?1:0},consumeUntilSemicolonIncluded(s){return s===Ru?2:0},createList(){return new ke},createSingleNodeList(s){return new ke().appendData(s)},getFirstListNode(s){return s&&s.first},getLastListNode(s){return s&&s.last},parseWithFallback(s,d){const p=this.tokenIndex;try{return s.call(this)}catch(y){if(i)throw y;const _=d.call(this,p);return i=!0,n(y,_),i=!1,_}},lookupNonWSType(s){let d;do if(d=this.lookupType(s++),d!==de)return d;while(d!==$d);return $d},charCodeAt(s){return s>=0&&s_.toUpperCase());let p=`${/[[\](){}]/.test(d)?`"${d}"`:d} is expected`,y=this.tokenStart;switch(s){case q:this.tokenType===W||this.tokenType===Oe?(y=this.tokenEnd-1,p="Identifier is expected but function found"):p="Identifier is expected";break;case ce:this.isDelim(mv)&&(this.next(),y++,p="Name is expected");break;case ge:this.tokenType===B&&(y=this.tokenEnd,p="Percent sign is expected");break}this.error(p,y)}this.next()},eatIdent(s){(this.tokenType!==q||this.lookupValue(0,s)===!1)&&this.error(`Identifier "${s}" is expected`),this.next()},eatDelim(s){this.isDelim(s)||this.error(`Delim "${String.fromCharCode(s)}" is expected`),this.next()},getLocation(s,d){return a?o.getLocationRange(s,d,r):null},getLocationFromList(s){if(a){const d=this.getFirstListNode(s),p=this.getLastListNode(s);return o.getLocationRange(d!==null?d.loc.start.offset-o.startOffset:this.tokenStart,p!==null?p.loc.end.offset-o.startOffset:this.tokenStart,r)}return null},error(s,d){const p=typeof d<"u"&&d",a=!!d.positions,n=typeof d.onParseError=="function"?d.onParseError:Td,i=!1,u.parseAtrulePrelude="parseAtrulePrelude"in d?!!d.parseAtrulePrelude:!0,u.parseRulePrelude="parseRulePrelude"in d?!!d.parseRulePrelude:!0,u.parseValue="parseValue"in d?!!d.parseValue:!0,u.parseCustomProperty="parseCustomProperty"in d?!!d.parseCustomProperty:!1;const{context:p="default",onComment:y}=d;if(!(p in u.context))throw new Error("Unknown context `"+p+"`");typeof y=="function"&&u.forEachToken((T,L,V)=>{if(T===Ae){const b=u.getLocation(L,V),R=Gr(t,V-2,V,"*/")?t.slice(L+2,V-2):t.slice(L+2,V);y(R,b)}});const _=u.context[p].call(u,d);return u.eof||u.error(),_},{SyntaxError:Md,config:u.config})}var Uc={},zc={},Id="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");zc.encode=function(e){if(0<=e&&e>1;return t?-r:r}Uc.encode=function(t){var r="",a,n=yv(t);do a=n&Qf,n>>>=Gc,n>0&&(a|=Xf),r+=Gf.encode(a);while(n>0);return r};Uc.decode=function(t,r,a){var n=t.length,i=0,o=0,u,l;do{if(r>=n)throw new Error("Expected more digits in base 64 VLQ value.");if(l=Gf.decode(t.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));u=!!(l&Xf),l&=Qf,i=i+(l<o&&h.pop(),fe}}var l=u(function(h){var P=h,x=n(h);if(x){if(!x.path)return h;P=x.path}for(var ee=e.isAbsolute(P),fe=[],Le=0,ve=0;;)if(Le=ve,ve=P.indexOf("/",Le),ve===-1){fe.push(P.slice(Le));break}else for(fe.push(P.slice(Le,ve));ve=0;ve--)$e=fe[ve],$e==="."?fe.splice(ve,1):$e===".."?M++:M>0&&($e===""?(fe.splice(ve+1,M),M=0):(fe.splice(ve,2),M--));return P=fe.join("/"),P===""&&(P=ee?"/":"."),x?(x.path=P,i(x)):P});e.normalize=l;function s(f,h){f===""&&(f="."),h===""&&(h=".");var P=n(h),x=n(f);if(x&&(f=x.path||"/"),P&&!P.scheme)return x&&(P.scheme=x.scheme),i(P);if(P||h.match(a))return h;if(x&&!x.host&&!x.path)return x.host=h,i(x);var ee=h.charAt(0)==="/"?h:l(f.replace(/\/+$/,"")+"/"+h);return x?(x.path=ee,i(x)):ee}e.join=s,e.isAbsolute=function(f){return f.charAt(0)==="/"||r.test(f)};function d(f,h){f===""&&(f="."),f=f.replace(/\/$/,"");for(var P=0;h.indexOf(f+"/")!==0;){var x=f.lastIndexOf("/");if(x<0||(f=f.slice(0,x),f.match(/^([^\/]+:\/)?\/*$/)))return h;++P}return Array(P+1).join("../")+h.substr(f.length+1)}e.relative=d;var p=function(){var f=Object.create(null);return!("__proto__"in f)}();function y(f){return f}function _(f){return L(f)?"$"+f:f}e.toSetString=p?y:_;function T(f){return L(f)?f.slice(1):f}e.fromSetString=p?y:T;function L(f){if(!f)return!1;var h=f.length;if(h<9||f.charCodeAt(h-1)!==95||f.charCodeAt(h-2)!==95||f.charCodeAt(h-3)!==111||f.charCodeAt(h-4)!==116||f.charCodeAt(h-5)!==111||f.charCodeAt(h-6)!==114||f.charCodeAt(h-7)!==112||f.charCodeAt(h-8)!==95||f.charCodeAt(h-9)!==95)return!1;for(var P=h-10;P>=0;P--)if(f.charCodeAt(P)!==36)return!1;return!0}function V(f,h,P){var x=C(f.source,h.source);return x!==0||(x=f.originalLine-h.originalLine,x!==0)||(x=f.originalColumn-h.originalColumn,x!==0||P)||(x=f.generatedColumn-h.generatedColumn,x!==0)||(x=f.generatedLine-h.generatedLine,x!==0)?x:C(f.name,h.name)}e.compareByOriginalPositions=V;function b(f,h,P){var x;return x=f.originalLine-h.originalLine,x!==0||(x=f.originalColumn-h.originalColumn,x!==0||P)||(x=f.generatedColumn-h.generatedColumn,x!==0)||(x=f.generatedLine-h.generatedLine,x!==0)?x:C(f.name,h.name)}e.compareByOriginalPositionsNoSource=b;function R(f,h,P){var x=f.generatedLine-h.generatedLine;return x!==0||(x=f.generatedColumn-h.generatedColumn,x!==0||P)||(x=C(f.source,h.source),x!==0)||(x=f.originalLine-h.originalLine,x!==0)||(x=f.originalColumn-h.originalColumn,x!==0)?x:C(f.name,h.name)}e.compareByGeneratedPositionsDeflated=R;function g(f,h,P){var x=f.generatedColumn-h.generatedColumn;return x!==0||P||(x=C(f.source,h.source),x!==0)||(x=f.originalLine-h.originalLine,x!==0)||(x=f.originalColumn-h.originalColumn,x!==0)?x:C(f.name,h.name)}e.compareByGeneratedPositionsDeflatedNoLine=g;function C(f,h){return f===h?0:f===null?1:h===null?-1:f>h?1:-1}function w(f,h){var P=f.generatedLine-h.generatedLine;return P!==0||(P=f.generatedColumn-h.generatedColumn,P!==0)||(P=C(f.source,h.source),P!==0)||(P=f.originalLine-h.originalLine,P!==0)||(P=f.originalColumn-h.originalColumn,P!==0)?P:C(f.name,h.name)}e.compareByGeneratedPositionsInflated=w;function N(f){return JSON.parse(f.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=N;function E(f,h,P){if(h=h||"",f&&(f[f.length-1]!=="/"&&h[0]!=="/"&&(f+="/"),h=f+h),P){var x=n(P);if(!x)throw new Error("sourceMapURL could not be parsed");if(x.path){var ee=x.path.lastIndexOf("/");ee>=0&&(x.path=x.path.substring(0,ee+1))}h=s(i(x),h)}return l(h)}e.computeSourceURL=E})(en);var Kf={},Wc=en,Qc=Object.prototype.hasOwnProperty,Gt=typeof Map<"u";function Rt(){this._array=[],this._set=Gt?new Map:Object.create(null)}Rt.fromArray=function(t,r){for(var a=new Rt,n=0,i=t.length;n=0)return r}else{var a=Wc.toSetString(t);if(Qc.call(this._set,a))return this._set[a]}throw new Error('"'+t+'" is not in the set.')};Rt.prototype.at=function(t){if(t>=0&&tr||a==r&&i>=n||Jf.compareByGeneratedPositionsInflated(e,t)<=0}function tn(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}tn.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};tn.prototype.add=function(t){_v(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};tn.prototype.toArray=function(){return this._sorted||(this._array.sort(Jf.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Yf.MappingList=tn;var Er=Uc,xe=en,$a=Kf.ArraySet,Cv=Yf.MappingList;function Je(e){e||(e={}),this._file=xe.getArg(e,"file",null),this._sourceRoot=xe.getArg(e,"sourceRoot",null),this._skipValidation=xe.getArg(e,"skipValidation",!1),this._ignoreInvalidMapping=xe.getArg(e,"ignoreInvalidMapping",!1),this._sources=new $a,this._names=new $a,this._mappings=new Cv,this._sourcesContents=null}Je.prototype._version=3;Je.fromSourceMap=function(t,r){var a=t.sourceRoot,n=new Je(Object.assign(r||{},{file:t.file,sourceRoot:a}));return t.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(o.source=i.source,a!=null&&(o.source=xe.relative(a,o.source)),o.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(o.name=i.name)),n.addMapping(o)}),t.sources.forEach(function(i){var o=i;a!==null&&(o=xe.relative(a,i)),n._sources.has(o)||n._sources.add(o);var u=t.sourceContentFor(i);u!=null&&n.setSourceContent(i,u)}),n};Je.prototype.addMapping=function(t){var r=xe.getArg(t,"generated"),a=xe.getArg(t,"original",null),n=xe.getArg(t,"source",null),i=xe.getArg(t,"name",null);!this._skipValidation&&this._validateMapping(r,a,n,i)===!1||(n!=null&&(n=String(n),this._sources.has(n)||this._sources.add(n)),i!=null&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:a!=null&&a.line,originalColumn:a!=null&&a.column,source:n,name:i}))};Je.prototype.setSourceContent=function(t,r){var a=t;this._sourceRoot!=null&&(a=xe.relative(this._sourceRoot,a)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[xe.toSetString(a)]=r):this._sourcesContents&&(delete this._sourcesContents[xe.toSetString(a)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Je.prototype.applySourceMap=function(t,r,a){var n=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);n=t.file}var i=this._sourceRoot;i!=null&&(n=xe.relative(i,n));var o=new $a,u=new $a;this._mappings.unsortedForEach(function(l){if(l.source===n&&l.originalLine!=null){var s=t.originalPositionFor({line:l.originalLine,column:l.originalColumn});s.source!=null&&(l.source=s.source,a!=null&&(l.source=xe.join(a,l.source)),i!=null&&(l.source=xe.relative(i,l.source)),l.originalLine=s.line,l.originalColumn=s.column,s.name!=null&&(l.name=s.name))}var d=l.source;d!=null&&!o.has(d)&&o.add(d);var p=l.name;p!=null&&!u.has(p)&&u.add(p)},this),this._sources=o,this._names=u,t.sources.forEach(function(l){var s=t.sourceContentFor(l);s!=null&&(a!=null&&(l=xe.join(a,l)),i!=null&&(l=xe.relative(i,l)),this.setSourceContent(l,s))},this)};Je.prototype._validateMapping=function(t,r,a,n){if(r&&typeof r.line!="number"&&typeof r.column!="number"){var i="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(i),!1;throw new Error(i)}if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!a&&!n)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&a)return;var i="Invalid mapping: "+JSON.stringify({generated:t,source:a,original:r,name:n});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(i),!1;throw new Error(i)}};Je.prototype._serializeMappings=function(){for(var t=0,r=1,a=0,n=0,i=0,o=0,u="",l,s,d,p,y=this._mappings.toArray(),_=0,T=y.length;_0){if(!xe.compareByGeneratedPositionsInflated(s,y[_-1]))continue;l+=","}l+=Er.encode(s.generatedColumn-t),t=s.generatedColumn,s.source!=null&&(p=this._sources.indexOf(s.source),l+=Er.encode(p-o),o=p,l+=Er.encode(s.originalLine-1-n),n=s.originalLine-1,l+=Er.encode(s.originalColumn-a),a=s.originalColumn,s.name!=null&&(d=this._names.indexOf(s.name),l+=Er.encode(d-i),i=d)),u+=l}return u};Je.prototype._generateSourcesContent=function(t,r){return t.map(function(a){if(!this._sourcesContents)return null;r!=null&&(a=xe.relative(r,a));var n=xe.toSetString(a);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)};Je.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};Je.prototype.toString=function(){return JSON.stringify(this.toJSON())};var wv=Je;const Nd=new Set(["Atrule","Selector","Declaration"]);function Rv(e){const t=new wv,r={line:1,column:0},a={line:0,column:0},n={line:1,column:0},i={generated:n};let o=1,u=0,l=!1;const s=e.node;e.node=function(y){if(y.loc&&y.loc.start&&Nd.has(y.type)){const _=y.loc.start.line,T=y.loc.start.column-1;(a.line!==_||a.column!==T)&&(a.line=_,a.column=T,r.line=o,r.column=u,l&&(l=!1,(r.line!==n.line||r.column!==n.column)&&t.addMapping(i)),l=!0,t.addMapping({source:y.loc.source,original:a,generated:r}))}s.call(this,y),l&&Nd.has(y.type)&&(n.line=o,n.column=u)};const d=e.emit;e.emit=function(y,_,T){for(let L=0;L{if(e===z&&(e=t),typeof e=="string"){const r=e.charCodeAt(0);return r>127?32768:r<<8}return e},Zf=[[q,q],[q,W],[q,Oe],[q,je],[q,"-"],[q,B],[q,ge],[q,K],[q,De],[q,me],[Ce,q],[Ce,W],[Ce,Oe],[Ce,je],[Ce,"-"],[Ce,B],[Ce,ge],[Ce,K],[Ce,De],[ce,q],[ce,W],[ce,Oe],[ce,je],[ce,"-"],[ce,B],[ce,ge],[ce,K],[ce,De],[K,q],[K,W],[K,Oe],[K,je],[K,"-"],[K,B],[K,ge],[K,K],[K,De],["#",q],["#",W],["#",Oe],["#",je],["#","-"],["#",B],["#",ge],["#",K],["#",De],["-",q],["-",W],["-",Oe],["-",je],["-","-"],["-",B],["-",ge],["-",K],["-",De],[B,q],[B,W],[B,Oe],[B,je],[B,B],[B,ge],[B,K],[B,"%"],[B,De],["@",q],["@",W],["@",Oe],["@",je],["@","-"],["@",De],[".",B],[".",ge],[".",K],["+",B],["+",ge],["+",K],["/","*"]],Pv=Zf.concat([[q,ce],[K,ce],[ce,ce],[Ce,me],[Ce,gt],[Ce,_e],[ge,ge],[ge,K],[ge,W],[ge,"-"],[Q,q],[Q,W],[Q,ge],[Q,K],[Q,ce],[Q,"-"]]);function eh(e){const t=new Set(e.map(([r,a])=>Su(r)<<16|Su(a)));return function(r,a,n){const i=Su(a,n),o=n.charCodeAt(0);return(o===Sv&&a!==q&&a!==W&&a!==De||o===kv?t.has(r<<16|o<<8):t.has(r<<16|i))&&this.emit(" ",de,!0),i}}const Av=eh(Zf),th=eh(Pv),jd=Object.freeze(Object.defineProperty({__proto__:null,safe:th,spec:Av},Symbol.toStringTag,{value:"Module"})),Ev=92;function qv(e,t){if(typeof t=="function"){let r=null;e.children.forEach(a=>{r!==null&&t.call(this,r),this.node(a),r=a});return}e.children.forEach(this.node,this)}function Ov(e){Ja(e,(t,r,a)=>{this.token(t,e.slice(r,a))})}function Mv(e){const t=new Map;for(let r in e.node){const a=e.node[r];typeof(a.generate||a)=="function"&&t.set(r,a.generate||a)}return function(r,a){let n="",i=0,o={node(l){if(t.has(l.type))t.get(l.type).call(u,l);else throw new Error("Unknown node type: "+l.type)},tokenBefore:th,token(l,s){i=this.tokenBefore(i,l,s),this.emit(s,l,!1),l===z&&s.charCodeAt(0)===Ev&&this.emit(` `,de,!0)},emit(l){n+=l},result(){return n}};a&&(typeof a.decorator=="function"&&(o=a.decorator(o)),a.sourceMap&&(o=Rv(o)),a.mode in jd&&(o.tokenBefore=jd[a.mode]));const u={node:l=>o.node(l),children:qv,token:(l,s)=>o.token(l,s),tokenize:Ov};return o.node(r),o.result()}}function Tv(e){return{fromPlainObject(t){return e(t,{enter(r){r.children&&!(r.children instanceof ke)&&(r.children=new ke().fromArray(r.children))}}),t},toPlainObject(t){return e(t,{leave(r){r.children&&r.children instanceof ke&&(r.children=r.children.toArray())}}),t}}}const{hasOwnProperty:Xc}=Object.prototype,Tr=function(){};function Dd(e){return typeof e=="function"?e:Tr}function Fd(e,t){return function(r,a,n){r.type===t&&e.call(this,r,a,n)}}function Lv(e,t){const r=t.structure,a=[];for(const n in r){if(Xc.call(r,n)===!1)continue;let i=r[n];const o={name:n,type:!1,nullable:!1};Array.isArray(i)||(i=[i]);for(const u of i)u===null?o.nullable=!0:typeof u=="string"?o.type="node":Array.isArray(u)&&(o.type="list");o.type&&a.push(o)}return a.length?{context:t.walkContext,fields:a}:null}function $v(e){const t={};for(const r in e.node)if(Xc.call(e.node,r)){const a=e.node[r];if(!a.structure)throw new Error("Missed `structure` field in `"+r+"` node type definition");t[r]=Lv(r,a)}return t}function Bd(e,t){const r=e.fields.slice(),a=e.context,n=typeof a=="string";return t&&r.reverse(),function(i,o,u,l){let s;n&&(s=o[a],o[a]=i);for(const d of r){const p=i[d.name];if(!d.nullable||p){if(d.type==="list"){if(t?p.reduceRight(l,!1):p.reduce(l,!1))return!0}else if(u(p))return!0}}n&&(o[a]=s)}}function Vd({StyleSheet:e,Atrule:t,Rule:r,Block:a,DeclarationList:n}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:r,Block:a},Rule:{StyleSheet:e,Atrule:t,Rule:r,Block:a},Declaration:{StyleSheet:e,Atrule:t,Rule:r,Block:a,DeclarationList:n}}}function Iv(e){const t=$v(e),r={},a={},n=Symbol("break-walk"),i=Symbol("skip-node");for(const s in t)Xc.call(t,s)&&t[s]!==null&&(r[s]=Bd(t[s],!1),a[s]=Bd(t[s],!0));const o=Vd(r),u=Vd(a),l=function(s,d){function p(b,R,g){const C=y.call(V,b,R,g);return C===n?!0:C===i?!1:!!(T.hasOwnProperty(b.type)&&T[b.type](b,V,p,L)||_.call(V,b,R,g)===n)}let y=Tr,_=Tr,T=r,L=(b,R,g,C)=>b||p(R,g,C);const V={break:n,skip:i,root:s,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof d=="function")y=d;else if(d&&(y=Dd(d.enter),_=Dd(d.leave),d.reverse&&(T=a),d.visit)){if(o.hasOwnProperty(d.visit))T=d.reverse?u[d.visit]:o[d.visit];else if(!t.hasOwnProperty(d.visit))throw new Error("Bad value `"+d.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");y=Fd(y,d.visit),_=Fd(_,d.visit)}if(y===Tr&&_===Tr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");p(s)};return l.break=n,l.skip=i,l.find=function(s,d){let p=null;return l(s,function(y,_,T){if(d.call(this,y,_,T))return p=y,n}),p},l.findLast=function(s,d){let p=null;return l(s,{reverse:!0,enter(y,_,T){if(d.call(this,y,_,T))return p=y,n}}),p},l.findAll=function(s,d){const p=[];return l(s,function(y,_,T){d.call(this,y,_,T)&&p.push(y)}),p},l}function Nv(e){return e}function jv(e){const{min:t,max:r,comma:a}=e;return t===0&&r===0?a?"#?":"*":t===0&&r===1?"?":t===1&&r===0?a?"#":"+":t===1&&r===1?"":(a?"#":"")+(t===r?"{"+t+"}":"{"+t+","+(r!==0?r:"")+"}")}function Dv(e){switch(e.type){case"Range":return" ["+(e.min===null?"-∞":e.min)+","+(e.max===null?"∞":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}function Fv(e,t,r,a){const n=e.combinator===" "||a?e.combinator:" "+e.combinator+" ",i=e.terms.map(o=>Kc(o,t,r,a)).join(n);return e.explicit||r?(a||i[0]===","?"[":"[ ")+i+(a?"]":" ]"):i}function Kc(e,t,r,a){let n;switch(e.type){case"Group":n=Fv(e,t,r,a)+(e.disallowEmpty?"!":"");break;case"Multiplier":return Kc(e.term,t,r,a)+t(jv(e),e);case"Type":n="<"+e.name+(e.opts?t(Dv(e.opts),e.opts):"")+">";break;case"Property":n="<'"+e.name+"'>";break;case"Keyword":n=e.name;break;case"AtKeyword":n="@"+e.name;break;case"Function":n=e.name+"(";break;case"String":case"Token":n=e.value;break;case"Comma":n=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(n,e)}function Yc(e,t){let r=Nv,a=!1,n=!1;return typeof t=="function"?r=t:t&&(a=!!t.forceBraces,n=!!t.compact,typeof t.decorate=="function"&&(r=t.decorate)),Kc(e,r,a,n)}const Hd={offset:0,line:1,column:1};function Bv(e,t){const r=e.tokens,a=e.longestMatch,n=a1?(d=da(i||t,"end")||Lr(Hd,s),p=Lr(d)):(d=da(i,"start")||Lr(da(t,"start")||Hd,s.slice(0,o)),p=da(i,"end")||Lr(d,s.substr(o,u))),{css:s,mismatchOffset:o,mismatchLength:u,start:d,end:p}}function da(e,t){const r=e&&e.loc&&e.loc[t];return r?"line"in r?Lr(r):r:null}function Lr({offset:e,line:t,column:r},a){const n={offset:e,line:t,column:r};if(a){const i=a.split(/\n|\r\n?|\f/);n.offset+=a.length,n.line+=i.length-1,n.column=i.length===1?n.column+a.length:i.pop().length+1}return n}const qr=function(e,t){const r=Za("SyntaxReferenceError",e+(t?" `"+t+"`":""));return r.reference=t,r},Vv=function(e,t,r,a){const n=Za("SyntaxMatchError",e),{css:i,mismatchOffset:o,mismatchLength:u,start:l,end:s}=Bv(a,r);return n.rawMessage=e,n.syntax=t?Yc(t):"",n.css=i,n.mismatchOffset=o,n.mismatchLength=u,n.message=e+` syntax: `+n.syntax+` value: `+(i||"")+` --------`+new Array(n.mismatchOffset+1).join("-")+"^",Object.assign(n,l),n.loc={source:r&&r.loc&&r.loc.source||"",start:l,end:s},n},pa=new Map,nr=new Map,Ia=45,Pu=Hv,Ud=Uv;function Jc(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Ia&&e.charCodeAt(t+1)===Ia}function rh(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Ia&&e.charCodeAt(t+1)!==Ia){const r=e.indexOf("-",t+2);if(r!==-1)return e.substring(t,r+1)}return""}function Hv(e){if(pa.has(e))return pa.get(e);const t=e.toLowerCase();let r=pa.get(t);if(r===void 0){const a=Jc(t,0),n=a?"":rh(t,0);r=Object.freeze({basename:t.substr(n.length),name:t,prefix:n,vendor:n,custom:a})}return pa.set(e,r),r}function Uv(e){if(nr.has(e))return nr.get(e);let t=e,r=e[0];r==="/"?r=e[1]==="/"?"//":"/":r!=="_"&&r!=="*"&&r!=="$"&&r!=="#"&&r!=="+"&&r!=="&"&&(r="");const a=Jc(t,r.length);if(!a&&(t=t.toLowerCase(),nr.has(t))){const u=nr.get(t);return nr.set(e,u),u}const n=a?"":rh(t,r.length),i=t.substr(0,r.length+n.length),o=Object.freeze({basename:t.substr(i.length),name:t.substr(r.length),hack:r,vendor:n,prefix:i,custom:a});return nr.set(e,o),o}const ah=["initial","inherit","unset","revert","revert-layer"],Wr=43,ut=45,Au=110,ir=!0,zv=!1;function ic(e,t){return e!==null&&e.type===z&&e.value.charCodeAt(0)===t}function Dr(e,t,r){for(;e!==null&&(e.type===de||e.type===Ae);)e=r(++t);return t}function At(e,t,r,a){if(!e)return 0;const n=e.value.charCodeAt(t);if(n===Wr||n===ut){if(r)return 0;t++}for(;t6)return 0}return a}function fa(e,t,r){if(!e)return 0;for(;oc(r(t),ih);){if(++e>6)return 0;t++}return t}function Kv(e,t){let r=0;if(e===null||e.type!==q||!pr(e.value,0,Qv)||(e=t(++r),e===null))return 0;if(oc(e,Wv))return e=t(++r),e===null?0:e.type===q?fa($r(e,0,!0),++r,t):oc(e,ih)?fa(1,++r,t):0;if(e.type===B){const a=$r(e,1,!0);return a===0?0:(e=t(++r),e===null?r:e.type===K||e.type===B?!Xv(e,nh)||!$r(e,1,!1)?0:r+1:fa(a,r,t))}return e.type===K?fa($r(e,1,!0),++r,t):0}const Yv=["calc(","-moz-calc(","-webkit-calc("],Zc=new Map([[W,Q],[me,Q],[Ve,ot],[Pe,Ye]]);function it(e,t){return te.max&&typeof e.max!="string")return!0}return!1}function Jv(e,t){let r=0,a=[],n=0;e:do{switch(e.type){case Ye:case Q:case ot:if(e.type!==r)break e;if(r=a.pop(),a.length===0){n++;break e}break;case W:case me:case Ve:case Pe:a.push(r),r=Zc.get(e.type);break}n++}while(e=t(n));return n}function We(e){return function(t,r,a){return t===null?0:t.type===W&&sh(t.value,Yv)?Jv(t,r):e(t,r,a)}}function ue(e){return function(t){return t===null||t.type!==e?0:1}}function Zv(e){if(e===null||e.type!==q)return 0;const t=e.value.toLowerCase();return sh(t,ah)||oh(t,"default")?0:1}function eb(e){return e===null||e.type!==q||it(e.value,0)!==45||it(e.value,1)!==45?0:1}function tb(e){if(e===null||e.type!==ce)return 0;const t=e.value.length;if(t!==4&&t!==5&&t!==7&&t!==9)return 0;for(let r=1;r/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),Yd={" ":1,"&&":2,"||":3,"|":4};function Da(e){return e.substringToPos(e.findWsEnd(e.pos))}function yr(e){let t=e.pos;for(;t=128||Qr[r]===0)break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function Fa(e){let t=e.pos;for(;t57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function Lb(e){const t=e.str.indexOf("'",e.pos+1);return t===-1&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function Jd(e){let t=null,r=null;return e.eat(ja),t=Fa(e),e.charCode()===rd?(e.pos++,e.charCode()!==Xd&&(r=Fa(e))):r=t,e.eat(Xd),{min:Number(t),max:r?Number(r):0}}function $b(e){let t=null,r=!1;switch(e.charCode()){case ph:e.pos++,t={min:0,max:0};break;case td:e.pos++,t={min:1,max:0};break;case sc:e.pos++,t={min:0,max:1};break;case ed:e.pos++,r=!0,e.charCode()===ja?t=Jd(e):e.charCode()===sc?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case ja:t=Jd(e);break;default:return null}return{type:"Multiplier",comma:r,min:t.min,max:t.max,term:null}}function xr(e,t){const r=$b(e);return r!==null?(r.term=t,e.charCode()===ed&&e.charCodeAt(e.pos-1)===td?xr(e,r):r):t}function qu(e){const t=e.peek();return t===""?null:{type:"Token",value:t}}function Ib(e){let t;return e.eat(ad),e.eat(Na),t=yr(e),e.eat(Na),e.eat(fh),xr(e,{type:"Property",name:t})}function Nb(e){let t=null,r=null,a=1;return e.eat(an),e.charCode()===Wd&&(e.peek(),a=-1),a==-1&&e.charCode()===Kd?e.peek():(t=a*Number(Fa(e)),Qr[e.charCode()]!==0&&(t+=yr(e))),Da(e),e.eat(rd),Da(e),e.charCode()===Kd?e.peek():(a=1,e.charCode()===Wd&&(e.peek(),a=-1),r=a*Number(Fa(e)),Qr[e.charCode()]!==0&&(r+=yr(e))),e.eat(nd),{type:"Range",min:t,max:r}}function jb(e){let t,r=null;return e.eat(ad),t=yr(e),e.charCode()===dh&&e.nextCharCode()===Mb&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===an&&(Da(e),r=Nb(e)),e.eat(fh),xr(e,{type:"Type",name:t,opts:r})}function Db(e){const t=yr(e);return e.charCode()===dh?(e.pos++,{type:"Function",name:t}):xr(e,{type:"Keyword",name:t})}function Fb(e,t){function r(n,i){return{type:"Group",terms:n,combinator:i,disallowEmpty:!1,explicit:!1}}let a;for(t=Object.keys(t).sort((n,i)=>Yd[n]-Yd[i]);t.length>0;){a=t.shift();let n=0,i=0;for(;n1&&(e.splice(i,n-i,r(e.slice(i,n),a)),n=i+1),i=-1))}i!==-1&&t.length&&e.splice(i,n-i,r(e.slice(i,n),a))}return a}function hh(e){const t=[],r={};let a,n=null,i=e.pos;for(;a=Vb(e);)a.type!=="Spaces"&&(a.type==="Combinator"?((n===null||n.type==="Combinator")&&(e.pos=i,e.error("Unexpected combinator")),r[a.value]=!0):n!==null&&n.type!=="Combinator"&&(r[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(a),n=a,i=e.pos);return n!==null&&n.type==="Combinator"&&(e.pos-=i,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:Fb(t,r)||" ",disallowEmpty:!1,explicit:!1}}function Bb(e){let t;return e.eat(an),t=hh(e),e.eat(nd),t.explicit=!0,e.charCode()===ch&&(e.pos++,t.disallowEmpty=!0),t}function Vb(e){let t=e.charCode();if(t<128&&Qr[t]===1)return Db(e);switch(t){case nd:break;case an:return xr(e,Bb(e));case ad:return e.nextCharCode()===Na?Ib(e):jb(e);case Qd:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Qd?2:1))};case Gd:return e.pos++,e.eat(Gd),{type:"Combinator",value:"&&"};case rd:return e.pos++,{type:"Comma"};case Na:return xr(e,{type:"String",value:Lb(e)});case Ob:case Pb:case Ab:case qb:case Eb:return{type:"Spaces",value:Da(e)};case Tb:return t=e.nextCharCode(),t<128&&Qr[t]===1?(e.pos++,{type:"AtKeyword",name:yr(e)}):qu(e);case ph:case td:case sc:case ed:case ch:break;case ja:if(t=e.nextCharCode(),t<48||t>57)return qu(e);break;default:return qu(e)}}function mh(e){const t=new Sb(e),r=hh(t);return t.pos!==e.length&&t.error("Unexpected input"),r.terms.length===1&&r.terms[0].type==="Group"?r.terms[0]:r}const Ir=function(){};function Zd(e){return typeof e=="function"?e:Ir}function Hb(e,t,r){function a(o){switch(n.call(r,o),o.type){case"Group":o.terms.forEach(a);break;case"Multiplier":a(o.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+o.type)}i.call(r,o)}let n=Ir,i=Ir;if(typeof t=="function"?n=t:t&&(n=Zd(t.enter),i=Zd(t.leave)),n===Ir&&i===Ir)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");a(e)}const Ub={decorator(e){const t=[];let r=null;return{...e,node(a){const n=r;r=a,e.node.call(this,a),r=n},emit(a,n,i){t.push({type:n,value:a,node:i?null:r})},result(){return t}}}};function zb(e){const t=[];return Ja(e,(r,a,n)=>t.push({type:r,value:e.slice(a,n),node:null})),t}function Gb(e,t){return typeof e=="string"?zb(e):t.generate(e,Ub)}const ae={type:"Match"},oe={type:"Mismatch"},id={type:"DisallowEmpty"},Wb=40,Qb=41;function qe(e,t,r){return t===ae&&r===oe||e===ae&&t===ae&&r===ae?e:(e.type==="If"&&e.else===oe&&t===ae&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:r})}function gh(e){return e.length>2&&e.charCodeAt(e.length-2)===Wb&&e.charCodeAt(e.length-1)===Qb}function ep(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&gh(e.name)}function lc(e,t,r){switch(e){case" ":{let a=ae;for(let n=t.length-1;n>=0;n--){const i=t[n];a=qe(i,a,oe)}return a}case"|":{let a=oe,n=null;for(let i=t.length-1;i>=0;i--){let o=t[i];if(ep(o)&&(n===null&&i>0&&ep(t[i-1])&&(n=Object.create(null),a=qe({type:"Enum",map:n},ae,a)),n!==null)){const u=(gh(o.name)?o.name.slice(0,-1):o.name).toLowerCase();if(!(u in n)){n[u]=o;continue}}n=null,a=qe(o,ae,a)}return a}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let a=oe;for(let n=t.length-1;n>=0;n--){const i=t[n];let o;t.length>1?o=lc(e,t.filter(function(u){return u!==i}),!1):o=ae,a=qe(i,o,a)}return a}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let a=r?ae:oe;for(let n=t.length-1;n>=0;n--){const i=t[n];let o;t.length>1?o=lc(e,t.filter(function(u){return u!==i}),!0):o=ae,a=qe(i,o,a)}return a}}}function Xb(e){let t=ae,r=od(e.term);if(e.max===0)r=qe(r,id,oe),t=qe(r,null,oe),t.then=qe(ae,ae,t),e.comma&&(t.then.else=qe({type:"Comma",syntax:e},t,oe));else for(let a=e.min||1;a<=e.max;a++)e.comma&&t!==ae&&(t=qe({type:"Comma",syntax:e},t,oe)),t=qe(r,qe(ae,ae,t),oe);if(e.min===0)t=qe(ae,ae,t);else for(let a=0;a=65&&n<=90&&(n=n|32),n!==a)return!1}return!0}function t0(e){return e.type!==z?!1:e.value!=="?"}function np(e){return e===null?!0:e.type===vt||e.type===W||e.type===me||e.type===Ve||e.type===Pe||t0(e)}function ip(e){return e===null?!0:e.type===Q||e.type===ot||e.type===Ye||e.type===z&&e.value==="/"}function r0(e,t,r){function a(){do R++,b=Rg&&(g=R)}function s(){p={syntax:t.syntax,opts:t.syntax.opts||p!==null&&p.opts||null,prev:p},C={type:cc,syntax:t.syntax,token:C.token,prev:C}}function d(){C.type===cc?C=C.prev:C={type:vh,syntax:p.syntax,token:C.token,prev:C},p=p.prev}let p=null,y=null,_=null,T=null,L=0,V=null,b=null,R=-1,g=0,C={type:Kb,syntax:null,token:null,prev:null};for(a();V===null&&++L_.tokenIndex)&&(_=T,T=!1);else if(_===null){V=Jb;break}t=_.nextState,y=_.thenStack,p=_.syntaxStack,C=_.matchStack,R=_.tokenIndex,b=RR){for(;R":"<'"+t.name+"'>"));if(T!==!1&&b!==null&&t.type==="Type"&&(t.name==="custom-ident"&&b.type===q||t.name==="length"&&b.value==="0")){T===null&&(T=i(t,_)),t=oe;break}s(),t=f.match;break}case"Keyword":{const E=t.name;if(b!==null){let f=b.value;if(f.indexOf("\\")!==-1&&(f=f.replace(/\\[09].*$/,"")),Ou(f,E)){l(),t=ae;break}}t=oe;break}case"AtKeyword":case"Function":if(b!==null&&Ou(b.value,t.name)){l(),t=ae;break}t=oe;break;case"Token":if(b!==null&&b.value===t.value){l(),t=ae;break}t=oe;break;case"Comma":b!==null&&b.type===vt?np(C.token)?t=oe:(l(),t=ip(b)?oe:ae):t=np(C.token)||ip(b)?ae:oe;break;case"String":let w="",N=R;for(;Nr.type==="Type"&&r.name===t)}function n0(e,t){return sd(this,e,r=>r.type==="Property"&&r.name===t)}function i0(e){return sd(this,e,t=>t.type==="Keyword")}function sd(e,t,r){const a=bh.call(e,t);return a===null?!1:a.some(r)}const o0=Object.freeze(Object.defineProperty({__proto__:null,getTrace:bh,isKeyword:i0,isProperty:n0,isType:a0},Symbol.toStringTag,{value:"Module"}));function yh(e){return"node"in e?e.node:yh(e.match[0])}function xh(e){return"node"in e?e.node:xh(e.match[e.match.length-1])}function sp(e,t,r,a,n){function i(u){if(u.syntax!==null&&u.syntax.type===a&&u.syntax.name===n){const l=yh(u),s=xh(u);e.syntax.walk(t,function(d,p,y){if(d===l){const _=new ke;do{if(_.appendData(p.data),p.data===s)break;p=p.next}while(p!==null);o.push({parent:y,nodes:_})}})}Array.isArray(u.match)&&u.match.forEach(i)}const o=[];return r.matched!==null&&i(r.matched),o}const{hasOwnProperty:Fr}=Object.prototype;function Mu(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function lp(e){return!!e&&Mu(e.offset)&&Mu(e.line)&&Mu(e.column)}function s0(e,t){return function(a,n){if(!a||a.constructor!==Object)return n(a,"Type of node should be an Object");for(let i in a){let o=!0;if(Fr.call(a,i)!==!1){if(i==="type")a.type!==e&&n(a,"Wrong node type `"+a.type+"`, expected `"+e+"`");else if(i==="loc"){if(a.loc===null)continue;if(a.loc&&a.loc.constructor===Object)if(typeof a.loc.source!="string")i+=".source";else if(!lp(a.loc.start))i+=".start";else if(!lp(a.loc.end))i+=".end";else continue;o=!1}else if(t.hasOwnProperty(i)){o=!1;for(let u=0;!o&&u");else if(Array.isArray(s))o.push("List");else throw new Error("Wrong value `"+s+"` in `"+e+"."+i+"` structure definition")}n[i]=o.join(" | ")}return{docs:n,check:s0(e,a)}}function u0(e){const t={};if(e.node){for(const r in e.node)if(Fr.call(e.node,r)){const a=e.node[r];if(a.structure)t[r]=l0(r,a);else throw new Error("Missed `structure` field in `"+r+"` node type definition")}}return t}const c0=uc(ah.join(" | "));function dc(e,t,r){const a={};for(const n in e)e[n].syntax&&(a[n]=r?e[n].syntax:Yc(e[n].syntax,{compact:t}));return a}function d0(e,t,r){const a={};for(const[n,i]of Object.entries(e))a[n]={prelude:i.prelude&&(r?i.prelude.syntax:Yc(i.prelude.syntax,{compact:t})),descriptors:i.descriptors&&dc(i.descriptors,t,r)};return a}function p0(e){for(let t=0;t(a[n]=this.createDescriptor(r.descriptors[n],"AtruleDescriptor",n,t),a),Object.create(null)):null})}addProperty_(t,r){r&&(this.properties[t]=this.createDescriptor(r,"Property",t))}addType_(t,r){r&&(this.types[t]=this.createDescriptor(r,"Type",t))}checkAtruleName(t){if(!this.getAtrule(t))return new qr("Unknown at-rule","@"+t)}checkAtrulePrelude(t,r){const a=this.checkAtruleName(t);if(a)return a;const n=this.getAtrule(t);if(!n.prelude&&r)return new SyntaxError("At-rule `@"+t+"` should not contain a prelude");if(n.prelude&&!r&&!or(this,n.prelude,"",!1).matched)return new SyntaxError("At-rule `@"+t+"` should contain a prelude")}checkAtruleDescriptorName(t,r){const a=this.checkAtruleName(t);if(a)return a;const n=this.getAtrule(t),i=Pu(r);if(!n.descriptors)return new SyntaxError("At-rule `@"+t+"` has no known descriptors");if(!n.descriptors[i.name]&&!n.descriptors[i.basename])return new qr("Unknown at-rule descriptor",r)}checkPropertyName(t){if(!this.getProperty(t))return new qr("Unknown property",t)}matchAtrulePrelude(t,r){const a=this.checkAtrulePrelude(t,r);if(a)return at(null,a);const n=this.getAtrule(t);return n.prelude?or(this,n.prelude,r||"",!1):at(null,null)}matchAtruleDescriptor(t,r,a){const n=this.checkAtruleDescriptorName(t,r);if(n)return at(null,n);const i=this.getAtrule(t),o=Pu(r);return or(this,i.descriptors[o.name]||i.descriptors[o.basename],a,!1)}matchDeclaration(t){return t.type!=="Declaration"?at(null,new Error("Not a Declaration node")):this.matchProperty(t.property,t.value)}matchProperty(t,r){if(Ud(t).custom)return at(null,new Error("Lexer matching doesn't applicable for custom properties"));const a=this.checkPropertyName(t);return a?at(null,a):or(this,this.getProperty(t),r,!0)}matchType(t,r){const a=this.getType(t);return a?or(this,a,r,!1):at(null,new qr("Unknown type",t))}match(t,r){return typeof t!="string"&&(!t||!t.type)?at(null,new qr("Bad syntax")):((typeof t=="string"||!t.match)&&(t=this.createDescriptor(t,"Type","anonymous")),or(this,t,r,!1))}findValueFragments(t,r,a,n){return sp(this,r,this.matchProperty(t,r),a,n)}findDeclarationValueFragments(t,r,a){return sp(this,t.value,this.matchDeclaration(t),r,a)}findAllFragments(t,r,a){const n=[];return this.syntax.walk(t,{visit:"Declaration",enter:i=>{n.push.apply(n,this.findDeclarationValueFragments(i,r,a))}}),n}getAtrule(t,r=!0){const a=Pu(t);return(a.vendor&&r?this.atrules[a.name]||this.atrules[a.basename]:this.atrules[a.name])||null}getAtrulePrelude(t,r=!0){const a=this.getAtrule(t,r);return a&&a.prelude||null}getAtruleDescriptor(t,r){return this.atrules.hasOwnProperty(t)&&this.atrules.declarators&&this.atrules[t].declarators[r]||null}getProperty(t,r=!0){const a=Ud(t);return(a.vendor&&r?this.properties[a.name]||this.properties[a.basename]:this.properties[a.name])||null}getType(t){return hasOwnProperty.call(this.types,t)?this.types[t]:null}validate(){function t(n,i,o,u){if(o.has(i))return o.get(i);o.set(i,!1),u.syntax!==null&&Hb(u.syntax,function(l){if(l.type!=="Type"&&l.type!=="Property")return;const s=l.type==="Type"?n.types:n.properties,d=l.type==="Type"?r:a;(!hasOwnProperty.call(s,l.name)||t(n,l.name,d,s[l.name]))&&o.set(i,!0)},this)}let r=new Map,a=new Map;for(const n in this.types)t(this,n,r,this.types[n]);for(const n in this.properties)t(this,n,a,this.properties[n]);return r=[...r.keys()].filter(n=>r.get(n)),a=[...a.keys()].filter(n=>a.get(n)),r.length||a.length?{types:r,properties:a}:null}dump(t,r){return{generic:this.generic,units:this.units,types:dc(this.types,!r,t),properties:dc(this.properties,!r,t),atrules:d0(this.atrules,!r,t)}}toString(){return JSON.stringify(this.dump())}}function Tu(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function cp(e,t){const r=Object.create(null);for(const[a,n]of Object.entries(e))if(n){r[a]={};for(const i of Object.keys(n))t.includes(i)&&(r[a][i]=n[i])}return r}function pc(e,t){const r={...e};for(const[a,n]of Object.entries(t))switch(a){case"generic":r[a]=!!n;break;case"units":r[a]={...e[a]};for(const[i,o]of Object.entries(n))r[a][i]=Array.isArray(o)?o:[];break;case"atrules":r[a]={...e[a]};for(const[i,o]of Object.entries(n)){const u=r[a][i]||{},l=r[a][i]={prelude:u.prelude||null,descriptors:{...u.descriptors}};if(o){l.prelude=o.prelude?Tu(l.prelude,o.prelude):l.prelude||null;for(const[s,d]of Object.entries(o.descriptors||{}))l.descriptors[s]=d?Tu(l.descriptors[s],d):null;Object.keys(l.descriptors).length||(l.descriptors=null)}}break;case"types":case"properties":r[a]={...e[a]};for(const[i,o]of Object.entries(n))r[a][i]=Tu(r[a][i],o);break;case"scope":r[a]={...e[a]};for(const[i,o]of Object.entries(n))r[a][i]={...r[a][i],...o};break;case"parseContext":r[a]={...e[a],...n};break;case"atrule":case"pseudo":r[a]={...e[a],...cp(n,["parse"])};break;case"node":r[a]={...e[a],...cp(n,["name","structure","parse","generate","walkContext"])};break}return r}function _h(e){const t=bv(e),r=Iv(e),a=Mv(e),{fromPlainObject:n,toPlainObject:i}=Tv(r),o={lexer:null,createLexer:u=>new up(u,o,o.lexer.structure),tokenize:Ja,parse:t,generate:a,walk:r,find:r.find,findLast:r.findLast,findAll:r.findAll,fromPlainObject:n,toPlainObject:i,fork(u){const l=pc({},e);return _h(typeof u=="function"?u(l,Object.assign):pc(l,u))}};return o.lexer=new up({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},o),o}const f0=e=>_h(pc({},e)),h0={generic:!0,units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( )","alpha-value":"|","angle-percentage":"|","angular-color-hint":"","angular-color-stop":"&&?","angular-color-stop-list":"[ [, ]?]# , ","animateable-feature":"scroll-position|contents|","asin()":"asin( )","atan()":"atan( )","atan2()":"atan2( , )",attachment:"scroll|fixed|local","attr()":"attr( ? [, ]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' ']'|'[' [|] ? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [? ]+ ? )","auto-track-list":"[? [|]]* ? [? [|]]* ?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"||||","bg-image":"none|","bg-layer":"|| [/ ]?||||||||","bg-position":"[[left|center|right|top|bottom|]|[left|center|right|] [top|center|bottom|]|[center|[left|right] ?]&&[center|[top|bottom] ?]]","bg-size":"[|auto]{1,2}|cover|contain","blur()":"blur( )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( )","calc()":"calc( )","calc-sum":" [['+'|'-'] ]*","calc-product":" ['*' |'/' ]*","calc-value":"||||( )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"|","cf-mixing-image":"?&&","circle()":"circle( []? [at ]? )","clamp()":"clamp( #{3} )","class-selector":"'.' ","clip-source":"",color:"|||||||||currentcolor|","color-stop":"|","color-stop-angle":"{1,2}","color-stop-length":"{1,2}","color-stop-list":"[ [, ]?]# , ",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[? * [ *]*]!","compound-selector-list":"#","complex-selector":" [? ]*","complex-selector-list":"#","conic-gradient()":"conic-gradient( [from ]? [at ]? , )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[|contents||||||]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"","contrast()":"contrast( [] )","cos()":"cos( )",counter:"|","counter()":"counter( , ? )","counter-name":"","counter-style":"|symbols( )","counter-style-name":"","counters()":"counters( , , ? )","cross-fade()":"cross-fade( , ? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( , , , )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( {2,3} ? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( , [first|start|last|first-except]? )|element( )","ellipse()":"ellipse( [{2}]? [at ]? )","ending-shape":"circle|ellipse","env()":"env( , ? )","exp()":"exp( )","explicit-track-list":"[? ]+ ?","family-name":"|+","feature-tag-value":" [|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":" '{' '}'","feature-value-block-list":"+","feature-value-declaration":" : + ;","feature-value-declaration-list":"","feature-value-name":"","fill-rule":"nonzero|evenodd","filter-function":"|||||||||","filter-function-list":"[|]+","final-bg-layer":"<'background-color'>|||| [/ ]?||||||||","fixed-breadth":"","fixed-repeat":"repeat( [] , [? ]+ ? )","fixed-size":"|minmax( , )|minmax( , )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|","frequency-percentage":"|","general-enclosed":"[ )]|( )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"|fill-box|stroke-box|view-box",gradient:"||||||<-legacy-gradient>","grayscale()":"grayscale( )","grid-line":"auto||[&&?]|[span&&[||]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( [/ ]? )|hsl( , , , ? )","hsla()":"hsla( [/ ]? )|hsla( , , , ? )",hue:"|","hue-rotate()":"hue-rotate( )","hwb()":"hwb( [|none] [|none] [|none] [/ [|none]]? )","hypot()":"hypot( # )",image:"||||||","image()":"image( ? [? , ?]! )","image-set()":"image-set( # )","image-set-option":"[|] [||type( )]","image-src":"|","image-tags":"ltr|rtl","inflexible-breadth":"|min-content|max-content|auto","inset()":"inset( {1,4} [round <'border-radius'>]? )","invert()":"invert( )","keyframes-name":"|","keyframe-block":"# { }","keyframe-block-list":"+","keyframe-selector":"from|to|","lab()":"lab( [||none] [||none] [||none] [/ [|none]]? )","layer()":"layer( )","layer-name":" ['.' ]*","lch()":"lch( [||none] [||none] [|none] [/ [|none]]? )","leader()":"leader( )","leader-type":"dotted|solid|space|","length-percentage":"|","line-names":"'[' * ']'","line-name-list":"[|]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"|thin|medium|thick","linear-color-hint":"","linear-color-stop":" ?","linear-gradient()":"linear-gradient( [|to ]? , )","log()":"log( , ? )","mask-layer":"|| [/ ]?||||||[|no-clip]||||","mask-position":"[|left|center|right] [|top|center|bottom]?","mask-reference":"none||","mask-source":"","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( #{6} )","matrix3d()":"matrix3d( #{16} )","max()":"max( # )","media-and":" [and ]+","media-condition":"|||","media-condition-without-or":"||","media-feature":"( [||] )","media-in-parens":"( )||","media-not":"not ","media-or":" [or ]+","media-query":"|[not|only]? [and ]?","media-query-list":"#","media-type":"","mf-boolean":"","mf-name":"","mf-plain":" : ","mf-range":" ['<'|'>']? '='? | ['<'|'>']? '='? | '<' '='? '<' '='? | '>' '='? '>' '='? ","mf-value":"|||","min()":"min( # )","minmax()":"minmax( [|min-content|max-content|auto] , [||min-content|max-content|auto] )","mod()":"mod( , )","name-repeat":"repeat( [|auto-fill] , + )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"","ns-prefix":"[|'*']? '|'","number-percentage":"|","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"|even|odd","opacity()":"opacity( [] )","overflow-position":"unsafe|safe","outline-radius":"|","page-body":"? [; ]?| ","page-margin-box":" '{' '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[#]?","page-selector":"+| *","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [ ,]? )","paint()":"paint( , ? )","perspective()":"perspective( [|none] )","polygon()":"polygon( ? , [ ]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|] [top|center|bottom|]?|[[left|right] ]&&[[top|bottom] ]]","pow()":"pow( , )","pseudo-class-selector":"':' |':' ')'","pseudo-element-selector":"':' ","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [||]? [at ]? , )",ratio:" [/ ]?","relative-selector":"? ","relative-selector-list":"#","relative-size":"larger|smaller","rem()":"rem( , )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from ]? [at ]? , )","repeating-linear-gradient()":"repeating-linear-gradient( [|to ]? , )","repeating-radial-gradient()":"repeating-radial-gradient( [||]? [at ]? , )","reversed-counter-name":"reversed( )","rgb()":"rgb( {3} [/ ]? )|rgb( {3} [/ ]? )|rgb( #{3} , ? )|rgb( #{3} , ? )","rgba()":"rgba( {3} [/ ]? )|rgba( {3} [/ ]? )|rgba( #{3} , ? )|rgba( #{3} , ? )","rotate()":"rotate( [|] )","rotate3d()":"rotate3d( , , , [|] )","rotateX()":"rotateX( [|] )","rotateY()":"rotateY( [|] )","rotateZ()":"rotateZ( [|] )","round()":"round( ? , , )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( )","scale()":"scale( [|]#{1,2} )","scale3d()":"scale3d( [|]#{3} )","scaleX()":"scaleX( [|] )","scaleY()":"scaleY( [|] )","scaleZ()":"scaleZ( [|] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"|closest-side|farthest-side","sign()":"sign( )","skew()":"skew( [|] , [|]? )","skewX()":"skewX( [|] )","skewY()":"skewY( [|] )","sepia()":"sepia( )",shadow:"inset?&&{2,4}&&?","shadow-t":"[{2,3}&&?]",shape:"rect( , , , )|rect( )","shape-box":"|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( )","single-animation":"