allyward 0.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ import { createRequire as __createRequire } from 'module'; const require = __createRequire(import.meta.url);
2
+ import{d as It}from"./chunk-7UDH5BXX.mjs";var Be=44,Et=59,Le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fe=new Uint8Array(64),De=new Uint8Array(128);for(let e=0;e<Le.length;e++){let t=Le.charCodeAt(e);Fe[e]=t,De[t]=e}function Z(e){let t=0,i=0,s=0;do{let r=e.next();s=De[r],t|=(s&31)<<i,i+=5}while(s&32);return t}function J(e){return e&1?-2147483648|-(e>>>1):e>>>1}function $(e,t){do{let i=t&31;t>>>=5,t>0&&(i|=32),e.write(Fe[i])}while(t>0)}function ee(e){return e<0?-e<<1|1:e<<1}function Te(e,t){return e.pos>=t?!1:e.peek()!==Be}var Re=1024*16,Oe=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return t}},Pt=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Re)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===Re&&(this.out+=Oe.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:i}=this;return i>0?t+Oe.decode(e.subarray(0,i)):t}},Nt=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:i}=this,s=t.indexOf(e,i);return s===-1?t.length:s}};function bi(e){let{length:t}=e,i=new Nt(e),s=[],r=0,n=0,o=0,u=0,h=0;do{let f=i.indexOf(";"),p=[],g=!0,C=0;for(r=0;i.pos<f;){let T;r+=J(Z(i)),r<C&&(g=!1),C=r,Te(i,f)?(n+=J(Z(i)),o+=J(Z(i)),u+=J(Z(i)),Te(i,f)?(h+=J(Z(i)),T=[r,n,o,u,h]):T=[r,n,o,u]):T=[r],p.push(T),i.pos++}g||Vt(p),s.push(p),i.pos=f+1}while(i.pos<=t);return s}function Vt(e){e.sort(Lt)}function Lt(e,t){return e[0]-t[0]}function yi(e){let t=new Pt,i=0,s=0,r=0,n=0;for(let o=0;o<e.length;o++){let u=e[o];if(o>0&&t.write(Et),u.length===0)continue;let h=0;for(let f=0;f<u.length;f++){let p=u[f];f>0&&t.write(Be),$(t,ee(p[0]-h)),h=p[0],p.length!==1&&($(t,ee(p[1]-i)),$(t,ee(p[2]-s)),$(t,ee(p[3]-r)),i=p[1],s=p[2],r=p[3],p.length!==4&&($(t,ee(p[4]-n)),n=p[4]))}}return t.flush()}var gi={};It(gi,{Node:()=>ae,Parser:()=>y,Position:()=>Q,SourceLocation:()=>ie,TokContext:()=>E,Token:()=>ge,TokenType:()=>v,defaultOptions:()=>ue,getLineInfo:()=>Ae,isIdentifierChar:()=>R,isIdentifierStart:()=>L,isNewLine:()=>j,keywordTypes:()=>fe,lineBreak:()=>k,lineBreakG:()=>Ke,nonASCIIwhitespace:()=>we,parse:()=>xi,parseExpressionAt:()=>mi,tokContexts:()=>b,tokTypes:()=>a,tokenizer:()=>vi,version:()=>At});var Tt=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,31,4,33,15,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,7,0,259,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,481,1,61,4,4,5,9,7,3,6,31,3,149,2,12,2,9,1,3,0,33,1,1357,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],We=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,13,65,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,18,21,18,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,18,0,182,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,22,0,239,18,16,0,2,12,2,33,125,0,80,921,103,111,6,206,13,310,2314,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7386,37,33,96,114,14,913,15,50,7710,3,2,6,2,1,2,296,10,0,30,2,3,0,15,4,8,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,340,2,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,129,15,6,55,50,49,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4382,2,5773,3,7472,16,621,2467,541,1507,4938,6,8489,39815,11327],Rt="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7-\u05C9\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B53-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1AF0\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",He="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0558\u0559\u0560-\u0588\u058B\u058C\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u208F-\u209F\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DD\uA7E2\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB6C\uAB6D\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",be={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"},ye="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",Ot={5:ye,"5module":ye+" export import",6:ye+" const class extends export import super"},ze=/^in(stanceof)?$/,Bt=new RegExp("["+He+"]"),Ft=new RegExp("["+He+Rt+"]");function Se(e,t){for(var i=65536,s=0;s<t.length;s+=2){if(i+=t[s],i>e)return!1;if(i+=t[s+1],i>=e)return!0}return!1}function L(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Bt.test(String.fromCharCode(e)):t===!1?!1:Se(e,We)}function R(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&&Ft.test(String.fromCharCode(e)):t===!1?!1:Se(e,We)||Se(e,Tt)}var v=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function A(e,t){return new v(e,{beforeExpr:!0,binop:t})}var I={beforeExpr:!0},w={startsExpr:!0},fe={};function m(e,t){return t===void 0&&(t={}),t.keyword=e,fe[e]=new v(e,t)}var a={num:new v("num",w),regexp:new v("regexp",w),string:new v("string",w),name:new v("name",w),privateId:new v("privateId",w),eof:new v("eof"),bracketL:new v("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new v("]"),braceL:new v("{",{beforeExpr:!0,startsExpr:!0}),braceR:new v("}"),parenL:new v("(",{beforeExpr:!0,startsExpr:!0}),parenR:new v(")"),comma:new v(",",I),semi:new v(";",I),colon:new v(":",I),dot:new v("."),question:new v("?",I),questionDot:new v("?."),arrow:new v("=>",I),template:new v("template"),invalidTemplate:new v("invalidTemplate"),ellipsis:new v("...",I),backQuote:new v("`",w),dollarBraceL:new v("${",{beforeExpr:!0,startsExpr:!0}),eq:new v("=",{beforeExpr:!0,isAssign:!0}),assign:new v("_=",{beforeExpr:!0,isAssign:!0}),incDec:new v("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new v("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:A("||",1),logicalAND:A("&&",2),bitwiseOR:A("|",3),bitwiseXOR:A("^",4),bitwiseAND:A("&",5),equality:A("==/!=/===/!==",6),relational:A("</>/<=/>=",7),bitShift:A("<</>>/>>>",8),plusMin:new v("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:A("%",10),star:A("*",10),slash:A("/",10),starstar:new v("**",{beforeExpr:!0}),coalesce:A("??",1),_break:m("break"),_case:m("case",I),_catch:m("catch"),_continue:m("continue"),_debugger:m("debugger"),_default:m("default",I),_do:m("do",{isLoop:!0,beforeExpr:!0}),_else:m("else",I),_finally:m("finally"),_for:m("for",{isLoop:!0}),_function:m("function",w),_if:m("if"),_return:m("return",I),_switch:m("switch"),_throw:m("throw",I),_try:m("try"),_var:m("var"),_const:m("const"),_while:m("while",{isLoop:!0}),_with:m("with"),_new:m("new",{beforeExpr:!0,startsExpr:!0}),_this:m("this",w),_super:m("super",w),_class:m("class",w),_extends:m("extends",I),_export:m("export"),_import:m("import",w),_null:m("null",w),_true:m("true",w),_false:m("false",w),_in:m("in",{beforeExpr:!0,binop:7}),_instanceof:m("instanceof",{beforeExpr:!0,binop:7}),_typeof:m("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:m("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:m("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},k=/\r\n?|\n|\u2028|\u2029/,Ke=new RegExp(k.source,"g");function j(e){return e===10||e===13||e===8232||e===8233}function Qe(e,t,i){i===void 0&&(i=e.length);for(var s=t;s<i;s++){var r=e.charCodeAt(s);if(j(r))return s<i-1&&r===13&&e.charCodeAt(s+1)===10?s+2:s+1}return-1}var we=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,S=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ye=Object.prototype,Dt=Ye.hasOwnProperty,Mt=Ye.toString,Y=Object.hasOwn||(function(e,t){return Dt.call(e,t)}),Me=Array.isArray||(function(e){return Mt.call(e)==="[object Array]"}),Ue=Object.create(null);function M(e){return Ue[e]||(Ue[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function B(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var Ut=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Q=function(t,i){this.line=t,this.column=i};Q.prototype.offset=function(t){return new Q(this.line,this.column+t)};var ie=function(t,i,s){this.start=i,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function Ae(e,t){for(var i=1,s=0;;){var r=Qe(e,s,t);if(r<0)return new Q(i,t-s);++i,s=r}}var ue={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},qe=!1;function qt(e){var t={};for(var i in ue)t[i]=e&&Y(e,i)?e[i]:ue[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!qe&&typeof console=="object"&&console.warn&&(qe=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
3
+ 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),Me(t.onToken)){var s=t.onToken;t.onToken=function(r){return s.push(r)}}if(Me(t.onComment)&&(t.onComment=jt(t,t.onComment)),t.sourceType==="commonjs"&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function jt(e,t){return function(i,s,r,n,o,u){var h={type:i?"Block":"Line",value:s,start:r,end:n};e.locations&&(h.loc=new ie(this,o,u)),e.ranges&&(h.range=[r,n]),t.push(h)}}var q=1,G=2,Ie=4,Xe=8,Ee=16,Ze=32,de=64,Je=128,W=256,se=512,$e=1024,xe=q|G|W;function Pe(e,t){return G|(e?Ie:0)|(t?Xe:0)}var he=0,Ne=1,D=2,et=3,tt=4,it=5,y=function(t,i,s){this.options=t=qt(t),this.sourceFile=t.sourceFile,this.keywords=M(Ot[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var r="";t.allowReserved!==!0&&(r=be[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(r+=" await")),this.reservedWords=M(r);var n=(r?r+" ":"")+be.strict;this.reservedWordsStrict=M(n),this.reservedWordsStrictBind=M(n+" "+be.strictBind),this.input=String(i),this.containsEsc=!1,this.pos=s||0,this.curLine=1,t.startLocation?(this.lineStart=this.pos-t.startLocation.column,this.curLine=t.startLocation.line):s?(this.lineStart=this.input.lastIndexOf(`
4
+ `,s-1)+1,this.options.locations&&(this.curLine=this.input.slice(0,this.lineStart).split(k).length)):this.lineStart=0,this.type=a.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||t.strict===!0||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(this.options.sourceType==="commonjs"?G:q),this.regexpState=null,this.privateNameStack=[]},N={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};y.prototype.parse=function(){var t=this,i=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return t.parseTopLevel(i)})};N.inFunction.get=function(){return(this.currentVarScope().flags&G)>0};N.inGenerator.get=function(){return(this.currentVarScope().flags&Xe)>0};N.inAsync.get=function(){return(this.currentVarScope().flags&Ie)>0};N.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],i=t.flags;if(i&(W|se))return!1;if(i&G)return(i&Ie)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};N.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&q)};N.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&de)>0||this.options.allowSuperOutsideMethod};N.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Je)>0};N.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};N.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],i=t.flags;if(i&(W|se)||i&G&&!(i&Ee))return!0}return!1};N.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;return!(t&$e||!this.inModule&&t&q)};N.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&W)>0};y.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var s=this,r=0;r<t.length;r++)s=t[r](s);return s};y.parse=function(t,i){return new this(i,t).parse()};y.parseExpressionAt=function(t,i,s){var r=new this(s,t,i);return r.nextToken(),r.parseExpression()};y.tokenizer=function(t,i){return new this(i,t)};Object.defineProperties(y.prototype,N);var _=y.prototype,Gt=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;_.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){S.lastIndex=e,e+=S.exec(this.input)[0].length;var t=Gt.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){S.lastIndex=e+t[0].length;var i=S.exec(this.input),s=i.index+i[0].length,r=this.input.charAt(s);return r===";"||r==="}"||k.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||r==="!"&&this.input.charAt(s+1)==="="||r==="i"&&Wt(this,s))}e+=t[0].length,S.lastIndex=e,e+=S.exec(this.input)[0].length,this.input[e]===";"&&e++}};function Wt(e,t){for(var i=t+1,s=Math.min(e.input.length,t+11);i<s;){var r=e.fullCharCodeAt(i);if(!R(r,!0))break;i+=r<=65535?1:2}return i===t+2&&e.input.slice(t,i)==="in"||i===t+10&&e.input.slice(t,i)==="instanceof"}_.eat=function(e){return this.type===e?(this.next(),!0):!1};_.isContextual=function(e){return this.type===a.name&&this.value===e&&!this.containsEsc};_.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};_.catchStackOverflow=function(e){try{return e()}catch(t){if(t instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(t.message)||/\btoo much recursion\b/i.test(t.message)))this.raise(this.start,"Not enough stack space to parse input");else throw t}};_.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};_.canInsertSemicolon=function(){return this.type===a.eof||this.type===a.braceR||k.test(this.input.slice(this.lastTokEnd,this.start))};_.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};_.semicolon=function(){!this.eat(a.semi)&&!this.insertSemicolon()&&this.unexpected()};_.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};_.expect=function(e){this.eat(e)||this.unexpected()};_.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var me=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};_.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}};_.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")};_.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};_.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var l=y.prototype;l.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==a.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var n=r[s];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var Ve={kind:"loop"},Ht={kind:"switch"};l.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;S.lastIndex=this.pos;var t=S.exec(this.input),i=this.pos+t[0].length,s=this.fullCharCodeAt(i);if(s===91||s===92)return!0;if(e)return!1;if(s===123)return!0;if(L(s)){var r=i;do i+=s<=65535?1:2;while(R(s=this.fullCharCodeAt(i)));if(s===92)return!0;var n=this.input.slice(r,i);if(!ze.test(n))return!0}return!1};l.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;S.lastIndex=this.pos;var e=S.exec(this.input),t=this.pos+e[0].length,i;return!k.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(R(i=this.fullCharCodeAt(t+8))||i===92))};l.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;S.lastIndex=this.pos;var i=S.exec(this.input),s=this.pos+i[0].length;if(k.test(this.input.slice(this.pos,s)))return!1;if(e){var r=s+5,n;if(this.input.slice(s,r)!=="using"||r===this.input.length||R(n=this.fullCharCodeAt(r))||n===92)return!1;S.lastIndex=r;var o=S.exec(this.input);if(s=r+o[0].length,o&&k.test(this.input.slice(r,s)))return!1}var u=this.fullCharCodeAt(s);if(!L(u)&&u!==92)return!1;var h=s;do s+=u<=65535?1:2;while(R(u=this.fullCharCodeAt(s)));if(u===92)return!0;var f=this.input.slice(h,s);if(ze.test(f))return!1;if(t&&!e&&f==="of"){S.lastIndex=s;var p=S.exec(this.input);if(s=s+p[0].length,this.input.charCodeAt(s)!==61||(u=this.input.charCodeAt(s+1))===61||u===62)return!1}return!0};l.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};l.isUsing=function(e){return this.isUsingKeyword(!1,e)};l.parseStatement=function(e,t,i){var s=this.type,r=this.startNode(),n;switch(this.isLet(e)&&(s=a._var,n="let"),s){case a._break:case a._continue:return this.parseBreakContinueStatement(r,s.keyword);case a._debugger:return this.parseDebuggerStatement(r);case a._do:return this.parseDoStatement(r);case a._for:return this.parseForStatement(r);case a._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!e);case a._class:return e&&this.unexpected(),this.parseClass(r,!0);case a._if:return this.parseIfStatement(r);case a._return:return this.parseReturnStatement(r);case a._switch:return this.parseSwitchStatement(r);case a._throw:return this.parseThrowStatement(r);case a._try:return this.parseTryStatement(r);case a._const:case a._var:return n=n||this.value,e&&n!=="var"&&this.unexpected(),this.parseVarStatement(r,n);case a._while:return this.parseWhileStatement(r);case a._with:return this.parseWithStatement(r);case a.braceL:return this.parseBlock(!0,r);case a.semi:return this.parseEmptyStatement(r);case a._export:case a._import:if(this.options.ecmaVersion>10&&s===a._import){S.lastIndex=this.pos;var o=S.exec(this.input),u=this.pos+o[0].length,h=this.input.charCodeAt(u);if(h===40||h===46)return this.parseExpressionStatement(r,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'")),s===a._import?this.parseImport(r):this.parseExport(r,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!e);var f=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(f)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),e&&this.raise(this.start,"Using declaration is not allowed in single-statement positions"),f==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(r,!1,f),this.semicolon(),this.finishNode(r,"VariableDeclaration");var p=this.value,g=this.parseExpression();return s===a.name&&g.type==="Identifier"&&this.eat(a.colon)?this.parseLabeledStatement(r,p,g,e):this.parseExpressionStatement(r,g)}};l.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(a.semi)||this.insertSemicolon()?e.label=null:this.type!==a.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(i||r.kind==="loop")||e.label&&i))break}return s===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")};l.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};l.parseDoStatement=function(e){return this.next(),this.labels.push(Ve),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(a._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(a.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};l.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ve),this.enterScope(0),this.expect(a.parenL),this.type===a.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===a._var||this.type===a._const||i){var s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(e,s,t)}var n=this.isContextual("let"),o=!1,u=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(u){var h=this.startNode();return this.next(),u==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(h,!0,u),this.finishNode(h,"VariableDeclaration"),this.parseForAfterInit(e,h,t)}var f=this.containsEsc,p=new me,g=this.start,C=t>-1?this.parseExprSubscripts(p,"await"):this.parseExpression(!0,p);return this.type===a._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===a._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(C.start===g&&!f&&C.type==="Identifier"&&C.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),n&&o&&this.raise(C.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(C,!1,p),this.checkLValPattern(C),this.parseForIn(e,C)):(this.checkExpressionErrors(p,!0),t>-1&&this.unexpected(t),this.parseFor(e,C))};l.parseForAfterInit=function(e,t,i){return(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.type===a._in?((t.kind==="using"||t.kind==="await using")&&!t.declarations[0].init&&this.raise(this.start,"Using declaration is not allowed in for-in loops"),this.options.ecmaVersion>=9&&i>-1&&this.unexpected(i)):this.options.ecmaVersion>=9&&(e.await=i>-1),this.parseForIn(e,t)):(i>-1&&this.unexpected(i),this.parseFor(e,t))};l.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,te|(i?0:_e),!1,t)};l.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(a._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};l.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(a.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};l.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(a.braceL),this.labels.push(Ht),this.enterScope($e);for(var t,i=!1;this.type!==a.braceR;)if(this.type===a._case||this.type===a._default){var s=this.type===a._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(a.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")};l.parseThrowStatement=function(e){return this.next(),k.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 zt=[];l.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?Ze:0),this.checkLValPattern(e,t?tt:D),this.expect(a.parenR),e};l.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===a._catch){var t=this.startNode();this.next(),this.eat(a.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(a._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};l.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")};l.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ve),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};l.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")};l.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};l.parseLabeledStatement=function(e,t,i,s){for(var r=0,n=this.labels;r<n.length;r+=1){var o=n[r];o.name===t&&this.raise(i.start,"Label '"+t+"' is already declared")}for(var u=this.type.isLoop?"loop":this.type===a._switch?"switch":null,h=this.labels.length-1;h>=0;h--){var f=this.labels[h];if(f.statementStart===e.start)f.statementStart=this.start,f.kind=u;else break}return this.labels.push({name:t,kind:u,statementStart:this.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")};l.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};l.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(a.braceL),e&&this.enterScope(0);this.type!==a.braceR;){var s=this.parseStatement(null);t.body.push(s)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};l.parseFor=function(e,t){return e.init=t,this.expect(a.semi),e.test=this.type===a.semi?null:this.parseExpression(),this.expect(a.semi),e.update=this.type===a.parenR?null:this.parseExpression(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};l.parseForIn=function(e,t){var i=this.type===a._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")};l.parseVar=function(e,t,i,s){for(e.declarations=[],e.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(a.eq)?r.init=this.parseMaybeAssign(t):!s&&i==="const"&&!(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!s&&(i==="using"||i==="await using")&&this.options.ecmaVersion>=17&&this.type!==a._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+i+" declaration"):!s&&r.id.type!=="Identifier"&&!(t&&(this.type===a._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):r.init=null,e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(a.comma))break}return e};l.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Ne:D,!1)};var te=1,_e=2,st=4;l.parseFunction=function(e,t,i,s,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===a.star&&t&_e&&this.unexpected(),e.generator=this.eat(a.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&te&&(e.id=t&st&&this.type!==a.name?null:this.parseIdent(),e.id&&!(t&_e)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Ne:D:et));var n=this.yieldPos,o=this.awaitPos,u=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Pe(e.async,e.generator)),t&te||(e.id=this.type===a.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,r),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=u,this.finishNode(e,t&te?"FunctionDeclaration":"FunctionExpression")};l.parseFunctionParams=function(e){this.expect(a.parenL),e.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};l.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),r=this.startNode(),n=!1;for(r.body=[],this.expect(a.braceL);this.type!==a.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(r.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"?(n&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),n=!0):o.key&&o.key.type==="PrivateIdentifier"&&Kt(s,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};l.parseClassElement=function(e){if(this.eat(a.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),s="",r=!1,n=!1,o="method",u=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(a.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===a.star?u=!0:s="static"}if(i.static=u,!s&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===a.star)&&!this.canInsertSemicolon()?n=!0:s="async"),!s&&(t>=9||!n)&&this.eat(a.star)&&(r=!0),!s&&!n&&!r){var h=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=h:s=h)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===a.parenL||o!=="method"||r||n){var f=!i.static&&ce(i,"constructor"),p=f&&e;f&&o!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=f?"constructor":o,this.parseClassMethod(i,r,n,p)}else this.parseClassField(i);return i};l.isClassElementNameStart=function(){return this.type===a.name||this.type===a.privateId||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword};l.parseClassElementName=function(e){this.type===a.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)};l.parseClassMethod=function(e,t,i,s){var r=e.key;e.kind==="constructor"?(t&&this.raise(r.start,"Constructor can't be a generator"),i&&this.raise(r.start,"Constructor can't be an async method")):e.static&&ce(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var n=e.value=this.parseMethod(t,i,s);return e.kind==="get"&&n.params.length!==0&&this.raiseRecoverable(n.start,"getter should have no params"),e.kind==="set"&&n.params.length!==1&&this.raiseRecoverable(n.start,"setter should have exactly one param"),e.kind==="set"&&n.params[0].type==="RestElement"&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};l.parseClassField=function(e){return ce(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&ce(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(a.eq)?(this.enterScope(se|de),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};l.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(W|de);this.type!==a.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};l.parseClassId=function(e,t){this.type===a.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,D,!1)):(t===!0&&this.unexpected(),e.id=null)};l.parseClassSuper=function(e){e.superClass=this.eat(a._extends)?this.parseExprSubscripts(null,!1):null};l.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};l.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=s===0?null:this.privateNameStack[s-1],n=0;n<i.length;++n){var o=i[n];Y(t,o.name)||(r?r.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}};function Kt(e,t){var i=t.key.name,s=e[i],r="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(r=(t.static?"s":"i")+t.kind),s==="iget"&&r==="iset"||s==="iset"&&r==="iget"||s==="sget"&&r==="sset"||s==="sset"&&r==="sget"?(e[i]="true",!1):s?!0:(e[i]=r,!1)}function ce(e,t){var i=e.computed,s=e.key;return!i&&(s.type==="Identifier"&&s.name===t||s.type==="Literal"&&s.value===t)}l.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==a.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};l.parseExport=function(e,t){if(this.next(),this.eat(a.star))return this.parseExportAllDeclaration(e,t);if(this.eat(a._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,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==a.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var i=0,s=e.specifiers;i<s.length;i+=1){var r=s[i];this.checkUnreserved(r.local),this.checkLocalExport(r.local),r.local.type==="Literal"&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};l.parseExportDeclaration=function(e){return this.parseStatement(null)};l.parseExportDefaultDeclaration=function(){var e;if(this.type===a._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,te|st,!1,e)}else if(this.type===a._class){var i=this.startNode();return this.parseClass(i,"nullableID")}else{var s=this.parseMaybeAssign();return this.semicolon(),s}};l.checkExport=function(e,t,i){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Y(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)};l.checkPatternExport=function(e,t){var i=t.type;if(i==="Identifier")this.checkExport(e,t,t.start);else if(i==="ObjectPattern")for(var s=0,r=t.properties;s<r.length;s+=1){var n=r[s];this.checkPatternExport(e,n)}else if(i==="ArrayPattern")for(var o=0,u=t.elements;o<u.length;o+=1){var h=u[o];h&&this.checkPatternExport(e,h)}else i==="Property"?this.checkPatternExport(e,t.value):i==="AssignmentPattern"?this.checkPatternExport(e,t.left):i==="RestElement"&&this.checkPatternExport(e,t.argument)};l.checkVariableExport=function(e,t){if(e)for(var i=0,s=t;i<s.length;i+=1){var r=s[i];this.checkPatternExport(e,r.id)}};l.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};l.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};l.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(a.braceL);!this.eat(a.braceR);){if(i)i=!1;else if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break;t.push(this.parseExportSpecifier(e))}return t};l.parseImport=function(e){return this.next(),this.type===a.string?(e.specifiers=zt,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===a.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};l.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,D),this.finishNode(e,"ImportSpecifier")};l.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,D),this.finishNode(e,"ImportDefaultSpecifier")};l.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,D),this.finishNode(e,"ImportNamespaceSpecifier")};l.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===a.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(a.comma)))return e;if(this.type===a.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(a.braceL);!this.eat(a.braceR);){if(t)t=!1;else if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break;e.push(this.parseImportSpecifier())}return e};l.parseWithClause=function(){var e=[];if(!this.eat(a._with))return e;this.expect(a.braceL);for(var t={},i=!0;!this.eat(a.braceR);){if(i)i=!1;else if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break;var s=this.parseImportAttribute(),r=s.key.type==="Identifier"?s.key.name:s.key.value;Y(t,r)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+r+"'"),t[r]=!0,e.push(s)}return e};l.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(a.colon),this.type!==a.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};l.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===a.string){var e=this.parseLiteral(this.value);return Ut.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};l.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};l.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var V=y.prototype;V.toAssignable=function(e,t,i){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",i&&this.checkPatternErrors(i,!0);for(var s=0,r=e.properties;s<r.length;s+=1){var n=r[s];this.toAssignable(n,t),n.type==="RestElement"&&(n.argument.type==="ArrayPattern"||n.argument.type==="ObjectPattern")&&this.raise(n.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,i);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return e};V.toAssignableList=function(e,t){for(var i=e.length,s=0;s<i;s++){var r=e[s];r&&this.toAssignable(r,t)}if(i){var n=e[i-1];this.options.ecmaVersion===6&&t&&n&&n.type==="RestElement"&&n.argument.type!=="Identifier"&&this.unexpected(n.argument.start)}return e};V.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};V.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==a.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};V.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case a.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(a.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case a.braceL:return this.parseObj(!0)}return this.parseIdent()};V.parseBindingList=function(e,t,i,s){for(var r=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(a.comma),t&&this.type===a.comma)r.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===a.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),r.push(o),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else r.push(this.parseAssignableListItem(s))}return r};V.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};V.parseBindingListItem=function(e){return e};V.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(a.eq))return i;var s=this.startNodeAt(e,t);return s.left=i,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")};V.checkLValSimple=function(e,t,i){t===void 0&&(t=he);var s=t!==he;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(s?"Binding ":"Assigning to ")+e.name+" in strict mode"),s&&(t===D&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(Y(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==it&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(s?"Binding":"Assigning to")+" rvalue")}};V.checkLValPattern=function(e,t,i){switch(t===void 0&&(t=he),e.type){case"ObjectPattern":for(var s=0,r=e.properties;s<r.length;s+=1){var n=r[s];this.checkLValInnerPattern(n,t,i)}break;case"ArrayPattern":for(var o=0,u=e.elements;o<u.length;o+=1){var h=u[o];h&&this.checkLValInnerPattern(h,t,i)}break;default:this.checkLValSimple(e,t,i)}};V.checkLValInnerPattern=function(e,t,i){switch(t===void 0&&(t=he),e.type){case"Property":this.checkLValInnerPattern(e.value,t,i);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,i);break;case"RestElement":this.checkLValPattern(e.argument,t,i);break;default:this.checkLValPattern(e,t,i)}};var E=function(t,i,s,r,n){this.token=t,this.isExpr=!!i,this.preserveSpace=!!s,this.override=r,this.generator=!!n},b={b_stat:new E("{",!1),b_expr:new E("{",!0),b_tmpl:new E("${",!1),p_stat:new E("(",!1),p_expr:new E("(",!0),q_tmpl:new E("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new E("function",!1),f_expr:new E("function",!0),f_expr_gen:new E("function",!0,!1,null,!0),f_gen:new E("function",!1,!1,null,!0)},X=y.prototype;X.initialContext=function(){return[b.b_stat]};X.curContext=function(){return this.context[this.context.length-1]};X.braceIsBlock=function(e){var t=this.curContext();return t===b.f_expr||t===b.f_stat?!0:e===a.colon&&(t===b.b_stat||t===b.b_expr)?!t.isExpr:e===a._return||e===a.name&&this.exprAllowed?k.test(this.input.slice(this.lastTokEnd,this.start)):e===a._else||e===a.semi||e===a.eof||e===a.parenR||e===a.arrow?!0:e===a.braceL?t===b.b_stat:e===a._var||e===a._const||e===a.name?!1:!this.exprAllowed};X.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};X.updateContext=function(e){var t,i=this.type;i.keyword&&e===a.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr};X.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};a.parenR.updateContext=a.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===b.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};a.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?b.b_stat:b.b_expr),this.exprAllowed=!0};a.dollarBraceL.updateContext=function(){this.context.push(b.b_tmpl),this.exprAllowed=!0};a.parenL.updateContext=function(e){var t=e===a._if||e===a._for||e===a._with||e===a._while;this.context.push(t?b.p_stat:b.p_expr),this.exprAllowed=!0};a.incDec.updateContext=function(){};a._function.updateContext=a._class.updateContext=function(e){e.beforeExpr&&e!==a._else&&!(e===a.semi&&this.curContext()!==b.p_stat)&&!(e===a._return&&k.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===a.colon||e===a.braceL)&&this.curContext()===b.b_stat)?this.context.push(b.f_expr):this.context.push(b.f_stat),this.exprAllowed=!1};a.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};a.backQuote.updateContext=function(){this.curContext()===b.q_tmpl?this.context.pop():this.context.push(b.q_tmpl),this.exprAllowed=!1};a.star.updateContext=function(e){if(e===a._function){var t=this.context.length-1;this.context[t]===b.f_expr?this.context[t]=b.f_expr_gen:this.context[t]=b.f_gen}this.exprAllowed=!0};a.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==a.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var d=y.prototype;d.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var s=e.key,r;switch(s.type){case"Identifier":r=s.name;break;case"Literal":r=String(s.value);break;default:return}var n=e.kind;if(this.options.ecmaVersion>=6){r==="__proto__"&&n==="init"&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),t.proto=!0);return}r="$"+r;var o=t[r];if(o){var u;n==="init"?u=this.strict&&o.init||o.get||o.set:u=o.init||o[n],u&&this.raiseRecoverable(s.start,"Redefinition of property")}else o=t[r]={init:!1,get:!1,set:!1};o[n]=!0}};d.parseExpression=function(e,t){var i=this;return this.catchStackOverflow(function(){var s=i.start,r=i.startLoc,n=i.parseMaybeAssign(e,t);if(i.type===a.comma){var o=i.startNodeAt(s,r);for(o.expressions=[n];i.eat(a.comma);)o.expressions.push(i.parseMaybeAssign(e,t));return i.finishNode(o,"SequenceExpression")}return n})};d.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var s=!1,r=-1,n=-1,o=-1;t?(r=t.parenthesizedAssign,n=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new me,s=!0);var u=this.start,h=this.startLoc;(this.type===a.parenL||this.type===a.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var f=this.parseMaybeConditional(e,t);if(i&&(f=i.call(this,f,u,h)),this.type.isAssign){var p=this.startNodeAt(u,h);return p.operator=this.value,this.type===a.eq&&(f=this.toAssignable(f,!1,t)),s||(t.parenthesizedAssign=t.trailingComma=-1,t.shorthandAssign>=f.start&&(t.shorthandAssign=-1),t.doubleProto>=f.start&&(t.doubleProto=-1)),this.type===a.eq?this.checkLValPattern(f):this.checkLValSimple(f),p.left=f,this.next(),p.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(p,"AssignmentExpression")}else s&&this.checkExpressionErrors(t,!0);return r>-1&&(t.parenthesizedAssign=r),n>-1&&(t.trailingComma=n),f};d.parseMaybeConditional=function(e,t){var i=this.start,s=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(!(r.type==="ArrowFunctionExpression"&&r.start===i)&&this.eat(a.question)){var n=this.startNodeAt(i,s);return n.test=r,n.consequent=this.parseMaybeAssign(),this.expect(a.colon),n.alternate=this.parseMaybeAssign(e),this.finishNode(n,"ConditionalExpression")}return r};d.parseExprOps=function(e,t){var i=this.start,s=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||r.start===i&&r.type==="ArrowFunctionExpression"?r:this.parseExprOp(r,i,s,-1,e)};d.parseExprOp=function(e,t,i,s,r){var n=this.type.binop;if(n!=null&&(!r||this.type!==a._in)&&n>s){var o=this.type===a.logicalOR||this.type===a.logicalAND,u=this.type===a.coalesce;u&&(n=a.logicalAND.binop);var h=this.value;this.next();var f=this.start,p=this.startLoc,g=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),f,p,n,r),C=this.buildBinary(t,i,e,g,h,o||u);return(o&&this.type===a.coalesce||u&&(this.type===a.logicalOR||this.type===a.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(C,t,i,s,r)}return e};d.buildBinary=function(e,t,i,s,r,n){s.type==="PrivateIdentifier"&&this.raise(s.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(e,t);return o.left=i,o.operator=r,o.right=s,this.finishNode(o,n?"LogicalExpression":"BinaryExpression")};d.parseMaybeUnary=function(e,t,i,s){var r=this.start,n=this.startLoc,o;if(this.isContextual("await")&&this.canAwait)o=this.parseAwait(s),t=!0;else if(this.type.prefix){var u=this.startNode(),h=this.type===a.incDec;u.operator=this.value,u.prefix=!0,this.next(),u.argument=this.parseMaybeUnary(null,!0,h,s),this.checkExpressionErrors(e,!0),h?this.checkLValSimple(u.argument):this.strict&&u.operator==="delete"&&at(u.argument)?this.raiseRecoverable(u.start,"Deleting local variable in strict mode"):u.operator==="delete"&&ke(u.argument)?this.raiseRecoverable(u.start,"Private fields can not be deleted"):t=!0,o=this.finishNode(u,h?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===a.privateId)(s||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==a._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,s),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var f=this.startNodeAt(r,n);f.operator=this.value,f.prefix=!1,f.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(f,"UpdateExpression")}}if(!i&&!(o.type==="ArrowFunctionExpression"&&o.start===r)&&this.eat(a.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(r,n,o,this.parseMaybeUnary(null,!1,!1,s),"**",!1);else return o};function at(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&at(e.expression)}function ke(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&ke(e.expression)||e.type==="ParenthesizedExpression"&&ke(e.expression)}d.parseExprSubscripts=function(e,t){var i=this.start,s=this.startLoc,r=-1,n=-1;e&&(r=e.doubleProto,n=e.shorthandAssign,e.doubleProto=e.shorthandAssign=-1);var o=this.parseExprAtom(e,t);if(o.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return o;var u=this.parseSubscripts(o,i,s,!1,t);return e&&(u.end>o.end&&(this.checkExpressionErrors(e,!0),e.parenthesizedAssign>=u.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=u.start&&(e.parenthesizedBind=-1),e.trailingComma>=u.start&&(e.trailingComma=-1)),r>-1&&(e.doubleProto=r),n>-1&&(e.shorthandAssign=n)),u};d.parseSubscripts=function(e,t,i,s,r){for(var n=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var u=this.parseSubscript(e,t,i,s,n,o,r);if(u.optional&&(o=!0),u.end===e.end||u.type==="ArrowFunctionExpression"){if(o){var h=this.startNodeAt(t,i);h.expression=u,u=this.finishNode(h,"ChainExpression")}return u}e=u,n=!1}};d.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(a.arrow)};d.parseSubscriptAsyncArrow=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,s)};d.parseSubscript=function(e,t,i,s,r,n,o){var u=this.options.ecmaVersion>=11,h=u&&this.eat(a.questionDot);s&&h&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var f=this.eat(a.bracketL);if(f||h&&this.type!==a.parenL&&this.type!==a.backQuote||this.eat(a.dot)){var p=this.startNodeAt(t,i);p.object=e,f?(p.property=this.parseExpression(),this.expect(a.bracketR)):this.type===a.privateId&&e.type!=="Super"?p.property=this.parsePrivateIdent():p.property=this.parseIdent(this.options.allowReserved!=="never"),p.computed=!!f,u&&(p.optional=h),e=this.finishNode(p,"MemberExpression")}else if(!s&&this.eat(a.parenL)){var g=new me,C=this.yieldPos,T=this.awaitPos,H=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var ne=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1,g);if(r&&!h&&this.shouldParseAsyncArrow())return this.checkPatternErrors(g,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=C,this.awaitPos=T,this.awaitIdentPos=H,this.parseSubscriptAsyncArrow(t,i,ne,o);this.checkExpressionErrors(g,!0),this.yieldPos=C||this.yieldPos,this.awaitPos=T||this.awaitPos,this.awaitIdentPos=H||this.awaitIdentPos;var z=this.startNodeAt(t,i);z.callee=e,z.arguments=ne,u&&(z.optional=h),e=this.finishNode(z,"CallExpression")}else if(this.type===a.backQuote){(h||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var K=this.startNodeAt(t,i);K.tag=e,K.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(K,"TaggedTemplateExpression")}return e};d.parseExprAtom=function(e,t,i){this.type===a.slash&&this.readRegexp();var s,r=this.potentialArrowAt===this.start;switch(this.type){case a._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type===a.parenL&&!this.allowDirectSuper&&this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==a.dot&&this.type!==a.bracketL&&this.type!==a.parenL&&this.unexpected(),this.finishNode(s,"Super");case a._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case a.name:var n=this.start,o=this.startLoc,u=this.containsEsc,h=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!u&&h.name==="async"&&!this.canInsertSemicolon()&&this.eat(a._function))return this.overrideContext(b.f_expr),this.parseFunction(this.startNodeAt(n,o),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(a.arrow))return this.parseArrowExpression(this.startNodeAt(n,o),[h],!1,t);if(this.options.ecmaVersion>=8&&h.name==="async"&&this.type===a.name&&!u&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return h=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(a.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,o),[h],!0,t)}return h;case a.regexp:var f=this.value;return s=this.parseLiteral(f.value),s.regex={pattern:f.pattern,flags:f.flags},s;case a.num:case a.string:return this.parseLiteral(this.value);case a._null:case a._true:case a._false:return s=this.startNode(),s.value=this.type===a._null?null:this.type===a._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case a.parenL:var p=this.start,g=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(g)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),g;case a.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(a.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case a.braceL:return this.overrideContext(b.b_expr),this.parseObj(!1,e);case a._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case a._class:return this.parseClass(this.startNode(),!1);case a._new:return this.parseNew();case a.backQuote:return this.parseTemplate();case a._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}};d.parseExprAtomDefault=function(){this.unexpected()};d.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===a.parenL&&!e)return this.parseDynamicImport(t);if(this.type===a.dot){var i=this.startNodeAt(t.start,t.loc&&t.loc.start);return i.name="import",t.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};d.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(a.parenR)?e.options=null:(this.expect(a.comma),this.afterTrailingComma(a.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(a.parenR)||(this.expect(a.comma),this.afterTrailingComma(a.parenR)||this.unexpected())));else if(!this.eat(a.parenR)){var t=this.start;this.eat(a.comma)&&this.eat(a.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};d.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")};d.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.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};d.parseParenExpression=function(){this.expect(a.parenL);var e=this.parseExpression();return this.expect(a.parenR),e};d.shouldParseArrow=function(e){return!this.canInsertSemicolon()};d.parseParenAndDistinguishExpression=function(e,t){var i=this.start,s=this.startLoc,r,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,u=this.startLoc,h=[],f=!0,p=!1,g=new me,C=this.yieldPos,T=this.awaitPos,H;for(this.yieldPos=0,this.awaitPos=0;this.type!==a.parenR;)if(f?f=!1:this.expect(a.comma),n&&this.afterTrailingComma(a.parenR,!0)){p=!0;break}else if(this.type===a.ellipsis){H=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else h.push(this.parseMaybeAssign(!1,g,this.parseParenItem));var ne=this.lastTokEnd,z=this.lastTokEndLoc;if(this.expect(a.parenR),e&&this.shouldParseArrow(h)&&this.eat(a.arrow))return this.checkPatternErrors(g,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=C,this.awaitPos=T,this.parseParenArrowList(i,s,h,t);(!h.length||p)&&this.unexpected(this.lastTokStart),H&&this.unexpected(H),this.checkExpressionErrors(g,!0),this.yieldPos=C||this.yieldPos,this.awaitPos=T||this.awaitPos,h.length>1?(r=this.startNodeAt(o,u),r.expressions=h,this.finishNodeAt(r,"SequenceExpression",ne,z)):r=h[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var K=this.startNodeAt(i,s);return K.expression=r,this.finishNode(K,"ParenthesizedExpression")}else return r};d.parseParenItem=function(e){return e};d.parseParenArrowList=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,s)};var Qt=[];d.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===a.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var i=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'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),e.callee.type==="Super"&&this.raiseRecoverable(s,"Invalid use of 'super'"),this.eat(a.parenL)?e.arguments=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Qt,this.finishNode(e,"NewExpression")};d.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===a.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,`
5
+ `),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
6
+ `),cooked:this.value},this.next(),i.tail=this.type===a.backQuote,this.finishNode(i,"TemplateElement")};d.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===a.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(a.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(a.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")};d.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===a.name||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===a.star)&&!k.test(this.input.slice(this.lastTokEnd,this.start))};d.parseObj=function(e,t){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(a.braceR);){if(s)s=!1;else if(this.expect(a.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(a.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,r,t),i.properties.push(n)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")};d.parseProperty=function(e,t){var i=this.startNode(),s,r,n,o;if(this.options.ecmaVersion>=9&&this.eat(a.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===a.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(n=this.start,o=this.startLoc),e||(s=this.eat(a.star)));var u=this.containsEsc;return this.parsePropertyName(i),!e&&!u&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(i)?(r=!0,s=this.options.ecmaVersion>=9&&this.eat(a.star),this.parsePropertyName(i)):r=!1,this.parsePropertyValue(i,e,s,r,n,o,t,u),this.finishNode(i,"Property")};d.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var i=e.kind==="get"?0:1;if(e.value.params.length!==i){var s=e.value.start;e.kind==="get"?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"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")};d.parsePropertyValue=function(e,t,i,s,r,n,o,u){(i||s)&&this.type===a.colon&&this.unexpected(),this.eat(a.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===a.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(i,s),e.kind="init"):!t&&!u&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==a.comma&&this.type!==a.braceR&&this.type!==a.eq?((i||s)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r),t?e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key)):this.type===a.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};d.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(a.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(a.bracketR),e.key;e.computed=!1}return e.key=this.type===a.num||this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};d.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};d.parseMethod=function(e,t,i){var s=this.startNode(),r=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Pe(t,s.generator)|de|(i?Je:0)),this.expect(a.parenL),s.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=o,this.finishNode(s,"FunctionExpression")};d.parseArrowExpression=function(e,t,i,s){var r=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(Pe(i,!1)|Ee),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")};d.parseFunctionBody=function(e,t,i,s){var r=t&&this.type!==a.braceL,n=this.strict,o=!1;if(r)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var u=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!n||u)&&(o=this.strictDirective(this.end),o&&u&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var h=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!n&&!o&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,it),e.body=this.parseBlock(!1,void 0,o&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=h}this.exitScope()};d.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1){var s=i[t];if(s.type!=="Identifier")return!1}return!0};d.checkParams=function(e,t){for(var i=Object.create(null),s=0,r=e.params;s<r.length;s+=1){var n=r[s];this.checkLValInnerPattern(n,Ne,t?null:i)}};d.parseExprList=function(e,t,i,s){for(var r=[],n=!0;!this.eat(e);){if(n)n=!1;else if(this.expect(a.comma),t&&this.afterTrailingComma(e))break;var o=void 0;i&&this.type===a.comma?o=null:this.type===a.ellipsis?(o=this.parseSpread(s),s&&this.type===a.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):o=this.parseMaybeAssign(!1,s),r.push(o)}return r};d.checkUnreserved=function(e){var t=e.start,i=e.end,s=e.name;if(this.inGenerator&&s==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&s==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&xe)&&s==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(s==="arguments"||s==="await")&&this.raise(t,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(t,"Unexpected keyword '"+s+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,i).indexOf("\\")!==-1)){var r=this.strict?this.reservedWordsStrict:this.reservedWords;r.test(s)&&(!this.inAsync&&s==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+s+"' is reserved"))}};d.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};d.parseIdentNode=function(){var e=this.startNode();return this.type===a.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=a.name):this.unexpected(),e};d.parsePrivateIdent=function(){var e=this.startNode();return this.type===a.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};d.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===a.semi||this.canInsertSemicolon()||this.type!==a.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(a.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};d.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var le=y.prototype;le.raise=function(e,t){var i=Ae(this.input,e);t+=" ("+i.line+":"+i.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var s=new SyntaxError(t);throw s.pos=e,s.loc=i,s.raisedAt=this.pos,s};le.raiseRecoverable=le.raise;le.curPosition=function(){if(this.options.locations)return new Q(this.curLine,this.pos-this.lineStart)};var U=y.prototype,Yt=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};U.enterScope=function(e){this.scopeStack.push(new Yt(e))};U.exitScope=function(){this.scopeStack.pop()};U.treatFunctionsAsVarInScope=function(e){return e.flags&G||!this.inModule&&e.flags&q};U.declareName=function(e,t,i){var s=!1;if(t===D){var r=this.currentScope();s=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&r.flags&q&&delete this.undefinedExports[e]}else if(t===tt){var n=this.currentScope();n.lexical.push(e)}else if(t===et){var o=this.currentScope();this.treatFunctionsAsVar?s=o.lexical.indexOf(e)>-1:s=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 h=this.scopeStack[u];if(h.lexical.indexOf(e)>-1&&!(h.flags&Ze&&h.lexical[0]===e)||!this.treatFunctionsAsVarInScope(h)&&h.functions.indexOf(e)>-1){s=!0;break}if(h.var.push(e),this.inModule&&h.flags&q&&delete this.undefinedExports[e],h.flags&xe)break}s&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")};U.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};U.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};U.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(xe|se|W))return t}};U.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(xe|se|W)&&!(t.flags&Ee))return t}};var ae=function(t,i,s){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new ie(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},re=y.prototype;re.startNode=function(){return new ae(this,this.start,this.startLoc)};re.startNodeAt=function(e,t){return new ae(this,e,t)};function rt(e,t,i,s){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=i),e}re.finishNode=function(e,t){return rt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};re.finishNodeAt=function(e,t,i,s){return rt.call(this,e,t,i,s)};re.copyNode=function(e){var t=new ae(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var Xt="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",nt="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",ot=nt+" Extended_Pictographic",ut=ot,ht=ut+" EBase EComp EMod EPres ExtPict",ct=ht,Zt=ct,Jt={9:nt,10:ot,11:ut,12:ht,13:ct,14:Zt},$t="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",ei={9:"",10:"",11:"",12:"",13:"",14:$t},je="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",lt="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",pt=lt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ft=pt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",dt=ft+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",xt=dt+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",ti=xt+" "+Xt,ii={9:lt,10:pt,11:ft,12:dt,13:xt,14:ti},mt={};function si(e){var t=mt[e]={binary:M(Jt[e]+" "+je),binaryOfStrings:M(ei[e]),nonBinary:{General_Category:M(je),Script:M(ii[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(oe=0,Ce=[9,10,11,12,13,14];oe<Ce.length;oe+=1)Ge=Ce[oe],si(Ge);var Ge,oe,Ce,c=y.prototype,pe=function(t,i){this.parent=t,this.base=i||this};pe.prototype.separatedFrom=function(t){for(var i=this;i;i=i.parent)for(var s=t;s;s=s.parent)if(i.base===s.base&&i!==s)return!0;return!1};pe.prototype.sibling=function(){return new pe(this.parent,this.base)};var O=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=mt[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};O.prototype.reset=function(t,i,s){var r=s.indexOf("v")!==-1,n=s.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=s,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)};O.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};O.prototype.at=function(t,i){i===void 0&&(i=!1);var s=this.source,r=s.length;if(t>=r)return-1;var n=s.charCodeAt(t);if(!(i||this.switchU)||n<=55295||n>=57344||t+1>=r)return n;var o=s.charCodeAt(t+1);return o>=56320&&o<=57343?(n<<10)+o-56613888:n};O.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var s=this.source,r=s.length;if(t>=r)return r;var n=s.charCodeAt(t),o;return!(i||this.switchU)||n<=55295||n>=57344||t+1>=r||(o=s.charCodeAt(t+1))<56320||o>57343?t+1:t+2};O.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};O.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};O.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};O.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1};O.prototype.eatChars=function(t,i){i===void 0&&(i=!1);for(var s=this.pos,r=0,n=t;r<n.length;r+=1){var o=n[r],u=this.at(s,i);if(u===-1||u!==o)return!1;s=this.nextIndex(s,i)}return this.pos=s,!0};c.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,s=!1,r=!1,n=0;n<i.length;n++){var o=i.charAt(n);t.indexOf(o)===-1&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(o,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),o==="u"&&(s=!0),o==="v"&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(e.start,"Invalid regular expression flag")};function ai(e){for(var t in e)return!0;return!1}c.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&ai(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};c.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,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,i=e.backReferenceNames;t<i.length;t+=1){var s=i[t];e.groupNames[s]||e.raise("Invalid named capture referenced")}};c.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new pe(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};c.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};c.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};c.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1};c.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};c.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};c.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return r!==-1&&r<s&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1};c.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};c.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};c.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var i=this.regexp_eatModifiers(e),s=e.eat(45);if(i||s){for(var r=0;r<i.length;r++){var n=i.charAt(r);i.indexOf(n,r+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(s){var o=this.regexp_eatModifiers(e);!i&&!o&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var u=0;u<o.length;u++){var h=o.charAt(u);(o.indexOf(h,u+1)>-1||i.indexOf(h)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};c.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=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};c.regexp_eatModifiers=function(e){for(var t="",i=0;(i=e.current())!==-1&&ri(i);)t+=B(i),e.advance();return t};function ri(e){return e===105||e===109||e===115}c.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)};c.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};c.regexp_eatSyntaxCharacter=function(e){var t=e.current();return vt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function vt(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}c.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!vt(i);)e.advance();return e.pos!==t};c.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};c.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,i=e.groupNames[e.lastStringValue];if(i)if(t)for(var s=0,r=i;s<r.length;s+=1){var n=r[s];n.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(i||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};c.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};c.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=B(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=B(e.lastIntValue);return!0}return!1};c.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),ni(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function ni(e){return L(e,!0)||e===36||e===95}c.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),oi(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function oi(e){return R(e,!0)||e===36||e===95||e===8204||e===8205}c.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)};c.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1};c.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};c.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)};c.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};c.regexp_eatZero=function(e){return e.current()===48&&!ve(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};c.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};c.regexp_eatControlLetter=function(e){var t=e.current();return gt(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function gt(e){return e>=65&&e<=90||e>=97&&e<=122}c.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(s&&r>=55296&&r<=56319){var n=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=(r-55296)*1024+(o-56320)+65536,!0}e.pos=n,e.lastIntValue=r}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&ui(e.lastIntValue))return!0;s&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function ui(e){return e>=0&&e<=1114111}c.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};c.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 bt=0,F=1,P=2;c.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(hi(t))return e.lastIntValue=-1,e.advance(),F;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=t===80)||t===112)){e.lastIntValue=-1,e.advance();var s;if(e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&s===P&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return bt};function hi(e){return e===100||e===68||e===115||e===83||e===119||e===87}c.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,s),F}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return bt};c.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){Y(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")};c.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return F;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return P;e.raise("Invalid property name")};c.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";yt(t=e.current());)e.lastStringValue+=B(t),e.advance();return e.lastStringValue!==""};function yt(e){return gt(e)||e===95}c.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";ci(t=e.current());)e.lastStringValue+=B(t),e.advance();return e.lastStringValue!==""};function ci(e){return yt(e)||ve(e)}c.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};c.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===P&&e.raise("Negated character class may contain strings"),!0}return!1};c.regexp_classContents=function(e){return e.current()===93?F:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),F)};c.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}};c.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||_t(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return s!==93?(e.lastIntValue=s,e.advance(),!0):!1};c.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)};c.regexp_classSetExpression=function(e){var t=F,i;if(!this.regexp_eatClassSetRange(e))if(i=this.regexp_eatClassSetOperand(e)){i===P&&(t=P);for(var s=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(i=this.regexp_eatClassSetOperand(e))){i!==P&&(t=F);continue}e.raise("Invalid character in character class")}if(s!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(i=this.regexp_eatClassSetOperand(e),!i)return t;i===P&&(t=P)}};c.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;return i!==-1&&s!==-1&&i>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};c.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?F:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};c.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return i&&s===P&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null};c.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null};c.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===P&&(t=P);return t};c.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?F:P};c.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 i=e.current();return i<0||i===e.lookahead()&&li(i)||pi(i)?!1:(e.advance(),e.lastIntValue=i,!0)};function li(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 pi(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}c.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return fi(t)?(e.lastIntValue=t,e.advance(),!0):!1};function fi(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}c.regexp_eatClassControlLetter=function(e){var t=e.current();return ve(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};c.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};c.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;ve(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function ve(e){return e>=48&&e<=57}c.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Ct(i=e.current());)e.lastIntValue=16*e.lastIntValue+St(i),e.advance();return e.pos!==t};function Ct(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function St(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}c.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1};c.regexp_eatOctalDigit=function(e){var t=e.current();return _t(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function _t(e){return e>=48&&e<=55}c.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var s=0;s<t;++s){var r=e.current();if(!Ct(r))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+St(r),e.advance()}return!0};var ge=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new ie(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},x=y.prototype;x.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ge(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};x.getToken=function(){return this.next(),new ge(this)};typeof Symbol<"u"&&(x[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===a.eof,value:t}}}});x.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(a.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};x.readToken=function(e){return L(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};x.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var i=this.input.charCodeAt(e+1);return i<=56319||i>=57344?t:(t<<10)+i-56613888};x.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};x.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,r=t;(s=Qe(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())};x.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!j(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,i,this.curPosition())};x.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&we.test(String.fromCharCode(e)))++this.pos;else break e}}};x.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)};x.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(a.ellipsis)):(++this.pos,this.finishToken(a.dot))};x.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(a.assign,2):this.finishOp(a.slash,1)};x.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,s=e===42?a.star:a.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,s=a.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(a.assign,i+1):this.finishOp(s,i)};x.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(a.assign,3)}return this.finishOp(e===124?a.logicalOR:a.logicalAND,2)}return t===61?this.finishOp(a.assign,2):this.finishOp(e===124?a.bitwiseOR:a.bitwiseAND,1)};x.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(a.assign,2):this.finishOp(a.bitwiseXOR,1)};x.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||k.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(a.incDec,2):t===61?this.finishOp(a.assign,2):this.finishOp(a.plusMin,1)};x.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(a.assign,i+1):this.finishOp(a.bitShift,i)):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&&(i=2),this.finishOp(a.relational,i))};x.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(a.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(a.arrow)):this.finishOp(e===61?a.eq:a.prefix,1)};x.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(a.questionDot,2)}if(t===63){if(e>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(a.assign,3)}return this.finishOp(a.coalesce,2)}}return this.finishOp(a.question,1)};x.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),L(t,!0)||t===92))return this.finishToken(a.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+B(t)+"'")};x.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(a.parenL);case 41:return++this.pos,this.finishToken(a.parenR);case 59:return++this.pos,this.finishToken(a.semi);case 44:return++this.pos,this.finishToken(a.comma);case 91:return++this.pos,this.finishToken(a.bracketL);case 93:return++this.pos,this.finishToken(a.bracketR);case 123:return++this.pos,this.finishToken(a.braceL);case 125:return++this.pos,this.finishToken(a.braceR);case 58:return++this.pos,this.finishToken(a.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(a.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(a.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+B(e)+"'")};x.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)};x.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(k.test(s)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(s==="[")t=!0;else if(s==="]"&&t)t=!1;else if(s==="/"&&!t)break;e=s==="\\"}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var n=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(n);var u=this.regexpState||(this.regexpState=new O(this));u.reset(i,r,o),this.validateRegExpFlags(u),this.validateRegExpPattern(u);var h=null;try{h=new RegExp(r,o)}catch{}return this.finishToken(a.regexp,{pattern:r,flags:o,value:h})};x.readInt=function(e,t,i){for(var s=this.options.ecmaVersion>=12&&t===void 0,r=i&&this.input.charCodeAt(this.pos)===48,n=this.pos,o=0,u=0,h=0,f=t??1/0;h<f;++h,++this.pos){var p=this.input.charCodeAt(this.pos),g=void 0;if(s&&p===95){r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),u===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),h===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),u=p;continue}if(p>=97?g=p-97+10:p>=65?g=p-65+10:p>=48&&p<=57?g=p-48:g=1/0,g>=e)break;u=p,o=o*e+g}return s&&u===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||t!=null&&this.pos-n!==t?null:o};function di(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function kt(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}x.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=kt(this.input.slice(t,this.pos)),++this.pos):L(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,i)};x.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&s===110){var r=kt(this.input.slice(t,this.pos));return++this.pos,L(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,r)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),s===46&&!i&&(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),(s===69||s===101)&&!i&&(s=this.input.charCodeAt(++this.pos),(s===43||s===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),L(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n=di(this.input.slice(t,this.pos),i);return this.finishToken(a.num,n)};x.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t};x.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;s===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(j(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(a.string,t)};var wt={};x.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===wt)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};x.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw wt;this.raise(e,t)};x.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===a.template||this.type===a.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(a.dollarBraceL)):(++this.pos,this.finishToken(a.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(a.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(j(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
7
+ `;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};x.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(a.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
8
+ `&&++this.pos;case`
9
+ `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};x.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
10
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return B(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return j(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};x.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i};x.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(R(r,s))this.pos+=r<=65535?1:2;else if(r===92){this.containsEsc=!0,e+=this.input.slice(i,this.pos);var n=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?L:R)(o,s)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=B(o),i=this.pos}else break;t=!1}return e+this.input.slice(i,this.pos)};x.readWord=function(){var e=this.readWord1(),t=a.name;return this.keywords.test(e)&&(t=fe[e]),this.finishToken(t,e)};var At="8.19.0";y.acorn={Parser:y,version:At,defaultOptions:ue,Position:Q,SourceLocation:ie,getLineInfo:Ae,Node:ae,TokenType:v,tokTypes:a,keywordTypes:fe,TokContext:E,tokContexts:b,isIdentifierChar:R,isIdentifierStart:L,Token:ge,isNewLine:j,lineBreak:k,lineBreakG:Ke,nonASCIIwhitespace:we};function xi(e,t){return y.parse(e,t)}function mi(e,t,i){return y.parseExpressionAt(e,t,i)}function vi(e,t){return y.tokenizer(e,t)}export{L as a,R as b,y as c,gi as d,bi as e,yi as f};
@@ -0,0 +1,5 @@
1
+ import { createRequire as __createRequire } from 'module'; const require = __createRequire(import.meta.url);
2
+ import{d as te}from"./chunk-6W3JS6DP.mjs";var hn=/(?:^|[{;\s])(?:color|background(?:-color|-image)?|border(?:-[a-z]+)*|opacity|filter|mix-blend-mode|text-shadow)\s*:/i;function bn(e){return hn.test(e.replace(/\/\*[\s\S]*?\*\//g,""))}function Mi(e){return[...e.matchAll(/<style\b[^>]*>([\s\S]*?)<\/style\s*>/gi)].some(([,t])=>bn(t))}function Ti(e,t){if(!e)return;if(t===!0){e.boundText=!0;return}let o=t.trim();o&&(e.text=e.text===void 0?o:`${e.text} ${o}`)}function Co(e,t=!1){let o=[];return e.text&&!t&&o.push({criterion:"1.4.3",reason:"Text contrast depends on rendered colors."}),e.elements.some(Tt)&&o.push({criterion:"2.5.8",reason:"Target size depends on rendered layout."}),o}function Tt({tag:e,attributes:t}){let o=t.get("type"),n=t.get("role");return e==="a"&&t.has("href")||["button","select","textarea","summary"].includes(e)||e==="input"&&o!=="hidden"||t.has("tabindex")||n==="button"||n==="link"}var gn=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},Fe=gn;var xn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Ho=xn;var kn=e=>Fe(Ho[e.toLowerCase()],6),Eo=kn;var vn=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,yn=e=>{let t;return(t=e.match(vn))?Fe(parseInt(t[1],16),t[1].length):void 0},Oo=yn;var _="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Ci=`(?:${_}|none)`,oe=`${_}%`,Hi=`(?:${_}%|none)`,Le=`(?:${_}%|${_})`,Mn=`(?:${_}%|${_}|none)`,Po=`(?:${_}(deg|grad|rad|turn)|${_})`,Ei=`(?:${_}(deg|grad|rad|turn)|${_}|none)`,J="\\s*,\\s*";var Oi=new RegExp("^"+Mn+"$");var Tn=new RegExp(`^rgba?\\(\\s*${_}${J}${_}${J}${_}\\s*(?:,\\s*${Le}\\s*)?\\)$`),wn=new RegExp(`^rgba?\\(\\s*${oe}${J}${oe}${J}${oe}\\s*(?:,\\s*${Le}\\s*)?\\)$`),Rn=e=>{let t={mode:"rgb"},o;if(o=e.match(Tn))o[1]!==void 0&&(t.r=o[1]/255),o[2]!==void 0&&(t.g=o[2]/255),o[3]!==void 0&&(t.b=o[3]/255);else if(o=e.match(wn))o[1]!==void 0&&(t.r=o[1]/100),o[2]!==void 0&&(t.g=o[2]/100),o[3]!==void 0&&(t.b=o[3]/100);else return;return o[4]!==void 0?t.alpha=Math.max(0,Math.min(1,o[4]/100)):o[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+o[5]))),t},No=Rn;var zn=(e,t)=>e===void 0?void 0:typeof e!="object"?Y(e):e.mode!==void 0?e:t?{...e,mode:t}:void 0,Ao=zn;var Ln=(e="rgb")=>t=>(t=Ao(t,e))!==void 0?t.mode===e?t:N[t.mode][e]?N[t.mode][e](t):e==="rgb"?N[t.mode].rgb(t):N.rgb[e](N[t.mode].rgb(t)):void 0,je=Ln;var N={},Io={},_e=[],wt={},_n=e=>e,g=e=>(N[e.mode]={...N[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{N[t]||(N[t]={}),N[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=_n)}),Io[e.mode]=e,(e.parse||[]).forEach(t=>{Sn(t,e.mode)}),je(e.mode)),qo=e=>Io[e],Sn=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");wt[e]=t}else typeof e=="function"&&_e.indexOf(e)<0&&_e.push(e)};var Rt=/[^\x00-\x7F]|[a-zA-Z_]/,$n=/[^\x00-\x7F]|[-\w]/,f={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},p=0;function Je(e){let t=e[p],o=e[p+1];return t==="-"||t==="+"?/\d/.test(o)||o==="."&&/\d/.test(e[p+2]):t==="."?/\d/.test(o):/\d/.test(t)}function zt(e){if(p>=e.length)return!1;let t=e[p];if(Rt.test(t))return!0;if(t==="-"){if(e.length-p<2)return!1;let o=e[p+1];return!!(o==="-"||Rt.test(o))}return!1}var Xn={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function Se(e){let t="";if((e[p]==="-"||e[p]==="+")&&(t+=e[p++]),t+=Ye(e),e[p]==="."&&/\d/.test(e[p+1])&&(t+=e[p++]+Ye(e)),(e[p]==="e"||e[p]==="E")&&((e[p+1]==="-"||e[p+1]==="+")&&/\d/.test(e[p+2])?t+=e[p++]+e[p++]+Ye(e):/\d/.test(e[p+1])&&(t+=e[p++]+Ye(e))),zt(e)){let o=Ue(e);return o==="deg"||o==="rad"||o==="turn"||o==="grad"?{type:f.Hue,value:t*Xn[o]}:void 0}return e[p]==="%"?(p++,{type:f.Percentage,value:+t}):{type:f.Number,value:+t}}function Ye(e){let t="";for(;/\d/.test(e[p]);)t+=e[p++];return t}function Ue(e){let t="";for(;p<e.length&&$n.test(e[p]);)t+=e[p++];return t}function Cn(e){let t=Ue(e);return e[p]==="("?(p++,{type:f.Function,value:t}):t==="none"?{type:f.None,value:void 0}:{type:f.Ident,value:t}}function Hn(e=""){let t=e.trim(),o=[],n;for(p=0;p<t.length;){if(n=t[p++],n===`
3
+ `||n===" "||n===" "){for(;p<t.length&&(t[p]===`
4
+ `||t[p]===" "||t[p]===" ");)p++;continue}if(n===",")return;if(n===")"){o.push({type:f.ParenClose});continue}if(n==="+"){if(p--,Je(t)){o.push(Se(t));continue}return}if(n==="-"){if(p--,Je(t)){o.push(Se(t));continue}if(zt(t)){o.push({type:f.Ident,value:Ue(t)});continue}return}if(n==="."){if(p--,Je(t)){o.push(Se(t));continue}return}if(n==="/"){for(;p<t.length&&(t[p]===`
5
+ `||t[p]===" "||t[p]===" ");)p++;let r;if(Je(t)&&(r=Se(t),r.type!==f.Hue)){o.push({type:f.Alpha,value:r});continue}if(zt(t)&&Ue(t)==="none"){o.push({type:f.Alpha,value:{type:f.None,value:void 0}});continue}return}if(/\d/.test(n)){p--,o.push(Se(t));continue}if(Rt.test(n)){p--,o.push(Cn(t));continue}return}return o}function En(e){e._i=0;let t=e[e._i++];if(!t||t.type!==f.Function||t.value!=="color"||(t=e[e._i++],t.type!==f.Ident))return;let o=wt[t.value];if(!o)return;let n={mode:o},r=Do(e,!1);if(!r)return;let a=qo(o).channels;for(let i=0,l,c;i<a.length;i++)l=r[i],c=a[i],l.type!==f.None&&(n[c]=l.type===f.Number?l.value:l.value/100,c==="alpha"&&(n[c]=Math.max(0,Math.min(1,n[c]))));return n}function Do(e,t){let o=[],n;for(;e._i<e.length;){if(n=e[e._i++],n.type===f.None||n.type===f.Number||n.type===f.Alpha||n.type===f.Percentage||t&&n.type===f.Hue){o.push(n);continue}if(n.type===f.ParenClose){if(e._i<e.length)return;continue}return}if(!(o.length<3||o.length>4)){if(o.length===4){if(o[3].type!==f.Alpha)return;o[3]=o[3].value}return o.length===3&&o.push({type:f.None,value:void 0}),o.every(r=>r.type!==f.Alpha)?o:void 0}}function On(e,t){e._i=0;let o=e[e._i++];if(!o||o.type!==f.Function)return;let n=Do(e,t);if(n)return n.unshift(o.value),n}var Pn=e=>{if(typeof e!="string")return;let t=Hn(e),o=t?On(t,!0):void 0,n,r=0,a=_e.length;for(;r<a;)if((n=_e[r++](e,o))!==void 0)return n;return t?En(t):void 0},Y=Pn;function Nn(e,t){if(!t||t[0]!=="rgb"&&t[0]!=="rgba")return;let o={mode:"rgb"},[,n,r,a,i]=t;if(!(n.type===f.Hue||r.type===f.Hue||a.type===f.Hue))return n.type!==f.None&&(o.r=n.type===f.Number?n.value/255:n.value/100),r.type!==f.None&&(o.g=r.type===f.Number?r.value/255:r.value/100),a.type!==f.None&&(o.b=a.type===f.Number?a.value/255:a.value/100),i.type!==f.None&&(o.alpha=Math.min(1,Math.max(0,i.type===f.Number?i.value:i.value/100))),o}var Fo=Nn;var An=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,jo=An;var Jo=(e,t,o)=>e+o*(t-e);var In=e=>{let t=[];for(let o=0;o<e.length-1;o++){let n=e[o],r=e[o+1];n===void 0&&r===void 0?t.push(void 0):n!==void 0&&r!==void 0?t.push([n,r]):t.push(n!==void 0?[n,n]:[r,r])}return t},Yo=e=>t=>{let o=In(t);return n=>{let r=n*o.length,a=n>=1?o.length-1:Math.max(Math.floor(r),0),i=o[a];return i===void 0?void 0:e(i[0],i[1],r-a)}};var s=Yo(Jo);var m=e=>{let t=!1,o=e.map(n=>n!==void 0?(t=!0,n):1);return t?o:e};var qn={mode:"rgb",channels:["r","g","b","alpha"],parse:[Fo,Oo,No,Eo,jo,"srgb"],serialize:"srgb",interpolate:{r:s,g:s,b:s,alpha:{use:s,fixup:m}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},E=qn;var Lt=(e=0)=>Math.pow(Math.abs(e),2.19921875)*Math.sign(e),Dn=e=>{let t=Lt(e.r),o=Lt(e.g),n=Lt(e.b),r={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*o+.1882286462349947*n,y:.297344975250536*t+.6273635662554661*o+.0752914584939979*n,z:.0270313613864123*t+.0706888525358272*o+.9913375368376386*n};return e.alpha!==void 0&&(r.alpha=e.alpha),r},_t=Dn;var St=e=>Math.pow(Math.abs(e),.4547069271758437)*Math.sign(e),Fn=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"a98",r:St(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*o),g:St(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*o),b:St(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*o)};return n!==void 0&&(r.alpha=n),r},$t=Fn;var Xt=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},jn=({r:e,g:t,b:o,alpha:n})=>{let r={mode:"lrgb",r:Xt(e),g:Xt(t),b:Xt(o)};return n!==void 0&&(r.alpha=n),r},O=jn;var Jn=e=>{let{r:t,g:o,b:n,alpha:r}=O(e),a={mode:"xyz65",x:.4123907992659593*t+.357584339383878*o+.1804807884018343*n,y:.2126390058715102*t+.715168678767756*o+.0721923153607337*n,z:.0193308187155918*t+.119194779794626*o+.9505321522496607*n};return r!==void 0&&(a.alpha=r),a},$=Jn;var Ct=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,.4166666666666667)-.055):e*12.92},Yn=({r:e,g:t,b:o,alpha:n},r="rgb")=>{let a={mode:r,r:Ct(e),g:Ct(t),b:Ct(o)};return n!==void 0&&(a.alpha=n),a},P=Yn;var Un=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=P({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*o,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*o,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*o});return n!==void 0&&(r.alpha=n),r},X=Un;var Wn={...E,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>$t($(e)),xyz65:$t},toMode:{rgb:e=>X(_t(e)),xyz65:_t}},Uo=Wn;var Bn=e=>(e=e%360)<0?e+360:e,k=Bn;var Gn=(e,t)=>e.map((o,n,r)=>{if(o===void 0)return o;let a=k(o);return n===0||e[n-1]===void 0?a:t(a-k(r[n-1]))}).reduce((o,n)=>!o.length||n===void 0||o[o.length-1]===void 0?(o.push(n),o):(o.push(n+o[o.length-1]),o),[]),w=e=>Gn(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t));var M=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Wo=Math.PI/180,Bo=180/Math.PI;var Go=M[3]*M[4],Zo=M[1]*M[4],Vo=M[1]*M[2]-M[0]*M[3],Zn=({r:e,g:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(Vo*o+e*Go-t*Zo)/(Vo+Go-Zo),a=o-r,i=(M[4]*(t-r)-M[2]*a)/M[3],l={mode:"cubehelix",l:r,s:r===0||r===1?void 0:Math.sqrt(a*a+i*i)/(M[4]*r*(1-r))};return l.s&&(l.h=Math.atan2(i,a)*Bo-120),n!==void 0&&(l.alpha=n),l},Ko=Zn;var Vn=({h:e,s:t,l:o,alpha:n})=>{let r={mode:"rgb"};e=(e===void 0?0:e+120)*Wo,o===void 0&&(o=0);let a=t===void 0?0:t*o*(1-o),i=Math.cos(e),l=Math.sin(e);return r.r=o+a*(M[0]*i+M[1]*l),r.g=o+a*(M[2]*i+M[3]*l),r.b=o+a*(M[4]*i+M[5]*l),n!==void 0&&(r.alpha=n),r},Qo=Vn;var U=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let o=k(e.h),n=k(t.h),r=Math.sin((n-o+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*r},er=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let o=k(e.h),n=k(t.h);return Math.abs(n-o)>180?o-(n-360*Math.sign(n-o)):n-o},W=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let o=k(e.h),n=k(t.h),r=Math.sin((n-o+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*r};var R=e=>{let t=e.reduce((n,r)=>{if(r!==void 0){let a=r*Math.PI/180;n.sin+=Math.sin(a),n.cos+=Math.cos(a)}return n},{sin:0,cos:0}),o=Math.atan2(t.sin,t.cos)*180/Math.PI;return o<0?360+o:o};var Kn={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Ko},toMode:{rgb:Qo},interpolate:{h:{use:s,fixup:w},s,l:s,alpha:{use:s,fixup:m}},difference:{h:U},average:{h:R}},tr=Kn;var Qn=({l:e,a:t,b:o,alpha:n},r="lch")=>{t===void 0&&(t=0),o===void 0&&(o=0);let a=Math.sqrt(t*t+o*o),i={mode:r,l:e,c:a};return a&&(i.h=k(Math.atan2(o,t)*180/Math.PI)),n!==void 0&&(i.alpha=n),i},C=Qn;var e0=({l:e,c:t,h:o,alpha:n},r="lab")=>{o===void 0&&(o=0);let a={mode:r,l:e,a:t?t*Math.cos(o/180*Math.PI):0,b:t?t*Math.sin(o/180*Math.PI):0};return n!==void 0&&(a.alpha=n),a},H=e0;var We=Math.pow(29,3)/Math.pow(3,3),Be=Math.pow(6,3)/Math.pow(29,3);var v={X:.9642956764295677,Y:1,Z:.8251046025104602},B={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},Bl=Math.pow(29,3)/Math.pow(3,3),Gl=Math.pow(6,3)/Math.pow(29,3);var Ht=e=>Math.pow(e,3)>Be?Math.pow(e,3):(116*e-16)/We,t0=({l:e,a:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(e+16)/116,a=t/500+r,i=r-o/200,l={mode:"xyz65",x:Ht(a)*B.X,y:Ht(r)*B.Y,z:Ht(i)*B.Z};return n!==void 0&&(l.alpha=n),l},Ge=t0;var o0=e=>X(Ge(e)),G=o0;var Et=e=>e>Be?Math.cbrt(e):(We*e+16)/116,r0=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Et(e/B.X),a=Et(t/B.Y),i=Et(o/B.Z),l={mode:"lab65",l:116*a-16,a:500*(r-a),b:200*(a-i)};return n!==void 0&&(l.alpha=n),l},Ze=r0;var n0=e=>{let t=Ze($(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Z=n0;var re=.14444444444444443*Math.PI,le=Math.cos(re),fe=Math.sin(re),Ve=100/Math.log(139/100);var a0=({l:e,c:t,h:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"lab65",l:(Math.exp(e*1/Ve)-1)/.0039},a=(Math.exp(.0435*t*1*1)-1)/.075,i=a*Math.cos(o/180*Math.PI-re),l=a*Math.sin(o/180*Math.PI-re);return r.a=i*le-l/.83*fe,r.b=i*fe+l/.83*le,n!==void 0&&(r.alpha=n),r},Xe=a0;var i0=({l:e,a:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=t*le+o*fe,a=.83*(o*le-t*fe),i=Math.sqrt(r*r+a*a),l={mode:"dlch",l:Ve/1*Math.log(1+.0039*e),c:Math.log(1+.075*i)/(.0435*1*1)};return l.c&&(l.h=k((Math.atan2(a,r)+re)/Math.PI*180)),n!==void 0&&(l.alpha=n),l},Ce=i0;var or=e=>Xe(C(e,"dlch")),rr=e=>H(Ce(e),"dlab"),l0={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:or,rgb:e=>G(or(e))},fromMode:{lab65:rr,rgb:e=>rr(Z(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:s,a:s,b:s,alpha:{use:s,fixup:m}}},nr=l0;var f0={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Xe,dlab:e=>H(e,"dlab"),rgb:e=>G(Xe(e))},fromMode:{lab65:Ce,dlab:e=>C(e,"dlch"),rgb:e=>Ce(Z(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:s,c:s,h:{use:s,fixup:w},alpha:{use:s,fixup:m}},difference:{h:W},average:{h:R}},ar=f0;function Pt({h:e,s:t,i:o,alpha:n}){e=k(e!==void 0?e:0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:o*(1+t*(3/(2-r)-1)),g:o*(1+t*(3*(1-r)/(2-r)-1)),b:o*(1-t)};break;case 1:a={r:o*(1+t*(3*(1-r)/(2-r)-1)),g:o*(1+t*(3/(2-r)-1)),b:o*(1-t)};break;case 2:a={r:o*(1-t),g:o*(1+t*(3/(2-r)-1)),b:o*(1+t*(3*(1-r)/(2-r)-1))};break;case 3:a={r:o*(1-t),g:o*(1+t*(3*(1-r)/(2-r)-1)),b:o*(1+t*(3/(2-r)-1))};break;case 4:a={r:o*(1+t*(3*(1-r)/(2-r)-1)),g:o*(1-t),b:o*(1+t*(3/(2-r)-1))};break;case 5:a={r:o*(1+t*(3/(2-r)-1)),g:o*(1-t),b:o*(1+t*(3*(1-r)/(2-r)-1))};break;default:a={r:o*(1-t),g:o*(1-t),b:o*(1-t)}}return a.mode="rgb",n!==void 0&&(a.alpha=n),a}function Nt({r:e,g:t,b:o,alpha:n}){e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.max(e,t,o),a=Math.min(e,t,o),i={mode:"hsi",s:e+t+o===0?0:1-3*a/(e+t+o),i:(e+t+o)/3};return r-a!==0&&(i.h=(r===e?(t-o)/(r-a)+(t<o)*6:r===t?(o-e)/(r-a)+2:(e-t)/(r-a)+4)*60),n!==void 0&&(i.alpha=n),i}var s0={mode:"hsi",toMode:{rgb:Pt},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:Nt},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:s,fixup:w},s,i:s,alpha:{use:s,fixup:m}},difference:{h:U},average:{h:R}},ir=s0;function At({h:e,s:t,l:o,alpha:n}){e=k(e!==void 0?e:0),t===void 0&&(t=0),o===void 0&&(o=0);let r=o+t*(o<.5?o:1-o),a=r-(r-o)*2*Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r,g:a,b:2*o-r};break;case 1:i={r:a,g:r,b:2*o-r};break;case 2:i={r:2*o-r,g:r,b:a};break;case 3:i={r:2*o-r,g:a,b:r};break;case 4:i={r:a,g:2*o-r,b:r};break;case 5:i={r,g:2*o-r,b:a};break;default:i={r:2*o-r,g:2*o-r,b:2*o-r}}return i.mode="rgb",n!==void 0&&(i.alpha=n),i}function It({r:e,g:t,b:o,alpha:n}){e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.max(e,t,o),a=Math.min(e,t,o),i={mode:"hsl",s:r===a?0:(r-a)/(1-Math.abs(r+a-1)),l:.5*(r+a)};return r-a!==0&&(i.h=(r===e?(t-o)/(r-a)+(t<o)*6:r===t?(o-e)/(r-a)+2:(e-t)/(r-a)+4)*60),n!==void 0&&(i.alpha=n),i}var c0=(e,t)=>{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},lr=c0;var d0=new RegExp(`^hsla?\\(\\s*${Po}${J}${oe}${J}${oe}\\s*(?:,\\s*${Le}\\s*)?\\)$`),u0=e=>{let t=e.match(d0);if(!t)return;let o={mode:"hsl"};return t[3]!==void 0?o.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(o.h=lr(t[1],t[2])),t[4]!==void 0&&(o.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(o.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?o.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(o.alpha=Math.max(0,Math.min(1,+t[7]))),o},fr=u0;function p0(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;let o={mode:"hsl"},[,n,r,a,i]=t;if(n.type!==f.None){if(n.type===f.Percentage)return;o.h=n.value}if(r.type!==f.None){if(r.type===f.Hue)return;o.s=r.value/100}if(a.type!==f.None){if(a.type===f.Hue)return;o.l=a.value/100}return i.type!==f.None&&(o.alpha=Math.min(1,Math.max(0,i.type===f.Number?i.value:i.value/100))),o}var sr=p0;var m0={mode:"hsl",toMode:{rgb:At},fromMode:{rgb:It},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[sr,fr],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:s,fixup:w},s,l:s,alpha:{use:s,fixup:m}},difference:{h:U},average:{h:R}},Ke=m0;function He({h:e,s:t,v:o,alpha:n}){e=k(e!==void 0?e:0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:o,g:o*(1-t*r),b:o*(1-t)};break;case 1:a={r:o*(1-t*r),g:o,b:o*(1-t)};break;case 2:a={r:o*(1-t),g:o,b:o*(1-t*r)};break;case 3:a={r:o*(1-t),g:o*(1-t*r),b:o};break;case 4:a={r:o*(1-t*r),g:o*(1-t),b:o};break;case 5:a={r:o,g:o*(1-t),b:o*(1-t*r)};break;default:a={r:o*(1-t),g:o*(1-t),b:o*(1-t)}}return a.mode="rgb",n!==void 0&&(a.alpha=n),a}function Ee({r:e,g:t,b:o,alpha:n}){e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.max(e,t,o),a=Math.min(e,t,o),i={mode:"hsv",s:r===0?0:1-a/r,v:r};return r-a!==0&&(i.h=(r===e?(t-o)/(r-a)+(t<o)*6:r===t?(o-e)/(r-a)+2:(e-t)/(r-a)+4)*60),n!==void 0&&(i.alpha=n),i}var h0={mode:"hsv",toMode:{rgb:He},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:Ee},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:s,fixup:w},s,v:s,alpha:{use:s,fixup:m}},difference:{h:U},average:{h:R}},Qe=h0;function qt({h:e,w:t,b:o,alpha:n}){if(t===void 0&&(t=0),o===void 0&&(o=0),t+o>1){let r=t+o;t/=r,o/=r}return He({h:e,s:o===1?1:1-t/(1-o),v:1-o,alpha:n})}function Dt(e){let t=Ee(e);if(t===void 0)return;let o=t.s!==void 0?t.s:0,n=t.v!==void 0?t.v:0,r={mode:"hwb",w:(1-o)*n,b:1-n};return t.h!==void 0&&(r.h=t.h),t.alpha!==void 0&&(r.alpha=t.alpha),r}function b0(e,t){if(!t||t[0]!=="hwb")return;let o={mode:"hwb"},[,n,r,a,i]=t;if(n.type!==f.None){if(n.type===f.Percentage)return;o.h=n.value}if(r.type!==f.None){if(r.type===f.Hue)return;o.w=r.value/100}if(a.type!==f.None){if(a.type===f.Hue)return;o.b=a.value/100}return i.type!==f.None&&(o.alpha=Math.min(1,Math.max(0,i.type===f.Number?i.value:i.value/100))),o}var cr=b0;var g0={mode:"hwb",toMode:{rgb:qt},fromMode:{rgb:Dt},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[cr],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:s,fixup:w},w:s,b:s,alpha:{use:s,fixup:m}},difference:{h:er},average:{h:R}},dr=g0;var se=.1593017578125,ur=78.84375,ce=.8359375,de=18.8515625,ue=18.6875;function et(e){if(e<0)return 0;let t=Math.pow(e,1/ur);return 1e4*Math.pow(Math.max(0,t-ce)/(de-ue*t),1/se)}function tt(e){if(e<0)return 0;let t=Math.pow(e/1e4,se);return Math.pow((ce+de*t)/(1+ue*t),ur)}var Ft=e=>Math.max(e/203,0),k0=({i:e,t,p:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=et(e+.008609037037932761*t+.11102962500302593*o),a=et(e-.00860903703793275*t-.11102962500302599*o),i=et(e+.5600313357106791*t-.32062717498731885*o),l={mode:"xyz65",x:Ft(2.070152218389422*r-1.3263473389671556*a+.2066510476294051*i),y:Ft(.3647385209748074*r+.680566024947227*a-.0453045459220346*i),z:Ft(-.049747207535812*r-.0492609666966138*a+1.1880659249923042*i)};return n!==void 0&&(l.alpha=n),l},jt=k0;var Jt=(e=0)=>Math.max(e*203,0),v0=({x:e,y:t,z:o,alpha:n})=>{let r=Jt(e),a=Jt(t),i=Jt(o),l=tt(.3592832590121217*r+.6976051147779502*a-.0358915932320289*i),c=tt(-.1920808463704995*r+1.1004767970374323*a+.0753748658519118*i),d=tt(.0070797844607477*r+.0748396662186366*a+.8433265453898765*i),u=.5*l+.5*c,h=1.61376953125*l-3.323486328125*c+1.709716796875*d,b=4.378173828125*l-4.24560546875*c-.132568359375*d,x={mode:"itp",i:u,t:h,p:b};return n!==void 0&&(x.alpha=n),x},Yt=v0;var y0={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:jt,rgb:e=>X(jt(e))},fromMode:{xyz65:Yt,rgb:e=>Yt($(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:s,t:s,p:s,alpha:{use:s,fixup:m}}},pr=y0;var M0=134.03437499999998,T0=16295499532821565e-27,Ut=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,se);return Math.pow((ce+de*t)/(1+ue*t),M0)},Wt=(e=0)=>Math.max(e*203,0),w0=({x:e,y:t,z:o,alpha:n})=>{e=Wt(e),t=Wt(t),o=Wt(o);let r=1.15*e-.15*o,a=.66*t+.34*e,i=Ut(.41478972*r+.579999*a+.014648*o),l=Ut(-.20151*r+1.120649*a+.0531008*o),c=Ut(-.0166008*r+.2648*a+.6684799*o),d=(i+l)/2,u={mode:"jab",j:.44*d/(1-.56*d)-T0,a:3.524*i-4.066708*l+.542708*c,b:.199076*i+1.096799*l-1.295875*c};return n!==void 0&&(u.alpha=n),u},ot=w0;var R0=134.03437499999998,mr=16295499532821565e-27,Bt=e=>{if(e<0)return 0;let t=Math.pow(e,1/R0);return 1e4*Math.pow((ce-t)/(ue*t-de),1/se)},Gt=e=>e/203,z0=({j:e,a:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(e+mr)/(.44+.56*(e+mr)),a=Bt(r+.13860504*t+.058047316*o),i=Bt(r-.13860504*t-.058047316*o),l=Bt(r-.096019242*t-.8118919*o),c={mode:"xyz65",x:Gt(1.661373024652174*a-.914523081304348*i+.23136208173913045*l),y:Gt(-.3250758611844533*a+1.571847026732543*i-.21825383453227928*l),z:Gt(-.090982811*a-.31272829*i+1.5227666*l)};return n!==void 0&&(c.alpha=n),c},rt=z0;var L0=e=>{let t=ot($(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},nt=L0;var _0=e=>X(rt(e)),at=_0;var S0={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:nt,xyz65:ot},toMode:{rgb:at,xyz65:rt},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:s,a:s,b:s,alpha:{use:s,fixup:m}}},hr=S0;var $0=({j:e,a:t,b:o,alpha:n})=>{t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.sqrt(t*t+o*o),a={mode:"jch",j:e,c:r};return r&&(a.h=k(Math.atan2(o,t)*180/Math.PI)),n!==void 0&&(a.alpha=n),a},Zt=$0;var X0=({j:e,c:t,h:o,alpha:n})=>{o===void 0&&(o=0);let r={mode:"jab",j:e,a:t?t*Math.cos(o/180*Math.PI):0,b:t?t*Math.sin(o/180*Math.PI):0};return n!==void 0&&(r.alpha=n),r},Vt=X0;var C0={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Vt,rgb:e=>at(Vt(e))},fromMode:{rgb:e=>Zt(nt(e)),jab:Zt},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:s,fixup:w},c:s,j:s,alpha:{use:s,fixup:m}},difference:{h:W},average:{h:R}},br=C0;var V=Math.pow(29,3)/Math.pow(3,3),pe=Math.pow(6,3)/Math.pow(29,3);var Kt=e=>Math.pow(e,3)>pe?Math.pow(e,3):(116*e-16)/V,H0=({l:e,a:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=(e+16)/116,a=t/500+r,i=r-o/200,l={mode:"xyz50",x:Kt(a)*v.X,y:Kt(r)*v.Y,z:Kt(i)*v.Z};return n!==void 0&&(l.alpha=n),l},me=H0;var E0=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=P({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*o,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*o,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*o});return n!==void 0&&(r.alpha=n),r},A=E0;var O0=e=>A(me(e)),it=O0;var P0=e=>{let{r:t,g:o,b:n,alpha:r}=O(e),a={mode:"xyz50",x:.436065742824811*t+.3851514688337912*o+.14307845442264197*n,y:.22249319175623702*t+.7168870538238823*o+.06061979053616537*n,z:.013923904500943465*t+.09708128566574634*o+.7140993584005155*n};return r!==void 0&&(a.alpha=r),a},I=P0;var Qt=e=>e>pe?Math.cbrt(e):(V*e+16)/116,N0=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Qt(e/v.X),a=Qt(t/v.Y),i=Qt(o/v.Z),l={mode:"lab",l:116*a-16,a:500*(r-a),b:200*(a-i)};return n!==void 0&&(l.alpha=n),l},he=N0;var A0=e=>{let t=he(I(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},lt=A0;function I0(e,t){if(!t||t[0]!=="lab")return;let o={mode:"lab"},[,n,r,a,i]=t;if(!(n.type===f.Hue||r.type===f.Hue||a.type===f.Hue))return n.type!==f.None&&(o.l=Math.min(Math.max(0,n.value),100)),r.type!==f.None&&(o.a=r.type===f.Number?r.value:r.value*125/100),a.type!==f.None&&(o.b=a.type===f.Number?a.value:a.value*125/100),i.type!==f.None&&(o.alpha=Math.min(1,Math.max(0,i.type===f.Number?i.value:i.value/100))),o}var gr=I0;var q0={mode:"lab",toMode:{xyz50:me,rgb:it},fromMode:{xyz50:he,rgb:lt},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[gr],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:s,a:s,b:s,alpha:{use:s,fixup:m}}},be=q0;var D0={...be,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Ge,rgb:G},fromMode:{xyz65:Ze,rgb:Z},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},xr=D0;function F0(e,t){if(!t||t[0]!=="lch")return;let o={mode:"lch"},[,n,r,a,i]=t;if(n.type!==f.None){if(n.type===f.Hue)return;o.l=Math.min(Math.max(0,n.value),100)}if(r.type!==f.None&&(o.c=Math.max(0,r.type===f.Number?r.value:r.value*150/100)),a.type!==f.None){if(a.type===f.Percentage)return;o.h=a.value}return i.type!==f.None&&(o.alpha=Math.min(1,Math.max(0,i.type===f.Number?i.value:i.value/100))),o}var kr=F0;var j0={mode:"lch",toMode:{lab:H,rgb:e=>it(H(e))},fromMode:{rgb:e=>C(lt(e)),lab:C},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[kr],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:s,fixup:w},c:s,l:s,alpha:{use:s,fixup:m}},difference:{h:W},average:{h:R}},ge=j0;var J0={...ge,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>H(e,"lab65"),rgb:e=>G(H(e,"lab65"))},fromMode:{rgb:e=>C(Z(e),"lch65"),lab65:e=>C(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},vr=J0;var Y0=({l:e,u:t,v:o,alpha:n})=>{t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.sqrt(t*t+o*o),a={mode:"lchuv",l:e,c:r};return r&&(a.h=k(Math.atan2(o,t)*180/Math.PI)),n!==void 0&&(a.alpha=n),a},eo=Y0;var U0=({l:e,c:t,h:o,alpha:n})=>{o===void 0&&(o=0);let r={mode:"luv",l:e,u:t?t*Math.cos(o/180*Math.PI):0,v:t?t*Math.sin(o/180*Math.PI):0};return n!==void 0&&(r.alpha=n),r},to=U0;var yr=(e,t,o)=>4*e/(e+15*t+3*o),Mr=(e,t,o)=>9*t/(e+15*t+3*o),W0=yr(v.X,v.Y,v.Z),B0=Mr(v.X,v.Y,v.Z),G0=e=>e<=pe?V*e:116*Math.cbrt(e)-16,Z0=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=G0(t/v.Y),a=yr(e,t,o),i=Mr(e,t,o);!isFinite(a)||!isFinite(i)?r=a=i=0:(a=13*r*(a-W0),i=13*r*(i-B0));let l={mode:"luv",l:r,u:a,v:i};return n!==void 0&&(l.alpha=n),l},Oe=Z0;var V0=(e,t,o)=>4*e/(e+15*t+3*o),K0=(e,t,o)=>9*t/(e+15*t+3*o),Q0=V0(v.X,v.Y,v.Z),ea=K0(v.X,v.Y,v.Z),ta=({l:e,u:t,v:o,alpha:n})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),o===void 0&&(o=0);let r=t/(13*e)+Q0,a=o/(13*e)+ea,i=v.Y*(e<=8?e/V:Math.pow((e+16)/116,3)),l=i*(9*r)/(4*a),c=i*(12-3*r-20*a)/(4*a),d={mode:"xyz50",x:l,y:i,z:c};return n!==void 0&&(d.alpha=n),d},Pe=ta;var oa=e=>eo(Oe(I(e))),ra=e=>A(Pe(to(e))),na={mode:"lchuv",toMode:{luv:to,rgb:ra},fromMode:{rgb:oa,luv:eo},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:s,fixup:w},c:s,l:s,alpha:{use:s,fixup:m}},difference:{h:W},average:{h:R}},Tr=na;var aa={...E,mode:"lrgb",toMode:{rgb:P},fromMode:{rgb:O},parse:["srgb-linear"],serialize:"srgb-linear"},wr=aa;var ia={mode:"luv",toMode:{xyz50:Pe,rgb:e=>A(Pe(e))},fromMode:{xyz50:Oe,rgb:e=>Oe(I(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:s,u:s,v:s,alpha:{use:s,fixup:m}}},Rr=ia;var la=({r:e,g:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*o),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*o),i=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*o),l={mode:"oklab",l:.210454268309314*r+.7936177747023054*a-.0040720430116193*i,a:1.9779985324311684*r-2.42859224204858*a+.450593709617411*i,b:.0259040424655478*r+.7827717124575296*a-.8086757549230774*i};return n!==void 0&&(l.alpha=n),l},ft=la;var fa=e=>{let t=ft(O(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},K=fa;var sa=({l:e,a:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=Math.pow(e+.3963377773761749*t+.2158037573099136*o,3),a=Math.pow(e-.1055613458156586*t-.0638541728258133*o,3),i=Math.pow(e-.0894841775298119*t-1.2914855480194092*o,3),l={mode:"lrgb",r:4.076741636075957*r-3.3077115392580616*a+.2309699031821044*i,g:-1.2684379732850317*r+2.6097573492876887*a-.3413193760026573*i,b:-.0041960761386756*r-.7034186179359362*a+1.7076146940746117*i};return n!==void 0&&(l.alpha=n),l},q=sa;var ca=e=>P(q(e)),Q=ca;function Ne(e){let n=1.170873786407767;return .5*(n*e-.206+Math.sqrt((n*e-.206)*(n*e-.206)+4*.03*n*e))}function ne(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function da(e,t){let o,n,r,a,i,l,c,d;-1.88170328*e-.80936493*t>1?(o=1.19086277,n=1.76576728,r=.59662641,a=.75515197,i=.56771245,l=4.0767416621,c=-3.3077115913,d=.2309699292):1.81444104*e-1.19445276*t>1?(o=.73956515,n=-.45954404,r=.08285427,a=.1254107,i=.14503204,l=-1.2684380046,c=2.6097574011,d=-.3413193965):(o=1.35733652,n=-.00915799,r=-1.1513021,a=-.50559606,i=.00692167,l=-.0041960863,c=-.7034186147,d=1.707614701);let u=o+n*e+r*t+a*e*e+i*e*t,h=.3963377774*e+.2158037573*t,b=-.1055613458*e-.0638541728*t,x=-.0894841775*e-1.291485548*t;{let y=1+u*h,z=1+u*b,T=1+u*x,S=y*y*y,L=z*z*z,j=T*T*T,ve=3*h*y*y,ye=3*b*z*z,Me=3*x*T*T,Te=6*h*h*y,we=6*b*b*z,Re=6*x*x*T,ie=l*S+c*L+d*j,ee=l*ve+c*ye+d*Me,ze=l*Te+c*we+d*Re;u=u-ie*ee/(ee*ee-.5*ie*ze)}return u}function oo(e,t){let o=da(e,t),n=q({l:1,a:o*e,b:o*t}),r=Math.cbrt(1/Math.max(n.r,n.g,n.b)),a=r*o;return[r,a]}function ua(e,t,o,n,r,a=null){a||(a=oo(e,t));let i;if((o-r)*a[1]-(a[0]-r)*n<=0)i=a[1]*r/(n*a[0]+a[1]*(r-o));else{i=a[1]*(r-1)/(n*(a[0]-1)+a[1]*(r-o));{let l=o-r,c=n,d=.3963377774*e+.2158037573*t,u=-.1055613458*e-.0638541728*t,h=-.0894841775*e-1.291485548*t,b=l+c*d,x=l+c*u,y=l+c*h;{let z=r*(1-i)+i*o,T=i*n,S=z+T*d,L=z+T*u,j=z+T*h,ve=S*S*S,ye=L*L*L,Me=j*j*j,Te=3*b*S*S,we=3*x*L*L,Re=3*y*j*j,ie=6*b*b*S,ee=6*x*x*L,ze=6*y*y*j,zo=4.0767416621*ve-3.3077115913*ye+.2309699292*Me-1,gt=4.0767416621*Te-3.3077115913*we+.2309699292*Re,un=4.0767416621*ie-3.3077115913*ee+.2309699292*ze,Lo=gt/(gt*gt-.5*zo*un),xt=-zo*Lo,_o=-1.2684380046*ve+2.6097574011*ye-.3413193965*Me-1,kt=-1.2684380046*Te+2.6097574011*we-.3413193965*Re,pn=-1.2684380046*ie+2.6097574011*ee-.3413193965*ze,So=kt/(kt*kt-.5*_o*pn),vt=-_o*So,$o=-.0041960863*ve-.7034186147*ye+1.707614701*Me-1,yt=-.0041960863*Te-.7034186147*we+1.707614701*Re,mn=-.0041960863*ie-.7034186147*ee+1.707614701*ze,Xo=yt/(yt*yt-.5*$o*mn),Mt=-$o*Xo;xt=Lo>=0?xt:1e6,vt=So>=0?vt:1e6,Mt=Xo>=0?Mt:1e6,i+=Math.min(xt,Math.min(vt,Mt))}}}return i}function Ae(e,t,o=null){o||(o=oo(e,t));let n=o[0],r=o[1];return[r/n,r/(1-n)]}function st(e,t,o){let n=oo(t,o),r=ua(t,o,e,1,e,n),a=Ae(t,o,n),i=.11516993+1/(7.4477897+4.1590124*o+t*(-2.19557347+1.75198401*o+t*(-2.13704948-10.02301043*o+t*(-4.24894561+5.38770819*o+4.69891013*t)))),l=.11239642+1/(1.6132032-.68124379*o+t*(.40370612+.90148123*o+t*(-.27087943+.6122399*o+t*(.00299215-.45399568*o-.14661872*t)))),c=r/Math.min(e*a[0],(1-e)*a[1]),d=e*i,u=(1-e)*l,h=.9*c*Math.sqrt(Math.sqrt(1/(1/(d*d*d*d)+1/(u*u*u*u))));return d=e*.4,u=(1-e)*.8,[Math.sqrt(1/(1/(d*d)+1/(u*u))),h,r]}function ct(e){let t=e.l!==void 0?e.l:0,o=e.a!==void 0?e.a:0,n=e.b!==void 0?e.b:0,r={mode:"okhsl",l:Ne(t)};e.alpha!==void 0&&(r.alpha=e.alpha);let a=Math.sqrt(o*o+n*n);if(!a)return r.s=0,r;let[i,l,c]=st(t,o/a,n/a),d;if(a<l){let u=0,h=.8*i,b=1-h/l;d=(a-u)/(h+b*(a-u))*.8}else{let u=l,h=.2*l*l*1.25*1.25/i,b=1-h/(c-l);d=.8+.2*((a-u)/(h+b*(a-u)))}return d&&(r.s=d,r.h=k(Math.atan2(n,o)*180/Math.PI)),r}function dt(e){let t=e.h!==void 0?e.h:0,o=e.s!==void 0?e.s:0,n=e.l!==void 0?e.l:0,r={mode:"oklab",l:ne(n)};if(e.alpha!==void 0&&(r.alpha=e.alpha),!o||n===1)return r.a=r.b=0,r;let a=Math.cos(t/180*Math.PI),i=Math.sin(t/180*Math.PI),[l,c,d]=st(r.l,a,i),u,h,b,x;o<.8?(u=1.25*o,h=0,b=.8*l,x=1-b/c):(u=5*(o-.8),h=c,b=.2*c*c*1.25*1.25/l,x=1-b/(d-c));let y=h+u*b/(1-x*u);return r.a=y*a,r.b=y*i,r}var pa={...Ke,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:ct,rgb:e=>ct(K(e))},toMode:{oklab:dt,rgb:e=>Q(dt(e))}},zr=pa;function ut(e){let t=e.l!==void 0?e.l:0,o=e.a!==void 0?e.a:0,n=e.b!==void 0?e.b:0,r=Math.sqrt(o*o+n*n),a=r?o/r:1,i=r?n/r:1,[l,c]=Ae(a,i),d=.5,u=1-d/l,h=c/(r+t*c),b=h*t,x=h*r,y=ne(b),z=x*y/b,T=q({l:y,a:a*z,b:i*z}),S=Math.cbrt(1/Math.max(T.r,T.g,T.b,0));t=t/S,r=r/S*Ne(t)/t,t=Ne(t);let L={mode:"okhsv",s:r?(d+c)*x/(c*d+c*u*x):0,v:t?t/b:0};return L.s&&(L.h=k(Math.atan2(n,o)*180/Math.PI)),e.alpha!==void 0&&(L.alpha=e.alpha),L}function pt(e){let t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);let o=e.h!==void 0?e.h:0,n=e.s!==void 0?e.s:0,r=e.v!==void 0?e.v:0,a=Math.cos(o/180*Math.PI),i=Math.sin(o/180*Math.PI),[l,c]=Ae(a,i),d=.5,u=1-d/l,h=1-n*d/(d+c-c*u*n),b=n*c*d/(d+c-c*u*n),x=ne(h),y=b*x/h,z=q({l:x,a:a*y,b:i*y}),T=Math.cbrt(1/Math.max(z.r,z.g,z.b,0)),S=ne(r*h),L=b*S/h;return t.l=S*T,t.a=L*a*T,t.b=L*i*T,t}var ma={...Qe,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:ut,rgb:e=>ut(K(e))},toMode:{oklab:pt,rgb:e=>Q(pt(e))}},Lr=ma;function ha(e,t){if(!t||t[0]!=="oklab")return;let o={mode:"oklab"},[,n,r,a,i]=t;if(!(n.type===f.Hue||r.type===f.Hue||a.type===f.Hue))return n.type!==f.None&&(o.l=Math.min(Math.max(0,n.type===f.Number?n.value:n.value/100),1)),r.type!==f.None&&(o.a=r.type===f.Number?r.value:r.value*.4/100),a.type!==f.None&&(o.b=a.type===f.Number?a.value:a.value*.4/100),i.type!==f.None&&(o.alpha=Math.min(1,Math.max(0,i.type===f.Number?i.value:i.value/100))),o}var _r=ha;var ba={...be,mode:"oklab",toMode:{lrgb:q,rgb:Q},fromMode:{lrgb:ft,rgb:K},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[_r],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`},Sr=ba;function ga(e,t){if(!t||t[0]!=="oklch")return;let o={mode:"oklch"},[,n,r,a,i]=t;if(n.type!==f.None){if(n.type===f.Hue)return;o.l=Math.min(Math.max(0,n.type===f.Number?n.value:n.value/100),1)}if(r.type!==f.None&&(o.c=Math.max(0,r.type===f.Number?r.value:r.value*.4/100)),a.type!==f.None){if(a.type===f.Percentage)return;o.h=a.value}return i.type!==f.None&&(o.alpha=Math.min(1,Math.max(0,i.type===f.Number?i.value:i.value/100))),o}var $r=ga;var xa={...ge,mode:"oklch",toMode:{oklab:e=>H(e,"oklab"),rgb:e=>Q(H(e,"oklab"))},fromMode:{rgb:e=>C(K(e),"oklch"),oklab:e=>C(e,"oklch")},parse:[$r],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},Xr=xa;var ka=e=>{let{r:t,g:o,b:n,alpha:r}=O(e),a={mode:"xyz65",x:.486570948648216*t+.265667693169093*o+.1982172852343625*n,y:.2289745640697487*t+.6917385218365062*o+.079286914093745*n,z:0*t+.0451133818589026*o+1.043944368900976*n};return r!==void 0&&(a.alpha=r),a},ro=ka;var va=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=P({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*o,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*o,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*o},"p3");return n!==void 0&&(r.alpha=n),r},no=va;var ya={...E,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>no($(e)),xyz65:no},toMode:{rgb:e=>X(ro(e)),xyz65:ro}},Cr=ya;var ao=e=>{let t=Math.abs(e);return t>=.001953125?Math.sign(e)*Math.pow(t,.5555555555555556):16*e},Ma=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"prophoto",r:ao(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*o),g:ao(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*o),b:ao(e*0+t*0+1.2119675456389452*o)};return n!==void 0&&(r.alpha=n),r},io=Ma;var lo=(e=0)=>{let t=Math.abs(e);return t>=.03125?Math.sign(e)*Math.pow(t,1.8):e/16},Ta=e=>{let t=lo(e.r),o=lo(e.g),n=lo(e.b),r={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*o+.0313477341283922*n,y:.2880748288194013*t+.7118352342418731*o+899369387256e-16*n,z:0*t+0*o+.8251046025104602*n};return e.alpha!==void 0&&(r.alpha=e.alpha),r},fo=Ta;var wa={...E,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:io,rgb:e=>io(I(e))},toMode:{xyz50:fo,rgb:e=>A(fo(e))}},Hr=wa;var Er=1.09929682680944,Ra=.018053968510807,so=e=>{let t=Math.abs(e);return t>Ra?(Math.sign(e)||1)*(Er*Math.pow(t,.45)-(Er-1)):4.5*e},za=({x:e,y:t,z:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"rec2020",r:so(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*o),g:so(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*o),b:so(e*.0176398574453108-t*.0427706132578085+.9421031212354739*o)};return n!==void 0&&(r.alpha=n),r},co=za;var Or=1.09929682680944,La=.018053968510807,uo=(e=0)=>{let t=Math.abs(e);return t<La*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((t+Or-1)/Or,1/.45)},_a=e=>{let t=uo(e.r),o=uo(e.g),n=uo(e.b),r={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*o+.1688809751641721*n,y:.262700212011267*t+.6779980715188708*o+.059301716469862*n,z:0*t+.0280726930490874*o+1.0609850577107909*n};return e.alpha!==void 0&&(r.alpha=e.alpha),r},po=_a;var Sa={...E,mode:"rec2020",fromMode:{xyz65:co,rgb:e=>co($(e))},toMode:{xyz65:po,rgb:e=>X(po(e))},parse:["rec2020"],serialize:"rec2020"},Pr=Sa;var D=.0037930732552754493,mt=Math.cbrt(D);var mo=e=>Math.cbrt(e)-mt,$a=e=>{let{r:t,g:o,b:n,alpha:r}=O(e),a=mo(.3*t+.622*o+.078*n+D),i=mo(.23*t+.692*o+.078*n+D),l=mo(.2434226892454782*t+.2047674442449682*o+.5518098665095535*n+D),c={mode:"xyb",x:(a-i)/2,y:(a+i)/2,b:l-(a+i)/2};return r!==void 0&&(c.alpha=r),c},Nr=$a;var ho=e=>Math.pow(e+mt,3),Xa=({x:e,y:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r=ho(e+t)-D,a=ho(t-e)-D,i=ho(o+t)-D,l=P({r:11.031566904639861*r-9.866943908131562*a-.16462299650829934*i,g:-3.2541473810744237*r+4.418770377582723*a-.16462299650829934*i,b:-3.6588512867136815*r+2.7129230459360922*a+1.9459282407775895*i});return n!==void 0&&(l.alpha=n),l},Ar=Xa;var Ca={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Ar},fromMode:{rgb:Nr},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:s,y:s,b:s,alpha:{use:s,fixup:m}}},Ir=Ca;var Ha={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:A,lab:he},fromMode:{rgb:I,lab:me},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:s,y:s,z:s,alpha:{use:s,fixup:m}}},qr=Ha;var Ea=e=>{let{x:t,y:o,z:n,alpha:r}=e;t===void 0&&(t=0),o===void 0&&(o=0),n===void 0&&(n=0);let a={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*o-.0501922295431356*n,y:.0296278156881593*t+.990434484573249*o-.0170738250293851*n,z:-.0092430581525912*t+.0150551448965779*o+.7518742899580008*n};return r!==void 0&&(a.alpha=r),a},Dr=Ea;var Oa=e=>{let{x:t,y:o,z:n,alpha:r}=e;t===void 0&&(t=0),o===void 0&&(o=0),n===void 0&&(n=0);let a={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*o+.0632593086610217*n,y:-.0283697069632081*t+1.0099954580058226*o+.021041398966943*n,z:.0123140016883199*t-.0205076964334779*o+1.3303659366080753*n};return r!==void 0&&(a.alpha=r),a},Fr=Oa;var Pa={mode:"xyz65",toMode:{rgb:X,xyz50:Dr},fromMode:{rgb:$,xyz50:Fr},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:s,y:s,z:s,alpha:{use:s,fixup:m}}},jr=Pa;var Na=({r:e,g:t,b:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*o,i:.59597799*e-.2741761*t-.32180189*o,q:.21147017*e-.52261711*t+.31114694*o};return n!==void 0&&(r.alpha=n),r},Jr=Na;var Aa=({y:e,i:t,q:o,alpha:n})=>{e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=0);let r={mode:"rgb",r:e+.95608445*t+.6208885*o,g:e-.27137664*t-.6486059*o,b:e-1.10561724*t+1.70250126*o};return n!==void 0&&(r.alpha=n),r},Yr=Aa;var Ia={mode:"yiq",toMode:{rgb:Yr},fromMode:{rgb:Jr},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:s,i:s,q:s,alpha:{use:s,fixup:m}}},Ur=Ia;function bo(e){let t=je("lrgb")(e);return .2126*t.r+.7152*t.g+.0722*t.b}function Ie(e,t){let o=bo(e),n=bo(t);return(Math.max(o,n)+.05)/(Math.min(o,n)+.05)}var D1=g(Uo),F1=g(tr),j1=g(nr),J1=g(ar),Y1=g(ir),U1=g(Ke),W1=g(Qe),B1=g(dr),G1=g(pr),Z1=g(hr),V1=g(br),K1=g(be),Q1=g(xr),em=g(ge),tm=g(vr),om=g(Tr),rm=g(wr),nm=g(Rr),am=g(zr),im=g(Lr),lm=g(Sr),fm=g(Xr),sm=g(Cr),cm=g(Hr),dm=g(Pr),Wr=g(E),um=g(Ir),pm=g(qr),mm=g(jr),hm=g(Ur);var go={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 none)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 none)",100:"oklch(97% 0 none)",200:"oklch(92.2% 0 none)",300:"oklch(87% 0 none)",400:"oklch(70.8% 0 none)",500:"oklch(55.6% 0 none)",600:"oklch(43.9% 0 none)",700:"oklch(37.1% 0 none)",800:"oklch(26.9% 0 none)",900:"oklch(20.5% 0 none)",950:"oklch(14.5% 0 none)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},mauve:{50:"oklch(98.5% 0 none)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};var tn="allyward/",xo=4.5,ko=3,ht=3,qa=24,Da=56/3,on=16;function rn(e){let t=new To(e),o=[],n=new Map,r=!0,a=!1;for(let l of e.elements){let c=ja(l,t);if("finding"in c?o.push(c.finding):"uncertain"in c&&n.set(c.uncertain,(n.get(c.uncertain)??0)+1),(l.text!==void 0||l.boundText)&&(a=!0),!Ya(l)||t.inapplicable(l))continue;let d=Fa(l,t);"finding"in d?o.push(d.finding):"uncertain"in d?(r=!1,n.set(d.uncertain,(n.get(d.uncertain)??0)+1)):"unknown"in d&&(r=!1)}let i=[...n].map(([l,c])=>({criterion:l.startsWith(xe)?"1.4.11":"1.4.3",reason:`${c===1?"One element":`${c} elements`}: ${l.replace(xe,"")}`}));return{findings:o,needsReview:i,allTextDecided:r&&(a||!e.text)}}var xe="non-text:";function Fa(e,t){if(!t.colorsDeclared(e))return{unknown:!0};if(t.content.stylesheetColors)return{uncertain:`text contrast is uncertain: ${nn}.`};let o=t.effect(e),n=t.inherited(e,"color"),r=t.background(e);if("unknown"in n&&"unknown"in r)return{unknown:!0};if(o)return{uncertain:`text contrast is uncertain: ${o} changes the rendered colors.`};if("uncertain"in n)return{uncertain:`text contrast is uncertain: ${n.uncertain}.`};if("uncertain"in r)return{uncertain:`text contrast is uncertain: ${r.uncertain}.`};if("unknown"in n)return{uncertain:"text contrast is uncertain: the text color is not set in this file."};if("unknown"in r)return{uncertain:"text contrast is uncertain: the background color is not set in this file."};let a=Ie(n.value,r.value);if(a===1||a>=xo)return{pass:!0};let i=t.isLargeText(e);if(a>=ko&&i===void 0)return{uncertain:`text contrast of ${ke(a)}:1 passes only as large text, and the font size is not known.`};let l=i?ko:xo;if(a>=l)return{pass:!0};let c=i===void 0?"":i?"large ":"normal-size ";return{finding:{range:e.range,criteria:["1.4.3"],ruleId:`${tn}text-contrast`,layer:"check",severity:"warning",message:`Text contrast is ${ke(a)}:1, below the required ${l}:1`,explanation:`The ${c}text color ${De(n.value)} on the background ${De(r.value)} has a contrast ratio of ${ke(a)}:1; WCAG 1.4.3 requires ${l}:1 (${xo}:1 for normal text, ${ko}:1 for text of at least 24 px, or 18.66 px bold). Darken the text or lighten the background, or the other way round.`,helpUrl:te("1.4.3")}}}function ja(e,t){if(!Ja(e)||t.inapplicable(e))return{none:!0};let o=t.declared(e);if(!o.border||!o.borderColor)return{none:!0};let n=e.parent?t.background(e.parent):t.rootBackground(),r=o.background===void 0?t.fieldBackground():o.background==="transparent"?n:o.background,a=t.effect(e),i=[o.borderColor,n,r];if(i.some(y=>"unknown"in y))return{none:!0};if(t.content.stylesheetColors)return{uncertain:`${xe}the field's boundary contrast is uncertain: ${nn}.`};let l=t.unknownClass(e);if(l)return{uncertain:`${xe}the field's boundary contrast is uncertain: ${l}.`};if(a)return{uncertain:`${xe}the field's boundary contrast is uncertain: ${a} changes the rendered colors.`};let c=i.find(y=>"uncertain"in y);if(c)return{uncertain:`${xe}the field's boundary contrast is uncertain: ${c.uncertain}.`};let[d,u,h]=i,b=Ie(d.value,u.value),x=Ie(h.value,u.value);return b>=ht||x>=ht?{pass:!0}:{finding:{range:e.range,criteria:["1.4.11"],ruleId:`${tn}non-text-contrast`,layer:"check",severity:"warning",message:`Field boundary contrast is ${ke(Math.max(b,x))}:1, below the required ${ht}:1`,explanation:`The border ${De(d.value)} has a contrast ratio of ${ke(b)}:1 and the field's background ${De(h.value)} ${ke(x)}:1 against the surrounding ${De(u.value)}; WCAG 1.4.11 requires ${ht}:1 for at least one of them, so the field can be found. Darken the border.`,helpUrl:te("1.4.11")}}}var nn="a <style> block or component styles in this file set colors";function Ja({tag:e,attributes:t}){let o=t.get("type");return e==="textarea"||e==="select"||e==="input"&&(o===void 0||["text","email","password","search","tel","url","number"].includes(String(o).toLowerCase()))}function Ya(e){return e.boundText===!0||(e.text?.match(new RegExp("\\p{L}","gu"))?.length??0)>=2}function ke(e){return(Math.floor(e*100)/100).toFixed(2)}function De({r:e,g:t,b:o}){return"#"+[e,t,o].map(n=>Math.round(n*255).toString(16).padStart(2,"0")).join("")}var Br={h1:32,h2:24,h3:18.72,h4:16,h5:13.28,h6:10.72,small:13.33,button:13.33,input:13.33,select:13.33,textarea:13.33},Ua=new Set(["h1","h2","h3","h4","h5","h6","b","strong","th"]),Wa=an("#0000ee"),Ba={mode:"rgb",r:0,g:0,b:0},Gr={mode:"rgb",r:1,g:1,b:1},Ga=new Set(["a","button","input","select","textarea","mark","option","legend"]),Za=new Set(["button","input","select","textarea","mark"]),To=class{constructor(t){this.content=t;this.cache=new Map;this.disabledLabels=new Set;for(let o of t.elements){if(!vo(o))continue;let n=o.attributes.get("aria-labelledby");typeof n=="string"&&n.split(/\s+/).forEach(a=>this.disabledLabels.add(a));let r=o.attributes.get("id");typeof r=="string"&&this.disabledLabels.add(`for:${r}`)}}declared(t){let o=this.cache.get(t);return o||(o={...ai(this.content.userAgentStylesOnly?"":Qa(t)),...ei(t)},this.cache.set(t,o)),o}inapplicable(t){for(let o of F(t)){if(Va.has(o.tag)||this.declared(o).hidden||o.attributes.has("hidden")||bt(o,"aria-hidden")==="true"||vo(o)||o.tag==="label"&&(this.disabledLabels.has(`for:${bt(o,"for")??""}`)||this.content.elements.some(r=>r.parent===o&&vo(r))))return!0;let n=bt(o,"id");if(n&&this.disabledLabels.has(n))return!0}return!1}colorsDeclared(t){return this.content.userAgentStylesOnly?!0:F(t).some(o=>{let{color:n,background:r}=this.declared(o);return n!==void 0||r!==void 0})}effect(t){for(let o of F(t)){let n=this.declared(o).effect;if(n)return n}}inherited(t,o){for(let n of F(t)){let r=this.opaque(n,t);if(r)return r;let a=this.declared(n)[o];if(a==="transparent")return{uncertain:"the text color is transparent"};if(a)return a;if(Ga.has(n.tag))return n.tag==="a"&&this.content.userAgentStylesOnly&&n.attributes.has("href")?{value:Wa}:{uncertain:`the browser's own text color of <${n.tag}> applies`}}return this.content.userAgentStylesOnly?{value:Ba}:{unknown:!0}}background(t){for(let o of F(t)){let n=this.opaque(o,t);if(n)return n;let r=this.declared(o).background;if(r&&r!=="transparent")return r;if(r===void 0&&Za.has(o.tag))return{uncertain:`the browser's own background of <${o.tag}> applies`}}return this.rootBackground()}unknownClass(t){let o=this.content.userAgentStylesOnly?void 0:this.declared(t).unknownClass;return o===void 0?void 0:`class ${o} may set colors`}rootBackground(){return this.content.userAgentStylesOnly?{value:Gr}:{unknown:!0}}fieldBackground(){return this.content.userAgentStylesOnly?{value:Gr}:{unknown:!0}}isLargeText(t){let o=this.fontSize(t);if(o!==void 0)return o>=qa?!0:o<Da-.01?!1:this.bold(t)}fontSize(t){for(let o of F(t)){let n=this.declared(o).fontSizePx;if(n==="relative")return;if(n!==void 0)return n;if(Br[o.tag]!==void 0)return this.content.userAgentStylesOnly&&!F(o).slice(1).some(r=>this.declared(r).fontSizePx!==void 0)?Br[o.tag]:void 0}return this.content.userAgentStylesOnly?on:void 0}bold(t){for(let o of F(t)){let n=this.declared(o).bold;if(n!==void 0)return n;if(Ua.has(o.tag))return this.content.userAgentStylesOnly?!0:void 0}return this.content.userAgentStylesOnly?!1:void 0}opaque(t,o){if(t.boundStyle||["class","classname","style"].some(r=>t.attributes.get(r)===!0))return{uncertain:`<${t.component??t.tag}> binds its class or style to an expression`};if(t!==o&&Zr(t))return this.anyDeclared(o,t)?{uncertain:`it is inside the component <${t.component??t.tag}>, whose styles are not known`}:{unknown:!0};if(t===o&&Zr(t))return{unknown:!0};let n=this.unknownClass(t);return n?{uncertain:n}:void 0}anyDeclared(t,o){for(let n of F(t)){if(n===o)return!1;let{color:r,background:a}=this.declared(n);if(r||a)return!0}return!1}};function F(e){let t=[];for(let o=e;o;o=o.parent)t.push(o);return t}function Zr({tag:e,component:t}){return t!==void 0||e===""||/^[A-Z]/.test(e)||/[.:-]/.test(e)}var Va=new Set(["head","title","script","style","template","noscript","svg"]),Ka=new Set(["button","input","select","textarea","fieldset","optgroup","option"]);function vo(e){return Ka.has(e.tag)&&e.attributes.has("disabled")||bt(e,"aria-disabled")==="true"}function bt(e,t){let o=e.attributes.get(t);return typeof o=="string"?o.trim().toLowerCase():void 0}function Qa(e){let t=e.attributes.get("class")??e.attributes.get("classname");return typeof t=="string"?t:""}function an(e){let t=Y(e);if(!t)return;let{r:o,g:n,b:r}=Wr(t);return{mode:"rgb",r:yo(o),g:yo(n),b:yo(r)}}function yo(e){return Math.min(1,Math.max(0,e||0))}function qe(e){let t=e.trim().toLowerCase().replace(/\s*!important$/,"");if(t==="transparent")return"transparent";if(t.includes("var("))return{uncertain:`the color ${e.trim()} is a CSS variable`};if(["currentcolor","inherit","initial","unset","revert","revert-layer"].includes(t))return{uncertain:`the color is ${t}`};let o=Y(t);return o?o.alpha!==void 0&&o.alpha<1?{uncertain:`the color ${e.trim()} is semi-transparent`}:{value:an(t)}:{uncertain:`the color ${e.trim()} is not a literal color`}}function ln(e){let t=/^(\d*\.?\d+)(px|pt|rem)$/.exec(e.trim().toLowerCase());return t?Number(t[1])*(t[2]==="pt"?4/3:t[2]==="rem"?on:1):"relative"}function ei(e){let t=e.attributes.get("style"),o={};if(typeof t!="string")return o;for(let n of t.split(";")){let r=n.indexOf(":");if(r===-1)continue;let a=n.slice(0,r).trim().toLowerCase(),i=n.slice(r+1).trim(),l=i.toLowerCase();switch(a){case"color":o.color=qe(i);break;case"background-color":o.background=qe(i);break;case"background":o.background=/url\(|gradient\(/.test(l)?{uncertain:"the background is an image or gradient"}:qe(i);break;case"background-image":l!=="none"&&(o.background={uncertain:"the background is an image or gradient"});break;case"opacity":(Number.parseFloat(i)<1||i.endsWith("%"))&&(o.effect=`opacity ${i}`);break;case"filter":case"backdrop-filter":case"mix-blend-mode":case"text-shadow":l!=="none"&&l!=="normal"&&(o.effect=a);break;case"display":l==="none"&&(o.hidden=!0);break;case"visibility":(l==="hidden"||l==="collapse")&&(o.hidden=!0);break;case"top":case"left":case"right":case"bottom":l.startsWith("-")&&/position\s*:\s*(absolute|fixed)/i.test(t)&&(o.hidden=!0);break;case"font-size":o.fontSizePx=ln(i);break;case"font-weight":o.bold=l==="bold"||l==="bolder"||Number(l)>=700;break;case"border":case"border-width":case"border-color":{let c=l.split(/\s+/);a!=="border-color"&&(o.border=!c.some(u=>["none","hidden","0","0px"].includes(u)));let d=a==="border-color"?l:c.find(u=>!/^(\d|solid|dashed|dotted|double|groove|ridge|inset|outset|none|hidden|thin|medium|thick)/.test(u));if(d){let u=qe(d);o.borderColor=u==="transparent"?{uncertain:"the border is transparent"}:u}break}}}return o}var Vr={xs:12,sm:14,base:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":60,"7xl":72,"8xl":96,"9xl":128},Kr={thin:!1,extralight:!1,light:!1,normal:!1,medium:!1,semibold:!1,bold:!0,extrabold:!0,black:!0},Qr=go,ti=new Set(["left","center","right","justify","start","end","ellipsis","clip","wrap","nowrap","balance","pretty"]),oi=/^(fixed|local|scroll|auto|cover|contain|none|repeat(-x|-y|-round|-space)?|no-repeat|(left|right|top|bottom|center)(-(top|bottom|left|right))?|(clip|origin)-(border|padding|content)|blend-.+|size-.+|position-.+|\[length:.+\]|\[position:.+\]|\[size:.+\])$/,ri=new Set(["block","inline","inline-block","flex","inline-flex","grid","inline-grid","flow-root","contents","table","inline-table","list-item","static","fixed","absolute","relative","sticky","visible","collapse","isolate","container","truncate","italic","not-italic","underline","overline","line-through","no-underline","uppercase","lowercase","capitalize","normal-case","antialiased","subpixel-antialiased","not-sr-only","ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions","normal-nums","group","peer","transform","transition"]),en=new Set(["p","px","py","pt","pr","pb","pl","ps","pe","m","mx","my","mt","mr","mb","ml","ms","me","space-x","space-y","gap","gap-x","gap-y","w","h","min-w","min-h","max-w","max-h","size","inset","inset-x","inset-y","top","right","bottom","left","start","end","z","order","col","row","basis","flex","grow","shrink","grid","grid-cols","grid-rows","auto-cols","auto-rows","justify","items","content","self","place","rounded","border","divide","shadow","inset-shadow","ring","inset-ring","outline","font","leading","tracking","decoration","underline-offset","indent","align","whitespace","break","hyphens","list","line-clamp","aspect","columns","object","overflow","overscroll","cursor","select","pointer-events","resize","scroll","snap","touch","will-change","transition","duration","ease","delay","animate","scale","rotate","translate","skew","origin","transform","perspective","backface","fill","stroke","accent","caret","appearance","box","box-decoration","float","clear","isolation","table","border-spacing","caption","wrap","field-sizing","tab","zoom","from","via","to","display","forced-color-adjust","mask","text-shadow","drop-shadow","outline-offset","ring-offset","opacity"]);function ni(e){let t=e.replace(/^-/,"");if(ri.has(t)||en.has(t))return!0;let o=/^\[([a-z-]+):.+\]$/.exec(t)?.[1];if(o)return!/color|background|opacity|filter|shadow|blend|scheme/.test(o);for(let n=t.lastIndexOf("-");n>0;n=t.lastIndexOf("-",n-1))if(en.has(t.slice(0,n)))return!0;return!1}function Mo(e){if(e==="transparent")return"transparent";if(e==="inherit"||e==="current")return{uncertain:`the color is ${e}`};let[t,o]=e.split("/"),n,r=/^\[(.+)\]$/.exec(t)?.[1];if(r){if(r.startsWith("var(")||r.startsWith("--"))return{uncertain:`the color ${t} is a CSS variable`};if(n=r.replace(/^color:/,"").replace(/_/g," "),!Y(n))return}else{let a=t.lastIndexOf("-"),i=a===-1?Qr[t]:Qr[t.slice(0,a)];if(n=typeof i=="string"?i:a===-1?void 0:i?.[t.slice(a+1)],n===void 0||["inherit","currentcolor","transparent"].includes(n.toLowerCase()))return}return o!==void 0&&o!=="100"?{uncertain:`the color ${e} is semi-transparent`}:qe(n)}function ai(e){let t={},o=n=>{t.unknownClass??=n};for(let n of e.split(/\s+/)){let r=n.replace(/^!|!$/g,"");if(!(!r||/^[^[]*:/.test(r)))if(r==="hidden"||r==="invisible"||r==="sr-only")t.hidden=!0;else if(/^opacity-(\d+)$/.test(r)&&r!=="opacity-100")t.effect=r;else if(/^(text-shadow|drop-shadow|mix-blend|blur|brightness|contrast|grayscale|invert|sepia|saturate|hue-rotate|filter|backdrop)(-|$)/.test(r))t.effect=r;else if(/^(bg-opacity|text-opacity)-/.test(r))t.effect=r;else if(/^bg-(gradient|linear|radial|conic|\[url)/.test(r)||/^bg-\[(url|linear-gradient|radial-gradient)/.test(r))t.background={uncertain:"the background is an image or gradient"};else if(r.startsWith("text-")){let a=r.slice(5),i=/^\[(.+)\]$/.exec(a)?.[1];if(Vr[a.split("/")[0]]!==void 0)t.fontSizePx=Vr[a.split("/")[0]];else if(i&&!Y(i.replace(/_/g," ")))t.fontSizePx=ln(i);else{let l=Mo(a);l?t.color=l:ti.has(a)||o(r)}}else if(r.startsWith("bg-")){let a=r.slice(3),i=Mo(a);i?t.background=i:a==="clip-text"?t.effect=r:oi.test(a)||o(r)}else if(r.startsWith("font-")&&Kr[r.slice(5)]!==void 0)t.bold=Kr[r.slice(5)];else if(/^border(-[0-9]+)?$/.test(r))t.border=r!=="border-0";else if(r.startsWith("border-")){let a=Mo(r.slice(7));a&&(t.borderColor=a==="transparent"?{uncertain:"the border is transparent"}:a)}else ni(r)||o(r)}return t}var fn=["alt-text","anchor-has-content","aria-activedescendant-has-tabindex","click-events-have-key-events","heading-has-content","html-has-lang","iframe-has-title","interactive-supports-focus","label-has-associated-control","media-has-caption","mouse-events-have-key-events","no-aria-hidden-on-focusable","no-noninteractive-element-interactions","no-static-element-interactions","role-has-required-aria-props","role-supports-aria-props"],ii=["a11y_aria_activedescendant_has_tabindex","a11y_click_events_have_key_events","a11y_consider_explicit_label","a11y_interactive_supports_focus","a11y_label_has_associated_control","a11y_media_has_caption","a11y_missing_attribute","a11y_missing_content","a11y_mouse_events_have_key_events","a11y_no_noninteractive_element_interactions","a11y_no_static_element_interactions","a11y_role_has_required_aria_props","a11y_role_supports_aria_props","a11y_role_supports_aria_props_implicit"],li=["alt-text","anchor-has-content","click-events-have-key-events","form-control-has-label","heading-has-content","iframe-has-title","interactive-supports-focus","label-has-for","media-has-caption","mouse-events-have-key-events","no-aria-hidden-on-focusable","no-role-presentation-on-focusable","no-static-element-interactions","role-has-required-aria-props"],fi=new Set([...fn.map(e=>`jsx-a11y-x/${e}`),...fn.map(e=>`astro/jsx-a11y/${e}`),...ii.map(e=>`svelte/${e}`),...li.map(e=>`vuejs-accessibility/${e}`),"allyward/button-name"]);function sn(e,t){if(!t.some(r=>r.open))return{findings:e,needsReview:[]};let o=[],n=[];for(let r of e){let a=fi.has(r.ruleId)?si(t,r.range.start):void 0;if(!a?.open){o.push(r);continue}for(let i of r.criteria)n.push({criterion:i,reason:`Open element (<${a.tag}> has unknown attributes): verify ${r.message}`,range:a.range})}return{findings:o,needsReview:n}}function si(e,t){let o;for(let n of e)n.range.start<=t&&t<n.range.end&&(!o||n.range.end-n.range.start<o.range.end-o.range.start)&&(o=n);return o}var Ro="allyward/";function Hm(e,t,o={}){let n=t.elements.flatMap(i=>[...ci(i),...o.inputPurpose?hi(i):[]]),r=rn(t),a=sn([...e,...n,...r.findings],t.elements);return{findings:a.findings,needsReview:[...Co(t,r.allTextDecided),...r.needsReview,...t.elements.flatMap(xi),...a.needsReview]}}function Em(e){return{range:e,criteria:["4.1.2"],ruleId:`${Ro}button-name`,layer:"check",severity:"warning",message:"Buttons must have discernible text",explanation:'A button without visible text or an accessible name (such as aria-label or aria-labelledby) is announced as just "button" by screen readers.',helpUrl:te("4.1.2")}}var ae=(e,t)=>{let o=e.attributes.get(t);return typeof o=="string"?o.trim().toLowerCase():void 0};function ci(e){return e.tag!=="input"||ae(e,"type")!=="password"||ae(e,"autocomplete")!=="off"?[]:[{range:e.range,criteria:["3.3.8"],ruleId:`${Ro}password-autocomplete`,layer:"check",severity:"warning",message:"Password field turns off autocomplete, which keeps password managers from filling it",explanation:'Logging in must not depend on remembering or transcribing a password. Use autocomplete="current-password" on a login form or autocomplete="new-password" when the password is chosen, so password managers can fill it.',helpUrl:te("3.3.8")}]}var di=new Set(["name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","username","new-password","current-password","one-time-code","organization-title","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo"]),cn=new Set(["tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]),ui=new Set(["home","work","mobile","fax","pager"]),pi=new Set(["hidden","button","checkbox","file","image","radio","reset","submit"]);function mi(e){if(e==="on"||e==="off")return!0;let t=e.split(/\s+/);return t[0]?.startsWith("section-")&&t.shift(),(t[0]==="shipping"||t[0]==="billing")&&t.shift(),t[t.length-1]==="webauthn"&&t.pop(),t.length===2&&ui.has(t[0])?cn.has(t[1]):t.length===1&&(di.has(t[0])||cn.has(t[0]))}function hi(e){let t=ae(e,"autocomplete"),o=e.attributes.get("type");return!["input","select","textarea"].includes(e.tag)||!t||o===!0?[]:e.tag==="input"&&pi.has(ae(e,"type")??"")?[]:mi(t)?[]:[{range:e.range,criteria:["1.3.5"],ruleId:`${Ro}autocomplete-valid`,layer:"check",severity:"warning",message:`autocomplete="${t}" is not a valid autofill value, so browsers and assistive technology cannot tell the field's purpose`,explanation:'Use the autofill tokens of the HTML standard, such as autocomplete="email" or "shipping postal-code", so the purpose of a field that collects information about the user can be identified.',helpUrl:te("1.3.5")}]}var wo=24,bi=4,gi=16;function xi(e){if(!Tt(e))return[];let{width:t,height:o}=ki(e);if(![t,o].some(a=>a!==void 0&&a<wo))return[];let r=t!==void 0&&o!==void 0?`a ${t}\xD7${o} CSS px target`:t!==void 0?`a width of ${t} CSS px`:`a height of ${o} CSS px`;return[{criterion:"2.5.8",reason:`Likely failure: <${e.tag}> declares ${r}, below ${wo}\xD7${wo}. It passes only with enough spacing to other targets.`,range:e.range}]}function ki(e){let t={},o=ae(e,"class")??ae(e,"classname")??"";for(let r of o.split(/\s+/)){let a=/^(w|h|size|min-w|min-h)-(.+)$/.exec(r),i=a?yi(a[2]):void 0;if(!(!a||i===void 0))for(let l of a[1]==="size"?["width","height"]:[vi[a[1]]])t[l]=i}for(let r of(ae(e,"style")??"").split(";")){let[a,i]=r.split(":").map(c=>c.trim()),l=i===void 0?void 0:dn(i.replace(/\s*!important$/,""));l!==void 0&&["width","height","min-width","min-height"].includes(a)&&(t[a]=l)}let n=r=>{let a=t[r],i=t[`min-${r}`];return a===void 0||i===void 0?a:Math.max(a,i)};return{width:n("width"),height:n("height")}}var vi={w:"width",h:"height","min-w":"min-width","min-h":"min-height"};function yi(e){if(e==="px")return 1;if(/^\d+(\.5)?$/.test(e))return Number(e)*bi;let t=/^\[(.+)\]$/.exec(e);return t?dn(t[1]):void 0}function dn(e){let t=/^(\d*\.?\d+)(px|rem)?$/.exec(e);if(!(!t||t[2]===void 0&&t[1]!=="0"))return Number(t[1])*(t[2]==="rem"?gi:1)}export{bn as a,Mi as b,Ti as c,Hm as d,Em as e};